From 156f0459f3d98a3fd4dc62c16d66d9aadcc1717e Mon Sep 17 00:00:00 2001 From: autosubmit Date: Tue, 12 Sep 2023 10:07:17 +0800 Subject: [PATCH] Auto Submit --- color.less | 28 ++-- index.html | 2 +- ...ework__SubmitWork__index.d36ece65.async.js | 156 +++++++++--------- ...ists__Engineering__index.a12bd337.async.js | 2 +- ...ion__Topics__Edit__index.64038857.async.js | 140 ++++++++-------- ...tatistics__StudentDetail.bd6e6b5b.async.js | 2 +- ...ed__Assembly__TeamDateil.6da9ae7f.async.js | 2 +- ...ering__Lists__CourseList.f60a0322.async.js | 8 +- ...ing__Lists__CurseSetting.589c6b98.async.js | 42 ++--- ...ring__Lists__StudentList.98e6fe86.async.js | 10 +- ...ts__TrainingProgram__Add.bfcd0a93.async.js | 14 +- ...nnovation__PublicDataSet.de2dd1e5.async.js | 10 +- ..._Detail__ForkList__index.7b2d61b4.async.js | 2 +- ...c.js => p__Shixuns__Edit.a21d7914.async.js | 46 +++--- ...etail__Classrooms__index.ee8a0a46.async.js | 4 +- umi.ffc4f1a6.js => umi.00d8ef2c.js | 2 +- 16 files changed, 235 insertions(+), 235 deletions(-) rename p__Shixuns__Edit.a5197e8c.async.js => p__Shixuns__Edit.a21d7914.async.js (97%) rename umi.ffc4f1a6.js => umi.00d8ef2c.js (99%) diff --git a/color.less b/color.less index 3d8299e2b9..c606c6bec3 100644 --- a/color.less +++ b/color.less @@ -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(170, 123, 253, 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(201, 113, 187, 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(170, 123, 253, 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(201, 113, 187, 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(170, 123, 253, 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(201, 113, 187, 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(170, 123, 253, 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(201, 113, 187, 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(170, 123, 253, 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(201, 113, 187, 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(255, 38, 204, 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(15, 254, 124, 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(255, 38, 204, 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(15, 254, 124, 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(255, 38, 204, 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(15, 254, 124, 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(255, 38, 204, 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(15, 254, 124, 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(255, 38, 204, 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(255, 38, 204, 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(15, 254, 124, 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(15, 254, 124, 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;} @@ -1457,9 +1457,9 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-checkable:active, .ant-tag-checkable-checked {color: #fff;} .ant-tag-checkable-checked {background-color: @primary-color;} .ant-tag-checkable:active {background-color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-tag-pink {color: #eb2f96;background: color(~`colorPalette("@{modal-close-color}", 3)`);border-color: #ffadd2;} +.ant-tag-pink {color: #eb2f96;background: color(~`colorPalette("@{modal-content-bg}", 1)`);border-color: #ffadd2;} .ant-tag-pink-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} -.ant-tag-magenta {color: #eb2f96;background: color(~`colorPalette("@{modal-close-color}", 3)`);border-color: #ffadd2;} +.ant-tag-magenta {color: #eb2f96;background: color(~`colorPalette("@{modal-content-bg}", 1)`);border-color: #ffadd2;} .ant-tag-magenta-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} .ant-tag-red {color: #f5222d;background: #fff1f0;border-color: #ffa39e;} .ant-tag-red-inverse {color: #fff;background: #f5222d;border-color: #f5222d;} @@ -1479,7 +1479,7 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;} .ant-tag-blue {color: #1890ff;background: #e6f7ff;border-color: #91d5ff;} .ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;} -.ant-tag-geekblue {color: #2f54eb;background: color(~`colorPalette("@{border-color-base}", 2)`);border-color: #adc6ff;} +.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-inverse {color: #fff;background: #722ed1;border-color: #722ed1;} diff --git a/index.html b/index.html index 5dfd46eb38..b0353133c4 100644 --- a/index.html +++ b/index.html @@ -149,6 +149,6 @@ - + diff --git a/p__Classrooms__Lists__CommonHomework__SubmitWork__index.d36ece65.async.js b/p__Classrooms__Lists__CommonHomework__SubmitWork__index.d36ece65.async.js index adabd1a3f0..2185a1771c 100644 --- a/p__Classrooms__Lists__CommonHomework__SubmitWork__index.d36ece65.async.js +++ b/p__Classrooms__Lists__CommonHomework__SubmitWork__index.d36ece65.async.js @@ -1,11 +1,11 @@ (window.webpackJsonp=window.webpackJsonp||[]).push([[54,5,6,7],{"+NIl":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";ie.defineMode("stex",function(J,P){"use strict";function X(h,u){h.cmdState.push(u)}function j(h){return h.cmdState.length>0?h.cmdState[h.cmdState.length-1]:null}function U(h){var u=h.cmdState.pop();u&&u.closeBracket()}function K(h){for(var u=h.cmdState,f=u.length-1;f>=0;f--){var l=u[f];if(l.name=="DEFAULT")continue;return l}return{styleIdentifier:function(){return null}}}function G(h,u,f){return function(){this.name=h,this.bracketNo=0,this.style=u,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 r={};r.importmodule=G("importmodule","tag",["string","builtin"]),r.documentclass=G("documentclass","tag",["","atom"]),r.usepackage=G("usepackage","tag",["atom"]),r.begin=G("begin","tag",["atom"]),r.end=G("end","tag",["atom"]),r.label=G("label","tag",["atom"]),r.ref=G("ref","tag",["atom"]),r.eqref=G("eqref","tag",["atom"]),r.cite=G("cite","tag",["atom"]),r.bibitem=G("bibitem","tag",["atom"]),r.Bibitem=G("Bibitem","tag",["atom"]),r.RBibitem=G("RBibitem","tag",["atom"]),r.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function L(h,u){h.f=u}function v(h,u){var f;if(h.match(/^\\[a-zA-Z@]+/)){var l=h.current().slice(1);return f=r.hasOwnProperty(l)?r[l]:r.DEFAULT,f=new f,X(u,f),L(u,p),f.style}if(h.match(/^\\[$&%#{}_]/))return"tag";if(h.match(/^\\[,;!\/\\]/))return"tag";if(h.match("\\["))return L(u,function(s,a){return m(s,a,"\\]")}),"keyword";if(h.match("\\("))return L(u,function(s,a){return m(s,a,"\\)")}),"keyword";if(h.match("$$"))return L(u,function(s,a){return m(s,a,"$$")}),"keyword";if(h.match("$"))return L(u,function(s,a){return m(s,a,"$")}),"keyword";var o=h.next();if(o=="%")return h.skipToEnd(),"comment";if(o=="}"||o=="]"){if(f=j(u),f)f.closeBracket(o),L(u,p);else return"error";return"bracket"}else return o=="{"||o=="["?(f=r.DEFAULT,f=new f,X(u,f),"bracket"):/\d/.test(o)?(h.eatWhile(/[\w.%]/),"atom"):(h.eatWhile(/[\w\-_]/),f=K(u),f.name=="begin"&&(f.argument=h.current()),f.styleIdentifier())}function m(h,u,f){if(h.eatSpace())return null;if(f&&h.match(f))return L(u,v),"keyword";if(h.match(/^\\[a-zA-Z@]+/))return"tag";if(h.match(/^[a-zA-Z]+/))return"variable-2";if(h.match(/^\\[$&%#{}_]/))return"tag";if(h.match(/^\\[,;!\/]/))return"tag";if(h.match(/^[\^_&]/))return"tag";if(h.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(h.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var l=h.next();return l=="{"||l=="}"||l=="["||l=="]"||l=="("||l==")"?"bracket":l=="%"?(h.skipToEnd(),"comment"):"error"}function p(h,u){var f=h.peek(),l;return f=="{"||f=="["?(l=j(u),l.openBracket(f),h.eat(f),L(u,v),"bracket"):/[ \t\r]/.test(f)?(h.eat(f),null):(L(u,v),U(u),v(h,u))}return{startState:function(){var h=P.inMathMode?function(u,f){return m(u,f)}:v;return{cmdState:[],f:h}},copyState:function(h){return{cmdState:h.cmdState.slice(),f:h.f}},token:function(h,u){return u.f(h,u)},blankLine:function(h){h.f=v,h.cmdState.length=0},lineComment:"%"}}),ie.defineMIME("text/x-stex","stex"),ie.defineMIME("text/x-latex","stex")})},"+ua5":function(rt,be,Z){},"/cxE":function(rt,be,Z){"use strict";Z.d(be,"f",function(){return P}),Z.d(be,"g",function(){return X}),Z.d(be,"h",function(){return j}),Z.d(be,"e",function(){return K}),Z.d(be,"b",function(){return G}),Z.d(be,"c",function(){return r}),Z.d(be,"d",function(){return L}),Z.d(be,"a",function(){return v});class ie{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(m){setTimeout(()=>{throw m.stack?new Error(m.message+` -`+m.stack):m},0)}}emit(m){this.listeners.forEach(p=>{p(m)})}onUnexpectedError(m){this.unexpectedErrorHandler(m),this.emit(m)}onUnexpectedExternalError(m){this.unexpectedErrorHandler(m)}}const J=new ie;function P(m){K(m)||J.onUnexpectedError(m);return}function X(m){K(m)||J.onUnexpectedExternalError(m);return}function j(m){if(m instanceof Error){let{name:p,message:h}=m;const u=m.stacktrace||m.stack;return{$isError:!0,name:p,message:h,stack:u}}return m}const U="Canceled";function K(m){return m instanceof Error&&m.name===U&&m.message===U}function G(){const m=new Error(U);return m.name=m.message,m}function r(m){return m?new Error(`Illegal argument: ${m}`):new Error("Illegal argument")}function L(m){return m?new Error(`Illegal state: ${m}`):new Error("Illegal state")}class v extends Error{constructor(m){super("NotSupported");m&&(this.message=m)}}},"19Vz":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){ie.defineOption("placeholder","",function(G,r,L){var v=L&&L!=ie.Init;if(r&&!v)G.on("blur",j),G.on("change",U),G.on("swapDoc",U),ie.on(G.getInputField(),"compositionupdate",G.state.placeholderCompose=function(){X(G)}),U(G);else if(!r&&v){G.off("blur",j),G.off("change",U),G.off("swapDoc",U),ie.off(G.getInputField(),"compositionupdate",G.state.placeholderCompose),J(G);var m=G.getWrapperElement();m.className=m.className.replace(" CodeMirror-empty","")}r&&!G.hasFocus()&&j(G)});function J(G){G.state.placeholder&&(G.state.placeholder.parentNode.removeChild(G.state.placeholder),G.state.placeholder=null)}function P(G){J(G);var r=G.state.placeholder=document.createElement("pre");r.style.cssText="height: 0; overflow: visible",r.style.direction=G.getOption("direction"),r.className="CodeMirror-placeholder CodeMirror-line-like";var L=G.getOption("placeholder");typeof L=="string"&&(L=document.createTextNode(L)),r.appendChild(L),G.display.lineSpace.insertBefore(r,G.display.lineSpace.firstChild)}function X(G){setTimeout(function(){var r=!1,L=G.getInputField();L.nodeName=="TEXTAREA"?r=!L.value:G.lineCount()==1&&(r=!/[^\u200b]/.test(L.querySelector(".CodeMirror-line").textContent)),r?P(G):J(G)},20)}function j(G){K(G)&&P(G)}function U(G){var r=G.getWrapperElement(),L=K(G);r.className=r.className.replace(" CodeMirror-empty","")+(L?" CodeMirror-empty":""),L?P(G):J(G)}function K(G){return G.lineCount()===1&&G.getLine(0)===""}})},"1eCo":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";var J={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},P={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ie.defineMode("xml",function(X,j){var U=X.indentUnit,K={},G=j.htmlMode?J:P;for(var r in G)K[r]=G[r];for(var r in j)K[r]=j[r];var L,v;function m(c,S){function y(F){return S.tokenize=F,F(c,S)}var b=c.next();if(b=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?y(u("atom","]]>")):null:c.match("--")?y(u("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),y(f(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),S.tokenize=u("meta","?>"),"meta"):(L=c.eat("/")?"closeTag":"openTag",S.tokenize=p,"tag bracket");if(b=="&"){var B;return c.eat("#")?c.eat("x")?B=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):B=c.eatWhile(/[\d]/)&&c.eat(";"):B=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),B?"atom":"error"}else return c.eatWhile(/[^&<]/),null}m.isInText=!0;function p(c,S){var y=c.next();if(y==">"||y=="/"&&c.eat(">"))return S.tokenize=m,L=y==">"?"endTag":"selfcloseTag","tag bracket";if(y=="=")return L="equals",null;if(y=="<"){S.tokenize=m,S.state=a,S.tagName=S.tagStart=null;var b=S.tokenize(c,S);return b?b+" tag error":"tag error"}else return/[\'\"]/.test(y)?(S.tokenize=h(y),S.stringStartCol=c.column(),S.tokenize(c,S)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(c){var S=function(y,b){for(;!y.eol();)if(y.next()==c){b.tokenize=p;break}return"string"};return S.isInAttribute=!0,S}function u(c,S){return function(y,b){for(;!y.eol();){if(y.match(S)){b.tokenize=m;break}y.next()}return c}}function f(c){return function(S,y){for(var b;(b=S.next())!=null;){if(b=="<")return y.tokenize=f(c+1),y.tokenize(S,y);if(b==">")if(c==1){y.tokenize=m;break}else return y.tokenize=f(c-1),y.tokenize(S,y)}return"meta"}}function l(c,S,y){this.prev=c.context,this.tagName=S,this.indent=c.indented,this.startOfLine=y,(K.doNotIndent.hasOwnProperty(S)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function o(c){c.context&&(c.context=c.context.prev)}function s(c,S){for(var y;;){if(!c.context)return;if(y=c.context.tagName,!K.contextGrabbers.hasOwnProperty(y)||!K.contextGrabbers[y].hasOwnProperty(S))return;o(c)}}function a(c,S,y){return c=="openTag"?(y.tagStart=S.column(),O):c=="closeTag"?E:a}function O(c,S,y){return c=="word"?(y.tagName=S.current(),v="tag",R):K.allowMissingTagName&&c=="endTag"?(v="tag bracket",R(c,S,y)):(v="error",O)}function E(c,S,y){if(c=="word"){var b=S.current();return y.context&&y.context.tagName!=b&&K.implicitlyClosed.hasOwnProperty(y.context.tagName)&&o(y),y.context&&y.context.tagName==b||K.matchClosing===!1?(v="tag",w):(v="tag error",D)}else return K.allowMissingTagName&&c=="endTag"?(v="tag bracket",w(c,S,y)):(v="error",D)}function w(c,S,y){return c!="endTag"?(v="error",w):(o(y),a)}function D(c,S,y){return v="error",w(c,S,y)}function R(c,S,y){if(c=="word")return v="attribute",A;if(c=="endTag"||c=="selfcloseTag"){var b=y.tagName,B=y.tagStart;return y.tagName=y.tagStart=null,c=="selfcloseTag"||K.autoSelfClosers.hasOwnProperty(b)?s(y,b):(s(y,b),y.context=new l(y,b,B==y.indented)),a}return v="error",R}function A(c,S,y){return c=="equals"?C:(K.allowMissing||(v="error"),R(c,S,y))}function C(c,S,y){return c=="string"?T:c=="word"&&K.allowUnquoted?(v="string",R):(v="error",R(c,S,y))}function T(c,S,y){return c=="string"?T:R(c,S,y)}return{startState:function(c){var S={tokenize:m,state:a,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(S.baseIndent=c),S},token:function(c,S){if(!S.tagName&&c.sol()&&(S.indented=c.indentation()),c.eatSpace())return null;L=null;var y=S.tokenize(c,S);return(y||L)&&y!="comment"&&(v=null,S.state=S.state(L||y,c,S),v&&(y=v=="error"?y+" error":v)),y},indent:function(c,S,y){var b=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+U;if(b&&b.noIndent)return ie.Pass;if(c.tokenize!=p&&c.tokenize!=m)return y?y.match(/^(\s*)/)[0].length:0;if(c.tagName)return K.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+U*(K.multilineTagIndentFactor||1);if(K.alignCDATA&&/$/,blockCommentStart:"",configuration:K.htmlMode?"html":"xml",helperType:K.htmlMode?"html":"xml",skipAttribute:function(c){c.state==C&&(c.state=R)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var S=[],y=c.context;y;y=y.prev)y.tagName&&S.push(y.tagName);return S.reverse()}}}),ie.defineMIME("text/xml","xml"),ie.defineMIME("application/xml","xml"),ie.mimeModes.hasOwnProperty("text/html")||ie.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"24hK":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});class ie{constructor(P){this.element=P,this.next=ie.Undefined,this.prev=ie.Undefined}}ie.Undefined=new ie(void 0);class J{constructor(){this._first=ie.Undefined,this._last=ie.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ie.Undefined}clear(){let P=this._first;for(;P!==ie.Undefined;){const X=P.next;P.prev=ie.Undefined,P.next=ie.Undefined,P=X}this._first=ie.Undefined,this._last=ie.Undefined,this._size=0}unshift(P){return this._insert(P,!1)}push(P){return this._insert(P,!0)}_insert(P,X){const j=new ie(P);if(this._first===ie.Undefined)this._first=j,this._last=j;else if(X){const K=this._last;this._last=j,j.prev=K,K.next=j}else{const K=this._first;this._first=j,j.next=K,K.prev=j}this._size+=1;let U=!1;return()=>{U||(U=!0,this._remove(j))}}shift(){if(this._first===ie.Undefined)return;{const P=this._first.element;return this._remove(this._first),P}}pop(){if(this._last===ie.Undefined)return;{const P=this._last.element;return this._remove(this._last),P}}_remove(P){if(P.prev!==ie.Undefined&&P.next!==ie.Undefined){const X=P.prev;X.next=P.next,P.next.prev=X}else P.prev===ie.Undefined&&P.next===ie.Undefined?(this._first=ie.Undefined,this._last=ie.Undefined):P.next===ie.Undefined?(this._last=this._last.prev,this._last.next=ie.Undefined):P.prev===ie.Undefined&&(this._first=this._first.next,this._first.prev=ie.Undefined);this._size-=1}*[Symbol.iterator](){let P=this._first;for(;P!==ie.Undefined;)yield P.element,P=P.next}}},"3/fG":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});function ie(P,X){let j;return X.length===0?j=P:j=P.replace(/\{(\d+)\}/g,function(U,K){const G=K[0];return typeof X[G]!="undefined"?X[G]:U}),j}function J(P,X,...j){return ie(X,j)}},"500L":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return E});var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("2qtc"),X=Z("kLXV"),j=Z("9og8"),U=Z("k1fw"),K=Z("miYZ"),G=Z("tsqr"),r=Z("oBTY"),L=Z("tJVT"),v=Z("DZo9"),m=Z("8z0m"),p=Z("WmNS"),h=Z.n(p),u=Z("q1tI"),f=Z.n(u),l=Z("m3rI"),o=Z("wzkS"),s=Z("y5JW"),a=Z("LtfV"),O=m.a.Dragger;function E(w){var D=[];return w&&w.length>0&&(D=w.map(function(R){return{uid:R.id,id:R.id,name:R.title+s.c+R.filesize,url:R.url,filesize:R.filesize,status:"done",response:{id:R.id}}})),D}be.b=function(w){var D=w.value,R=w.onChange,A=w.action,C=w.className,T=w.maxSize,c=T===void 0?150:T,S=w.title,y=S===void 0?"\u4E0A\u4F20\u9644\u4EF6":S,b=w.showRemoveModal,B=b===void 0?!1:b,F=w.accept,_=F===void 0?"":F,M=w.additionalText,I=w.isDragger,g=w.number,H=g===void 0?1e3:g,$=w.aloneClear,ne=$===void 0?!1:$,se=Object(u.useState)(!1),Oe=Object(L.a)(se,2),ge=Oe[0],Te=Oe[1],Re=Object(u.useState)(D||[]),Le=Object(L.a)(Re,2),de=Le[0],he=Le[1];Object(u.useEffect)(function(){D&&(he(Object(r.a)(D)),H===(D==null?void 0:D.length)&&Te(!0))},[D]);var re=function(){setTimeout(function(){de.pop(),he(Object(r.a)(de))},500)},fe={multiple:!0,disabled:ge,accept:_,withCredentials:!0,fileList:de,beforeUpload:function(Fe,Ce){var Ne=Fe.size/1024/1024;return de.concat(Ce).length>H?(de.pop(),he(Object(r.a)(de)),G.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(H,"\u4E2A\u6587\u4EF6")),ne?Promise.reject():(re(),!1)):!0},action:A||"".concat(l.a.API_SERVER,"/api/attachments.json"),onChange:function(Fe){var Ce,Ne,Be=Object(r.a)(Fe.fileList);if(Fe.file.status==="done"&&((Ce=Fe.file)===null||Ce===void 0||((Ne=Ce.response)===null||Ne===void 0)?void 0:Ne.status)===-1){var le,ve;G.b.error((le=Fe.file)===null||le===void 0||((ve=le.response)===null||ve===void 0)?void 0:ve.message);return}Be.length>=H?Te(!0):Te(!1),he(Object(r.a)(Be)),Be=Be.map(function(Se){var Ie;if(Se!=null&&(Ie=Se.response)!==null&&Ie!==void 0&&Ie.id){var We;Se.url="/api/attachments/".concat(Se==null||((We=Se.response)===null||We===void 0)?void 0:We.id)}return Se.name.indexOf(s.c)===-1&&(Se.name="".concat(Se.name).concat(s.c).concat(Object(s.a)(Se.size))),Object(U.a)({},Se)}),console.log("info:",Fe),R(Be)},onRemove:function(){var De=Object(j.a)(h.a.mark(function Ce(Ne){var Be;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(Be=function(){var Se=Object(j.a)(h.a.mark(function Ie(){var We,Ve;return h.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(We=Ne.response?Ne.response.id:Ne.id,!We){Je.next=8;break}return Je.next=4,Object(o.d)(Ne.response?Ne.response.id:Ne.uid);case 4:return Ve=Je.sent,Je.abrupt("return",Ve);case 8:return Je.abrupt("return",!0);case 9:case"end":return Je.stop()}},Ie)}));return function(){return Se.apply(this,arguments)}}(),!B){ve.next=5;break}return ve.abrupt("return",new Promise(function(Se,Ie){X.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:f.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var We=Object(j.a)(h.a.mark(function Qe(){var Je;return h.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Be();case 2:Je=qe.sent,G.b.success("\u5220\u9664\u6210\u529F"),Se(!0);case 5:case"end":return qe.stop()}},Qe)}));function Ve(){return We.apply(this,arguments)}return Ve}(),onCancel:function(){return Se(!1)}})}));case 5:return ve.next=7,Be();case 7:return ve.abrupt("return",ve.sent);case 8:case"end":return ve.stop()}},Ce)}));function Fe(Ce){return De.apply(this,arguments)}return Fe}()};function oe(De){De.preventDefault(),De.stopPropagation()}return f.a.createElement("div",{className:"multi-upload ".concat(C||"")},I&&f.a.createElement(O,fe,f.a.createElement("p",{className:"ant-upload-drag-icon"},f.a.createElement(a.a,null)),f.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",f.a.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",c,"MB)"," "),M),!I&&f.a.createElement(m.a,fe,f.a.createElement(J.a,{style:{width:"108px",height:"32px",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:"2px",border:"1px solid #BACFFE",color:"#3061D0"},icon:f.a.createElement("i",{className:"iconfont icon-shangchuan3",style:{marginRight:"6px"}}),disabled:ge},y),f.a.createElement("span",{onClick:oe,style:{marginLeft:10,color:"#FA6400"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",c,"MB)"," ")))}},"55Ip":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return s});var ie=Z("Ty5D"),J=Z("dI71"),P=Z("q1tI"),X=Z.n(P),j=Z("YS25"),U=Z("17x9"),K=Z.n(U),G=Z("wx14"),r=Z("zLVn"),L=Z("9R94"),v=function(C){Object(J.a)(T,C);function T(){for(var S,y=arguments.length,b=new Array(y),B=0;B{p(m)})}onUnexpectedError(m){this.unexpectedErrorHandler(m),this.emit(m)}onUnexpectedExternalError(m){this.unexpectedErrorHandler(m)}}const J=new ie;function P(m){K(m)||J.onUnexpectedError(m);return}function X(m){K(m)||J.onUnexpectedExternalError(m);return}function j(m){if(m instanceof Error){let{name:p,message:h}=m;const u=m.stacktrace||m.stack;return{$isError:!0,name:p,message:h,stack:u}}return m}const U="Canceled";function K(m){return m instanceof Error&&m.name===U&&m.message===U}function G(){const m=new Error(U);return m.name=m.message,m}function r(m){return m?new Error(`Illegal argument: ${m}`):new Error("Illegal argument")}function L(m){return m?new Error(`Illegal state: ${m}`):new Error("Illegal state")}class v extends Error{constructor(m){super("NotSupported");m&&(this.message=m)}}},"19Vz":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){ie.defineOption("placeholder","",function(G,r,L){var v=L&&L!=ie.Init;if(r&&!v)G.on("blur",j),G.on("change",U),G.on("swapDoc",U),ie.on(G.getInputField(),"compositionupdate",G.state.placeholderCompose=function(){X(G)}),U(G);else if(!r&&v){G.off("blur",j),G.off("change",U),G.off("swapDoc",U),ie.off(G.getInputField(),"compositionupdate",G.state.placeholderCompose),J(G);var m=G.getWrapperElement();m.className=m.className.replace(" CodeMirror-empty","")}r&&!G.hasFocus()&&j(G)});function J(G){G.state.placeholder&&(G.state.placeholder.parentNode.removeChild(G.state.placeholder),G.state.placeholder=null)}function P(G){J(G);var r=G.state.placeholder=document.createElement("pre");r.style.cssText="height: 0; overflow: visible",r.style.direction=G.getOption("direction"),r.className="CodeMirror-placeholder CodeMirror-line-like";var L=G.getOption("placeholder");typeof L=="string"&&(L=document.createTextNode(L)),r.appendChild(L),G.display.lineSpace.insertBefore(r,G.display.lineSpace.firstChild)}function X(G){setTimeout(function(){var r=!1,L=G.getInputField();L.nodeName=="TEXTAREA"?r=!L.value:G.lineCount()==1&&(r=!/[^\u200b]/.test(L.querySelector(".CodeMirror-line").textContent)),r?P(G):J(G)},20)}function j(G){K(G)&&P(G)}function U(G){var r=G.getWrapperElement(),L=K(G);r.className=r.className.replace(" CodeMirror-empty","")+(L?" CodeMirror-empty":""),L?P(G):J(G)}function K(G){return G.lineCount()===1&&G.getLine(0)===""}})},"1eCo":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";var J={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},P={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ie.defineMode("xml",function(X,j){var U=X.indentUnit,K={},G=j.htmlMode?J:P;for(var r in G)K[r]=G[r];for(var r in j)K[r]=j[r];var L,v;function m(d,S){function y(F){return S.tokenize=F,F(d,S)}var b=d.next();if(b=="<")return d.eat("!")?d.eat("[")?d.match("CDATA[")?y(u("atom","]]>")):null:d.match("--")?y(u("comment","-->")):d.match("DOCTYPE",!0,!0)?(d.eatWhile(/[\w\._\-]/),y(f(1))):null:d.eat("?")?(d.eatWhile(/[\w\._\-]/),S.tokenize=u("meta","?>"),"meta"):(L=d.eat("/")?"closeTag":"openTag",S.tokenize=p,"tag bracket");if(b=="&"){var B;return d.eat("#")?d.eat("x")?B=d.eatWhile(/[a-fA-F\d]/)&&d.eat(";"):B=d.eatWhile(/[\d]/)&&d.eat(";"):B=d.eatWhile(/[\w\.\-:]/)&&d.eat(";"),B?"atom":"error"}else return d.eatWhile(/[^&<]/),null}m.isInText=!0;function p(d,S){var y=d.next();if(y==">"||y=="/"&&d.eat(">"))return S.tokenize=m,L=y==">"?"endTag":"selfcloseTag","tag bracket";if(y=="=")return L="equals",null;if(y=="<"){S.tokenize=m,S.state=a,S.tagName=S.tagStart=null;var b=S.tokenize(d,S);return b?b+" tag error":"tag error"}else return/[\'\"]/.test(y)?(S.tokenize=h(y),S.stringStartCol=d.column(),S.tokenize(d,S)):(d.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(d){var S=function(y,b){for(;!y.eol();)if(y.next()==d){b.tokenize=p;break}return"string"};return S.isInAttribute=!0,S}function u(d,S){return function(y,b){for(;!y.eol();){if(y.match(S)){b.tokenize=m;break}y.next()}return d}}function f(d){return function(S,y){for(var b;(b=S.next())!=null;){if(b=="<")return y.tokenize=f(d+1),y.tokenize(S,y);if(b==">")if(d==1){y.tokenize=m;break}else return y.tokenize=f(d-1),y.tokenize(S,y)}return"meta"}}function l(d,S,y){this.prev=d.context,this.tagName=S,this.indent=d.indented,this.startOfLine=y,(K.doNotIndent.hasOwnProperty(S)||d.context&&d.context.noIndent)&&(this.noIndent=!0)}function o(d){d.context&&(d.context=d.context.prev)}function s(d,S){for(var y;;){if(!d.context)return;if(y=d.context.tagName,!K.contextGrabbers.hasOwnProperty(y)||!K.contextGrabbers[y].hasOwnProperty(S))return;o(d)}}function a(d,S,y){return d=="openTag"?(y.tagStart=S.column(),O):d=="closeTag"?E:a}function O(d,S,y){return d=="word"?(y.tagName=S.current(),v="tag",R):K.allowMissingTagName&&d=="endTag"?(v="tag bracket",R(d,S,y)):(v="error",O)}function E(d,S,y){if(d=="word"){var b=S.current();return y.context&&y.context.tagName!=b&&K.implicitlyClosed.hasOwnProperty(y.context.tagName)&&o(y),y.context&&y.context.tagName==b||K.matchClosing===!1?(v="tag",w):(v="tag error",D)}else return K.allowMissingTagName&&d=="endTag"?(v="tag bracket",w(d,S,y)):(v="error",D)}function w(d,S,y){return d!="endTag"?(v="error",w):(o(y),a)}function D(d,S,y){return v="error",w(d,S,y)}function R(d,S,y){if(d=="word")return v="attribute",A;if(d=="endTag"||d=="selfcloseTag"){var b=y.tagName,B=y.tagStart;return y.tagName=y.tagStart=null,d=="selfcloseTag"||K.autoSelfClosers.hasOwnProperty(b)?s(y,b):(s(y,b),y.context=new l(y,b,B==y.indented)),a}return v="error",R}function A(d,S,y){return d=="equals"?C:(K.allowMissing||(v="error"),R(d,S,y))}function C(d,S,y){return d=="string"?T:d=="word"&&K.allowUnquoted?(v="string",R):(v="error",R(d,S,y))}function T(d,S,y){return d=="string"?T:R(d,S,y)}return{startState:function(d){var S={tokenize:m,state:a,indented:d||0,tagName:null,tagStart:null,context:null};return d!=null&&(S.baseIndent=d),S},token:function(d,S){if(!S.tagName&&d.sol()&&(S.indented=d.indentation()),d.eatSpace())return null;L=null;var y=S.tokenize(d,S);return(y||L)&&y!="comment"&&(v=null,S.state=S.state(L||y,d,S),v&&(y=v=="error"?y+" error":v)),y},indent:function(d,S,y){var b=d.context;if(d.tokenize.isInAttribute)return d.tagStart==d.indented?d.stringStartCol+1:d.indented+U;if(b&&b.noIndent)return ie.Pass;if(d.tokenize!=p&&d.tokenize!=m)return y?y.match(/^(\s*)/)[0].length:0;if(d.tagName)return K.multilineTagIndentPastTag!==!1?d.tagStart+d.tagName.length+2:d.tagStart+U*(K.multilineTagIndentFactor||1);if(K.alignCDATA&&/$/,blockCommentStart:"",configuration:K.htmlMode?"html":"xml",helperType:K.htmlMode?"html":"xml",skipAttribute:function(d){d.state==C&&(d.state=R)},xmlCurrentTag:function(d){return d.tagName?{name:d.tagName,close:d.type=="closeTag"}:null},xmlCurrentContext:function(d){for(var S=[],y=d.context;y;y=y.prev)y.tagName&&S.push(y.tagName);return S.reverse()}}}),ie.defineMIME("text/xml","xml"),ie.defineMIME("application/xml","xml"),ie.mimeModes.hasOwnProperty("text/html")||ie.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"24hK":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});class ie{constructor(P){this.element=P,this.next=ie.Undefined,this.prev=ie.Undefined}}ie.Undefined=new ie(void 0);class J{constructor(){this._first=ie.Undefined,this._last=ie.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ie.Undefined}clear(){let P=this._first;for(;P!==ie.Undefined;){const X=P.next;P.prev=ie.Undefined,P.next=ie.Undefined,P=X}this._first=ie.Undefined,this._last=ie.Undefined,this._size=0}unshift(P){return this._insert(P,!1)}push(P){return this._insert(P,!0)}_insert(P,X){const j=new ie(P);if(this._first===ie.Undefined)this._first=j,this._last=j;else if(X){const K=this._last;this._last=j,j.prev=K,K.next=j}else{const K=this._first;this._first=j,j.next=K,K.prev=j}this._size+=1;let U=!1;return()=>{U||(U=!0,this._remove(j))}}shift(){if(this._first===ie.Undefined)return;{const P=this._first.element;return this._remove(this._first),P}}pop(){if(this._last===ie.Undefined)return;{const P=this._last.element;return this._remove(this._last),P}}_remove(P){if(P.prev!==ie.Undefined&&P.next!==ie.Undefined){const X=P.prev;X.next=P.next,P.next.prev=X}else P.prev===ie.Undefined&&P.next===ie.Undefined?(this._first=ie.Undefined,this._last=ie.Undefined):P.next===ie.Undefined?(this._last=this._last.prev,this._last.next=ie.Undefined):P.prev===ie.Undefined&&(this._first=this._first.next,this._first.prev=ie.Undefined);this._size-=1}*[Symbol.iterator](){let P=this._first;for(;P!==ie.Undefined;)yield P.element,P=P.next}}},"3/fG":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});function ie(P,X){let j;return X.length===0?j=P:j=P.replace(/\{(\d+)\}/g,function(U,K){const G=K[0];return typeof X[G]!="undefined"?X[G]:U}),j}function J(P,X,...j){return ie(X,j)}},"500L":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return E});var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("2qtc"),X=Z("kLXV"),j=Z("9og8"),U=Z("k1fw"),K=Z("miYZ"),G=Z("tsqr"),r=Z("oBTY"),L=Z("tJVT"),v=Z("DZo9"),m=Z("8z0m"),p=Z("WmNS"),h=Z.n(p),u=Z("q1tI"),f=Z.n(u),l=Z("m3rI"),o=Z("wzkS"),s=Z("y5JW"),a=Z("LtfV"),O=m.a.Dragger;function E(w){var D=[];return w&&w.length>0&&(D=w.map(function(R){return{uid:R.id,id:R.id,name:R.title+s.c+R.filesize,url:R.url,filesize:R.filesize,status:"done",response:{id:R.id}}})),D}be.b=function(w){var D=w.value,R=w.onChange,A=w.action,C=w.className,T=w.maxSize,d=T===void 0?150:T,S=w.title,y=S===void 0?"\u4E0A\u4F20\u9644\u4EF6":S,b=w.showRemoveModal,B=b===void 0?!1:b,F=w.accept,_=F===void 0?"":F,M=w.additionalText,I=w.isDragger,g=w.number,H=g===void 0?1e3:g,$=w.aloneClear,ne=$===void 0?!1:$,se=Object(u.useState)(!1),Oe=Object(L.a)(se,2),ge=Oe[0],Te=Oe[1],Re=Object(u.useState)(D||[]),Le=Object(L.a)(Re,2),ce=Le[0],he=Le[1];Object(u.useEffect)(function(){D&&(he(Object(r.a)(D)),H===(D==null?void 0:D.length)&&Te(!0))},[D]);var re=function(){setTimeout(function(){ce.pop(),he(Object(r.a)(ce))},500)},fe={multiple:!0,disabled:ge,accept:_,withCredentials:!0,fileList:ce,beforeUpload:function(Fe,Ce){var Ne=Fe.size/1024/1024;return ce.concat(Ce).length>H?(ce.pop(),he(Object(r.a)(ce)),G.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(H,"\u4E2A\u6587\u4EF6")),ne?Promise.reject():(re(),!1)):!0},action:A||"".concat(l.a.API_SERVER,"/api/attachments.json"),onChange:function(Fe){var Ce,Ne,Be=Object(r.a)(Fe.fileList);if(Fe.file.status==="done"&&((Ce=Fe.file)===null||Ce===void 0||((Ne=Ce.response)===null||Ne===void 0)?void 0:Ne.status)===-1){var le,ve;G.b.error((le=Fe.file)===null||le===void 0||((ve=le.response)===null||ve===void 0)?void 0:ve.message);return}Be.length>=H?Te(!0):Te(!1),he(Object(r.a)(Be)),Be=Be.map(function(Se){var Ie;if(Se!=null&&(Ie=Se.response)!==null&&Ie!==void 0&&Ie.id){var We;Se.url="/api/attachments/".concat(Se==null||((We=Se.response)===null||We===void 0)?void 0:We.id)}return Se.name.indexOf(s.c)===-1&&(Se.name="".concat(Se.name).concat(s.c).concat(Object(s.a)(Se.size))),Object(U.a)({},Se)}),console.log("info:",Fe),R(Be)},onRemove:function(){var De=Object(j.a)(h.a.mark(function Ce(Ne){var Be;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(Be=function(){var Se=Object(j.a)(h.a.mark(function Ie(){var We,Ve;return h.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(We=Ne.response?Ne.response.id:Ne.id,!We){Je.next=8;break}return Je.next=4,Object(o.d)(Ne.response?Ne.response.id:Ne.uid);case 4:return Ve=Je.sent,Je.abrupt("return",Ve);case 8:return Je.abrupt("return",!0);case 9:case"end":return Je.stop()}},Ie)}));return function(){return Se.apply(this,arguments)}}(),!B){ve.next=5;break}return ve.abrupt("return",new Promise(function(Se,Ie){X.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:f.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var We=Object(j.a)(h.a.mark(function Qe(){var Je;return h.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Be();case 2:Je=qe.sent,G.b.success("\u5220\u9664\u6210\u529F"),Se(!0);case 5:case"end":return qe.stop()}},Qe)}));function Ve(){return We.apply(this,arguments)}return Ve}(),onCancel:function(){return Se(!1)}})}));case 5:return ve.next=7,Be();case 7:return ve.abrupt("return",ve.sent);case 8:case"end":return ve.stop()}},Ce)}));function Fe(Ce){return De.apply(this,arguments)}return Fe}()};function oe(De){De.preventDefault(),De.stopPropagation()}return f.a.createElement("div",{className:"multi-upload ".concat(C||"")},I&&f.a.createElement(O,fe,f.a.createElement("p",{className:"ant-upload-drag-icon"},f.a.createElement(a.a,null)),f.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",f.a.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",d,"MB)"," "),M),!I&&f.a.createElement(m.a,fe,f.a.createElement(J.a,{style:{width:"108px",height:"32px",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:"2px",border:"1px solid #BACFFE",color:"#3061D0"},icon:f.a.createElement("i",{className:"iconfont icon-shangchuan3",style:{marginRight:"6px"}}),disabled:ge},y),f.a.createElement("span",{onClick:oe,style:{marginLeft:10,color:"#FA6400"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",d,"MB)"," ")))}},"55Ip":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return s});var ie=Z("Ty5D"),J=Z("dI71"),P=Z("q1tI"),X=Z.n(P),j=Z("YS25"),U=Z("17x9"),K=Z.n(U),G=Z("wx14"),r=Z("zLVn"),L=Z("9R94"),v=function(C){Object(J.a)(T,C);function T(){for(var S,y=arguments.length,b=new Array(y),B=0;B$&&($=g.line_indent_level));var ne={mode:H,parent:g,last_token:g?g.last_token:new p(s.START_BLOCK,""),last_word:g?g.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:$,alignment:0,line_indent_level:g?g.line_indent_level:$,start_line_index:this._output.get_line_number(),ternary_depth:0};return ne},M.prototype._reset=function(g){var H=g.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new m(this._options,H),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(c.BlockStatement);var $=new f(g,this._options);return this._tokens=$.tokenize(),g},M.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var g,H=this._reset(this._source_text),$=this._options.eol;this._options.eol==="auto"&&($=` -`,H&&h.lineBreak.test(H||"")&&($=H.match(h.lineBreak)[0]));for(var ne=this._tokens.next();ne;)this.handle_token(ne),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ne,ne=this._tokens.next();return g=this._output.get_code($),g},M.prototype.handle_token=function(g,H){g.type===s.START_EXPR?this.handle_start_expr(g):g.type===s.END_EXPR?this.handle_end_expr(g):g.type===s.START_BLOCK?this.handle_start_block(g):g.type===s.END_BLOCK?this.handle_end_block(g):g.type===s.WORD?this.handle_word(g):g.type===s.RESERVED?this.handle_word(g):g.type===s.SEMICOLON?this.handle_semicolon(g):g.type===s.STRING?this.handle_string(g):g.type===s.EQUALS?this.handle_equals(g):g.type===s.OPERATOR?this.handle_operator(g):g.type===s.COMMA?this.handle_comma(g):g.type===s.BLOCK_COMMENT?this.handle_block_comment(g,H):g.type===s.COMMENT?this.handle_comment(g,H):g.type===s.DOT?this.handle_dot(g):g.type===s.EOF?this.handle_eof(g):g.type===s.UNKNOWN?this.handle_unknown(g,H):this.handle_unknown(g,H)},M.prototype.handle_whitespace_and_comments=function(g,H){var $=g.newlines,ne=this._options.keep_array_indentation&&b(this._flags.mode);if(g.comments_before)for(var se=g.comments_before.next();se;)this.handle_whitespace_and_comments(se,H),this.handle_token(se,H),se=g.comments_before.next();if(ne)for(var Oe=0;Oe<$;Oe+=1)this.print_newline(Oe>0,H);else if(this._options.max_preserve_newlines&&$>this._options.max_preserve_newlines&&($=this._options.max_preserve_newlines),this._options.preserve_newlines&&$>1){this.print_newline(!1,H);for(var ge=1;ge<$;ge+=1)this.print_newline(!0,H)}};var I=["async","break","continue","return","throw","yield"];M.prototype.allow_wrap_or_preserved_newline=function(g,H){if(H=H===void 0?!1:H,this._output.just_added_newline())return;var $=this._options.preserve_newlines&&g.newlines||H,ne=a(this._flags.last_token.text,o)||a(g.text,o);if(ne){var se=a(this._flags.last_token.text,o)&&a(this._options.operator_position,T)||a(g.text,o);$=$&&se}if($)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(D(this._flags.last_token,I))return;this._output.set_wrap_point()}},M.prototype.print_newline=function(g,H){if(!H&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var $=this._tokens.peek();this._flags.mode===c.Statement&&!(this._flags.if_block&&w($,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(g)&&(this._flags.multiline_frame=!0)},M.prototype.print_token_line_indentation=function(g){this._output.just_added_newline()&&(this._options.keep_array_indentation&&g.newlines&&(g.text==="["||b(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(g.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},M.prototype.print_token=function(g){if(this._output.raw){this._output.add_raw_token(g);return}if(this._options.comma_first&&g.previous&&g.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var H=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(H),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(g),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(g),this._output.non_breaking_space=!0,this._output.add_token(g.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},M.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},M.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},M.prototype.set_mode=function(g){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,g),this._flags=this.create_flags(this._previous_flags,g),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},M.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===c.Statement&&S(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},M.prototype.start_of_object_property=function(){return this._flags.parent.mode===c.ObjectLiteral&&this._flags.mode===c.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"]))},M.prototype.start_of_statement=function(g){var H=!1;return H=H||D(this._flags.last_token,["var","let","const"])&&g.type===s.WORD,H=H||w(this._flags.last_token,"do"),H=H||!(this._flags.parent.mode===c.ObjectLiteral&&this._flags.mode===c.Statement)&&D(this._flags.last_token,I)&&!g.newlines,H=H||w(this._flags.last_token,"else")&&!(w(g,"if")&&!g.comments_before),H=H||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===c.ForInitializer||this._previous_flags.mode===c.Conditional),H=H||this._flags.last_token.type===s.WORD&&this._flags.mode===c.BlockStatement&&!this._flags.in_case&&!(g.text==="--"||g.text==="++")&&this._last_last_text!=="function"&&g.type!==s.WORD&&g.type!==s.RESERVED,H=H||this._flags.mode===c.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"])),H?(this.set_mode(c.Statement),this.indent(),this.handle_whitespace_and_comments(g,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g,D(g,["do","for","if","while"])),!0):!1},M.prototype.handle_start_expr=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g);var H=c.Expression;if(g.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){D(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(g),this.set_mode(H),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}H=c.ArrayLiteral,b(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),a(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,H=c.ForInitializer):a(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,H=c.Conditional):a(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&g.whitespace_before===""?this._output.space_before_token=!1:(a(this._flags.last_token.text,l)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var $=this._tokens.peek(-3);if(this._options.space_after_named_function&&$){var ne=this._tokens.peek(-4);D($,["async","function"])||$.text==="*"&&D(ne,["async","function"])?this._output.space_before_token=!0:this._flags.mode===c.ObjectLiteral?($.text==="{"||$.text===","||$.text==="*"&&(ne.text==="{"||ne.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(g);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(a(this._last_last_text,["function","yield"])||this._flags.mode===c.ObjectLiteral&&a(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===s.START_BLOCK?this.print_newline():(this._flags.last_token.type===s.END_EXPR||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===s.COMMA)&&this.allow_wrap_or_preserved_newline(g,g.newlines),this.print_token(g),this.set_mode(H),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},M.prototype.handle_end_expr=function(g){for(;this._flags.mode===c.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(g,g.text==="]"&&b(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===s.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(g),this.restore_mode(),S(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===c.Conditional&&(this._previous_flags.mode=c.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},M.prototype.handle_start_block=function(g){this.handle_whitespace_and_comments(g);var H=this._tokens.peek(),$=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(c.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(c.BlockStatement):$&&(a($.text,[":",","])&&a(H.type,[s.STRING,s.WORD,s.RESERVED])||a(H.text,["get","set","..."])&&a($.type,[s.WORD,s.RESERVED]))?a(this._last_last_text,["class","interface"])&&!a($.text,[":",","])?this.set_mode(c.BlockStatement):this.set_mode(c.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(c.BlockStatement):a(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||D(this._flags.last_token,["return","throw","import","default"])?this.set_mode(c.ObjectLiteral):this.set_mode(c.BlockStatement),this._flags.last_token&&(D(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var ne=!H.comments_before&&H.text==="}",se=ne&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var Oe=0,ge=null;this._flags.inline_frame=!0;do if(Oe+=1,ge=this._tokens.peek(Oe-1),ge.newlines){this._flags.inline_frame=!1;break}while(ge.type!==s.EOF&&!(ge.type===s.END_BLOCK&&ge.opened===g))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(se||this._flags.last_token.type===s.EQUALS||D(this._flags.last_token,R)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(b(this._previous_flags.mode)&&(this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.COMMA)&&((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(g),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(this._flags.last_token.type===s.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(g),this.indent(),!ne&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},M.prototype.handle_end_block=function(g){for(this.handle_whitespace_and_comments(g);this._flags.mode===c.Statement;)this.restore_mode();var H=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!H?this._output.space_before_token=!0:this._options.brace_style==="expand"?H||this.print_newline():H||(b(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(g)},M.prototype.handle_word=function(g){if(g.type===s.RESERVED){if(a(g.text,["set","get"])&&this._flags.mode!==c.ObjectLiteral)g.type=s.WORD;else if(g.text==="import"&&a(this._tokens.peek().text,["(","."]))g.type=s.WORD;else if(a(g.text,["as","from"])&&!this._flags.import_block)g.type=s.WORD;else if(this._flags.mode===c.ObjectLiteral){var H=this._tokens.peek();H.text===":"&&(g.type=s.WORD)}}if(this.start_of_statement(g)?D(this._flags.last_token,["var","let","const"])&&g.type===s.WORD&&(this._flags.declaration_statement=!0):g.newlines&&!B(this._flags.mode)&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==s.EQUALS&&(this._options.preserve_newlines||!D(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(g),this.print_newline()):this.handle_whitespace_and_comments(g),this._flags.do_block&&!this._flags.do_while)if(w(g,"while")){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&w(g,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===c.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&D(g,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(g),this._flags.in_case=!0;return}if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g)),w(g,"function")){(a(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(a(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&(!this._output.just_added_blankline()&&!g.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?D(this._flags.last_token,["get","set","new","export"])||D(this._flags.last_token,I)?this._output.space_before_token=!0:w(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===s.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(B(this._flags.mode)||b(this._flags.mode))||this.print_newline(),this.print_token(g),this._flags.last_word=g.text;return}var $="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?$="SPACE":D(g,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines?$="NEWLINE":($="SPACE",this._output.space_before_token=!0):$="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===c.BlockStatement?$="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&B(this._flags.mode)?$="SPACE":this._flags.last_token.type===s.STRING?$="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(a(this._last_last_text,["function","yield"])||this._flags.mode===c.ObjectLiteral&&a(this._last_last_text,["{",","]))?$="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?$="SPACE":$="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,$="NEWLINE"),D(g,l)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?$="SPACE":$="NEWLINE"),D(g,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===c.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ne=this._output.current_line;ne.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else $==="NEWLINE"?D(this._flags.last_token,R)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&D(g,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?(this._flags.last_token.type!==s.START_EXPR||!D(g,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(g,"if")&&w(g.previous,"else")?this._output.space_before_token=!0:this.print_newline()):D(g,l)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&b(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():$==="SPACE"&&(this._output.space_before_token=!0);g.previous&&(g.previous.type===s.WORD||g.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(g),this._flags.last_word=g.text,g.type===s.RESERVED&&(g.text==="do"?this._flags.do_block=!0:g.text==="if"?this._flags.if_block=!0:g.text==="import"?this._flags.import_block=!0:this._flags.import_block&&w(g,"from")&&(this._flags.import_block=!1))},M.prototype.handle_semicolon=function(g){this.start_of_statement(g)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(g);for(var H=this._tokens.peek();this._flags.mode===c.Statement&&!(this._flags.if_block&&w(H,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(g)},M.prototype.handle_string=function(g){g.text.startsWith("`")&&g.newlines===0&&g.whitespace_before===""&&(g.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(g)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(g),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g):g.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(g.previous.text==="]"||g.previous.text===")")&&g.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(g)},M.prototype.handle_equals=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0},M.prototype.handle_comma=function(g){this.handle_whitespace_and_comments(g,!0),this.print_token(g),this._output.space_before_token=!0,this._flags.declaration_statement?(B(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)):this._flags.mode===c.ObjectLiteral||this._flags.mode===c.Statement&&this._flags.parent.mode===c.ObjectLiteral?(this._flags.mode===c.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)},M.prototype.handle_operator=function(g){var H=g.text==="*"&&(D(this._flags.last_token,["function","yield"])||a(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),$=a(g.text,["-","+"])&&(a(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||a(this._flags.last_token.text,l)||this._flags.last_token.text===",");if(!this.start_of_statement(g)){var ne=!H;this.handle_whitespace_and_comments(g,ne)}if(g.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(g);return}if(g.text==="::"){this.print_token(g);return}if(this._flags.last_token.type===s.OPERATOR&&a(this._options.operator_position,T)&&this.allow_wrap_or_preserved_newline(g),g.text===":"&&this._flags.in_case){this.print_token(g),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var se=!0,Oe=!0,ge=!1;if(g.text===":"?this._flags.ternary_depth===0?se=!1:(this._flags.ternary_depth-=1,ge=!0):g.text==="?"&&(this._flags.ternary_depth+=1),!$&&!H&&this._options.preserve_newlines&&a(g.text,o)){var Te=g.text===":",Re=Te&&ge,Le=Te&&!ge;switch(this._options.operator_position){case C.before_newline:this._output.space_before_token=!Le,this.print_token(g),(!Te||Re)&&this.allow_wrap_or_preserved_newline(g),this._output.space_before_token=!0;return;case C.after_newline:this._output.space_before_token=!0,!Te||Re?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(g):this._output.space_before_token=!1,this.print_token(g),this._output.space_before_token=!0;return;case C.preserve_newline:Le||this.allow_wrap_or_preserved_newline(g),se=!(this._output.just_added_newline()||Le),this._output.space_before_token=se,this.print_token(g),this._output.space_before_token=!0;return}}if(H){this.allow_wrap_or_preserved_newline(g),se=!1;var de=this._tokens.peek();Oe=de&&a(de.type,[s.WORD,s.RESERVED])}else if(g.text==="...")this.allow_wrap_or_preserved_newline(g),se=this._flags.last_token.type===s.START_BLOCK,Oe=!1;else if(a(g.text,["--","++","!","~"])||$){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(g),se=!1,Oe=!1,g.newlines&&(g.text==="--"||g.text==="++"||g.text==="~")){var he=D(this._flags.last_token,R)&&g.newlines;he&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(he,!0)}this._flags.last_token.text===";"&&B(this._flags.mode)&&(se=!0),this._flags.last_token.type===s.RESERVED?se=!0:this._flags.last_token.type===s.END_EXPR?se=!(this._flags.last_token.text==="]"&&(g.text==="--"||g.text==="++")):this._flags.last_token.type===s.OPERATOR&&(se=a(g.text,["--","-","++","+"])&&a(this._flags.last_token.text,["--","-","++","+"]),a(g.text,["+","-"])&&a(this._flags.last_token.text,["--","++"])&&(Oe=!0)),(this._flags.mode===c.BlockStatement&&!this._flags.inline_frame||this._flags.mode===c.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||se,this.print_token(g),this._output.space_before_token=Oe},M.prototype.handle_block_comment=function(g,H){if(this._output.raw){this._output.add_raw_token(g),g.directives&&g.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(g.directives){this.print_newline(!1,H),this.print_token(g),g.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!h.newline.test(g.text)&&!g.newlines){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0;return}else this.print_block_commment(g,H)},M.prototype.print_block_commment=function(g,H){var $=y(g.text),ne,se=!1,Oe=!1,ge=g.whitespace_before,Te=ge.length;if(this.print_newline(!1,H),this.print_token_line_indentation(g),this._output.add_token($[0]),this.print_newline(!1,H),$.length>1){for($=$.slice(1),se=F($,"*"),Oe=_($,ge),se&&(this._flags.alignment=1),ne=0;ne<$.length;ne++)se?(this.print_token_line_indentation(g),this._output.add_token(O($[ne]))):Oe&&$[ne]?(this.print_token_line_indentation(g),this._output.add_token($[ne].substring(Te))):(this._output.current_line.set_indent(-1),this._output.add_token($[ne])),this.print_newline(!1,H);this._flags.alignment=0}},M.prototype.handle_comment=function(g,H){g.newlines?this.print_newline(!1,H):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(g),this.print_newline(!1,H)},M.prototype.handle_dot=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),D(this._flags.last_token,R)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(g,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(g)},M.prototype.handle_unknown=function(g,H){this.print_token(g),g.text[g.text.length-1]===` -`&&this.print_newline(!1,H)},M.prototype.handle_eof=function(g){for(;this._flags.mode===c.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g)},r.exports.Beautifier=M},function(r){function L(p){this.__parent=p,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=[]}L.prototype.clone_empty=function(){var p=new L(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},L.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},L.prototype.has_match=function(p){for(var h=this.__items.length-1;h>=0;h--)if(this.__items[h].match(p))return!0;return!1},L.prototype.set_indent=function(p,h){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=h||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},L.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)},L.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},L.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},L.prototype.is_empty=function(){return this.__items.length===0},L.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},L.prototype.push=function(p){this.__items.push(p);var h=p.lastIndexOf(` +`);return g.length&&H.push(g),H}function b(g){return g===d.ArrayLiteral}function B(g){return a(g,[d.Expression,d.ForInitializer,d.Conditional])}function F(g,H){for(var $=0;$$&&($=g.line_indent_level));var ne={mode:H,parent:g,last_token:g?g.last_token:new p(s.START_BLOCK,""),last_word:g?g.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:$,alignment:0,line_indent_level:g?g.line_indent_level:$,start_line_index:this._output.get_line_number(),ternary_depth:0};return ne},M.prototype._reset=function(g){var H=g.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new m(this._options,H),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(d.BlockStatement);var $=new f(g,this._options);return this._tokens=$.tokenize(),g},M.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var g,H=this._reset(this._source_text),$=this._options.eol;this._options.eol==="auto"&&($=` +`,H&&h.lineBreak.test(H||"")&&($=H.match(h.lineBreak)[0]));for(var ne=this._tokens.next();ne;)this.handle_token(ne),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ne,ne=this._tokens.next();return g=this._output.get_code($),g},M.prototype.handle_token=function(g,H){g.type===s.START_EXPR?this.handle_start_expr(g):g.type===s.END_EXPR?this.handle_end_expr(g):g.type===s.START_BLOCK?this.handle_start_block(g):g.type===s.END_BLOCK?this.handle_end_block(g):g.type===s.WORD?this.handle_word(g):g.type===s.RESERVED?this.handle_word(g):g.type===s.SEMICOLON?this.handle_semicolon(g):g.type===s.STRING?this.handle_string(g):g.type===s.EQUALS?this.handle_equals(g):g.type===s.OPERATOR?this.handle_operator(g):g.type===s.COMMA?this.handle_comma(g):g.type===s.BLOCK_COMMENT?this.handle_block_comment(g,H):g.type===s.COMMENT?this.handle_comment(g,H):g.type===s.DOT?this.handle_dot(g):g.type===s.EOF?this.handle_eof(g):g.type===s.UNKNOWN?this.handle_unknown(g,H):this.handle_unknown(g,H)},M.prototype.handle_whitespace_and_comments=function(g,H){var $=g.newlines,ne=this._options.keep_array_indentation&&b(this._flags.mode);if(g.comments_before)for(var se=g.comments_before.next();se;)this.handle_whitespace_and_comments(se,H),this.handle_token(se,H),se=g.comments_before.next();if(ne)for(var Oe=0;Oe<$;Oe+=1)this.print_newline(Oe>0,H);else if(this._options.max_preserve_newlines&&$>this._options.max_preserve_newlines&&($=this._options.max_preserve_newlines),this._options.preserve_newlines&&$>1){this.print_newline(!1,H);for(var ge=1;ge<$;ge+=1)this.print_newline(!0,H)}};var I=["async","break","continue","return","throw","yield"];M.prototype.allow_wrap_or_preserved_newline=function(g,H){if(H=H===void 0?!1:H,this._output.just_added_newline())return;var $=this._options.preserve_newlines&&g.newlines||H,ne=a(this._flags.last_token.text,o)||a(g.text,o);if(ne){var se=a(this._flags.last_token.text,o)&&a(this._options.operator_position,T)||a(g.text,o);$=$&&se}if($)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(D(this._flags.last_token,I))return;this._output.set_wrap_point()}},M.prototype.print_newline=function(g,H){if(!H&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var $=this._tokens.peek();this._flags.mode===d.Statement&&!(this._flags.if_block&&w($,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(g)&&(this._flags.multiline_frame=!0)},M.prototype.print_token_line_indentation=function(g){this._output.just_added_newline()&&(this._options.keep_array_indentation&&g.newlines&&(g.text==="["||b(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(g.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},M.prototype.print_token=function(g){if(this._output.raw){this._output.add_raw_token(g);return}if(this._options.comma_first&&g.previous&&g.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var H=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(H),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(g),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(g),this._output.non_breaking_space=!0,this._output.add_token(g.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},M.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},M.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},M.prototype.set_mode=function(g){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,g),this._flags=this.create_flags(this._previous_flags,g),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},M.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===d.Statement&&S(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},M.prototype.start_of_object_property=function(){return this._flags.parent.mode===d.ObjectLiteral&&this._flags.mode===d.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"]))},M.prototype.start_of_statement=function(g){var H=!1;return H=H||D(this._flags.last_token,["var","let","const"])&&g.type===s.WORD,H=H||w(this._flags.last_token,"do"),H=H||!(this._flags.parent.mode===d.ObjectLiteral&&this._flags.mode===d.Statement)&&D(this._flags.last_token,I)&&!g.newlines,H=H||w(this._flags.last_token,"else")&&!(w(g,"if")&&!g.comments_before),H=H||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===d.ForInitializer||this._previous_flags.mode===d.Conditional),H=H||this._flags.last_token.type===s.WORD&&this._flags.mode===d.BlockStatement&&!this._flags.in_case&&!(g.text==="--"||g.text==="++")&&this._last_last_text!=="function"&&g.type!==s.WORD&&g.type!==s.RESERVED,H=H||this._flags.mode===d.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"])),H?(this.set_mode(d.Statement),this.indent(),this.handle_whitespace_and_comments(g,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g,D(g,["do","for","if","while"])),!0):!1},M.prototype.handle_start_expr=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g);var H=d.Expression;if(g.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){D(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(g),this.set_mode(H),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}H=d.ArrayLiteral,b(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),a(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,H=d.ForInitializer):a(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,H=d.Conditional):a(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&g.whitespace_before===""?this._output.space_before_token=!1:(a(this._flags.last_token.text,l)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var $=this._tokens.peek(-3);if(this._options.space_after_named_function&&$){var ne=this._tokens.peek(-4);D($,["async","function"])||$.text==="*"&&D(ne,["async","function"])?this._output.space_before_token=!0:this._flags.mode===d.ObjectLiteral?($.text==="{"||$.text===","||$.text==="*"&&(ne.text==="{"||ne.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(g);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(a(this._last_last_text,["function","yield"])||this._flags.mode===d.ObjectLiteral&&a(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===s.START_BLOCK?this.print_newline():(this._flags.last_token.type===s.END_EXPR||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===s.COMMA)&&this.allow_wrap_or_preserved_newline(g,g.newlines),this.print_token(g),this.set_mode(H),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},M.prototype.handle_end_expr=function(g){for(;this._flags.mode===d.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(g,g.text==="]"&&b(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===s.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(g),this.restore_mode(),S(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===d.Conditional&&(this._previous_flags.mode=d.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},M.prototype.handle_start_block=function(g){this.handle_whitespace_and_comments(g);var H=this._tokens.peek(),$=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(d.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(d.BlockStatement):$&&(a($.text,[":",","])&&a(H.type,[s.STRING,s.WORD,s.RESERVED])||a(H.text,["get","set","..."])&&a($.type,[s.WORD,s.RESERVED]))?a(this._last_last_text,["class","interface"])&&!a($.text,[":",","])?this.set_mode(d.BlockStatement):this.set_mode(d.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(d.BlockStatement):a(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||D(this._flags.last_token,["return","throw","import","default"])?this.set_mode(d.ObjectLiteral):this.set_mode(d.BlockStatement),this._flags.last_token&&(D(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var ne=!H.comments_before&&H.text==="}",se=ne&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var Oe=0,ge=null;this._flags.inline_frame=!0;do if(Oe+=1,ge=this._tokens.peek(Oe-1),ge.newlines){this._flags.inline_frame=!1;break}while(ge.type!==s.EOF&&!(ge.type===s.END_BLOCK&&ge.opened===g))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(se||this._flags.last_token.type===s.EQUALS||D(this._flags.last_token,R)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(b(this._previous_flags.mode)&&(this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.COMMA)&&((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(g),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(this._flags.last_token.type===s.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(g),this.indent(),!ne&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},M.prototype.handle_end_block=function(g){for(this.handle_whitespace_and_comments(g);this._flags.mode===d.Statement;)this.restore_mode();var H=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!H?this._output.space_before_token=!0:this._options.brace_style==="expand"?H||this.print_newline():H||(b(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(g)},M.prototype.handle_word=function(g){if(g.type===s.RESERVED){if(a(g.text,["set","get"])&&this._flags.mode!==d.ObjectLiteral)g.type=s.WORD;else if(g.text==="import"&&a(this._tokens.peek().text,["(","."]))g.type=s.WORD;else if(a(g.text,["as","from"])&&!this._flags.import_block)g.type=s.WORD;else if(this._flags.mode===d.ObjectLiteral){var H=this._tokens.peek();H.text===":"&&(g.type=s.WORD)}}if(this.start_of_statement(g)?D(this._flags.last_token,["var","let","const"])&&g.type===s.WORD&&(this._flags.declaration_statement=!0):g.newlines&&!B(this._flags.mode)&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==s.EQUALS&&(this._options.preserve_newlines||!D(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(g),this.print_newline()):this.handle_whitespace_and_comments(g),this._flags.do_block&&!this._flags.do_while)if(w(g,"while")){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&w(g,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===d.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&D(g,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(g),this._flags.in_case=!0;return}if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g)),w(g,"function")){(a(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(a(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&(!this._output.just_added_blankline()&&!g.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?D(this._flags.last_token,["get","set","new","export"])||D(this._flags.last_token,I)?this._output.space_before_token=!0:w(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===s.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(B(this._flags.mode)||b(this._flags.mode))||this.print_newline(),this.print_token(g),this._flags.last_word=g.text;return}var $="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?$="SPACE":D(g,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines?$="NEWLINE":($="SPACE",this._output.space_before_token=!0):$="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===d.BlockStatement?$="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&B(this._flags.mode)?$="SPACE":this._flags.last_token.type===s.STRING?$="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(a(this._last_last_text,["function","yield"])||this._flags.mode===d.ObjectLiteral&&a(this._last_last_text,["{",","]))?$="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?$="SPACE":$="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,$="NEWLINE"),D(g,l)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?$="SPACE":$="NEWLINE"),D(g,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===d.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ne=this._output.current_line;ne.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else $==="NEWLINE"?D(this._flags.last_token,R)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&D(g,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?(this._flags.last_token.type!==s.START_EXPR||!D(g,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(g,"if")&&w(g.previous,"else")?this._output.space_before_token=!0:this.print_newline()):D(g,l)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&b(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():$==="SPACE"&&(this._output.space_before_token=!0);g.previous&&(g.previous.type===s.WORD||g.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(g),this._flags.last_word=g.text,g.type===s.RESERVED&&(g.text==="do"?this._flags.do_block=!0:g.text==="if"?this._flags.if_block=!0:g.text==="import"?this._flags.import_block=!0:this._flags.import_block&&w(g,"from")&&(this._flags.import_block=!1))},M.prototype.handle_semicolon=function(g){this.start_of_statement(g)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(g);for(var H=this._tokens.peek();this._flags.mode===d.Statement&&!(this._flags.if_block&&w(H,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(g)},M.prototype.handle_string=function(g){g.text.startsWith("`")&&g.newlines===0&&g.whitespace_before===""&&(g.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(g)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(g),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g):g.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(g.previous.text==="]"||g.previous.text===")")&&g.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(g)},M.prototype.handle_equals=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0},M.prototype.handle_comma=function(g){this.handle_whitespace_and_comments(g,!0),this.print_token(g),this._output.space_before_token=!0,this._flags.declaration_statement?(B(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)):this._flags.mode===d.ObjectLiteral||this._flags.mode===d.Statement&&this._flags.parent.mode===d.ObjectLiteral?(this._flags.mode===d.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)},M.prototype.handle_operator=function(g){var H=g.text==="*"&&(D(this._flags.last_token,["function","yield"])||a(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),$=a(g.text,["-","+"])&&(a(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||a(this._flags.last_token.text,l)||this._flags.last_token.text===",");if(!this.start_of_statement(g)){var ne=!H;this.handle_whitespace_and_comments(g,ne)}if(g.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(g);return}if(g.text==="::"){this.print_token(g);return}if(this._flags.last_token.type===s.OPERATOR&&a(this._options.operator_position,T)&&this.allow_wrap_or_preserved_newline(g),g.text===":"&&this._flags.in_case){this.print_token(g),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var se=!0,Oe=!0,ge=!1;if(g.text===":"?this._flags.ternary_depth===0?se=!1:(this._flags.ternary_depth-=1,ge=!0):g.text==="?"&&(this._flags.ternary_depth+=1),!$&&!H&&this._options.preserve_newlines&&a(g.text,o)){var Te=g.text===":",Re=Te&&ge,Le=Te&&!ge;switch(this._options.operator_position){case C.before_newline:this._output.space_before_token=!Le,this.print_token(g),(!Te||Re)&&this.allow_wrap_or_preserved_newline(g),this._output.space_before_token=!0;return;case C.after_newline:this._output.space_before_token=!0,!Te||Re?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(g):this._output.space_before_token=!1,this.print_token(g),this._output.space_before_token=!0;return;case C.preserve_newline:Le||this.allow_wrap_or_preserved_newline(g),se=!(this._output.just_added_newline()||Le),this._output.space_before_token=se,this.print_token(g),this._output.space_before_token=!0;return}}if(H){this.allow_wrap_or_preserved_newline(g),se=!1;var ce=this._tokens.peek();Oe=ce&&a(ce.type,[s.WORD,s.RESERVED])}else if(g.text==="...")this.allow_wrap_or_preserved_newline(g),se=this._flags.last_token.type===s.START_BLOCK,Oe=!1;else if(a(g.text,["--","++","!","~"])||$){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(g),se=!1,Oe=!1,g.newlines&&(g.text==="--"||g.text==="++"||g.text==="~")){var he=D(this._flags.last_token,R)&&g.newlines;he&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(he,!0)}this._flags.last_token.text===";"&&B(this._flags.mode)&&(se=!0),this._flags.last_token.type===s.RESERVED?se=!0:this._flags.last_token.type===s.END_EXPR?se=!(this._flags.last_token.text==="]"&&(g.text==="--"||g.text==="++")):this._flags.last_token.type===s.OPERATOR&&(se=a(g.text,["--","-","++","+"])&&a(this._flags.last_token.text,["--","-","++","+"]),a(g.text,["+","-"])&&a(this._flags.last_token.text,["--","++"])&&(Oe=!0)),(this._flags.mode===d.BlockStatement&&!this._flags.inline_frame||this._flags.mode===d.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||se,this.print_token(g),this._output.space_before_token=Oe},M.prototype.handle_block_comment=function(g,H){if(this._output.raw){this._output.add_raw_token(g),g.directives&&g.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(g.directives){this.print_newline(!1,H),this.print_token(g),g.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!h.newline.test(g.text)&&!g.newlines){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0;return}else this.print_block_commment(g,H)},M.prototype.print_block_commment=function(g,H){var $=y(g.text),ne,se=!1,Oe=!1,ge=g.whitespace_before,Te=ge.length;if(this.print_newline(!1,H),this.print_token_line_indentation(g),this._output.add_token($[0]),this.print_newline(!1,H),$.length>1){for($=$.slice(1),se=F($,"*"),Oe=_($,ge),se&&(this._flags.alignment=1),ne=0;ne<$.length;ne++)se?(this.print_token_line_indentation(g),this._output.add_token(O($[ne]))):Oe&&$[ne]?(this.print_token_line_indentation(g),this._output.add_token($[ne].substring(Te))):(this._output.current_line.set_indent(-1),this._output.add_token($[ne])),this.print_newline(!1,H);this._flags.alignment=0}},M.prototype.handle_comment=function(g,H){g.newlines?this.print_newline(!1,H):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(g),this.print_newline(!1,H)},M.prototype.handle_dot=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),D(this._flags.last_token,R)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(g,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(g)},M.prototype.handle_unknown=function(g,H){this.print_token(g),g.text[g.text.length-1]===` +`&&this.print_newline(!1,H)},M.prototype.handle_eof=function(g){for(;this._flags.mode===d.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g)},r.exports.Beautifier=M},function(r){function L(p){this.__parent=p,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=[]}L.prototype.clone_empty=function(){var p=new L(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},L.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},L.prototype.has_match=function(p){for(var h=this.__items.length-1;h>=0;h--)if(this.__items[h].match(p))return!0;return!1},L.prototype.set_indent=function(p,h){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=h||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},L.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)},L.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},L.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},L.prototype.is_empty=function(){return this.__items.length===0},L.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},L.prototype.push=function(p){this.__items.push(p);var h=p.lastIndexOf(` `);h!==-1?this.__character_count=p.length-h:this.__character_count+=p.length},L.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},L.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},L.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},L.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},L.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function v(p,h){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),h=h||"",p.indent_level>0&&(h=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=h,this.__base_string_length=h.length}v.prototype.get_indent_size=function(p,h){var u=this.__base_string_length;return h=h||0,p<0&&(u=0),u+=p*this.__indent_size,u+=h,u},v.prototype.get_indent_string=function(p,h){var u=this.__base_string;return h=h||0,p<0&&(p=0,u=""),h+=p*this.__indent_size,this.__ensure_cache(h),u+=this.__cache[h],u},v.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},v.prototype.__add_column=function(){var p=this.__cache.length,h=0,u="";this.__indent_size&&p>=this.__indent_size&&(h=Math.floor(p/this.__indent_size),p-=h*this.__indent_size,u=new Array(h+1).join(this.__indent_string)),p&&(u+=new Array(p+1).join(" ")),this.__cache.push(u)};function m(p,h){this.__indent_cache=new v(p,h),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new L(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}m.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},m.prototype.get_line_number=function(){return this.__lines.length},m.prototype.get_indent_string=function(p,h){return this.__indent_cache.get_indent_string(p,h)},m.prototype.get_indent_size=function(p,h){return this.__indent_cache.get_indent_size(p,h)},m.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},m.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},m.prototype.get_code=function(p){this.trim(!0);var h=this.current_line.pop();h&&(h[h.length-1]===` `&&(h=h.replace(/\n+$/g,"")),this.current_line.push(h)),this._end_with_newline&&this.__add_outputline();var u=this.__lines.join(` `);return p!==` @@ -15,16 +15,16 @@ `+h+` You passed in: '`+this.raw_options[p]+"'");return f[0]},L.prototype._get_selection_list=function(p,h,u){if(!h||h.length===0)throw new Error("Selection list cannot be empty.");if(u=u||[h[0]],!this._is_valid_selection(u,h))throw new Error("Invalid Default Value!");var f=this._get_array(p,u);if(!this._is_valid_selection(f,h))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values: `+h+` -You passed in: '`+this.raw_options[p]+"'");return f},L.prototype._is_valid_selection=function(p,h){return p.length&&h.length&&!p.some(function(u){return h.indexOf(u)===-1})};function v(p,h){var u={};p=m(p);var f;for(f in p)f!==h&&(u[f]=p[f]);if(h&&p[h])for(f in p[h])u[f]=p[h][f];return u}function m(p){var h={},u;for(u in p){var f=u.replace(/-/g,"_");h[f]=p[u]}return h}r.exports.Options=L,r.exports.normalizeOpts=m,r.exports.mergeOpts=v},function(r,L,v){var m=v(8).InputScanner,p=v(9).Tokenizer,h=v(9).TOKEN,u=v(13).Directives,f=v(4),l=v(12).Pattern,o=v(14).TemplatablePattern;function s(F,_){return _.indexOf(F)!==-1}var a={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:h.START,RAW:h.RAW,EOF:h.EOF},O=new u(/\/\*/,/\*\//),E=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,w=/[0-9]/,D=/[^\d\.]/,R=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),A=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";A=A.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),A="\\?\\.(?!\\d) "+A,A=A.replace(/ /g,"|");var C=new RegExp(A),T="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),c=T.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),S=new RegExp("^(?:"+c.join("|")+")$"),y,b=function(F,_){p.call(this,F,_),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var M=new l(this._input),I=new o(this._input).read_options(this._options);this.__patterns={template:I,identifier:I.starting_with(f.identifier).matching(f.identifierMatch),number:M.matching(E),punct:M.matching(C),comment:M.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:M.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:M.matching(//),include:M.starting_with(/#include/).until_after(f.lineBreak),shebang:M.starting_with(/#!/).until_after(f.lineBreak),xml:M.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:I.until(/['\\\n\r\u2028\u2029]/),double_quote:I.until(/["\\\n\r\u2028\u2029]/),template_text:I.until(/[`\\$]/),template_expression:I.until(/[`}\\]/)}};b.prototype=new p,b.prototype._is_comment=function(F){return F.type===a.COMMENT||F.type===a.BLOCK_COMMENT||F.type===a.UNKNOWN},b.prototype._is_opening=function(F){return F.type===a.START_BLOCK||F.type===a.START_EXPR},b.prototype._is_closing=function(F,_){return(F.type===a.END_BLOCK||F.type===a.END_EXPR)&&_&&(F.text==="]"&&_.text==="["||F.text===")"&&_.text==="("||F.text==="}"&&_.text==="{")},b.prototype._reset=function(){y=!1},b.prototype._get_next_token=function(F,_){var M=null;this._readWhitespace();var I=this._input.peek();return I===null?this._create_token(a.EOF,""):(M=M||this._read_non_javascript(I),M=M||this._read_string(I),M=M||this._read_word(F),M=M||this._read_singles(I),M=M||this._read_comment(I),M=M||this._read_regexp(I,F),M=M||this._read_xml(I,F),M=M||this._read_punctuation(),M=M||this._create_token(a.UNKNOWN,this._input.next()),M)},b.prototype._read_word=function(F){var _;if(_=this.__patterns.identifier.read(),_!=="")return _=_.replace(f.allLineBreaks,` +You passed in: '`+this.raw_options[p]+"'");return f},L.prototype._is_valid_selection=function(p,h){return p.length&&h.length&&!p.some(function(u){return h.indexOf(u)===-1})};function v(p,h){var u={};p=m(p);var f;for(f in p)f!==h&&(u[f]=p[f]);if(h&&p[h])for(f in p[h])u[f]=p[h][f];return u}function m(p){var h={},u;for(u in p){var f=u.replace(/-/g,"_");h[f]=p[u]}return h}r.exports.Options=L,r.exports.normalizeOpts=m,r.exports.mergeOpts=v},function(r,L,v){var m=v(8).InputScanner,p=v(9).Tokenizer,h=v(9).TOKEN,u=v(13).Directives,f=v(4),l=v(12).Pattern,o=v(14).TemplatablePattern;function s(F,_){return _.indexOf(F)!==-1}var a={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:h.START,RAW:h.RAW,EOF:h.EOF},O=new u(/\/\*/,/\*\//),E=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,w=/[0-9]/,D=/[^\d\.]/,R=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),A=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";A=A.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),A="\\?\\.(?!\\d) "+A,A=A.replace(/ /g,"|");var C=new RegExp(A),T="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),d=T.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),S=new RegExp("^(?:"+d.join("|")+")$"),y,b=function(F,_){p.call(this,F,_),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var M=new l(this._input),I=new o(this._input).read_options(this._options);this.__patterns={template:I,identifier:I.starting_with(f.identifier).matching(f.identifierMatch),number:M.matching(E),punct:M.matching(C),comment:M.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:M.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:M.matching(//),include:M.starting_with(/#include/).until_after(f.lineBreak),shebang:M.starting_with(/#!/).until_after(f.lineBreak),xml:M.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:I.until(/['\\\n\r\u2028\u2029]/),double_quote:I.until(/["\\\n\r\u2028\u2029]/),template_text:I.until(/[`\\$]/),template_expression:I.until(/[`}\\]/)}};b.prototype=new p,b.prototype._is_comment=function(F){return F.type===a.COMMENT||F.type===a.BLOCK_COMMENT||F.type===a.UNKNOWN},b.prototype._is_opening=function(F){return F.type===a.START_BLOCK||F.type===a.START_EXPR},b.prototype._is_closing=function(F,_){return(F.type===a.END_BLOCK||F.type===a.END_EXPR)&&_&&(F.text==="]"&&_.text==="["||F.text===")"&&_.text==="("||F.text==="}"&&_.text==="{")},b.prototype._reset=function(){y=!1},b.prototype._get_next_token=function(F,_){var M=null;this._readWhitespace();var I=this._input.peek();return I===null?this._create_token(a.EOF,""):(M=M||this._read_non_javascript(I),M=M||this._read_string(I),M=M||this._read_word(F),M=M||this._read_singles(I),M=M||this._read_comment(I),M=M||this._read_regexp(I,F),M=M||this._read_xml(I,F),M=M||this._read_punctuation(),M=M||this._create_token(a.UNKNOWN,this._input.next()),M)},b.prototype._read_word=function(F){var _;if(_=this.__patterns.identifier.read(),_!=="")return _=_.replace(f.allLineBreaks,` `),!(F.type===a.DOT||F.type===a.RESERVED&&(F.text==="set"||F.text==="get"))&&S.test(_)?(_==="in"||_==="of")&&(F.type===a.WORD||F.type===a.STRING)?this._create_token(a.OPERATOR,_):this._create_token(a.RESERVED,_):this._create_token(a.WORD,_);if(_=this.__patterns.number.read(),_!=="")return this._create_token(a.WORD,_)},b.prototype._read_singles=function(F){var _=null;return F==="("||F==="["?_=this._create_token(a.START_EXPR,F):F===")"||F==="]"?_=this._create_token(a.END_EXPR,F):F==="{"?_=this._create_token(a.START_BLOCK,F):F==="}"?_=this._create_token(a.END_BLOCK,F):F===";"?_=this._create_token(a.SEMICOLON,F):F==="."&&D.test(this._input.peek(1))?_=this._create_token(a.DOT,F):F===","&&(_=this._create_token(a.COMMA,F)),_&&this._input.next(),_},b.prototype._read_punctuation=function(){var F=this.__patterns.punct.read();if(F!=="")return F==="="?this._create_token(a.EQUALS,F):F==="?."?this._create_token(a.DOT,F):this._create_token(a.OPERATOR,F)},b.prototype._read_non_javascript=function(F){var _="";if(F==="#"){if(this._is_first_token()&&(_=this.__patterns.shebang.read(),_))return this._create_token(a.UNKNOWN,_.trim()+` `);if(_=this.__patterns.include.read(),_)return this._create_token(a.UNKNOWN,_.trim()+` `);F=this._input.next();var M="#";if(this._input.hasNext()&&this._input.testChar(w)){do F=this._input.next(),M+=F;while(this._input.hasNext()&&F!=="#"&&F!=="=");return F==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(M+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(M+="{}",this._input.next(),this._input.next())),this._create_token(a.WORD,M)}this._input.back()}else if(F==="<"&&this._is_first_token()){if(_=this.__patterns.html_comment_start.read(),_){for(;this._input.hasNext()&&!this._input.testChar(f.newline);)_+=this._input.next();return y=!0,this._create_token(a.COMMENT,_)}}else if(y&&F==="-"&&(_=this.__patterns.html_comment_end.read(),_))return y=!1,this._create_token(a.COMMENT,_);return null},b.prototype._read_comment=function(F){var _=null;if(F==="/"){var M="";if(this._input.peek(1)==="*"){M=this.__patterns.block_comment.read();var I=O.get_directives(M);I&&I.ignore==="start"&&(M+=O.readIgnored(this._input)),M=M.replace(f.allLineBreaks,` `),_=this._create_token(a.BLOCK_COMMENT,M),_.directives=I}else this._input.peek(1)==="/"&&(M=this.__patterns.comment.read(),_=this._create_token(a.COMMENT,M))}return _},b.prototype._read_string=function(F){if(F==="`"||F==="'"||F==='"'){var _=this._input.next();return this.has_char_escapes=!1,F==="`"?_+=this._read_string_recursive("`",!0,"${"):_+=this._read_string_recursive(F),this.has_char_escapes&&this._options.unescape_strings&&(_=B(_)),this._input.peek()===F&&(_+=this._input.next()),_=_.replace(f.allLineBreaks,` `),this._create_token(a.STRING,_)}return null},b.prototype._allow_regexp_or_xml=function(F){return F.type===a.RESERVED&&s(F.text,["return","case","throw","else","do","typeof","yield"])||F.type===a.END_EXPR&&F.text===")"&&F.opened.previous.type===a.RESERVED&&s(F.opened.previous.text,["if","while","for"])||s(F.type,[a.COMMENT,a.START_EXPR,a.START_BLOCK,a.START,a.END_BLOCK,a.OPERATOR,a.EQUALS,a.EOF,a.SEMICOLON,a.COMMA])},b.prototype._read_regexp=function(F,_){if(F==="/"&&this._allow_regexp_or_xml(_)){for(var M=this._input.next(),I=!1,g=!1;this._input.hasNext()&&(I||g||this._input.peek()!==F)&&!this._input.testChar(f.newline);)M+=this._input.peek(),I?I=!1:(I=this._input.peek()==="\\",this._input.peek()==="["?g=!0:this._input.peek()==="]"&&(g=!1)),this._input.next();return this._input.peek()===F&&(M+=this._input.next(),M+=this._input.read(f.identifier)),this._create_token(a.STRING,M)}return null},b.prototype._read_xml=function(F,_){if(this._options.e4x&&F==="<"&&this._allow_regexp_or_xml(_)){var M="",I=this.__patterns.xml.read_match();if(I){for(var g=I[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),H=g.indexOf("{")===0,$=0;I;){var ne=!!I[1],se=I[2],Oe=!!I[I.length-1]||se.slice(0,8)==="![CDATA[";if(!Oe&&(se===g||H&&se.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(ne?--$:++$),M+=I[0],$<=0)break;I=this.__patterns.xml.read_match()}return I||(M+=this._input.match(/[\s\S]*/g)[0]),M=M.replace(f.allLineBreaks,` `),this._create_token(a.STRING,M)}}return null};function B(F){for(var _="",M=0,I=new m(F),g=null;I.hasNext();)if(g=I.match(/([\s]|[^\\]|\\\\)+/g),g&&(_+=g[0]),I.peek()==="\\"){if(I.next(),I.peek()==="x")g=I.match(/x([0-9A-Fa-f]{2})/g);else if(I.peek()==="u")g=I.match(/u([0-9A-Fa-f]{4})/g);else{_+="\\",I.hasNext()&&(_+=I.next());continue}if(!g)return F;if(M=parseInt(g[1],16),M>126&&M<=255&&g[0].indexOf("x")===0)return F;if(M>=0&&M<32){_+="\\"+g[0];continue}else M===34||M===39||M===92?_+="\\"+String.fromCharCode(M):_+=String.fromCharCode(M)}return _}b.prototype._read_string_recursive=function(F,_,M){var I,g;F==="'"?g=this.__patterns.single_quote:F==='"'?g=this.__patterns.double_quote:F==="`"?g=this.__patterns.template_text:F==="}"&&(g=this.__patterns.template_expression);for(var H=g.read(),$="";this._input.hasNext();){if($=this._input.next(),$===F||!_&&f.newline.test($)){this._input.back();break}else $==="\\"&&this._input.hasNext()?(I=this._input.peek(),I==="x"||I==="u"?this.has_char_escapes=!0:I==="\r"&&this._input.peek(1)===` -`&&this._input.next(),$+=this._input.next()):M&&(M==="${"&&$==="$"&&this._input.peek()==="{"&&($+=this._input.next()),M===$&&(F==="`"?$+=this._read_string_recursive("}",_,"`"):$+=this._read_string_recursive("`",_,"${"),this._input.hasNext()&&($+=this._input.next())));$+=g.read(),H+=$}return H},r.exports.Tokenizer=b,r.exports.TOKEN=a,r.exports.positionable_operators=R.slice(),r.exports.line_starters=T.slice()},function(r){var L=RegExp.prototype.hasOwnProperty("sticky");function v(m){this.__input=m||"",this.__input_length=this.__input.length,this.__position=0}v.prototype.restart=function(){this.__position=0},v.prototype.back=function(){this.__position>0&&(this.__position-=1)},v.prototype.hasNext=function(){return this.__position=0&&m=0&&p=m.length&&this.__input.substring(p-m.length,p).toLowerCase()===m},r.exports.InputScanner=v},function(r,L,v){var m=v(8).InputScanner,p=v(3).Token,h=v(10).TokenStream,u=v(11).WhitespacePattern,f={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(o,s){this._input=new m(o),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new u(this._input)};l.prototype.tokenize=function(){this._input.restart(),this.__tokens=new h,this._reset();for(var o,s=new p(f.START,""),a=null,O=[],E=new h;s.type!==f.EOF;){for(o=this._get_next_token(s,a);this._is_comment(o);)E.add(o),o=this._get_next_token(s,a);E.isEmpty()||(o.comments_before=E,E=new h),o.parent=a,this._is_opening(o)?(O.push(a),a=o):a&&this._is_closing(o,a)&&(o.opened=a,a.closed=o,a=O.pop(),o.parent=a),o.previous=s,s.next=o,this.__tokens.add(o),s=o}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(o,s){this._readWhitespace();var a=this._input.read(/.+/g);return a?this._create_token(f.RAW,a):this._create_token(f.EOF,"")},l.prototype._is_comment=function(o){return!1},l.prototype._is_opening=function(o){return!1},l.prototype._is_closing=function(o,s){return!1},l.prototype._create_token=function(o,s){var a=new p(o,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return a},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=l,r.exports.TOKEN=f},function(r){function L(v){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=v}L.prototype.restart=function(){this.__position=0},L.prototype.isEmpty=function(){return this.__tokens_length===0},L.prototype.hasNext=function(){return this.__position=0&&v/),erb:l.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:l.starting_with(/{%/).until_after(/%}/),django_value:l.starting_with(/{{/).until_after(/}}/),django_comment:l.starting_with(/{#/).until_after(/#}/),smarty:l.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:l.starting_with(/{\*/).until_after(/\*}/),smarty_literal:l.starting_with(/{literal}/).until_after(/{\/literal}/)}}h.prototype=new m,h.prototype._create=function(){return new h(this._input,this)},h.prototype._update=function(){this.__set_templated_pattern()},h.prototype.disable=function(u){var f=this._create();return f._disabled[u]=!0,f._update(),f},h.prototype.read_options=function(u){var f=this._create();for(var l in p)f._disabled[l]=u.templating.indexOf(l)===-1;return f._update(),f},h.prototype.exclude=function(u){var f=this._create();return f._excluded[u]=!0,f._update(),f},h.prototype.read=function(){var u="";this._match_pattern?u=this._input.read(this._starting_pattern):u=this._input.read(this._starting_pattern,this.__template_pattern);for(var f=this._read_template();f;)this._match_pattern?f+=this._input.read(this._match_pattern):f+=this._input.readUntil(this.__template_pattern),u+=f,f=this._read_template();return this._until_after&&(u+=this._input.readUntilAfter(this._until_pattern)),u},h.prototype.__set_templated_pattern=function(){var u=[];this._disabled.php||u.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||u.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||u.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(u.push(this.__patterns.django._starting_pattern.source),u.push(this.__patterns.django_value._starting_pattern.source),u.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||u.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&u.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+u.join("|")+")")},h.prototype._read_template=function(){var u="",f=this._input.peek();if(f==="<"){var l=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&l==="?"&&(u=u||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&l==="%"&&(u=u||this.__patterns.erb.read())}else f==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(u=u||this.__patterns.handlebars_comment.read(),u=u||this.__patterns.handlebars_unescaped.read(),u=u||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(u=u||this.__patterns.django_value.read()),this._excluded.django||(u=u||this.__patterns.django_comment.read(),u=u||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(u=u||this.__patterns.smarty_comment.read(),u=u||this.__patterns.smarty_literal.read(),u=u||this.__patterns.smarty.read()));return u},r.exports.TemplatablePattern=h}],U={};function K(r){var L=U[r];if(L!==void 0)return L.exports;var v=U[r]={exports:{}};return j[r](v,v.exports,K),v.exports}var G=K(0);P=G})();var X=P;!(ie=[],J=function(){return{js_beautify:X}}.apply(be,ie),J!==void 0&&(rt.exports=J))})()},"746U":function(rt,be,Z){"use strict";Z.d(be,"f",function(){return ie}),Z.d(be,"l",function(){return J}),Z.d(be,"k",function(){return P}),Z.d(be,"j",function(){return X}),Z.d(be,"g",function(){return j}),Z.d(be,"m",function(){return U}),Z.d(be,"h",function(){return K}),Z.d(be,"n",function(){return G}),Z.d(be,"c",function(){return r}),Z.d(be,"a",function(){return L}),Z.d(be,"i",function(){return v}),Z.d(be,"o",function(){return m}),Z.d(be,"e",function(){return u}),Z.d(be,"d",function(){return f}),Z.d(be,"p",function(){return l}),Z.d(be,"b",function(){return o});function ie(s){return Array.isArray(s)}function J(s){return typeof s=="string"}function P(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function X(s){return typeof s=="number"&&!isNaN(s)}function j(s){return s===!0||s===!1}function U(s){return typeof s=="undefined"}function K(s){return!G(s)}function G(s){return U(s)||s===null}function r(s,a){if(!s)throw new Error(a?`Unexpected type, expected '${a}'`:"Unexpected type")}function L(s){if(G(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function v(s){return typeof s=="function"}function m(s,a){const O=Math.min(s.length,a.length);for(let E=0;Efunction(){const D=Array.prototype.slice.call(arguments,0);return a(w,D)};let E={};for(const w of s)E[w]=O(w);return E}function l(s){return s===null?void 0:s}function o(s,a="Unreachable"){throw new Error(a)}},"7Cbv":function(rt,be,Z){"use strict";var ie=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),J=new Uint8Array(16);function P(){if(!ie)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ie(J)}var X=/^(?:[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 j(p){return typeof p=="string"&&X.test(p)}for(var U=j,K=[],G=0;G<256;++G)K.push((G+256).toString(16).substr(1));function r(p){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=(K[p[h+0]]+K[p[h+1]]+K[p[h+2]]+K[p[h+3]]+"-"+K[p[h+4]]+K[p[h+5]]+"-"+K[p[h+6]]+K[p[h+7]]+"-"+K[p[h+8]]+K[p[h+9]]+"-"+K[p[h+10]]+K[p[h+11]]+K[p[h+12]]+K[p[h+13]]+K[p[h+14]]+K[p[h+15]]).toLowerCase();if(!U(u))throw TypeError("Stringified UUID is invalid");return u}var L=r;function v(p,h,u){p=p||{};var f=p.random||(p.rng||P)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,h){u=u||0;for(var l=0;l<16;++l)h[u+l]=f[l];return h}return L(f)}var m=be.a=v},"7ahc":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return O});var ie=Z("k1fw"),J=Z("0Owb"),P=Z("+L6B"),X=Z("2/Rp"),j=Z("y8nQ"),U=Z("Vl3Y"),K=Z("tJVT"),G=Z("OaEy"),r=Z("2fM7"),L=Z("q1tI"),v=Z.n(L),m=Z("VrN/"),p=Z.n(m),h=Z("p77/"),u=Z.n(h),f=Z("c5Ni"),l=Z.n(f),o=r.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},a={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"]};be.b=function(E){var w=E.callback,D=E.onCancel,R=Object(L.useState)("python"),A=Object(K.a)(R,2),C=A[0],T=A[1];function c(y){T(a[y][1])}function S(y){w(y)}return v.a.createElement(U.a,Object(J.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:S}),v.a.createElement(U.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},v.a.createElement(r.a,{onChange:c},Object.keys(a).map(function(y){return v.a.createElement(o,{key:y,value:y},a[y][0])}))),v.a.createElement(U.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},v.a.createElement(O,{mode:C})),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(X.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(X.a,{type:"ghost",onClick:D},"\u53D6\u6D88")))};function O(E){var w=E.value,D=E.onChange,R=E.mode,A=E.options,C=A===void 0?{}:A,T=Object(L.useRef)(),c=Object(L.useState)(),S=Object(K.a)(c,2),y=S[0],b=S[1];return Object(L.useEffect)(function(){if(y){function B(F){var _=F.getValue();D&&D(_)}return y.on("change",B),function(){y.off("change",B)}}},[y,D]),Object(L.useEffect)(function(){y&&y.setOption("mode",R)},[y,R]),Object(L.useEffect)(function(){y&&((w!==y.getValue()||w==="")&&setTimeout(function(){y.setValue(w||" ")},300))},[y,w]),Object(L.useEffect)(function(){if(T.current&&!y){var B=p.a.fromTextArea(T.current,Object(ie.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},C));b(B)}},[T.current,y]),v.a.createElement("div",{className:"my-codemirror-container"},v.a.createElement("textarea",{ref:T}))}},"8EBN":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";ie.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 J=0;J-1&&X.substring(K+1,X.length);if(G)return ie.findModeByExtension(G)},ie.findModeByName=function(X){X=X.toLowerCase();for(var j=0;j0&&(this.__position-=1)},v.prototype.hasNext=function(){return this.__position=0&&m=0&&p=m.length&&this.__input.substring(p-m.length,p).toLowerCase()===m},r.exports.InputScanner=v},function(r,L,v){var m=v(8).InputScanner,p=v(3).Token,h=v(10).TokenStream,u=v(11).WhitespacePattern,f={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(o,s){this._input=new m(o),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new u(this._input)};l.prototype.tokenize=function(){this._input.restart(),this.__tokens=new h,this._reset();for(var o,s=new p(f.START,""),a=null,O=[],E=new h;s.type!==f.EOF;){for(o=this._get_next_token(s,a);this._is_comment(o);)E.add(o),o=this._get_next_token(s,a);E.isEmpty()||(o.comments_before=E,E=new h),o.parent=a,this._is_opening(o)?(O.push(a),a=o):a&&this._is_closing(o,a)&&(o.opened=a,a.closed=o,a=O.pop(),o.parent=a),o.previous=s,s.next=o,this.__tokens.add(o),s=o}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(o,s){this._readWhitespace();var a=this._input.read(/.+/g);return a?this._create_token(f.RAW,a):this._create_token(f.EOF,"")},l.prototype._is_comment=function(o){return!1},l.prototype._is_opening=function(o){return!1},l.prototype._is_closing=function(o,s){return!1},l.prototype._create_token=function(o,s){var a=new p(o,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return a},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=l,r.exports.TOKEN=f},function(r){function L(v){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=v}L.prototype.restart=function(){this.__position=0},L.prototype.isEmpty=function(){return this.__tokens_length===0},L.prototype.hasNext=function(){return this.__position=0&&v/),erb:l.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:l.starting_with(/{%/).until_after(/%}/),django_value:l.starting_with(/{{/).until_after(/}}/),django_comment:l.starting_with(/{#/).until_after(/#}/),smarty:l.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:l.starting_with(/{\*/).until_after(/\*}/),smarty_literal:l.starting_with(/{literal}/).until_after(/{\/literal}/)}}h.prototype=new m,h.prototype._create=function(){return new h(this._input,this)},h.prototype._update=function(){this.__set_templated_pattern()},h.prototype.disable=function(u){var f=this._create();return f._disabled[u]=!0,f._update(),f},h.prototype.read_options=function(u){var f=this._create();for(var l in p)f._disabled[l]=u.templating.indexOf(l)===-1;return f._update(),f},h.prototype.exclude=function(u){var f=this._create();return f._excluded[u]=!0,f._update(),f},h.prototype.read=function(){var u="";this._match_pattern?u=this._input.read(this._starting_pattern):u=this._input.read(this._starting_pattern,this.__template_pattern);for(var f=this._read_template();f;)this._match_pattern?f+=this._input.read(this._match_pattern):f+=this._input.readUntil(this.__template_pattern),u+=f,f=this._read_template();return this._until_after&&(u+=this._input.readUntilAfter(this._until_pattern)),u},h.prototype.__set_templated_pattern=function(){var u=[];this._disabled.php||u.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||u.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||u.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(u.push(this.__patterns.django._starting_pattern.source),u.push(this.__patterns.django_value._starting_pattern.source),u.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||u.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&u.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+u.join("|")+")")},h.prototype._read_template=function(){var u="",f=this._input.peek();if(f==="<"){var l=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&l==="?"&&(u=u||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&l==="%"&&(u=u||this.__patterns.erb.read())}else f==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(u=u||this.__patterns.handlebars_comment.read(),u=u||this.__patterns.handlebars_unescaped.read(),u=u||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(u=u||this.__patterns.django_value.read()),this._excluded.django||(u=u||this.__patterns.django_comment.read(),u=u||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(u=u||this.__patterns.smarty_comment.read(),u=u||this.__patterns.smarty_literal.read(),u=u||this.__patterns.smarty.read()));return u},r.exports.TemplatablePattern=h}],U={};function K(r){var L=U[r];if(L!==void 0)return L.exports;var v=U[r]={exports:{}};return j[r](v,v.exports,K),v.exports}var G=K(0);P=G})();var X=P;!(ie=[],J=function(){return{js_beautify:X}}.apply(be,ie),J!==void 0&&(rt.exports=J))})()},"746U":function(rt,be,Z){"use strict";Z.d(be,"f",function(){return ie}),Z.d(be,"l",function(){return J}),Z.d(be,"k",function(){return P}),Z.d(be,"j",function(){return X}),Z.d(be,"g",function(){return j}),Z.d(be,"m",function(){return U}),Z.d(be,"h",function(){return K}),Z.d(be,"n",function(){return G}),Z.d(be,"c",function(){return r}),Z.d(be,"a",function(){return L}),Z.d(be,"i",function(){return v}),Z.d(be,"o",function(){return m}),Z.d(be,"e",function(){return u}),Z.d(be,"d",function(){return f}),Z.d(be,"p",function(){return l}),Z.d(be,"b",function(){return o});function ie(s){return Array.isArray(s)}function J(s){return typeof s=="string"}function P(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function X(s){return typeof s=="number"&&!isNaN(s)}function j(s){return s===!0||s===!1}function U(s){return typeof s=="undefined"}function K(s){return!G(s)}function G(s){return U(s)||s===null}function r(s,a){if(!s)throw new Error(a?`Unexpected type, expected '${a}'`:"Unexpected type")}function L(s){if(G(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function v(s){return typeof s=="function"}function m(s,a){const O=Math.min(s.length,a.length);for(let E=0;Efunction(){const D=Array.prototype.slice.call(arguments,0);return a(w,D)};let E={};for(const w of s)E[w]=O(w);return E}function l(s){return s===null?void 0:s}function o(s,a="Unreachable"){throw new Error(a)}},"7Cbv":function(rt,be,Z){"use strict";var ie=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),J=new Uint8Array(16);function P(){if(!ie)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ie(J)}var X=/^(?:[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 j(p){return typeof p=="string"&&X.test(p)}for(var U=j,K=[],G=0;G<256;++G)K.push((G+256).toString(16).substr(1));function r(p){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=(K[p[h+0]]+K[p[h+1]]+K[p[h+2]]+K[p[h+3]]+"-"+K[p[h+4]]+K[p[h+5]]+"-"+K[p[h+6]]+K[p[h+7]]+"-"+K[p[h+8]]+K[p[h+9]]+"-"+K[p[h+10]]+K[p[h+11]]+K[p[h+12]]+K[p[h+13]]+K[p[h+14]]+K[p[h+15]]).toLowerCase();if(!U(u))throw TypeError("Stringified UUID is invalid");return u}var L=r;function v(p,h,u){p=p||{};var f=p.random||(p.rng||P)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,h){u=u||0;for(var l=0;l<16;++l)h[u+l]=f[l];return h}return L(f)}var m=be.a=v},"7ahc":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return O});var ie=Z("k1fw"),J=Z("0Owb"),P=Z("+L6B"),X=Z("2/Rp"),j=Z("y8nQ"),U=Z("Vl3Y"),K=Z("tJVT"),G=Z("OaEy"),r=Z("2fM7"),L=Z("q1tI"),v=Z.n(L),m=Z("VrN/"),p=Z.n(m),h=Z("p77/"),u=Z.n(h),f=Z("c5Ni"),l=Z.n(f),o=r.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},a={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"]};be.b=function(E){var w=E.callback,D=E.onCancel,R=Object(L.useState)("python"),A=Object(K.a)(R,2),C=A[0],T=A[1];function d(y){T(a[y][1])}function S(y){w(y)}return v.a.createElement(U.a,Object(J.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:S}),v.a.createElement(U.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},v.a.createElement(r.a,{onChange:d},Object.keys(a).map(function(y){return v.a.createElement(o,{key:y,value:y},a[y][0])}))),v.a.createElement(U.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},v.a.createElement(O,{mode:C})),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(X.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(X.a,{type:"ghost",onClick:D},"\u53D6\u6D88")))};function O(E){var w=E.value,D=E.onChange,R=E.mode,A=E.options,C=A===void 0?{}:A,T=Object(L.useRef)(),d=Object(L.useState)(),S=Object(K.a)(d,2),y=S[0],b=S[1];return Object(L.useEffect)(function(){if(y){function B(F){var _=F.getValue();D&&D(_)}return y.on("change",B),function(){y.off("change",B)}}},[y,D]),Object(L.useEffect)(function(){y&&y.setOption("mode",R)},[y,R]),Object(L.useEffect)(function(){y&&((w!==y.getValue()||w==="")&&setTimeout(function(){y.setValue(w||" ")},300))},[y,w]),Object(L.useEffect)(function(){if(T.current&&!y){var B=p.a.fromTextArea(T.current,Object(ie.a)({mode:R,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},C));b(B)}},[T.current,y]),v.a.createElement("div",{className:"my-codemirror-container"},v.a.createElement("textarea",{ref:T}))}},"8EBN":function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";ie.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 J=0;J-1&&X.substring(K+1,X.length);if(G)return ie.findModeByExtension(G)},ie.findModeByName=function(X){X=X.toLowerCase();for(var j=0;j=W.length?ee.slice(W.length):ee}).join(` -`)}var l=[],o=["
    "],s=new h.a.Renderer,a=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function O(){l.length=0,o=["
      "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(Y,x,k,W){if(x>=Y.length||Y[x].level<=k)return x;var ee=Y[x];W.push("
    • "+ee.text+""),x++;var V=[];return x=w(Y,x,ee.level,V),V.length>0&&(W.push("
        "),V.forEach(function(Ee){W.push(Ee)}),W.push("
      ")),W.push("
    • "),x=w(Y,x,k,W),x}function D(){return w(l,0,0,o),o.push("
    "),o.join("")}var R={heading:function(x){var k=a.exec(x);if(k)return{type:"heading",raw:k[0],depth:k[1].length,text:k[2]}},fences:function(x){var k=this.rules.block.fences.exec(x);if(k){var W=k[0],ee=f(W,k[3]||""),V=k[2]?k[2].trim():k[2];if(["latex","katex","math"].indexOf(V)>=0){var Ee=T(),Ye=ee;ee=Ee,c[Ee]={type:"block",expression:Ye}}return{type:"code",raw:W,lang:V,text:ee}}}},A=/(?:\${2})([^\n`]+?)(?:\${2})/gi,C=0,T=function(){return"__special_katext_id_".concat(C++,"__")},c={};function S(){return c}function y(){C=0,c={}}function b(Y){return Y=Y.replace(A,function(x,k){var W=T();return c[W]={type:"inline",expression:k},W}),Y}var B=s.listitem;s.listitem=function(Y){return B(b(Y))};var F=s.paragraph;s.paragraph=function(Y){return F(b(Y))};var _=s.tablecell;s.tablecell=function(Y,x){return _(b(Y),x)},s.code=function(Y,x,k){var W=(x||"").match(/\S*/)[0];return W?["latex","katex","math"].indexOf(W)>=0?"

    ".concat(Y,"

    "):'
    ').concat(k?Y:Object(u.escape)(Y,!0),`
    +`)}var l=[],o=["
      "],s=new h.a.Renderer,a=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function O(){l.length=0,o=["
        "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(Y,x,k,W){if(x>=Y.length||Y[x].level<=k)return x;var ee=Y[x];W.push("
      • "+ee.text+""),x++;var V=[];return x=w(Y,x,ee.level,V),V.length>0&&(W.push("
          "),V.forEach(function(Ee){W.push(Ee)}),W.push("
        ")),W.push("
      • "),x=w(Y,x,k,W),x}function D(){return w(l,0,0,o),o.push("
      "),o.join("")}var R={heading:function(x){var k=a.exec(x);if(k)return{type:"heading",raw:k[0],depth:k[1].length,text:k[2]}},fences:function(x){var k=this.rules.block.fences.exec(x);if(k){var W=k[0],ee=f(W,k[3]||""),V=k[2]?k[2].trim():k[2];if(["latex","katex","math"].indexOf(V)>=0){var Ee=T(),Ye=ee;ee=Ee,d[Ee]={type:"block",expression:Ye}}return{type:"code",raw:W,lang:V,text:ee}}}},A=/(?:\${2})([^\n`]+?)(?:\${2})/gi,C=0,T=function(){return"__special_katext_id_".concat(C++,"__")},d={};function S(){return d}function y(){C=0,d={}}function b(Y){return Y=Y.replace(A,function(x,k){var W=T();return d[W]={type:"inline",expression:k},W}),Y}var B=s.listitem;s.listitem=function(Y){return B(b(Y))};var F=s.paragraph;s.paragraph=function(Y){return F(b(Y))};var _=s.tablecell;s.tablecell=function(Y,x){return _(b(Y),x)},s.code=function(Y,x,k){var W=(x||"").match(/\S*/)[0];return W?["latex","katex","math"].indexOf(W)>=0?"

      ".concat(Y,"

      "):'
      ').concat(k?Y:Object(u.escape)(Y,!0),`
      `):'
      '+(k?Y:Object(u.escape)(Y,!0))+"
      "},s.heading=function(Y,x,k){var W=this.options.headerPrefix+k.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return l.push({anchor:W,level:x,text:Y}),"'+Y+""},h.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),h.a.use({tokenizer:R,renderer:s});var M=h.a,I=Z("SJMd"),g=Z("ulZh"),H=Z.n(g),$=Z("m3rI"),ne=Z("Oy/b"),se=Z("p5ED"),Oe=Z("ErOA");/*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -38,7 +38,7 @@ 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 ge=function(Y,x){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,W){k.__proto__=W}||function(k,W){for(var ee in W)Object.prototype.hasOwnProperty.call(W,ee)&&(k[ee]=W[ee])})(Y,x)};function Te(Y,x){function k(){this.constructor=Y}ge(Y,x),Y.prototype=x===null?Object.create(x):(k.prototype=x.prototype,new k)}function Re(Y,x,k,W){return new(k||(k=Promise))(function(ee,V){function Ee(gt){try{tt(W.next(gt))}catch(Xe){V(Xe)}}function Ye(gt){try{tt(W.throw(gt))}catch(Xe){V(Xe)}}function tt(gt){var Xe;gt.done?ee(gt.value):(Xe=gt.value,Xe instanceof k?Xe:new k(function(xt){xt(Xe)})).then(Ee,Ye)}tt((W=W.apply(Y,x||[])).next())})}function Le(Y,x){var k,W,ee,V,Ee={label:0,sent:function(){if(1&ee[0])throw ee[1];return ee[1]},trys:[],ops:[]};return V={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function Ye(tt){return function(gt){return function(Xe){if(k)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(k=1,W&&(ee=2&Xe[0]?W.return:Xe[0]?W.throw||((ee=W.return)&&ee.call(W),0):W.next)&&!(ee=ee.call(W,Xe[1])).done)return ee;switch(W=0,ee&&(Xe=[2&Xe[0],ee.value]),Xe[0]){case 0:case 1:ee=Xe;break;case 4:return Ee.label++,{value:Xe[1],done:!1};case 5:Ee.label++,W=Xe[1],Xe=[0];continue;case 7:Xe=Ee.ops.pop(),Ee.trys.pop();continue;default:if(!(ee=Ee.trys,(ee=ee.length>0&&ee[ee.length-1])||Xe[0]!==6&&Xe[0]!==2)){Ee=0;continue}if(Xe[0]===3&&(!ee||Xe[1]>ee[0]&&Xe[1]0&&ee[ee.length-1])||Xe[0]!==6&&Xe[0]!==2)){Ee=0;continue}if(Xe[0]===3&&(!ee||Xe[1]>ee[0]&&Xe[1] `),Ee.appendChild(Ye),Ee},x.prototype.setCurrentColor=function(k,W){var ee=this;this.currentColor=k,this.colorBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},x}(le),Se=function(){function Y(x,k,W){this._state="new",this._isSelected=!1,this._container=x,this._overlayContainer=k,this.globalSettings=W,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Y.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Y.prototype.ownsTarget=function(x){return!1},Object.defineProperty(Y.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Y.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Y.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Y.prototype.pointerDown=function(x,k){},Y.prototype.dblClick=function(x,k){},Y.prototype.manipulate=function(x){},Y.prototype.pointerUp=function(x){this.stateChanged()},Y.prototype.dispose=function(){},Y.prototype.addMarkerVisualToContainer=function(x){this.container.childNodes.length>0?this.container.insertBefore(x,this.container.childNodes[0]):this.container.appendChild(x)},Y.prototype.getState=function(){return{typeName:Y.typeName,state:this.state,notes:this.notes}},Y.prototype.restoreState=function(x){this._state=x.state,this.notes=x.notes},Y.prototype.scale=function(x,k){},Y.prototype.colorChanged=function(x){this.onColorChanged&&this.onColorChanged(x),this.stateChanged()},Y.prototype.fillColorChanged=function(x){this.onFillColorChanged&&this.onFillColorChanged(x),this.stateChanged()},Y.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)}},Y.typeName="MarkerBase",Y}(),Ie=function(){function Y(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Y.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},Y}(),We=function(){function Y(){this.GRIP_SIZE=10,this.visual=he.createGroup(),this.visual.appendChild(he.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(he.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Y.prototype.ownsTarget=function(x){return x===this.visual||x===this.visual.childNodes[0]||x===this.visual.childNodes[1]},Y}(),Ve=function(){function Y(){}return Y.toITransformMatrix=function(x){return{a:x.a,b:x.b,c:x.c,d:x.d,e:x.e,f:x.f}},Y.toSVGMatrix=function(x,k){return x.a=k.a,x.b=k.b,x.c=k.c,x.d=k.d,x.e=k.e,x.f=k.f,x},Y}(),Qe=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.left=0,V.top=0,V.width=0,V.height=0,V.defaultSize={x:50,y:20},V.offsetX=0,V.offsetY=0,V.rotationAngle=0,V.CB_DISTANCE=10,V._suppressMarkerCreateEvent=!1,V.container.transform.baseVal.appendItem(he.createTransform()),V.setupControlBox(),V}return Te(x,Y),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(k){this._visual=k;var W=he.createTransform();this._visual.transform.baseVal.appendItem(W)},enumerable:!1,configurable:!0}),x.prototype.ownsTarget=function(k){return!!Y.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.state==="new"&&(this.left=k.x,this.top=k.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ee=this.unrotatePoint(k);if(this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.offsetX=ee.x-this.left,this.offsetY=ee.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(W),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(W)){this.activeGrip=this.rotatorGrip;var V=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=V.x-this.width/2,this.top=V.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ee=this.container.transform.baseVal.getItem(0);Ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ee,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},x.prototype.pointerUp=function(k){var W=this.state;Y.prototype.pointerUp.call(this,k),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(k),this._state="select",W==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},x.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},x.prototype.manipulate=function(k){var W=this.unrotatePoint(k);this.state==="creating"?this.resize(k):this.state==="move"?(this.left=this.manipulationStartLeft+(W.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(W.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(W):this.state==="rotate"&&this.rotate(k)},x.prototype.resize=function(k){var W=this.manipulationStartLeft,ee=this.manipulationStartWidth,V=this.manipulationStartTop,Ee=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:W=this.manipulationStartLeft+k.x-this.manipulationStartX,ee=this.manipulationStartWidth+this.manipulationStartLeft-W;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ee=this.manipulationStartWidth+k.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:V=this.manipulationStartTop+k.y-this.manipulationStartY,Ee=this.manipulationStartHeight+this.manipulationStartTop-V;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ee=this.manipulationStartHeight+k.y-this.manipulationStartY}ee>=0?(this.left=W,this.width=ee):(this.left=W+ee,this.width=-ee),Ee>=0?(this.top=V,this.height=Ee):(this.top=V+Ee,this.height=-Ee),this.setSize()},x.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},x.prototype.rotate=function(k){if(Math.abs(k.x-this.centerX)>.1){var W=Math.sign(k.x-this.centerX);this.rotationAngle=180*Math.atan((k.y-this.centerY)/(k.x-this.centerX))/Math.PI+90*W,this.applyRotation()}},x.prototype.applyRotation=function(){var k=this.container.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(k,0)},x.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var W=this.container.getCTM(),ee=he.createPoint(k.x,k.y);return{x:(ee=ee.matrixTransform(W)).x,y:ee.y}},x.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var W=this.container.getCTM();W=W.inverse();var ee=he.createPoint(k.x,k.y);return{x:(ee=ee.matrixTransform(W)).x,y:ee.y}},x.prototype.select=function(){Y.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},x.prototype.deselect=function(){Y.prototype.deselect.call(this),this.controlBox.style.display="none"},x.prototype.setupControlBox=function(){this.controlBox=he.createGroup();var k=he.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=he.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=he.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 Ie,this.addControlGrips(),this.controlBox.style.display="none"},x.prototype.adjustControlBox=function(){var k=this.controlBox.transform.baseVal.getItem(0);k.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(k,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 k=new We;return k.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(k.visual),k},x.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,W=-k/2,ee=W,V=(this.width+this.CB_DISTANCE)/2-k/2,Ee=(this.height+this.CB_DISTANCE)/2-k/2,Ye=this.height+this.CB_DISTANCE-k/2,tt=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,W,ee),this.positionGrip(this.controlGrips.topCenter.visual,V,ee),this.positionGrip(this.controlGrips.topRight.visual,tt,ee),this.positionGrip(this.controlGrips.centerLeft.visual,W,Ee),this.positionGrip(this.controlGrips.centerRight.visual,tt,Ee),this.positionGrip(this.controlGrips.bottomLeft.visual,W,Ye),this.positionGrip(this.controlGrips.bottomCenter.visual,V,Ye),this.positionGrip(this.controlGrips.bottomRight.visual,tt,Ye),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,V,ee-3*this.CB_DISTANCE)},x.prototype.positionGrip=function(k,W,ee){var V=k.transform.baseVal.getItem(0);V.setTranslate(W,ee),k.transform.baseVal.replaceItem(V,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:Ve.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ve.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Y.prototype.getState.call(this))},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.left=W.left,this.top=W.top,this.width=W.width,this.height=W.height,this.rotationAngle=W.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ve.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,W.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ve.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,W.containerTransformMatrix))},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W);var ee=this.rotatePoint({x:this.left,y:this.top}),V=this.unrotatePoint({x:ee.x*k,y:ee.y*W});this.left=V.x,this.top=V.y,this.width=this.width*k,this.height=this.height*W,this.adjustControlBox()},x}(Se),Je=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.fillColor="transparent",V.strokeColor="transparent",V.strokeWidth=0,V.strokeDasharray="",V.opacity=1,V.setStrokeColor=V.setStrokeColor.bind(V),V.setFillColor=V.setFillColor.bind(V),V.setStrokeWidth=V.setStrokeWidth.bind(V),V.setStrokeDasharray=V.setStrokeDasharray.bind(V),V.createVisual=V.createVisual.bind(V),V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual)},x.prototype.createVisual=function(){this.visual=he.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(k,W){Y.prototype.pointerDown.call(this,k,W),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},x.prototype.manipulate=function(k){Y.prototype.manipulate.call(this,k)},x.prototype.resize=function(k){Y.prototype.resize.call(this,k),this.setSize()},x.prototype.setSize=function(){Y.prototype.setSize.call(this),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},x.prototype.pointerUp=function(k){Y.prototype.pointerUp.call(this,k),this.setSize()},x.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&he.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},x.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&he.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},x.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&he.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},x.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&he.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},Y.prototype.getState.call(this))},x.prototype.restoreState=function(k){var W=k;this.fillColor=W.fillColor,this.strokeColor=W.strokeColor,this.strokeWidth=W.strokeWidth,this.strokeDasharray=W.strokeDasharray,this.opacity=W.opacity,this.createVisual(),Y.prototype.restoreState.call(this,k),this.setSize()},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.setSize()},x.title="Rectangle marker",x}(Qe),st=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.widths=[],Ee.widthBoxes=[],Ee.widths=W,Ee.currentWidth=ee,Ee.setCurrentWidth=Ee.setCurrentWidth.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2",this.widths.forEach(function(ee){var V=document.createElement("div");V.style.display="flex",V.style.flexGrow="2",V.style.alignItems="center",V.style.justifyContent="space-between",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.borderColor=ee===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentWidth(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.innerText=ee.toString(),Ee.style.marginRight="5px",V.appendChild(Ee);var Ye=document.createElement("div");Ye.style.minHeight="20px",Ye.style.flexGrow="2",Ye.style.display="flex",Ye.style.alignItems="center";var tt=document.createElement("hr");tt.style.minWidth="20px",tt.style.border="0px",tt.style.borderTop=ee+"px solid "+k.uiStyleSettings.toolboxColor,tt.style.flexGrow="2",Ye.appendChild(tt),V.appendChild(Ye),k.widthBoxes.push(V)}),W},x.prototype.setCurrentWidth=function(k,W){var ee=this;this.currentWidth=k,this.widthBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},x}(le),qe=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.styles=[],Ee.styleBoxes=[],Ee.styles=W,Ee.currentStyle=ee,Ee.setCurrentStyle=Ee.setCurrentStyle.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2",this.styles.forEach(function(ee){var V=document.createElement("div");V.style.display="flex",V.style.alignItems="center",V.style.justifyContent="space-between",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.overflow="hidden",V.style.maxWidth=100/k.styles.length-5+"%",V.style.borderColor=ee===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentStyle(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.overflow="hidden";var Ye=` - `;Ee.innerHTML=Ye,V.appendChild(Ee),k.styleBoxes.push(V)}),W},x.prototype.setCurrentStyle=function(k,W){var ee=this;this.currentStyle=k,this.styleBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},x}(le),at=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="FrameMarker",x.title="Frame marker",x.icon='',x}(Je),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},ct=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.x1=0,V.y1=0,V.x2=0,V.y2=0,V.defaultLength=50,V.manipulationStartX=0,V.manipulationStartY=0,V.manipulationStartX1=0,V.manipulationStartY1=0,V.manipulationStartX2=0,V.manipulationStartY2=0,V.setupControlBox(),V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!!Y.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.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(W)?this.activeGrip=this.grip1:this.grip2.ownsTarget(W)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},x.prototype.pointerUp=function(k){var W=this.state;Y.prototype.pointerUp.call(this,k),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(k),this._state="select",W==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},x.prototype.adjustVisual=function(){},x.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},x.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},x.prototype.select=function(){Y.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},x.prototype.deselect=function(){Y.prototype.deselect.call(this),this.controlBox.style.display="none"},x.prototype.setupControlBox=function(){this.controlBox=he.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 k=new We;return k.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(k.visual),k},x.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},x.prototype.positionGrip=function(k,W,ee){var V=k.transform.baseVal.getItem(0);V.setTranslate(W,ee),k.transform.baseVal.replaceItem(V,0)},x.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Y.prototype.getState.call(this))},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.x1=W.x1,this.y1=W.y1,this.x2=W.x2,this.y2=W.y2},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.x1=this.x1*k,this.y1=this.y1*W,this.x2=this.x2*k,this.y2=this.y2*W,this.adjustVisual(),this.adjustControlBox()},x}(Se),lt=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor="transparent",V.strokeWidth=0,V.strokeDasharray="",V.setStrokeColor=V.setStrokeColor.bind(V),V.setStrokeWidth=V.setStrokeWidth.bind(V),V.setStrokeDasharray=V.setStrokeDasharray.bind(V),V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorLine=he.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=he.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(k,W){Y.prototype.pointerDown.call(this,k,W),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()),he.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},x.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},x.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},x.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,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 k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.strokeColor=W.strokeColor,this.strokeWidth=W.strokeWidth,this.strokeDasharray=W.strokeDasharray,this.createVisual(),this.adjustVisual()},x.typeName="LineMarker",x.title="Line marker",x.icon='',x}(ct),je=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.fonts=[],Ee.fontBoxes=[],Ee.fonts=W,Ee.currentFont=ee,Ee.setCurrentFont=Ee.setCurrentFont.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.overflow="hidden",W.style.flexGrow="2",this.fonts.forEach(function(ee){var V=document.createElement("div");V.style.display="inline-block",V.style.alignItems="center",V.style.justifyContent="space-between",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.overflow="hidden",V.style.maxWidth=100/k.fonts.length-5+"%",V.style.borderColor=ee===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentFont(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.fontFamily=ee,Ee.style.overflow="hidden";var Ye=document.createElement("div");Ye.style.whiteSpace="nowrap",Ye.style.overflow="hidden",Ye.style.textOverflow="ellipsis",Ye.innerHTML="The quick brown fox jumps over the lazy dog",Ee.appendChild(Ye),V.appendChild(Ee),k.fontBoxes.push(V)}),W},x.prototype.setCurrentFont=function(k,W){var ee=this;this.currentFont=k,this.fontBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},x}(le),Ge=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.color="transparent",V.padding=5,V.DEFAULT_TEXT="your text here",V.text=V.DEFAULT_TEXT,V.isMoved=!1,V.color=ee.defaultColor,V.fontFamily=ee.defaultFontFamily,V.defaultSize={x:100,y:30},V.setColor=V.setColor.bind(V),V.setFont=V.setFont.bind(V),V.renderText=V.renderText.bind(V),V.sizeText=V.sizeText.bind(V),V.textEditDivClicked=V.textEditDivClicked.bind(V),V.showTextEditor=V.showTextEditor.bind(V),V.setSize=V.setSize.bind(V),V.positionTextEditor=V.positionTextEditor.bind(V),V.colorPanel=new ve("Color",ee.defaultColorSet,ee.defaultColor),V.colorPanel.onColorChanged=V.setColor,V.fontFamilyPanel=new je("Font",ee.defaultFontFamilies,ee.defaultFontFamily),V.fontFamilyPanel.onFontChanged=V.setFont,V}return Te(x,Y),x.prototype.ownsTarget=function(k){if(Y.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var W=!1;return this.textElement.childNodes.forEach(function(ee){ee===k&&(W=!0)}),W},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.bgRectangle=he.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=he.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},x.prototype.renderText=function(){var k=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(W){k.textElement.appendChild(he.createTSpan(W.trim()===""?" ":W.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},x.prototype.getTextScale=function(){var k=this.textElement.getBBox(),W=1;if(k.width>0&&k.height>0){var ee=(1*this.width-this.width*this.padding*2/100)/k.width,V=(1*this.height-this.height*this.padding*2/100)/k.height;W=Math.min(ee,V)}return W},x.prototype.getTextPosition=function(k){var W=this.textElement.getBBox(),ee=0,V=0;return W.width>0&&W.height>0&&(ee=(this.width-W.width*k)/2,V=this.height/2-W.height*k/2),{x:ee,y:V}},x.prototype.sizeText=function(){var k=this.textElement.getBBox(),W=this.getTextScale(),ee=this.getTextPosition(W);ee.y-=k.y*W,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ee.x+"px, "+ee.y+"px) scale("+W+", "+W+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ee.x,ee.y),this.textElement.transform.baseVal.getItem(1).setScale(W,W))},x.prototype.manipulate=function(k){Y.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},x.prototype.resize=function(k){Y.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},x.prototype.setSize=function(){Y.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},x.prototype.pointerUp=function(k){var W=this.state;W==="creating"&&(this._suppressMarkerCreateEvent=!0),Y.prototype.pointerUp.call(this,k),this.setSize(),(W==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},x.prototype.showTextEditor=function(){var k=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(W){W.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var W=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&W>.9;)W-=.1,k.textEditor.style.fontSize=Math.max(W,.9)+"em"}),this.textEditor.addEventListener("keyup",function(W){W.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(W){if(W.clipboardData){var ee=W.clipboardData.getData("text"),V=window.getSelection();if(!V.rangeCount)return!1;V.deleteFromDocument(),V.getRangeAt(0).insertNode(document.createTextNode(ee)),W.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.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 k=this.getTextScale(),W=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ee=this.textElement.getBBox(),V={x:ee.width*k,y:ee.height*k};W.x-=V.x/2,W.y-=V.y/2,this.textEditor.style.top=W.y+"px",this.textEditor.style.left=W.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-W.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},x.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},x.prototype.select=function(){Y.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},x.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Y.prototype.deselect.call(this)},x.prototype.dblClick=function(k,W){Y.prototype.dblClick.call(this,k,W),this.showTextEditor()},x.prototype.setColor=function(k){this.textElement&&he.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},x.prototype.setFont=function(k){this.textElement&&he.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,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 k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){var W=k;this.color=W.color,this.fontFamily=W.fontFamily,this.padding=W.padding,this.text=W.text,this.createVisual(),Y.prototype.restoreState.call(this,k),this.setSize()},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.setSize(),this.sizeText(),this.positionTextEditor()},x.typeName="TextMarker",x.title="Text marker",x.icon='',x}(Qe),Ae=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.color="transparent",V.lineWidth=3,V.drawing=!1,V.pixelRatio=1,V.color=ee.defaultColor,V.lineWidth=ee.defaultStrokeWidth,V.pixelRatio=ee.freehandPixelRatio,V.setColor=V.setColor.bind(V),V.addCanvas=V.addCanvas.bind(V),V.finishCreation=V.finishCreation.bind(V),V.setLineWidth=V.setLineWidth.bind(V),V.colorPanel=new ve("Color",ee.defaultColorSet,ee.defaultColor),V.colorPanel.onColorChanged=V.setColor,V.lineWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.lineWidthPanel.onWidthChanged=V.setLineWidth,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.drawingImage=he.createImage(),this.visual.appendChild(this.drawingImage);var k=he.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},x.prototype.pointerDown=function(k,W){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(k.x,k.y),this.drawing=!0):Y.prototype.pointerDown.call(this,k,W)},x.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):Y.prototype.manipulate.call(this,k)},x.prototype.resize=function(k){Y.prototype.resize.call(this,k),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},x.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Y.prototype.pointerUp.call(this,k)},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(),Y.prototype.select.call(this)},x.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Y.prototype.deselect.call(this)},x.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),W=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ee=W[0],V=W[1],Ee=W[2],Ye=W[3],tt=!1,gt=0;gt0&&(tt=!0,gtYe&&(Ye=gt),Xe>Ee&&(Ee=Xe));if(tt){this.left=ee/this.pixelRatio,this.top=V/this.pixelRatio,this.width=(Ee-ee)/this.pixelRatio,this.height=(Ye-V)/this.pixelRatio;var xt=document.createElement("canvas");xt.width=Ee-ee,xt.height=Ye-V,xt.getContext("2d").putImageData(this.canvasContext.getImageData(ee,V,Ee-ee,Ye-V),0,0),this.drawingImgUrl=xt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},x.prototype.setDrawingImage=function(){he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},x.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},x.prototype.setLineWidth=function(k){this.lineWidth=k},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 k=Object.assign({drawingImgUrl:this.drawingImgUrl},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){this.createVisual(),Y.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.setDrawingImage()},x.typeName="FreehandMarker",x.title="Freehand marker",x.icon='',x}(Qe),_e=function(Y){function x(k,W,ee){var V=Y.call(this,k,ee||'')||this;return V.typeBoxes=[],V.currentType=W,V.setCurrentType=V.setCurrentType.bind(V),V}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2";for(var ee=function(Ye){var tt="both";switch(Ye){case 0:tt="both";break;case 1:tt="start";break;case 2:tt="end";break;case 3:tt="none"}var gt=document.createElement("div");if(gt.style.display="flex",gt.style.flexGrow="2",gt.style.alignItems="center",gt.style.justifyContent="space-between",gt.style.padding="5px",gt.style.borderWidth="2px",gt.style.borderStyle="solid",gt.style.borderColor=tt===V.currentType?V.uiStyleSettings.toolboxAccentColor:"transparent",gt.addEventListener("click",function(){k.setCurrentType(tt,gt)}),W.appendChild(gt),tt==="both"||tt==="start"){var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.alignItems="center",Xe.style.minHeight="20px",Xe.innerHTML=` + `;Ee.innerHTML=Ye,V.appendChild(Ee),k.styleBoxes.push(V)}),W},x.prototype.setCurrentStyle=function(k,W){var ee=this;this.currentStyle=k,this.styleBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},x}(le),at=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="FrameMarker",x.title="Frame marker",x.icon='',x}(Je),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},dt=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.x1=0,V.y1=0,V.x2=0,V.y2=0,V.defaultLength=50,V.manipulationStartX=0,V.manipulationStartY=0,V.manipulationStartX1=0,V.manipulationStartY1=0,V.manipulationStartX2=0,V.manipulationStartY2=0,V.setupControlBox(),V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!!Y.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.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(W)?this.activeGrip=this.grip1:this.grip2.ownsTarget(W)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},x.prototype.pointerUp=function(k){var W=this.state;Y.prototype.pointerUp.call(this,k),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(k),this._state="select",W==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},x.prototype.adjustVisual=function(){},x.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},x.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},x.prototype.select=function(){Y.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},x.prototype.deselect=function(){Y.prototype.deselect.call(this),this.controlBox.style.display="none"},x.prototype.setupControlBox=function(){this.controlBox=he.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 k=new We;return k.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(k.visual),k},x.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},x.prototype.positionGrip=function(k,W,ee){var V=k.transform.baseVal.getItem(0);V.setTranslate(W,ee),k.transform.baseVal.replaceItem(V,0)},x.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Y.prototype.getState.call(this))},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.x1=W.x1,this.y1=W.y1,this.x2=W.x2,this.y2=W.y2},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.x1=this.x1*k,this.y1=this.y1*W,this.x2=this.x2*k,this.y2=this.y2*W,this.adjustVisual(),this.adjustControlBox()},x}(Se),lt=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor="transparent",V.strokeWidth=0,V.strokeDasharray="",V.setStrokeColor=V.setStrokeColor.bind(V),V.setStrokeWidth=V.setStrokeWidth.bind(V),V.setStrokeDasharray=V.setStrokeDasharray.bind(V),V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorLine=he.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=he.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(k,W){Y.prototype.pointerDown.call(this,k,W),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()),he.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},x.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},x.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},x.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,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 k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.strokeColor=W.strokeColor,this.strokeWidth=W.strokeWidth,this.strokeDasharray=W.strokeDasharray,this.createVisual(),this.adjustVisual()},x.typeName="LineMarker",x.title="Line marker",x.icon='',x}(dt),je=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.fonts=[],Ee.fontBoxes=[],Ee.fonts=W,Ee.currentFont=ee,Ee.setCurrentFont=Ee.setCurrentFont.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.overflow="hidden",W.style.flexGrow="2",this.fonts.forEach(function(ee){var V=document.createElement("div");V.style.display="inline-block",V.style.alignItems="center",V.style.justifyContent="space-between",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.overflow="hidden",V.style.maxWidth=100/k.fonts.length-5+"%",V.style.borderColor=ee===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentFont(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.fontFamily=ee,Ee.style.overflow="hidden";var Ye=document.createElement("div");Ye.style.whiteSpace="nowrap",Ye.style.overflow="hidden",Ye.style.textOverflow="ellipsis",Ye.innerHTML="The quick brown fox jumps over the lazy dog",Ee.appendChild(Ye),V.appendChild(Ee),k.fontBoxes.push(V)}),W},x.prototype.setCurrentFont=function(k,W){var ee=this;this.currentFont=k,this.fontBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},x}(le),Ge=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.color="transparent",V.padding=5,V.DEFAULT_TEXT="your text here",V.text=V.DEFAULT_TEXT,V.isMoved=!1,V.color=ee.defaultColor,V.fontFamily=ee.defaultFontFamily,V.defaultSize={x:100,y:30},V.setColor=V.setColor.bind(V),V.setFont=V.setFont.bind(V),V.renderText=V.renderText.bind(V),V.sizeText=V.sizeText.bind(V),V.textEditDivClicked=V.textEditDivClicked.bind(V),V.showTextEditor=V.showTextEditor.bind(V),V.setSize=V.setSize.bind(V),V.positionTextEditor=V.positionTextEditor.bind(V),V.colorPanel=new ve("Color",ee.defaultColorSet,ee.defaultColor),V.colorPanel.onColorChanged=V.setColor,V.fontFamilyPanel=new je("Font",ee.defaultFontFamilies,ee.defaultFontFamily),V.fontFamilyPanel.onFontChanged=V.setFont,V}return Te(x,Y),x.prototype.ownsTarget=function(k){if(Y.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var W=!1;return this.textElement.childNodes.forEach(function(ee){ee===k&&(W=!0)}),W},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.bgRectangle=he.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=he.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},x.prototype.renderText=function(){var k=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(W){k.textElement.appendChild(he.createTSpan(W.trim()===""?" ":W.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},x.prototype.getTextScale=function(){var k=this.textElement.getBBox(),W=1;if(k.width>0&&k.height>0){var ee=(1*this.width-this.width*this.padding*2/100)/k.width,V=(1*this.height-this.height*this.padding*2/100)/k.height;W=Math.min(ee,V)}return W},x.prototype.getTextPosition=function(k){var W=this.textElement.getBBox(),ee=0,V=0;return W.width>0&&W.height>0&&(ee=(this.width-W.width*k)/2,V=this.height/2-W.height*k/2),{x:ee,y:V}},x.prototype.sizeText=function(){var k=this.textElement.getBBox(),W=this.getTextScale(),ee=this.getTextPosition(W);ee.y-=k.y*W,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ee.x+"px, "+ee.y+"px) scale("+W+", "+W+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ee.x,ee.y),this.textElement.transform.baseVal.getItem(1).setScale(W,W))},x.prototype.manipulate=function(k){Y.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},x.prototype.resize=function(k){Y.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},x.prototype.setSize=function(){Y.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},x.prototype.pointerUp=function(k){var W=this.state;W==="creating"&&(this._suppressMarkerCreateEvent=!0),Y.prototype.pointerUp.call(this,k),this.setSize(),(W==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},x.prototype.showTextEditor=function(){var k=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(W){W.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var W=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&W>.9;)W-=.1,k.textEditor.style.fontSize=Math.max(W,.9)+"em"}),this.textEditor.addEventListener("keyup",function(W){W.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(W){if(W.clipboardData){var ee=W.clipboardData.getData("text"),V=window.getSelection();if(!V.rangeCount)return!1;V.deleteFromDocument(),V.getRangeAt(0).insertNode(document.createTextNode(ee)),W.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.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 k=this.getTextScale(),W=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ee=this.textElement.getBBox(),V={x:ee.width*k,y:ee.height*k};W.x-=V.x/2,W.y-=V.y/2,this.textEditor.style.top=W.y+"px",this.textEditor.style.left=W.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-W.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},x.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},x.prototype.select=function(){Y.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},x.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Y.prototype.deselect.call(this)},x.prototype.dblClick=function(k,W){Y.prototype.dblClick.call(this,k,W),this.showTextEditor()},x.prototype.setColor=function(k){this.textElement&&he.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},x.prototype.setFont=function(k){this.textElement&&he.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,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 k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){var W=k;this.color=W.color,this.fontFamily=W.fontFamily,this.padding=W.padding,this.text=W.text,this.createVisual(),Y.prototype.restoreState.call(this,k),this.setSize()},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.setSize(),this.sizeText(),this.positionTextEditor()},x.typeName="TextMarker",x.title="Text marker",x.icon='',x}(Qe),Ae=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.color="transparent",V.lineWidth=3,V.drawing=!1,V.pixelRatio=1,V.color=ee.defaultColor,V.lineWidth=ee.defaultStrokeWidth,V.pixelRatio=ee.freehandPixelRatio,V.setColor=V.setColor.bind(V),V.addCanvas=V.addCanvas.bind(V),V.finishCreation=V.finishCreation.bind(V),V.setLineWidth=V.setLineWidth.bind(V),V.colorPanel=new ve("Color",ee.defaultColorSet,ee.defaultColor),V.colorPanel.onColorChanged=V.setColor,V.lineWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.lineWidthPanel.onWidthChanged=V.setLineWidth,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},x.prototype.createVisual=function(){this.visual=he.createGroup(),this.drawingImage=he.createImage(),this.visual.appendChild(this.drawingImage);var k=he.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},x.prototype.pointerDown=function(k,W){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(k.x,k.y),this.drawing=!0):Y.prototype.pointerDown.call(this,k,W)},x.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):Y.prototype.manipulate.call(this,k)},x.prototype.resize=function(k){Y.prototype.resize.call(this,k),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},x.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Y.prototype.pointerUp.call(this,k)},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(),Y.prototype.select.call(this)},x.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Y.prototype.deselect.call(this)},x.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),W=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ee=W[0],V=W[1],Ee=W[2],Ye=W[3],tt=!1,gt=0;gt0&&(tt=!0,gtYe&&(Ye=gt),Xe>Ee&&(Ee=Xe));if(tt){this.left=ee/this.pixelRatio,this.top=V/this.pixelRatio,this.width=(Ee-ee)/this.pixelRatio,this.height=(Ye-V)/this.pixelRatio;var xt=document.createElement("canvas");xt.width=Ee-ee,xt.height=Ye-V,xt.getContext("2d").putImageData(this.canvasContext.getImageData(ee,V,Ee-ee,Ye-V),0,0),this.drawingImgUrl=xt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},x.prototype.setDrawingImage=function(){he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},x.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},x.prototype.setLineWidth=function(k){this.lineWidth=k},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 k=Object.assign({drawingImgUrl:this.drawingImgUrl},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){this.createVisual(),Y.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},x.prototype.scale=function(k,W){Y.prototype.scale.call(this,k,W),this.setDrawingImage()},x.typeName="FreehandMarker",x.title="Freehand marker",x.icon='',x}(Qe),_e=function(Y){function x(k,W,ee){var V=Y.call(this,k,ee||'')||this;return V.typeBoxes=[],V.currentType=W,V.setCurrentType=V.setCurrentType.bind(V),V}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2";for(var ee=function(Ye){var tt="both";switch(Ye){case 0:tt="both";break;case 1:tt="start";break;case 2:tt="end";break;case 3:tt="none"}var gt=document.createElement("div");if(gt.style.display="flex",gt.style.flexGrow="2",gt.style.alignItems="center",gt.style.justifyContent="space-between",gt.style.padding="5px",gt.style.borderWidth="2px",gt.style.borderStyle="solid",gt.style.borderColor=tt===V.currentType?V.uiStyleSettings.toolboxAccentColor:"transparent",gt.addEventListener("click",function(){k.setCurrentType(tt,gt)}),W.appendChild(gt),tt==="both"||tt==="start"){var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.alignItems="center",Xe.style.minHeight="20px",Xe.innerHTML=` `,Xe.style.marginLeft="5px",gt.appendChild(Xe)}var xt=document.createElement("div");xt.style.display="flex",xt.style.alignItems="center",xt.style.minHeight="20px",xt.style.flexGrow="2";var jt=document.createElement("hr");if(jt.style.minWidth="20px",jt.style.border="0px",jt.style.borderTop="3px solid "+(V.uiStyleSettings!==void 0?V.uiStyleSettings.toolboxColor:"#eeeeee"),jt.style.flexGrow="2",xt.appendChild(jt),gt.appendChild(xt),tt==="both"||tt==="end"){var $t=document.createElement("div");$t.style.display="flex",$t.style.alignItems="center",$t.style.minHeight="20px",$t.innerHTML=` - `,$t.style.marginRight="5px",gt.appendChild($t)}V.typeBoxes.push(gt)},V=this,Ee=0;Ee<4;Ee++)ee(Ee);return W},x.prototype.setCurrentType=function(k,W){var ee=this;this.currentType=k,this.typeBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings!==void 0?ee.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},x}(le),we=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.arrowType="end",V.arrowBaseHeight=10,V.arrowBaseWidth=10,V.getArrowPoints=V.getArrowPoints.bind(V),V.setArrowType=V.setArrowType.bind(V),V.arrowTypePanel=new _e("Arrow type","end"),V.arrowTypePanel.onArrowTypeChanged=V.setArrowType,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},x.prototype.getArrowPoints=function(k,W){var ee=this.arrowBaseWidth+2*this.strokeWidth,V=this.arrowBaseHeight+2*this.strokeWidth;return k-ee/2+","+(W+V/2)+" "+k+","+(W-V/2)+" "+(k+ee/2)+","+(W+V/2)},x.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.state==="creating"&&this.createTips()},x.prototype.adjustVisual=function(){if(Y.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",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),W=this.arrow1.transform.baseVal.getItem(0);W.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(W,0);var ee=this.arrow2.transform.baseVal.getItem(0);ee.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ee,0)}},x.prototype.setArrowType=function(k){this.arrowType=k,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 k=Object.assign({arrowType:this.arrowType},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.arrowType=W.arrowType,this.createTips(),this.adjustVisual()},x.typeName="ArrowMarker",x.title="Arrow marker",x.icon='',x}(lt),ae=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.fillColor=ee.defaultFillColor,V.strokeWidth=0,V.fillPanel=new ve("Color",ee.defaultColorSet,ee.defaultFillColor),V.fillPanel.onColorChanged=V.setFillColor,V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="CoverMarker",x.title="Cover marker",x.icon='',x}(Je),ue=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.opacities=[],Ee.opacityBoxes=[],Ee.opacities=W,Ee.currentOpacity=ee,Ee.setCurrentOpacity=Ee.setCurrentOpacity.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2",W.style.justifyContent="space-between",this.opacities.forEach(function(ee){var V=document.createElement("div");V.style.display="flex",V.style.alignItems="center",V.style.justifyContent="center",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.borderColor=ee===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentOpacity(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.innerText=100*ee+"%",V.appendChild(Ee),k.opacityBoxes.push(V)}),W},x.prototype.setCurrentOpacity=function(k,W){var ee=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},x}(le),ce=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.setOpacity=V.setOpacity.bind(V),V.fillColor=ee.defaultHighlightColor,V.strokeWidth=0,V.opacity=ee.defaultHighlightOpacity,V.fillPanel=new ve("Color",ee.defaultColorSet,V.fillColor),V.fillPanel.onColorChanged=V.setFillColor,V.opacityPanel=new ue("Opacity",ee.defaultOpacitySteps,V.opacity),V.opacityPanel.onOpacityChanged=V.setOpacity,V}return Te(x,Y),x.prototype.setOpacity=function(k){this.opacity=k,this.visual&&he.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 k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="HighlightMarker",x.title="Highlight marker",x.icon='',x}(ae),me='',xe=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.bgColor="transparent",V.tipPosition={x:0,y:0},V.tipBase1Position={x:0,y:0},V.tipBase2Position={x:0,y:0},V.tipMoving=!1,V.color=ee.defaultStrokeColor,V.bgColor=ee.defaultFillColor,V.fontFamily=ee.defaultFontFamily,V.defaultSize={x:100,y:30},V.setBgColor=V.setBgColor.bind(V),V.getTipPoints=V.getTipPoints.bind(V),V.positionTip=V.positionTip.bind(V),V.setTipPoints=V.setTipPoints.bind(V),V.colorPanel=new ve("Text color",ee.defaultColorSet,V.color,''),V.colorPanel.onColorChanged=V.setColor,V.bgColorPanel=new ve("Fill color",ee.defaultColorSet,V.bgColor,me),V.bgColorPanel.onColorChanged=V.setBgColor,V.fontFamilyPanel=new je("Font",ee.defaultFontFamilies,ee.defaultFontFamily),V.fontFamilyPanel.onFontChanged=V.setFont,V.tipGrip=new We,V.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),V.controlBox.appendChild(V.tipGrip.visual),V}return Te(x,Y),x.prototype.ownsTarget=function(k){return Y.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},x.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},x.prototype.pointerDown=function(k,W){this.state==="new"&&Y.prototype.pointerDown.call(this,k,W),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(W)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Y.prototype.pointerDown.call(this,k,W)},x.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Y.prototype.pointerUp.call(this,k);else{var W=this.state==="creating";Y.prototype.pointerUp.call(this,k),this.setTipPoints(W),this.positionTip()}},x.prototype.manipulate=function(k){if(this.tipMoving){var W=this.unrotatePoint(k);this.tipPosition={x:W.x-this.manipulationStartLeft,y:W.y-this.manipulationStartTop},this.positionTip()}else Y.prototype.manipulate.call(this,k)},x.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",k]]),he.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},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(k){k===void 0&&(k=!1);var W=Math.min(this.height/2,15),ee=this.height/5;k&&(this.tipPosition={x:W+ee/2,y:this.height+20});var V=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?V.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),W=this.tip1.transform.baseVal.getItem(0);W.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(W,0);var ee=this.tip2.transform.baseVal.getItem(0);ee.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ee,0)}},Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},x.typeName="MeasurementMarker",x.title="Measurement marker",x.icon='',x}(lt),ze=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokePanel.colors=ee.defaultColorSet,V.fillColor="transparent",V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="EllipseFrameMarker",x.title="Ellipse frame marker",x.icon='',x}(Pe),ht=function(){function Y(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Y.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Y.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))},Y.prototype.replaceLastUndoStep=function(x){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=x)},Y.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Y.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}},Y.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Y}(),ot=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor="transparent",V.strokeWidth=0,V.strokeDasharray="",V.curveX=0,V.curveY=0,V.manipulationStartCurveX=0,V.manipulationStartCurveY=0,V.setStrokeColor=V.setStrokeColor.bind(V),V.setStrokeWidth=V.setStrokeWidth.bind(V),V.setStrokeDasharray=V.setStrokeDasharray.bind(V),V.positionGrips=V.positionGrips.bind(V),V.addControlGrips=V.addControlGrips.bind(V),V.adjustVisual=V.adjustVisual.bind(V),V.setupControlBox=V.setupControlBox.bind(V),V.resize=V.resize.bind(V),V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},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=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.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(k,W){Y.prototype.pointerDown.call(this,k,W),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(W)&&(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()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},x.prototype.setupControlBox=function(){Y.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.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,Y.prototype.addControlGrips.call(this)},x.prototype.positionGrips=function(){Y.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/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(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),Y.prototype.manipulate.call(this,k)},x.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),Y.prototype.resize.call(this,k),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(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},x.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},x.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},x.prototype.scale=function(k,W){this.curveX=this.curveX*k,this.curveY=this.curveY*W,Y.prototype.scale.call(this,k,W)},Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.strokeColor=W.strokeColor,this.strokeWidth=W.strokeWidth,this.strokeDasharray=W.strokeDasharray,this.curveX=W.curveX,this.curveY=W.curveY,this.createVisual(),this.adjustVisual()},x.typeName="CurveMarker",x.title="Curve marker",x.icon='',x}(ct),yt=function(){function Y(x,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=x,this.cancelable=k}return Object.defineProperty(Y.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Y.prototype.preventDefault=function(){this._defaultPrevented=!0},Y}(),dt=function(Y){function x(k,W,ee){var V=Y.call(this,k,!1)||this;return V.dataUrl=W,V.state=ee,V}return Te(x,Y),x}(yt),ft=function(Y){function x(k,W,ee){ee===void 0&&(ee=!1);var V=Y.call(this,k,ee)||this;return V.marker=W,V}return Te(x,Y),x}(yt),Ot=function(){function Y(){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 Y.prototype.addEventListener=function(x,k){this[x].push(k)},Y.prototype.removeEventListener=function(x,k){var W=this[x].indexOf(k);W>-1&&this[x].splice(W,1)},Y}(),It=function(){function Y(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 ht,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 Ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Y.instanceCounter++,this.styles=new De(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(Y.prototype,"ALL_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,ze,Pe,ce,xe,He,ae,lt,ot]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,Pe,ce,xe]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"BASIC_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,ce]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(x){var k=this;this._availableMarkerTypes.splice(0),x.forEach(function(W){if(typeof W=="string"){var ee=k.ALL_MARKER_TYPES.find(function(V){return V.typeName===W});ee!==void 0&&k._availableMarkerTypes.push(ee)}else k._availableMarkerTypes.push(W)})},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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(Y.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Y.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),re.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Y.prototype.show=function(){var x=this;this.styles.styleSheetRoot===void 0&&oe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=oe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new yt(x))})},Y.prototype.render=function(){return Re(this,void 0,void 0,function(){var x;return Le(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(x=new fe).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 k.sent(),[4,x.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},Y.prototype.close=function(x){var k=this;if(x===void 0&&(x=!1),this.isOpen){var W=!1;x||this.eventListeners.beforeclose.forEach(function(ee){var V=new yt(k,!0);ee(V),V.defaultPrevented&&(W=!0)}),W||(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(ee){return ee(new yt(k))}),this.detachEvents(),this._isOpen=!1)}},Y.prototype.addMarkersToToolbar=function(){for(var x,k=[],W=0;Wthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*x:this.editorCanvas.clientWidth,W=k',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()},Y.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")},Y.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"},Y.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Y.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 Ne(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()},Y.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())},Y.prototype.toolbarButtonClicked=function(x,k){if(x==="marker"&&k!==void 0)this.createNewMarker(k);else if(x==="action")switch(k){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()}},Y.prototype.deleteSelectedMarker=function(){var x=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ee){var V=new ft(x,x._currentMarker,!0);ee(V),V.defaultPrevented&&(k=!0)}),!k){var W=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(ee){return ee(new ft(x,W))})}}},Y.prototype.clear=function(){var x=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ee){var Ye=new ft(x,void 0,!0);Ee(Ye),Ye.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var W=function(Ee){var Ye=ee.markers[Ee];ee.setCurrentMarker(ee.markers[Ee]),ee._currentMarker.dispose(),ee.markerImage.removeChild(ee._currentMarker.container),ee.markers.splice(ee.markers.indexOf(ee._currentMarker),1),ee.eventListeners.markerdelete.forEach(function(tt){return tt(new ft(x,Ye))})},ee=this,V=this.markers.length-1;V>=0;V--)W(V);this.addUndoStep()}},Object.defineProperty(Y.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Y.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))},Y.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)},Y.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Y.prototype.addUndoStep=function(){var x=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),W=this.undoRedoManager.getLastUndoStep();if(!W||W.width===k.width&&W.height===k.height){var ee=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),ee1&&this.panTo({x:x.clientX,y:x.clientY}))},Y.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()},Y.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Y.prototype.onKeyUp=function(x){this._currentMarker===void 0||this.notesArea!==void 0||x.key!=="Delete"&&x.key!=="Backspace"||this.deleteSelectedMarker()},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.markerImage.getBoundingClientRect();return{x:(x-W.left)/this.zoomLevel,y:(k-W.top)/this.zoomLevel}},Y.prototype.onWindowResize=function(){this.positionUI()},Y.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()},Y.prototype.addLicenseKey=function(x){re.addKey(x)},Y.prototype.addEventListener=function(x,k){this.eventListeners.addEventListener(x,k)},Y.prototype.removeEventListener=function(x,k){this.eventListeners.removeEventListener(x,k)},Y.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(Y.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Y.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(k){return k(new yt(x))}))},Y.prototype.blur=function(){var x=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new yt(x))}))},Y.instanceCounter=0,Y}();/* ********************************** + `,$t.style.marginRight="5px",gt.appendChild($t)}V.typeBoxes.push(gt)},V=this,Ee=0;Ee<4;Ee++)ee(Ee);return W},x.prototype.setCurrentType=function(k,W){var ee=this;this.currentType=k,this.typeBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings!==void 0?ee.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},x}(le),we=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.arrowType="end",V.arrowBaseHeight=10,V.arrowBaseWidth=10,V.getArrowPoints=V.getArrowPoints.bind(V),V.setArrowType=V.setArrowType.bind(V),V.arrowTypePanel=new _e("Arrow type","end"),V.arrowTypePanel.onArrowTypeChanged=V.setArrowType,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},x.prototype.getArrowPoints=function(k,W){var ee=this.arrowBaseWidth+2*this.strokeWidth,V=this.arrowBaseHeight+2*this.strokeWidth;return k-ee/2+","+(W+V/2)+" "+k+","+(W-V/2)+" "+(k+ee/2)+","+(W+V/2)},x.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},x.prototype.pointerDown=function(k,W){Y.prototype.pointerDown.call(this,k,W),this.state==="creating"&&this.createTips()},x.prototype.adjustVisual=function(){if(Y.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",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),W=this.arrow1.transform.baseVal.getItem(0);W.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(W,0);var ee=this.arrow2.transform.baseVal.getItem(0);ee.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ee,0)}},x.prototype.setArrowType=function(k){this.arrowType=k,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 k=Object.assign({arrowType:this.arrowType},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.arrowType=W.arrowType,this.createTips(),this.adjustVisual()},x.typeName="ArrowMarker",x.title="Arrow marker",x.icon='',x}(lt),ae=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.fillColor=ee.defaultFillColor,V.strokeWidth=0,V.fillPanel=new ve("Color",ee.defaultColorSet,ee.defaultFillColor),V.fillPanel.onColorChanged=V.setFillColor,V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="CoverMarker",x.title="Cover marker",x.icon='',x}(Je),ue=function(Y){function x(k,W,ee,V){var Ee=Y.call(this,k,V||'')||this;return Ee.opacities=[],Ee.opacityBoxes=[],Ee.opacities=W,Ee.currentOpacity=ee,Ee.setCurrentOpacity=Ee.setCurrentOpacity.bind(Ee),Ee}return Te(x,Y),x.prototype.getUi=function(){var k=this,W=document.createElement("div");return W.style.display="flex",W.style.overflow="hidden",W.style.flexGrow="2",W.style.justifyContent="space-between",this.opacities.forEach(function(ee){var V=document.createElement("div");V.style.display="flex",V.style.alignItems="center",V.style.justifyContent="center",V.style.padding="5px",V.style.borderWidth="2px",V.style.borderStyle="solid",V.style.borderColor=ee===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",V.addEventListener("click",function(){k.setCurrentOpacity(ee,V)}),W.appendChild(V);var Ee=document.createElement("div");Ee.innerText=100*ee+"%",V.appendChild(Ee),k.opacityBoxes.push(V)}),W},x.prototype.setCurrentOpacity=function(k,W){var ee=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(V){V.style.borderColor=V===W?ee.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},x}(le),de=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.setOpacity=V.setOpacity.bind(V),V.fillColor=ee.defaultHighlightColor,V.strokeWidth=0,V.opacity=ee.defaultHighlightOpacity,V.fillPanel=new ve("Color",ee.defaultColorSet,V.fillColor),V.fillPanel.onColorChanged=V.setFillColor,V.opacityPanel=new ue("Opacity",ee.defaultOpacitySteps,V.opacity),V.opacityPanel.onOpacityChanged=V.setOpacity,V}return Te(x,Y),x.prototype.setOpacity=function(k){this.opacity=k,this.visual&&he.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 k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="HighlightMarker",x.title="Highlight marker",x.icon='',x}(ae),me='',xe=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.bgColor="transparent",V.tipPosition={x:0,y:0},V.tipBase1Position={x:0,y:0},V.tipBase2Position={x:0,y:0},V.tipMoving=!1,V.color=ee.defaultStrokeColor,V.bgColor=ee.defaultFillColor,V.fontFamily=ee.defaultFontFamily,V.defaultSize={x:100,y:30},V.setBgColor=V.setBgColor.bind(V),V.getTipPoints=V.getTipPoints.bind(V),V.positionTip=V.positionTip.bind(V),V.setTipPoints=V.setTipPoints.bind(V),V.colorPanel=new ve("Text color",ee.defaultColorSet,V.color,''),V.colorPanel.onColorChanged=V.setColor,V.bgColorPanel=new ve("Fill color",ee.defaultColorSet,V.bgColor,me),V.bgColorPanel.onColorChanged=V.setBgColor,V.fontFamilyPanel=new je("Font",ee.defaultFontFamilies,ee.defaultFontFamily),V.fontFamilyPanel.onFontChanged=V.setFont,V.tipGrip=new We,V.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),V.controlBox.appendChild(V.tipGrip.visual),V}return Te(x,Y),x.prototype.ownsTarget=function(k){return Y.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},x.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},x.prototype.pointerDown=function(k,W){this.state==="new"&&Y.prototype.pointerDown.call(this,k,W),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(W)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Y.prototype.pointerDown.call(this,k,W)},x.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Y.prototype.pointerUp.call(this,k);else{var W=this.state==="creating";Y.prototype.pointerUp.call(this,k),this.setTipPoints(W),this.positionTip()}},x.prototype.manipulate=function(k){if(this.tipMoving){var W=this.unrotatePoint(k);this.tipPosition={x:W.x-this.manipulationStartLeft,y:W.y-this.manipulationStartTop},this.positionTip()}else Y.prototype.manipulate.call(this,k)},x.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",k]]),he.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},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(k){k===void 0&&(k=!1);var W=Math.min(this.height/2,15),ee=this.height/5;k&&(this.tipPosition={x:W+ee/2,y:this.height+20});var V=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?V.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),W=this.tip1.transform.baseVal.getItem(0);W.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(W,0);var ee=this.tip2.transform.baseVal.getItem(0);ee.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ee,0)}},Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},x.typeName="MeasurementMarker",x.title="Measurement marker",x.icon='',x}(lt),ze=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokePanel.colors=ee.defaultColorSet,V.fillColor="transparent",V}return Te(x,Y),Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Y.prototype.getState.call(this);return k.typeName=x.typeName,k},x.typeName="EllipseFrameMarker",x.title="Ellipse frame marker",x.icon='',x}(Pe),ht=function(){function Y(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Y.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Y.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))},Y.prototype.replaceLastUndoStep=function(x){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=x)},Y.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Y.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}},Y.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Y}(),ot=function(Y){function x(k,W,ee){var V=Y.call(this,k,W,ee)||this;return V.strokeColor="transparent",V.strokeWidth=0,V.strokeDasharray="",V.curveX=0,V.curveY=0,V.manipulationStartCurveX=0,V.manipulationStartCurveY=0,V.setStrokeColor=V.setStrokeColor.bind(V),V.setStrokeWidth=V.setStrokeWidth.bind(V),V.setStrokeDasharray=V.setStrokeDasharray.bind(V),V.positionGrips=V.positionGrips.bind(V),V.addControlGrips=V.addControlGrips.bind(V),V.adjustVisual=V.adjustVisual.bind(V),V.setupControlBox=V.setupControlBox.bind(V),V.resize=V.resize.bind(V),V.strokeColor=ee.defaultColor,V.strokeWidth=ee.defaultStrokeWidth,V.strokeDasharray=ee.defaultStrokeDasharray,V.strokePanel=new ve("Line color",ee.defaultColorSet,ee.defaultColor),V.strokePanel.onColorChanged=V.setStrokeColor,V.strokeWidthPanel=new st("Line width",ee.defaultStrokeWidths,ee.defaultStrokeWidth),V.strokeWidthPanel.onWidthChanged=V.setStrokeWidth,V.strokeStylePanel=new qe("Line style",ee.defaultStrokeDasharrays,ee.defaultStrokeDasharray),V.strokeStylePanel.onStyleChanged=V.setStrokeDasharray,V}return Te(x,Y),x.prototype.ownsTarget=function(k){return!(!Y.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},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=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.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(k,W){Y.prototype.pointerDown.call(this,k,W),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(W)&&(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()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},x.prototype.setupControlBox=function(){Y.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.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,Y.prototype.addControlGrips.call(this)},x.prototype.positionGrips=function(){Y.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/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(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),Y.prototype.manipulate.call(this,k)},x.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),Y.prototype.resize.call(this,k),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(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},x.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},x.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},x.prototype.scale=function(k,W){this.curveX=this.curveX*k,this.curveY=this.curveY*W,Y.prototype.scale.call(this,k,W)},Object.defineProperty(x.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),x.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Y.prototype.getState.call(this));return k.typeName=x.typeName,k},x.prototype.restoreState=function(k){Y.prototype.restoreState.call(this,k);var W=k;this.strokeColor=W.strokeColor,this.strokeWidth=W.strokeWidth,this.strokeDasharray=W.strokeDasharray,this.curveX=W.curveX,this.curveY=W.curveY,this.createVisual(),this.adjustVisual()},x.typeName="CurveMarker",x.title="Curve marker",x.icon='',x}(dt),yt=function(){function Y(x,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=x,this.cancelable=k}return Object.defineProperty(Y.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Y.prototype.preventDefault=function(){this._defaultPrevented=!0},Y}(),ct=function(Y){function x(k,W,ee){var V=Y.call(this,k,!1)||this;return V.dataUrl=W,V.state=ee,V}return Te(x,Y),x}(yt),ft=function(Y){function x(k,W,ee){ee===void 0&&(ee=!1);var V=Y.call(this,k,ee)||this;return V.marker=W,V}return Te(x,Y),x}(yt),Ot=function(){function Y(){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 Y.prototype.addEventListener=function(x,k){this[x].push(k)},Y.prototype.removeEventListener=function(x,k){var W=this[x].indexOf(k);W>-1&&this[x].splice(W,1)},Y}(),It=function(){function Y(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 ht,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 Ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Y.instanceCounter++,this.styles=new De(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(Y.prototype,"ALL_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,ze,Pe,de,xe,He,ae,lt,ot]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,Pe,de,xe]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"BASIC_MARKER_TYPES",{get:function(){return[at,Ae,we,Ge,de]},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(x){var k=this;this._availableMarkerTypes.splice(0),x.forEach(function(W){if(typeof W=="string"){var ee=k.ALL_MARKER_TYPES.find(function(V){return V.typeName===W});ee!==void 0&&k._availableMarkerTypes.push(ee)}else k._availableMarkerTypes.push(W)})},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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(Y.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Y.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),re.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Y.prototype.show=function(){var x=this;this.styles.styleSheetRoot===void 0&&oe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=oe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new yt(x))})},Y.prototype.render=function(){return Re(this,void 0,void 0,function(){var x;return Le(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(x=new fe).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 k.sent(),[4,x.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},Y.prototype.close=function(x){var k=this;if(x===void 0&&(x=!1),this.isOpen){var W=!1;x||this.eventListeners.beforeclose.forEach(function(ee){var V=new yt(k,!0);ee(V),V.defaultPrevented&&(W=!0)}),W||(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(ee){return ee(new yt(k))}),this.detachEvents(),this._isOpen=!1)}},Y.prototype.addMarkersToToolbar=function(){for(var x,k=[],W=0;Wthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*x:this.editorCanvas.clientWidth,W=k',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()},Y.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")},Y.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"},Y.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Y.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 Ne(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()},Y.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())},Y.prototype.toolbarButtonClicked=function(x,k){if(x==="marker"&&k!==void 0)this.createNewMarker(k);else if(x==="action")switch(k){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()}},Y.prototype.deleteSelectedMarker=function(){var x=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ee){var V=new ft(x,x._currentMarker,!0);ee(V),V.defaultPrevented&&(k=!0)}),!k){var W=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(ee){return ee(new ft(x,W))})}}},Y.prototype.clear=function(){var x=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ee){var Ye=new ft(x,void 0,!0);Ee(Ye),Ye.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var W=function(Ee){var Ye=ee.markers[Ee];ee.setCurrentMarker(ee.markers[Ee]),ee._currentMarker.dispose(),ee.markerImage.removeChild(ee._currentMarker.container),ee.markers.splice(ee.markers.indexOf(ee._currentMarker),1),ee.eventListeners.markerdelete.forEach(function(tt){return tt(new ft(x,Ye))})},ee=this,V=this.markers.length-1;V>=0;V--)W(V);this.addUndoStep()}},Object.defineProperty(Y.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Y.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))},Y.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)},Y.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Y.prototype.addUndoStep=function(){var x=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),W=this.undoRedoManager.getLastUndoStep();if(!W||W.width===k.width&&W.height===k.height){var ee=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),ee1&&this.panTo({x:x.clientX,y:x.clientY}))},Y.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()},Y.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Y.prototype.onKeyUp=function(x){this._currentMarker===void 0||this.notesArea!==void 0||x.key!=="Delete"&&x.key!=="Backspace"||this.deleteSelectedMarker()},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.markerImage.getBoundingClientRect();return{x:(x-W.left)/this.zoomLevel,y:(k-W.top)/this.zoomLevel}},Y.prototype.onWindowResize=function(){this.positionUI()},Y.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()},Y.prototype.addLicenseKey=function(x){re.addKey(x)},Y.prototype.addEventListener=function(x,k){this.eventListeners.addEventListener(x,k)},Y.prototype.removeEventListener=function(x,k){this.eventListeners.removeEventListener(x,k)},Y.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(Y.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Y.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(k){return k(new yt(x))}))},Y.prototype.blur=function(){var x=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new yt(x))}))},Y.instanceCounter=0,Y}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -190,7 +190,7 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.addClass(new wt("_fade_out",` animation-duration: 0.3s; animation-name: `+this.classNamePrefix+`_fade_out_animation_frames; - `))},Y.prototype.removeStyleSheet=function(){var x;this.styleSheet&&(((x=this.styleSheetRoot)!==null&&x!==void 0?x:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Y}(),Et=function(Y,x){this.selector=Y,this.style=x},wt=function(Y,x){this.localName=Y,this.style=x},Ut=function(){function Y(){this.blocks=[],this.display=""}return Y.prototype.addButtonBlock=function(x){x.className=this.blockClassName,x.buttonClassName=this.buttonClassName,x.buttonColorsClassName=this.buttonColorsClassName,x.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(x)},Y.prototype.addElementBlock=function(x){x.className===void 0&&(x.className=this.blockClassName),this.blocks.push(x)},Y.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(k){return x.appendChild(k.getUI())}),x},Y}(),tr=function(){function Y(){}return Y.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},Y}(),dr=function(Y){function x(){var k=Y!==null&&Y.apply(this,arguments)||this;return k.buttons=[],k}return Zt(x,Y),x.prototype.addButton=function(k){k.className=this.buttonClassName,k.colorsClassName=this.buttonColorsClassName,k.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(k)},x.prototype.getUI=function(){var k=Y.prototype.getUI.call(this);return this.buttons.forEach(function(W){return k.appendChild(W.getUI())}),k},x}(tr),Nt=function(){function Y(x,k){this._isActive=!1,this._isHidden=!1,this._icon=x,this.title=k,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(Y.prototype,"icon",{get:function(){return this._icon},set:function(x){this._icon=x,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isActive",{get:function(){return this._isActive},set:function(x){this._isActive=x,this.adjustClassName()},enumerable:!1,configurable:!0}),Y.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},Y.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,"")))},Y.prototype.hide=function(){this._isHidden=!0},Y}(),mt=function(Y){function x(){var k=Y!==null&&Y.apply(this,arguments)||this;return k.elements=[],k}return Zt(x,Y),x.prototype.addElement=function(k){this.elements.push(k)},x.prototype.getUI=function(){var k=Y.prototype.getUI.call(this);return this.elements.forEach(function(W){return k.appendChild(W)}),k},x}(tr),Br=function(){function Y(x,k){this.horizontal=x,this.vertical=k}return Object.defineProperty(Y.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),Y.prototype.getVerticalLength=function(x){return x/this.ratio},Y.prototype.getHorizontalLength=function(x){return x*this.ratio},Y}(),Vt=function(){function Y(){}return Y.getIcon=function(x,k){if(x>0&&k>0){var W=new Br(x,k),ee=W.ratio>=1?20:W.getHorizontalLength(20),V=W.ratio<1?20:W.getVerticalLength(20),Ee=document.createElementNS("http://www.w3.org/2000/svg","svg");Ee.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ee.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Ee);var Ye=_t.createDefs();Ee.appendChild(Ye);var tt=_t.createElement("clipPath",[["id","text-bg-clip"]]);Ye.appendChild(tt);var gt=_t.createPath(_t.getHollowRectanglePath((24-ee)/2,(24-V)/2,ee,V,(24-ee)/2+2,(24-V)/2+2,ee-4,V-4));Ee.appendChild(gt);var Xe=_t.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Xe.appendChild(_t.createTSpan(x+":"+k)),Ee.appendChild(Xe);var xt=Xe.getBBox();_t.setAttributes(Xe,[["x",((24-xt.width)/2).toString()],["y",((24-xt.height)/2-xt.y).toString()]]);var jt=_t.createPath(_t.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(xt.width))/2,(24-Math.ceil(xt.height))/2,Math.ceil(xt.width),Math.ceil(xt.height)));return tt.appendChild(jt),_t.setAttributes(gt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Ee),Ee.outerHTML}return''},Y}(),Jt=function(Y){function x(k,W,ee){var V=Y.call(this,k,W)||this;return V.isDropdownOpen=!1,V.onClick=V.dropdownButtonClicked,V.dropdownButtons=ee,V}return Zt(x,Y),x.prototype.setupDropdown=function(){var k=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(W){W.className=k.className,W.colorsClassName=k.colorsClassName,k.dropdownBlock.appendChild(W.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}(Nt),Rt=function(){function Y(x,k){this.GRIP_SIZE=10,this.color=x,this.fillColor=k,this.visual=_t.createGroup(),this.visual.appendChild(_t.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_t.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Y.prototype.ownsTarget=function(x){return x===this.visual||x===this.visual.childNodes[0]||x===this.visual.childNodes[1]},Y.prototype.setCenter=function(x,k){this.visual.childNodes.forEach(function(W){return _t.setAttributes(W,[["cx",x.toString()],["cy",k.toString()]])})},Y}(),lr=function(){function Y(x,k,W,ee){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=x,this.canvasHeight=k,this.margin=W,this.container=ee,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(Y.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(Y.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(x){this._isGridVisible=x,this.gridContainer&&_t.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(x){this._zoomFactor=x,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Y.prototype.open=function(){var x=this;this.cropShadeElement=_t.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=_t.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var k=0;kthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-k.height/2),_t.setAttributes(this.cropRectElement,[["x",k.x.toString()],["y",k.y.toString()],["width",k.width.toString()],["height",k.height.toString()]]);var W=k.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(V,Ee){var Ye=k.y+W*(Ee+1);_t.setAttributes(V,[["x1",""+k.x],["y1",""+Ye],["x2",""+(k.x+k.width)],["y2",""+Ye]])});var ee=k.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(V,Ee){var Ye=k.x+ee*(Ee+1);_t.setAttributes(V,[["x1",""+Ye],["y1",""+k.y],["x2",""+Ye],["y2",""+(k.y+k.height)]])}),_t.setAttributes(this.cropShadeElement,[["d",_t.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,k.x,k.y,k.width,k.height)]]),this.topLeftGrip.setCenter(k.x,k.y),this.topRightGrip.setCenter(k.x+k.width,k.y),this.bottomLeftGrip.setCenter(k.x,k.y+k.height),this.bottomRightGrip.setCenter(k.x+k.width,k.y+k.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},Y.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)},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.container.getBoundingClientRect();return{x:x-W.left+this.margin,y:k-W.top+this.margin}},Y.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)},Y.prototype.onPointerMove=function(x){if(this.isMoving)this.move(this.clientToLocalCoordinates(x.clientX,x.clientY));else if(this.activeGrip){var k=this.clientToLocalCoordinates(x.clientX,x.clientY);this.resize(k)}x.preventDefault()},Y.prototype.onPointerUp=function(x){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(x.pointerId)},Y.prototype.move=function(x){var k=x.x-this.previousPoint.x,W=x.y-this.previousPoint.y;this.zoomFactor!==1&&(k=-k/this.zoomFactor,W=-W/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+k),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+W),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=x},Y.prototype.resize=function(x){var k=Object.assign({},this.cropRect),W=x.x-this.previousPoint.x,ee=x.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:k.x+Wthis.canvasWidth*this.zoomFactor&&(W=this.canvasWidth*this.zoomFactor-k.width),k.width+=W}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(k.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(W),k.height=this.aspectRatio.getVerticalLength(k.width)):(k.y+=ee,k.height=this.cropRect.y+this.cropRect.height-k.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?k.height=this.aspectRatio.getVerticalLength(k.width):k.height+=ee}k.width<10&&(k.x=this.cropRect.x,k.width=10),k.height<10&&(k.y=this.cropRect.y,k.height=10),this.previousPoint=x,k.x>=this.margin&&k.y>=this.margin&&k.x-this.margin+k.width<=this.canvasWidth&&k.y-this.margin+k.height<=this.canvasHeight&&(this.cropRect=k,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},Y.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,k=this.cropRect.y+this.cropRect.height/2,W=this.aspectRatio.getHorizontalLength(this.cropRect.height),ee=this.aspectRatio.getVerticalLength(this.cropRect.width);W/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=k-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)}},Y.prototype.getRescaledRect=function(x,k,W,ee,V,Ee){var Ye=W/x,tt=ee/k;return{x:(V.x-Ee)*Ye+Ee,y:(V.y-Ee)*tt+Ee,width:V.width*Ye,height:V.height*tt}},Y.prototype.scaleCanvas=function(x,k){var W=this.getRescaledRect(this.canvasWidth,this.canvasHeight,x,k,this.cropRect,this.margin);this.canvasWidth=x,this.canvasHeight=k,this.onCropChange&&this.onCropChange(W),this.setCropRectangle(W)},Y}(),Ir=function(){function Y(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(Y.prototype,"angle",{get:function(){return this._angle},set:function(x){this._angle=x,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),Y.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},Y.prototype.onPointerDown=function(x){this.controlContainer.setPointerCapture(x.pointerId),this.isDragging=!0,this.previousPoint={x:x.clientX,y:x.clientY}},Y.prototype.onPointerMove=function(x){this.isDragging&&(this.onAngleChange&&this.onAngleChange((x.clientX-this.previousPoint.x)/5),this.previousPoint.x=x.clientX)},Y.prototype.onPointerUp=function(x){this.isDragging&&this.onAngleChange&&this.onAngleChange((x.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(x.pointerId)},Y.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var x=this.angleLabelText.getBBox();_t.setAttributes(this.angleLabelElement,[["x",((this.width-x.width)/2).toString()],["y",(this.height/2).toString()]])}},Y.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)}},Y.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 k="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,W=1;W<=this.width/5+10;W++){var ee=W%5==0?this.height/3:this.height/6;k+="h4v"+-ee+"h1v"+ee}k+="v1H0Z",this.scaleShape=_t.createPath(k);var V=_t.createTransform();this.scaleShape.transform.baseVal.appendItem(V),x.appendChild(this.scaleShape),this.angleLabelElement=_t.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=_t.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Ee=_t.createTSpan("");return Ee.innerHTML="°",this.angleLabelElement.appendChild(Ee),x.appendChild(this.angleLabelElement),document.body.removeChild(x),x},Y}(),Xr=function(){function Y(){this.naturalSize=!1,this.imageType="image/png"}return Y.prototype.rasterize=function(x,k,W,ee,V,Ee,Ye){var tt=this;return new Promise(function(gt){var Xe=document.createElement("canvas");Xe.width=x.width.baseVal.value-2*ee,Xe.height=x.height.baseVal.value-2*ee;var xt=1,jt=1;tt.naturalSize===!0?(xt=k.naturalWidth/(x.width.baseVal.value-2*ee)/Ee,jt=k.naturalHeight/(x.height.baseVal.value-2*ee)/Ye,Xe.width=k.naturalWidth/Ee,Xe.height=k.naturalHeight/Ye):tt.width!==void 0&&tt.height!==void 0&&(xt=tt.width/W.width,jt=tt.height/W.height,Xe.width*=xt,Xe.height*=jt);var $t=Xe.getContext("2d");$t.translate(Xe.width/2,Xe.height/2),$t.rotate(V*Math.PI/180),$t.scale(Ee,Ye),$t.translate(-Xe.width/2,-Xe.height/2),$t.drawImage(k,0,0,Xe.width,Xe.height);var jr=document.createElement("canvas");jr.width=W.width*xt,jr.height=W.height*jt,jr.getContext("2d").putImageData($t.getImageData((W.x-ee)*xt,(W.y-ee)*jt,W.width*xt,W.height*jt),0,0),gt(jr.toDataURL(tt.imageType,tt.imageQuality))})},Y}(),Ze=function(){function Y(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=Y.instanceCounter++,this.styles=new Lr(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(Y.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(x){this._zoomToCropEnabled=x,x?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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(Y.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(Y.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(Y.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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}),Y.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},Y.prototype.show=function(){this.showUI(),this.open()},Y.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(k){return k()}),this._isOpen=!1)},Y.prototype.addRenderEventListener=function(x){this.renderEventListeners.push(x)},Y.prototype.removeRenderEventListener=function(x){this.renderEventListeners.indexOf(x)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(x),1)},Y.prototype.addCloseEventListener=function(x){this.closeEventListeners.push(x)},Y.prototype.removeCloseEventListener=function(x){this.closeEventListeners.indexOf(x)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(x),1)},Y.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))},Y.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var x=1*this.target.clientWidth/this.target.clientHeight,k=this.contentDiv.clientWidth/x>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*x:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,W=k+2*this.CANVAS_MARGINx+this.CANVAS_MARGIN?this.target.offsetTop-(x+this.CANVAS_MARGIN):0;this.coverDiv.style.top=k+"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},Y.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Y.prototype.addTopToolbar=function(){var x=this;this.topToolbar=new Ut,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 k=new dr;k.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(k);var W=[];this.aspectRatios.forEach(function(jt){var $t=new Nt(Vt.getIcon(jt.horizontal,jt.vertical),jt.horizontal===0&&jt.vertical===0?"FREE":jt.horizontal+":"+jt.vertical);$t.onClick=function(){return x.ratioButtonClicked(jt)},W.push($t)}),this.aspectRatioButton=new Jt(Vt.getIcon(0,0),"Aspect ratio",W),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,k.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ee=new Nt('',"Toggle grid");ee.isActive=this.isGridVisible,ee.onClick=function(){x.isGridVisible=!x.isGridVisible,ee.isActive=x.isGridVisible},k.addButton(ee);var V=new Nt('',"Zoom to selection");if(V.isActive=this.zoomToCropEnabled,V.onClick=function(){x.zoomToCropEnabled=!x.zoomToCropEnabled,V.isActive=x.zoomToCropEnabled},k.addButton(V),!Kr.isLicensed){var Ee=new mt;this.topToolbar.addElementBlock(Ee);var Ye=document.createElement("div");Ye.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var tt=document.createElement("a");tt.style.color="currentColor",tt.href="https://markerjs.com/products/cropro",tt.target="_blank",tt.innerHTML='',Ye.appendChild(tt),Ee.addElement(Ye)}var gt=new dr;gt.minWidth=3*this.toolbarHeight+"px",gt.contentAlign="end",this.topToolbar.addButtonBlock(gt);var Xe=new Nt('',"OK");Xe.onClick=this.startRenderAndClose,gt.addButton(Xe),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Xe.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var xt=new Nt('',"Close");xt.onClick=this.close,gt.addButton(xt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(xt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Y.prototype.addBottomToolbar=function(){var x=this;this.bottomToolbar=new Ut,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 k=new dr;k.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(k);var W=new Nt('',"Rotate left");W.onClick=this.rotateLeftButtonClicked,k.addButton(W);var ee=new Nt('',"Rotate right");ee.onClick=this.rotateRightButtonClicked,k.addButton(ee);var V=new mt;V.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(V),this.straightener=new Ir("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(gt){x.rotateBy(gt),x.straightener.angle=x.rotationAngle},V.addElement(this.straightener.getUI());var Ee=new dr;Ee.minWidth=2*this.toolbarHeight+"px",Ee.contentAlign="end",this.bottomToolbar.addButtonBlock(Ee);var Ye=new Nt('',"Flip horizontal");Ye.onClick=this.flipHorizontallyButtonClicked,Ee.addButton(Ye);var tt=new Nt('',"Flip vertical");tt.onClick=this.flipVerticallyButtonClicked,Ee.addButton(tt)},Y.prototype.ratioButtonClicked=function(x){this.aspectRatio=x,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Y.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Vt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Y.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Br(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Y.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Y.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Y.prototype.restoreState=function(x){if(x){var k=this.cropLayer.getRescaledRect(x.width,x.height,this.imageWidth,this.imageHeight,x.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(k),this.cropRectChanged(k),this.flippedHorizontally=x.flippedHorizontally,this.flippedVertically=x.flippedVertically,this.applyFlip(),this.rotationAngle=x.rotationAngle,this.applyRotation()}},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.cropImage.getBoundingClientRect();return{x:x-W.left,y:k-W.top}},Y.prototype.onWindowResize=function(){this.positionUI()},Y.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()},Y.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)},Y.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)},Y.prototype.rotateTo=function(x){x=(x=x>180?x-360:x)<=-180?x+360:x,this.rotationAngle=x,this.applyRotation()},Y.prototype.rotateBy=function(x){this.rotateTo((this.rotationAngle+x)%360)},Y.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 k=this.editingTargetRotationContainer.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(k,0);var W=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/W.width,this.imageHeight/W.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=x},Y.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Y.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Y.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Y.prototype.startRenderAndClose=function(){return Dt(this,void 0,void 0,function(){var x,k;return Cr(this,function(W){switch(W.label){case 0:return[4,this.render()];case 1:return x=W.sent(),k=this.getState(),this.renderEventListeners.forEach(function(ee){return ee(x,k)}),this.close(!0),[2]}})})},Y.prototype.render=function(){return Dt(this,void 0,void 0,function(){var x;return Cr(this,function(k){switch(k.label){case 0:return(x=new Xr).naturalSize=this.renderAtNaturalSize,x.imageType=this.renderImageType,x.imageQuality=this.renderImageQuality,x.width=this.renderWidth,x.height=this.renderHeight,this.unzoomFromCrop(),_t.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 k.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,k.sent()]}})})},Y.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new wt("toolbar",` + `))},Y.prototype.removeStyleSheet=function(){var x;this.styleSheet&&(((x=this.styleSheetRoot)!==null&&x!==void 0?x:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Y}(),Et=function(Y,x){this.selector=Y,this.style=x},wt=function(Y,x){this.localName=Y,this.style=x},Ut=function(){function Y(){this.blocks=[],this.display=""}return Y.prototype.addButtonBlock=function(x){x.className=this.blockClassName,x.buttonClassName=this.buttonClassName,x.buttonColorsClassName=this.buttonColorsClassName,x.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(x)},Y.prototype.addElementBlock=function(x){x.className===void 0&&(x.className=this.blockClassName),this.blocks.push(x)},Y.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(k){return x.appendChild(k.getUI())}),x},Y}(),tr=function(){function Y(){}return Y.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},Y}(),cr=function(Y){function x(){var k=Y!==null&&Y.apply(this,arguments)||this;return k.buttons=[],k}return Zt(x,Y),x.prototype.addButton=function(k){k.className=this.buttonClassName,k.colorsClassName=this.buttonColorsClassName,k.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(k)},x.prototype.getUI=function(){var k=Y.prototype.getUI.call(this);return this.buttons.forEach(function(W){return k.appendChild(W.getUI())}),k},x}(tr),Nt=function(){function Y(x,k){this._isActive=!1,this._isHidden=!1,this._icon=x,this.title=k,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(Y.prototype,"icon",{get:function(){return this._icon},set:function(x){this._icon=x,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isActive",{get:function(){return this._isActive},set:function(x){this._isActive=x,this.adjustClassName()},enumerable:!1,configurable:!0}),Y.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},Y.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,"")))},Y.prototype.hide=function(){this._isHidden=!0},Y}(),mt=function(Y){function x(){var k=Y!==null&&Y.apply(this,arguments)||this;return k.elements=[],k}return Zt(x,Y),x.prototype.addElement=function(k){this.elements.push(k)},x.prototype.getUI=function(){var k=Y.prototype.getUI.call(this);return this.elements.forEach(function(W){return k.appendChild(W)}),k},x}(tr),Br=function(){function Y(x,k){this.horizontal=x,this.vertical=k}return Object.defineProperty(Y.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),Y.prototype.getVerticalLength=function(x){return x/this.ratio},Y.prototype.getHorizontalLength=function(x){return x*this.ratio},Y}(),Vt=function(){function Y(){}return Y.getIcon=function(x,k){if(x>0&&k>0){var W=new Br(x,k),ee=W.ratio>=1?20:W.getHorizontalLength(20),V=W.ratio<1?20:W.getVerticalLength(20),Ee=document.createElementNS("http://www.w3.org/2000/svg","svg");Ee.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ee.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Ee);var Ye=_t.createDefs();Ee.appendChild(Ye);var tt=_t.createElement("clipPath",[["id","text-bg-clip"]]);Ye.appendChild(tt);var gt=_t.createPath(_t.getHollowRectanglePath((24-ee)/2,(24-V)/2,ee,V,(24-ee)/2+2,(24-V)/2+2,ee-4,V-4));Ee.appendChild(gt);var Xe=_t.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Xe.appendChild(_t.createTSpan(x+":"+k)),Ee.appendChild(Xe);var xt=Xe.getBBox();_t.setAttributes(Xe,[["x",((24-xt.width)/2).toString()],["y",((24-xt.height)/2-xt.y).toString()]]);var jt=_t.createPath(_t.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(xt.width))/2,(24-Math.ceil(xt.height))/2,Math.ceil(xt.width),Math.ceil(xt.height)));return tt.appendChild(jt),_t.setAttributes(gt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Ee),Ee.outerHTML}return''},Y}(),Jt=function(Y){function x(k,W,ee){var V=Y.call(this,k,W)||this;return V.isDropdownOpen=!1,V.onClick=V.dropdownButtonClicked,V.dropdownButtons=ee,V}return Zt(x,Y),x.prototype.setupDropdown=function(){var k=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(W){W.className=k.className,W.colorsClassName=k.colorsClassName,k.dropdownBlock.appendChild(W.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}(Nt),Rt=function(){function Y(x,k){this.GRIP_SIZE=10,this.color=x,this.fillColor=k,this.visual=_t.createGroup(),this.visual.appendChild(_t.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_t.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Y.prototype.ownsTarget=function(x){return x===this.visual||x===this.visual.childNodes[0]||x===this.visual.childNodes[1]},Y.prototype.setCenter=function(x,k){this.visual.childNodes.forEach(function(W){return _t.setAttributes(W,[["cx",x.toString()],["cy",k.toString()]])})},Y}(),lr=function(){function Y(x,k,W,ee){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=x,this.canvasHeight=k,this.margin=W,this.container=ee,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(Y.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(Y.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(x){this._isGridVisible=x,this.gridContainer&&_t.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(x){this._zoomFactor=x,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Y.prototype.open=function(){var x=this;this.cropShadeElement=_t.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=_t.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var k=0;kthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-k.height/2),_t.setAttributes(this.cropRectElement,[["x",k.x.toString()],["y",k.y.toString()],["width",k.width.toString()],["height",k.height.toString()]]);var W=k.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(V,Ee){var Ye=k.y+W*(Ee+1);_t.setAttributes(V,[["x1",""+k.x],["y1",""+Ye],["x2",""+(k.x+k.width)],["y2",""+Ye]])});var ee=k.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(V,Ee){var Ye=k.x+ee*(Ee+1);_t.setAttributes(V,[["x1",""+Ye],["y1",""+k.y],["x2",""+Ye],["y2",""+(k.y+k.height)]])}),_t.setAttributes(this.cropShadeElement,[["d",_t.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,k.x,k.y,k.width,k.height)]]),this.topLeftGrip.setCenter(k.x,k.y),this.topRightGrip.setCenter(k.x+k.width,k.y),this.bottomLeftGrip.setCenter(k.x,k.y+k.height),this.bottomRightGrip.setCenter(k.x+k.width,k.y+k.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},Y.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)},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.container.getBoundingClientRect();return{x:x-W.left+this.margin,y:k-W.top+this.margin}},Y.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)},Y.prototype.onPointerMove=function(x){if(this.isMoving)this.move(this.clientToLocalCoordinates(x.clientX,x.clientY));else if(this.activeGrip){var k=this.clientToLocalCoordinates(x.clientX,x.clientY);this.resize(k)}x.preventDefault()},Y.prototype.onPointerUp=function(x){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(x.pointerId)},Y.prototype.move=function(x){var k=x.x-this.previousPoint.x,W=x.y-this.previousPoint.y;this.zoomFactor!==1&&(k=-k/this.zoomFactor,W=-W/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+k),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+W),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=x},Y.prototype.resize=function(x){var k=Object.assign({},this.cropRect),W=x.x-this.previousPoint.x,ee=x.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:k.x+Wthis.canvasWidth*this.zoomFactor&&(W=this.canvasWidth*this.zoomFactor-k.width),k.width+=W}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(k.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(W),k.height=this.aspectRatio.getVerticalLength(k.width)):(k.y+=ee,k.height=this.cropRect.y+this.cropRect.height-k.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?k.height=this.aspectRatio.getVerticalLength(k.width):k.height+=ee}k.width<10&&(k.x=this.cropRect.x,k.width=10),k.height<10&&(k.y=this.cropRect.y,k.height=10),this.previousPoint=x,k.x>=this.margin&&k.y>=this.margin&&k.x-this.margin+k.width<=this.canvasWidth&&k.y-this.margin+k.height<=this.canvasHeight&&(this.cropRect=k,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},Y.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,k=this.cropRect.y+this.cropRect.height/2,W=this.aspectRatio.getHorizontalLength(this.cropRect.height),ee=this.aspectRatio.getVerticalLength(this.cropRect.width);W/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=k-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)}},Y.prototype.getRescaledRect=function(x,k,W,ee,V,Ee){var Ye=W/x,tt=ee/k;return{x:(V.x-Ee)*Ye+Ee,y:(V.y-Ee)*tt+Ee,width:V.width*Ye,height:V.height*tt}},Y.prototype.scaleCanvas=function(x,k){var W=this.getRescaledRect(this.canvasWidth,this.canvasHeight,x,k,this.cropRect,this.margin);this.canvasWidth=x,this.canvasHeight=k,this.onCropChange&&this.onCropChange(W),this.setCropRectangle(W)},Y}(),Ir=function(){function Y(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(Y.prototype,"angle",{get:function(){return this._angle},set:function(x){this._angle=x,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),Y.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},Y.prototype.onPointerDown=function(x){this.controlContainer.setPointerCapture(x.pointerId),this.isDragging=!0,this.previousPoint={x:x.clientX,y:x.clientY}},Y.prototype.onPointerMove=function(x){this.isDragging&&(this.onAngleChange&&this.onAngleChange((x.clientX-this.previousPoint.x)/5),this.previousPoint.x=x.clientX)},Y.prototype.onPointerUp=function(x){this.isDragging&&this.onAngleChange&&this.onAngleChange((x.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(x.pointerId)},Y.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var x=this.angleLabelText.getBBox();_t.setAttributes(this.angleLabelElement,[["x",((this.width-x.width)/2).toString()],["y",(this.height/2).toString()]])}},Y.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)}},Y.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 k="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,W=1;W<=this.width/5+10;W++){var ee=W%5==0?this.height/3:this.height/6;k+="h4v"+-ee+"h1v"+ee}k+="v1H0Z",this.scaleShape=_t.createPath(k);var V=_t.createTransform();this.scaleShape.transform.baseVal.appendItem(V),x.appendChild(this.scaleShape),this.angleLabelElement=_t.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=_t.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Ee=_t.createTSpan("");return Ee.innerHTML="°",this.angleLabelElement.appendChild(Ee),x.appendChild(this.angleLabelElement),document.body.removeChild(x),x},Y}(),Xr=function(){function Y(){this.naturalSize=!1,this.imageType="image/png"}return Y.prototype.rasterize=function(x,k,W,ee,V,Ee,Ye){var tt=this;return new Promise(function(gt){var Xe=document.createElement("canvas");Xe.width=x.width.baseVal.value-2*ee,Xe.height=x.height.baseVal.value-2*ee;var xt=1,jt=1;tt.naturalSize===!0?(xt=k.naturalWidth/(x.width.baseVal.value-2*ee)/Ee,jt=k.naturalHeight/(x.height.baseVal.value-2*ee)/Ye,Xe.width=k.naturalWidth/Ee,Xe.height=k.naturalHeight/Ye):tt.width!==void 0&&tt.height!==void 0&&(xt=tt.width/W.width,jt=tt.height/W.height,Xe.width*=xt,Xe.height*=jt);var $t=Xe.getContext("2d");$t.translate(Xe.width/2,Xe.height/2),$t.rotate(V*Math.PI/180),$t.scale(Ee,Ye),$t.translate(-Xe.width/2,-Xe.height/2),$t.drawImage(k,0,0,Xe.width,Xe.height);var jr=document.createElement("canvas");jr.width=W.width*xt,jr.height=W.height*jt,jr.getContext("2d").putImageData($t.getImageData((W.x-ee)*xt,(W.y-ee)*jt,W.width*xt,W.height*jt),0,0),gt(jr.toDataURL(tt.imageType,tt.imageQuality))})},Y}(),Ze=function(){function Y(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=Y.instanceCounter++,this.styles=new Lr(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(Y.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(x){this._zoomToCropEnabled=x,x?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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(Y.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(Y.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(Y.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Y.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}),Y.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},Y.prototype.show=function(){this.showUI(),this.open()},Y.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(k){return k()}),this._isOpen=!1)},Y.prototype.addRenderEventListener=function(x){this.renderEventListeners.push(x)},Y.prototype.removeRenderEventListener=function(x){this.renderEventListeners.indexOf(x)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(x),1)},Y.prototype.addCloseEventListener=function(x){this.closeEventListeners.push(x)},Y.prototype.removeCloseEventListener=function(x){this.closeEventListeners.indexOf(x)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(x),1)},Y.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))},Y.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var x=1*this.target.clientWidth/this.target.clientHeight,k=this.contentDiv.clientWidth/x>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*x:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,W=k+2*this.CANVAS_MARGINx+this.CANVAS_MARGIN?this.target.offsetTop-(x+this.CANVAS_MARGIN):0;this.coverDiv.style.top=k+"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},Y.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Y.prototype.addTopToolbar=function(){var x=this;this.topToolbar=new Ut,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 k=new cr;k.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(k);var W=[];this.aspectRatios.forEach(function(jt){var $t=new Nt(Vt.getIcon(jt.horizontal,jt.vertical),jt.horizontal===0&&jt.vertical===0?"FREE":jt.horizontal+":"+jt.vertical);$t.onClick=function(){return x.ratioButtonClicked(jt)},W.push($t)}),this.aspectRatioButton=new Jt(Vt.getIcon(0,0),"Aspect ratio",W),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,k.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ee=new Nt('',"Toggle grid");ee.isActive=this.isGridVisible,ee.onClick=function(){x.isGridVisible=!x.isGridVisible,ee.isActive=x.isGridVisible},k.addButton(ee);var V=new Nt('',"Zoom to selection");if(V.isActive=this.zoomToCropEnabled,V.onClick=function(){x.zoomToCropEnabled=!x.zoomToCropEnabled,V.isActive=x.zoomToCropEnabled},k.addButton(V),!Kr.isLicensed){var Ee=new mt;this.topToolbar.addElementBlock(Ee);var Ye=document.createElement("div");Ye.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var tt=document.createElement("a");tt.style.color="currentColor",tt.href="https://markerjs.com/products/cropro",tt.target="_blank",tt.innerHTML='',Ye.appendChild(tt),Ee.addElement(Ye)}var gt=new cr;gt.minWidth=3*this.toolbarHeight+"px",gt.contentAlign="end",this.topToolbar.addButtonBlock(gt);var Xe=new Nt('',"OK");Xe.onClick=this.startRenderAndClose,gt.addButton(Xe),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Xe.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var xt=new Nt('',"Close");xt.onClick=this.close,gt.addButton(xt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(xt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Y.prototype.addBottomToolbar=function(){var x=this;this.bottomToolbar=new Ut,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 k=new cr;k.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(k);var W=new Nt('',"Rotate left");W.onClick=this.rotateLeftButtonClicked,k.addButton(W);var ee=new Nt('',"Rotate right");ee.onClick=this.rotateRightButtonClicked,k.addButton(ee);var V=new mt;V.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(V),this.straightener=new Ir("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(gt){x.rotateBy(gt),x.straightener.angle=x.rotationAngle},V.addElement(this.straightener.getUI());var Ee=new cr;Ee.minWidth=2*this.toolbarHeight+"px",Ee.contentAlign="end",this.bottomToolbar.addButtonBlock(Ee);var Ye=new Nt('',"Flip horizontal");Ye.onClick=this.flipHorizontallyButtonClicked,Ee.addButton(Ye);var tt=new Nt('',"Flip vertical");tt.onClick=this.flipVerticallyButtonClicked,Ee.addButton(tt)},Y.prototype.ratioButtonClicked=function(x){this.aspectRatio=x,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Y.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Vt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Y.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Br(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Y.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Y.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Y.prototype.restoreState=function(x){if(x){var k=this.cropLayer.getRescaledRect(x.width,x.height,this.imageWidth,this.imageHeight,x.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(k),this.cropRectChanged(k),this.flippedHorizontally=x.flippedHorizontally,this.flippedVertically=x.flippedVertically,this.applyFlip(),this.rotationAngle=x.rotationAngle,this.applyRotation()}},Y.prototype.clientToLocalCoordinates=function(x,k){var W=this.cropImage.getBoundingClientRect();return{x:x-W.left,y:k-W.top}},Y.prototype.onWindowResize=function(){this.positionUI()},Y.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()},Y.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)},Y.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)},Y.prototype.rotateTo=function(x){x=(x=x>180?x-360:x)<=-180?x+360:x,this.rotationAngle=x,this.applyRotation()},Y.prototype.rotateBy=function(x){this.rotateTo((this.rotationAngle+x)%360)},Y.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 k=this.editingTargetRotationContainer.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(k,0);var W=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/W.width,this.imageHeight/W.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=x},Y.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Y.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Y.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Y.prototype.startRenderAndClose=function(){return Dt(this,void 0,void 0,function(){var x,k;return Cr(this,function(W){switch(W.label){case 0:return[4,this.render()];case 1:return x=W.sent(),k=this.getState(),this.renderEventListeners.forEach(function(ee){return ee(x,k)}),this.close(!0),[2]}})})},Y.prototype.render=function(){return Dt(this,void 0,void 0,function(){var x;return Cr(this,function(k){switch(k.label){case 0:return(x=new Xr).naturalSize=this.renderAtNaturalSize,x.imageType=this.renderImageType,x.imageQuality=this.renderImageQuality,x.width=this.renderWidth,x.height=this.renderHeight,this.unzoomFromCrop(),_t.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 k.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,k.sent()]}})})},Y.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; @@ -253,35 +253,35 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new wt("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},Y.instanceCounter=0,Y}(),Ct=Z("8hTe"),mn=Z.n(Ct),gn=/]*>/g;function vn(Y){var x=document.createElement("div");return x.innerHTML=Y,x.childNodes.length===0?"":x.childNodes[0].nodeValue}var yn=be.a=function(Y){var x=Y.value,k=x===void 0?"":x,W=Y.edit,ee=W===void 0?!1:W,V=Y.className,Ee=Y.showTextOnly,Ye=Y.showLines,tt=Y.replaces,gt=Y.zoomImg,Xe=Y.hasMask,xt=Y.style,jt=xt===void 0?{}:xt,$t=Y.stylesPrev,jr=$t===void 0?{}:$t,Er=String(k),xr=Object(L.useRef)(),Zr=Object(L.useRef)(),Dn=Object(L.useState)(""),cr=Object(K.a)(Dn,2),zr=cr[0],un=cr[1],hn=Object(L.useState)("office"),Hr=Object(K.a)(hn,2),kn=Hr[0],bn=Hr[1],zn=function(){var Ht=new Ze(Zr.current);Ht.displayMode="popup",Ht.addRenderEventListener(function(){var yr=Object(U.a)(r.a.mark(function Mt(ar){var Kt;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return xr.current.style.display="none",fr.next=3,Object(Oe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ar}});case 3:Kt=fr.sent,Kt!=null&&Kt.id&&tt(Zr.current.getAttribute("src").replace($.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 5:case"end":return fr.stop()}},Mt)}));return function(Mt){return yr.apply(this,arguments)}}()),Ht.show()},Vn=function(){var Ht=new It(Zr.current);Ht.settings.displayMode="popup",Ht.addEventListener("render",function(){var yr=Object(U.a)(r.a.mark(function Mt(ar){var Kt;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:if(xr.current.style.display="none",!Zr.current){fr.next=6;break}return fr.next=4,Object(Oe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ar.dataUrl}});case 4:Kt=fr.sent,Kt!=null&&Kt.id&&tt(Zr.current.getAttribute("src").replace($.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 6:case"end":return fr.stop()}},Mt)}));return function(Mt){return yr.apply(this,arguments)}}()),Ht.show(),window.markerArea=Ht},Qr=Object(L.useMemo)(function(){xr.current&&(xr.current.style.zIndex=-1);try{var nr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Er=Er.replace(nr,"("+$.a.API_SERVER+"/api/attachments/").replace(Ht,'"'+$.a.API_SERVER+"/api/attachments/").replace(yr,'"'+$.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 Mt=M(Er),ar=S();if(Er.match(/\[TOC\]/)&&(Mt=Mt.replace("

      [TOC]

      ",D()),O()),Mt=Mt.replace(/(__special_katext_id_\d+__)/g,function(nn,fr){var Ar=ar[fr],Yn=Ar.type,xn=Ar.expression;return Object(ne.renderToString)(vn(xn)||"",{displayMode:Yn==="block",throwOnError:!1,output:"html"})}),Mt=Mt.replace(/▁/g,"\u2581\u2581\u2581"),y(),Ee){var Kt=document.createElement("div");return Kt.innerHTML=Mt,Kt.innerText}return setTimeout(function(){return di()},500),Mt},[Er]),$r=Object(L.useRef)();E.WebkitLineClamp=Ye,Ye&&(jt=Object(j.a)(Object(j.a)({},jt),E));function _n(nr){var Ht=nr.target;if(Ht.tagName.toUpperCase()==="IMG"){if(gt){var yr=Ht.getAttribute("src");un(yr),bn("image")}}else if(Ht.tagName.toUpperCase()==="A"){var Mt=Ht.getAttribute("href");if(Mt.indexOf("office")>-1)nr.preventDefault(),un(Mt),bn("office");else if(Mt.indexOf("application/pdf")>-1)nr.preventDefault(),un(Mt),bn("pdf");else if(Mt.indexOf("text/html")>-1)nr.preventDefault(),un(Mt),bn("html");else if(Mt.startsWith("#")){nr.preventDefault();var ar=document.getElementById(Mt.replace("#",""));ar&&ar.scrollIntoView(!0)}}}var di=function(){var Ht,yr=(Ht=$r.current)===null||Ht===void 0?void 0:Ht.querySelectorAll("video");yr==null||yr.forEach(function(Mt){if(Mt.oncontextmenu=function(){return!1},Mt.src.indexOf(".m3u8")>-1&&!Mt.canPlayType("application/vnd.apple.mpegurl")){if(H.a.isSupported()){var ar=new H.a;ar.loadSource(Mt.src),ar.attachMedia(Mt)}}})};Object(L.useEffect)(function(){if($r.current&&Qr&&(Qr.match(gn)&&window.PR.prettyPrint()),$r.current)return $r.current.addEventListener("click",_n),function(){$r.current.removeEventListener("click",_n),y(),O()}},[Qr,$r.current,_n]);var En=function(Ht){if(!ee)return;Ht.target.nodeName==="IMG"?(xr.current.style.zIndex=1,xr.current.style.display="flex",xr.current.style.width=Ht.target.clientWidth+"px",xr.current.style.height=Ht.target.clientHeight+"px",xr.current.style.top=Ht.target.offsetTop+"px",xr.current.style.left=Ht.target.offsetLeft+"px",Zr.current.src=Ht.target.getAttribute("src")):xr.current.style.display="none"};return v.a.createElement("div",{style:{position:"relative"}},v.a.createElement("div",{ref:$r,style:Object(j.a)({},jt),className:"".concat(V||""," markdown-body ").concat(mn.a.mdBody),onMouseOver:En,dangerouslySetInnerHTML:{__html:Qr}}),v.a.createElement("div",{ref:xr,className:mn.a.button},v.a.createElement(J.a,null,v.a.createElement(X.a,{onClick:function(){return zn()}},"\u88C1\u526A"),v.a.createElement(X.a,{onClick:function(){return Vn()}},"\u7F16\u8F91"))),v.a.createElement("img",{ref:Zr,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),v.a.createElement(se.a,{close:!0,data:zr,type:zr!=null&&zr.length?kn:"",style:Object(j.a)({},jr),onClose:function(){return un("")}}))}},"9VGf":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return P});var ie=Z("q1tI"),J=Z.n(ie);function P(X,j){var U=Object(ie.useRef)();Object(ie.useEffect)(function(){U.current=X}),Object(ie.useEffect)(function(){function K(){U.current()}if(j!==null){var G=setInterval(K,j);return function(){return clearInterval(G)}}},[j])}},BU3w:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return U});var ie=Z("MNnm"),J="rc-util-key";function P(K){if(K.attachTo)return K.attachTo;var G=document.querySelector("head");return G||document.body}function X(K){var G,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ie.a)())return null;var L=document.createElement("style");if((G=r.csp)===null||G===void 0?void 0:G.nonce){var v;L.nonce=(v=r.csp)===null||v===void 0?void 0:v.nonce}L.innerHTML=K;var m=P(r),p=m.firstChild;return r.prepend&&m.prepend?m.prepend(L):r.prepend&&p?m.insertBefore(L,p):m.appendChild(L),L}var j=new Map;function U(K,G){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},L=P(r);if(!j.has(L)){var v=X("",r),m=v.parentNode;j.set(L,m),m.removeChild(v)}var p=Array.from(j.get(L).children).find(function(o){return o.tagName==="STYLE"&&o[J]===G});if(p){var h,u;if(((h=r.csp)===null||h===void 0?void 0:h.nonce)&&p.nonce!==((u=r.csp)===null||u===void 0?void 0:u.nonce)){var f;p.nonce=(f=r.csp)===null||f===void 0?void 0:f.nonce}return p.innerHTML!==K&&(p.innerHTML=K),p}var l=X(K,r);return l[J]=G,l}},Bd2K:function(rt,be,Z){(function(ie){ie(Z("VrN/"),Z("osHv"))})(function(ie){ie.defineOption("autoCloseTags",!1,function(r,L,v){if(v!=ie.Init&&v&&r.removeKeyMap("autoCloseTags"),!L)return;var m={name:"autoCloseTags"};(typeof L!="object"||L.whenClosing!==!1)&&(m["'/'"]=function(p){return U(p)}),(typeof L!="object"||L.whenOpening!==!1)&&(m["'>'"]=function(p){return X(p)}),r.addKeyMap(m)});var J=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],P=["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 X(r){if(r.getOption("disableInput"))return ie.Pass;for(var L=r.listSelections(),v=[],m=r.getOption("autoCloseTags"),p=0;ph.ch&&(s=s.slice(0,s.length-u.end+h.ch));var w=s.toLowerCase();if(!s||u.type=="string"&&(u.end!=h.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||u.string.length==1)||u.type=="tag"&&o.close||u.string.indexOf("/")==h.ch-u.start-1||O&&K(O,w)>-1||G(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(l)||[],s,h,!0))return ie.Pass;var D=typeof m=="object"&&m.emptyTags;if(D&&K(D,s)>-1){v[p]={text:"/>",newPos:ie.Pos(h.line,h.ch+2)};continue}var R=E&&K(E,w)>-1;v[p]={indent:R,text:">"+(R?` + `))},Y.instanceCounter=0,Y}(),Ct=Z("8hTe"),mn=Z.n(Ct),gn=/]*>/g;function vn(Y){var x=document.createElement("div");return x.innerHTML=Y,x.childNodes.length===0?"":x.childNodes[0].nodeValue}var yn=be.a=function(Y){var x=Y.value,k=x===void 0?"":x,W=Y.edit,ee=W===void 0?!1:W,V=Y.className,Ee=Y.showTextOnly,Ye=Y.showLines,tt=Y.replaces,gt=Y.zoomImg,Xe=Y.hasMask,xt=Y.style,jt=xt===void 0?{}:xt,$t=Y.stylesPrev,jr=$t===void 0?{}:$t,Er=String(k),xr=Object(L.useRef)(),Zr=Object(L.useRef)(),Dn=Object(L.useState)(""),dr=Object(K.a)(Dn,2),zr=dr[0],un=dr[1],hn=Object(L.useState)("office"),Hr=Object(K.a)(hn,2),kn=Hr[0],bn=Hr[1],zn=function(){var Ht=new Ze(Zr.current);Ht.displayMode="popup",Ht.addRenderEventListener(function(){var yr=Object(U.a)(r.a.mark(function Mt(ar){var Kt;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return xr.current.style.display="none",fr.next=3,Object(Oe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ar}});case 3:Kt=fr.sent,Kt!=null&&Kt.id&&tt(Zr.current.getAttribute("src").replace($.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 5:case"end":return fr.stop()}},Mt)}));return function(Mt){return yr.apply(this,arguments)}}()),Ht.show()},Vn=function(){var Ht=new It(Zr.current);Ht.settings.displayMode="popup",Ht.addEventListener("render",function(){var yr=Object(U.a)(r.a.mark(function Mt(ar){var Kt;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:if(xr.current.style.display="none",!Zr.current){fr.next=6;break}return fr.next=4,Object(Oe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ar.dataUrl}});case 4:Kt=fr.sent,Kt!=null&&Kt.id&&tt(Zr.current.getAttribute("src").replace($.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 6:case"end":return fr.stop()}},Mt)}));return function(Mt){return yr.apply(this,arguments)}}()),Ht.show(),window.markerArea=Ht},Qr=Object(L.useMemo)(function(){xr.current&&(xr.current.style.zIndex=-1);try{var nr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Er=Er.replace(nr,"("+$.a.API_SERVER+"/api/attachments/").replace(Ht,'"'+$.a.API_SERVER+"/api/attachments/").replace(yr,'"'+$.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 Mt=M(Er),ar=S();if(Er.match(/\[TOC\]/)&&(Mt=Mt.replace("

      [TOC]

      ",D()),O()),Mt=Mt.replace(/(__special_katext_id_\d+__)/g,function(nn,fr){var Ar=ar[fr],Yn=Ar.type,xn=Ar.expression;return Object(ne.renderToString)(vn(xn)||"",{displayMode:Yn==="block",throwOnError:!1,output:"html"})}),Mt=Mt.replace(/▁/g,"\u2581\u2581\u2581"),y(),Ee){var Kt=document.createElement("div");return Kt.innerHTML=Mt,Kt.innerText}return setTimeout(function(){return ci()},500),Mt},[Er]),$r=Object(L.useRef)();E.WebkitLineClamp=Ye,Ye&&(jt=Object(j.a)(Object(j.a)({},jt),E));function _n(nr){var Ht=nr.target;if(Ht.tagName.toUpperCase()==="IMG"){if(gt){var yr=Ht.getAttribute("src");un(yr),bn("image")}}else if(Ht.tagName.toUpperCase()==="A"){var Mt=Ht.getAttribute("href");if(Mt.indexOf("office")>-1)nr.preventDefault(),un(Mt),bn("office");else if(Mt.indexOf("application/pdf")>-1)nr.preventDefault(),un(Mt),bn("pdf");else if(Mt.indexOf("text/html")>-1)nr.preventDefault(),un(Mt),bn("html");else if(Mt.startsWith("#")){nr.preventDefault();var ar=document.getElementById(Mt.replace("#",""));ar&&ar.scrollIntoView(!0)}}}var ci=function(){var Ht,yr=(Ht=$r.current)===null||Ht===void 0?void 0:Ht.querySelectorAll("video");yr==null||yr.forEach(function(Mt){if(Mt.oncontextmenu=function(){return!1},Mt.src.indexOf(".m3u8")>-1&&!Mt.canPlayType("application/vnd.apple.mpegurl")){if(H.a.isSupported()){var ar=new H.a;ar.loadSource(Mt.src),ar.attachMedia(Mt)}}})};Object(L.useEffect)(function(){if($r.current&&Qr&&(Qr.match(gn)&&window.PR.prettyPrint()),$r.current)return $r.current.addEventListener("click",_n),function(){$r.current.removeEventListener("click",_n),y(),O()}},[Qr,$r.current,_n]);var En=function(Ht){if(!ee)return;Ht.target.nodeName==="IMG"?(xr.current.style.zIndex=1,xr.current.style.display="flex",xr.current.style.width=Ht.target.clientWidth+"px",xr.current.style.height=Ht.target.clientHeight+"px",xr.current.style.top=Ht.target.offsetTop+"px",xr.current.style.left=Ht.target.offsetLeft+"px",Zr.current.src=Ht.target.getAttribute("src")):xr.current.style.display="none"};return v.a.createElement("div",{style:{position:"relative"}},v.a.createElement("div",{ref:$r,style:Object(j.a)({},jt),className:"".concat(V||""," markdown-body ").concat(mn.a.mdBody),onMouseOver:En,dangerouslySetInnerHTML:{__html:Qr}}),v.a.createElement("div",{ref:xr,className:mn.a.button},v.a.createElement(J.a,null,v.a.createElement(X.a,{onClick:function(){return zn()}},"\u88C1\u526A"),v.a.createElement(X.a,{onClick:function(){return Vn()}},"\u7F16\u8F91"))),v.a.createElement("img",{ref:Zr,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),v.a.createElement(se.a,{close:!0,data:zr,type:zr!=null&&zr.length?kn:"",style:Object(j.a)({},jr),onClose:function(){return un("")}}))}},"9VGf":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return P});var ie=Z("q1tI"),J=Z.n(ie);function P(X,j){var U=Object(ie.useRef)();Object(ie.useEffect)(function(){U.current=X}),Object(ie.useEffect)(function(){function K(){U.current()}if(j!==null){var G=setInterval(K,j);return function(){return clearInterval(G)}}},[j])}},BU3w:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return U});var ie=Z("MNnm"),J="rc-util-key";function P(K){if(K.attachTo)return K.attachTo;var G=document.querySelector("head");return G||document.body}function X(K){var G,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ie.a)())return null;var L=document.createElement("style");if((G=r.csp)===null||G===void 0?void 0:G.nonce){var v;L.nonce=(v=r.csp)===null||v===void 0?void 0:v.nonce}L.innerHTML=K;var m=P(r),p=m.firstChild;return r.prepend&&m.prepend?m.prepend(L):r.prepend&&p?m.insertBefore(L,p):m.appendChild(L),L}var j=new Map;function U(K,G){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},L=P(r);if(!j.has(L)){var v=X("",r),m=v.parentNode;j.set(L,m),m.removeChild(v)}var p=Array.from(j.get(L).children).find(function(o){return o.tagName==="STYLE"&&o[J]===G});if(p){var h,u;if(((h=r.csp)===null||h===void 0?void 0:h.nonce)&&p.nonce!==((u=r.csp)===null||u===void 0?void 0:u.nonce)){var f;p.nonce=(f=r.csp)===null||f===void 0?void 0:f.nonce}return p.innerHTML!==K&&(p.innerHTML=K),p}var l=X(K,r);return l[J]=G,l}},Bd2K:function(rt,be,Z){(function(ie){ie(Z("VrN/"),Z("osHv"))})(function(ie){ie.defineOption("autoCloseTags",!1,function(r,L,v){if(v!=ie.Init&&v&&r.removeKeyMap("autoCloseTags"),!L)return;var m={name:"autoCloseTags"};(typeof L!="object"||L.whenClosing!==!1)&&(m["'/'"]=function(p){return U(p)}),(typeof L!="object"||L.whenOpening!==!1)&&(m["'>'"]=function(p){return X(p)}),r.addKeyMap(m)});var J=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],P=["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 X(r){if(r.getOption("disableInput"))return ie.Pass;for(var L=r.listSelections(),v=[],m=r.getOption("autoCloseTags"),p=0;ph.ch&&(s=s.slice(0,s.length-u.end+h.ch));var w=s.toLowerCase();if(!s||u.type=="string"&&(u.end!=h.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||u.string.length==1)||u.type=="tag"&&o.close||u.string.indexOf("/")==h.ch-u.start-1||O&&K(O,w)>-1||G(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(l)||[],s,h,!0))return ie.Pass;var D=typeof m=="object"&&m.emptyTags;if(D&&K(D,s)>-1){v[p]={text:"/>",newPos:ie.Pos(h.line,h.ch+2)};continue}var R=E&&K(E,w)>-1;v[p]={indent:R,text:">"+(R?` `:"")+"",newPos:R?ie.Pos(h.line+1,0):ie.Pos(h.line,h.ch+1)}}for(var A=typeof m=="object"&&m.dontIndentOnAutoClose,p=L.length-1;p>=0;p--){var C=v[p];r.replaceRange(C.text,L[p].head,L[p].anchor,"+insert");var T=r.listSelections().slice(0);T[p]={head:C.newPos,anchor:C.newPos},r.setSelections(T),!A&&C.indent&&(r.indentLine(C.newPos.line,null,!0),r.indentLine(C.newPos.line+1,null,!0))}}function j(r,L){for(var v=r.listSelections(),m=[],p=L?"/":""&&(O+=">"),m[f]=O}if(r.replaceSelections(m),v=r.listSelections(),!u)for(var f=0;f=0&&L[l]==v;l--)++f;m=u.to;for(var l=1;l0){for(var L=0;L1&&arguments[1]!==void 0?arguments[1]:"",L=[],v=0;vU,ie.serviceIds.set(U,K),K}function j(U){return function(K,G,r){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");P(U,K,r,!0)}}},DlQD:function(rt,be,Z){(function(ie,J){rt.exports=J()})(this,function(){"use strict";function ie(Ae,_e){for(var we=0;we<_e.length;we++){var ae=_e[we];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(Ae,ae.key,ae)}}function J(Ae,_e,we){return _e&&ie(Ae.prototype,_e),we&&ie(Ae,we),Ae}function P(Ae,_e){if(!Ae)return;if(typeof Ae=="string")return X(Ae,_e);var we=Object.prototype.toString.call(Ae).slice(8,-1);if(we==="Object"&&Ae.constructor&&(we=Ae.constructor.name),we==="Map"||we==="Set")return Array.from(Ae);if(we==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(we))return X(Ae,_e)}function X(Ae,_e){(_e==null||_e>Ae.length)&&(_e=Ae.length);for(var we=0,ae=new Array(_e);we<_e;we++)ae[we]=Ae[we];return ae}function j(Ae,_e){var we;if(typeof Symbol=="undefined"||Ae[Symbol.iterator]==null){if(Array.isArray(Ae)||(we=P(Ae))||_e&&Ae&&typeof Ae.length=="number"){we&&(Ae=we);var ae=0;return function(){return ae>=Ae.length?{done:!0}:{done:!1,value:Ae[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 we=Ae[Symbol.iterator](),we.next.bind(we)}function U(Ae,_e){return _e={exports:{}},Ae(_e,_e.exports),_e.exports}var K=U(function(Ae){function _e(){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 we(ae){Ae.exports.defaults=ae}Ae.exports={defaults:_e(),getDefaults:_e,changeDefaults:we}}),G=K.defaults,r=K.getDefaults,L=K.changeDefaults,v=/[&<>"']/,m=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,h=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(_e){return u[_e]};function l(Ae,_e){if(_e){if(v.test(Ae))return Ae.replace(m,f)}else if(p.test(Ae))return Ae.replace(h,f);return Ae}var o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Ae){return Ae.replace(o,function(_e,we){return we=we.toLowerCase(),we==="colon"?":":we.charAt(0)==="#"?we.charAt(1)==="x"?String.fromCharCode(parseInt(we.substring(2),16)):String.fromCharCode(+we.substring(1)):""})}var a=/(^|[^\[])\^/g;function O(Ae,_e){Ae=Ae.source||Ae,_e=_e||"";var we={replace:function(ue,ce){return ce=ce.source||ce,ce=ce.replace(a,"$1"),Ae=Ae.replace(ue,ce),we},getRegex:function(){return new RegExp(Ae,_e)}};return we}var E=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function D(Ae,_e,we){if(Ae){var ae;try{ae=decodeURIComponent(s(we)).replace(E,"").toLowerCase()}catch(ue){return null}if(ae.indexOf("javascript:")===0||ae.indexOf("vbscript:")===0||ae.indexOf("data:")===0)return null}_e&&!w.test(we)&&(we=c(_e,we));try{we=encodeURI(we).replace(/%25/g,"%")}catch(ue){return null}return we}var R={},A=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,T=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(Ae,_e){R[" "+Ae]||(A.test(Ae)?R[" "+Ae]=Ae+"/":R[" "+Ae]=B(Ae,"/",!0)),Ae=R[" "+Ae];var we=Ae.indexOf(":")===-1;return _e.substring(0,2)==="//"?we?_e:Ae.replace(C,"$1")+_e:_e.charAt(0)==="/"?we?_e:Ae.replace(T,"$1")+_e:Ae+_e}var S={exec:function(){}};function y(Ae){for(var _e=1,we,ae;_e=0&&xe[He]==="\\";)Pe=!Pe;return Pe?"|":" |"}),ae=we.split(/ \|/),ue=0;if(ae.length>_e)ae.splice(_e);else for(;ae.length<_e;)ae.push("");for(;ue=ae.length?ue.slice(ae.length):ue}).join(` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return we=Ae[Symbol.iterator](),we.next.bind(we)}function U(Ae,_e){return _e={exports:{}},Ae(_e,_e.exports),_e.exports}var K=U(function(Ae){function _e(){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 we(ae){Ae.exports.defaults=ae}Ae.exports={defaults:_e(),getDefaults:_e,changeDefaults:we}}),G=K.defaults,r=K.getDefaults,L=K.changeDefaults,v=/[&<>"']/,m=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,h=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(_e){return u[_e]};function l(Ae,_e){if(_e){if(v.test(Ae))return Ae.replace(m,f)}else if(p.test(Ae))return Ae.replace(h,f);return Ae}var o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Ae){return Ae.replace(o,function(_e,we){return we=we.toLowerCase(),we==="colon"?":":we.charAt(0)==="#"?we.charAt(1)==="x"?String.fromCharCode(parseInt(we.substring(2),16)):String.fromCharCode(+we.substring(1)):""})}var a=/(^|[^\[])\^/g;function O(Ae,_e){Ae=Ae.source||Ae,_e=_e||"";var we={replace:function(ue,de){return de=de.source||de,de=de.replace(a,"$1"),Ae=Ae.replace(ue,de),we},getRegex:function(){return new RegExp(Ae,_e)}};return we}var E=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function D(Ae,_e,we){if(Ae){var ae;try{ae=decodeURIComponent(s(we)).replace(E,"").toLowerCase()}catch(ue){return null}if(ae.indexOf("javascript:")===0||ae.indexOf("vbscript:")===0||ae.indexOf("data:")===0)return null}_e&&!w.test(we)&&(we=d(_e,we));try{we=encodeURI(we).replace(/%25/g,"%")}catch(ue){return null}return we}var R={},A=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,T=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(Ae,_e){R[" "+Ae]||(A.test(Ae)?R[" "+Ae]=Ae+"/":R[" "+Ae]=B(Ae,"/",!0)),Ae=R[" "+Ae];var we=Ae.indexOf(":")===-1;return _e.substring(0,2)==="//"?we?_e:Ae.replace(C,"$1")+_e:_e.charAt(0)==="/"?we?_e:Ae.replace(T,"$1")+_e:Ae+_e}var S={exec:function(){}};function y(Ae){for(var _e=1,we,ae;_e=0&&xe[He]==="\\";)Pe=!Pe;return Pe?"|":" |"}),ae=we.split(/ \|/),ue=0;if(ae.length>_e)ae.splice(_e);else for(;ae.length<_e;)ae.push("");for(;ue=ae.length?ue.slice(ae.length):ue}).join(` `)}var ge=function(){function Ae(we){this.options=we||I}var _e=Ae.prototype;return _e.space=function(ae){var ue=this.rules.block.newline.exec(ae);if(ue)return ue[0].length>1?{type:"space",raw:ue[0]}:{raw:` -`}},_e.code=function(ae,ue){var ce=this.rules.block.code.exec(ae);if(ce){var me=ue[ue.length-1];if(me&&me.type==="paragraph")return{raw:ce[0],text:ce[0].trimRight()};var xe=ce[0].replace(/^ {4}/gm,"");return{type:"code",raw:ce[0],codeBlockStyle:"indented",text:this.options.pedantic?xe:g(xe,` -`)}}},_e.fences=function(ae){var ue=this.rules.block.fences.exec(ae);if(ue){var ce=ue[0],me=Oe(ce,ue[3]||"");return{type:"code",raw:ce,lang:ue[2]?ue[2].trim():ue[2],text:me}}},_e.heading=function(ae){var ue=this.rules.block.heading.exec(ae);if(ue)return{type:"heading",raw:ue[0],depth:ue[1].length,text:ue[2]}},_e.nptable=function(ae){var ue=this.rules.block.nptable.exec(ae);if(ue){var ce={type:"table",header:H(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(` -`):[],raw:ue[0]};if(ce.header.length===ce.align.length){var me=ce.align.length,xe;for(xe=0;xe ?/gm,"");return{type:"blockquote",raw:ue[0],text:ce}}},_e.list=function(ae){var ue=this.rules.block.list.exec(ae);if(ue){for(var ce=ue[0],me=ue[2],xe=me.length>1,Pe=me[me.length-1]===")",He={type:"list",raw:ce,ordered:xe,start:xe?+me.slice(0,-1):"",loose:!1,items:[]},ze=ue[0].match(this.rules.block.item),ht=!1,ot,yt,dt,ft,Ot,It,qt,Zt=ze.length,Dt=0;Dt1||this.options.smartLists&&dt!==me)&&(ft=ze.slice(Dt+1).join(` +`}},_e.code=function(ae,ue){var de=this.rules.block.code.exec(ae);if(de){var me=ue[ue.length-1];if(me&&me.type==="paragraph")return{raw:de[0],text:de[0].trimRight()};var xe=de[0].replace(/^ {4}/gm,"");return{type:"code",raw:de[0],codeBlockStyle:"indented",text:this.options.pedantic?xe:g(xe,` +`)}}},_e.fences=function(ae){var ue=this.rules.block.fences.exec(ae);if(ue){var de=ue[0],me=Oe(de,ue[3]||"");return{type:"code",raw:de,lang:ue[2]?ue[2].trim():ue[2],text:me}}},_e.heading=function(ae){var ue=this.rules.block.heading.exec(ae);if(ue)return{type:"heading",raw:ue[0],depth:ue[1].length,text:ue[2]}},_e.nptable=function(ae){var ue=this.rules.block.nptable.exec(ae);if(ue){var de={type:"table",header:H(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(` +`):[],raw:ue[0]};if(de.header.length===de.align.length){var me=de.align.length,xe;for(xe=0;xe ?/gm,"");return{type:"blockquote",raw:ue[0],text:de}}},_e.list=function(ae){var ue=this.rules.block.list.exec(ae);if(ue){for(var de=ue[0],me=ue[2],xe=me.length>1,Pe=me[me.length-1]===")",He={type:"list",raw:de,ordered:xe,start:xe?+me.slice(0,-1):"",loose:!1,items:[]},ze=ue[0].match(this.rules.block.item),ht=!1,ot,yt,ct,ft,Ot,It,qt,Zt=ze.length,Dt=0;Dt1||this.options.smartLists&&ct!==me)&&(ft=ze.slice(Dt+1).join(` `),He.raw=He.raw.substring(0,He.raw.length-ft.length),Dt=Zt-1)),Ot=ht||/\n\n(?!\s*$)/.test(ot),Dt!==Zt-1&&(ht=ot.charAt(ot.length-1)===` -`,Ot||(Ot=ht)),Ot&&(He.loose=!0),It=/^\[[ xX]\] /.test(ot),qt=void 0,It&&(qt=ot[1]!==" ",ot=ot.replace(/^\[[ xX]\] +/,"")),He.items.push({type:"list_item",raw:ce,task:It,checked:qt,loose:Ot,text:ot});return He}},_e.html=function(ae){var ue=this.rules.block.html.exec(ae);if(ue)return{type:this.options.sanitize?"paragraph":"html",raw:ue[0],pre:!this.options.sanitizer&&(ue[1]==="pre"||ue[1]==="script"||ue[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ue[0]):$(ue[0]):ue[0]}},_e.def=function(ae){var ue=this.rules.block.def.exec(ae);if(ue){ue[3]&&(ue[3]=ue[3].substring(1,ue[3].length-1));var ce=ue[1].toLowerCase().replace(/\s+/g," ");return{tag:ce,raw:ue[0],href:ue[2],title:ue[3]}}},_e.table=function(ae){var ue=this.rules.block.table.exec(ae);if(ue){var ce={type:"table",header:H(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(` -`):[]};if(ce.header.length===ce.align.length){ce.raw=ue[0];var me=ce.align.length,xe;for(xe=0;xe/i.test(me[0])&&(ue=!1),!ce&&/^<(pre|code|kbd|script)(\s|>)/i.test(me[0])?ce=!0:ce&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(me[0])&&(ce=!1),{type:this.options.sanitize?"text":"html",raw:me[0],inLink:ue,inRawBlock:ce,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):$(me[0]):me[0]}},_e.link=function(ae){var ue=this.rules.inline.link.exec(ae);if(ue){var ce=ne(ue[2],"()");if(ce>-1){var me=ue[0].indexOf("!")===0?5:4,xe=me+ue[1].length+ce;ue[2]=ue[2].substring(0,ce),ue[0]=ue[0].substring(0,xe).trim(),ue[3]=""}var Pe=ue[2],He="";if(this.options.pedantic){var ze=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);ze?(Pe=ze[1],He=ze[3]):He=""}else He=ue[3]?ue[3].slice(1,-1):"";Pe=Pe.trim().replace(/^<([\s\S]*)>$/,"$1");var ht=se(ue,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:He&&He.replace(this.rules.inline._escapes,"$1")},ue[0]);return ht}},_e.reflink=function(ae,ue){var ce;if((ce=this.rules.inline.reflink.exec(ae))||(ce=this.rules.inline.nolink.exec(ae))){var me=(ce[2]||ce[1]).replace(/\s+/g," ");if(me=ue[me.toLowerCase()],!me||!me.href){var xe=ce[0].charAt(0);return{type:"text",raw:xe,text:xe}}var Pe=se(ce,me,ce[0]);return Pe}},_e.strong=function(ae,ue,ce){ce===void 0&&(ce="");var me=this.rules.inline.strong.start.exec(ae);if(me&&(!me[1]||me[1]&&(ce===""||this.rules.inline.punctuation.exec(ce)))){ue=ue.slice(-1*ae.length);var xe=me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;xe.lastIndex=0;for(var Pe;(me=xe.exec(ue))!=null;)if(Pe=this.rules.inline.strong.middle.exec(ue.slice(0,me.index+3)),Pe)return{type:"strong",raw:ae.slice(0,Pe[0].length),text:ae.slice(2,Pe[0].length-2)}}},_e.em=function(ae,ue,ce){ce===void 0&&(ce="");var me=this.rules.inline.em.start.exec(ae);if(me&&(!me[1]||me[1]&&(ce===""||this.rules.inline.punctuation.exec(ce)))){ue=ue.slice(-1*ae.length);var xe=me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;xe.lastIndex=0;for(var Pe;(me=xe.exec(ue))!=null;)if(Pe=this.rules.inline.em.middle.exec(ue.slice(0,me.index+2)),Pe)return{type:"em",raw:ae.slice(0,Pe[0].length),text:ae.slice(1,Pe[0].length-1)}}},_e.codespan=function(ae){var ue=this.rules.inline.code.exec(ae);if(ue){var ce=ue[2].replace(/\n/g," "),me=/[^ ]/.test(ce),xe=ce.startsWith(" ")&&ce.endsWith(" ");return me&&xe&&(ce=ce.substring(1,ce.length-1)),ce=$(ce,!0),{type:"codespan",raw:ue[0],text:ce}}},_e.br=function(ae){var ue=this.rules.inline.br.exec(ae);if(ue)return{type:"br",raw:ue[0]}},_e.del=function(ae){var ue=this.rules.inline.del.exec(ae);if(ue)return{type:"del",raw:ue[0],text:ue[1]}},_e.autolink=function(ae,ue){var ce=this.rules.inline.autolink.exec(ae);if(ce){var me,xe;return ce[2]==="@"?(me=$(this.options.mangle?ue(ce[1]):ce[1]),xe="mailto:"+me):(me=$(ce[1]),xe=me),{type:"link",raw:ce[0],text:me,href:xe,tokens:[{type:"text",raw:me,text:me}]}}},_e.url=function(ae,ue){var ce;if(ce=this.rules.inline.url.exec(ae)){var me,xe;if(ce[2]==="@")me=$(this.options.mangle?ue(ce[0]):ce[0]),xe="mailto:"+me;else{var Pe;do Pe=ce[0],ce[0]=this.rules.inline._backpedal.exec(ce[0])[0];while(Pe!==ce[0]);me=$(ce[0]),ce[1]==="www."?xe="http://"+me:xe=me}return{type:"link",raw:ce[0],text:me,href:xe,tokens:[{type:"text",raw:me,text:me}]}}},_e.inlineText=function(ae,ue,ce){var me=this.rules.inline.text.exec(ae);if(me){var xe;return ue?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):$(me[0]):me[0]:xe=$(this.options.smartypants?ce(me[0]):me[0]),{type:"text",raw:me[0],text:xe}}},Ae}(),Te=M.noopTest,Re=M.edit,Le=M.merge,de={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:Te,table:Te,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};de._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,de._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,de.def=Re(de.def).replace("label",de._label).replace("title",de._title).getRegex(),de.bullet=/(?:[*+-]|\d{1,9}[.)])/,de.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,de.item=Re(de.item,"gm").replace(/bull/g,de.bullet).getRegex(),de.list=Re(de.list).replace(/bull/g,de.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+de.def.source+")").getRegex(),de._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",de._comment=//,de.html=Re(de.html,"i").replace("comment",de._comment).replace("tag",de._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),de.paragraph=Re(de._paragraph).replace("hr",de.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",de._tag).getRegex(),de.blockquote=Re(de.blockquote).replace("paragraph",de.paragraph).getRegex(),de.normal=Le({},de),de.gfm=Le({},de.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*|$)"}),de.gfm.nptable=Re(de.gfm.nptable).replace("hr",de.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",de._tag).getRegex(),de.gfm.table=Re(de.gfm.table).replace("hr",de.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",de._tag).getRegex(),de.pedantic=Le({},de.normal,{html:Re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",de._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:Te,paragraph:Re(de.normal._paragraph).replace("hr",de.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",de.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Te,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:Te,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=Re(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=Re(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=Re(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=Re(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=Re(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=Re(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=Re(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=Re(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=Re(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=Re(he._blockSkip,"g").getRegex(),he.overlapSkip=Re(he._overlapSkip,"g").getRegex(),he._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,he._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,he._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])?)+(?![-_])/,he.autolink=Re(he.autolink).replace("scheme",he._scheme).replace("email",he._email).getRegex(),he._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,he.tag=Re(he.tag).replace("comment",de._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=Re(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=Re(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=Re(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=Le({},he),he.pedantic=Le({},he.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:Re(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:Re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=Le({},he.normal,{escape:Re(he.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)),_e+="&#"+ae+";";return _e}var Ne=function(){function Ae(we){this.tokens=[],this.tokens.links=Object.create(null),this.options=we||fe,this.options.tokenizer=this.options.tokenizer||new ge,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ae={block:oe.normal,inline:De.normal};this.options.pedantic?(ae.block=oe.pedantic,ae.inline=De.pedantic):this.options.gfm&&(ae.block=oe.gfm,this.options.breaks?ae.inline=De.breaks:ae.inline=De.gfm),this.tokenizer.rules=ae}Ae.lex=function(ae,ue){var ce=new Ae(ue);return ce.lex(ae)};var _e=Ae.prototype;return _e.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},_e.blockTokens=function(ae,ue,ce){ue===void 0&&(ue=[]),ce===void 0&&(ce=!0),ae=ae.replace(/^ +$/gm,"");for(var me,xe,Pe,He;ae;){if(me=this.tokenizer.space(ae)){ae=ae.substring(me.raw.length),me.type&&ue.push(me);continue}if(me=this.tokenizer.code(ae,ue)){ae=ae.substring(me.raw.length),me.type?ue.push(me):(He=ue[ue.length-1],He.raw+=` +`,Ot||(Ot=ht)),Ot&&(He.loose=!0),It=/^\[[ xX]\] /.test(ot),qt=void 0,It&&(qt=ot[1]!==" ",ot=ot.replace(/^\[[ xX]\] +/,"")),He.items.push({type:"list_item",raw:de,task:It,checked:qt,loose:Ot,text:ot});return He}},_e.html=function(ae){var ue=this.rules.block.html.exec(ae);if(ue)return{type:this.options.sanitize?"paragraph":"html",raw:ue[0],pre:!this.options.sanitizer&&(ue[1]==="pre"||ue[1]==="script"||ue[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ue[0]):$(ue[0]):ue[0]}},_e.def=function(ae){var ue=this.rules.block.def.exec(ae);if(ue){ue[3]&&(ue[3]=ue[3].substring(1,ue[3].length-1));var de=ue[1].toLowerCase().replace(/\s+/g," ");return{tag:de,raw:ue[0],href:ue[2],title:ue[3]}}},_e.table=function(ae){var ue=this.rules.block.table.exec(ae);if(ue){var de={type:"table",header:H(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(` +`):[]};if(de.header.length===de.align.length){de.raw=ue[0];var me=de.align.length,xe;for(xe=0;xe/i.test(me[0])&&(ue=!1),!de&&/^<(pre|code|kbd|script)(\s|>)/i.test(me[0])?de=!0:de&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(me[0])&&(de=!1),{type:this.options.sanitize?"text":"html",raw:me[0],inLink:ue,inRawBlock:de,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):$(me[0]):me[0]}},_e.link=function(ae){var ue=this.rules.inline.link.exec(ae);if(ue){var de=ne(ue[2],"()");if(de>-1){var me=ue[0].indexOf("!")===0?5:4,xe=me+ue[1].length+de;ue[2]=ue[2].substring(0,de),ue[0]=ue[0].substring(0,xe).trim(),ue[3]=""}var Pe=ue[2],He="";if(this.options.pedantic){var ze=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);ze?(Pe=ze[1],He=ze[3]):He=""}else He=ue[3]?ue[3].slice(1,-1):"";Pe=Pe.trim().replace(/^<([\s\S]*)>$/,"$1");var ht=se(ue,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:He&&He.replace(this.rules.inline._escapes,"$1")},ue[0]);return ht}},_e.reflink=function(ae,ue){var de;if((de=this.rules.inline.reflink.exec(ae))||(de=this.rules.inline.nolink.exec(ae))){var me=(de[2]||de[1]).replace(/\s+/g," ");if(me=ue[me.toLowerCase()],!me||!me.href){var xe=de[0].charAt(0);return{type:"text",raw:xe,text:xe}}var Pe=se(de,me,de[0]);return Pe}},_e.strong=function(ae,ue,de){de===void 0&&(de="");var me=this.rules.inline.strong.start.exec(ae);if(me&&(!me[1]||me[1]&&(de===""||this.rules.inline.punctuation.exec(de)))){ue=ue.slice(-1*ae.length);var xe=me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;xe.lastIndex=0;for(var Pe;(me=xe.exec(ue))!=null;)if(Pe=this.rules.inline.strong.middle.exec(ue.slice(0,me.index+3)),Pe)return{type:"strong",raw:ae.slice(0,Pe[0].length),text:ae.slice(2,Pe[0].length-2)}}},_e.em=function(ae,ue,de){de===void 0&&(de="");var me=this.rules.inline.em.start.exec(ae);if(me&&(!me[1]||me[1]&&(de===""||this.rules.inline.punctuation.exec(de)))){ue=ue.slice(-1*ae.length);var xe=me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;xe.lastIndex=0;for(var Pe;(me=xe.exec(ue))!=null;)if(Pe=this.rules.inline.em.middle.exec(ue.slice(0,me.index+2)),Pe)return{type:"em",raw:ae.slice(0,Pe[0].length),text:ae.slice(1,Pe[0].length-1)}}},_e.codespan=function(ae){var ue=this.rules.inline.code.exec(ae);if(ue){var de=ue[2].replace(/\n/g," "),me=/[^ ]/.test(de),xe=de.startsWith(" ")&&de.endsWith(" ");return me&&xe&&(de=de.substring(1,de.length-1)),de=$(de,!0),{type:"codespan",raw:ue[0],text:de}}},_e.br=function(ae){var ue=this.rules.inline.br.exec(ae);if(ue)return{type:"br",raw:ue[0]}},_e.del=function(ae){var ue=this.rules.inline.del.exec(ae);if(ue)return{type:"del",raw:ue[0],text:ue[1]}},_e.autolink=function(ae,ue){var de=this.rules.inline.autolink.exec(ae);if(de){var me,xe;return de[2]==="@"?(me=$(this.options.mangle?ue(de[1]):de[1]),xe="mailto:"+me):(me=$(de[1]),xe=me),{type:"link",raw:de[0],text:me,href:xe,tokens:[{type:"text",raw:me,text:me}]}}},_e.url=function(ae,ue){var de;if(de=this.rules.inline.url.exec(ae)){var me,xe;if(de[2]==="@")me=$(this.options.mangle?ue(de[0]):de[0]),xe="mailto:"+me;else{var Pe;do Pe=de[0],de[0]=this.rules.inline._backpedal.exec(de[0])[0];while(Pe!==de[0]);me=$(de[0]),de[1]==="www."?xe="http://"+me:xe=me}return{type:"link",raw:de[0],text:me,href:xe,tokens:[{type:"text",raw:me,text:me}]}}},_e.inlineText=function(ae,ue,de){var me=this.rules.inline.text.exec(ae);if(me){var xe;return ue?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):$(me[0]):me[0]:xe=$(this.options.smartypants?de(me[0]):me[0]),{type:"text",raw:me[0],text:xe}}},Ae}(),Te=M.noopTest,Re=M.edit,Le=M.merge,ce={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:Te,table:Te,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ce._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ce._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ce.def=Re(ce.def).replace("label",ce._label).replace("title",ce._title).getRegex(),ce.bullet=/(?:[*+-]|\d{1,9}[.)])/,ce.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ce.item=Re(ce.item,"gm").replace(/bull/g,ce.bullet).getRegex(),ce.list=Re(ce.list).replace(/bull/g,ce.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ce.def.source+")").getRegex(),ce._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",ce._comment=//,ce.html=Re(ce.html,"i").replace("comment",ce._comment).replace("tag",ce._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ce.paragraph=Re(ce._paragraph).replace("hr",ce.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",ce._tag).getRegex(),ce.blockquote=Re(ce.blockquote).replace("paragraph",ce.paragraph).getRegex(),ce.normal=Le({},ce),ce.gfm=Le({},ce.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*|$)"}),ce.gfm.nptable=Re(ce.gfm.nptable).replace("hr",ce.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",ce._tag).getRegex(),ce.gfm.table=Re(ce.gfm.table).replace("hr",ce.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",ce._tag).getRegex(),ce.pedantic=Le({},ce.normal,{html:Re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ce._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:Te,paragraph:Re(ce.normal._paragraph).replace("hr",ce.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",ce.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Te,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:Te,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=Re(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=Re(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=Re(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=Re(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=Re(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=Re(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=Re(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=Re(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=Re(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=Re(he._blockSkip,"g").getRegex(),he.overlapSkip=Re(he._overlapSkip,"g").getRegex(),he._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,he._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,he._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])?)+(?![-_])/,he.autolink=Re(he.autolink).replace("scheme",he._scheme).replace("email",he._email).getRegex(),he._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,he.tag=Re(he.tag).replace("comment",ce._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=Re(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=Re(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=Re(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=Le({},he),he.pedantic=Le({},he.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:Re(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:Re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=Le({},he.normal,{escape:Re(he.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)),_e+="&#"+ae+";";return _e}var Ne=function(){function Ae(we){this.tokens=[],this.tokens.links=Object.create(null),this.options=we||fe,this.options.tokenizer=this.options.tokenizer||new ge,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ae={block:oe.normal,inline:De.normal};this.options.pedantic?(ae.block=oe.pedantic,ae.inline=De.pedantic):this.options.gfm&&(ae.block=oe.gfm,this.options.breaks?ae.inline=De.breaks:ae.inline=De.gfm),this.tokenizer.rules=ae}Ae.lex=function(ae,ue){var de=new Ae(ue);return de.lex(ae)};var _e=Ae.prototype;return _e.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},_e.blockTokens=function(ae,ue,de){ue===void 0&&(ue=[]),de===void 0&&(de=!0),ae=ae.replace(/^ +$/gm,"");for(var me,xe,Pe,He;ae;){if(me=this.tokenizer.space(ae)){ae=ae.substring(me.raw.length),me.type&&ue.push(me);continue}if(me=this.tokenizer.code(ae,ue)){ae=ae.substring(me.raw.length),me.type?ue.push(me):(He=ue[ue.length-1],He.raw+=` `+me.raw,He.text+=` -`+me.text);continue}if(me=this.tokenizer.fences(ae)){ae=ae.substring(me.raw.length),ue.push(me);continue}if(me=this.tokenizer.heading(ae)){ae=ae.substring(me.raw.length),ue.push(me);continue}if(me=this.tokenizer.nptable(ae)){ae=ae.substring(me.raw.length),ue.push(me);continue}if(me=this.tokenizer.hr(ae)){ae=ae.substring(me.raw.length),ue.push(me);continue}if(me=this.tokenizer.blockquote(ae)){ae=ae.substring(me.raw.length),me.tokens=this.blockTokens(me.text,[],ce),ue.push(me);continue}if(me=this.tokenizer.list(ae)){for(ae=ae.substring(me.raw.length),Pe=me.items.length,xe=0;xe0)for(;(ze=this.tokenizer.rules.inline.reflinkSearch.exec(He))!=null;)ht.includes(ze[0].slice(ze[0].lastIndexOf("[")+1,-1))&&(He=He.slice(0,ze.index)+"["+"a".repeat(ze[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ze=this.tokenizer.rules.inline.blockSkip.exec(He))!=null;)He=He.slice(0,ze.index)+"["+"a".repeat(ze[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ae;){if(Pe=this.tokenizer.escape(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.tag(ae,ce,me)){ae=ae.substring(Pe.raw.length),ce=Pe.inLink,me=Pe.inRawBlock,ue.push(Pe);continue}if(Pe=this.tokenizer.link(ae)){ae=ae.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,me)),ue.push(Pe);continue}if(Pe=this.tokenizer.reflink(ae,this.tokens.links)){ae=ae.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,me)),ue.push(Pe);continue}if(Pe=this.tokenizer.strong(ae,He,xe)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],ce,me),ue.push(Pe);continue}if(Pe=this.tokenizer.em(ae,He,xe)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],ce,me),ue.push(Pe);continue}if(Pe=this.tokenizer.codespan(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.br(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.del(ae)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],ce,me),ue.push(Pe);continue}if(Pe=this.tokenizer.autolink(ae,Ce)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(!ce&&(Pe=this.tokenizer.url(ae,Ce))){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.inlineText(ae,me,Fe)){ae=ae.substring(Pe.raw.length),xe=Pe.raw.slice(-1),ue.push(Pe);continue}if(ae){var ot="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(ot);break}else throw new Error(ot)}}return ue},J(Ae,null,[{key:"rules",get:function(){return{block:oe,inline:De}}}]),Ae}(),Be=K.defaults,le=M.cleanUrl,ve=M.escape,Se=function(){function Ae(we){this.options=we||Be}var _e=Ae.prototype;return _e.code=function(ae,ue,ce){var me=(ue||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(ae,me);xe!=null&&xe!==ae&&(ce=!0,ae=xe)}return me?'
      '+(ce?ae:ve(ae,!0))+`
      -`:"
      "+(ce?ae:ve(ae,!0))+`
      +`+me.text);continue}if(ae){var ze="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(ze);break}else throw new Error(ze)}}return ue},_e.inline=function(ae){var ue,de,me,xe,Pe,He,ze=ae.length;for(ue=0;ue0)for(;(ze=this.tokenizer.rules.inline.reflinkSearch.exec(He))!=null;)ht.includes(ze[0].slice(ze[0].lastIndexOf("[")+1,-1))&&(He=He.slice(0,ze.index)+"["+"a".repeat(ze[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ze=this.tokenizer.rules.inline.blockSkip.exec(He))!=null;)He=He.slice(0,ze.index)+"["+"a".repeat(ze[0].length-2)+"]"+He.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ae;){if(Pe=this.tokenizer.escape(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.tag(ae,de,me)){ae=ae.substring(Pe.raw.length),de=Pe.inLink,me=Pe.inRawBlock,ue.push(Pe);continue}if(Pe=this.tokenizer.link(ae)){ae=ae.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,me)),ue.push(Pe);continue}if(Pe=this.tokenizer.reflink(ae,this.tokens.links)){ae=ae.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,me)),ue.push(Pe);continue}if(Pe=this.tokenizer.strong(ae,He,xe)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],de,me),ue.push(Pe);continue}if(Pe=this.tokenizer.em(ae,He,xe)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],de,me),ue.push(Pe);continue}if(Pe=this.tokenizer.codespan(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.br(ae)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.del(ae)){ae=ae.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],de,me),ue.push(Pe);continue}if(Pe=this.tokenizer.autolink(ae,Ce)){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(!de&&(Pe=this.tokenizer.url(ae,Ce))){ae=ae.substring(Pe.raw.length),ue.push(Pe);continue}if(Pe=this.tokenizer.inlineText(ae,me,Fe)){ae=ae.substring(Pe.raw.length),xe=Pe.raw.slice(-1),ue.push(Pe);continue}if(ae){var ot="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(ot);break}else throw new Error(ot)}}return ue},J(Ae,null,[{key:"rules",get:function(){return{block:oe,inline:De}}}]),Ae}(),Be=K.defaults,le=M.cleanUrl,ve=M.escape,Se=function(){function Ae(we){this.options=we||Be}var _e=Ae.prototype;return _e.code=function(ae,ue,de){var me=(ue||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(ae,me);xe!=null&&xe!==ae&&(de=!0,ae=xe)}return me?'
      '+(de?ae:ve(ae,!0))+`
      +`:"
      "+(de?ae:ve(ae,!0))+`
      `},_e.blockquote=function(ae){return`
      `+ae+`
      -`},_e.html=function(ae){return ae},_e.heading=function(ae,ue,ce,me){return this.options.headerIds?"'+ae+" +`},_e.html=function(ae){return ae},_e.heading=function(ae,ue,de,me){return this.options.headerIds?"'+ae+" `:""+ae+" `},_e.hr=function(){return this.options.xhtml?`
      `:`
      -`},_e.list=function(ae,ue,ce){var me=ue?"ol":"ul",xe=ue&&ce!==1?' start="'+ce+'"':"";return"<"+me+xe+`> +`},_e.list=function(ae,ue,de){var me=ue?"ol":"ul",xe=ue&&de!==1?' start="'+de+'"':"";return"<"+me+xe+`> `+ae+" `},_e.listitem=function(ae){return"
    • "+ae+`
    • `},_e.checkbox=function(ae){return" "},_e.paragraph=function(ae){return"

      "+ae+`

      @@ -291,24 +291,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `+ue+` `},_e.tablerow=function(ae){return` `+ae+` -`},_e.tablecell=function(ae,ue){var ce=ue.header?"th":"td",me=ue.align?"<"+ce+' align="'+ue.align+'">':"<"+ce+">";return me+ae+" -`},_e.strong=function(ae){return""+ae+""},_e.em=function(ae){return""+ae+""},_e.codespan=function(ae){return""+ae+""},_e.br=function(){return this.options.xhtml?"
      ":"
      "},_e.del=function(ae){return""+ae+""},_e.link=function(ae,ue,ce){if(ae=le(this.options.sanitize,this.options.baseUrl,ae),ae===null)return ce;var me='",me},_e.image=function(ae,ue,ce){if(ae=le(this.options.sanitize,this.options.baseUrl,ae),ae===null)return ce;var me=''+ce+'":">",me},_e.text=function(ae){return ae},Ae}(),Ie=function(){function Ae(){}var _e=Ae.prototype;return _e.strong=function(ae){return ae},_e.em=function(ae){return ae},_e.codespan=function(ae){return ae},_e.del=function(ae){return ae},_e.html=function(ae){return ae},_e.text=function(ae){return ae},_e.link=function(ae,ue,ce){return""+ce},_e.image=function(ae,ue,ce){return""+ce},_e.br=function(){return""},Ae}(),We=function(){function Ae(){this.seen={}}var _e=Ae.prototype;return _e.slug=function(ae){var ue=ae.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ue)){var ce=ue;do this.seen[ce]++,ue=ce+"-"+this.seen[ce];while(this.seen.hasOwnProperty(ue))}return this.seen[ue]=0,ue},Ae}(),Ve=K.defaults,Qe=M.unescape,Je=function(){function Ae(we){this.options=we||Ve,this.options.renderer=this.options.renderer||new Se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ie,this.slugger=new We}Ae.parse=function(ae,ue){var ce=new Ae(ue);return ce.parse(ae)};var _e=Ae.prototype;return _e.parse=function(ae,ue){ue===void 0&&(ue=!0);var ce="",me,xe,Pe,He,ze,ht,ot,yt,dt,ft,Ot,It,qt,Zt,Dt,Cr,Kr,_t,Lr=ae.length;for(me=0;me0&&Dt.tokens[0].type==="text"?(Dt.tokens[0].text=_t+" "+Dt.tokens[0].text,Dt.tokens[0].tokens&&Dt.tokens[0].tokens.length>0&&Dt.tokens[0].tokens[0].type==="text"&&(Dt.tokens[0].tokens[0].text=_t+" "+Dt.tokens[0].tokens[0].text)):Dt.tokens.unshift({type:"text",text:_t}):Zt+=_t),Zt+=this.parse(Dt.tokens,qt),dt+=this.renderer.listitem(Zt,Kr,Cr);ce+=this.renderer.list(dt,Ot,It);continue}case"html":{ce+=this.renderer.html(ft.text);continue}case"paragraph":{ce+=this.renderer.paragraph(this.parseInline(ft.tokens));continue}case"text":{for(dt=ft.tokens?this.parseInline(ft.tokens):ft.text;me+1An error occurred:

      "+at(Pe.message+"",!0)+"
      ";throw Pe}}je.options=je.setOptions=function(Ae){return st(je.defaults,Ae),ct(je.defaults),je},je.getDefaults=Ue,je.defaults=lt,je.use=function(Ae){var _e=st({},Ae);if(Ae.renderer&&function(){var ae=je.defaults.renderer||new Se,ue=function(xe){var Pe=ae[xe];ae[xe]=function(){for(var He=arguments.length,ze=new Array(He),ht=0;ht`,triples:"",explode:"[]{}"},P=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(u,f,l){l&&l!=ie.Init&&(u.removeKeyMap(j),u.state.closeBrackets=null),f&&(U(X(f,"pairs")),u.state.closeBrackets=f,u.addKeyMap(j))});function X(u,f){return f=="pairs"&&typeof u=="string"?u:typeof u=="object"&&u[f]!=null?u[f]:J[f]}var j={Backspace:r,Enter:L};function U(u){for(var f=0;f=0;s--){var O=o[s].head;u.replaceRange("",P(O.line,O.ch-1),P(O.line,O.ch+1),"+delete")}}function L(u){var f=G(u),l=f&&X(f,"explode");if(!l||u.getOption("disableInput"))return ie.Pass;for(var o=u.listSelections(),s=0;s0;return{anchor:new P(u.anchor.line,u.anchor.ch+(f?-1:1)),head:new P(u.head.line,u.head.ch+(f?1:-1))}}function m(u,f){var l=G(u);if(!l||u.getOption("disableInput"))return ie.Pass;var o=X(l,"pairs"),s=o.indexOf(f);if(s==-1)return ie.Pass;for(var a=X(l,"closeBefore"),O=X(l,"triples"),E=o.charAt(s+1)==f,w=u.listSelections(),D=s%2==0,R,A=0;A=0&&u.getRange(T,P(T.line,T.ch+3))==f+f+f?c="skipThree":c="skip";else if(E&&T.ch>1&&O.indexOf(f)>=0&&u.getRange(P(T.line,T.ch-2),T)==f+f){if(T.ch>2&&/\bstring/.test(u.getTokenTypeAt(P(T.line,T.ch-2))))return ie.Pass;c="addFour"}else if(E){var y=T.ch==0?" ":u.getRange(P(T.line,T.ch-1),T);if(!ie.isWordChar(S)&&y!=f&&!ie.isWordChar(y))c="both";else return ie.Pass}else if(D&&(S.length===0||/\s/.test(S)||a.indexOf(S)>-1))c="both";else return ie.Pass;if(!R)R=c;else if(R!=c)return ie.Pass}var b=s%2?o.charAt(s-1):f,B=s%2?f:o.charAt(s+1);u.operation(function(){if(R=="skip")u.execCommand("goCharRight");else if(R=="skipThree")for(var F=0;F<3;F++)u.execCommand("goCharRight");else if(R=="surround"){for(var _=u.getSelections(),F=0;F<_.length;F++)_[F]=b+_[F]+B;u.replaceSelections(_,"around"),_=u.listSelections().slice();for(var F=0;F<_.length;F++)_[F]=v(_[F]);u.setSelections(_)}else R=="both"?(u.replaceSelection(b+B,null),u.triggerElectric(b+B),u.execCommand("goCharLeft")):R=="addFour"&&(u.replaceSelection(b+b+b+b,"before"),u.execCommand("goCharRight"))})}function p(u,f){var l=u.getRange(P(f.line,f.ch-1),P(f.line,f.ch+1));return l.length==2?l:null}function h(u,f){var l=u.getTokenAt(P(f.line,f.ch+1));return/\bstring/.test(l.type)&&l.start==f.ch&&(f.ch==0||!/\bstring/.test(u.getTokenTypeAt(f)))}})},FWmy:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return ie});function ie(J,P){if(!J)throw new Error(P?`Assertion failed (${P})`:"Assertion Failed")}},GfqC:function(rt,be,Z){"use strict";var ie=Z("q1tI"),J=Z.n(ie),P=Z("TSYQ"),X=Z.n(P);function j(M,I){var g="cannot "+M.method+" "+M.action+" "+I.status+"'",H=new Error(g);return H.status=I.status,H.method=M.method,H.url=M.action,H}function U(M){var I=M.responseText||M.response;if(!I)return I;try{return JSON.parse(I)}catch(g){return I}}function K(M){var I=new XMLHttpRequest;M.onProgress&&I.upload&&(I.upload.onprogress=function(ne){ne.total>0&&(ne.percent=ne.loaded/ne.total*100),M.onProgress(ne)});var g=new FormData;M.data&&Object.keys(M.data).forEach(function($){var ne=M.data[$];if(Array.isArray(ne)){ne.forEach(function(se){g.append($+"[]",se)});return}g.append($,M.data[$])}),M.file instanceof Blob?g.append(M.filename,M.file,M.file.name):g.append(M.filename,M.file),I.onerror=function(ne){M.onError(ne)},I.onload=function(){return I.status<200||I.status>=300?M.onError(j(M,I),U(I)):M.onSuccess(U(I),I)},I.open(M.method,M.action,!0),M.withCredentials&&"withCredentials"in I&&(I.withCredentials=!0);var H=M.headers||{};return H["X-Requested-With"]!==null&&I.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(H).forEach(function($){H[$]!==null&&I.setRequestHeader($,H[$])}),I.send(g),{abort:function(){I.abort()}}}var G=+new Date,r=0;function L(){return"rc-upload-"+G+"-"+ ++r}function v(M,I){return M.indexOf(I,M.length-I.length)!==-1}var m=function(M,I){if(M&&I){var g=Array.isArray(I)?I:I.split(","),H=M.name||"",$=M.type||"",ne=$.replace(/\/.*$/,"");return g.some(function(se){var Oe=se.trim();return Oe.charAt(0)==="."?v(H.toLowerCase(),Oe.toLowerCase()):/\/\*$/.test(Oe)?ne===Oe.replace(/\/.*$/,""):$===Oe})}return!0};function p(M,I){var g=M.createReader(),H=[];function $(){g.readEntries(function(ne){var se=Array.prototype.slice.apply(ne);H=H.concat(se);var Oe=!se.length;Oe?I(H):$()})}$()}var h=function(I,g,H){var $=function ne(se,Oe){Oe=Oe||"",se.isFile?se.file(function(ge){H(ge)&&(se.fullPath&&!ge.webkitRelativePath&&(Object.defineProperties(ge,{webkitRelativePath:{writable:!0}}),ge.webkitRelativePath=se.fullPath.replace(/^\//,""),Object.defineProperties(ge,{webkitRelativePath:{writable:!1}})),g([ge]))}):se.isDirectory&&p(se,function(ge){ge.forEach(function(Te){ne(Te,""+Oe+se.name+"/")})})};I.forEach(function(ne){$(ne.webkitGetAsEntry())})},u=h,f=Object.assign||function(M){for(var I=1;I=0)continue;if(!Object.prototype.hasOwnProperty.call(M,H))continue;g[H]=M[H]}return g}function O(M,I){if(!(M instanceof I))throw new TypeError("Cannot call a class as a function")}function E(M,I){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:M}function w(M,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);M.prototype=Object.create(I&&I.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(M,I):M.__proto__=I)}var D=function(I){return Object.keys(I).reduce(function(g,H){return(H.substr(0,5)==="data-"||H.substr(0,5)==="aria-"||H==="role")&&(g[H]=I[H]),g},{})},R=function(M){w(I,M);function I(){var g,H,$,ne;O(this,I);for(var se=arguments.length,Oe=Array(se),ge=0;gea.length&&(E=a.length);Ow===D){const w=a[Symbol.iterator](),D=O[Symbol.iterator]();for(;;){const R=w.next(),A=D.next();if(R.done!==A.done)return!1;if(R.done)return!0;if(!E(R.value,A.value))return!1}}J.equals=s})(ie||(ie={}))},LdHM:function(rt,be,Z){"use strict";Z.d(be,"b",function(){return a}),Z.d(be,"a",function(){return E});var ie=Z("1OyB"),J=Z("vuIU"),P=Z("Ji7U"),X=Z("LK+K"),j=Z("q1tI"),U=Z("rePB"),K=Z("Ff2n"),G=Z("ODXe"),r=Z("4IlW"),L=Z("bX4T"),v=Z("YrtM"),m=Z("TSYQ"),p=Z.n(m),h=Z("+nKL"),u=Z("8OUc"),f=function(H,$){var ne=H.prefixCls,se=H.id,Oe=H.flattenOptions,ge=H.childrenAsData,Te=H.values,Re=H.searchValue,Le=H.multiple,de=H.defaultActiveFirstOption,he=H.height,re=H.itemHeight,fe=H.notFoundContent,oe=H.open,De=H.menuItemSelectedIcon,Fe=H.virtual,Ce=H.onSelect,Ne=H.onToggleOpen,Be=H.onActiveValue,le=H.onScroll,ve=H.onMouseEnter,Se="".concat(ne,"-item"),Ie=Object(v.a)(function(){return Oe},[oe,Oe],function(Ge,Ae){return Ae[0]&&Ge[1]!==Ae[1]}),We=j.useRef(null),Ve=function(Ae){Ae.preventDefault()},Qe=function(Ae){We.current&&We.current.scrollTo({index:Ae})},Je=function(Ae){for(var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,we=Ie.length,ae=0;ae1&&arguments[1]!==void 0?arguments[1]:!1;return Object(D.a)(g).map(function($,ne){if(!j.isValidElement($)||!$.type)return null;var se=$.type.isSelectOptGroup,Oe=$.key,ge=$.props,Te=ge.children,Re=Object(K.a)(ge,["children"]);return H||!se?R($):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(Oe===null?ne:Oe,"__"),label:Oe},Re),{},{options:A(Te)})}).filter(function($){return $})}var C=Z("2Qr1"),T=Z("qNPg"),c=Z("U8pU"),S=Z("Kwbf"),y=Z("WKfj");function b(g){var H=g.mode,$=g.options,ne=g.children,se=g.backfill,Oe=g.allowClear,ge=g.placeholder,Te=g.getInputElement,Re=g.showSearch,Le=g.onSearch,de=g.defaultOpen,he=g.autoFocus,re=g.labelInValue,fe=g.value,oe=g.inputValue,De=g.optionLabelProp,Fe=H==="multiple"||H==="tags",Ce=Re!==void 0?Re:Fe||H==="combobox",Ne=$||A(ne);if(Object(S.a)(H!=="tags"||Ne.every(function(Se){return!Se.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),H==="tags"||H==="combobox"){var Be=Ne.some(function(Se){return Se.options?Se.options.some(function(Ie){return typeof("value"in Ie?Ie.value:Ie.key)=="number"}):typeof("value"in Se?Se.value:Se.key)=="number"});Object(S.a)(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(S.a)(H!=="combobox"||!De,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(S.a)(H==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object(S.a)(H==="combobox"||!Te,"`getInputElement` only work with `combobox` mode."),Object(S.b)(H!=="combobox"||!Te||!Oe||!ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Le&&!Ce&&H!=="combobox"&&H!=="tags"&&Object(S.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(S.b)(!de||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fe!=null){var le=Object(y.d)(fe);Object(S.a)(!re||le.every(function(Se){return Object(c.a)(Se)==="object"&&("key"in Se||"value"in Se)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(S.a)(!Fe||Array.isArray(fe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ne){var ve=null;Object(D.a)(ne).some(function(Se){if(!j.isValidElement(Se)||!Se.type)return!1;var Ie=Se.type;if(Ie.isSelectOption)return!1;if(Ie.isSelectOptGroup){var We=Object(D.a)(Se.props.children).every(function(Ve){return!j.isValidElement(Ve)||!Se.type||Ve.type.isSelectOption?!0:(ve=Ve.type,!1)});return!We}return ve=Ie,!0}),ve&&Object(S.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(S.a)(oe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var B=b,F=Object(T.a)({prefixCls:"rc-select",components:{optionList:o},convertChildrenToData:A,flattenOptions:C.d,getLabeledValue:C.e,filterOptions:C.b,isValueDisabled:C.g,findValueOption:C.c,warningProps:B,fillOptionsWithMissingValue:C.a}),_=function(g){Object(P.a)($,g);var H=Object(X.a)($);function $(){var ne;return Object(ie.a)(this,$),ne=H.apply(this,arguments),ne.selectRef=j.createRef(),ne.focus=function(){ne.selectRef.current.focus()},ne.blur=function(){ne.selectRef.current.blur()},ne}return Object(J.a)($,[{key:"render",value:function(){return j.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),$}(j.Component);_.Option=a,_.OptGroup=E;var M=_,I=be.c=M},M8RZ:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return r});var ie=Z("fWQN"),J=Z("mtLc"),P=Z("yKVA"),X=Z("879j"),j=Z("q1tI"),U=Z.n(j),K=Z("i8i4"),G=Z.n(K),r=function(L){Object(P.a)(m,L);var v=Object(X.a)(m);function m(p){var h;Object(ie.a)(this,m),h=v.call(this,p);var u=window.document;return h.node=u.createElement("div"),u.body.appendChild(h.node),h}return Object(J.a)(m,[{key:"render",value:function(){var h=this.props.children;return Object(K.createPortal)(h,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),m}(U.a.Component)},MI8n:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return j}),Z.d(be,"b",function(){return r}),Z.d(be,"e",function(){return L}),Z.d(be,"a",function(){return v}),Z.d(be,"d",function(){return m}),Z.d(be,"f",function(){return p});var ie=Z("/cxE"),J=Z("pmY6"),P=Z("24hK"),X=Z("5Y4S"),j;(function(h){h.None=()=>J.a.None;function u(b){return(B,F=null,_)=>{let M=!1,I;return I=b(g=>M?void 0:(I?I.dispose():M=!0,B.call(F,g)),null,_),M&&I.dispose(),I}}h.once=u;function f(b,B){return E((F,_=null,M)=>b(I=>F.call(_,B(I)),null,M))}h.map=f;function l(b,B){return E((F,_=null,M)=>b(I=>{B(I),F.call(_,I)},null,M))}h.forEach=l;function o(b,B){return E((F,_=null,M)=>b(I=>B(I)&&F.call(_,I),null,M))}h.filter=o;function s(b){return b}h.signal=s;function a(...b){return(B,F=null,_)=>Object(J.e)(...b.map(M=>M(I=>B.call(F,I),null,_)))}h.any=a;function O(b,B,F){let _=F;return f(b,M=>(_=B(_,M),_))}h.reduce=O;function E(b){let B;const F=new r({onFirstListenerAdd(){B=b(F.fire,F)},onLastListenerRemove(){B.dispose()}});return F.event}function w(b,B,F=100,_=!1,M){let I,g,H,$=0;const ne=new r({leakWarningThreshold:M,onFirstListenerAdd(){I=b(se=>{$++,g=B(g,se),_&&!H&&(ne.fire(g),g=void 0),clearTimeout(H),H=setTimeout(()=>{const Oe=g;g=void 0,H=void 0,(!_||$>1)&&ne.fire(Oe),$=0},F)})},onLastListenerRemove(){I.dispose()}});return ne.event}h.debounce=w;function D(b,B=(F,_)=>F===_){let F=!0,_;return o(b,M=>{const I=F||!B(M,_);return F=!1,_=M,I})}h.latch=D;function R(b,B){return[h.filter(b,B),h.filter(b,F=>!B(F))]}h.split=R;function A(b,B=!1,F=[]){let _=F.slice(),M=b(H=>{_?_.push(H):g.fire(H)});const I=()=>{_&&_.forEach(H=>g.fire(H)),_=null},g=new r({onFirstListenerAdd(){M||(M=b(H=>g.fire(H)))},onFirstListenerDidAdd(){_&&(B?setTimeout(I):I())},onLastListenerRemove(){M&&M.dispose(),M=null}});return g.event}h.buffer=A;class C{constructor(b){this.event=b}map(b){return new C(f(this.event,b))}forEach(b){return new C(l(this.event,b))}filter(b){return new C(o(this.event,b))}reduce(b,B){return new C(O(this.event,b,B))}latch(){return new C(D(this.event))}debounce(b,B=100,F=!1,_){return new C(w(this.event,b,B,F,_))}on(b,B,F){return this.event(b,B,F)}once(b,B,F){return u(this.event)(b,B,F)}}function T(b){return new C(b)}h.chain=T;function c(b,B,F=_=>_){const _=(...H)=>g.fire(F(...H)),M=()=>b.on(B,_),I=()=>b.removeListener(B,_),g=new r({onFirstListenerAdd:M,onLastListenerRemove:I});return g.event}h.fromNodeEventEmitter=c;function S(b,B,F=_=>_){const _=(...H)=>g.fire(F(...H)),M=()=>b.addEventListener(B,_),I=()=>b.removeEventListener(B,_),g=new r({onFirstListenerAdd:M,onLastListenerRemove:I});return g.event}h.fromDOMEventEmitter=S;function y(b){return new Promise(B=>u(b)(B))}h.toPromise=y})(j||(j={}));class U{constructor(h){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${h}_${U._idPool++}`}start(h){this._stopWatch=new X.a(!0),this._listenerCount=h}stop(){if(this._stopWatch){const h=this._stopWatch.elapsed();this._elapsedOverall+=h,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${h.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}U._idPool=0;let K=-1;class G{constructor(h,u=Math.random().toString(18).slice(2,5)){this.customThreshold=h,this.name=u,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(h){let u=K;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||h':"<"+de+">";return me+ae+" +`},_e.strong=function(ae){return""+ae+""},_e.em=function(ae){return""+ae+""},_e.codespan=function(ae){return""+ae+""},_e.br=function(){return this.options.xhtml?"
      ":"
      "},_e.del=function(ae){return""+ae+""},_e.link=function(ae,ue,de){if(ae=le(this.options.sanitize,this.options.baseUrl,ae),ae===null)return de;var me='
      ",me},_e.image=function(ae,ue,de){if(ae=le(this.options.sanitize,this.options.baseUrl,ae),ae===null)return de;var me=''+de+'":">",me},_e.text=function(ae){return ae},Ae}(),Ie=function(){function Ae(){}var _e=Ae.prototype;return _e.strong=function(ae){return ae},_e.em=function(ae){return ae},_e.codespan=function(ae){return ae},_e.del=function(ae){return ae},_e.html=function(ae){return ae},_e.text=function(ae){return ae},_e.link=function(ae,ue,de){return""+de},_e.image=function(ae,ue,de){return""+de},_e.br=function(){return""},Ae}(),We=function(){function Ae(){this.seen={}}var _e=Ae.prototype;return _e.slug=function(ae){var ue=ae.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ue)){var de=ue;do this.seen[de]++,ue=de+"-"+this.seen[de];while(this.seen.hasOwnProperty(ue))}return this.seen[ue]=0,ue},Ae}(),Ve=K.defaults,Qe=M.unescape,Je=function(){function Ae(we){this.options=we||Ve,this.options.renderer=this.options.renderer||new Se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ie,this.slugger=new We}Ae.parse=function(ae,ue){var de=new Ae(ue);return de.parse(ae)};var _e=Ae.prototype;return _e.parse=function(ae,ue){ue===void 0&&(ue=!0);var de="",me,xe,Pe,He,ze,ht,ot,yt,ct,ft,Ot,It,qt,Zt,Dt,Cr,Kr,_t,Lr=ae.length;for(me=0;me0&&Dt.tokens[0].type==="text"?(Dt.tokens[0].text=_t+" "+Dt.tokens[0].text,Dt.tokens[0].tokens&&Dt.tokens[0].tokens.length>0&&Dt.tokens[0].tokens[0].type==="text"&&(Dt.tokens[0].tokens[0].text=_t+" "+Dt.tokens[0].tokens[0].text)):Dt.tokens.unshift({type:"text",text:_t}):Zt+=_t),Zt+=this.parse(Dt.tokens,qt),ct+=this.renderer.listitem(Zt,Kr,Cr);de+=this.renderer.list(ct,Ot,It);continue}case"html":{de+=this.renderer.html(ft.text);continue}case"paragraph":{de+=this.renderer.paragraph(this.parseInline(ft.tokens));continue}case"text":{for(ct=ft.tokens?this.parseInline(ft.tokens):ft.text;me+1An error occurred:

      "+at(Pe.message+"",!0)+"
      ";throw Pe}}je.options=je.setOptions=function(Ae){return st(je.defaults,Ae),dt(je.defaults),je},je.getDefaults=Ue,je.defaults=lt,je.use=function(Ae){var _e=st({},Ae);if(Ae.renderer&&function(){var ae=je.defaults.renderer||new Se,ue=function(xe){var Pe=ae[xe];ae[xe]=function(){for(var He=arguments.length,ze=new Array(He),ht=0;ht`,triples:"",explode:"[]{}"},P=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(u,f,l){l&&l!=ie.Init&&(u.removeKeyMap(j),u.state.closeBrackets=null),f&&(U(X(f,"pairs")),u.state.closeBrackets=f,u.addKeyMap(j))});function X(u,f){return f=="pairs"&&typeof u=="string"?u:typeof u=="object"&&u[f]!=null?u[f]:J[f]}var j={Backspace:r,Enter:L};function U(u){for(var f=0;f=0;s--){var O=o[s].head;u.replaceRange("",P(O.line,O.ch-1),P(O.line,O.ch+1),"+delete")}}function L(u){var f=G(u),l=f&&X(f,"explode");if(!l||u.getOption("disableInput"))return ie.Pass;for(var o=u.listSelections(),s=0;s0;return{anchor:new P(u.anchor.line,u.anchor.ch+(f?-1:1)),head:new P(u.head.line,u.head.ch+(f?1:-1))}}function m(u,f){var l=G(u);if(!l||u.getOption("disableInput"))return ie.Pass;var o=X(l,"pairs"),s=o.indexOf(f);if(s==-1)return ie.Pass;for(var a=X(l,"closeBefore"),O=X(l,"triples"),E=o.charAt(s+1)==f,w=u.listSelections(),D=s%2==0,R,A=0;A=0&&u.getRange(T,P(T.line,T.ch+3))==f+f+f?d="skipThree":d="skip";else if(E&&T.ch>1&&O.indexOf(f)>=0&&u.getRange(P(T.line,T.ch-2),T)==f+f){if(T.ch>2&&/\bstring/.test(u.getTokenTypeAt(P(T.line,T.ch-2))))return ie.Pass;d="addFour"}else if(E){var y=T.ch==0?" ":u.getRange(P(T.line,T.ch-1),T);if(!ie.isWordChar(S)&&y!=f&&!ie.isWordChar(y))d="both";else return ie.Pass}else if(D&&(S.length===0||/\s/.test(S)||a.indexOf(S)>-1))d="both";else return ie.Pass;if(!R)R=d;else if(R!=d)return ie.Pass}var b=s%2?o.charAt(s-1):f,B=s%2?f:o.charAt(s+1);u.operation(function(){if(R=="skip")u.execCommand("goCharRight");else if(R=="skipThree")for(var F=0;F<3;F++)u.execCommand("goCharRight");else if(R=="surround"){for(var _=u.getSelections(),F=0;F<_.length;F++)_[F]=b+_[F]+B;u.replaceSelections(_,"around"),_=u.listSelections().slice();for(var F=0;F<_.length;F++)_[F]=v(_[F]);u.setSelections(_)}else R=="both"?(u.replaceSelection(b+B,null),u.triggerElectric(b+B),u.execCommand("goCharLeft")):R=="addFour"&&(u.replaceSelection(b+b+b+b,"before"),u.execCommand("goCharRight"))})}function p(u,f){var l=u.getRange(P(f.line,f.ch-1),P(f.line,f.ch+1));return l.length==2?l:null}function h(u,f){var l=u.getTokenAt(P(f.line,f.ch+1));return/\bstring/.test(l.type)&&l.start==f.ch&&(f.ch==0||!/\bstring/.test(u.getTokenTypeAt(f)))}})},FWmy:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return ie});function ie(J,P){if(!J)throw new Error(P?`Assertion failed (${P})`:"Assertion Failed")}},GfqC:function(rt,be,Z){"use strict";var ie=Z("q1tI"),J=Z.n(ie),P=Z("TSYQ"),X=Z.n(P);function j(M,I){var g="cannot "+M.method+" "+M.action+" "+I.status+"'",H=new Error(g);return H.status=I.status,H.method=M.method,H.url=M.action,H}function U(M){var I=M.responseText||M.response;if(!I)return I;try{return JSON.parse(I)}catch(g){return I}}function K(M){var I=new XMLHttpRequest;M.onProgress&&I.upload&&(I.upload.onprogress=function(ne){ne.total>0&&(ne.percent=ne.loaded/ne.total*100),M.onProgress(ne)});var g=new FormData;M.data&&Object.keys(M.data).forEach(function($){var ne=M.data[$];if(Array.isArray(ne)){ne.forEach(function(se){g.append($+"[]",se)});return}g.append($,M.data[$])}),M.file instanceof Blob?g.append(M.filename,M.file,M.file.name):g.append(M.filename,M.file),I.onerror=function(ne){M.onError(ne)},I.onload=function(){return I.status<200||I.status>=300?M.onError(j(M,I),U(I)):M.onSuccess(U(I),I)},I.open(M.method,M.action,!0),M.withCredentials&&"withCredentials"in I&&(I.withCredentials=!0);var H=M.headers||{};return H["X-Requested-With"]!==null&&I.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(H).forEach(function($){H[$]!==null&&I.setRequestHeader($,H[$])}),I.send(g),{abort:function(){I.abort()}}}var G=+new Date,r=0;function L(){return"rc-upload-"+G+"-"+ ++r}function v(M,I){return M.indexOf(I,M.length-I.length)!==-1}var m=function(M,I){if(M&&I){var g=Array.isArray(I)?I:I.split(","),H=M.name||"",$=M.type||"",ne=$.replace(/\/.*$/,"");return g.some(function(se){var Oe=se.trim();return Oe.charAt(0)==="."?v(H.toLowerCase(),Oe.toLowerCase()):/\/\*$/.test(Oe)?ne===Oe.replace(/\/.*$/,""):$===Oe})}return!0};function p(M,I){var g=M.createReader(),H=[];function $(){g.readEntries(function(ne){var se=Array.prototype.slice.apply(ne);H=H.concat(se);var Oe=!se.length;Oe?I(H):$()})}$()}var h=function(I,g,H){var $=function ne(se,Oe){Oe=Oe||"",se.isFile?se.file(function(ge){H(ge)&&(se.fullPath&&!ge.webkitRelativePath&&(Object.defineProperties(ge,{webkitRelativePath:{writable:!0}}),ge.webkitRelativePath=se.fullPath.replace(/^\//,""),Object.defineProperties(ge,{webkitRelativePath:{writable:!1}})),g([ge]))}):se.isDirectory&&p(se,function(ge){ge.forEach(function(Te){ne(Te,""+Oe+se.name+"/")})})};I.forEach(function(ne){$(ne.webkitGetAsEntry())})},u=h,f=Object.assign||function(M){for(var I=1;I=0)continue;if(!Object.prototype.hasOwnProperty.call(M,H))continue;g[H]=M[H]}return g}function O(M,I){if(!(M instanceof I))throw new TypeError("Cannot call a class as a function")}function E(M,I){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:M}function w(M,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);M.prototype=Object.create(I&&I.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(M,I):M.__proto__=I)}var D=function(I){return Object.keys(I).reduce(function(g,H){return(H.substr(0,5)==="data-"||H.substr(0,5)==="aria-"||H==="role")&&(g[H]=I[H]),g},{})},R=function(M){w(I,M);function I(){var g,H,$,ne;O(this,I);for(var se=arguments.length,Oe=Array(se),ge=0;gea.length&&(E=a.length);Ow===D){const w=a[Symbol.iterator](),D=O[Symbol.iterator]();for(;;){const R=w.next(),A=D.next();if(R.done!==A.done)return!1;if(R.done)return!0;if(!E(R.value,A.value))return!1}}J.equals=s})(ie||(ie={}))},LdHM:function(rt,be,Z){"use strict";Z.d(be,"b",function(){return a}),Z.d(be,"a",function(){return E});var ie=Z("1OyB"),J=Z("vuIU"),P=Z("Ji7U"),X=Z("LK+K"),j=Z("q1tI"),U=Z("rePB"),K=Z("Ff2n"),G=Z("ODXe"),r=Z("4IlW"),L=Z("bX4T"),v=Z("YrtM"),m=Z("TSYQ"),p=Z.n(m),h=Z("+nKL"),u=Z("8OUc"),f=function(H,$){var ne=H.prefixCls,se=H.id,Oe=H.flattenOptions,ge=H.childrenAsData,Te=H.values,Re=H.searchValue,Le=H.multiple,ce=H.defaultActiveFirstOption,he=H.height,re=H.itemHeight,fe=H.notFoundContent,oe=H.open,De=H.menuItemSelectedIcon,Fe=H.virtual,Ce=H.onSelect,Ne=H.onToggleOpen,Be=H.onActiveValue,le=H.onScroll,ve=H.onMouseEnter,Se="".concat(ne,"-item"),Ie=Object(v.a)(function(){return Oe},[oe,Oe],function(Ge,Ae){return Ae[0]&&Ge[1]!==Ae[1]}),We=j.useRef(null),Ve=function(Ae){Ae.preventDefault()},Qe=function(Ae){We.current&&We.current.scrollTo({index:Ae})},Je=function(Ae){for(var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,we=Ie.length,ae=0;ae1&&arguments[1]!==void 0?arguments[1]:!1;return Object(D.a)(g).map(function($,ne){if(!j.isValidElement($)||!$.type)return null;var se=$.type.isSelectOptGroup,Oe=$.key,ge=$.props,Te=ge.children,Re=Object(K.a)(ge,["children"]);return H||!se?R($):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(Oe===null?ne:Oe,"__"),label:Oe},Re),{},{options:A(Te)})}).filter(function($){return $})}var C=Z("2Qr1"),T=Z("qNPg"),d=Z("U8pU"),S=Z("Kwbf"),y=Z("WKfj");function b(g){var H=g.mode,$=g.options,ne=g.children,se=g.backfill,Oe=g.allowClear,ge=g.placeholder,Te=g.getInputElement,Re=g.showSearch,Le=g.onSearch,ce=g.defaultOpen,he=g.autoFocus,re=g.labelInValue,fe=g.value,oe=g.inputValue,De=g.optionLabelProp,Fe=H==="multiple"||H==="tags",Ce=Re!==void 0?Re:Fe||H==="combobox",Ne=$||A(ne);if(Object(S.a)(H!=="tags"||Ne.every(function(Se){return!Se.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),H==="tags"||H==="combobox"){var Be=Ne.some(function(Se){return Se.options?Se.options.some(function(Ie){return typeof("value"in Ie?Ie.value:Ie.key)=="number"}):typeof("value"in Se?Se.value:Se.key)=="number"});Object(S.a)(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(S.a)(H!=="combobox"||!De,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(S.a)(H==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object(S.a)(H==="combobox"||!Te,"`getInputElement` only work with `combobox` mode."),Object(S.b)(H!=="combobox"||!Te||!Oe||!ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Le&&!Ce&&H!=="combobox"&&H!=="tags"&&Object(S.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(S.b)(!ce||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fe!=null){var le=Object(y.d)(fe);Object(S.a)(!re||le.every(function(Se){return Object(d.a)(Se)==="object"&&("key"in Se||"value"in Se)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(S.a)(!Fe||Array.isArray(fe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ne){var ve=null;Object(D.a)(ne).some(function(Se){if(!j.isValidElement(Se)||!Se.type)return!1;var Ie=Se.type;if(Ie.isSelectOption)return!1;if(Ie.isSelectOptGroup){var We=Object(D.a)(Se.props.children).every(function(Ve){return!j.isValidElement(Ve)||!Se.type||Ve.type.isSelectOption?!0:(ve=Ve.type,!1)});return!We}return ve=Ie,!0}),ve&&Object(S.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(S.a)(oe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var B=b,F=Object(T.a)({prefixCls:"rc-select",components:{optionList:o},convertChildrenToData:A,flattenOptions:C.d,getLabeledValue:C.e,filterOptions:C.b,isValueDisabled:C.g,findValueOption:C.c,warningProps:B,fillOptionsWithMissingValue:C.a}),_=function(g){Object(P.a)($,g);var H=Object(X.a)($);function $(){var ne;return Object(ie.a)(this,$),ne=H.apply(this,arguments),ne.selectRef=j.createRef(),ne.focus=function(){ne.selectRef.current.focus()},ne.blur=function(){ne.selectRef.current.blur()},ne}return Object(J.a)($,[{key:"render",value:function(){return j.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),$}(j.Component);_.Option=a,_.OptGroup=E;var M=_,I=be.c=M},M8RZ:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return r});var ie=Z("fWQN"),J=Z("mtLc"),P=Z("yKVA"),X=Z("879j"),j=Z("q1tI"),U=Z.n(j),K=Z("i8i4"),G=Z.n(K),r=function(L){Object(P.a)(m,L);var v=Object(X.a)(m);function m(p){var h;Object(ie.a)(this,m),h=v.call(this,p);var u=window.document;return h.node=u.createElement("div"),u.body.appendChild(h.node),h}return Object(J.a)(m,[{key:"render",value:function(){var h=this.props.children;return Object(K.createPortal)(h,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),m}(U.a.Component)},MI8n:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return j}),Z.d(be,"b",function(){return r}),Z.d(be,"e",function(){return L}),Z.d(be,"a",function(){return v}),Z.d(be,"d",function(){return m}),Z.d(be,"f",function(){return p});var ie=Z("/cxE"),J=Z("pmY6"),P=Z("24hK"),X=Z("5Y4S"),j;(function(h){h.None=()=>J.a.None;function u(b){return(B,F=null,_)=>{let M=!1,I;return I=b(g=>M?void 0:(I?I.dispose():M=!0,B.call(F,g)),null,_),M&&I.dispose(),I}}h.once=u;function f(b,B){return E((F,_=null,M)=>b(I=>F.call(_,B(I)),null,M))}h.map=f;function l(b,B){return E((F,_=null,M)=>b(I=>{B(I),F.call(_,I)},null,M))}h.forEach=l;function o(b,B){return E((F,_=null,M)=>b(I=>B(I)&&F.call(_,I),null,M))}h.filter=o;function s(b){return b}h.signal=s;function a(...b){return(B,F=null,_)=>Object(J.e)(...b.map(M=>M(I=>B.call(F,I),null,_)))}h.any=a;function O(b,B,F){let _=F;return f(b,M=>(_=B(_,M),_))}h.reduce=O;function E(b){let B;const F=new r({onFirstListenerAdd(){B=b(F.fire,F)},onLastListenerRemove(){B.dispose()}});return F.event}function w(b,B,F=100,_=!1,M){let I,g,H,$=0;const ne=new r({leakWarningThreshold:M,onFirstListenerAdd(){I=b(se=>{$++,g=B(g,se),_&&!H&&(ne.fire(g),g=void 0),clearTimeout(H),H=setTimeout(()=>{const Oe=g;g=void 0,H=void 0,(!_||$>1)&&ne.fire(Oe),$=0},F)})},onLastListenerRemove(){I.dispose()}});return ne.event}h.debounce=w;function D(b,B=(F,_)=>F===_){let F=!0,_;return o(b,M=>{const I=F||!B(M,_);return F=!1,_=M,I})}h.latch=D;function R(b,B){return[h.filter(b,B),h.filter(b,F=>!B(F))]}h.split=R;function A(b,B=!1,F=[]){let _=F.slice(),M=b(H=>{_?_.push(H):g.fire(H)});const I=()=>{_&&_.forEach(H=>g.fire(H)),_=null},g=new r({onFirstListenerAdd(){M||(M=b(H=>g.fire(H)))},onFirstListenerDidAdd(){_&&(B?setTimeout(I):I())},onLastListenerRemove(){M&&M.dispose(),M=null}});return g.event}h.buffer=A;class C{constructor(b){this.event=b}map(b){return new C(f(this.event,b))}forEach(b){return new C(l(this.event,b))}filter(b){return new C(o(this.event,b))}reduce(b,B){return new C(O(this.event,b,B))}latch(){return new C(D(this.event))}debounce(b,B=100,F=!1,_){return new C(w(this.event,b,B,F,_))}on(b,B,F){return this.event(b,B,F)}once(b,B,F){return u(this.event)(b,B,F)}}function T(b){return new C(b)}h.chain=T;function d(b,B,F=_=>_){const _=(...H)=>g.fire(F(...H)),M=()=>b.on(B,_),I=()=>b.removeListener(B,_),g=new r({onFirstListenerAdd:M,onLastListenerRemove:I});return g.event}h.fromNodeEventEmitter=d;function S(b,B,F=_=>_){const _=(...H)=>g.fire(F(...H)),M=()=>b.addEventListener(B,_),I=()=>b.removeEventListener(B,_),g=new r({onFirstListenerAdd:M,onLastListenerRemove:I});return g.event}h.fromDOMEventEmitter=S;function y(b){return new Promise(B=>u(b)(B))}h.toPromise=y})(j||(j={}));class U{constructor(h){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${h}_${U._idPool++}`}start(h){this._stopWatch=new X.a(!0),this._listenerCount=h}stop(){if(this._stopWatch){const h=this._stopWatch.elapsed();this._elapsedOverall+=h,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${h.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}U._idPool=0;let K=-1;class G{constructor(h,u=Math.random().toString(18).slice(2,5)){this.customThreshold=h,this.name=u,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(h){let u=K;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||h{const o=this._stacks.get(f)||0;this._stacks.set(f,o-1)}}}class r{constructor(h){var u;this._disposed=!1,this._options=h,this._leakageMon=K>0?new G(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((u=this._options)===null||u===void 0?void 0:u._profName)?new U(this._options._profName):void 0}get event(){return this._event||(this._event=(h,u,f)=>{var l;this._listeners||(this._listeners=new P.a);const o=this._listeners.isEmpty();o&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(u?[h,u]:h);o&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,h,u);const a=(l=this._leakageMon)===null||l===void 0?void 0:l.check(this._listeners.size),O=Object(J.i)(()=>{if(a&&a(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return f instanceof J.b?f.add(O):Array.isArray(f)&&f.push(O),O}),this._event}fire(h){var u,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new P.a);for(let l of this._listeners)this._deliveryQueue.push([l,h]);for((u=this._perfMon)===null||u===void 0||u.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[l,o]=this._deliveryQueue.shift();try{typeof l=="function"?l.call(void 0,o):l[0].call(l[1],o)}catch(s){Object(ie.f)(s)}}(f=this._perfMon)===null||f===void 0||f.stop()}}dispose(){var h,u,f,l,o;this._disposed||(this._disposed=!0,(h=this._listeners)===null||h===void 0||h.clear(),(u=this._deliveryQueue)===null||u===void 0||u.clear(),(l=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||l===void 0||l.call(f),(o=this._leakageMon)===null||o===void 0||o.dispose())}}class L extends r{constructor(h){super(h);this._isPaused=0,this._eventQueue=new P.a,this._mergeFn=h==null?void 0:h.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const h=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(h))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(h){this._listeners&&(this._isPaused!==0?this._eventQueue.push(h):super.fire(h))}}class v extends L{constructor(h){var u;super(h);this._delay=(u=h.delay)!==null&&u!==void 0?u:100}fire(h){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(h)}}class m{constructor(){this.buffers=[]}wrapEvent(h){return(u,f,l)=>h(o=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>u.call(f,o)):u.call(f,o)},void 0,l)}bufferEvents(h){const u=[];this.buffers.push(u);const f=h();return this.buffers.pop(),u.forEach(l=>l()),f}}class p{constructor(){this.listening=!1,this.inputEvent=j.None,this.inputEventListener=J.a.None,this.emitter=new r({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(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(rt,be,Z){"use strict";(function(ie,J){Z.d(be,"b",function(){return f}),Z.d(be,"i",function(){return a}),Z.d(be,"f",function(){return O}),Z.d(be,"d",function(){return E}),Z.d(be,"g",function(){return w}),Z.d(be,"h",function(){return D}),Z.d(be,"c",function(){return R}),Z.d(be,"k",function(){return A}),Z.d(be,"j",function(){return C}),Z.d(be,"a",function(){return T}),Z.d(be,"e",function(){return y});var P;const X="en";let j=!1,U=!1,K=!1,G=!1,r=!1,L=!1,v=!1,m,p=X,h,u;const f=typeof self=="object"?self:typeof ie=="object"?ie:{};let l;typeof f.vscode!="undefined"&&typeof f.vscode.process!="undefined"?l=f.vscode.process:typeof J!="undefined"&&(l=J);const o=typeof((P=l==null?void 0:l.versions)===null||P===void 0?void 0:P.electron)=="string"&&l.type==="renderer";if(typeof navigator=="object"&&!o)u=navigator.userAgent,j=u.indexOf("Windows")>=0,U=u.indexOf("Macintosh")>=0,v=(u.indexOf("Macintosh")>=0||u.indexOf("iPad")>=0||u.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,K=u.indexOf("Linux")>=0,L=!0,m=navigator.language,p=m;else if(typeof l=="object"){j=l.platform==="win32",U=l.platform==="darwin",K=l.platform==="linux",G=K&&!!l.env.SNAP&&!!l.env.SNAP_REVISION,m=X,p=X;const b=l.env.VSCODE_NLS_CONFIG;if(b)try{const B=JSON.parse(b),F=B.availableLanguages["*"];m=B.locale,p=F||X,h=B._translationsConfigFile}catch(B){}r=!0}else console.error("Unable to resolve platform.");let s=0;U?s=1:j?s=3:K&&(s=2);const a=j,O=U,E=K,w=r,D=L,R=v,A=u,C=function(){if(f.setImmediate)return f.setImmediate.bind(f);if(typeof f.postMessage=="function"&&!f.importScripts){let F=[];f.addEventListener("message",M=>{if(M.data&&M.data.vscodeSetImmediateId)for(let I=0,g=F.length;I{const I=++_;F.push({id:I,callback:M}),f.postMessage({vscodeSetImmediateId:I},"*")}}if(typeof(l==null?void 0:l.nextTick)=="function")return l.nextTick.bind(l);const B=Promise.resolve();return F=>B.then(F)}(),T=U||v?2:j?1:3;let c=!0,S=!1;function y(){if(!S){S=!0;const b=new Uint8Array(2);b[0]=1,b[1]=2;const B=new Uint16Array(b.buffer);c=B[0]===(2<<8)+1}return c}}).call(this,Z("IyRk"),Z("Q2Ig"))},N0LK:function(rt,be,Z){"use strict";Z.d(be,"C",function(){return ie}),Z.d(be,"v",function(){return P}),Z.d(be,"s",function(){return X}),Z.d(be,"t",function(){return j}),Z.d(be,"U",function(){return U}),Z.d(be,"J",function(){return K}),Z.d(be,"O",function(){return G}),Z.d(be,"p",function(){return r}),Z.d(be,"T",function(){return L}),Z.d(be,"q",function(){return v}),Z.d(be,"N",function(){return m}),Z.d(be,"M",function(){return p}),Z.d(be,"Q",function(){return h}),Z.d(be,"u",function(){return u}),Z.d(be,"x",function(){return f}),Z.d(be,"I",function(){return l}),Z.d(be,"f",function(){return o}),Z.d(be,"h",function(){return s}),Z.d(be,"g",function(){return a}),Z.d(be,"i",function(){return O}),Z.d(be,"G",function(){return E}),Z.d(be,"H",function(){return w}),Z.d(be,"r",function(){return D}),Z.d(be,"R",function(){return R}),Z.d(be,"d",function(){return A}),Z.d(be,"e",function(){return C}),Z.d(be,"E",function(){return T}),Z.d(be,"F",function(){return c}),Z.d(be,"j",function(){return S}),Z.d(be,"z",function(){return y}),Z.d(be,"K",function(){return B}),Z.d(be,"L",function(){return F}),Z.d(be,"m",function(){return M}),Z.d(be,"k",function(){return g}),Z.d(be,"A",function(){return $}),Z.d(be,"a",function(){return ne}),Z.d(be,"n",function(){return se}),Z.d(be,"l",function(){return Oe}),Z.d(be,"D",function(){return ge}),Z.d(be,"B",function(){return Te}),Z.d(be,"b",function(){return Re}),Z.d(be,"S",function(){return Le}),Z.d(be,"o",function(){return de}),Z.d(be,"P",function(){return he}),Z.d(be,"w",function(){return re}),Z.d(be,"c",function(){return fe}),Z.d(be,"y",function(){return Fe});function ie(le){return!le||typeof le!="string"?!0:le.trim().length===0}const J=/{(\d+)}/g;function P(le,...ve){return ve.length===0?le:le.replace(J,function(Se,Ie){const We=parseInt(Ie,10);return isNaN(We)||We<0||We>=ve.length?Se:ve[We]})}function X(le){return le.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function j(le){return le.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function U(le,ve=" "){const Se=K(le,ve);return G(Se,ve)}function K(le,ve){if(!le||!ve)return le;const Se=ve.length;if(Se===0||le.length===0)return le;let Ie=0;for(;le.indexOf(ve,Ie)===Ie;)Ie=Ie+Se;return le.substring(Ie)}function G(le,ve){if(!le||!ve)return le;const Se=ve.length,Ie=le.length;if(Se===0||Ie===0)return le;let We=Ie,Ve=-1;for(;!(Ve=le.lastIndexOf(ve,We-1),Ve===-1||Ve+Se!==We);){if(Ve===0)return"";We=Ve}return le.substring(0,We)}function r(le){return le.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function L(le){return le.replace(/\*/g,"")}function v(le,ve,Se={}){if(!le)throw new Error("Cannot create regex from empty string");ve||(le=j(le)),Se.wholeWord&&(/\B/.test(le.charAt(0))||(le="\\b"+le),/\B/.test(le.charAt(le.length-1))||(le=le+"\\b"));let Ie="";return Se.global&&(Ie+="g"),Se.matchCase||(Ie+="i"),Se.multiline&&(Ie+="m"),Se.unicode&&(Ie+="u"),new RegExp(le,Ie)}function m(le){if(le.source==="^"||le.source==="^$"||le.source==="$"||le.source==="^\\s*$")return!1;const ve=le.exec("");return!!(ve&&le.lastIndex===0)}function p(le){return(le.global?"g":"")+(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")}function h(le){return le.split(/\r\n|\r|\n/)}function u(le){for(let ve=0,Se=le.length;ve=0;Se--){const Ie=le.charCodeAt(Se);if(Ie!==32&&Ie!==9)return Se}return-1}function o(le,ve){return leve?1:0}function s(le,ve,Se=0,Ie=le.length,We=0,Ve=ve.length){for(;Seqe)return 1}const Qe=Ie-Se,Je=Ve-We;return QeJe?1:0}function a(le,ve){return O(le,ve,0,le.length,0,ve.length)}function O(le,ve,Se=0,Ie=le.length,We=0,Ve=ve.length){for(;Se=128||qe>=128)return s(le.toLowerCase(),ve.toLowerCase(),Se,Ie,We,Ve);E(st)&&(st-=32),E(qe)&&(qe-=32);const at=st-qe;if(at===0)continue;return at}const Qe=Ie-Se,Je=Ve-We;return QeJe?1:0}function E(le){return le>=97&&le<=122}function w(le){return le>=65&&le<=90}function D(le,ve){return le.length===ve.length&&O(le,ve)===0}function R(le,ve){const Se=ve.length;return ve.length>le.length?!1:O(le,ve,0,Se)===0}function A(le,ve){let Se,Ie=Math.min(le.length,ve.length);for(Se=0;Se1){const Ie=le.charCodeAt(ve-2);if(T(Ie))return S(Ie,Se)}return Se}function B(le,ve){const Se=oe.getInstance(),Ie=ve,We=le.length,Ve=y(le,We,ve);ve+=Ve>=65536?2:1;let Qe=Se.getGraphemeBreakType(Ve);for(;ve=65536?2:1,Qe=st}return ve-Ie}function F(le,ve){const Se=oe.getInstance(),Ie=ve,We=b(le,ve);ve-=We>=65536?2:1;let Ve=Se.getGraphemeBreakType(We);for(;ve>0;){const Qe=b(le,ve),Je=Se.getGraphemeBreakType(Qe);if(fe(Je,Ve))break;ve-=Qe>=65536?2:1,Ve=Je}return Ie-ve}const _=/(?:[\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 M(le){return _.test(le)}const I=/(?:[\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 g(le){return I.test(le)}const H=/^[\t\n\r\x20-\x7E]*$/;function $(le){return H.test(le)}const ne=/[\u2028\u2029]/;function se(le){return ne.test(le)}function Oe(le){for(let ve=0,Se=le.length;ve=11904&&le<=55215||le>=63744&&le<=64255||le>=65281&&le<=65374}function Te(le){return le>=127462&&le<=127487||le===8986||le===8987||le===9200||le===9203||le>=9728&&le<=10175||le===11088||le===11093||le>=127744&&le<=128591||le>=128640&&le<=128764||le>=128992&&le<=129003||le>=129280&&le<=129535||le>=129648&&le<=129750}const Re=String.fromCharCode(65279);function Le(le){return!!(le&&le.length>0&&le.charCodeAt(0)===65279)}function de(le,ve=!1){return le?(ve&&(le=le.replace(/\\./g,"")),le.toLowerCase()!==le):!1}function he(le){const ve=90-65+1;return le=le%(2*ve),leve[3*Ie+1])Ie=2*Ie+1;else return ve[3*Ie+2];return 0}}oe._INSTANCE=null;function De(){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 Fe(le,ve){if(le===0)return 0;const Se=Ce(le,ve);if(Se!==void 0)return Se;const Ie=b(ve,le);return le-=Ne(Ie),le}function Ce(le,ve){let Se=b(ve,le);for(le-=Ne(Se);Be(Se)||Se===65039||Se===8419;){if(le===0)return;Se=b(ve,le),le-=Ne(Se)}if(!Te(Se))return;if(le>=0){const Ie=b(ve,le);Ie===8205&&(le-=Ne(Ie))}return le}function Ne(le){return le>=65536?2:1}function Be(le){return 127995<=le&&le<=127999}},Ot1p:function(rt,be,Z){"use strict";var ie=Z("2qtc"),J=Z("kLXV"),P=Z("rAM+"),X=Z("miYZ"),j=Z("tsqr"),U=Z("9og8"),K=Z("tJVT"),G=Z("jrin"),r=Z("WmNS"),L=Z.n(r),v=Z("q1tI"),m=Z.n(v),p=Z("VrN/"),h=Z.n(p),u=Z("bdgK"),f=Z("p77/"),l=Z("Bd2K"),o=Z("ELLl"),s=Z("19Vz"),a=Z("lZu9"),O=Z("+NIl"),E=Z("kSUc"),w=Z("9Bee"),D=function(xe){var Pe=xe.value,He=Pe===void 0?"":Pe,ze=xe.className,ht=xe.showTextOnly,ot=xe.showLines,yt=xe.style,dt=yt===void 0?{}:yt,ft=Object(v.useMemo)(function(){return""},[He]);return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{dangerouslySetInnerHTML:{__html:ft}}))},R=Z("0Owb"),A=Z("dejd"),C=Z("C+DQ"),T=Z("1vsH"),c=Z("m3rI"),S=[{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 y(xe){var Pe=xe.onActionCallback,He=xe.title,ze=xe.icon,ht=xe.actionName,ot=xe.className,yt=ot===void 0?"":ot,dt=xe.children;function ft(){Pe(ht)}return m.a.createElement("a",{title:He,className:yt,onClick:ft},m.a.createElement("i",{className:"md-iconfont ".concat(ze)}),dt)}var b=function(xe){var Pe=xe.watch,He=xe.showNullButton,ze=xe.onActionCallback,ht=xe.fullScreen,ot=xe.insertTemp,yt=xe.hidetoolBar,dt=xe.uuid,ft=xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(T.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(T.F)("_educoder_session"),"&key=").concat(dt,"&api=").concat(encodeURIComponent(c.a.PROXY_SERVER)));var Ot=[].concat(S,[{title:"".concat(Pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Pe?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return m.a.createElement("ul",{className:"markdown-toolbar-container"},!yt&&Ot.map(function(It,qt){return m.a.createElement("li",{key:qt},It.actionName?m.a.createElement(y,Object(R.a)({},It,{onActionCallback:ze})):m.a.createElement("span",{className:"v-line"}))}),He?m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ze},m.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ot&&m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ot),onActionCallback:ze},m.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),m.a.createElement("li",{className:"btn-full-screen"},m.a.createElement(y,{icon:"".concat(ht?"icon-shrink":"icon-enlarge"),title:ht?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ze})))},B=Z("M8RZ"),F=Z("+L6B"),_=Z("2/Rp"),M=Z("y8nQ"),I=Z("Vl3Y"),g=Z("5NDa"),H=Z("5rEg"),$={labelCol:{span:4},wrapperCol:{span:20}},ne=function(xe){var Pe=xe.callback,He=xe.onCancel;function ze(ht){Pe(ht)}return m.a.createElement(I.a,Object(R.a)({},$,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ze}),m.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},m.a.createElement(H.a,null)),m.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},m.a.createElement(H.a,null)),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))},se=Z("7ahc"),Oe=Z("HmJG"),ge=Z("BjJ7"),Te=I.a.useForm,Re={width:280,marginRight:10},Le={labelCol:{span:5},wrapperCol:{span:19}},de=function(xe){var Pe=xe.callback,He=xe.onCancel,ze=Te(),ht=Object(K.a)(ze,1),ot=ht[0];function yt(Ot){Pe(Ot)}function dt(Ot,It){if(Ot.status===-1){j.b.error(Ot.message);return}ot.setFieldsValue({src:"/api/attachments/".concat(Ot.id),type:It.type})}function ft(Ot){var It=Ot.target.files[0];re(It,dt)}return m.a.createElement(I.a,Object(R.a)({form:ot},Le,{className:"upload-image-panel",onFinish:yt}),m.a.createElement(I.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},m.a.createElement("div",{className:"flex-container"},m.a.createElement(I.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},m.a.createElement(H.a,{style:Re})),m.a.createElement(he,{onFileChange:ft}))),m.a.createElement(I.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},m.a.createElement(H.a,{style:{width:264}})),m.a.createElement(I.a.Item,{style:{textAlign:"right"}},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))};function he(xe){var Pe=xe.onFileChange;return m.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",m.a.createElement("input",{type:"file",onChange:Pe}))}function re(xe,Pe){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var He=new FormData;He.append("editormd-image-file",xe),He.append("file_param_name","editormd-image-file"),He.append("byxhr","true");var ze=new window.XMLHttpRequest;ze.withCredentials=!0,ze.addEventListener("load",function(ht){Pe(JSON.parse(ht.target.responseText),xe)},!1),ze.addEventListener("error",function(ht){console.error(ht)},!1),ze.open("POST","".concat(ge.a,"/api/attachments.json")),ze.send(He)}var fe=Z("giR+"),oe=Z("fyUT"),De=Z("7Kak"),Fe=Z("9yH6"),Ce=Fe.a.Group,Ne={margin:"0 8px"},Be=function(xe){var Pe=xe.callback,He=xe.onCancel;function ze(ht){Pe(ht)}return m.a.createElement(I.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ze},m.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},m.a.createElement("span",{style:Ne},"\u5355\u5143\u683C\u6570\uFF1A"),m.a.createElement("span",{style:Ne},"\u884C\u6570"),m.a.createElement(I.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},m.a.createElement(oe.a,null)),m.a.createElement("span",{style:Ne},"\u5217\u6570"),m.a.createElement(I.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},m.a.createElement(oe.a,null))),m.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},m.a.createElement("span",{style:Ne},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),m.a.createElement(I.a.Item,{name:"align"},m.a.createElement(Ce,null,m.a.createElement(Fe.a,{value:"default"},m.a.createElement("i",{className:"fa fa-align-justify"})),m.a.createElement(Fe.a,{value:"left"},m.a.createElement("i",{className:"fa fa-align-left"})),m.a.createElement(Fe.a,{value:"center"},m.a.createElement("i",{className:"fa fa-align-center"})),m.a.createElement(Fe.a,{value:"right"},m.a.createElement("i",{className:"fa fa-align-right"}))))),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))},le=Z("ErOA"),ve=Z("7Cbv"),Se="link",Ie="upload-image",We="code-block",Ve="add-table",Qe="------------",Je={default:Qe,left:":".concat(Qe),center:":".concat(Qe,":"),right:"".concat(Qe,":")},st=Z("9VGf"),qe,at;function Ue(){}var ct=0,lt=1e4,je="\u2581",Ge=` +`),l=this._stacks.get(f)||0;if(this._stacks.set(f,l+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=u*.5;let o,s=0;for(const[a,O]of this._stacks)(!o||s{const o=this._stacks.get(f)||0;this._stacks.set(f,o-1)}}}class r{constructor(h){var u;this._disposed=!1,this._options=h,this._leakageMon=K>0?new G(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((u=this._options)===null||u===void 0?void 0:u._profName)?new U(this._options._profName):void 0}get event(){return this._event||(this._event=(h,u,f)=>{var l;this._listeners||(this._listeners=new P.a);const o=this._listeners.isEmpty();o&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(u?[h,u]:h);o&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,h,u);const a=(l=this._leakageMon)===null||l===void 0?void 0:l.check(this._listeners.size),O=Object(J.i)(()=>{if(a&&a(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return f instanceof J.b?f.add(O):Array.isArray(f)&&f.push(O),O}),this._event}fire(h){var u,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new P.a);for(let l of this._listeners)this._deliveryQueue.push([l,h]);for((u=this._perfMon)===null||u===void 0||u.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[l,o]=this._deliveryQueue.shift();try{typeof l=="function"?l.call(void 0,o):l[0].call(l[1],o)}catch(s){Object(ie.f)(s)}}(f=this._perfMon)===null||f===void 0||f.stop()}}dispose(){var h,u,f,l,o;this._disposed||(this._disposed=!0,(h=this._listeners)===null||h===void 0||h.clear(),(u=this._deliveryQueue)===null||u===void 0||u.clear(),(l=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||l===void 0||l.call(f),(o=this._leakageMon)===null||o===void 0||o.dispose())}}class L extends r{constructor(h){super(h);this._isPaused=0,this._eventQueue=new P.a,this._mergeFn=h==null?void 0:h.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const h=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(h))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(h){this._listeners&&(this._isPaused!==0?this._eventQueue.push(h):super.fire(h))}}class v extends L{constructor(h){var u;super(h);this._delay=(u=h.delay)!==null&&u!==void 0?u:100}fire(h){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(h)}}class m{constructor(){this.buffers=[]}wrapEvent(h){return(u,f,l)=>h(o=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>u.call(f,o)):u.call(f,o)},void 0,l)}bufferEvents(h){const u=[];this.buffers.push(u);const f=h();return this.buffers.pop(),u.forEach(l=>l()),f}}class p{constructor(){this.listening=!1,this.inputEvent=j.None,this.inputEventListener=J.a.None,this.emitter=new r({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(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(rt,be,Z){"use strict";(function(ie,J){Z.d(be,"b",function(){return f}),Z.d(be,"i",function(){return a}),Z.d(be,"f",function(){return O}),Z.d(be,"d",function(){return E}),Z.d(be,"g",function(){return w}),Z.d(be,"h",function(){return D}),Z.d(be,"c",function(){return R}),Z.d(be,"k",function(){return A}),Z.d(be,"j",function(){return C}),Z.d(be,"a",function(){return T}),Z.d(be,"e",function(){return y});var P;const X="en";let j=!1,U=!1,K=!1,G=!1,r=!1,L=!1,v=!1,m,p=X,h,u;const f=typeof self=="object"?self:typeof ie=="object"?ie:{};let l;typeof f.vscode!="undefined"&&typeof f.vscode.process!="undefined"?l=f.vscode.process:typeof J!="undefined"&&(l=J);const o=typeof((P=l==null?void 0:l.versions)===null||P===void 0?void 0:P.electron)=="string"&&l.type==="renderer";if(typeof navigator=="object"&&!o)u=navigator.userAgent,j=u.indexOf("Windows")>=0,U=u.indexOf("Macintosh")>=0,v=(u.indexOf("Macintosh")>=0||u.indexOf("iPad")>=0||u.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,K=u.indexOf("Linux")>=0,L=!0,m=navigator.language,p=m;else if(typeof l=="object"){j=l.platform==="win32",U=l.platform==="darwin",K=l.platform==="linux",G=K&&!!l.env.SNAP&&!!l.env.SNAP_REVISION,m=X,p=X;const b=l.env.VSCODE_NLS_CONFIG;if(b)try{const B=JSON.parse(b),F=B.availableLanguages["*"];m=B.locale,p=F||X,h=B._translationsConfigFile}catch(B){}r=!0}else console.error("Unable to resolve platform.");let s=0;U?s=1:j?s=3:K&&(s=2);const a=j,O=U,E=K,w=r,D=L,R=v,A=u,C=function(){if(f.setImmediate)return f.setImmediate.bind(f);if(typeof f.postMessage=="function"&&!f.importScripts){let F=[];f.addEventListener("message",M=>{if(M.data&&M.data.vscodeSetImmediateId)for(let I=0,g=F.length;I{const I=++_;F.push({id:I,callback:M}),f.postMessage({vscodeSetImmediateId:I},"*")}}if(typeof(l==null?void 0:l.nextTick)=="function")return l.nextTick.bind(l);const B=Promise.resolve();return F=>B.then(F)}(),T=U||v?2:j?1:3;let d=!0,S=!1;function y(){if(!S){S=!0;const b=new Uint8Array(2);b[0]=1,b[1]=2;const B=new Uint16Array(b.buffer);d=B[0]===(2<<8)+1}return d}}).call(this,Z("IyRk"),Z("Q2Ig"))},N0LK:function(rt,be,Z){"use strict";Z.d(be,"C",function(){return ie}),Z.d(be,"v",function(){return P}),Z.d(be,"s",function(){return X}),Z.d(be,"t",function(){return j}),Z.d(be,"U",function(){return U}),Z.d(be,"J",function(){return K}),Z.d(be,"O",function(){return G}),Z.d(be,"p",function(){return r}),Z.d(be,"T",function(){return L}),Z.d(be,"q",function(){return v}),Z.d(be,"N",function(){return m}),Z.d(be,"M",function(){return p}),Z.d(be,"Q",function(){return h}),Z.d(be,"u",function(){return u}),Z.d(be,"x",function(){return f}),Z.d(be,"I",function(){return l}),Z.d(be,"f",function(){return o}),Z.d(be,"h",function(){return s}),Z.d(be,"g",function(){return a}),Z.d(be,"i",function(){return O}),Z.d(be,"G",function(){return E}),Z.d(be,"H",function(){return w}),Z.d(be,"r",function(){return D}),Z.d(be,"R",function(){return R}),Z.d(be,"d",function(){return A}),Z.d(be,"e",function(){return C}),Z.d(be,"E",function(){return T}),Z.d(be,"F",function(){return d}),Z.d(be,"j",function(){return S}),Z.d(be,"z",function(){return y}),Z.d(be,"K",function(){return B}),Z.d(be,"L",function(){return F}),Z.d(be,"m",function(){return M}),Z.d(be,"k",function(){return g}),Z.d(be,"A",function(){return $}),Z.d(be,"a",function(){return ne}),Z.d(be,"n",function(){return se}),Z.d(be,"l",function(){return Oe}),Z.d(be,"D",function(){return ge}),Z.d(be,"B",function(){return Te}),Z.d(be,"b",function(){return Re}),Z.d(be,"S",function(){return Le}),Z.d(be,"o",function(){return ce}),Z.d(be,"P",function(){return he}),Z.d(be,"w",function(){return re}),Z.d(be,"c",function(){return fe}),Z.d(be,"y",function(){return Fe});function ie(le){return!le||typeof le!="string"?!0:le.trim().length===0}const J=/{(\d+)}/g;function P(le,...ve){return ve.length===0?le:le.replace(J,function(Se,Ie){const We=parseInt(Ie,10);return isNaN(We)||We<0||We>=ve.length?Se:ve[We]})}function X(le){return le.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function j(le){return le.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function U(le,ve=" "){const Se=K(le,ve);return G(Se,ve)}function K(le,ve){if(!le||!ve)return le;const Se=ve.length;if(Se===0||le.length===0)return le;let Ie=0;for(;le.indexOf(ve,Ie)===Ie;)Ie=Ie+Se;return le.substring(Ie)}function G(le,ve){if(!le||!ve)return le;const Se=ve.length,Ie=le.length;if(Se===0||Ie===0)return le;let We=Ie,Ve=-1;for(;!(Ve=le.lastIndexOf(ve,We-1),Ve===-1||Ve+Se!==We);){if(Ve===0)return"";We=Ve}return le.substring(0,We)}function r(le){return le.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function L(le){return le.replace(/\*/g,"")}function v(le,ve,Se={}){if(!le)throw new Error("Cannot create regex from empty string");ve||(le=j(le)),Se.wholeWord&&(/\B/.test(le.charAt(0))||(le="\\b"+le),/\B/.test(le.charAt(le.length-1))||(le=le+"\\b"));let Ie="";return Se.global&&(Ie+="g"),Se.matchCase||(Ie+="i"),Se.multiline&&(Ie+="m"),Se.unicode&&(Ie+="u"),new RegExp(le,Ie)}function m(le){if(le.source==="^"||le.source==="^$"||le.source==="$"||le.source==="^\\s*$")return!1;const ve=le.exec("");return!!(ve&&le.lastIndex===0)}function p(le){return(le.global?"g":"")+(le.ignoreCase?"i":"")+(le.multiline?"m":"")+(le.unicode?"u":"")}function h(le){return le.split(/\r\n|\r|\n/)}function u(le){for(let ve=0,Se=le.length;ve=0;Se--){const Ie=le.charCodeAt(Se);if(Ie!==32&&Ie!==9)return Se}return-1}function o(le,ve){return leve?1:0}function s(le,ve,Se=0,Ie=le.length,We=0,Ve=ve.length){for(;Seqe)return 1}const Qe=Ie-Se,Je=Ve-We;return QeJe?1:0}function a(le,ve){return O(le,ve,0,le.length,0,ve.length)}function O(le,ve,Se=0,Ie=le.length,We=0,Ve=ve.length){for(;Se=128||qe>=128)return s(le.toLowerCase(),ve.toLowerCase(),Se,Ie,We,Ve);E(st)&&(st-=32),E(qe)&&(qe-=32);const at=st-qe;if(at===0)continue;return at}const Qe=Ie-Se,Je=Ve-We;return QeJe?1:0}function E(le){return le>=97&&le<=122}function w(le){return le>=65&&le<=90}function D(le,ve){return le.length===ve.length&&O(le,ve)===0}function R(le,ve){const Se=ve.length;return ve.length>le.length?!1:O(le,ve,0,Se)===0}function A(le,ve){let Se,Ie=Math.min(le.length,ve.length);for(Se=0;Se1){const Ie=le.charCodeAt(ve-2);if(T(Ie))return S(Ie,Se)}return Se}function B(le,ve){const Se=oe.getInstance(),Ie=ve,We=le.length,Ve=y(le,We,ve);ve+=Ve>=65536?2:1;let Qe=Se.getGraphemeBreakType(Ve);for(;ve=65536?2:1,Qe=st}return ve-Ie}function F(le,ve){const Se=oe.getInstance(),Ie=ve,We=b(le,ve);ve-=We>=65536?2:1;let Ve=Se.getGraphemeBreakType(We);for(;ve>0;){const Qe=b(le,ve),Je=Se.getGraphemeBreakType(Qe);if(fe(Je,Ve))break;ve-=Qe>=65536?2:1,Ve=Je}return Ie-ve}const _=/(?:[\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 M(le){return _.test(le)}const I=/(?:[\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 g(le){return I.test(le)}const H=/^[\t\n\r\x20-\x7E]*$/;function $(le){return H.test(le)}const ne=/[\u2028\u2029]/;function se(le){return ne.test(le)}function Oe(le){for(let ve=0,Se=le.length;ve=11904&&le<=55215||le>=63744&&le<=64255||le>=65281&&le<=65374}function Te(le){return le>=127462&&le<=127487||le===8986||le===8987||le===9200||le===9203||le>=9728&&le<=10175||le===11088||le===11093||le>=127744&&le<=128591||le>=128640&&le<=128764||le>=128992&&le<=129003||le>=129280&&le<=129535||le>=129648&&le<=129750}const Re=String.fromCharCode(65279);function Le(le){return!!(le&&le.length>0&&le.charCodeAt(0)===65279)}function ce(le,ve=!1){return le?(ve&&(le=le.replace(/\\./g,"")),le.toLowerCase()!==le):!1}function he(le){const ve=90-65+1;return le=le%(2*ve),leve[3*Ie+1])Ie=2*Ie+1;else return ve[3*Ie+2];return 0}}oe._INSTANCE=null;function De(){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 Fe(le,ve){if(le===0)return 0;const Se=Ce(le,ve);if(Se!==void 0)return Se;const Ie=b(ve,le);return le-=Ne(Ie),le}function Ce(le,ve){let Se=b(ve,le);for(le-=Ne(Se);Be(Se)||Se===65039||Se===8419;){if(le===0)return;Se=b(ve,le),le-=Ne(Se)}if(!Te(Se))return;if(le>=0){const Ie=b(ve,le);Ie===8205&&(le-=Ne(Ie))}return le}function Ne(le){return le>=65536?2:1}function Be(le){return 127995<=le&&le<=127999}},Ot1p:function(rt,be,Z){"use strict";var ie=Z("2qtc"),J=Z("kLXV"),P=Z("rAM+"),X=Z("miYZ"),j=Z("tsqr"),U=Z("9og8"),K=Z("tJVT"),G=Z("jrin"),r=Z("WmNS"),L=Z.n(r),v=Z("q1tI"),m=Z.n(v),p=Z("VrN/"),h=Z.n(p),u=Z("bdgK"),f=Z("p77/"),l=Z("Bd2K"),o=Z("ELLl"),s=Z("19Vz"),a=Z("lZu9"),O=Z("+NIl"),E=Z("kSUc"),w=Z("9Bee"),D=function(xe){var Pe=xe.value,He=Pe===void 0?"":Pe,ze=xe.className,ht=xe.showTextOnly,ot=xe.showLines,yt=xe.style,ct=yt===void 0?{}:yt,ft=Object(v.useMemo)(function(){return""},[He]);return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{dangerouslySetInnerHTML:{__html:ft}}))},R=Z("0Owb"),A=Z("dejd"),C=Z("C+DQ"),T=Z("1vsH"),d=Z("m3rI"),S=[{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 y(xe){var Pe=xe.onActionCallback,He=xe.title,ze=xe.icon,ht=xe.actionName,ot=xe.className,yt=ot===void 0?"":ot,ct=xe.children;function ft(){Pe(ht)}return m.a.createElement("a",{title:He,className:yt,onClick:ft},m.a.createElement("i",{className:"md-iconfont ".concat(ze)}),ct)}var b=function(xe){var Pe=xe.watch,He=xe.showNullButton,ze=xe.onActionCallback,ht=xe.fullScreen,ot=xe.insertTemp,yt=xe.hidetoolBar,ct=xe.uuid,ft=xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(T.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(T.F)("_educoder_session"),"&key=").concat(ct,"&api=").concat(encodeURIComponent(d.a.PROXY_SERVER)));var Ot=[].concat(S,[{title:"".concat(Pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Pe?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return m.a.createElement("ul",{className:"markdown-toolbar-container"},!yt&&Ot.map(function(It,qt){return m.a.createElement("li",{key:qt},It.actionName?m.a.createElement(y,Object(R.a)({},It,{onActionCallback:ze})):m.a.createElement("span",{className:"v-line"}))}),He?m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ze},m.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ot&&m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ot),onActionCallback:ze},m.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),m.a.createElement("li",{className:"btn-full-screen"},m.a.createElement(y,{icon:"".concat(ht?"icon-shrink":"icon-enlarge"),title:ht?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ze})))},B=Z("M8RZ"),F=Z("+L6B"),_=Z("2/Rp"),M=Z("y8nQ"),I=Z("Vl3Y"),g=Z("5NDa"),H=Z("5rEg"),$={labelCol:{span:4},wrapperCol:{span:20}},ne=function(xe){var Pe=xe.callback,He=xe.onCancel;function ze(ht){Pe(ht)}return m.a.createElement(I.a,Object(R.a)({},$,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ze}),m.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},m.a.createElement(H.a,null)),m.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},m.a.createElement(H.a,null)),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))},se=Z("7ahc"),Oe=Z("HmJG"),ge=Z("BjJ7"),Te=I.a.useForm,Re={width:280,marginRight:10},Le={labelCol:{span:5},wrapperCol:{span:19}},ce=function(xe){var Pe=xe.callback,He=xe.onCancel,ze=Te(),ht=Object(K.a)(ze,1),ot=ht[0];function yt(Ot){Pe(Ot)}function ct(Ot,It){if(Ot.status===-1){j.b.error(Ot.message);return}ot.setFieldsValue({src:"/api/attachments/".concat(Ot.id),type:It.type})}function ft(Ot){var It=Ot.target.files[0];re(It,ct)}return m.a.createElement(I.a,Object(R.a)({form:ot},Le,{className:"upload-image-panel",onFinish:yt}),m.a.createElement(I.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},m.a.createElement("div",{className:"flex-container"},m.a.createElement(I.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},m.a.createElement(H.a,{style:Re})),m.a.createElement(he,{onFileChange:ft}))),m.a.createElement(I.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},m.a.createElement(H.a,{style:{width:264}})),m.a.createElement(I.a.Item,{style:{textAlign:"right"}},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))};function he(xe){var Pe=xe.onFileChange;return m.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",m.a.createElement("input",{type:"file",onChange:Pe}))}function re(xe,Pe){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var He=new FormData;He.append("editormd-image-file",xe),He.append("file_param_name","editormd-image-file"),He.append("byxhr","true");var ze=new window.XMLHttpRequest;ze.withCredentials=!0,ze.addEventListener("load",function(ht){Pe(JSON.parse(ht.target.responseText),xe)},!1),ze.addEventListener("error",function(ht){console.error(ht)},!1),ze.open("POST","".concat(ge.a,"/api/attachments.json")),ze.send(He)}var fe=Z("giR+"),oe=Z("fyUT"),De=Z("7Kak"),Fe=Z("9yH6"),Ce=Fe.a.Group,Ne={margin:"0 8px"},Be=function(xe){var Pe=xe.callback,He=xe.onCancel;function ze(ht){Pe(ht)}return m.a.createElement(I.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ze},m.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},m.a.createElement("span",{style:Ne},"\u5355\u5143\u683C\u6570\uFF1A"),m.a.createElement("span",{style:Ne},"\u884C\u6570"),m.a.createElement(I.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},m.a.createElement(oe.a,null)),m.a.createElement("span",{style:Ne},"\u5217\u6570"),m.a.createElement(I.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},m.a.createElement(oe.a,null))),m.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},m.a.createElement("span",{style:Ne},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),m.a.createElement(I.a.Item,{name:"align"},m.a.createElement(Ce,null,m.a.createElement(Fe.a,{value:"default"},m.a.createElement("i",{className:"fa fa-align-justify"})),m.a.createElement(Fe.a,{value:"left"},m.a.createElement("i",{className:"fa fa-align-left"})),m.a.createElement(Fe.a,{value:"center"},m.a.createElement("i",{className:"fa fa-align-center"})),m.a.createElement(Fe.a,{value:"right"},m.a.createElement("i",{className:"fa fa-align-right"}))))),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(_.a,{type:"ghost",onClick:He},"\u53D6\u6D88")))},le=Z("ErOA"),ve=Z("7Cbv"),Se="link",Ie="upload-image",We="code-block",Ve="add-table",Qe="------------",Je={default:Qe,left:":".concat(Qe),center:":".concat(Qe,":"),right:"".concat(Qe,":")},st=Z("9VGf"),qe,at;function Ue(){}var dt=0,lt=1e4,je="\u2581",Ge=` **\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 Ae(xe){return/^\d+$/.test(xe)?"".concat(xe,"px"):xe}var _e=navigator.platform.toUpperCase().indexOf("MAC")>=0,we=_e?"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"],ue=(qe={},Object(G.a)(qe,we+"-B","bold"),Object(G.a)(qe,we+"-I","italic"),qe),ce=(at={},Object(G.a)(at,Se,"\u6DFB\u52A0\u94FE\u63A5"),Object(G.a)(at,We,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(G.a)(at,Ie,"\u6DFB\u52A0\u6587\u4EF6"),Object(G.a)(at,Ve,"\u6DFB\u52A0\u8868\u683C"),at),me=be.a=function(xe){var Pe=xe.defaultValue,He=Pe===void 0?"":Pe,ze=xe.onChange,ht=xe.width,ot=ht===void 0?"100%":ht,yt=xe.height,dt=yt===void 0?400:yt,ft=xe.miniToolbar,Ot=ft===void 0?!1:ft,It=xe.isFocus,qt=It===void 0?!1:It,Zt=xe.watch,Dt=xe.insertTemp,Cr=xe.mode,Kr=Cr===void 0?"markdown":Cr,_t=xe.id,Lr=_t===void 0?"markdown-editor-id":_t,Et=xe.showResizeBar,wt=Et===void 0?!1:Et,Ut=xe.noStorage,tr=Ut===void 0?!1:Ut,dr=xe.showNullButton,Nt=dr===void 0?!1:dr,mt=xe.hidetoolBar,Br=mt===void 0?!1:mt,Vt=xe.fullScreen,Jt=Vt===void 0?!1:Vt,Rt=xe.onBlur,lr=xe.onCMBeforeChange,Ir=xe.onFullScreen,Xr=xe.className,Ze=Xr===void 0?"":Xr,Ct=xe.disablePaste,mn=Ct===void 0?!1:Ct,gn=xe.placeholder,vn=gn===void 0?"":gn,yn=xe.values,Y=yn===void 0?"":yn,x=Object(v.useState)(null),k=Object(K.a)(x,2),W=k[0],ee=k[1],V=Object(v.useState)(He),Ee=Object(K.a)(V,2),Ye=Ee[0],tt=Ee[1],gt=Object(v.useState)(Zt),Xe=Object(K.a)(gt,2),xt=Xe[0],jt=Xe[1],$t=Object(v.useState)(Jt),jr=Object(K.a)($t,2),Er=jr[0],xr=jr[1],Zr=Object(v.useState)(""),Dn=Object(K.a)(Zr,2),cr=Dn[0],zr=Dn[1],un=Object(v.useState)(0),hn=Object(K.a)(un,2),Hr=hn[0],kn=hn[1],bn=Object(v.useState)(dt),zn=Object(K.a)(bn,2),Vn=zn[0],Qr=zn[1],$r=Object(v.useState)(!1),_n=Object(K.a)($r,2),di=_n[0],En=_n[1],nr=Object(v.useRef)(Object(ve.a)()),Ht=Object(v.useRef)(!1),yr=Object(v.useRef)(),Mt=Object(v.useRef)(),ar=Object(v.useRef)(),Kt=Object(v.useRef)(),nn=Object(v.useRef)(),fr=function(){var vt=Object(U.a)(L.a.mark(function At(){var Tt,kt;return L.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(le.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:nr.current}});case 2:kt=Yt.sent,kt!=null&&(Tt=kt.attachments)!==null&&Tt!==void 0&&Tt.length&&(console.log("cm:",W,Mt),kt.attachments.map(function(Ft){Ft.content_type.indexOf("image")>-1?W.replaceSelection("![,](/api/attachments/".concat(Ft.id,"?type=").concat(Ft.content_type,")")):Ft.content_type.indexOf("video")>-1?W.replaceSelection('')):Ft.content_type.indexOf("pdf")>-1?W.replaceSelection('
      ').concat(Ft.name,"")):W.replaceSelection("[".concat(Ft.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Ft.id,"?type=").concat(Ft.content_type,")"))}));case 4:case"end":return Yt.stop()}},At)}));return function(){return vt.apply(this,arguments)}}();Object(v.useEffect)(function(){tt(Y),W==null||W.setValue(Y)},[Y]),Object(v.useEffect)(function(){Ir==null||Ir(Er)},[Er]),Object(v.useEffect)(function(){if(Mt.current){var vt=h.a.fromTextArea(Mt.current,{mode:Kr,lineNumbers:!Ot,lineWrapping:!0,value:He,autoCloseTags:!0,autoCloseBrackets:!0});qt&&vt.focus();function At(Tt,kt){if(mn){kt.preventDefault();return}var Bt=kt.clipboardData;if(Bt){var Yt=Bt.types.toString(),Ft=Bt.items;if(Yt==="Files"||Bt.types.indexOf("Files")>-1){if(kt.preventDefault(),Kr=="stex")return;try{var ur,Dr=Ft[1];((ur=Ft[0])===null||ur===void 0?void 0:ur.kind)==="file"&&(Dr=Ft[0]);var Pt=Dr.getAsFile(),dn=Pt.name.split(".").pop();re(Pt,function(Wt){if(Wt.id){var kr,Tr,Jr;(Pt==null||((kr=Pt.type)===null||kr===void 0)?void 0:kr.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Pt==null||((Tr=Pt.type)===null||Tr===void 0)?void 0:Tr.indexOf("video"))>-1?vt.replaceSelection('')):(Pt==null||((Jr=Pt.type)===null||Jr===void 0)?void 0:Jr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(Pt.name,"")):ae.includes(dn)?vt.replaceSelection('').concat(Pt.name,"")):vt.replaceSelection("[".concat(Pt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})}catch(Wt){j.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return vt.on("paste",At),vt.on("dragleave",function(Tt,kt){ar.current.classList.remove("mouse-hover-md")}),vt.on("dragover",function(Tt,kt){ar.current.classList.add("mouse-hover-md")}),vt.on("drop",function(Tt,kt){ar.current.classList.add("mouse-hover-md");var Bt;if(Bt=kt.dataTransfer.files,Bt.length>0){kt.preventDefault(),kt.stopPropagation();for(var Yt=function(Dr){var Pt=Bt[Dr],dn=Pt.name.split(".").pop();re(Pt,function(Wt){if(Wt.id){var kr,Tr,Jr;(Pt==null||((kr=Pt.type)===null||kr===void 0)?void 0:kr.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Pt==null||((Tr=Pt.type)===null||Tr===void 0)?void 0:Tr.indexOf("video"))>-1?vt.replaceSelection('')):(Pt==null||((Jr=Pt.type)===null||Jr===void 0)?void 0:Jr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(Pt.name,"")):ae.includes(dn)?vt.replaceSelection('').concat(Pt.name,"")):vt.replaceSelection("[".concat(Pt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})},Ft=0;Ft0||Ft.target.offsetWidth>0)&&(Ar(),W.setSize("100%","100%"),W.refresh())}}catch(ur){Bt.e(ur)}finally{Bt.f()}});return Tt.observe(Mt.current.parentElement),Tt}if(W){var At=vt();return function(){At.unobserve(Mt.current.parentElement)}}},[W,Ar]),Object(v.useEffect)(function(){if(W){for(var vt=[],At=function(){var Ft=kt[Tt];Bt=Object(K.a)(Ft,2);var ur=Bt[0],Dr=Bt[1],Pt=Object(G.a)({},ur,function(){Yn(Dr)});vt.push(Pt),W.addKeyMap(Pt)},Tt=0,kt=Object.entries(ue);Tt0){var vt=new Date().getTime(),At=window.sessionStorage.getItem(Lr);vt>=Hr+lt&&(!At||At!==Ye)&&(window.sessionStorage.setItem(Lr,Ye),En(!0))}},lt),Object(v.useEffect)(function(){jt(Zt)},[W,Zt]),Object(v.useEffect)(function(){W&&(qt&&W.focus())},[W,qt]),Object(v.useEffect)(function(){if(xt&&W){var vt=W.getScrollerElement();function At(Tt){var kt=Tt.target;if(nn.current){var Bt=kt.scrollTop/kt.scrollHeight;nn.current.scrollTop=nn.current.scrollHeight*Bt}}return vt.addEventListener("scroll",At),function(){vt.removeEventListener("scroll",At)}}},[W,xt]),Object(v.useEffect)(function(){if(W&&lr){function vt(At,Tt){lr(At,Tt)}return W.on("beforeChange",vt),function(){W.off("beforeChange",vt)}}},[W,lr]),Object(v.useEffect)(function(){if(W&&Rt){function vt(){Rt(W.getValue())}return W.on("blur",vt),function(){W.off("blur",vt)}}},[W,Rt]),Object(v.useEffect)(function(){if(W){function vt(At){var Tt=At.getValue();tt(Tt),kn(new Date().getTime()),At.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ze&&ze(Tt)}return W.on("change",vt),function(){W.off("change",vt)}}},[W,ze]),Object(v.useEffect)(function(){W&&(He==null?(W.setValue(""),tt("")):He!==W.getValue()&&(W.setValue(He),tt(He),W.setCursor(W.lineCount(),0)))},[W,He]);var Yn=Object(v.useCallback)(function(vt){var At=W.getCursor(),Tt=W.getSelection(),kt=Tt.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Ae(xe){return/^\d+$/.test(xe)?"".concat(xe,"px"):xe}var _e=navigator.platform.toUpperCase().indexOf("MAC")>=0,we=_e?"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"],ue=(qe={},Object(G.a)(qe,we+"-B","bold"),Object(G.a)(qe,we+"-I","italic"),qe),de=(at={},Object(G.a)(at,Se,"\u6DFB\u52A0\u94FE\u63A5"),Object(G.a)(at,We,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(G.a)(at,Ie,"\u6DFB\u52A0\u6587\u4EF6"),Object(G.a)(at,Ve,"\u6DFB\u52A0\u8868\u683C"),at),me=be.a=function(xe){var Pe=xe.defaultValue,He=Pe===void 0?"":Pe,ze=xe.onChange,ht=xe.width,ot=ht===void 0?"100%":ht,yt=xe.height,ct=yt===void 0?400:yt,ft=xe.miniToolbar,Ot=ft===void 0?!1:ft,It=xe.isFocus,qt=It===void 0?!1:It,Zt=xe.watch,Dt=xe.insertTemp,Cr=xe.mode,Kr=Cr===void 0?"markdown":Cr,_t=xe.id,Lr=_t===void 0?"markdown-editor-id":_t,Et=xe.showResizeBar,wt=Et===void 0?!1:Et,Ut=xe.noStorage,tr=Ut===void 0?!1:Ut,cr=xe.showNullButton,Nt=cr===void 0?!1:cr,mt=xe.hidetoolBar,Br=mt===void 0?!1:mt,Vt=xe.fullScreen,Jt=Vt===void 0?!1:Vt,Rt=xe.onBlur,lr=xe.onCMBeforeChange,Ir=xe.onFullScreen,Xr=xe.className,Ze=Xr===void 0?"":Xr,Ct=xe.disablePaste,mn=Ct===void 0?!1:Ct,gn=xe.placeholder,vn=gn===void 0?"":gn,yn=xe.values,Y=yn===void 0?"":yn,x=Object(v.useState)(null),k=Object(K.a)(x,2),W=k[0],ee=k[1],V=Object(v.useState)(He),Ee=Object(K.a)(V,2),Ye=Ee[0],tt=Ee[1],gt=Object(v.useState)(Zt),Xe=Object(K.a)(gt,2),xt=Xe[0],jt=Xe[1],$t=Object(v.useState)(Jt),jr=Object(K.a)($t,2),Er=jr[0],xr=jr[1],Zr=Object(v.useState)(""),Dn=Object(K.a)(Zr,2),dr=Dn[0],zr=Dn[1],un=Object(v.useState)(0),hn=Object(K.a)(un,2),Hr=hn[0],kn=hn[1],bn=Object(v.useState)(ct),zn=Object(K.a)(bn,2),Vn=zn[0],Qr=zn[1],$r=Object(v.useState)(!1),_n=Object(K.a)($r,2),ci=_n[0],En=_n[1],nr=Object(v.useRef)(Object(ve.a)()),Ht=Object(v.useRef)(!1),yr=Object(v.useRef)(),Mt=Object(v.useRef)(),ar=Object(v.useRef)(),Kt=Object(v.useRef)(),nn=Object(v.useRef)(),fr=function(){var vt=Object(U.a)(L.a.mark(function At(){var Tt,kt;return L.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(le.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:nr.current}});case 2:kt=Yt.sent,kt!=null&&(Tt=kt.attachments)!==null&&Tt!==void 0&&Tt.length&&(console.log("cm:",W,Mt),kt.attachments.map(function(Ft){Ft.content_type.indexOf("image")>-1?W.replaceSelection("![,](/api/attachments/".concat(Ft.id,"?type=").concat(Ft.content_type,")")):Ft.content_type.indexOf("video")>-1?W.replaceSelection('')):Ft.content_type.indexOf("pdf")>-1?W.replaceSelection('').concat(Ft.name,"")):W.replaceSelection("[".concat(Ft.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(Ft.id,"?type=").concat(Ft.content_type,")"))}));case 4:case"end":return Yt.stop()}},At)}));return function(){return vt.apply(this,arguments)}}();Object(v.useEffect)(function(){tt(Y),W==null||W.setValue(Y)},[Y]),Object(v.useEffect)(function(){Ir==null||Ir(Er)},[Er]),Object(v.useEffect)(function(){if(Mt.current){var vt=h.a.fromTextArea(Mt.current,{mode:Kr,lineNumbers:!Ot,lineWrapping:!0,value:He,autoCloseTags:!0,autoCloseBrackets:!0});qt&&vt.focus();function At(Tt,kt){if(mn){kt.preventDefault();return}var Bt=kt.clipboardData;if(Bt){var Yt=Bt.types.toString(),Ft=Bt.items;if(Yt==="Files"||Bt.types.indexOf("Files")>-1){if(kt.preventDefault(),Kr=="stex")return;try{var ur,Dr=Ft[1];((ur=Ft[0])===null||ur===void 0?void 0:ur.kind)==="file"&&(Dr=Ft[0]);var Pt=Dr.getAsFile(),cn=Pt.name.split(".").pop();re(Pt,function(Wt){if(Wt.id){var kr,Tr,Jr;(Pt==null||((kr=Pt.type)===null||kr===void 0)?void 0:kr.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Pt==null||((Tr=Pt.type)===null||Tr===void 0)?void 0:Tr.indexOf("video"))>-1?vt.replaceSelection('')):(Pt==null||((Jr=Pt.type)===null||Jr===void 0)?void 0:Jr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(Pt.name,"")):ae.includes(cn)?vt.replaceSelection('').concat(Pt.name,"")):vt.replaceSelection("[".concat(Pt.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})}catch(Wt){j.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return vt.on("paste",At),vt.on("dragleave",function(Tt,kt){ar.current.classList.remove("mouse-hover-md")}),vt.on("dragover",function(Tt,kt){ar.current.classList.add("mouse-hover-md")}),vt.on("drop",function(Tt,kt){ar.current.classList.add("mouse-hover-md");var Bt;if(Bt=kt.dataTransfer.files,Bt.length>0){kt.preventDefault(),kt.stopPropagation();for(var Yt=function(Dr){var Pt=Bt[Dr],cn=Pt.name.split(".").pop();re(Pt,function(Wt){if(Wt.id){var kr,Tr,Jr;(Pt==null||((kr=Pt.type)===null||kr===void 0)?void 0:kr.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Pt==null||((Tr=Pt.type)===null||Tr===void 0)?void 0:Tr.indexOf("video"))>-1?vt.replaceSelection('')):(Pt==null||((Jr=Pt.type)===null||Jr===void 0)?void 0:Jr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(Pt.name,"")):ae.includes(cn)?vt.replaceSelection('').concat(Pt.name,"")):vt.replaceSelection("[".concat(Pt.name,"](").concat(d.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})},Ft=0;Ft0||Ft.target.offsetWidth>0)&&(Ar(),W.setSize("100%","100%"),W.refresh())}}catch(ur){Bt.e(ur)}finally{Bt.f()}});return Tt.observe(Mt.current.parentElement),Tt}if(W){var At=vt();return function(){At.unobserve(Mt.current.parentElement)}}},[W,Ar]),Object(v.useEffect)(function(){if(W){for(var vt=[],At=function(){var Ft=kt[Tt];Bt=Object(K.a)(Ft,2);var ur=Bt[0],Dr=Bt[1],Pt=Object(G.a)({},ur,function(){Yn(Dr)});vt.push(Pt),W.addKeyMap(Pt)},Tt=0,kt=Object.entries(ue);Tt0){var vt=new Date().getTime(),At=window.sessionStorage.getItem(Lr);vt>=Hr+lt&&(!At||At!==Ye)&&(window.sessionStorage.setItem(Lr,Ye),En(!0))}},lt),Object(v.useEffect)(function(){jt(Zt)},[W,Zt]),Object(v.useEffect)(function(){W&&(qt&&W.focus())},[W,qt]),Object(v.useEffect)(function(){if(xt&&W){var vt=W.getScrollerElement();function At(Tt){var kt=Tt.target;if(nn.current){var Bt=kt.scrollTop/kt.scrollHeight;nn.current.scrollTop=nn.current.scrollHeight*Bt}}return vt.addEventListener("scroll",At),function(){vt.removeEventListener("scroll",At)}}},[W,xt]),Object(v.useEffect)(function(){if(W&&lr){function vt(At,Tt){lr(At,Tt)}return W.on("beforeChange",vt),function(){W.off("beforeChange",vt)}}},[W,lr]),Object(v.useEffect)(function(){if(W&&Rt){function vt(){Rt(W.getValue())}return W.on("blur",vt),function(){W.off("blur",vt)}}},[W,Rt]),Object(v.useEffect)(function(){if(W){function vt(At){var Tt=At.getValue();tt(Tt),kn(new Date().getTime()),At.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ze&&ze(Tt)}return W.on("change",vt),function(){W.off("change",vt)}}},[W,ze]),Object(v.useEffect)(function(){W&&(He==null?(W.setValue(""),tt("")):He!==W.getValue()&&(W.setValue(He),tt(He),W.setCursor(W.lineCount(),0)))},[W,He]);var Yn=Object(v.useCallback)(function(vt){var At=W.getCursor(),Tt=W.getSelection(),kt=Tt.split(` `);switch(vt){case"bold":return W.replaceSelection("**"+Tt+"**"),Tt===""&&W.setCursor(At.line,At.ch+2),W.focus();case"italic":return W.replaceSelection("*"+Tt+"*"),Tt===""&&W.setCursor(At.line,At.ch+1),W.focus();case"code":return W.replaceSelection("`"+Tt+"`"),Tt===""&&W.setCursor(At.line,At.ch+1),W.focus();case"inline-latex":return W.replaceSelection("`$$"+Tt+"$$`"),Tt===""&&W.setCursor(At.line,At.ch+3),W.focus();case"latex":return W.replaceSelection("```latex\n"+Tt+"\n```"),W.setCursor(At.line+1,Tt.length+1),W.focus();case"line-break":return W.replaceSelection(`
      `),W.focus();case"list-ul":return Tt===""?W.replaceSelection("- "+Tt):W.replaceSelection(kt.map(function(Bt){return Bt===""?"":"- ".concat(Bt)}).join(` `)),W.focus();case"list-ol":return Tt===""?W.replaceSelection("1. "+Tt):W.replaceSelection(kt.map(function(Bt,Yt){return Bt===""?"":"".concat(Yt+1,". ").concat(Bt)}).join(` -`)),W.focus();case"add-null-ch":return Tt===""&&W.setCursor(At.line,At.ch+1),W.replaceSelection(je),W.focus();case"inster-template-1":return Tt===""&&W.setCursor(At.line,At.ch),W.replaceSelection(Ge),W.focus();case"eraser":return W.setValue(""),W.focus();case"trigger-watch":return jt(!xt),W.focus();case"trigger-full-screen":return xr(!Er),W.focus();case Se:zr(Se);return;case We:zr(We);return;case Ie:zr(Ie);return;case Ve:zr(Ve);return;default:throw new Error}},[W,xt,Er]),xn=Object(v.useCallback)(function(vt){zr("");switch(cr){case Se:var At=vt.title,Tt=vt.link;return W.replaceSelection("[".concat(At,"](").concat(Tt,")")),W.focus();case We:var kt=vt.language,Bt=vt.content;return W.replaceSelection(["```"+kt,Bt,"```"].join(` -`)),W.focus();case Ie:var Yt=vt.src,Ft=vt.alt;return Ft?W.replaceSelection("![ ".concat(Ft," ]( ").concat(Yt,' "').concat(Ft,'" )')):W.replaceSelection("![,](".concat(Yt,")")),W.focus();case Ve:for(var ur=vt.row,Dr=vt.col,Pt=vt.align,dn=` -`,Wt=0;Wt300&&(ur=300);var Dr=dt+ur+"px";Qr(Dr)}}return vt.addEventListener("mousedown",kt),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",Bt),function(){vt.removeEventListener("mousedown",kt),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",Bt)}}},[W,Kt]),Object(v.useEffect)(function(){Qr(dt)},[dt]);var an=Ae(ot),fi=Ae(Vn),qr={width:an,height:fi},pi=Object(v.useMemo)(function(){if(Hr){var vt=new Date(Hr),At=vt.getHours(),Tt=vt.getMinutes(),kt=vt.getSeconds();return At=At<10?"0"+At:At,Tt=Tt<10?"0"+Tt:Tt,kt=kt<10?"0"+kt:kt,"".concat(At,":").concat(Tt,":").concat(kt)}return 0},[Hr]);function ji(){window.sessionStorage.removeItem(Lr),En(!1),kn(0)}function Mn(){En(!1),kn(0),W.setValue(window.sessionStorage.getItem(Lr))}function ua(vt,At){var Tt=W.getValue();Tt=Tt.replace(vt,At),tt(Tt),W==null||W.setValue(Tt)}return m.a.createElement(v.Fragment,null,m.a.createElement("div",{className:"markdown-editor-wrapper",ref:ar},m.a.createElement("div",{className:"markdown-editor-container ".concat(Ze," ").concat(xt?"on-preview":""," ").concat(Ot?"mini":""," ").concat(Er?"full-screen":""),style:qr},m.a.createElement(b,{insertTemp:Dt,watch:xt,fullScreen:Er,showNullButton:Nt,onActionCallback:Yn,hidetoolBar:Br,uuid:nr.current,setOpenPhones:function(){Ht.current=!0}}),m.a.createElement("div",{className:"markdown-editor-body"},m.a.createElement("div",{className:"codemirror-container"},m.a.createElement("textarea",{ref:Mt,placeholder:vn})),xt?m.a.createElement("div",{ref:nn,className:"preview-container"},Kr==="stex"&&m.a.createElement(D,{value:Ye}),Kr!=="stex"&&m.a.createElement(w.a,{edit:!0,value:Ye,replaces:ua})):null))),wt?m.a.createElement("a",{ref:Kt,className:"editor-resize"}):null,m.a.createElement(B.a,null,ce[cr]?m.a.createElement(J.a,{centered:!0,title:ce[cr],visible:!0,onCancel:Tn,footer:null,className:"markdown-popup-form"},ci):null))}},SJMd:function(rt,be){/** +`)),W.focus();case"add-null-ch":return Tt===""&&W.setCursor(At.line,At.ch+1),W.replaceSelection(je),W.focus();case"inster-template-1":return Tt===""&&W.setCursor(At.line,At.ch),W.replaceSelection(Ge),W.focus();case"eraser":return W.setValue(""),W.focus();case"trigger-watch":return jt(!xt),W.focus();case"trigger-full-screen":return xr(!Er),W.focus();case Se:zr(Se);return;case We:zr(We);return;case Ie:zr(Ie);return;case Ve:zr(Ve);return;default:throw new Error}},[W,xt,Er]),xn=Object(v.useCallback)(function(vt){zr("");switch(dr){case Se:var At=vt.title,Tt=vt.link;return W.replaceSelection("[".concat(At,"](").concat(Tt,")")),W.focus();case We:var kt=vt.language,Bt=vt.content;return W.replaceSelection(["```"+kt,Bt,"```"].join(` +`)),W.focus();case Ie:var Yt=vt.src,Ft=vt.alt;return Ft?W.replaceSelection("![ ".concat(Ft," ]( ").concat(Yt,' "').concat(Ft,'" )')):W.replaceSelection("![,](".concat(Yt,")")),W.focus();case Ve:for(var ur=vt.row,Dr=vt.col,Pt=vt.align,cn=` +`,Wt=0;Wt300&&(ur=300);var Dr=ct+ur+"px";Qr(Dr)}}return vt.addEventListener("mousedown",kt),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",Bt),function(){vt.removeEventListener("mousedown",kt),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",Bt)}}},[W,Kt]),Object(v.useEffect)(function(){Qr(ct)},[ct]);var an=Ae(ot),fi=Ae(Vn),qr={width:an,height:fi},pi=Object(v.useMemo)(function(){if(Hr){var vt=new Date(Hr),At=vt.getHours(),Tt=vt.getMinutes(),kt=vt.getSeconds();return At=At<10?"0"+At:At,Tt=Tt<10?"0"+Tt:Tt,kt=kt<10?"0"+kt:kt,"".concat(At,":").concat(Tt,":").concat(kt)}return 0},[Hr]);function ji(){window.sessionStorage.removeItem(Lr),En(!1),kn(0)}function Mn(){En(!1),kn(0),W.setValue(window.sessionStorage.getItem(Lr))}function ua(vt,At){var Tt=W.getValue();Tt=Tt.replace(vt,At),tt(Tt),W==null||W.setValue(Tt)}return m.a.createElement(v.Fragment,null,m.a.createElement("div",{className:"markdown-editor-wrapper",ref:ar},m.a.createElement("div",{className:"markdown-editor-container ".concat(Ze," ").concat(xt?"on-preview":""," ").concat(Ot?"mini":""," ").concat(Er?"full-screen":""),style:qr},m.a.createElement(b,{insertTemp:Dt,watch:xt,fullScreen:Er,showNullButton:Nt,onActionCallback:Yn,hidetoolBar:Br,uuid:nr.current,setOpenPhones:function(){Ht.current=!0}}),m.a.createElement("div",{className:"markdown-editor-body"},m.a.createElement("div",{className:"codemirror-container"},m.a.createElement("textarea",{ref:Mt,placeholder:vn})),xt?m.a.createElement("div",{ref:nn,className:"preview-container"},Kr==="stex"&&m.a.createElement(D,{value:Ye}),Kr!=="stex"&&m.a.createElement(w.a,{edit:!0,value:Ye,replaces:ua})):null))),wt?m.a.createElement("a",{ref:Kt,className:"editor-resize"}):null,m.a.createElement(B.a,null,de[dr]?m.a.createElement(J.a,{centered:!0,title:de[dr],visible:!0,onCancel:Tn,footer:null,className:"markdown-popup-form"},di):null))}},SJMd:function(rt,be){/** * @license * Copyright (C) 2006 Google Inc. * @@ -323,12 +323,12 @@ Please report this to https://github.com/markedjs/marked.`,_e.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 Z,ie,J,P=!1,X,j;window.PR_SHOULD_USE_CONTINUATION=!0;var U,K;(function(){var G=window,r=["break,continue,do,else,for,if,return,while"],L=[r,"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"],v=[L,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],m=[v,"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"],p=[v,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],h=[v,"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"],u="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=[v,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],l="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",o=[r,"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=[r,"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"],a=[r,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],O=[m,h,p,f,l,o,s,a],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,w="str",D="kwd",R="com",A="typ",C="lit",T="pun",c="pln",S="tag",y="dec",b="src",B="atn",F="atv",_="nocode",M="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function I(Ce){for(var Ne=0,Be=!1,le=!1,ve=0,Se=Ce.length;ve122||(ae<65||we>90||ct.push([Math.max(65,we)|32,Math.min(ae,90)|32]),ae<97||we>122||ct.push([Math.max(97,we)&~32,Math.min(ae,122)&~32]))}}ct.sort(function(xe,Pe){return xe[0]-Pe[0]||Pe[1]-xe[1]});for(var ue=[],ce=[],Ge=0;Geme[0]&&(me[1]+1>me[0]&&je.push("-"),je.push(Qe(me[1])))}return je.push("]"),je.join("")}function st(at){for(var Ue=at.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")),ct=Ue.length,lt=[],je=0,Ge=0;je=2&&we==="["?Ue[je]=Je(Ae):we!=="\\"&&(Ue[je]=Ae.replace(/[a-zA-Z]/g,function(ce){var me=ce.charCodeAt(0);return"["+String.fromCharCode(me&~32,me|32)+"]"}))}return Ue.join("")}for(var qe=[],ve=0,Se=Ce.length;ve|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function I(Ce){for(var Ne=0,Be=!1,le=!1,ve=0,Se=Ce.length;ve122||(ae<65||we>90||dt.push([Math.max(65,we)|32,Math.min(ae,90)|32]),ae<97||we>122||dt.push([Math.max(97,we)&~32,Math.min(ae,122)&~32]))}}dt.sort(function(xe,Pe){return xe[0]-Pe[0]||Pe[1]-xe[1]});for(var ue=[],de=[],Ge=0;Geme[0]&&(me[1]+1>me[0]&&je.push("-"),je.push(Qe(me[1])))}return je.push("]"),je.join("")}function st(at){for(var Ue=at.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")),dt=Ue.length,lt=[],je=0,Ge=0;je=2&&we==="["?Ue[je]=Je(Ae):we!=="\\"&&(Ue[je]=Ae.replace(/[a-zA-Z]/g,function(de){var me=de.charCodeAt(0);return"["+String.fromCharCode(me&~32,me|32)+"]"}))}return Ue.join("")}for(var qe=[],ve=0,Se=Ce.length;ve=0;)Be[qe.charAt(at)]=st;var Ue=st[1],ct=""+Ue;Ve.hasOwnProperty(ct)||(We.push(Ue),Ve[ct]=null)}We.push(/[\0-\uffff]/),le=I(We)})();var ve=Ne.length,Se=function(Ie){for(var We=Ie.sourceCode,Ve=Ie.basePos,Qe=Ie.sourceNode,Je=[Ve,c],st=0,qe=We.match(le)||[],at={},Ue=0,ct=qe.length;Ue=5&&je.substring(0,5)==="lang-",Ae&&!(Ge&&typeof Ge[1]=="string")&&(Ae=!1,je=b),Ae||(at[lt]=je)}var ae=st;if(st+=lt.length,!Ae)Je.push(Ve+ae,je);else{var ue=Ge[1],ce=lt.indexOf(ue),me=ce+ue.length;Ge[2]&&(me=lt.length-Ge[2].length,ce=me-ue.length);var xe=je.substring(5);H(Qe,Ve+ae,lt.substring(0,ce),Se,Je),H(Qe,Ve+ae+ce,ue,he(xe,ue),Je),H(Qe,Ve+ae+me,lt.substring(me),Se,Je)}}Ie.decorations=Je};return Se}function Oe(Ce){var Ne=[],Be=[];Ce.tripleQuotedStrings?Ne.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ce.multiLineStrings?Ne.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ne.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ce.verbatimStrings&&Be.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var le=Ce.hashComments;le&&(Ce.cStyleComments?(le>1?Ne.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ne.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Be.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ne.push([R,/^#[^\r\n]*/,null,"#"])),Ce.cStyleComments&&(Be.push([R,/^\/\/[^\r\n]*/,null]),Be.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=Ce.regexLiterals;if(ve){var Se=ve>1?"":` -\r`,Ie=Se?".":"[\\S\\s]",We="/(?=[^/*"+Se+"])(?:[^/\\x5B\\x5C"+Se+"]|\\x5C"+Ie+"|\\x5B(?:[^\\x5C\\x5D"+Se+"]|\\x5C"+Ie+")*(?:\\x5D|$))+/";Be.push(["lang-regex",RegExp("^"+M+"("+We+")")])}var Ve=Ce.types;Ve&&Be.push([A,Ve]);var Qe=(""+Ce.keywords).replace(/^ | $/g,"");Qe.length&&Be.push([D,new RegExp("^(?:"+Qe.replace(/[\s,]+/g,"|")+")\\b"),null]),Ne.push([c,/^\s+/,null,` \r - \xA0`]);var Je="^.[^\\s\\w.$@'\"`/\\\\]*";return Ce.regexLiterals&&(Je+="(?!s*/)"),Be.push([C,/^@[a-z_$][a-z_$@0-9]*/i,null],[A,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[C,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[T,new RegExp(Je),null]),se(Ne,Be)}var ge=Oe({keywords:O,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Te(Ce,Ne,Be){for(var le=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,Se=Ce.ownerDocument,Ie=Se.createElement("li");Ce.firstChild;)Ie.appendChild(Ce.firstChild);var We=[Ie];function Ve(Ue){var ct=Ue.nodeType;if(ct==1&&!le.test(Ue.className))if(Ue.nodeName==="br")Qe(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var lt=Ue.firstChild;lt;lt=lt.nextSibling)Ve(lt);else if((ct==3||ct==4)&&Be){var je=Ue.nodeValue,Ge=je.match(ve);if(Ge){var Ae=je.substring(0,Ge.index);Ue.nodeValue=Ae;var _e=je.substring(Ge.index+Ge[0].length);if(_e){var we=Ue.parentNode;we.insertBefore(Se.createTextNode(_e),Ue.nextSibling)}Qe(Ue),Ae||Ue.parentNode.removeChild(Ue)}}}function Qe(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function ct(Ge,Ae){var _e=Ae?Ge.cloneNode(!1):Ge,we=Ge.parentNode;if(we){var ae=ct(we,1),ue=Ge.nextSibling;ae.appendChild(_e);for(var ce=ue;ce;ce=ue)ue=ce.nextSibling,ae.appendChild(ce)}return _e}for(var lt=ct(Ue.nextSibling,0),je;(je=lt.parentNode)&&je.nodeType===1;)lt=je;We.push(lt)}for(var Je=0;Je=we&&(Ve+=2),Se>=ae&&(st+=2)}}finally{je&&(je.style.display=Ge)}}var Le={};function de(Ce,Ne){for(var Be=Ne.length;--Be>=0;){var le=Ne[Be];Le.hasOwnProperty(le)?G.console&&console.warn("cannot override language handler %s",le):Le[le]=Ce}}function he(Ce,Ne){return Ce&&Le.hasOwnProperty(Ce)||(Ce=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[T,/^(?:<[%?]|[%?]>)/],["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"]),de(se([[c,/^[\s]+/,null,` \r -`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[S,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[B,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[T,/^[=<>\/]+/],["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"]),de(se([],[[F,/^[\s\S]+/]]),["uq.val"]),de(Oe({keywords:m,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),de(Oe({keywords:"null,true,false"}),["json"]),de(Oe({keywords:h,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),de(Oe({keywords:p,cStyleComments:!0}),["java"]),de(Oe({keywords:a,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),de(Oe({keywords:o,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),de(Oe({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),de(Oe({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),de(Oe({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),de(Oe({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),de(se([],[[w,/^[\s\S]+/]]),["regex"]);function re(Ce){var Ne=Ce.langExtension;try{var Be=g(Ce.sourceNode,Ce.pre),le=Be.sourceCode;Ce.sourceCode=le,Ce.spans=Be.spans,Ce.basePos=0,he(Ne,le)(Ce),Re(Ce)}catch(ve){G.console&&console.log(ve&&ve.stack||ve)}}function fe(Ce,Ne,Be){var le=Be||!1,ve=Ne||null,Se=document.createElement("div");Se.innerHTML="

      "+Ce+"
      ",Se=Se.firstChild,le&&Te(Se,le,!0);var Ie={langExtension:ve,numberLines:le,sourceNode:Se,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return re(Ie),Se.innerHTML}function oe(Ce,Ne){var Be=Ne||document.body,le=Be.ownerDocument||document;function ve(_e){return Be.getElementsByTagName(_e)}for(var Se=[ve("pre"),ve("code"),ve("xmp")],Ie=[],We=0;We=0),j.set("isFirefox",X.indexOf("Firefox")>=0),j.set("isChrome",X.indexOf("Chrome")>=0),j.set("isSafari",X.indexOf("Safari")>=0);const U=Object.prototype.hasOwnProperty;class K{static has(_){return m.create(_)}static equals(_,M){return p.create(_,M)}static regex(_,M){return w.create(_,M)}static not(_){return l.create(_)}static and(..._){return A.create(_,null)}static or(..._){return C.create(_,null,!0)}static deserialize(_,M=!1){return _?this._deserializeOrExpression(_,M):void 0}static _deserializeOrExpression(_,M){let I=_.split("||");return C.create(I.map(g=>this._deserializeAndExpression(g,M)),null,!0)}static _deserializeAndExpression(_,M){let I=_.split("&&");return A.create(I.map(g=>this._deserializeOne(g,M)),null)}static _deserializeOne(_,M){if(_=_.trim(),_.indexOf("!=")>=0){let I=_.split("!=");return f.create(I[0].trim(),this._deserializeValue(I[1],M))}if(_.indexOf("==")>=0){let I=_.split("==");return p.create(I[0].trim(),this._deserializeValue(I[1],M))}if(_.indexOf("=~")>=0){let I=_.split("=~");return w.create(I[0].trim(),this._deserializeRegexValue(I[1],M))}if(_.indexOf(" in ")>=0){let I=_.split(" in ");return h.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(_)){const I=_.split(">=");return a.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(_)){const I=_.split(">");return s.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(_)){const I=_.split("<=");return E.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(_)){const I=_.split("<");return O.create(I[0].trim(),I[1].trim())}return/^\!\s*/.test(_)?l.create(_.substr(1).trim()):m.create(_)}static _deserializeValue(_,M){if(_=_.trim(),_==="true")return!0;if(_==="false")return!1;let I=/^'([^']*)'$/.exec(_);return I?I[1].trim():_}static _deserializeRegexValue(_,M){if(Object(J.C)(_)){if(M)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let I=_.indexOf("/"),g=_.lastIndexOf("/");if(I===g||I<0){if(M)throw new Error(`bad regexp-value '${_}', missing /-enclosure`);return console.warn(`bad regexp-value '${_}', missing /-enclosure`),null}let H=_.slice(I+1,g),$=_[g+1]==="i"?"i":"";try{return new RegExp(H,$)}catch(ne){if(M)throw new Error(`bad regexp-value '${_}', parse error: ${ne}`);return console.warn(`bad regexp-value '${_}', parse error: ${ne}`),null}}}function G(_,M){const I=_?_.substituteConstants():void 0,g=M?M.substituteConstants():void 0;return!I&&!g?!0:!I||!g?!1:I.equals(g)}function r(_,M){return _.cmp(M)}class L{constructor(){this.type=0}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!1}serialize(){return"false"}keys(){return[]}negate(){return v.INSTANCE}}L.INSTANCE=new L;class v{constructor(){this.type=1}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!0}serialize(){return"true"}keys(){return[]}negate(){return L.INSTANCE}}v.INSTANCE=new v;class m{constructor(_,M){this.key=_,this.negated=M,this.type=2}static create(_,M=null){const I=j.get(_);return typeof I=="boolean"?I?v.INSTANCE:L.INSTANCE:new m(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:y(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=j.get(this.key);return typeof _=="boolean"?_?v.INSTANCE:L.INSTANCE:this}evaluate(_){return!!_.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this)),this.negated}}class p{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=4}static create(_,M,I=null){if(typeof M=="boolean")return M?m.create(_,I):l.create(_,I);const g=j.get(_);if(typeof g=="boolean"){const H=g?"true":"false";return M===H?v.INSTANCE:L.INSTANCE}return new p(_,M,I)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=j.get(this.key);if(typeof _=="boolean"){const M=_?"true":"false";return this.value===M?v.INSTANCE:L.INSTANCE}return this}evaluate(_){return _.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 h{constructor(_,M){this.key=_,this.valueKey=M,this.type=10,this.negated=null}static create(_,M){return new h(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.valueKey,_.key,_.valueKey)}equals(_){return _.type===this.type?this.key===_.key&&this.valueKey===_.valueKey:!1}substituteConstants(){return this}evaluate(_){const M=_.getValue(this.valueKey),I=_.getValue(this.key);return Array.isArray(M)?M.indexOf(I)>=0:typeof I=="string"&&typeof M=="object"&&M!==null?U.call(M,I):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=u.create(this)),this.negated}}class u{constructor(_){this._actual=_,this.type=11}static create(_){return new u(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class f{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=5}static create(_,M,I=null){if(typeof M=="boolean")return M?l.create(_,I):m.create(_,I);const g=j.get(_);if(typeof g=="boolean"){const H=g?"true":"false";return M===H?L.INSTANCE:v.INSTANCE}return new f(_,M,I)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=j.get(this.key);if(typeof _=="boolean"){const M=_?"true":"false";return this.value===M?L.INSTANCE:v.INSTANCE}return this}evaluate(_){return _.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this.value,this)),this.negated}}class l{constructor(_,M){this.key=_,this.negated=M,this.type=3}static create(_,M=null){const I=j.get(_);return typeof I=="boolean"?I?L.INSTANCE:v.INSTANCE:new l(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:y(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=j.get(this.key);return typeof _=="boolean"?_?L.INSTANCE:v.INSTANCE:this}evaluate(_){return!_.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function o(_,M){if(typeof _=="string"){const I=parseFloat(_);isNaN(I)||(_=I)}return typeof _=="string"||typeof _=="number"?M(_):L.INSTANCE}class s{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=12}static create(_,M,I=null){return o(M,g=>new s(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.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 a{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=13}static create(_,M,I=null){return o(M,g=>new a(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class O{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=14}static create(_,M,I=null){return o(M,g=>new O(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))new E(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.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 w{constructor(_,M){this.key=_,this.regexp=M,this.type=7,this.negated=null}static create(_,M){return new w(_,M)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.key<_.key)return-1;if(this.key>_.key)return 1;const M=this.regexp?this.regexp.source:"",I=_.regexp?_.regexp.source:"";return MI?1:0}equals(_){if(_.type===this.type){const M=this.regexp?this.regexp.source:"",I=_.regexp?_.regexp.source:"";return this.key===_.key&&M===I}return!1}substituteConstants(){return this}evaluate(_){let M=_.getValue(this.key);return this.regexp?this.regexp.test(M):!1}serialize(){const _=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${_}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this)),this.negated}}class D{constructor(_){this._actual=_,this.type=8}static create(_){return new D(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function R(_){let M=null;for(let I=0,g=_.length;I_.expr.length)return 1;for(let M=0,I=this.expr.length;M1;){const H=I[I.length-1];if(H.type!==9)break;I.pop();const $=I.pop(),ne=I.length===0,se=C.create(H.expr.map(Oe=>A.create([Oe,$],null)),null,ne);se&&(I.push(se),I.sort(r))}return I.length===1?I[0]:new A(I,M)}serialize(){return this.expr.map(_=>_.serialize()).join(" && ")}keys(){const _=[];for(let M of this.expr)_.push(...M.keys());return _}negate(){if(!this.negated){const _=[];for(let M of this.expr)_.push(M.negate());this.negated=C.create(_,this,!0)}return this.negated}}class C{constructor(_,M){this.expr=_,this.negated=M,this.type=9}static create(_,M,I){return C._normalizeArr(_,M,I)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.expr.length<_.expr.length)return-1;if(this.expr.length>_.expr.length)return 1;for(let M=0,I=this.expr.length;M_.serialize()).join(" || ")}keys(){const _=[];for(let M of this.expr)_.push(...M.keys());return _}negate(){if(!this.negated){let _=[];for(let M of this.expr)_.push(M.negate());for(;_.length>1;){const M=_.shift(),I=_.shift(),g=[];for(const $ of F(M))for(const ne of F(I))g.push(A.create([$,ne],null));const H=_.length===0;_.unshift(C.create(g,null,H))}this.negated=_[0]}return this.negated}}class T extends m{constructor(_,M,I){super(_,null);this._defaultValue=M,typeof I=="object"?T._info.push(Object.assign(Object.assign({},I),{key:_})):I!==!0&&T._info.push({key:_,description:I,type:M!=null?typeof M:void 0})}static all(){return T._info.values()}bindTo(_){return _.createKey(this.key,this._defaultValue)}getValue(_){return _.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(_){return p.create(this.key,_)}}T._info=[];const c=Object(P.c)("contextKeyService"),S="setContext";function y(_,M){return _M?1:0}function b(_,M,I,g){return _I?1:Mg?1:0}function B(_,M){if(M.type===6&&_.type!==9&&_.type!==6){for(const H of M.expr)if(_.equals(H))return!0}const I=_.negate(),g=F(I).concat(F(M));g.sort(r);for(let H=0;H=0;h--)if(this.__items[h].match(p))return!0;return!1},L.prototype.set_indent=function(p,h){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=h||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},L.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)},L.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},L.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},L.prototype.is_empty=function(){return this.__items.length===0},L.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},L.prototype.push=function(p){this.__items.push(p);var h=p.lastIndexOf(` +`):qe=qe.replace(/[ \t\r\n]+/g," "),le[Ie]=qe,Se[Ie<<1]=ve,ve+=qe.length,Se[Ie++<<1|1]=Ve)}}return We(Ce),{sourceCode:le.join("").replace(/\n$/,""),spans:Se}}function H(Ce,Ne,Be,le,ve){if(!Be)return;var Se={sourceNode:Ce,pre:1,langExtension:null,numberLines:null,sourceCode:Be,spans:null,basePos:Ne,decorations:null};le(Se),ve.push.apply(ve,Se.decorations)}var $=/\S/;function ne(Ce){for(var Ne=void 0,Be=Ce.firstChild;Be;Be=Be.nextSibling){var le=Be.nodeType;Ne=le===1?Ne?Ce:Be:le===3&&$.test(Be.nodeValue)?Ce:Ne}return Ne===Ce?void 0:Ne}function se(Ce,Ne){var Be={},le;(function(){for(var Ie=Ce.concat(Ne),We=[],Ve={},Qe=0,Je=Ie.length;Qe=0;)Be[qe.charAt(at)]=st;var Ue=st[1],dt=""+Ue;Ve.hasOwnProperty(dt)||(We.push(Ue),Ve[dt]=null)}We.push(/[\0-\uffff]/),le=I(We)})();var ve=Ne.length,Se=function(Ie){for(var We=Ie.sourceCode,Ve=Ie.basePos,Qe=Ie.sourceNode,Je=[Ve,d],st=0,qe=We.match(le)||[],at={},Ue=0,dt=qe.length;Ue=5&&je.substring(0,5)==="lang-",Ae&&!(Ge&&typeof Ge[1]=="string")&&(Ae=!1,je=b),Ae||(at[lt]=je)}var ae=st;if(st+=lt.length,!Ae)Je.push(Ve+ae,je);else{var ue=Ge[1],de=lt.indexOf(ue),me=de+ue.length;Ge[2]&&(me=lt.length-Ge[2].length,de=me-ue.length);var xe=je.substring(5);H(Qe,Ve+ae,lt.substring(0,de),Se,Je),H(Qe,Ve+ae+de,ue,he(xe,ue),Je),H(Qe,Ve+ae+me,lt.substring(me),Se,Je)}}Ie.decorations=Je};return Se}function Oe(Ce){var Ne=[],Be=[];Ce.tripleQuotedStrings?Ne.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ce.multiLineStrings?Ne.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ne.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ce.verbatimStrings&&Be.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var le=Ce.hashComments;le&&(Ce.cStyleComments?(le>1?Ne.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ne.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Be.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ne.push([R,/^#[^\r\n]*/,null,"#"])),Ce.cStyleComments&&(Be.push([R,/^\/\/[^\r\n]*/,null]),Be.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=Ce.regexLiterals;if(ve){var Se=ve>1?"":` +\r`,Ie=Se?".":"[\\S\\s]",We="/(?=[^/*"+Se+"])(?:[^/\\x5B\\x5C"+Se+"]|\\x5C"+Ie+"|\\x5B(?:[^\\x5C\\x5D"+Se+"]|\\x5C"+Ie+")*(?:\\x5D|$))+/";Be.push(["lang-regex",RegExp("^"+M+"("+We+")")])}var Ve=Ce.types;Ve&&Be.push([A,Ve]);var Qe=(""+Ce.keywords).replace(/^ | $/g,"");Qe.length&&Be.push([D,new RegExp("^(?:"+Qe.replace(/[\s,]+/g,"|")+")\\b"),null]),Ne.push([d,/^\s+/,null,` \r + \xA0`]);var Je="^.[^\\s\\w.$@'\"`/\\\\]*";return Ce.regexLiterals&&(Je+="(?!s*/)"),Be.push([C,/^@[a-z_$][a-z_$@0-9]*/i,null],[A,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[d,/^[a-z_$][a-z_$@0-9]*/i,null],[C,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[d,/^\\[\s\S]?/,null],[T,new RegExp(Je),null]),se(Ne,Be)}var ge=Oe({keywords:O,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Te(Ce,Ne,Be){for(var le=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,Se=Ce.ownerDocument,Ie=Se.createElement("li");Ce.firstChild;)Ie.appendChild(Ce.firstChild);var We=[Ie];function Ve(Ue){var dt=Ue.nodeType;if(dt==1&&!le.test(Ue.className))if(Ue.nodeName==="br")Qe(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var lt=Ue.firstChild;lt;lt=lt.nextSibling)Ve(lt);else if((dt==3||dt==4)&&Be){var je=Ue.nodeValue,Ge=je.match(ve);if(Ge){var Ae=je.substring(0,Ge.index);Ue.nodeValue=Ae;var _e=je.substring(Ge.index+Ge[0].length);if(_e){var we=Ue.parentNode;we.insertBefore(Se.createTextNode(_e),Ue.nextSibling)}Qe(Ue),Ae||Ue.parentNode.removeChild(Ue)}}}function Qe(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function dt(Ge,Ae){var _e=Ae?Ge.cloneNode(!1):Ge,we=Ge.parentNode;if(we){var ae=dt(we,1),ue=Ge.nextSibling;ae.appendChild(_e);for(var de=ue;de;de=ue)ue=de.nextSibling,ae.appendChild(de)}return _e}for(var lt=dt(Ue.nextSibling,0),je;(je=lt.parentNode)&&je.nodeType===1;)lt=je;We.push(lt)}for(var Je=0;Je=we&&(Ve+=2),Se>=ae&&(st+=2)}}finally{je&&(je.style.display=Ge)}}var Le={};function ce(Ce,Ne){for(var Be=Ne.length;--Be>=0;){var le=Ne[Be];Le.hasOwnProperty(le)?G.console&&console.warn("cannot override language handler %s",le):Le[le]=Ce}}function he(Ce,Ne){return Ce&&Le.hasOwnProperty(Ce)||(Ce=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[T,/^(?:<[%?]|[%?]>)/],["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"]),ce(se([[d,/^[\s]+/,null,` \r +`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[S,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[B,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[T,/^[=<>\/]+/],["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"]),ce(se([],[[F,/^[\s\S]+/]]),["uq.val"]),ce(Oe({keywords:m,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ce(Oe({keywords:"null,true,false"}),["json"]),ce(Oe({keywords:h,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ce(Oe({keywords:p,cStyleComments:!0}),["java"]),ce(Oe({keywords:a,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ce(Oe({keywords:o,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ce(Oe({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ce(Oe({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ce(Oe({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ce(Oe({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ce(se([],[[w,/^[\s\S]+/]]),["regex"]);function re(Ce){var Ne=Ce.langExtension;try{var Be=g(Ce.sourceNode,Ce.pre),le=Be.sourceCode;Ce.sourceCode=le,Ce.spans=Be.spans,Ce.basePos=0,he(Ne,le)(Ce),Re(Ce)}catch(ve){G.console&&console.log(ve&&ve.stack||ve)}}function fe(Ce,Ne,Be){var le=Be||!1,ve=Ne||null,Se=document.createElement("div");Se.innerHTML="
      "+Ce+"
      ",Se=Se.firstChild,le&&Te(Se,le,!0);var Ie={langExtension:ve,numberLines:le,sourceNode:Se,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return re(Ie),Se.innerHTML}function oe(Ce,Ne){var Be=Ne||document.body,le=Be.ownerDocument||document;function ve(_e){return Be.getElementsByTagName(_e)}for(var Se=[ve("pre"),ve("code"),ve("xmp")],Ie=[],We=0;We=0),j.set("isFirefox",X.indexOf("Firefox")>=0),j.set("isChrome",X.indexOf("Chrome")>=0),j.set("isSafari",X.indexOf("Safari")>=0);const U=Object.prototype.hasOwnProperty;class K{static has(_){return m.create(_)}static equals(_,M){return p.create(_,M)}static regex(_,M){return w.create(_,M)}static not(_){return l.create(_)}static and(..._){return A.create(_,null)}static or(..._){return C.create(_,null,!0)}static deserialize(_,M=!1){return _?this._deserializeOrExpression(_,M):void 0}static _deserializeOrExpression(_,M){let I=_.split("||");return C.create(I.map(g=>this._deserializeAndExpression(g,M)),null,!0)}static _deserializeAndExpression(_,M){let I=_.split("&&");return A.create(I.map(g=>this._deserializeOne(g,M)),null)}static _deserializeOne(_,M){if(_=_.trim(),_.indexOf("!=")>=0){let I=_.split("!=");return f.create(I[0].trim(),this._deserializeValue(I[1],M))}if(_.indexOf("==")>=0){let I=_.split("==");return p.create(I[0].trim(),this._deserializeValue(I[1],M))}if(_.indexOf("=~")>=0){let I=_.split("=~");return w.create(I[0].trim(),this._deserializeRegexValue(I[1],M))}if(_.indexOf(" in ")>=0){let I=_.split(" in ");return h.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(_)){const I=_.split(">=");return a.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(_)){const I=_.split(">");return s.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(_)){const I=_.split("<=");return E.create(I[0].trim(),I[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(_)){const I=_.split("<");return O.create(I[0].trim(),I[1].trim())}return/^\!\s*/.test(_)?l.create(_.substr(1).trim()):m.create(_)}static _deserializeValue(_,M){if(_=_.trim(),_==="true")return!0;if(_==="false")return!1;let I=/^'([^']*)'$/.exec(_);return I?I[1].trim():_}static _deserializeRegexValue(_,M){if(Object(J.C)(_)){if(M)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let I=_.indexOf("/"),g=_.lastIndexOf("/");if(I===g||I<0){if(M)throw new Error(`bad regexp-value '${_}', missing /-enclosure`);return console.warn(`bad regexp-value '${_}', missing /-enclosure`),null}let H=_.slice(I+1,g),$=_[g+1]==="i"?"i":"";try{return new RegExp(H,$)}catch(ne){if(M)throw new Error(`bad regexp-value '${_}', parse error: ${ne}`);return console.warn(`bad regexp-value '${_}', parse error: ${ne}`),null}}}function G(_,M){const I=_?_.substituteConstants():void 0,g=M?M.substituteConstants():void 0;return!I&&!g?!0:!I||!g?!1:I.equals(g)}function r(_,M){return _.cmp(M)}class L{constructor(){this.type=0}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!1}serialize(){return"false"}keys(){return[]}negate(){return v.INSTANCE}}L.INSTANCE=new L;class v{constructor(){this.type=1}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!0}serialize(){return"true"}keys(){return[]}negate(){return L.INSTANCE}}v.INSTANCE=new v;class m{constructor(_,M){this.key=_,this.negated=M,this.type=2}static create(_,M=null){const I=j.get(_);return typeof I=="boolean"?I?v.INSTANCE:L.INSTANCE:new m(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:y(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=j.get(this.key);return typeof _=="boolean"?_?v.INSTANCE:L.INSTANCE:this}evaluate(_){return!!_.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this)),this.negated}}class p{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=4}static create(_,M,I=null){if(typeof M=="boolean")return M?m.create(_,I):l.create(_,I);const g=j.get(_);if(typeof g=="boolean"){const H=g?"true":"false";return M===H?v.INSTANCE:L.INSTANCE}return new p(_,M,I)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=j.get(this.key);if(typeof _=="boolean"){const M=_?"true":"false";return this.value===M?v.INSTANCE:L.INSTANCE}return this}evaluate(_){return _.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 h{constructor(_,M){this.key=_,this.valueKey=M,this.type=10,this.negated=null}static create(_,M){return new h(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.valueKey,_.key,_.valueKey)}equals(_){return _.type===this.type?this.key===_.key&&this.valueKey===_.valueKey:!1}substituteConstants(){return this}evaluate(_){const M=_.getValue(this.valueKey),I=_.getValue(this.key);return Array.isArray(M)?M.indexOf(I)>=0:typeof I=="string"&&typeof M=="object"&&M!==null?U.call(M,I):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=u.create(this)),this.negated}}class u{constructor(_){this._actual=_,this.type=11}static create(_){return new u(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class f{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=5}static create(_,M,I=null){if(typeof M=="boolean")return M?l.create(_,I):m.create(_,I);const g=j.get(_);if(typeof g=="boolean"){const H=g?"true":"false";return M===H?L.INSTANCE:v.INSTANCE}return new f(_,M,I)}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=j.get(this.key);if(typeof _=="boolean"){const M=_?"true":"false";return this.value===M?L.INSTANCE:v.INSTANCE}return this}evaluate(_){return _.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this.value,this)),this.negated}}class l{constructor(_,M){this.key=_,this.negated=M,this.type=3}static create(_,M=null){const I=j.get(_);return typeof I=="boolean"?I?L.INSTANCE:v.INSTANCE:new l(_,M)}cmp(_){return _.type!==this.type?this.type-_.type:y(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=j.get(this.key);return typeof _=="boolean"?_?L.INSTANCE:v.INSTANCE:this}evaluate(_){return!_.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function o(_,M){if(typeof _=="string"){const I=parseFloat(_);isNaN(I)||(_=I)}return typeof _=="string"||typeof _=="number"?M(_):L.INSTANCE}class s{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=12}static create(_,M,I=null){return o(M,g=>new s(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.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 a{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=13}static create(_,M,I=null){return o(M,g=>new a(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class O{constructor(_,M,I){this.key=_,this.value=M,this.negated=I,this.type=14}static create(_,M,I=null){return o(M,g=>new O(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))new E(_,g,I))}cmp(_){return _.type!==this.type?this.type-_.type:b(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.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 w{constructor(_,M){this.key=_,this.regexp=M,this.type=7,this.negated=null}static create(_,M){return new w(_,M)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.key<_.key)return-1;if(this.key>_.key)return 1;const M=this.regexp?this.regexp.source:"",I=_.regexp?_.regexp.source:"";return MI?1:0}equals(_){if(_.type===this.type){const M=this.regexp?this.regexp.source:"",I=_.regexp?_.regexp.source:"";return this.key===_.key&&M===I}return!1}substituteConstants(){return this}evaluate(_){let M=_.getValue(this.key);return this.regexp?this.regexp.test(M):!1}serialize(){const _=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${_}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this)),this.negated}}class D{constructor(_){this._actual=_,this.type=8}static create(_){return new D(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function R(_){let M=null;for(let I=0,g=_.length;I_.expr.length)return 1;for(let M=0,I=this.expr.length;M1;){const H=I[I.length-1];if(H.type!==9)break;I.pop();const $=I.pop(),ne=I.length===0,se=C.create(H.expr.map(Oe=>A.create([Oe,$],null)),null,ne);se&&(I.push(se),I.sort(r))}return I.length===1?I[0]:new A(I,M)}serialize(){return this.expr.map(_=>_.serialize()).join(" && ")}keys(){const _=[];for(let M of this.expr)_.push(...M.keys());return _}negate(){if(!this.negated){const _=[];for(let M of this.expr)_.push(M.negate());this.negated=C.create(_,this,!0)}return this.negated}}class C{constructor(_,M){this.expr=_,this.negated=M,this.type=9}static create(_,M,I){return C._normalizeArr(_,M,I)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.expr.length<_.expr.length)return-1;if(this.expr.length>_.expr.length)return 1;for(let M=0,I=this.expr.length;M_.serialize()).join(" || ")}keys(){const _=[];for(let M of this.expr)_.push(...M.keys());return _}negate(){if(!this.negated){let _=[];for(let M of this.expr)_.push(M.negate());for(;_.length>1;){const M=_.shift(),I=_.shift(),g=[];for(const $ of F(M))for(const ne of F(I))g.push(A.create([$,ne],null));const H=_.length===0;_.unshift(C.create(g,null,H))}this.negated=_[0]}return this.negated}}class T extends m{constructor(_,M,I){super(_,null);this._defaultValue=M,typeof I=="object"?T._info.push(Object.assign(Object.assign({},I),{key:_})):I!==!0&&T._info.push({key:_,description:I,type:M!=null?typeof M:void 0})}static all(){return T._info.values()}bindTo(_){return _.createKey(this.key,this._defaultValue)}getValue(_){return _.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(_){return p.create(this.key,_)}}T._info=[];const d=Object(P.c)("contextKeyService"),S="setContext";function y(_,M){return _M?1:0}function b(_,M,I,g){return _I?1:Mg?1:0}function B(_,M){if(M.type===6&&_.type!==9&&_.type!==6){for(const H of M.expr)if(_.equals(H))return!0}const I=_.negate(),g=F(I).concat(F(M));g.sort(r);for(let H=0;H=0;h--)if(this.__items[h].match(p))return!0;return!1},L.prototype.set_indent=function(p,h){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=h||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},L.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)},L.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},L.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},L.prototype.is_empty=function(){return this.__items.length===0},L.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},L.prototype.push=function(p){this.__items.push(p);var h=p.lastIndexOf(` `);h!==-1?this.__character_count=p.length-h:this.__character_count+=p.length},L.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},L.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},L.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},L.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},L.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function v(p,h){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),h=h||"",p.indent_level>0&&(h=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=h,this.__base_string_length=h.length}v.prototype.get_indent_size=function(p,h){var u=this.__base_string_length;return h=h||0,p<0&&(u=0),u+=p*this.__indent_size,u+=h,u},v.prototype.get_indent_string=function(p,h){var u=this.__base_string;return h=h||0,p<0&&(p=0,u=""),h+=p*this.__indent_size,this.__ensure_cache(h),u+=this.__cache[h],u},v.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},v.prototype.__add_column=function(){var p=this.__cache.length,h=0,u="";this.__indent_size&&p>=this.__indent_size&&(h=Math.floor(p/this.__indent_size),p-=h*this.__indent_size,u=new Array(h+1).join(this.__indent_string)),p&&(u+=new Array(p+1).join(" ")),this.__cache.push(u)};function m(p,h){this.__indent_cache=new v(p,h),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new L(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}m.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},m.prototype.get_line_number=function(){return this.__lines.length},m.prototype.get_indent_string=function(p,h){return this.__indent_cache.get_indent_string(p,h)},m.prototype.get_indent_size=function(p,h){return this.__indent_cache.get_indent_size(p,h)},m.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},m.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},m.prototype.get_code=function(p){this.trim(!0);var h=this.current_line.pop();h&&(h[h.length-1]===` `&&(h=h.replace(/\n+$/g,"")),this.current_line.push(h)),this._end_with_newline&&this.__add_outputline();var u=this.__lines.join(` `);return p!==` @@ -341,31 +341,31 @@ You passed in: '`+this.raw_options[p]+"'");return f},L.prototype._is_valid_selec `)break;this._ch=this._input.next()}return R},w.prototype.eatWhitespace=function(D){for(var R=s.test(this._input.peek()),A=0;s.test(this._input.peek());)this._ch=this._input.next(),D&&this._ch===` `&&((A===0||A0&&this._indentLevel--},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D=this._source_text,R=this._options.eol;R==="auto"&&(R=` `,D&&l.test(D||"")&&(R=D.match(l)[0])),D=D.replace(o,` -`);var A=D.match(/^[\t ]*/)[0];this._output=new p(this._options,A),this._input=new h(D),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var C=0,T=!1,c=!1,S=!1,y=!1,b=!1,B=!1,F=this._ch,_=!1,M,I,g;M=this._input.read(a),I=M!=="",g=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 H=this._input.read(O),$=f.get_directives(H);$&&$.ignore==="start"&&(H+=f.readIgnored(this._input)),this.print_string(H),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(I),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ne=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ne.match(/[ :]$/)&&(ne=this.eatString(": ").replace(/\s$/,""),this.print_string(ne),this._output.space_before_token=!0),ne=ne.replace(/\s$/,""),ne==="extend"?y=!0:ne==="import"&&(b=!0),ne in this.NESTED_AT_RULE?(this._nestedLevel+=1,ne in this.CONDITIONAL_GROUP_RULE&&(S=!0)):!T&&C===0&&ne.indexOf(":")!==-1&&(c=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")c&&(c=!1,this.outdent()),S?(S=!1,T=this._indentLevel>=this._nestedLevel):T=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&T&&(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)):(g==="("?this._output.space_before_token=!1:g!==","&&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(),g==="{"&&this._output.trim(!0),b=!1,y=!1,c&&(this.outdent(),c=!1),this.print_string(this._ch),T=!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 se=0;se"||this._ch==="+"||this._ch==="~")&&!c&&C===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(I),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 Te=g==='"'||g==="'";this.preserveSingleSpace(Te||I),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` -`&&_&&this._output.add_new_line()}var Re=this._output.get_code(R);return Re},r.exports.Beautifier=w},function(r,L,v){var m=v(6).Options;function p(h){m.call(this,h,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var u=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||u;var f=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var l=0;l` ${v} `).trim():""}class K{constructor(r,L,v){this.id=r,this.definition=L,this.description=v,P.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var G;(function(r){r.iconNameSegment="[A-Za-z0-9]+",r.iconNameExpression="[A-Za-z0-9\\-]+",r.iconModifierExpression="~[A-Za-z]+";const L=new RegExp(`^(${r.iconNameExpression})(${r.iconModifierExpression})?$`);function v(h){if(h instanceof K)return["codicon","codicon-"+h.id];const u=L.exec(h.id);if(!u)return v(K.error);let[,f,l]=u;const o=["codicon","codicon-"+f];return l&&o.push("codicon-modifier-"+l.substr(1)),o}r.asClassNameArray=v;function m(h){return v(h).join(" ")}r.asClassName=m;function p(h){return"."+v(h).join(".")}r.asCSSSelector=p})(G||(G={})),function(r){r.add=new r("add",{fontCharacter:"\\ea60"}),r.plus=new r("plus",r.add.definition),r.gistNew=new r("gist-new",r.add.definition),r.repoCreate=new r("repo-create",r.add.definition),r.lightbulb=new r("lightbulb",{fontCharacter:"\\ea61"}),r.lightBulb=new r("light-bulb",{fontCharacter:"\\ea61"}),r.repo=new r("repo",{fontCharacter:"\\ea62"}),r.repoDelete=new r("repo-delete",{fontCharacter:"\\ea62"}),r.gistFork=new r("gist-fork",{fontCharacter:"\\ea63"}),r.repoForked=new r("repo-forked",{fontCharacter:"\\ea63"}),r.gitPullRequest=new r("git-pull-request",{fontCharacter:"\\ea64"}),r.gitPullRequestAbandoned=new r("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),r.recordKeys=new r("record-keys",{fontCharacter:"\\ea65"}),r.keyboard=new r("keyboard",{fontCharacter:"\\ea65"}),r.tag=new r("tag",{fontCharacter:"\\ea66"}),r.tagAdd=new r("tag-add",{fontCharacter:"\\ea66"}),r.tagRemove=new r("tag-remove",{fontCharacter:"\\ea66"}),r.person=new r("person",{fontCharacter:"\\ea67"}),r.personFollow=new r("person-follow",{fontCharacter:"\\ea67"}),r.personOutline=new r("person-outline",{fontCharacter:"\\ea67"}),r.personFilled=new r("person-filled",{fontCharacter:"\\ea67"}),r.gitBranch=new r("git-branch",{fontCharacter:"\\ea68"}),r.gitBranchCreate=new r("git-branch-create",{fontCharacter:"\\ea68"}),r.gitBranchDelete=new r("git-branch-delete",{fontCharacter:"\\ea68"}),r.sourceControl=new r("source-control",{fontCharacter:"\\ea68"}),r.mirror=new r("mirror",{fontCharacter:"\\ea69"}),r.mirrorPublic=new r("mirror-public",{fontCharacter:"\\ea69"}),r.star=new r("star",{fontCharacter:"\\ea6a"}),r.starAdd=new r("star-add",{fontCharacter:"\\ea6a"}),r.starDelete=new r("star-delete",{fontCharacter:"\\ea6a"}),r.starEmpty=new r("star-empty",{fontCharacter:"\\ea6a"}),r.comment=new r("comment",{fontCharacter:"\\ea6b"}),r.commentAdd=new r("comment-add",{fontCharacter:"\\ea6b"}),r.alert=new r("alert",{fontCharacter:"\\ea6c"}),r.warning=new r("warning",{fontCharacter:"\\ea6c"}),r.search=new r("search",{fontCharacter:"\\ea6d"}),r.searchSave=new r("search-save",{fontCharacter:"\\ea6d"}),r.logOut=new r("log-out",{fontCharacter:"\\ea6e"}),r.signOut=new r("sign-out",{fontCharacter:"\\ea6e"}),r.logIn=new r("log-in",{fontCharacter:"\\ea6f"}),r.signIn=new r("sign-in",{fontCharacter:"\\ea6f"}),r.eye=new r("eye",{fontCharacter:"\\ea70"}),r.eyeUnwatch=new r("eye-unwatch",{fontCharacter:"\\ea70"}),r.eyeWatch=new r("eye-watch",{fontCharacter:"\\ea70"}),r.circleFilled=new r("circle-filled",{fontCharacter:"\\ea71"}),r.primitiveDot=new r("primitive-dot",{fontCharacter:"\\ea71"}),r.closeDirty=new r("close-dirty",{fontCharacter:"\\ea71"}),r.debugBreakpoint=new r("debug-breakpoint",{fontCharacter:"\\ea71"}),r.debugBreakpointDisabled=new r("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),r.debugHint=new r("debug-hint",{fontCharacter:"\\ea71"}),r.primitiveSquare=new r("primitive-square",{fontCharacter:"\\ea72"}),r.edit=new r("edit",{fontCharacter:"\\ea73"}),r.pencil=new r("pencil",{fontCharacter:"\\ea73"}),r.info=new r("info",{fontCharacter:"\\ea74"}),r.issueOpened=new r("issue-opened",{fontCharacter:"\\ea74"}),r.gistPrivate=new r("gist-private",{fontCharacter:"\\ea75"}),r.gitForkPrivate=new r("git-fork-private",{fontCharacter:"\\ea75"}),r.lock=new r("lock",{fontCharacter:"\\ea75"}),r.mirrorPrivate=new r("mirror-private",{fontCharacter:"\\ea75"}),r.close=new r("close",{fontCharacter:"\\ea76"}),r.removeClose=new r("remove-close",{fontCharacter:"\\ea76"}),r.x=new r("x",{fontCharacter:"\\ea76"}),r.repoSync=new r("repo-sync",{fontCharacter:"\\ea77"}),r.sync=new r("sync",{fontCharacter:"\\ea77"}),r.clone=new r("clone",{fontCharacter:"\\ea78"}),r.desktopDownload=new r("desktop-download",{fontCharacter:"\\ea78"}),r.beaker=new r("beaker",{fontCharacter:"\\ea79"}),r.microscope=new r("microscope",{fontCharacter:"\\ea79"}),r.vm=new r("vm",{fontCharacter:"\\ea7a"}),r.deviceDesktop=new r("device-desktop",{fontCharacter:"\\ea7a"}),r.file=new r("file",{fontCharacter:"\\ea7b"}),r.fileText=new r("file-text",{fontCharacter:"\\ea7b"}),r.more=new r("more",{fontCharacter:"\\ea7c"}),r.ellipsis=new r("ellipsis",{fontCharacter:"\\ea7c"}),r.kebabHorizontal=new r("kebab-horizontal",{fontCharacter:"\\ea7c"}),r.mailReply=new r("mail-reply",{fontCharacter:"\\ea7d"}),r.reply=new r("reply",{fontCharacter:"\\ea7d"}),r.organization=new r("organization",{fontCharacter:"\\ea7e"}),r.organizationFilled=new r("organization-filled",{fontCharacter:"\\ea7e"}),r.organizationOutline=new r("organization-outline",{fontCharacter:"\\ea7e"}),r.newFile=new r("new-file",{fontCharacter:"\\ea7f"}),r.fileAdd=new r("file-add",{fontCharacter:"\\ea7f"}),r.newFolder=new r("new-folder",{fontCharacter:"\\ea80"}),r.fileDirectoryCreate=new r("file-directory-create",{fontCharacter:"\\ea80"}),r.trash=new r("trash",{fontCharacter:"\\ea81"}),r.trashcan=new r("trashcan",{fontCharacter:"\\ea81"}),r.history=new r("history",{fontCharacter:"\\ea82"}),r.clock=new r("clock",{fontCharacter:"\\ea82"}),r.folder=new r("folder",{fontCharacter:"\\ea83"}),r.fileDirectory=new r("file-directory",{fontCharacter:"\\ea83"}),r.symbolFolder=new r("symbol-folder",{fontCharacter:"\\ea83"}),r.logoGithub=new r("logo-github",{fontCharacter:"\\ea84"}),r.markGithub=new r("mark-github",{fontCharacter:"\\ea84"}),r.github=new r("github",{fontCharacter:"\\ea84"}),r.terminal=new r("terminal",{fontCharacter:"\\ea85"}),r.console=new r("console",{fontCharacter:"\\ea85"}),r.repl=new r("repl",{fontCharacter:"\\ea85"}),r.zap=new r("zap",{fontCharacter:"\\ea86"}),r.symbolEvent=new r("symbol-event",{fontCharacter:"\\ea86"}),r.error=new r("error",{fontCharacter:"\\ea87"}),r.stop=new r("stop",{fontCharacter:"\\ea87"}),r.variable=new r("variable",{fontCharacter:"\\ea88"}),r.symbolVariable=new r("symbol-variable",{fontCharacter:"\\ea88"}),r.array=new r("array",{fontCharacter:"\\ea8a"}),r.symbolArray=new r("symbol-array",{fontCharacter:"\\ea8a"}),r.symbolModule=new r("symbol-module",{fontCharacter:"\\ea8b"}),r.symbolPackage=new r("symbol-package",{fontCharacter:"\\ea8b"}),r.symbolNamespace=new r("symbol-namespace",{fontCharacter:"\\ea8b"}),r.symbolObject=new r("symbol-object",{fontCharacter:"\\ea8b"}),r.symbolMethod=new r("symbol-method",{fontCharacter:"\\ea8c"}),r.symbolFunction=new r("symbol-function",{fontCharacter:"\\ea8c"}),r.symbolConstructor=new r("symbol-constructor",{fontCharacter:"\\ea8c"}),r.symbolBoolean=new r("symbol-boolean",{fontCharacter:"\\ea8f"}),r.symbolNull=new r("symbol-null",{fontCharacter:"\\ea8f"}),r.symbolNumeric=new r("symbol-numeric",{fontCharacter:"\\ea90"}),r.symbolNumber=new r("symbol-number",{fontCharacter:"\\ea90"}),r.symbolStructure=new r("symbol-structure",{fontCharacter:"\\ea91"}),r.symbolStruct=new r("symbol-struct",{fontCharacter:"\\ea91"}),r.symbolParameter=new r("symbol-parameter",{fontCharacter:"\\ea92"}),r.symbolTypeParameter=new r("symbol-type-parameter",{fontCharacter:"\\ea92"}),r.symbolKey=new r("symbol-key",{fontCharacter:"\\ea93"}),r.symbolText=new r("symbol-text",{fontCharacter:"\\ea93"}),r.symbolReference=new r("symbol-reference",{fontCharacter:"\\ea94"}),r.goToFile=new r("go-to-file",{fontCharacter:"\\ea94"}),r.symbolEnum=new r("symbol-enum",{fontCharacter:"\\ea95"}),r.symbolValue=new r("symbol-value",{fontCharacter:"\\ea95"}),r.symbolRuler=new r("symbol-ruler",{fontCharacter:"\\ea96"}),r.symbolUnit=new r("symbol-unit",{fontCharacter:"\\ea96"}),r.activateBreakpoints=new r("activate-breakpoints",{fontCharacter:"\\ea97"}),r.archive=new r("archive",{fontCharacter:"\\ea98"}),r.arrowBoth=new r("arrow-both",{fontCharacter:"\\ea99"}),r.arrowDown=new r("arrow-down",{fontCharacter:"\\ea9a"}),r.arrowLeft=new r("arrow-left",{fontCharacter:"\\ea9b"}),r.arrowRight=new r("arrow-right",{fontCharacter:"\\ea9c"}),r.arrowSmallDown=new r("arrow-small-down",{fontCharacter:"\\ea9d"}),r.arrowSmallLeft=new r("arrow-small-left",{fontCharacter:"\\ea9e"}),r.arrowSmallRight=new r("arrow-small-right",{fontCharacter:"\\ea9f"}),r.arrowSmallUp=new r("arrow-small-up",{fontCharacter:"\\eaa0"}),r.arrowUp=new r("arrow-up",{fontCharacter:"\\eaa1"}),r.bell=new r("bell",{fontCharacter:"\\eaa2"}),r.bold=new r("bold",{fontCharacter:"\\eaa3"}),r.book=new r("book",{fontCharacter:"\\eaa4"}),r.bookmark=new r("bookmark",{fontCharacter:"\\eaa5"}),r.debugBreakpointConditionalUnverified=new r("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),r.debugBreakpointConditional=new r("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),r.debugBreakpointConditionalDisabled=new r("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),r.debugBreakpointDataUnverified=new r("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),r.debugBreakpointData=new r("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),r.debugBreakpointDataDisabled=new r("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),r.debugBreakpointLogUnverified=new r("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),r.debugBreakpointLog=new r("debug-breakpoint-log",{fontCharacter:"\\eaab"}),r.debugBreakpointLogDisabled=new r("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),r.briefcase=new r("briefcase",{fontCharacter:"\\eaac"}),r.broadcast=new r("broadcast",{fontCharacter:"\\eaad"}),r.browser=new r("browser",{fontCharacter:"\\eaae"}),r.bug=new r("bug",{fontCharacter:"\\eaaf"}),r.calendar=new r("calendar",{fontCharacter:"\\eab0"}),r.caseSensitive=new r("case-sensitive",{fontCharacter:"\\eab1"}),r.check=new r("check",{fontCharacter:"\\eab2"}),r.checklist=new r("checklist",{fontCharacter:"\\eab3"}),r.chevronDown=new r("chevron-down",{fontCharacter:"\\eab4"}),r.dropDownButton=new r("drop-down-button",r.chevronDown.definition),r.chevronLeft=new r("chevron-left",{fontCharacter:"\\eab5"}),r.chevronRight=new r("chevron-right",{fontCharacter:"\\eab6"}),r.chevronUp=new r("chevron-up",{fontCharacter:"\\eab7"}),r.chromeClose=new r("chrome-close",{fontCharacter:"\\eab8"}),r.chromeMaximize=new r("chrome-maximize",{fontCharacter:"\\eab9"}),r.chromeMinimize=new r("chrome-minimize",{fontCharacter:"\\eaba"}),r.chromeRestore=new r("chrome-restore",{fontCharacter:"\\eabb"}),r.circleOutline=new r("circle-outline",{fontCharacter:"\\eabc"}),r.debugBreakpointUnverified=new r("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),r.circleSlash=new r("circle-slash",{fontCharacter:"\\eabd"}),r.circuitBoard=new r("circuit-board",{fontCharacter:"\\eabe"}),r.clearAll=new r("clear-all",{fontCharacter:"\\eabf"}),r.clippy=new r("clippy",{fontCharacter:"\\eac0"}),r.closeAll=new r("close-all",{fontCharacter:"\\eac1"}),r.cloudDownload=new r("cloud-download",{fontCharacter:"\\eac2"}),r.cloudUpload=new r("cloud-upload",{fontCharacter:"\\eac3"}),r.code=new r("code",{fontCharacter:"\\eac4"}),r.collapseAll=new r("collapse-all",{fontCharacter:"\\eac5"}),r.colorMode=new r("color-mode",{fontCharacter:"\\eac6"}),r.commentDiscussion=new r("comment-discussion",{fontCharacter:"\\eac7"}),r.compareChanges=new r("compare-changes",{fontCharacter:"\\eafd"}),r.creditCard=new r("credit-card",{fontCharacter:"\\eac9"}),r.dash=new r("dash",{fontCharacter:"\\eacc"}),r.dashboard=new r("dashboard",{fontCharacter:"\\eacd"}),r.database=new r("database",{fontCharacter:"\\eace"}),r.debugContinue=new r("debug-continue",{fontCharacter:"\\eacf"}),r.debugDisconnect=new r("debug-disconnect",{fontCharacter:"\\ead0"}),r.debugPause=new r("debug-pause",{fontCharacter:"\\ead1"}),r.debugRestart=new r("debug-restart",{fontCharacter:"\\ead2"}),r.debugStart=new r("debug-start",{fontCharacter:"\\ead3"}),r.debugStepInto=new r("debug-step-into",{fontCharacter:"\\ead4"}),r.debugStepOut=new r("debug-step-out",{fontCharacter:"\\ead5"}),r.debugStepOver=new r("debug-step-over",{fontCharacter:"\\ead6"}),r.debugStop=new r("debug-stop",{fontCharacter:"\\ead7"}),r.debug=new r("debug",{fontCharacter:"\\ead8"}),r.deviceCameraVideo=new r("device-camera-video",{fontCharacter:"\\ead9"}),r.deviceCamera=new r("device-camera",{fontCharacter:"\\eada"}),r.deviceMobile=new r("device-mobile",{fontCharacter:"\\eadb"}),r.diffAdded=new r("diff-added",{fontCharacter:"\\eadc"}),r.diffIgnored=new r("diff-ignored",{fontCharacter:"\\eadd"}),r.diffModified=new r("diff-modified",{fontCharacter:"\\eade"}),r.diffRemoved=new r("diff-removed",{fontCharacter:"\\eadf"}),r.diffRenamed=new r("diff-renamed",{fontCharacter:"\\eae0"}),r.diff=new r("diff",{fontCharacter:"\\eae1"}),r.discard=new r("discard",{fontCharacter:"\\eae2"}),r.editorLayout=new r("editor-layout",{fontCharacter:"\\eae3"}),r.emptyWindow=new r("empty-window",{fontCharacter:"\\eae4"}),r.exclude=new r("exclude",{fontCharacter:"\\eae5"}),r.extensions=new r("extensions",{fontCharacter:"\\eae6"}),r.eyeClosed=new r("eye-closed",{fontCharacter:"\\eae7"}),r.fileBinary=new r("file-binary",{fontCharacter:"\\eae8"}),r.fileCode=new r("file-code",{fontCharacter:"\\eae9"}),r.fileMedia=new r("file-media",{fontCharacter:"\\eaea"}),r.filePdf=new r("file-pdf",{fontCharacter:"\\eaeb"}),r.fileSubmodule=new r("file-submodule",{fontCharacter:"\\eaec"}),r.fileSymlinkDirectory=new r("file-symlink-directory",{fontCharacter:"\\eaed"}),r.fileSymlinkFile=new r("file-symlink-file",{fontCharacter:"\\eaee"}),r.fileZip=new r("file-zip",{fontCharacter:"\\eaef"}),r.files=new r("files",{fontCharacter:"\\eaf0"}),r.filter=new r("filter",{fontCharacter:"\\eaf1"}),r.flame=new r("flame",{fontCharacter:"\\eaf2"}),r.foldDown=new r("fold-down",{fontCharacter:"\\eaf3"}),r.foldUp=new r("fold-up",{fontCharacter:"\\eaf4"}),r.fold=new r("fold",{fontCharacter:"\\eaf5"}),r.folderActive=new r("folder-active",{fontCharacter:"\\eaf6"}),r.folderOpened=new r("folder-opened",{fontCharacter:"\\eaf7"}),r.gear=new r("gear",{fontCharacter:"\\eaf8"}),r.gift=new r("gift",{fontCharacter:"\\eaf9"}),r.gistSecret=new r("gist-secret",{fontCharacter:"\\eafa"}),r.gist=new r("gist",{fontCharacter:"\\eafb"}),r.gitCommit=new r("git-commit",{fontCharacter:"\\eafc"}),r.gitCompare=new r("git-compare",{fontCharacter:"\\eafd"}),r.gitMerge=new r("git-merge",{fontCharacter:"\\eafe"}),r.githubAction=new r("github-action",{fontCharacter:"\\eaff"}),r.githubAlt=new r("github-alt",{fontCharacter:"\\eb00"}),r.globe=new r("globe",{fontCharacter:"\\eb01"}),r.grabber=new r("grabber",{fontCharacter:"\\eb02"}),r.graph=new r("graph",{fontCharacter:"\\eb03"}),r.gripper=new r("gripper",{fontCharacter:"\\eb04"}),r.heart=new r("heart",{fontCharacter:"\\eb05"}),r.home=new r("home",{fontCharacter:"\\eb06"}),r.horizontalRule=new r("horizontal-rule",{fontCharacter:"\\eb07"}),r.hubot=new r("hubot",{fontCharacter:"\\eb08"}),r.inbox=new r("inbox",{fontCharacter:"\\eb09"}),r.issueClosed=new r("issue-closed",{fontCharacter:"\\eba4"}),r.issueReopened=new r("issue-reopened",{fontCharacter:"\\eb0b"}),r.issues=new r("issues",{fontCharacter:"\\eb0c"}),r.italic=new r("italic",{fontCharacter:"\\eb0d"}),r.jersey=new r("jersey",{fontCharacter:"\\eb0e"}),r.json=new r("json",{fontCharacter:"\\eb0f"}),r.kebabVertical=new r("kebab-vertical",{fontCharacter:"\\eb10"}),r.key=new r("key",{fontCharacter:"\\eb11"}),r.law=new r("law",{fontCharacter:"\\eb12"}),r.lightbulbAutofix=new r("lightbulb-autofix",{fontCharacter:"\\eb13"}),r.linkExternal=new r("link-external",{fontCharacter:"\\eb14"}),r.link=new r("link",{fontCharacter:"\\eb15"}),r.listOrdered=new r("list-ordered",{fontCharacter:"\\eb16"}),r.listUnordered=new r("list-unordered",{fontCharacter:"\\eb17"}),r.liveShare=new r("live-share",{fontCharacter:"\\eb18"}),r.loading=new r("loading",{fontCharacter:"\\eb19"}),r.location=new r("location",{fontCharacter:"\\eb1a"}),r.mailRead=new r("mail-read",{fontCharacter:"\\eb1b"}),r.mail=new r("mail",{fontCharacter:"\\eb1c"}),r.markdown=new r("markdown",{fontCharacter:"\\eb1d"}),r.megaphone=new r("megaphone",{fontCharacter:"\\eb1e"}),r.mention=new r("mention",{fontCharacter:"\\eb1f"}),r.milestone=new r("milestone",{fontCharacter:"\\eb20"}),r.mortarBoard=new r("mortar-board",{fontCharacter:"\\eb21"}),r.move=new r("move",{fontCharacter:"\\eb22"}),r.multipleWindows=new r("multiple-windows",{fontCharacter:"\\eb23"}),r.mute=new r("mute",{fontCharacter:"\\eb24"}),r.noNewline=new r("no-newline",{fontCharacter:"\\eb25"}),r.note=new r("note",{fontCharacter:"\\eb26"}),r.octoface=new r("octoface",{fontCharacter:"\\eb27"}),r.openPreview=new r("open-preview",{fontCharacter:"\\eb28"}),r.package_=new r("package",{fontCharacter:"\\eb29"}),r.paintcan=new r("paintcan",{fontCharacter:"\\eb2a"}),r.pin=new r("pin",{fontCharacter:"\\eb2b"}),r.play=new r("play",{fontCharacter:"\\eb2c"}),r.run=new r("run",{fontCharacter:"\\eb2c"}),r.plug=new r("plug",{fontCharacter:"\\eb2d"}),r.preserveCase=new r("preserve-case",{fontCharacter:"\\eb2e"}),r.preview=new r("preview",{fontCharacter:"\\eb2f"}),r.project=new r("project",{fontCharacter:"\\eb30"}),r.pulse=new r("pulse",{fontCharacter:"\\eb31"}),r.question=new r("question",{fontCharacter:"\\eb32"}),r.quote=new r("quote",{fontCharacter:"\\eb33"}),r.radioTower=new r("radio-tower",{fontCharacter:"\\eb34"}),r.reactions=new r("reactions",{fontCharacter:"\\eb35"}),r.references=new r("references",{fontCharacter:"\\eb36"}),r.refresh=new r("refresh",{fontCharacter:"\\eb37"}),r.regex=new r("regex",{fontCharacter:"\\eb38"}),r.remoteExplorer=new r("remote-explorer",{fontCharacter:"\\eb39"}),r.remote=new r("remote",{fontCharacter:"\\eb3a"}),r.remove=new r("remove",{fontCharacter:"\\eb3b"}),r.replaceAll=new r("replace-all",{fontCharacter:"\\eb3c"}),r.replace=new r("replace",{fontCharacter:"\\eb3d"}),r.repoClone=new r("repo-clone",{fontCharacter:"\\eb3e"}),r.repoForcePush=new r("repo-force-push",{fontCharacter:"\\eb3f"}),r.repoPull=new r("repo-pull",{fontCharacter:"\\eb40"}),r.repoPush=new r("repo-push",{fontCharacter:"\\eb41"}),r.report=new r("report",{fontCharacter:"\\eb42"}),r.requestChanges=new r("request-changes",{fontCharacter:"\\eb43"}),r.rocket=new r("rocket",{fontCharacter:"\\eb44"}),r.rootFolderOpened=new r("root-folder-opened",{fontCharacter:"\\eb45"}),r.rootFolder=new r("root-folder",{fontCharacter:"\\eb46"}),r.rss=new r("rss",{fontCharacter:"\\eb47"}),r.ruby=new r("ruby",{fontCharacter:"\\eb48"}),r.saveAll=new r("save-all",{fontCharacter:"\\eb49"}),r.saveAs=new r("save-as",{fontCharacter:"\\eb4a"}),r.save=new r("save",{fontCharacter:"\\eb4b"}),r.screenFull=new r("screen-full",{fontCharacter:"\\eb4c"}),r.screenNormal=new r("screen-normal",{fontCharacter:"\\eb4d"}),r.searchStop=new r("search-stop",{fontCharacter:"\\eb4e"}),r.server=new r("server",{fontCharacter:"\\eb50"}),r.settingsGear=new r("settings-gear",{fontCharacter:"\\eb51"}),r.settings=new r("settings",{fontCharacter:"\\eb52"}),r.shield=new r("shield",{fontCharacter:"\\eb53"}),r.smiley=new r("smiley",{fontCharacter:"\\eb54"}),r.sortPrecedence=new r("sort-precedence",{fontCharacter:"\\eb55"}),r.splitHorizontal=new r("split-horizontal",{fontCharacter:"\\eb56"}),r.splitVertical=new r("split-vertical",{fontCharacter:"\\eb57"}),r.squirrel=new r("squirrel",{fontCharacter:"\\eb58"}),r.starFull=new r("star-full",{fontCharacter:"\\eb59"}),r.starHalf=new r("star-half",{fontCharacter:"\\eb5a"}),r.symbolClass=new r("symbol-class",{fontCharacter:"\\eb5b"}),r.symbolColor=new r("symbol-color",{fontCharacter:"\\eb5c"}),r.symbolConstant=new r("symbol-constant",{fontCharacter:"\\eb5d"}),r.symbolEnumMember=new r("symbol-enum-member",{fontCharacter:"\\eb5e"}),r.symbolField=new r("symbol-field",{fontCharacter:"\\eb5f"}),r.symbolFile=new r("symbol-file",{fontCharacter:"\\eb60"}),r.symbolInterface=new r("symbol-interface",{fontCharacter:"\\eb61"}),r.symbolKeyword=new r("symbol-keyword",{fontCharacter:"\\eb62"}),r.symbolMisc=new r("symbol-misc",{fontCharacter:"\\eb63"}),r.symbolOperator=new r("symbol-operator",{fontCharacter:"\\eb64"}),r.symbolProperty=new r("symbol-property",{fontCharacter:"\\eb65"}),r.wrench=new r("wrench",{fontCharacter:"\\eb65"}),r.wrenchSubaction=new r("wrench-subaction",{fontCharacter:"\\eb65"}),r.symbolSnippet=new r("symbol-snippet",{fontCharacter:"\\eb66"}),r.tasklist=new r("tasklist",{fontCharacter:"\\eb67"}),r.telescope=new r("telescope",{fontCharacter:"\\eb68"}),r.textSize=new r("text-size",{fontCharacter:"\\eb69"}),r.threeBars=new r("three-bars",{fontCharacter:"\\eb6a"}),r.thumbsdown=new r("thumbsdown",{fontCharacter:"\\eb6b"}),r.thumbsup=new r("thumbsup",{fontCharacter:"\\eb6c"}),r.tools=new r("tools",{fontCharacter:"\\eb6d"}),r.triangleDown=new r("triangle-down",{fontCharacter:"\\eb6e"}),r.triangleLeft=new r("triangle-left",{fontCharacter:"\\eb6f"}),r.triangleRight=new r("triangle-right",{fontCharacter:"\\eb70"}),r.triangleUp=new r("triangle-up",{fontCharacter:"\\eb71"}),r.twitter=new r("twitter",{fontCharacter:"\\eb72"}),r.unfold=new r("unfold",{fontCharacter:"\\eb73"}),r.unlock=new r("unlock",{fontCharacter:"\\eb74"}),r.unmute=new r("unmute",{fontCharacter:"\\eb75"}),r.unverified=new r("unverified",{fontCharacter:"\\eb76"}),r.verified=new r("verified",{fontCharacter:"\\eb77"}),r.versions=new r("versions",{fontCharacter:"\\eb78"}),r.vmActive=new r("vm-active",{fontCharacter:"\\eb79"}),r.vmOutline=new r("vm-outline",{fontCharacter:"\\eb7a"}),r.vmRunning=new r("vm-running",{fontCharacter:"\\eb7b"}),r.watch=new r("watch",{fontCharacter:"\\eb7c"}),r.whitespace=new r("whitespace",{fontCharacter:"\\eb7d"}),r.wholeWord=new r("whole-word",{fontCharacter:"\\eb7e"}),r.window=new r("window",{fontCharacter:"\\eb7f"}),r.wordWrap=new r("word-wrap",{fontCharacter:"\\eb80"}),r.zoomIn=new r("zoom-in",{fontCharacter:"\\eb81"}),r.zoomOut=new r("zoom-out",{fontCharacter:"\\eb82"}),r.listFilter=new r("list-filter",{fontCharacter:"\\eb83"}),r.listFlat=new r("list-flat",{fontCharacter:"\\eb84"}),r.listSelection=new r("list-selection",{fontCharacter:"\\eb85"}),r.selection=new r("selection",{fontCharacter:"\\eb85"}),r.listTree=new r("list-tree",{fontCharacter:"\\eb86"}),r.debugBreakpointFunctionUnverified=new r("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),r.debugBreakpointFunction=new r("debug-breakpoint-function",{fontCharacter:"\\eb88"}),r.debugBreakpointFunctionDisabled=new r("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),r.debugStackframeActive=new r("debug-stackframe-active",{fontCharacter:"\\eb89"}),r.debugStackframeDot=new r("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),r.debugStackframe=new r("debug-stackframe",{fontCharacter:"\\eb8b"}),r.debugStackframeFocused=new r("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),r.debugBreakpointUnsupported=new r("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),r.symbolString=new r("symbol-string",{fontCharacter:"\\eb8d"}),r.debugReverseContinue=new r("debug-reverse-continue",{fontCharacter:"\\eb8e"}),r.debugStepBack=new r("debug-step-back",{fontCharacter:"\\eb8f"}),r.debugRestartFrame=new r("debug-restart-frame",{fontCharacter:"\\eb90"}),r.callIncoming=new r("call-incoming",{fontCharacter:"\\eb92"}),r.callOutgoing=new r("call-outgoing",{fontCharacter:"\\eb93"}),r.menu=new r("menu",{fontCharacter:"\\eb94"}),r.expandAll=new r("expand-all",{fontCharacter:"\\eb95"}),r.feedback=new r("feedback",{fontCharacter:"\\eb96"}),r.groupByRefType=new r("group-by-ref-type",{fontCharacter:"\\eb97"}),r.ungroupByRefType=new r("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),r.account=new r("account",{fontCharacter:"\\eb99"}),r.bellDot=new r("bell-dot",{fontCharacter:"\\eb9a"}),r.debugConsole=new r("debug-console",{fontCharacter:"\\eb9b"}),r.library=new r("library",{fontCharacter:"\\eb9c"}),r.output=new r("output",{fontCharacter:"\\eb9d"}),r.runAll=new r("run-all",{fontCharacter:"\\eb9e"}),r.syncIgnored=new r("sync-ignored",{fontCharacter:"\\eb9f"}),r.pinned=new r("pinned",{fontCharacter:"\\eba0"}),r.githubInverted=new r("github-inverted",{fontCharacter:"\\eba1"}),r.debugAlt=new r("debug-alt",{fontCharacter:"\\eb91"}),r.serverProcess=new r("server-process",{fontCharacter:"\\eba2"}),r.serverEnvironment=new r("server-environment",{fontCharacter:"\\eba3"}),r.pass=new r("pass",{fontCharacter:"\\eba4"}),r.stopCircle=new r("stop-circle",{fontCharacter:"\\eba5"}),r.playCircle=new r("play-circle",{fontCharacter:"\\eba6"}),r.record=new r("record",{fontCharacter:"\\eba7"}),r.debugAltSmall=new r("debug-alt-small",{fontCharacter:"\\eba8"}),r.vmConnect=new r("vm-connect",{fontCharacter:"\\eba9"}),r.cloud=new r("cloud",{fontCharacter:"\\ebaa"}),r.merge=new r("merge",{fontCharacter:"\\ebab"}),r.exportIcon=new r("export",{fontCharacter:"\\ebac"}),r.graphLeft=new r("graph-left",{fontCharacter:"\\ebad"}),r.magnet=new r("magnet",{fontCharacter:"\\ebae"}),r.notebook=new r("notebook",{fontCharacter:"\\ebaf"}),r.redo=new r("redo",{fontCharacter:"\\ebb0"}),r.checkAll=new r("check-all",{fontCharacter:"\\ebb1"}),r.pinnedDirty=new r("pinned-dirty",{fontCharacter:"\\ebb2"}),r.passFilled=new r("pass-filled",{fontCharacter:"\\ebb3"}),r.circleLargeFilled=new r("circle-large-filled",{fontCharacter:"\\ebb4"}),r.circleLargeOutline=new r("circle-large-outline",{fontCharacter:"\\ebb5"}),r.combine=new r("combine",{fontCharacter:"\\ebb6"}),r.gather=new r("gather",{fontCharacter:"\\ebb6"}),r.table=new r("table",{fontCharacter:"\\ebb7"}),r.variableGroup=new r("variable-group",{fontCharacter:"\\ebb8"}),r.typeHierarchy=new r("type-hierarchy",{fontCharacter:"\\ebb9"}),r.typeHierarchySub=new r("type-hierarchy-sub",{fontCharacter:"\\ebba"}),r.typeHierarchySuper=new r("type-hierarchy-super",{fontCharacter:"\\ebbb"}),r.gitPullRequestCreate=new r("git-pull-request-create",{fontCharacter:"\\ebbc"}),r.runAbove=new r("run-above",{fontCharacter:"\\ebbd"}),r.runBelow=new r("run-below",{fontCharacter:"\\ebbe"}),r.notebookTemplate=new r("notebook-template",{fontCharacter:"\\ebbf"}),r.debugRerun=new r("debug-rerun",{fontCharacter:"\\ebc0"}),r.workspaceTrusted=new r("workspace-trusted",{fontCharacter:"\\ebc1"}),r.workspaceUntrusted=new r("workspace-untrusted",{fontCharacter:"\\ebc2"}),r.workspaceUnspecified=new r("workspace-unspecified",{fontCharacter:"\\ebc3"}),r.terminalCmd=new r("terminal-cmd",{fontCharacter:"\\ebc4"}),r.terminalDebian=new r("terminal-debian",{fontCharacter:"\\ebc5"}),r.terminalLinux=new r("terminal-linux",{fontCharacter:"\\ebc6"}),r.terminalPowershell=new r("terminal-powershell",{fontCharacter:"\\ebc7"}),r.terminalTmux=new r("terminal-tmux",{fontCharacter:"\\ebc8"}),r.terminalUbuntu=new r("terminal-ubuntu",{fontCharacter:"\\ebc9"}),r.terminalBash=new r("terminal-bash",{fontCharacter:"\\ebca"}),r.arrowSwap=new r("arrow-swap",{fontCharacter:"\\ebcb"}),r.copy=new r("copy",{fontCharacter:"\\ebcc"}),r.personAdd=new r("person-add",{fontCharacter:"\\ebcd"}),r.filterFilled=new r("filter-filled",{fontCharacter:"\\ebce"}),r.wand=new r("wand",{fontCharacter:"\\ebcf"}),r.debugLineByLine=new r("debug-line-by-line",{fontCharacter:"\\ebd0"}),r.inspect=new r("inspect",{fontCharacter:"\\ebd1"}),r.layers=new r("layers",{fontCharacter:"\\ebd2"}),r.layersDot=new r("layers-dot",{fontCharacter:"\\ebd3"}),r.layersActive=new r("layers-active",{fontCharacter:"\\ebd4"}),r.compass=new r("compass",{fontCharacter:"\\ebd5"}),r.compassDot=new r("compass-dot",{fontCharacter:"\\ebd6"}),r.compassActive=new r("compass-active",{fontCharacter:"\\ebd7"}),r.azure=new r("azure",{fontCharacter:"\\ebd8"}),r.issueDraft=new r("issue-draft",{fontCharacter:"\\ebd9"}),r.gitPullRequestClosed=new r("git-pull-request-closed",{fontCharacter:"\\ebda"}),r.gitPullRequestDraft=new r("git-pull-request-draft",{fontCharacter:"\\ebdb"}),r.debugAll=new r("debug-all",{fontCharacter:"\\ebdc"}),r.debugCoverage=new r("debug-coverage",{fontCharacter:"\\ebdd"}),r.runErrors=new r("run-errors",{fontCharacter:"\\ebde"}),r.folderLibrary=new r("folder-library",{fontCharacter:"\\ebdf"}),r.debugContinueSmall=new r("debug-continue-small",{fontCharacter:"\\ebe0"}),r.beakerStop=new r("beaker-stop",{fontCharacter:"\\ebe1"}),r.graphLine=new r("graph-line",{fontCharacter:"\\ebe2"}),r.graphScatter=new r("graph-scatter",{fontCharacter:"\\ebe3"}),r.pieChart=new r("pie-chart",{fontCharacter:"\\ebe4"}),r.bracket=new r("bracket",r.json.definition),r.bracketDot=new r("bracket-dot",{fontCharacter:"\\ebe5"}),r.bracketError=new r("bracket-error",{fontCharacter:"\\ebe6"}),r.lockSmall=new r("lock-small",{fontCharacter:"\\ebe7"}),r.azureDevops=new r("azure-devops",{fontCharacter:"\\ebe8"}),r.verifiedFilled=new r("verified-filled",{fontCharacter:"\\ebe9"})}(K||(K={}))},"VrN/":function(rt,be,Z){(function(ie,J){rt.exports=J()})(this,function(){"use strict";var ie=navigator.userAgent,J=navigator.platform,P=/gecko\/\d/i.test(ie),X=/MSIE \d/.test(ie),j=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ie),U=/Edge\/(\d+)/.exec(ie),K=X||j||U,G=K&&(X?document.documentMode||6:+(U||j)[1]),r=!U&&/WebKit\//.test(ie),L=r&&/Qt\/\d+\.\d+/.test(ie),v=!U&&/Chrome\//.test(ie),m=/Opera\//.test(ie),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ie),u=/PhantomJS/.test(ie),f=!U&&/AppleWebKit/.test(ie)&&/Mobile\/\w+/.test(ie),l=/Android/.test(ie),o=f||l||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ie),s=f||/Mac/.test(J),a=/\bCrOS\b/.test(ie),O=/win/i.test(J),E=m&&ie.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(m=!1,r=!0);var w=s&&(L||m&&(E==null||E<12.11)),D=P||K&&G>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var A=function(e,t){var i=e.className,n=R(t).exec(i);if(n){var d=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(d?n[1]+d:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return C(e).appendChild(t)}function c(e,t,i,n){var d=document.createElement(e);if(i&&(d.className=i),n&&(d.style.cssText=n),typeof t=="string")d.appendChild(document.createTextNode(t));else if(t)for(var N=0;N=t)return z+(t-N);z+=Q-N,z+=i-z%i,N=Q+1}}var $=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};$.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},$.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return n+Math.min(z,t-d);if(d+=N-n,d+=i-d%i,n=N+1,d>=t)return n}}var de=[""];function he(e){for(;de.length<=e;)de.push(re(de)+" ");return de[e]}function re(e){return e[e.length-1]}function fe(e,t){for(var i=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Ce.test(e))}function Be(e,t){return t?t.source.indexOf("\\w")>-1&&Ne(e)?!0:t.test(e):Ne(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])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 Se(e){return e.charCodeAt(0)>=768&&ve.test(e)}function Ie(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var d=(t+i)/2,N=n<0?Math.ceil(d):Math.floor(d);if(N==t)return e(N)?t:i;e(N)?i=N:t=N+n}}function Ve(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var d=!1,N=0;Nt||t==i&&z.to==t)&&(n(Math.max(z.from,t),Math.min(z.to,i),z.level==1?"rtl":"ltr",N),d=!0)}d||n(t,i,"ltr")}var Qe=null;function Je(e,t,i){var n;Qe=null;for(var d=0;dt)return d;N.to==t&&(N.from!=N.to&&i=="before"?n=d:Qe=d),N.from==t&&(N.from!=N.to&&i!="before"?n=d:Qe=d)}return n!=null?n:Qe}var st=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(te){return te<=247?e.charAt(te):1424<=te&&te<=1524?"R":1536<=te&&te<=1785?t.charAt(te-1536):1774<=te&&te<=2220?"r":8192<=te&&te<=8203?"w":te==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,N=/[LRr]/,z=/[Lb1n]/,Q=/[1n]/;function q(te,pe,ye){this.level=te,this.from=pe,this.to=ye}return function(te,pe){var ye=pe=="ltr"?"L":"R";if(te.length==0||pe=="ltr"&&!n.test(te))return!1;for(var Me=te.length,ke=[],Ke=0;Ke-1&&(n[t]=d.slice(0,N).concat(d.slice(N+1)))}}}function je(e,t){var i=ct(e,t);if(!i.length)return;for(var n=Array.prototype.slice.call(arguments,2),d=0;d0}function we(e){e.prototype.on=function(t,i){Ue(this,t,i)},e.prototype.off=function(t,i){lt(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ue(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ce(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function me(e){ae(e),ue(e)}function xe(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),s&&e.ctrlKey&&t==1&&(t=3),t}var He=function(){if(K&&G<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),ze;function ht(e){if(ze==null){var t=c("span","\u200B");T(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ze=t.offsetWidth<=1&&t.offsetHeight>2&&!(K&&G<8))}var i=ze?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ot;function yt(e){if(ot!=null)return ot;var t=T(e,document.createTextNode("A\u062EA")),i=y(t,0,1).getBoundingClientRect(),n=y(t,1,2).getBoundingClientRect();return C(e),!i||i.left==i.right?!1:ot=n.right-i.right<3}var dt=` +`);var A=D.match(/^[\t ]*/)[0];this._output=new p(this._options,A),this._input=new h(D),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var C=0,T=!1,d=!1,S=!1,y=!1,b=!1,B=!1,F=this._ch,_=!1,M,I,g;M=this._input.read(a),I=M!=="",g=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 H=this._input.read(O),$=f.get_directives(H);$&&$.ignore==="start"&&(H+=f.readIgnored(this._input)),this.print_string(H),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(I),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ne=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ne.match(/[ :]$/)&&(ne=this.eatString(": ").replace(/\s$/,""),this.print_string(ne),this._output.space_before_token=!0),ne=ne.replace(/\s$/,""),ne==="extend"?y=!0:ne==="import"&&(b=!0),ne in this.NESTED_AT_RULE?(this._nestedLevel+=1,ne in this.CONDITIONAL_GROUP_RULE&&(S=!0)):!T&&C===0&&ne.indexOf(":")!==-1&&(d=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")d&&(d=!1,this.outdent()),S?(S=!1,T=this._indentLevel>=this._nestedLevel):T=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&T&&(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)):(g==="("?this._output.space_before_token=!1:g!==","&&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(),g==="{"&&this._output.trim(!0),b=!1,y=!1,d&&(this.outdent(),d=!1),this.print_string(this._ch),T=!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 se=0;se"||this._ch==="+"||this._ch==="~")&&!d&&C===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(I),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 Te=g==='"'||g==="'";this.preserveSingleSpace(Te||I),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` +`&&_&&this._output.add_new_line()}var Re=this._output.get_code(R);return Re},r.exports.Beautifier=w},function(r,L,v){var m=v(6).Options;function p(h){m.call(this,h,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var u=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||u;var f=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var l=0;l` ${v} `).trim():""}class K{constructor(r,L,v){this.id=r,this.definition=L,this.description=v,P.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var G;(function(r){r.iconNameSegment="[A-Za-z0-9]+",r.iconNameExpression="[A-Za-z0-9\\-]+",r.iconModifierExpression="~[A-Za-z]+";const L=new RegExp(`^(${r.iconNameExpression})(${r.iconModifierExpression})?$`);function v(h){if(h instanceof K)return["codicon","codicon-"+h.id];const u=L.exec(h.id);if(!u)return v(K.error);let[,f,l]=u;const o=["codicon","codicon-"+f];return l&&o.push("codicon-modifier-"+l.substr(1)),o}r.asClassNameArray=v;function m(h){return v(h).join(" ")}r.asClassName=m;function p(h){return"."+v(h).join(".")}r.asCSSSelector=p})(G||(G={})),function(r){r.add=new r("add",{fontCharacter:"\\ea60"}),r.plus=new r("plus",r.add.definition),r.gistNew=new r("gist-new",r.add.definition),r.repoCreate=new r("repo-create",r.add.definition),r.lightbulb=new r("lightbulb",{fontCharacter:"\\ea61"}),r.lightBulb=new r("light-bulb",{fontCharacter:"\\ea61"}),r.repo=new r("repo",{fontCharacter:"\\ea62"}),r.repoDelete=new r("repo-delete",{fontCharacter:"\\ea62"}),r.gistFork=new r("gist-fork",{fontCharacter:"\\ea63"}),r.repoForked=new r("repo-forked",{fontCharacter:"\\ea63"}),r.gitPullRequest=new r("git-pull-request",{fontCharacter:"\\ea64"}),r.gitPullRequestAbandoned=new r("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),r.recordKeys=new r("record-keys",{fontCharacter:"\\ea65"}),r.keyboard=new r("keyboard",{fontCharacter:"\\ea65"}),r.tag=new r("tag",{fontCharacter:"\\ea66"}),r.tagAdd=new r("tag-add",{fontCharacter:"\\ea66"}),r.tagRemove=new r("tag-remove",{fontCharacter:"\\ea66"}),r.person=new r("person",{fontCharacter:"\\ea67"}),r.personFollow=new r("person-follow",{fontCharacter:"\\ea67"}),r.personOutline=new r("person-outline",{fontCharacter:"\\ea67"}),r.personFilled=new r("person-filled",{fontCharacter:"\\ea67"}),r.gitBranch=new r("git-branch",{fontCharacter:"\\ea68"}),r.gitBranchCreate=new r("git-branch-create",{fontCharacter:"\\ea68"}),r.gitBranchDelete=new r("git-branch-delete",{fontCharacter:"\\ea68"}),r.sourceControl=new r("source-control",{fontCharacter:"\\ea68"}),r.mirror=new r("mirror",{fontCharacter:"\\ea69"}),r.mirrorPublic=new r("mirror-public",{fontCharacter:"\\ea69"}),r.star=new r("star",{fontCharacter:"\\ea6a"}),r.starAdd=new r("star-add",{fontCharacter:"\\ea6a"}),r.starDelete=new r("star-delete",{fontCharacter:"\\ea6a"}),r.starEmpty=new r("star-empty",{fontCharacter:"\\ea6a"}),r.comment=new r("comment",{fontCharacter:"\\ea6b"}),r.commentAdd=new r("comment-add",{fontCharacter:"\\ea6b"}),r.alert=new r("alert",{fontCharacter:"\\ea6c"}),r.warning=new r("warning",{fontCharacter:"\\ea6c"}),r.search=new r("search",{fontCharacter:"\\ea6d"}),r.searchSave=new r("search-save",{fontCharacter:"\\ea6d"}),r.logOut=new r("log-out",{fontCharacter:"\\ea6e"}),r.signOut=new r("sign-out",{fontCharacter:"\\ea6e"}),r.logIn=new r("log-in",{fontCharacter:"\\ea6f"}),r.signIn=new r("sign-in",{fontCharacter:"\\ea6f"}),r.eye=new r("eye",{fontCharacter:"\\ea70"}),r.eyeUnwatch=new r("eye-unwatch",{fontCharacter:"\\ea70"}),r.eyeWatch=new r("eye-watch",{fontCharacter:"\\ea70"}),r.circleFilled=new r("circle-filled",{fontCharacter:"\\ea71"}),r.primitiveDot=new r("primitive-dot",{fontCharacter:"\\ea71"}),r.closeDirty=new r("close-dirty",{fontCharacter:"\\ea71"}),r.debugBreakpoint=new r("debug-breakpoint",{fontCharacter:"\\ea71"}),r.debugBreakpointDisabled=new r("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),r.debugHint=new r("debug-hint",{fontCharacter:"\\ea71"}),r.primitiveSquare=new r("primitive-square",{fontCharacter:"\\ea72"}),r.edit=new r("edit",{fontCharacter:"\\ea73"}),r.pencil=new r("pencil",{fontCharacter:"\\ea73"}),r.info=new r("info",{fontCharacter:"\\ea74"}),r.issueOpened=new r("issue-opened",{fontCharacter:"\\ea74"}),r.gistPrivate=new r("gist-private",{fontCharacter:"\\ea75"}),r.gitForkPrivate=new r("git-fork-private",{fontCharacter:"\\ea75"}),r.lock=new r("lock",{fontCharacter:"\\ea75"}),r.mirrorPrivate=new r("mirror-private",{fontCharacter:"\\ea75"}),r.close=new r("close",{fontCharacter:"\\ea76"}),r.removeClose=new r("remove-close",{fontCharacter:"\\ea76"}),r.x=new r("x",{fontCharacter:"\\ea76"}),r.repoSync=new r("repo-sync",{fontCharacter:"\\ea77"}),r.sync=new r("sync",{fontCharacter:"\\ea77"}),r.clone=new r("clone",{fontCharacter:"\\ea78"}),r.desktopDownload=new r("desktop-download",{fontCharacter:"\\ea78"}),r.beaker=new r("beaker",{fontCharacter:"\\ea79"}),r.microscope=new r("microscope",{fontCharacter:"\\ea79"}),r.vm=new r("vm",{fontCharacter:"\\ea7a"}),r.deviceDesktop=new r("device-desktop",{fontCharacter:"\\ea7a"}),r.file=new r("file",{fontCharacter:"\\ea7b"}),r.fileText=new r("file-text",{fontCharacter:"\\ea7b"}),r.more=new r("more",{fontCharacter:"\\ea7c"}),r.ellipsis=new r("ellipsis",{fontCharacter:"\\ea7c"}),r.kebabHorizontal=new r("kebab-horizontal",{fontCharacter:"\\ea7c"}),r.mailReply=new r("mail-reply",{fontCharacter:"\\ea7d"}),r.reply=new r("reply",{fontCharacter:"\\ea7d"}),r.organization=new r("organization",{fontCharacter:"\\ea7e"}),r.organizationFilled=new r("organization-filled",{fontCharacter:"\\ea7e"}),r.organizationOutline=new r("organization-outline",{fontCharacter:"\\ea7e"}),r.newFile=new r("new-file",{fontCharacter:"\\ea7f"}),r.fileAdd=new r("file-add",{fontCharacter:"\\ea7f"}),r.newFolder=new r("new-folder",{fontCharacter:"\\ea80"}),r.fileDirectoryCreate=new r("file-directory-create",{fontCharacter:"\\ea80"}),r.trash=new r("trash",{fontCharacter:"\\ea81"}),r.trashcan=new r("trashcan",{fontCharacter:"\\ea81"}),r.history=new r("history",{fontCharacter:"\\ea82"}),r.clock=new r("clock",{fontCharacter:"\\ea82"}),r.folder=new r("folder",{fontCharacter:"\\ea83"}),r.fileDirectory=new r("file-directory",{fontCharacter:"\\ea83"}),r.symbolFolder=new r("symbol-folder",{fontCharacter:"\\ea83"}),r.logoGithub=new r("logo-github",{fontCharacter:"\\ea84"}),r.markGithub=new r("mark-github",{fontCharacter:"\\ea84"}),r.github=new r("github",{fontCharacter:"\\ea84"}),r.terminal=new r("terminal",{fontCharacter:"\\ea85"}),r.console=new r("console",{fontCharacter:"\\ea85"}),r.repl=new r("repl",{fontCharacter:"\\ea85"}),r.zap=new r("zap",{fontCharacter:"\\ea86"}),r.symbolEvent=new r("symbol-event",{fontCharacter:"\\ea86"}),r.error=new r("error",{fontCharacter:"\\ea87"}),r.stop=new r("stop",{fontCharacter:"\\ea87"}),r.variable=new r("variable",{fontCharacter:"\\ea88"}),r.symbolVariable=new r("symbol-variable",{fontCharacter:"\\ea88"}),r.array=new r("array",{fontCharacter:"\\ea8a"}),r.symbolArray=new r("symbol-array",{fontCharacter:"\\ea8a"}),r.symbolModule=new r("symbol-module",{fontCharacter:"\\ea8b"}),r.symbolPackage=new r("symbol-package",{fontCharacter:"\\ea8b"}),r.symbolNamespace=new r("symbol-namespace",{fontCharacter:"\\ea8b"}),r.symbolObject=new r("symbol-object",{fontCharacter:"\\ea8b"}),r.symbolMethod=new r("symbol-method",{fontCharacter:"\\ea8c"}),r.symbolFunction=new r("symbol-function",{fontCharacter:"\\ea8c"}),r.symbolConstructor=new r("symbol-constructor",{fontCharacter:"\\ea8c"}),r.symbolBoolean=new r("symbol-boolean",{fontCharacter:"\\ea8f"}),r.symbolNull=new r("symbol-null",{fontCharacter:"\\ea8f"}),r.symbolNumeric=new r("symbol-numeric",{fontCharacter:"\\ea90"}),r.symbolNumber=new r("symbol-number",{fontCharacter:"\\ea90"}),r.symbolStructure=new r("symbol-structure",{fontCharacter:"\\ea91"}),r.symbolStruct=new r("symbol-struct",{fontCharacter:"\\ea91"}),r.symbolParameter=new r("symbol-parameter",{fontCharacter:"\\ea92"}),r.symbolTypeParameter=new r("symbol-type-parameter",{fontCharacter:"\\ea92"}),r.symbolKey=new r("symbol-key",{fontCharacter:"\\ea93"}),r.symbolText=new r("symbol-text",{fontCharacter:"\\ea93"}),r.symbolReference=new r("symbol-reference",{fontCharacter:"\\ea94"}),r.goToFile=new r("go-to-file",{fontCharacter:"\\ea94"}),r.symbolEnum=new r("symbol-enum",{fontCharacter:"\\ea95"}),r.symbolValue=new r("symbol-value",{fontCharacter:"\\ea95"}),r.symbolRuler=new r("symbol-ruler",{fontCharacter:"\\ea96"}),r.symbolUnit=new r("symbol-unit",{fontCharacter:"\\ea96"}),r.activateBreakpoints=new r("activate-breakpoints",{fontCharacter:"\\ea97"}),r.archive=new r("archive",{fontCharacter:"\\ea98"}),r.arrowBoth=new r("arrow-both",{fontCharacter:"\\ea99"}),r.arrowDown=new r("arrow-down",{fontCharacter:"\\ea9a"}),r.arrowLeft=new r("arrow-left",{fontCharacter:"\\ea9b"}),r.arrowRight=new r("arrow-right",{fontCharacter:"\\ea9c"}),r.arrowSmallDown=new r("arrow-small-down",{fontCharacter:"\\ea9d"}),r.arrowSmallLeft=new r("arrow-small-left",{fontCharacter:"\\ea9e"}),r.arrowSmallRight=new r("arrow-small-right",{fontCharacter:"\\ea9f"}),r.arrowSmallUp=new r("arrow-small-up",{fontCharacter:"\\eaa0"}),r.arrowUp=new r("arrow-up",{fontCharacter:"\\eaa1"}),r.bell=new r("bell",{fontCharacter:"\\eaa2"}),r.bold=new r("bold",{fontCharacter:"\\eaa3"}),r.book=new r("book",{fontCharacter:"\\eaa4"}),r.bookmark=new r("bookmark",{fontCharacter:"\\eaa5"}),r.debugBreakpointConditionalUnverified=new r("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),r.debugBreakpointConditional=new r("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),r.debugBreakpointConditionalDisabled=new r("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),r.debugBreakpointDataUnverified=new r("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),r.debugBreakpointData=new r("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),r.debugBreakpointDataDisabled=new r("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),r.debugBreakpointLogUnverified=new r("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),r.debugBreakpointLog=new r("debug-breakpoint-log",{fontCharacter:"\\eaab"}),r.debugBreakpointLogDisabled=new r("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),r.briefcase=new r("briefcase",{fontCharacter:"\\eaac"}),r.broadcast=new r("broadcast",{fontCharacter:"\\eaad"}),r.browser=new r("browser",{fontCharacter:"\\eaae"}),r.bug=new r("bug",{fontCharacter:"\\eaaf"}),r.calendar=new r("calendar",{fontCharacter:"\\eab0"}),r.caseSensitive=new r("case-sensitive",{fontCharacter:"\\eab1"}),r.check=new r("check",{fontCharacter:"\\eab2"}),r.checklist=new r("checklist",{fontCharacter:"\\eab3"}),r.chevronDown=new r("chevron-down",{fontCharacter:"\\eab4"}),r.dropDownButton=new r("drop-down-button",r.chevronDown.definition),r.chevronLeft=new r("chevron-left",{fontCharacter:"\\eab5"}),r.chevronRight=new r("chevron-right",{fontCharacter:"\\eab6"}),r.chevronUp=new r("chevron-up",{fontCharacter:"\\eab7"}),r.chromeClose=new r("chrome-close",{fontCharacter:"\\eab8"}),r.chromeMaximize=new r("chrome-maximize",{fontCharacter:"\\eab9"}),r.chromeMinimize=new r("chrome-minimize",{fontCharacter:"\\eaba"}),r.chromeRestore=new r("chrome-restore",{fontCharacter:"\\eabb"}),r.circleOutline=new r("circle-outline",{fontCharacter:"\\eabc"}),r.debugBreakpointUnverified=new r("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),r.circleSlash=new r("circle-slash",{fontCharacter:"\\eabd"}),r.circuitBoard=new r("circuit-board",{fontCharacter:"\\eabe"}),r.clearAll=new r("clear-all",{fontCharacter:"\\eabf"}),r.clippy=new r("clippy",{fontCharacter:"\\eac0"}),r.closeAll=new r("close-all",{fontCharacter:"\\eac1"}),r.cloudDownload=new r("cloud-download",{fontCharacter:"\\eac2"}),r.cloudUpload=new r("cloud-upload",{fontCharacter:"\\eac3"}),r.code=new r("code",{fontCharacter:"\\eac4"}),r.collapseAll=new r("collapse-all",{fontCharacter:"\\eac5"}),r.colorMode=new r("color-mode",{fontCharacter:"\\eac6"}),r.commentDiscussion=new r("comment-discussion",{fontCharacter:"\\eac7"}),r.compareChanges=new r("compare-changes",{fontCharacter:"\\eafd"}),r.creditCard=new r("credit-card",{fontCharacter:"\\eac9"}),r.dash=new r("dash",{fontCharacter:"\\eacc"}),r.dashboard=new r("dashboard",{fontCharacter:"\\eacd"}),r.database=new r("database",{fontCharacter:"\\eace"}),r.debugContinue=new r("debug-continue",{fontCharacter:"\\eacf"}),r.debugDisconnect=new r("debug-disconnect",{fontCharacter:"\\ead0"}),r.debugPause=new r("debug-pause",{fontCharacter:"\\ead1"}),r.debugRestart=new r("debug-restart",{fontCharacter:"\\ead2"}),r.debugStart=new r("debug-start",{fontCharacter:"\\ead3"}),r.debugStepInto=new r("debug-step-into",{fontCharacter:"\\ead4"}),r.debugStepOut=new r("debug-step-out",{fontCharacter:"\\ead5"}),r.debugStepOver=new r("debug-step-over",{fontCharacter:"\\ead6"}),r.debugStop=new r("debug-stop",{fontCharacter:"\\ead7"}),r.debug=new r("debug",{fontCharacter:"\\ead8"}),r.deviceCameraVideo=new r("device-camera-video",{fontCharacter:"\\ead9"}),r.deviceCamera=new r("device-camera",{fontCharacter:"\\eada"}),r.deviceMobile=new r("device-mobile",{fontCharacter:"\\eadb"}),r.diffAdded=new r("diff-added",{fontCharacter:"\\eadc"}),r.diffIgnored=new r("diff-ignored",{fontCharacter:"\\eadd"}),r.diffModified=new r("diff-modified",{fontCharacter:"\\eade"}),r.diffRemoved=new r("diff-removed",{fontCharacter:"\\eadf"}),r.diffRenamed=new r("diff-renamed",{fontCharacter:"\\eae0"}),r.diff=new r("diff",{fontCharacter:"\\eae1"}),r.discard=new r("discard",{fontCharacter:"\\eae2"}),r.editorLayout=new r("editor-layout",{fontCharacter:"\\eae3"}),r.emptyWindow=new r("empty-window",{fontCharacter:"\\eae4"}),r.exclude=new r("exclude",{fontCharacter:"\\eae5"}),r.extensions=new r("extensions",{fontCharacter:"\\eae6"}),r.eyeClosed=new r("eye-closed",{fontCharacter:"\\eae7"}),r.fileBinary=new r("file-binary",{fontCharacter:"\\eae8"}),r.fileCode=new r("file-code",{fontCharacter:"\\eae9"}),r.fileMedia=new r("file-media",{fontCharacter:"\\eaea"}),r.filePdf=new r("file-pdf",{fontCharacter:"\\eaeb"}),r.fileSubmodule=new r("file-submodule",{fontCharacter:"\\eaec"}),r.fileSymlinkDirectory=new r("file-symlink-directory",{fontCharacter:"\\eaed"}),r.fileSymlinkFile=new r("file-symlink-file",{fontCharacter:"\\eaee"}),r.fileZip=new r("file-zip",{fontCharacter:"\\eaef"}),r.files=new r("files",{fontCharacter:"\\eaf0"}),r.filter=new r("filter",{fontCharacter:"\\eaf1"}),r.flame=new r("flame",{fontCharacter:"\\eaf2"}),r.foldDown=new r("fold-down",{fontCharacter:"\\eaf3"}),r.foldUp=new r("fold-up",{fontCharacter:"\\eaf4"}),r.fold=new r("fold",{fontCharacter:"\\eaf5"}),r.folderActive=new r("folder-active",{fontCharacter:"\\eaf6"}),r.folderOpened=new r("folder-opened",{fontCharacter:"\\eaf7"}),r.gear=new r("gear",{fontCharacter:"\\eaf8"}),r.gift=new r("gift",{fontCharacter:"\\eaf9"}),r.gistSecret=new r("gist-secret",{fontCharacter:"\\eafa"}),r.gist=new r("gist",{fontCharacter:"\\eafb"}),r.gitCommit=new r("git-commit",{fontCharacter:"\\eafc"}),r.gitCompare=new r("git-compare",{fontCharacter:"\\eafd"}),r.gitMerge=new r("git-merge",{fontCharacter:"\\eafe"}),r.githubAction=new r("github-action",{fontCharacter:"\\eaff"}),r.githubAlt=new r("github-alt",{fontCharacter:"\\eb00"}),r.globe=new r("globe",{fontCharacter:"\\eb01"}),r.grabber=new r("grabber",{fontCharacter:"\\eb02"}),r.graph=new r("graph",{fontCharacter:"\\eb03"}),r.gripper=new r("gripper",{fontCharacter:"\\eb04"}),r.heart=new r("heart",{fontCharacter:"\\eb05"}),r.home=new r("home",{fontCharacter:"\\eb06"}),r.horizontalRule=new r("horizontal-rule",{fontCharacter:"\\eb07"}),r.hubot=new r("hubot",{fontCharacter:"\\eb08"}),r.inbox=new r("inbox",{fontCharacter:"\\eb09"}),r.issueClosed=new r("issue-closed",{fontCharacter:"\\eba4"}),r.issueReopened=new r("issue-reopened",{fontCharacter:"\\eb0b"}),r.issues=new r("issues",{fontCharacter:"\\eb0c"}),r.italic=new r("italic",{fontCharacter:"\\eb0d"}),r.jersey=new r("jersey",{fontCharacter:"\\eb0e"}),r.json=new r("json",{fontCharacter:"\\eb0f"}),r.kebabVertical=new r("kebab-vertical",{fontCharacter:"\\eb10"}),r.key=new r("key",{fontCharacter:"\\eb11"}),r.law=new r("law",{fontCharacter:"\\eb12"}),r.lightbulbAutofix=new r("lightbulb-autofix",{fontCharacter:"\\eb13"}),r.linkExternal=new r("link-external",{fontCharacter:"\\eb14"}),r.link=new r("link",{fontCharacter:"\\eb15"}),r.listOrdered=new r("list-ordered",{fontCharacter:"\\eb16"}),r.listUnordered=new r("list-unordered",{fontCharacter:"\\eb17"}),r.liveShare=new r("live-share",{fontCharacter:"\\eb18"}),r.loading=new r("loading",{fontCharacter:"\\eb19"}),r.location=new r("location",{fontCharacter:"\\eb1a"}),r.mailRead=new r("mail-read",{fontCharacter:"\\eb1b"}),r.mail=new r("mail",{fontCharacter:"\\eb1c"}),r.markdown=new r("markdown",{fontCharacter:"\\eb1d"}),r.megaphone=new r("megaphone",{fontCharacter:"\\eb1e"}),r.mention=new r("mention",{fontCharacter:"\\eb1f"}),r.milestone=new r("milestone",{fontCharacter:"\\eb20"}),r.mortarBoard=new r("mortar-board",{fontCharacter:"\\eb21"}),r.move=new r("move",{fontCharacter:"\\eb22"}),r.multipleWindows=new r("multiple-windows",{fontCharacter:"\\eb23"}),r.mute=new r("mute",{fontCharacter:"\\eb24"}),r.noNewline=new r("no-newline",{fontCharacter:"\\eb25"}),r.note=new r("note",{fontCharacter:"\\eb26"}),r.octoface=new r("octoface",{fontCharacter:"\\eb27"}),r.openPreview=new r("open-preview",{fontCharacter:"\\eb28"}),r.package_=new r("package",{fontCharacter:"\\eb29"}),r.paintcan=new r("paintcan",{fontCharacter:"\\eb2a"}),r.pin=new r("pin",{fontCharacter:"\\eb2b"}),r.play=new r("play",{fontCharacter:"\\eb2c"}),r.run=new r("run",{fontCharacter:"\\eb2c"}),r.plug=new r("plug",{fontCharacter:"\\eb2d"}),r.preserveCase=new r("preserve-case",{fontCharacter:"\\eb2e"}),r.preview=new r("preview",{fontCharacter:"\\eb2f"}),r.project=new r("project",{fontCharacter:"\\eb30"}),r.pulse=new r("pulse",{fontCharacter:"\\eb31"}),r.question=new r("question",{fontCharacter:"\\eb32"}),r.quote=new r("quote",{fontCharacter:"\\eb33"}),r.radioTower=new r("radio-tower",{fontCharacter:"\\eb34"}),r.reactions=new r("reactions",{fontCharacter:"\\eb35"}),r.references=new r("references",{fontCharacter:"\\eb36"}),r.refresh=new r("refresh",{fontCharacter:"\\eb37"}),r.regex=new r("regex",{fontCharacter:"\\eb38"}),r.remoteExplorer=new r("remote-explorer",{fontCharacter:"\\eb39"}),r.remote=new r("remote",{fontCharacter:"\\eb3a"}),r.remove=new r("remove",{fontCharacter:"\\eb3b"}),r.replaceAll=new r("replace-all",{fontCharacter:"\\eb3c"}),r.replace=new r("replace",{fontCharacter:"\\eb3d"}),r.repoClone=new r("repo-clone",{fontCharacter:"\\eb3e"}),r.repoForcePush=new r("repo-force-push",{fontCharacter:"\\eb3f"}),r.repoPull=new r("repo-pull",{fontCharacter:"\\eb40"}),r.repoPush=new r("repo-push",{fontCharacter:"\\eb41"}),r.report=new r("report",{fontCharacter:"\\eb42"}),r.requestChanges=new r("request-changes",{fontCharacter:"\\eb43"}),r.rocket=new r("rocket",{fontCharacter:"\\eb44"}),r.rootFolderOpened=new r("root-folder-opened",{fontCharacter:"\\eb45"}),r.rootFolder=new r("root-folder",{fontCharacter:"\\eb46"}),r.rss=new r("rss",{fontCharacter:"\\eb47"}),r.ruby=new r("ruby",{fontCharacter:"\\eb48"}),r.saveAll=new r("save-all",{fontCharacter:"\\eb49"}),r.saveAs=new r("save-as",{fontCharacter:"\\eb4a"}),r.save=new r("save",{fontCharacter:"\\eb4b"}),r.screenFull=new r("screen-full",{fontCharacter:"\\eb4c"}),r.screenNormal=new r("screen-normal",{fontCharacter:"\\eb4d"}),r.searchStop=new r("search-stop",{fontCharacter:"\\eb4e"}),r.server=new r("server",{fontCharacter:"\\eb50"}),r.settingsGear=new r("settings-gear",{fontCharacter:"\\eb51"}),r.settings=new r("settings",{fontCharacter:"\\eb52"}),r.shield=new r("shield",{fontCharacter:"\\eb53"}),r.smiley=new r("smiley",{fontCharacter:"\\eb54"}),r.sortPrecedence=new r("sort-precedence",{fontCharacter:"\\eb55"}),r.splitHorizontal=new r("split-horizontal",{fontCharacter:"\\eb56"}),r.splitVertical=new r("split-vertical",{fontCharacter:"\\eb57"}),r.squirrel=new r("squirrel",{fontCharacter:"\\eb58"}),r.starFull=new r("star-full",{fontCharacter:"\\eb59"}),r.starHalf=new r("star-half",{fontCharacter:"\\eb5a"}),r.symbolClass=new r("symbol-class",{fontCharacter:"\\eb5b"}),r.symbolColor=new r("symbol-color",{fontCharacter:"\\eb5c"}),r.symbolConstant=new r("symbol-constant",{fontCharacter:"\\eb5d"}),r.symbolEnumMember=new r("symbol-enum-member",{fontCharacter:"\\eb5e"}),r.symbolField=new r("symbol-field",{fontCharacter:"\\eb5f"}),r.symbolFile=new r("symbol-file",{fontCharacter:"\\eb60"}),r.symbolInterface=new r("symbol-interface",{fontCharacter:"\\eb61"}),r.symbolKeyword=new r("symbol-keyword",{fontCharacter:"\\eb62"}),r.symbolMisc=new r("symbol-misc",{fontCharacter:"\\eb63"}),r.symbolOperator=new r("symbol-operator",{fontCharacter:"\\eb64"}),r.symbolProperty=new r("symbol-property",{fontCharacter:"\\eb65"}),r.wrench=new r("wrench",{fontCharacter:"\\eb65"}),r.wrenchSubaction=new r("wrench-subaction",{fontCharacter:"\\eb65"}),r.symbolSnippet=new r("symbol-snippet",{fontCharacter:"\\eb66"}),r.tasklist=new r("tasklist",{fontCharacter:"\\eb67"}),r.telescope=new r("telescope",{fontCharacter:"\\eb68"}),r.textSize=new r("text-size",{fontCharacter:"\\eb69"}),r.threeBars=new r("three-bars",{fontCharacter:"\\eb6a"}),r.thumbsdown=new r("thumbsdown",{fontCharacter:"\\eb6b"}),r.thumbsup=new r("thumbsup",{fontCharacter:"\\eb6c"}),r.tools=new r("tools",{fontCharacter:"\\eb6d"}),r.triangleDown=new r("triangle-down",{fontCharacter:"\\eb6e"}),r.triangleLeft=new r("triangle-left",{fontCharacter:"\\eb6f"}),r.triangleRight=new r("triangle-right",{fontCharacter:"\\eb70"}),r.triangleUp=new r("triangle-up",{fontCharacter:"\\eb71"}),r.twitter=new r("twitter",{fontCharacter:"\\eb72"}),r.unfold=new r("unfold",{fontCharacter:"\\eb73"}),r.unlock=new r("unlock",{fontCharacter:"\\eb74"}),r.unmute=new r("unmute",{fontCharacter:"\\eb75"}),r.unverified=new r("unverified",{fontCharacter:"\\eb76"}),r.verified=new r("verified",{fontCharacter:"\\eb77"}),r.versions=new r("versions",{fontCharacter:"\\eb78"}),r.vmActive=new r("vm-active",{fontCharacter:"\\eb79"}),r.vmOutline=new r("vm-outline",{fontCharacter:"\\eb7a"}),r.vmRunning=new r("vm-running",{fontCharacter:"\\eb7b"}),r.watch=new r("watch",{fontCharacter:"\\eb7c"}),r.whitespace=new r("whitespace",{fontCharacter:"\\eb7d"}),r.wholeWord=new r("whole-word",{fontCharacter:"\\eb7e"}),r.window=new r("window",{fontCharacter:"\\eb7f"}),r.wordWrap=new r("word-wrap",{fontCharacter:"\\eb80"}),r.zoomIn=new r("zoom-in",{fontCharacter:"\\eb81"}),r.zoomOut=new r("zoom-out",{fontCharacter:"\\eb82"}),r.listFilter=new r("list-filter",{fontCharacter:"\\eb83"}),r.listFlat=new r("list-flat",{fontCharacter:"\\eb84"}),r.listSelection=new r("list-selection",{fontCharacter:"\\eb85"}),r.selection=new r("selection",{fontCharacter:"\\eb85"}),r.listTree=new r("list-tree",{fontCharacter:"\\eb86"}),r.debugBreakpointFunctionUnverified=new r("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),r.debugBreakpointFunction=new r("debug-breakpoint-function",{fontCharacter:"\\eb88"}),r.debugBreakpointFunctionDisabled=new r("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),r.debugStackframeActive=new r("debug-stackframe-active",{fontCharacter:"\\eb89"}),r.debugStackframeDot=new r("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),r.debugStackframe=new r("debug-stackframe",{fontCharacter:"\\eb8b"}),r.debugStackframeFocused=new r("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),r.debugBreakpointUnsupported=new r("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),r.symbolString=new r("symbol-string",{fontCharacter:"\\eb8d"}),r.debugReverseContinue=new r("debug-reverse-continue",{fontCharacter:"\\eb8e"}),r.debugStepBack=new r("debug-step-back",{fontCharacter:"\\eb8f"}),r.debugRestartFrame=new r("debug-restart-frame",{fontCharacter:"\\eb90"}),r.callIncoming=new r("call-incoming",{fontCharacter:"\\eb92"}),r.callOutgoing=new r("call-outgoing",{fontCharacter:"\\eb93"}),r.menu=new r("menu",{fontCharacter:"\\eb94"}),r.expandAll=new r("expand-all",{fontCharacter:"\\eb95"}),r.feedback=new r("feedback",{fontCharacter:"\\eb96"}),r.groupByRefType=new r("group-by-ref-type",{fontCharacter:"\\eb97"}),r.ungroupByRefType=new r("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),r.account=new r("account",{fontCharacter:"\\eb99"}),r.bellDot=new r("bell-dot",{fontCharacter:"\\eb9a"}),r.debugConsole=new r("debug-console",{fontCharacter:"\\eb9b"}),r.library=new r("library",{fontCharacter:"\\eb9c"}),r.output=new r("output",{fontCharacter:"\\eb9d"}),r.runAll=new r("run-all",{fontCharacter:"\\eb9e"}),r.syncIgnored=new r("sync-ignored",{fontCharacter:"\\eb9f"}),r.pinned=new r("pinned",{fontCharacter:"\\eba0"}),r.githubInverted=new r("github-inverted",{fontCharacter:"\\eba1"}),r.debugAlt=new r("debug-alt",{fontCharacter:"\\eb91"}),r.serverProcess=new r("server-process",{fontCharacter:"\\eba2"}),r.serverEnvironment=new r("server-environment",{fontCharacter:"\\eba3"}),r.pass=new r("pass",{fontCharacter:"\\eba4"}),r.stopCircle=new r("stop-circle",{fontCharacter:"\\eba5"}),r.playCircle=new r("play-circle",{fontCharacter:"\\eba6"}),r.record=new r("record",{fontCharacter:"\\eba7"}),r.debugAltSmall=new r("debug-alt-small",{fontCharacter:"\\eba8"}),r.vmConnect=new r("vm-connect",{fontCharacter:"\\eba9"}),r.cloud=new r("cloud",{fontCharacter:"\\ebaa"}),r.merge=new r("merge",{fontCharacter:"\\ebab"}),r.exportIcon=new r("export",{fontCharacter:"\\ebac"}),r.graphLeft=new r("graph-left",{fontCharacter:"\\ebad"}),r.magnet=new r("magnet",{fontCharacter:"\\ebae"}),r.notebook=new r("notebook",{fontCharacter:"\\ebaf"}),r.redo=new r("redo",{fontCharacter:"\\ebb0"}),r.checkAll=new r("check-all",{fontCharacter:"\\ebb1"}),r.pinnedDirty=new r("pinned-dirty",{fontCharacter:"\\ebb2"}),r.passFilled=new r("pass-filled",{fontCharacter:"\\ebb3"}),r.circleLargeFilled=new r("circle-large-filled",{fontCharacter:"\\ebb4"}),r.circleLargeOutline=new r("circle-large-outline",{fontCharacter:"\\ebb5"}),r.combine=new r("combine",{fontCharacter:"\\ebb6"}),r.gather=new r("gather",{fontCharacter:"\\ebb6"}),r.table=new r("table",{fontCharacter:"\\ebb7"}),r.variableGroup=new r("variable-group",{fontCharacter:"\\ebb8"}),r.typeHierarchy=new r("type-hierarchy",{fontCharacter:"\\ebb9"}),r.typeHierarchySub=new r("type-hierarchy-sub",{fontCharacter:"\\ebba"}),r.typeHierarchySuper=new r("type-hierarchy-super",{fontCharacter:"\\ebbb"}),r.gitPullRequestCreate=new r("git-pull-request-create",{fontCharacter:"\\ebbc"}),r.runAbove=new r("run-above",{fontCharacter:"\\ebbd"}),r.runBelow=new r("run-below",{fontCharacter:"\\ebbe"}),r.notebookTemplate=new r("notebook-template",{fontCharacter:"\\ebbf"}),r.debugRerun=new r("debug-rerun",{fontCharacter:"\\ebc0"}),r.workspaceTrusted=new r("workspace-trusted",{fontCharacter:"\\ebc1"}),r.workspaceUntrusted=new r("workspace-untrusted",{fontCharacter:"\\ebc2"}),r.workspaceUnspecified=new r("workspace-unspecified",{fontCharacter:"\\ebc3"}),r.terminalCmd=new r("terminal-cmd",{fontCharacter:"\\ebc4"}),r.terminalDebian=new r("terminal-debian",{fontCharacter:"\\ebc5"}),r.terminalLinux=new r("terminal-linux",{fontCharacter:"\\ebc6"}),r.terminalPowershell=new r("terminal-powershell",{fontCharacter:"\\ebc7"}),r.terminalTmux=new r("terminal-tmux",{fontCharacter:"\\ebc8"}),r.terminalUbuntu=new r("terminal-ubuntu",{fontCharacter:"\\ebc9"}),r.terminalBash=new r("terminal-bash",{fontCharacter:"\\ebca"}),r.arrowSwap=new r("arrow-swap",{fontCharacter:"\\ebcb"}),r.copy=new r("copy",{fontCharacter:"\\ebcc"}),r.personAdd=new r("person-add",{fontCharacter:"\\ebcd"}),r.filterFilled=new r("filter-filled",{fontCharacter:"\\ebce"}),r.wand=new r("wand",{fontCharacter:"\\ebcf"}),r.debugLineByLine=new r("debug-line-by-line",{fontCharacter:"\\ebd0"}),r.inspect=new r("inspect",{fontCharacter:"\\ebd1"}),r.layers=new r("layers",{fontCharacter:"\\ebd2"}),r.layersDot=new r("layers-dot",{fontCharacter:"\\ebd3"}),r.layersActive=new r("layers-active",{fontCharacter:"\\ebd4"}),r.compass=new r("compass",{fontCharacter:"\\ebd5"}),r.compassDot=new r("compass-dot",{fontCharacter:"\\ebd6"}),r.compassActive=new r("compass-active",{fontCharacter:"\\ebd7"}),r.azure=new r("azure",{fontCharacter:"\\ebd8"}),r.issueDraft=new r("issue-draft",{fontCharacter:"\\ebd9"}),r.gitPullRequestClosed=new r("git-pull-request-closed",{fontCharacter:"\\ebda"}),r.gitPullRequestDraft=new r("git-pull-request-draft",{fontCharacter:"\\ebdb"}),r.debugAll=new r("debug-all",{fontCharacter:"\\ebdc"}),r.debugCoverage=new r("debug-coverage",{fontCharacter:"\\ebdd"}),r.runErrors=new r("run-errors",{fontCharacter:"\\ebde"}),r.folderLibrary=new r("folder-library",{fontCharacter:"\\ebdf"}),r.debugContinueSmall=new r("debug-continue-small",{fontCharacter:"\\ebe0"}),r.beakerStop=new r("beaker-stop",{fontCharacter:"\\ebe1"}),r.graphLine=new r("graph-line",{fontCharacter:"\\ebe2"}),r.graphScatter=new r("graph-scatter",{fontCharacter:"\\ebe3"}),r.pieChart=new r("pie-chart",{fontCharacter:"\\ebe4"}),r.bracket=new r("bracket",r.json.definition),r.bracketDot=new r("bracket-dot",{fontCharacter:"\\ebe5"}),r.bracketError=new r("bracket-error",{fontCharacter:"\\ebe6"}),r.lockSmall=new r("lock-small",{fontCharacter:"\\ebe7"}),r.azureDevops=new r("azure-devops",{fontCharacter:"\\ebe8"}),r.verifiedFilled=new r("verified-filled",{fontCharacter:"\\ebe9"})}(K||(K={}))},"VrN/":function(rt,be,Z){(function(ie,J){rt.exports=J()})(this,function(){"use strict";var ie=navigator.userAgent,J=navigator.platform,P=/gecko\/\d/i.test(ie),X=/MSIE \d/.test(ie),j=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ie),U=/Edge\/(\d+)/.exec(ie),K=X||j||U,G=K&&(X?document.documentMode||6:+(U||j)[1]),r=!U&&/WebKit\//.test(ie),L=r&&/Qt\/\d+\.\d+/.test(ie),v=!U&&/Chrome\//.test(ie),m=/Opera\//.test(ie),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ie),u=/PhantomJS/.test(ie),f=!U&&/AppleWebKit/.test(ie)&&/Mobile\/\w+/.test(ie),l=/Android/.test(ie),o=f||l||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ie),s=f||/Mac/.test(J),a=/\bCrOS\b/.test(ie),O=/win/i.test(J),E=m&&ie.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(m=!1,r=!0);var w=s&&(L||m&&(E==null||E<12.11)),D=P||K&&G>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var A=function(e,t){var i=e.className,n=R(t).exec(i);if(n){var c=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(c?n[1]+c:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return C(e).appendChild(t)}function d(e,t,i,n){var c=document.createElement(e);if(i&&(c.className=i),n&&(c.style.cssText=n),typeof t=="string")c.appendChild(document.createTextNode(t));else if(t)for(var N=0;N=t)return z+(t-N);z+=Q-N,z+=i-z%i,N=Q+1}}var $=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};$.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},$.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return n+Math.min(z,t-c);if(c+=N-n,c+=i-c%i,n=N+1,c>=t)return n}}var ce=[""];function he(e){for(;ce.length<=e;)ce.push(re(ce)+" ");return ce[e]}function re(e){return e[e.length-1]}function fe(e,t){for(var i=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Ce.test(e))}function Be(e,t){return t?t.source.indexOf("\\w")>-1&&Ne(e)?!0:t.test(e):Ne(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])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 Se(e){return e.charCodeAt(0)>=768&&ve.test(e)}function Ie(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var c=(t+i)/2,N=n<0?Math.ceil(c):Math.floor(c);if(N==t)return e(N)?t:i;e(N)?i=N:t=N+n}}function Ve(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var c=!1,N=0;Nt||t==i&&z.to==t)&&(n(Math.max(z.from,t),Math.min(z.to,i),z.level==1?"rtl":"ltr",N),c=!0)}c||n(t,i,"ltr")}var Qe=null;function Je(e,t,i){var n;Qe=null;for(var c=0;ct)return c;N.to==t&&(N.from!=N.to&&i=="before"?n=c:Qe=c),N.from==t&&(N.from!=N.to&&i!="before"?n=c:Qe=c)}return n!=null?n:Qe}var st=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(te){return te<=247?e.charAt(te):1424<=te&&te<=1524?"R":1536<=te&&te<=1785?t.charAt(te-1536):1774<=te&&te<=2220?"r":8192<=te&&te<=8203?"w":te==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,N=/[LRr]/,z=/[Lb1n]/,Q=/[1n]/;function q(te,pe,ye){this.level=te,this.from=pe,this.to=ye}return function(te,pe){var ye=pe=="ltr"?"L":"R";if(te.length==0||pe=="ltr"&&!n.test(te))return!1;for(var Me=te.length,ke=[],Ke=0;Ke-1&&(n[t]=c.slice(0,N).concat(c.slice(N+1)))}}}function je(e,t){var i=dt(e,t);if(!i.length)return;for(var n=Array.prototype.slice.call(arguments,2),c=0;c0}function we(e){e.prototype.on=function(t,i){Ue(this,t,i)},e.prototype.off=function(t,i){lt(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ue(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function de(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function me(e){ae(e),ue(e)}function xe(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),s&&e.ctrlKey&&t==1&&(t=3),t}var He=function(){if(K&&G<9)return!1;var e=d("div");return"draggable"in e||"dragDrop"in e}(),ze;function ht(e){if(ze==null){var t=d("span","\u200B");T(e,d("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ze=t.offsetWidth<=1&&t.offsetHeight>2&&!(K&&G<8))}var i=ze?d("span","\u200B"):d("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ot;function yt(e){if(ot!=null)return ot;var t=T(e,document.createTextNode("A\u062EA")),i=y(t,0,1).getBoundingClientRect(),n=y(t,1,2).getBoundingClientRect();return C(e),!i||i.left==i.right?!1:ot=n.right-i.right<3}var ct=` -b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var d=e.indexOf(` -`,t);d==-1&&(d=e.length);var N=e.slice(t,e.charAt(d-1)=="\r"?d-1:d),z=N.indexOf("\r");z!=-1?(i.push(N.slice(0,z)),t+=z+1):(i.push(N),t=d+1)}return i}:function(e){return e.split(/\r\n?|\n/)},ft=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Ot=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),It=null;function qt(e){if(It!=null)return It;var t=T(e,c("span","x")),i=t.getBoundingClientRect(),n=y(t,0,1).getBoundingClientRect();return It=Math.abs(i.left-n.left)>1}var Zt={},Dt={};function Cr(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Zt[e]=t}function Kr(e,t){Dt[e]=t}function _t(e){if(typeof e=="string"&&Dt.hasOwnProperty(e))e=Dt[e];else if(e&&typeof e.name=="string"&&Dt.hasOwnProperty(e.name)){var t=Dt[e.name];typeof t=="string"&&(t={name:t}),e=Fe(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return _t("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return _t("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Lr(e,t){t=_t(t);var i=Zt[t.name];if(!i)return Lr(e,"text/plain");var n=i(e,t);if(Et.hasOwnProperty(t.name)){var d=Et[t.name];for(var N in d){if(!d.hasOwnProperty(N))continue;n.hasOwnProperty(N)&&(n["_"+N]=n[N]),n[N]=d[N]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var z in t.modeProps)n[z]=t.modeProps[z];return n}var Et={};function wt(e,t){var i=Et.hasOwnProperty(e)?Et[e]:Et[e]={};g(t,i)}function Ut(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var d=t[n];d instanceof Array&&(d=d.concat([])),i[n]=d}return i}function tr(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function dr(e,t,i){return e.startState?e.startState(t,i):!0}var Nt=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Nt.prototype.eol=function(){return this.pos>=this.string.length},Nt.prototype.sol=function(){return this.pos==this.lineStart},Nt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Nt.prototype.next=function(){if(this.post},Nt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Nt.prototype.skipToEnd=function(){this.pos=this.string.length},Nt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Nt.prototype.backUp=function(e){this.pos-=e},Nt.prototype.column=function(){return this.lastColumnPos0?null:(N&&t!==!1&&(this.pos+=N[0].length),N)}},Nt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Nt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Nt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Nt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function mt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var n=0;;++n){var d=i.children[n],N=d.chunkSize();if(t=e.first&&ti?Ze(i,mt(e,i).text.length):k(t,mt(e,t.line).text.length)}function k(e,t){var i=e.ch;return i==null||i>t?Ze(e.line,t):i<0?Ze(e.line,0):e}function W(e,t){for(var i=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},V.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},V.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},V.fromSaved=function(e,t,i){return t instanceof ee?new V(e,Ut(e.mode,t.state),i,t.lookAhead):new V(e,Ut(e.mode,t),i)},V.prototype.save=function(e){var t=e!==!1?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ee(t,this.maxLookAhead):t};function Ee(e,t,i,n){var d=[e.state.modeGen],N={};Er(e,t.text,e.doc.mode,i,function(te,pe){return d.push(te,pe)},N,n);for(var z=i.state,Q=function(te){i.baseTokens=d;var pe=e.state.overlays[te],ye=1,Me=0;i.state=!0,Er(e,t.text,pe.mode,i,function(ke,Ke){for(var $e=ye;Meke&&d.splice(ye,1,ke,d[ye+1],et),ye+=2,Me=Math.min(ke,et)}if(!Ke)return;if(pe.opaque)d.splice($e,ye-$e,ke,"overlay "+Ke),ye=$e+2;else for(;$ee.options.maxHighlightLength&&Ut(e.doc.mode,n.state),N=Ee(e,t,n);d&&(n.state=d),t.stateAfter=n.save(!d),t.styles=N.styles,N.classes?t.styleClasses=N.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function tt(e,t,i){var n=e.doc,d=e.display;if(!n.mode.startState)return new V(n,!0,t);var N=xr(e,t,i),z=N>n.first&&mt(n,N-1).stateAfter,Q=z?V.fromSaved(n,z,N):new V(n,dr(n.mode),N);return n.iter(N,t,function(q){gt(e,q.text,Q);var te=Q.line;q.stateAfter=te==t-1||te%5==0||te>=d.viewFrom&&tet.start)return N}throw new Error("Mode "+e.name+" failed to advance stream.")}var jt=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function $t(e,t,i,n){var d=e.doc,N=d.mode,z;t=x(d,t);var Q=mt(d,t.line),q=tt(e,t.line,i),te=new Nt(Q.text,e.options.tabSize,q),pe;for(n&&(pe=[]);(n||te.pose.options.maxHighlightLength?(Q=!1,z&>(e,t,n,pe.pos),pe.pos=t.length,ye=null):ye=jr(xt(i,pe,n.state,Me),N),Me){var ke=Me[0].name;ke&&(ye="m-"+(ye?ke+" "+ye:ke))}if(!Q||te!=ye){for(;qz;--Q){if(Q<=N.first)return N.first;var q=mt(N,Q-1),te=q.stateAfter;if(te&&(!i||Q+(te instanceof ee?te.lookAhead:0)<=N.modeFrontier))return Q;var pe=H(q.text,null,e.options.tabSize);(d==null||n>pe)&&(d=Q-1,n=pe)}return d}function Zr(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;n--){var d=mt(e,n).stateAfter;if(d&&(!(d instanceof ee)||n+d.lookAhead=t:N.to>t);(n||(n=[])).push(new hn(z,N.from,q?null:N.to))}}return n}function Vn(e,t,i){var n;if(e)for(var d=0;d=t:N.to>t);if(Q||N.from==t&&z.type=="bookmark"&&(!i||N.marker.insertLeft)){var q=N.from==null||(z.inclusiveLeft?N.from<=t:N.from0&&Q)for(var pt=0;pt0)continue;var pe=[q,1],ye=Ct(te.from,Q.from),Me=Ct(te.to,Q.to);(ye<0||!z.inclusiveLeft&&!ye)&&pe.push({from:te.from,to:Q.from}),(Me>0||!z.inclusiveRight&&!Me)&&pe.push({from:Q.to,to:te.to}),d.splice.apply(d,pe),q+=pe.length-3}return d}function di(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!n||yr(n,N.marker)<0)&&(n=N.marker)}return n}function fr(e,t,i,n,d){var N=mt(e,t),z=cr&&N.markedSpans;if(z)for(var Q=0;Q=0&&ye<=0||pe<=0&&ye>=0)continue;if(pe<=0&&(q.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.to,i)>=0:Ct(te.to,i)>0)||pe>=0&&(q.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.from,n)<=0:Ct(te.from,n)<0))return!0}}function Ar(e){for(var t;t=ar(e);)e=t.find(-1,!0).line;return e}function Yn(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function xn(e){for(var t,i;t=Kt(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function ci(e,t){var i=mt(e,t),n=Ar(i);return i==n?t:Rt(n)}function Tn(e,t){if(t>e.lastLine())return t;var i=mt(e,t),n;if(!an(e,i))return t;for(;n=Kt(i);)i=n.find(1,!0).line;return Rt(i)+1}function an(e,t){var i=cr&&t.markedSpans;if(i)for(var n=void 0,d=0;dt.maxLineLength&&(t.maxLineLength=d,t.maxLine=n)})}var Mn=function(e,t,i){this.text=e,En(this,t),this.height=i?i(this):1};Mn.prototype.lineNo=function(){return Rt(this)},we(Mn);function ua(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),di(e),En(e,i);var d=n?n(e):1;d!=e.height&&Jt(e,d)}function vt(e){e.parent=null,di(e)}var At={},Tt={};function kt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Tt:At;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Bt(e,t){var i=S("span",null,null,r?"padding-right: .1px":null),n={pre:S("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var d=0;d<=(t.rest?t.rest.length:0);d++){var N=d?t.rest[d-1]:t.line,z=void 0;n.pos=0,n.addToken=Ft,yt(e.display.measure)&&(z=qe(N,e.doc.direction))&&(n.addToken=Dr(n.addToken,z)),n.map=[];var Q=t!=e.display.externalMeasured&&Rt(N);dn(N,n,Ye(e,N,Q)),N.styleClasses&&(N.styleClasses.bgClass&&(n.bgClass=_(N.styleClasses.bgClass,n.bgClass||"")),N.styleClasses.textClass&&(n.textClass=_(N.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(ht(e.display.measure))),d==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(r){var q=n.content.lastChild;(/\bcm-tab\b/.test(q.className)||q.querySelector&&q.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return je(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=_(n.pre.className,n.textClass||"")),n}function Yt(e){var t=c("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ft(e,t,i,n,d,N,z){if(!t)return;var Q=e.splitSpaces?ur(t,e.trailingSpace):t,q=e.cm.state.specialChars,te=!1,pe;if(!q.test(t))e.col+=t.length,pe=document.createTextNode(Q),e.map.push(e.pos,e.pos+t.length,pe),K&&G<9&&(te=!0),e.pos+=t.length;else{pe=document.createDocumentFragment();for(var ye=0;;){q.lastIndex=ye;var Me=q.exec(t),ke=Me?Me.index-ye:t.length-ye;if(ke){var Ke=document.createTextNode(Q.slice(ye,ye+ke));K&&G<9?pe.appendChild(c("span",[Ke])):pe.appendChild(Ke),e.map.push(e.pos,e.pos+ke,Ke),e.col+=ke,e.pos+=ke}if(!Me)break;ye+=ke+1;var $e=void 0;if(Me[0]==" "){var et=e.cm.options.tabSize,nt=et-e.col%et;$e=pe.appendChild(c("span",he(nt),"cm-tab")),$e.setAttribute("role","presentation"),$e.setAttribute("cm-text"," "),e.col+=nt}else Me[0]=="\r"||Me[0]==` -`?($e=pe.appendChild(c("span",Me[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),$e.setAttribute("cm-text",Me[0]),e.col+=1):($e=e.cm.options.specialCharPlaceholder(Me[0]),$e.setAttribute("cm-text",Me[0]),K&&G<9?pe.appendChild(c("span",[$e])):pe.appendChild($e),e.col+=1);e.map.push(e.pos,e.pos+1,$e),e.pos++}}if(e.trailingSpace=Q.charCodeAt(t.length-1)==32,i||n||d||te||N||z){var ut=i||"";n&&(ut+=n),d&&(ut+=d);var it=c("span",[pe],ut,N);if(z)for(var pt in z)z.hasOwnProperty(pt)&&pt!="style"&&pt!="class"&&it.setAttribute(pt,z[pt]);return e.content.appendChild(it)}e.content.appendChild(pe)}function ur(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",d=0;dte&&ye.from<=te);Me++);if(ye.to>=pe)return e(i,n,d,N,z,Q,q);e(i,n.slice(0,ye.to-te),d,N,null,Q,q),N=null,n=n.slice(ye.to-te),te=ye.to}}}function Pt(e,t,i,n){var d=!n&&i.widgetNode;d&&e.map.push(e.pos,e.pos+t,d),!n&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",i.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=t,e.trailingSpace=!1}function dn(e,t,i){var n=e.markedSpans,d=e.text,N=0;if(!n){for(var z=1;zq||Lt.collapsed&&bt.to==q&&bt.from==q)){if(bt.to!=null&&bt.to!=q&&ke>bt.to&&(ke=bt.to,$e=""),Lt.className&&(Ke+=" "+Lt.className),Lt.css&&(Me=(Me?Me+";":"")+Lt.css),Lt.startStyle&&bt.from==q&&(et+=" "+Lt.startStyle),Lt.endStyle&&bt.to==ke&&(pt||(pt=[])).push(Lt.endStyle,bt.to),Lt.title&&((ut||(ut={})).title=Lt.title),Lt.attributes)for(var Xt in Lt.attributes)(ut||(ut={}))[Xt]=Lt.attributes[Xt];Lt.collapsed&&(!nt||yr(nt.marker,Lt)<0)&&(nt=bt)}else bt.from>q&&ke>bt.from&&(ke=bt.from)}if(pt)for(var gr=0;gr=Q)break;for(var Gr=Math.min(Q,ke);;){if(pe){var Nr=q+pe.length;if(!nt){var sr=Nr>Gr?pe.slice(0,Gr-q):pe;t.addToken(t,sr,ye?ye+Ke:Ke,et,q+sr.length==ke?$e:"",Me,ut)}if(Nr>=Gr){pe=pe.slice(Gr-q),q=Gr;break}q=Nr,et=""}pe=d.slice(N,N=i[te++]),ye=kt(i[te++],t.cm.options)}}}function Wt(e,t,i){this.line=t,this.rest=xn(t),this.size=this.rest?Rt(re(this.rest))-i+1:1,this.node=this.text=null,this.hidden=an(e,t)}function kr(e,t,i){for(var n=[],d,N=t;N2&&N.push((q.bottom+te.top)/2-i.top)}}N.push(i.bottom-i.top)}}function es(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;ni)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function Bo(e,t){t=Ar(t);var i=Rt(t),n=e.display.externalMeasured=new Wt(e.doc,t,i);n.lineN=i;var d=n.built=Bt(e,n);return n.text=d.pre,T(e.display.lineMeasure,d.pre),n}function ts(e,t,i,n){return on(e,Xn(e,t),i,n)}function fa(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(N=q-Q,d=N-1,t>=q&&(z="right")),d!=null){if(n=e[te+2],Q==q&&i==(n.insertLeft?"left":"right")&&(z=i),i=="left"&&d==0)for(;te&&e[te-2]==e[te-3]&&e[te-1].insertLeft;)n=e[(te-=3)+2],z="left";if(i=="right"&&d==q-Q)for(;te=0&&!((i=e[d]).left!=i.right);d--);return i}function Ho(e,t,i,n){var d=ns(t.map,i,n),N=d.node,z=d.start,Q=d.end,q=d.collapse,te;if(N.nodeType==3){for(var pe=0;pe<4;pe++){for(;z&&Se(t.line.text.charAt(d.coverStart+z));)--z;for(;d.coverStart+Q0&&(q=n="right");var ye;e.options.lineWrapping&&(ye=N.getClientRects()).length>1?te=ye[n=="right"?ye.length-1:0]:te=N.getBoundingClientRect()}if(K&&G<9&&!z&&(!te||!te.left&&!te.right)){var Me=N.parentNode.getClientRects()[0];Me?te={left:Me.left,right:Me.left+Jn(e.display),top:Me.top,bottom:Me.bottom}:te=rs}for(var ke=te.top-t.rect.top,Ke=te.bottom-t.rect.top,$e=(ke+Ke)/2,et=t.view.measure.heights,nt=0;nt=n.text.length?(q=n.text.length,te="before"):q<=0&&(q=0,te="after"),!Q)return z(te=="before"?q-1:q,te=="before");function pe(Ke,$e,et){var nt=Q[$e],ut=nt.level==1;return z(et?Ke-1:Ke,ut!=et)}var ye=Je(Q,q,te),Me=Qe,ke=pe(q,ye,te=="before");return Me!=null&&(ke.other=pe(q,Me,te!="before")),ke}function us(e,t){var i=0;t=x(e.doc,t),e.options.lineWrapping||(i=Jn(e.display)*t.ch);var n=mt(e.doc,t.line),d=qr(n)+Hi(e.display);return{left:i,right:i,top:d,bottom:d+n.height}}function ga(e,t,i,n,d){var N=Ze(e,t,i);return N.xRel=d,n&&(N.outside=n),N}function va(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return ga(n.first,0,null,-1,-1);var d=lr(n,i),N=n.first+n.size-1;if(d>N)return ga(n.first+n.size-1,mt(n,N).text.length,null,1,1);t<0&&(t=0);for(var z=mt(n,d);;){var Q=Go(e,z,d,t,i),q=nn(z,Q.ch+(Q.xRel>0||Q.outside>0?1:0));if(!q)return Q;var te=q.find(1);if(te.line==d)return te;z=mt(n,d=te.line)}}function hs(e,t,i,n){n-=pa(t);var d=t.text.length,N=We(function(z){return on(e,i,z-1).bottom<=n},d,0);return d=We(function(z){return on(e,i,z).top>n},N,d),{begin:N,end:d}}function ds(e,t,i,n){i||(i=Xn(e,t));var d=Wi(e,t,on(e,i,n),"line").top;return hs(e,t,i,d)}function ya(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Go(e,t,i,n,d){d-=qr(t);var N=Xn(e,t),z=pa(t),Q=0,q=t.text.length,te=!0,pe=qe(t,e.doc.direction);if(pe){var ye=(e.options.lineWrapping?zo:Ko)(e,t,i,N,pe,n,d);te=ye.level!=1,Q=te?ye.from:ye.to-1,q=te?ye.to:ye.from-1}var Me=null,ke=null,Ke=We(function(St){var bt=on(e,N,St);return bt.top+=z,bt.bottom+=z,ya(bt,n,d,!1)?(bt.top<=d&&bt.left<=n&&(Me=St,ke=bt),!0):!1},Q,q),$e,et,nt=!1;if(ke){var ut=n-ke.left=pt.bottom?1:0}return Ke=Ie(t.text,Ke,1),ga(i,Ke,et,nt,n-$e)}function Ko(e,t,i,n,d,N,z){var Q=We(function(ye){var Me=d[ye],ke=Me.level!=1;return ya(en(e,Ze(i,ke?Me.to:Me.from,ke?"before":"after"),"line",t,n),N,z,!0)},0,d.length-1),q=d[Q];if(Q>0){var te=q.level!=1,pe=en(e,Ze(i,te?q.from:q.to,te?"after":"before"),"line",t,n);ya(pe,N,z,!0)&&pe.top>z&&(q=d[Q-1])}return q}function zo(e,t,i,n,d,N,z){var Q=hs(e,t,n,z),q=Q.begin,te=Q.end;/\s/.test(t.text.charAt(te-1))&&te--;for(var pe=null,ye=null,Me=0;Me=te||ke.to<=q)continue;var Ke=ke.level!=1,$e=on(e,n,Ke?Math.min(te,ke.to)-1:Math.max(q,ke.from)).right,et=$eet)&&(pe=ke,ye=et)}return pe||(pe=d[d.length-1]),pe.fromte&&(pe={from:pe.from,to:te,level:pe.level}),pe}var Nn;function $n(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nn==null){Nn=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(c("br"));Nn.appendChild(document.createTextNode("x"))}T(e.measure,Nn);var i=Nn.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),C(e.measure),i||1}function Jn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),i=c("pre",[t],"CodeMirror-line-like");T(e.measure,i);var n=t.getBoundingClientRect(),d=(n.right-n.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ba(e){for(var t=e.display,i={},n={},d=t.gutters.clientLeft,N=t.gutters.firstChild,z=0;N;N=N.nextSibling,++z){var Q=e.display.gutterSpecs[z].className;i[Q]=N.offsetLeft+N.clientLeft+d,n[Q]=N.clientWidth}return{fixedPos:_a(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function _a(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cs(e){var t=$n(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Jn(e.display)-3);return function(d){if(an(e.doc,d))return 0;var N=0;if(d.widgets)for(var z=0;z0&&(te=mt(e.doc,q.line).text).length==q.ch){var pe=H(te,te.length,e.options.tabSize)-te.length;q=Ze(q.line,Math.max(0,Math.round((N-qa(e.display).left)/Jn(e.display))-pe))}return q}function Un(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,n=0;nt)&&(d.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=d.viewTo)cr&&ci(e.doc,t)d.viewFrom?Sn(e):(d.viewFrom+=n,d.viewTo+=n);else if(t<=d.viewFrom&&i>=d.viewTo)Sn(e);else if(t<=d.viewFrom){var N=Gi(e,i,i+n,1);N?(d.view=d.view.slice(N.index),d.viewFrom=N.lineN,d.viewTo+=n):Sn(e)}else if(i>=d.viewTo){var z=Gi(e,t,t,-1);z?(d.view=d.view.slice(0,z.index),d.viewTo=z.lineN):Sn(e)}else{var Q=Gi(e,t,t,-1),q=Gi(e,i,i+n,1);Q&&q?(d.view=d.view.slice(0,Q.index).concat(kr(e,Q.lineN,q.lineN)).concat(d.view.slice(q.index)),d.viewTo+=n):Sn(e)}var te=d.externalMeasured;te&&(i=d.lineN&&t=n.viewTo)return;var N=n.view[Un(e,t)];if(N.node==null)return;var z=N.changes||(N.changes=[]);ne(z,i)==-1&&z.push(i)}function Sn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gi(e,t,i,n){var d=Un(e,t),N,z=e.display.view;if(!cr||i==e.doc.first+e.doc.size)return{index:d,lineN:i};for(var Q=e.display.viewFrom,q=0;q0){if(d==z.length-1)return null;N=Q+z[d].size-t,d++}else N=Q-t;t+=N,i+=N}for(;ci(e.doc,i)!=i;){if(d==(n<0?0:z.length-1))return null;i+=n*z[d-(n<0?1:0)].size,d+=n}return{index:d,lineN:i}}function Vo(e,t,i){var n=e.display,d=n.view;d.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=kr(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=kr(e,t,n.viewFrom).concat(n.view):n.viewFromi&&(n.view=n.view.slice(0,Un(e,i)))),n.viewTo=i}function fs(e){for(var t=e.display.view,i=0,n=0;n=e.display.viewTo||Q.to().line1}var Zt={},Dt={};function Cr(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Zt[e]=t}function Kr(e,t){Dt[e]=t}function _t(e){if(typeof e=="string"&&Dt.hasOwnProperty(e))e=Dt[e];else if(e&&typeof e.name=="string"&&Dt.hasOwnProperty(e.name)){var t=Dt[e.name];typeof t=="string"&&(t={name:t}),e=Fe(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return _t("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return _t("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Lr(e,t){t=_t(t);var i=Zt[t.name];if(!i)return Lr(e,"text/plain");var n=i(e,t);if(Et.hasOwnProperty(t.name)){var c=Et[t.name];for(var N in c){if(!c.hasOwnProperty(N))continue;n.hasOwnProperty(N)&&(n["_"+N]=n[N]),n[N]=c[N]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var z in t.modeProps)n[z]=t.modeProps[z];return n}var Et={};function wt(e,t){var i=Et.hasOwnProperty(e)?Et[e]:Et[e]={};g(t,i)}function Ut(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var c=t[n];c instanceof Array&&(c=c.concat([])),i[n]=c}return i}function tr(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function cr(e,t,i){return e.startState?e.startState(t,i):!0}var Nt=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Nt.prototype.eol=function(){return this.pos>=this.string.length},Nt.prototype.sol=function(){return this.pos==this.lineStart},Nt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Nt.prototype.next=function(){if(this.post},Nt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Nt.prototype.skipToEnd=function(){this.pos=this.string.length},Nt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Nt.prototype.backUp=function(e){this.pos-=e},Nt.prototype.column=function(){return this.lastColumnPos0?null:(N&&t!==!1&&(this.pos+=N[0].length),N)}},Nt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Nt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Nt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Nt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function mt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var n=0;;++n){var c=i.children[n],N=c.chunkSize();if(t=e.first&&ti?Ze(i,mt(e,i).text.length):k(t,mt(e,t.line).text.length)}function k(e,t){var i=e.ch;return i==null||i>t?Ze(e.line,t):i<0?Ze(e.line,0):e}function W(e,t){for(var i=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},V.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},V.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},V.fromSaved=function(e,t,i){return t instanceof ee?new V(e,Ut(e.mode,t.state),i,t.lookAhead):new V(e,Ut(e.mode,t),i)},V.prototype.save=function(e){var t=e!==!1?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ee(t,this.maxLookAhead):t};function Ee(e,t,i,n){var c=[e.state.modeGen],N={};Er(e,t.text,e.doc.mode,i,function(te,pe){return c.push(te,pe)},N,n);for(var z=i.state,Q=function(te){i.baseTokens=c;var pe=e.state.overlays[te],ye=1,Me=0;i.state=!0,Er(e,t.text,pe.mode,i,function(ke,Ke){for(var $e=ye;Meke&&c.splice(ye,1,ke,c[ye+1],et),ye+=2,Me=Math.min(ke,et)}if(!Ke)return;if(pe.opaque)c.splice($e,ye-$e,ke,"overlay "+Ke),ye=$e+2;else for(;$ee.options.maxHighlightLength&&Ut(e.doc.mode,n.state),N=Ee(e,t,n);c&&(n.state=c),t.stateAfter=n.save(!c),t.styles=N.styles,N.classes?t.styleClasses=N.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function tt(e,t,i){var n=e.doc,c=e.display;if(!n.mode.startState)return new V(n,!0,t);var N=xr(e,t,i),z=N>n.first&&mt(n,N-1).stateAfter,Q=z?V.fromSaved(n,z,N):new V(n,cr(n.mode),N);return n.iter(N,t,function(q){gt(e,q.text,Q);var te=Q.line;q.stateAfter=te==t-1||te%5==0||te>=c.viewFrom&&tet.start)return N}throw new Error("Mode "+e.name+" failed to advance stream.")}var jt=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function $t(e,t,i,n){var c=e.doc,N=c.mode,z;t=x(c,t);var Q=mt(c,t.line),q=tt(e,t.line,i),te=new Nt(Q.text,e.options.tabSize,q),pe;for(n&&(pe=[]);(n||te.pose.options.maxHighlightLength?(Q=!1,z&>(e,t,n,pe.pos),pe.pos=t.length,ye=null):ye=jr(xt(i,pe,n.state,Me),N),Me){var ke=Me[0].name;ke&&(ye="m-"+(ye?ke+" "+ye:ke))}if(!Q||te!=ye){for(;qz;--Q){if(Q<=N.first)return N.first;var q=mt(N,Q-1),te=q.stateAfter;if(te&&(!i||Q+(te instanceof ee?te.lookAhead:0)<=N.modeFrontier))return Q;var pe=H(q.text,null,e.options.tabSize);(c==null||n>pe)&&(c=Q-1,n=pe)}return c}function Zr(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontieri;n--){var c=mt(e,n).stateAfter;if(c&&(!(c instanceof ee)||n+c.lookAhead=t:N.to>t);(n||(n=[])).push(new hn(z,N.from,q?null:N.to))}}return n}function Vn(e,t,i){var n;if(e)for(var c=0;c=t:N.to>t);if(Q||N.from==t&&z.type=="bookmark"&&(!i||N.marker.insertLeft)){var q=N.from==null||(z.inclusiveLeft?N.from<=t:N.from0&&Q)for(var pt=0;pt0)continue;var pe=[q,1],ye=Ct(te.from,Q.from),Me=Ct(te.to,Q.to);(ye<0||!z.inclusiveLeft&&!ye)&&pe.push({from:te.from,to:Q.from}),(Me>0||!z.inclusiveRight&&!Me)&&pe.push({from:Q.to,to:te.to}),c.splice.apply(c,pe),q+=pe.length-3}return c}function ci(e){var t=e.markedSpans;if(!t)return;for(var i=0;it)&&(!n||yr(n,N.marker)<0)&&(n=N.marker)}return n}function fr(e,t,i,n,c){var N=mt(e,t),z=dr&&N.markedSpans;if(z)for(var Q=0;Q=0&&ye<=0||pe<=0&&ye>=0)continue;if(pe<=0&&(q.marker.inclusiveRight&&c.inclusiveLeft?Ct(te.to,i)>=0:Ct(te.to,i)>0)||pe>=0&&(q.marker.inclusiveRight&&c.inclusiveLeft?Ct(te.from,n)<=0:Ct(te.from,n)<0))return!0}}function Ar(e){for(var t;t=ar(e);)e=t.find(-1,!0).line;return e}function Yn(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function xn(e){for(var t,i;t=Kt(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function di(e,t){var i=mt(e,t),n=Ar(i);return i==n?t:Rt(n)}function Tn(e,t){if(t>e.lastLine())return t;var i=mt(e,t),n;if(!an(e,i))return t;for(;n=Kt(i);)i=n.find(1,!0).line;return Rt(i)+1}function an(e,t){var i=dr&&t.markedSpans;if(i)for(var n=void 0,c=0;ct.maxLineLength&&(t.maxLineLength=c,t.maxLine=n)})}var Mn=function(e,t,i){this.text=e,En(this,t),this.height=i?i(this):1};Mn.prototype.lineNo=function(){return Rt(this)},we(Mn);function ua(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),ci(e),En(e,i);var c=n?n(e):1;c!=e.height&&Jt(e,c)}function vt(e){e.parent=null,ci(e)}var At={},Tt={};function kt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Tt:At;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Bt(e,t){var i=S("span",null,null,r?"padding-right: .1px":null),n={pre:S("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var c=0;c<=(t.rest?t.rest.length:0);c++){var N=c?t.rest[c-1]:t.line,z=void 0;n.pos=0,n.addToken=Ft,yt(e.display.measure)&&(z=qe(N,e.doc.direction))&&(n.addToken=Dr(n.addToken,z)),n.map=[];var Q=t!=e.display.externalMeasured&&Rt(N);cn(N,n,Ye(e,N,Q)),N.styleClasses&&(N.styleClasses.bgClass&&(n.bgClass=_(N.styleClasses.bgClass,n.bgClass||"")),N.styleClasses.textClass&&(n.textClass=_(N.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(ht(e.display.measure))),c==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(r){var q=n.content.lastChild;(/\bcm-tab\b/.test(q.className)||q.querySelector&&q.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return je(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=_(n.pre.className,n.textClass||"")),n}function Yt(e){var t=d("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ft(e,t,i,n,c,N,z){if(!t)return;var Q=e.splitSpaces?ur(t,e.trailingSpace):t,q=e.cm.state.specialChars,te=!1,pe;if(!q.test(t))e.col+=t.length,pe=document.createTextNode(Q),e.map.push(e.pos,e.pos+t.length,pe),K&&G<9&&(te=!0),e.pos+=t.length;else{pe=document.createDocumentFragment();for(var ye=0;;){q.lastIndex=ye;var Me=q.exec(t),ke=Me?Me.index-ye:t.length-ye;if(ke){var Ke=document.createTextNode(Q.slice(ye,ye+ke));K&&G<9?pe.appendChild(d("span",[Ke])):pe.appendChild(Ke),e.map.push(e.pos,e.pos+ke,Ke),e.col+=ke,e.pos+=ke}if(!Me)break;ye+=ke+1;var $e=void 0;if(Me[0]==" "){var et=e.cm.options.tabSize,nt=et-e.col%et;$e=pe.appendChild(d("span",he(nt),"cm-tab")),$e.setAttribute("role","presentation"),$e.setAttribute("cm-text"," "),e.col+=nt}else Me[0]=="\r"||Me[0]==` +`?($e=pe.appendChild(d("span",Me[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),$e.setAttribute("cm-text",Me[0]),e.col+=1):($e=e.cm.options.specialCharPlaceholder(Me[0]),$e.setAttribute("cm-text",Me[0]),K&&G<9?pe.appendChild(d("span",[$e])):pe.appendChild($e),e.col+=1);e.map.push(e.pos,e.pos+1,$e),e.pos++}}if(e.trailingSpace=Q.charCodeAt(t.length-1)==32,i||n||c||te||N||z){var ut=i||"";n&&(ut+=n),c&&(ut+=c);var it=d("span",[pe],ut,N);if(z)for(var pt in z)z.hasOwnProperty(pt)&&pt!="style"&&pt!="class"&&it.setAttribute(pt,z[pt]);return e.content.appendChild(it)}e.content.appendChild(pe)}function ur(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",c=0;cte&&ye.from<=te);Me++);if(ye.to>=pe)return e(i,n,c,N,z,Q,q);e(i,n.slice(0,ye.to-te),c,N,null,Q,q),N=null,n=n.slice(ye.to-te),te=ye.to}}}function Pt(e,t,i,n){var c=!n&&i.widgetNode;c&&e.map.push(e.pos,e.pos+t,c),!n&&e.cm.display.input.needsContentAttribute&&(c||(c=e.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",i.id)),c&&(e.cm.display.input.setUneditable(c),e.content.appendChild(c)),e.pos+=t,e.trailingSpace=!1}function cn(e,t,i){var n=e.markedSpans,c=e.text,N=0;if(!n){for(var z=1;zq||Lt.collapsed&&bt.to==q&&bt.from==q)){if(bt.to!=null&&bt.to!=q&&ke>bt.to&&(ke=bt.to,$e=""),Lt.className&&(Ke+=" "+Lt.className),Lt.css&&(Me=(Me?Me+";":"")+Lt.css),Lt.startStyle&&bt.from==q&&(et+=" "+Lt.startStyle),Lt.endStyle&&bt.to==ke&&(pt||(pt=[])).push(Lt.endStyle,bt.to),Lt.title&&((ut||(ut={})).title=Lt.title),Lt.attributes)for(var Xt in Lt.attributes)(ut||(ut={}))[Xt]=Lt.attributes[Xt];Lt.collapsed&&(!nt||yr(nt.marker,Lt)<0)&&(nt=bt)}else bt.from>q&&ke>bt.from&&(ke=bt.from)}if(pt)for(var gr=0;gr=Q)break;for(var Gr=Math.min(Q,ke);;){if(pe){var Nr=q+pe.length;if(!nt){var sr=Nr>Gr?pe.slice(0,Gr-q):pe;t.addToken(t,sr,ye?ye+Ke:Ke,et,q+sr.length==ke?$e:"",Me,ut)}if(Nr>=Gr){pe=pe.slice(Gr-q),q=Gr;break}q=Nr,et=""}pe=c.slice(N,N=i[te++]),ye=kt(i[te++],t.cm.options)}}}function Wt(e,t,i){this.line=t,this.rest=xn(t),this.size=this.rest?Rt(re(this.rest))-i+1:1,this.node=this.text=null,this.hidden=an(e,t)}function kr(e,t,i){for(var n=[],c,N=t;N2&&N.push((q.bottom+te.top)/2-i.top)}}N.push(i.bottom-i.top)}}function es(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;ni)return{map:e.measure.maps[c],cache:e.measure.caches[c],before:!0}}function Bo(e,t){t=Ar(t);var i=Rt(t),n=e.display.externalMeasured=new Wt(e.doc,t,i);n.lineN=i;var c=n.built=Bt(e,n);return n.text=c.pre,T(e.display.lineMeasure,c.pre),n}function ts(e,t,i,n){return on(e,Xn(e,t),i,n)}function fa(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(N=q-Q,c=N-1,t>=q&&(z="right")),c!=null){if(n=e[te+2],Q==q&&i==(n.insertLeft?"left":"right")&&(z=i),i=="left"&&c==0)for(;te&&e[te-2]==e[te-3]&&e[te-1].insertLeft;)n=e[(te-=3)+2],z="left";if(i=="right"&&c==q-Q)for(;te=0&&!((i=e[c]).left!=i.right);c--);return i}function Ho(e,t,i,n){var c=ns(t.map,i,n),N=c.node,z=c.start,Q=c.end,q=c.collapse,te;if(N.nodeType==3){for(var pe=0;pe<4;pe++){for(;z&&Se(t.line.text.charAt(c.coverStart+z));)--z;for(;c.coverStart+Q0&&(q=n="right");var ye;e.options.lineWrapping&&(ye=N.getClientRects()).length>1?te=ye[n=="right"?ye.length-1:0]:te=N.getBoundingClientRect()}if(K&&G<9&&!z&&(!te||!te.left&&!te.right)){var Me=N.parentNode.getClientRects()[0];Me?te={left:Me.left,right:Me.left+Jn(e.display),top:Me.top,bottom:Me.bottom}:te=rs}for(var ke=te.top-t.rect.top,Ke=te.bottom-t.rect.top,$e=(ke+Ke)/2,et=t.view.measure.heights,nt=0;nt=n.text.length?(q=n.text.length,te="before"):q<=0&&(q=0,te="after"),!Q)return z(te=="before"?q-1:q,te=="before");function pe(Ke,$e,et){var nt=Q[$e],ut=nt.level==1;return z(et?Ke-1:Ke,ut!=et)}var ye=Je(Q,q,te),Me=Qe,ke=pe(q,ye,te=="before");return Me!=null&&(ke.other=pe(q,Me,te!="before")),ke}function us(e,t){var i=0;t=x(e.doc,t),e.options.lineWrapping||(i=Jn(e.display)*t.ch);var n=mt(e.doc,t.line),c=qr(n)+Hi(e.display);return{left:i,right:i,top:c,bottom:c+n.height}}function ga(e,t,i,n,c){var N=Ze(e,t,i);return N.xRel=c,n&&(N.outside=n),N}function va(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return ga(n.first,0,null,-1,-1);var c=lr(n,i),N=n.first+n.size-1;if(c>N)return ga(n.first+n.size-1,mt(n,N).text.length,null,1,1);t<0&&(t=0);for(var z=mt(n,c);;){var Q=Go(e,z,c,t,i),q=nn(z,Q.ch+(Q.xRel>0||Q.outside>0?1:0));if(!q)return Q;var te=q.find(1);if(te.line==c)return te;z=mt(n,c=te.line)}}function hs(e,t,i,n){n-=pa(t);var c=t.text.length,N=We(function(z){return on(e,i,z-1).bottom<=n},c,0);return c=We(function(z){return on(e,i,z).top>n},N,c),{begin:N,end:c}}function cs(e,t,i,n){i||(i=Xn(e,t));var c=Wi(e,t,on(e,i,n),"line").top;return hs(e,t,i,c)}function ya(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Go(e,t,i,n,c){c-=qr(t);var N=Xn(e,t),z=pa(t),Q=0,q=t.text.length,te=!0,pe=qe(t,e.doc.direction);if(pe){var ye=(e.options.lineWrapping?zo:Ko)(e,t,i,N,pe,n,c);te=ye.level!=1,Q=te?ye.from:ye.to-1,q=te?ye.to:ye.from-1}var Me=null,ke=null,Ke=We(function(St){var bt=on(e,N,St);return bt.top+=z,bt.bottom+=z,ya(bt,n,c,!1)?(bt.top<=c&&bt.left<=n&&(Me=St,ke=bt),!0):!1},Q,q),$e,et,nt=!1;if(ke){var ut=n-ke.left=pt.bottom?1:0}return Ke=Ie(t.text,Ke,1),ga(i,Ke,et,nt,n-$e)}function Ko(e,t,i,n,c,N,z){var Q=We(function(ye){var Me=c[ye],ke=Me.level!=1;return ya(en(e,Ze(i,ke?Me.to:Me.from,ke?"before":"after"),"line",t,n),N,z,!0)},0,c.length-1),q=c[Q];if(Q>0){var te=q.level!=1,pe=en(e,Ze(i,te?q.from:q.to,te?"after":"before"),"line",t,n);ya(pe,N,z,!0)&&pe.top>z&&(q=c[Q-1])}return q}function zo(e,t,i,n,c,N,z){var Q=hs(e,t,n,z),q=Q.begin,te=Q.end;/\s/.test(t.text.charAt(te-1))&&te--;for(var pe=null,ye=null,Me=0;Me=te||ke.to<=q)continue;var Ke=ke.level!=1,$e=on(e,n,Ke?Math.min(te,ke.to)-1:Math.max(q,ke.from)).right,et=$eet)&&(pe=ke,ye=et)}return pe||(pe=c[c.length-1]),pe.fromte&&(pe={from:pe.from,to:te,level:pe.level}),pe}var Nn;function $n(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nn==null){Nn=d("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(d("br"));Nn.appendChild(document.createTextNode("x"))}T(e.measure,Nn);var i=Nn.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),C(e.measure),i||1}function Jn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=d("span","xxxxxxxxxx"),i=d("pre",[t],"CodeMirror-line-like");T(e.measure,i);var n=t.getBoundingClientRect(),c=(n.right-n.left)/10;return c>2&&(e.cachedCharWidth=c),c||10}function ba(e){for(var t=e.display,i={},n={},c=t.gutters.clientLeft,N=t.gutters.firstChild,z=0;N;N=N.nextSibling,++z){var Q=e.display.gutterSpecs[z].className;i[Q]=N.offsetLeft+N.clientLeft+c,n[Q]=N.clientWidth}return{fixedPos:_a(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function _a(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ds(e){var t=$n(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Jn(e.display)-3);return function(c){if(an(e.doc,c))return 0;var N=0;if(c.widgets)for(var z=0;z0&&(te=mt(e.doc,q.line).text).length==q.ch){var pe=H(te,te.length,e.options.tabSize)-te.length;q=Ze(q.line,Math.max(0,Math.round((N-qa(e.display).left)/Jn(e.display))-pe))}return q}function Un(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,n=0;nt)&&(c.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=c.viewTo)dr&&di(e.doc,t)c.viewFrom?Sn(e):(c.viewFrom+=n,c.viewTo+=n);else if(t<=c.viewFrom&&i>=c.viewTo)Sn(e);else if(t<=c.viewFrom){var N=Gi(e,i,i+n,1);N?(c.view=c.view.slice(N.index),c.viewFrom=N.lineN,c.viewTo+=n):Sn(e)}else if(i>=c.viewTo){var z=Gi(e,t,t,-1);z?(c.view=c.view.slice(0,z.index),c.viewTo=z.lineN):Sn(e)}else{var Q=Gi(e,t,t,-1),q=Gi(e,i,i+n,1);Q&&q?(c.view=c.view.slice(0,Q.index).concat(kr(e,Q.lineN,q.lineN)).concat(c.view.slice(q.index)),c.viewTo+=n):Sn(e)}var te=c.externalMeasured;te&&(i=c.lineN&&t=n.viewTo)return;var N=n.view[Un(e,t)];if(N.node==null)return;var z=N.changes||(N.changes=[]);ne(z,i)==-1&&z.push(i)}function Sn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gi(e,t,i,n){var c=Un(e,t),N,z=e.display.view;if(!dr||i==e.doc.first+e.doc.size)return{index:c,lineN:i};for(var Q=e.display.viewFrom,q=0;q0){if(c==z.length-1)return null;N=Q+z[c].size-t,c++}else N=Q-t;t+=N,i+=N}for(;di(e.doc,i)!=i;){if(c==(n<0?0:z.length-1))return null;i+=n*z[c-(n<0?1:0)].size,c+=n}return{index:c,lineN:i}}function Vo(e,t,i){var n=e.display,c=n.view;c.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=kr(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=kr(e,t,n.viewFrom).concat(n.view):n.viewFromi&&(n.view=n.view.slice(0,Un(e,i)))),n.viewTo=i}function fs(e){for(var t=e.display.view,i=0,n=0;n=e.display.viewTo||Q.to().line0?t.blinker=setInterval(function(){e.hasFocus()||Zn(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function gs(e){e.state.focused||(e.display.input.focus(),Ta(e))}function vs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Zn(e))},100)}function Ta(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(je(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),r&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e)}function Zn(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(je(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function zi(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n.005||pe<-.005)&&(Jt(d.line,z),ys(d.line),d.rest))for(var ye=0;yee.display.sizerWidth){var Me=Math.ceil(Q/Jn(e.display));Me>e.display.maxLineLength&&(e.display.maxLineLength=Me,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}function ys(e){if(e.widgets)for(var t=0;t=z&&(N=lr(t,qr(mt(t,q))-e.wrapper.clientHeight),z=q)}return{from:N,to:Math.max(z,N+1)}}function Xo(e,t){if(Ge(e,"scrollCursorIntoView"))return;var i=e.display,n=i.sizer.getBoundingClientRect(),d=null;if(t.top+n.top<0?d=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!u){var N=c("div","\u200B",null,`position: absolute; + height: `+(bt-pt)+"px"))}function ye(it,pt,St){var bt=mt(c,it),Lt=bt.text.length,Xt,gr;function er(sr,Fr){return ma(e,Ze(it,sr),"div",bt,Fr)}function Gr(sr,Fr,_r){var hr=cs(e,bt,null,sr),or=Fr=="ltr"==(_r=="after")?"left":"right",rr=_r=="after"?hr.begin:hr.end-(/\s/.test(bt.text.charAt(hr.end-1))?2:1);return er(rr,or)[or]}var Nr=qe(bt,c.direction);return Ve(Nr,pt||0,St==null?Lt:St,function(sr,Fr,_r,hr){var or=_r=="ltr",rr=er(sr,or?"left":"right"),Ur=er(Fr-1,or?"right":"left"),ui=pt==null&&sr==0,In=St==null&&Fr==Lt,Sr=hr==0,ln=!Nr||hr==Nr.length-1;if(Ur.top-rr.top<=3){var vr=(te?ui:In)&&Sr,Va=(te?In:ui)&&ln,pn=vr?Q:(or?rr:Ur).left,Gn=Va?q:(or?Ur:rr).right;pe(pn,rr.top,Gn-pn,rr.bottom)}else{var Kn,Rr,hi,Ya;or?(Kn=te&&ui&&Sr?Q:rr.left,Rr=te?q:Gr(sr,_r,"before"),hi=te?Q:Gr(Fr,_r,"after"),Ya=te&&In&&ln?q:Ur.right):(Kn=te?Gr(sr,_r,"before"):Q,Rr=!te&&ui&&Sr?q:rr.right,hi=!te&&In&&ln?Q:Ur.left,Ya=te?Gr(Fr,_r,"after"):q),pe(Kn,rr.top,Rr-Kn,rr.bottom),rr.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Zn(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function gs(e){e.state.focused||(e.display.input.focus(),Ta(e))}function vs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Zn(e))},100)}function Ta(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(je(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),r&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e)}function Zn(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(je(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function zi(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n.005||pe<-.005)&&(Jt(c.line,z),ys(c.line),c.rest))for(var ye=0;yee.display.sizerWidth){var Me=Math.ceil(Q/Jn(e.display));Me>e.display.maxLineLength&&(e.display.maxLineLength=Me,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}function ys(e){if(e.widgets)for(var t=0;t=z&&(N=lr(t,qr(mt(t,q))-e.wrapper.clientHeight),z=q)}return{from:N,to:Math.max(z,N+1)}}function Xo(e,t){if(Ge(e,"scrollCursorIntoView"))return;var i=e.display,n=i.sizer.getBoundingClientRect(),c=null;if(t.top+n.top<0?c=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!u){var N=d("div","\u200B",null,`position: absolute; top: `+(t.top-i.viewOffset-Hi(e.display))+`px; height: `+(t.bottom-t.top+sn(e)+i.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(N),N.scrollIntoView(d),e.display.lineSpace.removeChild(N)}}function $o(e,t,i,n){n==null&&(n=0);var d;!e.options.lineWrapping&&t==i&&(t=t.ch?Ze(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?Ze(t.line,t.ch+1,"before"):t);for(var N=0;N<5;N++){var z=!1,Q=en(e,t),q=!i||i==t?Q:en(e,i);d={left:Math.min(Q.left,q.left),top:Math.min(Q.top,q.top)-n,right:Math.max(Q.left,q.left),bottom:Math.max(Q.bottom,q.bottom)+n};var te=wa(e,d),pe=e.doc.scrollTop,ye=e.doc.scrollLeft;if(te.scrollTop!=null&&(Ei(e,te.scrollTop),Math.abs(e.doc.scrollTop-pe)>1&&(z=!0)),te.scrollLeft!=null&&(Bn(e,te.scrollLeft),Math.abs(e.doc.scrollLeft-ye)>1&&(z=!0)),!z)break}return d}function Jo(e,t){var i=wa(e,t);i.scrollTop!=null&&Ei(e,i.scrollTop),i.scrollLeft!=null&&Bn(e,i.scrollLeft)}function wa(e,t){var i=e.display,n=$n(e.display);t.top<0&&(t.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,N=ca(e),z={};t.bottom-t.top>N&&(t.bottom=t.top+N);var Q=e.doc.height+da(i),q=t.topQ-n;if(t.topd+N){var pe=Math.min(t.top,(te?Q:t.bottom)-N);pe!=d&&(z.scrollTop=pe)}var ye=e.options.fixedGutter?0:i.gutters.offsetWidth,Me=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-ye,ke=Pn(e)-i.gutters.offsetWidth,Ke=t.right-t.left>ke;return Ke&&(t.right=t.left+ke),t.left<10?z.scrollLeft=0:t.leftke+Me-3&&(z.scrollLeft=t.right+(Ke?0:10)-ke),z}function Sa(e,t){if(t==null)return;Yi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Qn(e){Yi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function _i(e,t,i){(t!=null||i!=null)&&Yi(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zo(e,t){Yi(e),e.curOp.scrollToPos=t}function Yi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=us(e,t.from),n=us(e,t.to);bs(e,i,n,t.margin)}}function bs(e,t,i,n){var d=wa(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});_i(e,d.scrollLeft,d.scrollTop)}function Ei(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;P||Aa(e,{top:t}),_s(e,t,!0),P&&Aa(e),wi(e,100)}function _s(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Bn(e,t,i,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Ss(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function xi(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+da(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:n,scrollHeight:n+sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var jn=function(e,t,i){this.cm=i;var n=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=d.tabIndex=-1,e(n),e(d),Ue(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ue(d,"scroll",function(){d.clientWidth&&t(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,K&&G<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var d=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var N=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+N)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},jn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jn.prototype.zeroWidthHack=function(){var e=s&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new $,this.disableVert=new $},jn.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var d=e.getBoundingClientRect(),N=i=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);N!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},jn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ti=function(){};Ti.prototype.update=function(){return{bottom:0,right:0}},Ti.prototype.setScrollLeft=function(){},Ti.prototype.setScrollTop=function(){},Ti.prototype.clear=function(){};function qn(e,t){t||(t=xi(e));var i=e.display.barWidth,n=e.display.barHeight;Es(e,t);for(var d=0;d<4&&i!=e.display.barWidth||n!=e.display.barHeight;d++)i!=e.display.barWidth&&e.options.lineWrapping&&zi(e),Es(e,xi(e)),i=e.display.barWidth,n=e.display.barHeight}function Es(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var xs={native:jn,null:Ti};function Ts(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ue(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Bn(e,t):Ei(e,t)},e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var Qo=0;function Hn(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:++Qo},Jr(e.curOp)}function Wn(e){var t=e.curOp;t&&Io(t,function(i){for(var n=0;n=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Xi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&Ca(e.cm,e.update)}function rl(e){var t=e.cm,i=t.display;e.updatedDisplay&&zi(t),e.barMeasure=xi(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ts(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Pn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function nl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,n=tt(e,t.highlightFrontier),d=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(N){if(n.line>=e.display.viewFrom){var z=N.styles,Q=N.text.length>e.options.maxHighlightLength?Ut(t.mode,n.state):null,q=Ee(e,N,n,!0);Q&&(n.state=Q),N.styles=q.styles;var te=N.styleClasses,pe=q.classes;pe?N.styleClasses=pe:te&&(N.styleClasses=null);for(var ye=!z||z.length!=N.styles.length||te!=pe&&(!te||!pe||te.bgClass!=pe.bgClass||te.textClass!=pe.textClass),Me=0;!ye&&Mei)return wi(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),d.length&&Wr(e,function(){for(var N=0;N=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&fs(e)==0)return!1;Cs(e)&&(Sn(e),t.dims=ba(e));var d=n.first+n.size,N=Math.max(t.visible.from-e.options.viewportMargin,n.first),z=Math.min(d,t.visible.to+e.options.viewportMargin);i.viewFromz&&i.viewTo-z<20&&(z=Math.min(d,i.viewTo)),cr&&(N=ci(e.doc,N),z=Tn(e.doc,z));var Q=N!=i.viewFrom||z!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Vo(e,N,z),i.viewOffset=qr(mt(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var q=fs(e);if(!Q&&q==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var te=ol(e);return q>4&&(i.lineDiv.style.display="none"),ul(e,i.updateLineNumbers,t.dims),q>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ll(te),C(i.cursorDiv),C(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,Q&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,wi(e,400)),i.updateLineNumbers=null,!0}function ws(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Pn(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+da(e.display)-ca(e),i.top)}),t.visible=Vi(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Vi(e.display,e.doc,i));if(!Ca(e,t))break;zi(e);var d=xi(e);bi(e),qn(e,d),Ra(e,d),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Aa(e,t){var i=new Xi(e,t);if(Ca(e,i)){zi(e),ws(e,i);var n=xi(e);bi(e),qn(e,n),Ra(e,n),i.finish()}}function ul(e,t,i){var n=e.display,d=e.options.lineNumbers,N=n.lineDiv,z=N.firstChild;function Q(Ke){var $e=Ke.nextSibling;return r&&s&&e.display.currentWheelTarget==Ke?Ke.style.display="none":Ke.parentNode.removeChild(Ke),$e}for(var q=n.view,te=n.viewFrom,pe=0;pe-1&&(ke=!1),Xa(e,ye,te,i)),ke&&(C(ye.lineNumber),ye.lineNumber.appendChild(document.createTextNode(Xr(e.options,te)))),z=ye.node.nextSibling}te+=ye.size}for(;z;)z=Q(z)}function Oa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ra(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+sn(e)+"px"}function Ss(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=_a(t)-t.scroller.scrollLeft+e.doc.scrollLeft,d=t.gutters.offsetWidth,N=n+"px",z=0;zz.clientWidth,q=z.scrollHeight>z.clientHeight;if(!(n&&Q||d&&q))return;if(d&&s&&r){e:for(var te=t.target,pe=N.view;te!=z;te=te.parentNode)for(var ye=0;ye=0&&Ct(e,n.to())<=0)return i}return-1};var Gt=function(e,t){this.anchor=e,this.head=t};Gt.prototype.from=function(){return yn(this.anchor,this.head)},Gt.prototype.to=function(){return vn(this.anchor,this.head)},Gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function tn(e,t,i){var n=e&&e.options.selectionsMayTouch,d=t[i];t.sort(function(Me,ke){return Ct(Me.from(),ke.from())}),i=ne(t,d);for(var N=1;N0:q>=0){var te=yn(Q.from(),z.from()),pe=vn(Q.to(),z.to()),ye=Q.empty()?z.from()==z.head:Q.from()==Q.head;N<=i&&--i,t.splice(--N,2,new Gt(ye?pe:te,ye?te:pe))}}return new Yr(t,i)}function Cn(e,t){return new Yr([new Gt(e,t||e)],0)}function An(e){return e.text?Ze(e.from.line+e.text.length-1,re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ls(e,t){if(Ct(e,t.from)<0)return e;if(Ct(e,t.to)<=0)return An(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=An(t).ch-t.to.ch),Ze(i,n)}function Ia(e,t){for(var i=[],n=0;n1&&e.remove(Q.line+1,Ke-1),e.insert(Q.line+1,nt)}br(e,"change",e,t)}function On(e,t,i){function n(d,N,z){if(d.linked)for(var Q=0;Q1&&!e.done[e.done.length-2].ranges)return e.done.pop(),re(e.done)}function Ns(e,t,i,n){var d=e.history;d.undone.length=0;var N=+new Date,z,Q;if((d.lastOp==n||d.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&d.lastModTime>N-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(z=pl(d,d.lastOp==n)))Q=re(z.changes),Ct(t.from,t.to)==0&&Ct(t.from,Q.to)==0?Q.to=An(t):z.changes.push(Ma(e,t));else{var q=re(d.done);for((!q||!q.ranges)&&Zi(e.sel,d.done),z={changes:[Ma(e,t)],generation:d.generation},d.done.push(z);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(i),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=N,d.lastOp=d.lastSelOp=n,d.lastOrigin=d.lastSelOrigin=t.origin,Q||je(e,"historyAdded")}function ml(e,t,i,n){var d=t.charAt(0);return d=="*"||d=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,n){var d=e.history,N=n&&n.origin;i==d.lastSelOp||N&&d.lastSelOrigin==N&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==N||ml(e,N,re(d.done),t))?d.done[d.done.length-1]=t:Zi(t,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=N,d.lastSelOp=i,n&&n.clearRedo!==!1&&Ps(d.undone)}function Zi(e,t){var i=re(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Fs(e,t,i,n){var d=t["spans_"+e.id],N=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(z){z.markedSpans&&((d||(d=t["spans_"+e.id]={}))[N]=z.markedSpans),++N})}function vl(e){if(!e)return null;for(var t,i=0;i-1&&(re(Q)[ye]=te[ye],delete te[ye]))}}return n}function Pa(e,t,i,n){if(n){var d=e.anchor;if(i){var N=Ct(t,d)<0;N!=Ct(i,d)<0?(d=t,t=i):N!=Ct(t,i)<0&&(t=i)}return new Gt(d,t)}else return new Gt(i||t,t)}function Qi(e,t,i,n,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),wr(e,new Yr([Pa(e.sel.primary(),t,i,d)],0),n)}function Bs(e,t,i){for(var n=[],d=e.cm&&(e.cm.display.shift||e.extend),N=0;N=t.ch:Q.to>t.ch))){if(d&&(je(q,"beforeCursorEnter"),q.explicitlyCleared))if(N.markedSpans){--z;continue}else break;if(!q.atomic)continue;if(i){var ye=q.find(n<0?1:-1),Me=void 0;if((n<0?pe:te)&&(ye=zs(e,ye,-n,ye&&ye.line==t.line?N:null)),ye&&ye.line==t.line&&(Me=Ct(ye,i))&&(n<0?Me<0:Me>0))return ti(e,ye,t,n,d)}var ke=q.find(n<0?-1:1);return(n<0?te:pe)&&(ke=zs(e,ke,n,ke.line==t.line?N:null)),ke?ti(e,ke,t,n,d):null}}return t}function ea(e,t,i,n,d){var N=n||1,z=ti(e,t,i,N,d)||!d&&ti(e,t,i,N,!0)||ti(e,t,i,-N,d)||!d&&ti(e,t,i,-N,!0);return z||(e.cantEdit=!0,Ze(e.first,0))}function zs(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?x(e,Ze(t.line-1)):null:i>0&&t.ch==(n||mt(e,t.line)).text.length?t.line=0;--d)Xs(e,{from:n[d].from,to:n[d].to,text:d?[""]:t.text,origin:t.origin});else Xs(e,t)}function Xs(e,t){if(t.text.length==1&&t.text[0]==""&&Ct(t.from,t.to)==0)return;var i=Ia(e,t);Ns(e,t,i,e.cm?e.cm.curOp.id:NaN),Ai(e,t,i,Qr(e,t));var n=[];On(e,function(d,N){!N&&ne(n,d.history)==-1&&(Qs(d.history,t),n.push(d.history)),Ai(d,t,null,Qr(d,t))})}function ta(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!i)return;for(var d=e.history,N,z=e.sel,Q=t=="undo"?d.done:d.undone,q=t=="undo"?d.undone:d.done,te=0;te=0;--ke){var Ke=Me(ke);if(Ke)return Ke.v}}function $s(e,t){if(t==0)return;if(e.first+=t,e.sel=new Yr(fe(e.sel.ranges,function(d){return new Gt(Ze(d.anchor.line+t,d.anchor.ch),Ze(d.head.line+t,d.head.ch))}),e.sel.primIndex),e.cm){Mr(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;ne.lastLine())return;if(t.from.lineN&&(t={from:t.from,to:Ze(N,mt(e,N).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Br(e,t.from,t.to),i||(i=Ia(e,t)),e.cm?_l(e.cm,t,n):ka(e,t,n),qi(e,i,ge),e.cantEdit&&ea(e,Ze(e.firstLine(),0))&&(e.cantEdit=!1)}function _l(e,t,i){var n=e.doc,d=e.display,N=t.from,z=t.to,Q=!1,q=N.line;e.options.lineWrapping||(q=Rt(Ar(mt(n,N.line))),n.iter(q,z.line+1,function(ke){if(ke==d.maxLine)return Q=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Ae(e),ka(n,t,i,cs(e)),e.options.lineWrapping||(n.iter(q,N.line+t.text.length,function(ke){var Ke=pi(ke);Ke>d.maxLineLength&&(d.maxLine=ke,d.maxLineLength=Ke,d.maxLineChanged=!0,Q=!1)}),Q&&(e.curOp.updateMaxLine=!0)),Zr(n,N.line),wi(e,400);var te=t.text.length-(z.line-N.line)-1;t.full?Mr(e):N.line==z.line&&t.text.length==1&&!Ds(e.doc,t)?wn(e,N.line,"text"):Mr(e,N.line,z.line+1,te);var pe=_e(e,"changes"),ye=_e(e,"change");if(ye||pe){var Me={from:N,to:z,text:t.text,removed:t.removed,origin:t.origin};ye&&br(e,"change",e,Me),pe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Me)}e.display.selForContextMenu=null}function ni(e,t,i,n,d){var N;n||(n=i),Ct(n,i)<0&&(N=[n,i],i=N[0],n=N[1]),typeof t=="string"&&(t=e.splitLines(t)),ri(e,{from:i,to:n,text:t,origin:d})}function Js(e,t,i,n){i1||!(this.children[0]instanceof Ri))){var Q=[];this.collapse(Q),this.children=[new Ri(Q)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var z=d.lines.length%25+25,Q=z;Q10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=te,e.display.maxLineLength=pe,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Mr(e,n,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gs(e.doc)),e&&br(e,"markerCleared",e,this,n,d),t&&Wn(e),this.parent&&this.parent.clear()},Rn.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,d=0;d0||z==0&&N.clearWhenEmpty!==!1)return N;if(N.replacedWith&&(N.collapsed=!0,N.widgetNode=S("span",[N.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||N.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(N.widgetNode.insertLeft=!0)),N.collapsed){if(fr(e,t.line,t,i,N)||t.line!=i.line&&fr(e,i.line,t,i,N))throw new Error("Inserting collapsed marker partially overlapping an existing one");un()}N.addToHistory&&Ns(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var Q=t.line,q=e.cm,te;if(e.iter(Q,i.line+1,function(ye){q&&N.collapsed&&!q.options.lineWrapping&&Ar(ye)==q.display.maxLine&&(te=!0),N.collapsed&&Q!=t.line&&Jt(ye,0),bn(ye,new hn(N,Q==t.line?t.ch:null,Q==i.line?i.ch:null)),++Q}),N.collapsed&&e.iter(t.line,i.line+1,function(ye){an(e,ye)&&Jt(ye,0)}),N.clearOnEnter&&Ue(N,"beforeCursorEnter",function(){return N.clear()}),N.readOnly&&(zr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),N.collapsed&&(N.id=++eo,N.atomic=!0),q){if(te&&(q.curOp.updateMaxLine=!0),N.collapsed)Mr(q,t.line,i.line+1);else if(N.className||N.startStyle||N.endStyle||N.css||N.attributes||N.title)for(var pe=t.line;pe<=i.line;pe++)wn(q,pe,"text");N.atomic&&Gs(q.doc),br(q,"markerAdded",q,N)}return N}var Di=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;q--)ri(this,n[q]);Q?Hs(this,Q):this.cm&&Qn(this.cm)}),undo:mr(function(){ta(this,"undo")}),redo:mr(function(){ta(this,"redo")}),undoSelection:mr(function(){ta(this,"undo",!0)}),redoSelection:mr(function(){ta(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n=e.ch)&&t.push(d.marker.parent||d.marker)}return t},findMarks:function(e,t,i){e=x(this,e),t=x(this,t);var n=[],d=e.line;return this.iter(e.line,t.line+1,function(N){var z=N.markedSpans;if(z)for(var Q=0;Q=q.to||q.from==null&&d!=e.line||q.from!=null&&d==t.line&&q.from>=t.ch)&&(!i||i(q.marker))&&n.push(q.marker.parent||q.marker)}++d}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;ne)return t=e,!0;e-=N,++i}),x(this,Ze(i,t))},indexFromPos:function(e){e=x(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var pe=e.dataTransfer.getData("Text");if(pe){var ye;if(t.state.draggingText&&!t.state.draggingText.copy&&(ye=t.listSelections()),qi(t.doc,Cn(i,i)),ye)for(var Me=0;Me=0;Q--)ni(e.doc,"",n[Q].from,n[Q].to,"+delete");Qn(e)})}function Fa(e,t,i){var n=Ie(e.text,t+i,i);return n<0||n>e.text.length?null:n}function Ua(e,t,i){var n=Fa(e,t.ch,i);return n==null?null:new Ze(t.line,n,i<0?"after":"before")}function Ba(e,t,i,n,d){if(e){t.doc.direction=="rtl"&&(d=-d);var N=qe(i,t.doc.direction);if(N){var z=d<0?re(N):N[0],Q=d<0==(z.level==1),q=Q?"after":"before",te;if(z.level>0||t.doc.direction=="rtl"){var pe=Xn(t,i);te=d<0?i.text.length-1:0;var ye=on(t,pe,te).top;te=We(function(Me){return on(t,pe,Me).top==ye},d<0==(z.level==1)?z.from:z.to-1,te),q=="before"&&(te=Fa(i,te,1))}else te=d<0?z.to:z.from;return new Ze(n,te,q)}}return new Ze(n,d<0?i.text.length:0,d<0?"before":"after")}function Ml(e,t,i,n){var d=qe(t,e.doc.direction);if(!d)return Ua(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var N=Je(d,i.ch,i.sticky),z=d[N];if(e.doc.direction=="ltr"&&z.level%2==0&&(n>0?z.to>i.ch:z.from=z.from&&Me>=pe.begin)){var ke=ye?"before":"after";return new Ze(i.line,Me,ke)}}var Ke=function(nt,ut,it){for(var pt=function(Xt,gr){return gr?new Ze(i.line,Q(Xt,1),"before"):new Ze(i.line,Xt,"after")};nt>=0&&nt0==(St.level!=1),Lt=bt?it.begin:Q(it.end,-1);if(St.from<=Lt&&Lt0?pe.end:Q(pe.begin,-1);return et!=null&&!(n>0&&et==t.text.length)&&($e=Ke(n>0?0:d.length-1,n,te(et)),$e)?$e:null}var Pi={selectAll:Vs,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ge)},killLine:function(e){return si(e,function(t){if(t.empty()){var i=mt(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)d=new Ze(d.line,d.ch+1),e.replaceRange(N.charAt(d.ch-1)+N.charAt(d.ch-2),Ze(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var z=mt(e.doc,d.line-1).text;z&&(d=new Ze(d.line,1),e.replaceRange(N.charAt(0)+e.doc.lineSeparator()+z.charAt(z.length-1),Ze(d.line-1,z.length-1),d,"+transpose"))}}i.push(new Gt(d,d))}e.setSelections(i)})},newlineAndIndent:function(e){return Wr(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;ne&&Ct(t,this.pos)==0&&i==this.button};var Fi,Ui;function Hl(e,t){var i=+new Date;return Ui&&Ui.compare(i,e,t)?(Fi=Ui=null,"triple"):Fi&&Fi.compare(i,e,t)?(Ui=new Ha(i,e,t),Fi=null,"double"):(Fi=new Ha(i,e,t),Ui=null,"single")}function vo(e){var t=this,i=t.display;if(Ge(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,cn(i,e)){r||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(Wa(t,e))return;var n=Fn(t,e),d=Pe(e),N=n?Hl(n,d):"single";if(window.focus(),d==1&&t.state.selectingText&&t.state.selectingText(e),n&&Wl(t,d,n,N,e))return;d==1?n?Kl(t,n,N,e):xe(e)==i.scroller&&ae(e):d==2?(n&&Qi(t.doc,n),setTimeout(function(){return i.input.focus()},20)):d==3&&(D?t.display.input.onContextMenu(e):vs(t))}function Wl(e,t,i,n,d){var N="Click";return n=="double"?N="Double"+N:n=="triple"&&(N="Triple"+N),N=(t==1?"Left":t==2?"Middle":"Right")+N,Ni(e,oo(N,d),d,function(z){if(typeof z=="string"&&(z=Pi[z]),!z)return!1;var Q=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),Q=z(e,i)!=Oe}finally{e.state.suppressEdits=!1}return Q})}function Gl(e,t,i){var n=e.getOption("configureMouse"),d=n?n(e,t,i):{};if(d.unit==null){var N=a?i.shiftKey&&i.metaKey:i.altKey;d.unit=N?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||i.shiftKey),d.addNew==null&&(d.addNew=s?i.metaKey:i.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(s?i.altKey:i.ctrlKey)),d}function Kl(e,t,i,n){K?setTimeout(I(gs,e),0):e.curOp.focus=B();var d=Gl(e,i,n),N=e.doc.sel,z;e.options.dragDrop&&He&&!e.isReadOnly()&&i=="single"&&(z=N.contains(t))>-1&&(Ct((z=N.ranges[z]).from(),t)<0||t.xRel>0)&&(Ct(z.to(),t)>0||t.xRel<0)?zl(e,n,t,d):Vl(e,n,t,d)}function zl(e,t,i,n){var d=e.display,N=!1,z=pr(e,function(te){r&&(d.scroller.draggable=!1),e.state.draggingText=!1,lt(d.wrapper.ownerDocument,"mouseup",z),lt(d.wrapper.ownerDocument,"mousemove",Q),lt(d.scroller,"dragstart",q),lt(d.scroller,"drop",z),N||(ae(te),n.addNew||Qi(e.doc,i,null,null,n.extend),r&&!p||K&&G==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),Q=function(te){N=N||Math.abs(t.clientX-te.clientX)+Math.abs(t.clientY-te.clientY)>=10},q=function(){return N=!0};r&&(d.scroller.draggable=!0),e.state.draggingText=z,z.copy=!n.moveOnDrag,d.scroller.dragDrop&&d.scroller.dragDrop(),Ue(d.wrapper.ownerDocument,"mouseup",z),Ue(d.wrapper.ownerDocument,"mousemove",Q),Ue(d.scroller,"dragstart",q),Ue(d.scroller,"drop",z),vs(e),setTimeout(function(){return d.input.focus()},20)}function yo(e,t,i){if(i=="char")return new Gt(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Gt(Ze(t.line,0),x(e.doc,Ze(t.line+1,0)));var n=i(e,t);return new Gt(n.from,n.to)}function Vl(e,t,i,n){var d=e.display,N=e.doc;ae(t);var z,Q,q=N.sel,te=q.ranges;if(n.addNew&&!n.extend?(Q=N.sel.contains(i),Q>-1?z=te[Q]:z=new Gt(i,i)):(z=N.sel.primary(),Q=N.sel.primIndex),n.unit=="rectangle")n.addNew||(z=new Gt(i,i)),i=Fn(e,t,!0,!0),Q=-1;else{var pe=yo(e,i,n.unit);n.extend?z=Pa(z,pe.anchor,pe.head,n.extend):z=pe}n.addNew?Q==-1?(Q=te.length,wr(N,tn(e,te.concat([z]),Q),{scroll:!1,origin:"*mouse"})):te.length>1&&te[Q].empty()&&n.unit=="char"&&!n.extend?(wr(N,tn(e,te.slice(0,Q).concat(te.slice(Q+1)),0),{scroll:!1,origin:"*mouse"}),q=N.sel):Na(N,Q,z,Te):(Q=0,wr(N,new Yr([z],0),Te),q=N.sel);var ye=i;function Me(it){if(Ct(ye,it)==0)return;if(ye=it,n.unit=="rectangle"){for(var pt=[],St=e.options.tabSize,bt=H(mt(N,i.line).text,i.ch,St),Lt=H(mt(N,it.line).text,it.ch,St),Xt=Math.min(bt,Lt),gr=Math.max(bt,Lt),er=Math.min(i.line,it.line),Gr=Math.min(e.lastLine(),Math.max(i.line,it.line));er<=Gr;er++){var Nr=mt(N,er).text,sr=Le(Nr,Xt,St);Xt==gr?pt.push(new Gt(Ze(er,sr),Ze(er,sr))):Nr.length>sr&&pt.push(new Gt(Ze(er,sr),Ze(er,Le(Nr,gr,St))))}pt.length||pt.push(new Gt(i,i)),wr(N,tn(e,q.ranges.slice(0,Q).concat(pt),Q),{origin:"*mouse",scroll:!1}),e.scrollIntoView(it)}else{var Fr=z,_r=yo(e,it,n.unit),hr=Fr.anchor,or;Ct(_r.anchor,hr)>0?(or=_r.head,hr=yn(Fr.from(),_r.anchor)):(or=_r.anchor,hr=vn(Fr.to(),_r.head));var rr=q.ranges.slice(0);rr[Q]=Yl(e,new Gt(x(N,hr),or)),wr(N,tn(e,rr,Q),Te)}}var ke=d.wrapper.getBoundingClientRect(),Ke=0;function $e(it){var pt=++Ke,St=Fn(e,it,!0,n.unit=="rectangle");if(!St)return;if(Ct(St,ye)!=0){e.curOp.focus=B(),Me(St);var bt=Vi(d,N);(St.line>=bt.to||St.lineke.bottom?20:0;Lt&&setTimeout(pr(e,function(){if(Ke!=pt)return;d.scroller.scrollTop+=Lt,$e(it)}),50)}}function et(it){e.state.selectingText=!1,Ke=Infinity,it&&(ae(it),d.input.focus()),lt(d.wrapper.ownerDocument,"mousemove",nt),lt(d.wrapper.ownerDocument,"mouseup",ut),N.history.lastSelOrigin=null}var nt=pr(e,function(it){it.buttons===0||!Pe(it)?et(it):$e(it)}),ut=pr(e,et);e.state.selectingText=ut,Ue(d.wrapper.ownerDocument,"mousemove",nt),Ue(d.wrapper.ownerDocument,"mouseup",ut)}function Yl(e,t){var i=t.anchor,n=t.head,d=mt(e.doc,i.line);if(Ct(i,n)==0&&i.sticky==n.sticky)return t;var N=qe(d);if(!N)return t;var z=Je(N,i.ch,i.sticky),Q=N[z];if(Q.from!=i.ch&&Q.to!=i.ch)return t;var q=z+(Q.from==i.ch==(Q.level!=1)?0:1);if(q==0||q==N.length)return t;var te;if(n.line!=i.line)te=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var pe=Je(N,n.ch,n.sticky),ye=pe-z||(n.ch-i.ch)*(Q.level==1?-1:1);pe==q-1||pe==q?te=ye<0:te=ye>0}var Me=N[q+(te?-1:0)],ke=te==(Me.level==1),Ke=ke?Me.from:Me.to,$e=ke?"after":"before";return i.ch==Ke&&i.sticky==$e?t:new Gt(new Ze(i.line,Ke,$e),n)}function bo(e,t,i,n){var d,N;if(t.touches)d=t.touches[0].clientX,N=t.touches[0].clientY;else try{d=t.clientX,N=t.clientY}catch(Me){return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ae(t);var z=e.display,Q=z.lineDiv.getBoundingClientRect();if(N>Q.bottom||!_e(e,i))return ce(t);N-=Q.top-z.viewOffset;for(var q=0;q=d){var pe=lr(e.doc,N),ye=e.display.gutterSpecs[q];return je(e,i,e,pe,ye.className,t),ce(t)}}}function Wa(e,t){return bo(e,t,"gutterClick",!0)}function _o(e,t){if(cn(e.display,t)||Xl(e,t))return;if(Ge(e,t,"contextmenu"))return;D||e.display.input.onContextMenu(t)}function Xl(e,t){return _e(e,"gutterContextMenu")?bo(e,t,"gutterContextMenu",!1):!1}function Eo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yi(e)}var oi={toString:function(){return"CodeMirror.Init"}},xo={},aa={};function $l(e){var t=e.optionHandlers;function i(n,d,N,z){e.defaults[n]=d,N&&(t[n]=z?function(Q,q,te){te!=oi&&N(Q,q,te)}:N)}e.defineOption=i,e.Init=oi,i("value","",function(n,d){return n.setValue(d)},!0),i("mode",null,function(n,d){n.doc.modeOption=d,Da(n)},!0),i("indentUnit",2,Da,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Ci(n),yi(n),Mr(n)},!0),i("lineSeparator",null,function(n,d){if(n.doc.lineSep=d,!d)return;var N=[],z=n.doc.first;n.doc.iter(function(q){for(var te=0;;){var pe=q.text.indexOf(d,te);if(pe==-1)break;te=pe+d.length,N.push(Ze(z,pe))}z++});for(var Q=N.length-1;Q>=0;Q--)ni(n.doc,d,N[Q],Ze(N[Q].line,N[Q].ch+d.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,d,N){n.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),N!=oi&&n.refresh()}),i("specialCharPlaceholder",Yt,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",o?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,d){return n.getInputField().spellcheck=d},!0),i("autocorrect",!1,function(n,d){return n.getInputField().autocorrect=d},!0),i("autocapitalize",!1,function(n,d){return n.getInputField().autocapitalize=d},!0),i("rtlMoveVisually",!O),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){Eo(n),Si(n)},!0),i("keyMap","default",function(n,d,N){var z=na(d),Q=N!=oi&&na(N);Q&&Q.detach&&Q.detach(n,z),z.attach&&z.attach(n,Q||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(n,d){n.display.gutterSpecs=La(d,n.options.lineNumbers),Si(n)},!0),i("fixedGutter",!0,function(n,d){n.display.gutters.style.left=d?_a(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return qn(n)},!0),i("scrollbarStyle","native",function(n){Ts(n),qn(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,d){n.display.gutterSpecs=La(n.options.gutters,d),Si(n)},!0),i("firstLineNumber",1,Si,!0),i("lineNumberFormatter",function(n){return n},Si,!0),i("showCursorWhenSelecting",!1,bi,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,d){d=="nocursor"&&(Zn(n),n.display.input.blur()),n.display.input.readOnlyChanged(d)}),i("screenReaderLabel",null,function(n,d){d=d===""?null:d,n.display.input.screenReaderLabelChanged(d)}),i("disableInput",!1,function(n,d){d||n.display.input.reset()},!0),i("dragDrop",!0,Jl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,bi,!0),i("singleCursorHeightPerLine",!0,bi,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Ci,!0),i("addModeClass",!1,Ci,!0),i("pollInterval",100),i("undoDepth",200,function(n,d){return n.doc.history.undoDepth=d}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,Ci,!0),i("moveInputWithCursor",!0,function(n,d){d||n.display.input.resetPosition()}),i("tabindex",null,function(n,d){return n.display.input.getField().tabIndex=d||""}),i("autofocus",null),i("direction","ltr",function(n,d){return n.doc.setDirection(d)},!0),i("phrases",null)}function Jl(e,t,i){var n=i&&i!=oi;if(!t!=!n){var d=e.display.dragFunctions,N=t?Ue:lt;N(e.display.scroller,"dragstart",d.start),N(e.display.scroller,"dragenter",d.enter),N(e.display.scroller,"dragover",d.over),N(e.display.scroller,"dragleave",d.leave),N(e.display.scroller,"drop",d.drop)}}function Zl(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),ji(e)),Ea(e),Mr(e),yi(e),setTimeout(function(){return qn(e)},100)}function Qt(e,t){var i=this;if(!(this instanceof Qt))return new Qt(e,t);this.options=t=t?g(t):{},g(xo,t,!1);var n=t.value;typeof n=="string"?n=new Pr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var d=new Qt.inputStyles[t.inputStyle](this),N=this.display=new hl(e,n,d,t);N.wrapper.CodeMirror=this,Eo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ts(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 $,keySeq:null,specialChars:null},t.autofocus&&!o&&N.input.focus(),K&&G<11&&setTimeout(function(){return i.display.input.reset(!0)},20),Ql(this),Rl(),Hn(this),this.curOp.forceUpdate=!0,ks(this,n),t.autofocus&&!o||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Ta(i)},20):Zn(this);for(var z in aa)aa.hasOwnProperty(z)&&aa[z](this,t[z],oi);Cs(this),t.finishInit&&t.finishInit(this);for(var Q=0;Q20*20}Ue(t.scroller,"touchstart",function(q){if(!Ge(e,q)&&!N(q)&&!Wa(e,q)){t.input.ensurePolled(),clearTimeout(i);var te=+new Date;t.activeTouch={start:te,moved:!1,prev:te-n.end<=300?n:null},q.touches.length==1&&(t.activeTouch.left=q.touches[0].pageX,t.activeTouch.top=q.touches[0].pageY)}}),Ue(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ue(t.scroller,"touchend",function(q){var te=t.activeTouch;if(te&&!cn(t,q)&&te.left!=null&&!te.moved&&new Date-te.start<300){var pe=e.coordsChar(t.activeTouch,"page"),ye;!te.prev||z(te,te.prev)?ye=new Gt(pe,pe):!te.prev.prev||z(te,te.prev.prev)?ye=e.findWordAt(pe):ye=new Gt(Ze(pe.line,0),x(e.doc,Ze(pe.line+1,0))),e.setSelection(ye.anchor,ye.head),e.focus(),ae(q)}d()}),Ue(t.scroller,"touchcancel",d),Ue(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ei(e,t.scroller.scrollTop),Bn(e,t.scroller.scrollLeft,!0),je(e,"scroll",e))}),Ue(t.scroller,"mousewheel",function(q){return Rs(e,q)}),Ue(t.scroller,"DOMMouseScroll",function(q){return Rs(e,q)}),Ue(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(q){Ge(e,q)||me(q)},over:function(q){Ge(e,q)||(Ol(e,q),me(q))},start:function(q){return Al(e,q)},drop:pr(e,Cl),leave:function(q){Ge(e,q)||no(e)}};var Q=t.input.getField();Ue(Q,"keyup",function(q){return mo.call(e,q)}),Ue(Q,"keydown",pr(e,po)),Ue(Q,"keypress",pr(e,go)),Ue(Q,"focus",function(q){return Ta(e,q)}),Ue(Q,"blur",function(q){return Zn(e,q)})}var Ga=[];Qt.defineInitHook=function(e){return Ga.push(e)};function Bi(e,t,i,n){var d=e.doc,N;i==null&&(i="add"),i=="smart"&&(d.mode.indent?N=tt(e,t).state:i="prev");var z=e.options.tabSize,Q=mt(d,t),q=H(Q.text,null,z);Q.stateAfter&&(Q.stateAfter=null);var te=Q.text.match(/^\s*/)[0],pe;if(!n&&!/\S/.test(Q.text))pe=0,i="not";else if(i=="smart"&&(pe=d.mode.indent(N,Q.text.slice(te.length),Q.text),pe==Oe||pe>150)){if(!n)return;i="prev"}i=="prev"?t>d.first?pe=H(mt(d,t-1).text,null,z):pe=0:i=="add"?pe=q+e.options.indentUnit:i=="subtract"?pe=q-e.options.indentUnit:typeof i=="number"&&(pe=q+i),pe=Math.max(0,pe);var ye="",Me=0;if(e.options.indentWithTabs)for(var ke=Math.floor(pe/z);ke;--ke)Me+=z,ye+=" ";if(Mez,q=dt(t),te=null;if(Q&&n.ranges.length>1)if(rn&&rn.text.join(` + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(N),N.scrollIntoView(c),e.display.lineSpace.removeChild(N)}}function $o(e,t,i,n){n==null&&(n=0);var c;!e.options.lineWrapping&&t==i&&(t=t.ch?Ze(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?Ze(t.line,t.ch+1,"before"):t);for(var N=0;N<5;N++){var z=!1,Q=en(e,t),q=!i||i==t?Q:en(e,i);c={left:Math.min(Q.left,q.left),top:Math.min(Q.top,q.top)-n,right:Math.max(Q.left,q.left),bottom:Math.max(Q.bottom,q.bottom)+n};var te=wa(e,c),pe=e.doc.scrollTop,ye=e.doc.scrollLeft;if(te.scrollTop!=null&&(Ei(e,te.scrollTop),Math.abs(e.doc.scrollTop-pe)>1&&(z=!0)),te.scrollLeft!=null&&(Bn(e,te.scrollLeft),Math.abs(e.doc.scrollLeft-ye)>1&&(z=!0)),!z)break}return c}function Jo(e,t){var i=wa(e,t);i.scrollTop!=null&&Ei(e,i.scrollTop),i.scrollLeft!=null&&Bn(e,i.scrollLeft)}function wa(e,t){var i=e.display,n=$n(e.display);t.top<0&&(t.top=0);var c=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,N=da(e),z={};t.bottom-t.top>N&&(t.bottom=t.top+N);var Q=e.doc.height+ca(i),q=t.topQ-n;if(t.topc+N){var pe=Math.min(t.top,(te?Q:t.bottom)-N);pe!=c&&(z.scrollTop=pe)}var ye=e.options.fixedGutter?0:i.gutters.offsetWidth,Me=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-ye,ke=Pn(e)-i.gutters.offsetWidth,Ke=t.right-t.left>ke;return Ke&&(t.right=t.left+ke),t.left<10?z.scrollLeft=0:t.leftke+Me-3&&(z.scrollLeft=t.right+(Ke?0:10)-ke),z}function Sa(e,t){if(t==null)return;Yi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Qn(e){Yi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function _i(e,t,i){(t!=null||i!=null)&&Yi(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zo(e,t){Yi(e),e.curOp.scrollToPos=t}function Yi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=us(e,t.from),n=us(e,t.to);bs(e,i,n,t.margin)}}function bs(e,t,i,n){var c=wa(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});_i(e,c.scrollLeft,c.scrollTop)}function Ei(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;P||Aa(e,{top:t}),_s(e,t,!0),P&&Aa(e),wi(e,100)}function _s(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Bn(e,t,i,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Ss(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function xi(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+ca(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:n,scrollHeight:n+sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var jn=function(e,t,i){this.cm=i;var n=this.vert=d("div",[d("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=d("div",[d("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=c.tabIndex=-1,e(n),e(c),Ue(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ue(c,"scroll",function(){c.clientWidth&&t(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,K&&G<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var c=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var N=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+N)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},jn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jn.prototype.zeroWidthHack=function(){var e=s&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new $,this.disableVert=new $},jn.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var c=e.getBoundingClientRect(),N=i=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);N!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},jn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ti=function(){};Ti.prototype.update=function(){return{bottom:0,right:0}},Ti.prototype.setScrollLeft=function(){},Ti.prototype.setScrollTop=function(){},Ti.prototype.clear=function(){};function qn(e,t){t||(t=xi(e));var i=e.display.barWidth,n=e.display.barHeight;Es(e,t);for(var c=0;c<4&&i!=e.display.barWidth||n!=e.display.barHeight;c++)i!=e.display.barWidth&&e.options.lineWrapping&&zi(e),Es(e,xi(e)),i=e.display.barWidth,n=e.display.barHeight}function Es(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var xs={native:jn,null:Ti};function Ts(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ue(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Bn(e,t):Ei(e,t)},e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var Qo=0;function Hn(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:++Qo},Jr(e.curOp)}function Wn(e){var t=e.curOp;t&&Io(t,function(i){for(var n=0;n=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Xi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&Ca(e.cm,e.update)}function rl(e){var t=e.cm,i=t.display;e.updatedDisplay&&zi(t),e.barMeasure=xi(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ts(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Pn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function nl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var i=+new Date+e.options.workTime,n=tt(e,t.highlightFrontier),c=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(N){if(n.line>=e.display.viewFrom){var z=N.styles,Q=N.text.length>e.options.maxHighlightLength?Ut(t.mode,n.state):null,q=Ee(e,N,n,!0);Q&&(n.state=Q),N.styles=q.styles;var te=N.styleClasses,pe=q.classes;pe?N.styleClasses=pe:te&&(N.styleClasses=null);for(var ye=!z||z.length!=N.styles.length||te!=pe&&(!te||!pe||te.bgClass!=pe.bgClass||te.textClass!=pe.textClass),Me=0;!ye&&Mei)return wi(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),c.length&&Wr(e,function(){for(var N=0;N=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&fs(e)==0)return!1;Cs(e)&&(Sn(e),t.dims=ba(e));var c=n.first+n.size,N=Math.max(t.visible.from-e.options.viewportMargin,n.first),z=Math.min(c,t.visible.to+e.options.viewportMargin);i.viewFromz&&i.viewTo-z<20&&(z=Math.min(c,i.viewTo)),dr&&(N=di(e.doc,N),z=Tn(e.doc,z));var Q=N!=i.viewFrom||z!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Vo(e,N,z),i.viewOffset=qr(mt(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var q=fs(e);if(!Q&&q==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var te=ol(e);return q>4&&(i.lineDiv.style.display="none"),ul(e,i.updateLineNumbers,t.dims),q>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ll(te),C(i.cursorDiv),C(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,Q&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,wi(e,400)),i.updateLineNumbers=null,!0}function ws(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Pn(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+ca(e.display)-da(e),i.top)}),t.visible=Vi(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Vi(e.display,e.doc,i));if(!Ca(e,t))break;zi(e);var c=xi(e);bi(e),qn(e,c),Ra(e,c),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Aa(e,t){var i=new Xi(e,t);if(Ca(e,i)){zi(e),ws(e,i);var n=xi(e);bi(e),qn(e,n),Ra(e,n),i.finish()}}function ul(e,t,i){var n=e.display,c=e.options.lineNumbers,N=n.lineDiv,z=N.firstChild;function Q(Ke){var $e=Ke.nextSibling;return r&&s&&e.display.currentWheelTarget==Ke?Ke.style.display="none":Ke.parentNode.removeChild(Ke),$e}for(var q=n.view,te=n.viewFrom,pe=0;pe-1&&(ke=!1),Xa(e,ye,te,i)),ke&&(C(ye.lineNumber),ye.lineNumber.appendChild(document.createTextNode(Xr(e.options,te)))),z=ye.node.nextSibling}te+=ye.size}for(;z;)z=Q(z)}function Oa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ra(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+sn(e)+"px"}function Ss(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=_a(t)-t.scroller.scrollLeft+e.doc.scrollLeft,c=t.gutters.offsetWidth,N=n+"px",z=0;zz.clientWidth,q=z.scrollHeight>z.clientHeight;if(!(n&&Q||c&&q))return;if(c&&s&&r){e:for(var te=t.target,pe=N.view;te!=z;te=te.parentNode)for(var ye=0;ye=0&&Ct(e,n.to())<=0)return i}return-1};var Gt=function(e,t){this.anchor=e,this.head=t};Gt.prototype.from=function(){return yn(this.anchor,this.head)},Gt.prototype.to=function(){return vn(this.anchor,this.head)},Gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function tn(e,t,i){var n=e&&e.options.selectionsMayTouch,c=t[i];t.sort(function(Me,ke){return Ct(Me.from(),ke.from())}),i=ne(t,c);for(var N=1;N0:q>=0){var te=yn(Q.from(),z.from()),pe=vn(Q.to(),z.to()),ye=Q.empty()?z.from()==z.head:Q.from()==Q.head;N<=i&&--i,t.splice(--N,2,new Gt(ye?pe:te,ye?te:pe))}}return new Yr(t,i)}function Cn(e,t){return new Yr([new Gt(e,t||e)],0)}function An(e){return e.text?Ze(e.from.line+e.text.length-1,re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ls(e,t){if(Ct(e,t.from)<0)return e;if(Ct(e,t.to)<=0)return An(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=An(t).ch-t.to.ch),Ze(i,n)}function Ia(e,t){for(var i=[],n=0;n1&&e.remove(Q.line+1,Ke-1),e.insert(Q.line+1,nt)}br(e,"change",e,t)}function On(e,t,i){function n(c,N,z){if(c.linked)for(var Q=0;Q1&&!e.done[e.done.length-2].ranges)return e.done.pop(),re(e.done)}function Ns(e,t,i,n){var c=e.history;c.undone.length=0;var N=+new Date,z,Q;if((c.lastOp==n||c.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&c.lastModTime>N-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(z=pl(c,c.lastOp==n)))Q=re(z.changes),Ct(t.from,t.to)==0&&Ct(t.from,Q.to)==0?Q.to=An(t):z.changes.push(Ma(e,t));else{var q=re(c.done);for((!q||!q.ranges)&&Zi(e.sel,c.done),z={changes:[Ma(e,t)],generation:c.generation},c.done.push(z);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(i),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=N,c.lastOp=c.lastSelOp=n,c.lastOrigin=c.lastSelOrigin=t.origin,Q||je(e,"historyAdded")}function ml(e,t,i,n){var c=t.charAt(0);return c=="*"||c=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,n){var c=e.history,N=n&&n.origin;i==c.lastSelOp||N&&c.lastSelOrigin==N&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==N||ml(e,N,re(c.done),t))?c.done[c.done.length-1]=t:Zi(t,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=N,c.lastSelOp=i,n&&n.clearRedo!==!1&&Ps(c.undone)}function Zi(e,t){var i=re(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Fs(e,t,i,n){var c=t["spans_"+e.id],N=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(z){z.markedSpans&&((c||(c=t["spans_"+e.id]={}))[N]=z.markedSpans),++N})}function vl(e){if(!e)return null;for(var t,i=0;i-1&&(re(Q)[ye]=te[ye],delete te[ye]))}}return n}function Pa(e,t,i,n){if(n){var c=e.anchor;if(i){var N=Ct(t,c)<0;N!=Ct(i,c)<0?(c=t,t=i):N!=Ct(t,i)<0&&(t=i)}return new Gt(c,t)}else return new Gt(i||t,t)}function Qi(e,t,i,n,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),wr(e,new Yr([Pa(e.sel.primary(),t,i,c)],0),n)}function Bs(e,t,i){for(var n=[],c=e.cm&&(e.cm.display.shift||e.extend),N=0;N=t.ch:Q.to>t.ch))){if(c&&(je(q,"beforeCursorEnter"),q.explicitlyCleared))if(N.markedSpans){--z;continue}else break;if(!q.atomic)continue;if(i){var ye=q.find(n<0?1:-1),Me=void 0;if((n<0?pe:te)&&(ye=zs(e,ye,-n,ye&&ye.line==t.line?N:null)),ye&&ye.line==t.line&&(Me=Ct(ye,i))&&(n<0?Me<0:Me>0))return ti(e,ye,t,n,c)}var ke=q.find(n<0?-1:1);return(n<0?te:pe)&&(ke=zs(e,ke,n,ke.line==t.line?N:null)),ke?ti(e,ke,t,n,c):null}}return t}function ea(e,t,i,n,c){var N=n||1,z=ti(e,t,i,N,c)||!c&&ti(e,t,i,N,!0)||ti(e,t,i,-N,c)||!c&&ti(e,t,i,-N,!0);return z||(e.cantEdit=!0,Ze(e.first,0))}function zs(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?x(e,Ze(t.line-1)):null:i>0&&t.ch==(n||mt(e,t.line)).text.length?t.line=0;--c)Xs(e,{from:n[c].from,to:n[c].to,text:c?[""]:t.text,origin:t.origin});else Xs(e,t)}function Xs(e,t){if(t.text.length==1&&t.text[0]==""&&Ct(t.from,t.to)==0)return;var i=Ia(e,t);Ns(e,t,i,e.cm?e.cm.curOp.id:NaN),Ai(e,t,i,Qr(e,t));var n=[];On(e,function(c,N){!N&&ne(n,c.history)==-1&&(Qs(c.history,t),n.push(c.history)),Ai(c,t,null,Qr(c,t))})}function ta(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!i)return;for(var c=e.history,N,z=e.sel,Q=t=="undo"?c.done:c.undone,q=t=="undo"?c.undone:c.done,te=0;te=0;--ke){var Ke=Me(ke);if(Ke)return Ke.v}}function $s(e,t){if(t==0)return;if(e.first+=t,e.sel=new Yr(fe(e.sel.ranges,function(c){return new Gt(Ze(c.anchor.line+t,c.anchor.ch),Ze(c.head.line+t,c.head.ch))}),e.sel.primIndex),e.cm){Mr(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;ne.lastLine())return;if(t.from.lineN&&(t={from:t.from,to:Ze(N,mt(e,N).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Br(e,t.from,t.to),i||(i=Ia(e,t)),e.cm?_l(e.cm,t,n):ka(e,t,n),qi(e,i,ge),e.cantEdit&&ea(e,Ze(e.firstLine(),0))&&(e.cantEdit=!1)}function _l(e,t,i){var n=e.doc,c=e.display,N=t.from,z=t.to,Q=!1,q=N.line;e.options.lineWrapping||(q=Rt(Ar(mt(n,N.line))),n.iter(q,z.line+1,function(ke){if(ke==c.maxLine)return Q=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Ae(e),ka(n,t,i,ds(e)),e.options.lineWrapping||(n.iter(q,N.line+t.text.length,function(ke){var Ke=pi(ke);Ke>c.maxLineLength&&(c.maxLine=ke,c.maxLineLength=Ke,c.maxLineChanged=!0,Q=!1)}),Q&&(e.curOp.updateMaxLine=!0)),Zr(n,N.line),wi(e,400);var te=t.text.length-(z.line-N.line)-1;t.full?Mr(e):N.line==z.line&&t.text.length==1&&!Ds(e.doc,t)?wn(e,N.line,"text"):Mr(e,N.line,z.line+1,te);var pe=_e(e,"changes"),ye=_e(e,"change");if(ye||pe){var Me={from:N,to:z,text:t.text,removed:t.removed,origin:t.origin};ye&&br(e,"change",e,Me),pe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Me)}e.display.selForContextMenu=null}function ni(e,t,i,n,c){var N;n||(n=i),Ct(n,i)<0&&(N=[n,i],i=N[0],n=N[1]),typeof t=="string"&&(t=e.splitLines(t)),ri(e,{from:i,to:n,text:t,origin:c})}function Js(e,t,i,n){i1||!(this.children[0]instanceof Ri))){var Q=[];this.collapse(Q),this.children=[new Ri(Q)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var z=c.lines.length%25+25,Q=z;Q10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=te,e.display.maxLineLength=pe,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Mr(e,n,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gs(e.doc)),e&&br(e,"markerCleared",e,this,n,c),t&&Wn(e),this.parent&&this.parent.clear()},Rn.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,c=0;c0||z==0&&N.clearWhenEmpty!==!1)return N;if(N.replacedWith&&(N.collapsed=!0,N.widgetNode=S("span",[N.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||N.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(N.widgetNode.insertLeft=!0)),N.collapsed){if(fr(e,t.line,t,i,N)||t.line!=i.line&&fr(e,i.line,t,i,N))throw new Error("Inserting collapsed marker partially overlapping an existing one");un()}N.addToHistory&&Ns(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var Q=t.line,q=e.cm,te;if(e.iter(Q,i.line+1,function(ye){q&&N.collapsed&&!q.options.lineWrapping&&Ar(ye)==q.display.maxLine&&(te=!0),N.collapsed&&Q!=t.line&&Jt(ye,0),bn(ye,new hn(N,Q==t.line?t.ch:null,Q==i.line?i.ch:null)),++Q}),N.collapsed&&e.iter(t.line,i.line+1,function(ye){an(e,ye)&&Jt(ye,0)}),N.clearOnEnter&&Ue(N,"beforeCursorEnter",function(){return N.clear()}),N.readOnly&&(zr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),N.collapsed&&(N.id=++eo,N.atomic=!0),q){if(te&&(q.curOp.updateMaxLine=!0),N.collapsed)Mr(q,t.line,i.line+1);else if(N.className||N.startStyle||N.endStyle||N.css||N.attributes||N.title)for(var pe=t.line;pe<=i.line;pe++)wn(q,pe,"text");N.atomic&&Gs(q.doc),br(q,"markerAdded",q,N)}return N}var Di=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;q--)ri(this,n[q]);Q?Hs(this,Q):this.cm&&Qn(this.cm)}),undo:mr(function(){ta(this,"undo")}),redo:mr(function(){ta(this,"redo")}),undoSelection:mr(function(){ta(this,"undo",!0)}),redoSelection:mr(function(){ta(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n=e.ch)&&t.push(c.marker.parent||c.marker)}return t},findMarks:function(e,t,i){e=x(this,e),t=x(this,t);var n=[],c=e.line;return this.iter(e.line,t.line+1,function(N){var z=N.markedSpans;if(z)for(var Q=0;Q=q.to||q.from==null&&c!=e.line||q.from!=null&&c==t.line&&q.from>=t.ch)&&(!i||i(q.marker))&&n.push(q.marker.parent||q.marker)}++c}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;ne)return t=e,!0;e-=N,++i}),x(this,Ze(i,t))},indexFromPos:function(e){e=x(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var pe=e.dataTransfer.getData("Text");if(pe){var ye;if(t.state.draggingText&&!t.state.draggingText.copy&&(ye=t.listSelections()),qi(t.doc,Cn(i,i)),ye)for(var Me=0;Me=0;Q--)ni(e.doc,"",n[Q].from,n[Q].to,"+delete");Qn(e)})}function Fa(e,t,i){var n=Ie(e.text,t+i,i);return n<0||n>e.text.length?null:n}function Ua(e,t,i){var n=Fa(e,t.ch,i);return n==null?null:new Ze(t.line,n,i<0?"after":"before")}function Ba(e,t,i,n,c){if(e){t.doc.direction=="rtl"&&(c=-c);var N=qe(i,t.doc.direction);if(N){var z=c<0?re(N):N[0],Q=c<0==(z.level==1),q=Q?"after":"before",te;if(z.level>0||t.doc.direction=="rtl"){var pe=Xn(t,i);te=c<0?i.text.length-1:0;var ye=on(t,pe,te).top;te=We(function(Me){return on(t,pe,Me).top==ye},c<0==(z.level==1)?z.from:z.to-1,te),q=="before"&&(te=Fa(i,te,1))}else te=c<0?z.to:z.from;return new Ze(n,te,q)}}return new Ze(n,c<0?i.text.length:0,c<0?"before":"after")}function Ml(e,t,i,n){var c=qe(t,e.doc.direction);if(!c)return Ua(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var N=Je(c,i.ch,i.sticky),z=c[N];if(e.doc.direction=="ltr"&&z.level%2==0&&(n>0?z.to>i.ch:z.from=z.from&&Me>=pe.begin)){var ke=ye?"before":"after";return new Ze(i.line,Me,ke)}}var Ke=function(nt,ut,it){for(var pt=function(Xt,gr){return gr?new Ze(i.line,Q(Xt,1),"before"):new Ze(i.line,Xt,"after")};nt>=0&&nt0==(St.level!=1),Lt=bt?it.begin:Q(it.end,-1);if(St.from<=Lt&&Lt0?pe.end:Q(pe.begin,-1);return et!=null&&!(n>0&&et==t.text.length)&&($e=Ke(n>0?0:c.length-1,n,te(et)),$e)?$e:null}var Pi={selectAll:Vs,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ge)},killLine:function(e){return si(e,function(t){if(t.empty()){var i=mt(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)c=new Ze(c.line,c.ch+1),e.replaceRange(N.charAt(c.ch-1)+N.charAt(c.ch-2),Ze(c.line,c.ch-2),c,"+transpose");else if(c.line>e.doc.first){var z=mt(e.doc,c.line-1).text;z&&(c=new Ze(c.line,1),e.replaceRange(N.charAt(0)+e.doc.lineSeparator()+z.charAt(z.length-1),Ze(c.line-1,z.length-1),c,"+transpose"))}}i.push(new Gt(c,c))}e.setSelections(i)})},newlineAndIndent:function(e){return Wr(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;ne&&Ct(t,this.pos)==0&&i==this.button};var Fi,Ui;function Hl(e,t){var i=+new Date;return Ui&&Ui.compare(i,e,t)?(Fi=Ui=null,"triple"):Fi&&Fi.compare(i,e,t)?(Ui=new Ha(i,e,t),Fi=null,"double"):(Fi=new Ha(i,e,t),Ui=null,"single")}function vo(e){var t=this,i=t.display;if(Ge(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,dn(i,e)){r||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(Wa(t,e))return;var n=Fn(t,e),c=Pe(e),N=n?Hl(n,c):"single";if(window.focus(),c==1&&t.state.selectingText&&t.state.selectingText(e),n&&Wl(t,c,n,N,e))return;c==1?n?Kl(t,n,N,e):xe(e)==i.scroller&&ae(e):c==2?(n&&Qi(t.doc,n),setTimeout(function(){return i.input.focus()},20)):c==3&&(D?t.display.input.onContextMenu(e):vs(t))}function Wl(e,t,i,n,c){var N="Click";return n=="double"?N="Double"+N:n=="triple"&&(N="Triple"+N),N=(t==1?"Left":t==2?"Middle":"Right")+N,Ni(e,oo(N,c),c,function(z){if(typeof z=="string"&&(z=Pi[z]),!z)return!1;var Q=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),Q=z(e,i)!=Oe}finally{e.state.suppressEdits=!1}return Q})}function Gl(e,t,i){var n=e.getOption("configureMouse"),c=n?n(e,t,i):{};if(c.unit==null){var N=a?i.shiftKey&&i.metaKey:i.altKey;c.unit=N?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(c.extend==null||e.doc.extend)&&(c.extend=e.doc.extend||i.shiftKey),c.addNew==null&&(c.addNew=s?i.metaKey:i.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(s?i.altKey:i.ctrlKey)),c}function Kl(e,t,i,n){K?setTimeout(I(gs,e),0):e.curOp.focus=B();var c=Gl(e,i,n),N=e.doc.sel,z;e.options.dragDrop&&He&&!e.isReadOnly()&&i=="single"&&(z=N.contains(t))>-1&&(Ct((z=N.ranges[z]).from(),t)<0||t.xRel>0)&&(Ct(z.to(),t)>0||t.xRel<0)?zl(e,n,t,c):Vl(e,n,t,c)}function zl(e,t,i,n){var c=e.display,N=!1,z=pr(e,function(te){r&&(c.scroller.draggable=!1),e.state.draggingText=!1,lt(c.wrapper.ownerDocument,"mouseup",z),lt(c.wrapper.ownerDocument,"mousemove",Q),lt(c.scroller,"dragstart",q),lt(c.scroller,"drop",z),N||(ae(te),n.addNew||Qi(e.doc,i,null,null,n.extend),r&&!p||K&&G==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),Q=function(te){N=N||Math.abs(t.clientX-te.clientX)+Math.abs(t.clientY-te.clientY)>=10},q=function(){return N=!0};r&&(c.scroller.draggable=!0),e.state.draggingText=z,z.copy=!n.moveOnDrag,c.scroller.dragDrop&&c.scroller.dragDrop(),Ue(c.wrapper.ownerDocument,"mouseup",z),Ue(c.wrapper.ownerDocument,"mousemove",Q),Ue(c.scroller,"dragstart",q),Ue(c.scroller,"drop",z),vs(e),setTimeout(function(){return c.input.focus()},20)}function yo(e,t,i){if(i=="char")return new Gt(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Gt(Ze(t.line,0),x(e.doc,Ze(t.line+1,0)));var n=i(e,t);return new Gt(n.from,n.to)}function Vl(e,t,i,n){var c=e.display,N=e.doc;ae(t);var z,Q,q=N.sel,te=q.ranges;if(n.addNew&&!n.extend?(Q=N.sel.contains(i),Q>-1?z=te[Q]:z=new Gt(i,i)):(z=N.sel.primary(),Q=N.sel.primIndex),n.unit=="rectangle")n.addNew||(z=new Gt(i,i)),i=Fn(e,t,!0,!0),Q=-1;else{var pe=yo(e,i,n.unit);n.extend?z=Pa(z,pe.anchor,pe.head,n.extend):z=pe}n.addNew?Q==-1?(Q=te.length,wr(N,tn(e,te.concat([z]),Q),{scroll:!1,origin:"*mouse"})):te.length>1&&te[Q].empty()&&n.unit=="char"&&!n.extend?(wr(N,tn(e,te.slice(0,Q).concat(te.slice(Q+1)),0),{scroll:!1,origin:"*mouse"}),q=N.sel):Na(N,Q,z,Te):(Q=0,wr(N,new Yr([z],0),Te),q=N.sel);var ye=i;function Me(it){if(Ct(ye,it)==0)return;if(ye=it,n.unit=="rectangle"){for(var pt=[],St=e.options.tabSize,bt=H(mt(N,i.line).text,i.ch,St),Lt=H(mt(N,it.line).text,it.ch,St),Xt=Math.min(bt,Lt),gr=Math.max(bt,Lt),er=Math.min(i.line,it.line),Gr=Math.min(e.lastLine(),Math.max(i.line,it.line));er<=Gr;er++){var Nr=mt(N,er).text,sr=Le(Nr,Xt,St);Xt==gr?pt.push(new Gt(Ze(er,sr),Ze(er,sr))):Nr.length>sr&&pt.push(new Gt(Ze(er,sr),Ze(er,Le(Nr,gr,St))))}pt.length||pt.push(new Gt(i,i)),wr(N,tn(e,q.ranges.slice(0,Q).concat(pt),Q),{origin:"*mouse",scroll:!1}),e.scrollIntoView(it)}else{var Fr=z,_r=yo(e,it,n.unit),hr=Fr.anchor,or;Ct(_r.anchor,hr)>0?(or=_r.head,hr=yn(Fr.from(),_r.anchor)):(or=_r.anchor,hr=vn(Fr.to(),_r.head));var rr=q.ranges.slice(0);rr[Q]=Yl(e,new Gt(x(N,hr),or)),wr(N,tn(e,rr,Q),Te)}}var ke=c.wrapper.getBoundingClientRect(),Ke=0;function $e(it){var pt=++Ke,St=Fn(e,it,!0,n.unit=="rectangle");if(!St)return;if(Ct(St,ye)!=0){e.curOp.focus=B(),Me(St);var bt=Vi(c,N);(St.line>=bt.to||St.lineke.bottom?20:0;Lt&&setTimeout(pr(e,function(){if(Ke!=pt)return;c.scroller.scrollTop+=Lt,$e(it)}),50)}}function et(it){e.state.selectingText=!1,Ke=Infinity,it&&(ae(it),c.input.focus()),lt(c.wrapper.ownerDocument,"mousemove",nt),lt(c.wrapper.ownerDocument,"mouseup",ut),N.history.lastSelOrigin=null}var nt=pr(e,function(it){it.buttons===0||!Pe(it)?et(it):$e(it)}),ut=pr(e,et);e.state.selectingText=ut,Ue(c.wrapper.ownerDocument,"mousemove",nt),Ue(c.wrapper.ownerDocument,"mouseup",ut)}function Yl(e,t){var i=t.anchor,n=t.head,c=mt(e.doc,i.line);if(Ct(i,n)==0&&i.sticky==n.sticky)return t;var N=qe(c);if(!N)return t;var z=Je(N,i.ch,i.sticky),Q=N[z];if(Q.from!=i.ch&&Q.to!=i.ch)return t;var q=z+(Q.from==i.ch==(Q.level!=1)?0:1);if(q==0||q==N.length)return t;var te;if(n.line!=i.line)te=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var pe=Je(N,n.ch,n.sticky),ye=pe-z||(n.ch-i.ch)*(Q.level==1?-1:1);pe==q-1||pe==q?te=ye<0:te=ye>0}var Me=N[q+(te?-1:0)],ke=te==(Me.level==1),Ke=ke?Me.from:Me.to,$e=ke?"after":"before";return i.ch==Ke&&i.sticky==$e?t:new Gt(new Ze(i.line,Ke,$e),n)}function bo(e,t,i,n){var c,N;if(t.touches)c=t.touches[0].clientX,N=t.touches[0].clientY;else try{c=t.clientX,N=t.clientY}catch(Me){return!1}if(c>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ae(t);var z=e.display,Q=z.lineDiv.getBoundingClientRect();if(N>Q.bottom||!_e(e,i))return de(t);N-=Q.top-z.viewOffset;for(var q=0;q=c){var pe=lr(e.doc,N),ye=e.display.gutterSpecs[q];return je(e,i,e,pe,ye.className,t),de(t)}}}function Wa(e,t){return bo(e,t,"gutterClick",!0)}function _o(e,t){if(dn(e.display,t)||Xl(e,t))return;if(Ge(e,t,"contextmenu"))return;D||e.display.input.onContextMenu(t)}function Xl(e,t){return _e(e,"gutterContextMenu")?bo(e,t,"gutterContextMenu",!1):!1}function Eo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yi(e)}var oi={toString:function(){return"CodeMirror.Init"}},xo={},aa={};function $l(e){var t=e.optionHandlers;function i(n,c,N,z){e.defaults[n]=c,N&&(t[n]=z?function(Q,q,te){te!=oi&&N(Q,q,te)}:N)}e.defineOption=i,e.Init=oi,i("value","",function(n,c){return n.setValue(c)},!0),i("mode",null,function(n,c){n.doc.modeOption=c,Da(n)},!0),i("indentUnit",2,Da,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Ci(n),yi(n),Mr(n)},!0),i("lineSeparator",null,function(n,c){if(n.doc.lineSep=c,!c)return;var N=[],z=n.doc.first;n.doc.iter(function(q){for(var te=0;;){var pe=q.text.indexOf(c,te);if(pe==-1)break;te=pe+c.length,N.push(Ze(z,pe))}z++});for(var Q=N.length-1;Q>=0;Q--)ni(n.doc,c,N[Q],Ze(N[Q].line,N[Q].ch+c.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,c,N){n.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),N!=oi&&n.refresh()}),i("specialCharPlaceholder",Yt,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",o?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,c){return n.getInputField().spellcheck=c},!0),i("autocorrect",!1,function(n,c){return n.getInputField().autocorrect=c},!0),i("autocapitalize",!1,function(n,c){return n.getInputField().autocapitalize=c},!0),i("rtlMoveVisually",!O),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){Eo(n),Si(n)},!0),i("keyMap","default",function(n,c,N){var z=na(c),Q=N!=oi&&na(N);Q&&Q.detach&&Q.detach(n,z),z.attach&&z.attach(n,Q||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(n,c){n.display.gutterSpecs=La(c,n.options.lineNumbers),Si(n)},!0),i("fixedGutter",!0,function(n,c){n.display.gutters.style.left=c?_a(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return qn(n)},!0),i("scrollbarStyle","native",function(n){Ts(n),qn(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,c){n.display.gutterSpecs=La(n.options.gutters,c),Si(n)},!0),i("firstLineNumber",1,Si,!0),i("lineNumberFormatter",function(n){return n},Si,!0),i("showCursorWhenSelecting",!1,bi,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,c){c=="nocursor"&&(Zn(n),n.display.input.blur()),n.display.input.readOnlyChanged(c)}),i("screenReaderLabel",null,function(n,c){c=c===""?null:c,n.display.input.screenReaderLabelChanged(c)}),i("disableInput",!1,function(n,c){c||n.display.input.reset()},!0),i("dragDrop",!0,Jl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,bi,!0),i("singleCursorHeightPerLine",!0,bi,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Ci,!0),i("addModeClass",!1,Ci,!0),i("pollInterval",100),i("undoDepth",200,function(n,c){return n.doc.history.undoDepth=c}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,Ci,!0),i("moveInputWithCursor",!0,function(n,c){c||n.display.input.resetPosition()}),i("tabindex",null,function(n,c){return n.display.input.getField().tabIndex=c||""}),i("autofocus",null),i("direction","ltr",function(n,c){return n.doc.setDirection(c)},!0),i("phrases",null)}function Jl(e,t,i){var n=i&&i!=oi;if(!t!=!n){var c=e.display.dragFunctions,N=t?Ue:lt;N(e.display.scroller,"dragstart",c.start),N(e.display.scroller,"dragenter",c.enter),N(e.display.scroller,"dragover",c.over),N(e.display.scroller,"dragleave",c.leave),N(e.display.scroller,"drop",c.drop)}}function Zl(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),ji(e)),Ea(e),Mr(e),yi(e),setTimeout(function(){return qn(e)},100)}function Qt(e,t){var i=this;if(!(this instanceof Qt))return new Qt(e,t);this.options=t=t?g(t):{},g(xo,t,!1);var n=t.value;typeof n=="string"?n=new Pr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var c=new Qt.inputStyles[t.inputStyle](this),N=this.display=new hl(e,n,c,t);N.wrapper.CodeMirror=this,Eo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ts(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 $,keySeq:null,specialChars:null},t.autofocus&&!o&&N.input.focus(),K&&G<11&&setTimeout(function(){return i.display.input.reset(!0)},20),Ql(this),Rl(),Hn(this),this.curOp.forceUpdate=!0,ks(this,n),t.autofocus&&!o||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Ta(i)},20):Zn(this);for(var z in aa)aa.hasOwnProperty(z)&&aa[z](this,t[z],oi);Cs(this),t.finishInit&&t.finishInit(this);for(var Q=0;Q20*20}Ue(t.scroller,"touchstart",function(q){if(!Ge(e,q)&&!N(q)&&!Wa(e,q)){t.input.ensurePolled(),clearTimeout(i);var te=+new Date;t.activeTouch={start:te,moved:!1,prev:te-n.end<=300?n:null},q.touches.length==1&&(t.activeTouch.left=q.touches[0].pageX,t.activeTouch.top=q.touches[0].pageY)}}),Ue(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ue(t.scroller,"touchend",function(q){var te=t.activeTouch;if(te&&!dn(t,q)&&te.left!=null&&!te.moved&&new Date-te.start<300){var pe=e.coordsChar(t.activeTouch,"page"),ye;!te.prev||z(te,te.prev)?ye=new Gt(pe,pe):!te.prev.prev||z(te,te.prev.prev)?ye=e.findWordAt(pe):ye=new Gt(Ze(pe.line,0),x(e.doc,Ze(pe.line+1,0))),e.setSelection(ye.anchor,ye.head),e.focus(),ae(q)}c()}),Ue(t.scroller,"touchcancel",c),Ue(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ei(e,t.scroller.scrollTop),Bn(e,t.scroller.scrollLeft,!0),je(e,"scroll",e))}),Ue(t.scroller,"mousewheel",function(q){return Rs(e,q)}),Ue(t.scroller,"DOMMouseScroll",function(q){return Rs(e,q)}),Ue(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(q){Ge(e,q)||me(q)},over:function(q){Ge(e,q)||(Ol(e,q),me(q))},start:function(q){return Al(e,q)},drop:pr(e,Cl),leave:function(q){Ge(e,q)||no(e)}};var Q=t.input.getField();Ue(Q,"keyup",function(q){return mo.call(e,q)}),Ue(Q,"keydown",pr(e,po)),Ue(Q,"keypress",pr(e,go)),Ue(Q,"focus",function(q){return Ta(e,q)}),Ue(Q,"blur",function(q){return Zn(e,q)})}var Ga=[];Qt.defineInitHook=function(e){return Ga.push(e)};function Bi(e,t,i,n){var c=e.doc,N;i==null&&(i="add"),i=="smart"&&(c.mode.indent?N=tt(e,t).state:i="prev");var z=e.options.tabSize,Q=mt(c,t),q=H(Q.text,null,z);Q.stateAfter&&(Q.stateAfter=null);var te=Q.text.match(/^\s*/)[0],pe;if(!n&&!/\S/.test(Q.text))pe=0,i="not";else if(i=="smart"&&(pe=c.mode.indent(N,Q.text.slice(te.length),Q.text),pe==Oe||pe>150)){if(!n)return;i="prev"}i=="prev"?t>c.first?pe=H(mt(c,t-1).text,null,z):pe=0:i=="add"?pe=q+e.options.indentUnit:i=="subtract"?pe=q-e.options.indentUnit:typeof i=="number"&&(pe=q+i),pe=Math.max(0,pe);var ye="",Me=0;if(e.options.indentWithTabs)for(var ke=Math.floor(pe/z);ke;--ke)Me+=z,ye+=" ";if(Mez,q=ct(t),te=null;if(Q&&n.ranges.length>1)if(rn&&rn.text.join(` `)==t){if(n.ranges.length%rn.text.length==0){te=[];for(var pe=0;pe=0;Me--){var ke=n.ranges[Me],Ke=ke.from(),$e=ke.to();ke.empty()&&(i&&i>0?Ke=Ze(Ke.line,Ke.ch-i):e.state.overwrite&&!Q?$e=Ze($e.line,Math.min(mt(N,$e.line).text.length,$e.ch+re(q).length)):Q&&rn&&rn.lineWise&&rn.text.join(` `)==q.join(` -`)&&(Ke=$e=Ze(Ke.line,0)));var et={from:Ke,to:$e,text:te?te[Me%te.length]:q,origin:d||(Q?"paste":e.state.cutIncoming>z?"cut":"+input")};ri(e.doc,et),br(e,"inputRead",e,et)}t&&!Q&&wo(e,t),Qn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=ye),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function To(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wr(t,function(){return Ka(t,i,0,null,"paste")}),!0}function wo(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var d=i.ranges[n];if(d.head.ch>100||n&&i.ranges[n-1].head.line==d.head.line)continue;var N=e.getModeAt(d.head),z=!1;if(N.electricChars){for(var Q=0;Q-1){z=Bi(e,d.head.line,"smart");break}}else N.electricInput&&(N.electricInput.test(mt(e.doc,d.head.line).text.slice(0,d.head.ch))&&(z=Bi(e,d.head.line,"smart")));z&&br(e,"electricInput",e,d.head.line)}}function So(e){for(var t=[],i=[],n=0;nN&&(Bi(this,Q.head.line,n,!0),N=Q.head.line,z==this.doc.sel.primIndex&&Qn(this));else{var q=Q.from(),te=Q.to(),pe=Math.max(N,q.line);N=Math.min(this.lastLine(),te.line-(te.ch?0:1))+1;for(var ye=pe;ye0&&Na(this.doc,z,new Gt(q,Me[z].to()),ge)}}}),getTokenAt:function(n,d){return $t(this,n,d)},getLineTokens:function(n,d){return $t(this,Ze(n),d,!0)},getTokenTypeAt:function(n){n=x(this.doc,n);var d=Ye(this,mt(this.doc,n.line)),N=0,z=(d.length-1)/2,Q=n.ch,q;if(Q==0)q=d[2];else for(;;){var te=N+z>>1;if((te?d[te*2-1]:0)>=Q)z=te;else if(d[te*2+1]q&&(n=q,z=!0),Q=mt(this.doc,n)}else Q=n;return Wi(this,Q,{top:0,left:0},d||"page",N||z).top+(z?this.doc.height-qr(Q):0)},defaultTextHeight:function(){return $n(this.display)},defaultCharWidth:function(){return Jn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,d,N,z,Q){var q=this.display;n=en(this,x(this.doc,n));var te=n.bottom,pe=n.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),q.sizer.appendChild(d),z=="over")te=n.top;else if(z=="above"||z=="near"){var ye=Math.max(q.wrapper.clientHeight,this.doc.height),Me=Math.max(q.sizer.clientWidth,q.lineSpace.clientWidth);(z=="above"||n.bottom+d.offsetHeight>ye)&&n.top>d.offsetHeight?te=n.top-d.offsetHeight:n.bottom+d.offsetHeight<=ye&&(te=n.bottom),pe+d.offsetWidth>Me&&(pe=Me-d.offsetWidth)}d.style.top=te+"px",d.style.left=d.style.right="",Q=="right"?(pe=q.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(Q=="left"?pe=0:Q=="middle"&&(pe=(q.sizer.clientWidth-d.offsetWidth)/2),d.style.left=pe+"px"),N&&Jo(this,{left:pe,top:te,right:pe+d.offsetWidth,bottom:te+d.offsetHeight})},triggerOnKeyDown:Or(po),triggerOnKeyPress:Or(go),triggerOnKeyUp:mo,triggerOnMouseDown:Or(vo),execCommand:function(n){if(Pi.hasOwnProperty(n))return Pi[n].call(null,this)},triggerElectric:Or(function(n){wo(this,n)}),findPosH:function(n,d,N,z){var Q=1;d<0&&(Q=-1,d=-d);for(var q=x(this.doc,n),te=0;te0&&pe(N.charAt(z-1));)--z;for(;Q.5||this.options.lineWrapping)&&Ea(this),je(this,"refresh",this)}),swapDoc:Or(function(n){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),ks(this,n),yi(this),this.display.input.reset(),_i(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,br(this,"swapDoc",this,d),d}),phrase:function(n){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,n)?d[n]:n},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}},we(e),e.registerHelper=function(n,d,N){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][d]=N},e.registerGlobalHelper=function(n,d,N,z){e.registerHelper(n,d,z),i[n]._global.push({pred:N,val:z})}}function za(e,t,i,n,d){var N=t,z=i,Q=mt(e,t.line),q=d&&e.direction=="rtl"?-i:i;function te(){var ut=t.line+q;return ut=e.first+e.size?!1:(t=new Ze(ut,t.ch,t.sticky),Q=mt(e,ut))}function pe(ut){var it;if(n=="codepoint"){var pt=Q.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(pt)?it=null:it=new Ze(t.line,Math.max(0,Math.min(Q.text.length,t.ch+i*(pt>=55296&&pt<56320?2:1))),-i)}else d?it=Ml(e.cm,Q,t,i):it=Ua(Q,t,i);if(it==null)if(!ut&&te())t=Ba(d,e.cm,Q,t.line,q);else return!1;else t=it;return!0}if(n=="char"||n=="codepoint")pe();else if(n=="column")pe(!0);else if(n=="word"||n=="group")for(var ye=null,Me=n=="group",ke=e.cm&&e.cm.getHelper(t,"wordChars"),Ke=!0;!(i<0&&!pe(!Ke));Ke=!1){var $e=Q.text.charAt(t.ch)||` +`)&&(Ke=$e=Ze(Ke.line,0)));var et={from:Ke,to:$e,text:te?te[Me%te.length]:q,origin:c||(Q?"paste":e.state.cutIncoming>z?"cut":"+input")};ri(e.doc,et),br(e,"inputRead",e,et)}t&&!Q&&wo(e,t),Qn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=ye),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function To(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wr(t,function(){return Ka(t,i,0,null,"paste")}),!0}function wo(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var c=i.ranges[n];if(c.head.ch>100||n&&i.ranges[n-1].head.line==c.head.line)continue;var N=e.getModeAt(c.head),z=!1;if(N.electricChars){for(var Q=0;Q-1){z=Bi(e,c.head.line,"smart");break}}else N.electricInput&&(N.electricInput.test(mt(e.doc,c.head.line).text.slice(0,c.head.ch))&&(z=Bi(e,c.head.line,"smart")));z&&br(e,"electricInput",e,c.head.line)}}function So(e){for(var t=[],i=[],n=0;nN&&(Bi(this,Q.head.line,n,!0),N=Q.head.line,z==this.doc.sel.primIndex&&Qn(this));else{var q=Q.from(),te=Q.to(),pe=Math.max(N,q.line);N=Math.min(this.lastLine(),te.line-(te.ch?0:1))+1;for(var ye=pe;ye0&&Na(this.doc,z,new Gt(q,Me[z].to()),ge)}}}),getTokenAt:function(n,c){return $t(this,n,c)},getLineTokens:function(n,c){return $t(this,Ze(n),c,!0)},getTokenTypeAt:function(n){n=x(this.doc,n);var c=Ye(this,mt(this.doc,n.line)),N=0,z=(c.length-1)/2,Q=n.ch,q;if(Q==0)q=c[2];else for(;;){var te=N+z>>1;if((te?c[te*2-1]:0)>=Q)z=te;else if(c[te*2+1]q&&(n=q,z=!0),Q=mt(this.doc,n)}else Q=n;return Wi(this,Q,{top:0,left:0},c||"page",N||z).top+(z?this.doc.height-qr(Q):0)},defaultTextHeight:function(){return $n(this.display)},defaultCharWidth:function(){return Jn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,c,N,z,Q){var q=this.display;n=en(this,x(this.doc,n));var te=n.bottom,pe=n.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),q.sizer.appendChild(c),z=="over")te=n.top;else if(z=="above"||z=="near"){var ye=Math.max(q.wrapper.clientHeight,this.doc.height),Me=Math.max(q.sizer.clientWidth,q.lineSpace.clientWidth);(z=="above"||n.bottom+c.offsetHeight>ye)&&n.top>c.offsetHeight?te=n.top-c.offsetHeight:n.bottom+c.offsetHeight<=ye&&(te=n.bottom),pe+c.offsetWidth>Me&&(pe=Me-c.offsetWidth)}c.style.top=te+"px",c.style.left=c.style.right="",Q=="right"?(pe=q.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(Q=="left"?pe=0:Q=="middle"&&(pe=(q.sizer.clientWidth-c.offsetWidth)/2),c.style.left=pe+"px"),N&&Jo(this,{left:pe,top:te,right:pe+c.offsetWidth,bottom:te+c.offsetHeight})},triggerOnKeyDown:Or(po),triggerOnKeyPress:Or(go),triggerOnKeyUp:mo,triggerOnMouseDown:Or(vo),execCommand:function(n){if(Pi.hasOwnProperty(n))return Pi[n].call(null,this)},triggerElectric:Or(function(n){wo(this,n)}),findPosH:function(n,c,N,z){var Q=1;c<0&&(Q=-1,c=-c);for(var q=x(this.doc,n),te=0;te0&&pe(N.charAt(z-1));)--z;for(;Q.5||this.options.lineWrapping)&&Ea(this),je(this,"refresh",this)}),swapDoc:Or(function(n){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),ks(this,n),yi(this),this.display.input.reset(),_i(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,br(this,"swapDoc",this,c),c}),phrase:function(n){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,n)?c[n]:n},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}},we(e),e.registerHelper=function(n,c,N){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][c]=N},e.registerGlobalHelper=function(n,c,N,z){e.registerHelper(n,c,z),i[n]._global.push({pred:N,val:z})}}function za(e,t,i,n,c){var N=t,z=i,Q=mt(e,t.line),q=c&&e.direction=="rtl"?-i:i;function te(){var ut=t.line+q;return ut=e.first+e.size?!1:(t=new Ze(ut,t.ch,t.sticky),Q=mt(e,ut))}function pe(ut){var it;if(n=="codepoint"){var pt=Q.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(pt)?it=null:it=new Ze(t.line,Math.max(0,Math.min(Q.text.length,t.ch+i*(pt>=55296&&pt<56320?2:1))),-i)}else c?it=Ml(e.cm,Q,t,i):it=Ua(Q,t,i);if(it==null)if(!ut&&te())t=Ba(c,e.cm,Q,t.line,q);else return!1;else t=it;return!0}if(n=="char"||n=="codepoint")pe();else if(n=="column")pe(!0);else if(n=="word"||n=="group")for(var ye=null,Me=n=="group",ke=e.cm&&e.cm.getHelper(t,"wordChars"),Ke=!0;!(i<0&&!pe(!Ke));Ke=!1){var $e=Q.text.charAt(t.ch)||` `,et=Be($e,ke)?"w":Me&&$e==` -`?"n":!Me||/\s/.test($e)?null:"p";if(Me&&!Ke&&!et&&(et="s"),ye&&ye!=et){i<0&&(i=1,pe(),t.sticky="after");break}if(et&&(ye=et),i>0&&!pe(!Ke))break}var nt=ea(e,t,N,z,!0);return mn(N,nt)&&(nt.hitSide=!0),nt}function Oo(e,t,i,n){var d=e.doc,N=t.left,z;if(n=="page"){var Q=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),q=Math.max(Q-.5*$n(e.display),3);z=(i>0?t.bottom:t.top)+i*q}else n=="line"&&(z=i>0?t.bottom+3:t.top-3);for(var te;!(te=va(e,N,z),!te.outside);){if(i<0?z<=0:z>=d.height){te.hitSide=!0;break}z+=i*5}return te}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,i=this,n=i.cm,d=i.div=e.lineDiv;Co(d,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function N(Q){for(var q=Q.target;q;q=q.parentNode){if(q==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(q.className))break}return!1}Ue(d,"paste",function(Q){if(!N(Q)||Ge(n,Q)||To(Q,n))return;G<=11&&setTimeout(pr(n,function(){return t.updateFromDOM()}),20)}),Ue(d,"compositionstart",function(Q){t.composing={data:Q.data,done:!1}}),Ue(d,"compositionupdate",function(Q){t.composing||(t.composing={data:Q.data,done:!1})}),Ue(d,"compositionend",function(Q){t.composing&&(Q.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ue(d,"touchstart",function(){return i.forceCompositionEnd()}),Ue(d,"input",function(){t.composing||t.readFromDOMSoon()});function z(Q){if(!N(Q)||Ge(n,Q))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()}),Q.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var q=So(n);sa({lineWise:!0,text:q.text}),Q.type=="cut"&&n.operation(function(){n.setSelections(q.ranges,0,ge),n.replaceSelection("",null,"cut")})}else return;if(Q.clipboardData){Q.clipboardData.clearData();var te=rn.text.join(` +`?"n":!Me||/\s/.test($e)?null:"p";if(Me&&!Ke&&!et&&(et="s"),ye&&ye!=et){i<0&&(i=1,pe(),t.sticky="after");break}if(et&&(ye=et),i>0&&!pe(!Ke))break}var nt=ea(e,t,N,z,!0);return mn(N,nt)&&(nt.hitSide=!0),nt}function Oo(e,t,i,n){var c=e.doc,N=t.left,z;if(n=="page"){var Q=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),q=Math.max(Q-.5*$n(e.display),3);z=(i>0?t.bottom:t.top)+i*q}else n=="line"&&(z=i>0?t.bottom+3:t.top-3);for(var te;!(te=va(e,N,z),!te.outside);){if(i<0?z<=0:z>=c.height){te.hitSide=!0;break}z+=i*5}return te}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,i=this,n=i.cm,c=i.div=e.lineDiv;Co(c,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function N(Q){for(var q=Q.target;q;q=q.parentNode){if(q==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(q.className))break}return!1}Ue(c,"paste",function(Q){if(!N(Q)||Ge(n,Q)||To(Q,n))return;G<=11&&setTimeout(pr(n,function(){return t.updateFromDOM()}),20)}),Ue(c,"compositionstart",function(Q){t.composing={data:Q.data,done:!1}}),Ue(c,"compositionupdate",function(Q){t.composing||(t.composing={data:Q.data,done:!1})}),Ue(c,"compositionend",function(Q){t.composing&&(Q.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ue(c,"touchstart",function(){return i.forceCompositionEnd()}),Ue(c,"input",function(){t.composing||t.readFromDOMSoon()});function z(Q){if(!N(Q)||Ge(n,Q))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()}),Q.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var q=So(n);sa({lineWise:!0,text:q.text}),Q.type=="cut"&&n.operation(function(){n.setSelections(q.ranges,0,ge),n.replaceSelection("",null,"cut")})}else return;if(Q.clipboardData){Q.clipboardData.clearData();var te=rn.text.join(` `);if(Q.clipboardData.setData("Text",te),Q.clipboardData.getData("Text")==te){Q.preventDefault();return}}var pe=Ao(),ye=pe.firstChild;n.display.lineSpace.insertBefore(pe,n.display.lineSpace.firstChild),ye.value=rn.text.join(` -`);var Me=document.activeElement;M(ye),setTimeout(function(){n.display.lineSpace.removeChild(pe),Me.focus(),Me==d&&i.showPrimarySelection()},50)}Ue(d,"copy",z),Ue(d,"cut",z)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=ps(this.cm,!1);return e.focus=document.activeElement==this.div,e},zt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),d=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||d.line=t.display.viewFrom&&Ro(t,n)||{node:Q[0].measure.map[2],offset:0},te=d.linee.firstLine()&&(n=Ze(n.line-1,mt(e.doc,n.line-1).length)),d.ch==mt(e.doc,d.line).text.length&&d.linet.viewTo-1)return!1;var N,z,Q;n.line==t.viewFrom||(N=Un(e,n.line))==0?(z=Rt(t.view[0].line),Q=t.view[0].node):(z=Rt(t.view[N].line),Q=t.view[N-1].node.nextSibling);var q=Un(e,d.line),te,pe;if(q==t.view.length-1?(te=t.viewTo-1,pe=t.lineDiv.lastChild):(te=Rt(t.view[q+1].line)-1,pe=t.view[q+1].node.previousSibling),!Q)return!1;for(var ye=e.doc.splitLines(tu(e,Q,pe,z,te)),Me=Br(e.doc,Ze(z,0),Ze(te,mt(e.doc,te).text.length));ye.length>1&&Me.length>1;)if(re(ye)==re(Me))ye.pop(),Me.pop(),te--;else if(ye[0]==Me[0])ye.shift(),Me.shift(),z++;else break;for(var ke=0,Ke=0,$e=ye[0],et=Me[0],nt=Math.min($e.length,et.length);ken.ch&&ut.charCodeAt(ut.length-Ke-1)==it.charCodeAt(it.length-Ke-1);)ke--,Ke++;ye[ye.length-1]=ut.slice(0,ut.length-Ke).replace(/^\u200b+/,""),ye[0]=ye[0].slice(ke).replace(/\u200b+$/,"");var St=Ze(z,ke),bt=Ze(te,Me.length?re(Me).length-Ke:0);if(ye.length>1||ye[0]||Ct(St,bt))return ni(e.doc,ye,St,bt,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},zt.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)},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wr(this.cm,function(){return Mr(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pr(this.cm,Ka)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Ro(e,t){var i=fa(e,t.line);if(!i||i.hidden)return null;var n=mt(e.doc,t.line),d=es(i,n,t.line),N=qe(n,e.doc.direction),z="left";if(N){var Q=Je(N,t.ch);z=Q%2?"right":"left"}var q=ns(d.map,t.ch,z);return q.offset=q.collapse=="right"?q.end:q.start,q}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function li(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,n,d){var N="",z=!1,Q=e.doc.lineSeparator(),q=!1;function te(ke){return function(Ke){return Ke.id==ke}}function pe(){z&&(N+=Q,q&&(N+=Q),z=q=!1)}function ye(ke){ke&&(pe(),N+=ke)}function Me(ke){if(ke.nodeType==1){var Ke=ke.getAttribute("cm-text");if(Ke){ye(Ke);return}var $e=ke.getAttribute("cm-marker"),et;if($e){var nt=e.findMarks(Ze(n,0),Ze(d+1,0),te(+$e));nt.length&&(et=nt[0].find(0))&&ye(Br(e.doc,et.from,et.to).join(Q));return}if(ke.getAttribute("contenteditable")=="false")return;var ut=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;ut&&pe();for(var it=0;it=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Ue(d,"paste",function(z){if(Ge(n,z)||To(z,n))return;n.state.pasteIncoming=+new Date,i.fastPoll()});function N(z){if(Ge(n,z))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var Q=So(n);sa({lineWise:!0,text:Q.text}),z.type=="cut"?n.setSelections(Q.ranges,null,ge):(i.prevInput="",d.value=Q.text.join(` -`),M(d))}else return;z.type=="cut"&&(n.state.cutIncoming=+new Date)}Ue(d,"cut",N),Ue(d,"copy",N),Ue(e.scroller,"paste",function(z){if(cn(e,z)||Ge(n,z))return;if(!d.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var Q=new Event("paste");Q.clipboardData=z.clipboardData,d.dispatchEvent(Q)}),Ue(e.lineSpace,"selectstart",function(z){cn(e,z)||ae(z)}),Ue(d,"compositionstart",function(){var z=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:z,range:n.markText(z,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(d,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},ir.prototype.createField=function(e){this.wrapper=Ao(),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,t=e.display,i=e.doc,n=ps(e);if(e.options.moveInputWithCursor){var d=en(e,i.sel.primary().head,"div"),N=t.wrapper.getBoundingClientRect(),z=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,d.top+z.top-N.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,d.left+z.left-N.left))}return n},ir.prototype.showSelection=function(e){var t=this.cm,i=t.display;T(i.cursorDiv,e.cursors),T(i.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 t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&M(this.textarea),K&&G>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",K&&G>=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"&&(!o||B()!=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,t=this;t.pollingFast=!0;function i(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},ir.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||ft(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var d=i.value;if(d==n&&!t.somethingSelected())return!1;if(K&&G>=9&&this.hasSelection===d||s&&/[\uf700-\uf7ff]/.test(d))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var N=d.charCodeAt(0);if(N==8203&&!n&&(n="\u200B"),N==8666)return this.reset(),this.cm.execCommand("undo")}for(var z=0,Q=Math.min(n.length,d.length);z1e3||d.indexOf(` -`)>-1?i.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ir.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ir.prototype.onKeyPress=function(){K&&G>=9&&(this.hasSelection=null),this.fastPoll()},ir.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,d=t.textarea;t.contextMenuPending&&t.contextMenuPending();var N=Fn(i,e),z=n.scroller.scrollTop;if(!N||m)return;var Q=i.options.resetSelectionOnContextMenu;Q&&i.doc.sel.contains(N)==-1&&pr(i,wr)(i.doc,Cn(N),ge);var q=d.style.cssText,te=t.wrapper.style.cssText,pe=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px; +`);var Me=document.activeElement;M(ye),setTimeout(function(){n.display.lineSpace.removeChild(pe),Me.focus(),Me==c&&i.showPrimarySelection()},50)}Ue(c,"copy",z),Ue(c,"cut",z)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=ps(this.cm,!1);return e.focus=document.activeElement==this.div,e},zt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),c=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||c.line=t.display.viewFrom&&Ro(t,n)||{node:Q[0].measure.map[2],offset:0},te=c.linee.firstLine()&&(n=Ze(n.line-1,mt(e.doc,n.line-1).length)),c.ch==mt(e.doc,c.line).text.length&&c.linet.viewTo-1)return!1;var N,z,Q;n.line==t.viewFrom||(N=Un(e,n.line))==0?(z=Rt(t.view[0].line),Q=t.view[0].node):(z=Rt(t.view[N].line),Q=t.view[N-1].node.nextSibling);var q=Un(e,c.line),te,pe;if(q==t.view.length-1?(te=t.viewTo-1,pe=t.lineDiv.lastChild):(te=Rt(t.view[q+1].line)-1,pe=t.view[q+1].node.previousSibling),!Q)return!1;for(var ye=e.doc.splitLines(tu(e,Q,pe,z,te)),Me=Br(e.doc,Ze(z,0),Ze(te,mt(e.doc,te).text.length));ye.length>1&&Me.length>1;)if(re(ye)==re(Me))ye.pop(),Me.pop(),te--;else if(ye[0]==Me[0])ye.shift(),Me.shift(),z++;else break;for(var ke=0,Ke=0,$e=ye[0],et=Me[0],nt=Math.min($e.length,et.length);ken.ch&&ut.charCodeAt(ut.length-Ke-1)==it.charCodeAt(it.length-Ke-1);)ke--,Ke++;ye[ye.length-1]=ut.slice(0,ut.length-Ke).replace(/^\u200b+/,""),ye[0]=ye[0].slice(ke).replace(/\u200b+$/,"");var St=Ze(z,ke),bt=Ze(te,Me.length?re(Me).length-Ke:0);if(ye.length>1||ye[0]||Ct(St,bt))return ni(e.doc,ye,St,bt,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},zt.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)},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wr(this.cm,function(){return Mr(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pr(this.cm,Ka)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Ro(e,t){var i=fa(e,t.line);if(!i||i.hidden)return null;var n=mt(e.doc,t.line),c=es(i,n,t.line),N=qe(n,e.doc.direction),z="left";if(N){var Q=Je(N,t.ch);z=Q%2?"right":"left"}var q=ns(c.map,t.ch,z);return q.offset=q.collapse=="right"?q.end:q.start,q}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function li(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,n,c){var N="",z=!1,Q=e.doc.lineSeparator(),q=!1;function te(ke){return function(Ke){return Ke.id==ke}}function pe(){z&&(N+=Q,q&&(N+=Q),z=q=!1)}function ye(ke){ke&&(pe(),N+=ke)}function Me(ke){if(ke.nodeType==1){var Ke=ke.getAttribute("cm-text");if(Ke){ye(Ke);return}var $e=ke.getAttribute("cm-marker"),et;if($e){var nt=e.findMarks(Ze(n,0),Ze(c+1,0),te(+$e));nt.length&&(et=nt[0].find(0))&&ye(Br(e.doc,et.from,et.to).join(Q));return}if(ke.getAttribute("contenteditable")=="false")return;var ut=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;ut&&pe();for(var it=0;it=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Ue(c,"paste",function(z){if(Ge(n,z)||To(z,n))return;n.state.pasteIncoming=+new Date,i.fastPoll()});function N(z){if(Ge(n,z))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var Q=So(n);sa({lineWise:!0,text:Q.text}),z.type=="cut"?n.setSelections(Q.ranges,null,ge):(i.prevInput="",c.value=Q.text.join(` +`),M(c))}else return;z.type=="cut"&&(n.state.cutIncoming=+new Date)}Ue(c,"cut",N),Ue(c,"copy",N),Ue(e.scroller,"paste",function(z){if(dn(e,z)||Ge(n,z))return;if(!c.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var Q=new Event("paste");Q.clipboardData=z.clipboardData,c.dispatchEvent(Q)}),Ue(e.lineSpace,"selectstart",function(z){dn(e,z)||ae(z)}),Ue(c,"compositionstart",function(){var z=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:z,range:n.markText(z,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(c,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},ir.prototype.createField=function(e){this.wrapper=Ao(),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,t=e.display,i=e.doc,n=ps(e);if(e.options.moveInputWithCursor){var c=en(e,i.sel.primary().head,"div"),N=t.wrapper.getBoundingClientRect(),z=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,c.top+z.top-N.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,c.left+z.left-N.left))}return n},ir.prototype.showSelection=function(e){var t=this.cm,i=t.display;T(i.cursorDiv,e.cursors),T(i.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 t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&M(this.textarea),K&&G>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",K&&G>=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"&&(!o||B()!=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,t=this;t.pollingFast=!0;function i(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},ir.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||ft(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var c=i.value;if(c==n&&!t.somethingSelected())return!1;if(K&&G>=9&&this.hasSelection===c||s&&/[\uf700-\uf7ff]/.test(c))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var N=c.charCodeAt(0);if(N==8203&&!n&&(n="\u200B"),N==8666)return this.reset(),this.cm.execCommand("undo")}for(var z=0,Q=Math.min(n.length,c.length);z1e3||c.indexOf(` +`)>-1?i.value=e.prevInput="":e.prevInput=c,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ir.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ir.prototype.onKeyPress=function(){K&&G>=9&&(this.hasSelection=null),this.fastPoll()},ir.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,c=t.textarea;t.contextMenuPending&&t.contextMenuPending();var N=Fn(i,e),z=n.scroller.scrollTop;if(!N||m)return;var Q=i.options.resetSelectionOnContextMenu;Q&&i.doc.sel.contains(N)==-1&&pr(i,wr)(i.doc,Cn(N),ge);var q=c.style.cssText,te=t.wrapper.style.cssText,pe=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-pe.top-5)+"px; left: "+(e.clientX-pe.left-5)+`px; z-index: 1000; background: `+(K?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ye;r&&(ye=window.scrollY),n.input.focus(),r&&window.scrollTo(null,ye),n.input.reset(),i.somethingSelected()||(d.value=t.prevInput=" "),t.contextMenuPending=ke,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function Me(){if(d.selectionStart!=null){var $e=i.somethingSelected(),et="\u200B"+($e?d.value:"");d.value="\u21DA",d.value=et,t.prevInput=$e?"":"\u200B",d.selectionStart=1,d.selectionEnd=et.length,n.selForContextMenu=i.doc.sel}}function ke(){if(t.contextMenuPending!=ke)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=te,d.style.cssText=q,K&&G<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=z),d.selectionStart!=null){(!K||K&&G<9)&&Me();var $e=0,et=function(){n.selForContextMenu==i.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&t.prevInput=="\u200B"?pr(i,Vs)(i):$e++<10?n.detectingSelectAll=setTimeout(et,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(et,200)}}if(K&&G>=9&&Me(),D){me(e);var Ke=function(){lt(window,"mouseup",Ke),setTimeout(ke,20)};Ue(window,"mouseup",Ke)}else setTimeout(ke,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 nu(e,t){if(t=t?g(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=B();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=Q.getValue()}var d;if(e.form&&(Ue(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var N=e.form;d=N.submit;try{var z=N.submit=function(){n(),N.submit=d,N.submit(),N.submit=z}}catch(q){}}t.finishInit=function(q){q.save=n,q.getTextArea=function(){return e},q.toTextArea=function(){q.toTextArea=isNaN,n(),e.parentNode.removeChild(q.getWrapperElement()),e.style.display="",e.form&&(lt(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var Q=Qt(function(q){return e.parentNode.insertBefore(q,e.nextSibling)},t);return Q}function iu(e){e.off=lt,e.on=Ue,e.wheelEventPixels=dl,e.Doc=Pr,e.splitLines=dt,e.countColumn=H,e.findColumn=Le,e.isWordChar=Ne,e.Pass=Oe,e.signal=je,e.Line=Mn,e.changeEnd=An,e.scrollbarModel=xs,e.Pos=Ze,e.cmpPos=Ct,e.modes=Zt,e.mimeModes=Dt,e.resolveMode=_t,e.getMode=Lr,e.modeExtensions=Et,e.extendMode=wt,e.copyState=Ut,e.startState=dr,e.innerMode=tr,e.commands=Pi,e.keyMap=fn,e.keyName=lo,e.isModifierKey=so,e.lookupKey=ai,e.normalizeKeyMap=kl,e.StringStream=Nt,e.SharedTextMarker=Di,e.TextMarker=Rn,e.LineWidget=Ii,e.e_preventDefault=ae,e.e_stopPropagation=ue,e.e_stop=me,e.addClass=F,e.contains=b,e.rmClass=A,e.keyNames=Ln}$l(Qt),ql(Qt);var au="iter insert remove copy getEditor constructor".split(" ");for(var la in Pr.prototype)Pr.prototype.hasOwnProperty(la)&&ne(au,la)<0&&(Qt.prototype[la]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pr.prototype[la]));return we(Pr),Qt.inputStyles={textarea:ir,contenteditable:zt},Qt.defineMode=function(e){!Qt.defaults.mode&&e!="null"&&(Qt.defaults.mode=e),Cr.apply(this,arguments)},Qt.defineMIME=Kr,Qt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Qt.defineMIME("text/plain","null"),Qt.defineExtension=function(e,t){Qt.prototype[e]=t},Qt.defineDocExtension=function(e,t){Pr.prototype[e]=t},Qt.fromTextArea=nu,iu(Qt),Qt.version="5.58.2",Qt})},Y1PL:function(rt,be,Z){"use strict";Z.r(be),Z.d(be,"ResizableTextArea",function(){return ne});var ie=Z("wx14"),J=Z("1OyB"),P=Z("vuIU"),X=Z("Ji7U"),j=Z("LK+K"),U=Z("q1tI"),K=Z("VTBJ"),G=Z("rePB"),r=Z("Zm9Q"),L=Z("Kwbf"),v=Z("c+Xe"),m=Z("m+aA"),p=Z("bdgK"),h=new Map;function u(ge){ge.forEach(function(Te){var Re,Le=Te.target;(Re=h.get(Le))===null||Re===void 0||Re.forEach(function(de){return de(Le)})})}var f=new p.default(u),l=null,o=null;function s(ge,Te){h.has(ge)||(h.set(ge,new Set),f.observe(ge)),h.get(ge).add(Te)}function a(ge,Te){h.has(ge)&&(h.get(ge).delete(Te),h.get(ge).size||(f.unobserve(ge),h.delete(ge)))}var O=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(){return Object(J.a)(this,Re),Te.apply(this,arguments)}return Object(P.a)(Re,[{key:"render",value:function(){return this.props.children}}]),Re}(U.Component),E=U.createContext(null);function w(ge){var Te=ge.children,Re=ge.onBatchResize,Le=U.useRef(0),de=U.useRef([]),he=U.useContext(E),re=U.useCallback(function(fe,oe,De){Le.current+=1;var Fe=Le.current;de.current.push({size:fe,element:oe,data:De}),Promise.resolve().then(function(){Fe===Le.current&&(Re==null||Re(de.current),de.current=[])}),he==null||he(fe,oe,De)},[Re,he]);return U.createElement(E.Provider,{value:re},Te)}function D(ge){var Te=ge.children,Re=ge.disabled,Le=U.useRef(null),de=U.useRef(null),he=U.useContext(E),re=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),fe=U.isValidElement(Te)&&Object(v.c)(Te),oe=fe?Te.ref:null,De=U.useMemo(function(){return Object(v.a)(oe,Le)},[oe,Le]),Fe=U.useRef(ge);Fe.current=ge;var Ce=U.useCallback(function(Ne){var Be=Fe.current,le=Be.onResize,ve=Be.data,Se=Ne.getBoundingClientRect(),Ie=Se.width,We=Se.height,Ve=Ne.offsetWidth,Qe=Ne.offsetHeight,Je=Math.floor(Ie),st=Math.floor(We);if(re.current.width!==Je||re.current.height!==st||re.current.offsetWidth!==Ve||re.current.offsetHeight!==Qe){var qe={width:Je,height:st,offsetWidth:Ve,offsetHeight:Qe};re.current=qe;var at=Ve===Math.round(Ie)?Ie:Ve,Ue=Qe===Math.round(We)?We:Qe,ct=Object(K.a)(Object(K.a)({},qe),{},{offsetWidth:at,offsetHeight:Ue});he==null||he(ct,Ne,ve),le&&Promise.resolve().then(function(){le(ct,Ne)})}},[]);return U.useEffect(function(){var Ne=Object(m.a)(Le.current)||Object(m.a)(de.current);return Ne&&!Re&&s(Ne,Ce),function(){return a(Ne,Ce)}},[Le.current,Re]),U.createElement(O,{ref:de},fe?U.cloneElement(Te,{ref:De}):Te)}var R="rc-observer-key";function A(ge){var Te=ge.children,Re=Object(r.a)(Te);return Re.map(function(Le,de){var he=(Le==null?void 0:Le.key)||"".concat(R,"-").concat(de);return U.createElement(D,Object(ie.a)({},ge,{key:he}),Le)})}A.Collection=w;var C=A,T=Z("bT9E"),c=Z("TSYQ"),S=Z.n(c),y=` + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ye;r&&(ye=window.scrollY),n.input.focus(),r&&window.scrollTo(null,ye),n.input.reset(),i.somethingSelected()||(c.value=t.prevInput=" "),t.contextMenuPending=ke,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function Me(){if(c.selectionStart!=null){var $e=i.somethingSelected(),et="\u200B"+($e?c.value:"");c.value="\u21DA",c.value=et,t.prevInput=$e?"":"\u200B",c.selectionStart=1,c.selectionEnd=et.length,n.selForContextMenu=i.doc.sel}}function ke(){if(t.contextMenuPending!=ke)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=te,c.style.cssText=q,K&&G<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=z),c.selectionStart!=null){(!K||K&&G<9)&&Me();var $e=0,et=function(){n.selForContextMenu==i.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&t.prevInput=="\u200B"?pr(i,Vs)(i):$e++<10?n.detectingSelectAll=setTimeout(et,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(et,200)}}if(K&&G>=9&&Me(),D){me(e);var Ke=function(){lt(window,"mouseup",Ke),setTimeout(ke,20)};Ue(window,"mouseup",Ke)}else setTimeout(ke,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 nu(e,t){if(t=t?g(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=B();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=Q.getValue()}var c;if(e.form&&(Ue(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var N=e.form;c=N.submit;try{var z=N.submit=function(){n(),N.submit=c,N.submit(),N.submit=z}}catch(q){}}t.finishInit=function(q){q.save=n,q.getTextArea=function(){return e},q.toTextArea=function(){q.toTextArea=isNaN,n(),e.parentNode.removeChild(q.getWrapperElement()),e.style.display="",e.form&&(lt(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=c))}},e.style.display="none";var Q=Qt(function(q){return e.parentNode.insertBefore(q,e.nextSibling)},t);return Q}function iu(e){e.off=lt,e.on=Ue,e.wheelEventPixels=cl,e.Doc=Pr,e.splitLines=ct,e.countColumn=H,e.findColumn=Le,e.isWordChar=Ne,e.Pass=Oe,e.signal=je,e.Line=Mn,e.changeEnd=An,e.scrollbarModel=xs,e.Pos=Ze,e.cmpPos=Ct,e.modes=Zt,e.mimeModes=Dt,e.resolveMode=_t,e.getMode=Lr,e.modeExtensions=Et,e.extendMode=wt,e.copyState=Ut,e.startState=cr,e.innerMode=tr,e.commands=Pi,e.keyMap=fn,e.keyName=lo,e.isModifierKey=so,e.lookupKey=ai,e.normalizeKeyMap=kl,e.StringStream=Nt,e.SharedTextMarker=Di,e.TextMarker=Rn,e.LineWidget=Ii,e.e_preventDefault=ae,e.e_stopPropagation=ue,e.e_stop=me,e.addClass=F,e.contains=b,e.rmClass=A,e.keyNames=Ln}$l(Qt),ql(Qt);var au="iter insert remove copy getEditor constructor".split(" ");for(var la in Pr.prototype)Pr.prototype.hasOwnProperty(la)&&ne(au,la)<0&&(Qt.prototype[la]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pr.prototype[la]));return we(Pr),Qt.inputStyles={textarea:ir,contenteditable:zt},Qt.defineMode=function(e){!Qt.defaults.mode&&e!="null"&&(Qt.defaults.mode=e),Cr.apply(this,arguments)},Qt.defineMIME=Kr,Qt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Qt.defineMIME("text/plain","null"),Qt.defineExtension=function(e,t){Qt.prototype[e]=t},Qt.defineDocExtension=function(e,t){Pr.prototype[e]=t},Qt.fromTextArea=nu,iu(Qt),Qt.version="5.58.2",Qt})},Y1PL:function(rt,be,Z){"use strict";Z.r(be),Z.d(be,"ResizableTextArea",function(){return ne});var ie=Z("wx14"),J=Z("1OyB"),P=Z("vuIU"),X=Z("Ji7U"),j=Z("LK+K"),U=Z("q1tI"),K=Z("VTBJ"),G=Z("rePB"),r=Z("Zm9Q"),L=Z("Kwbf"),v=Z("c+Xe"),m=Z("m+aA"),p=Z("bdgK"),h=new Map;function u(ge){ge.forEach(function(Te){var Re,Le=Te.target;(Re=h.get(Le))===null||Re===void 0||Re.forEach(function(ce){return ce(Le)})})}var f=new p.default(u),l=null,o=null;function s(ge,Te){h.has(ge)||(h.set(ge,new Set),f.observe(ge)),h.get(ge).add(Te)}function a(ge,Te){h.has(ge)&&(h.get(ge).delete(Te),h.get(ge).size||(f.unobserve(ge),h.delete(ge)))}var O=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(){return Object(J.a)(this,Re),Te.apply(this,arguments)}return Object(P.a)(Re,[{key:"render",value:function(){return this.props.children}}]),Re}(U.Component),E=U.createContext(null);function w(ge){var Te=ge.children,Re=ge.onBatchResize,Le=U.useRef(0),ce=U.useRef([]),he=U.useContext(E),re=U.useCallback(function(fe,oe,De){Le.current+=1;var Fe=Le.current;ce.current.push({size:fe,element:oe,data:De}),Promise.resolve().then(function(){Fe===Le.current&&(Re==null||Re(ce.current),ce.current=[])}),he==null||he(fe,oe,De)},[Re,he]);return U.createElement(E.Provider,{value:re},Te)}function D(ge){var Te=ge.children,Re=ge.disabled,Le=U.useRef(null),ce=U.useRef(null),he=U.useContext(E),re=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),fe=U.isValidElement(Te)&&Object(v.c)(Te),oe=fe?Te.ref:null,De=U.useMemo(function(){return Object(v.a)(oe,Le)},[oe,Le]),Fe=U.useRef(ge);Fe.current=ge;var Ce=U.useCallback(function(Ne){var Be=Fe.current,le=Be.onResize,ve=Be.data,Se=Ne.getBoundingClientRect(),Ie=Se.width,We=Se.height,Ve=Ne.offsetWidth,Qe=Ne.offsetHeight,Je=Math.floor(Ie),st=Math.floor(We);if(re.current.width!==Je||re.current.height!==st||re.current.offsetWidth!==Ve||re.current.offsetHeight!==Qe){var qe={width:Je,height:st,offsetWidth:Ve,offsetHeight:Qe};re.current=qe;var at=Ve===Math.round(Ie)?Ie:Ve,Ue=Qe===Math.round(We)?We:Qe,dt=Object(K.a)(Object(K.a)({},qe),{},{offsetWidth:at,offsetHeight:Ue});he==null||he(dt,Ne,ve),le&&Promise.resolve().then(function(){le(dt,Ne)})}},[]);return U.useEffect(function(){var Ne=Object(m.a)(Le.current)||Object(m.a)(ce.current);return Ne&&!Re&&s(Ne,Ce),function(){return a(Ne,Ce)}},[Le.current,Re]),U.createElement(O,{ref:ce},fe?U.cloneElement(Te,{ref:De}):Te)}var R="rc-observer-key";function A(ge){var Te=ge.children,Re=Object(r.a)(Te);return Re.map(function(Le,ce){var he=(Le==null?void 0:Le.key)||"".concat(R,"-").concat(ce);return U.createElement(D,Object(ie.a)({},ge,{key:he}),Le)})}A.Collection=w;var C=A,T=Z("bT9E"),d=Z("TSYQ"),S=Z.n(d),y=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -375,7 +375,7 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var d=e. z-index:-1000 !important; top:0 !important; right:0 !important -`,b=["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"],B={},F;function _(ge){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=ge.getAttribute("id")||ge.getAttribute("data-reactid")||ge.getAttribute("name");if(Te&&B[Re])return B[Re];var Le=window.getComputedStyle(ge),de=Le.getPropertyValue("box-sizing")||Le.getPropertyValue("-moz-box-sizing")||Le.getPropertyValue("-webkit-box-sizing"),he=parseFloat(Le.getPropertyValue("padding-bottom"))+parseFloat(Le.getPropertyValue("padding-top")),re=parseFloat(Le.getPropertyValue("border-bottom-width"))+parseFloat(Le.getPropertyValue("border-top-width")),fe=b.map(function(De){return"".concat(De,":").concat(Le.getPropertyValue(De))}).join(";"),oe={sizingStyle:fe,paddingSize:he,borderSize:re,boxSizing:de};return Te&&Re&&(B[Re]=oe),oe}function M(ge){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;F||(F=document.createElement("textarea"),F.setAttribute("tab-index","-1"),F.setAttribute("aria-hidden","true"),document.body.appendChild(F)),ge.getAttribute("wrap")?F.setAttribute("wrap",ge.getAttribute("wrap")):F.removeAttribute("wrap");var de=_(ge,Te),he=de.paddingSize,re=de.borderSize,fe=de.boxSizing,oe=de.sizingStyle;F.setAttribute("style","".concat(oe,";").concat(y)),F.value=ge.value||ge.placeholder||"";var De=Number.MIN_SAFE_INTEGER,Fe=Number.MAX_SAFE_INTEGER,Ce=F.scrollHeight,Ne;if(fe==="border-box"?Ce+=re:fe==="content-box"&&(Ce-=he),Re!==null||Le!==null){F.value=" ";var Be=F.scrollHeight-he;Re!==null&&(De=Be*Re,fe==="border-box"&&(De=De+he+re),Ce=Math.max(De,Ce)),Le!==null&&(Fe=Be*Le,fe==="border-box"&&(Fe=Fe+he+re),Ne=Ce>Fe?"":"hidden",Ce=Math.min(Fe,Ce))}return{height:Ce,minHeight:De,maxHeight:Fe,overflowY:Ne,resize:"none"}}var I=Z("Gytx"),g=Z.n(I),H;(function(ge){ge[ge.NONE=0]="NONE",ge[ge.RESIZING=1]="RESIZING",ge[ge.RESIZED=2]="RESIZED"})(H||(H={}));var $=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(Le){var de;return Object(J.a)(this,Re),de=Te.call(this,Le),de.nextFrameActionId=void 0,de.resizeFrameId=void 0,de.textArea=void 0,de.saveTextArea=function(he){de.textArea=he},de.handleResize=function(he){var re=de.state.resizeStatus,fe=de.props,oe=fe.autoSize,De=fe.onResize;if(re!==H.NONE)return;typeof De=="function"&&De(he),oe&&de.resizeOnNextFrame()},de.resizeOnNextFrame=function(){cancelAnimationFrame(de.nextFrameActionId),de.nextFrameActionId=requestAnimationFrame(de.resizeTextarea)},de.resizeTextarea=function(){var he=de.props.autoSize;if(!he||!de.textArea)return;var re=he.minRows,fe=he.maxRows,oe=M(de.textArea,!1,re,fe);de.setState({textareaStyles:oe,resizeStatus:H.RESIZING},function(){cancelAnimationFrame(de.resizeFrameId),de.resizeFrameId=requestAnimationFrame(function(){de.setState({resizeStatus:H.RESIZED},function(){de.resizeFrameId=requestAnimationFrame(function(){de.setState({resizeStatus:H.NONE}),de.fixFirefoxAutoScroll()})})})})},de.renderTextArea=function(){var he=de.props,re=he.prefixCls,fe=re===void 0?"rc-textarea":re,oe=he.autoSize,De=he.onResize,Fe=he.className,Ce=he.disabled,Ne=de.state,Be=Ne.textareaStyles,le=Ne.resizeStatus,ve=Object(T.a)(de.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Se=S()(fe,Fe,Object(G.a)({},"".concat(fe,"-disabled"),Ce));"value"in ve&&(ve.value=ve.value||"");var Ie=Object(K.a)(Object(K.a)(Object(K.a)({},de.props.style),Be),le===H.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return U.createElement(C,{onResize:de.handleResize,disabled:!(oe||De)},U.createElement("textarea",Object(ie.a)({},ve,{className:Se,style:Ie,ref:de.saveTextArea})))},de.state={textareaStyles:{},resizeStatus:H.NONE},de}return Object(P.a)(Re,[{key:"componentDidUpdate",value:function(de){(de.value!==this.props.value||!g()(de.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 de=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(de,he)}}catch(re){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Re}(U.Component),ne=$,se=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(Le){var de;Object(J.a)(this,Re),de=Te.call(this,Le),de.resizableTextArea=void 0,de.focus=function(){de.resizableTextArea.textArea.focus()},de.saveTextArea=function(re){de.resizableTextArea=re},de.handleChange=function(re){var fe=de.props.onChange;de.setValue(re.target.value,function(){de.resizableTextArea.resizeTextarea()}),fe&&fe(re)},de.handleKeyDown=function(re){var fe=de.props,oe=fe.onPressEnter,De=fe.onKeyDown;re.keyCode===13&&oe&&oe(re),De&&De(re)};var he=typeof Le.value=="undefined"||Le.value===null?Le.defaultValue:Le.value;return de.state={value:he},de}return Object(P.a)(Re,[{key:"setValue",value:function(de,he){"value"in this.props||this.setState({value:de},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return U.createElement(ne,Object(ie.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(de){return"value"in de?{value:de.value}:null}}]),Re}(U.Component),Oe=be.default=se},ZW9T:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return I});var ie=Z("k1fw"),J=Z("oBTY"),P=Z("miYZ"),X=Z("tsqr"),j=Z("rAM+"),U=Z("tJVT"),K=Z("PpiC"),G=Z("q1tI"),r=Z.n(G),L=Z("bdgK"),v=Z("9og8"),m=Z("WmNS"),p=Z.n(m),h={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"]},u={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` +`,b=["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"],B={},F;function _(ge){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=ge.getAttribute("id")||ge.getAttribute("data-reactid")||ge.getAttribute("name");if(Te&&B[Re])return B[Re];var Le=window.getComputedStyle(ge),ce=Le.getPropertyValue("box-sizing")||Le.getPropertyValue("-moz-box-sizing")||Le.getPropertyValue("-webkit-box-sizing"),he=parseFloat(Le.getPropertyValue("padding-bottom"))+parseFloat(Le.getPropertyValue("padding-top")),re=parseFloat(Le.getPropertyValue("border-bottom-width"))+parseFloat(Le.getPropertyValue("border-top-width")),fe=b.map(function(De){return"".concat(De,":").concat(Le.getPropertyValue(De))}).join(";"),oe={sizingStyle:fe,paddingSize:he,borderSize:re,boxSizing:ce};return Te&&Re&&(B[Re]=oe),oe}function M(ge){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;F||(F=document.createElement("textarea"),F.setAttribute("tab-index","-1"),F.setAttribute("aria-hidden","true"),document.body.appendChild(F)),ge.getAttribute("wrap")?F.setAttribute("wrap",ge.getAttribute("wrap")):F.removeAttribute("wrap");var ce=_(ge,Te),he=ce.paddingSize,re=ce.borderSize,fe=ce.boxSizing,oe=ce.sizingStyle;F.setAttribute("style","".concat(oe,";").concat(y)),F.value=ge.value||ge.placeholder||"";var De=Number.MIN_SAFE_INTEGER,Fe=Number.MAX_SAFE_INTEGER,Ce=F.scrollHeight,Ne;if(fe==="border-box"?Ce+=re:fe==="content-box"&&(Ce-=he),Re!==null||Le!==null){F.value=" ";var Be=F.scrollHeight-he;Re!==null&&(De=Be*Re,fe==="border-box"&&(De=De+he+re),Ce=Math.max(De,Ce)),Le!==null&&(Fe=Be*Le,fe==="border-box"&&(Fe=Fe+he+re),Ne=Ce>Fe?"":"hidden",Ce=Math.min(Fe,Ce))}return{height:Ce,minHeight:De,maxHeight:Fe,overflowY:Ne,resize:"none"}}var I=Z("Gytx"),g=Z.n(I),H;(function(ge){ge[ge.NONE=0]="NONE",ge[ge.RESIZING=1]="RESIZING",ge[ge.RESIZED=2]="RESIZED"})(H||(H={}));var $=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(Le){var ce;return Object(J.a)(this,Re),ce=Te.call(this,Le),ce.nextFrameActionId=void 0,ce.resizeFrameId=void 0,ce.textArea=void 0,ce.saveTextArea=function(he){ce.textArea=he},ce.handleResize=function(he){var re=ce.state.resizeStatus,fe=ce.props,oe=fe.autoSize,De=fe.onResize;if(re!==H.NONE)return;typeof De=="function"&&De(he),oe&&ce.resizeOnNextFrame()},ce.resizeOnNextFrame=function(){cancelAnimationFrame(ce.nextFrameActionId),ce.nextFrameActionId=requestAnimationFrame(ce.resizeTextarea)},ce.resizeTextarea=function(){var he=ce.props.autoSize;if(!he||!ce.textArea)return;var re=he.minRows,fe=he.maxRows,oe=M(ce.textArea,!1,re,fe);ce.setState({textareaStyles:oe,resizeStatus:H.RESIZING},function(){cancelAnimationFrame(ce.resizeFrameId),ce.resizeFrameId=requestAnimationFrame(function(){ce.setState({resizeStatus:H.RESIZED},function(){ce.resizeFrameId=requestAnimationFrame(function(){ce.setState({resizeStatus:H.NONE}),ce.fixFirefoxAutoScroll()})})})})},ce.renderTextArea=function(){var he=ce.props,re=he.prefixCls,fe=re===void 0?"rc-textarea":re,oe=he.autoSize,De=he.onResize,Fe=he.className,Ce=he.disabled,Ne=ce.state,Be=Ne.textareaStyles,le=Ne.resizeStatus,ve=Object(T.a)(ce.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Se=S()(fe,Fe,Object(G.a)({},"".concat(fe,"-disabled"),Ce));"value"in ve&&(ve.value=ve.value||"");var Ie=Object(K.a)(Object(K.a)(Object(K.a)({},ce.props.style),Be),le===H.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return U.createElement(C,{onResize:ce.handleResize,disabled:!(oe||De)},U.createElement("textarea",Object(ie.a)({},ve,{className:Se,style:Ie,ref:ce.saveTextArea})))},ce.state={textareaStyles:{},resizeStatus:H.NONE},ce}return Object(P.a)(Re,[{key:"componentDidUpdate",value:function(ce){(ce.value!==this.props.value||!g()(ce.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 ce=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(ce,he)}}catch(re){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Re}(U.Component),ne=$,se=function(ge){Object(X.a)(Re,ge);var Te=Object(j.a)(Re);function Re(Le){var ce;Object(J.a)(this,Re),ce=Te.call(this,Le),ce.resizableTextArea=void 0,ce.focus=function(){ce.resizableTextArea.textArea.focus()},ce.saveTextArea=function(re){ce.resizableTextArea=re},ce.handleChange=function(re){var fe=ce.props.onChange;ce.setValue(re.target.value,function(){ce.resizableTextArea.resizeTextarea()}),fe&&fe(re)},ce.handleKeyDown=function(re){var fe=ce.props,oe=fe.onPressEnter,De=fe.onKeyDown;re.keyCode===13&&oe&&oe(re),De&&De(re)};var he=typeof Le.value=="undefined"||Le.value===null?Le.defaultValue:Le.value;return ce.state={value:he},ce}return Object(P.a)(Re,[{key:"setValue",value:function(ce,he){"value"in this.props||this.setState({value:ce},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return U.createElement(ne,Object(ie.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ce){return"value"in ce?{value:ce.value}:null}}]),Re}(U.Component),Oe=be.default=se},ZW9T:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return I});var ie=Z("k1fw"),J=Z("oBTY"),P=Z("miYZ"),X=Z("tsqr"),j=Z("rAM+"),U=Z("tJVT"),K=Z("PpiC"),G=Z("q1tI"),r=Z.n(G),L=Z("bdgK"),v=Z("9og8"),m=Z("WmNS"),p=Z.n(m),h={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"]},u={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"]},f={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(` @@ -394,12 +394,12 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var d=e. `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},l={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(` -`)}]},o=Z("5VLF"),s=Z.n(o),a={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"]}},O=function(H,$){return $.map(function(ne){return{label:ne,kind:H.languages.CompletionItemKind.Keyword,insertText:ne}})},E=function(H){return Object.keys(a.tables).map(function($){return{label:$,kind:H.languages.CompletionItemKind.Variable,insertText:$}})},w=function(H,$){var ne=a.tables[H];return ne?ne.map(function(se){return{label:se,kind:$.languages.CompletionItemKind.Field,insertText:se}}):[]};function D(g,H,$,ne,se){var Oe=H.getWordUntilPosition($),ge={startLineNumber:$.lineNumber,endLineNumber:$.lineNumber,startColumn:Oe.startColumn,endColumn:Oe.endColumn},Te=ne.map(function(Re){return{label:Re,kind:g.languages.CompletionItemKind.Keyword,insertText:Re,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}});return se.map(function(Re){Te.push(Object(ie.a)(Object(ie.a)({},Re),{},{range:ge}))}),Te}var R=function(g){a.languages.map(function(se){return g.languages.registerDocumentFormattingEditProvider(se,{provideDocumentFormattingEdits:function(ge,Te,Re){return Object(v.a)(p.a.mark(function Le(){var de;return p.a.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return de=s()(ge.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}),re.abrupt("return",[{range:ge.getFullModelRange(),text:de}]);case 2:case"end":return re.stop()}},Le)}))()}}),se});var H=f.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),$=l.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ne=u.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}});g.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(f.keywords.map(function(de){return{label:de,kind:g.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(f.quickKey.map(function(de){return{label:de.label,kind:g.languages.CompletionItemKind.Function,documentation:de.content,insertText:Le.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}}),g.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn};return{suggestions:Object(J.a)(h.keywords.map(function(Le){return{label:Le,kind:g.languages.CompletionItemKind.Function,documentation:Le,insertText:Le,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}}))}}}),g.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(u.keywords.map(function(de){return{label:de,kind:g.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(u.quickKey.map(function(de){return{label:de.label,kind:g.languages.CompletionItemKind.Function,documentation:de.content,insertText:Le.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}}),g.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(l.keywords.map(function(de){return{label:de,kind:g.languages.CompletionItemKind.Function,documentation:de,insertText:de,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(l.quickKey.map(function(de){return{label:de.label,kind:g.languages.CompletionItemKind.Function,documentation:de.content,insertText:Le.startsWith("#")?de.content.replace(/#/,""):de.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}})},A="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",C=Z("fjLI"),T=Z("LvDl"),c=Z("+ua5");function S(g){return/^\d+$/.test(g)?"".concat(g,"px"):g}function y(){}var b=!1,B={"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 g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=g;if(Array.isArray(g)){for(var $=0;$0||dr.target.offsetWidth>0)&&Ge.current.instance.layout()}}catch(Nt){Ut.e(Nt)}finally{Ut.f()}}),Et.observe(je.current)),Et}function He(){X.b.warn(decodeURIComponent(A))}var ze=function(){var wt=Ge.current.instance;if(Oe!=null&&wt&&me){var Ut=wt.getModel();Ut&&Oe!==Ut.getValue()&&(b=!0,Ut.setValue(Oe),wt.layout(),b=!1)}};Object(G.useEffect)(function(){_e.current&&clearTimeout(_e.current),_e.current=setTimeout(function(){ze()},500)},[Oe,me,Ge.current]),Object(G.useEffect)(function(){if(at&&Ge.current&&Ge.current.instance){var Et=Ge.current.instance;Et.changeViewZones(function(Ut){var tr=document.createElement("div");tr.style.padding="10px 20px",tr.style.width="calc(100% - 20px)",tr.className="my-error-line-wrp",tr.innerHTML=ct,Ut.addZone({afterLineNumber:at||11,heightInLines:3,domNode:tr})});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}};Et.addOverlayWidget(wt),Et.revealPositionInCenter({lineNumber:20,column:1})}},[at,Ge.current,me]);function ht(){var Et=Ge.current.instance;if(Et){var wt=Et.getSelection(),Ut=Ge.current.pastePos||{},tr=new _.Range(Ut.startLineNumber||wt.endLineNumber,Ut.startColumn||wt.endColumn,Ut.endLineNumber||wt.endLineNumber,Ut.endColumn||wt.endColumn);setTimeout(function(){Et.executeEdits("",[{range:tr,text:""}])},300)}}function ot(Et){(window.navigator.platform.match("Mac")?Et.metaKey:Et.ctrlKey)&&Et.keyCode==83&&(Et.preventDefault(),Ce())}var yt=function(){if(Be&&Ge.current.instance){var wt=Ge.current.instance.getContentHeight();_t(wt0||We.target.offsetWidth>0)&&Be.layout()}}catch(Ve){Se.e(Ve)}finally{Se.f()}}),le.observe(de.current)),le}Object(G.useEffect)(function(){de.current&&Promise.all([Z.e(16),Z.e(28)]).then(Z.t.bind(null,"M/lh",7)).then(function(Be){_=Be;var le=_.editor.createDiffEditor(de.current,Object(ie.a)(Object(ie.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},Le),{},{wordWrap:!0}));oe(le);var ve=De(le);return function(){le.dispose();var Se=le.getModel();Se&&Se.dispose(),ve.unobserve(de.current)}})},[]),Object(G.useEffect)(function(){fe&&fe.setModel({original:_.editor.createModel(Oe,Te),modified:_.editor.createModel(ge,Te)})},[Oe,ge,Te,fe]);var Fe=S($),Ce=S(se),Ne={width:Fe,height:Ce};return r.a.createElement("div",{className:"my-diff-editor",ref:de,style:Ne})}},ZpRC:function(rt,be,Z){"use strict";function ie(v){return typeof v=="object"&&v!=null&&v.nodeType===1}function J(v,m){return(!m||v!=="hidden")&&v!=="visible"&&v!=="clip"}function P(v,m){if(v.clientHeightm||f>v&&l=m&&o>=p?f-v-h:l>m&&op?l-m+u:0}var j=function(v,m){var p=window,h=m.scrollMode,u=m.block,f=m.inline,l=m.boundary,o=m.skipOverflowHiddenElements,s=typeof l=="function"?l:function(Be){return Be!==l};if(!ie(v))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,O=[],E=v;ie(E)&&s(E);){if((E=E.parentElement)===a){O.push(E);break}E!=null&&E===document.body&&P(E)&&!P(document.documentElement)||E!=null&&P(E,o)&&O.push(E)}for(var w=p.visualViewport?p.visualViewport.width:innerWidth,D=p.visualViewport?p.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,A=window.scrollY||pageYOffset,C=v.getBoundingClientRect(),T=C.height,c=C.width,S=C.top,y=C.right,b=C.bottom,B=C.left,F=u==="start"||u==="nearest"?S:u==="end"?b:S+T/2,_=f==="center"?B+c/2:f==="end"?y:B,M=[],I=0;I=0&&B>=0&&b<=D&&y<=w&&S>=se&&b<=ge&&B>=Te&&y<=Oe)return M;var Re=getComputedStyle(g),Le=parseInt(Re.borderLeftWidth,10),de=parseInt(Re.borderTopWidth,10),he=parseInt(Re.borderRightWidth,10),re=parseInt(Re.borderBottomWidth,10),fe=0,oe=0,De="offsetWidth"in g?g.offsetWidth-g.clientWidth-Le-he:0,Fe="offsetHeight"in g?g.offsetHeight-g.clientHeight-de-re:0;if(a===g)fe=u==="start"?F:u==="end"?F-D:u==="nearest"?X(A,A+D,D,de,re,A+F,A+F+T,T):F-D/2,oe=f==="start"?_:f==="center"?_-w/2:f==="end"?_-w:X(R,R+w,w,Le,he,R+_,R+_+c,c),fe=Math.max(0,fe+A),oe=Math.max(0,oe+R);else{fe=u==="start"?F-se-de:u==="end"?F-ge+re+Fe:u==="nearest"?X(se,ge,$,de,re+Fe,F,F+T,T):F-(se+$/2)+Fe/2,oe=f==="start"?_-Te-Le:f==="center"?_-(Te+ne/2)+De/2:f==="end"?_-Oe+he+De:X(Te,Oe,ne,Le,he+De,_,_+c,c);var Ce=g.scrollLeft,Ne=g.scrollTop;F+=Ne-(fe=Math.max(0,Math.min(Ne+fe,g.scrollHeight-$+Fe))),_+=Ce-(oe=Math.max(0,Math.min(Ce+oe,g.scrollWidth-ne+De)))}M.push({el:g,top:fe,left:oe})}return M};function U(v){return v===Object(v)&&Object.keys(v).length!==0}function K(v,m){m===void 0&&(m="auto");var p="scrollBehavior"in document.body.style;v.forEach(function(h){var u=h.el,f=h.top,l=h.left;u.scroll&&p?u.scroll({top:f,left:l,behavior:m}):(u.scrollTop=f,u.scrollLeft=l)})}function G(v){return v===!1?{block:"end",inline:"nearest"}:U(v)?v:{block:"start",inline:"nearest"}}function r(v,m){var p=!v.ownerDocument.documentElement.contains(v);if(U(m)&&typeof m.behavior=="function")return m.behavior(p?[]:j(v,m));if(p)return;var h=G(m);return K(j(v,h),h.behavior)}var L=be.a=r},Zss7:function(rt,be,Z){var ie;(function(J){var P=/^\s+/,X=/\s+$/,j=0,U=J.round,K=J.min,G=J.max,r=J.random;function L(re,fe){if(re=re||"",fe=fe||{},re instanceof L)return re;if(!(this instanceof L))return new L(re,fe);var oe=v(re);this._originalInput=re,this._r=oe.r,this._g=oe.g,this._b=oe.b,this._a=oe.a,this._roundA=U(100*this._a)/100,this._format=fe.format||oe.format,this._gradientType=fe.gradientType,this._r<1&&(this._r=U(this._r)),this._g<1&&(this._g=U(this._g)),this._b<1&&(this._b=U(this._b)),this._ok=oe.ok,this._tc_id=j++}L.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 re=this.toRgb();return(re.r*299+re.g*587+re.b*114)/1e3},getLuminance:function(){var re=this.toRgb(),fe,oe,De,Fe,Ce,Ne;return fe=re.r/255,oe=re.g/255,De=re.b/255,fe<=.03928?Fe=fe/12.92:Fe=J.pow((fe+.055)/1.055,2.4),oe<=.03928?Ce=oe/12.92:Ce=J.pow((oe+.055)/1.055,2.4),De<=.03928?Ne=De/12.92:Ne=J.pow((De+.055)/1.055,2.4),.2126*Fe+.7152*Ce+.0722*Ne},setAlpha:function(re){return this._a=M(re),this._roundA=U(100*this._a)/100,this},toHsv:function(){var re=u(this._r,this._g,this._b);return{h:re.h*360,s:re.s,v:re.v,a:this._a}},toHsvString:function(){var re=u(this._r,this._g,this._b),fe=U(re.h*360),oe=U(re.s*100),De=U(re.v*100);return this._a==1?"hsv("+fe+", "+oe+"%, "+De+"%)":"hsva("+fe+", "+oe+"%, "+De+"%, "+this._roundA+")"},toHsl:function(){var re=p(this._r,this._g,this._b);return{h:re.h*360,s:re.s,l:re.l,a:this._a}},toHslString:function(){var re=p(this._r,this._g,this._b),fe=U(re.h*360),oe=U(re.s*100),De=U(re.l*100);return this._a==1?"hsl("+fe+", "+oe+"%, "+De+"%)":"hsla("+fe+", "+oe+"%, "+De+"%, "+this._roundA+")"},toHex:function(re){return l(this._r,this._g,this._b,re)},toHexString:function(re){return"#"+this.toHex(re)},toHex8:function(re){return o(this._r,this._g,this._b,this._a,re)},toHex8String:function(re){return"#"+this.toHex8(re)},toRgb:function(){return{r:U(this._r),g:U(this._g),b:U(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+U(this._r)+", "+U(this._g)+", "+U(this._b)+")":"rgba("+U(this._r)+", "+U(this._g)+", "+U(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:U(I(this._r,255)*100)+"%",g:U(I(this._g,255)*100)+"%",b:U(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+U(I(this._r,255)*100)+"%, "+U(I(this._g,255)*100)+"%, "+U(I(this._b,255)*100)+"%)":"rgba("+U(I(this._r,255)*100)+"%, "+U(I(this._g,255)*100)+"%, "+U(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(re){var fe="#"+s(this._r,this._g,this._b,this._a),oe=fe,De=this._gradientType?"GradientType = 1, ":"";if(re){var Fe=L(re);oe="#"+s(Fe._r,Fe._g,Fe._b,Fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+De+"startColorstr="+fe+",endColorstr="+oe+")"},toString:function(re){var fe=!!re;re=re||this._format;var oe=!1,De=this._a<1&&this._a>=0,Fe=!fe&&De&&(re==="hex"||re==="hex6"||re==="hex3"||re==="hex4"||re==="hex8"||re==="name");return Fe?re==="name"&&this._a===0?this.toName():this.toRgbString():(re==="rgb"&&(oe=this.toRgbString()),re==="prgb"&&(oe=this.toPercentageRgbString()),(re==="hex"||re==="hex6")&&(oe=this.toHexString()),re==="hex3"&&(oe=this.toHexString(!0)),re==="hex4"&&(oe=this.toHex8String(!0)),re==="hex8"&&(oe=this.toHex8String()),re==="name"&&(oe=this.toName()),re==="hsl"&&(oe=this.toHslString()),re==="hsv"&&(oe=this.toHsvString()),oe||this.toHexString())},clone:function(){return L(this.toString())},_applyModification:function(re,fe){var oe=re.apply(null,[this].concat([].slice.call(fe)));return this._r=oe._r,this._g=oe._g,this._b=oe._b,this.setAlpha(oe._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(D,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(a,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(re,fe){return re.apply(null,[this].concat([].slice.call(fe)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(c,arguments)}},L.fromRatio=function(re,fe){if(typeof re=="object"){var oe={};for(var De in re)re.hasOwnProperty(De)&&(De==="a"?oe[De]=re[De]:oe[De]=Oe(re[De]));re=oe}return L(re,fe)};function v(re){var fe={r:0,g:0,b:0},oe=1,De=null,Fe=null,Ce=null,Ne=!1,Be=!1;return typeof re=="string"&&(re=de(re)),typeof re=="object"&&(Le(re.r)&&Le(re.g)&&Le(re.b)?(fe=m(re.r,re.g,re.b),Ne=!0,Be=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Le(re.h)&&Le(re.s)&&Le(re.v)?(De=Oe(re.s),Fe=Oe(re.v),fe=f(re.h,De,Fe),Ne=!0,Be="hsv"):Le(re.h)&&Le(re.s)&&Le(re.l)&&(De=Oe(re.s),Ce=Oe(re.l),fe=h(re.h,De,Ce),Ne=!0,Be="hsl"),re.hasOwnProperty("a")&&(oe=re.a)),oe=M(oe),{ok:Ne,format:re.format||Be,r:K(255,G(fe.r,0)),g:K(255,G(fe.g,0)),b:K(255,G(fe.b,0)),a:oe}}function m(re,fe,oe){return{r:I(re,255)*255,g:I(fe,255)*255,b:I(oe,255)*255}}function p(re,fe,oe){re=I(re,255),fe=I(fe,255),oe=I(oe,255);var De=G(re,fe,oe),Fe=K(re,fe,oe),Ce,Ne,Be=(De+Fe)/2;if(De==Fe)Ce=Ne=0;else{var le=De-Fe;Ne=Be>.5?le/(2-De-Fe):le/(De+Fe);switch(De){case re:Ce=(fe-oe)/le+(fe1&&(Ie-=1),Ie<1/6?ve+(Se-ve)*6*Ie:Ie<1/2?Se:Ie<2/3?ve+(Se-ve)*(2/3-Ie)*6:ve}if(fe===0)De=Fe=Ce=oe;else{var Be=oe<.5?oe*(1+fe):oe+fe-oe*fe,le=2*oe-Be;De=Ne(le,Be,re+1/3),Fe=Ne(le,Be,re),Ce=Ne(le,Be,re-1/3)}return{r:De*255,g:Fe*255,b:Ce*255}}function u(re,fe,oe){re=I(re,255),fe=I(fe,255),oe=I(oe,255);var De=G(re,fe,oe),Fe=K(re,fe,oe),Ce,Ne,Be=De,le=De-Fe;if(Ne=De===0?0:le/De,De==Fe)Ce=0;else{switch(De){case re:Ce=(fe-oe)/le+(fe>1)+720)%360;--fe;)De.h=(De.h+Fe)%360,Ce.push(L(De));return Ce}function b(re,fe){fe=fe||6;for(var oe=L(re).toHsv(),De=oe.h,Fe=oe.s,Ce=oe.v,Ne=[],Be=1/fe;fe--;)Ne.push(L({h:De,s:Fe,v:Ce})),Ce=(Ce+Be)%1;return Ne}L.mix=function(re,fe,oe){oe=oe===0?0:oe||50;var De=L(re).toRgb(),Fe=L(fe).toRgb(),Ce=oe/100,Ne={r:(Fe.r-De.r)*Ce+De.r,g:(Fe.g-De.g)*Ce+De.g,b:(Fe.b-De.b)*Ce+De.b,a:(Fe.a-De.a)*Ce+De.a};return L(Ne)},L.readability=function(re,fe){var oe=L(re),De=L(fe);return(J.max(oe.getLuminance(),De.getLuminance())+.05)/(J.min(oe.getLuminance(),De.getLuminance())+.05)},L.isReadable=function(re,fe,oe){var De=L.readability(re,fe),Fe,Ce;Ce=!1,Fe=he(oe);switch(Fe.level+Fe.size){case"AAsmall":case"AAAlarge":Ce=De>=4.5;break;case"AAlarge":Ce=De>=3;break;case"AAAsmall":Ce=De>=7;break}return Ce},L.mostReadable=function(re,fe,oe){var De=null,Fe=0,Ce,Ne,Be,le;oe=oe||{},Ne=oe.includeFallbackColors,Be=oe.level,le=oe.size;for(var ve=0;veFe&&(Fe=Ce,De=L(fe[ve]));return L.isReadable(re,De,{level:Be,size:le})||!Ne?De:(oe.includeFallbackColors=!1,L.mostReadable(re,["#fff","#000"],oe))};var B=L.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=L.hexNames=_(B);function _(re){var fe={};for(var oe in re)re.hasOwnProperty(oe)&&(fe[re[oe]]=oe);return fe}function M(re){return re=parseFloat(re),(isNaN(re)||re<0||re>1)&&(re=1),re}function I(re,fe){$(re)&&(re="100%");var oe=ne(re);return re=K(fe,G(0,parseFloat(re))),oe&&(re=parseInt(re*fe,10)/100),J.abs(re-fe)<1e-6?1:re%fe/parseFloat(fe)}function g(re){return K(1,G(0,re))}function H(re){return parseInt(re,16)}function $(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1}function ne(re){return typeof re=="string"&&re.indexOf("%")!=-1}function se(re){return re.length==1?"0"+re:""+re}function Oe(re){return re<=1&&(re=re*100+"%"),re}function ge(re){return J.round(parseFloat(re)*255).toString(16)}function Te(re){return H(re)/255}var Re=function(){var re="[-\\+]?\\d+%?",fe="[-\\+]?\\d*\\.\\d+%?",oe="(?:"+fe+")|(?:"+re+")",De="[\\s|\\(]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")\\s*\\)?",Fe="[\\s|\\(]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")\\s*\\)?";return{CSS_UNIT:new RegExp(oe),rgb:new RegExp("rgb"+De),rgba:new RegExp("rgba"+Fe),hsl:new RegExp("hsl"+De),hsla:new RegExp("hsla"+Fe),hsv:new RegExp("hsv"+De),hsva:new RegExp("hsva"+Fe),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 Le(re){return!!Re.CSS_UNIT.exec(re)}function de(re){re=re.replace(P,"").replace(X,"").toLowerCase();var fe=!1;if(B[re])re=B[re],fe=!0;else if(re=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var oe;return(oe=Re.rgb.exec(re))?{r:oe[1],g:oe[2],b:oe[3]}:(oe=Re.rgba.exec(re))?{r:oe[1],g:oe[2],b:oe[3],a:oe[4]}:(oe=Re.hsl.exec(re))?{h:oe[1],s:oe[2],l:oe[3]}:(oe=Re.hsla.exec(re))?{h:oe[1],s:oe[2],l:oe[3],a:oe[4]}:(oe=Re.hsv.exec(re))?{h:oe[1],s:oe[2],v:oe[3]}:(oe=Re.hsva.exec(re))?{h:oe[1],s:oe[2],v:oe[3],a:oe[4]}:(oe=Re.hex8.exec(re))?{r:H(oe[1]),g:H(oe[2]),b:H(oe[3]),a:Te(oe[4]),format:fe?"name":"hex8"}:(oe=Re.hex6.exec(re))?{r:H(oe[1]),g:H(oe[2]),b:H(oe[3]),format:fe?"name":"hex"}:(oe=Re.hex4.exec(re))?{r:H(oe[1]+""+oe[1]),g:H(oe[2]+""+oe[2]),b:H(oe[3]+""+oe[3]),a:Te(oe[4]+""+oe[4]),format:fe?"name":"hex8"}:(oe=Re.hex3.exec(re))?{r:H(oe[1]+""+oe[1]),g:H(oe[2]+""+oe[2]),b:H(oe[3]+""+oe[3]),format:fe?"name":"hex"}:!1}function he(re){var fe,oe;return re=re||{level:"AA",size:"small"},fe=(re.level||"AA").toUpperCase(),oe=(re.size||"small").toLowerCase(),fe!=="AA"&&fe!=="AAA"&&(fe="AA"),oe!=="small"&&oe!=="large"&&(oe="small"),{level:fe,size:oe}}rt.exports?rt.exports=L:!(ie=function(){return L}.call(be,Z,be,rt),ie!==void 0&&(rt.exports=ie))})(Math)},bT9E:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});var ie=Z("VTBJ");function J(P,X){var j=Object(ie.a)({},P);return Array.isArray(X)&&X.forEach(function(U){delete j[U]}),j}},c5Ni:function(rt,be,Z){},dejd:function(rt,be,Z){},dmUQ:function(rt,be,Z){"use strict";var ie=Z("Ff2n"),J=Z("rePB"),P=Z("1OyB"),X=Z("vuIU"),j=Z("Ji7U"),U=Z("md7G"),K=Z("foSv"),G=Z("q1tI"),r=Z.n(G),L=Z("TSYQ"),v=Z.n(L),m=Z("4IlW");function p(T,c){var S=Object.keys(T);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(T);c&&(y=y.filter(function(b){return Object.getOwnPropertyDescriptor(T,b).enumerable})),S.push.apply(S,y)}return S}function h(T){for(var c=1;c1?ne-1:0),Oe=1;Oe1?I-1:0),H=1;H=0)return parseInt(M.slice(M.indexOf("e-")+2),10);var I=0;return M.indexOf(".")>=0&&(I=M.length-M.indexOf(".")-1),I},b.getInputDisplayValue=function(_){var M=_||b.state,I=M.focused,g=M.inputValue,H=M.value,$;I?$=g:$=b.toPrecisionAsStep(H),$==null&&($="");var ne=b.formatWrapper($);return w(b.props.decimalSeparator)&&(ne=ne.toString().replace(".",b.props.decimalSeparator)),ne},b.recordCursorPosition=function(){try{b.cursorStart=b.input.selectionStart,b.cursorEnd=b.input.selectionEnd,b.currentValue=b.input.value,b.cursorBefore=b.input.value.substring(0,b.cursorStart),b.cursorAfter=b.input.value.substring(b.cursorEnd)}catch(_){}},b.restoreByAfter=function(_){if(_===void 0)return!1;var M=b.input.value,I=M.lastIndexOf(_);if(I===-1)return!1;var g=b.cursorBefore.length;return b.lastKeyCode===m.a.DELETE&&b.cursorBefore.charAt(g-1)===_[0]?(b.fixCaret(g,g),!0):I+_.length===M.length?(b.fixCaret(I,I),!0):!1},b.partRestoreByAfter=function(_){return _===void 0?!1:Array.prototype.some.call(_,function(M,I){var g=_.substring(I);return b.restoreByAfter(g)})},b.isNotCompleteNumber=function(_){return isNaN(_)||_===""||_===null||_&&_.toString().indexOf(".")===_.toString().length-1},b.stop=function(){b.autoStepTimer&&clearTimeout(b.autoStepTimer)},b.down=function(_,M,I){b.pressingUpOrDown=!0,b.step("down",_,M,I)},b.up=function(_,M,I){b.pressingUpOrDown=!0,b.step("up",_,M,I)},b.saveInput=function(_){b.input=_};var B=y.value;B===void 0&&(B=y.defaultValue),b.state={focused:y.autoFocus};var F=b.getValidValue(b.toNumber(B));return b.state=h(h({},b.state),{},{inputValue:b.toPrecisionAsStep(F),value:F}),b}return Object(X.a)(S,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(b){var B=this.props,F=B.value,_=B.onChange,M=B.max,I=B.min,g=this.state.focused;if(b){if(!D(b.value,F)||!D(b.max,M)||!D(b.min,I)){var H=g?F:this.getValidValue(F),$;this.pressingUpOrDown?$=H:this.inputting?$=this.rawInput:$=this.toPrecisionAsStep(H),this.setState({value:H,inputValue:$})}var ne="value"in this.props?F:this.state.value;"max"in this.props&&b.max!==M&&typeof ne=="number"&&ne>M&&_&&_(M),"min"in this.props&&b.min!==I&&typeof ne=="number"&&ne1&&arguments[1]!==void 0?arguments[1]:this.props.min,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,_=parseFloat(b);return isNaN(_)?b:(_F&&(_=F),_)}},{key:"setValue",value:function(b,B){var F=this.props.precision,_=this.isNotCompleteNumber(parseFloat(b))?null:parseFloat(b),M=this.state.value,I=M===void 0?null:M,g=this.state.inputValue,H=g===void 0?null:g,$=typeof _=="number"?_.toFixed(F):"".concat(_),ne=_!==I||$!=="".concat(H);return"value"in this.props?(H=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:H},B)):this.setState({value:_,inputValue:this.toPrecisionAsStep(b)},B),ne&&this.props.onChange(_),_}},{key:"getMaxPrecision",value:function(b){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.props,_=F.precision,M=F.step;if(w(_))return _;var I=this.getPrecision(B),g=this.getPrecision(M),H=this.getPrecision(b);return b?Math.max(H,I+g):I+g}},{key:"getPrecisionFactor",value:function(b){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.getMaxPrecision(b,B);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(b){return this.props.formatter?this.props.formatter(b):b}},{key:"toPrecisionAsStep",value:function(b){if(this.isNotCompleteNumber(b)||b==="")return b;var B=Math.abs(this.getMaxPrecision(b));return isNaN(B)?b.toString():Number(b).toFixed(B)}},{key:"toNumber",value:function(b){var B=this.props.precision,F=this.state.focused,_=b&&b.length>16&&F;return this.isNotCompleteNumber(b)||_?b:w(B)?Math.round(b*Math.pow(10,B))/Math.pow(10,B):Number(b)}},{key:"upStep",value:function(b,B){var F=this.props.step,_=this.getPrecisionFactor(b,B),M=Math.abs(this.getMaxPrecision(b,B)),I=((_*b+_*F*B)/_).toFixed(M);return this.toNumber(I)}},{key:"downStep",value:function(b,B){var F=this.props.step,_=this.getPrecisionFactor(b,B),M=Math.abs(this.getMaxPrecision(b,B)),I=((_*b-_*F*B)/_).toFixed(M);return this.toNumber(I)}},{key:"step",value:function(b,B){var F=this,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=arguments.length>3?arguments[3]:void 0;this.stop(),B&&(B.persist(),B.preventDefault());var I=this.props;if(I.disabled)return;var g=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(g))return;var H=this["".concat(b,"Step")](g,_),$=H>I.max||HI.max?H=I.max:H=se),Ge=(st||st===0)&&(isNaN(st)||Number(st)<=Oe),Ae=je||_||M,_e=Ge||_||M,we=v()("".concat(F,"-handler"),"".concat(F,"-handler-up"),Object(J.a)({},"".concat(F,"-handler-up-disabled"),Ae)),ae=v()("".concat(F,"-handler"),"".concat(F,"-handler-down"),Object(J.a)({},"".concat(F,"-handler-down-disabled"),_e)),ue=I?{onTouchStart:Ae?l:this.up,onTouchEnd:this.stop}:{onMouseDown:Ae?l:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ce=I?{onTouchStart:_e?l:this.down,onTouchEnd:this.stop}:{onMouseDown:_e?l:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return r.a.createElement("div",{className:at,style:ge,title:Te,onMouseEnter:Re,onMouseLeave:Le,onMouseOver:de,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},r.a.createElement("div",{className:"".concat(F,"-handler-wrap")},r.a.createElement("span",Object.assign({unselectable:"on"},ue,{role:"button","aria-label":"Increase Value","aria-disabled":Ae,className:we}),H||r.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-up-inner"),onClick:o})),r.a.createElement("span",Object.assign({unselectable:"on"},ce,{role:"button","aria-label":"Decrease Value","aria-disabled":_e,className:ae}),$||r.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-down-inner"),onClick:o}))),r.a.createElement("div",{className:"".concat(F,"-input-wrap")},r.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Oe,"aria-valuemax":se,"aria-valuenow":st,required:re,type:De,placeholder:Fe,onPaste:We,onClick:fe,onMouseUp:this.onMouseUp,className:"".concat(F,"-input"),tabIndex:oe,autoComplete:g,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ct?this.onKeyDown:l,onKeyUp:ct?this.onKeyUp:l,autoFocus:Se,maxLength:ve,readOnly:M,disabled:_,max:se,min:Oe,step:le,name:Ie,title:Te,id:Ce,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(lt),pattern:Be,inputMode:Ne,onInput:Ve},Ue))))}}]),S}(r.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:l,onKeyDown:l,onPressEnter:l,onFocus:l,onBlur:l,parser:s,required:!1,autoComplete:"off"};var A=R,C=be.a=A},fjLI:function(rt,be,Z){"use strict";Z.d(be,"f",function(){return p}),Z.d(be,"b",function(){return h}),Z.d(be,"a",function(){return u}),Z.d(be,"d",function(){return f}),Z.d(be,"e",function(){return l}),Z.d(be,"c",function(){return o});var ie=Z("8HAY"),J=Z("Vhoy"),P=Z("MI8n"),X=Z("JYp7"),j=Z("pmY6"),U=Z("24hK"),K=Z("nnTU"),G=Z("T8No"),r=Z("Cg/j"),L=Z("t9D7"),v=function(s,a,O,E){var w=arguments.length,D=w<3?a:E===null?E=Object.getOwnPropertyDescriptor(a,O):E,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(s,a,O,E);else for(var A=s.length-1;A>=0;A--)(R=s[A])&&(D=(w<3?R(D):w>3?R(a,O,D):R(a,O))||D);return w>3&&D&&Object.defineProperty(a,O,D),D},m=function(s,a){return function(O,E){a(O,E,s)}};function p(s){return s.command!==void 0}class h{constructor(s){this.id=h._idPool++,this._debugName=s}}h._idPool=0,h.CommandPalette=new h("CommandPalette"),h.EditorContext=new h("EditorContext"),h.SimpleEditorContext=new h("SimpleEditorContext"),h.EditorContextCopy=new h("EditorContextCopy"),h.EditorContextPeek=new h("EditorContextPeek"),h.MenubarEditMenu=new h("MenubarEditMenu"),h.MenubarCopy=new h("MenubarCopy"),h.MenubarGoMenu=new h("MenubarGoMenu"),h.MenubarSelectionMenu=new h("MenubarSelectionMenu"),h.InlineCompletionsActions=new h("InlineCompletionsActions");const u=Object(r.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new P.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===h.CommandPalette}}addCommand(s){return this.addCommands(X.a.single(s))}addCommands(s){for(const a of s)this._commands.set(a.id,a);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(j.i)(()=>{let a=!1;for(const O of s)a=this._commands.delete(O.id)||a;a&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((a,O)=>s.set(O,a)),s}appendMenuItem(s,a){return this.appendMenuItems(X.a.single({id:s,item:a}))}appendMenuItems(s){const a=new Set,O=new U.a;for(const{id:E,item:w}of s){let D=this._menuItems.get(E);D||(D=new U.a,this._menuItems.set(E,D)),O.push(D.push(w)),a.add(E)}return this._onDidChangeMenu.fire(a),Object(j.i)(()=>{if(O.size>0){for(let E of O)E();this._onDidChangeMenu.fire(a),O.clear()}})}getMenuItems(s){let a;return this._menuItems.has(s)?a=[...this._menuItems.get(s)]:a=[],s===h.CommandPalette&&this._appendImplicitItems(a),a}_appendImplicitItems(s){const a=new Set;for(const O of s)p(O)&&(a.add(O.command.id),O.alt&&a.add(O.alt.id));this._commands.forEach((O,E)=>{a.has(E)||s.push({command:O})})}};class l extends ie.e{constructor(s,a,O,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=a,this._contextKeyService=O,this._options=E}get actions(){const s=[],a=this._menuService.createMenu(this.item.submenu,this._contextKeyService),O=a.getActions(this._options);a.dispose();for(const[,E]of O)E.length>0&&(s.push(...E),s.push(new ie.d));return s.length&&s.pop(),s}}let o=class s{constructor(a,O,E,w,D){var R,A;if(this._commandService=D,this.id=a.id,this.label=(E==null?void 0:E.renderShortTitle)&&a.shortTitle?typeof a.shortTitle=="string"?a.shortTitle:a.shortTitle.value:typeof a.title=="string"?a.title:a.title.value,this.tooltip=(A=typeof a.tooltip=="string"?a.tooltip:(R=a.tooltip)===null||R===void 0?void 0:R.value)!==null&&A!==void 0?A:"",this.enabled=!a.precondition||w.contextMatchesRules(a.precondition),this.checked=void 0,a.toggled){const C=a.toggled.condition?a.toggled:{condition:a.toggled};this.checked=w.contextMatchesRules(C.condition),this.checked&&C.tooltip&&(this.tooltip=typeof C.tooltip=="string"?C.tooltip:C.tooltip.value),C.title&&(this.label=typeof C.title=="string"?C.title:C.title.value)}this.item=a,this.alt=O?new s(O,void 0,E,w,D):void 0,this._options=E,L.d.isThemeIcon(a.icon)&&(this.class=J.a.asClassName(a.icon))}dispose(){}run(...a){var O,E;let w=[];return((O=this._options)===null||O===void 0?void 0:O.arg)&&(w=[...w,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(w=[...w,...a]),this._commandService.executeCommand(this.id,...w)}};o=v([m(3,G.b),m(4,K.b)],o)},h78n:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return b});var ie=Z("q1tI"),J=Z.n(ie),P=Z("TSYQ"),X=Z.n(P),j={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},U=function(_){var M=_.map(function(){return Object(ie.useRef)()}),I=Object(ie.useRef)();return Object(ie.useEffect)(function(){var g=Date.now(),H=!1;Object.keys(M).forEach(function($){var ne=M[$].current;if(!ne)return;H=!0;var se=ne.style;se.transitionDuration=".3s, .3s, .3s, .06s",I.current&&g-I.current<100&&(se.transitionDuration="0s, 0s")}),H&&(I.current=Date.now())}),[M]};function K(){return K=Object.assign||function(F){for(var _=1;_F.length)&&(_=F.length);for(var M=0,I=new Array(_);M<_;M++)I[M]=F[M];return I}function m(F,_){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var M=[],I=!0,g=!1,H=void 0;try{for(var $=F[Symbol.iterator](),ne;!(I=(ne=$.next()).done)&&!(M.push(ne.value),_&&M.length===_);I=!0);}catch(se){g=!0,H=se}finally{try{!I&&$.return!=null&&$.return()}finally{if(g)throw H}}return M}function p(F){if(Array.isArray(F))return F}function h(F,_){if(F==null)return{};var M=u(F,_),I,g;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(F);for(g=0;g=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,I))continue;M[I]=F[I]}}return M}function u(F,_){if(F==null)return{};var M={},I=Object.keys(F),g,H;for(H=0;H=0)continue;M[g]=F[g]}return M}var f=function(_){var M=_.className,I=_.percent,g=_.prefixCls,H=_.strokeColor,$=_.strokeLinecap,ne=_.strokeWidth,se=_.style,Oe=_.trailColor,ge=_.trailWidth,Te=_.transition,Re=h(_,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Re.gapPosition;var Le=Array.isArray(I)?I:[I],de=Array.isArray(H)?H:[H],he=U(Le),re=G(he,1),fe=re[0],oe=ne/2,De=100-ne/2,Fe="M ".concat($==="round"?oe:0,",").concat(oe,` - L `).concat($==="round"?De:100,",").concat(oe),Ce="0 0 100 ".concat(ne),Ne=0;return J.a.createElement("svg",K({className:X()("".concat(g,"-line"),M),viewBox:Ce,preserveAspectRatio:"none",style:se},Re),J.a.createElement("path",{className:"".concat(g,"-line-trail"),d:Fe,strokeLinecap:$,stroke:Oe,strokeWidth:ge||ne,fillOpacity:"0"}),Le.map(function(Be,le){var ve={strokeDasharray:"".concat(Be,"px, 100px"),strokeDashoffset:"-".concat(Ne,"px"),transition:Te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Se=de[le]||de[de.length-1];return Ne+=Be,J.a.createElement("path",{key:le,className:"".concat(g,"-line-path"),d:Fe,strokeLinecap:$,stroke:Se,strokeWidth:ne,fillOpacity:"0",ref:fe[le],style:ve})}))};f.defaultProps=j;var l=f;function o(){return o=Object.assign||function(F){for(var _=1;_F.length)&&(_=F.length);for(var M=0,I=new Array(_);M<_;M++)I[M]=F[M];return I}function w(F,_){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var M=[],I=!0,g=!1,H=void 0;try{for(var $=F[Symbol.iterator](),ne;!(I=(ne=$.next()).done)&&!(M.push(ne.value),_&&M.length===_);I=!0);}catch(se){g=!0,H=se}finally{try{!I&&$.return!=null&&$.return()}finally{if(g)throw H}}return M}function D(F){if(Array.isArray(F))return F}function R(F,_){if(F==null)return{};var M=A(F,_),I,g;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(F);for(g=0;g=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,I))continue;M[I]=F[I]}}return M}function A(F,_){if(F==null)return{};var M={},I=Object.keys(F),g,H;for(H=0;H=0)continue;M[g]=F[g]}return M}var C=0;function T(F){return+F.replace("%","")}function c(F){return Array.isArray(F)?F:[F]}function S(F,_,M,I){var g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,H=arguments.length>5?arguments[5]:void 0,$=50-I/2,ne=0,se=-$,Oe=0,ge=-2*$;switch(H){case"left":ne=-$,se=0,Oe=2*$,ge=0;break;case"right":ne=$,se=0,Oe=-2*$,ge=0;break;case"bottom":se=$,ge=2*$;break;default:}var Te="M 50,50 m ".concat(ne,",").concat(se,` +`)}]},o=Z("5VLF"),s=Z.n(o),a={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"]}},O=function(H,$){return $.map(function(ne){return{label:ne,kind:H.languages.CompletionItemKind.Keyword,insertText:ne}})},E=function(H){return Object.keys(a.tables).map(function($){return{label:$,kind:H.languages.CompletionItemKind.Variable,insertText:$}})},w=function(H,$){var ne=a.tables[H];return ne?ne.map(function(se){return{label:se,kind:$.languages.CompletionItemKind.Field,insertText:se}}):[]};function D(g,H,$,ne,se){var Oe=H.getWordUntilPosition($),ge={startLineNumber:$.lineNumber,endLineNumber:$.lineNumber,startColumn:Oe.startColumn,endColumn:Oe.endColumn},Te=ne.map(function(Re){return{label:Re,kind:g.languages.CompletionItemKind.Keyword,insertText:Re,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ge}});return se.map(function(Re){Te.push(Object(ie.a)(Object(ie.a)({},Re),{},{range:ge}))}),Te}var R=function(g){a.languages.map(function(se){return g.languages.registerDocumentFormattingEditProvider(se,{provideDocumentFormattingEdits:function(ge,Te,Re){return Object(v.a)(p.a.mark(function Le(){var ce;return p.a.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return ce=s()(ge.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}),re.abrupt("return",[{range:ge.getFullModelRange(),text:ce}]);case 2:case"end":return re.stop()}},Le)}))()}}),se});var H=f.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),$=l.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ne=u.quickKey.map(function(se){return{label:se.label,kind:g.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet}});g.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(f.keywords.map(function(ce){return{label:ce,kind:g.languages.CompletionItemKind.Function,documentation:ce,insertText:ce,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(f.quickKey.map(function(ce){return{label:ce.label,kind:g.languages.CompletionItemKind.Function,documentation:ce.content,insertText:Le.startsWith("#")?ce.content.replace(/#/,""):ce.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}}),g.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn};return{suggestions:Object(J.a)(h.keywords.map(function(Le){return{label:Le,kind:g.languages.CompletionItemKind.Function,documentation:Le,insertText:Le,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}}))}}}),g.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(u.keywords.map(function(ce){return{label:ce,kind:g.languages.CompletionItemKind.Function,documentation:ce,insertText:ce,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(u.quickKey.map(function(ce){return{label:ce.label,kind:g.languages.CompletionItemKind.Function,documentation:ce.content,insertText:Le.startsWith("#")?ce.content.replace(/#/,""):ce.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}}),g.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Oe,ge){var Te=Oe.getWordUntilPosition(ge),Re={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Le=Oe.getLineContent(ge.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[].concat(Object(J.a)(l.keywords.map(function(ce){return{label:ce,kind:g.languages.CompletionItemKind.Function,documentation:ce,insertText:ce,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})),Object(J.a)(l.quickKey.map(function(ce){return{label:ce.label,kind:g.languages.CompletionItemKind.Function,documentation:ce.content,insertText:Le.startsWith("#")?ce.content.replace(/#/,""):ce.content,insertTextRules:g.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Re}})))}}})},A="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",C=Z("fjLI"),T=Z("LvDl"),d=Z("+ua5");function S(g){return/^\d+$/.test(g)?"".concat(g,"px"):g}function y(){}var b=!1,B={"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 g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=g;if(Array.isArray(g)){for(var $=0;$0||cr.target.offsetWidth>0)&&Ge.current.instance.layout()}}catch(Nt){Ut.e(Nt)}finally{Ut.f()}}),Et.observe(je.current)),Et}function He(){X.b.warn(decodeURIComponent(A))}var ze=function(){var wt=Ge.current.instance;if(Oe!=null&&wt&&me){var Ut=wt.getModel();Ut&&Oe!==Ut.getValue()&&(b=!0,Ut.setValue(Oe),wt.layout(),b=!1)}};Object(G.useEffect)(function(){_e.current&&clearTimeout(_e.current),_e.current=setTimeout(function(){ze()},500)},[Oe,me,Ge.current]),Object(G.useEffect)(function(){if(at&&Ge.current&&Ge.current.instance){var Et=Ge.current.instance;Et.changeViewZones(function(Ut){var tr=document.createElement("div");tr.style.padding="10px 20px",tr.style.width="calc(100% - 20px)",tr.className="my-error-line-wrp",tr.innerHTML=dt,Ut.addZone({afterLineNumber:at||11,heightInLines:3,domNode:tr})});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}};Et.addOverlayWidget(wt),Et.revealPositionInCenter({lineNumber:20,column:1})}},[at,Ge.current,me]);function ht(){var Et=Ge.current.instance;if(Et){var wt=Et.getSelection(),Ut=Ge.current.pastePos||{},tr=new _.Range(Ut.startLineNumber||wt.endLineNumber,Ut.startColumn||wt.endColumn,Ut.endLineNumber||wt.endLineNumber,Ut.endColumn||wt.endColumn);setTimeout(function(){Et.executeEdits("",[{range:tr,text:""}])},300)}}function ot(Et){(window.navigator.platform.match("Mac")?Et.metaKey:Et.ctrlKey)&&Et.keyCode==83&&(Et.preventDefault(),Ce())}var yt=function(){if(Be&&Ge.current.instance){var wt=Ge.current.instance.getContentHeight();_t(wt0||We.target.offsetWidth>0)&&Be.layout()}}catch(Ve){Se.e(Ve)}finally{Se.f()}}),le.observe(ce.current)),le}Object(G.useEffect)(function(){ce.current&&Promise.all([Z.e(16),Z.e(28)]).then(Z.t.bind(null,"M/lh",7)).then(function(Be){_=Be;var le=_.editor.createDiffEditor(ce.current,Object(ie.a)(Object(ie.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},Le),{},{wordWrap:!0}));oe(le);var ve=De(le);return function(){le.dispose();var Se=le.getModel();Se&&Se.dispose(),ve.unobserve(ce.current)}})},[]),Object(G.useEffect)(function(){fe&&fe.setModel({original:_.editor.createModel(Oe,Te),modified:_.editor.createModel(ge,Te)})},[Oe,ge,Te,fe]);var Fe=S($),Ce=S(se),Ne={width:Fe,height:Ce};return r.a.createElement("div",{className:"my-diff-editor",ref:ce,style:Ne})}},ZpRC:function(rt,be,Z){"use strict";function ie(v){return typeof v=="object"&&v!=null&&v.nodeType===1}function J(v,m){return(!m||v!=="hidden")&&v!=="visible"&&v!=="clip"}function P(v,m){if(v.clientHeightm||f>v&&l=m&&o>=p?f-v-h:l>m&&op?l-m+u:0}var j=function(v,m){var p=window,h=m.scrollMode,u=m.block,f=m.inline,l=m.boundary,o=m.skipOverflowHiddenElements,s=typeof l=="function"?l:function(Be){return Be!==l};if(!ie(v))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,O=[],E=v;ie(E)&&s(E);){if((E=E.parentElement)===a){O.push(E);break}E!=null&&E===document.body&&P(E)&&!P(document.documentElement)||E!=null&&P(E,o)&&O.push(E)}for(var w=p.visualViewport?p.visualViewport.width:innerWidth,D=p.visualViewport?p.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,A=window.scrollY||pageYOffset,C=v.getBoundingClientRect(),T=C.height,d=C.width,S=C.top,y=C.right,b=C.bottom,B=C.left,F=u==="start"||u==="nearest"?S:u==="end"?b:S+T/2,_=f==="center"?B+d/2:f==="end"?y:B,M=[],I=0;I=0&&B>=0&&b<=D&&y<=w&&S>=se&&b<=ge&&B>=Te&&y<=Oe)return M;var Re=getComputedStyle(g),Le=parseInt(Re.borderLeftWidth,10),ce=parseInt(Re.borderTopWidth,10),he=parseInt(Re.borderRightWidth,10),re=parseInt(Re.borderBottomWidth,10),fe=0,oe=0,De="offsetWidth"in g?g.offsetWidth-g.clientWidth-Le-he:0,Fe="offsetHeight"in g?g.offsetHeight-g.clientHeight-ce-re:0;if(a===g)fe=u==="start"?F:u==="end"?F-D:u==="nearest"?X(A,A+D,D,ce,re,A+F,A+F+T,T):F-D/2,oe=f==="start"?_:f==="center"?_-w/2:f==="end"?_-w:X(R,R+w,w,Le,he,R+_,R+_+d,d),fe=Math.max(0,fe+A),oe=Math.max(0,oe+R);else{fe=u==="start"?F-se-ce:u==="end"?F-ge+re+Fe:u==="nearest"?X(se,ge,$,ce,re+Fe,F,F+T,T):F-(se+$/2)+Fe/2,oe=f==="start"?_-Te-Le:f==="center"?_-(Te+ne/2)+De/2:f==="end"?_-Oe+he+De:X(Te,Oe,ne,Le,he+De,_,_+d,d);var Ce=g.scrollLeft,Ne=g.scrollTop;F+=Ne-(fe=Math.max(0,Math.min(Ne+fe,g.scrollHeight-$+Fe))),_+=Ce-(oe=Math.max(0,Math.min(Ce+oe,g.scrollWidth-ne+De)))}M.push({el:g,top:fe,left:oe})}return M};function U(v){return v===Object(v)&&Object.keys(v).length!==0}function K(v,m){m===void 0&&(m="auto");var p="scrollBehavior"in document.body.style;v.forEach(function(h){var u=h.el,f=h.top,l=h.left;u.scroll&&p?u.scroll({top:f,left:l,behavior:m}):(u.scrollTop=f,u.scrollLeft=l)})}function G(v){return v===!1?{block:"end",inline:"nearest"}:U(v)?v:{block:"start",inline:"nearest"}}function r(v,m){var p=!v.ownerDocument.documentElement.contains(v);if(U(m)&&typeof m.behavior=="function")return m.behavior(p?[]:j(v,m));if(p)return;var h=G(m);return K(j(v,h),h.behavior)}var L=be.a=r},Zss7:function(rt,be,Z){var ie;(function(J){var P=/^\s+/,X=/\s+$/,j=0,U=J.round,K=J.min,G=J.max,r=J.random;function L(re,fe){if(re=re||"",fe=fe||{},re instanceof L)return re;if(!(this instanceof L))return new L(re,fe);var oe=v(re);this._originalInput=re,this._r=oe.r,this._g=oe.g,this._b=oe.b,this._a=oe.a,this._roundA=U(100*this._a)/100,this._format=fe.format||oe.format,this._gradientType=fe.gradientType,this._r<1&&(this._r=U(this._r)),this._g<1&&(this._g=U(this._g)),this._b<1&&(this._b=U(this._b)),this._ok=oe.ok,this._tc_id=j++}L.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 re=this.toRgb();return(re.r*299+re.g*587+re.b*114)/1e3},getLuminance:function(){var re=this.toRgb(),fe,oe,De,Fe,Ce,Ne;return fe=re.r/255,oe=re.g/255,De=re.b/255,fe<=.03928?Fe=fe/12.92:Fe=J.pow((fe+.055)/1.055,2.4),oe<=.03928?Ce=oe/12.92:Ce=J.pow((oe+.055)/1.055,2.4),De<=.03928?Ne=De/12.92:Ne=J.pow((De+.055)/1.055,2.4),.2126*Fe+.7152*Ce+.0722*Ne},setAlpha:function(re){return this._a=M(re),this._roundA=U(100*this._a)/100,this},toHsv:function(){var re=u(this._r,this._g,this._b);return{h:re.h*360,s:re.s,v:re.v,a:this._a}},toHsvString:function(){var re=u(this._r,this._g,this._b),fe=U(re.h*360),oe=U(re.s*100),De=U(re.v*100);return this._a==1?"hsv("+fe+", "+oe+"%, "+De+"%)":"hsva("+fe+", "+oe+"%, "+De+"%, "+this._roundA+")"},toHsl:function(){var re=p(this._r,this._g,this._b);return{h:re.h*360,s:re.s,l:re.l,a:this._a}},toHslString:function(){var re=p(this._r,this._g,this._b),fe=U(re.h*360),oe=U(re.s*100),De=U(re.l*100);return this._a==1?"hsl("+fe+", "+oe+"%, "+De+"%)":"hsla("+fe+", "+oe+"%, "+De+"%, "+this._roundA+")"},toHex:function(re){return l(this._r,this._g,this._b,re)},toHexString:function(re){return"#"+this.toHex(re)},toHex8:function(re){return o(this._r,this._g,this._b,this._a,re)},toHex8String:function(re){return"#"+this.toHex8(re)},toRgb:function(){return{r:U(this._r),g:U(this._g),b:U(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+U(this._r)+", "+U(this._g)+", "+U(this._b)+")":"rgba("+U(this._r)+", "+U(this._g)+", "+U(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:U(I(this._r,255)*100)+"%",g:U(I(this._g,255)*100)+"%",b:U(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+U(I(this._r,255)*100)+"%, "+U(I(this._g,255)*100)+"%, "+U(I(this._b,255)*100)+"%)":"rgba("+U(I(this._r,255)*100)+"%, "+U(I(this._g,255)*100)+"%, "+U(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(re){var fe="#"+s(this._r,this._g,this._b,this._a),oe=fe,De=this._gradientType?"GradientType = 1, ":"";if(re){var Fe=L(re);oe="#"+s(Fe._r,Fe._g,Fe._b,Fe._a)}return"progid:DXImageTransform.Microsoft.gradient("+De+"startColorstr="+fe+",endColorstr="+oe+")"},toString:function(re){var fe=!!re;re=re||this._format;var oe=!1,De=this._a<1&&this._a>=0,Fe=!fe&&De&&(re==="hex"||re==="hex6"||re==="hex3"||re==="hex4"||re==="hex8"||re==="name");return Fe?re==="name"&&this._a===0?this.toName():this.toRgbString():(re==="rgb"&&(oe=this.toRgbString()),re==="prgb"&&(oe=this.toPercentageRgbString()),(re==="hex"||re==="hex6")&&(oe=this.toHexString()),re==="hex3"&&(oe=this.toHexString(!0)),re==="hex4"&&(oe=this.toHex8String(!0)),re==="hex8"&&(oe=this.toHex8String()),re==="name"&&(oe=this.toName()),re==="hsl"&&(oe=this.toHslString()),re==="hsv"&&(oe=this.toHsvString()),oe||this.toHexString())},clone:function(){return L(this.toString())},_applyModification:function(re,fe){var oe=re.apply(null,[this].concat([].slice.call(fe)));return this._r=oe._r,this._g=oe._g,this._b=oe._b,this.setAlpha(oe._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(D,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(a,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(re,fe){return re.apply(null,[this].concat([].slice.call(fe)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(d,arguments)}},L.fromRatio=function(re,fe){if(typeof re=="object"){var oe={};for(var De in re)re.hasOwnProperty(De)&&(De==="a"?oe[De]=re[De]:oe[De]=Oe(re[De]));re=oe}return L(re,fe)};function v(re){var fe={r:0,g:0,b:0},oe=1,De=null,Fe=null,Ce=null,Ne=!1,Be=!1;return typeof re=="string"&&(re=ce(re)),typeof re=="object"&&(Le(re.r)&&Le(re.g)&&Le(re.b)?(fe=m(re.r,re.g,re.b),Ne=!0,Be=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Le(re.h)&&Le(re.s)&&Le(re.v)?(De=Oe(re.s),Fe=Oe(re.v),fe=f(re.h,De,Fe),Ne=!0,Be="hsv"):Le(re.h)&&Le(re.s)&&Le(re.l)&&(De=Oe(re.s),Ce=Oe(re.l),fe=h(re.h,De,Ce),Ne=!0,Be="hsl"),re.hasOwnProperty("a")&&(oe=re.a)),oe=M(oe),{ok:Ne,format:re.format||Be,r:K(255,G(fe.r,0)),g:K(255,G(fe.g,0)),b:K(255,G(fe.b,0)),a:oe}}function m(re,fe,oe){return{r:I(re,255)*255,g:I(fe,255)*255,b:I(oe,255)*255}}function p(re,fe,oe){re=I(re,255),fe=I(fe,255),oe=I(oe,255);var De=G(re,fe,oe),Fe=K(re,fe,oe),Ce,Ne,Be=(De+Fe)/2;if(De==Fe)Ce=Ne=0;else{var le=De-Fe;Ne=Be>.5?le/(2-De-Fe):le/(De+Fe);switch(De){case re:Ce=(fe-oe)/le+(fe1&&(Ie-=1),Ie<1/6?ve+(Se-ve)*6*Ie:Ie<1/2?Se:Ie<2/3?ve+(Se-ve)*(2/3-Ie)*6:ve}if(fe===0)De=Fe=Ce=oe;else{var Be=oe<.5?oe*(1+fe):oe+fe-oe*fe,le=2*oe-Be;De=Ne(le,Be,re+1/3),Fe=Ne(le,Be,re),Ce=Ne(le,Be,re-1/3)}return{r:De*255,g:Fe*255,b:Ce*255}}function u(re,fe,oe){re=I(re,255),fe=I(fe,255),oe=I(oe,255);var De=G(re,fe,oe),Fe=K(re,fe,oe),Ce,Ne,Be=De,le=De-Fe;if(Ne=De===0?0:le/De,De==Fe)Ce=0;else{switch(De){case re:Ce=(fe-oe)/le+(fe>1)+720)%360;--fe;)De.h=(De.h+Fe)%360,Ce.push(L(De));return Ce}function b(re,fe){fe=fe||6;for(var oe=L(re).toHsv(),De=oe.h,Fe=oe.s,Ce=oe.v,Ne=[],Be=1/fe;fe--;)Ne.push(L({h:De,s:Fe,v:Ce})),Ce=(Ce+Be)%1;return Ne}L.mix=function(re,fe,oe){oe=oe===0?0:oe||50;var De=L(re).toRgb(),Fe=L(fe).toRgb(),Ce=oe/100,Ne={r:(Fe.r-De.r)*Ce+De.r,g:(Fe.g-De.g)*Ce+De.g,b:(Fe.b-De.b)*Ce+De.b,a:(Fe.a-De.a)*Ce+De.a};return L(Ne)},L.readability=function(re,fe){var oe=L(re),De=L(fe);return(J.max(oe.getLuminance(),De.getLuminance())+.05)/(J.min(oe.getLuminance(),De.getLuminance())+.05)},L.isReadable=function(re,fe,oe){var De=L.readability(re,fe),Fe,Ce;Ce=!1,Fe=he(oe);switch(Fe.level+Fe.size){case"AAsmall":case"AAAlarge":Ce=De>=4.5;break;case"AAlarge":Ce=De>=3;break;case"AAAsmall":Ce=De>=7;break}return Ce},L.mostReadable=function(re,fe,oe){var De=null,Fe=0,Ce,Ne,Be,le;oe=oe||{},Ne=oe.includeFallbackColors,Be=oe.level,le=oe.size;for(var ve=0;veFe&&(Fe=Ce,De=L(fe[ve]));return L.isReadable(re,De,{level:Be,size:le})||!Ne?De:(oe.includeFallbackColors=!1,L.mostReadable(re,["#fff","#000"],oe))};var B=L.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=L.hexNames=_(B);function _(re){var fe={};for(var oe in re)re.hasOwnProperty(oe)&&(fe[re[oe]]=oe);return fe}function M(re){return re=parseFloat(re),(isNaN(re)||re<0||re>1)&&(re=1),re}function I(re,fe){$(re)&&(re="100%");var oe=ne(re);return re=K(fe,G(0,parseFloat(re))),oe&&(re=parseInt(re*fe,10)/100),J.abs(re-fe)<1e-6?1:re%fe/parseFloat(fe)}function g(re){return K(1,G(0,re))}function H(re){return parseInt(re,16)}function $(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1}function ne(re){return typeof re=="string"&&re.indexOf("%")!=-1}function se(re){return re.length==1?"0"+re:""+re}function Oe(re){return re<=1&&(re=re*100+"%"),re}function ge(re){return J.round(parseFloat(re)*255).toString(16)}function Te(re){return H(re)/255}var Re=function(){var re="[-\\+]?\\d+%?",fe="[-\\+]?\\d*\\.\\d+%?",oe="(?:"+fe+")|(?:"+re+")",De="[\\s|\\(]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")\\s*\\)?",Fe="[\\s|\\(]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")[,|\\s]+("+oe+")\\s*\\)?";return{CSS_UNIT:new RegExp(oe),rgb:new RegExp("rgb"+De),rgba:new RegExp("rgba"+Fe),hsl:new RegExp("hsl"+De),hsla:new RegExp("hsla"+Fe),hsv:new RegExp("hsv"+De),hsva:new RegExp("hsva"+Fe),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 Le(re){return!!Re.CSS_UNIT.exec(re)}function ce(re){re=re.replace(P,"").replace(X,"").toLowerCase();var fe=!1;if(B[re])re=B[re],fe=!0;else if(re=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var oe;return(oe=Re.rgb.exec(re))?{r:oe[1],g:oe[2],b:oe[3]}:(oe=Re.rgba.exec(re))?{r:oe[1],g:oe[2],b:oe[3],a:oe[4]}:(oe=Re.hsl.exec(re))?{h:oe[1],s:oe[2],l:oe[3]}:(oe=Re.hsla.exec(re))?{h:oe[1],s:oe[2],l:oe[3],a:oe[4]}:(oe=Re.hsv.exec(re))?{h:oe[1],s:oe[2],v:oe[3]}:(oe=Re.hsva.exec(re))?{h:oe[1],s:oe[2],v:oe[3],a:oe[4]}:(oe=Re.hex8.exec(re))?{r:H(oe[1]),g:H(oe[2]),b:H(oe[3]),a:Te(oe[4]),format:fe?"name":"hex8"}:(oe=Re.hex6.exec(re))?{r:H(oe[1]),g:H(oe[2]),b:H(oe[3]),format:fe?"name":"hex"}:(oe=Re.hex4.exec(re))?{r:H(oe[1]+""+oe[1]),g:H(oe[2]+""+oe[2]),b:H(oe[3]+""+oe[3]),a:Te(oe[4]+""+oe[4]),format:fe?"name":"hex8"}:(oe=Re.hex3.exec(re))?{r:H(oe[1]+""+oe[1]),g:H(oe[2]+""+oe[2]),b:H(oe[3]+""+oe[3]),format:fe?"name":"hex"}:!1}function he(re){var fe,oe;return re=re||{level:"AA",size:"small"},fe=(re.level||"AA").toUpperCase(),oe=(re.size||"small").toLowerCase(),fe!=="AA"&&fe!=="AAA"&&(fe="AA"),oe!=="small"&&oe!=="large"&&(oe="small"),{level:fe,size:oe}}rt.exports?rt.exports=L:!(ie=function(){return L}.call(be,Z,be,rt),ie!==void 0&&(rt.exports=ie))})(Math)},bT9E:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});var ie=Z("VTBJ");function J(P,X){var j=Object(ie.a)({},P);return Array.isArray(X)&&X.forEach(function(U){delete j[U]}),j}},c5Ni:function(rt,be,Z){},dejd:function(rt,be,Z){},dmUQ:function(rt,be,Z){"use strict";var ie=Z("Ff2n"),J=Z("rePB"),P=Z("1OyB"),X=Z("vuIU"),j=Z("Ji7U"),U=Z("md7G"),K=Z("foSv"),G=Z("q1tI"),r=Z.n(G),L=Z("TSYQ"),v=Z.n(L),m=Z("4IlW");function p(T,d){var S=Object.keys(T);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(T);d&&(y=y.filter(function(b){return Object.getOwnPropertyDescriptor(T,b).enumerable})),S.push.apply(S,y)}return S}function h(T){for(var d=1;d1?ne-1:0),Oe=1;Oe1?I-1:0),H=1;H=0)return parseInt(M.slice(M.indexOf("e-")+2),10);var I=0;return M.indexOf(".")>=0&&(I=M.length-M.indexOf(".")-1),I},b.getInputDisplayValue=function(_){var M=_||b.state,I=M.focused,g=M.inputValue,H=M.value,$;I?$=g:$=b.toPrecisionAsStep(H),$==null&&($="");var ne=b.formatWrapper($);return w(b.props.decimalSeparator)&&(ne=ne.toString().replace(".",b.props.decimalSeparator)),ne},b.recordCursorPosition=function(){try{b.cursorStart=b.input.selectionStart,b.cursorEnd=b.input.selectionEnd,b.currentValue=b.input.value,b.cursorBefore=b.input.value.substring(0,b.cursorStart),b.cursorAfter=b.input.value.substring(b.cursorEnd)}catch(_){}},b.restoreByAfter=function(_){if(_===void 0)return!1;var M=b.input.value,I=M.lastIndexOf(_);if(I===-1)return!1;var g=b.cursorBefore.length;return b.lastKeyCode===m.a.DELETE&&b.cursorBefore.charAt(g-1)===_[0]?(b.fixCaret(g,g),!0):I+_.length===M.length?(b.fixCaret(I,I),!0):!1},b.partRestoreByAfter=function(_){return _===void 0?!1:Array.prototype.some.call(_,function(M,I){var g=_.substring(I);return b.restoreByAfter(g)})},b.isNotCompleteNumber=function(_){return isNaN(_)||_===""||_===null||_&&_.toString().indexOf(".")===_.toString().length-1},b.stop=function(){b.autoStepTimer&&clearTimeout(b.autoStepTimer)},b.down=function(_,M,I){b.pressingUpOrDown=!0,b.step("down",_,M,I)},b.up=function(_,M,I){b.pressingUpOrDown=!0,b.step("up",_,M,I)},b.saveInput=function(_){b.input=_};var B=y.value;B===void 0&&(B=y.defaultValue),b.state={focused:y.autoFocus};var F=b.getValidValue(b.toNumber(B));return b.state=h(h({},b.state),{},{inputValue:b.toPrecisionAsStep(F),value:F}),b}return Object(X.a)(S,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(b){var B=this.props,F=B.value,_=B.onChange,M=B.max,I=B.min,g=this.state.focused;if(b){if(!D(b.value,F)||!D(b.max,M)||!D(b.min,I)){var H=g?F:this.getValidValue(F),$;this.pressingUpOrDown?$=H:this.inputting?$=this.rawInput:$=this.toPrecisionAsStep(H),this.setState({value:H,inputValue:$})}var ne="value"in this.props?F:this.state.value;"max"in this.props&&b.max!==M&&typeof ne=="number"&&ne>M&&_&&_(M),"min"in this.props&&b.min!==I&&typeof ne=="number"&&ne1&&arguments[1]!==void 0?arguments[1]:this.props.min,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,_=parseFloat(b);return isNaN(_)?b:(_F&&(_=F),_)}},{key:"setValue",value:function(b,B){var F=this.props.precision,_=this.isNotCompleteNumber(parseFloat(b))?null:parseFloat(b),M=this.state.value,I=M===void 0?null:M,g=this.state.inputValue,H=g===void 0?null:g,$=typeof _=="number"?_.toFixed(F):"".concat(_),ne=_!==I||$!=="".concat(H);return"value"in this.props?(H=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:H},B)):this.setState({value:_,inputValue:this.toPrecisionAsStep(b)},B),ne&&this.props.onChange(_),_}},{key:"getMaxPrecision",value:function(b){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.props,_=F.precision,M=F.step;if(w(_))return _;var I=this.getPrecision(B),g=this.getPrecision(M),H=this.getPrecision(b);return b?Math.max(H,I+g):I+g}},{key:"getPrecisionFactor",value:function(b){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.getMaxPrecision(b,B);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(b){return this.props.formatter?this.props.formatter(b):b}},{key:"toPrecisionAsStep",value:function(b){if(this.isNotCompleteNumber(b)||b==="")return b;var B=Math.abs(this.getMaxPrecision(b));return isNaN(B)?b.toString():Number(b).toFixed(B)}},{key:"toNumber",value:function(b){var B=this.props.precision,F=this.state.focused,_=b&&b.length>16&&F;return this.isNotCompleteNumber(b)||_?b:w(B)?Math.round(b*Math.pow(10,B))/Math.pow(10,B):Number(b)}},{key:"upStep",value:function(b,B){var F=this.props.step,_=this.getPrecisionFactor(b,B),M=Math.abs(this.getMaxPrecision(b,B)),I=((_*b+_*F*B)/_).toFixed(M);return this.toNumber(I)}},{key:"downStep",value:function(b,B){var F=this.props.step,_=this.getPrecisionFactor(b,B),M=Math.abs(this.getMaxPrecision(b,B)),I=((_*b-_*F*B)/_).toFixed(M);return this.toNumber(I)}},{key:"step",value:function(b,B){var F=this,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=arguments.length>3?arguments[3]:void 0;this.stop(),B&&(B.persist(),B.preventDefault());var I=this.props;if(I.disabled)return;var g=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(g))return;var H=this["".concat(b,"Step")](g,_),$=H>I.max||HI.max?H=I.max:H=se),Ge=(st||st===0)&&(isNaN(st)||Number(st)<=Oe),Ae=je||_||M,_e=Ge||_||M,we=v()("".concat(F,"-handler"),"".concat(F,"-handler-up"),Object(J.a)({},"".concat(F,"-handler-up-disabled"),Ae)),ae=v()("".concat(F,"-handler"),"".concat(F,"-handler-down"),Object(J.a)({},"".concat(F,"-handler-down-disabled"),_e)),ue=I?{onTouchStart:Ae?l:this.up,onTouchEnd:this.stop}:{onMouseDown:Ae?l:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},de=I?{onTouchStart:_e?l:this.down,onTouchEnd:this.stop}:{onMouseDown:_e?l:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return r.a.createElement("div",{className:at,style:ge,title:Te,onMouseEnter:Re,onMouseLeave:Le,onMouseOver:ce,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},r.a.createElement("div",{className:"".concat(F,"-handler-wrap")},r.a.createElement("span",Object.assign({unselectable:"on"},ue,{role:"button","aria-label":"Increase Value","aria-disabled":Ae,className:we}),H||r.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-up-inner"),onClick:o})),r.a.createElement("span",Object.assign({unselectable:"on"},de,{role:"button","aria-label":"Decrease Value","aria-disabled":_e,className:ae}),$||r.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-down-inner"),onClick:o}))),r.a.createElement("div",{className:"".concat(F,"-input-wrap")},r.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Oe,"aria-valuemax":se,"aria-valuenow":st,required:re,type:De,placeholder:Fe,onPaste:We,onClick:fe,onMouseUp:this.onMouseUp,className:"".concat(F,"-input"),tabIndex:oe,autoComplete:g,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:dt?this.onKeyDown:l,onKeyUp:dt?this.onKeyUp:l,autoFocus:Se,maxLength:ve,readOnly:M,disabled:_,max:se,min:Oe,step:le,name:Ie,title:Te,id:Ce,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(lt),pattern:Be,inputMode:Ne,onInput:Ve},Ue))))}}]),S}(r.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:l,onKeyDown:l,onPressEnter:l,onFocus:l,onBlur:l,parser:s,required:!1,autoComplete:"off"};var A=R,C=be.a=A},fjLI:function(rt,be,Z){"use strict";Z.d(be,"f",function(){return p}),Z.d(be,"b",function(){return h}),Z.d(be,"a",function(){return u}),Z.d(be,"d",function(){return f}),Z.d(be,"e",function(){return l}),Z.d(be,"c",function(){return o});var ie=Z("8HAY"),J=Z("Vhoy"),P=Z("MI8n"),X=Z("JYp7"),j=Z("pmY6"),U=Z("24hK"),K=Z("nnTU"),G=Z("T8No"),r=Z("Cg/j"),L=Z("t9D7"),v=function(s,a,O,E){var w=arguments.length,D=w<3?a:E===null?E=Object.getOwnPropertyDescriptor(a,O):E,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(s,a,O,E);else for(var A=s.length-1;A>=0;A--)(R=s[A])&&(D=(w<3?R(D):w>3?R(a,O,D):R(a,O))||D);return w>3&&D&&Object.defineProperty(a,O,D),D},m=function(s,a){return function(O,E){a(O,E,s)}};function p(s){return s.command!==void 0}class h{constructor(s){this.id=h._idPool++,this._debugName=s}}h._idPool=0,h.CommandPalette=new h("CommandPalette"),h.EditorContext=new h("EditorContext"),h.SimpleEditorContext=new h("SimpleEditorContext"),h.EditorContextCopy=new h("EditorContextCopy"),h.EditorContextPeek=new h("EditorContextPeek"),h.MenubarEditMenu=new h("MenubarEditMenu"),h.MenubarCopy=new h("MenubarCopy"),h.MenubarGoMenu=new h("MenubarGoMenu"),h.MenubarSelectionMenu=new h("MenubarSelectionMenu"),h.InlineCompletionsActions=new h("InlineCompletionsActions");const u=Object(r.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new P.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===h.CommandPalette}}addCommand(s){return this.addCommands(X.a.single(s))}addCommands(s){for(const a of s)this._commands.set(a.id,a);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(j.i)(()=>{let a=!1;for(const O of s)a=this._commands.delete(O.id)||a;a&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((a,O)=>s.set(O,a)),s}appendMenuItem(s,a){return this.appendMenuItems(X.a.single({id:s,item:a}))}appendMenuItems(s){const a=new Set,O=new U.a;for(const{id:E,item:w}of s){let D=this._menuItems.get(E);D||(D=new U.a,this._menuItems.set(E,D)),O.push(D.push(w)),a.add(E)}return this._onDidChangeMenu.fire(a),Object(j.i)(()=>{if(O.size>0){for(let E of O)E();this._onDidChangeMenu.fire(a),O.clear()}})}getMenuItems(s){let a;return this._menuItems.has(s)?a=[...this._menuItems.get(s)]:a=[],s===h.CommandPalette&&this._appendImplicitItems(a),a}_appendImplicitItems(s){const a=new Set;for(const O of s)p(O)&&(a.add(O.command.id),O.alt&&a.add(O.alt.id));this._commands.forEach((O,E)=>{a.has(E)||s.push({command:O})})}};class l extends ie.e{constructor(s,a,O,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=a,this._contextKeyService=O,this._options=E}get actions(){const s=[],a=this._menuService.createMenu(this.item.submenu,this._contextKeyService),O=a.getActions(this._options);a.dispose();for(const[,E]of O)E.length>0&&(s.push(...E),s.push(new ie.d));return s.length&&s.pop(),s}}let o=class s{constructor(a,O,E,w,D){var R,A;if(this._commandService=D,this.id=a.id,this.label=(E==null?void 0:E.renderShortTitle)&&a.shortTitle?typeof a.shortTitle=="string"?a.shortTitle:a.shortTitle.value:typeof a.title=="string"?a.title:a.title.value,this.tooltip=(A=typeof a.tooltip=="string"?a.tooltip:(R=a.tooltip)===null||R===void 0?void 0:R.value)!==null&&A!==void 0?A:"",this.enabled=!a.precondition||w.contextMatchesRules(a.precondition),this.checked=void 0,a.toggled){const C=a.toggled.condition?a.toggled:{condition:a.toggled};this.checked=w.contextMatchesRules(C.condition),this.checked&&C.tooltip&&(this.tooltip=typeof C.tooltip=="string"?C.tooltip:C.tooltip.value),C.title&&(this.label=typeof C.title=="string"?C.title:C.title.value)}this.item=a,this.alt=O?new s(O,void 0,E,w,D):void 0,this._options=E,L.d.isThemeIcon(a.icon)&&(this.class=J.a.asClassName(a.icon))}dispose(){}run(...a){var O,E;let w=[];return((O=this._options)===null||O===void 0?void 0:O.arg)&&(w=[...w,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(w=[...w,...a]),this._commandService.executeCommand(this.id,...w)}};o=v([m(3,G.b),m(4,K.b)],o)},h78n:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return b});var ie=Z("q1tI"),J=Z.n(ie),P=Z("TSYQ"),X=Z.n(P),j={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},U=function(_){var M=_.map(function(){return Object(ie.useRef)()}),I=Object(ie.useRef)();return Object(ie.useEffect)(function(){var g=Date.now(),H=!1;Object.keys(M).forEach(function($){var ne=M[$].current;if(!ne)return;H=!0;var se=ne.style;se.transitionDuration=".3s, .3s, .3s, .06s",I.current&&g-I.current<100&&(se.transitionDuration="0s, 0s")}),H&&(I.current=Date.now())}),[M]};function K(){return K=Object.assign||function(F){for(var _=1;_F.length)&&(_=F.length);for(var M=0,I=new Array(_);M<_;M++)I[M]=F[M];return I}function m(F,_){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var M=[],I=!0,g=!1,H=void 0;try{for(var $=F[Symbol.iterator](),ne;!(I=(ne=$.next()).done)&&!(M.push(ne.value),_&&M.length===_);I=!0);}catch(se){g=!0,H=se}finally{try{!I&&$.return!=null&&$.return()}finally{if(g)throw H}}return M}function p(F){if(Array.isArray(F))return F}function h(F,_){if(F==null)return{};var M=u(F,_),I,g;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(F);for(g=0;g=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,I))continue;M[I]=F[I]}}return M}function u(F,_){if(F==null)return{};var M={},I=Object.keys(F),g,H;for(H=0;H=0)continue;M[g]=F[g]}return M}var f=function(_){var M=_.className,I=_.percent,g=_.prefixCls,H=_.strokeColor,$=_.strokeLinecap,ne=_.strokeWidth,se=_.style,Oe=_.trailColor,ge=_.trailWidth,Te=_.transition,Re=h(_,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Re.gapPosition;var Le=Array.isArray(I)?I:[I],ce=Array.isArray(H)?H:[H],he=U(Le),re=G(he,1),fe=re[0],oe=ne/2,De=100-ne/2,Fe="M ".concat($==="round"?oe:0,",").concat(oe,` + L `).concat($==="round"?De:100,",").concat(oe),Ce="0 0 100 ".concat(ne),Ne=0;return J.a.createElement("svg",K({className:X()("".concat(g,"-line"),M),viewBox:Ce,preserveAspectRatio:"none",style:se},Re),J.a.createElement("path",{className:"".concat(g,"-line-trail"),d:Fe,strokeLinecap:$,stroke:Oe,strokeWidth:ge||ne,fillOpacity:"0"}),Le.map(function(Be,le){var ve={strokeDasharray:"".concat(Be,"px, 100px"),strokeDashoffset:"-".concat(Ne,"px"),transition:Te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Se=ce[le]||ce[ce.length-1];return Ne+=Be,J.a.createElement("path",{key:le,className:"".concat(g,"-line-path"),d:Fe,strokeLinecap:$,stroke:Se,strokeWidth:ne,fillOpacity:"0",ref:fe[le],style:ve})}))};f.defaultProps=j;var l=f;function o(){return o=Object.assign||function(F){for(var _=1;_F.length)&&(_=F.length);for(var M=0,I=new Array(_);M<_;M++)I[M]=F[M];return I}function w(F,_){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(F)))return;var M=[],I=!0,g=!1,H=void 0;try{for(var $=F[Symbol.iterator](),ne;!(I=(ne=$.next()).done)&&!(M.push(ne.value),_&&M.length===_);I=!0);}catch(se){g=!0,H=se}finally{try{!I&&$.return!=null&&$.return()}finally{if(g)throw H}}return M}function D(F){if(Array.isArray(F))return F}function R(F,_){if(F==null)return{};var M=A(F,_),I,g;if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(F);for(g=0;g=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,I))continue;M[I]=F[I]}}return M}function A(F,_){if(F==null)return{};var M={},I=Object.keys(F),g,H;for(H=0;H=0)continue;M[g]=F[g]}return M}var C=0;function T(F){return+F.replace("%","")}function d(F){return Array.isArray(F)?F:[F]}function S(F,_,M,I){var g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,H=arguments.length>5?arguments[5]:void 0,$=50-I/2,ne=0,se=-$,Oe=0,ge=-2*$;switch(H){case"left":ne=-$,se=0,Oe=2*$,ge=0;break;case"right":ne=$,se=0,Oe=-2*$,ge=0;break;case"bottom":se=$,ge=2*$;break;default:}var Te="M 50,50 m ".concat(ne,",").concat(se,` a `).concat($,",").concat($," 0 1 1 ").concat(Oe,",").concat(-ge,` - a `).concat($,",").concat($," 0 1 1 ").concat(-Oe,",").concat(ge),Re=Math.PI*2*$,Le={stroke:M,strokeDasharray:"".concat(_/100*(Re-g),"px ").concat(Re,"px"),strokeDashoffset:"-".concat(g/2+F/100*(Re-g),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Te,pathStyle:Le}}var y=function(_){var M=_.prefixCls,I=_.strokeWidth,g=_.trailWidth,H=_.gapDegree,$=_.gapPosition,ne=_.trailColor,se=_.strokeLinecap,Oe=_.style,ge=_.className,Te=_.strokeColor,Re=_.percent,Le=R(_,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),de=Object(ie.useMemo)(function(){return C+=1,C},[]),he=S(0,100,ne,I,H,$),re=he.pathString,fe=he.pathStyle,oe=c(Re),De=c(Te),Fe=De.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),Ce=U(oe),Ne=s(Ce,1),Be=Ne[0],le=function(){var Se=0;return oe.map(function(Ie,We){var Ve=De[We]||De[De.length-1],Qe=Object.prototype.toString.call(Ve)==="[object Object]"?"url(#".concat(M,"-gradient-").concat(de,")"):"",Je=S(Se,Ie,Ve,I,H,$);return Se+=Ie,J.a.createElement("path",{key:We,className:"".concat(M,"-circle-path"),d:Je.pathString,stroke:Qe,strokeLinecap:se,strokeWidth:I,opacity:Ie===0?0:1,fillOpacity:"0",style:Je.pathStyle,ref:Be[We]})})};return J.a.createElement("svg",o({className:X()("".concat(M,"-circle"),ge),viewBox:"0 0 100 100",style:Oe},Le),Fe&&J.a.createElement("defs",null,J.a.createElement("linearGradient",{id:"".concat(M,"-gradient-").concat(de),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Fe).sort(function(ve,Se){return T(ve)-T(Se)}).map(function(ve,Se){return J.a.createElement("stop",{key:Se,offset:ve,stopColor:Fe[ve]})}))),J.a.createElement("path",{className:"".concat(M,"-circle-trail"),d:re,stroke:ne,strokeLinecap:se,strokeWidth:g||I,fillOpacity:"0",style:fe}),le().reverse())};y.defaultProps=j;var b=y,B={Line:l,Circle:b}},ic2d:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return X});var ie=Z("FWmy"),J=Z("746U");class P{constructor(){this.data=new Map}add(j,U){ie.a(J.l(j)),ie.a(J.k(U)),ie.a(!this.data.has(j),"There is already an extension with this id"),this.data.set(j,U)}as(j){return this.data.get(j)||null}}const X=new P},kSUc:function(rt,be,Z){},lZu9:function(rt,be,Z){(function(ie){ie(Z("VrN/"),Z("1eCo"),Z("8EBN"))})(function(ie){"use strict";ie.defineMode("markdown",function(J,P){var X=ie.getMode(J,"text/html"),j=X.name=="null";function U(I){if(ie.findModeByName){var g=ie.findModeByName(I);g&&(I=g.mime||g.mimes[0])}var H=ie.getMode(J,I);return H.name=="null"?null:H}P.highlightFormatting===void 0&&(P.highlightFormatting=!1),P.maxBlockquoteDepth===void 0&&(P.maxBlockquoteDepth=0),P.taskLists===void 0&&(P.taskLists=!1),P.strikethrough===void 0&&(P.strikethrough=!1),P.emoji===void 0&&(P.emoji=!1),P.fencedCodeBlockHighlighting===void 0&&(P.fencedCodeBlockHighlighting=!0),P.fencedCodeBlockDefaultMode===void 0&&(P.fencedCodeBlockDefaultMode="text/plain"),P.xml===void 0&&(P.xml=!0),P.tokenTypeOverrides===void 0&&(P.tokenTypeOverrides={});var K={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 G in K)K.hasOwnProperty(G)&&P.tokenTypeOverrides[G]&&(K[G]=P.tokenTypeOverrides[G]);var r=/^([*\-_])(?:\s*\1){2,}\s*$/,L=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,m=P.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,p=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,u=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,l=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,o=" ";function s(I,g,H){return g.f=g.inline=H,H(I,g)}function a(I,g,H){return g.f=g.block=H,H(I,g)}function O(I){return!I||!/\S/.test(I.string)}function E(I){if(I.linkTitle=!1,I.linkHref=!1,I.linkText=!1,I.em=!1,I.strong=!1,I.strikethrough=!1,I.quote=0,I.indentedCode=!1,I.f==D){var g=j;if(!g){var H=ie.innerMode(X,I.htmlState);g=H.mode.name=="xml"&&H.state.tagStart===null&&!H.state.context&&H.state.tokenize.isInText}g&&(I.f=T,I.block=w,I.htmlState=null)}return I.trailingSpace=0,I.trailingSpaceNewLine=!1,I.prevLine=I.thisLine,I.thisLine={stream:null},null}function w(I,g){var H=I.column()===g.indentation,$=O(g.prevLine.stream),ne=g.indentedCode,se=g.prevLine.hr,Oe=g.list!==!1,ge=(g.listStack[g.listStack.length-1]||0)+3;g.indentedCode=!1;var Te=g.indentation;if(g.indentationDiff===null&&(g.indentationDiff=g.indentation,Oe)){for(g.list=null;Te=4&&(ne||g.prevLine.fencedCodeEnd||g.prevLine.header||$))return I.skipToEnd(),g.indentedCode=!0,K.code;if(I.eatSpace())return null;if(H&&g.indentation<=ge&&(de=I.match(m))&&de[1].length<=6)return g.quote=0,g.header=de[1].length,g.thisLine.header=!0,P.highlightFormatting&&(g.formatting="header"),g.f=g.inline,A(g);if(g.indentation<=ge&&I.eat(">"))return g.quote=H?1:g.quote+1,P.highlightFormatting&&(g.formatting="quote"),I.eatSpace(),A(g);if(!Le&&!g.setext&&H&&g.indentation<=ge&&(de=I.match(L))){var he=de[1]?"ol":"ul";return g.indentation=Te+I.current().length,g.list=!0,g.quote=0,g.listStack.push(g.indentation),g.em=!1,g.strong=!1,g.code=!1,g.strikethrough=!1,P.taskLists&&I.match(v,!1)&&(g.taskList=!0),g.f=g.inline,P.highlightFormatting&&(g.formatting=["list","list-"+he]),A(g)}else{if(H&&g.indentation<=ge&&(de=I.match(u,!0)))return g.quote=0,g.fencedEndRE=new RegExp(de[1]+"+ *$"),g.localMode=P.fencedCodeBlockHighlighting&&U(de[2]||P.fencedCodeBlockDefaultMode),g.localMode&&(g.localState=ie.startState(g.localMode)),g.f=g.block=R,P.highlightFormatting&&(g.formatting="code-block"),g.code=-1,A(g);if(g.setext||(!Re||!Oe)&&!g.quote&&g.list===!1&&!g.code&&!Le&&!f.test(I.string)&&(de=I.lookAhead(1))&&(de=de.match(p)))return g.setext?(g.header=g.setext,g.setext=0,I.skipToEnd(),P.highlightFormatting&&(g.formatting="header")):(g.header=de[0].charAt(0)=="="?1:2,g.setext=g.header),g.thisLine.header=!0,g.f=g.inline,A(g);if(Le)return I.skipToEnd(),g.hr=!0,g.thisLine.hr=!0,K.hr;if(I.peek()==="[")return s(I,g,B)}return s(I,g,g.inline)}function D(I,g){var H=X.token(I,g.htmlState);if(!j){var $=ie.innerMode(X,g.htmlState);($.mode.name=="xml"&&$.state.tagStart===null&&!$.state.context&&$.state.tokenize.isInText||g.md_inside&&I.current().indexOf(">")>-1)&&(g.f=T,g.block=w,g.htmlState=null)}return H}function R(I,g){var H=g.listStack[g.listStack.length-1]||0,$=g.indentation=I.quote?g.push(K.formatting+"-"+I.formatting[H]+"-"+I.quote):g.push("error"))}if(I.taskOpen)return g.push("meta"),g.length?g.join(" "):null;if(I.taskClosed)return g.push("property"),g.length?g.join(" "):null;if(I.linkHref?g.push(K.linkHref,"url"):(I.strong&&g.push(K.strong),I.em&&g.push(K.em),I.strikethrough&&g.push(K.strikethrough),I.emoji&&g.push(K.emoji),I.linkText&&g.push(K.linkText),I.code&&g.push(K.code),I.image&&g.push(K.image),I.imageAltText&&g.push(K.imageAltText,"link"),I.imageMarker&&g.push(K.imageMarker)),I.header&&g.push(K.header,K.header+"-"+I.header),I.quote&&(g.push(K.quote),!P.maxBlockquoteDepth||P.maxBlockquoteDepth>=I.quote?g.push(K.quote+"-"+I.quote):g.push(K.quote+"-"+P.maxBlockquoteDepth)),I.list!==!1){var $=(I.listStack.length-1)%3;$?$===1?g.push(K.list2):g.push(K.list3):g.push(K.list1)}return I.trailingSpaceNewLine?g.push("trailing-space-new-line"):I.trailingSpace&&g.push("trailing-space-"+(I.trailingSpace%2?"a":"b")),g.length?g.join(" "):null}function C(I,g){return I.match(h,!0)?A(g):void 0}function T(I,g){var H=g.text(I,g);if(typeof H!="undefined")return H;if(g.list)return g.list=null,A(g);if(g.taskList){var $=I.match(v,!0)[1]===" ";return $?g.taskOpen=!0:g.taskClosed=!0,P.highlightFormatting&&(g.formatting="task"),g.taskList=!1,A(g)}if(g.taskOpen=!1,g.taskClosed=!1,g.header&&I.match(/^#+$/,!0))return P.highlightFormatting&&(g.formatting="header"),A(g);var ne=I.next();if(g.linkTitle){g.linkTitle=!1;var se=ne;ne==="("&&(se=")"),se=(se+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Oe="^\\s*(?:[^"+se+"\\\\]+|\\\\\\\\|\\\\.)"+se;if(I.match(new RegExp(Oe),!0))return K.linkHref}if(ne==="`"){var ge=g.formatting;P.highlightFormatting&&(g.formatting="code"),I.eatWhile("`");var Te=I.current().length;if(g.code==0&&(!g.quote||Te==1))return g.code=Te,A(g);if(Te==g.code){var Re=A(g);return g.code=0,Re}else return g.formatting=ge,A(g)}else if(g.code)return A(g);if(ne==="\\"&&(I.next(),P.highlightFormatting)){var Le=A(g),de=K.formatting+"-escape";return Le?Le+" "+de:de}if(ne==="!"&&I.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return g.imageMarker=!0,g.image=!0,P.highlightFormatting&&(g.formatting="image"),A(g);if(ne==="["&&g.imageMarker&&I.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return g.imageMarker=!1,g.imageAltText=!0,P.highlightFormatting&&(g.formatting="image"),A(g);if(ne==="]"&&g.imageAltText){P.highlightFormatting&&(g.formatting="image");var Le=A(g);return g.imageAltText=!1,g.image=!1,g.inline=g.f=S,Le}if(ne==="["&&!g.image)return g.linkText&&I.match(/^.*?\]/)||(g.linkText=!0,P.highlightFormatting&&(g.formatting="link")),A(g);if(ne==="]"&&g.linkText){P.highlightFormatting&&(g.formatting="link");var Le=A(g);return g.linkText=!1,g.inline=g.f=I.match(/\(.*?\)| ?\[.*?\]/,!1)?S:T,Le}if(ne==="<"&&I.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){g.f=g.inline=c,P.highlightFormatting&&(g.formatting="link");var Le=A(g);return Le?Le+=" ":Le="",Le+K.linkInline}if(ne==="<"&&I.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){g.f=g.inline=c,P.highlightFormatting&&(g.formatting="link");var Le=A(g);return Le?Le+=" ":Le="",Le+K.linkEmail}if(P.xml&&ne==="<"&&I.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=I.string.indexOf(">",I.pos);if(he!=-1){var re=I.string.substring(I.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(re)&&(g.md_inside=!0)}return I.backUp(1),g.htmlState=ie.startState(X),a(I,g,D)}if(P.xml&&ne==="<"&&I.match(/^\/\w*?>/))return g.md_inside=!1,"tag";if(ne==="*"||ne==="_"){for(var fe=1,oe=I.pos==1?" ":I.string.charAt(I.pos-2);fe<3&&I.eat(ne);)fe++;var De=I.peek()||" ",Fe=!/\s/.test(De)&&(!l.test(De)||/\s/.test(oe)||l.test(oe)),Ce=!/\s/.test(oe)&&(!l.test(oe)||/\s/.test(De)||l.test(De)),Ne=null,Be=null;if(fe%2&&(!g.em&&Fe&&(ne==="*"||!Ce||l.test(oe))?Ne=!0:g.em==ne&&Ce&&(ne==="*"||!Fe||l.test(De))&&(Ne=!1)),fe>1&&(!g.strong&&Fe&&(ne==="*"||!Ce||l.test(oe))?Be=!0:g.strong==ne&&Ce&&(ne==="*"||!Fe||l.test(De))&&(Be=!1)),Be!=null||Ne!=null){P.highlightFormatting&&(g.formatting=Ne==null?"strong":Be==null?"em":"strong em"),Ne===!0&&(g.em=ne),Be===!0&&(g.strong=ne);var Re=A(g);return Ne===!1&&(g.em=!1),Be===!1&&(g.strong=!1),Re}}else if(ne===" "&&(I.eat("*")||I.eat("_"))){if(I.peek()===" ")return A(g);I.backUp(1)}if(P.strikethrough){if(ne==="~"&&I.eatWhile(ne)){if(g.strikethrough){P.highlightFormatting&&(g.formatting="strikethrough");var Re=A(g);return g.strikethrough=!1,Re}else if(I.match(/^[^\s]/,!1))return g.strikethrough=!0,P.highlightFormatting&&(g.formatting="strikethrough"),A(g)}else if(ne===" "&&I.match(/^~~/,!0)){if(I.peek()===" ")return A(g);I.backUp(2)}}if(P.emoji&&ne===":"&&I.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){g.emoji=!0,P.highlightFormatting&&(g.formatting="emoji");var le=A(g);return g.emoji=!1,le}return ne===" "&&(I.match(/^ +$/,!1)?g.trailingSpace++:g.trailingSpace&&(g.trailingSpaceNewLine=!0)),A(g)}function c(I,g){var H=I.next();if(H===">"){g.f=g.inline=T,P.highlightFormatting&&(g.formatting="link");var $=A(g);return $?$+=" ":$="",$+K.linkInline}return I.match(/^[^>]+/,!0),K.linkInline}function S(I,g){if(I.eatSpace())return null;var H=I.next();return H==="("||H==="["?(g.f=g.inline=b(H==="("?")":"]"),P.highlightFormatting&&(g.formatting="link-string"),g.linkHref=!0,A(g)):"error"}var y={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function b(I){return function(g,H){var $=g.next();if($===I){H.f=H.inline=T,P.highlightFormatting&&(H.formatting="link-string");var ne=A(H);return H.linkHref=!1,ne}return g.match(y[I]),H.linkHref=!0,A(H)}}function B(I,g){return I.match(/^([^\]\\]|\\.)*\]:/,!1)?(g.f=F,I.next(),P.highlightFormatting&&(g.formatting="link"),g.linkText=!0,A(g)):s(I,g,T)}function F(I,g){if(I.match(/^\]:/,!0)){g.f=g.inline=_,P.highlightFormatting&&(g.formatting="link");var H=A(g);return g.linkText=!1,H}return I.match(/^([^\]\\]|\\.)+/,!0),K.linkText}function _(I,g){return I.eatSpace()?null:(I.match(/^[^\s]+/,!0),I.peek()===void 0?g.linkTitle=!0:I.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),g.f=g.inline=T,K.linkHref+" url")}var M={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:T,text:C,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(I){return{f:I.f,prevLine:I.prevLine,thisLine:I.thisLine,block:I.block,htmlState:I.htmlState&&ie.copyState(X,I.htmlState),indentation:I.indentation,localMode:I.localMode,localState:I.localMode?ie.copyState(I.localMode,I.localState):null,inline:I.inline,text:I.text,formatting:!1,linkText:I.linkText,linkTitle:I.linkTitle,linkHref:I.linkHref,code:I.code,em:I.em,strong:I.strong,strikethrough:I.strikethrough,emoji:I.emoji,header:I.header,setext:I.setext,hr:I.hr,taskList:I.taskList,list:I.list,listStack:I.listStack.slice(0),quote:I.quote,indentedCode:I.indentedCode,trailingSpace:I.trailingSpace,trailingSpaceNewLine:I.trailingSpaceNewLine,md_inside:I.md_inside,fencedEndRE:I.fencedEndRE}},token:function(I,g){if(g.formatting=!1,I!=g.thisLine.stream){if(g.header=0,g.hr=!1,I.match(/^\s*$/,!0))return E(g),null;if(g.prevLine=g.thisLine,g.thisLine={stream:I},g.taskList=!1,g.trailingSpace=0,g.trailingSpaceNewLine=!1,!g.localState&&(g.f=g.block,g.f!=D)){var H=I.match(/^\s*/,!0)[0].replace(/\t/g,o).length;if(g.indentation=H,g.indentationDiff=null,H>0)return null}}return g.f(I,g)},innerMode:function(I){return I.block==D?{state:I.htmlState,mode:X}:I.localState?{state:I.localState,mode:I.localMode}:{state:I,mode:M}},indent:function(I,g,H){return I.block==D&&X.indent?X.indent(I.htmlState,g,H):I.localState&&I.localMode.indent?I.localMode.indent(I.localState,g,H):ie.Pass},blankLine:E,getType:A,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return M},"xml"),ie.defineMIME("text/markdown","markdown"),ie.defineMIME("text/x-markdown","markdown")})},nEHx:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return ie});var ie;(function(J){J.DARK="dark",J.LIGHT="light",J.HIGH_CONTRAST="hc"})(ie||(ie={}))},nnTU:function(rt,be,Z){"use strict";Z.d(be,"b",function(){return K}),Z.d(be,"a",function(){return G});var ie=Z("MI8n"),J=Z("JYp7"),P=Z("pmY6"),X=Z("24hK"),j=Z("746U"),U=Z("Cg/j");const K=Object(U.c)("commandService"),G=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ie.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(r,L){if(!r)throw new Error("invalid command");if(typeof r=="string"){if(!L)throw new Error("invalid command");return this.registerCommand({id:r,handler:L})}if(r.description){const u=[];for(let l of r.description.args)u.push(l.constraint);const f=r.handler;r.handler=function(l,...o){return Object(j.o)(o,u),f(l,...o)}}const{id:v}=r;let m=this._commands.get(v);m||(m=new X.a,this._commands.set(v,m));let p=m.unshift(r),h=Object(P.i)(()=>{p();const u=this._commands.get(v);(u==null?void 0:u.isEmpty())&&this._commands.delete(v)});return this._onDidRegisterCommand.fire(v),h}registerCommandAlias(r,L){return G.registerCommand(r,(v,...m)=>v.get(K).executeCommand(L,...m))}getCommand(r){const L=this._commands.get(r);return!L||L.isEmpty()?void 0:J.a.first(L)}getCommands(){const r=new Map;for(const L of this._commands.keys()){const v=this.getCommand(L);v&&r.set(L,v)}return r}};G.registerCommand("noop",()=>{})},osHv:function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";var J=ie.Pos;function P(l,o){return l.line-o.line||l.ch-o.ch}var X="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",j=X+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",U=new RegExp("<(/?)(["+X+"]["+j+"]*)","g");function K(l,o,s,a){this.line=o,this.ch=s,this.cm=l,this.text=l.getLine(o),this.min=a?Math.max(a.from,l.firstLine()):l.firstLine(),this.max=a?Math.min(a.to-1,l.lastLine()):l.lastLine()}function G(l,o){var s=l.cm.getTokenTypeAt(J(l.line,o));return s&&/\btag\b/.test(s)}function r(l){return l.line>=l.max?void 0:(l.ch=0,l.text=l.cm.getLine(++l.line),!0)}function L(l){return l.line<=l.min?void 0:(l.text=l.cm.getLine(--l.line),l.ch=l.text.length,!0)}function v(l){for(;;){var o=l.text.indexOf(">",l.ch);if(o==-1){if(r(l))continue;return}if(!G(l,o+1)){l.ch=o+1;continue}var s=l.text.lastIndexOf("/",o),a=s>-1&&!/\S/.test(l.text.slice(s+1,o));return l.ch=o+1,a?"selfClose":"regular"}}function m(l){for(;;){var o=l.ch?l.text.lastIndexOf("<",l.ch-1):-1;if(o==-1){if(L(l))continue;return}if(!G(l,o+1)){l.ch=o;continue}U.lastIndex=o,l.ch=o;var s=U.exec(l.text);if(s&&s.index==o)return s}}function p(l){for(;;){U.lastIndex=l.ch;var o=U.exec(l.text);if(!o){if(r(l))continue;return}if(!G(l,o.index+1)){l.ch=o.index+1;continue}return l.ch=o.index+o[0].length,o}}function h(l){for(;;){var o=l.ch?l.text.lastIndexOf(">",l.ch-1):-1;if(o==-1){if(L(l))continue;return}if(!G(l,o+1)){l.ch=o;continue}var s=l.text.lastIndexOf("/",o),a=s>-1&&!/\S/.test(l.text.slice(s+1,o));return l.ch=o+1,a?"selfClose":"regular"}}function u(l,o){for(var s=[];;){var a=p(l),O,E=l.line,w=l.ch-(a?a[0].length:0);if(!a||!(O=v(l)))return;if(O=="selfClose")continue;if(a[1]){for(var D=s.length-1;D>=0;--D)if(s[D]==a[2]){s.length=D;break}if(D<0&&(!o||o==a[2]))return{tag:a[2],from:J(E,w),to:J(l.line,l.ch)}}else s.push(a[2])}}function f(l,o){for(var s=[];;){var a=h(l);if(!a)return;if(a=="selfClose"){m(l);continue}var O=l.line,E=l.ch,w=m(l);if(!w)return;if(w[1])s.push(w[2]);else{for(var D=s.length-1;D>=0;--D)if(s[D]==w[2]){s.length=D;break}if(D<0&&(!o||o==w[2]))return{tag:w[2],from:J(l.line,l.ch),to:J(O,E)}}}}ie.registerHelper("fold","xml",function(l,o){for(var s=new K(l,o.line,0);;){var a=p(s);if(!a||s.line!=o.line)return;var O=v(s);if(!O)return;if(!a[1]&&O!="selfClose"){var E=J(s.line,s.ch),w=u(s,a[2]);return w&&P(w.from,E)>0?{from:E,to:w.from}:null}}}),ie.findMatchingTag=function(l,o,s){var a=new K(l,o.line,o.ch,s);if(a.text.indexOf(">")==-1&&a.text.indexOf("<")==-1)return;var O=v(a),E=O&&J(a.line,a.ch),w=O&&m(a);if(!O||!w||P(a,o)>0)return;var D={from:J(a.line,a.ch),to:E,tag:w[2]};return O=="selfClose"?{open:D,close:null,at:"open"}:w[1]?{open:f(a,w[2]),close:D,at:"close"}:(a=new K(l,E.line,E.ch,s),{open:D,close:u(a,w[2]),at:"open"})},ie.findEnclosingTag=function(l,o,s,a){for(var O=new K(l,o.line,o.ch,s);;){var E=f(O,a);if(!E)break;var w=new K(l,o.line,o.ch,s),D=u(w,E.tag);if(D)return{open:E,close:D}}},ie.scanForClosingTag=function(l,o,s,a){var O=new K(l,o.line,o.ch,a?{from:0,to:a}:null);return u(O,s)}})},p5ED:function(rt,be,Z){"use strict";var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("5Dmo"),X=Z("3S7+"),j=Z("k1fw"),U=Z("9og8"),K=Z("tJVT"),G=Z("WmNS"),r=Z.n(G),L=Z("q1tI"),v=Z.n(L),m=Z("vHTk"),p=Z.n(m),h=Z("yEEn"),u=Z("ZW9T"),f=Z("1vsH"),l=Z("V0Rq"),o=Z("m3rI");be.a=function(s){var a,O,E,w,D,R,A,C=s.editOffice,T=C===void 0?"view":C,c=s.data,S=s.theme,y=s.type,b=s.filename,B=s.monacoEditor,F=s.className,_=s.style,M=s.close,I=s.onClose,g=s.hasMask,H=s.disabledDownload,$=Object(L.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),ne=Object(K.a)($,2),se=ne[0],Oe=ne[1],ge=Object(L.useState)(""),Te=Object(K.a)(ge,2),Re=Te[0],Le=Te[1],de=Object(L.useState)(),he=Object(K.a)(de,2),re=he[0],fe=he[1],oe=window.ENV==="build"?"/react/build":"",De=o.a.PROXY_SERVER||location.origin,Fe,Ce=1024*1024,Ne=10*Ce,Be=Object(L.useRef)();(a=c)!==null&&a!==void 0&&a.startsWith("/api")&&y!=="txt"&&(c=o.a.API_SERVER+c),y==="office"&&(Fe=Object(f.T)(c).filesize,Fe>Ne&&(y="other")),b&&B&&(B.filename=b),Object(L.useEffect)(function(){var Ie,We,Ve=(Ie=document.cookie)===null||Ie===void 0||((We=Ie.replace(/\s/g,""))===null||We===void 0)?void 0:We.split(";");Ve==null||Ve.map(function(Qe){var Je=Qe.split("=");Je[0]==="_educoder_session"&&Le(Je[1])})},[]),Object(L.useEffect)(function(){y==="office"&&le()},[y,c]);var le=function(){var Ie=Object(U.a)(r.a.mark(function We(){var Ve,Qe,Je;return r.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return console.log("data:",c),Ve=c,c.startsWith("http")||(Ve=location.origin+Ve),Qe=new URL(Ve).pathname.split("/").pop(),qe.next=6,Object(l.V)({attachment_id:Qe});case 6:Je=qe.sent,fe(Je);case 8:case"end":return qe.stop()}},We)}));return function(){return Ie.apply(this,arguments)}}(),ve=function(){if(c.startsWith("http")||c.startsWith("blob:")){Se();return}Object(f.z)(b||"educoder",c,b)},Se=function(){Object(f.x)(b||"educoder",decodeURIComponent(c))};return v.a.createElement("div",{style:Object(j.a)({},_||{}),className:"".concat(g&&p.a.bgBlack," ").concat(y?p.a.wrp:"hide")},M&&v.a.createElement("div",{className:p.a.close,ref:Be},!H&&v.a.createElement(X.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Be.current}},v.a.createElement("span",{onClick:Se},v.a.createElement("i",{className:"icon-quxiaozhiding"}))),v.a.createElement(X.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Be.current}},v.a.createElement("span",{className:"",onClick:I},v.a.createElement("i",{className:"icon-guanbi1"})))),v.a.createElement("div",{className:"".concat(p.a[F]," ").concat(F," ").concat(p.a.monaco," ").concat(y==="txt"?"show":"hide")},y==="txt"&&v.a.createElement(u.b,B)),y==="audio"&&v.a.createElement("audio",{src:"".concat(((O=c)===null||O===void 0?void 0:O.indexOf("http://"))>-1||((E=c)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),y==="video"&&v.a.createElement(v.a.Fragment,null,((w=c)===null||w===void 0?void 0:w.indexOf("http"))>-1?v.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):v.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),y==="office"&&re&&v.a.createElement("iframe",{src:"".concat(oe,"/office.html?key=").concat(re.key,"&url=").concat(De+re.url,"&callbackUrl=").concat(De+re.callbackUrl,"&fileType=").concat(re.fileType,"&title=").concat(re.title,"&model=").concat(T,"&officeServer=").concat(o.a.OFFICE_SERVER,"&disabledDownload=").concat(!!H)}),y==="html"&&v.a.createElement("iframe",{src:c+"&disposition=inline"}),y==="pdf"&&v.a.createElement("iframe",{src:"".concat(oe,"/js/pdfview/index.html?url=").concat(c,"&disabledDownload=").concat(!!H)}),y==="image"&&v.a.createElement("img",{src:"".concat(((D=c)===null||D===void 0?void 0:D.indexOf("http://"))>-1||((R=c)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(A=c)!==null&&A!==void 0&&A.startsWith("/api")?"":"data:image/png;base64,").concat(c)}),y==="other"&&v.a.createElement("div",null,v.a.createElement(J.a,{type:"primary",size:"large",onClick:ve},v.a.createElement(h.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),y==="download"&&v.a.createElement(J.a,{type:"primary",size:"large",onClick:ve},v.a.createElement(h.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(rt,be,Z){},pmY6:function(rt,be,Z){"use strict";Z.d(be,"h",function(){return L}),Z.d(be,"g",function(){return m}),Z.d(be,"f",function(){return p}),Z.d(be,"e",function(){return h}),Z.d(be,"i",function(){return u}),Z.d(be,"b",function(){return f}),Z.d(be,"a",function(){return l}),Z.d(be,"d",function(){return o}),Z.d(be,"c",function(){return s});var ie=Z("C/vA"),J=Z("JYp7");const P=!1;let X=null;function j(a){X=a}if(P){const a="__is_disposable_tracked__";j(new class{trackDisposable(O){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{O[a]||console.log(E)},3e3)}setParent(O,E){if(O&&O!==l.None)try{O[a]=!0}catch(w){}}markAsDisposed(O){if(O&&O!==l.None)try{O[a]=!0}catch(E){}}markAsSingleton(O){}})}function U(a){return X==null||X.trackDisposable(a),a}function K(a){X==null||X.markAsDisposed(a)}function G(a,O){X==null||X.setParent(a,O)}function r(a,O){if(!X)return;for(const E of a)X.setParent(E,O)}function L(a){return X==null||X.markAsSingleton(a),a}class v extends Error{constructor(a){super(`Encountered errors while disposing of store. Errors: [${a.join(", ")}]`);this.errors=a}}function m(a){return typeof a.dispose=="function"&&a.dispose.length===0}function p(a){if(J.a.is(a)){let O=[];for(const E of a)if(E)try{E.dispose()}catch(w){O.push(w)}if(O.length===1)throw O[0];if(O.length>1)throw new v(O);return Array.isArray(a)?[]:a}else if(a)return a.dispose(),a}function h(...a){const O=u(()=>p(a));return r(a,O),O}function u(a){const O=U({dispose:Object(ie.a)(()=>{K(O),a()})});return O}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,U(this)}dispose(){if(this._isDisposed)return;K(this),this._isDisposed=!0,this.clear()}clear(){try{p(this._toDispose.values())}finally{this._toDispose.clear()}}add(a){if(!a)return a;if(a===this)throw new Error("Cannot register a disposable on itself!");return G(a,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(a),a}}f.DISABLE_DISPOSED_WARNING=!1;class l{constructor(){this._store=new f,U(this),G(this._store,this)}dispose(){K(this),this._store.dispose()}_register(a){if(a===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(a)}}l.None=Object.freeze({dispose(){}});class o{constructor(){this._isDisposed=!1,U(this)}get value(){return this._isDisposed?void 0:this._value}set value(a){var O;if(this._isDisposed||a===this._value)return;(O=this._value)===null||O===void 0||O.dispose(),a&&G(a,this),this._value=a}clear(){this.value=void 0}dispose(){var a;this._isDisposed=!0,K(this),(a=this._value)===null||a===void 0||a.dispose(),this._value=void 0}clearAndLeak(){const a=this._value;return this._value=void 0,a&&G(a,null),a}}class s{constructor(a){this.object=a}dispose(){}}},psGv:function(rt,be,Z){var ie,J;(function(){var P;(function(){"use strict";var K=[,,function(v){function m(u){this.__parent=u,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=[]}m.prototype.clone_empty=function(){var u=new m(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},m.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},m.prototype.has_match=function(u){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(u))return!0;return!1},m.prototype.set_indent=function(u,f){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(u){this.__items.push(u);var f=u.lastIndexOf(` + a `).concat($,",").concat($," 0 1 1 ").concat(-Oe,",").concat(ge),Re=Math.PI*2*$,Le={stroke:M,strokeDasharray:"".concat(_/100*(Re-g),"px ").concat(Re,"px"),strokeDashoffset:"-".concat(g/2+F/100*(Re-g),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Te,pathStyle:Le}}var y=function(_){var M=_.prefixCls,I=_.strokeWidth,g=_.trailWidth,H=_.gapDegree,$=_.gapPosition,ne=_.trailColor,se=_.strokeLinecap,Oe=_.style,ge=_.className,Te=_.strokeColor,Re=_.percent,Le=R(_,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ce=Object(ie.useMemo)(function(){return C+=1,C},[]),he=S(0,100,ne,I,H,$),re=he.pathString,fe=he.pathStyle,oe=d(Re),De=d(Te),Fe=De.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),Ce=U(oe),Ne=s(Ce,1),Be=Ne[0],le=function(){var Se=0;return oe.map(function(Ie,We){var Ve=De[We]||De[De.length-1],Qe=Object.prototype.toString.call(Ve)==="[object Object]"?"url(#".concat(M,"-gradient-").concat(ce,")"):"",Je=S(Se,Ie,Ve,I,H,$);return Se+=Ie,J.a.createElement("path",{key:We,className:"".concat(M,"-circle-path"),d:Je.pathString,stroke:Qe,strokeLinecap:se,strokeWidth:I,opacity:Ie===0?0:1,fillOpacity:"0",style:Je.pathStyle,ref:Be[We]})})};return J.a.createElement("svg",o({className:X()("".concat(M,"-circle"),ge),viewBox:"0 0 100 100",style:Oe},Le),Fe&&J.a.createElement("defs",null,J.a.createElement("linearGradient",{id:"".concat(M,"-gradient-").concat(ce),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Fe).sort(function(ve,Se){return T(ve)-T(Se)}).map(function(ve,Se){return J.a.createElement("stop",{key:Se,offset:ve,stopColor:Fe[ve]})}))),J.a.createElement("path",{className:"".concat(M,"-circle-trail"),d:re,stroke:ne,strokeLinecap:se,strokeWidth:g||I,fillOpacity:"0",style:fe}),le().reverse())};y.defaultProps=j;var b=y,B={Line:l,Circle:b}},ic2d:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return X});var ie=Z("FWmy"),J=Z("746U");class P{constructor(){this.data=new Map}add(j,U){ie.a(J.l(j)),ie.a(J.k(U)),ie.a(!this.data.has(j),"There is already an extension with this id"),this.data.set(j,U)}as(j){return this.data.get(j)||null}}const X=new P},kSUc:function(rt,be,Z){},lZu9:function(rt,be,Z){(function(ie){ie(Z("VrN/"),Z("1eCo"),Z("8EBN"))})(function(ie){"use strict";ie.defineMode("markdown",function(J,P){var X=ie.getMode(J,"text/html"),j=X.name=="null";function U(I){if(ie.findModeByName){var g=ie.findModeByName(I);g&&(I=g.mime||g.mimes[0])}var H=ie.getMode(J,I);return H.name=="null"?null:H}P.highlightFormatting===void 0&&(P.highlightFormatting=!1),P.maxBlockquoteDepth===void 0&&(P.maxBlockquoteDepth=0),P.taskLists===void 0&&(P.taskLists=!1),P.strikethrough===void 0&&(P.strikethrough=!1),P.emoji===void 0&&(P.emoji=!1),P.fencedCodeBlockHighlighting===void 0&&(P.fencedCodeBlockHighlighting=!0),P.fencedCodeBlockDefaultMode===void 0&&(P.fencedCodeBlockDefaultMode="text/plain"),P.xml===void 0&&(P.xml=!0),P.tokenTypeOverrides===void 0&&(P.tokenTypeOverrides={});var K={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 G in K)K.hasOwnProperty(G)&&P.tokenTypeOverrides[G]&&(K[G]=P.tokenTypeOverrides[G]);var r=/^([*\-_])(?:\s*\1){2,}\s*$/,L=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,m=P.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,p=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,u=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,l=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,o=" ";function s(I,g,H){return g.f=g.inline=H,H(I,g)}function a(I,g,H){return g.f=g.block=H,H(I,g)}function O(I){return!I||!/\S/.test(I.string)}function E(I){if(I.linkTitle=!1,I.linkHref=!1,I.linkText=!1,I.em=!1,I.strong=!1,I.strikethrough=!1,I.quote=0,I.indentedCode=!1,I.f==D){var g=j;if(!g){var H=ie.innerMode(X,I.htmlState);g=H.mode.name=="xml"&&H.state.tagStart===null&&!H.state.context&&H.state.tokenize.isInText}g&&(I.f=T,I.block=w,I.htmlState=null)}return I.trailingSpace=0,I.trailingSpaceNewLine=!1,I.prevLine=I.thisLine,I.thisLine={stream:null},null}function w(I,g){var H=I.column()===g.indentation,$=O(g.prevLine.stream),ne=g.indentedCode,se=g.prevLine.hr,Oe=g.list!==!1,ge=(g.listStack[g.listStack.length-1]||0)+3;g.indentedCode=!1;var Te=g.indentation;if(g.indentationDiff===null&&(g.indentationDiff=g.indentation,Oe)){for(g.list=null;Te=4&&(ne||g.prevLine.fencedCodeEnd||g.prevLine.header||$))return I.skipToEnd(),g.indentedCode=!0,K.code;if(I.eatSpace())return null;if(H&&g.indentation<=ge&&(ce=I.match(m))&&ce[1].length<=6)return g.quote=0,g.header=ce[1].length,g.thisLine.header=!0,P.highlightFormatting&&(g.formatting="header"),g.f=g.inline,A(g);if(g.indentation<=ge&&I.eat(">"))return g.quote=H?1:g.quote+1,P.highlightFormatting&&(g.formatting="quote"),I.eatSpace(),A(g);if(!Le&&!g.setext&&H&&g.indentation<=ge&&(ce=I.match(L))){var he=ce[1]?"ol":"ul";return g.indentation=Te+I.current().length,g.list=!0,g.quote=0,g.listStack.push(g.indentation),g.em=!1,g.strong=!1,g.code=!1,g.strikethrough=!1,P.taskLists&&I.match(v,!1)&&(g.taskList=!0),g.f=g.inline,P.highlightFormatting&&(g.formatting=["list","list-"+he]),A(g)}else{if(H&&g.indentation<=ge&&(ce=I.match(u,!0)))return g.quote=0,g.fencedEndRE=new RegExp(ce[1]+"+ *$"),g.localMode=P.fencedCodeBlockHighlighting&&U(ce[2]||P.fencedCodeBlockDefaultMode),g.localMode&&(g.localState=ie.startState(g.localMode)),g.f=g.block=R,P.highlightFormatting&&(g.formatting="code-block"),g.code=-1,A(g);if(g.setext||(!Re||!Oe)&&!g.quote&&g.list===!1&&!g.code&&!Le&&!f.test(I.string)&&(ce=I.lookAhead(1))&&(ce=ce.match(p)))return g.setext?(g.header=g.setext,g.setext=0,I.skipToEnd(),P.highlightFormatting&&(g.formatting="header")):(g.header=ce[0].charAt(0)=="="?1:2,g.setext=g.header),g.thisLine.header=!0,g.f=g.inline,A(g);if(Le)return I.skipToEnd(),g.hr=!0,g.thisLine.hr=!0,K.hr;if(I.peek()==="[")return s(I,g,B)}return s(I,g,g.inline)}function D(I,g){var H=X.token(I,g.htmlState);if(!j){var $=ie.innerMode(X,g.htmlState);($.mode.name=="xml"&&$.state.tagStart===null&&!$.state.context&&$.state.tokenize.isInText||g.md_inside&&I.current().indexOf(">")>-1)&&(g.f=T,g.block=w,g.htmlState=null)}return H}function R(I,g){var H=g.listStack[g.listStack.length-1]||0,$=g.indentation=I.quote?g.push(K.formatting+"-"+I.formatting[H]+"-"+I.quote):g.push("error"))}if(I.taskOpen)return g.push("meta"),g.length?g.join(" "):null;if(I.taskClosed)return g.push("property"),g.length?g.join(" "):null;if(I.linkHref?g.push(K.linkHref,"url"):(I.strong&&g.push(K.strong),I.em&&g.push(K.em),I.strikethrough&&g.push(K.strikethrough),I.emoji&&g.push(K.emoji),I.linkText&&g.push(K.linkText),I.code&&g.push(K.code),I.image&&g.push(K.image),I.imageAltText&&g.push(K.imageAltText,"link"),I.imageMarker&&g.push(K.imageMarker)),I.header&&g.push(K.header,K.header+"-"+I.header),I.quote&&(g.push(K.quote),!P.maxBlockquoteDepth||P.maxBlockquoteDepth>=I.quote?g.push(K.quote+"-"+I.quote):g.push(K.quote+"-"+P.maxBlockquoteDepth)),I.list!==!1){var $=(I.listStack.length-1)%3;$?$===1?g.push(K.list2):g.push(K.list3):g.push(K.list1)}return I.trailingSpaceNewLine?g.push("trailing-space-new-line"):I.trailingSpace&&g.push("trailing-space-"+(I.trailingSpace%2?"a":"b")),g.length?g.join(" "):null}function C(I,g){return I.match(h,!0)?A(g):void 0}function T(I,g){var H=g.text(I,g);if(typeof H!="undefined")return H;if(g.list)return g.list=null,A(g);if(g.taskList){var $=I.match(v,!0)[1]===" ";return $?g.taskOpen=!0:g.taskClosed=!0,P.highlightFormatting&&(g.formatting="task"),g.taskList=!1,A(g)}if(g.taskOpen=!1,g.taskClosed=!1,g.header&&I.match(/^#+$/,!0))return P.highlightFormatting&&(g.formatting="header"),A(g);var ne=I.next();if(g.linkTitle){g.linkTitle=!1;var se=ne;ne==="("&&(se=")"),se=(se+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Oe="^\\s*(?:[^"+se+"\\\\]+|\\\\\\\\|\\\\.)"+se;if(I.match(new RegExp(Oe),!0))return K.linkHref}if(ne==="`"){var ge=g.formatting;P.highlightFormatting&&(g.formatting="code"),I.eatWhile("`");var Te=I.current().length;if(g.code==0&&(!g.quote||Te==1))return g.code=Te,A(g);if(Te==g.code){var Re=A(g);return g.code=0,Re}else return g.formatting=ge,A(g)}else if(g.code)return A(g);if(ne==="\\"&&(I.next(),P.highlightFormatting)){var Le=A(g),ce=K.formatting+"-escape";return Le?Le+" "+ce:ce}if(ne==="!"&&I.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return g.imageMarker=!0,g.image=!0,P.highlightFormatting&&(g.formatting="image"),A(g);if(ne==="["&&g.imageMarker&&I.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return g.imageMarker=!1,g.imageAltText=!0,P.highlightFormatting&&(g.formatting="image"),A(g);if(ne==="]"&&g.imageAltText){P.highlightFormatting&&(g.formatting="image");var Le=A(g);return g.imageAltText=!1,g.image=!1,g.inline=g.f=S,Le}if(ne==="["&&!g.image)return g.linkText&&I.match(/^.*?\]/)||(g.linkText=!0,P.highlightFormatting&&(g.formatting="link")),A(g);if(ne==="]"&&g.linkText){P.highlightFormatting&&(g.formatting="link");var Le=A(g);return g.linkText=!1,g.inline=g.f=I.match(/\(.*?\)| ?\[.*?\]/,!1)?S:T,Le}if(ne==="<"&&I.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){g.f=g.inline=d,P.highlightFormatting&&(g.formatting="link");var Le=A(g);return Le?Le+=" ":Le="",Le+K.linkInline}if(ne==="<"&&I.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){g.f=g.inline=d,P.highlightFormatting&&(g.formatting="link");var Le=A(g);return Le?Le+=" ":Le="",Le+K.linkEmail}if(P.xml&&ne==="<"&&I.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=I.string.indexOf(">",I.pos);if(he!=-1){var re=I.string.substring(I.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(re)&&(g.md_inside=!0)}return I.backUp(1),g.htmlState=ie.startState(X),a(I,g,D)}if(P.xml&&ne==="<"&&I.match(/^\/\w*?>/))return g.md_inside=!1,"tag";if(ne==="*"||ne==="_"){for(var fe=1,oe=I.pos==1?" ":I.string.charAt(I.pos-2);fe<3&&I.eat(ne);)fe++;var De=I.peek()||" ",Fe=!/\s/.test(De)&&(!l.test(De)||/\s/.test(oe)||l.test(oe)),Ce=!/\s/.test(oe)&&(!l.test(oe)||/\s/.test(De)||l.test(De)),Ne=null,Be=null;if(fe%2&&(!g.em&&Fe&&(ne==="*"||!Ce||l.test(oe))?Ne=!0:g.em==ne&&Ce&&(ne==="*"||!Fe||l.test(De))&&(Ne=!1)),fe>1&&(!g.strong&&Fe&&(ne==="*"||!Ce||l.test(oe))?Be=!0:g.strong==ne&&Ce&&(ne==="*"||!Fe||l.test(De))&&(Be=!1)),Be!=null||Ne!=null){P.highlightFormatting&&(g.formatting=Ne==null?"strong":Be==null?"em":"strong em"),Ne===!0&&(g.em=ne),Be===!0&&(g.strong=ne);var Re=A(g);return Ne===!1&&(g.em=!1),Be===!1&&(g.strong=!1),Re}}else if(ne===" "&&(I.eat("*")||I.eat("_"))){if(I.peek()===" ")return A(g);I.backUp(1)}if(P.strikethrough){if(ne==="~"&&I.eatWhile(ne)){if(g.strikethrough){P.highlightFormatting&&(g.formatting="strikethrough");var Re=A(g);return g.strikethrough=!1,Re}else if(I.match(/^[^\s]/,!1))return g.strikethrough=!0,P.highlightFormatting&&(g.formatting="strikethrough"),A(g)}else if(ne===" "&&I.match(/^~~/,!0)){if(I.peek()===" ")return A(g);I.backUp(2)}}if(P.emoji&&ne===":"&&I.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){g.emoji=!0,P.highlightFormatting&&(g.formatting="emoji");var le=A(g);return g.emoji=!1,le}return ne===" "&&(I.match(/^ +$/,!1)?g.trailingSpace++:g.trailingSpace&&(g.trailingSpaceNewLine=!0)),A(g)}function d(I,g){var H=I.next();if(H===">"){g.f=g.inline=T,P.highlightFormatting&&(g.formatting="link");var $=A(g);return $?$+=" ":$="",$+K.linkInline}return I.match(/^[^>]+/,!0),K.linkInline}function S(I,g){if(I.eatSpace())return null;var H=I.next();return H==="("||H==="["?(g.f=g.inline=b(H==="("?")":"]"),P.highlightFormatting&&(g.formatting="link-string"),g.linkHref=!0,A(g)):"error"}var y={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function b(I){return function(g,H){var $=g.next();if($===I){H.f=H.inline=T,P.highlightFormatting&&(H.formatting="link-string");var ne=A(H);return H.linkHref=!1,ne}return g.match(y[I]),H.linkHref=!0,A(H)}}function B(I,g){return I.match(/^([^\]\\]|\\.)*\]:/,!1)?(g.f=F,I.next(),P.highlightFormatting&&(g.formatting="link"),g.linkText=!0,A(g)):s(I,g,T)}function F(I,g){if(I.match(/^\]:/,!0)){g.f=g.inline=_,P.highlightFormatting&&(g.formatting="link");var H=A(g);return g.linkText=!1,H}return I.match(/^([^\]\\]|\\.)+/,!0),K.linkText}function _(I,g){return I.eatSpace()?null:(I.match(/^[^\s]+/,!0),I.peek()===void 0?g.linkTitle=!0:I.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),g.f=g.inline=T,K.linkHref+" url")}var M={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:T,text:C,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(I){return{f:I.f,prevLine:I.prevLine,thisLine:I.thisLine,block:I.block,htmlState:I.htmlState&&ie.copyState(X,I.htmlState),indentation:I.indentation,localMode:I.localMode,localState:I.localMode?ie.copyState(I.localMode,I.localState):null,inline:I.inline,text:I.text,formatting:!1,linkText:I.linkText,linkTitle:I.linkTitle,linkHref:I.linkHref,code:I.code,em:I.em,strong:I.strong,strikethrough:I.strikethrough,emoji:I.emoji,header:I.header,setext:I.setext,hr:I.hr,taskList:I.taskList,list:I.list,listStack:I.listStack.slice(0),quote:I.quote,indentedCode:I.indentedCode,trailingSpace:I.trailingSpace,trailingSpaceNewLine:I.trailingSpaceNewLine,md_inside:I.md_inside,fencedEndRE:I.fencedEndRE}},token:function(I,g){if(g.formatting=!1,I!=g.thisLine.stream){if(g.header=0,g.hr=!1,I.match(/^\s*$/,!0))return E(g),null;if(g.prevLine=g.thisLine,g.thisLine={stream:I},g.taskList=!1,g.trailingSpace=0,g.trailingSpaceNewLine=!1,!g.localState&&(g.f=g.block,g.f!=D)){var H=I.match(/^\s*/,!0)[0].replace(/\t/g,o).length;if(g.indentation=H,g.indentationDiff=null,H>0)return null}}return g.f(I,g)},innerMode:function(I){return I.block==D?{state:I.htmlState,mode:X}:I.localState?{state:I.localState,mode:I.localMode}:{state:I,mode:M}},indent:function(I,g,H){return I.block==D&&X.indent?X.indent(I.htmlState,g,H):I.localState&&I.localMode.indent?I.localMode.indent(I.localState,g,H):ie.Pass},blankLine:E,getType:A,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return M},"xml"),ie.defineMIME("text/markdown","markdown"),ie.defineMIME("text/x-markdown","markdown")})},nEHx:function(rt,be,Z){"use strict";Z.d(be,"a",function(){return ie});var ie;(function(J){J.DARK="dark",J.LIGHT="light",J.HIGH_CONTRAST="hc"})(ie||(ie={}))},nnTU:function(rt,be,Z){"use strict";Z.d(be,"b",function(){return K}),Z.d(be,"a",function(){return G});var ie=Z("MI8n"),J=Z("JYp7"),P=Z("pmY6"),X=Z("24hK"),j=Z("746U"),U=Z("Cg/j");const K=Object(U.c)("commandService"),G=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ie.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(r,L){if(!r)throw new Error("invalid command");if(typeof r=="string"){if(!L)throw new Error("invalid command");return this.registerCommand({id:r,handler:L})}if(r.description){const u=[];for(let l of r.description.args)u.push(l.constraint);const f=r.handler;r.handler=function(l,...o){return Object(j.o)(o,u),f(l,...o)}}const{id:v}=r;let m=this._commands.get(v);m||(m=new X.a,this._commands.set(v,m));let p=m.unshift(r),h=Object(P.i)(()=>{p();const u=this._commands.get(v);(u==null?void 0:u.isEmpty())&&this._commands.delete(v)});return this._onDidRegisterCommand.fire(v),h}registerCommandAlias(r,L){return G.registerCommand(r,(v,...m)=>v.get(K).executeCommand(L,...m))}getCommand(r){const L=this._commands.get(r);return!L||L.isEmpty()?void 0:J.a.first(L)}getCommands(){const r=new Map;for(const L of this._commands.keys()){const v=this.getCommand(L);v&&r.set(L,v)}return r}};G.registerCommand("noop",()=>{})},osHv:function(rt,be,Z){(function(ie){ie(Z("VrN/"))})(function(ie){"use strict";var J=ie.Pos;function P(l,o){return l.line-o.line||l.ch-o.ch}var X="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",j=X+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",U=new RegExp("<(/?)(["+X+"]["+j+"]*)","g");function K(l,o,s,a){this.line=o,this.ch=s,this.cm=l,this.text=l.getLine(o),this.min=a?Math.max(a.from,l.firstLine()):l.firstLine(),this.max=a?Math.min(a.to-1,l.lastLine()):l.lastLine()}function G(l,o){var s=l.cm.getTokenTypeAt(J(l.line,o));return s&&/\btag\b/.test(s)}function r(l){return l.line>=l.max?void 0:(l.ch=0,l.text=l.cm.getLine(++l.line),!0)}function L(l){return l.line<=l.min?void 0:(l.text=l.cm.getLine(--l.line),l.ch=l.text.length,!0)}function v(l){for(;;){var o=l.text.indexOf(">",l.ch);if(o==-1){if(r(l))continue;return}if(!G(l,o+1)){l.ch=o+1;continue}var s=l.text.lastIndexOf("/",o),a=s>-1&&!/\S/.test(l.text.slice(s+1,o));return l.ch=o+1,a?"selfClose":"regular"}}function m(l){for(;;){var o=l.ch?l.text.lastIndexOf("<",l.ch-1):-1;if(o==-1){if(L(l))continue;return}if(!G(l,o+1)){l.ch=o;continue}U.lastIndex=o,l.ch=o;var s=U.exec(l.text);if(s&&s.index==o)return s}}function p(l){for(;;){U.lastIndex=l.ch;var o=U.exec(l.text);if(!o){if(r(l))continue;return}if(!G(l,o.index+1)){l.ch=o.index+1;continue}return l.ch=o.index+o[0].length,o}}function h(l){for(;;){var o=l.ch?l.text.lastIndexOf(">",l.ch-1):-1;if(o==-1){if(L(l))continue;return}if(!G(l,o+1)){l.ch=o;continue}var s=l.text.lastIndexOf("/",o),a=s>-1&&!/\S/.test(l.text.slice(s+1,o));return l.ch=o+1,a?"selfClose":"regular"}}function u(l,o){for(var s=[];;){var a=p(l),O,E=l.line,w=l.ch-(a?a[0].length:0);if(!a||!(O=v(l)))return;if(O=="selfClose")continue;if(a[1]){for(var D=s.length-1;D>=0;--D)if(s[D]==a[2]){s.length=D;break}if(D<0&&(!o||o==a[2]))return{tag:a[2],from:J(E,w),to:J(l.line,l.ch)}}else s.push(a[2])}}function f(l,o){for(var s=[];;){var a=h(l);if(!a)return;if(a=="selfClose"){m(l);continue}var O=l.line,E=l.ch,w=m(l);if(!w)return;if(w[1])s.push(w[2]);else{for(var D=s.length-1;D>=0;--D)if(s[D]==w[2]){s.length=D;break}if(D<0&&(!o||o==w[2]))return{tag:w[2],from:J(l.line,l.ch),to:J(O,E)}}}}ie.registerHelper("fold","xml",function(l,o){for(var s=new K(l,o.line,0);;){var a=p(s);if(!a||s.line!=o.line)return;var O=v(s);if(!O)return;if(!a[1]&&O!="selfClose"){var E=J(s.line,s.ch),w=u(s,a[2]);return w&&P(w.from,E)>0?{from:E,to:w.from}:null}}}),ie.findMatchingTag=function(l,o,s){var a=new K(l,o.line,o.ch,s);if(a.text.indexOf(">")==-1&&a.text.indexOf("<")==-1)return;var O=v(a),E=O&&J(a.line,a.ch),w=O&&m(a);if(!O||!w||P(a,o)>0)return;var D={from:J(a.line,a.ch),to:E,tag:w[2]};return O=="selfClose"?{open:D,close:null,at:"open"}:w[1]?{open:f(a,w[2]),close:D,at:"close"}:(a=new K(l,E.line,E.ch,s),{open:D,close:u(a,w[2]),at:"open"})},ie.findEnclosingTag=function(l,o,s,a){for(var O=new K(l,o.line,o.ch,s);;){var E=f(O,a);if(!E)break;var w=new K(l,o.line,o.ch,s),D=u(w,E.tag);if(D)return{open:E,close:D}}},ie.scanForClosingTag=function(l,o,s,a){var O=new K(l,o.line,o.ch,a?{from:0,to:a}:null);return u(O,s)}})},p5ED:function(rt,be,Z){"use strict";var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("5Dmo"),X=Z("3S7+"),j=Z("k1fw"),U=Z("9og8"),K=Z("tJVT"),G=Z("WmNS"),r=Z.n(G),L=Z("q1tI"),v=Z.n(L),m=Z("vHTk"),p=Z.n(m),h=Z("yEEn"),u=Z("ZW9T"),f=Z("1vsH"),l=Z("V0Rq"),o=Z("m3rI");be.a=function(s){var a,O,E,w,D,R,A,C=s.editOffice,T=C===void 0?"view":C,d=s.data,S=s.theme,y=s.type,b=s.filename,B=s.monacoEditor,F=s.className,_=s.style,M=s.close,I=s.onClose,g=s.hasMask,H=s.disabledDownload,$=Object(L.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),ne=Object(K.a)($,2),se=ne[0],Oe=ne[1],ge=Object(L.useState)(""),Te=Object(K.a)(ge,2),Re=Te[0],Le=Te[1],ce=Object(L.useState)(),he=Object(K.a)(ce,2),re=he[0],fe=he[1],oe=window.ENV==="build"?"/react/build":"",De=o.a.PROXY_SERVER||location.origin,Fe,Ce=1024*1024,Ne=10*Ce,Be=Object(L.useRef)();(a=d)!==null&&a!==void 0&&a.startsWith("/api")&&y!=="txt"&&(d=o.a.API_SERVER+d),y==="office"&&(Fe=Object(f.T)(d).filesize,Fe>Ne&&(y="other")),b&&B&&(B.filename=b),Object(L.useEffect)(function(){var Ie,We,Ve=(Ie=document.cookie)===null||Ie===void 0||((We=Ie.replace(/\s/g,""))===null||We===void 0)?void 0:We.split(";");Ve==null||Ve.map(function(Qe){var Je=Qe.split("=");Je[0]==="_educoder_session"&&Le(Je[1])})},[]),Object(L.useEffect)(function(){y==="office"&&le()},[y,d]);var le=function(){var Ie=Object(U.a)(r.a.mark(function We(){var Ve,Qe,Je;return r.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return console.log("data:",d),Ve=d,d.startsWith("http")||(Ve=location.origin+Ve),Qe=new URL(Ve).pathname.split("/").pop(),qe.next=6,Object(l.V)({attachment_id:Qe});case 6:Je=qe.sent,fe(Je);case 8:case"end":return qe.stop()}},We)}));return function(){return Ie.apply(this,arguments)}}(),ve=function(){if(d.startsWith("http")||d.startsWith("blob:")){Se();return}Object(f.z)(b||"educoder",d,b)},Se=function(){Object(f.x)(b||"educoder",decodeURIComponent(d))};return v.a.createElement("div",{style:Object(j.a)({},_||{}),className:"".concat(g&&p.a.bgBlack," ").concat(y?p.a.wrp:"hide")},M&&v.a.createElement("div",{className:p.a.close,ref:Be},!H&&v.a.createElement(X.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Be.current}},v.a.createElement("span",{onClick:Se},v.a.createElement("i",{className:"icon-quxiaozhiding"}))),v.a.createElement(X.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Be.current}},v.a.createElement("span",{className:"",onClick:I},v.a.createElement("i",{className:"icon-guanbi1"})))),v.a.createElement("div",{className:"".concat(p.a[F]," ").concat(F," ").concat(p.a.monaco," ").concat(y==="txt"?"show":"hide")},y==="txt"&&v.a.createElement(u.b,B)),y==="audio"&&v.a.createElement("audio",{src:"".concat(((O=d)===null||O===void 0?void 0:O.indexOf("http://"))>-1||((E=d)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(d),autoPlay:!0}),y==="video"&&v.a.createElement(v.a.Fragment,null,((w=d)===null||w===void 0?void 0:w.indexOf("http"))>-1?v.a.createElement("video",{controls:!0,src:"".concat(d),autoPlay:!0}):v.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(d),autoPlay:!0})),y==="office"&&re&&v.a.createElement("iframe",{src:"".concat(oe,"/office.html?key=").concat(re.key,"&url=").concat(De+re.url,"&callbackUrl=").concat(De+re.callbackUrl,"&fileType=").concat(re.fileType,"&title=").concat(re.title,"&model=").concat(T,"&officeServer=").concat(o.a.OFFICE_SERVER,"&disabledDownload=").concat(!!H)}),y==="html"&&v.a.createElement("iframe",{src:d+"&disposition=inline"}),y==="pdf"&&v.a.createElement("iframe",{src:"".concat(oe,"/js/pdfview/index.html?url=").concat(d,"&disabledDownload=").concat(!!H)}),y==="image"&&v.a.createElement("img",{src:"".concat(((D=d)===null||D===void 0?void 0:D.indexOf("http://"))>-1||((R=d)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(A=d)!==null&&A!==void 0&&A.startsWith("/api")?"":"data:image/png;base64,").concat(d)}),y==="other"&&v.a.createElement("div",null,v.a.createElement(J.a,{type:"primary",size:"large",onClick:ve},v.a.createElement(h.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),y==="download"&&v.a.createElement(J.a,{type:"primary",size:"large",onClick:ve},v.a.createElement(h.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(rt,be,Z){},pmY6:function(rt,be,Z){"use strict";Z.d(be,"h",function(){return L}),Z.d(be,"g",function(){return m}),Z.d(be,"f",function(){return p}),Z.d(be,"e",function(){return h}),Z.d(be,"i",function(){return u}),Z.d(be,"b",function(){return f}),Z.d(be,"a",function(){return l}),Z.d(be,"d",function(){return o}),Z.d(be,"c",function(){return s});var ie=Z("C/vA"),J=Z("JYp7");const P=!1;let X=null;function j(a){X=a}if(P){const a="__is_disposable_tracked__";j(new class{trackDisposable(O){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{O[a]||console.log(E)},3e3)}setParent(O,E){if(O&&O!==l.None)try{O[a]=!0}catch(w){}}markAsDisposed(O){if(O&&O!==l.None)try{O[a]=!0}catch(E){}}markAsSingleton(O){}})}function U(a){return X==null||X.trackDisposable(a),a}function K(a){X==null||X.markAsDisposed(a)}function G(a,O){X==null||X.setParent(a,O)}function r(a,O){if(!X)return;for(const E of a)X.setParent(E,O)}function L(a){return X==null||X.markAsSingleton(a),a}class v extends Error{constructor(a){super(`Encountered errors while disposing of store. Errors: [${a.join(", ")}]`);this.errors=a}}function m(a){return typeof a.dispose=="function"&&a.dispose.length===0}function p(a){if(J.a.is(a)){let O=[];for(const E of a)if(E)try{E.dispose()}catch(w){O.push(w)}if(O.length===1)throw O[0];if(O.length>1)throw new v(O);return Array.isArray(a)?[]:a}else if(a)return a.dispose(),a}function h(...a){const O=u(()=>p(a));return r(a,O),O}function u(a){const O=U({dispose:Object(ie.a)(()=>{K(O),a()})});return O}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,U(this)}dispose(){if(this._isDisposed)return;K(this),this._isDisposed=!0,this.clear()}clear(){try{p(this._toDispose.values())}finally{this._toDispose.clear()}}add(a){if(!a)return a;if(a===this)throw new Error("Cannot register a disposable on itself!");return G(a,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(a),a}}f.DISABLE_DISPOSED_WARNING=!1;class l{constructor(){this._store=new f,U(this),G(this._store,this)}dispose(){K(this),this._store.dispose()}_register(a){if(a===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(a)}}l.None=Object.freeze({dispose(){}});class o{constructor(){this._isDisposed=!1,U(this)}get value(){return this._isDisposed?void 0:this._value}set value(a){var O;if(this._isDisposed||a===this._value)return;(O=this._value)===null||O===void 0||O.dispose(),a&&G(a,this),this._value=a}clear(){this.value=void 0}dispose(){var a;this._isDisposed=!0,K(this),(a=this._value)===null||a===void 0||a.dispose(),this._value=void 0}clearAndLeak(){const a=this._value;return this._value=void 0,a&&G(a,null),a}}class s{constructor(a){this.object=a}dispose(){}}},psGv:function(rt,be,Z){var ie,J;(function(){var P;(function(){"use strict";var K=[,,function(v){function m(u){this.__parent=u,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=[]}m.prototype.clone_empty=function(){var u=new m(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},m.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},m.prototype.has_match=function(u){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(u))return!0;return!1},m.prototype.set_indent=function(u,f){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(u){this.__items.push(u);var f=u.lastIndexOf(` `);f!==-1?this.__character_count=u.length-f:this.__character_count+=u.length},m.prototype.pop=function(){var u=null;return this.is_empty()||(u=this.__items.pop(),this.__character_count-=u.length),u},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var u="";return this.is_empty()?this.__parent.indent_empty_lines&&(u=this.__parent.get_indent_string(this.__indent_count)):(u=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),u+=this.__items.join("")),u};function p(u,f){this.__cache=[""],this.__indent_size=u.indent_size,this.__indent_string=u.indent_char,u.indent_with_tabs||(this.__indent_string=new Array(u.indent_size+1).join(u.indent_char)),f=f||"",u.indent_level>0&&(f=new Array(u.indent_level+1).join(this.__indent_string)),this.__base_string=f,this.__base_string_length=f.length}p.prototype.get_indent_size=function(u,f){var l=this.__base_string_length;return f=f||0,u<0&&(l=0),l+=u*this.__indent_size,l+=f,l},p.prototype.get_indent_string=function(u,f){var l=this.__base_string;return f=f||0,u<0&&(u=0,l=""),f+=u*this.__indent_size,this.__ensure_cache(f),l+=this.__cache[f],l},p.prototype.__ensure_cache=function(u){for(;u>=this.__cache.length;)this.__add_column()},p.prototype.__add_column=function(){var u=this.__cache.length,f=0,l="";this.__indent_size&&u>=this.__indent_size&&(f=Math.floor(u/this.__indent_size),u-=f*this.__indent_size,l=new Array(f+1).join(this.__indent_string)),u&&(l+=new Array(u+1).join(" ")),this.__cache.push(l)};function h(u,f){this.__indent_cache=new p(u,f),this.raw=!1,this._end_with_newline=u.end_with_newline,this.indent_size=u.indent_size,this.wrap_line_length=u.wrap_line_length,this.indent_empty_lines=u.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}h.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},h.prototype.get_line_number=function(){return this.__lines.length},h.prototype.get_indent_string=function(u,f){return this.__indent_cache.get_indent_string(u,f)},h.prototype.get_indent_size=function(u,f){return this.__indent_cache.get_indent_size(u,f)},h.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},h.prototype.add_new_line=function(u){return this.is_empty()||!u&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},h.prototype.get_code=function(u){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 l=this.__lines.join(` `);return u!==` @@ -418,21 +418,21 @@ You passed in: '`+this.raw_options[u]+"'");return o},m.prototype._is_valid_selec `)),F=H+F.replace(/\n/g,` `+H)}I&&(F?F=I+F+` `+g:F=I+g),S.print_newline(!1),F&&(y.text=F,y.whitespace_before="",y.newlines=0,S.add_raw_token(y),S.print_newline(!0))}},A.prototype._handle_tag_open=function(S,y,b,B){var F=this._get_tag_open_token(y);return(b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&y.type===l.TAG_OPEN&&y.text.indexOf("]*)/),this.tag_check=b?b[1]:""):(b=y.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",(y.text.startsWith("{{#>")||y.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&y.next!==null?this.tag_check=y.next.text.split(" ")[0]:this.tag_check=y.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),y.type===l.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||y.closed&&y.closed.text==="/>";var B=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(B=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(B)))}};A.prototype._get_tag_open_token=function(S){var y=new C(this._tag_stack.get_parser_token(),S);return y.alignment_size=this._options.wrap_attributes_indent_size,y.is_end_tag=y.is_end_tag||w(y.tag_check,this._options.void_elements),y.is_empty_element=y.tag_complete||y.is_start_tag&&y.is_end_tag,y.is_unformatted=!y.tag_complete&&w(y.tag_check,this._options.unformatted),y.is_content_unformatted=!y.is_empty_element&&w(y.tag_check,this._options.content_unformatted),y.is_inline_element=w(y.tag_name,this._options.inline)||y.tag_name.includes("-")||y.tag_start_char==="{",y},A.prototype._set_tag_position=function(S,y,b,B,F){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||S.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=E(b.tag_check,y)))),w(b.tag_check,this._options.extra_liners)&&(S.print_newline(!1),S._output.just_added_blankline()||S.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var _=S.current_line_has_match(/{{#if/);_||S.print_newline(!1)}b.tag_name==="!--"&&F.type===l.TAG_CLOSE&&B.is_end_tag&&b.text.indexOf(` -`)===-1||(b.is_inline_element||b.is_unformatted||S.print_newline(!1),this._calcluate_parent_multiline(S,b))}else if(b.is_end_tag){var M=!1;M=b.start_tag_token&&b.start_tag_token.multiline_content,M=M||!b.is_inline_element&&!(B.is_inline_element||B.is_unformatted)&&!(F.type===l.TAG_CLOSE&&b.start_tag_token===B)&&F.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(M=!1),M&&S.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(F.type!=="TK_CONTENT"||b.is_content_unformatted)&&S.print_newline(!1),this._calcluate_parent_multiline(S,b)},A.prototype._calcluate_parent_multiline=function(S,y){y.parent&&S._output.just_added_newline()&&!((y.is_inline_element||y.is_unformatted)&&y.parent.is_inline_element)&&(y.parent.multiline_content=!0)};var T=["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"],c=["a","audio","del","ins","map","noscript","video"];A.prototype._do_optional_end_element=function(S){var y=null;if(S.is_empty_element||!S.is_start_tag||!S.parent)return;if(S.tag_name==="body")y=y||this._tag_stack.try_pop("head");else if(S.tag_name==="li")y=y||this._tag_stack.try_pop("li",["ol","ul"]);else if(S.tag_name==="dd"||S.tag_name==="dt")y=y||this._tag_stack.try_pop("dt",["dl"]),y=y||this._tag_stack.try_pop("dd",["dl"]);else if(S.parent.tag_name==="p"&&T.indexOf(S.tag_name)!==-1){var b=S.parent.parent;(!b||c.indexOf(b.tag_name)===-1)&&(y=y||this._tag_stack.try_pop("p"))}else S.tag_name==="rp"||S.tag_name==="rt"?(y=y||this._tag_stack.try_pop("rt",["ruby","rtc"]),y=y||this._tag_stack.try_pop("rp",["ruby","rtc"])):S.tag_name==="optgroup"?y=y||this._tag_stack.try_pop("optgroup",["select"]):S.tag_name==="option"?y=y||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):S.tag_name==="colgroup"?y=y||this._tag_stack.try_pop("caption",["table"]):S.tag_name==="thead"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"])):S.tag_name==="tbody"||S.tag_name==="tfoot"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("thead",["table"]),y=y||this._tag_stack.try_pop("tbody",["table"])):S.tag_name==="tr"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(S.tag_name==="th"||S.tag_name==="td")&&(y=y||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),y=y||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return S.parent=this._tag_stack.get_parser_token(),y},v.exports.Beautifier=A},function(v,m,p){var h=p(6).Options;function u(f){h.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"])}u.prototype=new h,v.exports.Options=u},function(v,m,p){var h=p(9).Tokenizer,u=p(9).TOKEN,f=p(13).Directives,l=p(14).TemplatablePattern,o=p(12).Pattern,s={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:u.START,RAW:u.RAW,EOF:u.EOF},a=new f(/<\!--/,/-->/),O=function(E,w){h.call(this,E,w),this._current_tag_name="";var D=new l(this._input).read_options(this._options),R=new o(this._input);if(this.__patterns={word:D.until(/[\n\r\t <]/),single_quote:D.until_after(/'/),double_quote:D.until_after(/"/),attribute:D.until(/[\n\r\t =>]|\/>/),element_name:D.until(/[\n\r\t >\/]/),handlebars_comment:R.starting_with(/{{!--/).until_after(/--}}/),handlebars:R.starting_with(/{{/).until_after(/}}/),handlebars_open:R.until(/[\n\r\t }]/),handlebars_raw_close:R.until(/}}/),comment:R.starting_with(//),cdata:R.starting_with(//),conditional_comment:R.starting_with(//),processing:R.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 A=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=R.matching(A).until_after(A)}};O.prototype=new h,O.prototype._is_comment=function(E){return!1},O.prototype._is_opening=function(E){return E.type===s.TAG_OPEN},O.prototype._is_closing=function(E,w){return E.type===s.TAG_CLOSE&&w&&((E.text===">"||E.text==="/>")&&w.text[0]==="<"||E.text==="}}"&&w.text[0]==="{"&&w.text[1]==="{")},O.prototype._reset=function(){this._current_tag_name=""},O.prototype._get_next_token=function(E,w){var D=null;this._readWhitespace();var R=this._input.peek();return R===null?this._create_token(s.EOF,""):(D=D||this._read_open_handlebars(R,w),D=D||this._read_attribute(R,E,w),D=D||this._read_close(R,w),D=D||this._read_raw_content(R,E,w),D=D||this._read_content_word(R),D=D||this._read_comment_or_cdata(R),D=D||this._read_processing(R),D=D||this._read_open(R,w),D=D||this._create_token(s.UNKNOWN,this._input.next()),D)},O.prototype._read_comment_or_cdata=function(E){var w=null,D=null,R=null;if(E==="<"){var A=this._input.peek(1);A==="!"&&(D=this.__patterns.comment.read(),D?(R=a.get_directives(D),R&&R.ignore==="start"&&(D+=a.readIgnored(this._input))):D=this.__patterns.cdata.read()),D&&(w=this._create_token(s.COMMENT,D),w.directives=R)}return w},O.prototype._read_processing=function(E){var w=null,D=null,R=null;if(E==="<"){var A=this._input.peek(1);(A==="!"||A==="?")&&(D=this.__patterns.conditional_comment.read(),D=D||this.__patterns.processing.read()),D&&(w=this._create_token(s.COMMENT,D),w.directives=R)}return w},O.prototype._read_open=function(E,w){var D=null,R=null;return w||E==="<"&&(D=this._input.next(),this._input.peek()==="/"&&(D+=this._input.next()),D+=this.__patterns.element_name.read(),R=this._create_token(s.TAG_OPEN,D)),R},O.prototype._read_open_handlebars=function(E,w){var D=null,R=null;return w||this._options.indent_handlebars&&E==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(D=this.__patterns.handlebars_comment.read(),D=D||this.__patterns.handlebars.read(),R=this._create_token(s.COMMENT,D)):(D=this.__patterns.handlebars_open.read(),R=this._create_token(s.TAG_OPEN,D))),R},O.prototype._read_close=function(E,w){var D=null,R=null;return w&&(w.text[0]==="<"&&(E===">"||E==="/"&&this._input.peek(1)===">")?(D=this._input.next(),E==="/"&&(D+=this._input.next()),R=this._create_token(s.TAG_CLOSE,D)):w.text[0]==="{"&&E==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),R=this._create_token(s.TAG_CLOSE,"}}"))),R},O.prototype._read_attribute=function(E,w,D){var R=null,A="";if(D&&D.text[0]==="<")if(E==="=")R=this._create_token(s.EQUALS,this._input.next());else if(E==='"'||E==="'"){var C=this._input.next();E==='"'?C+=this.__patterns.double_quote.read():C+=this.__patterns.single_quote.read(),R=this._create_token(s.VALUE,C)}else A=this.__patterns.attribute.read(),A&&(w.type===s.EQUALS?R=this._create_token(s.VALUE,A):R=this._create_token(s.ATTRIBUTE,A));return R},O.prototype._is_content_unformatted=function(E){return this._options.void_elements.indexOf(E)===-1&&(this._options.content_unformatted.indexOf(E)!==-1||this._options.unformatted.indexOf(E)!==-1)},O.prototype._read_raw_content=function(E,w,D){var R="";if(D&&D.text[0]==="{")R=this.__patterns.handlebars_raw_close.read();else if(w.type===s.TAG_CLOSE&&w.opened.text[0]==="<"&&w.text[0]!=="/"){var A=w.opened.text.substr(1).toLowerCase();if(A==="script"||A==="style"){var C=this._read_comment_or_cdata(E);if(C)return C.type=s.TEXT,C;R=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(A)&&(R=this._input.readUntil(new RegExp("","ig")))}return R?this._create_token(s.TEXT,R):null},O.prototype._read_content_word=function(E){var w="";if(this._options.unformatted_content_delimiter&&(E===this._options.unformatted_content_delimiter[0]&&(w=this.__patterns.unformatted_content_delimiter.read())),w||(w=this.__patterns.word.read()),w)return this._create_token(s.TEXT,w)},v.exports.Tokenizer=O,v.exports.TOKEN=s}],G={};function r(v){var m=G[v];if(m!==void 0)return m.exports;var p=G[v]={exports:{}};return K[v](p,p.exports,r),p.exports}var L=r(18);P=L})();var X=P;if(!0)!(ie=[Z,Z("6UM0"),Z("TXwP")],J=function(K){var G=Z("6UM0"),r=Z("TXwP");return{html_beautify:function(L,v){return X(L,v,G.js_beautify,r.css_beautify)}}}.apply(be,ie),J!==void 0&&(rt.exports=J));else var j,U})()},qduV:function(rt,be,Z){"use strict";Z.r(be);var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("sPJy"),X=Z("bE4q"),j=Z("miYZ"),U=Z("tsqr"),K=Z("2qtc"),G=Z("kLXV"),r=Z("oBTY"),L=Z("9og8"),v=Z("k1fw"),m=Z("y8nQ"),p=Z("Vl3Y"),h=Z("tJVT"),u=Z("WmNS"),f=Z.n(u),l=Z("q1tI"),o=Z.n(l),s=Z("Ty5D"),a=Z("9kvl"),O=Z("55Ip"),E=Z("Ot1p"),w=Z("XYT7"),D=Z("zgC5"),R=Z.n(D),A=Z("500L"),C=Z("HBuW"),T=function(S){var y,b,B,F,_,M=S.shixunHomeworks,I=S.newCourse,g=S.globalSetting,H=S.loading,$=S.dispatch,ne=S.match,se=Object(s.i)(),Oe=p.a.useForm(),ge=Object(h.a)(Oe,1),Te=ge[0],Re=Object(l.useState)({}),Le=Object(h.a)(Re,2),de=Le[0],he=Le[1],re=Object(l.useState)(!0),fe=Object(h.a)(re,2),oe=fe[0],De=fe[1],Fe=Object(l.useState)(!1),Ce=Object(h.a)(Fe,2),Ne=Ce[0],Be=Ce[1],le=Object(l.useState)(),ve=Object(h.a)(le,2),Se=ve[0],Ie=ve[1],We=Object(l.useRef)(),Ve=M.studentWorkAddDefaultData,Qe=Object(l.useState)([]),Je=Object(h.a)(Qe,2),st=Je[0],qe=Je[1],at=M.replyList,Ue=M.workDetail,ct=Object(l.useRef)(null),lt=Object(l.useState)({page:1,limit:20,search:""}),je=Object(h.a)(lt,2),Ge=je[0],Ae=je[1];Object(l.useEffect)(function(){se.commonHomeworkId!==""&&(se.categoryId=se.commonHomeworkId,$({type:"shixunHomeworks/getWorkDetail",payload:Object(v.a)({},se)}))},[se.commonHomeworkId]);var _e=function(){var xe=Object(L.a)(f.a.mark(function Pe(){var He,ze;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return Be(!0),ot.next=3,$({type:"shixunHomeworks/getSearchMemberList",payload:Object(v.a)(Object(v.a)({},ne.params),Ge)});case 3:ze=ot.sent,Be(!1),ze.members&&qe([].concat(Object(r.a)(st),Object(r.a)(ze.members))),((He=ze.members)===null||He===void 0?void 0:He.length)<20&&De(!1);case 7:case"end":return ot.stop()}},Pe)}));return function(){return xe.apply(this,arguments)}}(),we=function(Pe){G.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:o.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Pe,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},ae=function xe(Pe){var He;Pe=(He=Pe)!==null&&He!==void 0&&He.includes(".json")?Pe:"".concat(Pe,".json"),G.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:o.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var ze=Object(L.a)(f.a.mark(function ot(){var yt,dt;return f.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,Object(C.Bb)({url:Pe});case 2:if(yt=Ot.sent,yt){Ot.next=5;break}return Ot.abrupt("return");case 5:return U.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ot.next=8,Object(C.E)({id:yt.shixun_identifier});case 8:if(dt=Ot.sent,!(dt!=null&&dt.game_identifier)){Ot.next=12;break}return a.d===null||a.d===void 0||a.d.push("/tasks/".concat(dt.game_identifier)),Ot.abrupt("return");case 12:(dt==null?void 0:dt.status)===2?xe(dt==null?void 0:dt.message):(dt==null?void 0:dt.status)===3&&we(dt==null?void 0:dt.message);case 13:case"end":return Ot.stop()}},ot)}));function ht(){return ze.apply(this,arguments)}return ht}()})},ue=function(){var Pe,He;if(Ue!=null&&(Pe=Ue.shixun_info)!==null&&Pe!==void 0&&Pe.is_jupyter||Ue!=null&&(He=Ue.shixun_info)!==null&&He!==void 0&&He.is_jupyter_lab){$({type:"shixunsDetail/execJupyter",payload:{id:Ue==null?void 0:Ue.shixun_info.identifier}}).then(function(ze){ze!=null&&ze.identifier&&(a.d===null||a.d===void 0||a.d.push("/tasks/".concat(ze.identifier,"/jupyter")))});return}$({type:"shixunsDetail/execShixun",payload:{id:Ue==null?void 0:Ue.shixun_info.identifier}}).then(function(ze){if(ze!=null&&ze.game_identifier){a.d===null||a.d===void 0||a.d.push("/tasks/".concat(ze.game_identifier));return}(ze==null?void 0:ze.status)===2?ae(ze==null?void 0:ze.message):(ze==null?void 0:ze.status)===3&&we(ze==null?void 0:ze.message)})};Object(l.useEffect)(function(){new Promise(Object(L.a)(f.a.mark(function xe(){var Pe;return f.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,$({type:"shixunHomeworks/addStudentWorkDefaultData",payload:Object(v.a)(Object(v.a)({},ne.params),{},{type:3})});case 2:Pe=ze.sent;case 3:case"end":return ze.stop()}},xe)}))),_e()},[]);var ce=function(){var xe=Object(L.a)(f.a.mark(function Pe(He){var ze;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return ot.next=2,Object(w.c)(Object(v.a)(Object(v.a)(Object(v.a)({},ne.params),He),{},{type:3}));case 2:ze=ot.sent,ze.status===0&&a.d.push("/classrooms/".concat(se.coursesId,"/common_homework/").concat(se.commonHomeworkId,"/review/").concat(ze.work_id));case 4:case"end":return ot.stop()}},Pe)}));return function(He){return xe.apply(this,arguments)}}(),me=function(){var xe=Object(L.a)(f.a.mark(function Pe(He){var ze,ht;return f.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:ze=Object(v.a)({},de),ze.attachment_ids&&(ze.attachment_ids=ze==null||((ht=ze.attachment_ids)===null||ht===void 0)?void 0:ht.map(function(dt){return dt.response.id})),!ze.attachment_ids||ze.attachment_ids==""?G.a.confirm({title:o.a.createElement("div",null,"\u8FD8\u672A\u4E0A\u4F20\u9644\u4EF6",o.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\u4F5C\u54C1\uFF1F"),onOk:function(){ce(ze)}}):ce(ze);case 3:case"end":return yt.stop()}},Pe)}));return function(He){return xe.apply(this,arguments)}}();return o.a.createElement("section",{className:R.a.bg},o.a.createElement("div",{ref:ct},Ve.course_name&&o.a.createElement("section",{className:"animated fadeIn"},o.a.createElement("aside",null,Ve.category&&o.a.createElement(X.a,{separator:">"},o.a.createElement(X.a.Item,null,o.a.createElement(O.a,{to:"/classrooms/".concat(Ve.course_id,"/common_homework")},Ve.course_name)),o.a.createElement(X.a.Item,null,o.a.createElement(O.a,{to:"/classrooms/".concat(Ve.course_id,"/common_homework")},Ve.category.category_name)),o.a.createElement(X.a.Item,null,Ve==null?void 0:Ve.user_name," \u63D0\u4EA4\u4F5C\u54C1")))),o.a.createElement(p.a,{form:Te,className:R.a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){he(Object(v.a)({},Te.getFieldsValue())),console.log("formValue:",de)},initialValues:[{base_on_project:1}],onFinish:me},o.a.createElement("div",{className:R.a.mdWrap},o.a.createElement("div",{className:R.a.titleWrapper},o.a.createElement("div",{className:"zuoyeTitle"},M==null||((y=M.studentWorkAddDefaultData)===null||y===void 0)?void 0:y.homework_name),o.a.createElement("div",null,o.a.createElement("div",{className:"zuoyemiaosu"},o.a.createElement("span",{className:"icon"}),o.a.createElement("h4",{className:"direction"},"\u4F5C\u4E1A\u63CF\u8FF0")),o.a.createElement("div",{dangerouslySetInnerHTML:{__html:M==null||((b=M.studentWorkAddDefaultData)===null||b===void 0)?void 0:b.homework_description}}),(Ue==null||((B=Ue.shixun_info)===null||B===void 0)?void 0:B.shixun_status)!=-1&&(Ue==null?void 0:Ue.is_shixun)&&o.a.createElement(J.a,{onClick:function(){ue()},style:{position:"absolute",bottom:"30px",left:"30px"},className:"btnWrapper",type:"primary"},o.a.createElement("i",{className:"iconfont icon-jixutiaozhan mr10 font14"}),Ue==null||((F=Ue.shixun_info)===null||F===void 0||((_=F.task_operation)===null||_===void 0))?void 0:_[0]))),o.a.createElement("div",{style:{background:"#fff",width:"954px",paddingTop:"30px",paddingLeft:"37px",paddingRight:"26px",position:"relative"}},o.a.createElement(p.a.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:65535,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u523665535\u4E2A\u5B57\u7B26"}]},o.a.createElement(E.a,{height:665,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u4F5C\u4E1A\u5185\u5BB9\u6216\u4F5C\u4E1A\u9644\u4EF6\u7684\u7B80\u8981\u63CF\u8FF0\uFF0C\u6700\u5927\u9650\u5236\u4E3A65535\u4E2A\u5B57\u7B26",watch:!0,defaultValue:de.intro})),o.a.createElement("div",null,o.a.createElement(p.a.Item,{name:"attachment_ids"},o.a.createElement(A.b,null))))))),o.a.createElement("div",{className:R.a.backgroundFa},o.a.createElement("div",{style:{width:1378,display:"flex",justifyContent:"end"}},o.a.createElement(p.a.Item,null,o.a.createElement(J.a,{size:"large",type:"primary",ghost:!0,className:R.a.button,style:{width:"60px",height:"32px",background:"#F8F9FC",borderRadius:"2px",border:"1px solid #C3CFE0",marginRight:"20px"},onClick:function(){return a.d.push("/classrooms/".concat(ne.params.coursesId,"/common_homework/").concat(se.commonHomeworkId,"/detail"))}},"\u53D6\u6D88"),o.a.createElement(J.a,{size:"large",type:"primary",className:"".concat(R.a.button),htmlType:"submit",style:{height:"32px"},loading:H["newCourse/editCourse"]||H["newCourse/submitCourse"],onClick:function(){Te.submit()}},"\u63D0\u4EA4")))))};be.default=Object(a.a)(function(c){var S=c.shixunHomeworks,y=c.newCourse,b=c.loading,B=c.globalSetting;return{shixunHomeworks:S,newCourse:y,globalSetting:B,loading:b.effects}})(T)},"rAM+":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});var ie=Z("Qw5x");function J(P,X){var j;if(typeof Symbol=="undefined"||P[Symbol.iterator]==null){if(Array.isArray(P)||(j=Object(ie.a)(P))||X&&P&&typeof P.length=="number"){j&&(P=j);var U=0,K=function(){};return{s:K,n:function(){return U>=P.length?{done:!0}:{done:!1,value:P[U++]}},e:function(m){throw m},f:K}}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 G=!0,r=!1,L;return{s:function(){j=P[Symbol.iterator]()},n:function(){var m=j.next();return G=m.done,m},e:function(m){r=!0,L=m},f:function(){try{!G&&j.return!=null&&j.return()}finally{if(r)throw L}}}}},rUJ1:function(rt,be){const Z=/[&<>"']/,ie=/[&<>"']/g,J=/[<>"']|&(?!#?\w+;)/,P=/[<>"']|&(?!#?\w+;)/g,X={"&":"&","<":"<",">":">",'"':""","'":"'"},j=R=>X[R];function U(R,A){if(A){if(Z.test(R))return R.replace(ie,j)}else if(J.test(R))return R.replace(P,j);return R}const K=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function G(R){return R.replace(K,(A,C)=>(C=C.toLowerCase(),C==="colon"?":":C.charAt(0)==="#"?C.charAt(1)==="x"?String.fromCharCode(parseInt(C.substring(2),16)):String.fromCharCode(+C.substring(1)):""))}const r=/(^|[^\[])\^/g;function L(R,A){R=R.source||R,A=A||"";const C={replace:(T,c)=>(c=c.source||c,c=c.replace(r,"$1"),R=R.replace(T,c),C),getRegex:()=>new RegExp(R,A)};return C}const v=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(R,A,C){if(R){let T;try{T=decodeURIComponent(G(C)).replace(v,"").toLowerCase()}catch(c){return null}if(T.indexOf("javascript:")===0||T.indexOf("vbscript:")===0||T.indexOf("data:")===0)return null}A&&!m.test(C)&&(C=o(A,C));try{C=encodeURI(C).replace(/%25/g,"%")}catch(T){return null}return C}const h={},u=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function o(R,A){h[" "+R]||(u.test(R)?h[" "+R]=R+"/":h[" "+R]=E(R,"/",!0)),R=h[" "+R];const C=R.indexOf(":")===-1;return A.substring(0,2)==="//"?C?A:R.replace(f,"$1")+A:A.charAt(0)==="/"?C?A:R.replace(l,"$1")+A:R+A}const s={exec:function(){}};function a(R){let A=1,C,T;for(;A{let B=!1,F=y;for(;--F>=0&&b[F]==="\\";)B=!B;return B?"|":" |"}),T=C.split(/ \|/);let c=0;if(T.length>A)T.splice(A);else for(;T.length{const o=this.themingParticipants.indexOf(l);this.themingParticipants.splice(o,1)})}getThemingParticipants(){return this.themingParticipants}}let h=new p;j.a.add(m.ThemingContribution,h);function u(l){return h.onColorThemeChange(l)}class f extends P.a{constructor(l){super();this.themeService=l,this.theme=l.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(o=>this.onThemeChange(o)))}onThemeChange(l){this.theme=l,this.updateStyles()}updateStyles(){}}},ulZh:function(rt,be,Z){typeof window!="undefined"&&function(J,P){rt.exports=P()}(this,function(){return function(ie){var J={};function P(X){if(J[X])return J[X].exports;var j=J[X]={i:X,l:!1,exports:{}};return ie[X].call(j.exports,j,j.exports,P),j.l=!0,j.exports}return P.m=ie,P.c=J,P.d=function(X,j,U){P.o(X,j)||Object.defineProperty(X,j,{enumerable:!0,get:U})},P.r=function(X){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(X,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(X,"__esModule",{value:!0})},P.t=function(X,j){if(j&1&&(X=P(X)),j&8)return X;if(j&4&&typeof X=="object"&&X&&X.__esModule)return X;var U=Object.create(null);if(P.r(U),Object.defineProperty(U,"default",{enumerable:!0,value:X}),j&2&&typeof X!="string")for(var K in X)P.d(U,K,function(G){return X[G]}.bind(null,K));return U},P.n=function(X){var j=X&&X.__esModule?function(){return X.default}:function(){return X};return P.d(j,"a",j),j},P.o=function(X,j){return Object.prototype.hasOwnProperty.call(X,j)},P.p="/dist/",P(P.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ie,J,P){"use strict";var X=Object.prototype.hasOwnProperty,j="~";function U(){}Object.create&&(U.prototype=Object.create(null),new U().__proto__||(j=!1));function K(v,m,p){this.fn=v,this.context=m,this.once=p||!1}function G(v,m,p,h,u){if(typeof p!="function")throw new TypeError("The listener must be a function");var f=new K(p,h||v,u),l=j?j+m:m;return v._events[l]?v._events[l].fn?v._events[l]=[v._events[l],f]:v._events[l].push(f):(v._events[l]=f,v._eventsCount++),v}function r(v,m){--v._eventsCount===0?v._events=new U:delete v._events[m]}function L(){this._events=new U,this._eventsCount=0}L.prototype.eventNames=function(){var m=[],p,h;if(this._eventsCount===0)return m;for(h in p=this._events)X.call(p,h)&&m.push(j?h.slice(1):h);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(p)):m},L.prototype.listeners=function(m){var p=j?j+m:m,h=this._events[p];if(!h)return[];if(h.fn)return[h.fn];for(var u=0,f=h.length,l=new Array(f);u0},!1)}function v(m,p){for(var h={main:[p]},u={main:[]},f={main:{}};L(h);)for(var l=Object.keys(h),o=0;o=2*D/A||b<=F)return;var _=Number.POSITIVE_INFINITY,M;for(M=l.level-1;M>T;M--){var I=C[M].maxBitrate;if(_=D*I/(8*.8*y),_=b)return;var g=this.bwEstimator.getEstimate();L.logger.warn("Fragment "+l.sn+(o?" part "+o.index:"")+" of level "+l.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+M+` +`)===-1||(b.is_inline_element||b.is_unformatted||S.print_newline(!1),this._calcluate_parent_multiline(S,b))}else if(b.is_end_tag){var M=!1;M=b.start_tag_token&&b.start_tag_token.multiline_content,M=M||!b.is_inline_element&&!(B.is_inline_element||B.is_unformatted)&&!(F.type===l.TAG_CLOSE&&b.start_tag_token===B)&&F.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(M=!1),M&&S.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(F.type!=="TK_CONTENT"||b.is_content_unformatted)&&S.print_newline(!1),this._calcluate_parent_multiline(S,b)},A.prototype._calcluate_parent_multiline=function(S,y){y.parent&&S._output.just_added_newline()&&!((y.is_inline_element||y.is_unformatted)&&y.parent.is_inline_element)&&(y.parent.multiline_content=!0)};var T=["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"],d=["a","audio","del","ins","map","noscript","video"];A.prototype._do_optional_end_element=function(S){var y=null;if(S.is_empty_element||!S.is_start_tag||!S.parent)return;if(S.tag_name==="body")y=y||this._tag_stack.try_pop("head");else if(S.tag_name==="li")y=y||this._tag_stack.try_pop("li",["ol","ul"]);else if(S.tag_name==="dd"||S.tag_name==="dt")y=y||this._tag_stack.try_pop("dt",["dl"]),y=y||this._tag_stack.try_pop("dd",["dl"]);else if(S.parent.tag_name==="p"&&T.indexOf(S.tag_name)!==-1){var b=S.parent.parent;(!b||d.indexOf(b.tag_name)===-1)&&(y=y||this._tag_stack.try_pop("p"))}else S.tag_name==="rp"||S.tag_name==="rt"?(y=y||this._tag_stack.try_pop("rt",["ruby","rtc"]),y=y||this._tag_stack.try_pop("rp",["ruby","rtc"])):S.tag_name==="optgroup"?y=y||this._tag_stack.try_pop("optgroup",["select"]):S.tag_name==="option"?y=y||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):S.tag_name==="colgroup"?y=y||this._tag_stack.try_pop("caption",["table"]):S.tag_name==="thead"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"])):S.tag_name==="tbody"||S.tag_name==="tfoot"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("thead",["table"]),y=y||this._tag_stack.try_pop("tbody",["table"])):S.tag_name==="tr"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(S.tag_name==="th"||S.tag_name==="td")&&(y=y||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),y=y||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return S.parent=this._tag_stack.get_parser_token(),y},v.exports.Beautifier=A},function(v,m,p){var h=p(6).Options;function u(f){h.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"])}u.prototype=new h,v.exports.Options=u},function(v,m,p){var h=p(9).Tokenizer,u=p(9).TOKEN,f=p(13).Directives,l=p(14).TemplatablePattern,o=p(12).Pattern,s={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:u.START,RAW:u.RAW,EOF:u.EOF},a=new f(/<\!--/,/-->/),O=function(E,w){h.call(this,E,w),this._current_tag_name="";var D=new l(this._input).read_options(this._options),R=new o(this._input);if(this.__patterns={word:D.until(/[\n\r\t <]/),single_quote:D.until_after(/'/),double_quote:D.until_after(/"/),attribute:D.until(/[\n\r\t =>]|\/>/),element_name:D.until(/[\n\r\t >\/]/),handlebars_comment:R.starting_with(/{{!--/).until_after(/--}}/),handlebars:R.starting_with(/{{/).until_after(/}}/),handlebars_open:R.until(/[\n\r\t }]/),handlebars_raw_close:R.until(/}}/),comment:R.starting_with(//),cdata:R.starting_with(//),conditional_comment:R.starting_with(//),processing:R.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 A=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=R.matching(A).until_after(A)}};O.prototype=new h,O.prototype._is_comment=function(E){return!1},O.prototype._is_opening=function(E){return E.type===s.TAG_OPEN},O.prototype._is_closing=function(E,w){return E.type===s.TAG_CLOSE&&w&&((E.text===">"||E.text==="/>")&&w.text[0]==="<"||E.text==="}}"&&w.text[0]==="{"&&w.text[1]==="{")},O.prototype._reset=function(){this._current_tag_name=""},O.prototype._get_next_token=function(E,w){var D=null;this._readWhitespace();var R=this._input.peek();return R===null?this._create_token(s.EOF,""):(D=D||this._read_open_handlebars(R,w),D=D||this._read_attribute(R,E,w),D=D||this._read_close(R,w),D=D||this._read_raw_content(R,E,w),D=D||this._read_content_word(R),D=D||this._read_comment_or_cdata(R),D=D||this._read_processing(R),D=D||this._read_open(R,w),D=D||this._create_token(s.UNKNOWN,this._input.next()),D)},O.prototype._read_comment_or_cdata=function(E){var w=null,D=null,R=null;if(E==="<"){var A=this._input.peek(1);A==="!"&&(D=this.__patterns.comment.read(),D?(R=a.get_directives(D),R&&R.ignore==="start"&&(D+=a.readIgnored(this._input))):D=this.__patterns.cdata.read()),D&&(w=this._create_token(s.COMMENT,D),w.directives=R)}return w},O.prototype._read_processing=function(E){var w=null,D=null,R=null;if(E==="<"){var A=this._input.peek(1);(A==="!"||A==="?")&&(D=this.__patterns.conditional_comment.read(),D=D||this.__patterns.processing.read()),D&&(w=this._create_token(s.COMMENT,D),w.directives=R)}return w},O.prototype._read_open=function(E,w){var D=null,R=null;return w||E==="<"&&(D=this._input.next(),this._input.peek()==="/"&&(D+=this._input.next()),D+=this.__patterns.element_name.read(),R=this._create_token(s.TAG_OPEN,D)),R},O.prototype._read_open_handlebars=function(E,w){var D=null,R=null;return w||this._options.indent_handlebars&&E==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(D=this.__patterns.handlebars_comment.read(),D=D||this.__patterns.handlebars.read(),R=this._create_token(s.COMMENT,D)):(D=this.__patterns.handlebars_open.read(),R=this._create_token(s.TAG_OPEN,D))),R},O.prototype._read_close=function(E,w){var D=null,R=null;return w&&(w.text[0]==="<"&&(E===">"||E==="/"&&this._input.peek(1)===">")?(D=this._input.next(),E==="/"&&(D+=this._input.next()),R=this._create_token(s.TAG_CLOSE,D)):w.text[0]==="{"&&E==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),R=this._create_token(s.TAG_CLOSE,"}}"))),R},O.prototype._read_attribute=function(E,w,D){var R=null,A="";if(D&&D.text[0]==="<")if(E==="=")R=this._create_token(s.EQUALS,this._input.next());else if(E==='"'||E==="'"){var C=this._input.next();E==='"'?C+=this.__patterns.double_quote.read():C+=this.__patterns.single_quote.read(),R=this._create_token(s.VALUE,C)}else A=this.__patterns.attribute.read(),A&&(w.type===s.EQUALS?R=this._create_token(s.VALUE,A):R=this._create_token(s.ATTRIBUTE,A));return R},O.prototype._is_content_unformatted=function(E){return this._options.void_elements.indexOf(E)===-1&&(this._options.content_unformatted.indexOf(E)!==-1||this._options.unformatted.indexOf(E)!==-1)},O.prototype._read_raw_content=function(E,w,D){var R="";if(D&&D.text[0]==="{")R=this.__patterns.handlebars_raw_close.read();else if(w.type===s.TAG_CLOSE&&w.opened.text[0]==="<"&&w.text[0]!=="/"){var A=w.opened.text.substr(1).toLowerCase();if(A==="script"||A==="style"){var C=this._read_comment_or_cdata(E);if(C)return C.type=s.TEXT,C;R=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(A)&&(R=this._input.readUntil(new RegExp("","ig")))}return R?this._create_token(s.TEXT,R):null},O.prototype._read_content_word=function(E){var w="";if(this._options.unformatted_content_delimiter&&(E===this._options.unformatted_content_delimiter[0]&&(w=this.__patterns.unformatted_content_delimiter.read())),w||(w=this.__patterns.word.read()),w)return this._create_token(s.TEXT,w)},v.exports.Tokenizer=O,v.exports.TOKEN=s}],G={};function r(v){var m=G[v];if(m!==void 0)return m.exports;var p=G[v]={exports:{}};return K[v](p,p.exports,r),p.exports}var L=r(18);P=L})();var X=P;if(!0)!(ie=[Z,Z("6UM0"),Z("TXwP")],J=function(K){var G=Z("6UM0"),r=Z("TXwP");return{html_beautify:function(L,v){return X(L,v,G.js_beautify,r.css_beautify)}}}.apply(be,ie),J!==void 0&&(rt.exports=J));else var j,U})()},qduV:function(rt,be,Z){"use strict";Z.r(be);var ie=Z("+L6B"),J=Z("2/Rp"),P=Z("sPJy"),X=Z("bE4q"),j=Z("miYZ"),U=Z("tsqr"),K=Z("2qtc"),G=Z("kLXV"),r=Z("oBTY"),L=Z("9og8"),v=Z("k1fw"),m=Z("y8nQ"),p=Z("Vl3Y"),h=Z("tJVT"),u=Z("WmNS"),f=Z.n(u),l=Z("q1tI"),o=Z.n(l),s=Z("Ty5D"),a=Z("9kvl"),O=Z("55Ip"),E=Z("Ot1p"),w=Z("XYT7"),D=Z("zgC5"),R=Z.n(D),A=Z("500L"),C=Z("HBuW"),T=function(S){var y,b,B,F,_,M=S.shixunHomeworks,I=S.newCourse,g=S.globalSetting,H=S.loading,$=S.dispatch,ne=S.match,se=Object(s.i)(),Oe=p.a.useForm(),ge=Object(h.a)(Oe,1),Te=ge[0],Re=Object(l.useState)({}),Le=Object(h.a)(Re,2),ce=Le[0],he=Le[1],re=Object(l.useState)(!0),fe=Object(h.a)(re,2),oe=fe[0],De=fe[1],Fe=Object(l.useState)(!1),Ce=Object(h.a)(Fe,2),Ne=Ce[0],Be=Ce[1],le=Object(l.useState)(),ve=Object(h.a)(le,2),Se=ve[0],Ie=ve[1],We=Object(l.useRef)(),Ve=M.studentWorkAddDefaultData,Qe=Object(l.useState)([]),Je=Object(h.a)(Qe,2),st=Je[0],qe=Je[1],at=M.replyList,Ue=M.workDetail,dt=Object(l.useRef)(null),lt=Object(l.useState)({page:1,limit:20,search:""}),je=Object(h.a)(lt,2),Ge=je[0],Ae=je[1];Object(l.useEffect)(function(){se.commonHomeworkId!==""&&(se.categoryId=se.commonHomeworkId,$({type:"shixunHomeworks/getWorkDetail",payload:Object(v.a)({},se)}))},[se.commonHomeworkId]);var _e=function(){var xe=Object(L.a)(f.a.mark(function Pe(){var He,ze;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return Be(!0),ot.next=3,$({type:"shixunHomeworks/getSearchMemberList",payload:Object(v.a)(Object(v.a)({},ne.params),Ge)});case 3:ze=ot.sent,Be(!1),ze.members&&qe([].concat(Object(r.a)(st),Object(r.a)(ze.members))),((He=ze.members)===null||He===void 0?void 0:He.length)<20&&De(!1);case 7:case"end":return ot.stop()}},Pe)}));return function(){return xe.apply(this,arguments)}}(),we=function(Pe){G.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:o.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Pe,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},ae=function xe(Pe){var He;Pe=(He=Pe)!==null&&He!==void 0&&He.includes(".json")?Pe:"".concat(Pe,".json"),G.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:o.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var ze=Object(L.a)(f.a.mark(function ot(){var yt,ct;return f.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,Object(C.Bb)({url:Pe});case 2:if(yt=Ot.sent,yt){Ot.next=5;break}return Ot.abrupt("return");case 5:return U.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ot.next=8,Object(C.E)({id:yt.shixun_identifier});case 8:if(ct=Ot.sent,!(ct!=null&&ct.game_identifier)){Ot.next=12;break}return a.d===null||a.d===void 0||a.d.push("/tasks/".concat(ct.game_identifier)),Ot.abrupt("return");case 12:(ct==null?void 0:ct.status)===2?xe(ct==null?void 0:ct.message):(ct==null?void 0:ct.status)===3&&we(ct==null?void 0:ct.message);case 13:case"end":return Ot.stop()}},ot)}));function ht(){return ze.apply(this,arguments)}return ht}()})},ue=function(){var Pe,He;if(Ue!=null&&(Pe=Ue.shixun_info)!==null&&Pe!==void 0&&Pe.is_jupyter||Ue!=null&&(He=Ue.shixun_info)!==null&&He!==void 0&&He.is_jupyter_lab){$({type:"shixunsDetail/execJupyter",payload:{id:Ue==null?void 0:Ue.shixun_info.identifier}}).then(function(ze){ze!=null&&ze.identifier&&(a.d===null||a.d===void 0||a.d.push("/tasks/".concat(ze.identifier,"/jupyter")))});return}$({type:"shixunsDetail/execShixun",payload:{id:Ue==null?void 0:Ue.shixun_info.identifier}}).then(function(ze){if(ze!=null&&ze.game_identifier){a.d===null||a.d===void 0||a.d.push("/tasks/".concat(ze.game_identifier));return}(ze==null?void 0:ze.status)===2?ae(ze==null?void 0:ze.message):(ze==null?void 0:ze.status)===3&&we(ze==null?void 0:ze.message)})};Object(l.useEffect)(function(){new Promise(Object(L.a)(f.a.mark(function xe(){var Pe;return f.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,$({type:"shixunHomeworks/addStudentWorkDefaultData",payload:Object(v.a)(Object(v.a)({},ne.params),{},{type:3})});case 2:Pe=ze.sent;case 3:case"end":return ze.stop()}},xe)}))),_e()},[]);var de=function(){var xe=Object(L.a)(f.a.mark(function Pe(He){var ze;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return ot.next=2,Object(w.c)(Object(v.a)(Object(v.a)(Object(v.a)({},ne.params),He),{},{type:3}));case 2:ze=ot.sent,ze.status===0&&a.d.push("/classrooms/".concat(se.coursesId,"/common_homework/").concat(se.commonHomeworkId,"/review/").concat(ze.work_id));case 4:case"end":return ot.stop()}},Pe)}));return function(He){return xe.apply(this,arguments)}}(),me=function(){var xe=Object(L.a)(f.a.mark(function Pe(He){var ze,ht;return f.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:ze=Object(v.a)({},ce),ze.attachment_ids&&(ze.attachment_ids=ze==null||((ht=ze.attachment_ids)===null||ht===void 0)?void 0:ht.map(function(ct){return ct.response.id})),!ze.attachment_ids||ze.attachment_ids==""?G.a.confirm({title:o.a.createElement("div",null,"\u8FD8\u672A\u4E0A\u4F20\u9644\u4EF6",o.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\u4F5C\u54C1\uFF1F"),onOk:function(){de(ze)}}):de(ze);case 3:case"end":return yt.stop()}},Pe)}));return function(He){return xe.apply(this,arguments)}}();return o.a.createElement("section",{className:R.a.bg},o.a.createElement("div",{ref:dt},Ve.course_name&&o.a.createElement("section",{className:"animated fadeIn"},o.a.createElement("aside",null,Ve.category&&o.a.createElement(X.a,{separator:">"},o.a.createElement(X.a.Item,null,o.a.createElement(O.a,{to:"/classrooms/".concat(Ve.course_id,"/common_homework")},Ve.course_name)),o.a.createElement(X.a.Item,null,o.a.createElement(O.a,{to:"/classrooms/".concat(Ve.course_id,"/common_homework")},Ve.category.category_name)),o.a.createElement(X.a.Item,null,Ve==null?void 0:Ve.user_name," \u63D0\u4EA4\u4F5C\u54C1")))),o.a.createElement(p.a,{form:Te,className:R.a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){he(Object(v.a)({},Te.getFieldsValue())),console.log("formValue:",ce)},initialValues:[{base_on_project:1}],onFinish:me},o.a.createElement("div",{className:R.a.mdWrap},o.a.createElement("div",{className:R.a.titleWrapper},o.a.createElement("div",{className:"zuoyeTitle"},M==null||((y=M.studentWorkAddDefaultData)===null||y===void 0)?void 0:y.homework_name),o.a.createElement("div",null,o.a.createElement("div",{className:"zuoyemiaosu"},o.a.createElement("span",{className:"icon"}),o.a.createElement("h4",{className:"direction"},"\u4F5C\u4E1A\u63CF\u8FF0")),o.a.createElement("div",{dangerouslySetInnerHTML:{__html:M==null||((b=M.studentWorkAddDefaultData)===null||b===void 0)?void 0:b.homework_description}}),(Ue==null||((B=Ue.shixun_info)===null||B===void 0)?void 0:B.shixun_status)!=-1&&(Ue==null?void 0:Ue.is_shixun)&&o.a.createElement(J.a,{onClick:function(){ue()},style:{position:"absolute",bottom:"30px",left:"30px"},className:"btnWrapper",type:"primary"},o.a.createElement("i",{className:"iconfont icon-jixutiaozhan mr10 font14"}),Ue==null||((F=Ue.shixun_info)===null||F===void 0||((_=F.task_operation)===null||_===void 0))?void 0:_[0]))),o.a.createElement("div",{style:{background:"#fff",width:"954px",paddingTop:"30px",paddingLeft:"37px",paddingRight:"26px",position:"relative"}},o.a.createElement(p.a.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:65535,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u523665535\u4E2A\u5B57\u7B26"}]},o.a.createElement(E.a,{height:665,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u4F5C\u4E1A\u5185\u5BB9\u6216\u4F5C\u4E1A\u9644\u4EF6\u7684\u7B80\u8981\u63CF\u8FF0\uFF0C\u6700\u5927\u9650\u5236\u4E3A65535\u4E2A\u5B57\u7B26",watch:!0,defaultValue:ce.intro})),o.a.createElement("div",null,o.a.createElement(p.a.Item,{name:"attachment_ids"},o.a.createElement(A.b,null))))))),o.a.createElement("div",{className:R.a.backgroundFa},o.a.createElement("div",{style:{width:1378,display:"flex",justifyContent:"end"}},o.a.createElement(p.a.Item,null,o.a.createElement(J.a,{size:"large",type:"primary",ghost:!0,className:R.a.button,style:{width:"60px",height:"32px",background:"#F8F9FC",borderRadius:"2px",border:"1px solid #C3CFE0",marginRight:"20px"},onClick:function(){return a.d.push("/classrooms/".concat(ne.params.coursesId,"/common_homework/").concat(se.commonHomeworkId,"/detail"))}},"\u53D6\u6D88"),o.a.createElement(J.a,{size:"large",type:"primary",className:"".concat(R.a.button),htmlType:"submit",style:{height:"32px"},loading:H["newCourse/editCourse"]||H["newCourse/submitCourse"],onClick:function(){Te.submit()}},"\u63D0\u4EA4")))))};be.default=Object(a.a)(function(d){var S=d.shixunHomeworks,y=d.newCourse,b=d.loading,B=d.globalSetting;return{shixunHomeworks:S,newCourse:y,globalSetting:B,loading:b.effects}})(T)},"rAM+":function(rt,be,Z){"use strict";Z.d(be,"a",function(){return J});var ie=Z("Qw5x");function J(P,X){var j;if(typeof Symbol=="undefined"||P[Symbol.iterator]==null){if(Array.isArray(P)||(j=Object(ie.a)(P))||X&&P&&typeof P.length=="number"){j&&(P=j);var U=0,K=function(){};return{s:K,n:function(){return U>=P.length?{done:!0}:{done:!1,value:P[U++]}},e:function(m){throw m},f:K}}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 G=!0,r=!1,L;return{s:function(){j=P[Symbol.iterator]()},n:function(){var m=j.next();return G=m.done,m},e:function(m){r=!0,L=m},f:function(){try{!G&&j.return!=null&&j.return()}finally{if(r)throw L}}}}},rUJ1:function(rt,be){const Z=/[&<>"']/,ie=/[&<>"']/g,J=/[<>"']|&(?!#?\w+;)/,P=/[<>"']|&(?!#?\w+;)/g,X={"&":"&","<":"<",">":">",'"':""","'":"'"},j=R=>X[R];function U(R,A){if(A){if(Z.test(R))return R.replace(ie,j)}else if(J.test(R))return R.replace(P,j);return R}const K=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function G(R){return R.replace(K,(A,C)=>(C=C.toLowerCase(),C==="colon"?":":C.charAt(0)==="#"?C.charAt(1)==="x"?String.fromCharCode(parseInt(C.substring(2),16)):String.fromCharCode(+C.substring(1)):""))}const r=/(^|[^\[])\^/g;function L(R,A){R=R.source||R,A=A||"";const C={replace:(T,d)=>(d=d.source||d,d=d.replace(r,"$1"),R=R.replace(T,d),C),getRegex:()=>new RegExp(R,A)};return C}const v=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(R,A,C){if(R){let T;try{T=decodeURIComponent(G(C)).replace(v,"").toLowerCase()}catch(d){return null}if(T.indexOf("javascript:")===0||T.indexOf("vbscript:")===0||T.indexOf("data:")===0)return null}A&&!m.test(C)&&(C=o(A,C));try{C=encodeURI(C).replace(/%25/g,"%")}catch(T){return null}return C}const h={},u=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function o(R,A){h[" "+R]||(u.test(R)?h[" "+R]=R+"/":h[" "+R]=E(R,"/",!0)),R=h[" "+R];const C=R.indexOf(":")===-1;return A.substring(0,2)==="//"?C?A:R.replace(f,"$1")+A:A.charAt(0)==="/"?C?A:R.replace(l,"$1")+A:R+A}const s={exec:function(){}};function a(R){let A=1,C,T;for(;A{let B=!1,F=y;for(;--F>=0&&b[F]==="\\";)B=!B;return B?"|":" |"}),T=C.split(/ \|/);let d=0;if(T.length>A)T.splice(A);else for(;T.length{const o=this.themingParticipants.indexOf(l);this.themingParticipants.splice(o,1)})}getThemingParticipants(){return this.themingParticipants}}let h=new p;j.a.add(m.ThemingContribution,h);function u(l){return h.onColorThemeChange(l)}class f extends P.a{constructor(l){super();this.themeService=l,this.theme=l.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(o=>this.onThemeChange(o)))}onThemeChange(l){this.theme=l,this.updateStyles()}updateStyles(){}}},ulZh:function(rt,be,Z){typeof window!="undefined"&&function(J,P){rt.exports=P()}(this,function(){return function(ie){var J={};function P(X){if(J[X])return J[X].exports;var j=J[X]={i:X,l:!1,exports:{}};return ie[X].call(j.exports,j,j.exports,P),j.l=!0,j.exports}return P.m=ie,P.c=J,P.d=function(X,j,U){P.o(X,j)||Object.defineProperty(X,j,{enumerable:!0,get:U})},P.r=function(X){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(X,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(X,"__esModule",{value:!0})},P.t=function(X,j){if(j&1&&(X=P(X)),j&8)return X;if(j&4&&typeof X=="object"&&X&&X.__esModule)return X;var U=Object.create(null);if(P.r(U),Object.defineProperty(U,"default",{enumerable:!0,value:X}),j&2&&typeof X!="string")for(var K in X)P.d(U,K,function(G){return X[G]}.bind(null,K));return U},P.n=function(X){var j=X&&X.__esModule?function(){return X.default}:function(){return X};return P.d(j,"a",j),j},P.o=function(X,j){return Object.prototype.hasOwnProperty.call(X,j)},P.p="/dist/",P(P.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ie,J,P){"use strict";var X=Object.prototype.hasOwnProperty,j="~";function U(){}Object.create&&(U.prototype=Object.create(null),new U().__proto__||(j=!1));function K(v,m,p){this.fn=v,this.context=m,this.once=p||!1}function G(v,m,p,h,u){if(typeof p!="function")throw new TypeError("The listener must be a function");var f=new K(p,h||v,u),l=j?j+m:m;return v._events[l]?v._events[l].fn?v._events[l]=[v._events[l],f]:v._events[l].push(f):(v._events[l]=f,v._eventsCount++),v}function r(v,m){--v._eventsCount===0?v._events=new U:delete v._events[m]}function L(){this._events=new U,this._eventsCount=0}L.prototype.eventNames=function(){var m=[],p,h;if(this._eventsCount===0)return m;for(h in p=this._events)X.call(p,h)&&m.push(j?h.slice(1):h);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(p)):m},L.prototype.listeners=function(m){var p=j?j+m:m,h=this._events[p];if(!h)return[];if(h.fn)return[h.fn];for(var u=0,f=h.length,l=new Array(f);u0},!1)}function v(m,p){for(var h={main:[p]},u={main:[]},f={main:{}};L(h);)for(var l=Object.keys(h),o=0;o=2*D/A||b<=F)return;var _=Number.POSITIVE_INFINITY,M;for(M=l.level-1;M>T;M--){var I=C[M].maxBitrate;if(_=D*I/(8*.8*y),_=b)return;var g=this.bwEstimator.getEstimate();L.logger.warn("Fragment "+l.sn+(o?" part "+o.index:"")+" of level "+l.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+M+` Current BW estimate: `+(Object(X.isFiniteNumber)(g)?(g/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+b.toFixed(3)+` s Estimated load time for the next fragment: `+_.toFixed(3)+` s - Time to underbuffer: `+F.toFixed(3)+" s"),s.nextLoadLevel=M,this.bwEstimator.sample(R,w.loaded),this.clearTimer(),l.loader&&(this.fragCurrent=this.partCurrent=null,l.loader.abort()),s.trigger(U.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:l,part:o,stats:w})},u.onFragLoaded=function(l,o){var s=o.frag,a=o.part;if(s.type===r.PlaylistLevelType.MAIN&&Object(X.isFiniteNumber)(s.sn)){var O=a?a.stats:s.stats,E=a?a.duration:s.duration;if(this.clearTimer(),this.lastLoadedFragLevel=s.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var w=this.hls.levels[s.level],D=(w.loaded?w.loaded.bytes:0)+O.loaded,R=(w.loaded?w.loaded.duration:0)+E;w.loaded={bytes:D,duration:R},w.realBitrate=Math.round(8*D/R)}if(s.bitrateTest){var A={stats:O,frag:s,part:a,id:s.type};this.onFragBuffered(U.Events.FRAG_BUFFERED,A),s.bitrateTest=!1}}},u.onFragBuffered=function(l,o){var s=o.frag,a=o.part,O=a?a.stats:s.stats;if(O.aborted)return;if(s.type!==r.PlaylistLevelType.MAIN||s.sn==="initSegment")return;var E=O.parsing.end-O.loading.start;this.bwEstimator.sample(E,O.loaded),O.bwEstimate=this.bwEstimator.getEstimate(),s.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},u.onError=function(l,o){switch(o.details){case G.ErrorDetails.FRAG_LOAD_ERROR:case G.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},u.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},u.getNextABRAutoLevel=function(){var l=this.fragCurrent,o=this.partCurrent,s=this.hls,a=s.maxAutoLevel,O=s.config,E=s.minAutoLevel,w=s.media,D=o?o.duration:l?l.duration:0,R=w?w.currentTime:0,A=w&&w.playbackRate!==0?Math.abs(w.playbackRate):1,C=this.bwEstimator?this.bwEstimator.getEstimate():O.abrEwmaDefaultEstimate,T=(K.BufferHelper.bufferInfo(w,R,O.maxBufferHole).end-R)/A,c=this.findBestLevel(C,E,a,T,O.abrBandWidthFactor,O.abrBandWidthUpFactor);if(c>=0)return c;L.logger.trace((T?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var S=D?Math.min(D,O.maxStarvationDelay):O.maxStarvationDelay,y=O.abrBandWidthFactor,b=O.abrBandWidthUpFactor;if(!T){var B=this.bitrateTestDelay;if(B){var F=D?Math.min(D,O.maxLoadingDelay):O.maxLoadingDelay;S=F-B,L.logger.trace("bitrate test took "+Math.round(1e3*B)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*S)+" ms"),y=b=1}}return c=this.findBestLevel(C,E,a,T+S,y,b),Math.max(c,0)},u.findBestLevel=function(l,o,s,a,O,E){for(var w,D=this.fragCurrent,R=this.partCurrent,A=this.lastLoadedFragLevel,C=this.hls.levels,T=C[A],c=!!(T!=null&&(w=T.details)!==null&&w!==void 0&&w.live),S=T==null?void 0:T.codecSet,y=R?R.duration:D?D.duration:0,b=s;b>=o;b--){var B=C[b];if(!B||S&&B.codecSet!==S)continue;var F=B.details,_=(R?F==null?void 0:F.partTarget:F==null?void 0:F.averagetargetduration)||y,M=void 0;b<=A?M=O*l:M=E*l;var I=C[b].maxBitrate,g=I*_/M;if(L.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+b+"/"+Math.round(M)+"/"+I+"/"+_+"/"+a+"/"+g),M>I&&(!g||c&&!this.bitrateTestDelay||g0&&T===-1?(this.log("Override startPosition with lastCurrentTime @"+c.toFixed(3)),this.state=j.State.IDLE):(this.loadedmetadata=!1,this.state=j.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=T,this.tick()},A.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_TRACK:{var T,c=this.levels,S=this.trackId,y=c==null||((T=c[S])===null||T===void 0)?void 0:T.details;if(y){if(this.waitForCdnTuneIn(y))break;this.state=j.State.WAITING_INIT_PTS}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var b,B=performance.now(),F=this.retryDate;(!F||B>=F||(b=this.media)!==null&&b!==void 0&&b.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=j.State.IDLE);break}case j.State.WAITING_INIT_PTS:{var _=this.waitingData;if(_){var M=_.frag,I=_.part,g=_.cache,H=_.complete;if(this.initPTS[M.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.FRAG_LOADING;var $=g.flush(),ne={frag:M,part:I,payload:$,networkDetails:null};this._handleFragmentLoadProgress(ne),H&&D.prototype._handleFragmentLoadComplete.call(this,ne)}else if(this.videoTrackCC!==this.waitingVideoCC)o.logger.log("Waiting fragment cc ("+M.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var se=this.getLoadPosition(),Oe=K.BufferHelper.bufferInfo(this.mediaBuffer,se,this.config.maxBufferHole),ge=Object(u.fragmentWithinToleranceTest)(Oe.end,this.config.maxFragLookUpTolerance,M);ge<0&&(o.logger.log("Waiting fragment cc ("+M.cc+") @ "+M.start+" cancelled because another fragment at "+Oe.end+" is needed"),this.clearWaitingFragment())}}else this.state=j.State.IDLE}}this.onTickEnd()},A.clearWaitingFragment=function(){var T=this.waitingData;T&&(this.fragmentTracker.removeFragment(T.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.IDLE)},A.onTickEnd=function(){var T=this.media;if(!T||!T.readyState)return;var c=this.mediaBuffer?this.mediaBuffer:T,S=c.buffered;!this.loadedmetadata&&S.length&&(this.loadedmetadata=!0),this.lastCurrentTime=T.currentTime},A.doTickIdle=function(){var T,c,S=this.hls,y=this.levels,b=this.media,B=this.trackId,F=S.config;if(!y||!y[B])return;if(!b&&(this.startFragRequested||!F.startFragPrefetch))return;var _=y[B],M=_.details;if(!M||M.live&&this.levelLastLoaded!==B||this.waitForCdnTuneIn(M)){this.state=j.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,v.ElementaryStreamTypes.AUDIO,L.PlaylistLevelType.AUDIO));var I=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,L.PlaylistLevelType.AUDIO);if(I===null)return;var g=I.len,H=this.getMaxBufferLength(),$=this.audioSwitch;if(g>=H&&!$)return;if(!$&&this._streamEnded(I,M)){S.trigger(U.Events.BUFFER_EOS,{type:"audio"}),this.state=j.State.ENDED;return}var ne=M.fragments,se=ne[0].start,Oe=I.end;if($){var ge=this.getLoadPosition();Oe=ge,M.PTSKnown&&gese||I.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),b.currentTime=se+.05))}var Te=this.getNextFragment(Oe,M);if(!Te){this.bufferFlushed=!0;return}((T=Te.decryptdata)===null||T===void 0?void 0:T.keyFormat)==="identity"&&!((c=Te.decryptdata)!==null&&c!==void 0&&c.key)?this.loadKey(Te,M):this.loadFragment(Te,M,Oe)},A.getMaxBufferLength=function(){var T=D.prototype.getMaxBufferLength.call(this),c=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,L.PlaylistLevelType.MAIN);return c===null?T:Math.max(T,c.len)},A.onMediaDetaching=function(){this.videoBuffer=null,D.prototype.onMediaDetaching.call(this)},A.onAudioTracksUpdated=function(T,c){var S=c.audioTracks;this.resetTransmuxer(),this.levels=S.map(function(y){return new r.Level(y)})},A.onAudioTrackSwitching=function(T,c){var S=!!c.url;this.trackId=c.id;var y=this.fragCurrent;y!=null&&y.loader&&y.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),S?this.setInterval(E):this.resetTransmuxer(),S?(this.audioSwitch=!0,this.state=j.State.IDLE):this.state=j.State.STOPPED,this.tick()},A.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},A.onLevelLoaded=function(T,c){this.mainDetails=c.details},A.onAudioTrackLoaded=function(T,c){var S,y=this.levels,b=c.details,B=c.id;if(!y){this.warn("Audio tracks were reset while loading level "+B);return}this.log("Track "+B+" loaded ["+b.startSN+","+b.endSN+"],duration:"+b.totalduration);var F=y[B],_=0;if(b.live||(S=F.details)!==null&&S!==void 0&&S.live){var M=this.mainDetails;if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed||!M)return;!F.details&&b.hasProgramDateTime&&M.hasProgramDateTime?(Object(f.alignMediaPlaylistByPDT)(b,M),_=b.fragments[0].start):_=this.alignPlaylists(b,F.details)}F.details=b,this.levelLastLoaded=B,!this.startFragRequested&&(this.mainDetails||!b.live)&&this.setStartPosition(F.details,_),this.state===j.State.WAITING_TRACK&&!this.waitForCdnTuneIn(b)&&(this.state=j.State.IDLE),this.tick()},A._handleFragmentLoadProgress=function(T){var c,S=T.frag,y=T.part,b=T.payload,B=this.config,F=this.trackId,_=this.levels;if(!_){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+S.sn+" of level "+S.level+" will not be buffered");return}var M=_[F];console.assert(M,"Audio track is defined on fragment load progress");var I=M.details;console.assert(I,"Audio track details are defined on fragment load progress");var g=B.defaultAudioCodec||M.audioCodec||"mp4a.40.2",H=this.transmuxer;H||(H=this.transmuxer=new p.default(this.hls,L.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var $=this.initPTS[S.cc],ne=(c=S.initSegment)===null||c===void 0?void 0:c.data;if($!==void 0){var se=!1,Oe=y?y.index:-1,ge=Oe!==-1,Te=new h.ChunkMetadata(S.level,S.sn,S.stats.chunkCount,b.byteLength,Oe,ge);H.push(b,ne,g,"",S,y,I.totalduration,se,Te,$)}else{o.logger.log("Unknown video PTS for cc "+S.cc+", waiting for video PTS before demuxing audio frag "+S.sn+" of ["+I.startSN+" ,"+I.endSN+"],track "+F);var Re=this.waitingData=this.waitingData||{frag:S,part:y,cache:new m.default,complete:!1},Le=Re.cache;Le.push(new Uint8Array(b)),this.waitingVideoCC=this.videoTrackCC,this.state=j.State.WAITING_INIT_PTS}},A._handleFragmentLoadComplete=function(T){if(this.waitingData){this.waitingData.complete=!0;return}D.prototype._handleFragmentLoadComplete.call(this,T)},A.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},A.onBufferCreated=function(T,c){var S=c.tracks.audio;S&&(this.mediaBuffer=S.buffer),c.tracks.video&&(this.videoBuffer=c.tracks.video.buffer)},A.onFragBuffered=function(T,c){var S=c.frag,y=c.part;if(S.type!==L.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(S)){this.warn("Fragment "+S.sn+(y?" p: "+y.index:"")+" of level "+S.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}S.sn!=="initSegment"&&(this.fragPrevious=S,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(U.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(S,y)},A.onError=function(T,c){switch(c.details){case l.ErrorDetails.FRAG_LOAD_ERROR:case l.ErrorDetails.FRAG_LOAD_TIMEOUT:case l.ErrorDetails.KEY_LOAD_ERROR:case l.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(L.PlaylistLevelType.AUDIO,c);break;case l.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case l.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==j.State.ERROR&&this.state!==j.State.STOPPED&&(this.state=c.fatal?j.State.ERROR:j.State.IDLE,this.warn(c.details+" while loading frag, switching to "+this.state+" state"));break;case l.ErrorDetails.BUFFER_FULL_ERROR:if(c.parent==="audio"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var S=!0,y=this.getFwdBufferInfo(this.mediaBuffer,L.PlaylistLevelType.AUDIO);y&&y.len>.5&&(S=!this.reduceMaxBufferLength(y.len)),S&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,D.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},A.onBufferFlushed=function(T,c){var S=c.type;S===v.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},A._handleTransmuxComplete=function(T){var c,S="audio",y=this.hls,b=T.remuxResult,B=T.chunkMeta,F=this.getCurrentContext(B);if(!F){this.warn("The loading context changed while buffering fragment "+B.sn+" of level "+B.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(B.level);return}var _=F.frag,M=F.part,I=b.audio,g=b.text,H=b.id3,$=b.initSegment;if(this.fragContextChanged(_))return;if(this.state=j.State.PARSING,this.audioSwitch&&I&&this.completeAudioSwitch(),$!=null&&$.tracks&&(this._bufferInitSegment($.tracks,_,B),y.trigger(U.Events.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:S,tracks:$.tracks})),I){var ne=I.startPTS,se=I.endPTS,Oe=I.startDTS,ge=I.endDTS;M&&(M.elementaryStreams[v.ElementaryStreamTypes.AUDIO]={startPTS:ne,endPTS:se,startDTS:Oe,endDTS:ge}),_.setElementaryStreamInfo(v.ElementaryStreamTypes.AUDIO,ne,se,Oe,ge),this.bufferFragmentData(I,_,M,B)}if(H!=null&&(c=H.samples)!==null&&c!==void 0&&c.length){var Te=s({frag:_,id:S},H);y.trigger(U.Events.FRAG_PARSING_METADATA,Te)}if(g){var Re=s({frag:_,id:S},g);y.trigger(U.Events.FRAG_PARSING_USERDATA,Re)}},A._bufferInitSegment=function(T,c,S){if(this.state!==j.State.PARSING)return;T.video&&delete T.video;var y=T.audio;if(!y)return;y.levelCodec=y.codec,y.id="audio",this.log("Init audio buffer, container:"+y.container+", codecs[parsed]=["+y.codec+"]"),this.hls.trigger(U.Events.BUFFER_CODECS,T);var b=y.initSegment;if(b!=null&&b.byteLength){var B={type:"audio",frag:c,part:null,chunkMeta:S,parent:c.type,data:b};this.hls.trigger(U.Events.BUFFER_APPENDING,B)}this.tick()},A.loadFragment=function(T,c,S){var y=this.fragmentTracker.getState(T);this.fragCurrent=T,(this.audioSwitch||y===G.FragmentState.NOT_LOADED||y===G.FragmentState.PARTIAL)&&(T.sn==="initSegment"?this._loadInitSegment(T):c.live&&!Object(X.isFiniteNumber)(this.initPTS[T.cc])?(this.log("Waiting for video PTS in continuity counter "+T.cc+" of live stream before loading audio fragment "+T.sn+" of level "+this.trackId),this.state=j.State.WAITING_INIT_PTS):(this.startFragRequested=!0,D.prototype.loadFragment.call(this,T,c,S)))},A.completeAudioSwitch=function(){var T=this.hls,c=this.media,S=this.trackId;c&&(this.log("Switching audio track : flushing all audio"),D.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,T.trigger(U.Events.AUDIO_TRACK_SWITCHED,{id:S})},R}(j.default);J.default=w},"./src/controller/audio-track-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/controller/base-playlist-controller.ts"),K=P("./src/types/loader.ts");function G(p,h){for(var u=0;u=o.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var s=o[this.trackId];this.log("Now switching to audio-track index "+l);var a=o[l],O=a.id,E=a.groupId,w=E===void 0?"":E,D=a.name,R=a.type,A=a.url;if(this.trackId=l,this.trackName=D,this.selectDefaultTrack=!1,this.hls.trigger(X.Events.AUDIO_TRACK_SWITCHING,{id:O,groupId:w,name:D,type:R,url:A}),a.details&&!a.details.live)return;var C=this.switchParams(a.url,s==null?void 0:s.details);this.loadPlaylist(C)},u.selectInitialTrack=function(){var l=this.tracksInGroup;console.assert(l.length,"Initial audio track should be selected when tracks are known");var o=this.trackName,s=this.findTrackId(o)||this.findTrackId();s!==-1?this.setAudioTrack(s):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},u.findTrackId=function(l){for(var o=this.tracksInGroup,s=0;sh.partTarget&&(a+=1)}if(Object(X.isFiniteNumber)(s))return new j.HlsUrlParameters(s,Object(X.isFiniteNumber)(a)?a:void 0,j.HlsSkip.No)}}},v.loadPlaylist=function(p){},v.shouldLoadTrack=function(p){return this.canLoad&&p&&!!p.url&&(!p.details||p.details.live)},v.playlistLoaded=function(p,h,u){var f=this,l=h.details,o=h.stats,s=o.loading.end?Math.max(0,self.performance.now()-o.loading.end):0;if(l.advancedDateTime=Date.now()-s,l.live||u!=null&&u.live){if(l.reloaded(u),u&&this.log("live playlist "+p+" "+(l.advanced?"REFRESHED "+l.lastPartSn+"-"+l.lastPartIndex:"MISSED")),u&&l.fragments.length>0&&Object(U.mergeDetails)(u,l),!this.canLoad||!l.live)return;var a,O=void 0,E=void 0;if(l.canBlockReload&&l.endSN&&l.advanced){var w=this.hls.config.lowLatencyMode,D=l.lastPartSn,R=l.endSN,A=l.lastPartIndex,C=A!==-1,T=D===R,c=w?0:A;C?(O=T?R+1:D,E=T?c:A+1):O=R+1;var S=l.age,y=S+l.ageHeader,b=Math.min(y-l.partTarget,l.targetduration*1.5);if(b>0){if(u&&b>u.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+u.tuneInGoal+" to: "+b+" with playlist age: "+l.age),b=0;else{var B=Math.floor(b/l.targetduration);if(O+=B,E!==void 0){var F=Math.round(b%l.targetduration/l.partTarget);E+=F}this.log("CDN Tune-in age: "+l.ageHeader+"s last advanced "+S.toFixed(2)+"s goal: "+b+" skip sn "+B+" to part "+E)}l.tuneInGoal=b}if(a=this.getDeliveryDirectives(l,h.deliveryDirectives,O,E),w||!T){this.loadPlaylist(a);return}}else a=this.getDeliveryDirectives(l,h.deliveryDirectives,O,E);var _=Object(U.computeReloadInterval)(l,o);O!==void 0&&l.canBlockReload&&(_-=l.partTarget||1),this.log("reload live playlist "+p+" in "+Math.round(_)+" ms"),this.timer=self.setTimeout(function(){return f.loadPlaylist(a)},_)}else this.clearTimer()},v.getDeliveryDirectives=function(p,h,u,f){var l=Object(j.getSkipValue)(p,u);return h!=null&&h.skip&&p.deltaUpdateFailed&&(u=h.msn,f=h.part,l=j.HlsSkip.No),new j.HlsUrlParameters(u,f,l)},v.retryLoadingOrFail=function(p){var h=this,u=this.hls.config,f=this.retryCount-1&&(l=p.context)!==null&&l!==void 0&&l.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+p.details+'"'),this.loadPlaylist();else{var o=Math.min(Math.pow(2,this.retryCount)*u.levelLoadingRetryDelay,u.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return h.loadPlaylist()},o),this.warn("retry playlist loading #"+this.retryCount+" in "+o+' ms after "'+p.details+'"')}}else this.warn('cannot recover from error "'+p.details+'"'),this.clearTimer(),p.fatal=!0;return f},L}()},"./src/controller/base-stream-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"State",function(){return R}),P.d(J,"default",function(){return A});var X=P("./src/polyfills/number.ts"),j=P("./src/task-loop.ts"),U=P("./src/controller/fragment-tracker.ts"),K=P("./src/utils/buffer-helper.ts"),G=P("./src/utils/logger.ts"),r=P("./src/events.ts"),L=P("./src/errors.ts"),v=P("./src/types/transmuxer.ts"),m=P("./src/utils/mp4-tools.ts"),p=P("./src/utils/discontinuities.ts"),h=P("./src/controller/fragment-finders.ts"),u=P("./src/controller/level-helper.ts"),f=P("./src/loader/fragment-loader.ts"),l=P("./src/crypt/decrypter.ts"),o=P("./src/utils/time-ranges.ts"),s=P("./src/types/loader.ts");function a(C,T){for(var c=0;c$;(M0&&M&&M.key&&M.iv&&M.method==="AES-128"){var I=self.performance.now();return b.decrypter.webCryptoDecrypt(new Uint8Array(_),M.key.buffer,M.iv.buffer).then(function(g){var H=self.performance.now();return F.trigger(r.Events.FRAG_DECRYPTED,{frag:y,payload:g,stats:{tstart:I,tdecrypt:H}}),B.payload=g,B})}return B}).then(function(B){var F=b.fragCurrent,_=b.hls,M=b.levels;if(!M)throw new Error("init load aborted, missing levels");var I=M[y.level].details;console.assert(I,"Level details are defined when init segment is loaded");var g=y.stats;b.state=R.IDLE,b.fragLoadError=0,y.data=new Uint8Array(B.payload),g.parsing.start=g.buffering.start=self.performance.now(),g.parsing.end=g.buffering.end=self.performance.now(),B.frag===F&&_.trigger(r.Events.FRAG_BUFFERED,{stats:g,frag:F,part:null,id:y.type}),b.tick()}).catch(function(B){b.warn(B),b.resetFragmentLoading(y)})},c.fragContextChanged=function(y){var b=this.fragCurrent;return!y||!b||y.level!==b.level||y.sn!==b.sn||y.urlId!==b.urlId},c.fragBufferedComplete=function(y,b){var B=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+y.type+" sn: "+y.sn+(b?" part: "+b.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+y.level+" "+o.default.toString(K.BufferHelper.getBuffered(B))),this.state=R.IDLE,this.tick()},c._handleFragmentLoadComplete=function(y){var b=this.transmuxer;if(!b)return;var B=y.frag,F=y.part,_=y.partsLoaded,M=!_||_.length===0||_.some(function(g){return!g}),I=new v.ChunkMetadata(B.level,B.sn,B.stats.chunkCount+1,0,F?F.index:-1,!M);b.flush(I)},c._handleFragmentLoadProgress=function(y){},c._doFragLoad=function(y,b,B,F){var _=this;if(B===void 0&&(B=null),!this.levels)throw new Error("frag load aborted, missing levels");if(B=Math.max(y.start,B||0),this.config.lowLatencyMode&&b){var M=b.partList;if(M&&F){B>y.end&&b.fragmentHint&&(y=b.fragmentHint);var I=this.getNextPart(M,y,B);if(I>-1){var g=M[I];return this.log("Loading part sn: "+y.sn+" p: "+g.index+" cc: "+y.cc+" of playlist ["+b.startSN+"-"+b.endSN+"] parts [0-"+I+"-"+(M.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+y.level+", target: "+parseFloat(B.toFixed(3))),this.nextLoadPosition=g.start+g.duration,this.state=R.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:y,part:M[I],targetBufferTime:B}),this.doFragPartsLoad(y,M,I,F).catch(function(H){return _.handleFragLoadError(H)})}else if(!y.url||this.loadedEndOfParts(M,B))return Promise.resolve(null)}}return this.log("Loading fragment "+y.sn+" cc: "+y.cc+" "+(b?"of ["+b.startSN+"-"+b.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+y.level+", target: "+parseFloat(B.toFixed(3))),Object(X.isFiniteNumber)(y.sn)&&!this.bitrateTest&&(this.nextLoadPosition=y.start+y.duration),this.state=R.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:y,targetBufferTime:B}),this.fragmentLoader.load(y,F).catch(function(H){return _.handleFragLoadError(H)})},c.doFragPartsLoad=function(y,b,B,F){var _=this;return new Promise(function(M,I){var g=[],H=function $(ne){var se=b[ne];_.fragmentLoader.loadPart(y,se,F).then(function(Oe){g[se.index]=Oe;var ge=Oe.part;_.hls.trigger(r.Events.FRAG_LOADED,Oe);var Te=b[ne+1];if(Te&&Te.fragment===y)$(ne+1);else return M({frag:y,part:ge,partsLoaded:g})}).catch(I)};H(B)})},c.handleFragLoadError=function(y){var b=y.data;return b&&b.details===L.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(b.frag,b.part):this.hls.trigger(r.Events.ERROR,b),null},c._handleTransmuxerFlush=function(y){var b=this.getCurrentContext(y);if(!b||this.state!==R.PARSING){this.fragCurrent||(this.state=R.IDLE);return}var B=b.frag,F=b.part,_=b.level,M=self.performance.now();B.stats.parsing.end=M,F&&(F.stats.parsing.end=M),this.updateLevelTiming(B,F,_,y.partial)},c.getCurrentContext=function(y){var b=this.levels,B=y.level,F=y.sn,_=y.part;if(!b||!b[B])return this.warn("Levels object was unset while buffering fragment "+F+" of level "+B+". The current chunk will not be buffered."),null;var M=b[B],I=_>-1?Object(u.getPartWith)(M,F,_):null,g=I?I.fragment:Object(u.getFragmentWithSN)(M,F,this.fragCurrent);return g?{frag:g,part:I,level:M}:null},c.bufferFragmentData=function(y,b,B,F){if(!y||this.state!==R.PARSING)return;var _=y.data1,M=y.data2,I=_;if(_&&M&&(I=Object(m.appendUint8Array)(_,M)),!I||!I.length)return;var g={type:y.type,frag:b,part:B,chunkMeta:F,parent:b.type,data:I};this.hls.trigger(r.Events.BUFFER_APPENDING,g),y.dropped&&y.independent&&!B&&this.flushBufferGap(b)},c.flushBufferGap=function(y){var b=this.media;if(!b)return;if(!K.BufferHelper.isBuffered(b,b.currentTime)){this.flushMainBuffer(0,y.start);return}var B=b.currentTime,F=K.BufferHelper.bufferInfo(b,B,0),_=y.duration,M=Math.min(this.config.maxFragLookUpTolerance*2,_*.25),I=Math.max(Math.min(y.start-M,F.end-M),B+M);y.start-I>M&&this.flushMainBuffer(I,y.start)},c.getFwdBufferInfo=function(y,b){var B=this.config,F=this.getLoadPosition();if(!Object(X.isFiniteNumber)(F))return null;var _=K.BufferHelper.bufferInfo(y,F,B.maxBufferHole);if(_.len===0&&_.nextStart!==void 0){var M=this.fragmentTracker.getBufferedFrag(F,b);if(M&&_.nextStart=B?(b.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+b.maxMaxBufferLength+"s"),!0):!1},c.getNextFragment=function(y,b){var B,F,_=b.fragments,M=_.length;if(!M)return null;var I=this.config,g=_[0].start,H;if(b.live){var $=I.initialLiveManifestSize;if(M<$)return this.warn("Not enough fragments to start playback (have: "+M+", need: "+$+")"),null;!b.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(H=this.getInitialLiveFragment(b,_),this.startPosition=H?this.hls.liveSyncPosition||H.start:y)}else y<=g&&(H=_[0]);if(!H){var ne=I.lowLatencyMode?b.partEnd:b.fragmentEnd;H=this.getFragmentAtPosition(y,ne,b)}return(B=H)!==null&&B!==void 0&&B.initSegment&&!((F=H)!==null&&F!==void 0&&F.initSegment.data)&&!this.bitrateTest&&(H=H.initSegment),H},c.getNextPart=function(y,b,B){for(var F=-1,_=!1,M=!0,I=0,g=y.length;I-1&&BB.start&&B.loaded},c.getInitialLiveFragment=function(y,b){var B=this.fragPrevious,F=null;if(B){if(y.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+B.programDateTime),F=Object(h.findFragmentByPDT)(b,B.endProgramDateTime,this.config.maxFragLookUpTolerance)),!F){var _=B.sn+1;if(_>=y.startSN&&_<=y.endSN){var M=b[_-y.startSN];B.cc===M.cc&&(F=M,this.log("Live playlist, switching playlist, load frag with next SN: "+F.sn))}F||(F=Object(h.findFragWithCC)(b,B.cc),F&&this.log("Live playlist, switching playlist, load frag with same CC: "+F.sn))}}else{var I=this.hls.liveSyncPosition;I!==null&&(F=this.getFragmentAtPosition(I,this.bitrateTest?y.fragmentEnd:y.edge,y))}return F},c.getFragmentAtPosition=function(y,b,B){var F=this.config,_=this.fragPrevious,M=B.fragments,I=B.endSN,g=B.fragmentHint,H=F.maxFragLookUpTolerance,$=!!(F.lowLatencyMode&&B.partList&&g);$&&g&&!this.bitrateTest&&(M=M.concat(g),I=g.sn);var ne;if(yb-H?0:H;ne=Object(h.findFragmentByPTS)(_,M,y,se)}else ne=M[M.length-1];if(ne){var Oe=ne.sn-B.startSN,ge=_&&ne.level===_.level,Te=M[Oe+1],Re=this.fragmentTracker.getState(ne);if(Re===U.FragmentState.BACKTRACKED){ne=null;for(var Le=Oe;M[Le]&&this.fragmentTracker.getState(M[Le])===U.FragmentState.BACKTRACKED;)_?ne=M[Le--]:ne=M[--Le];ne||(ne=Te)}else _&&ne.sn===_.sn&&!$&&(ge&&(ne.sn=M-b.maxFragLookUpTolerance&&_<=I;if(F!==null&&B.duration>F&&(_"+y.startSN+" prev-sn: "+(_?_.sn:"na")+" fragments: "+I),ne}return g},c.waitForCdnTuneIn=function(y){var b=3;return y.live&&y.canBlockReload&&y.tuneInGoal>Math.max(y.partHoldBack,y.partTarget*b)},c.setStartPosition=function(y,b){var B=this.startPosition;if(B"+y))}}]),T}(j.default)},"./src/controller/buffer-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./src/polyfills/number.ts"),j=P("./src/events.ts"),U=P("./src/utils/logger.ts"),K=P("./src/errors.ts"),G=P("./src/utils/buffer-helper.ts"),r=P("./src/utils/mediasource-helper.ts"),L=P("./src/loader/fragment.ts"),v=P("./src/controller/buffer-operation-queue.ts"),m=Object(r.getMediaSource)(),p=/([ha]vc.)(?:\.[^.,]+)+/,h=function(){function u(l){var o=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 s=o.hls,a=o.media,O=o.mediaSource;U.logger.log("[buffer-controller]: Media source opened"),a&&(o.updateMediaElementDuration(),s.trigger(j.Events.MEDIA_ATTACHED,{media:a})),O&&O.removeEventListener("sourceopen",o._onMediaSourceOpen),o.checkPendingTracks()},this._onMediaSourceClose=function(){U.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){U.logger.log("[buffer-controller]: Media source ended")},this.hls=l,this._initSourceBuffer(),this.registerListeners()}var f=u.prototype;return f.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},f.destroy=function(){this.unregisterListeners(),this.details=null},f.registerListeners=function(){var o=this.hls;o.on(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.on(j.Events.BUFFER_RESET,this.onBufferReset,this),o.on(j.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.on(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.on(j.Events.BUFFER_EOS,this.onBufferEos,this),o.on(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.on(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.on(j.Events.FRAG_PARSED,this.onFragParsed,this),o.on(j.Events.FRAG_CHANGED,this.onFragChanged,this)},f.unregisterListeners=function(){var o=this.hls;o.off(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.off(j.Events.BUFFER_RESET,this.onBufferReset,this),o.off(j.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.off(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.off(j.Events.BUFFER_EOS,this.onBufferEos,this),o.off(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.off(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.off(j.Events.FRAG_PARSED,this.onFragParsed,this),o.off(j.Events.FRAG_CHANGED,this.onFragChanged,this)},f._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new v.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},f.onManifestParsed=function(o,s){var a=2;(s.audio&&!s.video||!s.altAudio)&&(a=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=a,this.details=null,U.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},f.onMediaAttaching=function(o,s){var a=this.media=s.media;if(a&&m){var O=this.mediaSource=new m;O.addEventListener("sourceopen",this._onMediaSourceOpen),O.addEventListener("sourceended",this._onMediaSourceEnded),O.addEventListener("sourceclose",this._onMediaSourceClose),a.src=self.URL.createObjectURL(O),this._objectUrl=a.src}},f.onMediaDetaching=function(){var o=this.media,s=this.mediaSource,a=this._objectUrl;if(s){if(U.logger.log("[buffer-controller]: media source detaching"),s.readyState==="open")try{s.endOfStream()}catch(O){U.logger.warn("[buffer-controller]: onMediaDetaching: "+O.message+" while calling endOfStream")}this.onBufferReset(),s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),o&&(a&&self.URL.revokeObjectURL(a),o.src===a?(o.removeAttribute("src"),o.load()):U.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(j.Events.MEDIA_DETACHED,void 0)},f.onBufferReset=function(){var o=this;this.getSourceBufferTypes().forEach(function(s){var a=o.sourceBuffer[s];try{a&&(o.removeBufferListeners(s),o.mediaSource&&o.mediaSource.removeSourceBuffer(a),o.sourceBuffer[s]=void 0)}catch(O){U.logger.warn("[buffer-controller]: Failed to reset the "+s+" buffer",O)}}),this._initSourceBuffer()},f.onBufferCodecs=function(o,s){var a=this,O=this.getSourceBufferTypes().length;if(Object.keys(s).forEach(function(E){if(O){var w=a.tracks[E];if(w&&typeof w.buffer.changeType=="function"){var D=s[E],R=D.codec,A=D.levelCodec,C=D.container,T=(w.levelCodec||w.codec).replace(p,"$1"),c=(A||R).replace(p,"$1");if(T!==c){var S=C+";codecs="+(A||R);a.appendChangeType(E,S)}}}else a.pendingTracks[E]=s[E]}),O)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},f.appendChangeType=function(o,s){var a=this,O=this.operationQueue,E={execute:function(){var D=a.sourceBuffer[o];D&&(U.logger.log("[buffer-controller]: changing "+o+" sourceBuffer type to "+s),D.changeType(s)),O.shiftAndExecuteNext(o)},onStart:function(){},onComplete:function(){},onError:function(D){U.logger.warn("[buffer-controller]: Failed to change "+o+" SourceBuffer type",D)}};O.append(E,o)},f.onBufferAppending=function(o,s){var a=this,O=this.hls,E=this.operationQueue,w=this.tracks,D=s.data,R=s.type,A=s.frag,C=s.part,T=s.chunkMeta,c=T.buffering[R],S=self.performance.now();c.start=S;var y=A.stats.buffering,b=C?C.stats.buffering:null;y.start===0&&(y.start=S),b&&b.start===0&&(b.start=S);var B=w.audio,F=R==="audio"&&T.id===1&&(B==null?void 0:B.container)==="audio/mpeg",_={execute:function(){if(c.executeStart=self.performance.now(),F){var I=a.sourceBuffer[R];if(I){var g=A.start-I.timestampOffset;Math.abs(g)>=.1&&(U.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+A.start+" (delta: "+g+") sn: "+A.sn+")"),I.timestampOffset=A.start)}}a.appendExecutor(D,R)},onStart:function(){},onComplete:function(){var I=self.performance.now();c.executeEnd=c.end=I,y.first===0&&(y.first=I),b&&b.first===0&&(b.first=I);var g=a.sourceBuffer,H={};for(var $ in g)H[$]=G.BufferHelper.getBuffered(g[$]);a.appendError=0,a.hls.trigger(j.Events.BUFFER_APPENDED,{type:R,frag:A,part:C,chunkMeta:T,parent:A.type,timeRanges:H})},onError:function(I){U.logger.error("[buffer-controller]: Error encountered while trying to append to the "+R+" SourceBuffer",I);var g={type:K.ErrorTypes.MEDIA_ERROR,parent:A.type,details:K.ErrorDetails.BUFFER_APPEND_ERROR,err:I,fatal:!1};I.code===DOMException.QUOTA_EXCEEDED_ERR?g.details=K.ErrorDetails.BUFFER_FULL_ERROR:(a.appendError++,g.details=K.ErrorDetails.BUFFER_APPEND_ERROR,a.appendError>O.config.appendErrorMaxRetry&&(U.logger.error("[buffer-controller]: Failed "+O.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),g.fatal=!0)),O.trigger(j.Events.ERROR,g)}};E.append(_,R)},f.onBufferFlushing=function(o,s){var a=this,O=this.operationQueue,E=function(D){return{execute:a.removeExecutor.bind(a,D,s.startOffset,s.endOffset),onStart:function(){},onComplete:function(){a.hls.trigger(j.Events.BUFFER_FLUSHED,{type:D})},onError:function(A){U.logger.warn("[buffer-controller]: Failed to remove from "+D+" SourceBuffer",A)}}};s.type?O.append(E(s.type),s.type):this.getSourceBufferTypes().forEach(function(w){O.append(E(w),w)})},f.onFragParsed=function(o,s){var a=this,O=s.frag,E=s.part,w=[],D=E?E.elementaryStreams:O.elementaryStreams;D[L.ElementaryStreamTypes.AUDIOVIDEO]?w.push("audiovideo"):(D[L.ElementaryStreamTypes.AUDIO]&&w.push("audio"),D[L.ElementaryStreamTypes.VIDEO]&&w.push("video"));var R=function(){var C=self.performance.now();O.stats.buffering.end=C,E&&(E.stats.buffering.end=C);var T=E?E.stats:O.stats;a.hls.trigger(j.Events.FRAG_BUFFERED,{frag:O,part:E,stats:T,id:O.type})};w.length===0&&U.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+O.type+" level: "+O.level+" sn: "+O.sn),this.blockBuffers(R,w)},f.onFragChanged=function(o,s){this.flushBackBuffer()},f.onBufferEos=function(o,s){var a=this,O=this.getSourceBufferTypes().reduce(function(E,w){var D=a.sourceBuffer[w];return(!s.type||s.type===w)&&(D&&!D.ended&&(D.ended=!0,U.logger.log("[buffer-controller]: "+w+" sourceBuffer now EOS"))),E&&!!(!D||D.ended)},!0);O&&this.blockBuffers(function(){var E=a.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},f.onLevelUpdated=function(o,s){var a=s.details;if(!a.fragments.length)return;this.details=a,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},f.flushBackBuffer=function(){var o=this.hls,s=this.details,a=this.media,O=this.sourceBuffer;if(!a||s===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var w=s.live&&o.config.liveBackBufferLength!==null?o.config.liveBackBufferLength:o.config.backBufferLength;if(!Object(X.isFiniteNumber)(w)||w<0)return;var D=a.currentTime,R=s.levelTargetDuration,A=Math.max(w,R),C=Math.floor(D/R)*R-A;E.forEach(function(T){var c=O[T];if(c){var S=G.BufferHelper.getBuffered(c);S.length>0&&C>S.start(0)&&(o.trigger(j.Events.BACK_BUFFER_REACHED,{bufferEnd:C}),s.live&&o.trigger(j.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:C}),o.trigger(j.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:C,type:T}))}})},f.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var o=this.details,s=this.hls,a=this.media,O=this.mediaSource,E=o.fragments[0].start+o.totalduration,w=a.duration,D=Object(X.isFiniteNumber)(O.duration)?O.duration:0;o.live&&s.config.liveDurationInfinity?(U.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),O.duration=Infinity,this.updateSeekableRange(o)):(E>D&&E>w||!Object(X.isFiniteNumber)(w))&&(U.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),O.duration=E)},f.updateSeekableRange=function(o){var s=this.mediaSource,a=o.fragments,O=a.length;if(O&&o.live&&s!==null&&s!==void 0&&s.setLiveSeekableRange){var E=Math.max(0,a[0].start),w=Math.max(E,E+o.totalduration);s.setLiveSeekableRange(E,w)}},f.checkPendingTracks=function(){var o=this.bufferCodecEventsExpected,s=this.operationQueue,a=this.pendingTracks,O=Object.keys(a).length;if(O&&!o||O===2){this.createSourceBuffers(a),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(w){s.executeNext(w)})}},f.createSourceBuffers=function(o){var s=this.sourceBuffer,a=this.mediaSource;if(!a)throw Error("createSourceBuffers called when mediaSource was null");var O=0;for(var E in o)if(!s[E]){var w=o[E];if(!w)throw Error("source buffer exists for track "+E+", however track does not");var D=w.levelCodec||w.codec,R=w.container+";codecs="+D;U.logger.log("[buffer-controller]: creating sourceBuffer("+R+")");try{var A=s[E]=a.addSourceBuffer(R),C=E;this.addBufferListener(C,"updatestart",this._onSBUpdateStart),this.addBufferListener(C,"updateend",this._onSBUpdateEnd),this.addBufferListener(C,"error",this._onSBUpdateError),this.tracks[E]={buffer:A,codec:D,container:w.container,levelCodec:w.levelCodec,id:w.id},O++}catch(T){U.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+T.message),this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:T,mimeType:R})}}O&&this.hls.trigger(j.Events.BUFFER_CREATED,{tracks:this.tracks})},f._onSBUpdateStart=function(o){var s=this.operationQueue,a=s.current(o);a.onStart()},f._onSBUpdateEnd=function(o){var s=this.operationQueue,a=s.current(o);a.onComplete(),s.shiftAndExecuteNext(o)},f._onSBUpdateError=function(o,s){U.logger.error("[buffer-controller]: "+o+" SourceBuffer error",s),this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var a=this.operationQueue.current(o);a&&a.onError(s)},f.removeExecutor=function(o,s,a){var O=this.media,E=this.mediaSource,w=this.operationQueue,D=this.sourceBuffer,R=D[o];if(!O||!E||!R){U.logger.warn("[buffer-controller]: Attempting to remove from the "+o+" SourceBuffer, but it does not exist"),w.shiftAndExecuteNext(o);return}var A=Object(X.isFiniteNumber)(O.duration)?O.duration:Infinity,C=Object(X.isFiniteNumber)(E.duration)?E.duration:Infinity,T=Math.max(0,s),c=Math.min(a,A,C);c>T?(U.logger.log("[buffer-controller]: Removing ["+T+","+c+"] from the "+o+" SourceBuffer"),console.assert(!R.updating,o+" sourceBuffer must not be updating"),R.remove(T,c)):w.shiftAndExecuteNext(o)},f.appendExecutor=function(o,s){var a=this.operationQueue,O=this.sourceBuffer,E=O[s];if(!E){U.logger.warn("[buffer-controller]: Attempting to append to the "+s+" SourceBuffer, but it does not exist"),a.shiftAndExecuteNext(s);return}E.ended=!1,console.assert(!E.updating,s+" sourceBuffer must not be updating"),E.appendBuffer(o)},f.blockBuffers=function(o,s){var a=this;if(s===void 0&&(s=this.getSourceBufferTypes()),!s.length){U.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(o);return}var O=this.operationQueue,E=s.map(function(w){return O.appendBlocker(w)});Promise.all(E).then(function(){o(),s.forEach(function(w){var D=a.sourceBuffer[w];(!D||!D.updating)&&O.shiftAndExecuteNext(w)})})},f.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},f.addBufferListener=function(o,s,a){var O=this.sourceBuffer[o];if(!O)return;var E=a.bind(this,o);this.listeners[o].push({event:s,listener:E}),O.addEventListener(s,E)},f.removeBufferListeners=function(o){var s=this.sourceBuffer[o];if(!s)return;this.listeners[o].forEach(function(a){s.removeEventListener(a.event,a.listener)})},u}()},"./src/controller/buffer-operation-queue.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return j});var X=P("./src/utils/logger.ts"),j=function(){function U(G){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=G}var K=U.prototype;return K.append=function(r,L){var v=this.queues[L];v.push(r),v.length===1&&this.buffers[L]&&this.executeNext(L)},K.insertAbort=function(r,L){var v=this.queues[L];v.unshift(r),this.executeNext(L)},K.appendBlocker=function(r){var L,v=new Promise(function(p){L=p}),m={execute:L,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(m,r),v},K.executeNext=function(r){var L=this.buffers,v=this.queues,m=L[r],p=v[r];if(p.length){var h=p[0];try{h.execute()}catch(u){X.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),h.onError(u),(!m||!m.updating)&&(p.shift(),this.executeNext(r))}}},K.shiftAndExecuteNext=function(r){this.queues[r].shift(),this.executeNext(r)},K.current=function(r){return this.queues[r][0]},U}()},"./src/controller/cap-level-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts");function j(G,r){for(var L=0;L0&&this.mediaWidth>0){var v=this.hls.levels;if(v.length){var m=this.hls;m.autoLevelCapping=this.getMaxLevel(v.length-1),m.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=m.autoLevelCapping}}},r.getMaxLevel=function(v){var m=this,p=this.hls.levels;if(!p.length)return-1;var h=p.filter(function(u,f){return G.isLevelAllowed(f,m.restrictedLevels)&&f<=v});return this.clientRect=null,G.getMaxLevelByMediaSize(h,this.mediaWidth,this.mediaHeight)},r.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()},r.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},r.getDimensions=function(){if(this.clientRect)return this.clientRect;var v=this.media,m={width:0,height:0};if(v){var p=v.getBoundingClientRect();m.width=p.width,m.height=p.height,!m.width&&!m.height&&(m.width=p.right-p.left||v.width||0,m.height=p.bottom-p.top||v.height||0)}return this.clientRect=m,m},G.isLevelAllowed=function(v,m){return m===void 0&&(m=[]),m.indexOf(v)===-1},G.getMaxLevelByMediaSize=function(v,m,p){if(!v||!v.length)return-1;for(var h=function(s,a){return a?s.width!==a.width||s.height!==a.height:!0},u=v.length-1,f=0;f=m||l.height>=p)&&h(l,v[f+1])){u=f;break}}return u},U(G,[{key:"mediaWidth",get:function(){return this.getDimensions().width*G.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*G.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var v=1;try{v=self.devicePixelRatio}catch(m){}return v}}]),G}();J.default=K},"./src/controller/cmcd-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./src/events.ts"),j=P("./src/types/cmcd.ts"),U=P("./src/utils/buffer-helper.ts"),K=P("./src/utils/logger.ts");function G(u,f){for(var l=0;l=u.length?{done:!0}:{done:!1,value:u[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.`)}function v(u,f){if(!u)return;if(typeof u=="string")return m(u,f);var l=Object.prototype.toString.call(u).slice(8,-1);if(l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set")return Array.from(u);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return m(u,f)}function m(u,f){(f==null||f>u.length)&&(f=u.length);for(var l=0,o=new Array(f);ls&&(s=w.bitrate)}return s>0?s:NaN},f.getBufferLength=function(o){var s=this.hls.media,a=o===j.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!a||!s)return NaN;var O=U.BufferHelper.bufferInfo(a,s.currentTime,this.config.maxBufferHole);return O.len*1e3},f.createPlaylistLoader=function(){var o=this.config.pLoader,s=this.applyPlaylistData,a=o||this.config.loader;return function(){function O(w){this.loader=void 0,this.loader=new a(w)}var E=O.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(D,R,A){s(D),this.loader.load(D,R,A)},r(O,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),O}()},f.createFragmentLoader=function(){var o=this.config.fLoader,s=this.applyFragmentData,a=o||this.config.loader;return function(){function O(w){this.loader=void 0,this.loader=new a(w)}var E=O.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(D,R,A){s(D),this.loader.load(D,R,A)},r(O,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),O}()},u.uuid=function(){var o=URL.createObjectURL(new Blob),s=o.toString();return URL.revokeObjectURL(o),s.substr(s.lastIndexOf("/")+1)},u.serialize=function(o){for(var s=[],a=function(F){return!Number.isNaN(F)&&F!=null&&F!==""&&F!==!1},O=function(F){return Math.round(F)},E=function(F){return O(F/100)*100},w=function(F){return encodeURIComponent(F)},D={br:O,d:O,bl:E,dl:E,mtp:E,nor:w,rtp:E,tb:O},R=Object.keys(o||{}).sort(),A=L(R),C;!(C=A()).done;){var T=C.value,c=o[T];if(!a(c))continue;if(T==="v"&&c===1)continue;if(T=="pr"&&c===1)continue;var S=D[T];S&&(c=S(c));var y=typeof c,b=void 0;T==="ot"||T==="sf"||T==="st"?b=T+"="+c:y==="boolean"?b=T:y==="number"?b=T+"="+c:b=T+"="+JSON.stringify(c),s.push(b)}return s.join(",")},u.toHeaders=function(o){for(var s=Object.keys(o),a={},O=["Object","Request","Session","Status"],E=[{},{},{},{}],w={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},D=0,R=s;DL){this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var w=L-this._requestLicenseFailureCount+1;U.logger.warn("Retrying license request, "+w+" attempts left"),this._requestLicense(s,a)}break}},u._generateLicenseRequestChallenge=function(l,o){switch(l.mediaKeySystemDomain){case K.KeySystems.WIDEVINE:return o}throw new Error("unsupported key-system: "+l.mediaKeySystemDomain)},u._requestLicense=function(l,o){U.logger.log("Requesting content license for key-system");var s=this._mediaKeysList[0];if(!s){U.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var a=this.getLicenseServerUrl(s.mediaKeySystemDomain),O=this._createLicenseXhr(a,l,o);U.logger.log("Sending license request to URL: "+a);var E=this._generateLicenseRequestChallenge(s,l);O.send(E)}catch(w){U.logger.error("Failure requesting DRM license: "+w),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},u.onMediaAttached=function(l,o){if(!this._emeEnabled)return;var s=o.media;this._media=s,s.addEventListener("encrypted",this._onMediaEncrypted)},u.onMediaDetached=function(){var l=this._media,o=this._mediaKeysList;if(!l)return;l.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(o.map(function(s){if(s.mediaKeysSession)return s.mediaKeysSession.close().catch(function(){})})).then(function(){return l.setMediaKeys(null)}).catch(function(){})},u.onManifestParsed=function(l,o){if(!this._emeEnabled)return;var s=o.levels.map(function(O){return O.audioCodec}).filter(function(O){return!!O}),a=o.levels.map(function(O){return O.videoCodec}).filter(function(O){return!!O});this._attemptKeySystemAccess(K.KeySystems.WIDEVINE,s,a)},r(h,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),h}();J.default=p},"./src/controller/fps-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts"),j=P("./src/utils/logger.ts"),U=function(){function K(r){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=r,this.registerListeners()}var G=K.prototype;return G.setStreamController=function(L){this.streamController=L},G.registerListeners=function(){this.hls.on(X.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},G.unregisterListeners=function(){this.hls.off(X.Events.MEDIA_ATTACHING,this.onMediaAttaching)},G.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},G.onMediaAttaching=function(L,v){var m=this.hls.config;if(m.capLevelOnFPSDrop){var p=v.media instanceof self.HTMLVideoElement?v.media:null;this.media=p,p&&typeof p.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),m.fpsDroppedMonitoringPeriod)}},G.checkFPS=function(L,v,m){var p=performance.now();if(v){if(this.lastTime){var h=p-this.lastTime,u=m-this.lastDroppedFrames,f=v-this.lastDecodedFrames,l=1e3*u/h,o=this.hls;if(o.trigger(X.Events.FPS_DROP,{currentDropped:u,currentDecoded:f,totalDroppedFrames:m}),l>0&&u>o.config.fpsDroppedMonitoringThreshold*f){var s=o.currentLevel;j.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+s),s>0&&(o.autoLevelCapping===-1||o.autoLevelCapping>=s)&&(s=s-1,o.trigger(X.Events.FPS_DROP_LEVEL_CAPPING,{level:s,droppedLevel:o.currentLevel}),o.autoLevelCapping=s,this.streamController.nextLevelSwitch())}}this.lastTime=p,this.lastDroppedFrames=m,this.lastDecodedFrames=v}},G.checkFPSInterval=function(){var L=this.media;if(L)if(this.isVideoPlaybackQualityAvailable){var v=L.getVideoPlaybackQuality();this.checkFPS(L,v.totalVideoFrames,v.droppedVideoFrames)}else this.checkFPS(L,L.webkitDecodedFrameCount,L.webkitDroppedFrameCount)},K}();J.default=U},"./src/controller/fragment-finders.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"findFragmentByPDT",function(){return U}),P.d(J,"findFragmentByPTS",function(){return K}),P.d(J,"fragmentWithinToleranceTest",function(){return G}),P.d(J,"pdtWithinToleranceTest",function(){return r}),P.d(J,"findFragWithCC",function(){return L});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/binary-search.ts");function U(v,m,p){if(m===null||!Array.isArray(v)||!v.length||!Object(X.isFiniteNumber)(m))return null;var h=v[0].programDateTime;if(m<(h||0))return null;var u=v[v.length-1].endProgramDateTime;if(m>=(u||0))return null;p=p||0;for(var f=0;fv&&p.start?-1:0}function r(v,m,p){var h=Math.min(m,p.duration+(p.deltaPTS?p.deltaPTS:0))*1e3,u=p.endProgramDateTime||0;return u-h>v}function L(v,m){return j.default.search(v,function(p){return p.ccm?-1:0})}},"./src/controller/fragment-tracker.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"FragmentState",function(){return U}),P.d(J,"FragmentTracker",function(){return K});var X=P("./src/events.ts"),j=P("./src/types/loader.ts"),U;(function(L){L.NOT_LOADED="NOT_LOADED",L.BACKTRACKED="BACKTRACKED",L.APPENDING="APPENDING",L.PARTIAL="PARTIAL",L.OK="OK"})(U||(U={}));var K=function(){function L(m){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=m,this._registerListeners()}var v=L.prototype;return v._registerListeners=function(){var p=this.hls;p.on(X.Events.BUFFER_APPENDED,this.onBufferAppended,this),p.on(X.Events.FRAG_BUFFERED,this.onFragBuffered,this),p.on(X.Events.FRAG_LOADED,this.onFragLoaded,this)},v._unregisterListeners=function(){var p=this.hls;p.off(X.Events.BUFFER_APPENDED,this.onBufferAppended,this),p.off(X.Events.FRAG_BUFFERED,this.onFragBuffered,this),p.off(X.Events.FRAG_LOADED,this.onFragLoaded,this)},v.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},v.getAppendedFrag=function(p,h){if(h===j.PlaylistLevelType.MAIN){var u=this.activeFragment,f=this.activeParts;if(!u)return null;if(f)for(var l=f.length;l--;){var o=f[l],s=o?o.end:u.appendedPTS;if(o.start<=p&&s!==void 0&&p<=s)return l>9&&(this.activeParts=f.slice(l-9)),o}else if(u.start<=p&&u.appendedPTS!==void 0&&p<=u.appendedPTS)return u}return this.getBufferedFrag(p,h)},v.getBufferedFrag=function(p,h){for(var u=this.fragments,f=Object.keys(u),l=f.length;l--;){var o=u[f[l]];if((o==null?void 0:o.body.type)===h&&o.buffered){var s=o.body;if(s.start<=p&&p<=s.end)return s}}return null},v.detectEvictedFragments=function(p,h,u){var f=this;Object.keys(this.fragments).forEach(function(l){var o=f.fragments[l];if(!o)return;if(!o.buffered){o.body.type===u&&f.removeFragment(o.body);return}var s=o.range[p];if(!s)return;s.time.some(function(a){var O=!f.isTimeBuffered(a.startPTS,a.endPTS,h);return O&&f.removeFragment(o.body),O})})},v.detectPartialFragments=function(p){var h=this,u=this.timeRanges,f=p.frag,l=p.part;if(!u||f.sn==="initSegment")return;var o=r(f),s=this.fragments[o];if(!s)return;Object.keys(u).forEach(function(a){var O=f.elementaryStreams[a];if(!O)return;var E=u[a],w=l!==null||O.partial===!0;s.range[a]=h.getBufferedTimes(f,l,w,E)}),s.backtrack=s.loaded=null,Object.keys(s.range).length?s.buffered=!0:this.removeFragment(s.body)},v.fragBuffered=function(p){var h=r(p),u=this.fragments[h];u&&(u.backtrack=u.loaded=null,u.buffered=!0)},v.getBufferedTimes=function(p,h,u,f){for(var l={time:[],partial:u},o=h?h.start:p.start,s=h?h.end:p.end,a=p.minEndPTS||s,O=p.maxStartPTS||o,E=0;E=w&&a<=D){l.time.push({startPTS:Math.max(o,f.start(E)),endPTS:Math.min(s,f.end(E))});break}else if(ow)l.partial=!0,l.time.push({startPTS:Math.max(o,f.start(E)),endPTS:Math.min(s,f.end(E))});else if(s<=w)break}return l},v.getPartialFragment=function(p){var h=null,u,f,l,o=0,s=this.bufferPadding,a=this.fragments;return Object.keys(a).forEach(function(O){var E=a[O];if(!E)return;G(E)&&(f=E.body.start-s,l=E.body.end+s,p>=f&&p<=l&&(u=Math.min(p-f,l-p),o<=u&&(h=E.body,o=u)))}),h},v.getState=function(p){var h=r(p),u=this.fragments[h];return u?u.buffered?G(u)?U.PARTIAL:U.OK:u.backtrack?U.BACKTRACKED:U.APPENDING:U.NOT_LOADED},v.backtrack=function(p,h){var u=r(p),f=this.fragments[u];if(!f||f.backtrack)return null;var l=f.backtrack=h||f.loaded;return f.loaded=null,l},v.getBacktrackData=function(p){var h=r(p),u=this.fragments[h];if(u){var f,l=u.backtrack;if(l!=null&&(f=l.payload)!==null&&f!==void 0&&f.byteLength)return l;this.removeFragment(p)}return null},v.isTimeBuffered=function(p,h,u){for(var f,l,o=0;o=f&&h<=l)return!0;if(h<=f)return!1}return!1},v.onFragLoaded=function(p,h){var u=h.frag,f=h.part;if(u.sn==="initSegment"||u.bitrateTest||f)return;var l=r(u);this.fragments[l]={body:u,loaded:h,backtrack:null,buffered:!1,range:Object.create(null)}},v.onBufferAppended=function(p,h){var u=this,f=h.frag,l=h.part,o=h.timeRanges;if(f.type===j.PlaylistLevelType.MAIN)if(this.activeFragment=f,l){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(l)}else this.activeParts=null;this.timeRanges=o,Object.keys(o).forEach(function(a){var O=o[a];if(u.detectEvictedFragments(a,O),!l)for(var E=0;Ep&&f.removeFragment(s)}})},v.removeFragment=function(p){var h=r(p);p.stats.loaded=0,p.clearElementaryStreamInfo(),delete this.fragments[h]},v.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},L}();function G(L){var v,m;return L.buffered&&(((v=L.range.video)===null||v===void 0?void 0:v.partial)||((m=L.range.audio)===null||m===void 0?void 0:m.partial))}function r(L){return L.type+"_"+L.level+"_"+L.urlId+"_"+L.sn}},"./src/controller/gap-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"STALL_MINIMUM_DURATION_MS",function(){return G}),P.d(J,"MAX_START_GAP_JUMP",function(){return r}),P.d(J,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return L}),P.d(J,"SKIP_BUFFER_RANGE_START",function(){return v}),P.d(J,"default",function(){return m});var X=P("./src/utils/buffer-helper.ts"),j=P("./src/errors.ts"),U=P("./src/events.ts"),K=P("./src/utils/logger.ts"),G=250,r=2,L=.1,v=.05,m=function(){function p(u,f,l,o){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=u,this.media=f,this.fragmentTracker=l,this.hls=o}var h=p.prototype;return h.destroy=function(){this.hls=this.fragmentTracker=this.media=null},h.poll=function(f){var l=this.config,o=this.media,s=this.stalled,a=o.currentTime,O=o.seeking,E=this.seeking&&!O,w=!this.seeking&&O;if(this.seeking=O,a!==f){if(this.moved=!0,s!==null){if(this.stallReported){var D=self.performance.now()-s;K.logger.warn("playback not stuck anymore @"+a+", after "+Math.round(D)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((w||E)&&(this.stalled=null),o.paused||o.ended||o.playbackRate===0||!X.BufferHelper.getBuffered(o).length)return;var R=X.BufferHelper.bufferInfo(o,a,0),A=R.len>0,C=R.nextStart||0;if(!A&&!C)return;if(O){var T=R.len>r,c=!C||C-a>r&&!this.fragmentTracker.getPartialFragment(a);if(T||c)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var S,y=Math.max(C,R.start||0)-a,b=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,B=b==null||((S=b.details)===null||S===void 0)?void 0:S.live,F=B?b.details.targetduration*2:r;if(y>0&&y<=F){this._trySkipBufferHole(null);return}}var _=self.performance.now();if(s===null){this.stalled=_;return}var M=_-s;!O&&M>=G&&this._reportStall(R.len);var I=X.BufferHelper.bufferInfo(o,a,l.maxBufferHole);this._tryFixBufferStall(I,M)},h._tryFixBufferStall=function(f,l){var o=this.config,s=this.fragmentTracker,a=this.media,O=a.currentTime,E=s.getPartialFragment(O);if(E){var w=this._trySkipBufferHole(E);if(w)return}f.len>o.maxBufferHole&&l>o.highBufferWatchdogPeriod*1e3&&(K.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},h._reportStall=function(f){var l=this.hls,o=this.media,s=this.stallReported;s||(this.stallReported=!0,K.logger.warn("Playback stalling at @"+o.currentTime+" due to low buffer (buffer="+f+")"),l.trigger(U.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:f}))},h._trySkipBufferHole=function(f){for(var l=this.config,o=this.hls,s=this.media,a=s.currentTime,O=0,E=X.BufferHelper.getBuffered(s),w=0;w=O&&a.05&&this.forwardBufferLength>1){var w=Math.min(2,Math.max(1,o)),D=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20;p.playbackRate=Math.min(w,Math.max(1,D))}else p.playbackRate!==1&&p.playbackRate!==0&&(p.playbackRate=1)},v.estimateLiveEdge=function(){var p=this.levelDetails;return p===null?null:p.edge+p.age},v.computeLatency=function(){var p=this.estimateLiveEdge();return p===null?null:p-this.currentTime},G(L,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var p=this.config,h=this.levelDetails;return p.liveMaxLatencyDuration!==void 0?p.liveMaxLatencyDuration:h?p.liveMaxLatencyDurationCount*h.targetduration:0}},{key:"targetLatency",get:function(){var p=this.levelDetails;if(p===null)return null;var h=p.holdBack,u=p.partHoldBack,f=p.targetduration,l=this.config,o=l.liveSyncDuration,s=l.liveSyncDurationCount,a=l.lowLatencyMode,O=this.hls.userConfig,E=a&&u||h;(O.liveSyncDuration||O.liveSyncDurationCount||E===0)&&(E=o!==void 0?o:s*f);var w=f,D=1;return E+Math.min(this.stallCount*D,w)}},{key:"liveSyncPosition",get:function(){var p=this.estimateLiveEdge(),h=this.targetLatency,u=this.levelDetails;if(p===null||h===null||u===null)return null;var f=u.edge,l=p-h-this.edgeStalled,o=f-u.totalduration,s=f-(this.config.lowLatencyMode&&u.partTarget||u.targetduration);return Math.min(Math.max(o,l),s)}},{key:"drift",get:function(){var p=this.levelDetails;return p===null?1:p.drift}},{key:"edgeStalled",get:function(){var p=this.levelDetails;if(p===null)return 0;var h=(this.config.lowLatencyMode&&p.partTarget||p.targetduration)*3;return Math.max(p.age-h,0)}},{key:"forwardBufferLength",get:function(){var p=this.media,h=this.levelDetails;if(!p||!h)return 0;var u=p.buffered.length;return u?p.buffered.end(u-1):h.edge-this.currentTime}}]),L}()},"./src/controller/level-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return l});var X=P("./src/types/level.ts"),j=P("./src/events.ts"),U=P("./src/errors.ts"),K=P("./src/utils/codecs.ts"),G=P("./src/controller/level-helper.ts"),r=P("./src/controller/base-playlist-controller.ts"),L=P("./src/types/loader.ts");function v(){return v=Object.assign||function(o){for(var s=1;s0){C=D[0].bitrate,D.sort(function(M,I){return M.bitrate-I.bitrate}),this._levels=D;for(var B=0;Bthis.hls.config.fragLoadingMaxRetry&&(T=w.frag.level)):T=w.frag.level}break;case U.ErrorDetails.LEVEL_LOAD_ERROR:case U.ErrorDetails.LEVEL_LOAD_TIMEOUT:D&&(D.deliveryDirectives&&(C=!1),T=D.level),A=!0;break;case U.ErrorDetails.REMUX_ALLOC_ERROR:T=w.level,A=!0;break}T!==void 0&&this.recoverLevel(w,T,A,C)},a.recoverLevel=function(E,w,D,R){var A=E.details,C=this._levels[w];if(C.loadError++,D){var T=this.retryLoadingOrFail(E);if(T)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(R){var c=C.url.length;if(c>1&&C.loadError1){var R=(w.urlId+1)%D;this.warn("Switching to redundant URL-id "+R),this._levels.forEach(function(A){A.urlId=R}),this.level=E}},a.onFragLoaded=function(E,w){var D=w.frag;if(D!==void 0&&D.type===L.PlaylistLevelType.MAIN){var R=this._levels[D.level];R!==void 0&&(R.fragmentError=0,R.loadError=0)}},a.onLevelLoaded=function(E,w){var D,R=w.level,A=w.details,C=this._levels[R];if(!C){var T;this.warn("Invalid level index "+R),(T=w.deliveryDirectives)!==null&&T!==void 0&&T.skip&&(A.deltaUpdateFailed=!0);return}R===this.currentLevelIndex?(C.fragmentError===0&&(C.loadError=0,this.retryCount=0),this.playlistLoaded(R,w,C.details)):(D=w.deliveryDirectives)!==null&&D!==void 0&&D.skip&&(A.deltaUpdateFailed=!0)},a.onAudioTrackSwitched=function(E,w){var D=this.hls.levels[this.currentLevelIndex];if(!D)return;if(D.audioGroupIds){for(var R=-1,A=this.hls.audioTracks[w.id].groupId,C=0;C0){var R=D.urlId,A=D.url[R];if(E)try{A=E.addDirectives(A)}catch(C){this.warn("Could not construct new URL with HLS Delivery Directives: "+C)}this.log("Attempt loading level index "+w+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+R+" "+A),this.clearTimer(),this.hls.trigger(j.Events.LEVEL_LOADING,{url:A,level:w,id:R,deliveryDirectives:E||null})}},a.removeLevel=function(E,w){var D=function(C,T){return T!==w},R=this._levels.filter(function(A,C){return C!==E?!0:A.url.length>1&&w!==void 0?(A.url=A.url.filter(D),A.audioGroupIds&&(A.audioGroupIds=A.audioGroupIds.filter(D)),A.textGroupIds&&(A.textGroupIds=A.textGroupIds.filter(D)),A.urlId=0,!0):!1}).map(function(A,C){var T=A.details;return T!=null&&T.fragments&&T.fragments.forEach(function(c){c.level=C}),A});this._levels=R,this.hls.trigger(j.Events.LEVELS_UPDATED,{levels:R})},p(s,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var w,D=this._levels;if(D.length===0)return;if(this.currentLevelIndex===E&&(w=D[E])!==null&&w!==void 0&&w.details)return;if(E<0||E>=D.length){var R=E<0;if(this.hls.trigger(j.Events.ERROR,{type:U.ErrorTypes.OTHER_ERROR,details:U.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:R,reason:"invalid level idx"}),R)return;E=Math.min(E,D.length-1)}this.clearTimer();var A=this.currentLevelIndex,C=D[A],T=D[E];this.log("switching to level "+E+" from "+A),this.currentLevelIndex=E;var c=v({},T,{level:E,maxBitrate:T.maxBitrate,uri:T.uri,urlId:T.urlId});delete c._urlId,this.hls.trigger(j.Events.LEVEL_SWITCHING,c);var S=T.details;if(!S||S.live){var y=this.switchParams(T.uri,C==null?void 0:C.details);this.loadPlaylist(y)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),s}(r.default)},"./src/controller/level-helper.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"addGroupId",function(){return U}),P.d(J,"assignTrackIdsByGroup",function(){return K}),P.d(J,"updatePTS",function(){return G}),P.d(J,"updateFragPTSDTS",function(){return L}),P.d(J,"mergeDetails",function(){return v}),P.d(J,"mapPartIntersection",function(){return m}),P.d(J,"mapFragmentIntersection",function(){return p}),P.d(J,"adjustSliding",function(){return h}),P.d(J,"addSliding",function(){return u}),P.d(J,"computeReloadInterval",function(){return f}),P.d(J,"getFragmentWithSN",function(){return l}),P.d(J,"getPartWith",function(){return o});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/logger.ts");function U(s,a,O){switch(a){case"audio":s.audioGroupIds||(s.audioGroupIds=[]),s.audioGroupIds.push(O);break;case"text":s.textGroupIds||(s.textGroupIds=[]),s.textGroupIds.push(O);break}}function K(s){var a={};s.forEach(function(O){var E=O.groupId||"";O.id=a[E]=a[E]||0,a[E]++})}function G(s,a,O){var E=s[a],w=s[O];r(E,w)}function r(s,a){var O=a.startPTS;if(Object(X.isFiniteNumber)(O)){var E=0,w;a.sn>s.sn?(E=O-s.start,w=s):(E=s.start-O,w=a),w.duration!==E&&(w.duration=E)}else if(a.sn>s.sn){var D=s.cc===a.cc;D&&s.minEndPTS?a.start=s.start+(s.minEndPTS-s.start):a.start=s.start+s.duration}else a.start=Math.max(s.start-a.duration,0)}function L(s,a,O,E,w,D){var R=E-O;R<=0&&(j.logger.warn("Fragment should have a positive duration",a),E=O+a.duration,D=w+a.duration);var A=O,C=E,T=a.startPTS,c=a.endPTS;if(Object(X.isFiniteNumber)(T)){var S=Math.abs(T-O);Object(X.isFiniteNumber)(a.deltaPTS)?a.deltaPTS=Math.max(S,a.deltaPTS):a.deltaPTS=S,A=Math.max(O,T),O=Math.min(O,T),w=Math.min(w,a.startDTS),C=Math.min(E,c),E=Math.max(E,c),D=Math.max(D,a.endDTS)}a.duration=E-O;var y=O-a.start;a.appendedPTS=E,a.start=a.startPTS=O,a.maxStartPTS=A,a.startDTS=w,a.endPTS=E,a.minEndPTS=C,a.endDTS=D;var b=a.sn;if(!s||bs.endSN)return 0;var B,F=b-s.startSN,_=s.fragments;for(_[F]=a,B=F;B>0;B--)r(_[B],_[B-1]);for(B=F;B<_.length-1;B++)r(_[B],_[B+1]);return s.fragmentHint&&r(_[_.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,y}function v(s,a){for(var O=null,E=s.fragments,w=E.length-1;w>=0;w--){var D=E[w].initSegment;if(D){O=D;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;var R=0,A;if(p(s,a,function(B,F){B.relurl&&(R=B.cc-F.cc),Object(X.isFiniteNumber)(B.startPTS)&&Object(X.isFiniteNumber)(B.endPTS)&&(F.start=F.startPTS=B.startPTS,F.startDTS=B.startDTS,F.appendedPTS=B.appendedPTS,F.maxStartPTS=B.maxStartPTS,F.endPTS=B.endPTS,F.endDTS=B.endDTS,F.minEndPTS=B.minEndPTS,F.duration=B.endPTS-B.startPTS,F.duration&&(A=F),a.PTSKnown=a.alignedSliding=!0),F.elementaryStreams=B.elementaryStreams,F.loader=B.loader,F.stats=B.stats,F.urlId=B.urlId,B.initSegment&&(F.initSegment=B.initSegment,O=B.initSegment)}),O){var C=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;C.forEach(function(B){var F;(!B.initSegment||B.initSegment.relurl===((F=O)===null||F===void 0?void 0:F.relurl))&&(B.initSegment=O)})}if(a.skippedSegments&&(a.deltaUpdateFailed=a.fragments.some(function(B){return!B}),a.deltaUpdateFailed)){j.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var T=a.skippedSegments;T--;)a.fragments.shift();a.startSN=a.fragments[0].sn,a.startCC=a.fragments[0].cc}var c=a.fragments;if(R){j.logger.warn("discontinuity sliding from playlist, take drift into account");for(var S=0;S=E.length)return;u(a,E[O].start)}function u(s,a){if(a){for(var O=s.fragments,E=s.skippedSegments;E0&&w0&&C===-1&&(this.log("Override startPosition with lastCurrentTime @"+T.toFixed(3)),C=T),this.state=j.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=C,this.tick()}else this._forceStartLoad=!0,this.state=j.State.STOPPED},R.stopLoad=function(){this._forceStartLoad=!1,w.prototype.stopLoad.call(this)},R.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_LEVEL:{var C,T=this.levels,c=this.level,S=T==null||((C=T[c])===null||C===void 0)?void 0:C.details;if(S&&(!S.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(S))break;this.state=j.State.IDLE;break}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var y,b=self.performance.now(),B=this.retryDate;(!B||b>=B||(y=this.media)!==null&&y!==void 0&&y.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=j.State.IDLE)}break;default:break}this.onTickEnd()},R.onTickEnd=function(){w.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},R.doTickIdle=function(){var C,T,c=this.hls,S=this.levelLastLoaded,y=this.levels,b=this.media,B=c.config,F=c.nextLoadLevel;if(S===null||!b&&(this.startFragRequested||!B.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!y||!y[F])return;var _=y[F];this.level=c.nextLoadLevel=F;var M=_.details;if(!M||this.state===j.State.WAITING_LEVEL||M.live&&this.levelLastLoaded!==F){this.state=j.State.WAITING_LEVEL;return}var I=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:b,L.PlaylistLevelType.MAIN);if(I===null)return;var g=I.len,H=this.getMaxBufferLength(_.maxBitrate);if(g>=H)return;if(this._streamEnded(I,M)){var $={};this.altAudio&&($.type="video"),this.hls.trigger(K.Events.BUFFER_EOS,$),this.state=j.State.ENDED;return}var ne=I.end,se=this.getNextFragment(ne,M);if(this.couldBacktrack&&!this.fragPrevious&&se&&se.sn!=="initSegment"){var Oe=se.sn-M.startSN;Oe>1&&(se=M.fragments[Oe-1],this.fragmentTracker.removeFragment(se))}if(se&&this.fragmentTracker.getState(se)===r.FragmentState.OK&&this.nextLoadPosition>ne){var ge=this.audioOnly&&!this.altAudio?v.ElementaryStreamTypes.AUDIO:v.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(b,ge,L.PlaylistLevelType.MAIN),se=this.getNextFragment(this.nextLoadPosition,M)}if(!se)return;se.initSegment&&!se.initSegment.data&&!this.bitrateTest&&(se=se.initSegment),((C=se.decryptdata)===null||C===void 0?void 0:C.keyFormat)==="identity"&&!((T=se.decryptdata)!==null&&T!==void 0&&T.key)?this.loadKey(se,M):this.loadFragment(se,M,ne)},R.loadFragment=function(C,T,c){var S,y=this.fragmentTracker.getState(C);if(this.fragCurrent=C,y===r.FragmentState.BACKTRACKED){var b=this.fragmentTracker.getBacktrackData(C);if(b){this._handleFragmentLoadProgress(b),this._handleFragmentLoadComplete(b);return}else y=r.FragmentState.NOT_LOADED}y===r.FragmentState.NOT_LOADED||y===r.FragmentState.PARTIAL?C.sn==="initSegment"?this._loadInitSegment(C):this.bitrateTest?(C.bitrateTest=!0,this.log("Fragment "+C.sn+" of level "+C.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(C)):(this.startFragRequested=!0,w.prototype.loadFragment.call(this,C,T,c)):y===r.FragmentState.APPENDING?this.reduceMaxBufferLength(C.duration)&&this.fragmentTracker.removeFragment(C):((S=this.media)===null||S===void 0?void 0:S.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},R.getAppendedFrag=function(C){var T=this.fragmentTracker.getAppendedFrag(C,L.PlaylistLevelType.MAIN);return T&&"fragment"in T?T.fragment:T},R.getBufferedFrag=function(C){return this.fragmentTracker.getBufferedFrag(C,L.PlaylistLevelType.MAIN)},R.followingBufferedFrag=function(C){return C?this.getBufferedFrag(C.end+.5):null},R.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},R.nextLevelSwitch=function(){var C=this.levels,T=this.media;if(T!=null&&T.readyState){var c,S=this.getAppendedFrag(T.currentTime);if(S&&S.start>1&&this.flushMainBuffer(0,S.start-1),!T.paused&&C){var y=this.hls.nextLoadLevel,b=C[y],B=this.fragLastKbps;B&&this.fragCurrent?c=this.fragCurrent.duration*b.maxBitrate/(1e3*B)+1:c=0}else c=0;var F=this.getBufferedFrag(T.currentTime+c);if(F){var _=this.followingBufferedFrag(F);if(_){this.abortCurrentFrag();var M=_.maxStartPTS?_.maxStartPTS:_.start,I=_.duration,g=Math.max(F.end,M+Math.min(Math.max(I-this.config.maxFragLookUpTolerance,I*.5),I*.75));this.flushMainBuffer(g,Number.POSITIVE_INFINITY)}}}},R.abortCurrentFrag=function(){var C=this.fragCurrent;this.fragCurrent=null,C!=null&&C.loader&&C.loader.abort(),this.state===j.State.KEY_LOADING&&(this.state=j.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},R.flushMainBuffer=function(C,T){w.prototype.flushMainBuffer.call(this,C,T,this.altAudio?"video":null)},R.onMediaAttached=function(C,T){w.prototype.onMediaAttached.call(this,C,T);var c=T.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),c.addEventListener("playing",this.onvplaying),c.addEventListener("seeked",this.onvseeked),this.gapController=new h.default(this.config,c,this.fragmentTracker,this.hls)},R.onMediaDetaching=function(){var C=this.media;C&&(C.removeEventListener("playing",this.onvplaying),C.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),w.prototype.onMediaDetaching.call(this)},R.onMediaPlaying=function(){this.tick()},R.onMediaSeeked=function(){var C=this.media,T=C?C.currentTime:null;Object(X.isFiniteNumber)(T)&&this.log("Media seeked to "+T.toFixed(3)),this.tick()},R.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(K.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},R.onManifestParsed=function(C,T){var c=!1,S=!1,y;T.levels.forEach(function(b){y=b.audioCodec,y&&(y.indexOf("mp4a.40.2")!==-1&&(c=!0),y.indexOf("mp4a.40.5")!==-1&&(S=!0))}),this.audioCodecSwitch=c&&S&&!Object(U.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=T.levels,this.startFragRequested=!1},R.onLevelLoading=function(C,T){var c=this.levels;if(!c||this.state!==j.State.IDLE)return;var S=c[T.level];(!S.details||S.details.live&&this.levelLastLoaded!==T.level||this.waitForCdnTuneIn(S.details))&&(this.state=j.State.WAITING_LEVEL)},R.onLevelLoaded=function(C,T){var c,S=this.levels,y=T.level,b=T.details,B=b.totalduration;if(!S){this.warn("Levels were reset while loading level "+y);return}this.log("Level "+y+" loaded ["+b.startSN+","+b.endSN+"], cc ["+b.startCC+", "+b.endCC+"] duration:"+B);var F=this.fragCurrent;F&&(this.state===j.State.FRAG_LOADING||this.state===j.State.FRAG_LOADING_WAITING_RETRY)&&(F.level!==T.level&&F.loader&&(this.state=j.State.IDLE,F.loader.abort()));var _=S[y],M=0;if(b.live||(c=_.details)!==null&&c!==void 0&&c.live){if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed)return;M=this.alignPlaylists(b,_.details)}if(_.details=b,this.levelLastLoaded=y,this.hls.trigger(K.Events.LEVEL_UPDATED,{details:b,level:y}),this.state===j.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(b))return;this.state=j.State.IDLE}this.startFragRequested?b.live&&this.synchronizeToLiveEdge(b):this.setStartPosition(b,M),this.tick()},R._handleFragmentLoadProgress=function(C){var T,c=C.frag,S=C.part,y=C.payload,b=this.levels;if(!b){this.warn("Levels were reset while fragment load was in progress. Fragment "+c.sn+" of level "+c.level+" will not be buffered");return}var B=b[c.level],F=B.details;if(!F){this.warn("Dropping fragment "+c.sn+" of level "+c.level+" after level details were reset");return}var _=B.videoCodec,M=F.PTSKnown||!F.live,I=(T=c.initSegment)===null||T===void 0?void 0:T.data,g=this._getAudioCodec(B),H=this.transmuxer=this.transmuxer||new m.default(this.hls,L.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),$=S?S.index:-1,ne=$!==-1,se=new p.ChunkMetadata(c.level,c.sn,c.stats.chunkCount,y.byteLength,$,ne),Oe=this.initPTS[c.cc];H.push(y,I,g,_,c,S,F.totalduration,M,se,Oe)},R.onAudioTrackSwitching=function(C,T){var c=this.altAudio,S=!!T.url,y=T.id;if(!S){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var b=this.fragCurrent;b!=null&&b.loader&&(this.log("Switching to main audio track, cancel main fragment load"),b.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var B=this.hls;c&&B.trigger(K.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),B.trigger(K.Events.AUDIO_TRACK_SWITCHED,{id:y})}},R.onAudioTrackSwitched=function(C,T){var c=T.id,S=!!this.hls.audioTracks[c].url;if(S){var y=this.videoBuffer;y&&this.mediaBuffer!==y&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=y)}this.altAudio=S,this.tick()},R.onBufferCreated=function(C,T){var c=T.tracks,S,y,b=!1;for(var B in c){var F=c[B];if(F.id==="main"){if(y=B,S=F,B==="video"){var _=c[B];_&&(this.videoBuffer=_.buffer)}}else b=!0}b&&S?(this.log("Alternate track found, use "+y+".buffered to schedule main fragment loading"),this.mediaBuffer=S.buffer):this.mediaBuffer=this.media},R.onFragBuffered=function(C,T){var c=T.frag,S=T.part;if(c&&c.type!==L.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(c)){this.warn("Fragment "+c.sn+(S?" p: "+S.index:"")+" of level "+c.level+" finished buffering, but was aborted. state: "+this.state),this.state===j.State.PARSED&&(this.state=j.State.IDLE);return}var y=S?S.stats:c.stats;this.fragLastKbps=Math.round(8*y.total/(y.buffering.end-y.loading.first)),c.sn!=="initSegment"&&(this.fragPrevious=c),this.fragBufferedComplete(c,S)},R.onError=function(C,T){switch(T.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(L.PlaylistLevelType.MAIN,T);break;case u.ErrorDetails.LEVEL_LOAD_ERROR:case u.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==j.State.ERROR&&(T.fatal?(this.warn(""+T.details),this.state=j.State.ERROR):!T.levelRetry&&this.state===j.State.WAITING_LEVEL&&(this.state=j.State.IDLE));break;case u.ErrorDetails.BUFFER_FULL_ERROR:if(T.parent==="main"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var c=!0,S=this.getFwdBufferInfo(this.media,L.PlaylistLevelType.MAIN);S&&S.len>.5&&(c=!this.reduceMaxBufferLength(S.len)),c&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},R.checkBuffer=function(){var C=this.media,T=this.gapController;if(!C||!T||!C.readyState)return;var c=G.BufferHelper.getBuffered(C);!this.loadedmetadata&&c.length?(this.loadedmetadata=!0,this.seekToStartPos()):T.poll(this.lastCurrentTime),this.lastCurrentTime=C.currentTime},R.onFragLoadEmergencyAborted=function(){this.state=j.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},R.onBufferFlushed=function(C,T){var c=T.type;if(c!==v.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var S=(c===v.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(S,c,L.PlaylistLevelType.MAIN)}},R.onLevelsUpdated=function(C,T){this.levels=T.levels},R.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},R.seekToStartPos=function(){var C=this.media,T=C.currentTime,c=this.startPosition;if(c>=0&&T0&&(b1&&C.seeking===!1){var c=C.currentTime;if(G.BufferHelper.isBuffered(C,c)?T=this.getAppendedFrag(c):G.BufferHelper.isBuffered(C,c+.1)&&(T=this.getAppendedFrag(c+.1)),T){var S=this.fragPlaying,y=T.level;(!S||T.sn!==S.sn||S.level!==y||T.urlId!==S.urlId)&&(this.hls.trigger(K.Events.FRAG_CHANGED,{frag:T}),(!S||S.level!==y)&&this.hls.trigger(K.Events.LEVEL_SWITCHED,{level:y}),this.fragPlaying=T)}}},o(D,[{key:"nextLevel",get:function(){var C=this.nextBufferedFrag;return C?C.level:-1}},{key:"currentLevel",get:function(){var C=this.media;if(C){var T=this.getAppendedFrag(C.currentTime);if(T)return T.level}return-1}},{key:"nextBufferedFrag",get:function(){var C=this.media;if(C){var T=this.getAppendedFrag(C.currentTime);return this.followingBufferedFrag(T)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),D}(j.default)},"./src/controller/subtitle-stream-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"SubtitleStreamController",function(){return s});var X=P("./src/events.ts"),j=P("./src/utils/logger.ts"),U=P("./src/utils/buffer-helper.ts"),K=P("./src/controller/fragment-finders.ts"),G=P("./src/utils/discontinuities.ts"),r=P("./src/controller/level-helper.ts"),L=P("./src/controller/fragment-tracker.ts"),v=P("./src/controller/base-stream-controller.ts"),m=P("./src/types/loader.ts"),p=P("./src/types/level.ts");function h(a,O){for(var E=0;E=T[y].start&&S<=T[y].end){c=T[y];break}var b=A.start+A.duration;c?c.end=b:(c={start:S,end:b},T.push(c)),this.fragmentTracker.fragBuffered(A)},E.onBufferFlushing=function(D,R){var A=R.startOffset,C=R.endOffset;if(A===0&&C!==Number.POSITIVE_INFINITY){var T=this.currentTrackId,c=this.levels;if(!c.length||!c[T]||!c[T].details)return;var S=c[T].details,y=S.targetduration,b=C-y;if(b<=0)return;R.endOffsetSubtitles=Math.max(0,b),this.tracksBuffered.forEach(function(B){for(var F=0;F=S.length||T!==c||!y)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,C.live||(A=y.details)!==null&&A!==void 0&&A.live){var b=this.mainDetails;if(C.deltaUpdateFailed||!b)return;var B=b.fragments[0];if(!y.details)C.hasProgramDateTime&&b.hasProgramDateTime?Object(G.alignMediaPlaylistByPDT)(C,b):B&&Object(r.addSliding)(C,B.start);else{var F=this.alignPlaylists(C,y.details);F===0&&B&&Object(r.addSliding)(C,B.start)}}if(y.details=C,this.levelLastLoaded=T,this.tick(),C.live&&!this.fragCurrent&&this.media&&this.state===v.State.IDLE){var _=Object(K.findFragmentByPTS)(null,C.fragments,this.media.currentTime,0);_||(this.warn("Subtitle playlist not aligned with playback"),y.details=void 0)}},E._handleFragmentLoadComplete=function(D){var R=D.frag,A=D.payload,C=R.decryptdata,T=this.hls;if(this.fragContextChanged(R))return;if(A&&A.byteLength>0&&C&&C.key&&C.iv&&C.method==="AES-128"){var c=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(A),C.key.buffer,C.iv.buffer).then(function(S){var y=performance.now();T.trigger(X.Events.FRAG_DECRYPTED,{frag:R,payload:S,stats:{tstart:c,tdecrypt:y}})})}},E.doTick=function(){if(!this.media){this.state=v.State.IDLE;return}if(this.state===v.State.IDLE){var D,R=this.currentTrackId,A=this.levels;if(!A.length||!A[R]||!A[R].details)return;var C=A[R].details,T=C.targetduration,c=this.config,S=this.media,y=U.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,S.currentTime-T,c.maxBufferHole),b=y.end,B=y.len,F=this.getMaxBufferLength()+T;if(B>F)return;console.assert(C,"Subtitle track details are defined on idle subtitle stream controller tick");var _=C.fragments,M=_.length,I=C.edge,g,H=this.fragPrevious;if(b-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)},f.pollTrackChange=function(o){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,o)},f.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 o=p(this.media.textTracks);o.forEach(function(s){Object(j.clearCurrentCues)(s)}),this.subtitleTrack=-1,this.media=null},f.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},f.onManifestParsed=function(o,s){this.tracks=s.subtitleTracks},f.onSubtitleTrackLoaded=function(o,s){var a=s.id,O=s.details,E=this.trackId,w=this.tracksInGroup[E];if(!w){this.warn("Invalid subtitle track id "+a);return}var D=w.details;w.details=s.details,this.log("subtitle track "+a+" loaded ["+O.startSN+"-"+O.endSN+"]"),a===this.trackId&&(this.retryCount=0,this.playlistLoaded(a,s,D))},f.onLevelLoading=function(o,s){this.switchLevel(s.level)},f.onLevelSwitching=function(o,s){this.switchLevel(s.level)},f.switchLevel=function(o){var s=this.hls.levels[o];if(!(s!=null&&s.textGroupIds))return;var a=s.textGroupIds[s.urlId];if(this.groupId!==a){var O=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(R){return!a||R.groupId===a});this.tracksInGroup=E;var w=this.findTrackId(O==null?void 0:O.name)||this.findTrackId();this.groupId=a;var D={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+a+'" group-id'),this.hls.trigger(X.Events.SUBTITLE_TRACKS_UPDATED,D),w!==-1&&this.setSubtitleTrack(w,O)}},f.findTrackId=function(o){for(var s=this.tracksInGroup,a=0;a=O.length)return;this.clearTimer();var E=O[o];if(this.log("Switching to subtitle track "+o),this.trackId=o,E){var w=E.id,D=E.groupId,R=D===void 0?"":D,A=E.name,C=E.type,T=E.url;this.hls.trigger(X.Events.SUBTITLE_TRACK_SWITCH,{id:w,groupId:R,name:A,type:C,url:T});var c=this.switchParams(E.url,s==null?void 0:s.details);this.loadPlaylist(c)}else this.hls.trigger(X.Events.SUBTITLE_TRACK_SWITCH,{id:o})},f.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var o=-1,s=p(this.media.textTracks),a=0;a=0&&(C[0]=Math.min(C[0],O),C[1]=Math.max(C[1],E),R=!0,T/(E-O)>.5))return}if(R||D.push([O,E]),this.config.renderTextTracksNatively){var c=this.captionsTracks[a];this.Cues.newCue(c,O,E,w)}else{var S=this.Cues.newCue(null,O,E,w);this.hls.trigger(j.Events.CUES_PARSED,{type:"captions",cues:S,track:a})}},o.onInitPtsFound=function(a,O){var E=this,w=O.frag,D=O.id,R=O.initPTS,A=O.timescale,C=this.unparsedVttFrags;D==="main"&&(this.initPTS[w.cc]=R,this.timescale[w.cc]=A),C.length&&(this.unparsedVttFrags=[],C.forEach(function(T){E.onFragLoaded(j.Events.FRAG_LOADED,T)}))},o.getExistingTrack=function(a){var O=this.media;if(O)for(var E=0;E>>8^A&255^99,L[w]=A,v[A]=w;var C=E[w],T=E[C],c=E[T],S=E[A]*257^A*16843008;p[w]=S<<24|S>>>8,h[w]=S<<16|S>>>16,u[w]=S<<8|S>>>24,f[w]=S,S=c*16843009^T*65537^C*257^w*16843008,o[A]=S<<24|S>>>8,s[A]=S<<16|S>>>16,a[A]=S<<8|S>>>24,O[A]=S,w?(w=C^E[E[E[c^C]]],D^=E[E[D]]):w=D=1}},G.expandKey=function(L){for(var v=this.uint8ArrayToUint32Array_(L),m=!0,p=0;p>>6)+1;var S=(a[O+2]&60)>>>2;if(S>c.length-1){s.trigger(U.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+S});return}return R=(a[O+2]&1)<<2,R|=(a[O+3]&192)>>>6,X.logger.log("manifest codec:"+E+", ADTS type:"+w+", samplingIndex:"+S),/firefox/i.test(C)?S>=6?(w=5,A=new Array(4),D=S-3):(w=2,A=new Array(2),D=S):C.indexOf("android")!==-1?(w=2,A=new Array(2),D=S):(w=5,A=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&S>=6?D=S-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(S>=6&&R===1||/vivaldi/i.test(C))||!E&&R===1)&&(w=2,A=new Array(2)),D=S)),A[0]=w<<3,A[0]|=(S&14)>>1,A[1]|=(S&1)<<7,A[1]|=R<<3,w===5&&(A[1]|=(D&14)>>1,A[2]=(D&1)<<7,A[2]|=2<<2,A[3]=0),{config:A,samplerate:c[S],channelCount:R,codec:"mp4a.40."+w,manifestCodec:T}}function G(s,a){return s[a]===255&&(s[a+1]&246)===240}function r(s,a){return s[a+1]&1?7:9}function L(s,a){return(s[a+3]&3)<<11|s[a+4]<<3|(s[a+5]&224)>>>5}function v(s,a){return a+5=s.length)return!1;var E=L(s,a);if(E<=O)return!1;var w=a+E;return w===s.length||m(s,w)}return!1}function u(s,a,O,E,w){if(!s.samplerate){var D=K(a,O,E,w);if(!D)return;s.config=D.config,s.samplerate=D.samplerate,s.channelCount=D.channelCount,s.codec=D.codec,s.manifestCodec=D.manifestCodec,X.logger.log("parsed codec:"+s.codec+", rate:"+D.samplerate+", channels:"+D.channelCount)}}function f(s){return 1024*9e4/s}function l(s,a,O,E,w){var D=r(s,a),R=L(s,a);if(R-=D,R>0){var A=O+E*w;return{headerLength:D,frameLength:R,stamp:A}}}function o(s,a,O,E,w){var D=f(s.samplerate),R=l(a,O,E,w,D);if(R){var A=R.frameLength,C=R.headerLength,T=R.stamp,c=C+A,S=Math.max(0,O+c-a.length),y;S?(y=new Uint8Array(c-C),y.set(a.subarray(O+C,a.length),0)):y=a.subarray(O+C,O+c);var b={unit:y,pts:T};return S||s.samples.push(b),{sample:b,length:c,missing:S}}}},"./src/demux/base-audio-demuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"initPTSFn",function(){return L});var X=P("./src/polyfills/number.ts"),j=P("./src/demux/id3.ts"),U=P("./src/demux/dummy-demuxed-track.ts"),K=P("./src/utils/mp4-tools.ts"),G=P("./src/utils/typed-array.ts"),r=function(){function v(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var m=v.prototype;return m.resetInitSegment=function(h,u,f){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},m.resetTimeStamp=function(){},m.resetContiguity=function(){},m.canParse=function(h,u){return!1},m.appendFrame=function(h,u,f){},m.demux=function(h,u){this.cachedData&&(h=Object(K.appendUint8Array)(this.cachedData,h),this.cachedData=null);var f=j.getID3Data(h,0),l=f?f.length:0,o,s,a=this._audioTrack,O=this._id3Track,E=f?j.getTimeStamp(f):void 0,w=h.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=L(E,u)),f&&f.length>0&&O.samples.push({pts:this.initPTS,dts:this.initPTS,data:f}),s=this.initPTS;lr?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,L=r>>3,r-=L>>3,this.bytesAvailable-=L,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},K.readBits=function(r){var L=Math.min(this.bitsAvailable,r),v=this.word>>>32-L;return r>32&&X.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=L,this.bitsAvailable>0?this.word<<=L:this.bytesAvailable>0&&this.loadWord(),L=r-L,L>0&&this.bitsAvailable?v<>>r)!==0)return this.word<<=r,this.bitsAvailable-=r,r;return this.loadWord(),r+this.skipLZ()},K.skipUEG=function(){this.skipBits(1+this.skipLZ())},K.skipEG=function(){this.skipBits(1+this.skipLZ())},K.readUEG=function(){var r=this.skipLZ();return this.readBits(r+1)-1},K.readEG=function(){var r=this.readUEG();return 1&r?1+r>>>1:-1*(r>>>1)},K.readBoolean=function(){return this.readBits(1)===1},K.readUByte=function(){return this.readBits(8)},K.readUShort=function(){return this.readBits(16)},K.readUInt=function(){return this.readBits(32)},K.skipScalingList=function(r){for(var L=8,v=8,m,p=0;p0?w.subarray(R,R+A):void 0},K=function(w,D){var R=0;return R=(w[D]&127)<<21,R|=(w[D+1]&127)<<14,R|=(w[D+2]&127)<<7,R|=w[D+3]&127,R},G=function(w,D){return X(w,D)&&K(w,D+6)+10<=w.length-D},r=function(w){for(var D=m(w),R=0;R>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:b+=String.fromCharCode(c);break;case 12:case 13:S=w[B++],b+=String.fromCharCode((c&31)<<6|S&63);break;case 14:S=w[B++],y=w[B++],b+=String.fromCharCode((c&15)<<12|(S&63)<<6|(y&63)<<0);break;default:}}return b},s={decodeTextFrame:u},a;function O(){return!a&&typeof self.TextDecoder!="undefined"&&(a=new self.TextDecoder("utf-8")),a}},"./src/demux/mp3demuxer.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/demux/base-audio-demuxer.ts"),j=P("./src/demux/id3.ts"),U=P("./src/utils/logger.ts"),K=P("./src/demux/mpegaudio.ts");function G(v,m){v.prototype=Object.create(m.prototype),v.prototype.constructor=v,r(v,m)}function r(v,m){return r=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},r(v,m)}var L=function(v){G(m,v);function m(){return v.apply(this,arguments)||this}var p=m.prototype;return p.resetInitSegment=function(u,f,l){v.prototype.resetInitSegment.call(this,u,f,l),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:u,duration:l,inputTimeScale:9e4,dropped:0}},m.probe=function(u){if(!u)return!1;for(var f=j.getID3Data(u,0)||[],l=f.length,o=u.length;l0},G.demux=function(L){var v=L,m=Object(j.dummyTrack)();if(this.config.progressive){this.remainderData&&(v=Object(X.appendUint8Array)(this.remainderData,L));var p=Object(X.segmentValidRange)(v);this.remainderData=p.remainder,m.samples=p.valid||new Uint8Array}else m.samples=v;return{audioTrack:Object(j.dummyTrack)(),avcTrack:m,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},G.flush=function(){var L=Object(j.dummyTrack)();return L.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(j.dummyTrack)(),avcTrack:L,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},G.demuxSampleAes=function(L,v,m){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},G.destroy=function(){},K}();U.minProbeByteLength=1024,J.default=U},"./src/demux/mpegaudio.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"appendFrame",function(){return r}),P.d(J,"parseHeader",function(){return L}),P.d(J,"isHeaderPattern",function(){return v}),P.d(J,"isHeader",function(){return m}),P.d(J,"canParse",function(){return p}),P.d(J,"probe",function(){return h});var X=null,j=[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],U=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],K=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],G=[0,1,1,4];function r(u,f,l,o,s){if(l+24>f.length)return;var a=L(f,l);if(a&&l+a.frameLength<=f.length){var O=a.samplesPerFrame*9e4/a.sampleRate,E=o+s*O,w={unit:f.subarray(l,l+a.frameLength),pts:E,dts:E};return u.config=[],u.channelCount=a.channelCount,u.samplerate=a.sampleRate,u.samples.push(w),{sample:w,length:a.frameLength,missing:0}}}function L(u,f){var l=u[f+1]>>3&3,o=u[f+1]>>1&3,s=u[f+2]>>4&15,a=u[f+2]>>2&3;if(l!==1&&s!==0&&s!==15&&a!==3){var O=u[f+2]>>1&1,E=u[f+3]>>6,w=l===3?3-o:o===3?3:4,D=j[w*14+s-1]*1e3,R=l===3?0:l===2?1:2,A=U[R*3+a],C=E===3?1:2,T=K[l][o],c=G[o],S=T*8*c,y=Math.floor(T*D/A+O)*c;if(X===null){var b=navigator.userAgent||"",B=b.match(/Chrome\/(\d+)/i);X=B?parseInt(B[1]):0}var F=!!X&&X<=87;return F&&o===2&&D>=224e3&&E===0&&(u[f+3]=u[f+3]|128),{sampleRate:A,channelCount:C,frameLength:y,samplesPerFrame:S}}}function v(u,f){return u[f]===255&&(u[f+1]&224)===224&&(u[f+1]&6)!==0}function m(u,f){return f+1=L.length){m();return}if(L[v].unit.length<32)continue;var p=this.decrypter.isSync();if(this.decryptAacSample(L,v,m,p),!p)return}},G.getAvcEncryptedData=function(L){for(var v=Math.floor((L.length-48)/160)*16+16,m=new Int8Array(v),p=0,h=32;h<=L.length-16;h+=160,p+=16)m.set(L.subarray(h,h+16),p);return m},G.getAvcDecryptedUnit=function(L,v){for(var m=new Uint8Array(v),p=0,h=32;h<=L.length-16;h+=160,p+=16)L.set(m.subarray(p,p+16),h);return L},G.decryptAvcSample=function(L,v,m,p,h,u){var f=Object(j.discardEPB)(h.data),l=this.getAvcEncryptedData(f),o=this;this.decryptBuffer(l.buffer,function(s){h.data=o.getAvcDecryptedUnit(f,s),u||o.decryptAvcSamples(L,v,m+1,p)})},G.decryptAvcSamples=function(L,v,m,p){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;v++,m=0){if(v>=L.length){p();return}for(var h=L[v].units;!(m>=h.length);m++){var u=h[m];if(u.data.length<=48||u.type!==1&&u.type!==5)continue;var f=this.decrypter.isSync();if(this.decryptAvcSample(L,v,m,p,u,f),!f)return}}},K}();J.default=U},"./src/demux/transmuxer-interface.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./node_modules/webworkify-webpack/index.js"),j=P.n(X),U=P("./src/events.ts"),K=P("./src/demux/transmuxer.ts"),G=P("./src/utils/logger.ts"),r=P("./src/errors.ts"),L=P("./src/utils/mediasource-helper.ts"),v=P("./node_modules/eventemitter3/index.js"),m=P.n(v),p=Object(L.getMediaSource)()||{isTypeSupported:function(){return!1}},h=function(){function u(l,o,s,a){var O=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=l,this.id=o,this.onTransmuxComplete=s,this.onFlush=a;var E=l.config,w=function(T,c){c=c||{},c.frag=O.frag,c.id=O.id,l.trigger(T,c)};this.observer=new v.EventEmitter,this.observer.on(U.Events.FRAG_DECRYPTED,w),this.observer.on(U.Events.ERROR,w);var D={mp4:p.isTypeSupported("video/mp4"),mpeg:p.isTypeSupported("audio/mpeg"),mp3:p.isTypeSupported('audio/mp4; codecs="mp3"')},R=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){G.logger.log("demuxing in webworker");var A;try{A=this.worker=X("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),A.addEventListener("message",this.onwmsg),A.onerror=function(C){l.trigger(U.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(C.message+" ("+C.filename+":"+C.lineno+")")})},A.postMessage({cmd:"init",typeSupported:D,vendor:R,id:o,config:JSON.stringify(E)})}catch(C){G.logger.warn("Error in worker:",C),G.logger.error("Error while initializing DemuxerWorker, fallback to inline"),A&&self.URL.revokeObjectURL(A.objectURL),this.transmuxer=new K.default(this.observer,D,E,R,o),this.worker=null}}else this.transmuxer=new K.default(this.observer,D,E,R,o)}var f=u.prototype;return f.destroy=function(){var o=this.worker;if(o)o.removeEventListener("message",this.onwmsg),o.terminate(),this.worker=null;else{var s=this.transmuxer;s&&(s.destroy(),this.transmuxer=null)}var a=this.observer;a&&a.removeAllListeners(),this.observer=null},f.push=function(o,s,a,O,E,w,D,R,A,C){var T=this;A.transmuxing.start=self.performance.now();var c=this.transmuxer,S=this.worker,y=w?w.start:E.start,b=E.decryptdata,B=this.frag,F=!(B&&E.cc===B.cc),_=!(B&&A.level===B.level),M=B?A.sn-B.sn:-1,I=this.part?A.part-this.part.index:1,g=!_&&(M===1||M===0&&I===1),H=self.performance.now();(_||M||E.stats.parsing.start===0)&&(E.stats.parsing.start=H),w&&(I||!g)&&(w.stats.parsing.start=H);var $=new K.TransmuxState(F,g,R,_,y);if(!g||F){G.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+A.sn+" p: "+A.part+" level: "+A.level+" id: "+A.id+` + Time to underbuffer: `+F.toFixed(3)+" s"),s.nextLoadLevel=M,this.bwEstimator.sample(R,w.loaded),this.clearTimer(),l.loader&&(this.fragCurrent=this.partCurrent=null,l.loader.abort()),s.trigger(U.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:l,part:o,stats:w})},u.onFragLoaded=function(l,o){var s=o.frag,a=o.part;if(s.type===r.PlaylistLevelType.MAIN&&Object(X.isFiniteNumber)(s.sn)){var O=a?a.stats:s.stats,E=a?a.duration:s.duration;if(this.clearTimer(),this.lastLoadedFragLevel=s.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var w=this.hls.levels[s.level],D=(w.loaded?w.loaded.bytes:0)+O.loaded,R=(w.loaded?w.loaded.duration:0)+E;w.loaded={bytes:D,duration:R},w.realBitrate=Math.round(8*D/R)}if(s.bitrateTest){var A={stats:O,frag:s,part:a,id:s.type};this.onFragBuffered(U.Events.FRAG_BUFFERED,A),s.bitrateTest=!1}}},u.onFragBuffered=function(l,o){var s=o.frag,a=o.part,O=a?a.stats:s.stats;if(O.aborted)return;if(s.type!==r.PlaylistLevelType.MAIN||s.sn==="initSegment")return;var E=O.parsing.end-O.loading.start;this.bwEstimator.sample(E,O.loaded),O.bwEstimate=this.bwEstimator.getEstimate(),s.bitrateTest?this.bitrateTestDelay=E/1e3:this.bitrateTestDelay=0},u.onError=function(l,o){switch(o.details){case G.ErrorDetails.FRAG_LOAD_ERROR:case G.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},u.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},u.getNextABRAutoLevel=function(){var l=this.fragCurrent,o=this.partCurrent,s=this.hls,a=s.maxAutoLevel,O=s.config,E=s.minAutoLevel,w=s.media,D=o?o.duration:l?l.duration:0,R=w?w.currentTime:0,A=w&&w.playbackRate!==0?Math.abs(w.playbackRate):1,C=this.bwEstimator?this.bwEstimator.getEstimate():O.abrEwmaDefaultEstimate,T=(K.BufferHelper.bufferInfo(w,R,O.maxBufferHole).end-R)/A,d=this.findBestLevel(C,E,a,T,O.abrBandWidthFactor,O.abrBandWidthUpFactor);if(d>=0)return d;L.logger.trace((T?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var S=D?Math.min(D,O.maxStarvationDelay):O.maxStarvationDelay,y=O.abrBandWidthFactor,b=O.abrBandWidthUpFactor;if(!T){var B=this.bitrateTestDelay;if(B){var F=D?Math.min(D,O.maxLoadingDelay):O.maxLoadingDelay;S=F-B,L.logger.trace("bitrate test took "+Math.round(1e3*B)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*S)+" ms"),y=b=1}}return d=this.findBestLevel(C,E,a,T+S,y,b),Math.max(d,0)},u.findBestLevel=function(l,o,s,a,O,E){for(var w,D=this.fragCurrent,R=this.partCurrent,A=this.lastLoadedFragLevel,C=this.hls.levels,T=C[A],d=!!(T!=null&&(w=T.details)!==null&&w!==void 0&&w.live),S=T==null?void 0:T.codecSet,y=R?R.duration:D?D.duration:0,b=s;b>=o;b--){var B=C[b];if(!B||S&&B.codecSet!==S)continue;var F=B.details,_=(R?F==null?void 0:F.partTarget:F==null?void 0:F.averagetargetduration)||y,M=void 0;b<=A?M=O*l:M=E*l;var I=C[b].maxBitrate,g=I*_/M;if(L.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+b+"/"+Math.round(M)+"/"+I+"/"+_+"/"+a+"/"+g),M>I&&(!g||d&&!this.bitrateTestDelay||g0&&T===-1?(this.log("Override startPosition with lastCurrentTime @"+d.toFixed(3)),this.state=j.State.IDLE):(this.loadedmetadata=!1,this.state=j.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=T,this.tick()},A.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_TRACK:{var T,d=this.levels,S=this.trackId,y=d==null||((T=d[S])===null||T===void 0)?void 0:T.details;if(y){if(this.waitForCdnTuneIn(y))break;this.state=j.State.WAITING_INIT_PTS}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var b,B=performance.now(),F=this.retryDate;(!F||B>=F||(b=this.media)!==null&&b!==void 0&&b.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=j.State.IDLE);break}case j.State.WAITING_INIT_PTS:{var _=this.waitingData;if(_){var M=_.frag,I=_.part,g=_.cache,H=_.complete;if(this.initPTS[M.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.FRAG_LOADING;var $=g.flush(),ne={frag:M,part:I,payload:$,networkDetails:null};this._handleFragmentLoadProgress(ne),H&&D.prototype._handleFragmentLoadComplete.call(this,ne)}else if(this.videoTrackCC!==this.waitingVideoCC)o.logger.log("Waiting fragment cc ("+M.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var se=this.getLoadPosition(),Oe=K.BufferHelper.bufferInfo(this.mediaBuffer,se,this.config.maxBufferHole),ge=Object(u.fragmentWithinToleranceTest)(Oe.end,this.config.maxFragLookUpTolerance,M);ge<0&&(o.logger.log("Waiting fragment cc ("+M.cc+") @ "+M.start+" cancelled because another fragment at "+Oe.end+" is needed"),this.clearWaitingFragment())}}else this.state=j.State.IDLE}}this.onTickEnd()},A.clearWaitingFragment=function(){var T=this.waitingData;T&&(this.fragmentTracker.removeFragment(T.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=j.State.IDLE)},A.onTickEnd=function(){var T=this.media;if(!T||!T.readyState)return;var d=this.mediaBuffer?this.mediaBuffer:T,S=d.buffered;!this.loadedmetadata&&S.length&&(this.loadedmetadata=!0),this.lastCurrentTime=T.currentTime},A.doTickIdle=function(){var T,d,S=this.hls,y=this.levels,b=this.media,B=this.trackId,F=S.config;if(!y||!y[B])return;if(!b&&(this.startFragRequested||!F.startFragPrefetch))return;var _=y[B],M=_.details;if(!M||M.live&&this.levelLastLoaded!==B||this.waitForCdnTuneIn(M)){this.state=j.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,v.ElementaryStreamTypes.AUDIO,L.PlaylistLevelType.AUDIO));var I=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,L.PlaylistLevelType.AUDIO);if(I===null)return;var g=I.len,H=this.getMaxBufferLength(),$=this.audioSwitch;if(g>=H&&!$)return;if(!$&&this._streamEnded(I,M)){S.trigger(U.Events.BUFFER_EOS,{type:"audio"}),this.state=j.State.ENDED;return}var ne=M.fragments,se=ne[0].start,Oe=I.end;if($){var ge=this.getLoadPosition();Oe=ge,M.PTSKnown&&gese||I.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),b.currentTime=se+.05))}var Te=this.getNextFragment(Oe,M);if(!Te){this.bufferFlushed=!0;return}((T=Te.decryptdata)===null||T===void 0?void 0:T.keyFormat)==="identity"&&!((d=Te.decryptdata)!==null&&d!==void 0&&d.key)?this.loadKey(Te,M):this.loadFragment(Te,M,Oe)},A.getMaxBufferLength=function(){var T=D.prototype.getMaxBufferLength.call(this),d=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,L.PlaylistLevelType.MAIN);return d===null?T:Math.max(T,d.len)},A.onMediaDetaching=function(){this.videoBuffer=null,D.prototype.onMediaDetaching.call(this)},A.onAudioTracksUpdated=function(T,d){var S=d.audioTracks;this.resetTransmuxer(),this.levels=S.map(function(y){return new r.Level(y)})},A.onAudioTrackSwitching=function(T,d){var S=!!d.url;this.trackId=d.id;var y=this.fragCurrent;y!=null&&y.loader&&y.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),S?this.setInterval(E):this.resetTransmuxer(),S?(this.audioSwitch=!0,this.state=j.State.IDLE):this.state=j.State.STOPPED,this.tick()},A.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},A.onLevelLoaded=function(T,d){this.mainDetails=d.details},A.onAudioTrackLoaded=function(T,d){var S,y=this.levels,b=d.details,B=d.id;if(!y){this.warn("Audio tracks were reset while loading level "+B);return}this.log("Track "+B+" loaded ["+b.startSN+","+b.endSN+"],duration:"+b.totalduration);var F=y[B],_=0;if(b.live||(S=F.details)!==null&&S!==void 0&&S.live){var M=this.mainDetails;if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed||!M)return;!F.details&&b.hasProgramDateTime&&M.hasProgramDateTime?(Object(f.alignMediaPlaylistByPDT)(b,M),_=b.fragments[0].start):_=this.alignPlaylists(b,F.details)}F.details=b,this.levelLastLoaded=B,!this.startFragRequested&&(this.mainDetails||!b.live)&&this.setStartPosition(F.details,_),this.state===j.State.WAITING_TRACK&&!this.waitForCdnTuneIn(b)&&(this.state=j.State.IDLE),this.tick()},A._handleFragmentLoadProgress=function(T){var d,S=T.frag,y=T.part,b=T.payload,B=this.config,F=this.trackId,_=this.levels;if(!_){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+S.sn+" of level "+S.level+" will not be buffered");return}var M=_[F];console.assert(M,"Audio track is defined on fragment load progress");var I=M.details;console.assert(I,"Audio track details are defined on fragment load progress");var g=B.defaultAudioCodec||M.audioCodec||"mp4a.40.2",H=this.transmuxer;H||(H=this.transmuxer=new p.default(this.hls,L.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var $=this.initPTS[S.cc],ne=(d=S.initSegment)===null||d===void 0?void 0:d.data;if($!==void 0){var se=!1,Oe=y?y.index:-1,ge=Oe!==-1,Te=new h.ChunkMetadata(S.level,S.sn,S.stats.chunkCount,b.byteLength,Oe,ge);H.push(b,ne,g,"",S,y,I.totalduration,se,Te,$)}else{o.logger.log("Unknown video PTS for cc "+S.cc+", waiting for video PTS before demuxing audio frag "+S.sn+" of ["+I.startSN+" ,"+I.endSN+"],track "+F);var Re=this.waitingData=this.waitingData||{frag:S,part:y,cache:new m.default,complete:!1},Le=Re.cache;Le.push(new Uint8Array(b)),this.waitingVideoCC=this.videoTrackCC,this.state=j.State.WAITING_INIT_PTS}},A._handleFragmentLoadComplete=function(T){if(this.waitingData){this.waitingData.complete=!0;return}D.prototype._handleFragmentLoadComplete.call(this,T)},A.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},A.onBufferCreated=function(T,d){var S=d.tracks.audio;S&&(this.mediaBuffer=S.buffer),d.tracks.video&&(this.videoBuffer=d.tracks.video.buffer)},A.onFragBuffered=function(T,d){var S=d.frag,y=d.part;if(S.type!==L.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(S)){this.warn("Fragment "+S.sn+(y?" p: "+y.index:"")+" of level "+S.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}S.sn!=="initSegment"&&(this.fragPrevious=S,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(U.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(S,y)},A.onError=function(T,d){switch(d.details){case l.ErrorDetails.FRAG_LOAD_ERROR:case l.ErrorDetails.FRAG_LOAD_TIMEOUT:case l.ErrorDetails.KEY_LOAD_ERROR:case l.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(L.PlaylistLevelType.AUDIO,d);break;case l.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case l.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==j.State.ERROR&&this.state!==j.State.STOPPED&&(this.state=d.fatal?j.State.ERROR:j.State.IDLE,this.warn(d.details+" while loading frag, switching to "+this.state+" state"));break;case l.ErrorDetails.BUFFER_FULL_ERROR:if(d.parent==="audio"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var S=!0,y=this.getFwdBufferInfo(this.mediaBuffer,L.PlaylistLevelType.AUDIO);y&&y.len>.5&&(S=!this.reduceMaxBufferLength(y.len)),S&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,D.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},A.onBufferFlushed=function(T,d){var S=d.type;S===v.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},A._handleTransmuxComplete=function(T){var d,S="audio",y=this.hls,b=T.remuxResult,B=T.chunkMeta,F=this.getCurrentContext(B);if(!F){this.warn("The loading context changed while buffering fragment "+B.sn+" of level "+B.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(B.level);return}var _=F.frag,M=F.part,I=b.audio,g=b.text,H=b.id3,$=b.initSegment;if(this.fragContextChanged(_))return;if(this.state=j.State.PARSING,this.audioSwitch&&I&&this.completeAudioSwitch(),$!=null&&$.tracks&&(this._bufferInitSegment($.tracks,_,B),y.trigger(U.Events.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:S,tracks:$.tracks})),I){var ne=I.startPTS,se=I.endPTS,Oe=I.startDTS,ge=I.endDTS;M&&(M.elementaryStreams[v.ElementaryStreamTypes.AUDIO]={startPTS:ne,endPTS:se,startDTS:Oe,endDTS:ge}),_.setElementaryStreamInfo(v.ElementaryStreamTypes.AUDIO,ne,se,Oe,ge),this.bufferFragmentData(I,_,M,B)}if(H!=null&&(d=H.samples)!==null&&d!==void 0&&d.length){var Te=s({frag:_,id:S},H);y.trigger(U.Events.FRAG_PARSING_METADATA,Te)}if(g){var Re=s({frag:_,id:S},g);y.trigger(U.Events.FRAG_PARSING_USERDATA,Re)}},A._bufferInitSegment=function(T,d,S){if(this.state!==j.State.PARSING)return;T.video&&delete T.video;var y=T.audio;if(!y)return;y.levelCodec=y.codec,y.id="audio",this.log("Init audio buffer, container:"+y.container+", codecs[parsed]=["+y.codec+"]"),this.hls.trigger(U.Events.BUFFER_CODECS,T);var b=y.initSegment;if(b!=null&&b.byteLength){var B={type:"audio",frag:d,part:null,chunkMeta:S,parent:d.type,data:b};this.hls.trigger(U.Events.BUFFER_APPENDING,B)}this.tick()},A.loadFragment=function(T,d,S){var y=this.fragmentTracker.getState(T);this.fragCurrent=T,(this.audioSwitch||y===G.FragmentState.NOT_LOADED||y===G.FragmentState.PARTIAL)&&(T.sn==="initSegment"?this._loadInitSegment(T):d.live&&!Object(X.isFiniteNumber)(this.initPTS[T.cc])?(this.log("Waiting for video PTS in continuity counter "+T.cc+" of live stream before loading audio fragment "+T.sn+" of level "+this.trackId),this.state=j.State.WAITING_INIT_PTS):(this.startFragRequested=!0,D.prototype.loadFragment.call(this,T,d,S)))},A.completeAudioSwitch=function(){var T=this.hls,d=this.media,S=this.trackId;d&&(this.log("Switching audio track : flushing all audio"),D.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,T.trigger(U.Events.AUDIO_TRACK_SWITCHED,{id:S})},R}(j.default);J.default=w},"./src/controller/audio-track-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/controller/base-playlist-controller.ts"),K=P("./src/types/loader.ts");function G(p,h){for(var u=0;u=o.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var s=o[this.trackId];this.log("Now switching to audio-track index "+l);var a=o[l],O=a.id,E=a.groupId,w=E===void 0?"":E,D=a.name,R=a.type,A=a.url;if(this.trackId=l,this.trackName=D,this.selectDefaultTrack=!1,this.hls.trigger(X.Events.AUDIO_TRACK_SWITCHING,{id:O,groupId:w,name:D,type:R,url:A}),a.details&&!a.details.live)return;var C=this.switchParams(a.url,s==null?void 0:s.details);this.loadPlaylist(C)},u.selectInitialTrack=function(){var l=this.tracksInGroup;console.assert(l.length,"Initial audio track should be selected when tracks are known");var o=this.trackName,s=this.findTrackId(o)||this.findTrackId();s!==-1?this.setAudioTrack(s):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},u.findTrackId=function(l){for(var o=this.tracksInGroup,s=0;sh.partTarget&&(a+=1)}if(Object(X.isFiniteNumber)(s))return new j.HlsUrlParameters(s,Object(X.isFiniteNumber)(a)?a:void 0,j.HlsSkip.No)}}},v.loadPlaylist=function(p){},v.shouldLoadTrack=function(p){return this.canLoad&&p&&!!p.url&&(!p.details||p.details.live)},v.playlistLoaded=function(p,h,u){var f=this,l=h.details,o=h.stats,s=o.loading.end?Math.max(0,self.performance.now()-o.loading.end):0;if(l.advancedDateTime=Date.now()-s,l.live||u!=null&&u.live){if(l.reloaded(u),u&&this.log("live playlist "+p+" "+(l.advanced?"REFRESHED "+l.lastPartSn+"-"+l.lastPartIndex:"MISSED")),u&&l.fragments.length>0&&Object(U.mergeDetails)(u,l),!this.canLoad||!l.live)return;var a,O=void 0,E=void 0;if(l.canBlockReload&&l.endSN&&l.advanced){var w=this.hls.config.lowLatencyMode,D=l.lastPartSn,R=l.endSN,A=l.lastPartIndex,C=A!==-1,T=D===R,d=w?0:A;C?(O=T?R+1:D,E=T?d:A+1):O=R+1;var S=l.age,y=S+l.ageHeader,b=Math.min(y-l.partTarget,l.targetduration*1.5);if(b>0){if(u&&b>u.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+u.tuneInGoal+" to: "+b+" with playlist age: "+l.age),b=0;else{var B=Math.floor(b/l.targetduration);if(O+=B,E!==void 0){var F=Math.round(b%l.targetduration/l.partTarget);E+=F}this.log("CDN Tune-in age: "+l.ageHeader+"s last advanced "+S.toFixed(2)+"s goal: "+b+" skip sn "+B+" to part "+E)}l.tuneInGoal=b}if(a=this.getDeliveryDirectives(l,h.deliveryDirectives,O,E),w||!T){this.loadPlaylist(a);return}}else a=this.getDeliveryDirectives(l,h.deliveryDirectives,O,E);var _=Object(U.computeReloadInterval)(l,o);O!==void 0&&l.canBlockReload&&(_-=l.partTarget||1),this.log("reload live playlist "+p+" in "+Math.round(_)+" ms"),this.timer=self.setTimeout(function(){return f.loadPlaylist(a)},_)}else this.clearTimer()},v.getDeliveryDirectives=function(p,h,u,f){var l=Object(j.getSkipValue)(p,u);return h!=null&&h.skip&&p.deltaUpdateFailed&&(u=h.msn,f=h.part,l=j.HlsSkip.No),new j.HlsUrlParameters(u,f,l)},v.retryLoadingOrFail=function(p){var h=this,u=this.hls.config,f=this.retryCount-1&&(l=p.context)!==null&&l!==void 0&&l.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+p.details+'"'),this.loadPlaylist();else{var o=Math.min(Math.pow(2,this.retryCount)*u.levelLoadingRetryDelay,u.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return h.loadPlaylist()},o),this.warn("retry playlist loading #"+this.retryCount+" in "+o+' ms after "'+p.details+'"')}}else this.warn('cannot recover from error "'+p.details+'"'),this.clearTimer(),p.fatal=!0;return f},L}()},"./src/controller/base-stream-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"State",function(){return R}),P.d(J,"default",function(){return A});var X=P("./src/polyfills/number.ts"),j=P("./src/task-loop.ts"),U=P("./src/controller/fragment-tracker.ts"),K=P("./src/utils/buffer-helper.ts"),G=P("./src/utils/logger.ts"),r=P("./src/events.ts"),L=P("./src/errors.ts"),v=P("./src/types/transmuxer.ts"),m=P("./src/utils/mp4-tools.ts"),p=P("./src/utils/discontinuities.ts"),h=P("./src/controller/fragment-finders.ts"),u=P("./src/controller/level-helper.ts"),f=P("./src/loader/fragment-loader.ts"),l=P("./src/crypt/decrypter.ts"),o=P("./src/utils/time-ranges.ts"),s=P("./src/types/loader.ts");function a(C,T){for(var d=0;d$;(M0&&M&&M.key&&M.iv&&M.method==="AES-128"){var I=self.performance.now();return b.decrypter.webCryptoDecrypt(new Uint8Array(_),M.key.buffer,M.iv.buffer).then(function(g){var H=self.performance.now();return F.trigger(r.Events.FRAG_DECRYPTED,{frag:y,payload:g,stats:{tstart:I,tdecrypt:H}}),B.payload=g,B})}return B}).then(function(B){var F=b.fragCurrent,_=b.hls,M=b.levels;if(!M)throw new Error("init load aborted, missing levels");var I=M[y.level].details;console.assert(I,"Level details are defined when init segment is loaded");var g=y.stats;b.state=R.IDLE,b.fragLoadError=0,y.data=new Uint8Array(B.payload),g.parsing.start=g.buffering.start=self.performance.now(),g.parsing.end=g.buffering.end=self.performance.now(),B.frag===F&&_.trigger(r.Events.FRAG_BUFFERED,{stats:g,frag:F,part:null,id:y.type}),b.tick()}).catch(function(B){b.warn(B),b.resetFragmentLoading(y)})},d.fragContextChanged=function(y){var b=this.fragCurrent;return!y||!b||y.level!==b.level||y.sn!==b.sn||y.urlId!==b.urlId},d.fragBufferedComplete=function(y,b){var B=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+y.type+" sn: "+y.sn+(b?" part: "+b.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+y.level+" "+o.default.toString(K.BufferHelper.getBuffered(B))),this.state=R.IDLE,this.tick()},d._handleFragmentLoadComplete=function(y){var b=this.transmuxer;if(!b)return;var B=y.frag,F=y.part,_=y.partsLoaded,M=!_||_.length===0||_.some(function(g){return!g}),I=new v.ChunkMetadata(B.level,B.sn,B.stats.chunkCount+1,0,F?F.index:-1,!M);b.flush(I)},d._handleFragmentLoadProgress=function(y){},d._doFragLoad=function(y,b,B,F){var _=this;if(B===void 0&&(B=null),!this.levels)throw new Error("frag load aborted, missing levels");if(B=Math.max(y.start,B||0),this.config.lowLatencyMode&&b){var M=b.partList;if(M&&F){B>y.end&&b.fragmentHint&&(y=b.fragmentHint);var I=this.getNextPart(M,y,B);if(I>-1){var g=M[I];return this.log("Loading part sn: "+y.sn+" p: "+g.index+" cc: "+y.cc+" of playlist ["+b.startSN+"-"+b.endSN+"] parts [0-"+I+"-"+(M.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+y.level+", target: "+parseFloat(B.toFixed(3))),this.nextLoadPosition=g.start+g.duration,this.state=R.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:y,part:M[I],targetBufferTime:B}),this.doFragPartsLoad(y,M,I,F).catch(function(H){return _.handleFragLoadError(H)})}else if(!y.url||this.loadedEndOfParts(M,B))return Promise.resolve(null)}}return this.log("Loading fragment "+y.sn+" cc: "+y.cc+" "+(b?"of ["+b.startSN+"-"+b.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+y.level+", target: "+parseFloat(B.toFixed(3))),Object(X.isFiniteNumber)(y.sn)&&!this.bitrateTest&&(this.nextLoadPosition=y.start+y.duration),this.state=R.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:y,targetBufferTime:B}),this.fragmentLoader.load(y,F).catch(function(H){return _.handleFragLoadError(H)})},d.doFragPartsLoad=function(y,b,B,F){var _=this;return new Promise(function(M,I){var g=[],H=function $(ne){var se=b[ne];_.fragmentLoader.loadPart(y,se,F).then(function(Oe){g[se.index]=Oe;var ge=Oe.part;_.hls.trigger(r.Events.FRAG_LOADED,Oe);var Te=b[ne+1];if(Te&&Te.fragment===y)$(ne+1);else return M({frag:y,part:ge,partsLoaded:g})}).catch(I)};H(B)})},d.handleFragLoadError=function(y){var b=y.data;return b&&b.details===L.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(b.frag,b.part):this.hls.trigger(r.Events.ERROR,b),null},d._handleTransmuxerFlush=function(y){var b=this.getCurrentContext(y);if(!b||this.state!==R.PARSING){this.fragCurrent||(this.state=R.IDLE);return}var B=b.frag,F=b.part,_=b.level,M=self.performance.now();B.stats.parsing.end=M,F&&(F.stats.parsing.end=M),this.updateLevelTiming(B,F,_,y.partial)},d.getCurrentContext=function(y){var b=this.levels,B=y.level,F=y.sn,_=y.part;if(!b||!b[B])return this.warn("Levels object was unset while buffering fragment "+F+" of level "+B+". The current chunk will not be buffered."),null;var M=b[B],I=_>-1?Object(u.getPartWith)(M,F,_):null,g=I?I.fragment:Object(u.getFragmentWithSN)(M,F,this.fragCurrent);return g?{frag:g,part:I,level:M}:null},d.bufferFragmentData=function(y,b,B,F){if(!y||this.state!==R.PARSING)return;var _=y.data1,M=y.data2,I=_;if(_&&M&&(I=Object(m.appendUint8Array)(_,M)),!I||!I.length)return;var g={type:y.type,frag:b,part:B,chunkMeta:F,parent:b.type,data:I};this.hls.trigger(r.Events.BUFFER_APPENDING,g),y.dropped&&y.independent&&!B&&this.flushBufferGap(b)},d.flushBufferGap=function(y){var b=this.media;if(!b)return;if(!K.BufferHelper.isBuffered(b,b.currentTime)){this.flushMainBuffer(0,y.start);return}var B=b.currentTime,F=K.BufferHelper.bufferInfo(b,B,0),_=y.duration,M=Math.min(this.config.maxFragLookUpTolerance*2,_*.25),I=Math.max(Math.min(y.start-M,F.end-M),B+M);y.start-I>M&&this.flushMainBuffer(I,y.start)},d.getFwdBufferInfo=function(y,b){var B=this.config,F=this.getLoadPosition();if(!Object(X.isFiniteNumber)(F))return null;var _=K.BufferHelper.bufferInfo(y,F,B.maxBufferHole);if(_.len===0&&_.nextStart!==void 0){var M=this.fragmentTracker.getBufferedFrag(F,b);if(M&&_.nextStart=B?(b.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+b.maxMaxBufferLength+"s"),!0):!1},d.getNextFragment=function(y,b){var B,F,_=b.fragments,M=_.length;if(!M)return null;var I=this.config,g=_[0].start,H;if(b.live){var $=I.initialLiveManifestSize;if(M<$)return this.warn("Not enough fragments to start playback (have: "+M+", need: "+$+")"),null;!b.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(H=this.getInitialLiveFragment(b,_),this.startPosition=H?this.hls.liveSyncPosition||H.start:y)}else y<=g&&(H=_[0]);if(!H){var ne=I.lowLatencyMode?b.partEnd:b.fragmentEnd;H=this.getFragmentAtPosition(y,ne,b)}return(B=H)!==null&&B!==void 0&&B.initSegment&&!((F=H)!==null&&F!==void 0&&F.initSegment.data)&&!this.bitrateTest&&(H=H.initSegment),H},d.getNextPart=function(y,b,B){for(var F=-1,_=!1,M=!0,I=0,g=y.length;I-1&&BB.start&&B.loaded},d.getInitialLiveFragment=function(y,b){var B=this.fragPrevious,F=null;if(B){if(y.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+B.programDateTime),F=Object(h.findFragmentByPDT)(b,B.endProgramDateTime,this.config.maxFragLookUpTolerance)),!F){var _=B.sn+1;if(_>=y.startSN&&_<=y.endSN){var M=b[_-y.startSN];B.cc===M.cc&&(F=M,this.log("Live playlist, switching playlist, load frag with next SN: "+F.sn))}F||(F=Object(h.findFragWithCC)(b,B.cc),F&&this.log("Live playlist, switching playlist, load frag with same CC: "+F.sn))}}else{var I=this.hls.liveSyncPosition;I!==null&&(F=this.getFragmentAtPosition(I,this.bitrateTest?y.fragmentEnd:y.edge,y))}return F},d.getFragmentAtPosition=function(y,b,B){var F=this.config,_=this.fragPrevious,M=B.fragments,I=B.endSN,g=B.fragmentHint,H=F.maxFragLookUpTolerance,$=!!(F.lowLatencyMode&&B.partList&&g);$&&g&&!this.bitrateTest&&(M=M.concat(g),I=g.sn);var ne;if(yb-H?0:H;ne=Object(h.findFragmentByPTS)(_,M,y,se)}else ne=M[M.length-1];if(ne){var Oe=ne.sn-B.startSN,ge=_&&ne.level===_.level,Te=M[Oe+1],Re=this.fragmentTracker.getState(ne);if(Re===U.FragmentState.BACKTRACKED){ne=null;for(var Le=Oe;M[Le]&&this.fragmentTracker.getState(M[Le])===U.FragmentState.BACKTRACKED;)_?ne=M[Le--]:ne=M[--Le];ne||(ne=Te)}else _&&ne.sn===_.sn&&!$&&(ge&&(ne.sn=M-b.maxFragLookUpTolerance&&_<=I;if(F!==null&&B.duration>F&&(_"+y.startSN+" prev-sn: "+(_?_.sn:"na")+" fragments: "+I),ne}return g},d.waitForCdnTuneIn=function(y){var b=3;return y.live&&y.canBlockReload&&y.tuneInGoal>Math.max(y.partHoldBack,y.partTarget*b)},d.setStartPosition=function(y,b){var B=this.startPosition;if(B"+y))}}]),T}(j.default)},"./src/controller/buffer-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./src/polyfills/number.ts"),j=P("./src/events.ts"),U=P("./src/utils/logger.ts"),K=P("./src/errors.ts"),G=P("./src/utils/buffer-helper.ts"),r=P("./src/utils/mediasource-helper.ts"),L=P("./src/loader/fragment.ts"),v=P("./src/controller/buffer-operation-queue.ts"),m=Object(r.getMediaSource)(),p=/([ha]vc.)(?:\.[^.,]+)+/,h=function(){function u(l){var o=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 s=o.hls,a=o.media,O=o.mediaSource;U.logger.log("[buffer-controller]: Media source opened"),a&&(o.updateMediaElementDuration(),s.trigger(j.Events.MEDIA_ATTACHED,{media:a})),O&&O.removeEventListener("sourceopen",o._onMediaSourceOpen),o.checkPendingTracks()},this._onMediaSourceClose=function(){U.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){U.logger.log("[buffer-controller]: Media source ended")},this.hls=l,this._initSourceBuffer(),this.registerListeners()}var f=u.prototype;return f.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},f.destroy=function(){this.unregisterListeners(),this.details=null},f.registerListeners=function(){var o=this.hls;o.on(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.on(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.on(j.Events.BUFFER_RESET,this.onBufferReset,this),o.on(j.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.on(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.on(j.Events.BUFFER_EOS,this.onBufferEos,this),o.on(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.on(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.on(j.Events.FRAG_PARSED,this.onFragParsed,this),o.on(j.Events.FRAG_CHANGED,this.onFragChanged,this)},f.unregisterListeners=function(){var o=this.hls;o.off(j.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.off(j.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.off(j.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.off(j.Events.BUFFER_RESET,this.onBufferReset,this),o.off(j.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.off(j.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.off(j.Events.BUFFER_EOS,this.onBufferEos,this),o.off(j.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.off(j.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.off(j.Events.FRAG_PARSED,this.onFragParsed,this),o.off(j.Events.FRAG_CHANGED,this.onFragChanged,this)},f._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new v.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},f.onManifestParsed=function(o,s){var a=2;(s.audio&&!s.video||!s.altAudio)&&(a=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=a,this.details=null,U.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},f.onMediaAttaching=function(o,s){var a=this.media=s.media;if(a&&m){var O=this.mediaSource=new m;O.addEventListener("sourceopen",this._onMediaSourceOpen),O.addEventListener("sourceended",this._onMediaSourceEnded),O.addEventListener("sourceclose",this._onMediaSourceClose),a.src=self.URL.createObjectURL(O),this._objectUrl=a.src}},f.onMediaDetaching=function(){var o=this.media,s=this.mediaSource,a=this._objectUrl;if(s){if(U.logger.log("[buffer-controller]: media source detaching"),s.readyState==="open")try{s.endOfStream()}catch(O){U.logger.warn("[buffer-controller]: onMediaDetaching: "+O.message+" while calling endOfStream")}this.onBufferReset(),s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),o&&(a&&self.URL.revokeObjectURL(a),o.src===a?(o.removeAttribute("src"),o.load()):U.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(j.Events.MEDIA_DETACHED,void 0)},f.onBufferReset=function(){var o=this;this.getSourceBufferTypes().forEach(function(s){var a=o.sourceBuffer[s];try{a&&(o.removeBufferListeners(s),o.mediaSource&&o.mediaSource.removeSourceBuffer(a),o.sourceBuffer[s]=void 0)}catch(O){U.logger.warn("[buffer-controller]: Failed to reset the "+s+" buffer",O)}}),this._initSourceBuffer()},f.onBufferCodecs=function(o,s){var a=this,O=this.getSourceBufferTypes().length;if(Object.keys(s).forEach(function(E){if(O){var w=a.tracks[E];if(w&&typeof w.buffer.changeType=="function"){var D=s[E],R=D.codec,A=D.levelCodec,C=D.container,T=(w.levelCodec||w.codec).replace(p,"$1"),d=(A||R).replace(p,"$1");if(T!==d){var S=C+";codecs="+(A||R);a.appendChangeType(E,S)}}}else a.pendingTracks[E]=s[E]}),O)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},f.appendChangeType=function(o,s){var a=this,O=this.operationQueue,E={execute:function(){var D=a.sourceBuffer[o];D&&(U.logger.log("[buffer-controller]: changing "+o+" sourceBuffer type to "+s),D.changeType(s)),O.shiftAndExecuteNext(o)},onStart:function(){},onComplete:function(){},onError:function(D){U.logger.warn("[buffer-controller]: Failed to change "+o+" SourceBuffer type",D)}};O.append(E,o)},f.onBufferAppending=function(o,s){var a=this,O=this.hls,E=this.operationQueue,w=this.tracks,D=s.data,R=s.type,A=s.frag,C=s.part,T=s.chunkMeta,d=T.buffering[R],S=self.performance.now();d.start=S;var y=A.stats.buffering,b=C?C.stats.buffering:null;y.start===0&&(y.start=S),b&&b.start===0&&(b.start=S);var B=w.audio,F=R==="audio"&&T.id===1&&(B==null?void 0:B.container)==="audio/mpeg",_={execute:function(){if(d.executeStart=self.performance.now(),F){var I=a.sourceBuffer[R];if(I){var g=A.start-I.timestampOffset;Math.abs(g)>=.1&&(U.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+A.start+" (delta: "+g+") sn: "+A.sn+")"),I.timestampOffset=A.start)}}a.appendExecutor(D,R)},onStart:function(){},onComplete:function(){var I=self.performance.now();d.executeEnd=d.end=I,y.first===0&&(y.first=I),b&&b.first===0&&(b.first=I);var g=a.sourceBuffer,H={};for(var $ in g)H[$]=G.BufferHelper.getBuffered(g[$]);a.appendError=0,a.hls.trigger(j.Events.BUFFER_APPENDED,{type:R,frag:A,part:C,chunkMeta:T,parent:A.type,timeRanges:H})},onError:function(I){U.logger.error("[buffer-controller]: Error encountered while trying to append to the "+R+" SourceBuffer",I);var g={type:K.ErrorTypes.MEDIA_ERROR,parent:A.type,details:K.ErrorDetails.BUFFER_APPEND_ERROR,err:I,fatal:!1};I.code===DOMException.QUOTA_EXCEEDED_ERR?g.details=K.ErrorDetails.BUFFER_FULL_ERROR:(a.appendError++,g.details=K.ErrorDetails.BUFFER_APPEND_ERROR,a.appendError>O.config.appendErrorMaxRetry&&(U.logger.error("[buffer-controller]: Failed "+O.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),g.fatal=!0)),O.trigger(j.Events.ERROR,g)}};E.append(_,R)},f.onBufferFlushing=function(o,s){var a=this,O=this.operationQueue,E=function(D){return{execute:a.removeExecutor.bind(a,D,s.startOffset,s.endOffset),onStart:function(){},onComplete:function(){a.hls.trigger(j.Events.BUFFER_FLUSHED,{type:D})},onError:function(A){U.logger.warn("[buffer-controller]: Failed to remove from "+D+" SourceBuffer",A)}}};s.type?O.append(E(s.type),s.type):this.getSourceBufferTypes().forEach(function(w){O.append(E(w),w)})},f.onFragParsed=function(o,s){var a=this,O=s.frag,E=s.part,w=[],D=E?E.elementaryStreams:O.elementaryStreams;D[L.ElementaryStreamTypes.AUDIOVIDEO]?w.push("audiovideo"):(D[L.ElementaryStreamTypes.AUDIO]&&w.push("audio"),D[L.ElementaryStreamTypes.VIDEO]&&w.push("video"));var R=function(){var C=self.performance.now();O.stats.buffering.end=C,E&&(E.stats.buffering.end=C);var T=E?E.stats:O.stats;a.hls.trigger(j.Events.FRAG_BUFFERED,{frag:O,part:E,stats:T,id:O.type})};w.length===0&&U.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+O.type+" level: "+O.level+" sn: "+O.sn),this.blockBuffers(R,w)},f.onFragChanged=function(o,s){this.flushBackBuffer()},f.onBufferEos=function(o,s){var a=this,O=this.getSourceBufferTypes().reduce(function(E,w){var D=a.sourceBuffer[w];return(!s.type||s.type===w)&&(D&&!D.ended&&(D.ended=!0,U.logger.log("[buffer-controller]: "+w+" sourceBuffer now EOS"))),E&&!!(!D||D.ended)},!0);O&&this.blockBuffers(function(){var E=a.mediaSource;if(!E||E.readyState!=="open")return;E.endOfStream()})},f.onLevelUpdated=function(o,s){var a=s.details;if(!a.fragments.length)return;this.details=a,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},f.flushBackBuffer=function(){var o=this.hls,s=this.details,a=this.media,O=this.sourceBuffer;if(!a||s===null)return;var E=this.getSourceBufferTypes();if(!E.length)return;var w=s.live&&o.config.liveBackBufferLength!==null?o.config.liveBackBufferLength:o.config.backBufferLength;if(!Object(X.isFiniteNumber)(w)||w<0)return;var D=a.currentTime,R=s.levelTargetDuration,A=Math.max(w,R),C=Math.floor(D/R)*R-A;E.forEach(function(T){var d=O[T];if(d){var S=G.BufferHelper.getBuffered(d);S.length>0&&C>S.start(0)&&(o.trigger(j.Events.BACK_BUFFER_REACHED,{bufferEnd:C}),s.live&&o.trigger(j.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:C}),o.trigger(j.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:C,type:T}))}})},f.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var o=this.details,s=this.hls,a=this.media,O=this.mediaSource,E=o.fragments[0].start+o.totalduration,w=a.duration,D=Object(X.isFiniteNumber)(O.duration)?O.duration:0;o.live&&s.config.liveDurationInfinity?(U.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),O.duration=Infinity,this.updateSeekableRange(o)):(E>D&&E>w||!Object(X.isFiniteNumber)(w))&&(U.logger.log("[buffer-controller]: Updating Media Source duration to "+E.toFixed(3)),O.duration=E)},f.updateSeekableRange=function(o){var s=this.mediaSource,a=o.fragments,O=a.length;if(O&&o.live&&s!==null&&s!==void 0&&s.setLiveSeekableRange){var E=Math.max(0,a[0].start),w=Math.max(E,E+o.totalduration);s.setLiveSeekableRange(E,w)}},f.checkPendingTracks=function(){var o=this.bufferCodecEventsExpected,s=this.operationQueue,a=this.pendingTracks,O=Object.keys(a).length;if(O&&!o||O===2){this.createSourceBuffers(a),this.pendingTracks={};var E=this.getSourceBufferTypes();if(E.length===0){this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}E.forEach(function(w){s.executeNext(w)})}},f.createSourceBuffers=function(o){var s=this.sourceBuffer,a=this.mediaSource;if(!a)throw Error("createSourceBuffers called when mediaSource was null");var O=0;for(var E in o)if(!s[E]){var w=o[E];if(!w)throw Error("source buffer exists for track "+E+", however track does not");var D=w.levelCodec||w.codec,R=w.container+";codecs="+D;U.logger.log("[buffer-controller]: creating sourceBuffer("+R+")");try{var A=s[E]=a.addSourceBuffer(R),C=E;this.addBufferListener(C,"updatestart",this._onSBUpdateStart),this.addBufferListener(C,"updateend",this._onSBUpdateEnd),this.addBufferListener(C,"error",this._onSBUpdateError),this.tracks[E]={buffer:A,codec:D,container:w.container,levelCodec:w.levelCodec,id:w.id},O++}catch(T){U.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+T.message),this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:T,mimeType:R})}}O&&this.hls.trigger(j.Events.BUFFER_CREATED,{tracks:this.tracks})},f._onSBUpdateStart=function(o){var s=this.operationQueue,a=s.current(o);a.onStart()},f._onSBUpdateEnd=function(o){var s=this.operationQueue,a=s.current(o);a.onComplete(),s.shiftAndExecuteNext(o)},f._onSBUpdateError=function(o,s){U.logger.error("[buffer-controller]: "+o+" SourceBuffer error",s),this.hls.trigger(j.Events.ERROR,{type:K.ErrorTypes.MEDIA_ERROR,details:K.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var a=this.operationQueue.current(o);a&&a.onError(s)},f.removeExecutor=function(o,s,a){var O=this.media,E=this.mediaSource,w=this.operationQueue,D=this.sourceBuffer,R=D[o];if(!O||!E||!R){U.logger.warn("[buffer-controller]: Attempting to remove from the "+o+" SourceBuffer, but it does not exist"),w.shiftAndExecuteNext(o);return}var A=Object(X.isFiniteNumber)(O.duration)?O.duration:Infinity,C=Object(X.isFiniteNumber)(E.duration)?E.duration:Infinity,T=Math.max(0,s),d=Math.min(a,A,C);d>T?(U.logger.log("[buffer-controller]: Removing ["+T+","+d+"] from the "+o+" SourceBuffer"),console.assert(!R.updating,o+" sourceBuffer must not be updating"),R.remove(T,d)):w.shiftAndExecuteNext(o)},f.appendExecutor=function(o,s){var a=this.operationQueue,O=this.sourceBuffer,E=O[s];if(!E){U.logger.warn("[buffer-controller]: Attempting to append to the "+s+" SourceBuffer, but it does not exist"),a.shiftAndExecuteNext(s);return}E.ended=!1,console.assert(!E.updating,s+" sourceBuffer must not be updating"),E.appendBuffer(o)},f.blockBuffers=function(o,s){var a=this;if(s===void 0&&(s=this.getSourceBufferTypes()),!s.length){U.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(o);return}var O=this.operationQueue,E=s.map(function(w){return O.appendBlocker(w)});Promise.all(E).then(function(){o(),s.forEach(function(w){var D=a.sourceBuffer[w];(!D||!D.updating)&&O.shiftAndExecuteNext(w)})})},f.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},f.addBufferListener=function(o,s,a){var O=this.sourceBuffer[o];if(!O)return;var E=a.bind(this,o);this.listeners[o].push({event:s,listener:E}),O.addEventListener(s,E)},f.removeBufferListeners=function(o){var s=this.sourceBuffer[o];if(!s)return;this.listeners[o].forEach(function(a){s.removeEventListener(a.event,a.listener)})},u}()},"./src/controller/buffer-operation-queue.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return j});var X=P("./src/utils/logger.ts"),j=function(){function U(G){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=G}var K=U.prototype;return K.append=function(r,L){var v=this.queues[L];v.push(r),v.length===1&&this.buffers[L]&&this.executeNext(L)},K.insertAbort=function(r,L){var v=this.queues[L];v.unshift(r),this.executeNext(L)},K.appendBlocker=function(r){var L,v=new Promise(function(p){L=p}),m={execute:L,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(m,r),v},K.executeNext=function(r){var L=this.buffers,v=this.queues,m=L[r],p=v[r];if(p.length){var h=p[0];try{h.execute()}catch(u){X.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),h.onError(u),(!m||!m.updating)&&(p.shift(),this.executeNext(r))}}},K.shiftAndExecuteNext=function(r){this.queues[r].shift(),this.executeNext(r)},K.current=function(r){return this.queues[r][0]},U}()},"./src/controller/cap-level-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts");function j(G,r){for(var L=0;L0&&this.mediaWidth>0){var v=this.hls.levels;if(v.length){var m=this.hls;m.autoLevelCapping=this.getMaxLevel(v.length-1),m.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=m.autoLevelCapping}}},r.getMaxLevel=function(v){var m=this,p=this.hls.levels;if(!p.length)return-1;var h=p.filter(function(u,f){return G.isLevelAllowed(f,m.restrictedLevels)&&f<=v});return this.clientRect=null,G.getMaxLevelByMediaSize(h,this.mediaWidth,this.mediaHeight)},r.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()},r.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},r.getDimensions=function(){if(this.clientRect)return this.clientRect;var v=this.media,m={width:0,height:0};if(v){var p=v.getBoundingClientRect();m.width=p.width,m.height=p.height,!m.width&&!m.height&&(m.width=p.right-p.left||v.width||0,m.height=p.bottom-p.top||v.height||0)}return this.clientRect=m,m},G.isLevelAllowed=function(v,m){return m===void 0&&(m=[]),m.indexOf(v)===-1},G.getMaxLevelByMediaSize=function(v,m,p){if(!v||!v.length)return-1;for(var h=function(s,a){return a?s.width!==a.width||s.height!==a.height:!0},u=v.length-1,f=0;f=m||l.height>=p)&&h(l,v[f+1])){u=f;break}}return u},U(G,[{key:"mediaWidth",get:function(){return this.getDimensions().width*G.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*G.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var v=1;try{v=self.devicePixelRatio}catch(m){}return v}}]),G}();J.default=K},"./src/controller/cmcd-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./src/events.ts"),j=P("./src/types/cmcd.ts"),U=P("./src/utils/buffer-helper.ts"),K=P("./src/utils/logger.ts");function G(u,f){for(var l=0;l=u.length?{done:!0}:{done:!1,value:u[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.`)}function v(u,f){if(!u)return;if(typeof u=="string")return m(u,f);var l=Object.prototype.toString.call(u).slice(8,-1);if(l==="Object"&&u.constructor&&(l=u.constructor.name),l==="Map"||l==="Set")return Array.from(u);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return m(u,f)}function m(u,f){(f==null||f>u.length)&&(f=u.length);for(var l=0,o=new Array(f);ls&&(s=w.bitrate)}return s>0?s:NaN},f.getBufferLength=function(o){var s=this.hls.media,a=o===j.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!a||!s)return NaN;var O=U.BufferHelper.bufferInfo(a,s.currentTime,this.config.maxBufferHole);return O.len*1e3},f.createPlaylistLoader=function(){var o=this.config.pLoader,s=this.applyPlaylistData,a=o||this.config.loader;return function(){function O(w){this.loader=void 0,this.loader=new a(w)}var E=O.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(D,R,A){s(D),this.loader.load(D,R,A)},r(O,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),O}()},f.createFragmentLoader=function(){var o=this.config.fLoader,s=this.applyFragmentData,a=o||this.config.loader;return function(){function O(w){this.loader=void 0,this.loader=new a(w)}var E=O.prototype;return E.destroy=function(){this.loader.destroy()},E.abort=function(){this.loader.abort()},E.load=function(D,R,A){s(D),this.loader.load(D,R,A)},r(O,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),O}()},u.uuid=function(){var o=URL.createObjectURL(new Blob),s=o.toString();return URL.revokeObjectURL(o),s.substr(s.lastIndexOf("/")+1)},u.serialize=function(o){for(var s=[],a=function(F){return!Number.isNaN(F)&&F!=null&&F!==""&&F!==!1},O=function(F){return Math.round(F)},E=function(F){return O(F/100)*100},w=function(F){return encodeURIComponent(F)},D={br:O,d:O,bl:E,dl:E,mtp:E,nor:w,rtp:E,tb:O},R=Object.keys(o||{}).sort(),A=L(R),C;!(C=A()).done;){var T=C.value,d=o[T];if(!a(d))continue;if(T==="v"&&d===1)continue;if(T=="pr"&&d===1)continue;var S=D[T];S&&(d=S(d));var y=typeof d,b=void 0;T==="ot"||T==="sf"||T==="st"?b=T+"="+d:y==="boolean"?b=T:y==="number"?b=T+"="+d:b=T+"="+JSON.stringify(d),s.push(b)}return s.join(",")},u.toHeaders=function(o){for(var s=Object.keys(o),a={},O=["Object","Request","Session","Status"],E=[{},{},{},{}],w={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},D=0,R=s;DL){this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var w=L-this._requestLicenseFailureCount+1;U.logger.warn("Retrying license request, "+w+" attempts left"),this._requestLicense(s,a)}break}},u._generateLicenseRequestChallenge=function(l,o){switch(l.mediaKeySystemDomain){case K.KeySystems.WIDEVINE:return o}throw new Error("unsupported key-system: "+l.mediaKeySystemDomain)},u._requestLicense=function(l,o){U.logger.log("Requesting content license for key-system");var s=this._mediaKeysList[0];if(!s){U.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var a=this.getLicenseServerUrl(s.mediaKeySystemDomain),O=this._createLicenseXhr(a,l,o);U.logger.log("Sending license request to URL: "+a);var E=this._generateLicenseRequestChallenge(s,l);O.send(E)}catch(w){U.logger.error("Failure requesting DRM license: "+w),this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.KEY_SYSTEM_ERROR,details:j.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},u.onMediaAttached=function(l,o){if(!this._emeEnabled)return;var s=o.media;this._media=s,s.addEventListener("encrypted",this._onMediaEncrypted)},u.onMediaDetached=function(){var l=this._media,o=this._mediaKeysList;if(!l)return;l.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(o.map(function(s){if(s.mediaKeysSession)return s.mediaKeysSession.close().catch(function(){})})).then(function(){return l.setMediaKeys(null)}).catch(function(){})},u.onManifestParsed=function(l,o){if(!this._emeEnabled)return;var s=o.levels.map(function(O){return O.audioCodec}).filter(function(O){return!!O}),a=o.levels.map(function(O){return O.videoCodec}).filter(function(O){return!!O});this._attemptKeySystemAccess(K.KeySystems.WIDEVINE,s,a)},r(h,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),h}();J.default=p},"./src/controller/fps-controller.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/events.ts"),j=P("./src/utils/logger.ts"),U=function(){function K(r){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=r,this.registerListeners()}var G=K.prototype;return G.setStreamController=function(L){this.streamController=L},G.registerListeners=function(){this.hls.on(X.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},G.unregisterListeners=function(){this.hls.off(X.Events.MEDIA_ATTACHING,this.onMediaAttaching)},G.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},G.onMediaAttaching=function(L,v){var m=this.hls.config;if(m.capLevelOnFPSDrop){var p=v.media instanceof self.HTMLVideoElement?v.media:null;this.media=p,p&&typeof p.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),m.fpsDroppedMonitoringPeriod)}},G.checkFPS=function(L,v,m){var p=performance.now();if(v){if(this.lastTime){var h=p-this.lastTime,u=m-this.lastDroppedFrames,f=v-this.lastDecodedFrames,l=1e3*u/h,o=this.hls;if(o.trigger(X.Events.FPS_DROP,{currentDropped:u,currentDecoded:f,totalDroppedFrames:m}),l>0&&u>o.config.fpsDroppedMonitoringThreshold*f){var s=o.currentLevel;j.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+s),s>0&&(o.autoLevelCapping===-1||o.autoLevelCapping>=s)&&(s=s-1,o.trigger(X.Events.FPS_DROP_LEVEL_CAPPING,{level:s,droppedLevel:o.currentLevel}),o.autoLevelCapping=s,this.streamController.nextLevelSwitch())}}this.lastTime=p,this.lastDroppedFrames=m,this.lastDecodedFrames=v}},G.checkFPSInterval=function(){var L=this.media;if(L)if(this.isVideoPlaybackQualityAvailable){var v=L.getVideoPlaybackQuality();this.checkFPS(L,v.totalVideoFrames,v.droppedVideoFrames)}else this.checkFPS(L,L.webkitDecodedFrameCount,L.webkitDroppedFrameCount)},K}();J.default=U},"./src/controller/fragment-finders.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"findFragmentByPDT",function(){return U}),P.d(J,"findFragmentByPTS",function(){return K}),P.d(J,"fragmentWithinToleranceTest",function(){return G}),P.d(J,"pdtWithinToleranceTest",function(){return r}),P.d(J,"findFragWithCC",function(){return L});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/binary-search.ts");function U(v,m,p){if(m===null||!Array.isArray(v)||!v.length||!Object(X.isFiniteNumber)(m))return null;var h=v[0].programDateTime;if(m<(h||0))return null;var u=v[v.length-1].endProgramDateTime;if(m>=(u||0))return null;p=p||0;for(var f=0;fv&&p.start?-1:0}function r(v,m,p){var h=Math.min(m,p.duration+(p.deltaPTS?p.deltaPTS:0))*1e3,u=p.endProgramDateTime||0;return u-h>v}function L(v,m){return j.default.search(v,function(p){return p.ccm?-1:0})}},"./src/controller/fragment-tracker.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"FragmentState",function(){return U}),P.d(J,"FragmentTracker",function(){return K});var X=P("./src/events.ts"),j=P("./src/types/loader.ts"),U;(function(L){L.NOT_LOADED="NOT_LOADED",L.BACKTRACKED="BACKTRACKED",L.APPENDING="APPENDING",L.PARTIAL="PARTIAL",L.OK="OK"})(U||(U={}));var K=function(){function L(m){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=m,this._registerListeners()}var v=L.prototype;return v._registerListeners=function(){var p=this.hls;p.on(X.Events.BUFFER_APPENDED,this.onBufferAppended,this),p.on(X.Events.FRAG_BUFFERED,this.onFragBuffered,this),p.on(X.Events.FRAG_LOADED,this.onFragLoaded,this)},v._unregisterListeners=function(){var p=this.hls;p.off(X.Events.BUFFER_APPENDED,this.onBufferAppended,this),p.off(X.Events.FRAG_BUFFERED,this.onFragBuffered,this),p.off(X.Events.FRAG_LOADED,this.onFragLoaded,this)},v.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},v.getAppendedFrag=function(p,h){if(h===j.PlaylistLevelType.MAIN){var u=this.activeFragment,f=this.activeParts;if(!u)return null;if(f)for(var l=f.length;l--;){var o=f[l],s=o?o.end:u.appendedPTS;if(o.start<=p&&s!==void 0&&p<=s)return l>9&&(this.activeParts=f.slice(l-9)),o}else if(u.start<=p&&u.appendedPTS!==void 0&&p<=u.appendedPTS)return u}return this.getBufferedFrag(p,h)},v.getBufferedFrag=function(p,h){for(var u=this.fragments,f=Object.keys(u),l=f.length;l--;){var o=u[f[l]];if((o==null?void 0:o.body.type)===h&&o.buffered){var s=o.body;if(s.start<=p&&p<=s.end)return s}}return null},v.detectEvictedFragments=function(p,h,u){var f=this;Object.keys(this.fragments).forEach(function(l){var o=f.fragments[l];if(!o)return;if(!o.buffered){o.body.type===u&&f.removeFragment(o.body);return}var s=o.range[p];if(!s)return;s.time.some(function(a){var O=!f.isTimeBuffered(a.startPTS,a.endPTS,h);return O&&f.removeFragment(o.body),O})})},v.detectPartialFragments=function(p){var h=this,u=this.timeRanges,f=p.frag,l=p.part;if(!u||f.sn==="initSegment")return;var o=r(f),s=this.fragments[o];if(!s)return;Object.keys(u).forEach(function(a){var O=f.elementaryStreams[a];if(!O)return;var E=u[a],w=l!==null||O.partial===!0;s.range[a]=h.getBufferedTimes(f,l,w,E)}),s.backtrack=s.loaded=null,Object.keys(s.range).length?s.buffered=!0:this.removeFragment(s.body)},v.fragBuffered=function(p){var h=r(p),u=this.fragments[h];u&&(u.backtrack=u.loaded=null,u.buffered=!0)},v.getBufferedTimes=function(p,h,u,f){for(var l={time:[],partial:u},o=h?h.start:p.start,s=h?h.end:p.end,a=p.minEndPTS||s,O=p.maxStartPTS||o,E=0;E=w&&a<=D){l.time.push({startPTS:Math.max(o,f.start(E)),endPTS:Math.min(s,f.end(E))});break}else if(ow)l.partial=!0,l.time.push({startPTS:Math.max(o,f.start(E)),endPTS:Math.min(s,f.end(E))});else if(s<=w)break}return l},v.getPartialFragment=function(p){var h=null,u,f,l,o=0,s=this.bufferPadding,a=this.fragments;return Object.keys(a).forEach(function(O){var E=a[O];if(!E)return;G(E)&&(f=E.body.start-s,l=E.body.end+s,p>=f&&p<=l&&(u=Math.min(p-f,l-p),o<=u&&(h=E.body,o=u)))}),h},v.getState=function(p){var h=r(p),u=this.fragments[h];return u?u.buffered?G(u)?U.PARTIAL:U.OK:u.backtrack?U.BACKTRACKED:U.APPENDING:U.NOT_LOADED},v.backtrack=function(p,h){var u=r(p),f=this.fragments[u];if(!f||f.backtrack)return null;var l=f.backtrack=h||f.loaded;return f.loaded=null,l},v.getBacktrackData=function(p){var h=r(p),u=this.fragments[h];if(u){var f,l=u.backtrack;if(l!=null&&(f=l.payload)!==null&&f!==void 0&&f.byteLength)return l;this.removeFragment(p)}return null},v.isTimeBuffered=function(p,h,u){for(var f,l,o=0;o=f&&h<=l)return!0;if(h<=f)return!1}return!1},v.onFragLoaded=function(p,h){var u=h.frag,f=h.part;if(u.sn==="initSegment"||u.bitrateTest||f)return;var l=r(u);this.fragments[l]={body:u,loaded:h,backtrack:null,buffered:!1,range:Object.create(null)}},v.onBufferAppended=function(p,h){var u=this,f=h.frag,l=h.part,o=h.timeRanges;if(f.type===j.PlaylistLevelType.MAIN)if(this.activeFragment=f,l){var s=this.activeParts;s||(this.activeParts=s=[]),s.push(l)}else this.activeParts=null;this.timeRanges=o,Object.keys(o).forEach(function(a){var O=o[a];if(u.detectEvictedFragments(a,O),!l)for(var E=0;Ep&&f.removeFragment(s)}})},v.removeFragment=function(p){var h=r(p);p.stats.loaded=0,p.clearElementaryStreamInfo(),delete this.fragments[h]},v.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},L}();function G(L){var v,m;return L.buffered&&(((v=L.range.video)===null||v===void 0?void 0:v.partial)||((m=L.range.audio)===null||m===void 0?void 0:m.partial))}function r(L){return L.type+"_"+L.level+"_"+L.urlId+"_"+L.sn}},"./src/controller/gap-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"STALL_MINIMUM_DURATION_MS",function(){return G}),P.d(J,"MAX_START_GAP_JUMP",function(){return r}),P.d(J,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return L}),P.d(J,"SKIP_BUFFER_RANGE_START",function(){return v}),P.d(J,"default",function(){return m});var X=P("./src/utils/buffer-helper.ts"),j=P("./src/errors.ts"),U=P("./src/events.ts"),K=P("./src/utils/logger.ts"),G=250,r=2,L=.1,v=.05,m=function(){function p(u,f,l,o){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=u,this.media=f,this.fragmentTracker=l,this.hls=o}var h=p.prototype;return h.destroy=function(){this.hls=this.fragmentTracker=this.media=null},h.poll=function(f){var l=this.config,o=this.media,s=this.stalled,a=o.currentTime,O=o.seeking,E=this.seeking&&!O,w=!this.seeking&&O;if(this.seeking=O,a!==f){if(this.moved=!0,s!==null){if(this.stallReported){var D=self.performance.now()-s;K.logger.warn("playback not stuck anymore @"+a+", after "+Math.round(D)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((w||E)&&(this.stalled=null),o.paused||o.ended||o.playbackRate===0||!X.BufferHelper.getBuffered(o).length)return;var R=X.BufferHelper.bufferInfo(o,a,0),A=R.len>0,C=R.nextStart||0;if(!A&&!C)return;if(O){var T=R.len>r,d=!C||C-a>r&&!this.fragmentTracker.getPartialFragment(a);if(T||d)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var S,y=Math.max(C,R.start||0)-a,b=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,B=b==null||((S=b.details)===null||S===void 0)?void 0:S.live,F=B?b.details.targetduration*2:r;if(y>0&&y<=F){this._trySkipBufferHole(null);return}}var _=self.performance.now();if(s===null){this.stalled=_;return}var M=_-s;!O&&M>=G&&this._reportStall(R.len);var I=X.BufferHelper.bufferInfo(o,a,l.maxBufferHole);this._tryFixBufferStall(I,M)},h._tryFixBufferStall=function(f,l){var o=this.config,s=this.fragmentTracker,a=this.media,O=a.currentTime,E=s.getPartialFragment(O);if(E){var w=this._trySkipBufferHole(E);if(w)return}f.len>o.maxBufferHole&&l>o.highBufferWatchdogPeriod*1e3&&(K.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},h._reportStall=function(f){var l=this.hls,o=this.media,s=this.stallReported;s||(this.stallReported=!0,K.logger.warn("Playback stalling at @"+o.currentTime+" due to low buffer (buffer="+f+")"),l.trigger(U.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:f}))},h._trySkipBufferHole=function(f){for(var l=this.config,o=this.hls,s=this.media,a=s.currentTime,O=0,E=X.BufferHelper.getBuffered(s),w=0;w=O&&a.05&&this.forwardBufferLength>1){var w=Math.min(2,Math.max(1,o)),D=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20;p.playbackRate=Math.min(w,Math.max(1,D))}else p.playbackRate!==1&&p.playbackRate!==0&&(p.playbackRate=1)},v.estimateLiveEdge=function(){var p=this.levelDetails;return p===null?null:p.edge+p.age},v.computeLatency=function(){var p=this.estimateLiveEdge();return p===null?null:p-this.currentTime},G(L,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var p=this.config,h=this.levelDetails;return p.liveMaxLatencyDuration!==void 0?p.liveMaxLatencyDuration:h?p.liveMaxLatencyDurationCount*h.targetduration:0}},{key:"targetLatency",get:function(){var p=this.levelDetails;if(p===null)return null;var h=p.holdBack,u=p.partHoldBack,f=p.targetduration,l=this.config,o=l.liveSyncDuration,s=l.liveSyncDurationCount,a=l.lowLatencyMode,O=this.hls.userConfig,E=a&&u||h;(O.liveSyncDuration||O.liveSyncDurationCount||E===0)&&(E=o!==void 0?o:s*f);var w=f,D=1;return E+Math.min(this.stallCount*D,w)}},{key:"liveSyncPosition",get:function(){var p=this.estimateLiveEdge(),h=this.targetLatency,u=this.levelDetails;if(p===null||h===null||u===null)return null;var f=u.edge,l=p-h-this.edgeStalled,o=f-u.totalduration,s=f-(this.config.lowLatencyMode&&u.partTarget||u.targetduration);return Math.min(Math.max(o,l),s)}},{key:"drift",get:function(){var p=this.levelDetails;return p===null?1:p.drift}},{key:"edgeStalled",get:function(){var p=this.levelDetails;if(p===null)return 0;var h=(this.config.lowLatencyMode&&p.partTarget||p.targetduration)*3;return Math.max(p.age-h,0)}},{key:"forwardBufferLength",get:function(){var p=this.media,h=this.levelDetails;if(!p||!h)return 0;var u=p.buffered.length;return u?p.buffered.end(u-1):h.edge-this.currentTime}}]),L}()},"./src/controller/level-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return l});var X=P("./src/types/level.ts"),j=P("./src/events.ts"),U=P("./src/errors.ts"),K=P("./src/utils/codecs.ts"),G=P("./src/controller/level-helper.ts"),r=P("./src/controller/base-playlist-controller.ts"),L=P("./src/types/loader.ts");function v(){return v=Object.assign||function(o){for(var s=1;s0){C=D[0].bitrate,D.sort(function(M,I){return M.bitrate-I.bitrate}),this._levels=D;for(var B=0;Bthis.hls.config.fragLoadingMaxRetry&&(T=w.frag.level)):T=w.frag.level}break;case U.ErrorDetails.LEVEL_LOAD_ERROR:case U.ErrorDetails.LEVEL_LOAD_TIMEOUT:D&&(D.deliveryDirectives&&(C=!1),T=D.level),A=!0;break;case U.ErrorDetails.REMUX_ALLOC_ERROR:T=w.level,A=!0;break}T!==void 0&&this.recoverLevel(w,T,A,C)},a.recoverLevel=function(E,w,D,R){var A=E.details,C=this._levels[w];if(C.loadError++,D){var T=this.retryLoadingOrFail(E);if(T)E.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(R){var d=C.url.length;if(d>1&&C.loadError1){var R=(w.urlId+1)%D;this.warn("Switching to redundant URL-id "+R),this._levels.forEach(function(A){A.urlId=R}),this.level=E}},a.onFragLoaded=function(E,w){var D=w.frag;if(D!==void 0&&D.type===L.PlaylistLevelType.MAIN){var R=this._levels[D.level];R!==void 0&&(R.fragmentError=0,R.loadError=0)}},a.onLevelLoaded=function(E,w){var D,R=w.level,A=w.details,C=this._levels[R];if(!C){var T;this.warn("Invalid level index "+R),(T=w.deliveryDirectives)!==null&&T!==void 0&&T.skip&&(A.deltaUpdateFailed=!0);return}R===this.currentLevelIndex?(C.fragmentError===0&&(C.loadError=0,this.retryCount=0),this.playlistLoaded(R,w,C.details)):(D=w.deliveryDirectives)!==null&&D!==void 0&&D.skip&&(A.deltaUpdateFailed=!0)},a.onAudioTrackSwitched=function(E,w){var D=this.hls.levels[this.currentLevelIndex];if(!D)return;if(D.audioGroupIds){for(var R=-1,A=this.hls.audioTracks[w.id].groupId,C=0;C0){var R=D.urlId,A=D.url[R];if(E)try{A=E.addDirectives(A)}catch(C){this.warn("Could not construct new URL with HLS Delivery Directives: "+C)}this.log("Attempt loading level index "+w+(E?" at sn "+E.msn+" part "+E.part:"")+" with URL-id "+R+" "+A),this.clearTimer(),this.hls.trigger(j.Events.LEVEL_LOADING,{url:A,level:w,id:R,deliveryDirectives:E||null})}},a.removeLevel=function(E,w){var D=function(C,T){return T!==w},R=this._levels.filter(function(A,C){return C!==E?!0:A.url.length>1&&w!==void 0?(A.url=A.url.filter(D),A.audioGroupIds&&(A.audioGroupIds=A.audioGroupIds.filter(D)),A.textGroupIds&&(A.textGroupIds=A.textGroupIds.filter(D)),A.urlId=0,!0):!1}).map(function(A,C){var T=A.details;return T!=null&&T.fragments&&T.fragments.forEach(function(d){d.level=C}),A});this._levels=R,this.hls.trigger(j.Events.LEVELS_UPDATED,{levels:R})},p(s,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(E){var w,D=this._levels;if(D.length===0)return;if(this.currentLevelIndex===E&&(w=D[E])!==null&&w!==void 0&&w.details)return;if(E<0||E>=D.length){var R=E<0;if(this.hls.trigger(j.Events.ERROR,{type:U.ErrorTypes.OTHER_ERROR,details:U.ErrorDetails.LEVEL_SWITCH_ERROR,level:E,fatal:R,reason:"invalid level idx"}),R)return;E=Math.min(E,D.length-1)}this.clearTimer();var A=this.currentLevelIndex,C=D[A],T=D[E];this.log("switching to level "+E+" from "+A),this.currentLevelIndex=E;var d=v({},T,{level:E,maxBitrate:T.maxBitrate,uri:T.uri,urlId:T.urlId});delete d._urlId,this.hls.trigger(j.Events.LEVEL_SWITCHING,d);var S=T.details;if(!S||S.live){var y=this.switchParams(T.uri,C==null?void 0:C.details);this.loadPlaylist(y)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(E){this.manualLevelIndex=E,this._startLevel===void 0&&(this._startLevel=E),E!==-1&&(this.level=E)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(E){this._firstLevel=E}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var E=this.hls.config.startLevel;return E!==void 0?E:this._firstLevel}else return this._startLevel},set:function(E){this._startLevel=E}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(E){this.level=E,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=E)}}]),s}(r.default)},"./src/controller/level-helper.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"addGroupId",function(){return U}),P.d(J,"assignTrackIdsByGroup",function(){return K}),P.d(J,"updatePTS",function(){return G}),P.d(J,"updateFragPTSDTS",function(){return L}),P.d(J,"mergeDetails",function(){return v}),P.d(J,"mapPartIntersection",function(){return m}),P.d(J,"mapFragmentIntersection",function(){return p}),P.d(J,"adjustSliding",function(){return h}),P.d(J,"addSliding",function(){return u}),P.d(J,"computeReloadInterval",function(){return f}),P.d(J,"getFragmentWithSN",function(){return l}),P.d(J,"getPartWith",function(){return o});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/logger.ts");function U(s,a,O){switch(a){case"audio":s.audioGroupIds||(s.audioGroupIds=[]),s.audioGroupIds.push(O);break;case"text":s.textGroupIds||(s.textGroupIds=[]),s.textGroupIds.push(O);break}}function K(s){var a={};s.forEach(function(O){var E=O.groupId||"";O.id=a[E]=a[E]||0,a[E]++})}function G(s,a,O){var E=s[a],w=s[O];r(E,w)}function r(s,a){var O=a.startPTS;if(Object(X.isFiniteNumber)(O)){var E=0,w;a.sn>s.sn?(E=O-s.start,w=s):(E=s.start-O,w=a),w.duration!==E&&(w.duration=E)}else if(a.sn>s.sn){var D=s.cc===a.cc;D&&s.minEndPTS?a.start=s.start+(s.minEndPTS-s.start):a.start=s.start+s.duration}else a.start=Math.max(s.start-a.duration,0)}function L(s,a,O,E,w,D){var R=E-O;R<=0&&(j.logger.warn("Fragment should have a positive duration",a),E=O+a.duration,D=w+a.duration);var A=O,C=E,T=a.startPTS,d=a.endPTS;if(Object(X.isFiniteNumber)(T)){var S=Math.abs(T-O);Object(X.isFiniteNumber)(a.deltaPTS)?a.deltaPTS=Math.max(S,a.deltaPTS):a.deltaPTS=S,A=Math.max(O,T),O=Math.min(O,T),w=Math.min(w,a.startDTS),C=Math.min(E,d),E=Math.max(E,d),D=Math.max(D,a.endDTS)}a.duration=E-O;var y=O-a.start;a.appendedPTS=E,a.start=a.startPTS=O,a.maxStartPTS=A,a.startDTS=w,a.endPTS=E,a.minEndPTS=C,a.endDTS=D;var b=a.sn;if(!s||bs.endSN)return 0;var B,F=b-s.startSN,_=s.fragments;for(_[F]=a,B=F;B>0;B--)r(_[B],_[B-1]);for(B=F;B<_.length-1;B++)r(_[B],_[B+1]);return s.fragmentHint&&r(_[_.length-1],s.fragmentHint),s.PTSKnown=s.alignedSliding=!0,y}function v(s,a){for(var O=null,E=s.fragments,w=E.length-1;w>=0;w--){var D=E[w].initSegment;if(D){O=D;break}}s.fragmentHint&&delete s.fragmentHint.endPTS;var R=0,A;if(p(s,a,function(B,F){B.relurl&&(R=B.cc-F.cc),Object(X.isFiniteNumber)(B.startPTS)&&Object(X.isFiniteNumber)(B.endPTS)&&(F.start=F.startPTS=B.startPTS,F.startDTS=B.startDTS,F.appendedPTS=B.appendedPTS,F.maxStartPTS=B.maxStartPTS,F.endPTS=B.endPTS,F.endDTS=B.endDTS,F.minEndPTS=B.minEndPTS,F.duration=B.endPTS-B.startPTS,F.duration&&(A=F),a.PTSKnown=a.alignedSliding=!0),F.elementaryStreams=B.elementaryStreams,F.loader=B.loader,F.stats=B.stats,F.urlId=B.urlId,B.initSegment&&(F.initSegment=B.initSegment,O=B.initSegment)}),O){var C=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;C.forEach(function(B){var F;(!B.initSegment||B.initSegment.relurl===((F=O)===null||F===void 0?void 0:F.relurl))&&(B.initSegment=O)})}if(a.skippedSegments&&(a.deltaUpdateFailed=a.fragments.some(function(B){return!B}),a.deltaUpdateFailed)){j.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var T=a.skippedSegments;T--;)a.fragments.shift();a.startSN=a.fragments[0].sn,a.startCC=a.fragments[0].cc}var d=a.fragments;if(R){j.logger.warn("discontinuity sliding from playlist, take drift into account");for(var S=0;S=E.length)return;u(a,E[O].start)}function u(s,a){if(a){for(var O=s.fragments,E=s.skippedSegments;E0&&w0&&C===-1&&(this.log("Override startPosition with lastCurrentTime @"+T.toFixed(3)),C=T),this.state=j.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=C,this.tick()}else this._forceStartLoad=!0,this.state=j.State.STOPPED},R.stopLoad=function(){this._forceStartLoad=!1,w.prototype.stopLoad.call(this)},R.doTick=function(){switch(this.state){case j.State.IDLE:this.doTickIdle();break;case j.State.WAITING_LEVEL:{var C,T=this.levels,d=this.level,S=T==null||((C=T[d])===null||C===void 0)?void 0:C.details;if(S&&(!S.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(S))break;this.state=j.State.IDLE;break}break}case j.State.FRAG_LOADING_WAITING_RETRY:{var y,b=self.performance.now(),B=this.retryDate;(!B||b>=B||(y=this.media)!==null&&y!==void 0&&y.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=j.State.IDLE)}break;default:break}this.onTickEnd()},R.onTickEnd=function(){w.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},R.doTickIdle=function(){var C,T,d=this.hls,S=this.levelLastLoaded,y=this.levels,b=this.media,B=d.config,F=d.nextLoadLevel;if(S===null||!b&&(this.startFragRequested||!B.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!y||!y[F])return;var _=y[F];this.level=d.nextLoadLevel=F;var M=_.details;if(!M||this.state===j.State.WAITING_LEVEL||M.live&&this.levelLastLoaded!==F){this.state=j.State.WAITING_LEVEL;return}var I=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:b,L.PlaylistLevelType.MAIN);if(I===null)return;var g=I.len,H=this.getMaxBufferLength(_.maxBitrate);if(g>=H)return;if(this._streamEnded(I,M)){var $={};this.altAudio&&($.type="video"),this.hls.trigger(K.Events.BUFFER_EOS,$),this.state=j.State.ENDED;return}var ne=I.end,se=this.getNextFragment(ne,M);if(this.couldBacktrack&&!this.fragPrevious&&se&&se.sn!=="initSegment"){var Oe=se.sn-M.startSN;Oe>1&&(se=M.fragments[Oe-1],this.fragmentTracker.removeFragment(se))}if(se&&this.fragmentTracker.getState(se)===r.FragmentState.OK&&this.nextLoadPosition>ne){var ge=this.audioOnly&&!this.altAudio?v.ElementaryStreamTypes.AUDIO:v.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(b,ge,L.PlaylistLevelType.MAIN),se=this.getNextFragment(this.nextLoadPosition,M)}if(!se)return;se.initSegment&&!se.initSegment.data&&!this.bitrateTest&&(se=se.initSegment),((C=se.decryptdata)===null||C===void 0?void 0:C.keyFormat)==="identity"&&!((T=se.decryptdata)!==null&&T!==void 0&&T.key)?this.loadKey(se,M):this.loadFragment(se,M,ne)},R.loadFragment=function(C,T,d){var S,y=this.fragmentTracker.getState(C);if(this.fragCurrent=C,y===r.FragmentState.BACKTRACKED){var b=this.fragmentTracker.getBacktrackData(C);if(b){this._handleFragmentLoadProgress(b),this._handleFragmentLoadComplete(b);return}else y=r.FragmentState.NOT_LOADED}y===r.FragmentState.NOT_LOADED||y===r.FragmentState.PARTIAL?C.sn==="initSegment"?this._loadInitSegment(C):this.bitrateTest?(C.bitrateTest=!0,this.log("Fragment "+C.sn+" of level "+C.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(C)):(this.startFragRequested=!0,w.prototype.loadFragment.call(this,C,T,d)):y===r.FragmentState.APPENDING?this.reduceMaxBufferLength(C.duration)&&this.fragmentTracker.removeFragment(C):((S=this.media)===null||S===void 0?void 0:S.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},R.getAppendedFrag=function(C){var T=this.fragmentTracker.getAppendedFrag(C,L.PlaylistLevelType.MAIN);return T&&"fragment"in T?T.fragment:T},R.getBufferedFrag=function(C){return this.fragmentTracker.getBufferedFrag(C,L.PlaylistLevelType.MAIN)},R.followingBufferedFrag=function(C){return C?this.getBufferedFrag(C.end+.5):null},R.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},R.nextLevelSwitch=function(){var C=this.levels,T=this.media;if(T!=null&&T.readyState){var d,S=this.getAppendedFrag(T.currentTime);if(S&&S.start>1&&this.flushMainBuffer(0,S.start-1),!T.paused&&C){var y=this.hls.nextLoadLevel,b=C[y],B=this.fragLastKbps;B&&this.fragCurrent?d=this.fragCurrent.duration*b.maxBitrate/(1e3*B)+1:d=0}else d=0;var F=this.getBufferedFrag(T.currentTime+d);if(F){var _=this.followingBufferedFrag(F);if(_){this.abortCurrentFrag();var M=_.maxStartPTS?_.maxStartPTS:_.start,I=_.duration,g=Math.max(F.end,M+Math.min(Math.max(I-this.config.maxFragLookUpTolerance,I*.5),I*.75));this.flushMainBuffer(g,Number.POSITIVE_INFINITY)}}}},R.abortCurrentFrag=function(){var C=this.fragCurrent;this.fragCurrent=null,C!=null&&C.loader&&C.loader.abort(),this.state===j.State.KEY_LOADING&&(this.state=j.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},R.flushMainBuffer=function(C,T){w.prototype.flushMainBuffer.call(this,C,T,this.altAudio?"video":null)},R.onMediaAttached=function(C,T){w.prototype.onMediaAttached.call(this,C,T);var d=T.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),d.addEventListener("playing",this.onvplaying),d.addEventListener("seeked",this.onvseeked),this.gapController=new h.default(this.config,d,this.fragmentTracker,this.hls)},R.onMediaDetaching=function(){var C=this.media;C&&(C.removeEventListener("playing",this.onvplaying),C.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),w.prototype.onMediaDetaching.call(this)},R.onMediaPlaying=function(){this.tick()},R.onMediaSeeked=function(){var C=this.media,T=C?C.currentTime:null;Object(X.isFiniteNumber)(T)&&this.log("Media seeked to "+T.toFixed(3)),this.tick()},R.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(K.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},R.onManifestParsed=function(C,T){var d=!1,S=!1,y;T.levels.forEach(function(b){y=b.audioCodec,y&&(y.indexOf("mp4a.40.2")!==-1&&(d=!0),y.indexOf("mp4a.40.5")!==-1&&(S=!0))}),this.audioCodecSwitch=d&&S&&!Object(U.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=T.levels,this.startFragRequested=!1},R.onLevelLoading=function(C,T){var d=this.levels;if(!d||this.state!==j.State.IDLE)return;var S=d[T.level];(!S.details||S.details.live&&this.levelLastLoaded!==T.level||this.waitForCdnTuneIn(S.details))&&(this.state=j.State.WAITING_LEVEL)},R.onLevelLoaded=function(C,T){var d,S=this.levels,y=T.level,b=T.details,B=b.totalduration;if(!S){this.warn("Levels were reset while loading level "+y);return}this.log("Level "+y+" loaded ["+b.startSN+","+b.endSN+"], cc ["+b.startCC+", "+b.endCC+"] duration:"+B);var F=this.fragCurrent;F&&(this.state===j.State.FRAG_LOADING||this.state===j.State.FRAG_LOADING_WAITING_RETRY)&&(F.level!==T.level&&F.loader&&(this.state=j.State.IDLE,F.loader.abort()));var _=S[y],M=0;if(b.live||(d=_.details)!==null&&d!==void 0&&d.live){if(b.fragments[0]||(b.deltaUpdateFailed=!0),b.deltaUpdateFailed)return;M=this.alignPlaylists(b,_.details)}if(_.details=b,this.levelLastLoaded=y,this.hls.trigger(K.Events.LEVEL_UPDATED,{details:b,level:y}),this.state===j.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(b))return;this.state=j.State.IDLE}this.startFragRequested?b.live&&this.synchronizeToLiveEdge(b):this.setStartPosition(b,M),this.tick()},R._handleFragmentLoadProgress=function(C){var T,d=C.frag,S=C.part,y=C.payload,b=this.levels;if(!b){this.warn("Levels were reset while fragment load was in progress. Fragment "+d.sn+" of level "+d.level+" will not be buffered");return}var B=b[d.level],F=B.details;if(!F){this.warn("Dropping fragment "+d.sn+" of level "+d.level+" after level details were reset");return}var _=B.videoCodec,M=F.PTSKnown||!F.live,I=(T=d.initSegment)===null||T===void 0?void 0:T.data,g=this._getAudioCodec(B),H=this.transmuxer=this.transmuxer||new m.default(this.hls,L.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),$=S?S.index:-1,ne=$!==-1,se=new p.ChunkMetadata(d.level,d.sn,d.stats.chunkCount,y.byteLength,$,ne),Oe=this.initPTS[d.cc];H.push(y,I,g,_,d,S,F.totalduration,M,se,Oe)},R.onAudioTrackSwitching=function(C,T){var d=this.altAudio,S=!!T.url,y=T.id;if(!S){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var b=this.fragCurrent;b!=null&&b.loader&&(this.log("Switching to main audio track, cancel main fragment load"),b.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var B=this.hls;d&&B.trigger(K.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),B.trigger(K.Events.AUDIO_TRACK_SWITCHED,{id:y})}},R.onAudioTrackSwitched=function(C,T){var d=T.id,S=!!this.hls.audioTracks[d].url;if(S){var y=this.videoBuffer;y&&this.mediaBuffer!==y&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=y)}this.altAudio=S,this.tick()},R.onBufferCreated=function(C,T){var d=T.tracks,S,y,b=!1;for(var B in d){var F=d[B];if(F.id==="main"){if(y=B,S=F,B==="video"){var _=d[B];_&&(this.videoBuffer=_.buffer)}}else b=!0}b&&S?(this.log("Alternate track found, use "+y+".buffered to schedule main fragment loading"),this.mediaBuffer=S.buffer):this.mediaBuffer=this.media},R.onFragBuffered=function(C,T){var d=T.frag,S=T.part;if(d&&d.type!==L.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(d)){this.warn("Fragment "+d.sn+(S?" p: "+S.index:"")+" of level "+d.level+" finished buffering, but was aborted. state: "+this.state),this.state===j.State.PARSED&&(this.state=j.State.IDLE);return}var y=S?S.stats:d.stats;this.fragLastKbps=Math.round(8*y.total/(y.buffering.end-y.loading.first)),d.sn!=="initSegment"&&(this.fragPrevious=d),this.fragBufferedComplete(d,S)},R.onError=function(C,T){switch(T.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(L.PlaylistLevelType.MAIN,T);break;case u.ErrorDetails.LEVEL_LOAD_ERROR:case u.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==j.State.ERROR&&(T.fatal?(this.warn(""+T.details),this.state=j.State.ERROR):!T.levelRetry&&this.state===j.State.WAITING_LEVEL&&(this.state=j.State.IDLE));break;case u.ErrorDetails.BUFFER_FULL_ERROR:if(T.parent==="main"&&(this.state===j.State.PARSING||this.state===j.State.PARSED)){var d=!0,S=this.getFwdBufferInfo(this.media,L.PlaylistLevelType.MAIN);S&&S.len>.5&&(d=!this.reduceMaxBufferLength(S.len)),d&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},R.checkBuffer=function(){var C=this.media,T=this.gapController;if(!C||!T||!C.readyState)return;var d=G.BufferHelper.getBuffered(C);!this.loadedmetadata&&d.length?(this.loadedmetadata=!0,this.seekToStartPos()):T.poll(this.lastCurrentTime),this.lastCurrentTime=C.currentTime},R.onFragLoadEmergencyAborted=function(){this.state=j.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},R.onBufferFlushed=function(C,T){var d=T.type;if(d!==v.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var S=(d===v.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(S,d,L.PlaylistLevelType.MAIN)}},R.onLevelsUpdated=function(C,T){this.levels=T.levels},R.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},R.seekToStartPos=function(){var C=this.media,T=C.currentTime,d=this.startPosition;if(d>=0&&T0&&(b1&&C.seeking===!1){var d=C.currentTime;if(G.BufferHelper.isBuffered(C,d)?T=this.getAppendedFrag(d):G.BufferHelper.isBuffered(C,d+.1)&&(T=this.getAppendedFrag(d+.1)),T){var S=this.fragPlaying,y=T.level;(!S||T.sn!==S.sn||S.level!==y||T.urlId!==S.urlId)&&(this.hls.trigger(K.Events.FRAG_CHANGED,{frag:T}),(!S||S.level!==y)&&this.hls.trigger(K.Events.LEVEL_SWITCHED,{level:y}),this.fragPlaying=T)}}},o(D,[{key:"nextLevel",get:function(){var C=this.nextBufferedFrag;return C?C.level:-1}},{key:"currentLevel",get:function(){var C=this.media;if(C){var T=this.getAppendedFrag(C.currentTime);if(T)return T.level}return-1}},{key:"nextBufferedFrag",get:function(){var C=this.media;if(C){var T=this.getAppendedFrag(C.currentTime);return this.followingBufferedFrag(T)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),D}(j.default)},"./src/controller/subtitle-stream-controller.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"SubtitleStreamController",function(){return s});var X=P("./src/events.ts"),j=P("./src/utils/logger.ts"),U=P("./src/utils/buffer-helper.ts"),K=P("./src/controller/fragment-finders.ts"),G=P("./src/utils/discontinuities.ts"),r=P("./src/controller/level-helper.ts"),L=P("./src/controller/fragment-tracker.ts"),v=P("./src/controller/base-stream-controller.ts"),m=P("./src/types/loader.ts"),p=P("./src/types/level.ts");function h(a,O){for(var E=0;E=T[y].start&&S<=T[y].end){d=T[y];break}var b=A.start+A.duration;d?d.end=b:(d={start:S,end:b},T.push(d)),this.fragmentTracker.fragBuffered(A)},E.onBufferFlushing=function(D,R){var A=R.startOffset,C=R.endOffset;if(A===0&&C!==Number.POSITIVE_INFINITY){var T=this.currentTrackId,d=this.levels;if(!d.length||!d[T]||!d[T].details)return;var S=d[T].details,y=S.targetduration,b=C-y;if(b<=0)return;R.endOffsetSubtitles=Math.max(0,b),this.tracksBuffered.forEach(function(B){for(var F=0;F=S.length||T!==d||!y)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,C.live||(A=y.details)!==null&&A!==void 0&&A.live){var b=this.mainDetails;if(C.deltaUpdateFailed||!b)return;var B=b.fragments[0];if(!y.details)C.hasProgramDateTime&&b.hasProgramDateTime?Object(G.alignMediaPlaylistByPDT)(C,b):B&&Object(r.addSliding)(C,B.start);else{var F=this.alignPlaylists(C,y.details);F===0&&B&&Object(r.addSliding)(C,B.start)}}if(y.details=C,this.levelLastLoaded=T,this.tick(),C.live&&!this.fragCurrent&&this.media&&this.state===v.State.IDLE){var _=Object(K.findFragmentByPTS)(null,C.fragments,this.media.currentTime,0);_||(this.warn("Subtitle playlist not aligned with playback"),y.details=void 0)}},E._handleFragmentLoadComplete=function(D){var R=D.frag,A=D.payload,C=R.decryptdata,T=this.hls;if(this.fragContextChanged(R))return;if(A&&A.byteLength>0&&C&&C.key&&C.iv&&C.method==="AES-128"){var d=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(A),C.key.buffer,C.iv.buffer).then(function(S){var y=performance.now();T.trigger(X.Events.FRAG_DECRYPTED,{frag:R,payload:S,stats:{tstart:d,tdecrypt:y}})})}},E.doTick=function(){if(!this.media){this.state=v.State.IDLE;return}if(this.state===v.State.IDLE){var D,R=this.currentTrackId,A=this.levels;if(!A.length||!A[R]||!A[R].details)return;var C=A[R].details,T=C.targetduration,d=this.config,S=this.media,y=U.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,S.currentTime-T,d.maxBufferHole),b=y.end,B=y.len,F=this.getMaxBufferLength()+T;if(B>F)return;console.assert(C,"Subtitle track details are defined on idle subtitle stream controller tick");var _=C.fragments,M=_.length,I=C.edge,g,H=this.fragPrevious;if(b-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)},f.pollTrackChange=function(o){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,o)},f.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 o=p(this.media.textTracks);o.forEach(function(s){Object(j.clearCurrentCues)(s)}),this.subtitleTrack=-1,this.media=null},f.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},f.onManifestParsed=function(o,s){this.tracks=s.subtitleTracks},f.onSubtitleTrackLoaded=function(o,s){var a=s.id,O=s.details,E=this.trackId,w=this.tracksInGroup[E];if(!w){this.warn("Invalid subtitle track id "+a);return}var D=w.details;w.details=s.details,this.log("subtitle track "+a+" loaded ["+O.startSN+"-"+O.endSN+"]"),a===this.trackId&&(this.retryCount=0,this.playlistLoaded(a,s,D))},f.onLevelLoading=function(o,s){this.switchLevel(s.level)},f.onLevelSwitching=function(o,s){this.switchLevel(s.level)},f.switchLevel=function(o){var s=this.hls.levels[o];if(!(s!=null&&s.textGroupIds))return;var a=s.textGroupIds[s.urlId];if(this.groupId!==a){var O=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,E=this.tracks.filter(function(R){return!a||R.groupId===a});this.tracksInGroup=E;var w=this.findTrackId(O==null?void 0:O.name)||this.findTrackId();this.groupId=a;var D={subtitleTracks:E};this.log("Updating subtitle tracks, "+E.length+' track(s) found in "'+a+'" group-id'),this.hls.trigger(X.Events.SUBTITLE_TRACKS_UPDATED,D),w!==-1&&this.setSubtitleTrack(w,O)}},f.findTrackId=function(o){for(var s=this.tracksInGroup,a=0;a=O.length)return;this.clearTimer();var E=O[o];if(this.log("Switching to subtitle track "+o),this.trackId=o,E){var w=E.id,D=E.groupId,R=D===void 0?"":D,A=E.name,C=E.type,T=E.url;this.hls.trigger(X.Events.SUBTITLE_TRACK_SWITCH,{id:w,groupId:R,name:A,type:C,url:T});var d=this.switchParams(E.url,s==null?void 0:s.details);this.loadPlaylist(d)}else this.hls.trigger(X.Events.SUBTITLE_TRACK_SWITCH,{id:o})},f.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var o=-1,s=p(this.media.textTracks),a=0;a=0&&(C[0]=Math.min(C[0],O),C[1]=Math.max(C[1],E),R=!0,T/(E-O)>.5))return}if(R||D.push([O,E]),this.config.renderTextTracksNatively){var d=this.captionsTracks[a];this.Cues.newCue(d,O,E,w)}else{var S=this.Cues.newCue(null,O,E,w);this.hls.trigger(j.Events.CUES_PARSED,{type:"captions",cues:S,track:a})}},o.onInitPtsFound=function(a,O){var E=this,w=O.frag,D=O.id,R=O.initPTS,A=O.timescale,C=this.unparsedVttFrags;D==="main"&&(this.initPTS[w.cc]=R,this.timescale[w.cc]=A),C.length&&(this.unparsedVttFrags=[],C.forEach(function(T){E.onFragLoaded(j.Events.FRAG_LOADED,T)}))},o.getExistingTrack=function(a){var O=this.media;if(O)for(var E=0;E>>8^A&255^99,L[w]=A,v[A]=w;var C=E[w],T=E[C],d=E[T],S=E[A]*257^A*16843008;p[w]=S<<24|S>>>8,h[w]=S<<16|S>>>16,u[w]=S<<8|S>>>24,f[w]=S,S=d*16843009^T*65537^C*257^w*16843008,o[A]=S<<24|S>>>8,s[A]=S<<16|S>>>16,a[A]=S<<8|S>>>24,O[A]=S,w?(w=C^E[E[E[d^C]]],D^=E[E[D]]):w=D=1}},G.expandKey=function(L){for(var v=this.uint8ArrayToUint32Array_(L),m=!0,p=0;p>>6)+1;var S=(a[O+2]&60)>>>2;if(S>d.length-1){s.trigger(U.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+S});return}return R=(a[O+2]&1)<<2,R|=(a[O+3]&192)>>>6,X.logger.log("manifest codec:"+E+", ADTS type:"+w+", samplingIndex:"+S),/firefox/i.test(C)?S>=6?(w=5,A=new Array(4),D=S-3):(w=2,A=new Array(2),D=S):C.indexOf("android")!==-1?(w=2,A=new Array(2),D=S):(w=5,A=new Array(4),E&&(E.indexOf("mp4a.40.29")!==-1||E.indexOf("mp4a.40.5")!==-1)||!E&&S>=6?D=S-3:((E&&E.indexOf("mp4a.40.2")!==-1&&(S>=6&&R===1||/vivaldi/i.test(C))||!E&&R===1)&&(w=2,A=new Array(2)),D=S)),A[0]=w<<3,A[0]|=(S&14)>>1,A[1]|=(S&1)<<7,A[1]|=R<<3,w===5&&(A[1]|=(D&14)>>1,A[2]=(D&1)<<7,A[2]|=2<<2,A[3]=0),{config:A,samplerate:d[S],channelCount:R,codec:"mp4a.40."+w,manifestCodec:T}}function G(s,a){return s[a]===255&&(s[a+1]&246)===240}function r(s,a){return s[a+1]&1?7:9}function L(s,a){return(s[a+3]&3)<<11|s[a+4]<<3|(s[a+5]&224)>>>5}function v(s,a){return a+5=s.length)return!1;var E=L(s,a);if(E<=O)return!1;var w=a+E;return w===s.length||m(s,w)}return!1}function u(s,a,O,E,w){if(!s.samplerate){var D=K(a,O,E,w);if(!D)return;s.config=D.config,s.samplerate=D.samplerate,s.channelCount=D.channelCount,s.codec=D.codec,s.manifestCodec=D.manifestCodec,X.logger.log("parsed codec:"+s.codec+", rate:"+D.samplerate+", channels:"+D.channelCount)}}function f(s){return 1024*9e4/s}function l(s,a,O,E,w){var D=r(s,a),R=L(s,a);if(R-=D,R>0){var A=O+E*w;return{headerLength:D,frameLength:R,stamp:A}}}function o(s,a,O,E,w){var D=f(s.samplerate),R=l(a,O,E,w,D);if(R){var A=R.frameLength,C=R.headerLength,T=R.stamp,d=C+A,S=Math.max(0,O+d-a.length),y;S?(y=new Uint8Array(d-C),y.set(a.subarray(O+C,a.length),0)):y=a.subarray(O+C,O+d);var b={unit:y,pts:T};return S||s.samples.push(b),{sample:b,length:d,missing:S}}}},"./src/demux/base-audio-demuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"initPTSFn",function(){return L});var X=P("./src/polyfills/number.ts"),j=P("./src/demux/id3.ts"),U=P("./src/demux/dummy-demuxed-track.ts"),K=P("./src/utils/mp4-tools.ts"),G=P("./src/utils/typed-array.ts"),r=function(){function v(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var m=v.prototype;return m.resetInitSegment=function(h,u,f){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},m.resetTimeStamp=function(){},m.resetContiguity=function(){},m.canParse=function(h,u){return!1},m.appendFrame=function(h,u,f){},m.demux=function(h,u){this.cachedData&&(h=Object(K.appendUint8Array)(this.cachedData,h),this.cachedData=null);var f=j.getID3Data(h,0),l=f?f.length:0,o,s,a=this._audioTrack,O=this._id3Track,E=f?j.getTimeStamp(f):void 0,w=h.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=L(E,u)),f&&f.length>0&&O.samples.push({pts:this.initPTS,dts:this.initPTS,data:f}),s=this.initPTS;lr?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,L=r>>3,r-=L>>3,this.bytesAvailable-=L,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},K.readBits=function(r){var L=Math.min(this.bitsAvailable,r),v=this.word>>>32-L;return r>32&&X.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=L,this.bitsAvailable>0?this.word<<=L:this.bytesAvailable>0&&this.loadWord(),L=r-L,L>0&&this.bitsAvailable?v<>>r)!==0)return this.word<<=r,this.bitsAvailable-=r,r;return this.loadWord(),r+this.skipLZ()},K.skipUEG=function(){this.skipBits(1+this.skipLZ())},K.skipEG=function(){this.skipBits(1+this.skipLZ())},K.readUEG=function(){var r=this.skipLZ();return this.readBits(r+1)-1},K.readEG=function(){var r=this.readUEG();return 1&r?1+r>>>1:-1*(r>>>1)},K.readBoolean=function(){return this.readBits(1)===1},K.readUByte=function(){return this.readBits(8)},K.readUShort=function(){return this.readBits(16)},K.readUInt=function(){return this.readBits(32)},K.skipScalingList=function(r){for(var L=8,v=8,m,p=0;p0?w.subarray(R,R+A):void 0},K=function(w,D){var R=0;return R=(w[D]&127)<<21,R|=(w[D+1]&127)<<14,R|=(w[D+2]&127)<<7,R|=w[D+3]&127,R},G=function(w,D){return X(w,D)&&K(w,D+6)+10<=w.length-D},r=function(w){for(var D=m(w),R=0;R>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:b+=String.fromCharCode(d);break;case 12:case 13:S=w[B++],b+=String.fromCharCode((d&31)<<6|S&63);break;case 14:S=w[B++],y=w[B++],b+=String.fromCharCode((d&15)<<12|(S&63)<<6|(y&63)<<0);break;default:}}return b},s={decodeTextFrame:u},a;function O(){return!a&&typeof self.TextDecoder!="undefined"&&(a=new self.TextDecoder("utf-8")),a}},"./src/demux/mp3demuxer.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/demux/base-audio-demuxer.ts"),j=P("./src/demux/id3.ts"),U=P("./src/utils/logger.ts"),K=P("./src/demux/mpegaudio.ts");function G(v,m){v.prototype=Object.create(m.prototype),v.prototype.constructor=v,r(v,m)}function r(v,m){return r=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},r(v,m)}var L=function(v){G(m,v);function m(){return v.apply(this,arguments)||this}var p=m.prototype;return p.resetInitSegment=function(u,f,l){v.prototype.resetInitSegment.call(this,u,f,l),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:u,duration:l,inputTimeScale:9e4,dropped:0}},m.probe=function(u){if(!u)return!1;for(var f=j.getID3Data(u,0)||[],l=f.length,o=u.length;l0},G.demux=function(L){var v=L,m=Object(j.dummyTrack)();if(this.config.progressive){this.remainderData&&(v=Object(X.appendUint8Array)(this.remainderData,L));var p=Object(X.segmentValidRange)(v);this.remainderData=p.remainder,m.samples=p.valid||new Uint8Array}else m.samples=v;return{audioTrack:Object(j.dummyTrack)(),avcTrack:m,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},G.flush=function(){var L=Object(j.dummyTrack)();return L.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(j.dummyTrack)(),avcTrack:L,id3Track:Object(j.dummyTrack)(),textTrack:Object(j.dummyTrack)()}},G.demuxSampleAes=function(L,v,m){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},G.destroy=function(){},K}();U.minProbeByteLength=1024,J.default=U},"./src/demux/mpegaudio.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"appendFrame",function(){return r}),P.d(J,"parseHeader",function(){return L}),P.d(J,"isHeaderPattern",function(){return v}),P.d(J,"isHeader",function(){return m}),P.d(J,"canParse",function(){return p}),P.d(J,"probe",function(){return h});var X=null,j=[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],U=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],K=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],G=[0,1,1,4];function r(u,f,l,o,s){if(l+24>f.length)return;var a=L(f,l);if(a&&l+a.frameLength<=f.length){var O=a.samplesPerFrame*9e4/a.sampleRate,E=o+s*O,w={unit:f.subarray(l,l+a.frameLength),pts:E,dts:E};return u.config=[],u.channelCount=a.channelCount,u.samplerate=a.sampleRate,u.samples.push(w),{sample:w,length:a.frameLength,missing:0}}}function L(u,f){var l=u[f+1]>>3&3,o=u[f+1]>>1&3,s=u[f+2]>>4&15,a=u[f+2]>>2&3;if(l!==1&&s!==0&&s!==15&&a!==3){var O=u[f+2]>>1&1,E=u[f+3]>>6,w=l===3?3-o:o===3?3:4,D=j[w*14+s-1]*1e3,R=l===3?0:l===2?1:2,A=U[R*3+a],C=E===3?1:2,T=K[l][o],d=G[o],S=T*8*d,y=Math.floor(T*D/A+O)*d;if(X===null){var b=navigator.userAgent||"",B=b.match(/Chrome\/(\d+)/i);X=B?parseInt(B[1]):0}var F=!!X&&X<=87;return F&&o===2&&D>=224e3&&E===0&&(u[f+3]=u[f+3]|128),{sampleRate:A,channelCount:C,frameLength:y,samplesPerFrame:S}}}function v(u,f){return u[f]===255&&(u[f+1]&224)===224&&(u[f+1]&6)!==0}function m(u,f){return f+1=L.length){m();return}if(L[v].unit.length<32)continue;var p=this.decrypter.isSync();if(this.decryptAacSample(L,v,m,p),!p)return}},G.getAvcEncryptedData=function(L){for(var v=Math.floor((L.length-48)/160)*16+16,m=new Int8Array(v),p=0,h=32;h<=L.length-16;h+=160,p+=16)m.set(L.subarray(h,h+16),p);return m},G.getAvcDecryptedUnit=function(L,v){for(var m=new Uint8Array(v),p=0,h=32;h<=L.length-16;h+=160,p+=16)L.set(m.subarray(p,p+16),h);return L},G.decryptAvcSample=function(L,v,m,p,h,u){var f=Object(j.discardEPB)(h.data),l=this.getAvcEncryptedData(f),o=this;this.decryptBuffer(l.buffer,function(s){h.data=o.getAvcDecryptedUnit(f,s),u||o.decryptAvcSamples(L,v,m+1,p)})},G.decryptAvcSamples=function(L,v,m,p){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;v++,m=0){if(v>=L.length){p();return}for(var h=L[v].units;!(m>=h.length);m++){var u=h[m];if(u.data.length<=48||u.type!==1&&u.type!==5)continue;var f=this.decrypter.isSync();if(this.decryptAvcSample(L,v,m,p,u,f),!f)return}}},K}();J.default=U},"./src/demux/transmuxer-interface.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h});var X=P("./node_modules/webworkify-webpack/index.js"),j=P.n(X),U=P("./src/events.ts"),K=P("./src/demux/transmuxer.ts"),G=P("./src/utils/logger.ts"),r=P("./src/errors.ts"),L=P("./src/utils/mediasource-helper.ts"),v=P("./node_modules/eventemitter3/index.js"),m=P.n(v),p=Object(L.getMediaSource)()||{isTypeSupported:function(){return!1}},h=function(){function u(l,o,s,a){var O=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=l,this.id=o,this.onTransmuxComplete=s,this.onFlush=a;var E=l.config,w=function(T,d){d=d||{},d.frag=O.frag,d.id=O.id,l.trigger(T,d)};this.observer=new v.EventEmitter,this.observer.on(U.Events.FRAG_DECRYPTED,w),this.observer.on(U.Events.ERROR,w);var D={mp4:p.isTypeSupported("video/mp4"),mpeg:p.isTypeSupported("audio/mpeg"),mp3:p.isTypeSupported('audio/mp4; codecs="mp3"')},R=navigator.vendor;if(E.enableWorker&&typeof Worker!="undefined"){G.logger.log("demuxing in webworker");var A;try{A=this.worker=X("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),A.addEventListener("message",this.onwmsg),A.onerror=function(C){l.trigger(U.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(C.message+" ("+C.filename+":"+C.lineno+")")})},A.postMessage({cmd:"init",typeSupported:D,vendor:R,id:o,config:JSON.stringify(E)})}catch(C){G.logger.warn("Error in worker:",C),G.logger.error("Error while initializing DemuxerWorker, fallback to inline"),A&&self.URL.revokeObjectURL(A.objectURL),this.transmuxer=new K.default(this.observer,D,E,R,o),this.worker=null}}else this.transmuxer=new K.default(this.observer,D,E,R,o)}var f=u.prototype;return f.destroy=function(){var o=this.worker;if(o)o.removeEventListener("message",this.onwmsg),o.terminate(),this.worker=null;else{var s=this.transmuxer;s&&(s.destroy(),this.transmuxer=null)}var a=this.observer;a&&a.removeAllListeners(),this.observer=null},f.push=function(o,s,a,O,E,w,D,R,A,C){var T=this;A.transmuxing.start=self.performance.now();var d=this.transmuxer,S=this.worker,y=w?w.start:E.start,b=E.decryptdata,B=this.frag,F=!(B&&E.cc===B.cc),_=!(B&&A.level===B.level),M=B?A.sn-B.sn:-1,I=this.part?A.part-this.part.index:1,g=!_&&(M===1||M===0&&I===1),H=self.performance.now();(_||M||E.stats.parsing.start===0)&&(E.stats.parsing.start=H),w&&(I||!g)&&(w.stats.parsing.start=H);var $=new K.TransmuxState(F,g,R,_,y);if(!g||F){G.logger.log("[transmuxer-interface, "+E.type+"]: Starting new transmux session for sn: "+A.sn+" p: "+A.part+" level: "+A.level+" id: "+A.id+` discontinuity: `+F+` trackSwitch: `+_+` contiguous: `+g+` accurateTimeOffset: `+R+` - timeOffset: `+y);var ne=new K.TransmuxConfig(a,O,s,D,C);this.configureTransmuxer(ne)}if(this.frag=E,this.part=w,S)S.postMessage({cmd:"demux",data:o,decryptdata:b,chunkMeta:A,state:$},o instanceof ArrayBuffer?[o]:[]);else if(c){var se=c.push(o,b,A,$);Object(K.isPromise)(se)?se.then(function(Oe){T.handleTransmuxComplete(Oe)}):this.handleTransmuxComplete(se)}},f.flush=function(o){var s=this;o.transmuxing.start=self.performance.now();var a=this.transmuxer,O=this.worker;if(O)O.postMessage({cmd:"flush",chunkMeta:o});else if(a){var E=a.flush(o);Object(K.isPromise)(E)?E.then(function(w){s.handleFlushResult(w,o)}):this.handleFlushResult(E,o)}},f.handleFlushResult=function(o,s){var a=this;o.forEach(function(O){a.handleTransmuxComplete(O)}),this.onFlush(s)},f.onWorkerMessage=function(o){var s=o.data,a=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,a.trigger(s.event,s.data);break}}},f.configureTransmuxer=function(o){var s=this.worker,a=this.transmuxer;s?s.postMessage({cmd:"configure",config:o}):a&&a.configure(o)},f.handleTransmuxComplete=function(o){o.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(o)},u}()},"./src/demux/transmuxer-worker.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return r});var X=P("./src/demux/transmuxer.ts"),j=P("./src/events.ts"),U=P("./src/utils/logger.ts"),K=P("./node_modules/eventemitter3/index.js"),G=P.n(K);function r(h){var u=new K.EventEmitter,f=function(o,s){h.postMessage({event:o,data:s})};u.on(j.Events.FRAG_DECRYPTED,f),u.on(j.Events.ERROR,f),h.addEventListener("message",function(l){var o=l.data;switch(o.cmd){case"init":{var s=JSON.parse(o.config);h.transmuxer=new X.default(u,o.typeSupported,s,o.vendor,o.id),Object(U.enableLogs)(s.debug),f("init",null);break}case"configure":{h.transmuxer.configure(o.config);break}case"demux":{var a=h.transmuxer.push(o.data,o.decryptdata,o.chunkMeta,o.state);Object(X.isPromise)(a)?a.then(function(w){L(h,w)}):L(h,a);break}case"flush":{var O=o.chunkMeta,E=h.transmuxer.flush(O);Object(X.isPromise)(E)?E.then(function(w){m(h,w,O)}):m(h,E,O);break}default:break}})}function L(h,u){if(p(u.remuxResult))return;var f=[],l=u.remuxResult,o=l.audio,s=l.video;o&&v(f,o),s&&v(f,s),h.postMessage({event:"transmuxComplete",data:u},f)}function v(h,u){u.data1&&h.push(u.data1.buffer),u.data2&&h.push(u.data2.buffer)}function m(h,u,f){u.forEach(function(l){L(h,l)}),h.postMessage({event:"flush",data:f})}function p(h){return!h.audio&&!h.video&&!h.text&&!h.id3&&!h.initSegment}},"./src/demux/transmuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return s}),P.d(J,"isPromise",function(){return E}),P.d(J,"TransmuxConfig",function(){return w}),P.d(J,"TransmuxState",function(){return D});var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/crypt/decrypter.ts"),K=P("./src/demux/aacdemuxer.ts"),G=P("./src/demux/mp4demuxer.ts"),r=P("./src/demux/tsdemuxer.ts"),L=P("./src/demux/mp3demuxer.ts"),v=P("./src/remux/mp4-remuxer.ts"),m=P("./src/remux/passthrough-remuxer.ts"),p=P("./src/demux/chunk-cache.ts"),h=P("./src/utils/mp4-tools.ts"),u=P("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(R){u.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var l=[{demux:r.default,remux:v.default},{demux:G.default,remux:m.default},{demux:K.default,remux:v.default},{demux:L.default,remux:v.default}],o=1024;l.forEach(function(R){var A=R.demux;o=Math.max(o,A.minProbeByteLength)});var s=function(){function R(C,T,c,S,y){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 p.default,this.observer=C,this.typeSupported=T,this.config=c,this.vendor=S,this.id=y}var A=R.prototype;return A.configure=function(T){this.transmuxConfig=T,this.decrypter&&this.decrypter.reset()},A.push=function(T,c,S,y){var b=this,B=S.transmuxing;B.executeStart=f();var F=new Uint8Array(T),_=this.cache,M=this.config,I=this.currentTransmuxState,g=this.transmuxConfig;y&&(this.currentTransmuxState=y);var H=a(F,c);if(H&&H.method==="AES-128"){var $=this.getDecrypter();if(M.enableSoftwareAES){var ne=$.softwareDecrypt(F,H.key.buffer,H.iv.buffer);if(!ne)return B.executeEnd=f(),O(S);F=new Uint8Array(ne)}else return this.decryptionPromise=$.webCryptoDecrypt(F,H.key.buffer,H.iv.buffer).then(function(Ne){var Be=b.push(Ne,null,S);return b.decryptionPromise=null,Be}),this.decryptionPromise}var se=y||I,Oe=se.contiguous,ge=se.discontinuity,Te=se.trackSwitch,Re=se.accurateTimeOffset,Le=se.timeOffset,de=g.audioCodec,he=g.videoCodec,re=g.defaultInitPts,fe=g.duration,oe=g.initSegmentData;if((ge||Te)&&this.resetInitSegment(oe,de,he,fe),ge&&this.resetInitialTimestamp(re),Oe||this.resetContiguity(),this.needsProbing(F,ge,Te)){if(_.dataLength){var De=_.flush();F=Object(h.appendUint8Array)(De,F)}this.configureTransmuxer(F,g)}var Fe=this.transmux(F,H,Le,Re,S),Ce=this.currentTransmuxState;return Ce.contiguous=!0,Ce.discontinuity=!1,Ce.trackSwitch=!1,B.executeEnd=f(),Fe},A.flush=function(T){var c=this,S=T.transmuxing;S.executeStart=f();var y=this.decrypter,b=this.cache,B=this.currentTransmuxState,F=this.decryptionPromise;if(F)return F.then(function(){return c.flush(T)});var _=[],M=B.timeOffset;if(y){var I=y.flush();I&&_.push(this.push(I,null,T))}var g=b.dataLength;b.reset();var H=this.demuxer,$=this.remuxer;if(!H||!$)return g>=o&&this.observer.emit(X.Events.ERROR,X.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),S.executeEnd=f(),[O(T)];var ne=H.flush(M);return E(ne)?ne.then(function(se){return c.flushRemux(_,se,T),_}):(this.flushRemux(_,ne,T),_)},A.flushRemux=function(T,c,S){var y=c.audioTrack,b=c.avcTrack,B=c.id3Track,F=c.textTrack,_=this.currentTransmuxState,M=_.accurateTimeOffset,I=_.timeOffset;u.logger.log("[transmuxer.ts]: Flushed fragment "+S.sn+(S.part>-1?" p: "+S.part:"")+" of level "+S.level);var g=this.remuxer.remux(y,b,B,F,I,M,!0,this.id);T.push({remuxResult:g,chunkMeta:S}),S.transmuxing.executeEnd=f()},A.resetInitialTimestamp=function(T){var c=this.demuxer,S=this.remuxer;if(!c||!S)return;c.resetTimeStamp(T),S.resetTimeStamp(T)},A.resetContiguity=function(){var T=this.demuxer,c=this.remuxer;if(!T||!c)return;T.resetContiguity(),c.resetNextTimestamp()},A.resetInitSegment=function(T,c,S,y){var b=this.demuxer,B=this.remuxer;if(!b||!B)return;b.resetInitSegment(c,S,y),B.resetInitSegment(T,c,S)},A.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},A.transmux=function(T,c,S,y,b){var B;return c&&c.method==="SAMPLE-AES"?B=this.transmuxSampleAes(T,c,S,y,b):B=this.transmuxUnencrypted(T,S,y,b),B},A.transmuxUnencrypted=function(T,c,S,y){var b=this.demuxer.demux(T,c,!1,!this.config.progressive),B=b.audioTrack,F=b.avcTrack,_=b.id3Track,M=b.textTrack,I=this.remuxer.remux(B,F,_,M,c,S,!1,this.id);return{remuxResult:I,chunkMeta:y}},A.transmuxSampleAes=function(T,c,S,y,b){var B=this;return this.demuxer.demuxSampleAes(T,c,S).then(function(F){var _=B.remuxer.remux(F.audioTrack,F.avcTrack,F.id3Track,F.textTrack,S,y,!1,B.id);return{remuxResult:_,chunkMeta:b}})},A.configureTransmuxer=function(T,c){for(var S=this.config,y=this.observer,b=this.typeSupported,B=this.vendor,F=c.audioCodec,_=c.defaultInitPts,M=c.duration,I=c.initSegmentData,g=c.videoCodec,H,$=0,ne=l.length;$0&&A!=null&&A.key!=null&&A.iv!==null&&A.method!=null&&(C=A),C}var O=function(A){return{remuxResult:{},chunkMeta:A}};function E(R){return"then"in R&&R.then instanceof Function}var w=function(A,C,T,c,S){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=A,this.videoCodec=C,this.initSegmentData=T,this.duration=c,this.defaultInitPts=S},D=function(A,C,T,c,S){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=A,this.contiguous=C,this.accurateTimeOffset=T,this.trackSwitch=c,this.timeOffset=S}},"./src/demux/tsdemuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"discardEPB",function(){return O});var X=P("./src/demux/adts.ts"),j=P("./src/demux/mpegaudio.ts"),U=P("./src/demux/exp-golomb.ts"),K=P("./src/demux/id3.ts"),G=P("./src/demux/sample-aes.ts"),r=P("./src/events.ts"),L=P("./src/utils/mp4-tools.ts"),v=P("./src/utils/logger.ts"),m=P("./src/errors.ts"),p={video:1,audio:2,id3:3,text:4},h=function(){function E(D,R,A){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=D,this.config=R,this.typeSupported=A}E.probe=function(R){var A=E.syncOffset(R);return A<0?!1:(A&&v.logger.warn("MPEG2-TS detected but first sync word found @ offset "+A+", junk ahead ?"),!0)},E.syncOffset=function(R){for(var A=Math.min(1e3,R.length-3*188),C=0;C>4,de=void 0;if(Le>1){if(de=ge+5+R[ge+4],de===ge+188)continue}else de=ge+4;switch(Re){case B:Te&&(F&&(c=o(F))&&this.parseAVCPES(c,!1),F={data:[],size:0}),F&&(F.data.push(R.subarray(de,ge+188)),F.size+=ge+188-de);break;case _:Te&&(I&&(c=o(I))&&(y.isAAC?this.parseAACPES(c):this.parseMPEGPES(c)),I={data:[],size:0}),I&&(I.data.push(R.subarray(de,ge+188)),I.size+=ge+188-de);break;case M:Te&&(g&&(c=o(g))&&this.parseID3PES(c),g={data:[],size:0}),g&&(g.data.push(R.subarray(de,ge+188)),g.size+=ge+188-de);break;case 0:Te&&(de+=R[de]+1),ne=this._pmtId=f(R,de);break;case ne:{Te&&(de+=R[de]+1);var he=l(R,de,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,C);B=he.avc,B>0&&(S.pid=B),_=he.audio,_>0&&(y.pid=_,y.isAAC=he.isAAC),M=he.id3,M>0&&(b.pid=M),H&&!$&&(v.logger.log("reparse from beginning"),H=!1,ge=Oe-188),$=this.pmtParsed=!0;break}case 17:case 8191:break;default:H=!0;break}}else this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});S.pesData=F,y.pesData=I,b.pesData=g;var re={audioTrack:y,avcTrack:S,id3Track:b,textTrack:this._txtTrack};return T&&this.extractRemainingSamples(re),re},w.flush=function(){var R=this.remainderData;this.remainderData=null;var A;return R?A=this.demux(R,-1,!1,!0):A={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(A),this.sampleAes?this.decrypt(A,this.sampleAes):A},w.extractRemainingSamples=function(R){var A=R.audioTrack,C=R.avcTrack,T=R.id3Track,c=C.pesData,S=A.pesData,y=T.pesData,b;c&&(b=o(c))?(this.parseAVCPES(b,!0),C.pesData=null):C.pesData=c,S&&(b=o(S))?(A.isAAC?this.parseAACPES(b):this.parseMPEGPES(b),A.pesData=null):(S!=null&&S.size&&v.logger.log("last AAC PES packet truncated,might overlap between fragments"),A.pesData=S),y&&(b=o(y))?(this.parseID3PES(b),T.pesData=null):T.pesData=y},w.demuxSampleAes=function(R,A,C){var T=this.demux(R,C,!0,!this.config.progressive),c=this.sampleAes=new G.default(this.observer,this.config,A);return this.decrypt(T,c)},w.decrypt=function(R,A){return new Promise(function(C){var T=R.audioTrack,c=R.avcTrack;T.samples&&T.isAAC?A.decryptAacSamples(T.samples,0,function(){c.samples?A.decryptAvcSamples(c.samples,0,0,function(){C(R)}):C(R)}):c.samples&&A.decryptAvcSamples(c.samples,0,0,function(){C(R)})})},w.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},w.parseAVCPES=function(R,A){var C=this,T=this._avcTrack,c=this.parseAVCNALu(R.data),S=!1,y=this.avcSample,b,B=!1;R.data=null,y&&c.length&&!T.audFound&&(s(y,T),y=this.avcSample=u(!1,R.pts,R.dts,"")),c.forEach(function(F){switch(F.type){case 1:{b=!0,y||(y=C.avcSample=u(!0,R.pts,R.dts,"")),S&&(y.debug+="NDR "),y.frame=!0;var _=F.data;if(B&&_.length>4){var M=new U.default(_).readSliceType();(M===2||M===4||M===7||M===9)&&(y.key=!0)}break}case 5:b=!0,y||(y=C.avcSample=u(!0,R.pts,R.dts,"")),S&&(y.debug+="IDR "),y.key=!0,y.frame=!0;break;case 6:{b=!0,S&&y&&(y.debug+="SEI ");var I=new U.default(O(F.data));I.readUByte();for(var g=0,H=0,$=!1,ne=0;!$&&I.bytesAvailable>1;){g=0;do ne=I.readUByte(),g+=ne;while(ne===255);H=0;do ne=I.readUByte(),H+=ne;while(ne===255);if(g===4&&I.bytesAvailable!==0){$=!0;var se=I.readUByte();if(se===181){var Oe=I.readUShort();if(Oe===49){var ge=I.readUInt();if(ge===1195456820){var Te=I.readUByte();if(Te===3){for(var Re=I.readUByte(),Le=I.readUByte(),de=31&Re,he=[Re,Le],re=0;re16){for(var fe=[],oe=0;oe<16;oe++)fe.push(I.readUByte().toString(16)),(oe===3||oe===5||oe===7||oe===9)&&fe.push("-");for(var De=H-16,Fe=new Uint8Array(De),Ce=0;Ce=0){var I={data:R.subarray(_,y-T-1),type:M};S.push(I)}else{var g=this.getLastNalUnit();if(g&&(c&&y<=4-c&&(g.state&&(g.data=g.data.subarray(0,g.data.byteLength-c))),B=y-T-1,B>0)){var H=new Uint8Array(g.data.byteLength+B);H.set(g.data,0),H.set(R.subarray(0,B),g.data.byteLength),g.data=H,g.state=0}}y=0&&T>=0){var $={data:R.subarray(_,A),type:M,state:T};S.push($)}if(S.length===0){var ne=this.getLastNalUnit();if(ne){var se=new Uint8Array(ne.data.byteLength+R.byteLength);se.set(ne.data,0),se.set(R,ne.data.byteLength),ne.data=se}}return C.naluState=T,S},w.parseAACPES=function(R){var A=0,C=this._audioTrack,T=this.aacOverFlow,c=R.data;if(T){this.aacOverFlow=null;var S=T.sample.unit.byteLength,y=Math.min(T.missing,S),b=S-y;T.sample.unit.set(c.subarray(0,y),b),C.samples.push(T.sample),A=T.missing}var B,F;for(B=A,F=c.length;B1;){var S=new Uint8Array(c[0].length+c[1].length);S.set(c[0]),S.set(c[1],c[0].length),c[0]=S,c.splice(1,1)}D=c[0];var y=(D[0]<<16)+(D[1]<<8)+D[2];if(y===1){if(R=(D[4]<<8)+D[5],R&&R>E.size-6)return null;var b=D[7];b&192&&(C=(D[9]&14)*536870912+(D[10]&255)*4194304+(D[11]&254)*16384+(D[12]&255)*128+(D[13]&254)/2,b&64?(T=(D[14]&14)*536870912+(D[15]&255)*4194304+(D[16]&254)*16384+(D[17]&255)*128+(D[18]&254)/2,C-T>60*9e4&&(v.logger.warn(Math.round((C-T)/9e4)+"s delta between PTS and DTS, align them"),C=T)):T=C),A=D[8];var B=A+9;if(E.size<=B)return null;E.size-=B;for(var F=new Uint8Array(E.size),_=0,M=c.length;_I){B-=I;continue}else D=D.subarray(B),I-=B,B=0;F.set(D,w),w+=I}return R&&(R-=A+3),{data:F,pts:C,dts:T,len:R}}return null}function s(E,w){if(E.units.length&&E.frame){if(E.pts===void 0){var D=w.samples,R=D.length;if(R){var A=D[R-1];E.pts=A.pts,E.dts=A.dts}else{w.dropped++;return}}w.samples.push(E)}E.debug.length&&v.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function a(E,w){var D=E.length;if(D>0){if(w.pts>=E[D-1].pts)E.push(w);else for(var R=D-1;R>=0;R--)if(w.ptsC)return c;return 0}},{key:"maxAutoLevel",get:function(){var A=this.levels,C=this.autoLevelCapping,T;return C===-1&&A&&A.length?T=A.length-1:T=C,T}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(A){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,A)}},{key:"audioTracks",get:function(){var A=this.audioTrackController;return A?A.audioTracks:[]}},{key:"audioTrack",get:function(){var A=this.audioTrackController;return A?A.audioTrack:-1},set:function(A){var C=this.audioTrackController;C&&(C.audioTrack=A)}},{key:"subtitleTracks",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTrack:-1},set:function(A){var C=this.subtitleTrackController;C&&(C.subtitleTrack=A)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var A=this.subtitleTrackController;return A?A.subtitleDisplay:!1},set:function(A){var C=this.subtitleTrackController;C&&(C.subtitleDisplay=A)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(A){this.config.lowLatencyMode=A}},{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 o.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return w.defaultConfig?w.defaultConfig:u.hlsDefaultConfig},set:function(A){w.defaultConfig=A}}]),w}();E.defaultConfig=void 0},"./src/is-supported.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"isSupported",function(){return U}),P.d(J,"changeTypeSupported",function(){return K});var X=P("./src/utils/mediasource-helper.ts");function j(){return self.SourceBuffer||self.WebKitSourceBuffer}function U(){var G=Object(X.getMediaSource)();if(!G)return!1;var r=j(),L=G&&typeof G.isTypeSupported=="function"&&G.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),v=!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function";return!!L&&!!v}function K(){var G,r=j();return typeof(r==null||((G=r.prototype)===null||G===void 0)?void 0:G.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h}),P.d(J,"LoadError",function(){return f});var X=P("./src/polyfills/number.ts"),j=P("./src/errors.ts");function U(l,o){l.prototype=Object.create(o.prototype),l.prototype.constructor=l,v(l,o)}function K(l){var o=typeof Map=="function"?new Map:void 0;return K=function(a){if(a===null||!L(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof o!="undefined"){if(o.has(a))return o.get(a);o.set(a,O)}function O(){return G(a,arguments,m(this).constructor)}return O.prototype=Object.create(a.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),v(O,a)},K(l)}function G(l,o,s){return r()?G=Reflect.construct:G=function(O,E,w){var D=[null];D.push.apply(D,E);var R=Function.bind.apply(O,D),A=new R;return w&&v(A,w.prototype),A},G.apply(null,arguments)}function r(){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(l){return!1}}function L(l){return Function.toString.call(l).indexOf("[native code]")!==-1}function v(l,o){return v=Object.setPrototypeOf||function(a,O){return a.__proto__=O,a},v(l,o)}function m(l){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},m(l)}var p=Math.pow(2,17),h=function(){function l(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var o=l.prototype;return o.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},o.abort=function(){this.loader&&this.loader.abort()},o.load=function(a,O){var E=this,w=a.url;if(!w)return Promise.reject(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,networkDetails:null},"Fragment does not have a "+(w?"part list":"url")));this.abort();var D=this.config,R=D.fLoader,A=D.loader;return new Promise(function(C,T){E.loader&&E.loader.destroy();var c=E.loader=a.loader=R?new R(D):new A(D),S=u(a),y={timeout:D.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:D.fragLoadingMaxRetryTimeout,highWaterMark:p};a.stats=c.stats,c.load(S,y,{onSuccess:function(B,F,_,M){E.resetLoader(a,c),C({frag:a,part:null,payload:B.data,networkDetails:M})},onError:function(B,F,_){E.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,response:B,networkDetails:_}))},onAbort:function(B,F,_){E.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,networkDetails:_}))},onTimeout:function(B,F,_){E.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,networkDetails:_}))},onProgress:function(B,F,_,M){O&&O({frag:a,part:null,payload:_,networkDetails:M})}})})},o.loadPart=function(a,O,E){var w=this;this.abort();var D=this.config,R=D.fLoader,A=D.loader;return new Promise(function(C,T){w.loader&&w.loader.destroy();var c=w.loader=a.loader=R?new R(D):new A(D),S=u(a,O),y={timeout:D.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:D.fragLoadingMaxRetryTimeout,highWaterMark:p};O.stats=c.stats,c.load(S,y,{onSuccess:function(B,F,_,M){w.resetLoader(a,c),w.updateStatsFromPart(a,O);var I={frag:a,part:O,payload:B.data,networkDetails:M};E(I),C(I)},onError:function(B,F,_){w.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,part:O,response:B,networkDetails:_}))},onAbort:function(B,F,_){a.stats.aborted=O.stats.aborted,w.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,part:O,networkDetails:_}))},onTimeout:function(B,F,_){w.resetLoader(a,c),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,part:O,networkDetails:_}))}})})},o.updateStatsFromPart=function(a,O){var E=a.stats,w=O.stats,D=w.total;if(E.loaded+=w.loaded,D){var R=Math.round(a.duration/O.duration),A=Math.min(Math.round(E.loaded/D),R),C=R-A,T=C*Math.round(E.loaded/A);E.total=E.loaded+T}else E.total=Math.max(E.loaded,E.total);var c=E.loading,S=w.loading;c.start?c.first+=S.first-S.start:(c.start=S.start,c.first=S.first),c.end=S.end},o.resetLoader=function(a,O){a.loader=null,this.loader===O&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),O.destroy()},l}();function u(l,o){o===void 0&&(o=null);var s=o||l,a={frag:l,part:o,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},O=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(X.isFiniteNumber)(O)&&Object(X.isFiniteNumber)(E)&&(a.rangeStart=O,a.rangeEnd=E),a}var f=function(l){U(o,l);function o(s){for(var a,O=arguments.length,E=new Array(O>1?O-1:0),w=1;w>8*(15-D)&255;return w},a.setDecryptDataFromLevelKey=function(E,w){var D=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(D=G.LevelKey.fromURI(E.uri),D.method=E.method,D.iv=this.createInitializationVector(w),D.keyFormat="identity"),D},a.setElementaryStreamInfo=function(E,w,D,R,A,C){C===void 0&&(C=!1);var T=this.elementaryStreams,c=T[E];if(!c){T[E]={startPTS:w,endPTS:D,startDTS:R,endDTS:A,partial:C};return}c.startPTS=Math.min(c.startPTS,w),c.endPTS=Math.max(c.endPTS,D),c.startDTS=Math.min(c.startDTS,R),c.endDTS=Math.max(c.endDTS,A)},a.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[h.AUDIO]=null,E[h.VIDEO]=null,E[h.AUDIOVIDEO]=null},p(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&&K.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(X.isFiniteNumber)(this.programDateTime))return null;var E=Object(X.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}(u),l=function(o){L(s,o);function s(a,O,E,w,D){var R;R=o.call(this,E)||this,R.fragOffset=0,R.duration=0,R.gap=!1,R.independent=!1,R.relurl=void 0,R.fragment=void 0,R.index=void 0,R.stats=new r.LoadStats,R.duration=a.decimalFloatingPoint("DURATION"),R.gap=a.bool("GAP"),R.independent=a.bool("INDEPENDENT"),R.relurl=a.enumeratedString("URI"),R.fragment=O,R.index=w;var A=a.enumeratedString("BYTERANGE");return A&&R.setByteRange(A,D),D&&(R.fragOffset=D.fragOffset+D.duration),R}return p(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 O=this.elementaryStreams;return!!(O.audio||O.video||O.audiovideo)}}]),s}(u)},"./src/loader/key-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return K});var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/utils/logger.ts"),K=function(){function G(L){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=L,this._registerListeners()}var r=G.prototype;return r._registerListeners=function(){this.hls.on(X.Events.KEY_LOADING,this.onKeyLoading,this)},r._unregisterListeners=function(){this.hls.off(X.Events.KEY_LOADING,this.onKeyLoading)},r.destroy=function(){this._unregisterListeners();for(var v in this.loaders){var m=this.loaders[v];m&&m.destroy()}this.loaders={}},r.onKeyLoading=function(v,m){var p=m.frag,h=p.type,u=this.loaders[h];if(!p.decryptdata){U.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=p.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var l=this.hls.config;if(u&&(U.logger.warn("abort previous key loader for type:"+h),u.abort()),!f){U.logger.warn("key uri is falsy");return}var o=l.loader,s=p.loader=this.loaders[h]=new o(l);this.decrypturl=f,this.decryptkey=null;var a={url:f,frag:p,responseType:"arraybuffer"},O={timeout:l.fragLoadingTimeOut,maxRetry:0,retryDelay:l.fragLoadingRetryDelay,maxRetryDelay:l.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(a,O,E)}else this.decryptkey&&(p.decryptdata.key=this.decryptkey,this.hls.trigger(X.Events.KEY_LOADED,{frag:p}))},r.loadsuccess=function(v,m,p){var h=p.frag;if(!h.decryptdata){U.logger.error("after key load, decryptdata unset");return}this.decryptkey=h.decryptdata.key=new Uint8Array(v.data),h.loader=null,delete this.loaders[h.type],this.hls.trigger(X.Events.KEY_LOADED,{frag:h})},r.loaderror=function(v,m){var p=m.frag,h=p.loader;h&&h.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:p,response:v})},r.loadtimeout=function(v,m){var p=m.frag,h=p.loader;h&&h.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:p})},G}()},"./src/loader/level-details.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"LevelDetails",function(){return G});var X=P("./src/polyfills/number.ts");function j(r,L){for(var v=0;vm.endSN||p>0||p===0&&h>0,this.updated||this.advanced?this.misses=Math.floor(m.misses*.6):this.misses=m.misses+1,this.availabilityDelay=m.availabilityDelay},U(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(X.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||K}},{key:"drift",get:function(){var m=this.driftEndTime-this.driftStartTime;if(m>0){var p=this.driftEnd-this.driftStart;return p*1e3/m}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var m;return(m=this.fragments)!==null&&m!==void 0&&m.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 m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),r}()},"./src/loader/level-key.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"LevelKey",function(){return G});var X=P("./node_modules/url-toolkit/src/url-toolkit.js"),j=P.n(X);function U(r,L){for(var v=0;v2){var T=C.shift()+".";return T+=parseInt(C.shift()).toString(16),T+=("000"+parseInt(C.shift()).toString(16)).substr(-4),T}return A},D.resolve=function(A,C){return j.buildAbsoluteURL(C,A,{alwaysNormalize:!0})},D.parseMasterPlaylist=function(A,C){var T=[],c={},S=!1;p.lastIndex=0;for(var y;(y=p.exec(A))!=null;)if(y[1]){var b=new L.AttrList(y[1]),B={attrs:b,bitrate:b.decimalInteger("AVERAGE-BANDWIDTH")||b.decimalInteger("BANDWIDTH"),name:b.NAME,url:D.resolve(y[2],C)},F=b.decimalResolution("RESOLUTION");F&&(B.width=F.width,B.height=F.height),a((b.CODECS||"").split(/[ ,]+/).filter(function(M){return M}),B),B.videoCodec&&B.videoCodec.indexOf("avc1")!==-1&&(B.videoCodec=D.convertAVC1ToAVCOTI(B.videoCodec)),T.push(B)}else if(y[3]){var _=new L.AttrList(y[3]);_["DATA-ID"]&&(S=!0,c[_["DATA-ID"]]=_)}return{levels:T,sessionData:S?c:null}},D.parseMasterPlaylistMedia=function(A,C,T,c){c===void 0&&(c=[]);var S,y=[],b=0;for(h.lastIndex=0;(S=h.exec(A))!==null;){var B=new L.AttrList(S[1]);if(B.TYPE===T){var F={attrs:B,bitrate:0,id:b++,groupId:B["GROUP-ID"],instreamId:B["INSTREAM-ID"],name:B.NAME||B.LANGUAGE||"",type:T,default:B.bool("DEFAULT"),autoselect:B.bool("AUTOSELECT"),forced:B.bool("FORCED"),lang:B.LANGUAGE,url:B.URI?D.resolve(B.URI,C):""};if(c.length){var _=D.findGroup(c,F.groupId)||c[0];O(F,_,"audioCodec"),O(F,_,"textCodec")}y.push(F)}}return y},D.parseLevelPlaylist=function(A,C,T,c,S){var y=new G.LevelDetails(C),b=y.fragments,B=null,F=0,_=0,M=0,I=0,g=null,H=new K.Fragment(c,C),$,ne,se,Oe=-1,ge=!1;for(u.lastIndex=0,y.m3u8=A;($=u.exec(A))!==null;){ge&&(ge=!1,H=new K.Fragment(c,C),H.start=M,H.sn=F,H.cc=I,H.level=T,B&&(H.initSegment=B,H.rawProgramDateTime=B.rawProgramDateTime));var Te=$[1];if(Te){H.duration=parseFloat(Te);var Re=(" "+$[2]).slice(1);H.title=Re||null,H.tagList.push(Re?["INF",Te,Re]:["INF",Te])}else if($[3])Object(X.isFiniteNumber)(H.duration)&&(H.start=M,se&&(H.levelkey=se),H.sn=F,H.level=T,H.cc=I,H.urlId=S,b.push(H),H.relurl=(" "+$[3]).slice(1),w(H,g),g=H,M+=H.duration,F++,_=0,ge=!0);else if($[4]){var Le=(" "+$[4]).slice(1);g?H.setByteRange(Le,g):H.setByteRange(Le)}else if($[5])H.rawProgramDateTime=(" "+$[5]).slice(1),H.tagList.push(["PROGRAM-DATE-TIME",H.rawProgramDateTime]),Oe===-1&&(Oe=b.length);else{if($=$[0].match(f),!$){v.logger.warn("No matches on slow regex match for level playlist!");continue}for(ne=1;ne<$.length&&!(typeof $[ne]!="undefined");ne++);var de=(" "+$[ne]).slice(1),he=(" "+$[ne+1]).slice(1),re=$[ne+2]?(" "+$[ne+2]).slice(1):"";switch(de){case"PLAYLIST-TYPE":y.type=he.toUpperCase();break;case"MEDIA-SEQUENCE":F=y.startSN=parseInt(he);break;case"SKIP":{var fe=new L.AttrList(he),oe=fe.decimalInteger("SKIPPED-SEGMENTS");if(Object(X.isFiniteNumber)(oe)){y.skippedSegments=oe;for(var De=oe;De--;)b.unshift(null);F+=oe}var Fe=fe.enumeratedString("RECENTLY-REMOVED-DATERANGES");Fe&&(y.recentlyRemovedDateranges=Fe.split(" "));break}case"TARGETDURATION":y.targetduration=parseFloat(he);break;case"VERSION":y.version=parseInt(he);break;case"EXTM3U":break;case"ENDLIST":y.live=!1;break;case"#":(he||re)&&H.tagList.push(re?[he,re]:[he]);break;case"DIS":I++;case"GAP":H.tagList.push([de]);break;case"BITRATE":H.tagList.push([de,he]);break;case"DISCONTINUITY-SEQ":I=parseInt(he);break;case"KEY":{var Ce,Ne=new L.AttrList(he),Be=Ne.enumeratedString("METHOD"),le=Ne.URI,ve=Ne.hexadecimalInteger("IV"),Se=Ne.enumeratedString("KEYFORMATVERSIONS"),Ie=Ne.enumeratedString("KEYID"),We=(Ce=Ne.enumeratedString("KEYFORMAT"))!=null?Ce:"identity",Ve=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Ve.indexOf(We)>-1){v.logger.warn("Keyformat "+We+" is not supported from the manifest");continue}else if(We!=="identity")continue;Be&&(se=r.LevelKey.fromURL(C,le),le&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Be)>=0&&(se.method=Be,se.keyFormat=We,Ie&&(se.keyID=Ie),Se&&(se.keyFormatVersions=Se),se.iv=ve));break}case"START":{var Qe=new L.AttrList(he),Je=Qe.decimalFloatingPoint("TIME-OFFSET");Object(X.isFiniteNumber)(Je)&&(y.startTimeOffset=Je);break}case"MAP":{var st=new L.AttrList(he);H.relurl=st.URI,st.BYTERANGE&&H.setByteRange(st.BYTERANGE),H.level=T,H.sn="initSegment",se&&(H.levelkey=se),H.initSegment=null,B=H,ge=!0;break}case"SERVER-CONTROL":{var qe=new L.AttrList(he);y.canBlockReload=qe.bool("CAN-BLOCK-RELOAD"),y.canSkipUntil=qe.optionalFloat("CAN-SKIP-UNTIL",0),y.canSkipDateRanges=y.canSkipUntil>0&&qe.bool("CAN-SKIP-DATERANGES"),y.partHoldBack=qe.optionalFloat("PART-HOLD-BACK",0),y.holdBack=qe.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var at=new L.AttrList(he);y.partTarget=at.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=y.partList;Ue||(Ue=y.partList=[]);var ct=_>0?Ue[Ue.length-1]:void 0,lt=_++,je=new K.Part(new L.AttrList(he),H,C,lt,ct);Ue.push(je),H.duration+=je.duration;break}case"PRELOAD-HINT":{var Ge=new L.AttrList(he);y.preloadHint=Ge;break}case"RENDITION-REPORT":{var Ae=new L.AttrList(he);y.renditionReports=y.renditionReports||[],y.renditionReports.push(Ae);break}default:v.logger.warn("line parsed but not handled: "+$);break}}}g&&!g.relurl?(b.pop(),M-=g.duration,y.partList&&(y.fragmentHint=g)):y.partList&&(w(H,g),H.cc=I,y.fragmentHint=H);var _e=b.length,we=b[0],ae=b[_e-1];if(M+=y.skippedSegments*y.targetduration,M>0&&_e&&ae){y.averagetargetduration=M/_e;var ue=ae.sn;y.endSN=ue!=="initSegment"?ue:0,we&&(y.startCC=we.cc,we.initSegment||y.fragments.every(function(ce){return ce.relurl&&o(ce.relurl)})&&(v.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),H=new K.Fragment(c,C),H.relurl=ae.relurl,H.level=T,H.sn="initSegment",we.initSegment=H,y.needSidxRanges=!0))}else y.endSN=0,y.startCC=0;return y.fragmentHint&&(M+=y.fragmentHint.duration),y.totalduration=M,y.endCC=I,Oe>0&&E(b,Oe),y},D}();function a(D,R){["video","audio","text"].forEach(function(A){var C=D.filter(function(c){return Object(m.isCodecType)(c,A)});if(C.length){var T=C.filter(function(c){return c.lastIndexOf("avc1",0)===0||c.lastIndexOf("mp4a",0)===0});R[A+"Codec"]=T.length>0?T[0]:C[0],D=D.filter(function(c){return C.indexOf(c)===-1})}}),R.unknownCodecs=D}function O(D,R,A){var C=R[A];C&&(D[A]=C)}function E(D,R){for(var A=D[R],C=R;C--;){var T=D[C];if(!T)return;T.programDateTime=A.programDateTime-T.duration*1e3,A=T}}function w(D,R){D.rawProgramDateTime?D.programDateTime=Date.parse(D.rawProgramDateTime):R!=null&&R.programDateTime&&(D.programDateTime=R.endProgramDateTime),Object(X.isFiniteNumber)(D.programDateTime)||(D.programDateTime=null,D.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/polyfills/number.ts"),j=P("./src/events.ts"),U=P("./src/errors.ts"),K=P("./src/utils/logger.ts"),G=P("./src/utils/mp4-tools.ts"),r=P("./src/loader/m3u8-parser.ts"),L=P("./src/types/loader.ts"),v=P("./src/utils/attr-list.ts");function m(u){var f=u.type;switch(f){case L.PlaylistContextType.AUDIO_TRACK:return L.PlaylistLevelType.AUDIO;case L.PlaylistContextType.SUBTITLE_TRACK:return L.PlaylistLevelType.SUBTITLE;default:return L.PlaylistLevelType.MAIN}}function p(u,f){var l=u.url;return(l===void 0||l.indexOf("data:")===0)&&(l=f.url),l}var h=function(){function u(l){this.hls=void 0,this.loaders=Object.create(null),this.hls=l,this.registerListeners()}var f=u.prototype;return f.registerListeners=function(){var o=this.hls;o.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(j.Events.LEVEL_LOADING,this.onLevelLoading,this),o.on(j.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.on(j.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var o=this.hls;o.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(j.Events.LEVEL_LOADING,this.onLevelLoading,this),o.off(j.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.off(j.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(o){var s=this.hls.config,a=s.pLoader,O=s.loader,E=a||O,w=new E(s);return o.loader=w,this.loaders[o.type]=w,w},f.getInternalLoader=function(o){return this.loaders[o.type]},f.resetInternalLoader=function(o){this.loaders[o]&&delete this.loaders[o]},f.destroyInternalLoaders=function(){for(var o in this.loaders){var s=this.loaders[o];s&&s.destroy(),this.resetInternalLoader(o)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(o,s){var a=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:L.PlaylistContextType.MANIFEST,url:a,deliveryDirectives:null})},f.onLevelLoading=function(o,s){var a=s.id,O=s.level,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:null,level:O,responseType:"text",type:L.PlaylistContextType.LEVEL,url:E,deliveryDirectives:w})},f.onAudioTrackLoading=function(o,s){var a=s.id,O=s.groupId,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:O,level:null,responseType:"text",type:L.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:w})},f.onSubtitleTrackLoading=function(o,s){var a=s.id,O=s.groupId,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:O,level:null,responseType:"text",type:L.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:w})},f.load=function(o){var s,a=this.hls.config,O=this.getInternalLoader(o);if(O){var E=O.context;if(E&&E.url===o.url){K.logger.trace("[playlist-loader]: playlist request ongoing");return}K.logger.log("[playlist-loader]: aborting previous loader for type: "+o.type),O.abort()}var w,D,R,A;switch(o.type){case L.PlaylistContextType.MANIFEST:w=a.manifestLoadingMaxRetry,D=a.manifestLoadingTimeOut,R=a.manifestLoadingRetryDelay,A=a.manifestLoadingMaxRetryTimeout;break;case L.PlaylistContextType.LEVEL:case L.PlaylistContextType.AUDIO_TRACK:case L.PlaylistContextType.SUBTITLE_TRACK:w=0,D=a.levelLoadingTimeOut;break;default:w=a.levelLoadingMaxRetry,D=a.levelLoadingTimeOut,R=a.levelLoadingRetryDelay,A=a.levelLoadingMaxRetryTimeout;break}if(O=this.createInternalLoader(o),(s=o.deliveryDirectives)!==null&&s!==void 0&&s.part){var C;if(o.type===L.PlaylistContextType.LEVEL&&o.level!==null?C=this.hls.levels[o.level].details:o.type===L.PlaylistContextType.AUDIO_TRACK&&o.id!==null?C=this.hls.audioTracks[o.id].details:o.type===L.PlaylistContextType.SUBTITLE_TRACK&&o.id!==null&&(C=this.hls.subtitleTracks[o.id].details),C){var T=C.partTarget,c=C.targetduration;T&&c&&(D=Math.min(Math.max(T*3,c*.8)*1e3,D))}}var S={timeout:D,maxRetry:w,retryDelay:R,maxRetryDelay:A,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};O.load(o,S,y)},f.loadsuccess=function(o,s,a,O){if(O===void 0&&(O=null),a.isSidxRequest){this.handleSidxRequest(o,a),this.handlePlaylistLoaded(o,s,a,O);return}this.resetInternalLoader(a.type);var E=o.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(o,a,"no EXTM3U delimiter",O);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(o,s,a,O):this.handleMasterPlaylist(o,s,a,O)},f.loaderror=function(o,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!1,o)},f.loadtimeout=function(o,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!0)},f.handleMasterPlaylist=function(o,s,a,O){var E=this.hls,w=o.data,D=p(o,a),R=r.default.parseMasterPlaylist(w,D),A=R.levels,C=R.sessionData;if(!A.length){this.handleManifestParsingError(o,a,"no level found in manifest",O);return}var T=A.map(function(F){return{id:F.attrs.AUDIO,audioCodec:F.audioCodec}}),c=A.map(function(F){return{id:F.attrs.SUBTITLES,textCodec:F.textCodec}}),S=r.default.parseMasterPlaylistMedia(w,D,"AUDIO",T),y=r.default.parseMasterPlaylistMedia(w,D,"SUBTITLES",c),b=r.default.parseMasterPlaylistMedia(w,D,"CLOSED-CAPTIONS");if(S.length){var B=S.some(function(F){return!F.url});!B&&A[0].audioCodec&&!A[0].attrs.AUDIO&&(K.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),S.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new v.AttrList({}),bitrate:0,url:""}))}E.trigger(j.Events.MANIFEST_LOADED,{levels:A,audioTracks:S,subtitles:y,captions:b,url:D,stats:s,networkDetails:O,sessionData:C})},f.handleTrackOrLevelPlaylist=function(o,s,a,O){var E=this.hls,w=a.id,D=a.level,R=a.type,A=p(o,a),C=Object(X.isFiniteNumber)(w)?w:0,T=Object(X.isFiniteNumber)(D)?D:C,c=m(a),S=r.default.parseLevelPlaylist(o.data,A,T,c,C);if(!S.fragments.length){E.trigger(j.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:A,reason:"no fragments found in level",level:typeof a.level=="number"?a.level:void 0});return}if(R===L.PlaylistContextType.MANIFEST){var y={attrs:new v.AttrList({}),bitrate:0,details:S,name:"",url:A};E.trigger(j.Events.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:A,stats:s,networkDetails:O,sessionData:null})}if(s.parsing.end=performance.now(),S.needSidxRanges){var b,B=(b=S.fragments[0].initSegment)===null||b===void 0?void 0:b.url;this.load({url:B,isSidxRequest:!0,type:R,level:D,levelDetails:S,id:w,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}a.levelDetails=S,this.handlePlaylistLoaded(o,s,a,O)},f.handleSidxRequest=function(o,s){var a=Object(G.parseSegmentIndex)(new Uint8Array(o.data));if(!a)return;var O=a.references,E=s.levelDetails;O.forEach(function(w,D){var R=w.info,A=E.fragments[D];A.byteRange.length===0&&A.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),A.initSegment&&A.initSegment.setByteRange(String(a.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(o,s,a,O){this.hls.trigger(j.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===L.PlaylistContextType.MANIFEST,url:o.url,reason:a,response:o,context:s,networkDetails:O})},f.handleNetworkError=function(o,s,a,O){a===void 0&&(a=!1),K.logger.warn("[playlist-loader]: A network "+(a?"timeout":"error")+" occurred while loading "+o.type+" level: "+o.level+" id: "+o.id+' group-id: "'+o.groupId+'"');var E=U.ErrorDetails.UNKNOWN,w=!1,D=this.getInternalLoader(o);switch(o.type){case L.PlaylistContextType.MANIFEST:E=a?U.ErrorDetails.MANIFEST_LOAD_TIMEOUT:U.ErrorDetails.MANIFEST_LOAD_ERROR,w=!0;break;case L.PlaylistContextType.LEVEL:E=a?U.ErrorDetails.LEVEL_LOAD_TIMEOUT:U.ErrorDetails.LEVEL_LOAD_ERROR,w=!1;break;case L.PlaylistContextType.AUDIO_TRACK:E=a?U.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:U.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,w=!1;break;case L.PlaylistContextType.SUBTITLE_TRACK:E=a?U.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:U.ErrorDetails.SUBTITLE_LOAD_ERROR,w=!1;break}D&&this.resetInternalLoader(o.type);var R={type:U.ErrorTypes.NETWORK_ERROR,details:E,fatal:w,url:o.url,loader:D,context:o,networkDetails:s};O&&(R.response=O),this.hls.trigger(j.Events.ERROR,R)},f.handlePlaylistLoaded=function(o,s,a,O){var E=a.type,w=a.level,D=a.id,R=a.groupId,A=a.loader,C=a.levelDetails,T=a.deliveryDirectives;if(!(C!=null&&C.targetduration)){this.handleManifestParsingError(o,a,"invalid target duration",O);return}if(!A)return;C.live&&(A.getCacheAge&&(C.ageHeader=A.getCacheAge()||0),(!A.getCacheAge||isNaN(C.ageHeader))&&(C.ageHeader=0));switch(E){case L.PlaylistContextType.MANIFEST:case L.PlaylistContextType.LEVEL:this.hls.trigger(j.Events.LEVEL_LOADED,{details:C,level:w||0,id:D||0,stats:s,networkDetails:O,deliveryDirectives:T});break;case L.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(j.Events.AUDIO_TRACK_LOADED,{details:C,id:D||0,groupId:R||"",stats:s,networkDetails:O,deliveryDirectives:T});break;case L.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(j.Events.SUBTITLE_TRACK_LOADED,{details:C,id:D||0,groupId:R||"",stats:s,networkDetails:O,deliveryDirectives:T});break}},u}();J.default=h},"./src/polyfills/number.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"isFiniteNumber",function(){return X}),P.d(J,"MAX_SAFE_INTEGER",function(){return j});var X=Number.isFinite||function(U){return typeof U=="number"&&isFinite(U)},j=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ie,J,P){"use strict";P.r(J);var X=function(){function j(){}return j.getSilentFrame=function(K,G){switch(K){case"mp4a.40.2":if(G===1)return new Uint8Array([0,200,0,128,35,128]);if(G===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(G===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(G===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(G===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(G===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(G===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(G===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(G===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},j}();J.default=X},"./src/remux/mp4-generator.ts":function(ie,J,P){"use strict";P.r(J);var X=Math.pow(2,32)-1,j=function(){function U(){}return U.init=function(){U.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 G;for(G in U.types)U.types.hasOwnProperty(G)&&(U.types[G]=[G.charCodeAt(0),G.charCodeAt(1),G.charCodeAt(2),G.charCodeAt(3)]);var r=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]),L=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]);U.HDLR_TYPES={video:r,audio:L};var v=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m=new Uint8Array([0,0,0,0,0,0,0,0]);U.STTS=U.STSC=U.STCO=m,U.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),U.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),U.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var p=new Uint8Array([105,115,111,109]),h=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);U.FTYP=U.box(U.types.ftyp,p,u,p,h),U.DINF=U.box(U.types.dinf,U.box(U.types.dref,v))},U.box=function(G){for(var r=8,L=arguments.length,v=new Array(L>1?L-1:0),m=1;m>24&255,u[1]=r>>16&255,u[2]=r>>8&255,u[3]=r&255,u.set(G,4),p=0,r=8;p>24&255,G>>16&255,G>>8&255,G&255,L>>24,L>>16&255,L>>8&255,L&255,v>>24,v>>16&255,v>>8&255,v&255,85,196,0,0]))},U.mdia=function(G){return U.box(U.types.mdia,U.mdhd(G.timescale,G.duration),U.hdlr(G.type),U.minf(G))},U.mfhd=function(G){return U.box(U.types.mfhd,new Uint8Array([0,0,0,0,G>>24,G>>16&255,G>>8&255,G&255]))},U.minf=function(G){return G.type==="audio"?U.box(U.types.minf,U.box(U.types.smhd,U.SMHD),U.DINF,U.stbl(G)):U.box(U.types.minf,U.box(U.types.vmhd,U.VMHD),U.DINF,U.stbl(G))},U.moof=function(G,r,L){return U.box(U.types.moof,U.mfhd(G),U.traf(L,r))},U.moov=function(G){for(var r=G.length,L=[];r--;)L[r]=U.trak(G[r]);return U.box.apply(null,[U.types.moov,U.mvhd(G[0].timescale,G[0].duration)].concat(L).concat(U.mvex(G)))},U.mvex=function(G){for(var r=G.length,L=[];r--;)L[r]=U.trex(G[r]);return U.box.apply(null,[U.types.mvex].concat(L))},U.mvhd=function(G,r){r*=G;var L=Math.floor(r/(X+1)),v=Math.floor(r%(X+1)),m=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,G>>24&255,G>>16&255,G>>8&255,G&255,L>>24,L>>16&255,L>>8&255,L&255,v>>24,v>>16&255,v>>8&255,v&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 U.box(U.types.mvhd,m)},U.sdtp=function(G){var r=G.samples||[],L=new Uint8Array(4+r.length),v,m;for(v=0;v>>8&255),r.push(p&255),r=r.concat(Array.prototype.slice.call(m));for(v=0;v>>8&255),L.push(p&255),L=L.concat(Array.prototype.slice.call(m));var h=U.box(U.types.avcC,new Uint8Array([1,r[3],r[4],r[5],252|3,224|G.sps.length].concat(r).concat([G.pps.length]).concat(L))),u=G.width,f=G.height,l=G.pixelRatio[0],o=G.pixelRatio[1];return U.box(U.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,u>>8&255,u&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]),h,U.box(U.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),U.box(U.types.pasp,new Uint8Array([l>>24,l>>16&255,l>>8&255,l&255,o>>24,o>>16&255,o>>8&255,o&255])))},U.esds=function(G){var r=G.config.length;return new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(G.config).concat([6,1,2]))},U.mp4a=function(G){var r=G.samplerate;return U.box(U.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,G.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]),U.box(U.types.esds,U.esds(G)))},U.mp3=function(G){var r=G.samplerate;return U.box(U.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,G.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]))},U.stsd=function(G){return G.type==="audio"?!G.isAAC&&G.codec==="mp3"?U.box(U.types.stsd,U.STSD,U.mp3(G)):U.box(U.types.stsd,U.STSD,U.mp4a(G)):U.box(U.types.stsd,U.STSD,U.avc1(G))},U.tkhd=function(G){var r=G.id,L=G.duration*G.timescale,v=G.width,m=G.height,p=Math.floor(L/(X+1)),h=Math.floor(L%(X+1));return U.box(U.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,r&255,0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,h>>24,h>>16&255,h>>8&255,h&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,v>>8&255,v&255,0,0,m>>8&255,m&255,0,0]))},U.traf=function(G,r){var L=U.sdtp(G),v=G.id,m=Math.floor(r/(X+1)),p=Math.floor(r%(X+1));return U.box(U.types.traf,U.box(U.types.tfhd,new Uint8Array([0,0,0,0,v>>24,v>>16&255,v>>8&255,v&255])),U.box(U.types.tfdt,new Uint8Array([1,0,0,0,m>>24,m>>16&255,m>>8&255,m&255,p>>24,p>>16&255,p>>8&255,p&255])),U.trun(G,L.length+16+20+8+16+8+8),L)},U.trak=function(G){return G.duration=G.duration||4294967295,U.box(U.types.trak,U.tkhd(G),U.mdia(G))},U.trex=function(G){var r=G.id;return U.box(U.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},U.trun=function(G,r){var L=G.samples||[],v=L.length,m=12+16*v,p=new Uint8Array(m),h,u,f,l,o,s;for(r+=8+m,p.set([0,0,15,1,v>>>24&255,v>>>16&255,v>>>8&255,v&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255],0),h=0;h>>24&255,f>>>16&255,f>>>8&255,f&255,l>>>24&255,l>>>16&255,l>>>8&255,l&255,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,o.degradPrio&240<<8,o.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*h);return U.box(U.types.trun,p)},U.initSegment=function(G){U.types||U.init();var r=U.moov(G),L=new Uint8Array(U.FTYP.byteLength+r.byteLength);return L.set(U.FTYP),L.set(r,U.FTYP.byteLength),L},U}();j.types=void 0,j.HDLR_TYPES=void 0,j.STTS=void 0,j.STSC=void 0,j.STCO=void 0,j.STSZ=void 0,j.VMHD=void 0,j.SMHD=void 0,j.STSD=void 0,j.FTYP=void 0,j.DINF=void 0,J.default=j},"./src/remux/mp4-remuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return s}),P.d(J,"normalizePts",function(){return a});var X=P("./src/polyfills/number.ts"),j=P("./src/remux/aac-helper.ts"),U=P("./src/remux/mp4-generator.ts"),K=P("./src/events.ts"),G=P("./src/errors.ts"),r=P("./src/utils/logger.ts"),L=P("./src/types/loader.ts"),v=P("./src/utils/timescale-conversion.ts");function m(){return m=Object.assign||function(D){for(var R=1;R0?S:y.pts},C[0].pts);return T&&r.logger.debug("PTS rollover detected"),c},R.remux=function(C,T,c,S,y,b,B,F){var _,M,I,g,H,$,ne=y,se=y,Oe=C.pid>-1,ge=T.pid>-1,Te=T.samples.length,Re=C.samples.length>0,Le=Te>1,de=(!Oe||Re)&&(!ge||Le)||this.ISGenerated||B;if(de){this.ISGenerated||(I=this.generateIS(C,T,y));var he=this.isVideoContiguous,re=-1;if(Le&&(re=O(T.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if($=!0,re>0){r.logger.warn("[mp4-remuxer]: Dropped "+re+" out of "+Te+" video samples due to a missing keyframe");var fe=this.getVideoStartPts(T.samples);T.samples=T.samples.slice(re),T.dropped+=re,se+=(T.samples[0].pts-fe)/(T.timescale||9e4)}else re===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+Te+" video samples"),$=!1);if(this.ISGenerated){if(Re&&Le){var oe=this.getVideoStartPts(T.samples),De=a(C.samples[0].pts,oe)-oe,Fe=De/T.inputTimeScale;ne+=Math.max(0,Fe),se+=Math.max(0,-Fe)}if(Re){if(C.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),I=this.generateIS(C,T,y)),M=this.remuxAudio(C,ne,this.isAudioContiguous,b,ge||Le||F===L.PlaylistLevelType.AUDIO?se:void 0),Le){var Ce=M?M.endPTS-M.startPTS:0;T.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),I=this.generateIS(C,T,y)),_=this.remuxVideo(T,se,he,Ce)}}else Le&&(_=this.remuxVideo(T,se,he,0));_&&(_.firstKeyFrame=re,_.independent=re!==-1)}}return this.ISGenerated&&(c.samples.length&&(H=this.remuxID3(c,y)),S.samples.length&&(g=this.remuxText(S,y))),{audio:M,video:_,initSegment:I,independent:$,text:g,id3:H}},R.generateIS=function(C,T,c){var S=C.samples,y=T.samples,b=this.typeSupported,B={},F=!Object(X.isFiniteNumber)(this._initPTS),_="audio/mp4",M,I,g;if(F&&(M=I=Infinity),C.config&&S.length&&(C.timescale=C.samplerate,C.isAAC||(b.mpeg?(_="audio/mpeg",C.codec=""):b.mp3&&(C.codec="mp3")),B.audio={id:"audio",container:_,codec:C.codec,initSegment:!C.isAAC&&b.mpeg?new Uint8Array(0):U.default.initSegment([C]),metadata:{channelCount:C.channelCount}},F&&(g=C.inputTimeScale,M=I=S[0].pts-Math.round(g*c))),T.sps&&T.pps&&y.length&&(T.timescale=T.inputTimeScale,B.video={id:"main",container:"video/mp4",codec:T.codec,initSegment:U.default.initSegment([T]),metadata:{width:T.width,height:T.height}},F)){g=T.inputTimeScale;var H=this.getVideoStartPts(y),$=Math.round(g*c);I=Math.min(I,a(y[0].dts,H)-$),M=Math.min(M,H-$)}if(Object.keys(B).length)return this.ISGenerated=!0,F&&(this._initPTS=M,this._initDTS=I),{tracks:B,initPTS:M,timescale:g}},R.remuxVideo=function(C,T,c,S){var y=C.inputTimeScale,b=C.samples,B=[],F=b.length,_=this._initPTS,M=this.nextAvcDts,I=8,g,H,$,ne=Number.POSITIVE_INFINITY,se=Number.NEGATIVE_INFINITY,Oe=0,ge=!1;if(!c||M===null){var Te=T*y,Re=b[0].pts-a(b[0].dts,b[0].pts);M=Te-Re}for(var Le=0;Lede.pts){var he=9e4*.2;Oe=Math.max(Math.min(Oe,de.pts-de.dts),-1*he)}de.dts0?Le-1:Le].dts&&(ge=!0)}ge&&b.sort(function(yt,dt){var ft=yt.dts-dt.dts,Ot=yt.pts-dt.pts;return ft||Ot}),H=b[0].dts,$=b[b.length-1].dts;var re=Math.round(($-H)/(F-1));if(Oe<0){if(Oere,Ne=Fe<-1;if(Ce||Ne){Ce?r.logger.warn("AVC: "+Object(v.toMsFromMpegTsClock)(Fe,!0)+" ms ("+Fe+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(v.toMsFromMpegTsClock)(-Fe,!0)+" ms ("+Fe+"dts) overlapping between fragments detected"),H=M;var Be=b[0].pts-Fe;b[0].dts=H,b[0].pts=Be,r.logger.log("Video: First PTS/DTS adjusted: "+Object(v.toMsFromMpegTsClock)(Be,!0)+"/"+Object(v.toMsFromMpegTsClock)(H,!0)+", delta: "+Object(v.toMsFromMpegTsClock)(Fe,!0)+" ms")}}o&&(H=Math.max(0,H));for(var le=0,ve=0,Se=0;Se0?Ue-1:Ue].dts;if(ue.stretchShortVideoTrack&&this.nextAudioPts!==null){var me=Math.floor(ue.maxBufferHole*y),xe=(S?ne+S*y:this.nextAudioPts)-ct.pts;xe>me?(g=xe-ce,g<0&&(g=ce),r.logger.log("[mp4-remuxer]: It is approximately "+xe/90+" ms to the next segment; using duration "+g/90+" ms for the last video frame.")):g=ce}else g=ce}var Pe=Math.round(ct.pts-ct.dts);B.push(new E(ct.key,g,je,Pe))}if(B.length&&f&&f<70){var He=B[0].flags;He.dependsOn=2,He.isNonSync=0}console.assert(g!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=M=$+g,this.isVideoContiguous=!0;var ze=U.default.moof(C.sequenceNumber++,H,m({},C,{samples:B})),ht="video",ot={data1:ze,data2:qe,startPTS:ne/y,endPTS:(se+g)/y,startDTS:H/y,endDTS:M/y,type:ht,hasAudio:!1,hasVideo:!0,nb:B.length,dropped:C.dropped};return C.samples=[],C.dropped=0,console.assert(qe.length,"MDAT length must not be zero"),ot},R.remuxAudio=function(C,T,c,S,y){var b=C.inputTimeScale,B=C.samplerate?C.samplerate:b,F=b/B,_=C.isAAC?h:u,M=_*F,I=this._initPTS,g=!C.isAAC&&this.typeSupported.mpeg,H=[],$=C.samples,ne=g?0:8,se=this.nextAudioPts||-1,Oe=T*b;if(this.isAudioContiguous=c=c||$.length&&se>0&&(S&&Math.abs(Oe-se)<9e3||Math.abs(a($[0].pts-I,Oe)-se)<20*M),$.forEach(function(we){we.pts=a(we.pts-I,Oe)}),!c||se<0){if($=$.filter(function(we){return we.pts>=0}),!$.length)return;y===0?se=0:S?se=Math.max(0,Oe):se=$[0].pts}if(C.isAAC)for(var ge=y!==void 0,Te=this.config.maxAudioFramesDrift,Re=0,Le=se;Re<$.length;Re++){var de=$[Re],he=de.pts,re=he-Le,fe=Math.abs(1e3*re/b);if(re<=-Te*M&&ge)Re===0&&(r.logger.warn("Audio frame @ "+(he/b).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*re/b)+" ms."),this.nextAudioPts=se=Le=he);else if(re>=Te*M&&fe0){ve+=ne;try{le=new Uint8Array(ve)}catch(we){this.observer.emit(K.Events.ERROR,K.Events.ERROR,{type:G.ErrorTypes.MUX_ERROR,details:G.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!g){var qe=new DataView(le.buffer);qe.setUint32(0,ve),le.set(U.default.types.mdat,4)}}else return;le.set(Qe,ne);var at=Qe.byteLength;ne+=at,H.push(new E(!0,_,at,0)),Be=Je}var Ue=H.length;if(!Ue)return;var ct=H[H.length-1];this.nextAudioPts=se=Be+F*ct.duration;var lt=g?new Uint8Array(0):U.default.moof(C.sequenceNumber++,Ne/F,m({},C,{samples:H}));C.samples=[];var je=Ne/b,Ge=se/b,Ae="audio",_e={data1:lt,data2:le,startPTS:je,endPTS:Ge,startDTS:je,endDTS:Ge,type:Ae,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(le.length,"MDAT length must not be zero"),_e},R.remuxEmptyAudio=function(C,T,c,S){var y=C.inputTimeScale,b=C.samplerate?C.samplerate:y,B=y/b,F=this.nextAudioPts,_=(F!==null?F:S.startDTS*y)+this._initDTS,M=S.endDTS*y+this._initDTS,I=B*h,g=Math.ceil((M-_)/I),H=j.default.getSilentFrame(C.manifestCodec||C.codec,C.channelCount);if(r.logger.warn("[mp4-remuxer]: remux empty Audio"),!H){r.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var $=[],ne=0;ne4294967296;)D+=A;return D}function O(D){for(var R=0;R0?this.lastEndDTS=C:(K.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var T=!!D.audio,c=!!D.video,S="";T&&(S+="audio"),c&&(S+="video");var y={data1:E,startPTS:A,startDTS:A,endPTS:C,endDTS:C,type:S,hasAudio:T,hasVideo:c,nb:1,dropped:0};return O.audio=y.type==="audio"?y:void 0,O.video=y.type!=="audio"?y:void 0,O.text=l,O.id3=f,O.initSegment=w,O},v}(),r=function(m,p,h){return Object(j.getStartDTS)(m,p)-h};function L(v,m){var p=v==null?void 0:v.codec;return p&&p.length>4?p:p==="hvc1"?"hvc1.1.c.L120.90":p==="av01"?"av01.0.04M.08":p==="avc1"||m===U.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}J.default=G},"./src/task-loop.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return X});var X=function(){function j(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var U=j.prototype;return U.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},U.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},U.onHandlerDestroyed=function(){},U.hasInterval=function(){return!!this._tickInterval},U.hasNextTick=function(){return!!this._tickTimer},U.setInterval=function(G){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,G),!0)},U.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},U.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},U.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},U.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},U.doTick=function(){},j}()},"./src/types/cmcd.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"CMCDVersion",function(){return X}),P.d(J,"CMCDObjectType",function(){return j}),P.d(J,"CMCDStreamingFormat",function(){return U}),P.d(J,"CMCDStreamType",function(){return K});var X=1,j;(function(G){G.MANIFEST="m",G.AUDIO="a",G.VIDEO="v",G.MUXED="av",G.INIT="i",G.CAPTION="c",G.TIMED_TEXT="tt",G.KEY="k",G.OTHER="o"})(j||(j={}));var U;(function(G){G.DASH="d",G.HLS="h",G.SMOOTH="s",G.OTHER="o"})(U||(U={}));var K;(function(G){G.VOD="v",G.LIVE="l"})(K||(K={}))},"./src/types/level.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"HlsSkip",function(){return U}),P.d(J,"getSkipValue",function(){return K}),P.d(J,"HlsUrlParameters",function(){return G}),P.d(J,"Level",function(){return r});function X(L,v){for(var m=0;mNumber.MAX_SAFE_INTEGER?Infinity:v},G.hexadecimalInteger=function(L){if(this[L]){var v=(this[L]||"0x").slice(2);v=(v.length&1?"0":"")+v;for(var m=new Uint8Array(v.length/2),p=0;pNumber.MAX_SAFE_INTEGER?Infinity:v},G.decimalFloatingPoint=function(L){return parseFloat(this[L])},G.optionalFloat=function(L,v){var m=this[L];return m?parseFloat(m):v},G.enumeratedString=function(L){return this[L]},G.bool=function(L){return this[L]==="YES"},G.decimalResolution=function(L){var v=X.exec(this[L]);return v===null?void 0:{width:parseInt(v[1],10),height:parseInt(v[2],10)}},K.parseAttrList=function(L){var v,m={},p='"';for(j.lastIndex=0;(v=j.exec(L))!==null;){var h=v[2];h.indexOf(p)===0&&h.lastIndexOf(p)===h.length-1&&(h=h.slice(1,-1)),m[v[1]]=h}return m},K}()},"./src/utils/binary-search.ts":function(ie,J,P){"use strict";P.r(J);var X={search:function(U,K){for(var G=0,r=U.length-1,L=null,v=null;G<=r;){L=(G+r)/2|0,v=U[L];var m=K(v);if(m>0)G=L+1;else if(m<0)r=L-1;else return v}return null}};J.default=X},"./src/utils/buffer-helper.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"BufferHelper",function(){return U});var X=P("./src/utils/logger.ts"),j={length:0,start:function(){return 0},end:function(){return 0}},U=function(){function K(){}return K.isBuffered=function(r,L){try{if(r){for(var v=K.getBuffered(r),m=0;m=v.start(m)&&L<=v.end(m))return!0}}catch(p){}return!1},K.bufferInfo=function(r,L,v){try{if(r){var m=K.getBuffered(r),p=[],h;for(h=0;hu&&(m[h-1].end=r[p].end):m.push(r[p])}else m.push(r[p])}else m=r;for(var f=0,l,o=L,s=L,a=0;a=O&&L=c&&X.logger.log(this.time+" ["+c+"] "+S)},A}(),f=function(C){for(var T=[],c=0;cG&&(this.logger.log(h.DEBUG,"Too large cursor position "+this.pos),this.pos=G)},C.moveCursor=function(c){var S=this.pos+c;if(c>1)for(var y=this.pos+1;y=144&&this.backSpace();var S=U(c);if(this.pos>=G){this.logger.log(h.ERROR,"Cannot insert "+c.toString(16)+" ("+S+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(S,this.currPenState),this.moveCursor(1)},C.clearFromPos=function(c){var S;for(S=c;S0&&(c?y="["+S.join(" | ")+"]":y=S.join(` -`)),y},C.getTextAndFormat=function(){return this.rows},A}(),O=function(){function A(T,c,S){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=T,this.outputFilter=c,this.mode=null,this.verbose=0,this.displayedMemory=new a(S),this.nonDisplayedMemory=new a(S),this.lastOutputScreen=new a(S),this.currRollUpRow=this.displayedMemory.rows[K-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=S}var C=A.prototype;return C.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[K-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},C.getHandler=function(){return this.outputFilter},C.setHandler=function(c){this.outputFilter=c},C.setPAC=function(c){this.writeScreen.setPAC(c)},C.setBkgData=function(c){this.writeScreen.setBkgData(c)},C.setMode=function(c){if(c===this.mode)return;this.mode=c,this.logger.log(h.INFO,"MODE="+c),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=c},C.insertChars=function(c){for(var S=0;S=46,S.italics)S.foreground="white";else{var y=Math.floor(c/2)-16,b=["white","green","blue","cyan","red","yellow","magenta"];S.foreground=b[y]}this.logger.log(h.INFO,"MIDROW: "+JSON.stringify(S)),this.writeScreen.setPen(S)},C.outputDataUpdate=function(c){c===void 0&&(c=!1);var S=this.logger.time;if(S===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=S:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,S,this.lastOutputScreen),c&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:S),this.lastOutputScreen.copy(this.displayedMemory))},C.cueSplitAtTime=function(c){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,c,this.displayedMemory),this.cueStartTime=c))},A}(),E=function(){function A(T,c,S){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var y=new u;this.channels=[null,new O(T,c,y),new O(T+1,S,y)],this.cmdHistory=R(),this.logger=y}var C=A.prototype;return C.getHandler=function(c){return this.channels[c].getHandler()},C.setHandler=function(c,S){this.channels[c].setHandler(S)},C.addData=function(c,S){var y,b,B,F=!1;this.logger.time=c;for(var _=0;_ ("+f([b,B])+")"),y=this.parseCmd(b,B),y||(y=this.parseMidrow(b,B)),y||(y=this.parsePAC(b,B)),y||(y=this.parseBackgroundAttributes(b,B)),!y&&(F=this.parseChars(b,B),F)){var M=this.currentChannel;if(M&&M>0){var I=this.channels[M];I.insertChars(F)}else this.logger.log(h.WARNING,"No channel found yet. TEXT-MODE?")}!y&&!F&&this.logger.log(h.WARNING,"Couldn't parse cleaned data "+f([b,B])+" orig: "+f([S[_],S[_+1]]))}},C.parseCmd=function(c,S){var y=this.cmdHistory,b=(c===20||c===28||c===21||c===29)&&S>=32&&S<=47,B=(c===23||c===31)&&S>=33&&S<=35;if(!(b||B))return!1;if(D(c,S,y))return w(null,null,y),this.logger.log(h.DEBUG,"Repeated command ("+f([c,S])+") is dropped"),!0;var F=c===20||c===21||c===23?1:2,_=this.channels[F];return c===20||c===21||c===28||c===29?S===32?_.ccRCL():S===33?_.ccBS():S===34?_.ccAOF():S===35?_.ccAON():S===36?_.ccDER():S===37?_.ccRU(2):S===38?_.ccRU(3):S===39?_.ccRU(4):S===40?_.ccFON():S===41?_.ccRDC():S===42?_.ccTR():S===43?_.ccRTD():S===44?_.ccEDM():S===45?_.ccCR():S===46?_.ccENM():S===47&&_.ccEOC():_.ccTO(S-32),w(c,S,y),this.currentChannel=F,!0},C.parseMidrow=function(c,S){var y=0;if((c===17||c===25)&&S>=32&&S<=47){if(c===17?y=1:y=2,y!==this.currentChannel)return this.logger.log(h.ERROR,"Mismatch channel in midrow parsing"),!1;var b=this.channels[y];return b?(b.ccMIDROW(S),this.logger.log(h.DEBUG,"MIDROW ("+f([c,S])+")"),!0):!1}return!1},C.parsePAC=function(c,S){var y,b=this.cmdHistory,B=(c>=17&&c<=23||c>=25&&c<=31)&&S>=64&&S<=127,F=(c===16||c===24)&&S>=64&&S<=95;if(!(B||F))return!1;if(D(c,S,b))return w(null,null,b),!0;var _=c<=23?1:2;S>=64&&S<=95?y=_===1?r[c]:v[c]:y=_===1?L[c]:m[c];var M=this.channels[_];return M?(M.setPAC(this.interpretPAC(y,S)),w(c,S,b),this.currentChannel=_,!0):!1},C.interpretPAC=function(c,S){var y,b={color:null,italics:!1,indent:null,underline:!1,row:c};return S>95?y=S-96:y=S-64,b.underline=(y&1)===1,y<=13?b.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(y/2)]:y<=15?(b.italics=!0,b.color="white"):b.indent=Math.floor((y-16)/2)*4,b},C.parseChars=function(c,S){var y,b=null,B=null;if(c>=25?(y=2,B=c-8):(y=1,B=c),B>=17&&B<=19){var F;B===17?F=S+80:B===18?F=S+112:F=S+144,this.logger.log(h.INFO,"Special char '"+U(F)+"' in channel "+y),b=[F]}else c>=32&&c<=127&&(b=S===0?[c]:[c,S]);if(b){var _=f(b);this.logger.log(h.DEBUG,"Char codes = "+_.join(",")),w(c,S,this.cmdHistory)}return b},C.parseBackgroundAttributes=function(c,S){var y=(c===16||c===24)&&S>=32&&S<=47,b=(c===23||c===31)&&S>=45&&S<=47;if(!(y||b))return!1;var B,F={};c===16||c===24?(B=Math.floor((S-32)/2),F.background=p[B],S%2===1&&(F.background=F.background+"_semi")):S===45?F.background="transparent":(F.foreground="black",S===47&&(F.underline=!0));var _=c<=23?1:2,M=this.channels[_];return M.setBkgData(F),w(c,S,this.cmdHistory),!0},C.reset=function(){for(var c=0;c=16?o--:o++;var w=Object(X.fixLineBreaks)(s.trim()),D=Object(j.generateCueId)(v,m,w);(!L||!L.cues||!L.cues.getCueById(D))&&(f=new a(v,m,w),f.id=D,f.line=O+1,f.align="left",f.position=10+Math.min(80,Math.floor(o*8/32)*10),h.push(f))}return L&&h.length&&(h.sort(function(R,A){return R.line==="auto"||A.line==="auto"?0:R.line>8&&A.line>8?A.line-R.line:R.line-A.line}),h.forEach(function(R){return Object(U.addCueToTrack)(L,R)})),h}};J.default=G},"./src/utils/discontinuities.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"findFirstFragWithCC",function(){return K}),P.d(J,"shouldAlignOnDiscontinuities",function(){return G}),P.d(J,"findDiscontinuousReferenceFrag",function(){return r}),P.d(J,"adjustSlidingStart",function(){return v}),P.d(J,"alignStream",function(){return m}),P.d(J,"alignPDT",function(){return h}),P.d(J,"alignFragmentByPDTDelta",function(){return u}),P.d(J,"alignMediaPlaylistByPDT",function(){return f});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/logger.ts"),U=P("./src/controller/level-helper.ts");function K(l,o){for(var s=null,a=0,O=l.length;as.startCC||l&&l.cc=this.minWeight_},K.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},K.destroy=function(){},U}();J.default=j},"./src/utils/ewma.ts":function(ie,J,P){"use strict";P.r(J);var X=function(){function j(K,G,r){G===void 0&&(G=0),r===void 0&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=K,this.alpha_=K?Math.exp(Math.log(.5)/K):0,this.estimate_=G,this.totalWeight_=r}var U=j.prototype;return U.sample=function(G,r){var L=Math.pow(this.alpha_,G);this.estimate_=r*(1-L)+L*this.estimate_,this.totalWeight_+=G},U.getTotalWeight=function(){return this.totalWeight_},U.getEstimate=function(){if(this.alpha_){var G=1-Math.pow(this.alpha_,this.totalWeight_);if(G)return this.estimate_/G}return this.estimate_},j}();J.default=X},"./src/utils/fetch-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"fetchSupported",function(){return u});var X=P("./src/polyfills/number.ts"),j=P("./src/loader/load-stats.ts"),U=P("./src/demux/chunk-cache.ts");function K(a,O){a.prototype=Object.create(O.prototype),a.prototype.constructor=a,m(a,O)}function G(a){var O=typeof Map=="function"?new Map:void 0;return G=function(w){if(w===null||!v(w))return w;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(typeof O!="undefined"){if(O.has(w))return O.get(w);O.set(w,D)}function D(){return r(w,arguments,p(this).constructor)}return D.prototype=Object.create(w.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),m(D,w)},G(a)}function r(a,O,E){return L()?r=Reflect.construct:r=function(D,R,A){var C=[null];C.push.apply(C,R);var T=Function.bind.apply(D,C),c=new T;return A&&m(c,A.prototype),c},r.apply(null,arguments)}function L(){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(a){return!1}}function v(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function m(a,O){return m=Object.setPrototypeOf||function(w,D){return w.__proto__=D,w},m(a,O)}function p(a){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},p(a)}function h(){return h=Object.assign||function(a){for(var O=1;O=A&&C(D,R,T.flush(),w)):C(D,R,B,w),y()}).catch(function(){return Promise.reject()})};return S()},a}();function l(a,O){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:O,headers:new self.Headers(h({},a.headers))};return a.rangeEnd&&E.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),E}function o(a,O){return new self.Request(a.url,O)}var s=function(a){K(O,a);function O(E,w,D){var R;return R=a.call(this,E)||this,R.code=void 0,R.details=void 0,R.code=w,R.details=D,R}return O}(G(Error));J.default=f},"./src/utils/imsc1-ttml-parser.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"IMSC1_CODEC",function(){return v}),P.d(J,"parseIMSC1",function(){return u});var X=P("./src/utils/mp4-tools.ts"),j=P("./src/utils/vttparser.ts"),U=P("./src/utils/vttcue.ts"),K=P("./src/demux/id3.ts"),G=P("./src/utils/timescale-conversion.ts"),r=P("./src/utils/webvtt-parser.ts");function L(){return L=Object.assign||function(A){for(var C=1;C"):X}function G(v){for(var m=arguments.length,p=new Array(m>1?m-1:0),h=1;h>24,O[E+1]=w>>16&255,O[E+2]=w>>8&255,O[E+3]=w&255}function m(O,E){var w=[];if(!E.length)return w;var D,R,A;"data"in O?(D=O.data,R=O.start,A=O.end):(D=O,R=0,A=D.byteLength);for(var C=R;C1?C+T:A;if(c===E[0])if(E.length===1)w.push({data:D,start:C+8,end:S});else{var y=m({data:D,start:C+8,end:S},E.slice(1));y.length&&K.apply(w,y)}C=S}return w}function p(O){var E=m(O,["moov"]),w=E[0],D=w?w.end:null,R=m(O,["sidx"]);if(!R||!R[0])return null;var A=[],C=R[0],T=C.data[0],c=T===0?8:16,S=L(C,c);c+=4;var y=0,b=0;T===0?c+=8:c+=16,c+=2;var B=C.end+b,F=r(C,c);c+=2;for(var _=0;_>>31;if(H===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var $=L(C,M);M+=4,A.push({referenceSize:g,subsegmentDuration:$,info:{duration:$/S,start:B,end:B+g-1}}),B+=g,M+=4,c=M}return{earliestPresentationTime:y,timescale:S,version:T,referencesCount:F,references:A,moovEndOffset:D}}function h(O){for(var E=[],w=m(O,["moov","trak"]),D=0;DG)&&(this.startTime=G),this.endTime=r,this.screen=L,this.timelineController.createCaptionsTrack(this.trackName)},U.reset=function(){this.cueRanges=[]},j}()},"./src/utils/texttrack-utils.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"sendAddTrackEvent",function(){return j}),P.d(J,"addCueToTrack",function(){return U}),P.d(J,"clearCurrentCues",function(){return K}),P.d(J,"removeCuesInRange",function(){return G}),P.d(J,"getCuesInRange",function(){return L});var X=P("./src/utils/logger.ts");function j(v,m){var p;try{p=new Event("addtrack")}catch(h){p=document.createEvent("Event"),p.initEvent("addtrack",!1,!1)}p.track=v,m.dispatchEvent(p)}function U(v,m){var p=v.mode;if(p==="disabled"&&(v.mode="hidden"),v.cues&&!v.cues.getCueById(m.id))try{if(v.addCue(m),!v.cues.getCueById(m.id))throw new Error("addCue is failed for: "+m)}catch(u){X.logger.debug("[texttrack-utils]: "+u);var h=new self.TextTrackCue(m.startTime,m.endTime,m.text);h.id=m.id,v.addCue(h)}p==="disabled"&&(v.mode=p)}function K(v){var m=v.mode;if(m==="disabled"&&(v.mode="hidden"),v.cues)for(var p=v.cues.length;p--;)v.removeCue(v.cues[p]);m==="disabled"&&(v.mode=m)}function G(v,m,p){var h=v.mode;if(h==="disabled"&&(v.mode="hidden"),v.cues&&v.cues.length>0)for(var u=L(v.cues,m,p),f=0;fv[p].endTime)return-1;for(var h=0,u=p;h<=u;){var f=Math.floor((u+h)/2);if(mv[f].startTime&&h-1)for(var f=u,l=v.length;f=m&&o.endTime<=p)h.push(o);else if(o.startTime>p)return h}return h}},"./src/utils/time-ranges.ts":function(ie,J,P){"use strict";P.r(J);var X={toString:function(U){for(var K="",G=U.length,r=0;r1?m-1:0),h=1;h100)throw new Error("Position must be between 0 and 100.");A=y,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",r({},u,{get:function(){return C},set:function(y){var b=G(y);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");C=b,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",r({},u,{get:function(){return T},set:function(y){if(y<0||y>100)throw new Error("Size must be between 0 and 100.");T=y,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",r({},u,{get:function(){return c},set:function(y){var b=G(y);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");c=b,this.hasBeenReset=!0}})),h.displayState=void 0}return L.prototype.getCueAsHTML=function(){var v=self.WebVTT;return v.convertCueToDOMTree(self,this.text)},L}()},"./src/utils/vttparser.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"parseTimeStamp",function(){return U}),P.d(J,"fixLineBreaks",function(){return m}),P.d(J,"VTTParser",function(){return p});var X=P("./src/utils/vttcue.ts"),j=function(){function h(){}var u=h.prototype;return u.decode=function(l,o){if(!l)return"";if(typeof l!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(l))},h}();function U(h){function u(l,o,s,a){return(l|0)*3600+(o|0)*60+(s|0)+parseFloat(a||0)}var f=h.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return f?parseFloat(f[2])>59?u(f[2],f[3],0,f[4]):u(f[1],f[2],f[3],f[4]):null}var K=function(){function h(){this.values=Object.create(null)}var u=h.prototype;return u.set=function(l,o){!this.get(l)&&o!==""&&(this.values[l]=o)},u.get=function(l,o,s){return s?this.has(l)?this.values[l]:o[s]:this.has(l)?this.values[l]:o},u.has=function(l){return l in this.values},u.alt=function(l,o,s){for(var a=0;a=0&&s<=100)return this.set(l,s),!0}return!1},h}();function G(h,u,f,l){var o=l?h.split(l):[h];for(var s in o){if(typeof o[s]!="string")continue;var a=o[s].split(f);if(a.length!==2)continue;var O=a[0],E=a[1];u(O,E)}}var r=new X.default(0,0,""),L=r.align==="middle"?"middle":"center";function v(h,u,f){var l=h;function o(){var O=U(h);if(O===null)throw new Error("Malformed timestamp: "+l);return h=h.replace(/^[^\sa-zA-Z-]+/,""),O}function s(O,E){var w=new K;G(O,function(A,C){var T;switch(A){case"region":for(var c=f.length-1;c>=0;c--)if(f[c].id===C){w.set(A,f[c].region);break}break;case"vertical":w.alt(A,C,["rl","lr"]);break;case"line":T=C.split(","),w.integer(A,T[0]),w.percent(A,T[0])&&w.set("snapToLines",!1),w.alt(A,T[0],["auto"]),T.length===2&&w.alt("lineAlign",T[1],["start",L,"end"]);break;case"position":T=C.split(","),w.percent(A,T[0]),T.length===2&&w.alt("positionAlign",T[1],["start",L,"end","line-left","line-right","auto"]);break;case"size":w.percent(A,C);break;case"align":w.alt(A,C,["start",L,"end","left","right"]);break}},/:/,/\s/),E.region=w.get("region",null),E.vertical=w.get("vertical","");var D=w.get("line","auto");D==="auto"&&r.line===-1&&(D=-1),E.line=D,E.lineAlign=w.get("lineAlign","start"),E.snapToLines=w.get("snapToLines",!0),E.size=w.get("size",100),E.align=w.get("align",L);var R=w.get("position","auto");R==="auto"&&r.position===50&&(R=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=R}function a(){h=h.replace(/^\s+/,"")}if(a(),u.startTime=o(),a(),h.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+l);h=h.substr(3),a(),u.endTime=o(),a(),s(h,u)}function m(h){return h.replace(//gi,` + timeOffset: `+y);var ne=new K.TransmuxConfig(a,O,s,D,C);this.configureTransmuxer(ne)}if(this.frag=E,this.part=w,S)S.postMessage({cmd:"demux",data:o,decryptdata:b,chunkMeta:A,state:$},o instanceof ArrayBuffer?[o]:[]);else if(d){var se=d.push(o,b,A,$);Object(K.isPromise)(se)?se.then(function(Oe){T.handleTransmuxComplete(Oe)}):this.handleTransmuxComplete(se)}},f.flush=function(o){var s=this;o.transmuxing.start=self.performance.now();var a=this.transmuxer,O=this.worker;if(O)O.postMessage({cmd:"flush",chunkMeta:o});else if(a){var E=a.flush(o);Object(K.isPromise)(E)?E.then(function(w){s.handleFlushResult(w,o)}):this.handleFlushResult(E,o)}},f.handleFlushResult=function(o,s){var a=this;o.forEach(function(O){a.handleTransmuxComplete(O)}),this.onFlush(s)},f.onWorkerMessage=function(o){var s=o.data,a=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,a.trigger(s.event,s.data);break}}},f.configureTransmuxer=function(o){var s=this.worker,a=this.transmuxer;s?s.postMessage({cmd:"configure",config:o}):a&&a.configure(o)},f.handleTransmuxComplete=function(o){o.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(o)},u}()},"./src/demux/transmuxer-worker.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return r});var X=P("./src/demux/transmuxer.ts"),j=P("./src/events.ts"),U=P("./src/utils/logger.ts"),K=P("./node_modules/eventemitter3/index.js"),G=P.n(K);function r(h){var u=new K.EventEmitter,f=function(o,s){h.postMessage({event:o,data:s})};u.on(j.Events.FRAG_DECRYPTED,f),u.on(j.Events.ERROR,f),h.addEventListener("message",function(l){var o=l.data;switch(o.cmd){case"init":{var s=JSON.parse(o.config);h.transmuxer=new X.default(u,o.typeSupported,s,o.vendor,o.id),Object(U.enableLogs)(s.debug),f("init",null);break}case"configure":{h.transmuxer.configure(o.config);break}case"demux":{var a=h.transmuxer.push(o.data,o.decryptdata,o.chunkMeta,o.state);Object(X.isPromise)(a)?a.then(function(w){L(h,w)}):L(h,a);break}case"flush":{var O=o.chunkMeta,E=h.transmuxer.flush(O);Object(X.isPromise)(E)?E.then(function(w){m(h,w,O)}):m(h,E,O);break}default:break}})}function L(h,u){if(p(u.remuxResult))return;var f=[],l=u.remuxResult,o=l.audio,s=l.video;o&&v(f,o),s&&v(f,s),h.postMessage({event:"transmuxComplete",data:u},f)}function v(h,u){u.data1&&h.push(u.data1.buffer),u.data2&&h.push(u.data2.buffer)}function m(h,u,f){u.forEach(function(l){L(h,l)}),h.postMessage({event:"flush",data:f})}function p(h){return!h.audio&&!h.video&&!h.text&&!h.id3&&!h.initSegment}},"./src/demux/transmuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return s}),P.d(J,"isPromise",function(){return E}),P.d(J,"TransmuxConfig",function(){return w}),P.d(J,"TransmuxState",function(){return D});var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/crypt/decrypter.ts"),K=P("./src/demux/aacdemuxer.ts"),G=P("./src/demux/mp4demuxer.ts"),r=P("./src/demux/tsdemuxer.ts"),L=P("./src/demux/mp3demuxer.ts"),v=P("./src/remux/mp4-remuxer.ts"),m=P("./src/remux/passthrough-remuxer.ts"),p=P("./src/demux/chunk-cache.ts"),h=P("./src/utils/mp4-tools.ts"),u=P("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(R){u.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var l=[{demux:r.default,remux:v.default},{demux:G.default,remux:m.default},{demux:K.default,remux:v.default},{demux:L.default,remux:v.default}],o=1024;l.forEach(function(R){var A=R.demux;o=Math.max(o,A.minProbeByteLength)});var s=function(){function R(C,T,d,S,y){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 p.default,this.observer=C,this.typeSupported=T,this.config=d,this.vendor=S,this.id=y}var A=R.prototype;return A.configure=function(T){this.transmuxConfig=T,this.decrypter&&this.decrypter.reset()},A.push=function(T,d,S,y){var b=this,B=S.transmuxing;B.executeStart=f();var F=new Uint8Array(T),_=this.cache,M=this.config,I=this.currentTransmuxState,g=this.transmuxConfig;y&&(this.currentTransmuxState=y);var H=a(F,d);if(H&&H.method==="AES-128"){var $=this.getDecrypter();if(M.enableSoftwareAES){var ne=$.softwareDecrypt(F,H.key.buffer,H.iv.buffer);if(!ne)return B.executeEnd=f(),O(S);F=new Uint8Array(ne)}else return this.decryptionPromise=$.webCryptoDecrypt(F,H.key.buffer,H.iv.buffer).then(function(Ne){var Be=b.push(Ne,null,S);return b.decryptionPromise=null,Be}),this.decryptionPromise}var se=y||I,Oe=se.contiguous,ge=se.discontinuity,Te=se.trackSwitch,Re=se.accurateTimeOffset,Le=se.timeOffset,ce=g.audioCodec,he=g.videoCodec,re=g.defaultInitPts,fe=g.duration,oe=g.initSegmentData;if((ge||Te)&&this.resetInitSegment(oe,ce,he,fe),ge&&this.resetInitialTimestamp(re),Oe||this.resetContiguity(),this.needsProbing(F,ge,Te)){if(_.dataLength){var De=_.flush();F=Object(h.appendUint8Array)(De,F)}this.configureTransmuxer(F,g)}var Fe=this.transmux(F,H,Le,Re,S),Ce=this.currentTransmuxState;return Ce.contiguous=!0,Ce.discontinuity=!1,Ce.trackSwitch=!1,B.executeEnd=f(),Fe},A.flush=function(T){var d=this,S=T.transmuxing;S.executeStart=f();var y=this.decrypter,b=this.cache,B=this.currentTransmuxState,F=this.decryptionPromise;if(F)return F.then(function(){return d.flush(T)});var _=[],M=B.timeOffset;if(y){var I=y.flush();I&&_.push(this.push(I,null,T))}var g=b.dataLength;b.reset();var H=this.demuxer,$=this.remuxer;if(!H||!$)return g>=o&&this.observer.emit(X.Events.ERROR,X.Events.ERROR,{type:j.ErrorTypes.MEDIA_ERROR,details:j.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),S.executeEnd=f(),[O(T)];var ne=H.flush(M);return E(ne)?ne.then(function(se){return d.flushRemux(_,se,T),_}):(this.flushRemux(_,ne,T),_)},A.flushRemux=function(T,d,S){var y=d.audioTrack,b=d.avcTrack,B=d.id3Track,F=d.textTrack,_=this.currentTransmuxState,M=_.accurateTimeOffset,I=_.timeOffset;u.logger.log("[transmuxer.ts]: Flushed fragment "+S.sn+(S.part>-1?" p: "+S.part:"")+" of level "+S.level);var g=this.remuxer.remux(y,b,B,F,I,M,!0,this.id);T.push({remuxResult:g,chunkMeta:S}),S.transmuxing.executeEnd=f()},A.resetInitialTimestamp=function(T){var d=this.demuxer,S=this.remuxer;if(!d||!S)return;d.resetTimeStamp(T),S.resetTimeStamp(T)},A.resetContiguity=function(){var T=this.demuxer,d=this.remuxer;if(!T||!d)return;T.resetContiguity(),d.resetNextTimestamp()},A.resetInitSegment=function(T,d,S,y){var b=this.demuxer,B=this.remuxer;if(!b||!B)return;b.resetInitSegment(d,S,y),B.resetInitSegment(T,d,S)},A.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},A.transmux=function(T,d,S,y,b){var B;return d&&d.method==="SAMPLE-AES"?B=this.transmuxSampleAes(T,d,S,y,b):B=this.transmuxUnencrypted(T,S,y,b),B},A.transmuxUnencrypted=function(T,d,S,y){var b=this.demuxer.demux(T,d,!1,!this.config.progressive),B=b.audioTrack,F=b.avcTrack,_=b.id3Track,M=b.textTrack,I=this.remuxer.remux(B,F,_,M,d,S,!1,this.id);return{remuxResult:I,chunkMeta:y}},A.transmuxSampleAes=function(T,d,S,y,b){var B=this;return this.demuxer.demuxSampleAes(T,d,S).then(function(F){var _=B.remuxer.remux(F.audioTrack,F.avcTrack,F.id3Track,F.textTrack,S,y,!1,B.id);return{remuxResult:_,chunkMeta:b}})},A.configureTransmuxer=function(T,d){for(var S=this.config,y=this.observer,b=this.typeSupported,B=this.vendor,F=d.audioCodec,_=d.defaultInitPts,M=d.duration,I=d.initSegmentData,g=d.videoCodec,H,$=0,ne=l.length;$0&&A!=null&&A.key!=null&&A.iv!==null&&A.method!=null&&(C=A),C}var O=function(A){return{remuxResult:{},chunkMeta:A}};function E(R){return"then"in R&&R.then instanceof Function}var w=function(A,C,T,d,S){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=A,this.videoCodec=C,this.initSegmentData=T,this.duration=d,this.defaultInitPts=S},D=function(A,C,T,d,S){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=A,this.contiguous=C,this.accurateTimeOffset=T,this.trackSwitch=d,this.timeOffset=S}},"./src/demux/tsdemuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"discardEPB",function(){return O});var X=P("./src/demux/adts.ts"),j=P("./src/demux/mpegaudio.ts"),U=P("./src/demux/exp-golomb.ts"),K=P("./src/demux/id3.ts"),G=P("./src/demux/sample-aes.ts"),r=P("./src/events.ts"),L=P("./src/utils/mp4-tools.ts"),v=P("./src/utils/logger.ts"),m=P("./src/errors.ts"),p={video:1,audio:2,id3:3,text:4},h=function(){function E(D,R,A){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=D,this.config=R,this.typeSupported=A}E.probe=function(R){var A=E.syncOffset(R);return A<0?!1:(A&&v.logger.warn("MPEG2-TS detected but first sync word found @ offset "+A+", junk ahead ?"),!0)},E.syncOffset=function(R){for(var A=Math.min(1e3,R.length-3*188),C=0;C>4,ce=void 0;if(Le>1){if(ce=ge+5+R[ge+4],ce===ge+188)continue}else ce=ge+4;switch(Re){case B:Te&&(F&&(d=o(F))&&this.parseAVCPES(d,!1),F={data:[],size:0}),F&&(F.data.push(R.subarray(ce,ge+188)),F.size+=ge+188-ce);break;case _:Te&&(I&&(d=o(I))&&(y.isAAC?this.parseAACPES(d):this.parseMPEGPES(d)),I={data:[],size:0}),I&&(I.data.push(R.subarray(ce,ge+188)),I.size+=ge+188-ce);break;case M:Te&&(g&&(d=o(g))&&this.parseID3PES(d),g={data:[],size:0}),g&&(g.data.push(R.subarray(ce,ge+188)),g.size+=ge+188-ce);break;case 0:Te&&(ce+=R[ce]+1),ne=this._pmtId=f(R,ce);break;case ne:{Te&&(ce+=R[ce]+1);var he=l(R,ce,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,C);B=he.avc,B>0&&(S.pid=B),_=he.audio,_>0&&(y.pid=_,y.isAAC=he.isAAC),M=he.id3,M>0&&(b.pid=M),H&&!$&&(v.logger.log("reparse from beginning"),H=!1,ge=Oe-188),$=this.pmtParsed=!0;break}case 17:case 8191:break;default:H=!0;break}}else this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});S.pesData=F,y.pesData=I,b.pesData=g;var re={audioTrack:y,avcTrack:S,id3Track:b,textTrack:this._txtTrack};return T&&this.extractRemainingSamples(re),re},w.flush=function(){var R=this.remainderData;this.remainderData=null;var A;return R?A=this.demux(R,-1,!1,!0):A={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(A),this.sampleAes?this.decrypt(A,this.sampleAes):A},w.extractRemainingSamples=function(R){var A=R.audioTrack,C=R.avcTrack,T=R.id3Track,d=C.pesData,S=A.pesData,y=T.pesData,b;d&&(b=o(d))?(this.parseAVCPES(b,!0),C.pesData=null):C.pesData=d,S&&(b=o(S))?(A.isAAC?this.parseAACPES(b):this.parseMPEGPES(b),A.pesData=null):(S!=null&&S.size&&v.logger.log("last AAC PES packet truncated,might overlap between fragments"),A.pesData=S),y&&(b=o(y))?(this.parseID3PES(b),T.pesData=null):T.pesData=y},w.demuxSampleAes=function(R,A,C){var T=this.demux(R,C,!0,!this.config.progressive),d=this.sampleAes=new G.default(this.observer,this.config,A);return this.decrypt(T,d)},w.decrypt=function(R,A){return new Promise(function(C){var T=R.audioTrack,d=R.avcTrack;T.samples&&T.isAAC?A.decryptAacSamples(T.samples,0,function(){d.samples?A.decryptAvcSamples(d.samples,0,0,function(){C(R)}):C(R)}):d.samples&&A.decryptAvcSamples(d.samples,0,0,function(){C(R)})})},w.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},w.parseAVCPES=function(R,A){var C=this,T=this._avcTrack,d=this.parseAVCNALu(R.data),S=!1,y=this.avcSample,b,B=!1;R.data=null,y&&d.length&&!T.audFound&&(s(y,T),y=this.avcSample=u(!1,R.pts,R.dts,"")),d.forEach(function(F){switch(F.type){case 1:{b=!0,y||(y=C.avcSample=u(!0,R.pts,R.dts,"")),S&&(y.debug+="NDR "),y.frame=!0;var _=F.data;if(B&&_.length>4){var M=new U.default(_).readSliceType();(M===2||M===4||M===7||M===9)&&(y.key=!0)}break}case 5:b=!0,y||(y=C.avcSample=u(!0,R.pts,R.dts,"")),S&&(y.debug+="IDR "),y.key=!0,y.frame=!0;break;case 6:{b=!0,S&&y&&(y.debug+="SEI ");var I=new U.default(O(F.data));I.readUByte();for(var g=0,H=0,$=!1,ne=0;!$&&I.bytesAvailable>1;){g=0;do ne=I.readUByte(),g+=ne;while(ne===255);H=0;do ne=I.readUByte(),H+=ne;while(ne===255);if(g===4&&I.bytesAvailable!==0){$=!0;var se=I.readUByte();if(se===181){var Oe=I.readUShort();if(Oe===49){var ge=I.readUInt();if(ge===1195456820){var Te=I.readUByte();if(Te===3){for(var Re=I.readUByte(),Le=I.readUByte(),ce=31&Re,he=[Re,Le],re=0;re16){for(var fe=[],oe=0;oe<16;oe++)fe.push(I.readUByte().toString(16)),(oe===3||oe===5||oe===7||oe===9)&&fe.push("-");for(var De=H-16,Fe=new Uint8Array(De),Ce=0;Ce=0){var I={data:R.subarray(_,y-T-1),type:M};S.push(I)}else{var g=this.getLastNalUnit();if(g&&(d&&y<=4-d&&(g.state&&(g.data=g.data.subarray(0,g.data.byteLength-d))),B=y-T-1,B>0)){var H=new Uint8Array(g.data.byteLength+B);H.set(g.data,0),H.set(R.subarray(0,B),g.data.byteLength),g.data=H,g.state=0}}y=0&&T>=0){var $={data:R.subarray(_,A),type:M,state:T};S.push($)}if(S.length===0){var ne=this.getLastNalUnit();if(ne){var se=new Uint8Array(ne.data.byteLength+R.byteLength);se.set(ne.data,0),se.set(R,ne.data.byteLength),ne.data=se}}return C.naluState=T,S},w.parseAACPES=function(R){var A=0,C=this._audioTrack,T=this.aacOverFlow,d=R.data;if(T){this.aacOverFlow=null;var S=T.sample.unit.byteLength,y=Math.min(T.missing,S),b=S-y;T.sample.unit.set(d.subarray(0,y),b),C.samples.push(T.sample),A=T.missing}var B,F;for(B=A,F=d.length;B1;){var S=new Uint8Array(d[0].length+d[1].length);S.set(d[0]),S.set(d[1],d[0].length),d[0]=S,d.splice(1,1)}D=d[0];var y=(D[0]<<16)+(D[1]<<8)+D[2];if(y===1){if(R=(D[4]<<8)+D[5],R&&R>E.size-6)return null;var b=D[7];b&192&&(C=(D[9]&14)*536870912+(D[10]&255)*4194304+(D[11]&254)*16384+(D[12]&255)*128+(D[13]&254)/2,b&64?(T=(D[14]&14)*536870912+(D[15]&255)*4194304+(D[16]&254)*16384+(D[17]&255)*128+(D[18]&254)/2,C-T>60*9e4&&(v.logger.warn(Math.round((C-T)/9e4)+"s delta between PTS and DTS, align them"),C=T)):T=C),A=D[8];var B=A+9;if(E.size<=B)return null;E.size-=B;for(var F=new Uint8Array(E.size),_=0,M=d.length;_I){B-=I;continue}else D=D.subarray(B),I-=B,B=0;F.set(D,w),w+=I}return R&&(R-=A+3),{data:F,pts:C,dts:T,len:R}}return null}function s(E,w){if(E.units.length&&E.frame){if(E.pts===void 0){var D=w.samples,R=D.length;if(R){var A=D[R-1];E.pts=A.pts,E.dts=A.dts}else{w.dropped++;return}}w.samples.push(E)}E.debug.length&&v.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function a(E,w){var D=E.length;if(D>0){if(w.pts>=E[D-1].pts)E.push(w);else for(var R=D-1;R>=0;R--)if(w.ptsC)return d;return 0}},{key:"maxAutoLevel",get:function(){var A=this.levels,C=this.autoLevelCapping,T;return C===-1&&A&&A.length?T=A.length-1:T=C,T}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(A){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,A)}},{key:"audioTracks",get:function(){var A=this.audioTrackController;return A?A.audioTracks:[]}},{key:"audioTrack",get:function(){var A=this.audioTrackController;return A?A.audioTrack:-1},set:function(A){var C=this.audioTrackController;C&&(C.audioTrack=A)}},{key:"subtitleTracks",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTrack:-1},set:function(A){var C=this.subtitleTrackController;C&&(C.subtitleTrack=A)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var A=this.subtitleTrackController;return A?A.subtitleDisplay:!1},set:function(A){var C=this.subtitleTrackController;C&&(C.subtitleDisplay=A)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(A){this.config.lowLatencyMode=A}},{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 o.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return w.defaultConfig?w.defaultConfig:u.hlsDefaultConfig},set:function(A){w.defaultConfig=A}}]),w}();E.defaultConfig=void 0},"./src/is-supported.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"isSupported",function(){return U}),P.d(J,"changeTypeSupported",function(){return K});var X=P("./src/utils/mediasource-helper.ts");function j(){return self.SourceBuffer||self.WebKitSourceBuffer}function U(){var G=Object(X.getMediaSource)();if(!G)return!1;var r=j(),L=G&&typeof G.isTypeSupported=="function"&&G.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),v=!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function";return!!L&&!!v}function K(){var G,r=j();return typeof(r==null||((G=r.prototype)===null||G===void 0)?void 0:G.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return h}),P.d(J,"LoadError",function(){return f});var X=P("./src/polyfills/number.ts"),j=P("./src/errors.ts");function U(l,o){l.prototype=Object.create(o.prototype),l.prototype.constructor=l,v(l,o)}function K(l){var o=typeof Map=="function"?new Map:void 0;return K=function(a){if(a===null||!L(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof o!="undefined"){if(o.has(a))return o.get(a);o.set(a,O)}function O(){return G(a,arguments,m(this).constructor)}return O.prototype=Object.create(a.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),v(O,a)},K(l)}function G(l,o,s){return r()?G=Reflect.construct:G=function(O,E,w){var D=[null];D.push.apply(D,E);var R=Function.bind.apply(O,D),A=new R;return w&&v(A,w.prototype),A},G.apply(null,arguments)}function r(){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(l){return!1}}function L(l){return Function.toString.call(l).indexOf("[native code]")!==-1}function v(l,o){return v=Object.setPrototypeOf||function(a,O){return a.__proto__=O,a},v(l,o)}function m(l){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},m(l)}var p=Math.pow(2,17),h=function(){function l(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var o=l.prototype;return o.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},o.abort=function(){this.loader&&this.loader.abort()},o.load=function(a,O){var E=this,w=a.url;if(!w)return Promise.reject(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,networkDetails:null},"Fragment does not have a "+(w?"part list":"url")));this.abort();var D=this.config,R=D.fLoader,A=D.loader;return new Promise(function(C,T){E.loader&&E.loader.destroy();var d=E.loader=a.loader=R?new R(D):new A(D),S=u(a),y={timeout:D.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:D.fragLoadingMaxRetryTimeout,highWaterMark:p};a.stats=d.stats,d.load(S,y,{onSuccess:function(B,F,_,M){E.resetLoader(a,d),C({frag:a,part:null,payload:B.data,networkDetails:M})},onError:function(B,F,_){E.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,response:B,networkDetails:_}))},onAbort:function(B,F,_){E.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,networkDetails:_}))},onTimeout:function(B,F,_){E.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,networkDetails:_}))},onProgress:function(B,F,_,M){O&&O({frag:a,part:null,payload:_,networkDetails:M})}})})},o.loadPart=function(a,O,E){var w=this;this.abort();var D=this.config,R=D.fLoader,A=D.loader;return new Promise(function(C,T){w.loader&&w.loader.destroy();var d=w.loader=a.loader=R?new R(D):new A(D),S=u(a,O),y={timeout:D.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:D.fragLoadingMaxRetryTimeout,highWaterMark:p};O.stats=d.stats,d.load(S,y,{onSuccess:function(B,F,_,M){w.resetLoader(a,d),w.updateStatsFromPart(a,O);var I={frag:a,part:O,payload:B.data,networkDetails:M};E(I),C(I)},onError:function(B,F,_){w.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,part:O,response:B,networkDetails:_}))},onAbort:function(B,F,_){a.stats.aborted=O.stats.aborted,w.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,part:O,networkDetails:_}))},onTimeout:function(B,F,_){w.resetLoader(a,d),T(new f({type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,part:O,networkDetails:_}))}})})},o.updateStatsFromPart=function(a,O){var E=a.stats,w=O.stats,D=w.total;if(E.loaded+=w.loaded,D){var R=Math.round(a.duration/O.duration),A=Math.min(Math.round(E.loaded/D),R),C=R-A,T=C*Math.round(E.loaded/A);E.total=E.loaded+T}else E.total=Math.max(E.loaded,E.total);var d=E.loading,S=w.loading;d.start?d.first+=S.first-S.start:(d.start=S.start,d.first=S.first),d.end=S.end},o.resetLoader=function(a,O){a.loader=null,this.loader===O&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),O.destroy()},l}();function u(l,o){o===void 0&&(o=null);var s=o||l,a={frag:l,part:o,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},O=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(X.isFiniteNumber)(O)&&Object(X.isFiniteNumber)(E)&&(a.rangeStart=O,a.rangeEnd=E),a}var f=function(l){U(o,l);function o(s){for(var a,O=arguments.length,E=new Array(O>1?O-1:0),w=1;w>8*(15-D)&255;return w},a.setDecryptDataFromLevelKey=function(E,w){var D=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(D=G.LevelKey.fromURI(E.uri),D.method=E.method,D.iv=this.createInitializationVector(w),D.keyFormat="identity"),D},a.setElementaryStreamInfo=function(E,w,D,R,A,C){C===void 0&&(C=!1);var T=this.elementaryStreams,d=T[E];if(!d){T[E]={startPTS:w,endPTS:D,startDTS:R,endDTS:A,partial:C};return}d.startPTS=Math.min(d.startPTS,w),d.endPTS=Math.max(d.endPTS,D),d.startDTS=Math.min(d.startDTS,R),d.endDTS=Math.max(d.endDTS,A)},a.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[h.AUDIO]=null,E[h.VIDEO]=null,E[h.AUDIOVIDEO]=null},p(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&&K.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(X.isFiniteNumber)(this.programDateTime))return null;var E=Object(X.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}(u),l=function(o){L(s,o);function s(a,O,E,w,D){var R;R=o.call(this,E)||this,R.fragOffset=0,R.duration=0,R.gap=!1,R.independent=!1,R.relurl=void 0,R.fragment=void 0,R.index=void 0,R.stats=new r.LoadStats,R.duration=a.decimalFloatingPoint("DURATION"),R.gap=a.bool("GAP"),R.independent=a.bool("INDEPENDENT"),R.relurl=a.enumeratedString("URI"),R.fragment=O,R.index=w;var A=a.enumeratedString("BYTERANGE");return A&&R.setByteRange(A,D),D&&(R.fragOffset=D.fragOffset+D.duration),R}return p(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 O=this.elementaryStreams;return!!(O.audio||O.video||O.audiovideo)}}]),s}(u)},"./src/loader/key-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return K});var X=P("./src/events.ts"),j=P("./src/errors.ts"),U=P("./src/utils/logger.ts"),K=function(){function G(L){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=L,this._registerListeners()}var r=G.prototype;return r._registerListeners=function(){this.hls.on(X.Events.KEY_LOADING,this.onKeyLoading,this)},r._unregisterListeners=function(){this.hls.off(X.Events.KEY_LOADING,this.onKeyLoading)},r.destroy=function(){this._unregisterListeners();for(var v in this.loaders){var m=this.loaders[v];m&&m.destroy()}this.loaders={}},r.onKeyLoading=function(v,m){var p=m.frag,h=p.type,u=this.loaders[h];if(!p.decryptdata){U.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=p.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var l=this.hls.config;if(u&&(U.logger.warn("abort previous key loader for type:"+h),u.abort()),!f){U.logger.warn("key uri is falsy");return}var o=l.loader,s=p.loader=this.loaders[h]=new o(l);this.decrypturl=f,this.decryptkey=null;var a={url:f,frag:p,responseType:"arraybuffer"},O={timeout:l.fragLoadingTimeOut,maxRetry:0,retryDelay:l.fragLoadingRetryDelay,maxRetryDelay:l.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(a,O,E)}else this.decryptkey&&(p.decryptdata.key=this.decryptkey,this.hls.trigger(X.Events.KEY_LOADED,{frag:p}))},r.loadsuccess=function(v,m,p){var h=p.frag;if(!h.decryptdata){U.logger.error("after key load, decryptdata unset");return}this.decryptkey=h.decryptdata.key=new Uint8Array(v.data),h.loader=null,delete this.loaders[h.type],this.hls.trigger(X.Events.KEY_LOADED,{frag:h})},r.loaderror=function(v,m){var p=m.frag,h=p.loader;h&&h.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:p,response:v})},r.loadtimeout=function(v,m){var p=m.frag,h=p.loader;h&&h.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:j.ErrorTypes.NETWORK_ERROR,details:j.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:p})},G}()},"./src/loader/level-details.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"LevelDetails",function(){return G});var X=P("./src/polyfills/number.ts");function j(r,L){for(var v=0;vm.endSN||p>0||p===0&&h>0,this.updated||this.advanced?this.misses=Math.floor(m.misses*.6):this.misses=m.misses+1,this.availabilityDelay=m.availabilityDelay},U(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(X.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||K}},{key:"drift",get:function(){var m=this.driftEndTime-this.driftStartTime;if(m>0){var p=this.driftEnd-this.driftStart;return p*1e3/m}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var m;return(m=this.fragments)!==null&&m!==void 0&&m.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 m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),r}()},"./src/loader/level-key.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"LevelKey",function(){return G});var X=P("./node_modules/url-toolkit/src/url-toolkit.js"),j=P.n(X);function U(r,L){for(var v=0;v2){var T=C.shift()+".";return T+=parseInt(C.shift()).toString(16),T+=("000"+parseInt(C.shift()).toString(16)).substr(-4),T}return A},D.resolve=function(A,C){return j.buildAbsoluteURL(C,A,{alwaysNormalize:!0})},D.parseMasterPlaylist=function(A,C){var T=[],d={},S=!1;p.lastIndex=0;for(var y;(y=p.exec(A))!=null;)if(y[1]){var b=new L.AttrList(y[1]),B={attrs:b,bitrate:b.decimalInteger("AVERAGE-BANDWIDTH")||b.decimalInteger("BANDWIDTH"),name:b.NAME,url:D.resolve(y[2],C)},F=b.decimalResolution("RESOLUTION");F&&(B.width=F.width,B.height=F.height),a((b.CODECS||"").split(/[ ,]+/).filter(function(M){return M}),B),B.videoCodec&&B.videoCodec.indexOf("avc1")!==-1&&(B.videoCodec=D.convertAVC1ToAVCOTI(B.videoCodec)),T.push(B)}else if(y[3]){var _=new L.AttrList(y[3]);_["DATA-ID"]&&(S=!0,d[_["DATA-ID"]]=_)}return{levels:T,sessionData:S?d:null}},D.parseMasterPlaylistMedia=function(A,C,T,d){d===void 0&&(d=[]);var S,y=[],b=0;for(h.lastIndex=0;(S=h.exec(A))!==null;){var B=new L.AttrList(S[1]);if(B.TYPE===T){var F={attrs:B,bitrate:0,id:b++,groupId:B["GROUP-ID"],instreamId:B["INSTREAM-ID"],name:B.NAME||B.LANGUAGE||"",type:T,default:B.bool("DEFAULT"),autoselect:B.bool("AUTOSELECT"),forced:B.bool("FORCED"),lang:B.LANGUAGE,url:B.URI?D.resolve(B.URI,C):""};if(d.length){var _=D.findGroup(d,F.groupId)||d[0];O(F,_,"audioCodec"),O(F,_,"textCodec")}y.push(F)}}return y},D.parseLevelPlaylist=function(A,C,T,d,S){var y=new G.LevelDetails(C),b=y.fragments,B=null,F=0,_=0,M=0,I=0,g=null,H=new K.Fragment(d,C),$,ne,se,Oe=-1,ge=!1;for(u.lastIndex=0,y.m3u8=A;($=u.exec(A))!==null;){ge&&(ge=!1,H=new K.Fragment(d,C),H.start=M,H.sn=F,H.cc=I,H.level=T,B&&(H.initSegment=B,H.rawProgramDateTime=B.rawProgramDateTime));var Te=$[1];if(Te){H.duration=parseFloat(Te);var Re=(" "+$[2]).slice(1);H.title=Re||null,H.tagList.push(Re?["INF",Te,Re]:["INF",Te])}else if($[3])Object(X.isFiniteNumber)(H.duration)&&(H.start=M,se&&(H.levelkey=se),H.sn=F,H.level=T,H.cc=I,H.urlId=S,b.push(H),H.relurl=(" "+$[3]).slice(1),w(H,g),g=H,M+=H.duration,F++,_=0,ge=!0);else if($[4]){var Le=(" "+$[4]).slice(1);g?H.setByteRange(Le,g):H.setByteRange(Le)}else if($[5])H.rawProgramDateTime=(" "+$[5]).slice(1),H.tagList.push(["PROGRAM-DATE-TIME",H.rawProgramDateTime]),Oe===-1&&(Oe=b.length);else{if($=$[0].match(f),!$){v.logger.warn("No matches on slow regex match for level playlist!");continue}for(ne=1;ne<$.length&&!(typeof $[ne]!="undefined");ne++);var ce=(" "+$[ne]).slice(1),he=(" "+$[ne+1]).slice(1),re=$[ne+2]?(" "+$[ne+2]).slice(1):"";switch(ce){case"PLAYLIST-TYPE":y.type=he.toUpperCase();break;case"MEDIA-SEQUENCE":F=y.startSN=parseInt(he);break;case"SKIP":{var fe=new L.AttrList(he),oe=fe.decimalInteger("SKIPPED-SEGMENTS");if(Object(X.isFiniteNumber)(oe)){y.skippedSegments=oe;for(var De=oe;De--;)b.unshift(null);F+=oe}var Fe=fe.enumeratedString("RECENTLY-REMOVED-DATERANGES");Fe&&(y.recentlyRemovedDateranges=Fe.split(" "));break}case"TARGETDURATION":y.targetduration=parseFloat(he);break;case"VERSION":y.version=parseInt(he);break;case"EXTM3U":break;case"ENDLIST":y.live=!1;break;case"#":(he||re)&&H.tagList.push(re?[he,re]:[he]);break;case"DIS":I++;case"GAP":H.tagList.push([ce]);break;case"BITRATE":H.tagList.push([ce,he]);break;case"DISCONTINUITY-SEQ":I=parseInt(he);break;case"KEY":{var Ce,Ne=new L.AttrList(he),Be=Ne.enumeratedString("METHOD"),le=Ne.URI,ve=Ne.hexadecimalInteger("IV"),Se=Ne.enumeratedString("KEYFORMATVERSIONS"),Ie=Ne.enumeratedString("KEYID"),We=(Ce=Ne.enumeratedString("KEYFORMAT"))!=null?Ce:"identity",Ve=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Ve.indexOf(We)>-1){v.logger.warn("Keyformat "+We+" is not supported from the manifest");continue}else if(We!=="identity")continue;Be&&(se=r.LevelKey.fromURL(C,le),le&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Be)>=0&&(se.method=Be,se.keyFormat=We,Ie&&(se.keyID=Ie),Se&&(se.keyFormatVersions=Se),se.iv=ve));break}case"START":{var Qe=new L.AttrList(he),Je=Qe.decimalFloatingPoint("TIME-OFFSET");Object(X.isFiniteNumber)(Je)&&(y.startTimeOffset=Je);break}case"MAP":{var st=new L.AttrList(he);H.relurl=st.URI,st.BYTERANGE&&H.setByteRange(st.BYTERANGE),H.level=T,H.sn="initSegment",se&&(H.levelkey=se),H.initSegment=null,B=H,ge=!0;break}case"SERVER-CONTROL":{var qe=new L.AttrList(he);y.canBlockReload=qe.bool("CAN-BLOCK-RELOAD"),y.canSkipUntil=qe.optionalFloat("CAN-SKIP-UNTIL",0),y.canSkipDateRanges=y.canSkipUntil>0&&qe.bool("CAN-SKIP-DATERANGES"),y.partHoldBack=qe.optionalFloat("PART-HOLD-BACK",0),y.holdBack=qe.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var at=new L.AttrList(he);y.partTarget=at.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=y.partList;Ue||(Ue=y.partList=[]);var dt=_>0?Ue[Ue.length-1]:void 0,lt=_++,je=new K.Part(new L.AttrList(he),H,C,lt,dt);Ue.push(je),H.duration+=je.duration;break}case"PRELOAD-HINT":{var Ge=new L.AttrList(he);y.preloadHint=Ge;break}case"RENDITION-REPORT":{var Ae=new L.AttrList(he);y.renditionReports=y.renditionReports||[],y.renditionReports.push(Ae);break}default:v.logger.warn("line parsed but not handled: "+$);break}}}g&&!g.relurl?(b.pop(),M-=g.duration,y.partList&&(y.fragmentHint=g)):y.partList&&(w(H,g),H.cc=I,y.fragmentHint=H);var _e=b.length,we=b[0],ae=b[_e-1];if(M+=y.skippedSegments*y.targetduration,M>0&&_e&&ae){y.averagetargetduration=M/_e;var ue=ae.sn;y.endSN=ue!=="initSegment"?ue:0,we&&(y.startCC=we.cc,we.initSegment||y.fragments.every(function(de){return de.relurl&&o(de.relurl)})&&(v.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),H=new K.Fragment(d,C),H.relurl=ae.relurl,H.level=T,H.sn="initSegment",we.initSegment=H,y.needSidxRanges=!0))}else y.endSN=0,y.startCC=0;return y.fragmentHint&&(M+=y.fragmentHint.duration),y.totalduration=M,y.endCC=I,Oe>0&&E(b,Oe),y},D}();function a(D,R){["video","audio","text"].forEach(function(A){var C=D.filter(function(d){return Object(m.isCodecType)(d,A)});if(C.length){var T=C.filter(function(d){return d.lastIndexOf("avc1",0)===0||d.lastIndexOf("mp4a",0)===0});R[A+"Codec"]=T.length>0?T[0]:C[0],D=D.filter(function(d){return C.indexOf(d)===-1})}}),R.unknownCodecs=D}function O(D,R,A){var C=R[A];C&&(D[A]=C)}function E(D,R){for(var A=D[R],C=R;C--;){var T=D[C];if(!T)return;T.programDateTime=A.programDateTime-T.duration*1e3,A=T}}function w(D,R){D.rawProgramDateTime?D.programDateTime=Date.parse(D.rawProgramDateTime):R!=null&&R.programDateTime&&(D.programDateTime=R.endProgramDateTime),Object(X.isFiniteNumber)(D.programDateTime)||(D.programDateTime=null,D.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/polyfills/number.ts"),j=P("./src/events.ts"),U=P("./src/errors.ts"),K=P("./src/utils/logger.ts"),G=P("./src/utils/mp4-tools.ts"),r=P("./src/loader/m3u8-parser.ts"),L=P("./src/types/loader.ts"),v=P("./src/utils/attr-list.ts");function m(u){var f=u.type;switch(f){case L.PlaylistContextType.AUDIO_TRACK:return L.PlaylistLevelType.AUDIO;case L.PlaylistContextType.SUBTITLE_TRACK:return L.PlaylistLevelType.SUBTITLE;default:return L.PlaylistLevelType.MAIN}}function p(u,f){var l=u.url;return(l===void 0||l.indexOf("data:")===0)&&(l=f.url),l}var h=function(){function u(l){this.hls=void 0,this.loaders=Object.create(null),this.hls=l,this.registerListeners()}var f=u.prototype;return f.registerListeners=function(){var o=this.hls;o.on(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(j.Events.LEVEL_LOADING,this.onLevelLoading,this),o.on(j.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.on(j.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var o=this.hls;o.off(j.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(j.Events.LEVEL_LOADING,this.onLevelLoading,this),o.off(j.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.off(j.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(o){var s=this.hls.config,a=s.pLoader,O=s.loader,E=a||O,w=new E(s);return o.loader=w,this.loaders[o.type]=w,w},f.getInternalLoader=function(o){return this.loaders[o.type]},f.resetInternalLoader=function(o){this.loaders[o]&&delete this.loaders[o]},f.destroyInternalLoaders=function(){for(var o in this.loaders){var s=this.loaders[o];s&&s.destroy(),this.resetInternalLoader(o)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(o,s){var a=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:L.PlaylistContextType.MANIFEST,url:a,deliveryDirectives:null})},f.onLevelLoading=function(o,s){var a=s.id,O=s.level,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:null,level:O,responseType:"text",type:L.PlaylistContextType.LEVEL,url:E,deliveryDirectives:w})},f.onAudioTrackLoading=function(o,s){var a=s.id,O=s.groupId,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:O,level:null,responseType:"text",type:L.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:w})},f.onSubtitleTrackLoading=function(o,s){var a=s.id,O=s.groupId,E=s.url,w=s.deliveryDirectives;this.load({id:a,groupId:O,level:null,responseType:"text",type:L.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:w})},f.load=function(o){var s,a=this.hls.config,O=this.getInternalLoader(o);if(O){var E=O.context;if(E&&E.url===o.url){K.logger.trace("[playlist-loader]: playlist request ongoing");return}K.logger.log("[playlist-loader]: aborting previous loader for type: "+o.type),O.abort()}var w,D,R,A;switch(o.type){case L.PlaylistContextType.MANIFEST:w=a.manifestLoadingMaxRetry,D=a.manifestLoadingTimeOut,R=a.manifestLoadingRetryDelay,A=a.manifestLoadingMaxRetryTimeout;break;case L.PlaylistContextType.LEVEL:case L.PlaylistContextType.AUDIO_TRACK:case L.PlaylistContextType.SUBTITLE_TRACK:w=0,D=a.levelLoadingTimeOut;break;default:w=a.levelLoadingMaxRetry,D=a.levelLoadingTimeOut,R=a.levelLoadingRetryDelay,A=a.levelLoadingMaxRetryTimeout;break}if(O=this.createInternalLoader(o),(s=o.deliveryDirectives)!==null&&s!==void 0&&s.part){var C;if(o.type===L.PlaylistContextType.LEVEL&&o.level!==null?C=this.hls.levels[o.level].details:o.type===L.PlaylistContextType.AUDIO_TRACK&&o.id!==null?C=this.hls.audioTracks[o.id].details:o.type===L.PlaylistContextType.SUBTITLE_TRACK&&o.id!==null&&(C=this.hls.subtitleTracks[o.id].details),C){var T=C.partTarget,d=C.targetduration;T&&d&&(D=Math.min(Math.max(T*3,d*.8)*1e3,D))}}var S={timeout:D,maxRetry:w,retryDelay:R,maxRetryDelay:A,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};O.load(o,S,y)},f.loadsuccess=function(o,s,a,O){if(O===void 0&&(O=null),a.isSidxRequest){this.handleSidxRequest(o,a),this.handlePlaylistLoaded(o,s,a,O);return}this.resetInternalLoader(a.type);var E=o.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(o,a,"no EXTM3U delimiter",O);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(o,s,a,O):this.handleMasterPlaylist(o,s,a,O)},f.loaderror=function(o,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!1,o)},f.loadtimeout=function(o,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!0)},f.handleMasterPlaylist=function(o,s,a,O){var E=this.hls,w=o.data,D=p(o,a),R=r.default.parseMasterPlaylist(w,D),A=R.levels,C=R.sessionData;if(!A.length){this.handleManifestParsingError(o,a,"no level found in manifest",O);return}var T=A.map(function(F){return{id:F.attrs.AUDIO,audioCodec:F.audioCodec}}),d=A.map(function(F){return{id:F.attrs.SUBTITLES,textCodec:F.textCodec}}),S=r.default.parseMasterPlaylistMedia(w,D,"AUDIO",T),y=r.default.parseMasterPlaylistMedia(w,D,"SUBTITLES",d),b=r.default.parseMasterPlaylistMedia(w,D,"CLOSED-CAPTIONS");if(S.length){var B=S.some(function(F){return!F.url});!B&&A[0].audioCodec&&!A[0].attrs.AUDIO&&(K.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),S.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new v.AttrList({}),bitrate:0,url:""}))}E.trigger(j.Events.MANIFEST_LOADED,{levels:A,audioTracks:S,subtitles:y,captions:b,url:D,stats:s,networkDetails:O,sessionData:C})},f.handleTrackOrLevelPlaylist=function(o,s,a,O){var E=this.hls,w=a.id,D=a.level,R=a.type,A=p(o,a),C=Object(X.isFiniteNumber)(w)?w:0,T=Object(X.isFiniteNumber)(D)?D:C,d=m(a),S=r.default.parseLevelPlaylist(o.data,A,T,d,C);if(!S.fragments.length){E.trigger(j.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:A,reason:"no fragments found in level",level:typeof a.level=="number"?a.level:void 0});return}if(R===L.PlaylistContextType.MANIFEST){var y={attrs:new v.AttrList({}),bitrate:0,details:S,name:"",url:A};E.trigger(j.Events.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:A,stats:s,networkDetails:O,sessionData:null})}if(s.parsing.end=performance.now(),S.needSidxRanges){var b,B=(b=S.fragments[0].initSegment)===null||b===void 0?void 0:b.url;this.load({url:B,isSidxRequest:!0,type:R,level:D,levelDetails:S,id:w,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}a.levelDetails=S,this.handlePlaylistLoaded(o,s,a,O)},f.handleSidxRequest=function(o,s){var a=Object(G.parseSegmentIndex)(new Uint8Array(o.data));if(!a)return;var O=a.references,E=s.levelDetails;O.forEach(function(w,D){var R=w.info,A=E.fragments[D];A.byteRange.length===0&&A.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),A.initSegment&&A.initSegment.setByteRange(String(a.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(o,s,a,O){this.hls.trigger(j.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===L.PlaylistContextType.MANIFEST,url:o.url,reason:a,response:o,context:s,networkDetails:O})},f.handleNetworkError=function(o,s,a,O){a===void 0&&(a=!1),K.logger.warn("[playlist-loader]: A network "+(a?"timeout":"error")+" occurred while loading "+o.type+" level: "+o.level+" id: "+o.id+' group-id: "'+o.groupId+'"');var E=U.ErrorDetails.UNKNOWN,w=!1,D=this.getInternalLoader(o);switch(o.type){case L.PlaylistContextType.MANIFEST:E=a?U.ErrorDetails.MANIFEST_LOAD_TIMEOUT:U.ErrorDetails.MANIFEST_LOAD_ERROR,w=!0;break;case L.PlaylistContextType.LEVEL:E=a?U.ErrorDetails.LEVEL_LOAD_TIMEOUT:U.ErrorDetails.LEVEL_LOAD_ERROR,w=!1;break;case L.PlaylistContextType.AUDIO_TRACK:E=a?U.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:U.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,w=!1;break;case L.PlaylistContextType.SUBTITLE_TRACK:E=a?U.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:U.ErrorDetails.SUBTITLE_LOAD_ERROR,w=!1;break}D&&this.resetInternalLoader(o.type);var R={type:U.ErrorTypes.NETWORK_ERROR,details:E,fatal:w,url:o.url,loader:D,context:o,networkDetails:s};O&&(R.response=O),this.hls.trigger(j.Events.ERROR,R)},f.handlePlaylistLoaded=function(o,s,a,O){var E=a.type,w=a.level,D=a.id,R=a.groupId,A=a.loader,C=a.levelDetails,T=a.deliveryDirectives;if(!(C!=null&&C.targetduration)){this.handleManifestParsingError(o,a,"invalid target duration",O);return}if(!A)return;C.live&&(A.getCacheAge&&(C.ageHeader=A.getCacheAge()||0),(!A.getCacheAge||isNaN(C.ageHeader))&&(C.ageHeader=0));switch(E){case L.PlaylistContextType.MANIFEST:case L.PlaylistContextType.LEVEL:this.hls.trigger(j.Events.LEVEL_LOADED,{details:C,level:w||0,id:D||0,stats:s,networkDetails:O,deliveryDirectives:T});break;case L.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(j.Events.AUDIO_TRACK_LOADED,{details:C,id:D||0,groupId:R||"",stats:s,networkDetails:O,deliveryDirectives:T});break;case L.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(j.Events.SUBTITLE_TRACK_LOADED,{details:C,id:D||0,groupId:R||"",stats:s,networkDetails:O,deliveryDirectives:T});break}},u}();J.default=h},"./src/polyfills/number.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"isFiniteNumber",function(){return X}),P.d(J,"MAX_SAFE_INTEGER",function(){return j});var X=Number.isFinite||function(U){return typeof U=="number"&&isFinite(U)},j=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ie,J,P){"use strict";P.r(J);var X=function(){function j(){}return j.getSilentFrame=function(K,G){switch(K){case"mp4a.40.2":if(G===1)return new Uint8Array([0,200,0,128,35,128]);if(G===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(G===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(G===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(G===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(G===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(G===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(G===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(G===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},j}();J.default=X},"./src/remux/mp4-generator.ts":function(ie,J,P){"use strict";P.r(J);var X=Math.pow(2,32)-1,j=function(){function U(){}return U.init=function(){U.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 G;for(G in U.types)U.types.hasOwnProperty(G)&&(U.types[G]=[G.charCodeAt(0),G.charCodeAt(1),G.charCodeAt(2),G.charCodeAt(3)]);var r=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]),L=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]);U.HDLR_TYPES={video:r,audio:L};var v=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m=new Uint8Array([0,0,0,0,0,0,0,0]);U.STTS=U.STSC=U.STCO=m,U.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),U.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),U.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var p=new Uint8Array([105,115,111,109]),h=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);U.FTYP=U.box(U.types.ftyp,p,u,p,h),U.DINF=U.box(U.types.dinf,U.box(U.types.dref,v))},U.box=function(G){for(var r=8,L=arguments.length,v=new Array(L>1?L-1:0),m=1;m>24&255,u[1]=r>>16&255,u[2]=r>>8&255,u[3]=r&255,u.set(G,4),p=0,r=8;p>24&255,G>>16&255,G>>8&255,G&255,L>>24,L>>16&255,L>>8&255,L&255,v>>24,v>>16&255,v>>8&255,v&255,85,196,0,0]))},U.mdia=function(G){return U.box(U.types.mdia,U.mdhd(G.timescale,G.duration),U.hdlr(G.type),U.minf(G))},U.mfhd=function(G){return U.box(U.types.mfhd,new Uint8Array([0,0,0,0,G>>24,G>>16&255,G>>8&255,G&255]))},U.minf=function(G){return G.type==="audio"?U.box(U.types.minf,U.box(U.types.smhd,U.SMHD),U.DINF,U.stbl(G)):U.box(U.types.minf,U.box(U.types.vmhd,U.VMHD),U.DINF,U.stbl(G))},U.moof=function(G,r,L){return U.box(U.types.moof,U.mfhd(G),U.traf(L,r))},U.moov=function(G){for(var r=G.length,L=[];r--;)L[r]=U.trak(G[r]);return U.box.apply(null,[U.types.moov,U.mvhd(G[0].timescale,G[0].duration)].concat(L).concat(U.mvex(G)))},U.mvex=function(G){for(var r=G.length,L=[];r--;)L[r]=U.trex(G[r]);return U.box.apply(null,[U.types.mvex].concat(L))},U.mvhd=function(G,r){r*=G;var L=Math.floor(r/(X+1)),v=Math.floor(r%(X+1)),m=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,G>>24&255,G>>16&255,G>>8&255,G&255,L>>24,L>>16&255,L>>8&255,L&255,v>>24,v>>16&255,v>>8&255,v&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 U.box(U.types.mvhd,m)},U.sdtp=function(G){var r=G.samples||[],L=new Uint8Array(4+r.length),v,m;for(v=0;v>>8&255),r.push(p&255),r=r.concat(Array.prototype.slice.call(m));for(v=0;v>>8&255),L.push(p&255),L=L.concat(Array.prototype.slice.call(m));var h=U.box(U.types.avcC,new Uint8Array([1,r[3],r[4],r[5],252|3,224|G.sps.length].concat(r).concat([G.pps.length]).concat(L))),u=G.width,f=G.height,l=G.pixelRatio[0],o=G.pixelRatio[1];return U.box(U.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,u>>8&255,u&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]),h,U.box(U.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),U.box(U.types.pasp,new Uint8Array([l>>24,l>>16&255,l>>8&255,l&255,o>>24,o>>16&255,o>>8&255,o&255])))},U.esds=function(G){var r=G.config.length;return new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(G.config).concat([6,1,2]))},U.mp4a=function(G){var r=G.samplerate;return U.box(U.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,G.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]),U.box(U.types.esds,U.esds(G)))},U.mp3=function(G){var r=G.samplerate;return U.box(U.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,G.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]))},U.stsd=function(G){return G.type==="audio"?!G.isAAC&&G.codec==="mp3"?U.box(U.types.stsd,U.STSD,U.mp3(G)):U.box(U.types.stsd,U.STSD,U.mp4a(G)):U.box(U.types.stsd,U.STSD,U.avc1(G))},U.tkhd=function(G){var r=G.id,L=G.duration*G.timescale,v=G.width,m=G.height,p=Math.floor(L/(X+1)),h=Math.floor(L%(X+1));return U.box(U.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,r&255,0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,h>>24,h>>16&255,h>>8&255,h&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,v>>8&255,v&255,0,0,m>>8&255,m&255,0,0]))},U.traf=function(G,r){var L=U.sdtp(G),v=G.id,m=Math.floor(r/(X+1)),p=Math.floor(r%(X+1));return U.box(U.types.traf,U.box(U.types.tfhd,new Uint8Array([0,0,0,0,v>>24,v>>16&255,v>>8&255,v&255])),U.box(U.types.tfdt,new Uint8Array([1,0,0,0,m>>24,m>>16&255,m>>8&255,m&255,p>>24,p>>16&255,p>>8&255,p&255])),U.trun(G,L.length+16+20+8+16+8+8),L)},U.trak=function(G){return G.duration=G.duration||4294967295,U.box(U.types.trak,U.tkhd(G),U.mdia(G))},U.trex=function(G){var r=G.id;return U.box(U.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},U.trun=function(G,r){var L=G.samples||[],v=L.length,m=12+16*v,p=new Uint8Array(m),h,u,f,l,o,s;for(r+=8+m,p.set([0,0,15,1,v>>>24&255,v>>>16&255,v>>>8&255,v&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255],0),h=0;h>>24&255,f>>>16&255,f>>>8&255,f&255,l>>>24&255,l>>>16&255,l>>>8&255,l&255,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,o.degradPrio&240<<8,o.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*h);return U.box(U.types.trun,p)},U.initSegment=function(G){U.types||U.init();var r=U.moov(G),L=new Uint8Array(U.FTYP.byteLength+r.byteLength);return L.set(U.FTYP),L.set(r,U.FTYP.byteLength),L},U}();j.types=void 0,j.HDLR_TYPES=void 0,j.STTS=void 0,j.STSC=void 0,j.STCO=void 0,j.STSZ=void 0,j.VMHD=void 0,j.SMHD=void 0,j.STSD=void 0,j.FTYP=void 0,j.DINF=void 0,J.default=j},"./src/remux/mp4-remuxer.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return s}),P.d(J,"normalizePts",function(){return a});var X=P("./src/polyfills/number.ts"),j=P("./src/remux/aac-helper.ts"),U=P("./src/remux/mp4-generator.ts"),K=P("./src/events.ts"),G=P("./src/errors.ts"),r=P("./src/utils/logger.ts"),L=P("./src/types/loader.ts"),v=P("./src/utils/timescale-conversion.ts");function m(){return m=Object.assign||function(D){for(var R=1;R0?S:y.pts},C[0].pts);return T&&r.logger.debug("PTS rollover detected"),d},R.remux=function(C,T,d,S,y,b,B,F){var _,M,I,g,H,$,ne=y,se=y,Oe=C.pid>-1,ge=T.pid>-1,Te=T.samples.length,Re=C.samples.length>0,Le=Te>1,ce=(!Oe||Re)&&(!ge||Le)||this.ISGenerated||B;if(ce){this.ISGenerated||(I=this.generateIS(C,T,y));var he=this.isVideoContiguous,re=-1;if(Le&&(re=O(T.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if($=!0,re>0){r.logger.warn("[mp4-remuxer]: Dropped "+re+" out of "+Te+" video samples due to a missing keyframe");var fe=this.getVideoStartPts(T.samples);T.samples=T.samples.slice(re),T.dropped+=re,se+=(T.samples[0].pts-fe)/(T.timescale||9e4)}else re===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+Te+" video samples"),$=!1);if(this.ISGenerated){if(Re&&Le){var oe=this.getVideoStartPts(T.samples),De=a(C.samples[0].pts,oe)-oe,Fe=De/T.inputTimeScale;ne+=Math.max(0,Fe),se+=Math.max(0,-Fe)}if(Re){if(C.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),I=this.generateIS(C,T,y)),M=this.remuxAudio(C,ne,this.isAudioContiguous,b,ge||Le||F===L.PlaylistLevelType.AUDIO?se:void 0),Le){var Ce=M?M.endPTS-M.startPTS:0;T.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),I=this.generateIS(C,T,y)),_=this.remuxVideo(T,se,he,Ce)}}else Le&&(_=this.remuxVideo(T,se,he,0));_&&(_.firstKeyFrame=re,_.independent=re!==-1)}}return this.ISGenerated&&(d.samples.length&&(H=this.remuxID3(d,y)),S.samples.length&&(g=this.remuxText(S,y))),{audio:M,video:_,initSegment:I,independent:$,text:g,id3:H}},R.generateIS=function(C,T,d){var S=C.samples,y=T.samples,b=this.typeSupported,B={},F=!Object(X.isFiniteNumber)(this._initPTS),_="audio/mp4",M,I,g;if(F&&(M=I=Infinity),C.config&&S.length&&(C.timescale=C.samplerate,C.isAAC||(b.mpeg?(_="audio/mpeg",C.codec=""):b.mp3&&(C.codec="mp3")),B.audio={id:"audio",container:_,codec:C.codec,initSegment:!C.isAAC&&b.mpeg?new Uint8Array(0):U.default.initSegment([C]),metadata:{channelCount:C.channelCount}},F&&(g=C.inputTimeScale,M=I=S[0].pts-Math.round(g*d))),T.sps&&T.pps&&y.length&&(T.timescale=T.inputTimeScale,B.video={id:"main",container:"video/mp4",codec:T.codec,initSegment:U.default.initSegment([T]),metadata:{width:T.width,height:T.height}},F)){g=T.inputTimeScale;var H=this.getVideoStartPts(y),$=Math.round(g*d);I=Math.min(I,a(y[0].dts,H)-$),M=Math.min(M,H-$)}if(Object.keys(B).length)return this.ISGenerated=!0,F&&(this._initPTS=M,this._initDTS=I),{tracks:B,initPTS:M,timescale:g}},R.remuxVideo=function(C,T,d,S){var y=C.inputTimeScale,b=C.samples,B=[],F=b.length,_=this._initPTS,M=this.nextAvcDts,I=8,g,H,$,ne=Number.POSITIVE_INFINITY,se=Number.NEGATIVE_INFINITY,Oe=0,ge=!1;if(!d||M===null){var Te=T*y,Re=b[0].pts-a(b[0].dts,b[0].pts);M=Te-Re}for(var Le=0;Lece.pts){var he=9e4*.2;Oe=Math.max(Math.min(Oe,ce.pts-ce.dts),-1*he)}ce.dts0?Le-1:Le].dts&&(ge=!0)}ge&&b.sort(function(yt,ct){var ft=yt.dts-ct.dts,Ot=yt.pts-ct.pts;return ft||Ot}),H=b[0].dts,$=b[b.length-1].dts;var re=Math.round(($-H)/(F-1));if(Oe<0){if(Oere,Ne=Fe<-1;if(Ce||Ne){Ce?r.logger.warn("AVC: "+Object(v.toMsFromMpegTsClock)(Fe,!0)+" ms ("+Fe+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(v.toMsFromMpegTsClock)(-Fe,!0)+" ms ("+Fe+"dts) overlapping between fragments detected"),H=M;var Be=b[0].pts-Fe;b[0].dts=H,b[0].pts=Be,r.logger.log("Video: First PTS/DTS adjusted: "+Object(v.toMsFromMpegTsClock)(Be,!0)+"/"+Object(v.toMsFromMpegTsClock)(H,!0)+", delta: "+Object(v.toMsFromMpegTsClock)(Fe,!0)+" ms")}}o&&(H=Math.max(0,H));for(var le=0,ve=0,Se=0;Se0?Ue-1:Ue].dts;if(ue.stretchShortVideoTrack&&this.nextAudioPts!==null){var me=Math.floor(ue.maxBufferHole*y),xe=(S?ne+S*y:this.nextAudioPts)-dt.pts;xe>me?(g=xe-de,g<0&&(g=de),r.logger.log("[mp4-remuxer]: It is approximately "+xe/90+" ms to the next segment; using duration "+g/90+" ms for the last video frame.")):g=de}else g=de}var Pe=Math.round(dt.pts-dt.dts);B.push(new E(dt.key,g,je,Pe))}if(B.length&&f&&f<70){var He=B[0].flags;He.dependsOn=2,He.isNonSync=0}console.assert(g!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=M=$+g,this.isVideoContiguous=!0;var ze=U.default.moof(C.sequenceNumber++,H,m({},C,{samples:B})),ht="video",ot={data1:ze,data2:qe,startPTS:ne/y,endPTS:(se+g)/y,startDTS:H/y,endDTS:M/y,type:ht,hasAudio:!1,hasVideo:!0,nb:B.length,dropped:C.dropped};return C.samples=[],C.dropped=0,console.assert(qe.length,"MDAT length must not be zero"),ot},R.remuxAudio=function(C,T,d,S,y){var b=C.inputTimeScale,B=C.samplerate?C.samplerate:b,F=b/B,_=C.isAAC?h:u,M=_*F,I=this._initPTS,g=!C.isAAC&&this.typeSupported.mpeg,H=[],$=C.samples,ne=g?0:8,se=this.nextAudioPts||-1,Oe=T*b;if(this.isAudioContiguous=d=d||$.length&&se>0&&(S&&Math.abs(Oe-se)<9e3||Math.abs(a($[0].pts-I,Oe)-se)<20*M),$.forEach(function(we){we.pts=a(we.pts-I,Oe)}),!d||se<0){if($=$.filter(function(we){return we.pts>=0}),!$.length)return;y===0?se=0:S?se=Math.max(0,Oe):se=$[0].pts}if(C.isAAC)for(var ge=y!==void 0,Te=this.config.maxAudioFramesDrift,Re=0,Le=se;Re<$.length;Re++){var ce=$[Re],he=ce.pts,re=he-Le,fe=Math.abs(1e3*re/b);if(re<=-Te*M&&ge)Re===0&&(r.logger.warn("Audio frame @ "+(he/b).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*re/b)+" ms."),this.nextAudioPts=se=Le=he);else if(re>=Te*M&&fe0){ve+=ne;try{le=new Uint8Array(ve)}catch(we){this.observer.emit(K.Events.ERROR,K.Events.ERROR,{type:G.ErrorTypes.MUX_ERROR,details:G.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!g){var qe=new DataView(le.buffer);qe.setUint32(0,ve),le.set(U.default.types.mdat,4)}}else return;le.set(Qe,ne);var at=Qe.byteLength;ne+=at,H.push(new E(!0,_,at,0)),Be=Je}var Ue=H.length;if(!Ue)return;var dt=H[H.length-1];this.nextAudioPts=se=Be+F*dt.duration;var lt=g?new Uint8Array(0):U.default.moof(C.sequenceNumber++,Ne/F,m({},C,{samples:H}));C.samples=[];var je=Ne/b,Ge=se/b,Ae="audio",_e={data1:lt,data2:le,startPTS:je,endPTS:Ge,startDTS:je,endDTS:Ge,type:Ae,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(le.length,"MDAT length must not be zero"),_e},R.remuxEmptyAudio=function(C,T,d,S){var y=C.inputTimeScale,b=C.samplerate?C.samplerate:y,B=y/b,F=this.nextAudioPts,_=(F!==null?F:S.startDTS*y)+this._initDTS,M=S.endDTS*y+this._initDTS,I=B*h,g=Math.ceil((M-_)/I),H=j.default.getSilentFrame(C.manifestCodec||C.codec,C.channelCount);if(r.logger.warn("[mp4-remuxer]: remux empty Audio"),!H){r.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var $=[],ne=0;ne4294967296;)D+=A;return D}function O(D){for(var R=0;R0?this.lastEndDTS=C:(K.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var T=!!D.audio,d=!!D.video,S="";T&&(S+="audio"),d&&(S+="video");var y={data1:E,startPTS:A,startDTS:A,endPTS:C,endDTS:C,type:S,hasAudio:T,hasVideo:d,nb:1,dropped:0};return O.audio=y.type==="audio"?y:void 0,O.video=y.type!=="audio"?y:void 0,O.text=l,O.id3=f,O.initSegment=w,O},v}(),r=function(m,p,h){return Object(j.getStartDTS)(m,p)-h};function L(v,m){var p=v==null?void 0:v.codec;return p&&p.length>4?p:p==="hvc1"?"hvc1.1.c.L120.90":p==="av01"?"av01.0.04M.08":p==="avc1"||m===U.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}J.default=G},"./src/task-loop.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"default",function(){return X});var X=function(){function j(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var U=j.prototype;return U.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},U.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},U.onHandlerDestroyed=function(){},U.hasInterval=function(){return!!this._tickInterval},U.hasNextTick=function(){return!!this._tickTimer},U.setInterval=function(G){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,G),!0)},U.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},U.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},U.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},U.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},U.doTick=function(){},j}()},"./src/types/cmcd.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"CMCDVersion",function(){return X}),P.d(J,"CMCDObjectType",function(){return j}),P.d(J,"CMCDStreamingFormat",function(){return U}),P.d(J,"CMCDStreamType",function(){return K});var X=1,j;(function(G){G.MANIFEST="m",G.AUDIO="a",G.VIDEO="v",G.MUXED="av",G.INIT="i",G.CAPTION="c",G.TIMED_TEXT="tt",G.KEY="k",G.OTHER="o"})(j||(j={}));var U;(function(G){G.DASH="d",G.HLS="h",G.SMOOTH="s",G.OTHER="o"})(U||(U={}));var K;(function(G){G.VOD="v",G.LIVE="l"})(K||(K={}))},"./src/types/level.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"HlsSkip",function(){return U}),P.d(J,"getSkipValue",function(){return K}),P.d(J,"HlsUrlParameters",function(){return G}),P.d(J,"Level",function(){return r});function X(L,v){for(var m=0;mNumber.MAX_SAFE_INTEGER?Infinity:v},G.hexadecimalInteger=function(L){if(this[L]){var v=(this[L]||"0x").slice(2);v=(v.length&1?"0":"")+v;for(var m=new Uint8Array(v.length/2),p=0;pNumber.MAX_SAFE_INTEGER?Infinity:v},G.decimalFloatingPoint=function(L){return parseFloat(this[L])},G.optionalFloat=function(L,v){var m=this[L];return m?parseFloat(m):v},G.enumeratedString=function(L){return this[L]},G.bool=function(L){return this[L]==="YES"},G.decimalResolution=function(L){var v=X.exec(this[L]);return v===null?void 0:{width:parseInt(v[1],10),height:parseInt(v[2],10)}},K.parseAttrList=function(L){var v,m={},p='"';for(j.lastIndex=0;(v=j.exec(L))!==null;){var h=v[2];h.indexOf(p)===0&&h.lastIndexOf(p)===h.length-1&&(h=h.slice(1,-1)),m[v[1]]=h}return m},K}()},"./src/utils/binary-search.ts":function(ie,J,P){"use strict";P.r(J);var X={search:function(U,K){for(var G=0,r=U.length-1,L=null,v=null;G<=r;){L=(G+r)/2|0,v=U[L];var m=K(v);if(m>0)G=L+1;else if(m<0)r=L-1;else return v}return null}};J.default=X},"./src/utils/buffer-helper.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"BufferHelper",function(){return U});var X=P("./src/utils/logger.ts"),j={length:0,start:function(){return 0},end:function(){return 0}},U=function(){function K(){}return K.isBuffered=function(r,L){try{if(r){for(var v=K.getBuffered(r),m=0;m=v.start(m)&&L<=v.end(m))return!0}}catch(p){}return!1},K.bufferInfo=function(r,L,v){try{if(r){var m=K.getBuffered(r),p=[],h;for(h=0;hu&&(m[h-1].end=r[p].end):m.push(r[p])}else m.push(r[p])}else m=r;for(var f=0,l,o=L,s=L,a=0;a=O&&L=d&&X.logger.log(this.time+" ["+d+"] "+S)},A}(),f=function(C){for(var T=[],d=0;dG&&(this.logger.log(h.DEBUG,"Too large cursor position "+this.pos),this.pos=G)},C.moveCursor=function(d){var S=this.pos+d;if(d>1)for(var y=this.pos+1;y=144&&this.backSpace();var S=U(d);if(this.pos>=G){this.logger.log(h.ERROR,"Cannot insert "+d.toString(16)+" ("+S+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(S,this.currPenState),this.moveCursor(1)},C.clearFromPos=function(d){var S;for(S=d;S0&&(d?y="["+S.join(" | ")+"]":y=S.join(` +`)),y},C.getTextAndFormat=function(){return this.rows},A}(),O=function(){function A(T,d,S){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=T,this.outputFilter=d,this.mode=null,this.verbose=0,this.displayedMemory=new a(S),this.nonDisplayedMemory=new a(S),this.lastOutputScreen=new a(S),this.currRollUpRow=this.displayedMemory.rows[K-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=S}var C=A.prototype;return C.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[K-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},C.getHandler=function(){return this.outputFilter},C.setHandler=function(d){this.outputFilter=d},C.setPAC=function(d){this.writeScreen.setPAC(d)},C.setBkgData=function(d){this.writeScreen.setBkgData(d)},C.setMode=function(d){if(d===this.mode)return;this.mode=d,this.logger.log(h.INFO,"MODE="+d),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=d},C.insertChars=function(d){for(var S=0;S=46,S.italics)S.foreground="white";else{var y=Math.floor(d/2)-16,b=["white","green","blue","cyan","red","yellow","magenta"];S.foreground=b[y]}this.logger.log(h.INFO,"MIDROW: "+JSON.stringify(S)),this.writeScreen.setPen(S)},C.outputDataUpdate=function(d){d===void 0&&(d=!1);var S=this.logger.time;if(S===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=S:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,S,this.lastOutputScreen),d&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:S),this.lastOutputScreen.copy(this.displayedMemory))},C.cueSplitAtTime=function(d){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,d,this.displayedMemory),this.cueStartTime=d))},A}(),E=function(){function A(T,d,S){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var y=new u;this.channels=[null,new O(T,d,y),new O(T+1,S,y)],this.cmdHistory=R(),this.logger=y}var C=A.prototype;return C.getHandler=function(d){return this.channels[d].getHandler()},C.setHandler=function(d,S){this.channels[d].setHandler(S)},C.addData=function(d,S){var y,b,B,F=!1;this.logger.time=d;for(var _=0;_ ("+f([b,B])+")"),y=this.parseCmd(b,B),y||(y=this.parseMidrow(b,B)),y||(y=this.parsePAC(b,B)),y||(y=this.parseBackgroundAttributes(b,B)),!y&&(F=this.parseChars(b,B),F)){var M=this.currentChannel;if(M&&M>0){var I=this.channels[M];I.insertChars(F)}else this.logger.log(h.WARNING,"No channel found yet. TEXT-MODE?")}!y&&!F&&this.logger.log(h.WARNING,"Couldn't parse cleaned data "+f([b,B])+" orig: "+f([S[_],S[_+1]]))}},C.parseCmd=function(d,S){var y=this.cmdHistory,b=(d===20||d===28||d===21||d===29)&&S>=32&&S<=47,B=(d===23||d===31)&&S>=33&&S<=35;if(!(b||B))return!1;if(D(d,S,y))return w(null,null,y),this.logger.log(h.DEBUG,"Repeated command ("+f([d,S])+") is dropped"),!0;var F=d===20||d===21||d===23?1:2,_=this.channels[F];return d===20||d===21||d===28||d===29?S===32?_.ccRCL():S===33?_.ccBS():S===34?_.ccAOF():S===35?_.ccAON():S===36?_.ccDER():S===37?_.ccRU(2):S===38?_.ccRU(3):S===39?_.ccRU(4):S===40?_.ccFON():S===41?_.ccRDC():S===42?_.ccTR():S===43?_.ccRTD():S===44?_.ccEDM():S===45?_.ccCR():S===46?_.ccENM():S===47&&_.ccEOC():_.ccTO(S-32),w(d,S,y),this.currentChannel=F,!0},C.parseMidrow=function(d,S){var y=0;if((d===17||d===25)&&S>=32&&S<=47){if(d===17?y=1:y=2,y!==this.currentChannel)return this.logger.log(h.ERROR,"Mismatch channel in midrow parsing"),!1;var b=this.channels[y];return b?(b.ccMIDROW(S),this.logger.log(h.DEBUG,"MIDROW ("+f([d,S])+")"),!0):!1}return!1},C.parsePAC=function(d,S){var y,b=this.cmdHistory,B=(d>=17&&d<=23||d>=25&&d<=31)&&S>=64&&S<=127,F=(d===16||d===24)&&S>=64&&S<=95;if(!(B||F))return!1;if(D(d,S,b))return w(null,null,b),!0;var _=d<=23?1:2;S>=64&&S<=95?y=_===1?r[d]:v[d]:y=_===1?L[d]:m[d];var M=this.channels[_];return M?(M.setPAC(this.interpretPAC(y,S)),w(d,S,b),this.currentChannel=_,!0):!1},C.interpretPAC=function(d,S){var y,b={color:null,italics:!1,indent:null,underline:!1,row:d};return S>95?y=S-96:y=S-64,b.underline=(y&1)===1,y<=13?b.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(y/2)]:y<=15?(b.italics=!0,b.color="white"):b.indent=Math.floor((y-16)/2)*4,b},C.parseChars=function(d,S){var y,b=null,B=null;if(d>=25?(y=2,B=d-8):(y=1,B=d),B>=17&&B<=19){var F;B===17?F=S+80:B===18?F=S+112:F=S+144,this.logger.log(h.INFO,"Special char '"+U(F)+"' in channel "+y),b=[F]}else d>=32&&d<=127&&(b=S===0?[d]:[d,S]);if(b){var _=f(b);this.logger.log(h.DEBUG,"Char codes = "+_.join(",")),w(d,S,this.cmdHistory)}return b},C.parseBackgroundAttributes=function(d,S){var y=(d===16||d===24)&&S>=32&&S<=47,b=(d===23||d===31)&&S>=45&&S<=47;if(!(y||b))return!1;var B,F={};d===16||d===24?(B=Math.floor((S-32)/2),F.background=p[B],S%2===1&&(F.background=F.background+"_semi")):S===45?F.background="transparent":(F.foreground="black",S===47&&(F.underline=!0));var _=d<=23?1:2,M=this.channels[_];return M.setBkgData(F),w(d,S,this.cmdHistory),!0},C.reset=function(){for(var d=0;d=16?o--:o++;var w=Object(X.fixLineBreaks)(s.trim()),D=Object(j.generateCueId)(v,m,w);(!L||!L.cues||!L.cues.getCueById(D))&&(f=new a(v,m,w),f.id=D,f.line=O+1,f.align="left",f.position=10+Math.min(80,Math.floor(o*8/32)*10),h.push(f))}return L&&h.length&&(h.sort(function(R,A){return R.line==="auto"||A.line==="auto"?0:R.line>8&&A.line>8?A.line-R.line:R.line-A.line}),h.forEach(function(R){return Object(U.addCueToTrack)(L,R)})),h}};J.default=G},"./src/utils/discontinuities.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"findFirstFragWithCC",function(){return K}),P.d(J,"shouldAlignOnDiscontinuities",function(){return G}),P.d(J,"findDiscontinuousReferenceFrag",function(){return r}),P.d(J,"adjustSlidingStart",function(){return v}),P.d(J,"alignStream",function(){return m}),P.d(J,"alignPDT",function(){return h}),P.d(J,"alignFragmentByPDTDelta",function(){return u}),P.d(J,"alignMediaPlaylistByPDT",function(){return f});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/logger.ts"),U=P("./src/controller/level-helper.ts");function K(l,o){for(var s=null,a=0,O=l.length;as.startCC||l&&l.cc=this.minWeight_},K.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},K.destroy=function(){},U}();J.default=j},"./src/utils/ewma.ts":function(ie,J,P){"use strict";P.r(J);var X=function(){function j(K,G,r){G===void 0&&(G=0),r===void 0&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=K,this.alpha_=K?Math.exp(Math.log(.5)/K):0,this.estimate_=G,this.totalWeight_=r}var U=j.prototype;return U.sample=function(G,r){var L=Math.pow(this.alpha_,G);this.estimate_=r*(1-L)+L*this.estimate_,this.totalWeight_+=G},U.getTotalWeight=function(){return this.totalWeight_},U.getEstimate=function(){if(this.alpha_){var G=1-Math.pow(this.alpha_,this.totalWeight_);if(G)return this.estimate_/G}return this.estimate_},j}();J.default=X},"./src/utils/fetch-loader.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"fetchSupported",function(){return u});var X=P("./src/polyfills/number.ts"),j=P("./src/loader/load-stats.ts"),U=P("./src/demux/chunk-cache.ts");function K(a,O){a.prototype=Object.create(O.prototype),a.prototype.constructor=a,m(a,O)}function G(a){var O=typeof Map=="function"?new Map:void 0;return G=function(w){if(w===null||!v(w))return w;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(typeof O!="undefined"){if(O.has(w))return O.get(w);O.set(w,D)}function D(){return r(w,arguments,p(this).constructor)}return D.prototype=Object.create(w.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),m(D,w)},G(a)}function r(a,O,E){return L()?r=Reflect.construct:r=function(D,R,A){var C=[null];C.push.apply(C,R);var T=Function.bind.apply(D,C),d=new T;return A&&m(d,A.prototype),d},r.apply(null,arguments)}function L(){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(a){return!1}}function v(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function m(a,O){return m=Object.setPrototypeOf||function(w,D){return w.__proto__=D,w},m(a,O)}function p(a){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},p(a)}function h(){return h=Object.assign||function(a){for(var O=1;O=A&&C(D,R,T.flush(),w)):C(D,R,B,w),y()}).catch(function(){return Promise.reject()})};return S()},a}();function l(a,O){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:O,headers:new self.Headers(h({},a.headers))};return a.rangeEnd&&E.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),E}function o(a,O){return new self.Request(a.url,O)}var s=function(a){K(O,a);function O(E,w,D){var R;return R=a.call(this,E)||this,R.code=void 0,R.details=void 0,R.code=w,R.details=D,R}return O}(G(Error));J.default=f},"./src/utils/imsc1-ttml-parser.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"IMSC1_CODEC",function(){return v}),P.d(J,"parseIMSC1",function(){return u});var X=P("./src/utils/mp4-tools.ts"),j=P("./src/utils/vttparser.ts"),U=P("./src/utils/vttcue.ts"),K=P("./src/demux/id3.ts"),G=P("./src/utils/timescale-conversion.ts"),r=P("./src/utils/webvtt-parser.ts");function L(){return L=Object.assign||function(A){for(var C=1;C"):X}function G(v){for(var m=arguments.length,p=new Array(m>1?m-1:0),h=1;h>24,O[E+1]=w>>16&255,O[E+2]=w>>8&255,O[E+3]=w&255}function m(O,E){var w=[];if(!E.length)return w;var D,R,A;"data"in O?(D=O.data,R=O.start,A=O.end):(D=O,R=0,A=D.byteLength);for(var C=R;C1?C+T:A;if(d===E[0])if(E.length===1)w.push({data:D,start:C+8,end:S});else{var y=m({data:D,start:C+8,end:S},E.slice(1));y.length&&K.apply(w,y)}C=S}return w}function p(O){var E=m(O,["moov"]),w=E[0],D=w?w.end:null,R=m(O,["sidx"]);if(!R||!R[0])return null;var A=[],C=R[0],T=C.data[0],d=T===0?8:16,S=L(C,d);d+=4;var y=0,b=0;T===0?d+=8:d+=16,d+=2;var B=C.end+b,F=r(C,d);d+=2;for(var _=0;_>>31;if(H===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var $=L(C,M);M+=4,A.push({referenceSize:g,subsegmentDuration:$,info:{duration:$/S,start:B,end:B+g-1}}),B+=g,M+=4,d=M}return{earliestPresentationTime:y,timescale:S,version:T,referencesCount:F,references:A,moovEndOffset:D}}function h(O){for(var E=[],w=m(O,["moov","trak"]),D=0;DG)&&(this.startTime=G),this.endTime=r,this.screen=L,this.timelineController.createCaptionsTrack(this.trackName)},U.reset=function(){this.cueRanges=[]},j}()},"./src/utils/texttrack-utils.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"sendAddTrackEvent",function(){return j}),P.d(J,"addCueToTrack",function(){return U}),P.d(J,"clearCurrentCues",function(){return K}),P.d(J,"removeCuesInRange",function(){return G}),P.d(J,"getCuesInRange",function(){return L});var X=P("./src/utils/logger.ts");function j(v,m){var p;try{p=new Event("addtrack")}catch(h){p=document.createEvent("Event"),p.initEvent("addtrack",!1,!1)}p.track=v,m.dispatchEvent(p)}function U(v,m){var p=v.mode;if(p==="disabled"&&(v.mode="hidden"),v.cues&&!v.cues.getCueById(m.id))try{if(v.addCue(m),!v.cues.getCueById(m.id))throw new Error("addCue is failed for: "+m)}catch(u){X.logger.debug("[texttrack-utils]: "+u);var h=new self.TextTrackCue(m.startTime,m.endTime,m.text);h.id=m.id,v.addCue(h)}p==="disabled"&&(v.mode=p)}function K(v){var m=v.mode;if(m==="disabled"&&(v.mode="hidden"),v.cues)for(var p=v.cues.length;p--;)v.removeCue(v.cues[p]);m==="disabled"&&(v.mode=m)}function G(v,m,p){var h=v.mode;if(h==="disabled"&&(v.mode="hidden"),v.cues&&v.cues.length>0)for(var u=L(v.cues,m,p),f=0;fv[p].endTime)return-1;for(var h=0,u=p;h<=u;){var f=Math.floor((u+h)/2);if(mv[f].startTime&&h-1)for(var f=u,l=v.length;f=m&&o.endTime<=p)h.push(o);else if(o.startTime>p)return h}return h}},"./src/utils/time-ranges.ts":function(ie,J,P){"use strict";P.r(J);var X={toString:function(U){for(var K="",G=U.length,r=0;r1?m-1:0),h=1;h100)throw new Error("Position must be between 0 and 100.");A=y,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",r({},u,{get:function(){return C},set:function(y){var b=G(y);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");C=b,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",r({},u,{get:function(){return T},set:function(y){if(y<0||y>100)throw new Error("Size must be between 0 and 100.");T=y,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",r({},u,{get:function(){return d},set:function(y){var b=G(y);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");d=b,this.hasBeenReset=!0}})),h.displayState=void 0}return L.prototype.getCueAsHTML=function(){var v=self.WebVTT;return v.convertCueToDOMTree(self,this.text)},L}()},"./src/utils/vttparser.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"parseTimeStamp",function(){return U}),P.d(J,"fixLineBreaks",function(){return m}),P.d(J,"VTTParser",function(){return p});var X=P("./src/utils/vttcue.ts"),j=function(){function h(){}var u=h.prototype;return u.decode=function(l,o){if(!l)return"";if(typeof l!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(l))},h}();function U(h){function u(l,o,s,a){return(l|0)*3600+(o|0)*60+(s|0)+parseFloat(a||0)}var f=h.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return f?parseFloat(f[2])>59?u(f[2],f[3],0,f[4]):u(f[1],f[2],f[3],f[4]):null}var K=function(){function h(){this.values=Object.create(null)}var u=h.prototype;return u.set=function(l,o){!this.get(l)&&o!==""&&(this.values[l]=o)},u.get=function(l,o,s){return s?this.has(l)?this.values[l]:o[s]:this.has(l)?this.values[l]:o},u.has=function(l){return l in this.values},u.alt=function(l,o,s){for(var a=0;a=0&&s<=100)return this.set(l,s),!0}return!1},h}();function G(h,u,f,l){var o=l?h.split(l):[h];for(var s in o){if(typeof o[s]!="string")continue;var a=o[s].split(f);if(a.length!==2)continue;var O=a[0],E=a[1];u(O,E)}}var r=new X.default(0,0,""),L=r.align==="middle"?"middle":"center";function v(h,u,f){var l=h;function o(){var O=U(h);if(O===null)throw new Error("Malformed timestamp: "+l);return h=h.replace(/^[^\sa-zA-Z-]+/,""),O}function s(O,E){var w=new K;G(O,function(A,C){var T;switch(A){case"region":for(var d=f.length-1;d>=0;d--)if(f[d].id===C){w.set(A,f[d].region);break}break;case"vertical":w.alt(A,C,["rl","lr"]);break;case"line":T=C.split(","),w.integer(A,T[0]),w.percent(A,T[0])&&w.set("snapToLines",!1),w.alt(A,T[0],["auto"]),T.length===2&&w.alt("lineAlign",T[1],["start",L,"end"]);break;case"position":T=C.split(","),w.percent(A,T[0]),T.length===2&&w.alt("positionAlign",T[1],["start",L,"end","line-left","line-right","auto"]);break;case"size":w.percent(A,C);break;case"align":w.alt(A,C,["start",L,"end","left","right"]);break}},/:/,/\s/),E.region=w.get("region",null),E.vertical=w.get("vertical","");var D=w.get("line","auto");D==="auto"&&r.line===-1&&(D=-1),E.line=D,E.lineAlign=w.get("lineAlign","start"),E.snapToLines=w.get("snapToLines",!0),E.size=w.get("size",100),E.align=w.get("align",L);var R=w.get("position","auto");R==="auto"&&r.position===50&&(R=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=R}function a(){h=h.replace(/^\s+/,"")}if(a(),u.startTime=o(),a(),h.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+l);h=h.substr(3),a(),u.endTime=o(),a(),s(h,u)}function m(h){return h.replace(//gi,` `)}var p=function(){function h(){this.state="INITIAL",this.buffer="",this.decoder=new j,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var u=h.prototype;return u.parse=function(l){var o=this;l&&(o.buffer+=o.decoder.decode(l,{stream:!0}));function s(){var R=o.buffer,A=0;for(R=m(R);A")===-1){o.cue.id=O;continue}case"CUE":if(!o.cue){o.state="BADCUE";continue}try{v(O,o.cue,o.regionList)}catch(R){o.cue=null,o.state="BADCUE";continue}o.state="CUETEXT";continue;case"CUETEXT":{var D=O.indexOf("-->")!==-1;if(!O||D&&(w=!0)){o.oncue&&o.cue&&o.oncue(o.cue),o.cue=null,o.state="ID";continue}if(o.cue===null)continue;o.cue.text&&(o.cue.text+=` @@ -440,5 +440,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,l.parse()),l.state==="INITIAL"||l.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(o){l.onparsingerror&&l.onparsingerror(o)}return l.onflush&&l.onflush(),this},h}()},"./src/utils/webvtt-parser.ts":function(ie,J,P){"use strict";P.r(J),P.d(J,"generateCueId",function(){return p}),P.d(J,"parseWebVTT",function(){return u});var X=P("./src/polyfills/number.ts"),j=P("./src/utils/vttparser.ts"),U=P("./src/demux/id3.ts"),K=P("./src/utils/timescale-conversion.ts"),G=P("./src/remux/mp4-remuxer.ts"),r=/\r\n|\n\r|\n|\r/g,L=function(l,o,s){return s===void 0&&(s=0),l.substr(s,o.length)===o},v=function(l){var o=parseInt(l.substr(-3)),s=parseInt(l.substr(-6,2)),a=parseInt(l.substr(-9,2)),O=l.length>9?parseInt(l.substr(0,l.indexOf(":"))):0;if(!Object(X.isFiniteNumber)(o)||!Object(X.isFiniteNumber)(s)||!Object(X.isFiniteNumber)(a)||!Object(X.isFiniteNumber)(O))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+l);return o+=1e3*s,o+=60*1e3*a,o+=60*60*1e3*O,o},m=function(l){for(var o=5381,s=l.length;s;)o=o*33^l.charCodeAt(--s);return(o>>>0).toString()};function p(f,l,o){return m(f.toString())+m(l.toString())+m(o)}var h=function(l,o,s){var a=l[o],O=l[a.prevCC];if(!O||!O.new&&a.new){l.ccOffset=l.presentationOffset=a.start,a.new=!1;return}for(;(E=O)!==null&&E!==void 0&&E.new;){var E;l.ccOffset+=a.start-O.start,a.new=!1,a=O,O=l[a.prevCC]}l.presentationOffset=s};function u(f,l,o,s,a,O,E,w){var D=new j.VTTParser,R=Object(U.utf8ArrayToStr)(new Uint8Array(f)).trim().replace(r,` `).split(` -`),A=[],C=Object(K.toMpegTsClockFromTimescale)(l,o),T="00:00.000",c=0,S=0,y,b=!0,B=!1;D.oncue=function(F){var _=s[a],M=s.ccOffset,I=(c-C)/9e4;if(_!=null&&_.new&&(S!==void 0?M=s.ccOffset=_.start:h(s,a,I)),I&&(M=I-s.presentationOffset),B){var g=F.endTime-F.startTime,H=Object(G.normalizePts)((F.startTime+M-S)*9e4,O*9e4)/9e4;F.startTime=H,F.endTime=H+g}var $=F.text.trim();F.text=decodeURIComponent(encodeURIComponent($)),F.id||(F.id=p(F.startTime,F.endTime,$)),F.endTime>0&&A.push(F)},D.onparsingerror=function(F){y=F},D.onflush=function(){if(y){w(y);return}E(A)},R.forEach(function(F){if(b)if(L(F,"X-TIMESTAMP-MAP=")){b=!1,B=!0,F.substr(16).split(",").forEach(function(_){L(_,"LOCAL:")?T=_.substr(6):L(_,"MPEGTS:")&&(c=parseInt(_.substr(7)))});try{S=v(T)/1e3}catch(_){B=!1,y=_}return}else F===""&&(b=!1);D.parse(F+` -`)}),D.flush()}},"./src/utils/xhr-loader.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/utils/logger.ts"),j=P("./src/loader/load-stats.ts"),U=/^age:\s*[\d.]+\s*$/m,K=function(){function G(L){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=L?L.xhrSetup:null,this.stats=new j.LoadStats,this.retryDelay=0}var r=G.prototype;return r.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},r.abortInternal=function(){var v=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),v&&(v.onreadystatechange=null,v.onprogress=null,v.readyState!==4&&(this.stats.aborted=!0,v.abort()))},r.abort=function(){var v;this.abortInternal(),(v=this.callbacks)!==null&&v!==void 0&&v.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},r.load=function(v,m,p){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=v,this.config=m,this.callbacks=p,this.retryDelay=m.retryDelay,this.loadInternal()},r.loadInternal=function(){var v=this.config,m=this.context;if(!v)return;var p=this.loader=new self.XMLHttpRequest,h=this.stats;h.loading.first=0,h.loaded=0;var u=this.xhrSetup;try{if(u)try{u(p,m.url)}catch(o){p.open("GET",m.url,!0),u(p,m.url)}p.readyState||p.open("GET",m.url,!0);var f=this.context.headers;if(f)for(var l in f)p.setRequestHeader(l,f[l])}catch(o){this.callbacks.onError({code:p.status,text:o.message},m,p);return}m.rangeEnd&&p.setRequestHeader("Range","bytes="+m.rangeStart+"-"+(m.rangeEnd-1)),p.onreadystatechange=this.readystatechange.bind(this),p.onprogress=this.loadprogress.bind(this),p.responseType=m.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),v.timeout),p.send()},r.readystatechange=function(){var v=this.context,m=this.loader,p=this.stats;if(!v||!m)return;var h=m.readyState,u=this.config;if(p.aborted)return;if(h>=2)if(self.clearTimeout(this.requestTimeout),p.loading.first===0&&(p.loading.first=Math.max(self.performance.now(),p.loading.start)),h===4){m.onreadystatechange=null,m.onprogress=null;var f=m.status;if(f>=200&&f<300){p.loading.end=Math.max(self.performance.now(),p.loading.first);var l,o;if(v.responseType==="arraybuffer"?(l=m.response,o=l.byteLength):(l=m.responseText,o=l.length),p.loaded=p.total=o,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(p,v,l,m),!this.callbacks)return;var a={url:m.responseURL,data:l};this.callbacks.onSuccess(a,p,v,m)}else p.retry>=u.maxRetry||f>=400&&f<499?(X.logger.error(f+" while loading "+v.url),this.callbacks.onError({code:f,text:m.statusText},v,m)):(X.logger.warn(f+" while loading "+v.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,u.maxRetryDelay),p.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),u.timeout)},r.loadtimeout=function(){X.logger.warn("timeout while loading "+this.context.url);var v=this.callbacks;v&&(this.abortInternal(),v.onTimeout(this.stats,this.context,this.loader))},r.loadprogress=function(v){var m=this.stats;m.loaded=v.loaded,v.lengthComputable&&(m.total=v.total)},r.getCacheAge=function(){var v=null;if(this.loader&&U.test(this.loader.getAllResponseHeaders())){var m=this.loader.getResponseHeader("age");v=m?parseFloat(m):null}return v},G}();J.default=K}}).default})},vHTk:function(rt,be,Z){rt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wzkS:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return j}),Z.d(be,"b",function(){return U}),Z.d(be,"d",function(){return K}),Z.d(be,"a",function(){return r}),Z.d(be,"e",function(){return L});var ie=Z("9og8"),J=Z("WmNS"),P=Z.n(J),X=Z("ErOA");function j(v){return Object(X.c)("libraries/".concat(v,".json"))}function U(){return Object(X.c)("library_tags.json")}function K(v){return G.apply(this,arguments)}function G(){return G=Object(ie.a)(P.a.mark(function v(m){var p;return P.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Object(X.b)("attachments/".concat(m,".json"));case 2:return p=u.sent,u.abrupt("return",p.status===0);case 4:case"end":return u.stop()}},v)})),G.apply(this,arguments)}function r(v){return Object(X.f)("libraries.json",v)}function L(v,m){return Object(X.g)("libraries/".concat(v,".json"),m)}},y5JW:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return f}),Z.d(be,"a",function(){return l});var ie=Z("DZo9"),J=Z("8z0m"),P=Z("+L6B"),X=Z("2/Rp"),j=Z("9og8"),U=Z("miYZ"),K=Z("tsqr"),G=Z("k1fw"),r=Z("oBTY"),L=Z("WmNS"),v=Z.n(L),m=Z("q1tI"),p=Z.n(m),h=Z("m3rI"),u=Z("wzkS"),f="\u3000\u3000";function l(o){var s=["Bytes","KB","MB","GB","TB"];if(o==0)return"0 Byte";var a=parseInt(""+Math.floor(Math.log(o)/Math.log(1024)),10);return(o/Math.pow(1024,a)).toFixed(1)+" "+s[a]}be.b=function(o){var s=o.value,a=s===void 0?[]:s,O=o.action,E=o.onChange,w=o.className,D=o.maxSize,R=D===void 0?150:D,A=o.title,C=A===void 0?"\u6587\u4EF6\u4E0A\u4F20":A,T=o.accept,c=T===void 0?null:T,S={multiple:!1,fileList:a,accept:c,withCredentials:!0,beforeUpload:function(B){var F=B.size/1024/1024;return!0},action:"".concat(h.a.API_SERVER,"/api/attachments.json"),onChange:function(B){var F,_,M=Object(r.a)(B.fileList);if(M=M.map(function(H){return H.name.indexOf(f)===-1&&(H.name="".concat(H.name).concat(f).concat(l(H.size))),Object(G.a)({},H)}),B.file.status==="done"&&((F=B.file)===null||F===void 0||((_=F.response)===null||_===void 0)?void 0:_.status)===-1){var I,g;K.b.error((I=B.file)===null||I===void 0||((g=I.response)===null||g===void 0)?void 0:g.message),E([]);return}E(M)},onRemove:function(){var b=Object(j.a)(v.a.mark(function F(_){var M,I,g;return v.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:if(M=_.size/1024/1024,!(_.status==="uploading")){$.next=3;break}return $.abrupt("return",!0);case 3:if(M0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:a.length>0,ghost:!0},C),p.a.createElement("span",{onClick:y,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",R,"M)"," ")))}},zgC5:function(rt,be,Z){rt.exports={flex_box_center:"flex_box_center___BgH5i",flex_space_between:"flex_space_between___wIrN2",flex_box_vertical_center:"flex_box_vertical_center___3s8_f",flex_box_center_end:"flex_box_center_end___25L_b",flex_box_column:"flex_box_column___3Ya3F",bg:"bg___OpMlc",flexRow:"flexRow___3MRDT",flexJustifyCenter:"flexJustifyCenter___2VqIU",flexAlignEnd:"flexAlignEnd___1zWKJ",flexAlignCenter:"flexAlignCenter___46F8K",flexColumn:"flexColumn___2WIH4",formWrap:"formWrap___1eB5i",titleWrap:"titleWrap___1Db7T",fieldWrap:"fieldWrap___2HdAq",mdWrap:"mdWrap___27bNI",titleWrapper:"titleWrapper___2YeUd",backgroundFa:"backgroundFa___2EWsW",button:"button___1PabV",searchMember:"searchMember___2aVSB"}}}]); +`),A=[],C=Object(K.toMpegTsClockFromTimescale)(l,o),T="00:00.000",d=0,S=0,y,b=!0,B=!1;D.oncue=function(F){var _=s[a],M=s.ccOffset,I=(d-C)/9e4;if(_!=null&&_.new&&(S!==void 0?M=s.ccOffset=_.start:h(s,a,I)),I&&(M=I-s.presentationOffset),B){var g=F.endTime-F.startTime,H=Object(G.normalizePts)((F.startTime+M-S)*9e4,O*9e4)/9e4;F.startTime=H,F.endTime=H+g}var $=F.text.trim();F.text=decodeURIComponent(encodeURIComponent($)),F.id||(F.id=p(F.startTime,F.endTime,$)),F.endTime>0&&A.push(F)},D.onparsingerror=function(F){y=F},D.onflush=function(){if(y){w(y);return}E(A)},R.forEach(function(F){if(b)if(L(F,"X-TIMESTAMP-MAP=")){b=!1,B=!0,F.substr(16).split(",").forEach(function(_){L(_,"LOCAL:")?T=_.substr(6):L(_,"MPEGTS:")&&(d=parseInt(_.substr(7)))});try{S=v(T)/1e3}catch(_){B=!1,y=_}return}else F===""&&(b=!1);D.parse(F+` +`)}),D.flush()}},"./src/utils/xhr-loader.ts":function(ie,J,P){"use strict";P.r(J);var X=P("./src/utils/logger.ts"),j=P("./src/loader/load-stats.ts"),U=/^age:\s*[\d.]+\s*$/m,K=function(){function G(L){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=L?L.xhrSetup:null,this.stats=new j.LoadStats,this.retryDelay=0}var r=G.prototype;return r.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},r.abortInternal=function(){var v=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),v&&(v.onreadystatechange=null,v.onprogress=null,v.readyState!==4&&(this.stats.aborted=!0,v.abort()))},r.abort=function(){var v;this.abortInternal(),(v=this.callbacks)!==null&&v!==void 0&&v.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},r.load=function(v,m,p){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=v,this.config=m,this.callbacks=p,this.retryDelay=m.retryDelay,this.loadInternal()},r.loadInternal=function(){var v=this.config,m=this.context;if(!v)return;var p=this.loader=new self.XMLHttpRequest,h=this.stats;h.loading.first=0,h.loaded=0;var u=this.xhrSetup;try{if(u)try{u(p,m.url)}catch(o){p.open("GET",m.url,!0),u(p,m.url)}p.readyState||p.open("GET",m.url,!0);var f=this.context.headers;if(f)for(var l in f)p.setRequestHeader(l,f[l])}catch(o){this.callbacks.onError({code:p.status,text:o.message},m,p);return}m.rangeEnd&&p.setRequestHeader("Range","bytes="+m.rangeStart+"-"+(m.rangeEnd-1)),p.onreadystatechange=this.readystatechange.bind(this),p.onprogress=this.loadprogress.bind(this),p.responseType=m.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),v.timeout),p.send()},r.readystatechange=function(){var v=this.context,m=this.loader,p=this.stats;if(!v||!m)return;var h=m.readyState,u=this.config;if(p.aborted)return;if(h>=2)if(self.clearTimeout(this.requestTimeout),p.loading.first===0&&(p.loading.first=Math.max(self.performance.now(),p.loading.start)),h===4){m.onreadystatechange=null,m.onprogress=null;var f=m.status;if(f>=200&&f<300){p.loading.end=Math.max(self.performance.now(),p.loading.first);var l,o;if(v.responseType==="arraybuffer"?(l=m.response,o=l.byteLength):(l=m.responseText,o=l.length),p.loaded=p.total=o,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(p,v,l,m),!this.callbacks)return;var a={url:m.responseURL,data:l};this.callbacks.onSuccess(a,p,v,m)}else p.retry>=u.maxRetry||f>=400&&f<499?(X.logger.error(f+" while loading "+v.url),this.callbacks.onError({code:f,text:m.statusText},v,m)):(X.logger.warn(f+" while loading "+v.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,u.maxRetryDelay),p.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),u.timeout)},r.loadtimeout=function(){X.logger.warn("timeout while loading "+this.context.url);var v=this.callbacks;v&&(this.abortInternal(),v.onTimeout(this.stats,this.context,this.loader))},r.loadprogress=function(v){var m=this.stats;m.loaded=v.loaded,v.lengthComputable&&(m.total=v.total)},r.getCacheAge=function(){var v=null;if(this.loader&&U.test(this.loader.getAllResponseHeaders())){var m=this.loader.getResponseHeader("age");v=m?parseFloat(m):null}return v},G}();J.default=K}}).default})},vHTk:function(rt,be,Z){rt.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wzkS:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return j}),Z.d(be,"b",function(){return U}),Z.d(be,"d",function(){return K}),Z.d(be,"a",function(){return r}),Z.d(be,"e",function(){return L});var ie=Z("9og8"),J=Z("WmNS"),P=Z.n(J),X=Z("ErOA");function j(v){return Object(X.c)("libraries/".concat(v,".json"))}function U(){return Object(X.c)("library_tags.json")}function K(v){return G.apply(this,arguments)}function G(){return G=Object(ie.a)(P.a.mark(function v(m){var p;return P.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Object(X.b)("attachments/".concat(m,".json"));case 2:return p=u.sent,u.abrupt("return",p.status===0);case 4:case"end":return u.stop()}},v)})),G.apply(this,arguments)}function r(v){return Object(X.f)("libraries.json",v)}function L(v,m){return Object(X.g)("libraries/".concat(v,".json"),m)}},y5JW:function(rt,be,Z){"use strict";Z.d(be,"c",function(){return f}),Z.d(be,"a",function(){return l});var ie=Z("DZo9"),J=Z("8z0m"),P=Z("+L6B"),X=Z("2/Rp"),j=Z("9og8"),U=Z("miYZ"),K=Z("tsqr"),G=Z("k1fw"),r=Z("oBTY"),L=Z("WmNS"),v=Z.n(L),m=Z("q1tI"),p=Z.n(m),h=Z("m3rI"),u=Z("wzkS"),f="\u3000\u3000";function l(o){var s=["Bytes","KB","MB","GB","TB"];if(o==0)return"0 Byte";var a=parseInt(""+Math.floor(Math.log(o)/Math.log(1024)),10);return(o/Math.pow(1024,a)).toFixed(1)+" "+s[a]}be.b=function(o){var s=o.value,a=s===void 0?[]:s,O=o.action,E=o.onChange,w=o.className,D=o.maxSize,R=D===void 0?150:D,A=o.title,C=A===void 0?"\u6587\u4EF6\u4E0A\u4F20":A,T=o.accept,d=T===void 0?null:T,S={multiple:!1,fileList:a,accept:d,withCredentials:!0,beforeUpload:function(B){var F=B.size/1024/1024;return!0},action:"".concat(h.a.API_SERVER,"/api/attachments.json"),onChange:function(B){var F,_,M=Object(r.a)(B.fileList);if(M=M.map(function(H){return H.name.indexOf(f)===-1&&(H.name="".concat(H.name).concat(f).concat(l(H.size))),Object(G.a)({},H)}),B.file.status==="done"&&((F=B.file)===null||F===void 0||((_=F.response)===null||_===void 0)?void 0:_.status)===-1){var I,g;K.b.error((I=B.file)===null||I===void 0||((g=I.response)===null||g===void 0)?void 0:g.message),E([]);return}E(M)},onRemove:function(){var b=Object(j.a)(v.a.mark(function F(_){var M,I,g;return v.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:if(M=_.size/1024/1024,!(_.status==="uploading")){$.next=3;break}return $.abrupt("return",!0);case 3:if(M0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:a.length>0,ghost:!0},C),p.a.createElement("span",{onClick:y,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",R,"M)"," ")))}},zgC5:function(rt,be,Z){rt.exports={flex_box_center:"flex_box_center___BgH5i",flex_space_between:"flex_space_between___wIrN2",flex_box_vertical_center:"flex_box_vertical_center___3s8_f",flex_box_center_end:"flex_box_center_end___25L_b",flex_box_column:"flex_box_column___3Ya3F",bg:"bg___OpMlc",flexRow:"flexRow___3MRDT",flexJustifyCenter:"flexJustifyCenter___2VqIU",flexAlignEnd:"flexAlignEnd___1zWKJ",flexAlignCenter:"flexAlignCenter___46F8K",flexColumn:"flexColumn___2WIH4",formWrap:"formWrap___1eB5i",titleWrap:"titleWrap___1Db7T",fieldWrap:"fieldWrap___2HdAq",mdWrap:"mdWrap___27bNI",titleWrapper:"titleWrapper___2YeUd",backgroundFa:"backgroundFa___2EWsW",button:"button___1PabV",searchMember:"searchMember___2aVSB"}}}]); diff --git a/p__Classrooms__Lists__Engineering__index.a12bd337.async.js b/p__Classrooms__Lists__Engineering__index.a12bd337.async.js index 0d3ebac944..2c3b904e97 100644 --- a/p__Classrooms__Lists__Engineering__index.a12bd337.async.js +++ b/p__Classrooms__Lists__Engineering__index.a12bd337.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[60,8],{"6+eU":function(xe,B,t){"use strict";t.d(B,"a",function(){return i});var R=t("wx14"),x=t("rePB"),J=t("VTBJ"),ne=t("1OyB"),T=t("vuIU"),o=t("Ji7U"),G=t("LK+K"),A=t("q1tI"),c=t.n(A),H=t("TSYQ"),f=t.n(H),D=function(O){var n,a="".concat(O.rootPrefixCls,"-item"),e=f()(a,"".concat(a,"-").concat(O.page),(n={},Object(x.a)(n,"".concat(a,"-active"),O.active),Object(x.a)(n,O.className,!!O.className),Object(x.a)(n,"".concat(a,"-disabled"),!O.page),n)),d=function(){O.onClick(O.page)},u=function(k){O.onKeyPress(k,O.onClick,O.page)};return c.a.createElement("li",{title:O.showTitle?O.page:null,className:e,onClick:d,onKeyPress:u,tabIndex:"0"},O.itemRender(O.page,"page",c.a.createElement("a",{rel:"nofollow"},O.page)))},L=D,j={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},l=function(g){Object(o.a)(n,g);var O=Object(G.a)(n);function n(){var a;Object(ne.a)(this,n);for(var e=arguments.length,d=new Array(e),u=0;u=0||v.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;a.setState({goInputText:""}),K(a.getValidValue())},a.go=function(v){var k=a.state.goInputText;if(k==="")return;(v.keyCode===j.ENTER||v.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(T.a)(n,[{key:"getValidValue",value:function(){var e=this.state,d=e.goInputText,u=e.current;return!d||isNaN(d)?u:Number(d)}},{key:"getPageSizeOptions",value:function(){var e=this.props,d=e.pageSize,u=e.pageSizeOptions;return u.some(function(v){return v.toString()===d.toString()})?u:u.concat([d.toString()]).sort(function(v,k){var E=isNaN(Number(v))?0:Number(v),K=isNaN(Number(k))?0:Number(k);return E-K})}},{key:"render",value:function(){var e=this,d=this.props,u=d.pageSize,v=d.locale,k=d.rootPrefixCls,E=d.changeSize,K=d.quickGo,W=d.goButton,Y=d.selectComponentClass,de=d.buildOptionText,X=d.selectPrefixCls,U=d.disabled,q=this.state.goInputText,re="".concat(k,"-options"),ce=Y,ae=null,be=null,Z=null;if(!E&&!K)return null;var Oe=this.getPageSizeOptions();if(E&&ce){var ve=Oe.map(function(fe,Re){return c.a.createElement(ce.Option,{key:Re,value:fe.toString()},(de||e.buildOptionText)(fe))});ae=c.a.createElement(ce,{disabled:U,prefixCls:X,showSearch:!1,className:"".concat(re,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(u||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Re){return Re.parentNode}},ve)}return K&&(W&&(Z=typeof W=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:U,className:"".concat(re,"-quick-jumper-button")},v.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),be=c.a.createElement("div",{className:"".concat(re,"-quick-jumper")},v.jump_to,c.a.createElement("input",{disabled:U,type:"text",value:q,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),v.page,Z)),c.a.createElement("li",{className:"".concat(re)},ae,be)}}]),n}(c.a.Component);l.defaultProps={pageSizeOptions:["10","20","50","100"]};var r=l,C=t("N2Kk");function m(){}function P(g){return typeof g=="number"&&isFinite(g)&&Math.floor(g)===g}function N(g,O,n){return n}function p(g,O,n){var a=typeof g=="undefined"?O.pageSize:g;return Math.floor((n.total-1)/a)+1}var I=function(g){Object(o.a)(n,g);var O=Object(G.a)(n);function n(a){var e;Object(ne.a)(this,n),e=O.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(p(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(E,K){var W=e.props.prefixCls,Y=E||c.a.createElement("button",{type:"button","aria-label":K,className:"".concat(W,"-item-link")});return typeof E=="function"&&(Y=c.a.createElement(E,Object(J.a)({},e.props))),Y},e.savePaginationNode=function(E){e.paginationNode=E},e.isValid=function(E){return P(E)&&E!==e.state.current},e.shouldDisplayQuickJumper=function(){var E=e.props,K=E.showQuickJumper,W=E.pageSize,Y=E.total;return Y<=W?!1:K},e.handleKeyDown=function(E){(E.keyCode===j.ARROW_UP||E.keyCode===j.ARROW_DOWN)&&E.preventDefault()},e.handleKeyUp=function(E){var K=e.getValidValue(E),W=e.state.currentInputValue;K!==W&&e.setState({currentInputValue:K}),E.keyCode===j.ENTER?e.handleChange(K):E.keyCode===j.ARROW_UP?e.handleChange(K-1):E.keyCode===j.ARROW_DOWN&&e.handleChange(K+1)},e.changePageSize=function(E){var K=e.state.current,W=p(E,e.state,e.props);K=K>W?W:K,W===0&&(K=e.state.current),typeof E=="number"&&("pageSize"in e.props||e.setState({pageSize:E}),"current"in e.props||e.setState({current:K,currentInputValue:K})),e.props.onShowSizeChange(K,E),"onChange"in e.props&&e.props.onChange&&e.props.onChange(K,E)},e.handleChange=function(E){var K=e.props.disabled,W=E;if(e.isValid(W)&&!K){var Y=p(void 0,e.state,e.props);W>Y?W=Y:W<1&&(W=1),"current"in e.props||e.setState({current:W,currentInputValue:W});var de=e.state.pageSize;return e.props.onChange(W,de),W}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?W-2:0),de=2;de=u?k=u:k=Number(d),k}},{key:"getShowSizeChanger",value:function(){var e=this.props,d=e.showSizeChanger,u=e.total,v=e.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:u>v}},{key:"renderPrev",value:function(e){var d=this.props,u=d.prevIcon,v=d.itemRender,k=v(e,"prev",this.getItemIcon(u,"prev page")),E=!this.hasPrev();return Object(A.isValidElement)(k)?Object(A.cloneElement)(k,{disabled:E}):k}},{key:"renderNext",value:function(e){var d=this.props,u=d.nextIcon,v=d.itemRender,k=v(e,"next",this.getItemIcon(u,"next page")),E=!this.hasNext();return Object(A.isValidElement)(k)?Object(A.cloneElement)(k,{disabled:E}):k}},{key:"render",value:function(){var e=this,d=this.props,u=d.prefixCls,v=d.className,k=d.style,E=d.disabled,K=d.hideOnSinglePage,W=d.total,Y=d.locale,de=d.showQuickJumper,X=d.showLessItems,U=d.showTitle,q=d.showTotal,re=d.simple,ce=d.itemRender,ae=d.showPrevNextJumpers,be=d.jumpPrevIcon,Z=d.jumpNextIcon,Oe=d.selectComponentClass,ve=d.selectPrefixCls,fe=d.pageSizeOptions,Re=this.state,le=Re.current,Q=Re.pageSize,ge=Re.currentInputValue;if(K===!0&&W<=Q)return null;var te=p(void 0,this.state,this.props),me=[],Le=null,Te=null,De=null,Ve=null,Se=null,ue=de&&de.goButton,he=X?1:2,Xe=le-1>0?le-1:0,Je=le+1=he*2&&le!==1+2&&(me[0]=Object(A.cloneElement)(me[0],{className:"".concat(u,"-item-after-jump-prev")}),me.unshift(Le)),te-le>=he*2&&le!==te-2&&(me[me.length-1]=Object(A.cloneElement)(me[me.length-1],{className:"".concat(u,"-item-before-jump-next")}),me.push(Te)),M!==1&&me.unshift(De),z!==te&&me.push(Ve)}var b=null;q&&(b=c.a.createElement("li",{className:"".concat(u,"-total-text")},q(W,[W===0?0:(le-1)*Q+1,le*Q>W?W:le*Q])));var y=!this.hasPrev()||!te,_=!this.hasNext()||!te;return c.a.createElement("ul",Object(R.a)({className:f()(u,v,Object(x.a)({},"".concat(u,"-disabled"),E)),style:k,unselectable:"unselectable",ref:this.savePaginationNode},ze),b,c.a.createElement("li",{title:U?Y.prev_page:null,onClick:this.prev,tabIndex:y?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(u,"-prev"),Object(x.a)({},"".concat(u,"-disabled"),y)),"aria-disabled":y},this.renderPrev(Xe)),me,c.a.createElement("li",{title:U?Y.next_page:null,onClick:this.next,tabIndex:_?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(u,"-next"),Object(x.a)({},"".concat(u,"-disabled"),_)),"aria-disabled":_},this.renderNext(Je)),c.a.createElement(r,{disabled:E,locale:Y,rootPrefixCls:u,selectComponentClass:Oe,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:le,pageSize:Q,pageSizeOptions:fe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ue}))}}],[{key:"getDerivedStateFromProps",value:function(e,d){var u={};if("current"in e&&(u.current=e.current,e.current!==d.current&&(u.currentInputValue=u.current)),"pageSize"in e&&e.pageSize!==d.pageSize){var v=d.current,k=p(e.pageSize,d,e);v=v>k?k:v,"current"in e||(u.current=v,u.currentInputValue=v),u.pageSize=e.pageSize}return u}}]),n}(c.a.Component);I.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:m,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:m,locale:C.a,style:{},itemRender:N,totalBoundaryShowSizeChanger:50};var i=I},"6RRn":function(xe,B,t){"use strict";var R=t("wCXF"),x=t("n6Qo");t.d(B,"b",function(){return x.a});var J=t("IBYe"),ne=t("6eGT"),T=t("hW8S");t.d(B,"a",function(){return T.a}),B.c=R.b},"6eGT":function(xe,B,t){"use strict";function R(x){return null}B.a=R},"815F":function(xe,B,t){"use strict";t.d(B,"e",function(){return G}),t.d(B,"c",function(){return c}),t.d(B,"d",function(){return H}),t.d(B,"a",function(){return D}),t.d(B,"f",function(){return L}),t.d(B,"b",function(){return j});var R=t("KQm4"),x=t("VTBJ"),J=t("Ff2n"),ne=t("Zm9Q"),T=t("Kwbf"),o=t("OZM5");function G(l,r){return l!=null?l:r}function A(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=new Map;function C(m){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(m||[]).forEach(function(N){var p=N.key,I=N.children;Object(T.a)(p!=null,"Tree node must have a certain key: [".concat(P).concat(p,"]"));var i=String(p);Object(T.a)(!r.has(i)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(i)),r.set(i,!0),C(I,"".concat(P).concat(i," > "))})}C(l)}function c(l){function r(C){var m=Object(ne.a)(C);return m.map(function(P){if(!Object(o.i)(P))return Object(T.a)(!P,"Tree/TreeNode can only accept TreeNode as children."),null;var N=P.key,p=P.props,I=p.children,i=Object(J.a)(p,["children"]),g=Object(x.a)({key:N},i),O=r(I);return O.length&&(g.children=O),g}).filter(function(P){return P})}return r(l)}function H(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],C=new Set(r===!0?[]:r),m=[];function P(N){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return N.map(function(I,i){var g=Object(o.h)(p?p.pos:"0",i),O=G(I.key,g),n=Object(x.a)(Object(x.a)({},I),{},{parent:p,pos:g,children:null,data:I,isStart:[].concat(Object(R.a)(p?p.isStart:[]),[i===0]),isEnd:[].concat(Object(R.a)(p?p.isEnd:[]),[i===N.length-1])});return m.push(n),r===!0||C.has(O)?n.children=P(I.children||[],n):n.children=[],n})}return P(l),m}function f(l,r,C){var m;C?typeof C=="string"?m=function(p){return p[C]}:typeof C=="function"&&(m=function(p){return C(p)}):m=function(p,I){return G(p.key,I)};function P(N,p,I){var i=N?N.children:l,g=N?Object(o.h)(I.pos,p):"0";if(N){var O=m(N,g),n={node:N,index:p,pos:g,key:O,parentPos:I.node?I.pos:null,level:I.level+1};r(n)}i&&i.forEach(function(a,e){P(a,e,{node:N,pos:g,level:I?I.level+1:-1})})}P(null)}function D(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=r.initWrapper,m=r.processEntity,P=r.onProcessFinished,N=arguments.length>2?arguments[2]:void 0,p={},I={},i={posEntities:p,keyEntities:I};return C&&(i=C(i)||i),f(l,function(g){var O=g.node,n=g.index,a=g.pos,e=g.key,d=g.parentPos,u=g.level,v={node:O,index:n,key:e,pos:a,level:u},k=G(e,a);p[a]=v,I[k]=v,v.parent=p[d],v.parent&&(v.parent.children=v.parent.children||[],v.parent.children.push(v)),m&&m(v,i)},N),P&&P(i),i}function L(l,r){var C=r.expandedKeys,m=r.selectedKeys,P=r.loadedKeys,N=r.loadingKeys,p=r.checkedKeys,I=r.halfCheckedKeys,i=r.dragOverNodeKey,g=r.dropPosition,O=r.keyEntities,n=O[l],a={eventKey:l,expanded:C.indexOf(l)!==-1,selected:m.indexOf(l)!==-1,loaded:P.indexOf(l)!==-1,loading:N.indexOf(l)!==-1,checked:p.indexOf(l)!==-1,halfChecked:I.indexOf(l)!==-1,pos:String(n?n.pos:""),dragOver:i===l&&g===0,dragOverGapTop:i===l&&g===-1,dragOverGapBottom:i===l&&g===1};return a}function j(l){var r=l.data,C=l.expanded,m=l.selected,P=l.checked,N=l.loaded,p=l.loading,I=l.halfChecked,i=l.dragOver,g=l.dragOverGapTop,O=l.dragOverGapBottom,n=l.pos,a=l.active,e=Object(x.a)(Object(x.a)({},r),{},{expanded:C,selected:m,checked:P,loaded:N,loading:p,halfChecked:I,dragOver:i,dragOverGapTop:g,dragOverGapBottom:O,pos:n,active:a});return"props"in e||Object.defineProperty(e,"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`."),l}}),e}},BU3w:function(xe,B,t){"use strict";t.d(B,"a",function(){return o});var R=t("MNnm"),x="rc-util-key";function J(G){if(G.attachTo)return G.attachTo;var A=document.querySelector("head");return A||document.body}function ne(G){var A,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(R.a)())return null;var H=document.createElement("style");if((A=c.csp)===null||A===void 0?void 0:A.nonce){var f;H.nonce=(f=c.csp)===null||f===void 0?void 0:f.nonce}H.innerHTML=G;var D=J(c),L=D.firstChild;return c.prepend&&D.prepend?D.prepend(H):c.prepend&&L?D.insertBefore(H,L):D.appendChild(H),H}var T=new Map;function o(G,A){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=J(c);if(!T.has(H)){var f=ne("",c),D=f.parentNode;T.set(H,D),D.removeChild(f)}var L=Array.from(T.get(H).children).find(function(m){return m.tagName==="STYLE"&&m[x]===A});if(L){var j,l;if(((j=c.csp)===null||j===void 0?void 0:j.nonce)&&L.nonce!==((l=c.csp)===null||l===void 0?void 0:l.nonce)){var r;L.nonce=(r=c.csp)===null||r===void 0?void 0:r.nonce}return L.innerHTML!==G&&(L.innerHTML=G),L}var C=ne(G,c);return C[x]=A,C}},IBYe:function(xe,B,t){"use strict";function R(x){return null}B.a=R},LdHM:function(xe,B,t){"use strict";t.d(B,"b",function(){return N}),t.d(B,"a",function(){return I});var R=t("1OyB"),x=t("vuIU"),J=t("Ji7U"),ne=t("LK+K"),T=t("q1tI"),o=t("rePB"),G=t("Ff2n"),A=t("ODXe"),c=t("4IlW"),H=t("bX4T"),f=t("YrtM"),D=t("TSYQ"),L=t.n(D),j=t("+nKL"),l=t("8OUc"),r=function(U,q){var re=U.prefixCls,ce=U.id,ae=U.flattenOptions,be=U.childrenAsData,Z=U.values,Oe=U.searchValue,ve=U.multiple,fe=U.defaultActiveFirstOption,Re=U.height,le=U.itemHeight,Q=U.notFoundContent,ge=U.open,te=U.menuItemSelectedIcon,me=U.virtual,Le=U.onSelect,Te=U.onToggleOpen,De=U.onActiveValue,Ve=U.onScroll,Se=U.onMouseEnter,ue="".concat(re,"-item"),he=Object(f.a)(function(){return ae},[ge,ae],function(h,b){return b[0]&&h[1]!==b[1]}),Xe=T.useRef(null),Je=function(b){b.preventDefault()},ze=function(b){Xe.current&&Xe.current.scrollTo({index:b})},Ye=function(b){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_=he.length,F=0;F<_;F+=1){var w=(b+F*y+_)%_,$=he[w],oe=$.group,ee=$.data;if(!oe&&!ee.disabled)return w}return-1},Be=T.useState(function(){return Ye(0)}),ft=Object(A.a)(Be,2),s=ft[0],S=ft[1],M=function(b){S(b);var y=he[b];if(!y){De(null,-1);return}De(y.data.value,b)};T.useEffect(function(){M(fe!==!1?Ye(0):-1)},[he.length,Oe]),T.useEffect(function(){var h=setTimeout(function(){if(!ve&&ge&&Z.size===1){var b=Array.from(Z)[0],y=he.findIndex(function(_){var F=_.data;return F.value===b});M(y),ze(y)}});return function(){return clearTimeout(h)}},[ge]);var z=function(b){b!==void 0&&Le(b,{selected:!Z.has(b)}),ve||Te(!1)};if(T.useImperativeHandle(q,function(){return{onKeyDown:function(b){var y=b.which;switch(y){case c.a.UP:case c.a.DOWN:{var _=0;if(y===c.a.UP?_=-1:y===c.a.DOWN&&(_=1),_!==0){var F=Ye(s+_,_);ze(F),M(F)}break}case c.a.ENTER:{var w=he[s];w&&!w.data.disabled?z(w.data.value):z(void 0),ge&&b.preventDefault();break}case c.a.ESC:Te(!1)}},onKeyUp:function(){},scrollTo:function(b){ze(b)}}}),he.length===0)return T.createElement("div",{role:"listbox",id:"".concat(ce,"_list"),className:"".concat(ue,"-empty"),onMouseDown:Je},Q);function V(h){var b=he[h];if(!b)return null;var y=b.data||{},_=y.value,F=y.label,w=y.children,$=Object(H.a)(y,!0),oe=be?w:F;return b?T.createElement("div",Object.assign({"aria-label":typeof oe=="string"?oe:null},$,{key:h,role:"option",id:"".concat(ce,"_list_").concat(h),"aria-selected":Z.has(_)}),_):null}return T.createElement(T.Fragment,null,T.createElement("div",{role:"listbox",id:"".concat(ce,"_list"),style:{height:0,width:0,overflow:"hidden"}},V(s-1),V(s),V(s+1)),T.createElement(j.a,{itemKey:"key",ref:Xe,data:he,height:Re,itemHeight:le,fullHeight:!1,onMouseDown:Je,onScroll:Ve,virtual:me,onMouseEnter:Se},function(h,b){var y,_=h.group,F=h.groupOption,w=h.data,$=w.label,oe=w.key;if(_)return T.createElement("div",{className:L()(ue,"".concat(ue,"-group"))},$!==void 0?$:oe);var ee=w.disabled,se=w.value,Pe=w.title,ye=w.children,_e=w.style,ie=w.className,Qe=Object(G.a)(w,["disabled","value","title","children","style","className"]),we=Z.has(se),Ae="".concat(ue,"-option"),We=L()(ue,Ae,ie,(y={},Object(o.a)(y,"".concat(Ae,"-grouped"),F),Object(o.a)(y,"".concat(Ae,"-active"),s===b&&!ee),Object(o.a)(y,"".concat(Ae,"-disabled"),ee),Object(o.a)(y,"".concat(Ae,"-selected"),we),y)),Ze=be?ye:$,je=!te||typeof te=="function"||we;return T.createElement("div",Object.assign({},Qe,{"aria-selected":we,className:We,title:Pe,onMouseMove:function(){if(s===b||ee)return;M(b)},onClick:function(){ee||z(se)},style:_e}),T.createElement("div",{className:"".concat(Ae,"-content")},Ze||se),T.isValidElement(te)||we,je&&T.createElement(l.a,{className:"".concat(ue,"-option-state"),customizeIcon:te,customizeIconProps:{isSelected:we}},we?"\u2713":null))}))},C=T.forwardRef(r);C.displayName="OptionList";var m=C,P=function(){return null};P.isSelectOption=!0;var N=P,p=function(){return null};p.isSelectOptGroup=!0;var I=p,i=t("VTBJ"),g=t("Zm9Q");function O(X){var U=X.key,q=X.props,re=q.children,ce=q.value,ae=Object(G.a)(q,["children","value"]);return Object(i.a)({key:U,value:ce!==void 0?ce:U,children:re},ae)}function n(X){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(g.a)(X).map(function(q,re){if(!T.isValidElement(q)||!q.type)return null;var ce=q.type.isSelectOptGroup,ae=q.key,be=q.props,Z=be.children,Oe=Object(G.a)(be,["children"]);return U||!ce?O(q):Object(i.a)(Object(i.a)({key:"__RC_SELECT_GRP__".concat(ae===null?re:ae,"__"),label:ae},Oe),{},{options:n(Z)})}).filter(function(q){return q})}var a=t("2Qr1"),e=t("qNPg"),d=t("U8pU"),u=t("Kwbf"),v=t("WKfj");function k(X){var U=X.mode,q=X.options,re=X.children,ce=X.backfill,ae=X.allowClear,be=X.placeholder,Z=X.getInputElement,Oe=X.showSearch,ve=X.onSearch,fe=X.defaultOpen,Re=X.autoFocus,le=X.labelInValue,Q=X.value,ge=X.inputValue,te=X.optionLabelProp,me=U==="multiple"||U==="tags",Le=Oe!==void 0?Oe:me||U==="combobox",Te=q||n(re);if(Object(u.a)(U!=="tags"||Te.every(function(ue){return!ue.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),U==="tags"||U==="combobox"){var De=Te.some(function(ue){return ue.options?ue.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in ue?ue.value:ue.key)=="number"});Object(u.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(u.a)(U!=="combobox"||!te,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(u.a)(U==="combobox"||!ce,"`backfill` only works with `combobox` mode."),Object(u.a)(U==="combobox"||!Z,"`getInputElement` only work with `combobox` mode."),Object(u.b)(U!=="combobox"||!Z||!ae||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!Le&&U!=="combobox"&&U!=="tags"&&Object(u.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(u.b)(!fe||Re,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Q!=null){var Ve=Object(v.d)(Q);Object(u.a)(!le||Ve.every(function(ue){return Object(d.a)(ue)==="object"&&("key"in ue||"value"in ue)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(u.a)(!me||Array.isArray(Q),"`value` should be array when `mode` is `multiple` or `tags`")}if(re){var Se=null;Object(g.a)(re).some(function(ue){if(!T.isValidElement(ue)||!ue.type)return!1;var he=ue.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Xe=Object(g.a)(ue.props.children).every(function(Je){return!T.isValidElement(Je)||!ue.type||Je.type.isSelectOption?!0:(Se=Je.type,!1)});return!Xe}return Se=he,!0}),Se&&Object(u.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Se.displayName||Se.name||Se,"`.")),Object(u.a)(ge===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var E=k,K=Object(e.a)({prefixCls:"rc-select",components:{optionList:m},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:E,fillOptionsWithMissingValue:a.a}),W=function(X){Object(J.a)(q,X);var U=Object(ne.a)(q);function q(){var re;return Object(R.a)(this,q),re=U.apply(this,arguments),re.selectRef=T.createRef(),re.focus=function(){re.selectRef.current.focus()},re.blur=function(){re.selectRef.current.blur()},re}return Object(x.a)(q,[{key:"render",value:function(){return T.createElement(K,Object.assign({ref:this.selectRef},this.props))}}]),q}(T.Component);W.Option=N,W.OptGroup=I;var Y=W,de=B.c=Y},NvD2:function(xe,B,t){"use strict";t.d(B,"a",function(){return o});var R=t("Kwbf");function x(G,A){var c=new Set;return G.forEach(function(H){A.has(H)||c.add(H)}),c}function J(G){var A=G||{},c=A.disabled,H=A.disableCheckbox,f=A.checkable;return!!(c||H)||f===!1}function ne(G,A,c,H){for(var f=new Set(G),D=new Set,L=0;L<=c;L+=1){var j=A.get(L)||new Set;j.forEach(function(m){var P=m.key,N=m.node,p=m.children,I=p===void 0?[]:p;f.has(P)&&!H(N)&&I.filter(function(i){return!H(i.node)}).forEach(function(i){f.add(i.key)})})}for(var l=new Set,r=c;r>=0;r-=1){var C=A.get(r)||new Set;C.forEach(function(m){var P=m.parent,N=m.node;if(H(N)||!m.parent||l.has(m.parent.key))return;if(H(m.parent.node)){l.add(P.key);return}var p=!0,I=!1;(P.children||[]).filter(function(i){return!H(i.node)}).forEach(function(i){var g=i.key,O=f.has(g);p&&!O&&(p=!1),!I&&(O||D.has(g))&&(I=!0)}),p&&f.add(P.key),I&&D.add(P.key),l.add(P.key)})}return{checkedKeys:Array.from(f),halfCheckedKeys:Array.from(x(D,f))}}function T(G,A,c,H,f){for(var D=new Set(G),L=new Set(A),j=0;j<=H;j+=1){var l=c.get(j)||new Set;l.forEach(function(P){var N=P.key,p=P.node,I=P.children,i=I===void 0?[]:I;!D.has(N)&&!L.has(N)&&!f(p)&&i.filter(function(g){return!f(g.node)}).forEach(function(g){D.delete(g.key)})})}L=new Set;for(var r=new Set,C=H;C>=0;C-=1){var m=c.get(C)||new Set;m.forEach(function(P){var N=P.parent,p=P.node;if(f(p)||!P.parent||r.has(P.parent.key))return;if(f(P.parent.node)){r.add(N.key);return}var I=!0,i=!1;(N.children||[]).filter(function(g){return!f(g.node)}).forEach(function(g){var O=g.key,n=D.has(O);I&&!n&&(I=!1),!i&&(n||L.has(O))&&(i=!0)}),I||D.delete(N.key),i&&L.add(N.key),r.add(N.key)})}return{checkedKeys:Array.from(D),halfCheckedKeys:Array.from(x(L,D))}}function o(G,A,c,H){var f=[],D;H?D=H:D=J;var L=new Set(G.filter(function(C){var m=!!c[C];return m||f.push(C),m})),j=new Map,l=0;Object.keys(c).forEach(function(C){var m=c[C],P=m.level,N=j.get(P);N||(N=new Set,j.set(P,N)),N.add(m),l=Math.max(l,P)}),Object(R.a)(!f.length,"Tree missing follow keys: ".concat(f.slice(0,100).map(function(C){return"'".concat(C,"'")}).join(", ")));var r;return A===!0?r=ne(L,j,l,D):r=T(L,A.halfCheckedKeys,j,l,D),r}},OZM5:function(xe,B,t){"use strict";t.d(B,"b",function(){return H}),t.d(B,"a",function(){return f}),t.d(B,"k",function(){return D}),t.d(B,"h",function(){return L}),t.d(B,"i",function(){return j}),t.d(B,"g",function(){return l}),t.d(B,"c",function(){return r}),t.d(B,"d",function(){return C}),t.d(B,"j",function(){return N}),t.d(B,"e",function(){return p}),t.d(B,"f",function(){return I});var R=t("KQm4"),x=t("U8pU"),J=t("Ff2n"),ne=t("q1tI"),T=t.n(ne),o=t("Kwbf"),G=t("WaYH"),A=.25,c=2;function H(i,g){var O=i.slice(),n=O.indexOf(g);return n>=0&&O.splice(n,1),O}function f(i,g){var O=i.slice();return O.indexOf(g)===-1&&O.push(g),O}function D(i){return i.split("-")}function L(i,g){return"".concat(i,"-").concat(g)}function j(i){return i&&i.type&&i.type.isTreeNode}function l(i,g){var O=[i],n=g[i];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(d){var u=d.key,v=d.children;O.push(u),a(v)})}return a(n.children),O}function r(i,g){var O=i.clientY,n=g.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,d=n.height,u=Math.max(d*A,c);return O<=a+u?-1:O>=e-u?1:0}function C(i,g){if(!i)return;var O=g.multiple;return O?i.slice():i.length?[i[0]]:i}var m=function(g){return g};function P(i,g){if(!i)return[];var O=g||{},n=O.processProps,a=n===void 0?m:n,e=Array.isArray(i)?i:[i];return e.map(function(d){var u=d.children,v=Object(J.a)(d,["children"]),k=P(u,g);return T.a.createElement(G.a,Object.assign({},a(v)),k)})}function N(i){if(!i)return null;var g;if(Array.isArray(i))g={checkedKeys:i,halfCheckedKeys:void 0};else if(Object(x.a)(i)==="object")g={checkedKeys:i.checked||void 0,halfCheckedKeys:i.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return g}function p(i,g){var O=new Set;function n(a){if(O.has(a))return;var e=g[a];if(!e)return;O.add(a);var d=e.parent,u=e.node;if(u.disabled)return;d&&n(d.key)}return(i||[]).forEach(function(a){n(a)}),Object(R.a)(O)}function I(i){var g={};return Object.keys(i).forEach(function(O){(O.startsWith("data-")||O.startsWith("aria-"))&&(g[O]=i[O])}),g}},"SA+Z":function(xe,B,t){var R=t("wTVA"),x=t("EbDI"),J=t("ZhPi"),ne=t("wkBT");function T(o){return R(o)||x(o)||J(o)||ne()}xe.exports=T,xe.exports.__esModule=!0,xe.exports.default=xe.exports},Uv9F:function(xe,B,t){"use strict";t.r(B);var R=t("OaEy"),x=t("2fM7"),J=t("DjyN"),ne=t("NUBc"),T=t("g9YV"),o=t("wCAj"),G=t("miYZ"),A=t("tsqr"),c=t("2qtc"),H=t("kLXV"),f=t("+L6B"),D=t("2/Rp"),L=t("k1fw"),j=t("9og8"),l=t("y8nQ"),r=t("Vl3Y"),C=t("tJVT"),m=t("sRBo"),P=t("kaz8"),N=t("WmNS"),p=t.n(N),I=t("q1tI"),i=t.n(I),g=t("Ty5D"),O=t("9kvl"),n=t("xvlK"),a=t("RCxd"),e=t("ErOA"),d=t("wYHl"),u=t.n(d),v=P.a.Group,k=function(K){var W,Y,de,X,U,q,re=K.classroomList,ce=K.loading,ae=K.user,be=K.dispatch,Z=Object(I.useState)([]),Oe=Object(C.a)(Z,2),ve=Oe[0],fe=Oe[1],Re=Object(I.useState)({zydatas:[],jbdatas:[],kcdatas:[],page:1,per_page:20}),le=Object(C.a)(Re,2),Q=le[0],ge=le[1],te=Object(g.i)(),me=Object(I.useState)(!1),Le=Object(C.a)(me,2),Te=Le[0],De=Le[1],Ve=Object(I.useState)(!1),Se=Object(C.a)(Ve,2),ue=Se[0],he=Se[1],Xe=r.a.useForm(),Je=Object(C.a)(Xe,1),ze=Je[0];Object(I.useEffect)(function(){Ye()},[]);function Ye(){return Be.apply(this,arguments)}function Be(){return Be=Object(j.a)(p.a.mark(function h(){var b;return p.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Object(e.a)("/api/courses/ecs_courses.json",{method:"get",params:{id:te==null?void 0:te.coursesId}});case 2:b=_.sent,fe(b==null?void 0:b.data);case 4:case"end":return _.stop()}},h)})),Be.apply(this,arguments)}function ft(){return s.apply(this,arguments)}function s(){return s=Object(j.a)(p.a.mark(function h(){var b,y,_;return p.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,Object(e.a)("/api/schools/".concat(ae==null||((b=ae.userInfo)===null||b===void 0||((y=b.course)===null||y===void 0))?void 0:y.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:_=w.sent,Q.zydatas=_==null?void 0:_.data,ge(Object(L.a)({},Q));case 5:case"end":return w.stop()}},h)})),s.apply(this,arguments)}function S(h){return M.apply(this,arguments)}function M(){return M=Object(j.a)(p.a.mark(function h(b){var y;return p.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,Object(e.a)("/api/ec_major_schools/".concat(b,"/ec_years/get_year_list.json"),{method:"get"});case 2:y=F.sent,Q.jbdatas=y==null?void 0:y.data,ge(Object(L.a)({},Q));case 5:case"end":return F.stop()}},h)})),M.apply(this,arguments)}function z(h){return V.apply(this,arguments)}function V(){return V=Object(j.a)(p.a.mark(function h(b){var y;return p.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,Object(e.a)("/api/ec_years/".concat(b,"/ec_courses/get_courses.json"),{method:"get"});case 2:y=F.sent,Q.kcdatas=y==null?void 0:y.data,ge(Object(L.a)({},Q));case 5:case"end":return F.stop()}},h)})),V.apply(this,arguments)}return i.a.createElement("div",{className:u.a.content},i.a.createElement("div",{className:u.a.header},i.a.createElement("span",{className:u.a.span},"\u5173\u8054\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B"),i.a.createElement(D.a,{type:"primary",onClick:function(){Q.zydatas=[],Q.jbdatas=[],Q.kcdatas=[],ze.setFieldsValue({zy:"",jb:"",ec_course_id:""}),ge(Object(L.a)({},Q)),De(!0),ft()},icon:i.a.createElement(n.a,null)},"\u6DFB\u52A0\u5173\u8054")),i.a.createElement(o.a,{dataSource:ve,pagination:!1,columns:[{title:"\u5E8F\u53F7",dataIndex:"filename",key:"filename",render:function(b,y,_){return Q.per_page*(Q.page-1)+_+1}},{title:"\u8BA4\u8BC1\u4E13\u4E1A",dataIndex:"pro_name",ellipsis:!0,width:"30%",key:"pro_name"},{title:"\u8BA4\u8BC1\u5C4A\u522B",dataIndex:"year",ellipsis:!0,width:"10%",key:"year"},{title:"\u5173\u8054\u8BFE\u7A0B",dataIndex:"course_name",ellipsis:!0,width:"30%",key:"course_name"},{title:"\u64CD\u4F5C",dataIndex:"id",ellipsis:!0,width:"20%",key:"id",render:function(b,y){return i.a.createElement("div",null,i.a.createElement("a",{href:"/classrooms/".concat(te==null?void 0:te.coursesId,"/engineering/datail?kc=").concat(y==null?void 0:y.ec_course_id),style:{marginRight:20}},"\u67E5\u770B\u8BE6\u60C5"),i.a.createElement("a",{onClick:function(){H.a.confirm({title:"\u63D0\u793A",content:"\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u5173\u8054\u5417",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var F=Object(j.a)(p.a.mark(function $(){var oe;return p.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,Object(e.a)("/api/courses/delete_ecs_course.json",{method:"DELETE",body:{ec_course_id:b}});case 2:oe=se.sent,oe.status===0&&(A.b.info("\u53D6\u6D88\u6210\u529F"),Ye());case 4:case"end":return se.stop()}},$)}));function w(){return F.apply(this,arguments)}return w}()})}},"\u53D6\u6D88\u5173\u8054"))}}]}),i.a.createElement(ne.a,{style:{textAlign:"center",marginTop:20},current:Q.page,showSizeChanger:!1,total:ve==null?void 0:ve.count,pageSize:20,hideOnSinglePage:!0,onChange:function(b){Q.page=b,ge(Object(L.a)({},Q)),Ye()}}),i.a.createElement(H.a,{title:"\u5173\u8054\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B",visible:Te,onOk:function(){ze.submit()},okButtonProps:{loading:ue},onCancel:function(){De(!1)}},i.a.createElement("p",{style:{color:"#FA6400",fontSize:"14px"}},i.a.createElement(a.a,null)," ","\u6559\u5B66\u8BFE\u5802\u6240\u5C5E\u5355\u4F4D\u5F00\u8BBE\u4E86\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B\uFF0C\u624D\u80FD\u8FDB\u884C\u6DFB\u52A0\u5173\u8054\u64CD\u4F5C\uFF01"),i.a.createElement(r.a,{labelCol:{span:4},wrapperCol:{span:20},form:ze,onValuesChange:function(b){console.log("----",b),b.zy&&S(b.zy),b.jb&&z(b.jb)},onFinish:function(){var h=Object(j.a)(p.a.mark(function b(y){var _;return p.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return he(!0),w.next=3,Object(e.a)("/api/courses/create_ecs_course.json",{method:"post",body:{id:te==null?void 0:te.coursesId,ec_course_id:y.ec_course_id}});case 3:_=w.sent,he(!1),_.status===0&&(A.b.info("\u5173\u8054\u6210\u529F"),Ye(),ze.setFieldsValue({zy:"",jb:"",ec_course_id:""}),De(!1));case 6:case"end":return w.stop()}},b)}));return function(b){return h.apply(this,arguments)}}()},i.a.createElement(r.a.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"zy",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"}]},i.a.createElement(x.a,{disabled:((W=Q.zydatas)===null||W===void 0?void 0:W.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},Q==null||((Y=Q.zydatas)===null||Y===void 0)?void 0:Y.map(function(h,b){return i.a.createElement(x.a.Option,{key:b,value:h==null?void 0:h.ec_major_school_id},h==null?void 0:h.name)}))),i.a.createElement(r.a.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"jb",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"}]},i.a.createElement(x.a,{disabled:((de=Q.jbdatas)===null||de===void 0?void 0:de.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},Q==null||((X=Q.jbdatas)===null||X===void 0)?void 0:X.map(function(h,b){return i.a.createElement(x.a.Option,{key:b,value:h==null?void 0:h.ec_year_id},h==null?void 0:h.year)}))),i.a.createElement(r.a.Item,{label:"\u5173\u8054\u8BFE\u7A0B",name:"ec_course_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u8BFE\u7A0B"}]},i.a.createElement(x.a,{disabled:((U=Q.kcdatas)===null||U===void 0?void 0:U.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u5173\u8054\u8BFE\u7A0B"},Q==null||((q=Q.kcdatas)===null||q===void 0)?void 0:q.map(function(h,b){return i.a.createElement(x.a.Option,{key:b,value:h==null?void 0:h.id},h==null?void 0:h.name)}))))))};B.default=Object(O.a)(function(E){var K=E.classroomList,W=E.loading,Y=E.globalSetting,de=E.user;return{classroomList:K,globalSetting:Y,loading:W.effects,user:de}})(k)},WaYH:function(xe,B,t){"use strict";var R=t("rePB"),x=t("Ff2n"),J=t("VTBJ"),ne=t("1OyB"),T=t("vuIU"),o=t("JX7q"),G=t("Ji7U"),A=t("LK+K"),c=t("q1tI"),H=t("TSYQ"),f=t.n(H),D=t("sboe"),L=t("OZM5"),j=function(g){var O=g.prefixCls,n=g.level,a=g.isStart,e=g.isEnd;if(!n)return null;for(var d="".concat(O,"-indent-unit"),u=[],v=0;vD||r>f&&C=D&&m>=L?r-f-j:C>D&&mL?C-D+l:0}var T=function(f,D){var L=window,j=D.scrollMode,l=D.block,r=D.inline,C=D.boundary,m=D.skipOverflowHiddenElements,P=typeof C=="function"?C:function(De){return De!==C};if(!R(f))throw new TypeError("Invalid target");for(var N=document.scrollingElement||document.documentElement,p=[],I=f;R(I)&&P(I);){if((I=I.parentElement)===N){p.push(I);break}I!=null&&I===document.body&&J(I)&&!J(document.documentElement)||I!=null&&J(I,m)&&p.push(I)}for(var i=L.visualViewport?L.visualViewport.width:innerWidth,g=L.visualViewport?L.visualViewport.height:innerHeight,O=window.scrollX||pageXOffset,n=window.scrollY||pageYOffset,a=f.getBoundingClientRect(),e=a.height,d=a.width,u=a.top,v=a.right,k=a.bottom,E=a.left,K=l==="start"||l==="nearest"?u:l==="end"?k:u+e/2,W=r==="center"?E+d/2:r==="end"?v:E,Y=[],de=0;de=0&&E>=0&&k<=g&&v<=i&&u>=ce&&k<=be&&E>=Z&&v<=ae)return Y;var Oe=getComputedStyle(X),ve=parseInt(Oe.borderLeftWidth,10),fe=parseInt(Oe.borderTopWidth,10),Re=parseInt(Oe.borderRightWidth,10),le=parseInt(Oe.borderBottomWidth,10),Q=0,ge=0,te="offsetWidth"in X?X.offsetWidth-X.clientWidth-ve-Re:0,me="offsetHeight"in X?X.offsetHeight-X.clientHeight-fe-le:0;if(N===X)Q=l==="start"?K:l==="end"?K-g:l==="nearest"?ne(n,n+g,g,fe,le,n+K,n+K+e,e):K-g/2,ge=r==="start"?W:r==="center"?W-i/2:r==="end"?W-i:ne(O,O+i,i,ve,Re,O+W,O+W+d,d),Q=Math.max(0,Q+n),ge=Math.max(0,ge+O);else{Q=l==="start"?K-ce-fe:l==="end"?K-be+le+me:l==="nearest"?ne(ce,be,q,fe,le+me,K,K+e,e):K-(ce+q/2)+me/2,ge=r==="start"?W-Z-ve:r==="center"?W-(Z+re/2)+te/2:r==="end"?W-ae+Re+te:ne(Z,ae,re,ve,Re+te,W,W+d,d);var Le=X.scrollLeft,Te=X.scrollTop;K+=Te-(Q=Math.max(0,Math.min(Te+Q,X.scrollHeight-q+me))),W+=Le-(ge=Math.max(0,Math.min(Le+ge,X.scrollWidth-re+te)))}Y.push({el:X,top:Q,left:ge})}return Y};function o(f){return f===Object(f)&&Object.keys(f).length!==0}function G(f,D){D===void 0&&(D="auto");var L="scrollBehavior"in document.body.style;f.forEach(function(j){var l=j.el,r=j.top,C=j.left;l.scroll&&L?l.scroll({top:r,left:C,behavior:D}):(l.scrollTop=r,l.scrollLeft=C)})}function A(f){return f===!1?{block:"end",inline:"nearest"}:o(f)?f:{block:"start",inline:"nearest"}}function c(f,D){var L=!f.ownerDocument.documentElement.contains(f);if(o(D)&&typeof D.behavior=="function")return D.behavior(L?[]:T(f,D));if(L)return;var j=A(D);return G(T(f,j),j.behavior)}var H=B.a=c},biw7:function(xe,B,t){"use strict";var R=t("q1tI"),x=t.n(R),J=R.createContext(null);B.a=J},fyJ8:function(xe,B,t){"use strict";var R=t("rePB"),x=t("VTBJ"),J=t("Ff2n"),ne=t("U8pU"),T=t("q1tI"),o=t.n(T),G=t("TSYQ"),A=t.n(G),c=t("c+Xe"),H=t("sR1s");function f(r){return r&&Object(ne.a)(r)==="object"&&!Array.isArray(r)&&!T.isValidElement(r)}function D(r){return typeof r=="string"?!0:Object(c.c)(r)}function L(r,C){var m,P=r.prefixCls,N=r.className,p=r.record,I=r.index,i=r.dataIndex,g=r.render,O=r.children,n=r.component,a=n===void 0?"td":n,e=r.colSpan,d=r.rowSpan,u=r.fixLeft,v=r.fixRight,k=r.firstFixLeft,E=r.lastFixLeft,K=r.firstFixRight,W=r.lastFixRight,Y=r.appendNode,de=r.additionalProps,X=de===void 0?{}:de,U=r.ellipsis,q=r.align,re=r.rowType,ce=r.isSticky,ae="".concat(P,"-cell"),be,Z;if(O)Z=O;else{var Oe=Object(H.b)(p,i);if(Z=Oe,g){var ve=g(Oe,p,I);f(ve)?(Z=ve.children,be=ve.props):Z=ve}}Object(ne.a)(Z)==="object"&&!Array.isArray(Z)&&!T.isValidElement(Z)&&(Z=null),U&&(E||K)&&(Z=T.createElement("span",{className:"".concat(ae,"-content")},Z));var fe=be||{},Re=fe.colSpan,le=fe.rowSpan,Q=fe.style,ge=fe.className,te=Object(J.a)(fe,["colSpan","rowSpan","style","className"]),me=Re!==void 0?Re:e,Le=le!==void 0?le:d;if(me===0||Le===0)return null;var Te={},De=typeof u=="number",Ve=typeof v=="number";De&&(Te.position="sticky",Te.left=u),Ve&&(Te.position="sticky",Te.right=v);var Se={};q&&(Se.textAlign=q);var ue,he=U===!0?{showTitle:!0}:U;he&&(he.showTitle||re==="header")&&(typeof Z=="string"||typeof Z=="number"?ue=Z.toString():T.isValidElement(Z)&&typeof Z.props.children=="string"&&(ue=Z.props.children));var Xe=Object(x.a)(Object(x.a)(Object(x.a)({title:ue},te),X),{},{colSpan:me&&me!==1?me:null,rowSpan:Le&&Le!==1?Le:null,className:A()(ae,N,(m={},Object(R.a)(m,"".concat(ae,"-fix-left"),De),Object(R.a)(m,"".concat(ae,"-fix-left-first"),k),Object(R.a)(m,"".concat(ae,"-fix-left-last"),E),Object(R.a)(m,"".concat(ae,"-fix-right"),Ve),Object(R.a)(m,"".concat(ae,"-fix-right-first"),K),Object(R.a)(m,"".concat(ae,"-fix-right-last"),W),Object(R.a)(m,"".concat(ae,"-ellipsis"),U),Object(R.a)(m,"".concat(ae,"-with-append"),Y),Object(R.a)(m,"".concat(ae,"-fix-sticky"),(De||Ve)&&ce),m),X.className,ge),style:Object(x.a)(Object(x.a)(Object(x.a)(Object(x.a)({},X.style),Se),Te),Q),ref:D(a)?C:null});return T.createElement(a,Object.assign({},Xe),Y,Z)}var j=T.forwardRef(L);j.displayName="Cell";var l=T.memo(j,function(r,C){return C.shouldCellUpdate?!C.shouldCellUpdate(C.record,r.record):!1});B.a=l},hW8S:function(xe,B,t){"use strict";t.d(B,"a",function(){return ne}),t.d(B,"c",function(){return T}),t.d(B,"b",function(){return o});var R=t("VTBJ"),x=t("Ff2n"),J=t("Kwbf"),ne="RC_TABLE_INTERNAL_COL_DEFINE";function T(G){var A=G.expandable,c=Object(x.a)(G,["expandable"]);return"expandable"in G?Object(R.a)(Object(R.a)({},c),A):c}function o(G){return Object.keys(G).reduce(function(A,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-")&&(A[c]=G[c]),A},{})}},n6Qo:function(xe,B,t){"use strict";t.d(B,"a",function(){return A});var R=t("q1tI"),x=t("biw7"),J=t("fyJ8");function ne(c){var H=c.className,f=c.index,D=c.children,L=c.colSpan,j=c.rowSpan,l=R.useContext(x.a),r=l.prefixCls,C=l.fixedInfoList,m=C[f];return R.createElement(J.a,Object.assign({className:H,index:f,component:"td",prefixCls:r,record:null,dataIndex:null,render:function(){return{children:D,props:{colSpan:L,rowSpan:j}}}},m))}function T(c){return R.createElement("tr",Object.assign({},c))}function o(c){var H=c.children,f=R.useContext(x.a),D=f.prefixCls;return R.createElement("tfoot",{className:"".concat(D,"-summary")},H)}var G=B.b=o,A={Cell:ne,Row:T}},sR1s:function(xe,B,t){"use strict";t.d(B,"b",function(){return ne}),t.d(B,"a",function(){return T}),t.d(B,"c",function(){return o}),t.d(B,"d",function(){return G});var R=t("U8pU"),x="RC_TABLE_KEY";function J(A){return A==null?[]:Array.isArray(A)?A:[A]}function ne(A,c){if(!c&&typeof c!="number")return A;for(var H=J(c),f=A,D=0;D1)Object(H.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(N.length===0)return Object(H.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var p=N[0];if(o.isValidElement(p)&&Object(f.c)(p)){var I=p.ref;N[0]=o.cloneElement(p,{ref:Object(f.a)(I,this.setChildNode)})}return N.length===1?N[0]:N.map(function(i,g){return!o.isValidElement(i)||"key"in i&&i.key!==null?i:o.cloneElement(i,{key:"".concat(L,"-").concat(g)})})}}]),C}(o.Component);j.displayName="ResizeObserver",B.a=j},wCXF:function(xe,B,t){"use strict";t.d(B,"a",function(){return ze});var R=t("rePB"),x=t("VTBJ"),J=t("KQm4"),ne=t("U8pU"),T=t("ODXe"),o=t("q1tI"),G=t("TSYQ"),A=t.n(G),c=t("Gytx"),H=t.n(c),f=t("Kwbf"),D=t("t23M"),L=t("qx4F"),j=t("6eGT"),l=t("IBYe"),r=t("Ff2n"),C=t("c+Xe"),m=t("fyJ8"),P=t("biw7");function N(s,S,M,z,V){var h=M[s]||{},b=M[S]||{},y,_;h.fixed==="left"?y=z.left[s]:b.fixed==="right"&&(_=z.right[S]);var F=!1,w=!1,$=!1,oe=!1,ee=M[S+1],se=M[s-1];if(V==="rtl"){if(y!==void 0){var Pe=se&&se.fixed==="left";oe=!Pe}else if(_!==void 0){var ye=ee&&ee.fixed==="right";$=!ye}}else if(y!==void 0){var _e=ee&&ee.fixed==="left";F=!_e}else if(_!==void 0){var ie=se&&se.fixed==="right";w=!ie}return{fixLeft:y,fixRight:_,lastFixLeft:F,firstFixRight:w,lastFixRight:$,firstFixLeft:oe,isSticky:z.isSticky}}var p=t("sR1s");function I(s){var S=s.cells,M=s.stickyOffsets,z=s.flattenColumns,V=s.rowComponent,h=s.cellComponent,b=s.onHeaderRow,y=s.index,_=o.useContext(P.a),F=_.prefixCls,w=_.direction,$;b&&($=b(S.map(function(ee){return ee.column}),y));var oe=Object(p.a)(S.map(function(ee){return ee.column}));return o.createElement(V,Object.assign({},$),S.map(function(ee,se){var Pe=ee.column,ye=N(ee.colStart,ee.colEnd,z,M,w),_e;return Pe&&Pe.onHeaderCell&&(_e=ee.column.onHeaderCell(Pe)),o.createElement(m.a,Object.assign({},ee,{ellipsis:Pe.ellipsis,align:Pe.align,component:h,prefixCls:F,key:oe[se]},ye,{additionalProps:_e,rowType:"header"}))}))}I.displayName="HeaderRow";var i=I;function g(s){var S=[];function M(b,y){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;S[_]=S[_]||[];var F=y,w=b.filter(Boolean).map(function($){var oe={key:$.key,className:$.className||"",children:$.title,column:$,colStart:F},ee=1,se=$.children;return se&&se.length>0&&(ee=M(se,F,_+1).reduce(function(Pe,ye){return Pe+ye},0),oe.hasSubColumns=!0),"colSpan"in $&&(ee=$.colSpan),"rowSpan"in $&&(oe.rowSpan=$.rowSpan),oe.colSpan=ee,oe.colEnd=oe.colStart+ee-1,S[_].push(oe),F+=ee,ee});return w}M(s,0);for(var z=S.length,V=function(y){S[y].forEach(function(_){!("rowSpan"in _)&&!_.hasSubColumns&&(_.rowSpan=z-y)})},h=0;h=0;y-=1){var _=S[y],F=M&&M[y],w=F&&F[a.a];(_||w||b)&&(V.unshift(o.createElement("col",Object.assign({key:y,style:{width:_,minWidth:_}},w))),b=!0)}return o.createElement("colgroup",null,V)}var d=e;function u(s,S){return Object(o.useMemo)(function(){for(var M=[],z=0;z1?Ge-1:0),ct=1;ct=$&&(Me=$-oe),b({scrollLeft:Me/$*(w+2)}),ie.current.x=pe.pageX},Fe=function(){var pe=Object(Ve.b)(h.current).top,Ke=pe+h.current.offsetHeight,$e=document.documentElement.scrollTop+window.innerHeight;Ke-Object(L.a)()<=$e||pe>=$e-y?_e(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!0})}):_e(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!1})})},Ue=function(pe){_e(function(Ke){return Object(x.a)(Object(x.a)({},Ke),{},{scrollLeft:pe/w*$||0})})};return o.useImperativeHandle(M,function(){return{setScrollLeft:Ue}}),o.useEffect(function(){var Ne=Object(De.a)(document.body,"mouseup",Ze,!1),pe=Object(De.a)(document.body,"mousemove",qe,!1);return Fe(),function(){Ne.remove(),pe.remove()}},[oe,Ae]),o.useEffect(function(){var Ne=Object(De.a)(window,"scroll",Fe,!1),pe=Object(De.a)(window,"resize",Fe,!1);return function(){Ne.remove(),pe.remove()}},[]),o.useEffect(function(){ye.isHiddenScrollBar||_e(function(Ne){var pe,Ke;return Object(x.a)(Object(x.a)({},Ne),{},{scrollLeft:h.current.scrollLeft/((pe=h.current)===null||pe===void 0?void 0:pe.scrollWidth)*((Ke=h.current)===null||Ke===void 0?void 0:Ke.clientWidth)})})},[ye.isHiddenScrollBar]),w<=$||!oe||ye.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(L.a)(),width:$,bottom:y},className:"".concat(F,"-sticky-scroll")},o.createElement("div",{onMouseDown:je,ref:ee,className:A()("".concat(F,"-sticky-scroll-bar"),Object(R.a)({},"".concat(F,"-sticky-scroll-bar-active"),Ae)),style:{width:"".concat(oe,"px"),transform:"translate3d(".concat(ye.scrollLeft,"px, 0, 0)")}}))},ue=o.forwardRef(Se);function he(s,S){return o.useMemo(function(){var M=!!s;return{isSticky:M,stickyClassName:M?"".concat(S,"-sticky-header"):"",offsetHeader:Object(ne.a)(s)==="object"&&s.offsetHeader||0,offsetScroll:Object(ne.a)(s)==="object"&&s.offsetScroll||0}},[s,S])}var Xe=[],Je={},ze="rc-table-internal-hook",Ye=o.memo(function(s){var S=s.children;return S},function(s,S){return H()(s.props,S.props)?s.pingLeft!==S.pingLeft||s.pingRight!==S.pingRight:!1});function Be(s){var S,M=s.prefixCls,z=s.className,V=s.rowClassName,h=s.style,b=s.data,y=s.rowKey,_=s.scroll,F=s.tableLayout,w=s.direction,$=s.title,oe=s.footer,ee=s.summary,se=s.id,Pe=s.showHeader,ye=s.components,_e=s.emptyText,ie=s.onRow,Qe=s.onHeaderRow,we=s.internalHooks,Ae=s.transformColumns,We=s.internalRefs,Ze=s.sticky,je=b||Xe,qe=!!je.length,Fe=o.useState(0),Ue=Object(T.a)(Fe,2),Ne=Ue[0],pe=Ue[1];o.useEffect(function(){pe(Object(L.a)())});var Ke=o.useMemo(function(){return Object(p.c)(ye,{})},[ye]),$e=o.useCallback(function(Ee,Ce){return Object(p.b)(Ke,Ee)||Ce},[Ke]),et=o.useMemo(function(){return typeof y=="function"?y:function(Ee){var Ce=Ee&&Ee[y];return Ce}},[y]),Me=Object(a.c)(s),jt=Me.expandIcon,_t=Me.expandedRowKeys,Rt=Me.defaultExpandedRowKeys,lt=Me.defaultExpandAllRows,it=Me.expandedRowRender,mt=Me.onExpand,pt=Me.onExpandedRowsChange,Pt=Me.expandRowByClick,at=Me.rowExpandable,Et=Me.expandIconColumnIndex,ht=Me.expandedRowClassName,Kt=Me.childrenColumnName,Nt=Me.indentSize,vt=jt||Le,gt=Kt||"children",Tt=o.useMemo(function(){return it?"row":s.expandable&&we===ze&&s.expandable.__PARENT_RENDER_ICON__||je.some(function(Ee){return Ee&&Object(ne.a)(Ee)==="object"&&Ee[gt]})?"nest":!1},[!!it,je]),Dt=o.useState(function(){return Rt||(lt?Te(je,et,gt):[])}),He=Object(T.a)(Dt,2),tt=He[0],ot=He[1],Ge=o.useMemo(function(){return new Set(_t||tt||[])},[_t,tt]),dt=o.useCallback(function(Ee){var Ce=et(Ee,je.indexOf(Ee)),ke,nt=Ge.has(Ce);nt?(Ge.delete(Ce),ke=Object(J.a)(Ge)):ke=[].concat(Object(J.a)(Ge),[Ce]),ot(ke),mt&&mt(!nt,Ee),pt&&pt(ke)},[et,Ge,je,mt,pt]),ct=o.useState(0),St=Object(T.a)(ct,2),Ct=St[0],Mt=St[1],vn=Object(Z.b)(Object(x.a)(Object(x.a)(Object(x.a)({},s),Me),{},{expandable:!!it,expandedKeys:Ge,getRowKey:et,onTriggerExpand:dt,expandIcon:vt,expandIconColumnIndex:Et,direction:w}),we===ze?Ae:null),Yt=Object(T.a)(vn,2),Bt=Yt[0],Ie=Yt[1],Lt=o.useMemo(function(){return{columns:Bt,flattenColumns:Ie}},[Bt,Ie]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(T.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(T.a)(gn,2),tn=en[0],Cn=en[1],yn=fe(new Map),nn=Object(T.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(p.a)(Ie),an=jn.map(function(Ee){return On.get(Ee)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Q(on,Ie.length,w),rt=_&&Object(p.d)(_.y),st=_&&Object(p.d)(_.x),yt=st&&Ie.some(function(Ee){var Ce=Ee.fixed;return Ce}),rn=o.useRef(),wt=he(Ze,M),Ot=wt.isSticky,_n=wt.offsetHeader,Rn=wt.offsetScroll,Pn=wt.stickyClassName,kt,Ut,zt;rt&&(Ut={overflowY:"scroll",maxHeight:_.y}),st&&(kt={overflowX:"auto"},rt||(Ut={overflowY:"hidden"}),zt={width:_.x===!0?"auto":_.x,minWidth:"100%"});var ln=o.useCallback(function(Ee,Ce){xn(function(ke){var nt=new Map(ke);return nt.set(Ee,Ce),nt})},[]),Nn=Re(null),sn=Object(T.a)(Nn,2),Tn=sn[0],dn=sn[1];function Ft(Ee,Ce){if(!Ce)return;typeof Ce=="function"?Ce(Ee):Ce.scrollLeft!==Ee&&(Ce.scrollLeft=Ee)}var bt=function(Ce){var ke=Ce.currentTarget,nt=Ce.scrollLeft,xt=typeof nt=="number"?nt:ke.scrollLeft,hn=ke||Je;if(!dn()||dn()===hn){var Jt;Tn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(ke){var Un=ke.scrollWidth,In=ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(x.a)(r),Object(x.a)(f(N).map(function(p){return Object(J.a)({fixed:P},p)}))):[].concat(Object(x.a)(r),[Object(J.a)(Object(J.a)({},C),{},{fixed:P})])},[])}function D(l){for(var r=!0,C=0;C=0;N-=1){var p=l[N];if(P&&p.fixed!=="right")P=!1;else if(!P&&p.fixed==="right"){Object(G.a)(!1,"Index ".concat(N+1," of `columns` missing `fixed='right'` prop."));break}}}function L(l){return l.map(function(r){var C=r.fixed,m=Object(ne.a)(r,["fixed"]),P=C;return C==="left"?P="right":C==="right"&&(P="left"),Object(J.a)({fixed:P},m)})}function j(l,r){var C=l.prefixCls,m=l.columns,P=l.children,N=l.expandable,p=l.expandedKeys,I=l.getRowKey,i=l.onTriggerExpand,g=l.expandIcon,O=l.rowExpandable,n=l.expandIconColumnIndex,a=l.direction,e=l.expandRowByClick,d=T.useMemo(function(){return m||H(P)},[m,P]),u=T.useMemo(function(){if(N){var E,K=n||0,W=d[K],Y=(E={},Object(R.a)(E,c.a,{className:"".concat(C,"-expand-icon-col")}),Object(R.a)(E,"title",""),Object(R.a)(E,"fixed",W?W.fixed:null),Object(R.a)(E,"className","".concat(C,"-row-expand-icon-cell")),Object(R.a)(E,"render",function(U,q,re){var ce=I(q,re),ae=p.has(ce),be=O?O(q):!0,Z=g({prefixCls:C,expanded:ae,expandable:be,record:q,onExpand:i});return e?T.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},Z):Z}),E),de=d.slice();return K>=0&&de.splice(K,0,Y),de}return d},[N,d,I,p,g,a]),v=T.useMemo(function(){var E=u;return r&&(E=r(E)),E.length||(E=[{render:function(){return null}}]),E},[r,u,a]),k=T.useMemo(function(){return a==="rtl"?L(f(v)):f(v)},[v,a]);return[v,k]}B.b=j},wYHl:function(xe,B,t){xe.exports={flex_box_center:"flex_box_center___-FvEc",flex_space_between:"flex_space_between___1gAWn",flex_box_vertical_center:"flex_box_vertical_center___2eYgK",flex_box_center_end:"flex_box_center_end___QGmbe",flex_box_column:"flex_box_column___35AfO",content:"content___vWzf2",header:"header___2YsSm",span:"span___3Tl2t",title:"title___1Iyos",textone:"textone___1Ul4b"}},"y0+3":function(xe,B,t){"use strict";t.d(B,"a",function(){return f}),t.d(B,"b",function(){return L});var R=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},J={cssFloat:1,styleFloat:1,float:1};function ne(j){return j.nodeType===1?j.ownerDocument.defaultView.getComputedStyle(j,null):{}}function T(j,l,r){if(l=l.toLowerCase(),r==="auto"){if(l==="height")return j.offsetHeight;if(l==="width")return j.offsetWidth}return l in x||(x[l]=R.test(l)),x[l]?parseFloat(r)||0:r}function o(j,l){var r=arguments.length,C=ne(j);return l=J[l]?"cssFloat"in j.style?"cssFloat":"styleFloat":l,r===1?C:T(j,l,C[l]||j.style[l])}function G(j,l,r){var C=arguments.length;if(l=J[l]?"cssFloat"in j.style?"cssFloat":"styleFloat":l,C===3)return typeof r=="number"&&R.test(l)&&(r="".concat(r,"px")),j.style[l]=r,r;for(var m in l)l.hasOwnProperty(m)&&G(j,m,l[m]);return ne(j)}function A(j){return j===document.body?document.documentElement.clientWidth:j.offsetWidth}function c(j){return j===document.body?window.innerHeight||document.documentElement.clientHeight:j.offsetHeight}function H(){var j=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),l=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:j,height:l}}function f(){var j=document.documentElement.clientWidth,l=window.innerHeight||document.documentElement.clientHeight;return{width:j,height:l}}function D(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function L(j){var l=j.getBoundingClientRect(),r=document.documentElement;return{left:l.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:l.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[60,8],{"6+eU":function(xe,B,t){"use strict";t.d(B,"a",function(){return i});var R=t("wx14"),x=t("rePB"),J=t("VTBJ"),ne=t("1OyB"),N=t("vuIU"),o=t("Ji7U"),G=t("LK+K"),A=t("q1tI"),c=t.n(A),H=t("TSYQ"),f=t.n(H),D=function(O){var n,a="".concat(O.rootPrefixCls,"-item"),e=f()(a,"".concat(a,"-").concat(O.page),(n={},Object(x.a)(n,"".concat(a,"-active"),O.active),Object(x.a)(n,O.className,!!O.className),Object(x.a)(n,"".concat(a,"-disabled"),!O.page),n)),d=function(){O.onClick(O.page)},u=function(k){O.onKeyPress(k,O.onClick,O.page)};return c.a.createElement("li",{title:O.showTitle?O.page:null,className:e,onClick:d,onKeyPress:u,tabIndex:"0"},O.itemRender(O.page,"page",c.a.createElement("a",{rel:"nofollow"},O.page)))},L=D,j={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},l=function(g){Object(o.a)(n,g);var O=Object(G.a)(n);function n(){var a;Object(ne.a)(this,n);for(var e=arguments.length,d=new Array(e),u=0;u=0||v.relatedTarget.className.indexOf("".concat(W,"-next"))>=0))return;a.setState({goInputText:""}),K(a.getValidValue())},a.go=function(v){var k=a.state.goInputText;if(k==="")return;(v.keyCode===j.ENTER||v.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(N.a)(n,[{key:"getValidValue",value:function(){var e=this.state,d=e.goInputText,u=e.current;return!d||isNaN(d)?u:Number(d)}},{key:"getPageSizeOptions",value:function(){var e=this.props,d=e.pageSize,u=e.pageSizeOptions;return u.some(function(v){return v.toString()===d.toString()})?u:u.concat([d.toString()]).sort(function(v,k){var E=isNaN(Number(v))?0:Number(v),K=isNaN(Number(k))?0:Number(k);return E-K})}},{key:"render",value:function(){var e=this,d=this.props,u=d.pageSize,v=d.locale,k=d.rootPrefixCls,E=d.changeSize,K=d.quickGo,W=d.goButton,Y=d.selectComponentClass,de=d.buildOptionText,X=d.selectPrefixCls,U=d.disabled,q=this.state.goInputText,re="".concat(k,"-options"),ce=Y,ae=null,be=null,Z=null;if(!E&&!K)return null;var Oe=this.getPageSizeOptions();if(E&&ce){var ve=Oe.map(function(fe,Re){return c.a.createElement(ce.Option,{key:Re,value:fe.toString()},(de||e.buildOptionText)(fe))});ae=c.a.createElement(ce,{disabled:U,prefixCls:X,showSearch:!1,className:"".concat(re,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(u||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Re){return Re.parentNode}},ve)}return K&&(W&&(Z=typeof W=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:U,className:"".concat(re,"-quick-jumper-button")},v.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},W)),be=c.a.createElement("div",{className:"".concat(re,"-quick-jumper")},v.jump_to,c.a.createElement("input",{disabled:U,type:"text",value:q,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),v.page,Z)),c.a.createElement("li",{className:"".concat(re)},ae,be)}}]),n}(c.a.Component);l.defaultProps={pageSizeOptions:["10","20","50","100"]};var r=l,C=t("N2Kk");function m(){}function P(g){return typeof g=="number"&&isFinite(g)&&Math.floor(g)===g}function T(g,O,n){return n}function p(g,O,n){var a=typeof g=="undefined"?O.pageSize:g;return Math.floor((n.total-1)/a)+1}var I=function(g){Object(o.a)(n,g);var O=Object(G.a)(n);function n(a){var e;Object(ne.a)(this,n),e=O.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(p(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(E,K){var W=e.props.prefixCls,Y=E||c.a.createElement("button",{type:"button","aria-label":K,className:"".concat(W,"-item-link")});return typeof E=="function"&&(Y=c.a.createElement(E,Object(J.a)({},e.props))),Y},e.savePaginationNode=function(E){e.paginationNode=E},e.isValid=function(E){return P(E)&&E!==e.state.current},e.shouldDisplayQuickJumper=function(){var E=e.props,K=E.showQuickJumper,W=E.pageSize,Y=E.total;return Y<=W?!1:K},e.handleKeyDown=function(E){(E.keyCode===j.ARROW_UP||E.keyCode===j.ARROW_DOWN)&&E.preventDefault()},e.handleKeyUp=function(E){var K=e.getValidValue(E),W=e.state.currentInputValue;K!==W&&e.setState({currentInputValue:K}),E.keyCode===j.ENTER?e.handleChange(K):E.keyCode===j.ARROW_UP?e.handleChange(K-1):E.keyCode===j.ARROW_DOWN&&e.handleChange(K+1)},e.changePageSize=function(E){var K=e.state.current,W=p(E,e.state,e.props);K=K>W?W:K,W===0&&(K=e.state.current),typeof E=="number"&&("pageSize"in e.props||e.setState({pageSize:E}),"current"in e.props||e.setState({current:K,currentInputValue:K})),e.props.onShowSizeChange(K,E),"onChange"in e.props&&e.props.onChange&&e.props.onChange(K,E)},e.handleChange=function(E){var K=e.props.disabled,W=E;if(e.isValid(W)&&!K){var Y=p(void 0,e.state,e.props);W>Y?W=Y:W<1&&(W=1),"current"in e.props||e.setState({current:W,currentInputValue:W});var de=e.state.pageSize;return e.props.onChange(W,de),W}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?W-2:0),de=2;de=u?k=u:k=Number(d),k}},{key:"getShowSizeChanger",value:function(){var e=this.props,d=e.showSizeChanger,u=e.total,v=e.totalBoundaryShowSizeChanger;return typeof d!="undefined"?d:u>v}},{key:"renderPrev",value:function(e){var d=this.props,u=d.prevIcon,v=d.itemRender,k=v(e,"prev",this.getItemIcon(u,"prev page")),E=!this.hasPrev();return Object(A.isValidElement)(k)?Object(A.cloneElement)(k,{disabled:E}):k}},{key:"renderNext",value:function(e){var d=this.props,u=d.nextIcon,v=d.itemRender,k=v(e,"next",this.getItemIcon(u,"next page")),E=!this.hasNext();return Object(A.isValidElement)(k)?Object(A.cloneElement)(k,{disabled:E}):k}},{key:"render",value:function(){var e=this,d=this.props,u=d.prefixCls,v=d.className,k=d.style,E=d.disabled,K=d.hideOnSinglePage,W=d.total,Y=d.locale,de=d.showQuickJumper,X=d.showLessItems,U=d.showTitle,q=d.showTotal,re=d.simple,ce=d.itemRender,ae=d.showPrevNextJumpers,be=d.jumpPrevIcon,Z=d.jumpNextIcon,Oe=d.selectComponentClass,ve=d.selectPrefixCls,fe=d.pageSizeOptions,Re=this.state,le=Re.current,Q=Re.pageSize,ge=Re.currentInputValue;if(K===!0&&W<=Q)return null;var te=p(void 0,this.state,this.props),me=[],Le=null,Ne=null,De=null,Ve=null,Se=null,ue=de&&de.goButton,he=X?1:2,Xe=le-1>0?le-1:0,Je=le+1=he*2&&le!==1+2&&(me[0]=Object(A.cloneElement)(me[0],{className:"".concat(u,"-item-after-jump-prev")}),me.unshift(Le)),te-le>=he*2&&le!==te-2&&(me[me.length-1]=Object(A.cloneElement)(me[me.length-1],{className:"".concat(u,"-item-before-jump-next")}),me.push(Ne)),M!==1&&me.unshift(De),z!==te&&me.push(Ve)}var b=null;q&&(b=c.a.createElement("li",{className:"".concat(u,"-total-text")},q(W,[W===0?0:(le-1)*Q+1,le*Q>W?W:le*Q])));var y=!this.hasPrev()||!te,_=!this.hasNext()||!te;return c.a.createElement("ul",Object(R.a)({className:f()(u,v,Object(x.a)({},"".concat(u,"-disabled"),E)),style:k,unselectable:"unselectable",ref:this.savePaginationNode},ze),b,c.a.createElement("li",{title:U?Y.prev_page:null,onClick:this.prev,tabIndex:y?null:0,onKeyPress:this.runIfEnterPrev,className:f()("".concat(u,"-prev"),Object(x.a)({},"".concat(u,"-disabled"),y)),"aria-disabled":y},this.renderPrev(Xe)),me,c.a.createElement("li",{title:U?Y.next_page:null,onClick:this.next,tabIndex:_?null:0,onKeyPress:this.runIfEnterNext,className:f()("".concat(u,"-next"),Object(x.a)({},"".concat(u,"-disabled"),_)),"aria-disabled":_},this.renderNext(Je)),c.a.createElement(r,{disabled:E,locale:Y,rootPrefixCls:u,selectComponentClass:Oe,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:le,pageSize:Q,pageSizeOptions:fe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ue}))}}],[{key:"getDerivedStateFromProps",value:function(e,d){var u={};if("current"in e&&(u.current=e.current,e.current!==d.current&&(u.currentInputValue=u.current)),"pageSize"in e&&e.pageSize!==d.pageSize){var v=d.current,k=p(e.pageSize,d,e);v=v>k?k:v,"current"in e||(u.current=v,u.currentInputValue=v),u.pageSize=e.pageSize}return u}}]),n}(c.a.Component);I.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:m,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:m,locale:C.a,style:{},itemRender:T,totalBoundaryShowSizeChanger:50};var i=I},"6RRn":function(xe,B,t){"use strict";var R=t("wCXF"),x=t("n6Qo");t.d(B,"b",function(){return x.a});var J=t("IBYe"),ne=t("6eGT"),N=t("hW8S");t.d(B,"a",function(){return N.a}),B.c=R.b},"6eGT":function(xe,B,t){"use strict";function R(x){return null}B.a=R},"815F":function(xe,B,t){"use strict";t.d(B,"e",function(){return G}),t.d(B,"c",function(){return c}),t.d(B,"d",function(){return H}),t.d(B,"a",function(){return D}),t.d(B,"f",function(){return L}),t.d(B,"b",function(){return j});var R=t("KQm4"),x=t("VTBJ"),J=t("Ff2n"),ne=t("Zm9Q"),N=t("Kwbf"),o=t("OZM5");function G(l,r){return l!=null?l:r}function A(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=new Map;function C(m){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(m||[]).forEach(function(T){var p=T.key,I=T.children;Object(N.a)(p!=null,"Tree node must have a certain key: [".concat(P).concat(p,"]"));var i=String(p);Object(N.a)(!r.has(i)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(i)),r.set(i,!0),C(I,"".concat(P).concat(i," > "))})}C(l)}function c(l){function r(C){var m=Object(ne.a)(C);return m.map(function(P){if(!Object(o.i)(P))return Object(N.a)(!P,"Tree/TreeNode can only accept TreeNode as children."),null;var T=P.key,p=P.props,I=p.children,i=Object(J.a)(p,["children"]),g=Object(x.a)({key:T},i),O=r(I);return O.length&&(g.children=O),g}).filter(function(P){return P})}return r(l)}function H(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],C=new Set(r===!0?[]:r),m=[];function P(T){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return T.map(function(I,i){var g=Object(o.h)(p?p.pos:"0",i),O=G(I.key,g),n=Object(x.a)(Object(x.a)({},I),{},{parent:p,pos:g,children:null,data:I,isStart:[].concat(Object(R.a)(p?p.isStart:[]),[i===0]),isEnd:[].concat(Object(R.a)(p?p.isEnd:[]),[i===T.length-1])});return m.push(n),r===!0||C.has(O)?n.children=P(I.children||[],n):n.children=[],n})}return P(l),m}function f(l,r,C){var m;C?typeof C=="string"?m=function(p){return p[C]}:typeof C=="function"&&(m=function(p){return C(p)}):m=function(p,I){return G(p.key,I)};function P(T,p,I){var i=T?T.children:l,g=T?Object(o.h)(I.pos,p):"0";if(T){var O=m(T,g),n={node:T,index:p,pos:g,key:O,parentPos:I.node?I.pos:null,level:I.level+1};r(n)}i&&i.forEach(function(a,e){P(a,e,{node:T,pos:g,level:I?I.level+1:-1})})}P(null)}function D(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=r.initWrapper,m=r.processEntity,P=r.onProcessFinished,T=arguments.length>2?arguments[2]:void 0,p={},I={},i={posEntities:p,keyEntities:I};return C&&(i=C(i)||i),f(l,function(g){var O=g.node,n=g.index,a=g.pos,e=g.key,d=g.parentPos,u=g.level,v={node:O,index:n,key:e,pos:a,level:u},k=G(e,a);p[a]=v,I[k]=v,v.parent=p[d],v.parent&&(v.parent.children=v.parent.children||[],v.parent.children.push(v)),m&&m(v,i)},T),P&&P(i),i}function L(l,r){var C=r.expandedKeys,m=r.selectedKeys,P=r.loadedKeys,T=r.loadingKeys,p=r.checkedKeys,I=r.halfCheckedKeys,i=r.dragOverNodeKey,g=r.dropPosition,O=r.keyEntities,n=O[l],a={eventKey:l,expanded:C.indexOf(l)!==-1,selected:m.indexOf(l)!==-1,loaded:P.indexOf(l)!==-1,loading:T.indexOf(l)!==-1,checked:p.indexOf(l)!==-1,halfChecked:I.indexOf(l)!==-1,pos:String(n?n.pos:""),dragOver:i===l&&g===0,dragOverGapTop:i===l&&g===-1,dragOverGapBottom:i===l&&g===1};return a}function j(l){var r=l.data,C=l.expanded,m=l.selected,P=l.checked,T=l.loaded,p=l.loading,I=l.halfChecked,i=l.dragOver,g=l.dragOverGapTop,O=l.dragOverGapBottom,n=l.pos,a=l.active,e=Object(x.a)(Object(x.a)({},r),{},{expanded:C,selected:m,checked:P,loaded:T,loading:p,halfChecked:I,dragOver:i,dragOverGapTop:g,dragOverGapBottom:O,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(N.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),l}}),e}},BU3w:function(xe,B,t){"use strict";t.d(B,"a",function(){return o});var R=t("MNnm"),x="rc-util-key";function J(G){if(G.attachTo)return G.attachTo;var A=document.querySelector("head");return A||document.body}function ne(G){var A,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(R.a)())return null;var H=document.createElement("style");if((A=c.csp)===null||A===void 0?void 0:A.nonce){var f;H.nonce=(f=c.csp)===null||f===void 0?void 0:f.nonce}H.innerHTML=G;var D=J(c),L=D.firstChild;return c.prepend&&D.prepend?D.prepend(H):c.prepend&&L?D.insertBefore(H,L):D.appendChild(H),H}var N=new Map;function o(G,A){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=J(c);if(!N.has(H)){var f=ne("",c),D=f.parentNode;N.set(H,D),D.removeChild(f)}var L=Array.from(N.get(H).children).find(function(m){return m.tagName==="STYLE"&&m[x]===A});if(L){var j,l;if(((j=c.csp)===null||j===void 0?void 0:j.nonce)&&L.nonce!==((l=c.csp)===null||l===void 0?void 0:l.nonce)){var r;L.nonce=(r=c.csp)===null||r===void 0?void 0:r.nonce}return L.innerHTML!==G&&(L.innerHTML=G),L}var C=ne(G,c);return C[x]=A,C}},IBYe:function(xe,B,t){"use strict";function R(x){return null}B.a=R},LdHM:function(xe,B,t){"use strict";t.d(B,"b",function(){return T}),t.d(B,"a",function(){return I});var R=t("1OyB"),x=t("vuIU"),J=t("Ji7U"),ne=t("LK+K"),N=t("q1tI"),o=t("rePB"),G=t("Ff2n"),A=t("ODXe"),c=t("4IlW"),H=t("bX4T"),f=t("YrtM"),D=t("TSYQ"),L=t.n(D),j=t("+nKL"),l=t("8OUc"),r=function(U,q){var re=U.prefixCls,ce=U.id,ae=U.flattenOptions,be=U.childrenAsData,Z=U.values,Oe=U.searchValue,ve=U.multiple,fe=U.defaultActiveFirstOption,Re=U.height,le=U.itemHeight,Q=U.notFoundContent,ge=U.open,te=U.menuItemSelectedIcon,me=U.virtual,Le=U.onSelect,Ne=U.onToggleOpen,De=U.onActiveValue,Ve=U.onScroll,Se=U.onMouseEnter,ue="".concat(re,"-item"),he=Object(f.a)(function(){return ae},[ge,ae],function(h,b){return b[0]&&h[1]!==b[1]}),Xe=N.useRef(null),Je=function(b){b.preventDefault()},ze=function(b){Xe.current&&Xe.current.scrollTo({index:b})},Ye=function(b){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_=he.length,F=0;F<_;F+=1){var w=(b+F*y+_)%_,$=he[w],oe=$.group,ee=$.data;if(!oe&&!ee.disabled)return w}return-1},Be=N.useState(function(){return Ye(0)}),ft=Object(A.a)(Be,2),s=ft[0],S=ft[1],M=function(b){S(b);var y=he[b];if(!y){De(null,-1);return}De(y.data.value,b)};N.useEffect(function(){M(fe!==!1?Ye(0):-1)},[he.length,Oe]),N.useEffect(function(){var h=setTimeout(function(){if(!ve&&ge&&Z.size===1){var b=Array.from(Z)[0],y=he.findIndex(function(_){var F=_.data;return F.value===b});M(y),ze(y)}});return function(){return clearTimeout(h)}},[ge]);var z=function(b){b!==void 0&&Le(b,{selected:!Z.has(b)}),ve||Ne(!1)};if(N.useImperativeHandle(q,function(){return{onKeyDown:function(b){var y=b.which;switch(y){case c.a.UP:case c.a.DOWN:{var _=0;if(y===c.a.UP?_=-1:y===c.a.DOWN&&(_=1),_!==0){var F=Ye(s+_,_);ze(F),M(F)}break}case c.a.ENTER:{var w=he[s];w&&!w.data.disabled?z(w.data.value):z(void 0),ge&&b.preventDefault();break}case c.a.ESC:Ne(!1)}},onKeyUp:function(){},scrollTo:function(b){ze(b)}}}),he.length===0)return N.createElement("div",{role:"listbox",id:"".concat(ce,"_list"),className:"".concat(ue,"-empty"),onMouseDown:Je},Q);function V(h){var b=he[h];if(!b)return null;var y=b.data||{},_=y.value,F=y.label,w=y.children,$=Object(H.a)(y,!0),oe=be?w:F;return b?N.createElement("div",Object.assign({"aria-label":typeof oe=="string"?oe:null},$,{key:h,role:"option",id:"".concat(ce,"_list_").concat(h),"aria-selected":Z.has(_)}),_):null}return N.createElement(N.Fragment,null,N.createElement("div",{role:"listbox",id:"".concat(ce,"_list"),style:{height:0,width:0,overflow:"hidden"}},V(s-1),V(s),V(s+1)),N.createElement(j.a,{itemKey:"key",ref:Xe,data:he,height:Re,itemHeight:le,fullHeight:!1,onMouseDown:Je,onScroll:Ve,virtual:me,onMouseEnter:Se},function(h,b){var y,_=h.group,F=h.groupOption,w=h.data,$=w.label,oe=w.key;if(_)return N.createElement("div",{className:L()(ue,"".concat(ue,"-group"))},$!==void 0?$:oe);var ee=w.disabled,se=w.value,Pe=w.title,ye=w.children,_e=w.style,ie=w.className,Qe=Object(G.a)(w,["disabled","value","title","children","style","className"]),we=Z.has(se),Ae="".concat(ue,"-option"),We=L()(ue,Ae,ie,(y={},Object(o.a)(y,"".concat(Ae,"-grouped"),F),Object(o.a)(y,"".concat(Ae,"-active"),s===b&&!ee),Object(o.a)(y,"".concat(Ae,"-disabled"),ee),Object(o.a)(y,"".concat(Ae,"-selected"),we),y)),Ze=be?ye:$,je=!te||typeof te=="function"||we;return N.createElement("div",Object.assign({},Qe,{"aria-selected":we,className:We,title:Pe,onMouseMove:function(){if(s===b||ee)return;M(b)},onClick:function(){ee||z(se)},style:_e}),N.createElement("div",{className:"".concat(Ae,"-content")},Ze||se),N.isValidElement(te)||we,je&&N.createElement(l.a,{className:"".concat(ue,"-option-state"),customizeIcon:te,customizeIconProps:{isSelected:we}},we?"\u2713":null))}))},C=N.forwardRef(r);C.displayName="OptionList";var m=C,P=function(){return null};P.isSelectOption=!0;var T=P,p=function(){return null};p.isSelectOptGroup=!0;var I=p,i=t("VTBJ"),g=t("Zm9Q");function O(X){var U=X.key,q=X.props,re=q.children,ce=q.value,ae=Object(G.a)(q,["children","value"]);return Object(i.a)({key:U,value:ce!==void 0?ce:U,children:re},ae)}function n(X){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(g.a)(X).map(function(q,re){if(!N.isValidElement(q)||!q.type)return null;var ce=q.type.isSelectOptGroup,ae=q.key,be=q.props,Z=be.children,Oe=Object(G.a)(be,["children"]);return U||!ce?O(q):Object(i.a)(Object(i.a)({key:"__RC_SELECT_GRP__".concat(ae===null?re:ae,"__"),label:ae},Oe),{},{options:n(Z)})}).filter(function(q){return q})}var a=t("2Qr1"),e=t("qNPg"),d=t("U8pU"),u=t("Kwbf"),v=t("WKfj");function k(X){var U=X.mode,q=X.options,re=X.children,ce=X.backfill,ae=X.allowClear,be=X.placeholder,Z=X.getInputElement,Oe=X.showSearch,ve=X.onSearch,fe=X.defaultOpen,Re=X.autoFocus,le=X.labelInValue,Q=X.value,ge=X.inputValue,te=X.optionLabelProp,me=U==="multiple"||U==="tags",Le=Oe!==void 0?Oe:me||U==="combobox",Ne=q||n(re);if(Object(u.a)(U!=="tags"||Ne.every(function(ue){return!ue.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),U==="tags"||U==="combobox"){var De=Ne.some(function(ue){return ue.options?ue.options.some(function(he){return typeof("value"in he?he.value:he.key)=="number"}):typeof("value"in ue?ue.value:ue.key)=="number"});Object(u.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(u.a)(U!=="combobox"||!te,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(u.a)(U==="combobox"||!ce,"`backfill` only works with `combobox` mode."),Object(u.a)(U==="combobox"||!Z,"`getInputElement` only work with `combobox` mode."),Object(u.b)(U!=="combobox"||!Z||!ae||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!Le&&U!=="combobox"&&U!=="tags"&&Object(u.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(u.b)(!fe||Re,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Q!=null){var Ve=Object(v.d)(Q);Object(u.a)(!le||Ve.every(function(ue){return Object(d.a)(ue)==="object"&&("key"in ue||"value"in ue)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(u.a)(!me||Array.isArray(Q),"`value` should be array when `mode` is `multiple` or `tags`")}if(re){var Se=null;Object(g.a)(re).some(function(ue){if(!N.isValidElement(ue)||!ue.type)return!1;var he=ue.type;if(he.isSelectOption)return!1;if(he.isSelectOptGroup){var Xe=Object(g.a)(ue.props.children).every(function(Je){return!N.isValidElement(Je)||!ue.type||Je.type.isSelectOption?!0:(Se=Je.type,!1)});return!Xe}return Se=he,!0}),Se&&Object(u.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Se.displayName||Se.name||Se,"`.")),Object(u.a)(ge===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var E=k,K=Object(e.a)({prefixCls:"rc-select",components:{optionList:m},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:E,fillOptionsWithMissingValue:a.a}),W=function(X){Object(J.a)(q,X);var U=Object(ne.a)(q);function q(){var re;return Object(R.a)(this,q),re=U.apply(this,arguments),re.selectRef=N.createRef(),re.focus=function(){re.selectRef.current.focus()},re.blur=function(){re.selectRef.current.blur()},re}return Object(x.a)(q,[{key:"render",value:function(){return N.createElement(K,Object.assign({ref:this.selectRef},this.props))}}]),q}(N.Component);W.Option=T,W.OptGroup=I;var Y=W,de=B.c=Y},NvD2:function(xe,B,t){"use strict";t.d(B,"a",function(){return o});var R=t("Kwbf");function x(G,A){var c=new Set;return G.forEach(function(H){A.has(H)||c.add(H)}),c}function J(G){var A=G||{},c=A.disabled,H=A.disableCheckbox,f=A.checkable;return!!(c||H)||f===!1}function ne(G,A,c,H){for(var f=new Set(G),D=new Set,L=0;L<=c;L+=1){var j=A.get(L)||new Set;j.forEach(function(m){var P=m.key,T=m.node,p=m.children,I=p===void 0?[]:p;f.has(P)&&!H(T)&&I.filter(function(i){return!H(i.node)}).forEach(function(i){f.add(i.key)})})}for(var l=new Set,r=c;r>=0;r-=1){var C=A.get(r)||new Set;C.forEach(function(m){var P=m.parent,T=m.node;if(H(T)||!m.parent||l.has(m.parent.key))return;if(H(m.parent.node)){l.add(P.key);return}var p=!0,I=!1;(P.children||[]).filter(function(i){return!H(i.node)}).forEach(function(i){var g=i.key,O=f.has(g);p&&!O&&(p=!1),!I&&(O||D.has(g))&&(I=!0)}),p&&f.add(P.key),I&&D.add(P.key),l.add(P.key)})}return{checkedKeys:Array.from(f),halfCheckedKeys:Array.from(x(D,f))}}function N(G,A,c,H,f){for(var D=new Set(G),L=new Set(A),j=0;j<=H;j+=1){var l=c.get(j)||new Set;l.forEach(function(P){var T=P.key,p=P.node,I=P.children,i=I===void 0?[]:I;!D.has(T)&&!L.has(T)&&!f(p)&&i.filter(function(g){return!f(g.node)}).forEach(function(g){D.delete(g.key)})})}L=new Set;for(var r=new Set,C=H;C>=0;C-=1){var m=c.get(C)||new Set;m.forEach(function(P){var T=P.parent,p=P.node;if(f(p)||!P.parent||r.has(P.parent.key))return;if(f(P.parent.node)){r.add(T.key);return}var I=!0,i=!1;(T.children||[]).filter(function(g){return!f(g.node)}).forEach(function(g){var O=g.key,n=D.has(O);I&&!n&&(I=!1),!i&&(n||L.has(O))&&(i=!0)}),I||D.delete(T.key),i&&L.add(T.key),r.add(T.key)})}return{checkedKeys:Array.from(D),halfCheckedKeys:Array.from(x(L,D))}}function o(G,A,c,H){var f=[],D;H?D=H:D=J;var L=new Set(G.filter(function(C){var m=!!c[C];return m||f.push(C),m})),j=new Map,l=0;Object.keys(c).forEach(function(C){var m=c[C],P=m.level,T=j.get(P);T||(T=new Set,j.set(P,T)),T.add(m),l=Math.max(l,P)}),Object(R.a)(!f.length,"Tree missing follow keys: ".concat(f.slice(0,100).map(function(C){return"'".concat(C,"'")}).join(", ")));var r;return A===!0?r=ne(L,j,l,D):r=N(L,A.halfCheckedKeys,j,l,D),r}},OZM5:function(xe,B,t){"use strict";t.d(B,"b",function(){return H}),t.d(B,"a",function(){return f}),t.d(B,"k",function(){return D}),t.d(B,"h",function(){return L}),t.d(B,"i",function(){return j}),t.d(B,"g",function(){return l}),t.d(B,"c",function(){return r}),t.d(B,"d",function(){return C}),t.d(B,"j",function(){return T}),t.d(B,"e",function(){return p}),t.d(B,"f",function(){return I});var R=t("KQm4"),x=t("U8pU"),J=t("Ff2n"),ne=t("q1tI"),N=t.n(ne),o=t("Kwbf"),G=t("WaYH"),A=.25,c=2;function H(i,g){var O=i.slice(),n=O.indexOf(g);return n>=0&&O.splice(n,1),O}function f(i,g){var O=i.slice();return O.indexOf(g)===-1&&O.push(g),O}function D(i){return i.split("-")}function L(i,g){return"".concat(i,"-").concat(g)}function j(i){return i&&i.type&&i.type.isTreeNode}function l(i,g){var O=[i],n=g[i];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(d){var u=d.key,v=d.children;O.push(u),a(v)})}return a(n.children),O}function r(i,g){var O=i.clientY,n=g.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,d=n.height,u=Math.max(d*A,c);return O<=a+u?-1:O>=e-u?1:0}function C(i,g){if(!i)return;var O=g.multiple;return O?i.slice():i.length?[i[0]]:i}var m=function(g){return g};function P(i,g){if(!i)return[];var O=g||{},n=O.processProps,a=n===void 0?m:n,e=Array.isArray(i)?i:[i];return e.map(function(d){var u=d.children,v=Object(J.a)(d,["children"]),k=P(u,g);return N.a.createElement(G.a,Object.assign({},a(v)),k)})}function T(i){if(!i)return null;var g;if(Array.isArray(i))g={checkedKeys:i,halfCheckedKeys:void 0};else if(Object(x.a)(i)==="object")g={checkedKeys:i.checked||void 0,halfCheckedKeys:i.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return g}function p(i,g){var O=new Set;function n(a){if(O.has(a))return;var e=g[a];if(!e)return;O.add(a);var d=e.parent,u=e.node;if(u.disabled)return;d&&n(d.key)}return(i||[]).forEach(function(a){n(a)}),Object(R.a)(O)}function I(i){var g={};return Object.keys(i).forEach(function(O){(O.startsWith("data-")||O.startsWith("aria-"))&&(g[O]=i[O])}),g}},"SA+Z":function(xe,B,t){var R=t("wTVA"),x=t("EbDI"),J=t("ZhPi"),ne=t("wkBT");function N(o){return R(o)||x(o)||J(o)||ne()}xe.exports=N,xe.exports.__esModule=!0,xe.exports.default=xe.exports},Uv9F:function(xe,B,t){"use strict";t.r(B);var R=t("OaEy"),x=t("2fM7"),J=t("DjyN"),ne=t("NUBc"),N=t("g9YV"),o=t("wCAj"),G=t("miYZ"),A=t("tsqr"),c=t("2qtc"),H=t("kLXV"),f=t("+L6B"),D=t("2/Rp"),L=t("k1fw"),j=t("9og8"),l=t("y8nQ"),r=t("Vl3Y"),C=t("tJVT"),m=t("sRBo"),P=t("kaz8"),T=t("WmNS"),p=t.n(T),I=t("q1tI"),i=t.n(I),g=t("Ty5D"),O=t("9kvl"),n=t("xvlK"),a=t("RCxd"),e=t("ErOA"),d=t("wYHl"),u=t.n(d),v=P.a.Group,k=function(K){var W,Y,de,X,U,q,re=K.classroomList,ce=K.loading,ae=K.user,be=K.dispatch,Z=Object(I.useState)([]),Oe=Object(C.a)(Z,2),ve=Oe[0],fe=Oe[1],Re=Object(I.useState)({zydatas:[],jbdatas:[],kcdatas:[],page:1,per_page:20}),le=Object(C.a)(Re,2),Q=le[0],ge=le[1],te=Object(g.i)(),me=Object(I.useState)(!1),Le=Object(C.a)(me,2),Ne=Le[0],De=Le[1],Ve=Object(I.useState)(!1),Se=Object(C.a)(Ve,2),ue=Se[0],he=Se[1],Xe=r.a.useForm(),Je=Object(C.a)(Xe,1),ze=Je[0];Object(I.useEffect)(function(){Ye()},[]);function Ye(){return Be.apply(this,arguments)}function Be(){return Be=Object(j.a)(p.a.mark(function h(){var b;return p.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Object(e.a)("/api/courses/ecs_courses.json",{method:"get",params:{id:te==null?void 0:te.coursesId}});case 2:b=_.sent,fe(b==null?void 0:b.data);case 4:case"end":return _.stop()}},h)})),Be.apply(this,arguments)}function ft(){return s.apply(this,arguments)}function s(){return s=Object(j.a)(p.a.mark(function h(){var b,y,_;return p.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,Object(e.a)("/api/schools/".concat(ae==null||((b=ae.userInfo)===null||b===void 0||((y=b.course)===null||y===void 0))?void 0:y.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:_=w.sent,Q.zydatas=_==null?void 0:_.data,ge(Object(L.a)({},Q));case 5:case"end":return w.stop()}},h)})),s.apply(this,arguments)}function S(h){return M.apply(this,arguments)}function M(){return M=Object(j.a)(p.a.mark(function h(b){var y;return p.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,Object(e.a)("/api/ec_major_schools/".concat(b,"/ec_years/get_year_list.json"),{method:"get"});case 2:y=F.sent,Q.jbdatas=y==null?void 0:y.data,ge(Object(L.a)({},Q));case 5:case"end":return F.stop()}},h)})),M.apply(this,arguments)}function z(h){return V.apply(this,arguments)}function V(){return V=Object(j.a)(p.a.mark(function h(b){var y;return p.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,Object(e.a)("/api/ec_years/".concat(b,"/ec_courses/get_courses.json"),{method:"get"});case 2:y=F.sent,Q.kcdatas=y==null?void 0:y.data,ge(Object(L.a)({},Q));case 5:case"end":return F.stop()}},h)})),V.apply(this,arguments)}return i.a.createElement("div",{className:u.a.content},i.a.createElement("div",{className:u.a.header},i.a.createElement("span",{className:u.a.span},"\u5173\u8054\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B"),i.a.createElement(D.a,{type:"primary",onClick:function(){Q.zydatas=[],Q.jbdatas=[],Q.kcdatas=[],ze.setFieldsValue({zy:"",jb:"",ec_course_id:""}),ge(Object(L.a)({},Q)),De(!0),ft()},icon:i.a.createElement(n.a,null)},"\u6DFB\u52A0\u5173\u8054")),i.a.createElement(o.a,{dataSource:ve,pagination:!1,columns:[{title:"\u5E8F\u53F7",dataIndex:"filename",key:"filename",render:function(b,y,_){return Q.per_page*(Q.page-1)+_+1}},{title:"\u8BA4\u8BC1\u4E13\u4E1A",dataIndex:"pro_name",ellipsis:!0,width:"30%",key:"pro_name"},{title:"\u8BA4\u8BC1\u5C4A\u522B",dataIndex:"year",ellipsis:!0,width:"10%",key:"year"},{title:"\u5173\u8054\u8BFE\u7A0B",dataIndex:"course_name",ellipsis:!0,width:"30%",key:"course_name"},{title:"\u64CD\u4F5C",dataIndex:"id",ellipsis:!0,width:"20%",key:"id",render:function(b,y){return i.a.createElement("div",null,i.a.createElement("a",{href:"/classrooms/".concat(te==null?void 0:te.coursesId,"/engineering/datail?kc=").concat(y==null?void 0:y.ec_course_id),style:{marginRight:20}},"\u67E5\u770B\u8BE6\u60C5"),i.a.createElement("a",{onClick:function(){H.a.confirm({title:"\u63D0\u793A",content:"\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u5173\u8054\u5417",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var F=Object(j.a)(p.a.mark(function $(){var oe;return p.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,Object(e.a)("/api/courses/delete_ecs_course.json",{method:"DELETE",body:{ec_course_id:b}});case 2:oe=se.sent,oe.status===0&&(A.b.info("\u53D6\u6D88\u6210\u529F"),Ye());case 4:case"end":return se.stop()}},$)}));function w(){return F.apply(this,arguments)}return w}()})}},"\u53D6\u6D88\u5173\u8054"))}}]}),i.a.createElement(ne.a,{style:{textAlign:"center",marginTop:20},current:Q.page,showSizeChanger:!1,total:ve==null?void 0:ve.count,pageSize:20,hideOnSinglePage:!0,onChange:function(b){Q.page=b,ge(Object(L.a)({},Q)),Ye()}}),i.a.createElement(H.a,{title:"\u5173\u8054\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B",visible:Ne,onOk:function(){ze.submit()},okButtonProps:{loading:ue},onCancel:function(){De(!1)}},i.a.createElement("p",{style:{color:"#FA6400",fontSize:"14px"}},i.a.createElement(a.a,null)," ","\u6559\u5B66\u8BFE\u5802\u6240\u5C5E\u5355\u4F4D\u5F00\u8BBE\u4E86\u5DE5\u7A0B\u8BA4\u8BC1\u8BFE\u7A0B\uFF0C\u624D\u80FD\u8FDB\u884C\u6DFB\u52A0\u5173\u8054\u64CD\u4F5C\uFF01"),i.a.createElement(r.a,{labelCol:{span:4},wrapperCol:{span:20},form:ze,onValuesChange:function(b){console.log("----",b),b.zy&&S(b.zy),b.jb&&z(b.jb)},onFinish:function(){var h=Object(j.a)(p.a.mark(function b(y){var _;return p.a.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return he(!0),w.next=3,Object(e.a)("/api/courses/create_ecs_course.json",{method:"post",body:{id:te==null?void 0:te.coursesId,ec_course_id:y.ec_course_id}});case 3:_=w.sent,he(!1),_.status===0&&(A.b.info("\u5173\u8054\u6210\u529F"),Ye(),ze.setFieldsValue({zy:"",jb:"",ec_course_id:""}),De(!1));case 6:case"end":return w.stop()}},b)}));return function(b){return h.apply(this,arguments)}}()},i.a.createElement(r.a.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"zy",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"}]},i.a.createElement(x.a,{disabled:((W=Q.zydatas)===null||W===void 0?void 0:W.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},Q==null||((Y=Q.zydatas)===null||Y===void 0)?void 0:Y.map(function(h,b){return i.a.createElement(x.a.Option,{key:b,value:h==null?void 0:h.ec_major_school_id},h==null?void 0:h.name)}))),i.a.createElement(r.a.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"jb",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"}]},i.a.createElement(x.a,{disabled:((de=Q.jbdatas)===null||de===void 0?void 0:de.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},Q==null||((X=Q.jbdatas)===null||X===void 0)?void 0:X.map(function(h,b){return i.a.createElement(x.a.Option,{key:b,value:h==null?void 0:h.ec_year_id},h==null?void 0:h.year)}))),i.a.createElement(r.a.Item,{label:"\u5173\u8054\u8BFE\u7A0B",name:"ec_course_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u8BFE\u7A0B"}]},i.a.createElement(x.a,{disabled:((U=Q.kcdatas)===null||U===void 0?void 0:U.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u5173\u8054\u8BFE\u7A0B"},Q==null||((q=Q.kcdatas)===null||q===void 0)?void 0:q.map(function(h,b){return i.a.createElement(x.a.Option,{key:b,value:h==null?void 0:h.id},h==null?void 0:h.name)}))))))};B.default=Object(O.a)(function(E){var K=E.classroomList,W=E.loading,Y=E.globalSetting,de=E.user;return{classroomList:K,globalSetting:Y,loading:W.effects,user:de}})(k)},WaYH:function(xe,B,t){"use strict";var R=t("rePB"),x=t("Ff2n"),J=t("VTBJ"),ne=t("1OyB"),N=t("vuIU"),o=t("JX7q"),G=t("Ji7U"),A=t("LK+K"),c=t("q1tI"),H=t("TSYQ"),f=t.n(H),D=t("sboe"),L=t("OZM5"),j=function(g){var O=g.prefixCls,n=g.level,a=g.isStart,e=g.isEnd;if(!n)return null;for(var d="".concat(O,"-indent-unit"),u=[],v=0;vD||r>f&&C=D&&m>=L?r-f-j:C>D&&mL?C-D+l:0}var N=function(f,D){var L=window,j=D.scrollMode,l=D.block,r=D.inline,C=D.boundary,m=D.skipOverflowHiddenElements,P=typeof C=="function"?C:function(De){return De!==C};if(!R(f))throw new TypeError("Invalid target");for(var T=document.scrollingElement||document.documentElement,p=[],I=f;R(I)&&P(I);){if((I=I.parentElement)===T){p.push(I);break}I!=null&&I===document.body&&J(I)&&!J(document.documentElement)||I!=null&&J(I,m)&&p.push(I)}for(var i=L.visualViewport?L.visualViewport.width:innerWidth,g=L.visualViewport?L.visualViewport.height:innerHeight,O=window.scrollX||pageXOffset,n=window.scrollY||pageYOffset,a=f.getBoundingClientRect(),e=a.height,d=a.width,u=a.top,v=a.right,k=a.bottom,E=a.left,K=l==="start"||l==="nearest"?u:l==="end"?k:u+e/2,W=r==="center"?E+d/2:r==="end"?v:E,Y=[],de=0;de=0&&E>=0&&k<=g&&v<=i&&u>=ce&&k<=be&&E>=Z&&v<=ae)return Y;var Oe=getComputedStyle(X),ve=parseInt(Oe.borderLeftWidth,10),fe=parseInt(Oe.borderTopWidth,10),Re=parseInt(Oe.borderRightWidth,10),le=parseInt(Oe.borderBottomWidth,10),Q=0,ge=0,te="offsetWidth"in X?X.offsetWidth-X.clientWidth-ve-Re:0,me="offsetHeight"in X?X.offsetHeight-X.clientHeight-fe-le:0;if(T===X)Q=l==="start"?K:l==="end"?K-g:l==="nearest"?ne(n,n+g,g,fe,le,n+K,n+K+e,e):K-g/2,ge=r==="start"?W:r==="center"?W-i/2:r==="end"?W-i:ne(O,O+i,i,ve,Re,O+W,O+W+d,d),Q=Math.max(0,Q+n),ge=Math.max(0,ge+O);else{Q=l==="start"?K-ce-fe:l==="end"?K-be+le+me:l==="nearest"?ne(ce,be,q,fe,le+me,K,K+e,e):K-(ce+q/2)+me/2,ge=r==="start"?W-Z-ve:r==="center"?W-(Z+re/2)+te/2:r==="end"?W-ae+Re+te:ne(Z,ae,re,ve,Re+te,W,W+d,d);var Le=X.scrollLeft,Ne=X.scrollTop;K+=Ne-(Q=Math.max(0,Math.min(Ne+Q,X.scrollHeight-q+me))),W+=Le-(ge=Math.max(0,Math.min(Le+ge,X.scrollWidth-re+te)))}Y.push({el:X,top:Q,left:ge})}return Y};function o(f){return f===Object(f)&&Object.keys(f).length!==0}function G(f,D){D===void 0&&(D="auto");var L="scrollBehavior"in document.body.style;f.forEach(function(j){var l=j.el,r=j.top,C=j.left;l.scroll&&L?l.scroll({top:r,left:C,behavior:D}):(l.scrollTop=r,l.scrollLeft=C)})}function A(f){return f===!1?{block:"end",inline:"nearest"}:o(f)?f:{block:"start",inline:"nearest"}}function c(f,D){var L=!f.ownerDocument.documentElement.contains(f);if(o(D)&&typeof D.behavior=="function")return D.behavior(L?[]:N(f,D));if(L)return;var j=A(D);return G(N(f,j),j.behavior)}var H=B.a=c},biw7:function(xe,B,t){"use strict";var R=t("q1tI"),x=t.n(R),J=R.createContext(null);B.a=J},fyJ8:function(xe,B,t){"use strict";var R=t("rePB"),x=t("VTBJ"),J=t("Ff2n"),ne=t("U8pU"),N=t("q1tI"),o=t.n(N),G=t("TSYQ"),A=t.n(G),c=t("c+Xe"),H=t("sR1s");function f(r){return r&&Object(ne.a)(r)==="object"&&!Array.isArray(r)&&!N.isValidElement(r)}function D(r){return typeof r=="string"?!0:Object(c.c)(r)}function L(r,C){var m,P=r.prefixCls,T=r.className,p=r.record,I=r.index,i=r.dataIndex,g=r.render,O=r.children,n=r.component,a=n===void 0?"td":n,e=r.colSpan,d=r.rowSpan,u=r.fixLeft,v=r.fixRight,k=r.firstFixLeft,E=r.lastFixLeft,K=r.firstFixRight,W=r.lastFixRight,Y=r.appendNode,de=r.additionalProps,X=de===void 0?{}:de,U=r.ellipsis,q=r.align,re=r.rowType,ce=r.isSticky,ae="".concat(P,"-cell"),be,Z;if(O)Z=O;else{var Oe=Object(H.b)(p,i);if(Z=Oe,g){var ve=g(Oe,p,I);f(ve)?(Z=ve.children,be=ve.props):Z=ve}}Object(ne.a)(Z)==="object"&&!Array.isArray(Z)&&!N.isValidElement(Z)&&(Z=null),U&&(E||K)&&(Z=N.createElement("span",{className:"".concat(ae,"-content")},Z));var fe=be||{},Re=fe.colSpan,le=fe.rowSpan,Q=fe.style,ge=fe.className,te=Object(J.a)(fe,["colSpan","rowSpan","style","className"]),me=Re!==void 0?Re:e,Le=le!==void 0?le:d;if(me===0||Le===0)return null;var Ne={},De=typeof u=="number",Ve=typeof v=="number";De&&(Ne.position="sticky",Ne.left=u),Ve&&(Ne.position="sticky",Ne.right=v);var Se={};q&&(Se.textAlign=q);var ue,he=U===!0?{showTitle:!0}:U;he&&(he.showTitle||re==="header")&&(typeof Z=="string"||typeof Z=="number"?ue=Z.toString():N.isValidElement(Z)&&typeof Z.props.children=="string"&&(ue=Z.props.children));var Xe=Object(x.a)(Object(x.a)(Object(x.a)({title:ue},te),X),{},{colSpan:me&&me!==1?me:null,rowSpan:Le&&Le!==1?Le:null,className:A()(ae,T,(m={},Object(R.a)(m,"".concat(ae,"-fix-left"),De),Object(R.a)(m,"".concat(ae,"-fix-left-first"),k),Object(R.a)(m,"".concat(ae,"-fix-left-last"),E),Object(R.a)(m,"".concat(ae,"-fix-right"),Ve),Object(R.a)(m,"".concat(ae,"-fix-right-first"),K),Object(R.a)(m,"".concat(ae,"-fix-right-last"),W),Object(R.a)(m,"".concat(ae,"-ellipsis"),U),Object(R.a)(m,"".concat(ae,"-with-append"),Y),Object(R.a)(m,"".concat(ae,"-fix-sticky"),(De||Ve)&&ce),m),X.className,ge),style:Object(x.a)(Object(x.a)(Object(x.a)(Object(x.a)({},X.style),Se),Ne),Q),ref:D(a)?C:null});return N.createElement(a,Object.assign({},Xe),Y,Z)}var j=N.forwardRef(L);j.displayName="Cell";var l=N.memo(j,function(r,C){return C.shouldCellUpdate?!C.shouldCellUpdate(C.record,r.record):!1});B.a=l},hW8S:function(xe,B,t){"use strict";t.d(B,"a",function(){return ne}),t.d(B,"c",function(){return N}),t.d(B,"b",function(){return o});var R=t("VTBJ"),x=t("Ff2n"),J=t("Kwbf"),ne="RC_TABLE_INTERNAL_COL_DEFINE";function N(G){var A=G.expandable,c=Object(x.a)(G,["expandable"]);return"expandable"in G?Object(R.a)(Object(R.a)({},c),A):c}function o(G){return Object.keys(G).reduce(function(A,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-")&&(A[c]=G[c]),A},{})}},n6Qo:function(xe,B,t){"use strict";t.d(B,"a",function(){return A});var R=t("q1tI"),x=t("biw7"),J=t("fyJ8");function ne(c){var H=c.className,f=c.index,D=c.children,L=c.colSpan,j=c.rowSpan,l=R.useContext(x.a),r=l.prefixCls,C=l.fixedInfoList,m=C[f];return R.createElement(J.a,Object.assign({className:H,index:f,component:"td",prefixCls:r,record:null,dataIndex:null,render:function(){return{children:D,props:{colSpan:L,rowSpan:j}}}},m))}function N(c){return R.createElement("tr",Object.assign({},c))}function o(c){var H=c.children,f=R.useContext(x.a),D=f.prefixCls;return R.createElement("tfoot",{className:"".concat(D,"-summary")},H)}var G=B.b=o,A={Cell:ne,Row:N}},sR1s:function(xe,B,t){"use strict";t.d(B,"b",function(){return ne}),t.d(B,"a",function(){return N}),t.d(B,"c",function(){return o}),t.d(B,"d",function(){return G});var R=t("U8pU"),x="RC_TABLE_KEY";function J(A){return A==null?[]:Array.isArray(A)?A:[A]}function ne(A,c){if(!c&&typeof c!="number")return A;for(var H=J(c),f=A,D=0;D1)Object(H.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(T.length===0)return Object(H.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var p=T[0];if(o.isValidElement(p)&&Object(f.c)(p)){var I=p.ref;T[0]=o.cloneElement(p,{ref:Object(f.a)(I,this.setChildNode)})}return T.length===1?T[0]:T.map(function(i,g){return!o.isValidElement(i)||"key"in i&&i.key!==null?i:o.cloneElement(i,{key:"".concat(L,"-").concat(g)})})}}]),C}(o.Component);j.displayName="ResizeObserver",B.a=j},wCXF:function(xe,B,t){"use strict";t.d(B,"a",function(){return ze});var R=t("rePB"),x=t("VTBJ"),J=t("KQm4"),ne=t("U8pU"),N=t("ODXe"),o=t("q1tI"),G=t("TSYQ"),A=t.n(G),c=t("Gytx"),H=t.n(c),f=t("Kwbf"),D=t("t23M"),L=t("qx4F"),j=t("6eGT"),l=t("IBYe"),r=t("Ff2n"),C=t("c+Xe"),m=t("fyJ8"),P=t("biw7");function T(s,S,M,z,V){var h=M[s]||{},b=M[S]||{},y,_;h.fixed==="left"?y=z.left[s]:b.fixed==="right"&&(_=z.right[S]);var F=!1,w=!1,$=!1,oe=!1,ee=M[S+1],se=M[s-1];if(V==="rtl"){if(y!==void 0){var Pe=se&&se.fixed==="left";oe=!Pe}else if(_!==void 0){var ye=ee&&ee.fixed==="right";$=!ye}}else if(y!==void 0){var _e=ee&&ee.fixed==="left";F=!_e}else if(_!==void 0){var ie=se&&se.fixed==="right";w=!ie}return{fixLeft:y,fixRight:_,lastFixLeft:F,firstFixRight:w,lastFixRight:$,firstFixLeft:oe,isSticky:z.isSticky}}var p=t("sR1s");function I(s){var S=s.cells,M=s.stickyOffsets,z=s.flattenColumns,V=s.rowComponent,h=s.cellComponent,b=s.onHeaderRow,y=s.index,_=o.useContext(P.a),F=_.prefixCls,w=_.direction,$;b&&($=b(S.map(function(ee){return ee.column}),y));var oe=Object(p.a)(S.map(function(ee){return ee.column}));return o.createElement(V,Object.assign({},$),S.map(function(ee,se){var Pe=ee.column,ye=T(ee.colStart,ee.colEnd,z,M,w),_e;return Pe&&Pe.onHeaderCell&&(_e=ee.column.onHeaderCell(Pe)),o.createElement(m.a,Object.assign({},ee,{ellipsis:Pe.ellipsis,align:Pe.align,component:h,prefixCls:F,key:oe[se]},ye,{additionalProps:_e,rowType:"header"}))}))}I.displayName="HeaderRow";var i=I;function g(s){var S=[];function M(b,y){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;S[_]=S[_]||[];var F=y,w=b.filter(Boolean).map(function($){var oe={key:$.key,className:$.className||"",children:$.title,column:$,colStart:F},ee=1,se=$.children;return se&&se.length>0&&(ee=M(se,F,_+1).reduce(function(Pe,ye){return Pe+ye},0),oe.hasSubColumns=!0),"colSpan"in $&&(ee=$.colSpan),"rowSpan"in $&&(oe.rowSpan=$.rowSpan),oe.colSpan=ee,oe.colEnd=oe.colStart+ee-1,S[_].push(oe),F+=ee,ee});return w}M(s,0);for(var z=S.length,V=function(y){S[y].forEach(function(_){!("rowSpan"in _)&&!_.hasSubColumns&&(_.rowSpan=z-y)})},h=0;h=0;y-=1){var _=S[y],F=M&&M[y],w=F&&F[a.a];(_||w||b)&&(V.unshift(o.createElement("col",Object.assign({key:y,style:{width:_,minWidth:_}},w))),b=!0)}return o.createElement("colgroup",null,V)}var d=e;function u(s,S){return Object(o.useMemo)(function(){for(var M=[],z=0;z1?Ge-1:0),ct=1;ct=$&&(Me=$-oe),b({scrollLeft:Me/$*(w+2)}),ie.current.x=pe.pageX},Fe=function(){var pe=Object(Ve.b)(h.current).top,Ke=pe+h.current.offsetHeight,$e=document.documentElement.scrollTop+window.innerHeight;Ke-Object(L.a)()<=$e||pe>=$e-y?_e(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!0})}):_e(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!1})})},Ue=function(pe){_e(function(Ke){return Object(x.a)(Object(x.a)({},Ke),{},{scrollLeft:pe/w*$||0})})};return o.useImperativeHandle(M,function(){return{setScrollLeft:Ue}}),o.useEffect(function(){var Te=Object(De.a)(document.body,"mouseup",Ze,!1),pe=Object(De.a)(document.body,"mousemove",qe,!1);return Fe(),function(){Te.remove(),pe.remove()}},[oe,Ae]),o.useEffect(function(){var Te=Object(De.a)(window,"scroll",Fe,!1),pe=Object(De.a)(window,"resize",Fe,!1);return function(){Te.remove(),pe.remove()}},[]),o.useEffect(function(){ye.isHiddenScrollBar||_e(function(Te){var pe,Ke;return Object(x.a)(Object(x.a)({},Te),{},{scrollLeft:h.current.scrollLeft/((pe=h.current)===null||pe===void 0?void 0:pe.scrollWidth)*((Ke=h.current)===null||Ke===void 0?void 0:Ke.clientWidth)})})},[ye.isHiddenScrollBar]),w<=$||!oe||ye.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(L.a)(),width:$,bottom:y},className:"".concat(F,"-sticky-scroll")},o.createElement("div",{onMouseDown:je,ref:ee,className:A()("".concat(F,"-sticky-scroll-bar"),Object(R.a)({},"".concat(F,"-sticky-scroll-bar-active"),Ae)),style:{width:"".concat(oe,"px"),transform:"translate3d(".concat(ye.scrollLeft,"px, 0, 0)")}}))},ue=o.forwardRef(Se);function he(s,S){return o.useMemo(function(){var M=!!s;return{isSticky:M,stickyClassName:M?"".concat(S,"-sticky-header"):"",offsetHeader:Object(ne.a)(s)==="object"&&s.offsetHeader||0,offsetScroll:Object(ne.a)(s)==="object"&&s.offsetScroll||0}},[s,S])}var Xe=[],Je={},ze="rc-table-internal-hook",Ye=o.memo(function(s){var S=s.children;return S},function(s,S){return H()(s.props,S.props)?s.pingLeft!==S.pingLeft||s.pingRight!==S.pingRight:!1});function Be(s){var S,M=s.prefixCls,z=s.className,V=s.rowClassName,h=s.style,b=s.data,y=s.rowKey,_=s.scroll,F=s.tableLayout,w=s.direction,$=s.title,oe=s.footer,ee=s.summary,se=s.id,Pe=s.showHeader,ye=s.components,_e=s.emptyText,ie=s.onRow,Qe=s.onHeaderRow,we=s.internalHooks,Ae=s.transformColumns,We=s.internalRefs,Ze=s.sticky,je=b||Xe,qe=!!je.length,Fe=o.useState(0),Ue=Object(N.a)(Fe,2),Te=Ue[0],pe=Ue[1];o.useEffect(function(){pe(Object(L.a)())});var Ke=o.useMemo(function(){return Object(p.c)(ye,{})},[ye]),$e=o.useCallback(function(Ee,Ce){return Object(p.b)(Ke,Ee)||Ce},[Ke]),et=o.useMemo(function(){return typeof y=="function"?y:function(Ee){var Ce=Ee&&Ee[y];return Ce}},[y]),Me=Object(a.c)(s),jt=Me.expandIcon,_t=Me.expandedRowKeys,Rt=Me.defaultExpandedRowKeys,lt=Me.defaultExpandAllRows,it=Me.expandedRowRender,mt=Me.onExpand,pt=Me.onExpandedRowsChange,Pt=Me.expandRowByClick,at=Me.rowExpandable,Et=Me.expandIconColumnIndex,ht=Me.expandedRowClassName,Kt=Me.childrenColumnName,Tt=Me.indentSize,vt=jt||Le,gt=Kt||"children",Nt=o.useMemo(function(){return it?"row":s.expandable&&we===ze&&s.expandable.__PARENT_RENDER_ICON__||je.some(function(Ee){return Ee&&Object(ne.a)(Ee)==="object"&&Ee[gt]})?"nest":!1},[!!it,je]),Dt=o.useState(function(){return Rt||(lt?Ne(je,et,gt):[])}),He=Object(N.a)(Dt,2),tt=He[0],ot=He[1],Ge=o.useMemo(function(){return new Set(_t||tt||[])},[_t,tt]),dt=o.useCallback(function(Ee){var Ce=et(Ee,je.indexOf(Ee)),ke,nt=Ge.has(Ce);nt?(Ge.delete(Ce),ke=Object(J.a)(Ge)):ke=[].concat(Object(J.a)(Ge),[Ce]),ot(ke),mt&&mt(!nt,Ee),pt&&pt(ke)},[et,Ge,je,mt,pt]),ct=o.useState(0),St=Object(N.a)(ct,2),Ct=St[0],Mt=St[1],vn=Object(Z.b)(Object(x.a)(Object(x.a)(Object(x.a)({},s),Me),{},{expandable:!!it,expandedKeys:Ge,getRowKey:et,onTriggerExpand:dt,expandIcon:vt,expandIconColumnIndex:Et,direction:w}),we===ze?Ae:null),Yt=Object(N.a)(vn,2),Bt=Yt[0],Ie=Yt[1],Lt=o.useMemo(function(){return{columns:Bt,flattenColumns:Ie}},[Bt,Ie]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(N.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(N.a)(gn,2),tn=en[0],Cn=en[1],yn=fe(new Map),nn=Object(N.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(p.a)(Ie),an=jn.map(function(Ee){return On.get(Ee)}),on=o.useMemo(function(){return an},[an.join("_")]),At=Q(on,Ie.length,w),rt=_&&Object(p.d)(_.y),st=_&&Object(p.d)(_.x),yt=st&&Ie.some(function(Ee){var Ce=Ee.fixed;return Ce}),rn=o.useRef(),wt=he(Ze,M),Ot=wt.isSticky,_n=wt.offsetHeader,Rn=wt.offsetScroll,Pn=wt.stickyClassName,kt,Ut,zt;rt&&(Ut={overflowY:"scroll",maxHeight:_.y}),st&&(kt={overflowX:"auto"},rt||(Ut={overflowY:"hidden"}),zt={width:_.x===!0?"auto":_.x,minWidth:"100%"});var ln=o.useCallback(function(Ee,Ce){xn(function(ke){var nt=new Map(ke);return nt.set(Ee,Ce),nt})},[]),Tn=Re(null),sn=Object(N.a)(Tn,2),Nn=sn[0],dn=sn[1];function Ft(Ee,Ce){if(!Ce)return;typeof Ce=="function"?Ce(Ee):Ce.scrollLeft!==Ee&&(Ce.scrollLeft=Ee)}var bt=function(Ce){var ke=Ce.currentTarget,nt=Ce.scrollLeft,xt=typeof nt=="number"?nt:ke.scrollLeft,hn=ke||Je;if(!dn()||dn()===hn){var Jt;Nn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(ke){var Un=ke.scrollWidth,In=ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(x.a)(r),Object(x.a)(f(T).map(function(p){return Object(J.a)({fixed:P},p)}))):[].concat(Object(x.a)(r),[Object(J.a)(Object(J.a)({},C),{},{fixed:P})])},[])}function D(l){for(var r=!0,C=0;C=0;T-=1){var p=l[T];if(P&&p.fixed!=="right")P=!1;else if(!P&&p.fixed==="right"){Object(G.a)(!1,"Index ".concat(T+1," of `columns` missing `fixed='right'` prop."));break}}}function L(l){return l.map(function(r){var C=r.fixed,m=Object(ne.a)(r,["fixed"]),P=C;return C==="left"?P="right":C==="right"&&(P="left"),Object(J.a)({fixed:P},m)})}function j(l,r){var C=l.prefixCls,m=l.columns,P=l.children,T=l.expandable,p=l.expandedKeys,I=l.getRowKey,i=l.onTriggerExpand,g=l.expandIcon,O=l.rowExpandable,n=l.expandIconColumnIndex,a=l.direction,e=l.expandRowByClick,d=N.useMemo(function(){return m||H(P)},[m,P]),u=N.useMemo(function(){if(T){var E,K=n||0,W=d[K],Y=(E={},Object(R.a)(E,c.a,{className:"".concat(C,"-expand-icon-col")}),Object(R.a)(E,"title",""),Object(R.a)(E,"fixed",W?W.fixed:null),Object(R.a)(E,"className","".concat(C,"-row-expand-icon-cell")),Object(R.a)(E,"render",function(U,q,re){var ce=I(q,re),ae=p.has(ce),be=O?O(q):!0,Z=g({prefixCls:C,expanded:ae,expandable:be,record:q,onExpand:i});return e?N.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},Z):Z}),E),de=d.slice();return K>=0&&de.splice(K,0,Y),de}return d},[T,d,I,p,g,a]),v=N.useMemo(function(){var E=u;return r&&(E=r(E)),E.length||(E=[{render:function(){return null}}]),E},[r,u,a]),k=N.useMemo(function(){return a==="rtl"?L(f(v)):f(v)},[v,a]);return[v,k]}B.b=j},wYHl:function(xe,B,t){xe.exports={flex_box_center:"flex_box_center___-FvEc",flex_space_between:"flex_space_between___1gAWn",flex_box_vertical_center:"flex_box_vertical_center___2eYgK",flex_box_center_end:"flex_box_center_end___QGmbe",flex_box_column:"flex_box_column___35AfO",content:"content___vWzf2",header:"header___2YsSm",span:"span___3Tl2t",title:"title___1Iyos",textone:"textone___1Ul4b"}},"y0+3":function(xe,B,t){"use strict";t.d(B,"a",function(){return f}),t.d(B,"b",function(){return L});var R=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},J={cssFloat:1,styleFloat:1,float:1};function ne(j){return j.nodeType===1?j.ownerDocument.defaultView.getComputedStyle(j,null):{}}function N(j,l,r){if(l=l.toLowerCase(),r==="auto"){if(l==="height")return j.offsetHeight;if(l==="width")return j.offsetWidth}return l in x||(x[l]=R.test(l)),x[l]?parseFloat(r)||0:r}function o(j,l){var r=arguments.length,C=ne(j);return l=J[l]?"cssFloat"in j.style?"cssFloat":"styleFloat":l,r===1?C:N(j,l,C[l]||j.style[l])}function G(j,l,r){var C=arguments.length;if(l=J[l]?"cssFloat"in j.style?"cssFloat":"styleFloat":l,C===3)return typeof r=="number"&&R.test(l)&&(r="".concat(r,"px")),j.style[l]=r,r;for(var m in l)l.hasOwnProperty(m)&&G(j,m,l[m]);return ne(j)}function A(j){return j===document.body?document.documentElement.clientWidth:j.offsetWidth}function c(j){return j===document.body?window.innerHeight||document.documentElement.clientHeight:j.offsetHeight}function H(){var j=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),l=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:j,height:l}}function f(){var j=document.documentElement.clientWidth,l=window.innerHeight||document.documentElement.clientHeight;return{width:j,height:l}}function D(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function L(j){var l=j.getBoundingClientRect(),r=document.documentElement;return{left:l.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:l.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Classrooms__Lists__Graduation__Topics__Edit__index.64038857.async.js b/p__Classrooms__Lists__Graduation__Topics__Edit__index.64038857.async.js index cd21e59657..8d4eb7d1b6 100644 --- a/p__Classrooms__Lists__Graduation__Topics__Edit__index.64038857.async.js +++ b/p__Classrooms__Lists__Graduation__Topics__Edit__index.64038857.async.js @@ -147,11 +147,11 @@ PERFORMANCE OF THIS SOFTWARE. `),ve.appendChild(Ke),ve},E.prototype.setCurrentColor=function(I,H){var q=this;this.currentColor=I,this.colorBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(I)},E}(oe),we=function(){function V(E,I,H){this._state="new",this._isSelected=!1,this._container=E,this._overlayContainer=I,this.globalSettings=H,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(V.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),V.prototype.ownsTarget=function(E){return!1},Object.defineProperty(V.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),V.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},V.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},V.prototype.pointerDown=function(E,I){},V.prototype.dblClick=function(E,I){},V.prototype.manipulate=function(E){},V.prototype.pointerUp=function(E){this.stateChanged()},V.prototype.dispose=function(){},V.prototype.addMarkerVisualToContainer=function(E){this.container.childNodes.length>0?this.container.insertBefore(E,this.container.childNodes[0]):this.container.appendChild(E)},V.prototype.getState=function(){return{typeName:V.typeName,state:this.state,notes:this.notes}},V.prototype.restoreState=function(E){this._state=E.state,this.notes=E.notes},V.prototype.scale=function(E,I){},V.prototype.colorChanged=function(E){this.onColorChanged&&this.onColorChanged(E),this.stateChanged()},V.prototype.fillColorChanged=function(E){this.onFillColorChanged&&this.onFillColorChanged(E),this.stateChanged()},V.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var E=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),E.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(E)&&this.onStateChanged(this)}},V.typeName="MarkerBase",V}(),Ae=function(){function V(){this.findGripByVisual=this.findGripByVisual.bind(this)}return V.prototype.findGripByVisual=function(E){return this.topLeft.ownsTarget(E)?this.topLeft:this.topCenter.ownsTarget(E)?this.topCenter:this.topRight.ownsTarget(E)?this.topRight:this.centerLeft.ownsTarget(E)?this.centerLeft:this.centerRight.ownsTarget(E)?this.centerRight:this.bottomLeft.ownsTarget(E)?this.bottomLeft:this.bottomCenter.ownsTarget(E)?this.bottomCenter:this.bottomRight.ownsTarget(E)?this.bottomRight:void 0},V}(),Ue=function(){function V(){this.GRIP_SIZE=10,this.visual=ae.createGroup(),this.visual.appendChild(ae.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ae.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return V.prototype.ownsTarget=function(E){return E===this.visual||E===this.visual.childNodes[0]||E===this.visual.childNodes[1]},V}(),Ve=function(){function V(){}return V.toITransformMatrix=function(E){return{a:E.a,b:E.b,c:E.c,d:E.d,e:E.e,f:E.f}},V.toSVGMatrix=function(E,I){return E.a=I.a,E.b=I.b,E.c=I.c,E.d=I.d,E.e=I.e,E.f=I.f,E},V}(),Ze=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.left=0,z.top=0,z.width=0,z.height=0,z.defaultSize={x:50,y:20},z.offsetX=0,z.offsetY=0,z.rotationAngle=0,z.CB_DISTANCE=10,z._suppressMarkerCreateEvent=!1,z.container.transform.baseVal.appendItem(ae.createTransform()),z.setupControlBox(),z}return Ce(E,V),Object.defineProperty(E.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"visual",{get:function(){return this._visual},set:function(I){this._visual=I;var H=ae.createTransform();this._visual.transform.baseVal.appendItem(H)},enumerable:!1,configurable:!0}),E.prototype.ownsTarget=function(I){return!!V.prototype.ownsTarget.call(this,I)||!!(this.controlGrips.findGripByVisual(I)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(I))},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="new"&&(this.left=I.x,this.top=I.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var q=this.unrotatePoint(I);if(this.manipulationStartX=q.x,this.manipulationStartY=q.y,this.offsetX=q.x-this.left,this.offsetY=q.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(H),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(H)){this.activeGrip=this.rotatorGrip;var z=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=z.x-this.width/2,this.top=z.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ve=this.container.transform.baseVal.getItem(0);ve.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ve,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},E.prototype.pointerUp=function(I){var H=this.state;V.prototype.pointerUp.call(this,I),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(I),this._state="select",H==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},E.prototype.moveVisual=function(I){this.visual.style.transform="translate("+I.x+"px, "+I.y+"px)"},E.prototype.manipulate=function(I){var H=this.unrotatePoint(I);this.state==="creating"?this.resize(I):this.state==="move"?(this.left=this.manipulationStartLeft+(H.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(H.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(H):this.state==="rotate"&&this.rotate(I)},E.prototype.resize=function(I){var H=this.manipulationStartLeft,q=this.manipulationStartWidth,z=this.manipulationStartTop,ve=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:H=this.manipulationStartLeft+I.x-this.manipulationStartX,q=this.manipulationStartWidth+this.manipulationStartLeft-H;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:q=this.manipulationStartWidth+I.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:z=this.manipulationStartTop+I.y-this.manipulationStartY,ve=this.manipulationStartHeight+this.manipulationStartTop-z;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ve=this.manipulationStartHeight+I.y-this.manipulationStartY}q>=0?(this.left=H,this.width=q):(this.left=H+q,this.width=-q),ve>=0?(this.top=z,this.height=ve):(this.top=z+ve,this.height=-ve),this.setSize()},E.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},E.prototype.rotate=function(I){if(Math.abs(I.x-this.centerX)>.1){var H=Math.sign(I.x-this.centerX);this.rotationAngle=180*Math.atan((I.y-this.centerY)/(I.x-this.centerX))/Math.PI+90*H,this.applyRotation()}},E.prototype.applyRotation=function(){var I=this.container.transform.baseVal.getItem(0);I.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(I,0)},E.prototype.rotatePoint=function(I){if(this.rotationAngle===0)return I;var H=this.container.getCTM(),q=ae.createPoint(I.x,I.y);return{x:(q=q.matrixTransform(H)).x,y:q.y}},E.prototype.unrotatePoint=function(I){if(this.rotationAngle===0)return I;var H=this.container.getCTM();H=H.inverse();var q=ae.createPoint(I.x,I.y);return{x:(q=q.matrixTransform(H)).x,y:q.y}},E.prototype.select=function(){V.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){V.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=ae.createGroup();var I=ae.createTransform();I.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(I),this.container.appendChild(this.controlBox),this.controlRect=ae.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=ae.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"},E.prototype.adjustControlBox=function(){var I=this.controlBox.transform.baseVal.getItem(0);I.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(I,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()},E.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()},E.prototype.createGrip=function(){var I=new Ue;return I.visual.transform.baseVal.appendItem(ae.createTransform()),this.controlBox.appendChild(I.visual),I},E.prototype.positionGrips=function(){var I=this.controlGrips.topLeft.GRIP_SIZE,H=-I/2,q=H,z=(this.width+this.CB_DISTANCE)/2-I/2,ve=(this.height+this.CB_DISTANCE)/2-I/2,Ke=this.height+this.CB_DISTANCE-I/2,it=this.width+this.CB_DISTANCE-I/2;this.positionGrip(this.controlGrips.topLeft.visual,H,q),this.positionGrip(this.controlGrips.topCenter.visual,z,q),this.positionGrip(this.controlGrips.topRight.visual,it,q),this.positionGrip(this.controlGrips.centerLeft.visual,H,ve),this.positionGrip(this.controlGrips.centerRight.visual,it,ve),this.positionGrip(this.controlGrips.bottomLeft.visual,H,Ke),this.positionGrip(this.controlGrips.bottomCenter.visual,z,Ke),this.positionGrip(this.controlGrips.bottomRight.visual,it,Ke),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,z,q-3*this.CB_DISTANCE)},E.prototype.positionGrip=function(I,H,q){var z=I.transform.baseVal.getItem(0);z.setTranslate(H,q),I.transform.baseVal.replaceItem(z,0)},E.prototype.hideControlBox=function(){this.controlBox.style.display="none"},E.prototype.showControlBox=function(){this.controlBox.style.display=""},E.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ve.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ve.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},V.prototype.getState.call(this))},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.left=H.left,this.top=H.top,this.width=H.width,this.height=H.height,this.rotationAngle=H.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ve.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,H.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ve.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,H.containerTransformMatrix))},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H);var q=this.rotatePoint({x:this.left,y:this.top}),z=this.unrotatePoint({x:q.x*I,y:q.y*H});this.left=z.x,this.top=z.y,this.width=this.width*I,this.height=this.height*H,this.adjustControlBox()},E}(we),$e=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.fillColor="transparent",z.strokeColor="transparent",z.strokeWidth=0,z.strokeDasharray="",z.opacity=1,z.setStrokeColor=z.setStrokeColor.bind(z),z.setFillColor=z.setFillColor.bind(z),z.setStrokeWidth=z.setStrokeWidth.bind(z),z.setStrokeDasharray=z.setStrokeDasharray.bind(z),z.createVisual=z.createVisual.bind(z),z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual)},E.prototype.createVisual=function(){this.visual=ae.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)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="new"&&(this.createVisual(),this.moveVisual(I),this._state="creating")},E.prototype.manipulate=function(I){V.prototype.manipulate.call(this,I)},E.prototype.resize=function(I){V.prototype.resize.call(this,I),this.setSize()},E.prototype.setSize=function(){V.prototype.setSize.call(this),ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(I){V.prototype.pointerUp.call(this,I),this.setSize()},E.prototype.setStrokeColor=function(I){this.strokeColor=I,this.visual&&ae.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(I),this.stateChanged()},E.prototype.setFillColor=function(I){this.fillColor=I,this.visual&&ae.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},E.prototype.setStrokeWidth=function(I){this.strokeWidth=I,this.visual&&ae.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},E.prototype.setStrokeDasharray=function(I){this.strokeDasharray=I,this.visual&&ae.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},E.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},V.prototype.getState.call(this))},E.prototype.restoreState=function(I){var H=I;this.fillColor=H.fillColor,this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.opacity=H.opacity,this.createVisual(),V.prototype.restoreState.call(this,I),this.setSize()},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.setSize()},E.title="Rectangle marker",E}(Ze),tt=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.widths=[],ve.widthBoxes=[],ve.widths=H,ve.currentWidth=q,ve.setCurrentWidth=ve.setCurrentWidth.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",this.widths.forEach(function(q){var z=document.createElement("div");z.style.display="flex",z.style.flexGrow="2",z.style.alignItems="center",z.style.justifyContent="space-between",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.borderColor=q===I.currentWidth?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentWidth(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.innerText=q.toString(),ve.style.marginRight="5px",z.appendChild(ve);var Ke=document.createElement("div");Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.display="flex",Ke.style.alignItems="center";var it=document.createElement("hr");it.style.minWidth="20px",it.style.border="0px",it.style.borderTop=q+"px solid "+I.uiStyleSettings.toolboxColor,it.style.flexGrow="2",Ke.appendChild(it),z.appendChild(Ke),I.widthBoxes.push(z)}),H},E.prototype.setCurrentWidth=function(I,H){var q=this;this.currentWidth=I,this.widthBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},E}(oe),et=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.styles=[],ve.styleBoxes=[],ve.styles=H,ve.currentStyle=q,ve.setCurrentStyle=ve.setCurrentStyle.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",this.styles.forEach(function(q){var z=document.createElement("div");z.style.display="flex",z.style.alignItems="center",z.style.justifyContent="space-between",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.overflow="hidden",z.style.maxWidth=100/I.styles.length-5+"%",z.style.borderColor=q===I.currentStyle?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentStyle(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.overflow="hidden";var Ke=` - `;ve.innerHTML=Ke,z.appendChild(ve),I.styleBoxes.push(z)}),H},E.prototype.setCurrentStyle=function(I,H){var q=this;this.currentStyle=I,this.styleBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},E}(oe),Je=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="FrameMarker",E.title="Frame marker",E.icon='',E}($e),Me=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(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.x1=0,z.y1=0,z.x2=0,z.y2=0,z.defaultLength=50,z.manipulationStartX=0,z.manipulationStartY=0,z.manipulationStartX1=0,z.manipulationStartY1=0,z.manipulationStartX2=0,z.manipulationStartY2=0,z.setupControlBox(),z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!!V.prototype.ownsTarget.call(this,I)||!(!this.grip1.ownsTarget(I)&&!this.grip2.ownsTarget(I))},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.manipulationStartX=I.x,this.manipulationStartY=I.y,this.state==="new"&&(this.x1=I.x,this.y1=I.y,this.x2=I.x,this.y2=I.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(H)?this.activeGrip=this.grip1:this.grip2.ownsTarget(H)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},E.prototype.pointerUp=function(I){var H=this.state;V.prototype.pointerUp.call(this,I),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(I),this._state="select",H==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},E.prototype.adjustVisual=function(){},E.prototype.manipulate=function(I){this.state==="creating"?this.resize(I):this.state==="move"?(this.x1=this.manipulationStartX1+I.x-this.manipulationStartX,this.y1=this.manipulationStartY1+I.y-this.manipulationStartY,this.x2=this.manipulationStartX2+I.x-this.manipulationStartX,this.y2=this.manipulationStartY2+I.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(I)},E.prototype.resize=function(I){switch(this.activeGrip){case this.grip1:this.x1=I.x,this.y1=I.y;break;case this.grip2:case void 0:this.x2=I.x,this.y2=I.y}this.adjustVisual(),this.adjustControlBox()},E.prototype.select=function(){V.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){V.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=ae.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},E.prototype.adjustControlBox=function(){this.positionGrips()},E.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},E.prototype.createGrip=function(){var I=new Ue;return I.visual.transform.baseVal.appendItem(ae.createTransform()),this.controlBox.appendChild(I.visual),I},E.prototype.positionGrips=function(){var I=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-I/2,this.y1-I/2),this.positionGrip(this.grip2.visual,this.x2-I/2,this.y2-I/2)},E.prototype.positionGrip=function(I,H,q){var z=I.transform.baseVal.getItem(0);z.setTranslate(H,q),I.transform.baseVal.replaceItem(z,0)},E.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},V.prototype.getState.call(this))},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.x1=H.x1,this.y1=H.y1,this.x2=H.x2,this.y2=H.y2},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.x1=this.x1*I,this.y1=this.y1*H,this.x2=this.x2*I,this.y2=this.y2*H,this.adjustVisual(),this.adjustControlBox()},E}(we),nt=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor="transparent",z.strokeWidth=0,z.strokeDasharray="",z.setStrokeColor=z.setStrokeColor.bind(z),z.setStrokeWidth=z.setStrokeWidth.bind(z),z.setStrokeDasharray=z.setStrokeDasharray.bind(z),z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.selectorLine&&I!==this.visibleLine)},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.selectorLine=ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ae.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)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},E.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()),ae.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ae.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setStrokeColor=function(I){this.strokeColor=I,this.adjustVisual(),this.colorChanged(I)},E.prototype.setStrokeWidth=function(I){this.strokeWidth=I,this.adjustVisual()},E.prototype.setStrokeDasharray=function(I){this.strokeDasharray=I,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.createVisual(),this.adjustVisual()},E.typeName="LineMarker",E.title="Line marker",E.icon='',E}(ut),Fe=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.fonts=[],ve.fontBoxes=[],ve.fonts=H,ve.currentFont=q,ve.setCurrentFont=ve.setCurrentFont.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.overflow="hidden",H.style.flexGrow="2",this.fonts.forEach(function(q){var z=document.createElement("div");z.style.display="inline-block",z.style.alignItems="center",z.style.justifyContent="space-between",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.overflow="hidden",z.style.maxWidth=100/I.fonts.length-5+"%",z.style.borderColor=q===I.currentFont?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentFont(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.style.display="flex",ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.fontFamily=q,ve.style.overflow="hidden";var Ke=document.createElement("div");Ke.style.whiteSpace="nowrap",Ke.style.overflow="hidden",Ke.style.textOverflow="ellipsis",Ke.innerHTML="The quick brown fox jumps over the lazy dog",ve.appendChild(Ke),z.appendChild(ve),I.fontBoxes.push(z)}),H},E.prototype.setCurrentFont=function(I,H){var q=this;this.currentFont=I,this.fontBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},E}(oe),je=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.color="transparent",z.padding=5,z.DEFAULT_TEXT="your text here",z.text=z.DEFAULT_TEXT,z.isMoved=!1,z.color=q.defaultColor,z.fontFamily=q.defaultFontFamily,z.defaultSize={x:100,y:30},z.setColor=z.setColor.bind(z),z.setFont=z.setFont.bind(z),z.renderText=z.renderText.bind(z),z.sizeText=z.sizeText.bind(z),z.textEditDivClicked=z.textEditDivClicked.bind(z),z.showTextEditor=z.showTextEditor.bind(z),z.setSize=z.setSize.bind(z),z.positionTextEditor=z.positionTextEditor.bind(z),z.colorPanel=new ye("Color",q.defaultColorSet,q.defaultColor),z.colorPanel.onColorChanged=z.setColor,z.fontFamilyPanel=new Fe("Font",q.defaultFontFamilies,q.defaultFontFamily),z.fontFamilyPanel.onFontChanged=z.setFont,z}return Ce(E,V),E.prototype.ownsTarget=function(I){if(V.prototype.ownsTarget.call(this,I)||I===this.visual||I===this.textElement||I===this.bgRectangle)return!0;var H=!1;return this.textElement.childNodes.forEach(function(q){q===I&&(H=!0)}),H},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.bgRectangle=ae.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ae.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ae.createTransform()),this.textElement.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.isMoved=!1,this.pointerDownPoint=I,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(I),this._state="creating")},E.prototype.renderText=function(){var I=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(H){I.textElement.appendChild(ae.createTSpan(H.trim()===""?" ":H.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},E.prototype.getTextScale=function(){var I=this.textElement.getBBox(),H=1;if(I.width>0&&I.height>0){var q=(1*this.width-this.width*this.padding*2/100)/I.width,z=(1*this.height-this.height*this.padding*2/100)/I.height;H=Math.min(q,z)}return H},E.prototype.getTextPosition=function(I){var H=this.textElement.getBBox(),q=0,z=0;return H.width>0&&H.height>0&&(q=(this.width-H.width*I)/2,z=this.height/2-H.height*I/2),{x:q,y:z}},E.prototype.sizeText=function(){var I=this.textElement.getBBox(),H=this.getTextScale(),q=this.getTextPosition(H);q.y-=I.y*H,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+q.x+"px, "+q.y+"px) scale("+H+", "+H+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(q.x,q.y),this.textElement.transform.baseVal.getItem(1).setScale(H,H))},E.prototype.manipulate=function(I){V.prototype.manipulate.call(this,I),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(I.x-this.pointerDownPoint.x)>5||Math.abs(I.y-this.pointerDownPoint.y)>5)},E.prototype.resize=function(I){V.prototype.resize.call(this,I),this.isMoved=!0,this.setSize(),this.sizeText()},E.prototype.setSize=function(){V.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},E.prototype.pointerUp=function(I){var H=this.state;H==="creating"&&(this._suppressMarkerCreateEvent=!0),V.prototype.pointerUp.call(this,I),this.setSize(),(H==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},E.prototype.showTextEditor=function(){var I=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(H){H.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var H=Number.parseFloat(I.textEditor.style.fontSize);I.textEditor.clientWidth>=Number.parseInt(I.textEditor.style.maxWidth)&&H>.9;)H-=.1,I.textEditor.style.fontSize=Math.max(H,.9)+"em"}),this.textEditor.addEventListener("keyup",function(H){H.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(H){if(H.clipboardData){var q=H.clipboardData.getData("text"),z=window.getSelection();if(!z.rangeCount)return!1;z.deleteFromDocument(),z.getRangeAt(0).insertNode(document.createTextNode(q)),H.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){I.textEditDivClicked(I.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},E.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var I=this.getTextScale(),H=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),q=this.textElement.getBBox(),z={x:q.width*I,y:q.height*I};H.x-=z.x/2,H.y-=z.y/2,this.textEditor.style.top=H.y+"px",this.textEditor.style.left=H.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-H.x+"px",this.textEditor.style.fontSize=Math.max(16*I,12)+"px",this.textElement.style.display="none"}},E.prototype.textEditDivClicked=function(I){this.text=I.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},E.prototype.select=function(){V.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},E.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),V.prototype.deselect.call(this)},E.prototype.dblClick=function(I,H){V.prototype.dblClick.call(this,I,H),this.showTextEditor()},E.prototype.setColor=function(I){this.textElement&&ae.setAttributes(this.textElement,[["fill",I]]),this.color=I,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(I)},E.prototype.setFont=function(I){this.textElement&&ae.setAttributes(this.textElement,[["font-family",I]]),this.fontFamily=I,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},E.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},E.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){var H=I;this.color=H.color,this.fontFamily=H.fontFamily,this.padding=H.padding,this.text=H.text,this.createVisual(),V.prototype.restoreState.call(this,I),this.setSize()},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.setSize(),this.sizeText(),this.positionTextEditor()},E.typeName="TextMarker",E.title="Text marker",E.icon='',E}(Ze),Ee=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.color="transparent",z.lineWidth=3,z.drawing=!1,z.pixelRatio=1,z.color=q.defaultColor,z.lineWidth=q.defaultStrokeWidth,z.pixelRatio=q.freehandPixelRatio,z.setColor=z.setColor.bind(z),z.addCanvas=z.addCanvas.bind(z),z.finishCreation=z.finishCreation.bind(z),z.setLineWidth=z.setLineWidth.bind(z),z.colorPanel=new ye("Color",q.defaultColorSet,q.defaultColor),z.colorPanel.onColorChanged=z.setColor,z.lineWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.lineWidthPanel.onWidthChanged=z.setLineWidth,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.drawingImage)},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.drawingImage=ae.createImage(),this.visual.appendChild(this.drawingImage);var I=ae.createTransform();this.visual.transform.baseVal.appendItem(I),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(I,H){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(I.x,I.y),this.drawing=!0):V.prototype.pointerDown.call(this,I,H)},E.prototype.manipulate=function(I){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(I.x,I.y),this.canvasContext.stroke()):V.prototype.manipulate.call(this,I)},E.prototype.resize=function(I){V.prototype.resize.call(this,I),ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(I){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):V.prototype.pointerUp.call(this,I)},E.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)},E.prototype.select=function(){this.state==="creating"&&this.finishCreation(),V.prototype.select.call(this)},E.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),V.prototype.deselect.call(this)},E.prototype.finishCreation=function(){for(var I=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),H=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],q=H[0],z=H[1],ve=H[2],Ke=H[3],it=!1,pt=0;pt0&&(it=!0,ptKe&&(Ke=pt),Ye>ve&&(ve=Ye));if(it){this.left=q/this.pixelRatio,this.top=z/this.pixelRatio,this.width=(ve-q)/this.pixelRatio,this.height=(Ke-z)/this.pixelRatio;var _t=document.createElement("canvas");_t.width=ve-q,_t.height=Ke-z,_t.getContext("2d").putImageData(this.canvasContext.getImageData(q,z,ve-q,Ke-z),0,0),this.drawingImgUrl=_t.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},E.prototype.setDrawingImage=function(){ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},E.prototype.setColor=function(I){this.color=I,this.colorChanged(I)},E.prototype.setLineWidth=function(I){this.lineWidth=I},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({drawingImgUrl:this.drawingImgUrl},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){this.createVisual(),V.prototype.restoreState.call(this,I),this.drawingImgUrl=I.drawingImgUrl,this.setDrawingImage()},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.setDrawingImage()},E.typeName="FreehandMarker",E.title="Freehand marker",E.icon='',E}(Ze),ge=function(V){function E(I,H,q){var z=V.call(this,I,q||'')||this;return z.typeBoxes=[],z.currentType=H,z.setCurrentType=z.setCurrentType.bind(z),z}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2";for(var q=function(Ke){var it="both";switch(Ke){case 0:it="both";break;case 1:it="start";break;case 2:it="end";break;case 3:it="none"}var pt=document.createElement("div");if(pt.style.display="flex",pt.style.flexGrow="2",pt.style.alignItems="center",pt.style.justifyContent="space-between",pt.style.padding="5px",pt.style.borderWidth="2px",pt.style.borderStyle="solid",pt.style.borderColor=it===z.currentType?z.uiStyleSettings.toolboxAccentColor:"transparent",pt.addEventListener("click",function(){I.setCurrentType(it,pt)}),H.appendChild(pt),it==="both"||it==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.innerHTML=` + `;ve.innerHTML=Ke,z.appendChild(ve),I.styleBoxes.push(z)}),H},E.prototype.setCurrentStyle=function(I,H){var q=this;this.currentStyle=I,this.styleBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},E}(oe),Je=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="FrameMarker",E.title="Frame marker",E.icon='',E}($e),Me=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(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.x1=0,z.y1=0,z.x2=0,z.y2=0,z.defaultLength=50,z.manipulationStartX=0,z.manipulationStartY=0,z.manipulationStartX1=0,z.manipulationStartY1=0,z.manipulationStartX2=0,z.manipulationStartY2=0,z.setupControlBox(),z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!!V.prototype.ownsTarget.call(this,I)||!(!this.grip1.ownsTarget(I)&&!this.grip2.ownsTarget(I))},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.manipulationStartX=I.x,this.manipulationStartY=I.y,this.state==="new"&&(this.x1=I.x,this.y1=I.y,this.x2=I.x,this.y2=I.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(H)?this.activeGrip=this.grip1:this.grip2.ownsTarget(H)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},E.prototype.pointerUp=function(I){var H=this.state;V.prototype.pointerUp.call(this,I),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(I),this._state="select",H==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},E.prototype.adjustVisual=function(){},E.prototype.manipulate=function(I){this.state==="creating"?this.resize(I):this.state==="move"?(this.x1=this.manipulationStartX1+I.x-this.manipulationStartX,this.y1=this.manipulationStartY1+I.y-this.manipulationStartY,this.x2=this.manipulationStartX2+I.x-this.manipulationStartX,this.y2=this.manipulationStartY2+I.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(I)},E.prototype.resize=function(I){switch(this.activeGrip){case this.grip1:this.x1=I.x,this.y1=I.y;break;case this.grip2:case void 0:this.x2=I.x,this.y2=I.y}this.adjustVisual(),this.adjustControlBox()},E.prototype.select=function(){V.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},E.prototype.deselect=function(){V.prototype.deselect.call(this),this.controlBox.style.display="none"},E.prototype.setupControlBox=function(){this.controlBox=ae.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},E.prototype.adjustControlBox=function(){this.positionGrips()},E.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},E.prototype.createGrip=function(){var I=new Ue;return I.visual.transform.baseVal.appendItem(ae.createTransform()),this.controlBox.appendChild(I.visual),I},E.prototype.positionGrips=function(){var I=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-I/2,this.y1-I/2),this.positionGrip(this.grip2.visual,this.x2-I/2,this.y2-I/2)},E.prototype.positionGrip=function(I,H,q){var z=I.transform.baseVal.getItem(0);z.setTranslate(H,q),I.transform.baseVal.replaceItem(z,0)},E.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},V.prototype.getState.call(this))},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.x1=H.x1,this.y1=H.y1,this.x2=H.x2,this.y2=H.y2},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.x1=this.x1*I,this.y1=this.y1*H,this.x2=this.x2*I,this.y2=this.y2*H,this.adjustVisual(),this.adjustControlBox()},E}(we),rt=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor="transparent",z.strokeWidth=0,z.strokeDasharray="",z.setStrokeColor=z.setStrokeColor.bind(z),z.setStrokeWidth=z.setStrokeWidth.bind(z),z.setStrokeDasharray=z.setStrokeDasharray.bind(z),z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.selectorLine&&I!==this.visibleLine)},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.selectorLine=ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ae.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)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},E.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()),ae.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ae.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setStrokeColor=function(I){this.strokeColor=I,this.adjustVisual(),this.colorChanged(I)},E.prototype.setStrokeWidth=function(I){this.strokeWidth=I,this.adjustVisual()},E.prototype.setStrokeDasharray=function(I){this.strokeDasharray=I,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.createVisual(),this.adjustVisual()},E.typeName="LineMarker",E.title="Line marker",E.icon='',E}(ut),Fe=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.fonts=[],ve.fontBoxes=[],ve.fonts=H,ve.currentFont=q,ve.setCurrentFont=ve.setCurrentFont.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.overflow="hidden",H.style.flexGrow="2",this.fonts.forEach(function(q){var z=document.createElement("div");z.style.display="inline-block",z.style.alignItems="center",z.style.justifyContent="space-between",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.overflow="hidden",z.style.maxWidth=100/I.fonts.length-5+"%",z.style.borderColor=q===I.currentFont?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentFont(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.style.display="flex",ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.fontFamily=q,ve.style.overflow="hidden";var Ke=document.createElement("div");Ke.style.whiteSpace="nowrap",Ke.style.overflow="hidden",Ke.style.textOverflow="ellipsis",Ke.innerHTML="The quick brown fox jumps over the lazy dog",ve.appendChild(Ke),z.appendChild(ve),I.fontBoxes.push(z)}),H},E.prototype.setCurrentFont=function(I,H){var q=this;this.currentFont=I,this.fontBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},E}(oe),je=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.color="transparent",z.padding=5,z.DEFAULT_TEXT="your text here",z.text=z.DEFAULT_TEXT,z.isMoved=!1,z.color=q.defaultColor,z.fontFamily=q.defaultFontFamily,z.defaultSize={x:100,y:30},z.setColor=z.setColor.bind(z),z.setFont=z.setFont.bind(z),z.renderText=z.renderText.bind(z),z.sizeText=z.sizeText.bind(z),z.textEditDivClicked=z.textEditDivClicked.bind(z),z.showTextEditor=z.showTextEditor.bind(z),z.setSize=z.setSize.bind(z),z.positionTextEditor=z.positionTextEditor.bind(z),z.colorPanel=new ye("Color",q.defaultColorSet,q.defaultColor),z.colorPanel.onColorChanged=z.setColor,z.fontFamilyPanel=new Fe("Font",q.defaultFontFamilies,q.defaultFontFamily),z.fontFamilyPanel.onFontChanged=z.setFont,z}return Ce(E,V),E.prototype.ownsTarget=function(I){if(V.prototype.ownsTarget.call(this,I)||I===this.visual||I===this.textElement||I===this.bgRectangle)return!0;var H=!1;return this.textElement.childNodes.forEach(function(q){q===I&&(H=!0)}),H},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.bgRectangle=ae.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ae.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ae.createTransform()),this.textElement.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.isMoved=!1,this.pointerDownPoint=I,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(I),this._state="creating")},E.prototype.renderText=function(){var I=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(H){I.textElement.appendChild(ae.createTSpan(H.trim()===""?" ":H.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},E.prototype.getTextScale=function(){var I=this.textElement.getBBox(),H=1;if(I.width>0&&I.height>0){var q=(1*this.width-this.width*this.padding*2/100)/I.width,z=(1*this.height-this.height*this.padding*2/100)/I.height;H=Math.min(q,z)}return H},E.prototype.getTextPosition=function(I){var H=this.textElement.getBBox(),q=0,z=0;return H.width>0&&H.height>0&&(q=(this.width-H.width*I)/2,z=this.height/2-H.height*I/2),{x:q,y:z}},E.prototype.sizeText=function(){var I=this.textElement.getBBox(),H=this.getTextScale(),q=this.getTextPosition(H);q.y-=I.y*H,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+q.x+"px, "+q.y+"px) scale("+H+", "+H+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(q.x,q.y),this.textElement.transform.baseVal.getItem(1).setScale(H,H))},E.prototype.manipulate=function(I){V.prototype.manipulate.call(this,I),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(I.x-this.pointerDownPoint.x)>5||Math.abs(I.y-this.pointerDownPoint.y)>5)},E.prototype.resize=function(I){V.prototype.resize.call(this,I),this.isMoved=!0,this.setSize(),this.sizeText()},E.prototype.setSize=function(){V.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},E.prototype.pointerUp=function(I){var H=this.state;H==="creating"&&(this._suppressMarkerCreateEvent=!0),V.prototype.pointerUp.call(this,I),this.setSize(),(H==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},E.prototype.showTextEditor=function(){var I=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(H){H.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var H=Number.parseFloat(I.textEditor.style.fontSize);I.textEditor.clientWidth>=Number.parseInt(I.textEditor.style.maxWidth)&&H>.9;)H-=.1,I.textEditor.style.fontSize=Math.max(H,.9)+"em"}),this.textEditor.addEventListener("keyup",function(H){H.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(H){if(H.clipboardData){var q=H.clipboardData.getData("text"),z=window.getSelection();if(!z.rangeCount)return!1;z.deleteFromDocument(),z.getRangeAt(0).insertNode(document.createTextNode(q)),H.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){I.textEditDivClicked(I.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},E.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var I=this.getTextScale(),H=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),q=this.textElement.getBBox(),z={x:q.width*I,y:q.height*I};H.x-=z.x/2,H.y-=z.y/2,this.textEditor.style.top=H.y+"px",this.textEditor.style.left=H.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-H.x+"px",this.textEditor.style.fontSize=Math.max(16*I,12)+"px",this.textElement.style.display="none"}},E.prototype.textEditDivClicked=function(I){this.text=I.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},E.prototype.select=function(){V.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},E.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),V.prototype.deselect.call(this)},E.prototype.dblClick=function(I,H){V.prototype.dblClick.call(this,I,H),this.showTextEditor()},E.prototype.setColor=function(I){this.textElement&&ae.setAttributes(this.textElement,[["fill",I]]),this.color=I,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(I)},E.prototype.setFont=function(I){this.textElement&&ae.setAttributes(this.textElement,[["font-family",I]]),this.fontFamily=I,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},E.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},E.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){var H=I;this.color=H.color,this.fontFamily=H.fontFamily,this.padding=H.padding,this.text=H.text,this.createVisual(),V.prototype.restoreState.call(this,I),this.setSize()},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.setSize(),this.sizeText(),this.positionTextEditor()},E.typeName="TextMarker",E.title="Text marker",E.icon='',E}(Ze),Ee=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.color="transparent",z.lineWidth=3,z.drawing=!1,z.pixelRatio=1,z.color=q.defaultColor,z.lineWidth=q.defaultStrokeWidth,z.pixelRatio=q.freehandPixelRatio,z.setColor=z.setColor.bind(z),z.addCanvas=z.addCanvas.bind(z),z.finishCreation=z.finishCreation.bind(z),z.setLineWidth=z.setLineWidth.bind(z),z.colorPanel=new ye("Color",q.defaultColorSet,q.defaultColor),z.colorPanel.onColorChanged=z.setColor,z.lineWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.lineWidthPanel.onWidthChanged=z.setLineWidth,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.drawingImage)},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.drawingImage=ae.createImage(),this.visual.appendChild(this.drawingImage);var I=ae.createTransform();this.visual.transform.baseVal.appendItem(I),this.addMarkerVisualToContainer(this.visual)},E.prototype.pointerDown=function(I,H){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(I.x,I.y),this.drawing=!0):V.prototype.pointerDown.call(this,I,H)},E.prototype.manipulate=function(I){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(I.x,I.y),this.canvasContext.stroke()):V.prototype.manipulate.call(this,I)},E.prototype.resize=function(I){V.prototype.resize.call(this,I),ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},E.prototype.pointerUp=function(I){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):V.prototype.pointerUp.call(this,I)},E.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)},E.prototype.select=function(){this.state==="creating"&&this.finishCreation(),V.prototype.select.call(this)},E.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),V.prototype.deselect.call(this)},E.prototype.finishCreation=function(){for(var I=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),H=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],q=H[0],z=H[1],ve=H[2],Ke=H[3],it=!1,pt=0;pt0&&(it=!0,ptKe&&(Ke=pt),Ye>ve&&(ve=Ye));if(it){this.left=q/this.pixelRatio,this.top=z/this.pixelRatio,this.width=(ve-q)/this.pixelRatio,this.height=(Ke-z)/this.pixelRatio;var _t=document.createElement("canvas");_t.width=ve-q,_t.height=Ke-z,_t.getContext("2d").putImageData(this.canvasContext.getImageData(q,z,ve-q,Ke-z),0,0),this.drawingImgUrl=_t.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},E.prototype.setDrawingImage=function(){ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},E.prototype.setColor=function(I){this.color=I,this.colorChanged(I)},E.prototype.setLineWidth=function(I){this.lineWidth=I},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({drawingImgUrl:this.drawingImgUrl},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){this.createVisual(),V.prototype.restoreState.call(this,I),this.drawingImgUrl=I.drawingImgUrl,this.setDrawingImage()},E.prototype.scale=function(I,H){V.prototype.scale.call(this,I,H),this.setDrawingImage()},E.typeName="FreehandMarker",E.title="Freehand marker",E.icon='',E}(Ze),ge=function(V){function E(I,H,q){var z=V.call(this,I,q||'')||this;return z.typeBoxes=[],z.currentType=H,z.setCurrentType=z.setCurrentType.bind(z),z}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2";for(var q=function(Ke){var it="both";switch(Ke){case 0:it="both";break;case 1:it="start";break;case 2:it="end";break;case 3:it="none"}var pt=document.createElement("div");if(pt.style.display="flex",pt.style.flexGrow="2",pt.style.alignItems="center",pt.style.justifyContent="space-between",pt.style.padding="5px",pt.style.borderWidth="2px",pt.style.borderStyle="solid",pt.style.borderColor=it===z.currentType?z.uiStyleSettings.toolboxAccentColor:"transparent",pt.addEventListener("click",function(){I.setCurrentType(it,pt)}),H.appendChild(pt),it==="both"||it==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.innerHTML=` `,Ye.style.marginLeft="5px",pt.appendChild(Ye)}var _t=document.createElement("div");_t.style.display="flex",_t.style.alignItems="center",_t.style.minHeight="20px",_t.style.flexGrow="2";var jt=document.createElement("hr");if(jt.style.minWidth="20px",jt.style.border="0px",jt.style.borderTop="3px solid "+(z.uiStyleSettings!==void 0?z.uiStyleSettings.toolboxColor:"#eeeeee"),jt.style.flexGrow="2",_t.appendChild(jt),pt.appendChild(_t),it==="both"||it==="end"){var $t=document.createElement("div");$t.style.display="flex",$t.style.alignItems="center",$t.style.minHeight="20px",$t.innerHTML=` - `,$t.style.marginRight="5px",pt.appendChild($t)}z.typeBoxes.push(pt)},z=this,ve=0;ve<4;ve++)q(ve);return H},E.prototype.setCurrentType=function(I,H){var q=this;this.currentType=I,this.typeBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings!==void 0?q.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},E}(oe),_e=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.arrowType="end",z.arrowBaseHeight=10,z.arrowBaseWidth=10,z.getArrowPoints=z.getArrowPoints.bind(z),z.setArrowType=z.setArrowType.bind(z),z.arrowTypePanel=new ge("Arrow type","end"),z.arrowTypePanel.onArrowTypeChanged=z.setArrowType,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.arrow1&&I!==this.arrow2)},E.prototype.getArrowPoints=function(I,H){var q=this.arrowBaseWidth+2*this.strokeWidth,z=this.arrowBaseHeight+2*this.strokeWidth;return I-q/2+","+(H+z/2)+" "+I+","+(H-z/2)+" "+(I+q/2)+","+(H+z/2)},E.prototype.createTips=function(){this.arrow1=ae.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ae.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.arrow2)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="creating"&&this.createTips()},E.prototype.adjustVisual=function(){if(V.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",ae.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ae.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var I=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.arrow1.transform.baseVal.getItem(0);H.setRotate(I,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(H,0);var q=this.arrow2.transform.baseVal.getItem(0);q.setRotate(I+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(q,0)}},E.prototype.setArrowType=function(I){this.arrowType=I,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({arrowType:this.arrowType},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.arrowType=H.arrowType,this.createTips(),this.adjustVisual()},E.typeName="ArrowMarker",E.title="Arrow marker",E.icon='',E}(nt),ne=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.fillColor=q.defaultFillColor,z.strokeWidth=0,z.fillPanel=new ye("Color",q.defaultColorSet,q.defaultFillColor),z.fillPanel.onColorChanged=z.setFillColor,z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="CoverMarker",E.title="Cover marker",E.icon='',E}($e),re=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.opacities=[],ve.opacityBoxes=[],ve.opacities=H,ve.currentOpacity=q,ve.setCurrentOpacity=ve.setCurrentOpacity.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",H.style.justifyContent="space-between",this.opacities.forEach(function(q){var z=document.createElement("div");z.style.display="flex",z.style.alignItems="center",z.style.justifyContent="center",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.borderColor=q===I.currentOpacity?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentOpacity(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.innerText=100*q+"%",z.appendChild(ve),I.opacityBoxes.push(z)}),H},E.prototype.setCurrentOpacity=function(I,H){var q=this;this.currentOpacity=I,this.opacityBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},E}(oe),he=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.setOpacity=z.setOpacity.bind(z),z.fillColor=q.defaultHighlightColor,z.strokeWidth=0,z.opacity=q.defaultHighlightOpacity,z.fillPanel=new ye("Color",q.defaultColorSet,z.fillColor),z.fillPanel.onColorChanged=z.setFillColor,z.opacityPanel=new re("Opacity",q.defaultOpacitySteps,z.opacity),z.opacityPanel.onOpacityChanged=z.setOpacity,z}return Ce(E,V),E.prototype.setOpacity=function(I){this.opacity=I,this.visual&&ae.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="HighlightMarker",E.title="Highlight marker",E.icon='',E}(ne),fe='',xe=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.bgColor="transparent",z.tipPosition={x:0,y:0},z.tipBase1Position={x:0,y:0},z.tipBase2Position={x:0,y:0},z.tipMoving=!1,z.color=q.defaultStrokeColor,z.bgColor=q.defaultFillColor,z.fontFamily=q.defaultFontFamily,z.defaultSize={x:100,y:30},z.setBgColor=z.setBgColor.bind(z),z.getTipPoints=z.getTipPoints.bind(z),z.positionTip=z.positionTip.bind(z),z.setTipPoints=z.setTipPoints.bind(z),z.colorPanel=new ye("Text color",q.defaultColorSet,z.color,''),z.colorPanel.onColorChanged=z.setColor,z.bgColorPanel=new ye("Fill color",q.defaultColorSet,z.bgColor,fe),z.bgColorPanel.onColorChanged=z.setBgColor,z.fontFamilyPanel=new Fe("Font",q.defaultFontFamilies,q.defaultFontFamily),z.fontFamilyPanel.onFontChanged=z.setFont,z.tipGrip=new Ue,z.tipGrip.visual.transform.baseVal.appendItem(ae.createTransform()),z.controlBox.appendChild(z.tipGrip.visual),z}return Ce(E,V),E.prototype.ownsTarget=function(I){return V.prototype.ownsTarget.call(this,I)||this.tipGrip.ownsTarget(I)||this.tip===I},E.prototype.createTip=function(){ae.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ae.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},E.prototype.pointerDown=function(I,H){this.state==="new"&&V.prototype.pointerDown.call(this,I,H),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(H)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):V.prototype.pointerDown.call(this,I,H)},E.prototype.pointerUp=function(I){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,V.prototype.pointerUp.call(this,I);else{var H=this.state==="creating";V.prototype.pointerUp.call(this,I),this.setTipPoints(H),this.positionTip()}},E.prototype.manipulate=function(I){if(this.tipMoving){var H=this.unrotatePoint(I);this.tipPosition={x:H.x-this.manipulationStartLeft,y:H.y-this.manipulationStartTop},this.positionTip()}else V.prototype.manipulate.call(this,I)},E.prototype.setBgColor=function(I){this.bgRectangle&&this.tip&&(ae.setAttributes(this.bgRectangle,[["fill",I]]),ae.setAttributes(this.tip,[["fill",I]])),this.bgColor=I,this.fillColorChanged(I)},E.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},E.prototype.setTipPoints=function(I){I===void 0&&(I=!1);var H=Math.min(this.height/2,15),q=this.height/5;I&&(this.tipPosition={x:H+q/2,y:this.height+20});var z=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?z.1)){var I=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.tip1.transform.baseVal.getItem(0);H.setRotate(I,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(H,0);var q=this.tip2.transform.baseVal.getItem(0);q.setRotate(I+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(q,0)}},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I),this.createTips(),this.adjustVisual()},E.typeName="MeasurementMarker",E.title="Measurement marker",E.icon='',E}(nt),ot=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokePanel.colors=q.defaultColorSet,z.fillColor="transparent",z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="EllipseFrameMarker",E.title="Ellipse frame marker",E.icon='',E}(Pe),mt=function(){function V(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(V.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),V.prototype.addUndoStep=function(E){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(E)||(this.undoStack.push(E),JSON.stringify(this.lastRedoStep)!==JSON.stringify(E)&&this.redoStack.splice(0,this.redoStack.length))},V.prototype.replaceLastUndoStep=function(E){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=E)},V.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},V.prototype.undo=function(){if(this.undoStack.length>1){var E=this.undoStack.pop();return E!==void 0&&this.redoStack.push(E),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},V.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},V}(),ft=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor="transparent",z.strokeWidth=0,z.strokeDasharray="",z.curveX=0,z.curveY=0,z.manipulationStartCurveX=0,z.manipulationStartCurveY=0,z.setStrokeColor=z.setStrokeColor.bind(z),z.setStrokeWidth=z.setStrokeWidth.bind(z),z.setStrokeDasharray=z.setStrokeDasharray.bind(z),z.positionGrips=z.positionGrips.bind(z),z.addControlGrips=z.addControlGrips.bind(z),z.adjustVisual=z.adjustVisual.bind(z),z.setupControlBox=z.setupControlBox.bind(z),z.resize=z.resize.bind(z),z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.selectorCurve&&I!==this.visibleCurve&&!this.curveGrip.ownsTarget(I))},E.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.selectorCurve=ae.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ae.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)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=I.x,this.curveY=I.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(H)&&(this.activeGrip=this.curveGrip,this._state="resize")},E.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ae.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ae.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setupControlBox=function(){V.prototype.setupControlBox.call(this),this.curveControlLine1=ae.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ae.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)},E.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,V.prototype.addControlGrips.call(this)},E.prototype.positionGrips=function(){V.prototype.positionGrips.call(this);var I=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-I/2,this.curveY-I/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()))},E.prototype.manipulate=function(I){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+I.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+I.y-this.manipulationStartY),V.prototype.manipulate.call(this,I)},E.prototype.resize=function(I){this.activeGrip===this.curveGrip&&(this.curveX=I.x,this.curveY=I.y),V.prototype.resize.call(this,I),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},E.prototype.setStrokeColor=function(I){this.strokeColor=I,this.adjustVisual(),this.colorChanged(I)},E.prototype.setStrokeWidth=function(I){this.strokeWidth=I,this.adjustVisual()},E.prototype.setStrokeDasharray=function(I){this.strokeDasharray=I,this.adjustVisual()},E.prototype.scale=function(I,H){this.curveX=this.curveX*I,this.curveY=this.curveY*H,V.prototype.scale.call(this,I,H)},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.curveX=H.curveX,this.curveY=H.curveY,this.createVisual(),this.adjustVisual()},E.typeName="CurveMarker",E.title="Curve marker",E.icon='',E}(ut),wt=function(){function V(E,I){I===void 0&&(I=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=E,this.cancelable=I}return Object.defineProperty(V.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),V.prototype.preventDefault=function(){this._defaultPrevented=!0},V}(),St=function(V){function E(I,H,q){var z=V.call(this,I,!1)||this;return z.dataUrl=H,z.state=q,z}return Ce(E,V),E}(wt),dt=function(V){function E(I,H,q){q===void 0&&(q=!1);var z=V.call(this,I,q)||this;return z.marker=H,z}return Ce(E,V),E}(wt),Ut=function(){function V(){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 V.prototype.addEventListener=function(E,I){this[E].push(I)},V.prototype.removeEventListener=function(E,I){var H=this[E].indexOf(I);H>-1&&this[E].splice(H,1)},V}(),Lt=function(){function V(E){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Me,this._isOpen=!1,this.undoRedoManager=new mt,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 Ut,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=V.instanceCounter++,this.styles=new De(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=E,this.targetRoot=document.body,this.width=E.clientWidth,this.height=E.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(V.prototype,"ALL_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,ot,Pe,he,xe,ze,ne,nt,ft]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,Pe,he,xe]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,he]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(E){var I=this;this._availableMarkerTypes.splice(0),E.forEach(function(H){if(typeof H=="string"){var q=I.ALL_MARKER_TYPES.find(function(z){return z.typeName===H});q!==void 0&&I._availableMarkerTypes.push(q)}else I._availableMarkerTypes.push(H)})},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(E){this._zoomLevel=E,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(V.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),V.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},V.prototype.show=function(){var E=this;this.styles.styleSheetRoot===void 0&&Ne.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ne.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(I){return I(new wt(E))})},V.prototype.render=function(){return ce(this,void 0,void 0,function(){var E;return pe(this,function(I){switch(I.label){case 0:return this.setCurrentMarker(),(E=new Te).naturalSize=this.renderAtNaturalSize,E.imageType=this.renderImageType,E.imageQuality=this.renderImageQuality,E.markersOnly=this.renderMarkersOnly,E.width=this.renderWidth,E.height=this.renderHeight,[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return I.sent(),[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,I.sent()]}})})},V.prototype.close=function(E){var I=this;if(E===void 0&&(E=!1),this.isOpen){var H=!1;E||this.eventListeners.beforeclose.forEach(function(q){var z=new wt(I,!0);q(z),z.defaultPrevented&&(H=!0)}),H||(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(q){return q(new wt(I))}),this.detachEvents(),this._isOpen=!1)}},V.prototype.addMarkersToToolbar=function(){for(var E,I=[],H=0;Hthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*E:this.editorCanvas.clientWidth,H=I',E.title="Powered by marker.js",E.style.display="grid",E.style.alignItems="center",E.style.justifyItems="center",E.style.padding="3px",E.style.width="20px",E.style.height="20px",this.logoUI.appendChild(E),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},V.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")},V.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"},V.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},V.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 E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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 Be(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(E),1),E.dispose()},V.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())},V.prototype.toolbarButtonClicked=function(E,I){if(E==="marker"&&I!==void 0)this.createNewMarker(I);else if(E==="action")switch(I){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()}},V.prototype.deleteSelectedMarker=function(){var E=this;if(this._currentMarker!==void 0){var I=!1;if(this.eventListeners.markerbeforedelete.forEach(function(q){var z=new dt(E,E._currentMarker,!0);q(z),z.defaultPrevented&&(I=!0)}),!I){var H=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(q){return q(new dt(E,H))})}}},V.prototype.clear=function(){var E=this,I=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ve){var Ke=new dt(E,void 0,!0);ve(Ke),Ke.defaultPrevented&&(I=!0)}),!I)){this.setCurrentMarker();for(var H=function(ve){var Ke=q.markers[ve];q.setCurrentMarker(q.markers[ve]),q._currentMarker.dispose(),q.markerImage.removeChild(q._currentMarker.container),q.markers.splice(q.markers.indexOf(q._currentMarker),1),q.eventListeners.markerdelete.forEach(function(it){return it(new dt(E,Ke))})},q=this,z=this.markers.length-1;z>=0;z--)H(z);this.addUndoStep()}},Object.defineProperty(V.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),V.prototype.showNotesEditor=function(){var E;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=(E=this._currentMarker.notes)!==null&&E!==void 0?E:"",this.overlayContainer.appendChild(this.notesArea))},V.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)},V.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},V.prototype.addUndoStep=function(){var E=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var I=this.getState(),H=this.undoRedoManager.getLastUndoStep();if(!H||H.width===I.width&&H.height===I.height){var q=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(I),q1&&this.panTo({x:E.clientX,y:E.clientY}))},V.prototype.onPointerUp=function(E){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(E.clientX,E.clientY)),this.isDragging=!1,this.addUndoStep()},V.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},V.prototype.onKeyUp=function(E){this._currentMarker===void 0||this.notesArea!==void 0||E.key!=="Delete"&&E.key!=="Backspace"||this.deleteSelectedMarker()},V.prototype.clientToLocalCoordinates=function(E,I){var H=this.markerImage.getBoundingClientRect();return{x:(E-H.left)/this.zoomLevel,y:(I-H.top)/this.zoomLevel}},V.prototype.onWindowResize=function(){this.positionUI()},V.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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()},V.prototype.addLicenseKey=function(E){Oe.addKey(E)},V.prototype.addEventListener=function(E,I){this.eventListeners.addEventListener(E,I)},V.prototype.removeEventListener=function(E,I){this.eventListeners.removeEventListener(E,I)},V.prototype.renderState=function(E){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(E),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(V.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),V.prototype.focus=function(){var E=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(I){return I(new wt(E))}))},V.prototype.blur=function(){var E=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(I){return I(new wt(E))}))},V.instanceCounter=0,V}();/* ********************************** + `,$t.style.marginRight="5px",pt.appendChild($t)}z.typeBoxes.push(pt)},z=this,ve=0;ve<4;ve++)q(ve);return H},E.prototype.setCurrentType=function(I,H){var q=this;this.currentType=I,this.typeBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings!==void 0?q.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},E}(oe),_e=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.arrowType="end",z.arrowBaseHeight=10,z.arrowBaseWidth=10,z.getArrowPoints=z.getArrowPoints.bind(z),z.setArrowType=z.setArrowType.bind(z),z.arrowTypePanel=new ge("Arrow type","end"),z.arrowTypePanel.onArrowTypeChanged=z.setArrowType,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.arrow1&&I!==this.arrow2)},E.prototype.getArrowPoints=function(I,H){var q=this.arrowBaseWidth+2*this.strokeWidth,z=this.arrowBaseHeight+2*this.strokeWidth;return I-q/2+","+(H+z/2)+" "+I+","+(H-z/2)+" "+(I+q/2)+","+(H+z/2)},E.prototype.createTips=function(){this.arrow1=ae.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ae.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.arrow2)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.state==="creating"&&this.createTips()},E.prototype.adjustVisual=function(){if(V.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",ae.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ae.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var I=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.arrow1.transform.baseVal.getItem(0);H.setRotate(I,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(H,0);var q=this.arrow2.transform.baseVal.getItem(0);q.setRotate(I+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(q,0)}},E.prototype.setArrowType=function(I){this.arrowType=I,this.adjustVisual(),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({arrowType:this.arrowType},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.arrowType=H.arrowType,this.createTips(),this.adjustVisual()},E.typeName="ArrowMarker",E.title="Arrow marker",E.icon='',E}(rt),re=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.fillColor=q.defaultFillColor,z.strokeWidth=0,z.fillPanel=new ye("Color",q.defaultColorSet,q.defaultFillColor),z.fillPanel.onColorChanged=z.setFillColor,z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="CoverMarker",E.title="Cover marker",E.icon='',E}($e),ne=function(V){function E(I,H,q,z){var ve=V.call(this,I,z||'')||this;return ve.opacities=[],ve.opacityBoxes=[],ve.opacities=H,ve.currentOpacity=q,ve.setCurrentOpacity=ve.setCurrentOpacity.bind(ve),ve}return Ce(E,V),E.prototype.getUi=function(){var I=this,H=document.createElement("div");return H.style.display="flex",H.style.overflow="hidden",H.style.flexGrow="2",H.style.justifyContent="space-between",this.opacities.forEach(function(q){var z=document.createElement("div");z.style.display="flex",z.style.alignItems="center",z.style.justifyContent="center",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.borderColor=q===I.currentOpacity?I.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){I.setCurrentOpacity(q,z)}),H.appendChild(z);var ve=document.createElement("div");ve.innerText=100*q+"%",z.appendChild(ve),I.opacityBoxes.push(z)}),H},E.prototype.setCurrentOpacity=function(I,H){var q=this;this.currentOpacity=I,this.opacityBoxes.forEach(function(z){z.style.borderColor=z===H?q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},E}(oe),he=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.setOpacity=z.setOpacity.bind(z),z.fillColor=q.defaultHighlightColor,z.strokeWidth=0,z.opacity=q.defaultHighlightOpacity,z.fillPanel=new ye("Color",q.defaultColorSet,z.fillColor),z.fillPanel.onColorChanged=z.setFillColor,z.opacityPanel=new ne("Opacity",q.defaultOpacitySteps,z.opacity),z.opacityPanel.onOpacityChanged=z.setOpacity,z}return Ce(E,V),E.prototype.setOpacity=function(I){this.opacity=I,this.visual&&ae.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="HighlightMarker",E.title="Highlight marker",E.icon='',E}(re),fe='',xe=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.bgColor="transparent",z.tipPosition={x:0,y:0},z.tipBase1Position={x:0,y:0},z.tipBase2Position={x:0,y:0},z.tipMoving=!1,z.color=q.defaultStrokeColor,z.bgColor=q.defaultFillColor,z.fontFamily=q.defaultFontFamily,z.defaultSize={x:100,y:30},z.setBgColor=z.setBgColor.bind(z),z.getTipPoints=z.getTipPoints.bind(z),z.positionTip=z.positionTip.bind(z),z.setTipPoints=z.setTipPoints.bind(z),z.colorPanel=new ye("Text color",q.defaultColorSet,z.color,''),z.colorPanel.onColorChanged=z.setColor,z.bgColorPanel=new ye("Fill color",q.defaultColorSet,z.bgColor,fe),z.bgColorPanel.onColorChanged=z.setBgColor,z.fontFamilyPanel=new Fe("Font",q.defaultFontFamilies,q.defaultFontFamily),z.fontFamilyPanel.onFontChanged=z.setFont,z.tipGrip=new Ue,z.tipGrip.visual.transform.baseVal.appendItem(ae.createTransform()),z.controlBox.appendChild(z.tipGrip.visual),z}return Ce(E,V),E.prototype.ownsTarget=function(I){return V.prototype.ownsTarget.call(this,I)||this.tipGrip.ownsTarget(I)||this.tip===I},E.prototype.createTip=function(){ae.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ae.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},E.prototype.pointerDown=function(I,H){this.state==="new"&&V.prototype.pointerDown.call(this,I,H),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(H)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):V.prototype.pointerDown.call(this,I,H)},E.prototype.pointerUp=function(I){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,V.prototype.pointerUp.call(this,I);else{var H=this.state==="creating";V.prototype.pointerUp.call(this,I),this.setTipPoints(H),this.positionTip()}},E.prototype.manipulate=function(I){if(this.tipMoving){var H=this.unrotatePoint(I);this.tipPosition={x:H.x-this.manipulationStartLeft,y:H.y-this.manipulationStartTop},this.positionTip()}else V.prototype.manipulate.call(this,I)},E.prototype.setBgColor=function(I){this.bgRectangle&&this.tip&&(ae.setAttributes(this.bgRectangle,[["fill",I]]),ae.setAttributes(this.tip,[["fill",I]])),this.bgColor=I,this.fillColorChanged(I)},E.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},E.prototype.setTipPoints=function(I){I===void 0&&(I=!1);var H=Math.min(this.height/2,15),q=this.height/5;I&&(this.tipPosition={x:H+q/2,y:this.height+20});var z=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?z.1)){var I=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),H=this.tip1.transform.baseVal.getItem(0);H.setRotate(I,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(H,0);var q=this.tip2.transform.baseVal.getItem(0);q.setRotate(I+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(q,0)}},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I),this.createTips(),this.adjustVisual()},E.typeName="MeasurementMarker",E.title="Measurement marker",E.icon='',E}(rt),ot=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokePanel.colors=q.defaultColorSet,z.fillColor="transparent",z}return Ce(E,V),Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=V.prototype.getState.call(this);return I.typeName=E.typeName,I},E.typeName="EllipseFrameMarker",E.title="Ellipse frame marker",E.icon='',E}(Pe),mt=function(){function V(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(V.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),V.prototype.addUndoStep=function(E){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(E)||(this.undoStack.push(E),JSON.stringify(this.lastRedoStep)!==JSON.stringify(E)&&this.redoStack.splice(0,this.redoStack.length))},V.prototype.replaceLastUndoStep=function(E){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=E)},V.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},V.prototype.undo=function(){if(this.undoStack.length>1){var E=this.undoStack.pop();return E!==void 0&&this.redoStack.push(E),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},V.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},V}(),ft=function(V){function E(I,H,q){var z=V.call(this,I,H,q)||this;return z.strokeColor="transparent",z.strokeWidth=0,z.strokeDasharray="",z.curveX=0,z.curveY=0,z.manipulationStartCurveX=0,z.manipulationStartCurveY=0,z.setStrokeColor=z.setStrokeColor.bind(z),z.setStrokeWidth=z.setStrokeWidth.bind(z),z.setStrokeDasharray=z.setStrokeDasharray.bind(z),z.positionGrips=z.positionGrips.bind(z),z.addControlGrips=z.addControlGrips.bind(z),z.adjustVisual=z.adjustVisual.bind(z),z.setupControlBox=z.setupControlBox.bind(z),z.resize=z.resize.bind(z),z.strokeColor=q.defaultColor,z.strokeWidth=q.defaultStrokeWidth,z.strokeDasharray=q.defaultStrokeDasharray,z.strokePanel=new ye("Line color",q.defaultColorSet,q.defaultColor),z.strokePanel.onColorChanged=z.setStrokeColor,z.strokeWidthPanel=new tt("Line width",q.defaultStrokeWidths,q.defaultStrokeWidth),z.strokeWidthPanel.onWidthChanged=z.setStrokeWidth,z.strokeStylePanel=new et("Line style",q.defaultStrokeDasharrays,q.defaultStrokeDasharray),z.strokeStylePanel.onStyleChanged=z.setStrokeDasharray,z}return Ce(E,V),E.prototype.ownsTarget=function(I){return!(!V.prototype.ownsTarget.call(this,I)&&I!==this.visual&&I!==this.selectorCurve&&I!==this.visibleCurve&&!this.curveGrip.ownsTarget(I))},E.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},E.prototype.createVisual=function(){this.visual=ae.createGroup(),this.selectorCurve=ae.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ae.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)},E.prototype.pointerDown=function(I,H){V.prototype.pointerDown.call(this,I,H),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=I.x,this.curveY=I.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(H)&&(this.activeGrip=this.curveGrip,this._state="resize")},E.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ae.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ae.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},E.prototype.setupControlBox=function(){V.prototype.setupControlBox.call(this),this.curveControlLine1=ae.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ae.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)},E.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,V.prototype.addControlGrips.call(this)},E.prototype.positionGrips=function(){V.prototype.positionGrips.call(this);var I=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-I/2,this.curveY-I/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()))},E.prototype.manipulate=function(I){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+I.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+I.y-this.manipulationStartY),V.prototype.manipulate.call(this,I)},E.prototype.resize=function(I){this.activeGrip===this.curveGrip&&(this.curveX=I.x,this.curveY=I.y),V.prototype.resize.call(this,I),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},E.prototype.setStrokeColor=function(I){this.strokeColor=I,this.adjustVisual(),this.colorChanged(I)},E.prototype.setStrokeWidth=function(I){this.strokeWidth=I,this.adjustVisual()},E.prototype.setStrokeDasharray=function(I){this.strokeDasharray=I,this.adjustVisual()},E.prototype.scale=function(I,H){this.curveX=this.curveX*I,this.curveY=this.curveY*H,V.prototype.scale.call(this,I,H)},Object.defineProperty(E.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),E.prototype.getState=function(){var I=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},V.prototype.getState.call(this));return I.typeName=E.typeName,I},E.prototype.restoreState=function(I){V.prototype.restoreState.call(this,I);var H=I;this.strokeColor=H.strokeColor,this.strokeWidth=H.strokeWidth,this.strokeDasharray=H.strokeDasharray,this.curveX=H.curveX,this.curveY=H.curveY,this.createVisual(),this.adjustVisual()},E.typeName="CurveMarker",E.title="Curve marker",E.icon='',E}(ut),wt=function(){function V(E,I){I===void 0&&(I=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=E,this.cancelable=I}return Object.defineProperty(V.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),V.prototype.preventDefault=function(){this._defaultPrevented=!0},V}(),St=function(V){function E(I,H,q){var z=V.call(this,I,!1)||this;return z.dataUrl=H,z.state=q,z}return Ce(E,V),E}(wt),dt=function(V){function E(I,H,q){q===void 0&&(q=!1);var z=V.call(this,I,q)||this;return z.marker=H,z}return Ce(E,V),E}(wt),Ut=function(){function V(){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 V.prototype.addEventListener=function(E,I){this[E].push(I)},V.prototype.removeEventListener=function(E,I){var H=this[E].indexOf(I);H>-1&&this[E].splice(H,1)},V}(),Lt=function(){function V(E){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Me,this._isOpen=!1,this.undoRedoManager=new mt,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 Ut,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=V.instanceCounter++,this.styles=new De(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=E,this.targetRoot=document.body,this.width=E.clientWidth,this.height=E.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(V.prototype,"ALL_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,ot,Pe,he,xe,ze,re,rt,ft]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,Pe,he,xe]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Je,Ee,_e,je,he]},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(E){var I=this;this._availableMarkerTypes.splice(0),E.forEach(function(H){if(typeof H=="string"){var q=I.ALL_MARKER_TYPES.find(function(z){return z.typeName===H});q!==void 0&&I._availableMarkerTypes.push(q)}else I._availableMarkerTypes.push(H)})},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(E){this._zoomLevel=E,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(V.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),V.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},V.prototype.show=function(){var E=this;this.styles.styleSheetRoot===void 0&&Ne.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ne.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(I){return I(new wt(E))})},V.prototype.render=function(){return ce(this,void 0,void 0,function(){var E;return pe(this,function(I){switch(I.label){case 0:return this.setCurrentMarker(),(E=new Te).naturalSize=this.renderAtNaturalSize,E.imageType=this.renderImageType,E.imageQuality=this.renderImageQuality,E.markersOnly=this.renderMarkersOnly,E.width=this.renderWidth,E.height=this.renderHeight,[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return I.sent(),[4,E.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,I.sent()]}})})},V.prototype.close=function(E){var I=this;if(E===void 0&&(E=!1),this.isOpen){var H=!1;E||this.eventListeners.beforeclose.forEach(function(q){var z=new wt(I,!0);q(z),z.defaultPrevented&&(H=!0)}),H||(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(q){return q(new wt(I))}),this.detachEvents(),this._isOpen=!1)}},V.prototype.addMarkersToToolbar=function(){for(var E,I=[],H=0;Hthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*E:this.editorCanvas.clientWidth,H=I',E.title="Powered by marker.js",E.style.display="grid",E.style.alignItems="center",E.style.justifyItems="center",E.style.padding="3px",E.style.width="20px",E.style.height="20px",this.logoUI.appendChild(E),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},V.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")},V.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"},V.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},V.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 E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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 Be(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(E),1),E.dispose()},V.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())},V.prototype.toolbarButtonClicked=function(E,I){if(E==="marker"&&I!==void 0)this.createNewMarker(I);else if(E==="action")switch(I){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()}},V.prototype.deleteSelectedMarker=function(){var E=this;if(this._currentMarker!==void 0){var I=!1;if(this.eventListeners.markerbeforedelete.forEach(function(q){var z=new dt(E,E._currentMarker,!0);q(z),z.defaultPrevented&&(I=!0)}),!I){var H=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(q){return q(new dt(E,H))})}}},V.prototype.clear=function(){var E=this,I=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ve){var Ke=new dt(E,void 0,!0);ve(Ke),Ke.defaultPrevented&&(I=!0)}),!I)){this.setCurrentMarker();for(var H=function(ve){var Ke=q.markers[ve];q.setCurrentMarker(q.markers[ve]),q._currentMarker.dispose(),q.markerImage.removeChild(q._currentMarker.container),q.markers.splice(q.markers.indexOf(q._currentMarker),1),q.eventListeners.markerdelete.forEach(function(it){return it(new dt(E,Ke))})},q=this,z=this.markers.length-1;z>=0;z--)H(z);this.addUndoStep()}},Object.defineProperty(V.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),V.prototype.showNotesEditor=function(){var E;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=(E=this._currentMarker.notes)!==null&&E!==void 0?E:"",this.overlayContainer.appendChild(this.notesArea))},V.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)},V.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},V.prototype.addUndoStep=function(){var E=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var I=this.getState(),H=this.undoRedoManager.getLastUndoStep();if(!H||H.width===I.width&&H.height===I.height){var q=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(I),q1&&this.panTo({x:E.clientX,y:E.clientY}))},V.prototype.onPointerUp=function(E){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(E.clientX,E.clientY)),this.isDragging=!1,this.addUndoStep()},V.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},V.prototype.onKeyUp=function(E){this._currentMarker===void 0||this.notesArea!==void 0||E.key!=="Delete"&&E.key!=="Backspace"||this.deleteSelectedMarker()},V.prototype.clientToLocalCoordinates=function(E,I){var H=this.markerImage.getBoundingClientRect();return{x:(E-H.left)/this.zoomLevel,y:(I-H.top)/this.zoomLevel}},V.prototype.onWindowResize=function(){this.positionUI()},V.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var E=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=E+"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()},V.prototype.addLicenseKey=function(E){Oe.addKey(E)},V.prototype.addEventListener=function(E,I){this.eventListeners.addEventListener(E,I)},V.prototype.removeEventListener=function(E,I){this.eventListeners.removeEventListener(E,I)},V.prototype.renderState=function(E){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(E),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(V.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),V.prototype.focus=function(){var E=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(I){return I(new wt(E))}))},V.prototype.blur=function(){var E=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(I){return I(new wt(E))}))},V.instanceCounter=0,V}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -253,62 +253,62 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new xt("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},V.instanceCounter=0,V}(),Ct=Q("8hTe"),mn=Q.n(Ct),gn=/]*>/g;function vn(V){var E=document.createElement("div");return E.innerHTML=V,E.childNodes.length===0?"":E.childNodes[0].nodeValue}var yn=be.a=function(V){var E=V.value,I=E===void 0?"":E,H=V.edit,q=H===void 0?!1:H,z=V.className,ve=V.showTextOnly,Ke=V.showLines,it=V.replaces,pt=V.zoomImg,Ye=V.hasMask,_t=V.style,jt=_t===void 0?{}:_t,$t=V.stylesPrev,ji=$t===void 0?{}:$t,Ei=String(I),xi=Object(D.useRef)(),Qi=Object(D.useRef)(),Dn=Object(D.useState)(""),ci=Object(G.a)(Dn,2),zi=ci[0],un=ci[1],hn=Object(D.useState)("office"),Hi=Object(G.a)(hn,2),kn=Hi[0],bn=Hi[1],zn=function(){var Ht=new Qe(Qi.current);Ht.displayMode="popup",Ht.addRenderEventListener(function(){var yi=Object(U.a)(i.a.mark(function kt(ai){var Kt;return i.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return xi.current.style.display="none",fi.next=3,Object(ke.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ai}});case 3:Kt=fi.sent,Kt!=null&&Kt.id&&it(Qi.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 5:case"end":return fi.stop()}},kt)}));return function(kt){return yi.apply(this,arguments)}}()),Ht.show()},Vn=function(){var Ht=new Lt(Qi.current);Ht.settings.displayMode="popup",Ht.addEventListener("render",function(){var yi=Object(U.a)(i.a.mark(function kt(ai){var Kt;return i.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if(xi.current.style.display="none",!Qi.current){fi.next=6;break}return fi.next=4,Object(ke.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ai.dataUrl}});case 4:Kt=fi.sent,Kt!=null&&Kt.id&&it(Qi.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 6:case"end":return fi.stop()}},kt)}));return function(kt){return yi.apply(this,arguments)}}()),Ht.show(),window.markerArea=Ht},Zi=Object(D.useMemo)(function(){xi.current&&(xi.current.style.zIndex=-1);try{var ni=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yi=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ei=Ei.replace(ni,"("+ee.a.API_SERVER+"/api/attachments/").replace(Ht,'"'+ee.a.API_SERVER+"/api/attachments/").replace(yi,'"'+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(rn){}var kt=j(Ei),ai=T();if(Ei.match(/\[TOC\]/)&&(kt=kt.replace("

      [TOC]

      ",L()),A()),kt=kt.replace(/(__special_katext_id_\d+__)/g,function(rn,fi){var Ai=ai[fi],Yn=Ai.type,xn=Ai.expression;return Object(le.renderToString)(vn(xn)||"",{displayMode:Yn==="block",throwOnError:!1,output:"html"})}),kt=kt.replace(/▁/g,"\u2581\u2581\u2581"),y(),ve){var Kt=document.createElement("div");return Kt.innerHTML=kt,Kt.innerText}return setTimeout(function(){return dr()},500),kt},[Ei]),$i=Object(D.useRef)();_.WebkitLineClamp=Ke,Ke&&(jt=Object(F.a)(Object(F.a)({},jt),_));function _n(ni){var Ht=ni.target;if(Ht.tagName.toUpperCase()==="IMG"){if(pt){var yi=Ht.getAttribute("src");un(yi),bn("image")}}else if(Ht.tagName.toUpperCase()==="A"){var kt=Ht.getAttribute("href");if(kt.indexOf("office")>-1)ni.preventDefault(),un(kt),bn("office");else if(kt.indexOf("application/pdf")>-1)ni.preventDefault(),un(kt),bn("pdf");else if(kt.indexOf("text/html")>-1)ni.preventDefault(),un(kt),bn("html");else if(kt.startsWith("#")){ni.preventDefault();var ai=document.getElementById(kt.replace("#",""));ai&&ai.scrollIntoView(!0)}}}var dr=function(){var Ht,yi=(Ht=$i.current)===null||Ht===void 0?void 0:Ht.querySelectorAll("video");yi==null||yi.forEach(function(kt){if(kt.oncontextmenu=function(){return!1},kt.src.indexOf(".m3u8")>-1&&!kt.canPlayType("application/vnd.apple.mpegurl")){if(Y.a.isSupported()){var ai=new Y.a;ai.loadSource(kt.src),ai.attachMedia(kt)}}})};Object(D.useEffect)(function(){if($i.current&&Zi&&(Zi.match(gn)&&window.PR.prettyPrint()),$i.current)return $i.current.addEventListener("click",_n),function(){$i.current.removeEventListener("click",_n),y(),A()}},[Zi,$i.current,_n]);var En=function(Ht){if(!q)return;Ht.target.nodeName==="IMG"?(xi.current.style.zIndex=1,xi.current.style.display="flex",xi.current.style.width=Ht.target.clientWidth+"px",xi.current.style.height=Ht.target.clientHeight+"px",xi.current.style.top=Ht.target.offsetTop+"px",xi.current.style.left=Ht.target.offsetLeft+"px",Qi.current.src=Ht.target.getAttribute("src")):xi.current.style.display="none"};return g.a.createElement("div",{style:{position:"relative"}},g.a.createElement("div",{ref:$i,style:Object(F.a)({},jt),className:"".concat(z||""," markdown-body ").concat(mn.a.mdBody),onMouseOver:En,dangerouslySetInnerHTML:{__html:Zi}}),g.a.createElement("div",{ref:xi,className:mn.a.button},g.a.createElement($.a,null,g.a.createElement(X.a,{onClick:function(){return zn()}},"\u88C1\u526A"),g.a.createElement(X.a,{onClick:function(){return Vn()}},"\u7F16\u8F91"))),g.a.createElement("img",{ref:Qi,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),g.a.createElement(ue.a,{close:!0,data:zi,type:zi!=null&&zi.length?kn:"",style:Object(F.a)({},ji),onClose:function(){return un("")}}))}},"9VGf":function(st,be,Q){"use strict";Q.d(be,"a",function(){return M});var ie=Q("q1tI"),$=Q.n(ie);function M(X,F){var U=Object(ie.useRef)();Object(ie.useEffect)(function(){U.current=X}),Object(ie.useEffect)(function(){function G(){U.current()}if(F!==null){var W=setInterval(G,F);return function(){return clearInterval(W)}}},[F])}},BU3w:function(st,be,Q){"use strict";Q.d(be,"a",function(){return U});var ie=Q("MNnm"),$="rc-util-key";function M(G){if(G.attachTo)return G.attachTo;var W=document.querySelector("head");return W||document.body}function X(G){var W,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ie.a)())return null;var D=document.createElement("style");if((W=i.csp)===null||W===void 0?void 0:W.nonce){var g;D.nonce=(g=i.csp)===null||g===void 0?void 0:g.nonce}D.innerHTML=G;var m=M(i),p=m.firstChild;return i.prepend&&m.prepend?m.prepend(D):i.prepend&&p?m.insertBefore(D,p):m.appendChild(D),D}var F=new Map;function U(G,W){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=M(i);if(!F.has(D)){var g=X("",i),m=g.parentNode;F.set(D,m),m.removeChild(g)}var p=Array.from(F.get(D).children).find(function(h){return h.tagName==="STYLE"&&h[$]===W});if(p){var l,u;if(((l=i.csp)===null||l===void 0?void 0:l.nonce)&&p.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var f;p.nonce=(f=i.csp)===null||f===void 0?void 0:f.nonce}return p.innerHTML!==G&&(p.innerHTML=G),p}var o=X(G,i);return o[$]=W,o}},Bd2K:function(st,be,Q){(function(ie){ie(Q("VrN/"),Q("osHv"))})(function(ie){ie.defineOption("autoCloseTags",!1,function(i,D,g){if(g!=ie.Init&&g&&i.removeKeyMap("autoCloseTags"),!D)return;var m={name:"autoCloseTags"};(typeof D!="object"||D.whenClosing!==!1)&&(m["'/'"]=function(p){return U(p)}),(typeof D!="object"||D.whenOpening!==!1)&&(m["'>'"]=function(p){return X(p)}),i.addKeyMap(m)});var $=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],M=["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 X(i){if(i.getOption("disableInput"))return ie.Pass;for(var D=i.listSelections(),g=[],m=i.getOption("autoCloseTags"),p=0;pl.ch&&(s=s.slice(0,s.length-u.end+l.ch));var S=s.toLowerCase();if(!s||u.type=="string"&&(u.end!=l.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||u.string.length==1)||u.type=="tag"&&h.close||u.string.indexOf("/")==l.ch-u.start-1||A&&G(A,S)>-1||W(i,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(o)||[],s,l,!0))return ie.Pass;var L=typeof m=="object"&&m.emptyTags;if(L&&G(L,s)>-1){g[p]={text:"/>",newPos:ie.Pos(l.line,l.ch+2)};continue}var R=_&&G(_,S)>-1;g[p]={indent:R,text:">"+(R?` + `))},V.instanceCounter=0,V}(),Ct=Q("8hTe"),pr=Q.n(Ct),mr=/]*>/g;function gr(V){var E=document.createElement("div");return E.innerHTML=V,E.childNodes.length===0?"":E.childNodes[0].nodeValue}var vr=be.a=function(V){var E=V.value,I=E===void 0?"":E,H=V.edit,q=H===void 0?!1:H,z=V.className,ve=V.showTextOnly,Ke=V.showLines,it=V.replaces,pt=V.zoomImg,Ye=V.hasMask,_t=V.style,jt=_t===void 0?{}:_t,$t=V.stylesPrev,ji=$t===void 0?{}:$t,Ei=String(I),xi=Object(D.useRef)(),Qi=Object(D.useRef)(),Ir=Object(D.useState)(""),ci=Object(G.a)(Ir,2),zi=ci[0],lr=ci[1],ur=Object(D.useState)("office"),Hi=Object(G.a)(ur,2),Dr=Hi[0],yr=Hi[1],Kr=function(){var Ht=new Qe(Qi.current);Ht.displayMode="popup",Ht.addRenderEventListener(function(){var yi=Object(U.a)(i.a.mark(function kt(ai){var Kt;return i.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return xi.current.style.display="none",fi.next=3,Object(ke.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ai}});case 3:Kt=fi.sent,Kt!=null&&Kt.id&&it(Qi.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 5:case"end":return fi.stop()}},kt)}));return function(kt){return yi.apply(this,arguments)}}()),Ht.show()},zr=function(){var Ht=new Lt(Qi.current);Ht.settings.displayMode="popup",Ht.addEventListener("render",function(){var yi=Object(U.a)(i.a.mark(function kt(ai){var Kt;return i.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if(xi.current.style.display="none",!Qi.current){fi.next=6;break}return fi.next=4,Object(ke.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ai.dataUrl}});case 4:Kt=fi.sent,Kt!=null&&Kt.id&&it(Qi.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(Kt==null?void 0:Kt.id,"?type=").concat(Kt.content_type));case 6:case"end":return fi.stop()}},kt)}));return function(kt){return yi.apply(this,arguments)}}()),Ht.show(),window.markerArea=Ht},Zi=Object(D.useMemo)(function(){xi.current&&(xi.current.style.zIndex=-1);try{var ri=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,yi=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Ei=Ei.replace(ri,"("+ee.a.API_SERVER+"/api/attachments/").replace(Ht,'"'+ee.a.API_SERVER+"/api/attachments/").replace(yi,'"'+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(rr){}var kt=j(Ei),ai=T();if(Ei.match(/\[TOC\]/)&&(kt=kt.replace("

      [TOC]

      ",L()),A()),kt=kt.replace(/(__special_katext_id_\d+__)/g,function(rr,fi){var Ai=ai[fi],Vr=Ai.type,Er=Ai.expression;return Object(le.renderToString)(gr(Er)||"",{displayMode:Vr==="block",throwOnError:!1,output:"html"})}),kt=kt.replace(/▁/g,"\u2581\u2581\u2581"),y(),ve){var Kt=document.createElement("div");return Kt.innerHTML=kt,Kt.innerText}return setTimeout(function(){return dn()},500),kt},[Ei]),$i=Object(D.useRef)();_.WebkitLineClamp=Ke,Ke&&(jt=Object(F.a)(Object(F.a)({},jt),_));function br(ri){var Ht=ri.target;if(Ht.tagName.toUpperCase()==="IMG"){if(pt){var yi=Ht.getAttribute("src");lr(yi),yr("image")}}else if(Ht.tagName.toUpperCase()==="A"){var kt=Ht.getAttribute("href");if(kt.indexOf("office")>-1)ri.preventDefault(),lr(kt),yr("office");else if(kt.indexOf("application/pdf")>-1)ri.preventDefault(),lr(kt),yr("pdf");else if(kt.indexOf("text/html")>-1)ri.preventDefault(),lr(kt),yr("html");else if(kt.startsWith("#")){ri.preventDefault();var ai=document.getElementById(kt.replace("#",""));ai&&ai.scrollIntoView(!0)}}}var dn=function(){var Ht,yi=(Ht=$i.current)===null||Ht===void 0?void 0:Ht.querySelectorAll("video");yi==null||yi.forEach(function(kt){if(kt.oncontextmenu=function(){return!1},kt.src.indexOf(".m3u8")>-1&&!kt.canPlayType("application/vnd.apple.mpegurl")){if(Y.a.isSupported()){var ai=new Y.a;ai.loadSource(kt.src),ai.attachMedia(kt)}}})};Object(D.useEffect)(function(){if($i.current&&Zi&&(Zi.match(mr)&&window.PR.prettyPrint()),$i.current)return $i.current.addEventListener("click",br),function(){$i.current.removeEventListener("click",br),y(),A()}},[Zi,$i.current,br]);var _r=function(Ht){if(!q)return;Ht.target.nodeName==="IMG"?(xi.current.style.zIndex=1,xi.current.style.display="flex",xi.current.style.width=Ht.target.clientWidth+"px",xi.current.style.height=Ht.target.clientHeight+"px",xi.current.style.top=Ht.target.offsetTop+"px",xi.current.style.left=Ht.target.offsetLeft+"px",Qi.current.src=Ht.target.getAttribute("src")):xi.current.style.display="none"};return g.a.createElement("div",{style:{position:"relative"}},g.a.createElement("div",{ref:$i,style:Object(F.a)({},jt),className:"".concat(z||""," markdown-body ").concat(pr.a.mdBody),onMouseOver:_r,dangerouslySetInnerHTML:{__html:Zi}}),g.a.createElement("div",{ref:xi,className:pr.a.button},g.a.createElement($.a,null,g.a.createElement(X.a,{onClick:function(){return Kr()}},"\u88C1\u526A"),g.a.createElement(X.a,{onClick:function(){return zr()}},"\u7F16\u8F91"))),g.a.createElement("img",{ref:Qi,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),g.a.createElement(ue.a,{close:!0,data:zi,type:zi!=null&&zi.length?Dr:"",style:Object(F.a)({},ji),onClose:function(){return lr("")}}))}},"9VGf":function(st,be,Q){"use strict";Q.d(be,"a",function(){return M});var ie=Q("q1tI"),$=Q.n(ie);function M(X,F){var U=Object(ie.useRef)();Object(ie.useEffect)(function(){U.current=X}),Object(ie.useEffect)(function(){function G(){U.current()}if(F!==null){var W=setInterval(G,F);return function(){return clearInterval(W)}}},[F])}},BU3w:function(st,be,Q){"use strict";Q.d(be,"a",function(){return U});var ie=Q("MNnm"),$="rc-util-key";function M(G){if(G.attachTo)return G.attachTo;var W=document.querySelector("head");return W||document.body}function X(G){var W,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ie.a)())return null;var D=document.createElement("style");if((W=i.csp)===null||W===void 0?void 0:W.nonce){var g;D.nonce=(g=i.csp)===null||g===void 0?void 0:g.nonce}D.innerHTML=G;var m=M(i),p=m.firstChild;return i.prepend&&m.prepend?m.prepend(D):i.prepend&&p?m.insertBefore(D,p):m.appendChild(D),D}var F=new Map;function U(G,W){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=M(i);if(!F.has(D)){var g=X("",i),m=g.parentNode;F.set(D,m),m.removeChild(g)}var p=Array.from(F.get(D).children).find(function(h){return h.tagName==="STYLE"&&h[$]===W});if(p){var l,u;if(((l=i.csp)===null||l===void 0?void 0:l.nonce)&&p.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var f;p.nonce=(f=i.csp)===null||f===void 0?void 0:f.nonce}return p.innerHTML!==G&&(p.innerHTML=G),p}var o=X(G,i);return o[$]=W,o}},Bd2K:function(st,be,Q){(function(ie){ie(Q("VrN/"),Q("osHv"))})(function(ie){ie.defineOption("autoCloseTags",!1,function(i,D,g){if(g!=ie.Init&&g&&i.removeKeyMap("autoCloseTags"),!D)return;var m={name:"autoCloseTags"};(typeof D!="object"||D.whenClosing!==!1)&&(m["'/'"]=function(p){return U(p)}),(typeof D!="object"||D.whenOpening!==!1)&&(m["'>'"]=function(p){return X(p)}),i.addKeyMap(m)});var $=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],M=["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 X(i){if(i.getOption("disableInput"))return ie.Pass;for(var D=i.listSelections(),g=[],m=i.getOption("autoCloseTags"),p=0;pl.ch&&(s=s.slice(0,s.length-u.end+l.ch));var S=s.toLowerCase();if(!s||u.type=="string"&&(u.end!=l.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||u.string.length==1)||u.type=="tag"&&h.close||u.string.indexOf("/")==l.ch-u.start-1||A&&G(A,S)>-1||W(i,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(o)||[],s,l,!0))return ie.Pass;var L=typeof m=="object"&&m.emptyTags;if(L&&G(L,s)>-1){g[p]={text:"/>",newPos:ie.Pos(l.line,l.ch+2)};continue}var R=_&&G(_,S)>-1;g[p]={indent:R,text:">"+(R?` -`:"")+"",newPos:R?ie.Pos(l.line+1,0):ie.Pos(l.line,l.ch+1)}}for(var C=typeof m=="object"&&m.dontIndentOnAutoClose,p=D.length-1;p>=0;p--){var w=g[p];i.replaceRange(w.text,D[p].head,D[p].anchor,"+insert");var x=i.listSelections().slice(0);x[p]={head:w.newPos,anchor:w.newPos},i.setSelections(x),!C&&w.indent&&(i.indentLine(w.newPos.line,null,!0),i.indentLine(w.newPos.line+1,null,!0))}}function F(i,D){for(var g=i.listSelections(),m=[],p=D?"/":""&&(A+=">"),m[f]=A}if(i.replaceSelections(m),g=i.listSelections(),!u)for(var f=0;f=0&&D[o]==g;o--)++f;m=u.to;for(var o=1;o0){for(var D=0;D1&&arguments[1]!==void 0?arguments[1]:"",D=[],g=0;gU,ie.serviceIds.set(U,G),G}function F(U){return function(G,W,i){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");M(U,G,i,!0)}}},DlQD:function(st,be,Q){(function(ie,$){st.exports=$()})(this,function(){"use strict";function ie(Ee,ge){for(var _e=0;_eEe.length)&&(ge=Ee.length);for(var _e=0,ne=new Array(ge);_e=Ee.length?{done:!0}:{done:!1,value:Ee[ne++]}}}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 _e=Ee[Symbol.iterator](),_e.next.bind(_e)}function U(Ee,ge){return ge={exports:{}},Ee(ge,ge.exports),ge.exports}var G=U(function(Ee){function ge(){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 _e(ne){Ee.exports.defaults=ne}Ee.exports={defaults:ge(),getDefaults:ge,changeDefaults:_e}}),W=G.defaults,i=G.getDefaults,D=G.changeDefaults,g=/[&<>"']/,m=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(ge){return u[ge]};function o(Ee,ge){if(ge){if(g.test(Ee))return Ee.replace(m,f)}else if(p.test(Ee))return Ee.replace(l,f);return Ee}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Ee){return Ee.replace(h,function(ge,_e){return _e=_e.toLowerCase(),_e==="colon"?":":_e.charAt(0)==="#"?_e.charAt(1)==="x"?String.fromCharCode(parseInt(_e.substring(2),16)):String.fromCharCode(+_e.substring(1)):""})}var a=/(^|[^\[])\^/g;function A(Ee,ge){Ee=Ee.source||Ee,ge=ge||"";var _e={replace:function(re,he){return he=he.source||he,he=he.replace(a,"$1"),Ee=Ee.replace(re,he),_e},getRegex:function(){return new RegExp(Ee,ge)}};return _e}var _=/[^\w:]/g,S=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function L(Ee,ge,_e){if(Ee){var ne;try{ne=decodeURIComponent(s(_e)).replace(_,"").toLowerCase()}catch(re){return null}if(ne.indexOf("javascript:")===0||ne.indexOf("vbscript:")===0||ne.indexOf("data:")===0)return null}ge&&!S.test(_e)&&(_e=c(ge,_e));try{_e=encodeURI(_e).replace(/%25/g,"%")}catch(re){return null}return _e}var R={},C=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,x=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(Ee,ge){R[" "+Ee]||(C.test(Ee)?R[" "+Ee]=Ee+"/":R[" "+Ee]=N(Ee,"/",!0)),Ee=R[" "+Ee];var _e=Ee.indexOf(":")===-1;return ge.substring(0,2)==="//"?_e?ge:Ee.replace(w,"$1")+ge:ge.charAt(0)==="/"?_e?ge:Ee.replace(x,"$1")+ge:Ee+ge}var T={exec:function(){}};function y(Ee){for(var ge=1,_e,ne;ge=0&&xe[ze]==="\\";)Pe=!Pe;return Pe?"|":" |"}),ne=_e.split(/ \|/),re=0;if(ne.length>ge)ne.splice(ge);else for(;ne.length=ne.length?re.slice(ne.length):re}).join(` -`)}var Se=function(){function Ee(_e){this.options=_e||P}var ge=Ee.prototype;return ge.space=function(ne){var re=this.rules.block.newline.exec(ne);if(re)return re[0].length>1?{type:"space",raw:re[0]}:{raw:` -`}},ge.code=function(ne,re){var he=this.rules.block.code.exec(ne);if(he){var fe=re[re.length-1];if(fe&&fe.type==="paragraph")return{raw:he[0],text:he[0].trimRight()};var xe=he[0].replace(/^ {4}/gm,"");return{type:"code",raw:he[0],codeBlockStyle:"indented",text:this.options.pedantic?xe:b(xe,` -`)}}},ge.fences=function(ne){var re=this.rules.block.fences.exec(ne);if(re){var he=re[0],fe=ke(he,re[3]||"");return{type:"code",raw:he,lang:re[2]?re[2].trim():re[2],text:fe}}},ge.heading=function(ne){var re=this.rules.block.heading.exec(ne);if(re)return{type:"heading",raw:re[0],depth:re[1].length,text:re[2]}},ge.nptable=function(ne){var re=this.rules.block.nptable.exec(ne);if(re){var he={type:"table",header:Y(re[1].replace(/^ *| *\| *$/g,"")),align:re[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:re[3]?re[3].replace(/\n$/,"").split(` -`):[],raw:re[0]};if(he.header.length===he.align.length){var fe=he.align.length,xe;for(xe=0;xe ?/gm,"");return{type:"blockquote",raw:re[0],text:he}}},ge.list=function(ne){var re=this.rules.block.list.exec(ne);if(re){for(var he=re[0],fe=re[2],xe=fe.length>1,Pe=fe[fe.length-1]===")",ze={type:"list",raw:he,ordered:xe,start:xe?+fe.slice(0,-1):"",loose:!1,items:[]},ot=re[0].match(this.rules.block.item),mt=!1,ft,wt,St,dt,Ut,Lt,qt,Qt=ot.length,It=0;It",newPos:R?ie.Pos(l.line+1,0):ie.Pos(l.line,l.ch+1)}}for(var C=typeof m=="object"&&m.dontIndentOnAutoClose,p=D.length-1;p>=0;p--){var w=g[p];i.replaceRange(w.text,D[p].head,D[p].anchor,"+insert");var x=i.listSelections().slice(0);x[p]={head:w.newPos,anchor:w.newPos},i.setSelections(x),!C&&w.indent&&(i.indentLine(w.newPos.line,null,!0),i.indentLine(w.newPos.line+1,null,!0))}}function F(i,D){for(var g=i.listSelections(),m=[],p=D?"/":""&&(A+=">"),m[f]=A}if(i.replaceSelections(m),g=i.listSelections(),!u)for(var f=0;f=0&&D[o]==g;o--)++f;m=u.to;for(var o=1;o0){for(var D=0;D1&&arguments[1]!==void 0?arguments[1]:"",D=[],g=0;gU,ie.serviceIds.set(U,G),G}function F(U){return function(G,W,i){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");M(U,G,i,!0)}}},DlQD:function(st,be,Q){(function(ie,$){st.exports=$()})(this,function(){"use strict";function ie(Ee,ge){for(var _e=0;_eEe.length)&&(ge=Ee.length);for(var _e=0,re=new Array(ge);_e=Ee.length?{done:!0}:{done:!1,value:Ee[re++]}}}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 _e=Ee[Symbol.iterator](),_e.next.bind(_e)}function U(Ee,ge){return ge={exports:{}},Ee(ge,ge.exports),ge.exports}var G=U(function(Ee){function ge(){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 _e(re){Ee.exports.defaults=re}Ee.exports={defaults:ge(),getDefaults:ge,changeDefaults:_e}}),W=G.defaults,i=G.getDefaults,D=G.changeDefaults,g=/[&<>"']/,m=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(ge){return u[ge]};function o(Ee,ge){if(ge){if(g.test(Ee))return Ee.replace(m,f)}else if(p.test(Ee))return Ee.replace(l,f);return Ee}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(Ee){return Ee.replace(h,function(ge,_e){return _e=_e.toLowerCase(),_e==="colon"?":":_e.charAt(0)==="#"?_e.charAt(1)==="x"?String.fromCharCode(parseInt(_e.substring(2),16)):String.fromCharCode(+_e.substring(1)):""})}var a=/(^|[^\[])\^/g;function A(Ee,ge){Ee=Ee.source||Ee,ge=ge||"";var _e={replace:function(ne,he){return he=he.source||he,he=he.replace(a,"$1"),Ee=Ee.replace(ne,he),_e},getRegex:function(){return new RegExp(Ee,ge)}};return _e}var _=/[^\w:]/g,S=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function L(Ee,ge,_e){if(Ee){var re;try{re=decodeURIComponent(s(_e)).replace(_,"").toLowerCase()}catch(ne){return null}if(re.indexOf("javascript:")===0||re.indexOf("vbscript:")===0||re.indexOf("data:")===0)return null}ge&&!S.test(_e)&&(_e=c(ge,_e));try{_e=encodeURI(_e).replace(/%25/g,"%")}catch(ne){return null}return _e}var R={},C=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,x=/^([^:]+:\/*[^/]*)[\s\S]*$/;function c(Ee,ge){R[" "+Ee]||(C.test(Ee)?R[" "+Ee]=Ee+"/":R[" "+Ee]=N(Ee,"/",!0)),Ee=R[" "+Ee];var _e=Ee.indexOf(":")===-1;return ge.substring(0,2)==="//"?_e?ge:Ee.replace(w,"$1")+ge:ge.charAt(0)==="/"?_e?ge:Ee.replace(x,"$1")+ge:Ee+ge}var T={exec:function(){}};function y(Ee){for(var ge=1,_e,re;ge=0&&xe[ze]==="\\";)Pe=!Pe;return Pe?"|":" |"}),re=_e.split(/ \|/),ne=0;if(re.length>ge)re.splice(ge);else for(;re.length=re.length?ne.slice(re.length):ne}).join(` +`)}var Se=function(){function Ee(_e){this.options=_e||P}var ge=Ee.prototype;return ge.space=function(re){var ne=this.rules.block.newline.exec(re);if(ne)return ne[0].length>1?{type:"space",raw:ne[0]}:{raw:` +`}},ge.code=function(re,ne){var he=this.rules.block.code.exec(re);if(he){var fe=ne[ne.length-1];if(fe&&fe.type==="paragraph")return{raw:he[0],text:he[0].trimRight()};var xe=he[0].replace(/^ {4}/gm,"");return{type:"code",raw:he[0],codeBlockStyle:"indented",text:this.options.pedantic?xe:b(xe,` +`)}}},ge.fences=function(re){var ne=this.rules.block.fences.exec(re);if(ne){var he=ne[0],fe=ke(he,ne[3]||"");return{type:"code",raw:he,lang:ne[2]?ne[2].trim():ne[2],text:fe}}},ge.heading=function(re){var ne=this.rules.block.heading.exec(re);if(ne)return{type:"heading",raw:ne[0],depth:ne[1].length,text:ne[2]}},ge.nptable=function(re){var ne=this.rules.block.nptable.exec(re);if(ne){var he={type:"table",header:Y(ne[1].replace(/^ *| *\| *$/g,"")),align:ne[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ne[3]?ne[3].replace(/\n$/,"").split(` +`):[],raw:ne[0]};if(he.header.length===he.align.length){var fe=he.align.length,xe;for(xe=0;xe ?/gm,"");return{type:"blockquote",raw:ne[0],text:he}}},ge.list=function(re){var ne=this.rules.block.list.exec(re);if(ne){for(var he=ne[0],fe=ne[2],xe=fe.length>1,Pe=fe[fe.length-1]===")",ze={type:"list",raw:he,ordered:xe,start:xe?+fe.slice(0,-1):"",loose:!1,items:[]},ot=ne[0].match(this.rules.block.item),mt=!1,ft,wt,St,dt,Ut,Lt,qt,Qt=ot.length,It=0;It1||this.options.smartLists&&St!==fe)&&(dt=ot.slice(It+1).join(` `),ze.raw=ze.raw.substring(0,ze.raw.length-dt.length),It=Qt-1)),Ut=mt||/\n\n(?!\s*$)/.test(ft),It!==Qt-1&&(mt=ft.charAt(ft.length-1)===` -`,Ut||(Ut=mt)),Ut&&(ze.loose=!0),Lt=/^\[[ xX]\] /.test(ft),qt=void 0,Lt&&(qt=ft[1]!==" ",ft=ft.replace(/^\[[ xX]\] +/,"")),ze.items.push({type:"list_item",raw:he,task:Lt,checked:qt,loose:Ut,text:ft});return ze}},ge.html=function(ne){var re=this.rules.block.html.exec(ne);if(re)return{type:this.options.sanitize?"paragraph":"html",raw:re[0],pre:!this.options.sanitizer&&(re[1]==="pre"||re[1]==="script"||re[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(re[0]):ee(re[0]):re[0]}},ge.def=function(ne){var re=this.rules.block.def.exec(ne);if(re){re[3]&&(re[3]=re[3].substring(1,re[3].length-1));var he=re[1].toLowerCase().replace(/\s+/g," ");return{tag:he,raw:re[0],href:re[2],title:re[3]}}},ge.table=function(ne){var re=this.rules.block.table.exec(ne);if(re){var he={type:"table",header:Y(re[1].replace(/^ *| *\| *$/g,"")),align:re[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:re[3]?re[3].replace(/\n$/,"").split(` -`):[]};if(he.header.length===he.align.length){he.raw=re[0];var fe=he.align.length,xe;for(xe=0;xe/i.test(fe[0])&&(re=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(fe[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(fe[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:fe[0],inLink:re,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):ee(fe[0]):fe[0]}},ge.link=function(ne){var re=this.rules.inline.link.exec(ne);if(re){var he=le(re[2],"()");if(he>-1){var fe=re[0].indexOf("!")===0?5:4,xe=fe+re[1].length+he;re[2]=re[2].substring(0,he),re[0]=re[0].substring(0,xe).trim(),re[3]=""}var Pe=re[2],ze="";if(this.options.pedantic){var ot=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);ot?(Pe=ot[1],ze=ot[3]):ze=""}else ze=re[3]?re[3].slice(1,-1):"";Pe=Pe.trim().replace(/^<([\s\S]*)>$/,"$1");var mt=ue(re,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:ze&&ze.replace(this.rules.inline._escapes,"$1")},re[0]);return mt}},ge.reflink=function(ne,re){var he;if((he=this.rules.inline.reflink.exec(ne))||(he=this.rules.inline.nolink.exec(ne))){var fe=(he[2]||he[1]).replace(/\s+/g," ");if(fe=re[fe.toLowerCase()],!fe||!fe.href){var xe=he[0].charAt(0);return{type:"text",raw:xe,text:xe}}var Pe=ue(he,fe,he[0]);return Pe}},ge.strong=function(ne,re,he){he===void 0&&(he="");var fe=this.rules.inline.strong.start.exec(ne);if(fe&&(!fe[1]||fe[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){re=re.slice(-1*ne.length);var xe=fe[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;xe.lastIndex=0;for(var Pe;(fe=xe.exec(re))!=null;)if(Pe=this.rules.inline.strong.middle.exec(re.slice(0,fe.index+3)),Pe)return{type:"strong",raw:ne.slice(0,Pe[0].length),text:ne.slice(2,Pe[0].length-2)}}},ge.em=function(ne,re,he){he===void 0&&(he="");var fe=this.rules.inline.em.start.exec(ne);if(fe&&(!fe[1]||fe[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){re=re.slice(-1*ne.length);var xe=fe[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;xe.lastIndex=0;for(var Pe;(fe=xe.exec(re))!=null;)if(Pe=this.rules.inline.em.middle.exec(re.slice(0,fe.index+2)),Pe)return{type:"em",raw:ne.slice(0,Pe[0].length),text:ne.slice(1,Pe[0].length-1)}}},ge.codespan=function(ne){var re=this.rules.inline.code.exec(ne);if(re){var he=re[2].replace(/\n/g," "),fe=/[^ ]/.test(he),xe=he.startsWith(" ")&&he.endsWith(" ");return fe&&xe&&(he=he.substring(1,he.length-1)),he=ee(he,!0),{type:"codespan",raw:re[0],text:he}}},ge.br=function(ne){var re=this.rules.inline.br.exec(ne);if(re)return{type:"br",raw:re[0]}},ge.del=function(ne){var re=this.rules.inline.del.exec(ne);if(re)return{type:"del",raw:re[0],text:re[1]}},ge.autolink=function(ne,re){var he=this.rules.inline.autolink.exec(ne);if(he){var fe,xe;return he[2]==="@"?(fe=ee(this.options.mangle?re(he[1]):he[1]),xe="mailto:"+fe):(fe=ee(he[1]),xe=fe),{type:"link",raw:he[0],text:fe,href:xe,tokens:[{type:"text",raw:fe,text:fe}]}}},ge.url=function(ne,re){var he;if(he=this.rules.inline.url.exec(ne)){var fe,xe;if(he[2]==="@")fe=ee(this.options.mangle?re(he[0]):he[0]),xe="mailto:"+fe;else{var Pe;do Pe=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(Pe!==he[0]);fe=ee(he[0]),he[1]==="www."?xe="http://"+fe:xe=fe}return{type:"link",raw:he[0],text:fe,href:xe,tokens:[{type:"text",raw:fe,text:fe}]}}},ge.inlineText=function(ne,re,he){var fe=this.rules.inline.text.exec(ne);if(fe){var xe;return re?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):ee(fe[0]):fe[0]:xe=ee(this.options.smartypants?he(fe[0]):fe[0]),{type:"text",raw:fe[0],text:xe}}},Ee}(),Ce=j.noopTest,ce=j.edit,pe=j.merge,se={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]+/};se._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,se._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,se.def=ce(se.def).replace("label",se._label).replace("title",se._title).getRegex(),se.bullet=/(?:[*+-]|\d{1,9}[.)])/,se.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,se.item=ce(se.item,"gm").replace(/bull/g,se.bullet).getRegex(),se.list=ce(se.list).replace(/bull/g,se.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+se.def.source+")").getRegex(),se._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",se._comment=//,se.html=ce(se.html,"i").replace("comment",se._comment).replace("tag",se._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),se.paragraph=ce(se._paragraph).replace("hr",se.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",se._tag).getRegex(),se.blockquote=ce(se.blockquote).replace("paragraph",se.paragraph).getRegex(),se.normal=pe({},se),se.gfm=pe({},se.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*|$)"}),se.gfm.nptable=ce(se.gfm.nptable).replace("hr",se.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",se._tag).getRegex(),se.gfm.table=ce(se.gfm.table).replace("hr",se.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",se._tag).getRegex(),se.pedantic=pe({},se.normal,{html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",se._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:ce(se.normal._paragraph).replace("hr",se.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",se.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ae={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ce,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:Ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",ae.punctuation=ce(ae.punctuation).replace(/punctuation/g,ae._punctuation).getRegex(),ae._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",ae._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",ae.em.start=ce(ae.em.start).replace(/punctuation/g,ae._punctuation).getRegex(),ae.em.middle=ce(ae.em.middle).replace(/punctuation/g,ae._punctuation).replace(/overlapSkip/g,ae._overlapSkip).getRegex(),ae.em.endAst=ce(ae.em.endAst,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.em.endUnd=ce(ae.em.endUnd,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.start=ce(ae.strong.start).replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.middle=ce(ae.strong.middle).replace(/punctuation/g,ae._punctuation).replace(/blockSkip/g,ae._blockSkip).getRegex(),ae.strong.endAst=ce(ae.strong.endAst,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.endUnd=ce(ae.strong.endUnd,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.blockSkip=ce(ae._blockSkip,"g").getRegex(),ae.overlapSkip=ce(ae._overlapSkip,"g").getRegex(),ae._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ae._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ae._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])?)+(?![-_])/,ae.autolink=ce(ae.autolink).replace("scheme",ae._scheme).replace("email",ae._email).getRegex(),ae._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ae.tag=ce(ae.tag).replace("comment",se._comment).replace("attribute",ae._attribute).getRegex(),ae._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ae._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ae._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ae.link=ce(ae.link).replace("label",ae._label).replace("href",ae._href).replace("title",ae._title).getRegex(),ae.reflink=ce(ae.reflink).replace("label",ae._label).getRegex(),ae.reflinkSearch=ce(ae.reflinkSearch,"g").replace("reflink",ae.reflink).replace("nolink",ae.nolink).getRegex(),ae.normal=pe({},ae),ae.pedantic=pe({},ae.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:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",ae._label).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ae._label).getRegex()}),ae.gfm=pe({},ae.normal,{escape:ce(ae.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&&(ne="x"+ne.toString(16)),ge+="&#"+ne+";";return ge}var Be=function(){function Ee(_e){this.tokens=[],this.tokens.links=Object.create(null),this.options=_e||Te,this.options.tokenizer=this.options.tokenizer||new Se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ne={block:Ne.normal,inline:De.normal};this.options.pedantic?(ne.block=Ne.pedantic,ne.inline=De.pedantic):this.options.gfm&&(ne.block=Ne.gfm,this.options.breaks?ne.inline=De.breaks:ne.inline=De.gfm),this.tokenizer.rules=ne}Ee.lex=function(ne,re){var he=new Ee(re);return he.lex(ne)};var ge=Ee.prototype;return ge.lex=function(ne){return ne=ne.replace(/\r\n|\r/g,` -`).replace(/\t/g," "),this.blockTokens(ne,this.tokens,!0),this.inline(this.tokens),this.tokens},ge.blockTokens=function(ne,re,he){re===void 0&&(re=[]),he===void 0&&(he=!0),ne=ne.replace(/^ +$/gm,"");for(var fe,xe,Pe,ze;ne;){if(fe=this.tokenizer.space(ne)){ne=ne.substring(fe.raw.length),fe.type&&re.push(fe);continue}if(fe=this.tokenizer.code(ne,re)){ne=ne.substring(fe.raw.length),fe.type?re.push(fe):(ze=re[re.length-1],ze.raw+=` +`,Ut||(Ut=mt)),Ut&&(ze.loose=!0),Lt=/^\[[ xX]\] /.test(ft),qt=void 0,Lt&&(qt=ft[1]!==" ",ft=ft.replace(/^\[[ xX]\] +/,"")),ze.items.push({type:"list_item",raw:he,task:Lt,checked:qt,loose:Ut,text:ft});return ze}},ge.html=function(re){var ne=this.rules.block.html.exec(re);if(ne)return{type:this.options.sanitize?"paragraph":"html",raw:ne[0],pre:!this.options.sanitizer&&(ne[1]==="pre"||ne[1]==="script"||ne[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ne[0]):ee(ne[0]):ne[0]}},ge.def=function(re){var ne=this.rules.block.def.exec(re);if(ne){ne[3]&&(ne[3]=ne[3].substring(1,ne[3].length-1));var he=ne[1].toLowerCase().replace(/\s+/g," ");return{tag:he,raw:ne[0],href:ne[2],title:ne[3]}}},ge.table=function(re){var ne=this.rules.block.table.exec(re);if(ne){var he={type:"table",header:Y(ne[1].replace(/^ *| *\| *$/g,"")),align:ne[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ne[3]?ne[3].replace(/\n$/,"").split(` +`):[]};if(he.header.length===he.align.length){he.raw=ne[0];var fe=he.align.length,xe;for(xe=0;xe/i.test(fe[0])&&(ne=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(fe[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(fe[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:fe[0],inLink:ne,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):ee(fe[0]):fe[0]}},ge.link=function(re){var ne=this.rules.inline.link.exec(re);if(ne){var he=le(ne[2],"()");if(he>-1){var fe=ne[0].indexOf("!")===0?5:4,xe=fe+ne[1].length+he;ne[2]=ne[2].substring(0,he),ne[0]=ne[0].substring(0,xe).trim(),ne[3]=""}var Pe=ne[2],ze="";if(this.options.pedantic){var ot=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Pe);ot?(Pe=ot[1],ze=ot[3]):ze=""}else ze=ne[3]?ne[3].slice(1,-1):"";Pe=Pe.trim().replace(/^<([\s\S]*)>$/,"$1");var mt=ue(ne,{href:Pe&&Pe.replace(this.rules.inline._escapes,"$1"),title:ze&&ze.replace(this.rules.inline._escapes,"$1")},ne[0]);return mt}},ge.reflink=function(re,ne){var he;if((he=this.rules.inline.reflink.exec(re))||(he=this.rules.inline.nolink.exec(re))){var fe=(he[2]||he[1]).replace(/\s+/g," ");if(fe=ne[fe.toLowerCase()],!fe||!fe.href){var xe=he[0].charAt(0);return{type:"text",raw:xe,text:xe}}var Pe=ue(he,fe,he[0]);return Pe}},ge.strong=function(re,ne,he){he===void 0&&(he="");var fe=this.rules.inline.strong.start.exec(re);if(fe&&(!fe[1]||fe[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){ne=ne.slice(-1*re.length);var xe=fe[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;xe.lastIndex=0;for(var Pe;(fe=xe.exec(ne))!=null;)if(Pe=this.rules.inline.strong.middle.exec(ne.slice(0,fe.index+3)),Pe)return{type:"strong",raw:re.slice(0,Pe[0].length),text:re.slice(2,Pe[0].length-2)}}},ge.em=function(re,ne,he){he===void 0&&(he="");var fe=this.rules.inline.em.start.exec(re);if(fe&&(!fe[1]||fe[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){ne=ne.slice(-1*re.length);var xe=fe[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;xe.lastIndex=0;for(var Pe;(fe=xe.exec(ne))!=null;)if(Pe=this.rules.inline.em.middle.exec(ne.slice(0,fe.index+2)),Pe)return{type:"em",raw:re.slice(0,Pe[0].length),text:re.slice(1,Pe[0].length-1)}}},ge.codespan=function(re){var ne=this.rules.inline.code.exec(re);if(ne){var he=ne[2].replace(/\n/g," "),fe=/[^ ]/.test(he),xe=he.startsWith(" ")&&he.endsWith(" ");return fe&&xe&&(he=he.substring(1,he.length-1)),he=ee(he,!0),{type:"codespan",raw:ne[0],text:he}}},ge.br=function(re){var ne=this.rules.inline.br.exec(re);if(ne)return{type:"br",raw:ne[0]}},ge.del=function(re){var ne=this.rules.inline.del.exec(re);if(ne)return{type:"del",raw:ne[0],text:ne[1]}},ge.autolink=function(re,ne){var he=this.rules.inline.autolink.exec(re);if(he){var fe,xe;return he[2]==="@"?(fe=ee(this.options.mangle?ne(he[1]):he[1]),xe="mailto:"+fe):(fe=ee(he[1]),xe=fe),{type:"link",raw:he[0],text:fe,href:xe,tokens:[{type:"text",raw:fe,text:fe}]}}},ge.url=function(re,ne){var he;if(he=this.rules.inline.url.exec(re)){var fe,xe;if(he[2]==="@")fe=ee(this.options.mangle?ne(he[0]):he[0]),xe="mailto:"+fe;else{var Pe;do Pe=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(Pe!==he[0]);fe=ee(he[0]),he[1]==="www."?xe="http://"+fe:xe=fe}return{type:"link",raw:he[0],text:fe,href:xe,tokens:[{type:"text",raw:fe,text:fe}]}}},ge.inlineText=function(re,ne,he){var fe=this.rules.inline.text.exec(re);if(fe){var xe;return ne?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):ee(fe[0]):fe[0]:xe=ee(this.options.smartypants?he(fe[0]):fe[0]),{type:"text",raw:fe[0],text:xe}}},Ee}(),Ce=j.noopTest,ce=j.edit,pe=j.merge,se={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]+/};se._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,se._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,se.def=ce(se.def).replace("label",se._label).replace("title",se._title).getRegex(),se.bullet=/(?:[*+-]|\d{1,9}[.)])/,se.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,se.item=ce(se.item,"gm").replace(/bull/g,se.bullet).getRegex(),se.list=ce(se.list).replace(/bull/g,se.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+se.def.source+")").getRegex(),se._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",se._comment=//,se.html=ce(se.html,"i").replace("comment",se._comment).replace("tag",se._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),se.paragraph=ce(se._paragraph).replace("hr",se.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",se._tag).getRegex(),se.blockquote=ce(se.blockquote).replace("paragraph",se.paragraph).getRegex(),se.normal=pe({},se),se.gfm=pe({},se.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*|$)"}),se.gfm.nptable=ce(se.gfm.nptable).replace("hr",se.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",se._tag).getRegex(),se.gfm.table=ce(se.gfm.table).replace("hr",se.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",se._tag).getRegex(),se.pedantic=pe({},se.normal,{html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",se._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:ce(se.normal._paragraph).replace("hr",se.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",se.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ae={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ce,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:Ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",ae.punctuation=ce(ae.punctuation).replace(/punctuation/g,ae._punctuation).getRegex(),ae._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",ae._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",ae.em.start=ce(ae.em.start).replace(/punctuation/g,ae._punctuation).getRegex(),ae.em.middle=ce(ae.em.middle).replace(/punctuation/g,ae._punctuation).replace(/overlapSkip/g,ae._overlapSkip).getRegex(),ae.em.endAst=ce(ae.em.endAst,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.em.endUnd=ce(ae.em.endUnd,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.start=ce(ae.strong.start).replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.middle=ce(ae.strong.middle).replace(/punctuation/g,ae._punctuation).replace(/blockSkip/g,ae._blockSkip).getRegex(),ae.strong.endAst=ce(ae.strong.endAst,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.strong.endUnd=ce(ae.strong.endUnd,"g").replace(/punctuation/g,ae._punctuation).getRegex(),ae.blockSkip=ce(ae._blockSkip,"g").getRegex(),ae.overlapSkip=ce(ae._overlapSkip,"g").getRegex(),ae._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ae._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ae._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])?)+(?![-_])/,ae.autolink=ce(ae.autolink).replace("scheme",ae._scheme).replace("email",ae._email).getRegex(),ae._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ae.tag=ce(ae.tag).replace("comment",se._comment).replace("attribute",ae._attribute).getRegex(),ae._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ae._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ae._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ae.link=ce(ae.link).replace("label",ae._label).replace("href",ae._href).replace("title",ae._title).getRegex(),ae.reflink=ce(ae.reflink).replace("label",ae._label).getRegex(),ae.reflinkSearch=ce(ae.reflinkSearch,"g").replace("reflink",ae.reflink).replace("nolink",ae.nolink).getRegex(),ae.normal=pe({},ae),ae.pedantic=pe({},ae.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:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",ae._label).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ae._label).getRegex()}),ae.gfm=pe({},ae.normal,{escape:ce(ae.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&&(re="x"+re.toString(16)),ge+="&#"+re+";";return ge}var Be=function(){function Ee(_e){this.tokens=[],this.tokens.links=Object.create(null),this.options=_e||Te,this.options.tokenizer=this.options.tokenizer||new Se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var re={block:Ne.normal,inline:De.normal};this.options.pedantic?(re.block=Ne.pedantic,re.inline=De.pedantic):this.options.gfm&&(re.block=Ne.gfm,this.options.breaks?re.inline=De.breaks:re.inline=De.gfm),this.tokenizer.rules=re}Ee.lex=function(re,ne){var he=new Ee(ne);return he.lex(re)};var ge=Ee.prototype;return ge.lex=function(re){return re=re.replace(/\r\n|\r/g,` +`).replace(/\t/g," "),this.blockTokens(re,this.tokens,!0),this.inline(this.tokens),this.tokens},ge.blockTokens=function(re,ne,he){ne===void 0&&(ne=[]),he===void 0&&(he=!0),re=re.replace(/^ +$/gm,"");for(var fe,xe,Pe,ze;re;){if(fe=this.tokenizer.space(re)){re=re.substring(fe.raw.length),fe.type&&ne.push(fe);continue}if(fe=this.tokenizer.code(re,ne)){re=re.substring(fe.raw.length),fe.type?ne.push(fe):(ze=ne[ne.length-1],ze.raw+=` `+fe.raw,ze.text+=` -`+fe.text);continue}if(fe=this.tokenizer.fences(ne)){ne=ne.substring(fe.raw.length),re.push(fe);continue}if(fe=this.tokenizer.heading(ne)){ne=ne.substring(fe.raw.length),re.push(fe);continue}if(fe=this.tokenizer.nptable(ne)){ne=ne.substring(fe.raw.length),re.push(fe);continue}if(fe=this.tokenizer.hr(ne)){ne=ne.substring(fe.raw.length),re.push(fe);continue}if(fe=this.tokenizer.blockquote(ne)){ne=ne.substring(fe.raw.length),fe.tokens=this.blockTokens(fe.text,[],he),re.push(fe);continue}if(fe=this.tokenizer.list(ne)){for(ne=ne.substring(fe.raw.length),Pe=fe.items.length,xe=0;xe0)for(;(ot=this.tokenizer.rules.inline.reflinkSearch.exec(ze))!=null;)mt.includes(ot[0].slice(ot[0].lastIndexOf("[")+1,-1))&&(ze=ze.slice(0,ot.index)+"["+"a".repeat(ot[0].length-2)+"]"+ze.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ot=this.tokenizer.rules.inline.blockSkip.exec(ze))!=null;)ze=ze.slice(0,ot.index)+"["+"a".repeat(ot[0].length-2)+"]"+ze.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ne;){if(Pe=this.tokenizer.escape(ne)){ne=ne.substring(Pe.raw.length),re.push(Pe);continue}if(Pe=this.tokenizer.tag(ne,he,fe)){ne=ne.substring(Pe.raw.length),he=Pe.inLink,fe=Pe.inRawBlock,re.push(Pe);continue}if(Pe=this.tokenizer.link(ne)){ne=ne.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,fe)),re.push(Pe);continue}if(Pe=this.tokenizer.reflink(ne,this.tokens.links)){ne=ne.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,fe)),re.push(Pe);continue}if(Pe=this.tokenizer.strong(ne,ze,xe)){ne=ne.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),re.push(Pe);continue}if(Pe=this.tokenizer.em(ne,ze,xe)){ne=ne.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),re.push(Pe);continue}if(Pe=this.tokenizer.codespan(ne)){ne=ne.substring(Pe.raw.length),re.push(Pe);continue}if(Pe=this.tokenizer.br(ne)){ne=ne.substring(Pe.raw.length),re.push(Pe);continue}if(Pe=this.tokenizer.del(ne)){ne=ne.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),re.push(Pe);continue}if(Pe=this.tokenizer.autolink(ne,Le)){ne=ne.substring(Pe.raw.length),re.push(Pe);continue}if(!he&&(Pe=this.tokenizer.url(ne,Le))){ne=ne.substring(Pe.raw.length),re.push(Pe);continue}if(Pe=this.tokenizer.inlineText(ne,fe,We)){ne=ne.substring(Pe.raw.length),xe=Pe.raw.slice(-1),re.push(Pe);continue}if(ne){var ft="Infinite loop on byte: "+ne.charCodeAt(0);if(this.options.silent){console.error(ft);break}else throw new Error(ft)}}return re},$(Ee,null,[{key:"rules",get:function(){return{block:Ne,inline:De}}}]),Ee}(),Ge=G.defaults,oe=j.cleanUrl,ye=j.escape,we=function(){function Ee(_e){this.options=_e||Ge}var ge=Ee.prototype;return ge.code=function(ne,re,he){var fe=(re||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(ne,fe);xe!=null&&xe!==ne&&(he=!0,ne=xe)}return fe?'
      '+(he?ne:ye(ne,!0))+`
      -`:"
      "+(he?ne:ye(ne,!0))+`
      -`},ge.blockquote=function(ne){return`
      -`+ne+`
      -`},ge.html=function(ne){return ne},ge.heading=function(ne,re,he,fe){return this.options.headerIds?"'+ne+" -`:""+ne+" +`+fe.text);continue}if(re){var ot="Infinite loop on byte: "+re.charCodeAt(0);if(this.options.silent){console.error(ot);break}else throw new Error(ot)}}return ne},ge.inline=function(re){var ne,he,fe,xe,Pe,ze,ot=re.length;for(ne=0;ne0)for(;(ot=this.tokenizer.rules.inline.reflinkSearch.exec(ze))!=null;)mt.includes(ot[0].slice(ot[0].lastIndexOf("[")+1,-1))&&(ze=ze.slice(0,ot.index)+"["+"a".repeat(ot[0].length-2)+"]"+ze.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ot=this.tokenizer.rules.inline.blockSkip.exec(ze))!=null;)ze=ze.slice(0,ot.index)+"["+"a".repeat(ot[0].length-2)+"]"+ze.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;re;){if(Pe=this.tokenizer.escape(re)){re=re.substring(Pe.raw.length),ne.push(Pe);continue}if(Pe=this.tokenizer.tag(re,he,fe)){re=re.substring(Pe.raw.length),he=Pe.inLink,fe=Pe.inRawBlock,ne.push(Pe);continue}if(Pe=this.tokenizer.link(re)){re=re.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,fe)),ne.push(Pe);continue}if(Pe=this.tokenizer.reflink(re,this.tokens.links)){re=re.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,fe)),ne.push(Pe);continue}if(Pe=this.tokenizer.strong(re,ze,xe)){re=re.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),ne.push(Pe);continue}if(Pe=this.tokenizer.em(re,ze,xe)){re=re.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),ne.push(Pe);continue}if(Pe=this.tokenizer.codespan(re)){re=re.substring(Pe.raw.length),ne.push(Pe);continue}if(Pe=this.tokenizer.br(re)){re=re.substring(Pe.raw.length),ne.push(Pe);continue}if(Pe=this.tokenizer.del(re)){re=re.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],he,fe),ne.push(Pe);continue}if(Pe=this.tokenizer.autolink(re,Le)){re=re.substring(Pe.raw.length),ne.push(Pe);continue}if(!he&&(Pe=this.tokenizer.url(re,Le))){re=re.substring(Pe.raw.length),ne.push(Pe);continue}if(Pe=this.tokenizer.inlineText(re,fe,We)){re=re.substring(Pe.raw.length),xe=Pe.raw.slice(-1),ne.push(Pe);continue}if(re){var ft="Infinite loop on byte: "+re.charCodeAt(0);if(this.options.silent){console.error(ft);break}else throw new Error(ft)}}return ne},$(Ee,null,[{key:"rules",get:function(){return{block:Ne,inline:De}}}]),Ee}(),Ge=G.defaults,oe=j.cleanUrl,ye=j.escape,we=function(){function Ee(_e){this.options=_e||Ge}var ge=Ee.prototype;return ge.code=function(re,ne,he){var fe=(ne||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(re,fe);xe!=null&&xe!==re&&(he=!0,re=xe)}return fe?'
      '+(he?re:ye(re,!0))+`
      +`:"
      "+(he?re:ye(re,!0))+`
      +`},ge.blockquote=function(re){return`
      +`+re+`
      +`},ge.html=function(re){return re},ge.heading=function(re,ne,he,fe){return this.options.headerIds?"'+re+" +`:""+re+" `},ge.hr=function(){return this.options.xhtml?`
      `:`
      -`},ge.list=function(ne,re,he){var fe=re?"ol":"ul",xe=re&&he!==1?' start="'+he+'"':"";return"<"+fe+xe+`> -`+ne+" -`},ge.listitem=function(ne){return"
    • "+ne+`
    • -`},ge.checkbox=function(ne){return" "},ge.paragraph=function(ne){return"

      "+ne+`

      -`},ge.table=function(ne,re){return re&&(re=""+re+""),` +`},ge.list=function(re,ne,he){var fe=ne?"ol":"ul",xe=ne&&he!==1?' start="'+he+'"':"";return"<"+fe+xe+`> +`+re+" +`},ge.listitem=function(re){return"
    • "+re+`
    • +`},ge.checkbox=function(re){return" "},ge.paragraph=function(re){return"

      "+re+`

      +`},ge.table=function(re,ne){return ne&&(ne=""+ne+""),`
      -`+ne+` -`+re+`
      -`},ge.tablerow=function(ne){return` -`+ne+` -`},ge.tablecell=function(ne,re){var he=re.header?"th":"td",fe=re.align?"<"+he+' align="'+re.align+'">':"<"+he+">";return fe+ne+" -`},ge.strong=function(ne){return""+ne+""},ge.em=function(ne){return""+ne+""},ge.codespan=function(ne){return""+ne+""},ge.br=function(){return this.options.xhtml?"
      ":"
      "},ge.del=function(ne){return""+ne+""},ge.link=function(ne,re,he){if(ne=oe(this.options.sanitize,this.options.baseUrl,ne),ne===null)return he;var fe='",fe},ge.image=function(ne,re,he){if(ne=oe(this.options.sanitize,this.options.baseUrl,ne),ne===null)return he;var fe=''+he+'":">",fe},ge.text=function(ne){return ne},Ee}(),Ae=function(){function Ee(){}var ge=Ee.prototype;return ge.strong=function(ne){return ne},ge.em=function(ne){return ne},ge.codespan=function(ne){return ne},ge.del=function(ne){return ne},ge.html=function(ne){return ne},ge.text=function(ne){return ne},ge.link=function(ne,re,he){return""+he},ge.image=function(ne,re,he){return""+he},ge.br=function(){return""},Ee}(),Ue=function(){function Ee(){this.seen={}}var ge=Ee.prototype;return ge.slug=function(ne){var re=ne.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(re)){var he=re;do this.seen[he]++,re=he+"-"+this.seen[he];while(this.seen.hasOwnProperty(re))}return this.seen[re]=0,re},Ee}(),Ve=G.defaults,Ze=j.unescape,$e=function(){function Ee(_e){this.options=_e||Ve,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new Ue}Ee.parse=function(ne,re){var he=new Ee(re);return he.parse(ne)};var ge=Ee.prototype;return ge.parse=function(ne,re){re===void 0&&(re=!0);var he="",fe,xe,Pe,ze,ot,mt,ft,wt,St,dt,Ut,Lt,qt,Qt,It,Ci,Ki,yt,Li=ne.length;for(fe=0;fe0&&It.tokens[0].type==="text"?(It.tokens[0].text=yt+" "+It.tokens[0].text,It.tokens[0].tokens&&It.tokens[0].tokens.length>0&&It.tokens[0].tokens[0].type==="text"&&(It.tokens[0].tokens[0].text=yt+" "+It.tokens[0].tokens[0].text)):It.tokens.unshift({type:"text",text:yt}):Qt+=yt),Qt+=this.parse(It.tokens,qt),St+=this.renderer.listitem(Qt,Ki,Ci);he+=this.renderer.list(St,Ut,Lt);continue}case"html":{he+=this.renderer.html(dt.text);continue}case"paragraph":{he+=this.renderer.paragraph(this.parseInline(dt.tokens));continue}case"text":{for(St=dt.tokens?this.parseInline(dt.tokens):dt.text;fe+1An error occurred:

      "+Je(Pe.message+"",!0)+"
      ";throw Pe}}Fe.options=Fe.setOptions=function(Ee){return tt(Fe.defaults,Ee),ut(Fe.defaults),Fe},Fe.getDefaults=Me,Fe.defaults=nt,Fe.use=function(Ee){var ge=tt({},Ee);if(Ee.renderer&&function(){var ne=Fe.defaults.renderer||new we,re=function(xe){var Pe=ne[xe];ne[xe]=function(){for(var ze=arguments.length,ot=new Array(ze),mt=0;mt`,triples:"",explode:"[]{}"},M=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(u,f,o){o&&o!=ie.Init&&(u.removeKeyMap(F),u.state.closeBrackets=null),f&&(U(X(f,"pairs")),u.state.closeBrackets=f,u.addKeyMap(F))});function X(u,f){return f=="pairs"&&typeof u=="string"?u:typeof u=="object"&&u[f]!=null?u[f]:$[f]}var F={Backspace:i,Enter:D};function U(u){for(var f=0;f=0;s--){var A=h[s].head;u.replaceRange("",M(A.line,A.ch-1),M(A.line,A.ch+1),"+delete")}}function D(u){var f=W(u),o=f&&X(f,"explode");if(!o||u.getOption("disableInput"))return ie.Pass;for(var h=u.listSelections(),s=0;s0;return{anchor:new M(u.anchor.line,u.anchor.ch+(f?-1:1)),head:new M(u.head.line,u.head.ch+(f?1:-1))}}function m(u,f){var o=W(u);if(!o||u.getOption("disableInput"))return ie.Pass;var h=X(o,"pairs"),s=h.indexOf(f);if(s==-1)return ie.Pass;for(var a=X(o,"closeBefore"),A=X(o,"triples"),_=h.charAt(s+1)==f,S=u.listSelections(),L=s%2==0,R,C=0;C=0&&u.getRange(x,M(x.line,x.ch+3))==f+f+f?c="skipThree":c="skip";else if(_&&x.ch>1&&A.indexOf(f)>=0&&u.getRange(M(x.line,x.ch-2),x)==f+f){if(x.ch>2&&/\bstring/.test(u.getTokenTypeAt(M(x.line,x.ch-2))))return ie.Pass;c="addFour"}else if(_){var y=x.ch==0?" ":u.getRange(M(x.line,x.ch-1),x);if(!ie.isWordChar(T)&&y!=f&&!ie.isWordChar(y))c="both";else return ie.Pass}else if(L&&(T.length===0||/\s/.test(T)||a.indexOf(T)>-1))c="both";else return ie.Pass;if(!R)R=c;else if(R!=c)return ie.Pass}var v=s%2?h.charAt(s-1):f,N=s%2?f:h.charAt(s+1);u.operation(function(){if(R=="skip")u.execCommand("goCharRight");else if(R=="skipThree")for(var B=0;B<3;B++)u.execCommand("goCharRight");else if(R=="surround"){for(var O=u.getSelections(),B=0;Ba.length&&(_=a.length);A<_;A++)yield a[A]}$.slice=o;function h(a,A=Number.POSITIVE_INFINITY){const _=[];if(A===0)return[_,a];const S=a[Symbol.iterator]();for(let L=0;LS===L){const S=a[Symbol.iterator](),L=A[Symbol.iterator]();for(;;){const R=S.next(),C=L.next();if(R.done!==C.done)return!1;if(R.done)return!0;if(!_(R.value,C.value))return!1}}$.equals=s})(ie||(ie={}))},LdHM:function(st,be,Q){"use strict";Q.d(be,"b",function(){return a}),Q.d(be,"a",function(){return _});var ie=Q("1OyB"),$=Q("vuIU"),M=Q("Ji7U"),X=Q("LK+K"),F=Q("q1tI"),U=Q("rePB"),G=Q("Ff2n"),W=Q("ODXe"),i=Q("4IlW"),D=Q("bX4T"),g=Q("YrtM"),m=Q("TSYQ"),p=Q.n(m),l=Q("+nKL"),u=Q("8OUc"),f=function(Y,ee){var le=Y.prefixCls,ue=Y.id,ke=Y.flattenOptions,Se=Y.childrenAsData,Ce=Y.values,ce=Y.searchValue,pe=Y.multiple,se=Y.defaultActiveFirstOption,ae=Y.height,Oe=Y.itemHeight,Te=Y.notFoundContent,Ne=Y.open,De=Y.menuItemSelectedIcon,We=Y.virtual,Le=Y.onSelect,Be=Y.onToggleOpen,Ge=Y.onActiveValue,oe=Y.onScroll,ye=Y.onMouseEnter,we="".concat(le,"-item"),Ae=Object(g.a)(function(){return ke},[Ne,ke],function(je,Ee){return Ee[0]&&je[1]!==Ee[1]}),Ue=F.useRef(null),Ve=function(Ee){Ee.preventDefault()},Ze=function(Ee){Ue.current&&Ue.current.scrollTo({index:Ee})},$e=function(Ee){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=Ae.length,ne=0;ne<_e;ne+=1){var re=(Ee+ne*ge+_e)%_e,he=Ae[re],fe=he.group,xe=he.data;if(!fe&&!xe.disabled)return re}return-1},tt=F.useState(function(){return $e(0)}),et=Object(W.a)(tt,2),Je=et[0],Me=et[1],ut=function(Ee){Me(Ee);var ge=Ae[Ee];if(!ge){Ge(null,-1);return}Ge(ge.data.value,Ee)};F.useEffect(function(){ut(se!==!1?$e(0):-1)},[Ae.length,ce]),F.useEffect(function(){var je=setTimeout(function(){if(!pe&&Ne&&Ce.size===1){var Ee=Array.from(Ce)[0],ge=Ae.findIndex(function(_e){var ne=_e.data;return ne.value===Ee});ut(ge),Ze(ge)}});return function(){return clearTimeout(je)}},[Ne]);var nt=function(Ee){Ee!==void 0&&Le(Ee,{selected:!Ce.has(Ee)}),pe||Be(!1)};if(F.useImperativeHandle(ee,function(){return{onKeyDown:function(Ee){var ge=Ee.which;switch(ge){case i.a.UP:case i.a.DOWN:{var _e=0;if(ge===i.a.UP?_e=-1:ge===i.a.DOWN&&(_e=1),_e!==0){var ne=$e(Je+_e,_e);Ze(ne),ut(ne)}break}case i.a.ENTER:{var re=Ae[Je];re&&!re.data.disabled?nt(re.data.value):nt(void 0),Ne&&Ee.preventDefault();break}case i.a.ESC:Be(!1)}},onKeyUp:function(){},scrollTo:function(Ee){Ze(Ee)}}}),Ae.length===0)return F.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),className:"".concat(we,"-empty"),onMouseDown:Ve},Te);function Fe(je){var Ee=Ae[je];if(!Ee)return null;var ge=Ee.data||{},_e=ge.value,ne=ge.label,re=ge.children,he=Object(D.a)(ge,!0),fe=Se?re:ne;return Ee?F.createElement("div",Object.assign({"aria-label":typeof fe=="string"?fe:null},he,{key:je,role:"option",id:"".concat(ue,"_list_").concat(je),"aria-selected":Ce.has(_e)}),_e):null}return F.createElement(F.Fragment,null,F.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),style:{height:0,width:0,overflow:"hidden"}},Fe(Je-1),Fe(Je),Fe(Je+1)),F.createElement(l.a,{itemKey:"key",ref:Ue,data:Ae,height:ae,itemHeight:Oe,fullHeight:!1,onMouseDown:Ve,onScroll:oe,virtual:We,onMouseEnter:ye},function(je,Ee){var ge,_e=je.group,ne=je.groupOption,re=je.data,he=re.label,fe=re.key;if(_e)return F.createElement("div",{className:p()(we,"".concat(we,"-group"))},he!==void 0?he:fe);var xe=re.disabled,Pe=re.value,ze=re.title,ot=re.children,mt=re.style,ft=re.className,wt=Object(G.a)(re,["disabled","value","title","children","style","className"]),St=Ce.has(Pe),dt="".concat(we,"-option"),Ut=p()(we,dt,ft,(ge={},Object(U.a)(ge,"".concat(dt,"-grouped"),ne),Object(U.a)(ge,"".concat(dt,"-active"),Je===Ee&&!xe),Object(U.a)(ge,"".concat(dt,"-disabled"),xe),Object(U.a)(ge,"".concat(dt,"-selected"),St),ge)),Lt=Se?ot:he,qt=!De||typeof De=="function"||St;return F.createElement("div",Object.assign({},wt,{"aria-selected":St,className:Ut,title:ze,onMouseMove:function(){if(Je===Ee||xe)return;ut(Ee)},onClick:function(){xe||nt(Pe)},style:mt}),F.createElement("div",{className:"".concat(dt,"-content")},Lt||Pe),F.isValidElement(De)||St,qt&&F.createElement(u.a,{className:"".concat(we,"-option-state"),customizeIcon:De,customizeIconProps:{isSelected:St}},St?"\u2713":null))}))},o=F.forwardRef(f);o.displayName="OptionList";var h=o,s=function(){return null};s.isSelectOption=!0;var a=s,A=function(){return null};A.isSelectOptGroup=!0;var _=A,S=Q("VTBJ"),L=Q("Zm9Q");function R(b){var Y=b.key,ee=b.props,le=ee.children,ue=ee.value,ke=Object(G.a)(ee,["children","value"]);return Object(S.a)({key:Y,value:ue!==void 0?ue:Y,children:le},ke)}function C(b){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(L.a)(b).map(function(ee,le){if(!F.isValidElement(ee)||!ee.type)return null;var ue=ee.type.isSelectOptGroup,ke=ee.key,Se=ee.props,Ce=Se.children,ce=Object(G.a)(Se,["children"]);return Y||!ue?R(ee):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(ke===null?le:ke,"__"),label:ke},ce),{},{options:C(Ce)})}).filter(function(ee){return ee})}var w=Q("2Qr1"),x=Q("qNPg"),c=Q("U8pU"),T=Q("Kwbf"),y=Q("WKfj");function v(b){var Y=b.mode,ee=b.options,le=b.children,ue=b.backfill,ke=b.allowClear,Se=b.placeholder,Ce=b.getInputElement,ce=b.showSearch,pe=b.onSearch,se=b.defaultOpen,ae=b.autoFocus,Oe=b.labelInValue,Te=b.value,Ne=b.inputValue,De=b.optionLabelProp,We=Y==="multiple"||Y==="tags",Le=ce!==void 0?ce:We||Y==="combobox",Be=ee||C(le);if(Object(T.a)(Y!=="tags"||Be.every(function(we){return!we.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Y==="tags"||Y==="combobox"){var Ge=Be.some(function(we){return we.options?we.options.some(function(Ae){return typeof("value"in Ae?Ae.value:Ae.key)=="number"}):typeof("value"in we?we.value:we.key)=="number"});Object(T.a)(!Ge,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(Y!=="combobox"||!De,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(Y==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(T.a)(Y==="combobox"||!Ce,"`getInputElement` only work with `combobox` mode."),Object(T.b)(Y!=="combobox"||!Ce||!ke||!Se,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pe&&!Le&&Y!=="combobox"&&Y!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!se||ae,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Te!=null){var oe=Object(y.d)(Te);Object(T.a)(!Oe||oe.every(function(we){return Object(c.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(T.a)(!We||Array.isArray(Te),"`value` should be array when `mode` is `multiple` or `tags`")}if(le){var ye=null;Object(L.a)(le).some(function(we){if(!F.isValidElement(we)||!we.type)return!1;var Ae=we.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var Ue=Object(L.a)(we.props.children).every(function(Ve){return!F.isValidElement(Ve)||!we.type||Ve.type.isSelectOption?!0:(ye=Ve.type,!1)});return!Ue}return ye=Ae,!0}),ye&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ye.displayName||ye.name||ye,"`.")),Object(T.a)(Ne===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=v,B=Object(x.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:C,flattenOptions:w.d,getLabeledValue:w.e,filterOptions:w.b,isValueDisabled:w.g,findValueOption:w.c,warningProps:N,fillOptionsWithMissingValue:w.a}),O=function(b){Object(M.a)(ee,b);var Y=Object(X.a)(ee);function ee(){var le;return Object(ie.a)(this,ee),le=Y.apply(this,arguments),le.selectRef=F.createRef(),le.focus=function(){le.selectRef.current.focus()},le.blur=function(){le.selectRef.current.blur()},le}return Object($.a)(ee,[{key:"render",value:function(){return F.createElement(B,Object.assign({ref:this.selectRef},this.props))}}]),ee}(F.Component);O.Option=a,O.OptGroup=_;var j=O,P=be.c=j},M8RZ:function(st,be,Q){"use strict";Q.d(be,"a",function(){return i});var ie=Q("fWQN"),$=Q("mtLc"),M=Q("yKVA"),X=Q("879j"),F=Q("q1tI"),U=Q.n(F),G=Q("i8i4"),W=Q.n(G),i=function(D){Object(M.a)(m,D);var g=Object(X.a)(m);function m(p){var l;Object(ie.a)(this,m),l=g.call(this,p);var u=window.document;return l.node=u.createElement("div"),u.body.appendChild(l.node),l}return Object($.a)(m,[{key:"render",value:function(){var l=this.props.children;return Object(G.createPortal)(l,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),m}(U.a.Component)},MI8n:function(st,be,Q){"use strict";Q.d(be,"c",function(){return F}),Q.d(be,"b",function(){return i}),Q.d(be,"e",function(){return D}),Q.d(be,"a",function(){return g}),Q.d(be,"d",function(){return m}),Q.d(be,"f",function(){return p});var ie=Q("/cxE"),$=Q("pmY6"),M=Q("24hK"),X=Q("5Y4S"),F;(function(l){l.None=()=>$.a.None;function u(v){return(N,B=null,O)=>{let j=!1,P;return P=v(b=>j?void 0:(P?P.dispose():j=!0,N.call(B,b)),null,O),j&&P.dispose(),P}}l.once=u;function f(v,N){return _((B,O=null,j)=>v(P=>B.call(O,N(P)),null,j))}l.map=f;function o(v,N){return _((B,O=null,j)=>v(P=>{N(P),B.call(O,P)},null,j))}l.forEach=o;function h(v,N){return _((B,O=null,j)=>v(P=>N(P)&&B.call(O,P),null,j))}l.filter=h;function s(v){return v}l.signal=s;function a(...v){return(N,B=null,O)=>Object($.e)(...v.map(j=>j(P=>N.call(B,P),null,O)))}l.any=a;function A(v,N,B){let O=B;return f(v,j=>(O=N(O,j),O))}l.reduce=A;function _(v){let N;const B=new i({onFirstListenerAdd(){N=v(B.fire,B)},onLastListenerRemove(){N.dispose()}});return B.event}function S(v,N,B=100,O=!1,j){let P,b,Y,ee=0;const le=new i({leakWarningThreshold:j,onFirstListenerAdd(){P=v(ue=>{ee++,b=N(b,ue),O&&!Y&&(le.fire(b),b=void 0),clearTimeout(Y),Y=setTimeout(()=>{const ke=b;b=void 0,Y=void 0,(!O||ee>1)&&le.fire(ke),ee=0},B)})},onLastListenerRemove(){P.dispose()}});return le.event}l.debounce=S;function L(v,N=(B,O)=>B===O){let B=!0,O;return h(v,j=>{const P=B||!N(j,O);return B=!1,O=j,P})}l.latch=L;function R(v,N){return[l.filter(v,N),l.filter(v,B=>!N(B))]}l.split=R;function C(v,N=!1,B=[]){let O=B.slice(),j=v(Y=>{O?O.push(Y):b.fire(Y)});const P=()=>{O&&O.forEach(Y=>b.fire(Y)),O=null},b=new i({onFirstListenerAdd(){j||(j=v(Y=>b.fire(Y)))},onFirstListenerDidAdd(){O&&(N?setTimeout(P):P())},onLastListenerRemove(){j&&j.dispose(),j=null}});return b.event}l.buffer=C;class w{constructor(v){this.event=v}map(v){return new w(f(this.event,v))}forEach(v){return new w(o(this.event,v))}filter(v){return new w(h(this.event,v))}reduce(v,N){return new w(A(this.event,v,N))}latch(){return new w(L(this.event))}debounce(v,N=100,B=!1,O){return new w(S(this.event,v,N,B,O))}on(v,N,B){return this.event(v,N,B)}once(v,N,B){return u(this.event)(v,N,B)}}function x(v){return new w(v)}l.chain=x;function c(v,N,B=O=>O){const O=(...Y)=>b.fire(B(...Y)),j=()=>v.on(N,O),P=()=>v.removeListener(N,O),b=new i({onFirstListenerAdd:j,onLastListenerRemove:P});return b.event}l.fromNodeEventEmitter=c;function T(v,N,B=O=>O){const O=(...Y)=>b.fire(B(...Y)),j=()=>v.addEventListener(N,O),P=()=>v.removeEventListener(N,O),b=new i({onFirstListenerAdd:j,onLastListenerRemove:P});return b.event}l.fromDOMEventEmitter=T;function y(v){return new Promise(N=>u(v)(N))}l.toPromise=y})(F||(F={}));class U{constructor(l){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${l}_${U._idPool++}`}start(l){this._stopWatch=new X.a(!0),this._listenerCount=l}stop(){if(this._stopWatch){const l=this._stopWatch.elapsed();this._elapsedOverall+=l,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${l.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}U._idPool=0;let G=-1;class W{constructor(l,u=Math.random().toString(18).slice(2,5)){this.customThreshold=l,this.name=u,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(l){let u=G;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||l +`+ne+` +`},ge.tablerow=function(re){return` +`+re+` +`},ge.tablecell=function(re,ne){var he=ne.header?"th":"td",fe=ne.align?"<"+he+' align="'+ne.align+'">':"<"+he+">";return fe+re+" +`},ge.strong=function(re){return""+re+""},ge.em=function(re){return""+re+""},ge.codespan=function(re){return""+re+""},ge.br=function(){return this.options.xhtml?"
      ":"
      "},ge.del=function(re){return""+re+""},ge.link=function(re,ne,he){if(re=oe(this.options.sanitize,this.options.baseUrl,re),re===null)return he;var fe='
      ",fe},ge.image=function(re,ne,he){if(re=oe(this.options.sanitize,this.options.baseUrl,re),re===null)return he;var fe=''+he+'":">",fe},ge.text=function(re){return re},Ee}(),Ae=function(){function Ee(){}var ge=Ee.prototype;return ge.strong=function(re){return re},ge.em=function(re){return re},ge.codespan=function(re){return re},ge.del=function(re){return re},ge.html=function(re){return re},ge.text=function(re){return re},ge.link=function(re,ne,he){return""+he},ge.image=function(re,ne,he){return""+he},ge.br=function(){return""},Ee}(),Ue=function(){function Ee(){this.seen={}}var ge=Ee.prototype;return ge.slug=function(re){var ne=re.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ne)){var he=ne;do this.seen[he]++,ne=he+"-"+this.seen[he];while(this.seen.hasOwnProperty(ne))}return this.seen[ne]=0,ne},Ee}(),Ve=G.defaults,Ze=j.unescape,$e=function(){function Ee(_e){this.options=_e||Ve,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new Ue}Ee.parse=function(re,ne){var he=new Ee(ne);return he.parse(re)};var ge=Ee.prototype;return ge.parse=function(re,ne){ne===void 0&&(ne=!0);var he="",fe,xe,Pe,ze,ot,mt,ft,wt,St,dt,Ut,Lt,qt,Qt,It,Ci,Ki,yt,Li=re.length;for(fe=0;fe0&&It.tokens[0].type==="text"?(It.tokens[0].text=yt+" "+It.tokens[0].text,It.tokens[0].tokens&&It.tokens[0].tokens.length>0&&It.tokens[0].tokens[0].type==="text"&&(It.tokens[0].tokens[0].text=yt+" "+It.tokens[0].tokens[0].text)):It.tokens.unshift({type:"text",text:yt}):Qt+=yt),Qt+=this.parse(It.tokens,qt),St+=this.renderer.listitem(Qt,Ki,Ci);he+=this.renderer.list(St,Ut,Lt);continue}case"html":{he+=this.renderer.html(dt.text);continue}case"paragraph":{he+=this.renderer.paragraph(this.parseInline(dt.tokens));continue}case"text":{for(St=dt.tokens?this.parseInline(dt.tokens):dt.text;fe+1An error occurred:

      "+Je(Pe.message+"",!0)+"
      ";throw Pe}}Fe.options=Fe.setOptions=function(Ee){return tt(Fe.defaults,Ee),ut(Fe.defaults),Fe},Fe.getDefaults=Me,Fe.defaults=rt,Fe.use=function(Ee){var ge=tt({},Ee);if(Ee.renderer&&function(){var re=Fe.defaults.renderer||new we,ne=function(xe){var Pe=re[xe];re[xe]=function(){for(var ze=arguments.length,ot=new Array(ze),mt=0;mt`,triples:"",explode:"[]{}"},M=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(u,f,o){o&&o!=ie.Init&&(u.removeKeyMap(F),u.state.closeBrackets=null),f&&(U(X(f,"pairs")),u.state.closeBrackets=f,u.addKeyMap(F))});function X(u,f){return f=="pairs"&&typeof u=="string"?u:typeof u=="object"&&u[f]!=null?u[f]:$[f]}var F={Backspace:i,Enter:D};function U(u){for(var f=0;f=0;s--){var A=h[s].head;u.replaceRange("",M(A.line,A.ch-1),M(A.line,A.ch+1),"+delete")}}function D(u){var f=W(u),o=f&&X(f,"explode");if(!o||u.getOption("disableInput"))return ie.Pass;for(var h=u.listSelections(),s=0;s0;return{anchor:new M(u.anchor.line,u.anchor.ch+(f?-1:1)),head:new M(u.head.line,u.head.ch+(f?1:-1))}}function m(u,f){var o=W(u);if(!o||u.getOption("disableInput"))return ie.Pass;var h=X(o,"pairs"),s=h.indexOf(f);if(s==-1)return ie.Pass;for(var a=X(o,"closeBefore"),A=X(o,"triples"),_=h.charAt(s+1)==f,S=u.listSelections(),L=s%2==0,R,C=0;C=0&&u.getRange(x,M(x.line,x.ch+3))==f+f+f?c="skipThree":c="skip";else if(_&&x.ch>1&&A.indexOf(f)>=0&&u.getRange(M(x.line,x.ch-2),x)==f+f){if(x.ch>2&&/\bstring/.test(u.getTokenTypeAt(M(x.line,x.ch-2))))return ie.Pass;c="addFour"}else if(_){var y=x.ch==0?" ":u.getRange(M(x.line,x.ch-1),x);if(!ie.isWordChar(T)&&y!=f&&!ie.isWordChar(y))c="both";else return ie.Pass}else if(L&&(T.length===0||/\s/.test(T)||a.indexOf(T)>-1))c="both";else return ie.Pass;if(!R)R=c;else if(R!=c)return ie.Pass}var v=s%2?h.charAt(s-1):f,N=s%2?f:h.charAt(s+1);u.operation(function(){if(R=="skip")u.execCommand("goCharRight");else if(R=="skipThree")for(var B=0;B<3;B++)u.execCommand("goCharRight");else if(R=="surround"){for(var O=u.getSelections(),B=0;Ba.length&&(_=a.length);A<_;A++)yield a[A]}$.slice=o;function h(a,A=Number.POSITIVE_INFINITY){const _=[];if(A===0)return[_,a];const S=a[Symbol.iterator]();for(let L=0;LS===L){const S=a[Symbol.iterator](),L=A[Symbol.iterator]();for(;;){const R=S.next(),C=L.next();if(R.done!==C.done)return!1;if(R.done)return!0;if(!_(R.value,C.value))return!1}}$.equals=s})(ie||(ie={}))},LdHM:function(st,be,Q){"use strict";Q.d(be,"b",function(){return a}),Q.d(be,"a",function(){return _});var ie=Q("1OyB"),$=Q("vuIU"),M=Q("Ji7U"),X=Q("LK+K"),F=Q("q1tI"),U=Q("rePB"),G=Q("Ff2n"),W=Q("ODXe"),i=Q("4IlW"),D=Q("bX4T"),g=Q("YrtM"),m=Q("TSYQ"),p=Q.n(m),l=Q("+nKL"),u=Q("8OUc"),f=function(Y,ee){var le=Y.prefixCls,ue=Y.id,ke=Y.flattenOptions,Se=Y.childrenAsData,Ce=Y.values,ce=Y.searchValue,pe=Y.multiple,se=Y.defaultActiveFirstOption,ae=Y.height,Oe=Y.itemHeight,Te=Y.notFoundContent,Ne=Y.open,De=Y.menuItemSelectedIcon,We=Y.virtual,Le=Y.onSelect,Be=Y.onToggleOpen,Ge=Y.onActiveValue,oe=Y.onScroll,ye=Y.onMouseEnter,we="".concat(le,"-item"),Ae=Object(g.a)(function(){return ke},[Ne,ke],function(je,Ee){return Ee[0]&&je[1]!==Ee[1]}),Ue=F.useRef(null),Ve=function(Ee){Ee.preventDefault()},Ze=function(Ee){Ue.current&&Ue.current.scrollTo({index:Ee})},$e=function(Ee){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=Ae.length,re=0;re<_e;re+=1){var ne=(Ee+re*ge+_e)%_e,he=Ae[ne],fe=he.group,xe=he.data;if(!fe&&!xe.disabled)return ne}return-1},tt=F.useState(function(){return $e(0)}),et=Object(W.a)(tt,2),Je=et[0],Me=et[1],ut=function(Ee){Me(Ee);var ge=Ae[Ee];if(!ge){Ge(null,-1);return}Ge(ge.data.value,Ee)};F.useEffect(function(){ut(se!==!1?$e(0):-1)},[Ae.length,ce]),F.useEffect(function(){var je=setTimeout(function(){if(!pe&&Ne&&Ce.size===1){var Ee=Array.from(Ce)[0],ge=Ae.findIndex(function(_e){var re=_e.data;return re.value===Ee});ut(ge),Ze(ge)}});return function(){return clearTimeout(je)}},[Ne]);var rt=function(Ee){Ee!==void 0&&Le(Ee,{selected:!Ce.has(Ee)}),pe||Be(!1)};if(F.useImperativeHandle(ee,function(){return{onKeyDown:function(Ee){var ge=Ee.which;switch(ge){case i.a.UP:case i.a.DOWN:{var _e=0;if(ge===i.a.UP?_e=-1:ge===i.a.DOWN&&(_e=1),_e!==0){var re=$e(Je+_e,_e);Ze(re),ut(re)}break}case i.a.ENTER:{var ne=Ae[Je];ne&&!ne.data.disabled?rt(ne.data.value):rt(void 0),Ne&&Ee.preventDefault();break}case i.a.ESC:Be(!1)}},onKeyUp:function(){},scrollTo:function(Ee){Ze(Ee)}}}),Ae.length===0)return F.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),className:"".concat(we,"-empty"),onMouseDown:Ve},Te);function Fe(je){var Ee=Ae[je];if(!Ee)return null;var ge=Ee.data||{},_e=ge.value,re=ge.label,ne=ge.children,he=Object(D.a)(ge,!0),fe=Se?ne:re;return Ee?F.createElement("div",Object.assign({"aria-label":typeof fe=="string"?fe:null},he,{key:je,role:"option",id:"".concat(ue,"_list_").concat(je),"aria-selected":Ce.has(_e)}),_e):null}return F.createElement(F.Fragment,null,F.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),style:{height:0,width:0,overflow:"hidden"}},Fe(Je-1),Fe(Je),Fe(Je+1)),F.createElement(l.a,{itemKey:"key",ref:Ue,data:Ae,height:ae,itemHeight:Oe,fullHeight:!1,onMouseDown:Ve,onScroll:oe,virtual:We,onMouseEnter:ye},function(je,Ee){var ge,_e=je.group,re=je.groupOption,ne=je.data,he=ne.label,fe=ne.key;if(_e)return F.createElement("div",{className:p()(we,"".concat(we,"-group"))},he!==void 0?he:fe);var xe=ne.disabled,Pe=ne.value,ze=ne.title,ot=ne.children,mt=ne.style,ft=ne.className,wt=Object(G.a)(ne,["disabled","value","title","children","style","className"]),St=Ce.has(Pe),dt="".concat(we,"-option"),Ut=p()(we,dt,ft,(ge={},Object(U.a)(ge,"".concat(dt,"-grouped"),re),Object(U.a)(ge,"".concat(dt,"-active"),Je===Ee&&!xe),Object(U.a)(ge,"".concat(dt,"-disabled"),xe),Object(U.a)(ge,"".concat(dt,"-selected"),St),ge)),Lt=Se?ot:he,qt=!De||typeof De=="function"||St;return F.createElement("div",Object.assign({},wt,{"aria-selected":St,className:Ut,title:ze,onMouseMove:function(){if(Je===Ee||xe)return;ut(Ee)},onClick:function(){xe||rt(Pe)},style:mt}),F.createElement("div",{className:"".concat(dt,"-content")},Lt||Pe),F.isValidElement(De)||St,qt&&F.createElement(u.a,{className:"".concat(we,"-option-state"),customizeIcon:De,customizeIconProps:{isSelected:St}},St?"\u2713":null))}))},o=F.forwardRef(f);o.displayName="OptionList";var h=o,s=function(){return null};s.isSelectOption=!0;var a=s,A=function(){return null};A.isSelectOptGroup=!0;var _=A,S=Q("VTBJ"),L=Q("Zm9Q");function R(b){var Y=b.key,ee=b.props,le=ee.children,ue=ee.value,ke=Object(G.a)(ee,["children","value"]);return Object(S.a)({key:Y,value:ue!==void 0?ue:Y,children:le},ke)}function C(b){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(L.a)(b).map(function(ee,le){if(!F.isValidElement(ee)||!ee.type)return null;var ue=ee.type.isSelectOptGroup,ke=ee.key,Se=ee.props,Ce=Se.children,ce=Object(G.a)(Se,["children"]);return Y||!ue?R(ee):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(ke===null?le:ke,"__"),label:ke},ce),{},{options:C(Ce)})}).filter(function(ee){return ee})}var w=Q("2Qr1"),x=Q("qNPg"),c=Q("U8pU"),T=Q("Kwbf"),y=Q("WKfj");function v(b){var Y=b.mode,ee=b.options,le=b.children,ue=b.backfill,ke=b.allowClear,Se=b.placeholder,Ce=b.getInputElement,ce=b.showSearch,pe=b.onSearch,se=b.defaultOpen,ae=b.autoFocus,Oe=b.labelInValue,Te=b.value,Ne=b.inputValue,De=b.optionLabelProp,We=Y==="multiple"||Y==="tags",Le=ce!==void 0?ce:We||Y==="combobox",Be=ee||C(le);if(Object(T.a)(Y!=="tags"||Be.every(function(we){return!we.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Y==="tags"||Y==="combobox"){var Ge=Be.some(function(we){return we.options?we.options.some(function(Ae){return typeof("value"in Ae?Ae.value:Ae.key)=="number"}):typeof("value"in we?we.value:we.key)=="number"});Object(T.a)(!Ge,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(Y!=="combobox"||!De,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(Y==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(T.a)(Y==="combobox"||!Ce,"`getInputElement` only work with `combobox` mode."),Object(T.b)(Y!=="combobox"||!Ce||!ke||!Se,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pe&&!Le&&Y!=="combobox"&&Y!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!se||ae,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Te!=null){var oe=Object(y.d)(Te);Object(T.a)(!Oe||oe.every(function(we){return Object(c.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(T.a)(!We||Array.isArray(Te),"`value` should be array when `mode` is `multiple` or `tags`")}if(le){var ye=null;Object(L.a)(le).some(function(we){if(!F.isValidElement(we)||!we.type)return!1;var Ae=we.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var Ue=Object(L.a)(we.props.children).every(function(Ve){return!F.isValidElement(Ve)||!we.type||Ve.type.isSelectOption?!0:(ye=Ve.type,!1)});return!Ue}return ye=Ae,!0}),ye&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ye.displayName||ye.name||ye,"`.")),Object(T.a)(Ne===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=v,B=Object(x.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:C,flattenOptions:w.d,getLabeledValue:w.e,filterOptions:w.b,isValueDisabled:w.g,findValueOption:w.c,warningProps:N,fillOptionsWithMissingValue:w.a}),O=function(b){Object(M.a)(ee,b);var Y=Object(X.a)(ee);function ee(){var le;return Object(ie.a)(this,ee),le=Y.apply(this,arguments),le.selectRef=F.createRef(),le.focus=function(){le.selectRef.current.focus()},le.blur=function(){le.selectRef.current.blur()},le}return Object($.a)(ee,[{key:"render",value:function(){return F.createElement(B,Object.assign({ref:this.selectRef},this.props))}}]),ee}(F.Component);O.Option=a,O.OptGroup=_;var j=O,P=be.c=j},M8RZ:function(st,be,Q){"use strict";Q.d(be,"a",function(){return i});var ie=Q("fWQN"),$=Q("mtLc"),M=Q("yKVA"),X=Q("879j"),F=Q("q1tI"),U=Q.n(F),G=Q("i8i4"),W=Q.n(G),i=function(D){Object(M.a)(m,D);var g=Object(X.a)(m);function m(p){var l;Object(ie.a)(this,m),l=g.call(this,p);var u=window.document;return l.node=u.createElement("div"),u.body.appendChild(l.node),l}return Object($.a)(m,[{key:"render",value:function(){var l=this.props.children;return Object(G.createPortal)(l,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),m}(U.a.Component)},MI8n:function(st,be,Q){"use strict";Q.d(be,"c",function(){return F}),Q.d(be,"b",function(){return i}),Q.d(be,"e",function(){return D}),Q.d(be,"a",function(){return g}),Q.d(be,"d",function(){return m}),Q.d(be,"f",function(){return p});var ie=Q("/cxE"),$=Q("pmY6"),M=Q("24hK"),X=Q("5Y4S"),F;(function(l){l.None=()=>$.a.None;function u(v){return(N,B=null,O)=>{let j=!1,P;return P=v(b=>j?void 0:(P?P.dispose():j=!0,N.call(B,b)),null,O),j&&P.dispose(),P}}l.once=u;function f(v,N){return _((B,O=null,j)=>v(P=>B.call(O,N(P)),null,j))}l.map=f;function o(v,N){return _((B,O=null,j)=>v(P=>{N(P),B.call(O,P)},null,j))}l.forEach=o;function h(v,N){return _((B,O=null,j)=>v(P=>N(P)&&B.call(O,P),null,j))}l.filter=h;function s(v){return v}l.signal=s;function a(...v){return(N,B=null,O)=>Object($.e)(...v.map(j=>j(P=>N.call(B,P),null,O)))}l.any=a;function A(v,N,B){let O=B;return f(v,j=>(O=N(O,j),O))}l.reduce=A;function _(v){let N;const B=new i({onFirstListenerAdd(){N=v(B.fire,B)},onLastListenerRemove(){N.dispose()}});return B.event}function S(v,N,B=100,O=!1,j){let P,b,Y,ee=0;const le=new i({leakWarningThreshold:j,onFirstListenerAdd(){P=v(ue=>{ee++,b=N(b,ue),O&&!Y&&(le.fire(b),b=void 0),clearTimeout(Y),Y=setTimeout(()=>{const ke=b;b=void 0,Y=void 0,(!O||ee>1)&&le.fire(ke),ee=0},B)})},onLastListenerRemove(){P.dispose()}});return le.event}l.debounce=S;function L(v,N=(B,O)=>B===O){let B=!0,O;return h(v,j=>{const P=B||!N(j,O);return B=!1,O=j,P})}l.latch=L;function R(v,N){return[l.filter(v,N),l.filter(v,B=>!N(B))]}l.split=R;function C(v,N=!1,B=[]){let O=B.slice(),j=v(Y=>{O?O.push(Y):b.fire(Y)});const P=()=>{O&&O.forEach(Y=>b.fire(Y)),O=null},b=new i({onFirstListenerAdd(){j||(j=v(Y=>b.fire(Y)))},onFirstListenerDidAdd(){O&&(N?setTimeout(P):P())},onLastListenerRemove(){j&&j.dispose(),j=null}});return b.event}l.buffer=C;class w{constructor(v){this.event=v}map(v){return new w(f(this.event,v))}forEach(v){return new w(o(this.event,v))}filter(v){return new w(h(this.event,v))}reduce(v,N){return new w(A(this.event,v,N))}latch(){return new w(L(this.event))}debounce(v,N=100,B=!1,O){return new w(S(this.event,v,N,B,O))}on(v,N,B){return this.event(v,N,B)}once(v,N,B){return u(this.event)(v,N,B)}}function x(v){return new w(v)}l.chain=x;function c(v,N,B=O=>O){const O=(...Y)=>b.fire(B(...Y)),j=()=>v.on(N,O),P=()=>v.removeListener(N,O),b=new i({onFirstListenerAdd:j,onLastListenerRemove:P});return b.event}l.fromNodeEventEmitter=c;function T(v,N,B=O=>O){const O=(...Y)=>b.fire(B(...Y)),j=()=>v.addEventListener(N,O),P=()=>v.removeEventListener(N,O),b=new i({onFirstListenerAdd:j,onLastListenerRemove:P});return b.event}l.fromDOMEventEmitter=T;function y(v){return new Promise(N=>u(v)(N))}l.toPromise=y})(F||(F={}));class U{constructor(l){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${l}_${U._idPool++}`}start(l){this._stopWatch=new X.a(!0),this._listenerCount=l}stop(){if(this._stopWatch){const l=this._stopWatch.elapsed();this._elapsedOverall+=l,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${l.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}U._idPool=0;let G=-1;class W{constructor(l,u=Math.random().toString(18).slice(2,5)){this.customThreshold=l,this.name=u,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(l){let u=G;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||l{const h=this._stacks.get(f)||0;this._stacks.set(f,h-1)}}}class i{constructor(l){var u;this._disposed=!1,this._options=l,this._leakageMon=G>0?new W(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((u=this._options)===null||u===void 0?void 0:u._profName)?new U(this._options._profName):void 0}get event(){return this._event||(this._event=(l,u,f)=>{var o;this._listeners||(this._listeners=new M.a);const h=this._listeners.isEmpty();h&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(u?[l,u]:l);h&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,l,u);const a=(o=this._leakageMon)===null||o===void 0?void 0:o.check(this._listeners.size),A=Object($.i)(()=>{if(a&&a(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const _=this._listeners&&!this._listeners.isEmpty();_||this._options.onLastListenerRemove(this)}});return f instanceof $.b?f.add(A):Array.isArray(f)&&f.push(A),A}),this._event}fire(l){var u,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new M.a);for(let o of this._listeners)this._deliveryQueue.push([o,l]);for((u=this._perfMon)===null||u===void 0||u.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[o,h]=this._deliveryQueue.shift();try{typeof o=="function"?o.call(void 0,h):o[0].call(o[1],h)}catch(s){Object(ie.f)(s)}}(f=this._perfMon)===null||f===void 0||f.stop()}}dispose(){var l,u,f,o,h;this._disposed||(this._disposed=!0,(l=this._listeners)===null||l===void 0||l.clear(),(u=this._deliveryQueue)===null||u===void 0||u.clear(),(o=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||o===void 0||o.call(f),(h=this._leakageMon)===null||h===void 0||h.dispose())}}class D extends i{constructor(l){super(l);this._isPaused=0,this._eventQueue=new M.a,this._mergeFn=l==null?void 0:l.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const l=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(l))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(l){this._listeners&&(this._isPaused!==0?this._eventQueue.push(l):super.fire(l))}}class g extends D{constructor(l){var u;super(l);this._delay=(u=l.delay)!==null&&u!==void 0?u:100}fire(l){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(l)}}class m{constructor(){this.buffers=[]}wrapEvent(l){return(u,f,o)=>l(h=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>u.call(f,h)):u.call(f,h)},void 0,o)}bufferEvents(l){const u=[];this.buffers.push(u);const f=l();return this.buffers.pop(),u.forEach(o=>o()),f}}class p{constructor(){this.listening=!1,this.inputEvent=F.None,this.inputEventListener=$.a.None,this.emitter=new i({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(l){this.inputEvent=l,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=l(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(st,be,Q){"use strict";(function(ie,$){Q.d(be,"b",function(){return f}),Q.d(be,"i",function(){return a}),Q.d(be,"f",function(){return A}),Q.d(be,"d",function(){return _}),Q.d(be,"g",function(){return S}),Q.d(be,"h",function(){return L}),Q.d(be,"c",function(){return R}),Q.d(be,"k",function(){return C}),Q.d(be,"j",function(){return w}),Q.d(be,"a",function(){return x}),Q.d(be,"e",function(){return y});var M;const X="en";let F=!1,U=!1,G=!1,W=!1,i=!1,D=!1,g=!1,m,p=X,l,u;const f=typeof self=="object"?self:typeof ie=="object"?ie:{};let o;typeof f.vscode!="undefined"&&typeof f.vscode.process!="undefined"?o=f.vscode.process:typeof $!="undefined"&&(o=$);const h=typeof((M=o==null?void 0:o.versions)===null||M===void 0?void 0:M.electron)=="string"&&o.type==="renderer";if(typeof navigator=="object"&&!h)u=navigator.userAgent,F=u.indexOf("Windows")>=0,U=u.indexOf("Macintosh")>=0,g=(u.indexOf("Macintosh")>=0||u.indexOf("iPad")>=0||u.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,G=u.indexOf("Linux")>=0,D=!0,m=navigator.language,p=m;else if(typeof o=="object"){F=o.platform==="win32",U=o.platform==="darwin",G=o.platform==="linux",W=G&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,m=X,p=X;const v=o.env.VSCODE_NLS_CONFIG;if(v)try{const N=JSON.parse(v),B=N.availableLanguages["*"];m=N.locale,p=B||X,l=N._translationsConfigFile}catch(N){}i=!0}else console.error("Unable to resolve platform.");let s=0;U?s=1:F?s=3:G&&(s=2);const a=F,A=U,_=G,S=i,L=D,R=g,C=u,w=function(){if(f.setImmediate)return f.setImmediate.bind(f);if(typeof f.postMessage=="function"&&!f.importScripts){let B=[];f.addEventListener("message",j=>{if(j.data&&j.data.vscodeSetImmediateId)for(let P=0,b=B.length;P{const P=++O;B.push({id:P,callback:j}),f.postMessage({vscodeSetImmediateId:P},"*")}}if(typeof(o==null?void 0:o.nextTick)=="function")return o.nextTick.bind(o);const N=Promise.resolve();return B=>N.then(B)}(),x=U||g?2:F?1:3;let c=!0,T=!1;function y(){if(!T){T=!0;const v=new Uint8Array(2);v[0]=1,v[1]=2;const N=new Uint16Array(v.buffer);c=N[0]===(2<<8)+1}return c}}).call(this,Q("IyRk"),Q("Q2Ig"))},N0LK:function(st,be,Q){"use strict";Q.d(be,"C",function(){return ie}),Q.d(be,"v",function(){return M}),Q.d(be,"s",function(){return X}),Q.d(be,"t",function(){return F}),Q.d(be,"U",function(){return U}),Q.d(be,"J",function(){return G}),Q.d(be,"O",function(){return W}),Q.d(be,"p",function(){return i}),Q.d(be,"T",function(){return D}),Q.d(be,"q",function(){return g}),Q.d(be,"N",function(){return m}),Q.d(be,"M",function(){return p}),Q.d(be,"Q",function(){return l}),Q.d(be,"u",function(){return u}),Q.d(be,"x",function(){return f}),Q.d(be,"I",function(){return o}),Q.d(be,"f",function(){return h}),Q.d(be,"h",function(){return s}),Q.d(be,"g",function(){return a}),Q.d(be,"i",function(){return A}),Q.d(be,"G",function(){return _}),Q.d(be,"H",function(){return S}),Q.d(be,"r",function(){return L}),Q.d(be,"R",function(){return R}),Q.d(be,"d",function(){return C}),Q.d(be,"e",function(){return w}),Q.d(be,"E",function(){return x}),Q.d(be,"F",function(){return c}),Q.d(be,"j",function(){return T}),Q.d(be,"z",function(){return y}),Q.d(be,"K",function(){return N}),Q.d(be,"L",function(){return B}),Q.d(be,"m",function(){return j}),Q.d(be,"k",function(){return b}),Q.d(be,"A",function(){return ee}),Q.d(be,"a",function(){return le}),Q.d(be,"n",function(){return ue}),Q.d(be,"l",function(){return ke}),Q.d(be,"D",function(){return Se}),Q.d(be,"B",function(){return Ce}),Q.d(be,"b",function(){return ce}),Q.d(be,"S",function(){return pe}),Q.d(be,"o",function(){return se}),Q.d(be,"P",function(){return ae}),Q.d(be,"w",function(){return Oe}),Q.d(be,"c",function(){return Te}),Q.d(be,"y",function(){return We});function ie(oe){return!oe||typeof oe!="string"?!0:oe.trim().length===0}const $=/{(\d+)}/g;function M(oe,...ye){return ye.length===0?oe:oe.replace($,function(we,Ae){const Ue=parseInt(Ae,10);return isNaN(Ue)||Ue<0||Ue>=ye.length?we:ye[Ue]})}function X(oe){return oe.replace(/[<>&]/g,function(ye){switch(ye){case"<":return"<";case">":return">";case"&":return"&";default:return ye}})}function F(oe){return oe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function U(oe,ye=" "){const we=G(oe,ye);return W(we,ye)}function G(oe,ye){if(!oe||!ye)return oe;const we=ye.length;if(we===0||oe.length===0)return oe;let Ae=0;for(;oe.indexOf(ye,Ae)===Ae;)Ae=Ae+we;return oe.substring(Ae)}function W(oe,ye){if(!oe||!ye)return oe;const we=ye.length,Ae=oe.length;if(we===0||Ae===0)return oe;let Ue=Ae,Ve=-1;for(;!(Ve=oe.lastIndexOf(ye,Ue-1),Ve===-1||Ve+we!==Ue);){if(Ve===0)return"";Ue=Ve}return oe.substring(0,Ue)}function i(oe){return oe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function D(oe){return oe.replace(/\*/g,"")}function g(oe,ye,we={}){if(!oe)throw new Error("Cannot create regex from empty string");ye||(oe=F(oe)),we.wholeWord&&(/\B/.test(oe.charAt(0))||(oe="\\b"+oe),/\B/.test(oe.charAt(oe.length-1))||(oe=oe+"\\b"));let Ae="";return we.global&&(Ae+="g"),we.matchCase||(Ae+="i"),we.multiline&&(Ae+="m"),we.unicode&&(Ae+="u"),new RegExp(oe,Ae)}function m(oe){if(oe.source==="^"||oe.source==="^$"||oe.source==="$"||oe.source==="^\\s*$")return!1;const ye=oe.exec("");return!!(ye&&oe.lastIndex===0)}function p(oe){return(oe.global?"g":"")+(oe.ignoreCase?"i":"")+(oe.multiline?"m":"")+(oe.unicode?"u":"")}function l(oe){return oe.split(/\r\n|\r|\n/)}function u(oe){for(let ye=0,we=oe.length;ye=0;we--){const Ae=oe.charCodeAt(we);if(Ae!==32&&Ae!==9)return we}return-1}function h(oe,ye){return oeye?1:0}function s(oe,ye,we=0,Ae=oe.length,Ue=0,Ve=ye.length){for(;weet)return 1}const Ze=Ae-we,$e=Ve-Ue;return Ze<$e?-1:Ze>$e?1:0}function a(oe,ye){return A(oe,ye,0,oe.length,0,ye.length)}function A(oe,ye,we=0,Ae=oe.length,Ue=0,Ve=ye.length){for(;we=128||et>=128)return s(oe.toLowerCase(),ye.toLowerCase(),we,Ae,Ue,Ve);_(tt)&&(tt-=32),_(et)&&(et-=32);const Je=tt-et;if(Je===0)continue;return Je}const Ze=Ae-we,$e=Ve-Ue;return Ze<$e?-1:Ze>$e?1:0}function _(oe){return oe>=97&&oe<=122}function S(oe){return oe>=65&&oe<=90}function L(oe,ye){return oe.length===ye.length&&A(oe,ye)===0}function R(oe,ye){const we=ye.length;return ye.length>oe.length?!1:A(oe,ye,0,we)===0}function C(oe,ye){let we,Ae=Math.min(oe.length,ye.length);for(we=0;we1){const Ae=oe.charCodeAt(ye-2);if(x(Ae))return T(Ae,we)}return we}function N(oe,ye){const we=Ne.getInstance(),Ae=ye,Ue=oe.length,Ve=y(oe,Ue,ye);ye+=Ve>=65536?2:1;let Ze=we.getGraphemeBreakType(Ve);for(;ye=65536?2:1,Ze=tt}return ye-Ae}function B(oe,ye){const we=Ne.getInstance(),Ae=ye,Ue=v(oe,ye);ye-=Ue>=65536?2:1;let Ve=we.getGraphemeBreakType(Ue);for(;ye>0;){const Ze=v(oe,ye),$e=we.getGraphemeBreakType(Ze);if(Te($e,Ve))break;ye-=Ze>=65536?2:1,Ve=$e}return Ae-ye}const O=/(?:[\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 j(oe){return O.test(oe)}const P=/(?:[\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 b(oe){return P.test(oe)}const Y=/^[\t\n\r\x20-\x7E]*$/;function ee(oe){return Y.test(oe)}const le=/[\u2028\u2029]/;function ue(oe){return le.test(oe)}function ke(oe){for(let ye=0,we=oe.length;ye=11904&&oe<=55215||oe>=63744&&oe<=64255||oe>=65281&&oe<=65374}function Ce(oe){return oe>=127462&&oe<=127487||oe===8986||oe===8987||oe===9200||oe===9203||oe>=9728&&oe<=10175||oe===11088||oe===11093||oe>=127744&&oe<=128591||oe>=128640&&oe<=128764||oe>=128992&&oe<=129003||oe>=129280&&oe<=129535||oe>=129648&&oe<=129750}const ce=String.fromCharCode(65279);function pe(oe){return!!(oe&&oe.length>0&&oe.charCodeAt(0)===65279)}function se(oe,ye=!1){return oe?(ye&&(oe=oe.replace(/\\./g,"")),oe.toLowerCase()!==oe):!1}function ae(oe){const ye=90-65+1;return oe=oe%(2*ye),oeye[3*Ae+1])Ae=2*Ae+1;else return ye[3*Ae+2];return 0}}Ne._INSTANCE=null;function De(){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 We(oe,ye){if(oe===0)return 0;const we=Le(oe,ye);if(we!==void 0)return we;const Ae=v(ye,oe);return oe-=Be(Ae),oe}function Le(oe,ye){let we=v(ye,oe);for(oe-=Be(we);Ge(we)||we===65039||we===8419;){if(oe===0)return;we=v(ye,oe),oe-=Be(we)}if(!Ce(we))return;if(oe>=0){const Ae=v(ye,oe);Ae===8205&&(oe-=Be(Ae))}return oe}function Be(oe){return oe>=65536?2:1}function Ge(oe){return 127995<=oe&&oe<=127999}},Ot1p:function(st,be,Q){"use strict";var ie=Q("2qtc"),$=Q("kLXV"),M=Q("rAM+"),X=Q("miYZ"),F=Q("tsqr"),U=Q("9og8"),G=Q("tJVT"),W=Q("jrin"),i=Q("WmNS"),D=Q.n(i),g=Q("q1tI"),m=Q.n(g),p=Q("VrN/"),l=Q.n(p),u=Q("bdgK"),f=Q("p77/"),o=Q("Bd2K"),h=Q("ELLl"),s=Q("19Vz"),a=Q("lZu9"),A=Q("+NIl"),_=Q("kSUc"),S=Q("9Bee"),L=function(xe){var Pe=xe.value,ze=Pe===void 0?"":Pe,ot=xe.className,mt=xe.showTextOnly,ft=xe.showLines,wt=xe.style,St=wt===void 0?{}:wt,dt=Object(g.useMemo)(function(){return""},[ze]);return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{dangerouslySetInnerHTML:{__html:dt}}))},R=Q("0Owb"),C=Q("dejd"),w=Q("C+DQ"),x=Q("1vsH"),c=Q("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 y(xe){var Pe=xe.onActionCallback,ze=xe.title,ot=xe.icon,mt=xe.actionName,ft=xe.className,wt=ft===void 0?"":ft,St=xe.children;function dt(){Pe(mt)}return m.a.createElement("a",{title:ze,className:wt,onClick:dt},m.a.createElement("i",{className:"md-iconfont ".concat(ot)}),St)}var v=function(xe){var Pe=xe.watch,ze=xe.showNullButton,ot=xe.onActionCallback,mt=xe.fullScreen,ft=xe.insertTemp,wt=xe.hidetoolBar,St=xe.uuid,dt=xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(x.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(x.F)("_educoder_session"),"&key=").concat(St,"&api=").concat(encodeURIComponent(c.a.PROXY_SERVER)));var Ut=[].concat(T,[{title:"".concat(Pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Pe?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return m.a.createElement("ul",{className:"markdown-toolbar-container"},!wt&&Ut.map(function(Lt,qt){return m.a.createElement("li",{key:qt},Lt.actionName?m.a.createElement(y,Object(R.a)({},Lt,{onActionCallback:ot})):m.a.createElement("span",{className:"v-line"}))}),ze?m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ot},m.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ft&&m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ft),onActionCallback:ot},m.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),m.a.createElement("li",{className:"btn-full-screen"},m.a.createElement(y,{icon:"".concat(mt?"icon-shrink":"icon-enlarge"),title:mt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ot})))},N=Q("M8RZ"),B=Q("+L6B"),O=Q("2/Rp"),j=Q("y8nQ"),P=Q("Vl3Y"),b=Q("5NDa"),Y=Q("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},le=function(xe){var Pe=xe.callback,ze=xe.onCancel;function ot(mt){Pe(mt)}return m.a.createElement(P.a,Object(R.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ot}),m.a.createElement(P.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},m.a.createElement(Y.a,null)),m.a.createElement(P.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},m.a.createElement(Y.a,null)),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},ue=Q("7ahc"),ke=Q("HmJG"),Se=Q("BjJ7"),Ce=P.a.useForm,ce={width:280,marginRight:10},pe={labelCol:{span:5},wrapperCol:{span:19}},se=function(xe){var Pe=xe.callback,ze=xe.onCancel,ot=Ce(),mt=Object(G.a)(ot,1),ft=mt[0];function wt(Ut){Pe(Ut)}function St(Ut,Lt){if(Ut.status===-1){F.b.error(Ut.message);return}ft.setFieldsValue({src:"/api/attachments/".concat(Ut.id),type:Lt.type})}function dt(Ut){var Lt=Ut.target.files[0];Oe(Lt,St)}return m.a.createElement(P.a,Object(R.a)({form:ft},pe,{className:"upload-image-panel",onFinish:wt}),m.a.createElement(P.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},m.a.createElement("div",{className:"flex-container"},m.a.createElement(P.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},m.a.createElement(Y.a,{style:ce})),m.a.createElement(ae,{onFileChange:dt}))),m.a.createElement(P.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},m.a.createElement(Y.a,{style:{width:264}})),m.a.createElement(P.a.Item,{style:{textAlign:"right"}},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))};function ae(xe){var Pe=xe.onFileChange;return m.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",m.a.createElement("input",{type:"file",onChange:Pe}))}function Oe(xe,Pe){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var ze=new FormData;ze.append("editormd-image-file",xe),ze.append("file_param_name","editormd-image-file"),ze.append("byxhr","true");var ot=new window.XMLHttpRequest;ot.withCredentials=!0,ot.addEventListener("load",function(mt){Pe(JSON.parse(mt.target.responseText),xe)},!1),ot.addEventListener("error",function(mt){console.error(mt)},!1),ot.open("POST","".concat(Se.a,"/api/attachments.json")),ot.send(ze)}var Te=Q("giR+"),Ne=Q("fyUT"),De=Q("7Kak"),We=Q("9yH6"),Le=We.a.Group,Be={margin:"0 8px"},Ge=function(xe){var Pe=xe.callback,ze=xe.onCancel;function ot(mt){Pe(mt)}return m.a.createElement(P.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ot},m.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},m.a.createElement("span",{style:Be},"\u5355\u5143\u683C\u6570\uFF1A"),m.a.createElement("span",{style:Be},"\u884C\u6570"),m.a.createElement(P.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},m.a.createElement(Ne.a,null)),m.a.createElement("span",{style:Be},"\u5217\u6570"),m.a.createElement(P.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},m.a.createElement(Ne.a,null))),m.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},m.a.createElement("span",{style:Be},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),m.a.createElement(P.a.Item,{name:"align"},m.a.createElement(Le,null,m.a.createElement(We.a,{value:"default"},m.a.createElement("i",{className:"fa fa-align-justify"})),m.a.createElement(We.a,{value:"left"},m.a.createElement("i",{className:"fa fa-align-left"})),m.a.createElement(We.a,{value:"center"},m.a.createElement("i",{className:"fa fa-align-center"})),m.a.createElement(We.a,{value:"right"},m.a.createElement("i",{className:"fa fa-align-right"}))))),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},oe=Q("ErOA"),ye=Q("7Cbv"),we="link",Ae="upload-image",Ue="code-block",Ve="add-table",Ze="------------",$e={default:Ze,left:":".concat(Ze),center:":".concat(Ze,":"),right:"".concat(Ze,":")},tt=Q("9VGf"),et,Je;function Me(){}var ut=0,nt=1e4,Fe="\u2581",je=` +`),o=this._stacks.get(f)||0;if(this._stacks.set(f,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=u*.5;let h,s=0;for(const[a,A]of this._stacks)(!h||s{const h=this._stacks.get(f)||0;this._stacks.set(f,h-1)}}}class i{constructor(l){var u;this._disposed=!1,this._options=l,this._leakageMon=G>0?new W(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((u=this._options)===null||u===void 0?void 0:u._profName)?new U(this._options._profName):void 0}get event(){return this._event||(this._event=(l,u,f)=>{var o;this._listeners||(this._listeners=new M.a);const h=this._listeners.isEmpty();h&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(u?[l,u]:l);h&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,l,u);const a=(o=this._leakageMon)===null||o===void 0?void 0:o.check(this._listeners.size),A=Object($.i)(()=>{if(a&&a(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const _=this._listeners&&!this._listeners.isEmpty();_||this._options.onLastListenerRemove(this)}});return f instanceof $.b?f.add(A):Array.isArray(f)&&f.push(A),A}),this._event}fire(l){var u,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new M.a);for(let o of this._listeners)this._deliveryQueue.push([o,l]);for((u=this._perfMon)===null||u===void 0||u.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[o,h]=this._deliveryQueue.shift();try{typeof o=="function"?o.call(void 0,h):o[0].call(o[1],h)}catch(s){Object(ie.f)(s)}}(f=this._perfMon)===null||f===void 0||f.stop()}}dispose(){var l,u,f,o,h;this._disposed||(this._disposed=!0,(l=this._listeners)===null||l===void 0||l.clear(),(u=this._deliveryQueue)===null||u===void 0||u.clear(),(o=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||o===void 0||o.call(f),(h=this._leakageMon)===null||h===void 0||h.dispose())}}class D extends i{constructor(l){super(l);this._isPaused=0,this._eventQueue=new M.a,this._mergeFn=l==null?void 0:l.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const l=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(l))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(l){this._listeners&&(this._isPaused!==0?this._eventQueue.push(l):super.fire(l))}}class g extends D{constructor(l){var u;super(l);this._delay=(u=l.delay)!==null&&u!==void 0?u:100}fire(l){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(l)}}class m{constructor(){this.buffers=[]}wrapEvent(l){return(u,f,o)=>l(h=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>u.call(f,h)):u.call(f,h)},void 0,o)}bufferEvents(l){const u=[];this.buffers.push(u);const f=l();return this.buffers.pop(),u.forEach(o=>o()),f}}class p{constructor(){this.listening=!1,this.inputEvent=F.None,this.inputEventListener=$.a.None,this.emitter=new i({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(l){this.inputEvent=l,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=l(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(st,be,Q){"use strict";(function(ie,$){Q.d(be,"b",function(){return f}),Q.d(be,"i",function(){return a}),Q.d(be,"f",function(){return A}),Q.d(be,"d",function(){return _}),Q.d(be,"g",function(){return S}),Q.d(be,"h",function(){return L}),Q.d(be,"c",function(){return R}),Q.d(be,"k",function(){return C}),Q.d(be,"j",function(){return w}),Q.d(be,"a",function(){return x}),Q.d(be,"e",function(){return y});var M;const X="en";let F=!1,U=!1,G=!1,W=!1,i=!1,D=!1,g=!1,m,p=X,l,u;const f=typeof self=="object"?self:typeof ie=="object"?ie:{};let o;typeof f.vscode!="undefined"&&typeof f.vscode.process!="undefined"?o=f.vscode.process:typeof $!="undefined"&&(o=$);const h=typeof((M=o==null?void 0:o.versions)===null||M===void 0?void 0:M.electron)=="string"&&o.type==="renderer";if(typeof navigator=="object"&&!h)u=navigator.userAgent,F=u.indexOf("Windows")>=0,U=u.indexOf("Macintosh")>=0,g=(u.indexOf("Macintosh")>=0||u.indexOf("iPad")>=0||u.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,G=u.indexOf("Linux")>=0,D=!0,m=navigator.language,p=m;else if(typeof o=="object"){F=o.platform==="win32",U=o.platform==="darwin",G=o.platform==="linux",W=G&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,m=X,p=X;const v=o.env.VSCODE_NLS_CONFIG;if(v)try{const N=JSON.parse(v),B=N.availableLanguages["*"];m=N.locale,p=B||X,l=N._translationsConfigFile}catch(N){}i=!0}else console.error("Unable to resolve platform.");let s=0;U?s=1:F?s=3:G&&(s=2);const a=F,A=U,_=G,S=i,L=D,R=g,C=u,w=function(){if(f.setImmediate)return f.setImmediate.bind(f);if(typeof f.postMessage=="function"&&!f.importScripts){let B=[];f.addEventListener("message",j=>{if(j.data&&j.data.vscodeSetImmediateId)for(let P=0,b=B.length;P{const P=++O;B.push({id:P,callback:j}),f.postMessage({vscodeSetImmediateId:P},"*")}}if(typeof(o==null?void 0:o.nextTick)=="function")return o.nextTick.bind(o);const N=Promise.resolve();return B=>N.then(B)}(),x=U||g?2:F?1:3;let c=!0,T=!1;function y(){if(!T){T=!0;const v=new Uint8Array(2);v[0]=1,v[1]=2;const N=new Uint16Array(v.buffer);c=N[0]===(2<<8)+1}return c}}).call(this,Q("IyRk"),Q("Q2Ig"))},N0LK:function(st,be,Q){"use strict";Q.d(be,"C",function(){return ie}),Q.d(be,"v",function(){return M}),Q.d(be,"s",function(){return X}),Q.d(be,"t",function(){return F}),Q.d(be,"U",function(){return U}),Q.d(be,"J",function(){return G}),Q.d(be,"O",function(){return W}),Q.d(be,"p",function(){return i}),Q.d(be,"T",function(){return D}),Q.d(be,"q",function(){return g}),Q.d(be,"N",function(){return m}),Q.d(be,"M",function(){return p}),Q.d(be,"Q",function(){return l}),Q.d(be,"u",function(){return u}),Q.d(be,"x",function(){return f}),Q.d(be,"I",function(){return o}),Q.d(be,"f",function(){return h}),Q.d(be,"h",function(){return s}),Q.d(be,"g",function(){return a}),Q.d(be,"i",function(){return A}),Q.d(be,"G",function(){return _}),Q.d(be,"H",function(){return S}),Q.d(be,"r",function(){return L}),Q.d(be,"R",function(){return R}),Q.d(be,"d",function(){return C}),Q.d(be,"e",function(){return w}),Q.d(be,"E",function(){return x}),Q.d(be,"F",function(){return c}),Q.d(be,"j",function(){return T}),Q.d(be,"z",function(){return y}),Q.d(be,"K",function(){return N}),Q.d(be,"L",function(){return B}),Q.d(be,"m",function(){return j}),Q.d(be,"k",function(){return b}),Q.d(be,"A",function(){return ee}),Q.d(be,"a",function(){return le}),Q.d(be,"n",function(){return ue}),Q.d(be,"l",function(){return ke}),Q.d(be,"D",function(){return Se}),Q.d(be,"B",function(){return Ce}),Q.d(be,"b",function(){return ce}),Q.d(be,"S",function(){return pe}),Q.d(be,"o",function(){return se}),Q.d(be,"P",function(){return ae}),Q.d(be,"w",function(){return Oe}),Q.d(be,"c",function(){return Te}),Q.d(be,"y",function(){return We});function ie(oe){return!oe||typeof oe!="string"?!0:oe.trim().length===0}const $=/{(\d+)}/g;function M(oe,...ye){return ye.length===0?oe:oe.replace($,function(we,Ae){const Ue=parseInt(Ae,10);return isNaN(Ue)||Ue<0||Ue>=ye.length?we:ye[Ue]})}function X(oe){return oe.replace(/[<>&]/g,function(ye){switch(ye){case"<":return"<";case">":return">";case"&":return"&";default:return ye}})}function F(oe){return oe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function U(oe,ye=" "){const we=G(oe,ye);return W(we,ye)}function G(oe,ye){if(!oe||!ye)return oe;const we=ye.length;if(we===0||oe.length===0)return oe;let Ae=0;for(;oe.indexOf(ye,Ae)===Ae;)Ae=Ae+we;return oe.substring(Ae)}function W(oe,ye){if(!oe||!ye)return oe;const we=ye.length,Ae=oe.length;if(we===0||Ae===0)return oe;let Ue=Ae,Ve=-1;for(;!(Ve=oe.lastIndexOf(ye,Ue-1),Ve===-1||Ve+we!==Ue);){if(Ve===0)return"";Ue=Ve}return oe.substring(0,Ue)}function i(oe){return oe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function D(oe){return oe.replace(/\*/g,"")}function g(oe,ye,we={}){if(!oe)throw new Error("Cannot create regex from empty string");ye||(oe=F(oe)),we.wholeWord&&(/\B/.test(oe.charAt(0))||(oe="\\b"+oe),/\B/.test(oe.charAt(oe.length-1))||(oe=oe+"\\b"));let Ae="";return we.global&&(Ae+="g"),we.matchCase||(Ae+="i"),we.multiline&&(Ae+="m"),we.unicode&&(Ae+="u"),new RegExp(oe,Ae)}function m(oe){if(oe.source==="^"||oe.source==="^$"||oe.source==="$"||oe.source==="^\\s*$")return!1;const ye=oe.exec("");return!!(ye&&oe.lastIndex===0)}function p(oe){return(oe.global?"g":"")+(oe.ignoreCase?"i":"")+(oe.multiline?"m":"")+(oe.unicode?"u":"")}function l(oe){return oe.split(/\r\n|\r|\n/)}function u(oe){for(let ye=0,we=oe.length;ye=0;we--){const Ae=oe.charCodeAt(we);if(Ae!==32&&Ae!==9)return we}return-1}function h(oe,ye){return oeye?1:0}function s(oe,ye,we=0,Ae=oe.length,Ue=0,Ve=ye.length){for(;weet)return 1}const Ze=Ae-we,$e=Ve-Ue;return Ze<$e?-1:Ze>$e?1:0}function a(oe,ye){return A(oe,ye,0,oe.length,0,ye.length)}function A(oe,ye,we=0,Ae=oe.length,Ue=0,Ve=ye.length){for(;we=128||et>=128)return s(oe.toLowerCase(),ye.toLowerCase(),we,Ae,Ue,Ve);_(tt)&&(tt-=32),_(et)&&(et-=32);const Je=tt-et;if(Je===0)continue;return Je}const Ze=Ae-we,$e=Ve-Ue;return Ze<$e?-1:Ze>$e?1:0}function _(oe){return oe>=97&&oe<=122}function S(oe){return oe>=65&&oe<=90}function L(oe,ye){return oe.length===ye.length&&A(oe,ye)===0}function R(oe,ye){const we=ye.length;return ye.length>oe.length?!1:A(oe,ye,0,we)===0}function C(oe,ye){let we,Ae=Math.min(oe.length,ye.length);for(we=0;we1){const Ae=oe.charCodeAt(ye-2);if(x(Ae))return T(Ae,we)}return we}function N(oe,ye){const we=Ne.getInstance(),Ae=ye,Ue=oe.length,Ve=y(oe,Ue,ye);ye+=Ve>=65536?2:1;let Ze=we.getGraphemeBreakType(Ve);for(;ye=65536?2:1,Ze=tt}return ye-Ae}function B(oe,ye){const we=Ne.getInstance(),Ae=ye,Ue=v(oe,ye);ye-=Ue>=65536?2:1;let Ve=we.getGraphemeBreakType(Ue);for(;ye>0;){const Ze=v(oe,ye),$e=we.getGraphemeBreakType(Ze);if(Te($e,Ve))break;ye-=Ze>=65536?2:1,Ve=$e}return Ae-ye}const O=/(?:[\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 j(oe){return O.test(oe)}const P=/(?:[\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 b(oe){return P.test(oe)}const Y=/^[\t\n\r\x20-\x7E]*$/;function ee(oe){return Y.test(oe)}const le=/[\u2028\u2029]/;function ue(oe){return le.test(oe)}function ke(oe){for(let ye=0,we=oe.length;ye=11904&&oe<=55215||oe>=63744&&oe<=64255||oe>=65281&&oe<=65374}function Ce(oe){return oe>=127462&&oe<=127487||oe===8986||oe===8987||oe===9200||oe===9203||oe>=9728&&oe<=10175||oe===11088||oe===11093||oe>=127744&&oe<=128591||oe>=128640&&oe<=128764||oe>=128992&&oe<=129003||oe>=129280&&oe<=129535||oe>=129648&&oe<=129750}const ce=String.fromCharCode(65279);function pe(oe){return!!(oe&&oe.length>0&&oe.charCodeAt(0)===65279)}function se(oe,ye=!1){return oe?(ye&&(oe=oe.replace(/\\./g,"")),oe.toLowerCase()!==oe):!1}function ae(oe){const ye=90-65+1;return oe=oe%(2*ye),oeye[3*Ae+1])Ae=2*Ae+1;else return ye[3*Ae+2];return 0}}Ne._INSTANCE=null;function De(){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 We(oe,ye){if(oe===0)return 0;const we=Le(oe,ye);if(we!==void 0)return we;const Ae=v(ye,oe);return oe-=Be(Ae),oe}function Le(oe,ye){let we=v(ye,oe);for(oe-=Be(we);Ge(we)||we===65039||we===8419;){if(oe===0)return;we=v(ye,oe),oe-=Be(we)}if(!Ce(we))return;if(oe>=0){const Ae=v(ye,oe);Ae===8205&&(oe-=Be(Ae))}return oe}function Be(oe){return oe>=65536?2:1}function Ge(oe){return 127995<=oe&&oe<=127999}},Ot1p:function(st,be,Q){"use strict";var ie=Q("2qtc"),$=Q("kLXV"),M=Q("rAM+"),X=Q("miYZ"),F=Q("tsqr"),U=Q("9og8"),G=Q("tJVT"),W=Q("jrin"),i=Q("WmNS"),D=Q.n(i),g=Q("q1tI"),m=Q.n(g),p=Q("VrN/"),l=Q.n(p),u=Q("bdgK"),f=Q("p77/"),o=Q("Bd2K"),h=Q("ELLl"),s=Q("19Vz"),a=Q("lZu9"),A=Q("+NIl"),_=Q("kSUc"),S=Q("9Bee"),L=function(xe){var Pe=xe.value,ze=Pe===void 0?"":Pe,ot=xe.className,mt=xe.showTextOnly,ft=xe.showLines,wt=xe.style,St=wt===void 0?{}:wt,dt=Object(g.useMemo)(function(){return""},[ze]);return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{dangerouslySetInnerHTML:{__html:dt}}))},R=Q("0Owb"),C=Q("dejd"),w=Q("C+DQ"),x=Q("1vsH"),c=Q("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 y(xe){var Pe=xe.onActionCallback,ze=xe.title,ot=xe.icon,mt=xe.actionName,ft=xe.className,wt=ft===void 0?"":ft,St=xe.children;function dt(){Pe(mt)}return m.a.createElement("a",{title:ze,className:wt,onClick:dt},m.a.createElement("i",{className:"md-iconfont ".concat(ot)}),St)}var v=function(xe){var Pe=xe.watch,ze=xe.showNullButton,ot=xe.onActionCallback,mt=xe.fullScreen,ft=xe.insertTemp,wt=xe.hidetoolBar,St=xe.uuid,dt=xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(x.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(x.F)("_educoder_session"),"&key=").concat(St,"&api=").concat(encodeURIComponent(c.a.PROXY_SERVER)));var Ut=[].concat(T,[{title:"".concat(Pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Pe?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return m.a.createElement("ul",{className:"markdown-toolbar-container"},!wt&&Ut.map(function(Lt,qt){return m.a.createElement("li",{key:qt},Lt.actionName?m.a.createElement(y,Object(R.a)({},Lt,{onActionCallback:ot})):m.a.createElement("span",{className:"v-line"}))}),ze?m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ot},m.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ft&&m.a.createElement("li",null,m.a.createElement(y,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ft),onActionCallback:ot},m.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),m.a.createElement("li",{className:"btn-full-screen"},m.a.createElement(y,{icon:"".concat(mt?"icon-shrink":"icon-enlarge"),title:mt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ot})))},N=Q("M8RZ"),B=Q("+L6B"),O=Q("2/Rp"),j=Q("y8nQ"),P=Q("Vl3Y"),b=Q("5NDa"),Y=Q("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},le=function(xe){var Pe=xe.callback,ze=xe.onCancel;function ot(mt){Pe(mt)}return m.a.createElement(P.a,Object(R.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ot}),m.a.createElement(P.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},m.a.createElement(Y.a,null)),m.a.createElement(P.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},m.a.createElement(Y.a,null)),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},ue=Q("7ahc"),ke=Q("HmJG"),Se=Q("BjJ7"),Ce=P.a.useForm,ce={width:280,marginRight:10},pe={labelCol:{span:5},wrapperCol:{span:19}},se=function(xe){var Pe=xe.callback,ze=xe.onCancel,ot=Ce(),mt=Object(G.a)(ot,1),ft=mt[0];function wt(Ut){Pe(Ut)}function St(Ut,Lt){if(Ut.status===-1){F.b.error(Ut.message);return}ft.setFieldsValue({src:"/api/attachments/".concat(Ut.id),type:Lt.type})}function dt(Ut){var Lt=Ut.target.files[0];Oe(Lt,St)}return m.a.createElement(P.a,Object(R.a)({form:ft},pe,{className:"upload-image-panel",onFinish:wt}),m.a.createElement(P.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},m.a.createElement("div",{className:"flex-container"},m.a.createElement(P.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},m.a.createElement(Y.a,{style:ce})),m.a.createElement(ae,{onFileChange:dt}))),m.a.createElement(P.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},m.a.createElement(Y.a,{style:{width:264}})),m.a.createElement(P.a.Item,{style:{textAlign:"right"}},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))};function ae(xe){var Pe=xe.onFileChange;return m.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",m.a.createElement("input",{type:"file",onChange:Pe}))}function Oe(xe,Pe){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var ze=new FormData;ze.append("editormd-image-file",xe),ze.append("file_param_name","editormd-image-file"),ze.append("byxhr","true");var ot=new window.XMLHttpRequest;ot.withCredentials=!0,ot.addEventListener("load",function(mt){Pe(JSON.parse(mt.target.responseText),xe)},!1),ot.addEventListener("error",function(mt){console.error(mt)},!1),ot.open("POST","".concat(Se.a,"/api/attachments.json")),ot.send(ze)}var Te=Q("giR+"),Ne=Q("fyUT"),De=Q("7Kak"),We=Q("9yH6"),Le=We.a.Group,Be={margin:"0 8px"},Ge=function(xe){var Pe=xe.callback,ze=xe.onCancel;function ot(mt){Pe(mt)}return m.a.createElement(P.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ot},m.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},m.a.createElement("span",{style:Be},"\u5355\u5143\u683C\u6570\uFF1A"),m.a.createElement("span",{style:Be},"\u884C\u6570"),m.a.createElement(P.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},m.a.createElement(Ne.a,null)),m.a.createElement("span",{style:Be},"\u5217\u6570"),m.a.createElement(P.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},m.a.createElement(Ne.a,null))),m.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},m.a.createElement("span",{style:Be},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),m.a.createElement(P.a.Item,{name:"align"},m.a.createElement(Le,null,m.a.createElement(We.a,{value:"default"},m.a.createElement("i",{className:"fa fa-align-justify"})),m.a.createElement(We.a,{value:"left"},m.a.createElement("i",{className:"fa fa-align-left"})),m.a.createElement(We.a,{value:"center"},m.a.createElement("i",{className:"fa fa-align-center"})),m.a.createElement(We.a,{value:"right"},m.a.createElement("i",{className:"fa fa-align-right"}))))),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(O.a,{type:"ghost",onClick:ze},"\u53D6\u6D88")))},oe=Q("ErOA"),ye=Q("7Cbv"),we="link",Ae="upload-image",Ue="code-block",Ve="add-table",Ze="------------",$e={default:Ze,left:":".concat(Ze),center:":".concat(Ze,":"),right:"".concat(Ze,":")},tt=Q("9VGf"),et,Je;function Me(){}var ut=0,rt=1e4,Fe="\u2581",je=` **\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 Ee(xe){return/^\d+$/.test(xe)?"".concat(xe,"px"):xe}var ge=navigator.platform.toUpperCase().indexOf("MAC")>=0,_e=ge?"Cmd":"Ctrl",ne=["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"],re=(et={},Object(W.a)(et,_e+"-B","bold"),Object(W.a)(et,_e+"-I","italic"),et),he=(Je={},Object(W.a)(Je,we,"\u6DFB\u52A0\u94FE\u63A5"),Object(W.a)(Je,Ue,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(W.a)(Je,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(W.a)(Je,Ve,"\u6DFB\u52A0\u8868\u683C"),Je),fe=be.a=function(xe){var Pe=xe.defaultValue,ze=Pe===void 0?"":Pe,ot=xe.onChange,mt=xe.width,ft=mt===void 0?"100%":mt,wt=xe.height,St=wt===void 0?400:wt,dt=xe.miniToolbar,Ut=dt===void 0?!1:dt,Lt=xe.isFocus,qt=Lt===void 0?!1:Lt,Qt=xe.watch,It=xe.insertTemp,Ci=xe.mode,Ki=Ci===void 0?"markdown":Ci,yt=xe.id,Li=yt===void 0?"markdown-editor-id":yt,bt=xe.showResizeBar,xt=bt===void 0?!1:bt,Ft=xe.noStorage,ti=Ft===void 0?!1:Ft,di=xe.showNullButton,Pt=di===void 0?!1:di,ct=xe.hidetoolBar,Ui=ct===void 0?!1:ct,Vt=xe.fullScreen,Jt=Vt===void 0?!1:Vt,Ot=xe.onBlur,li=xe.onCMBeforeChange,Ii=xe.onFullScreen,Xi=xe.className,Qe=Xi===void 0?"":Xi,Ct=xe.disablePaste,mn=Ct===void 0?!1:Ct,gn=xe.placeholder,vn=gn===void 0?"":gn,yn=xe.values,V=yn===void 0?"":yn,E=Object(g.useState)(null),I=Object(G.a)(E,2),H=I[0],q=I[1],z=Object(g.useState)(ze),ve=Object(G.a)(z,2),Ke=ve[0],it=ve[1],pt=Object(g.useState)(Qt),Ye=Object(G.a)(pt,2),_t=Ye[0],jt=Ye[1],$t=Object(g.useState)(Jt),ji=Object(G.a)($t,2),Ei=ji[0],xi=ji[1],Qi=Object(g.useState)(""),Dn=Object(G.a)(Qi,2),ci=Dn[0],zi=Dn[1],un=Object(g.useState)(0),hn=Object(G.a)(un,2),Hi=hn[0],kn=hn[1],bn=Object(g.useState)(St),zn=Object(G.a)(bn,2),Vn=zn[0],Zi=zn[1],$i=Object(g.useState)(!1),_n=Object(G.a)($i,2),dr=_n[0],En=_n[1],ni=Object(g.useRef)(Object(ye.a)()),Ht=Object(g.useRef)(!1),yi=Object(g.useRef)(),kt=Object(g.useRef)(),ai=Object(g.useRef)(),Kt=Object(g.useRef)(),rn=Object(g.useRef)(),fi=function(){var gt=Object(U.a)(D.a.mark(function At(){var Et,Dt;return D.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(oe.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ni.current}});case 2:Dt=Yt.sent,Dt!=null&&(Et=Dt.attachments)!==null&&Et!==void 0&&Et.length&&(console.log("cm:",H,kt),Dt.attachments.map(function(Nt){Nt.content_type.indexOf("image")>-1?H.replaceSelection("![,](/api/attachments/".concat(Nt.id,"?type=").concat(Nt.content_type,")")):Nt.content_type.indexOf("video")>-1?H.replaceSelection('')):Nt.content_type.indexOf("pdf")>-1?H.replaceSelection('
      ').concat(Nt.name,"")):H.replaceSelection("[".concat(Nt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Nt.id,"?type=").concat(Nt.content_type,")"))}));case 4:case"end":return Yt.stop()}},At)}));return function(){return gt.apply(this,arguments)}}();Object(g.useEffect)(function(){it(V),H==null||H.setValue(V)},[V]),Object(g.useEffect)(function(){Ii==null||Ii(Ei)},[Ei]),Object(g.useEffect)(function(){if(kt.current){var gt=l.a.fromTextArea(kt.current,{mode:Ki,lineNumbers:!Ut,lineWrapping:!0,value:ze,autoCloseTags:!0,autoCloseBrackets:!0});qt&>.focus();function At(Et,Dt){if(mn){Dt.preventDefault();return}var Bt=Dt.clipboardData;if(Bt){var Yt=Bt.types.toString(),Nt=Bt.items;if(Yt==="Files"||Bt.types.indexOf("Files")>-1){if(Dt.preventDefault(),Ki=="stex")return;try{var ui,Di=Nt[1];((ui=Nt[0])===null||ui===void 0?void 0:ui.kind)==="file"&&(Di=Nt[0]);var Mt=Di.getAsFile(),dn=Mt.name.split(".").pop();Oe(Mt,function(Wt){if(Wt.id){var ki,Ti,Ji;(Mt==null||((ki=Mt.type)===null||ki===void 0)?void 0:ki.indexOf("image"))>-1?gt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Mt==null||((Ti=Mt.type)===null||Ti===void 0)?void 0:Ti.indexOf("video"))>-1?gt.replaceSelection('')):(Mt==null||((Ji=Mt.type)===null||Ji===void 0)?void 0:Ji.indexOf("pdf"))>-1?gt.replaceSelection('').concat(Mt.name,"")):ne.includes(dn)?gt.replaceSelection('').concat(Mt.name,"")):gt.replaceSelection("[".concat(Mt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})}catch(Wt){F.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return gt.on("paste",At),gt.on("dragleave",function(Et,Dt){ai.current.classList.remove("mouse-hover-md")}),gt.on("dragover",function(Et,Dt){ai.current.classList.add("mouse-hover-md")}),gt.on("drop",function(Et,Dt){ai.current.classList.add("mouse-hover-md");var Bt;if(Bt=Dt.dataTransfer.files,Bt.length>0){Dt.preventDefault(),Dt.stopPropagation();for(var Yt=function(Di){var Mt=Bt[Di],dn=Mt.name.split(".").pop();Oe(Mt,function(Wt){if(Wt.id){var ki,Ti,Ji;(Mt==null||((ki=Mt.type)===null||ki===void 0)?void 0:ki.indexOf("image"))>-1?gt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Mt==null||((Ti=Mt.type)===null||Ti===void 0)?void 0:Ti.indexOf("video"))>-1?gt.replaceSelection('')):(Mt==null||((Ji=Mt.type)===null||Ji===void 0)?void 0:Ji.indexOf("pdf"))>-1?gt.replaceSelection('').concat(Mt.name,"")):ne.includes(dn)?gt.replaceSelection('').concat(Mt.name,"")):gt.replaceSelection("[".concat(Mt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})},Nt=0;Nt0||Nt.target.offsetWidth>0)&&(Ai(),H.setSize("100%","100%"),H.refresh())}}catch(ui){Bt.e(ui)}finally{Bt.f()}});return Et.observe(kt.current.parentElement),Et}if(H){var At=gt();return function(){At.unobserve(kt.current.parentElement)}}},[H,Ai]),Object(g.useEffect)(function(){if(H){for(var gt=[],At=function(){var Nt=Dt[Et];Bt=Object(G.a)(Nt,2);var ui=Bt[0],Di=Bt[1],Mt=Object(W.a)({},ui,function(){Yn(Di)});gt.push(Mt),H.addKeyMap(Mt)},Et=0,Dt=Object.entries(re);Et0){var gt=new Date().getTime(),At=window.sessionStorage.getItem(Li);gt>=Hi+nt&&(!At||At!==Ke)&&(window.sessionStorage.setItem(Li,Ke),En(!0))}},nt),Object(g.useEffect)(function(){jt(Qt)},[H,Qt]),Object(g.useEffect)(function(){H&&(qt&&H.focus())},[H,qt]),Object(g.useEffect)(function(){if(_t&&H){var gt=H.getScrollerElement();function At(Et){var Dt=Et.target;if(rn.current){var Bt=Dt.scrollTop/Dt.scrollHeight;rn.current.scrollTop=rn.current.scrollHeight*Bt}}return gt.addEventListener("scroll",At),function(){gt.removeEventListener("scroll",At)}}},[H,_t]),Object(g.useEffect)(function(){if(H&&li){function gt(At,Et){li(At,Et)}return H.on("beforeChange",gt),function(){H.off("beforeChange",gt)}}},[H,li]),Object(g.useEffect)(function(){if(H&&Ot){function gt(){Ot(H.getValue())}return H.on("blur",gt),function(){H.off("blur",gt)}}},[H,Ot]),Object(g.useEffect)(function(){if(H){function gt(At){var Et=At.getValue();it(Et),kn(new Date().getTime()),At.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ot&&ot(Et)}return H.on("change",gt),function(){H.off("change",gt)}}},[H,ot]),Object(g.useEffect)(function(){H&&(ze==null?(H.setValue(""),it("")):ze!==H.getValue()&&(H.setValue(ze),it(ze),H.setCursor(H.lineCount(),0)))},[H,ze]);var Yn=Object(g.useCallback)(function(gt){var At=H.getCursor(),Et=H.getSelection(),Dt=Et.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Ee(xe){return/^\d+$/.test(xe)?"".concat(xe,"px"):xe}var ge=navigator.platform.toUpperCase().indexOf("MAC")>=0,_e=ge?"Cmd":"Ctrl",re=["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"],ne=(et={},Object(W.a)(et,_e+"-B","bold"),Object(W.a)(et,_e+"-I","italic"),et),he=(Je={},Object(W.a)(Je,we,"\u6DFB\u52A0\u94FE\u63A5"),Object(W.a)(Je,Ue,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(W.a)(Je,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(W.a)(Je,Ve,"\u6DFB\u52A0\u8868\u683C"),Je),fe=be.a=function(xe){var Pe=xe.defaultValue,ze=Pe===void 0?"":Pe,ot=xe.onChange,mt=xe.width,ft=mt===void 0?"100%":mt,wt=xe.height,St=wt===void 0?400:wt,dt=xe.miniToolbar,Ut=dt===void 0?!1:dt,Lt=xe.isFocus,qt=Lt===void 0?!1:Lt,Qt=xe.watch,It=xe.insertTemp,Ci=xe.mode,Ki=Ci===void 0?"markdown":Ci,yt=xe.id,Li=yt===void 0?"markdown-editor-id":yt,bt=xe.showResizeBar,xt=bt===void 0?!1:bt,Ft=xe.noStorage,ti=Ft===void 0?!1:Ft,di=xe.showNullButton,Pt=di===void 0?!1:di,ct=xe.hidetoolBar,Ui=ct===void 0?!1:ct,Vt=xe.fullScreen,Jt=Vt===void 0?!1:Vt,Ot=xe.onBlur,li=xe.onCMBeforeChange,Ii=xe.onFullScreen,Xi=xe.className,Qe=Xi===void 0?"":Xi,Ct=xe.disablePaste,pr=Ct===void 0?!1:Ct,mr=xe.placeholder,gr=mr===void 0?"":mr,vr=xe.values,V=vr===void 0?"":vr,E=Object(g.useState)(null),I=Object(G.a)(E,2),H=I[0],q=I[1],z=Object(g.useState)(ze),ve=Object(G.a)(z,2),Ke=ve[0],it=ve[1],pt=Object(g.useState)(Qt),Ye=Object(G.a)(pt,2),_t=Ye[0],jt=Ye[1],$t=Object(g.useState)(Jt),ji=Object(G.a)($t,2),Ei=ji[0],xi=ji[1],Qi=Object(g.useState)(""),Ir=Object(G.a)(Qi,2),ci=Ir[0],zi=Ir[1],lr=Object(g.useState)(0),ur=Object(G.a)(lr,2),Hi=ur[0],Dr=ur[1],yr=Object(g.useState)(St),Kr=Object(G.a)(yr,2),zr=Kr[0],Zi=Kr[1],$i=Object(g.useState)(!1),br=Object(G.a)($i,2),dn=br[0],_r=br[1],ri=Object(g.useRef)(Object(ye.a)()),Ht=Object(g.useRef)(!1),yi=Object(g.useRef)(),kt=Object(g.useRef)(),ai=Object(g.useRef)(),Kt=Object(g.useRef)(),rr=Object(g.useRef)(),fi=function(){var gt=Object(U.a)(D.a.mark(function At(){var Et,Dt;return D.a.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Yt.next=2,Object(oe.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ri.current}});case 2:Dt=Yt.sent,Dt!=null&&(Et=Dt.attachments)!==null&&Et!==void 0&&Et.length&&(console.log("cm:",H,kt),Dt.attachments.map(function(Nt){Nt.content_type.indexOf("image")>-1?H.replaceSelection("![,](/api/attachments/".concat(Nt.id,"?type=").concat(Nt.content_type,")")):Nt.content_type.indexOf("video")>-1?H.replaceSelection('')):Nt.content_type.indexOf("pdf")>-1?H.replaceSelection('').concat(Nt.name,"")):H.replaceSelection("[".concat(Nt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Nt.id,"?type=").concat(Nt.content_type,")"))}));case 4:case"end":return Yt.stop()}},At)}));return function(){return gt.apply(this,arguments)}}();Object(g.useEffect)(function(){it(V),H==null||H.setValue(V)},[V]),Object(g.useEffect)(function(){Ii==null||Ii(Ei)},[Ei]),Object(g.useEffect)(function(){if(kt.current){var gt=l.a.fromTextArea(kt.current,{mode:Ki,lineNumbers:!Ut,lineWrapping:!0,value:ze,autoCloseTags:!0,autoCloseBrackets:!0});qt&>.focus();function At(Et,Dt){if(pr){Dt.preventDefault();return}var Bt=Dt.clipboardData;if(Bt){var Yt=Bt.types.toString(),Nt=Bt.items;if(Yt==="Files"||Bt.types.indexOf("Files")>-1){if(Dt.preventDefault(),Ki=="stex")return;try{var ui,Di=Nt[1];((ui=Nt[0])===null||ui===void 0?void 0:ui.kind)==="file"&&(Di=Nt[0]);var Mt=Di.getAsFile(),hr=Mt.name.split(".").pop();Oe(Mt,function(Wt){if(Wt.id){var ki,Ti,Ji;(Mt==null||((ki=Mt.type)===null||ki===void 0)?void 0:ki.indexOf("image"))>-1?gt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Mt==null||((Ti=Mt.type)===null||Ti===void 0)?void 0:Ti.indexOf("video"))>-1?gt.replaceSelection('')):(Mt==null||((Ji=Mt.type)===null||Ji===void 0)?void 0:Ji.indexOf("pdf"))>-1?gt.replaceSelection('').concat(Mt.name,"")):re.includes(hr)?gt.replaceSelection('').concat(Mt.name,"")):gt.replaceSelection("[".concat(Mt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})}catch(Wt){F.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return gt.on("paste",At),gt.on("dragleave",function(Et,Dt){ai.current.classList.remove("mouse-hover-md")}),gt.on("dragover",function(Et,Dt){ai.current.classList.add("mouse-hover-md")}),gt.on("drop",function(Et,Dt){ai.current.classList.add("mouse-hover-md");var Bt;if(Bt=Dt.dataTransfer.files,Bt.length>0){Dt.preventDefault(),Dt.stopPropagation();for(var Yt=function(Di){var Mt=Bt[Di],hr=Mt.name.split(".").pop();Oe(Mt,function(Wt){if(Wt.id){var ki,Ti,Ji;(Mt==null||((ki=Mt.type)===null||ki===void 0)?void 0:ki.indexOf("image"))>-1?gt.replaceSelection("![,](/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type,")")):(Mt==null||((Ti=Mt.type)===null||Ti===void 0)?void 0:Ti.indexOf("video"))>-1?gt.replaceSelection('')):(Mt==null||((Ji=Mt.type)===null||Ji===void 0)?void 0:Ji.indexOf("pdf"))>-1?gt.replaceSelection('').concat(Mt.name,"")):re.includes(hr)?gt.replaceSelection('').concat(Mt.name,"")):gt.replaceSelection("[".concat(Mt.name,"](").concat(c.a.API_SERVER,"/api/attachments/").concat(Wt.id,"?type=").concat(Wt.content_type,")"))}else(Wt==null?void 0:Wt.status)===401&&(document.location.href="/user/login")})},Nt=0;Nt0||Nt.target.offsetWidth>0)&&(Ai(),H.setSize("100%","100%"),H.refresh())}}catch(ui){Bt.e(ui)}finally{Bt.f()}});return Et.observe(kt.current.parentElement),Et}if(H){var At=gt();return function(){At.unobserve(kt.current.parentElement)}}},[H,Ai]),Object(g.useEffect)(function(){if(H){for(var gt=[],At=function(){var Nt=Dt[Et];Bt=Object(G.a)(Nt,2);var ui=Bt[0],Di=Bt[1],Mt=Object(W.a)({},ui,function(){Vr(Di)});gt.push(Mt),H.addKeyMap(Mt)},Et=0,Dt=Object.entries(ne);Et0){var gt=new Date().getTime(),At=window.sessionStorage.getItem(Li);gt>=Hi+rt&&(!At||At!==Ke)&&(window.sessionStorage.setItem(Li,Ke),_r(!0))}},rt),Object(g.useEffect)(function(){jt(Qt)},[H,Qt]),Object(g.useEffect)(function(){H&&(qt&&H.focus())},[H,qt]),Object(g.useEffect)(function(){if(_t&&H){var gt=H.getScrollerElement();function At(Et){var Dt=Et.target;if(rr.current){var Bt=Dt.scrollTop/Dt.scrollHeight;rr.current.scrollTop=rr.current.scrollHeight*Bt}}return gt.addEventListener("scroll",At),function(){gt.removeEventListener("scroll",At)}}},[H,_t]),Object(g.useEffect)(function(){if(H&&li){function gt(At,Et){li(At,Et)}return H.on("beforeChange",gt),function(){H.off("beforeChange",gt)}}},[H,li]),Object(g.useEffect)(function(){if(H&&Ot){function gt(){Ot(H.getValue())}return H.on("blur",gt),function(){H.off("blur",gt)}}},[H,Ot]),Object(g.useEffect)(function(){if(H){function gt(At){var Et=At.getValue();it(Et),Dr(new Date().getTime()),At.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ot&&ot(Et)}return H.on("change",gt),function(){H.off("change",gt)}}},[H,ot]),Object(g.useEffect)(function(){H&&(ze==null?(H.setValue(""),it("")):ze!==H.getValue()&&(H.setValue(ze),it(ze),H.setCursor(H.lineCount(),0)))},[H,ze]);var Vr=Object(g.useCallback)(function(gt){var At=H.getCursor(),Et=H.getSelection(),Dt=Et.split(` `);switch(gt){case"bold":return H.replaceSelection("**"+Et+"**"),Et===""&&H.setCursor(At.line,At.ch+2),H.focus();case"italic":return H.replaceSelection("*"+Et+"*"),Et===""&&H.setCursor(At.line,At.ch+1),H.focus();case"code":return H.replaceSelection("`"+Et+"`"),Et===""&&H.setCursor(At.line,At.ch+1),H.focus();case"inline-latex":return H.replaceSelection("`$$"+Et+"$$`"),Et===""&&H.setCursor(At.line,At.ch+3),H.focus();case"latex":return H.replaceSelection("```latex\n"+Et+"\n```"),H.setCursor(At.line+1,Et.length+1),H.focus();case"line-break":return H.replaceSelection(`
      `),H.focus();case"list-ul":return Et===""?H.replaceSelection("- "+Et):H.replaceSelection(Dt.map(function(Bt){return Bt===""?"":"- ".concat(Bt)}).join(` `)),H.focus();case"list-ol":return Et===""?H.replaceSelection("1. "+Et):H.replaceSelection(Dt.map(function(Bt,Yt){return Bt===""?"":"".concat(Yt+1,". ").concat(Bt)}).join(` -`)),H.focus();case"add-null-ch":return Et===""&&H.setCursor(At.line,At.ch+1),H.replaceSelection(Fe),H.focus();case"inster-template-1":return Et===""&&H.setCursor(At.line,At.ch),H.replaceSelection(je),H.focus();case"eraser":return H.setValue(""),H.focus();case"trigger-watch":return jt(!_t),H.focus();case"trigger-full-screen":return xi(!Ei),H.focus();case we:zi(we);return;case Ue:zi(Ue);return;case Ae:zi(Ae);return;case Ve:zi(Ve);return;default:throw new Error}},[H,_t,Ei]),xn=Object(g.useCallback)(function(gt){zi("");switch(ci){case we:var At=gt.title,Et=gt.link;return H.replaceSelection("[".concat(At,"](").concat(Et,")")),H.focus();case Ue:var Dt=gt.language,Bt=gt.content;return H.replaceSelection(["```"+Dt,Bt,"```"].join(` -`)),H.focus();case Ae:var Yt=gt.src,Nt=gt.alt;return Nt?H.replaceSelection("![ ".concat(Nt," ]( ").concat(Yt,' "').concat(Nt,'" )')):H.replaceSelection("![,](".concat(Yt,")")),H.focus();case Ve:for(var ui=gt.row,Di=gt.col,Mt=gt.align,dn=` -`,Wt=0;Wt300&&(ui=300);var Di=St+ui+"px";Zi(Di)}}return gt.addEventListener("mousedown",Dt),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",Bt),function(){gt.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",Bt)}}},[H,Kt]),Object(g.useEffect)(function(){Zi(St)},[St]);var an=Ee(ft),fr=Ee(Vn),qi={width:an,height:fr},pr=Object(g.useMemo)(function(){if(Hi){var gt=new Date(Hi),At=gt.getHours(),Et=gt.getMinutes(),Dt=gt.getSeconds();return At=At<10?"0"+At:At,Et=Et<10?"0"+Et:Et,Dt=Dt<10?"0"+Dt:Dt,"".concat(At,":").concat(Et,":").concat(Dt)}return 0},[Hi]);function jr(){window.sessionStorage.removeItem(Li),En(!1),kn(0)}function Mn(){En(!1),kn(0),H.setValue(window.sessionStorage.getItem(Li))}function ua(gt,At){var Et=H.getValue();Et=Et.replace(gt,At),it(Et),H==null||H.setValue(Et)}return m.a.createElement(g.Fragment,null,m.a.createElement("div",{className:"markdown-editor-wrapper",ref:ai},m.a.createElement("div",{className:"markdown-editor-container ".concat(Qe," ").concat(_t?"on-preview":""," ").concat(Ut?"mini":""," ").concat(Ei?"full-screen":""),style:qi},m.a.createElement(v,{insertTemp:It,watch:_t,fullScreen:Ei,showNullButton:Pt,onActionCallback:Yn,hidetoolBar:Ui,uuid:ni.current,setOpenPhones:function(){Ht.current=!0}}),m.a.createElement("div",{className:"markdown-editor-body"},m.a.createElement("div",{className:"codemirror-container"},m.a.createElement("textarea",{ref:kt,placeholder:vn})),_t?m.a.createElement("div",{ref:rn,className:"preview-container"},Ki==="stex"&&m.a.createElement(L,{value:Ke}),Ki!=="stex"&&m.a.createElement(S.a,{edit:!0,value:Ke,replaces:ua})):null))),xt?m.a.createElement("a",{ref:Kt,className:"editor-resize"}):null,m.a.createElement(N.a,null,he[ci]?m.a.createElement($.a,{centered:!0,title:he[ci],visible:!0,onCancel:Tn,footer:null,className:"markdown-popup-form"},cr):null))}},RxwV:function(st,be,Q){"use strict";var ie=Q("q1tI"),$=Q("uciX"),M=Q("2W6z"),X=Q.n(M),F=Q("4IlW"),U=Q("uK0f"),G=Q.n(U);function W(ce,pe){if(ce===pe)return!0;if(!ce||!pe)return!1;var se=ce.length;if(pe.length!==se)return!1;for(var ae=0;ae0;(Ve||Te.isLeaf===!1)&&(Ae+=" ".concat(We,"-menu-item-expand"),Te.loading||(Ue=ie.createElement("span",{className:"".concat(We,"-menu-item-expand-icon")},Be))),Le==="hover"&&(Ve||Te.isLeaf===!1)&&(we={onMouseEnter:this.delayOnSelect.bind(this,oe),onMouseLeave:this.delayOnSelect.bind(this),onClick:oe}),this.isActiveOption(Te,Ne)&&(Ae+=" ".concat(We,"-menu-item-active"),we.ref=this.saveMenuItem(Ne)),Te.disabled&&(Ae+=" ".concat(We,"-menu-item-disabled"));var Ze=null;Te.loading&&(Ae+=" ".concat(We,"-menu-item-loading"),Ze=Ge||null);var $e="";return"title"in Te?$e=Te.title:typeof Te[this.getFieldName("label")]=="string"&&($e=Te[this.getFieldName("label")]),ie.createElement("li",Object.assign({key:Te[this.getFieldName("value")],className:Ae,title:$e},we,{role:"menuitem",onMouseDown:function(et){return et.preventDefault()}}),Te[this.getFieldName("label")],Ue,Ze)}},{key:"getActiveOptions",value:function(Te){var Ne=this,De=this.props.options,We=Te||this.props.activeValue;return G()(De,function(Le,Be){return Le[Ne.getFieldName("value")]===We[Be]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Te=this,Ne=this.props.options,De=this.getActiveOptions().map(function(We){return We[Te.getFieldName("children")]}).filter(function(We){return!!We});return De.unshift(Ne),De}},{key:"delayOnSelect",value:function(Te){for(var Ne=this,De=arguments.length,We=new Array(De>1?De-1:0),Le=1;Le=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ce,ae))continue;se[ae]=ce[ae]}}return se}function C(ce,pe){if(ce==null)return{};var se={},ae=Object.keys(ce),Oe,Te;for(Te=0;Te=0)continue;se[Oe]=ce[Oe]}return se}function w(ce){return y(ce)||T(ce)||c(ce)||x()}function x(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +`)),H.focus();case"add-null-ch":return Et===""&&H.setCursor(At.line,At.ch+1),H.replaceSelection(Fe),H.focus();case"inster-template-1":return Et===""&&H.setCursor(At.line,At.ch),H.replaceSelection(je),H.focus();case"eraser":return H.setValue(""),H.focus();case"trigger-watch":return jt(!_t),H.focus();case"trigger-full-screen":return xi(!Ei),H.focus();case we:zi(we);return;case Ue:zi(Ue);return;case Ae:zi(Ae);return;case Ve:zi(Ve);return;default:throw new Error}},[H,_t,Ei]),Er=Object(g.useCallback)(function(gt){zi("");switch(ci){case we:var At=gt.title,Et=gt.link;return H.replaceSelection("[".concat(At,"](").concat(Et,")")),H.focus();case Ue:var Dt=gt.language,Bt=gt.content;return H.replaceSelection(["```"+Dt,Bt,"```"].join(` +`)),H.focus();case Ae:var Yt=gt.src,Nt=gt.alt;return Nt?H.replaceSelection("![ ".concat(Nt," ]( ").concat(Yt,' "').concat(Nt,'" )')):H.replaceSelection("![,](".concat(Yt,")")),H.focus();case Ve:for(var ui=gt.row,Di=gt.col,Mt=gt.align,hr=` +`,Wt=0;Wt300&&(ui=300);var Di=St+ui+"px";Zi(Di)}}return gt.addEventListener("mousedown",Dt),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",Bt),function(){gt.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",Bt)}}},[H,Kt]),Object(g.useEffect)(function(){Zi(St)},[St]);var nr=Ee(ft),fn=Ee(zr),qi={width:nr,height:fn},pn=Object(g.useMemo)(function(){if(Hi){var gt=new Date(Hi),At=gt.getHours(),Et=gt.getMinutes(),Dt=gt.getSeconds();return At=At<10?"0"+At:At,Et=Et<10?"0"+Et:Et,Dt=Dt<10?"0"+Dt:Dt,"".concat(At,":").concat(Et,":").concat(Dt)}return 0},[Hi]);function jn(){window.sessionStorage.removeItem(Li),_r(!1),Dr(0)}function kr(){_r(!1),Dr(0),H.setValue(window.sessionStorage.getItem(Li))}function ua(gt,At){var Et=H.getValue();Et=Et.replace(gt,At),it(Et),H==null||H.setValue(Et)}return m.a.createElement(g.Fragment,null,m.a.createElement("div",{className:"markdown-editor-wrapper",ref:ai},m.a.createElement("div",{className:"markdown-editor-container ".concat(Qe," ").concat(_t?"on-preview":""," ").concat(Ut?"mini":""," ").concat(Ei?"full-screen":""),style:qi},m.a.createElement(v,{insertTemp:It,watch:_t,fullScreen:Ei,showNullButton:Pt,onActionCallback:Vr,hidetoolBar:Ui,uuid:ri.current,setOpenPhones:function(){Ht.current=!0}}),m.a.createElement("div",{className:"markdown-editor-body"},m.a.createElement("div",{className:"codemirror-container"},m.a.createElement("textarea",{ref:kt,placeholder:gr})),_t?m.a.createElement("div",{ref:rr,className:"preview-container"},Ki==="stex"&&m.a.createElement(L,{value:Ke}),Ki!=="stex"&&m.a.createElement(S.a,{edit:!0,value:Ke,replaces:ua})):null))),xt?m.a.createElement("a",{ref:Kt,className:"editor-resize"}):null,m.a.createElement(N.a,null,he[ci]?m.a.createElement($.a,{centered:!0,title:he[ci],visible:!0,onCancel:xr,footer:null,className:"markdown-popup-form"},cn):null))}},RxwV:function(st,be,Q){"use strict";var ie=Q("q1tI"),$=Q("uciX"),M=Q("2W6z"),X=Q.n(M),F=Q("4IlW"),U=Q("uK0f"),G=Q.n(U);function W(ce,pe){if(ce===pe)return!0;if(!ce||!pe)return!1;var se=ce.length;if(pe.length!==se)return!1;for(var ae=0;ae0;(Ve||Te.isLeaf===!1)&&(Ae+=" ".concat(We,"-menu-item-expand"),Te.loading||(Ue=ie.createElement("span",{className:"".concat(We,"-menu-item-expand-icon")},Be))),Le==="hover"&&(Ve||Te.isLeaf===!1)&&(we={onMouseEnter:this.delayOnSelect.bind(this,oe),onMouseLeave:this.delayOnSelect.bind(this),onClick:oe}),this.isActiveOption(Te,Ne)&&(Ae+=" ".concat(We,"-menu-item-active"),we.ref=this.saveMenuItem(Ne)),Te.disabled&&(Ae+=" ".concat(We,"-menu-item-disabled"));var Ze=null;Te.loading&&(Ae+=" ".concat(We,"-menu-item-loading"),Ze=Ge||null);var $e="";return"title"in Te?$e=Te.title:typeof Te[this.getFieldName("label")]=="string"&&($e=Te[this.getFieldName("label")]),ie.createElement("li",Object.assign({key:Te[this.getFieldName("value")],className:Ae,title:$e},we,{role:"menuitem",onMouseDown:function(et){return et.preventDefault()}}),Te[this.getFieldName("label")],Ue,Ze)}},{key:"getActiveOptions",value:function(Te){var Ne=this,De=this.props.options,We=Te||this.props.activeValue;return G()(De,function(Le,Be){return Le[Ne.getFieldName("value")]===We[Be]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Te=this,Ne=this.props.options,De=this.getActiveOptions().map(function(We){return We[Te.getFieldName("children")]}).filter(function(We){return!!We});return De.unshift(Ne),De}},{key:"delayOnSelect",value:function(Te){for(var Ne=this,De=arguments.length,We=new Array(De>1?De-1:0),Le=1;Le=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ce,ae))continue;se[ae]=ce[ae]}}return se}function C(ce,pe){if(ce==null)return{};var se={},ae=Object.keys(ce),Oe,Te;for(Te=0;Te=0)continue;se[Oe]=ce[Oe]}return se}function w(ce){return y(ce)||T(ce)||c(ce)||x()}function x(){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 c(ce,pe){if(!ce)return;if(typeof ce=="string")return v(ce,pe);var se=Object.prototype.toString.call(ce).slice(8,-1);if(se==="Object"&&ce.constructor&&(se=ce.constructor.name),se==="Map"||se==="Set")return Array.from(ce);if(se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return v(ce,pe)}function T(ce){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ce))return Array.from(ce)}function y(ce){if(Array.isArray(ce))return v(ce)}function v(ce,pe){(pe==null||pe>ce.length)&&(pe=ce.length);for(var se=0,ae=new Array(pe);se=Ge.length?0:ye):(ye-=1,ye=ye<0?Ge.length-1:ye):ye=0,Le[Be]=Ge[ye][Te.getFieldName("value")]}else if(De.keyCode===F.a.LEFT||De.keyCode===F.a.BACKSPACE)De.preventDefault(),Le.splice(Le.length-1,1);else if(De.keyCode===F.a.RIGHT)De.preventDefault(),Ge[oe]&&Ge[oe][Te.getFieldName("children")]&&Le.push(Ge[oe][Te.getFieldName("children")][0][Te.getFieldName("value")]);else if(De.keyCode===F.a.ESC||De.keyCode===F.a.TAB){Te.setPopupVisible(!1);return}(!Le||Le.length===0)&&Te.setPopupVisible(!1);var we=Te.getActiveOptions(Le),Ae=we[we.length-1];Te.handleMenuSelect(Ae,we.length-1,De),Te.props.onKeyDown&&Te.props.onKeyDown(De)},Te.saveTrigger=function(De){Te.trigger=De};var Ne=[];return"value"in Oe?Ne=Oe.value||[]:"defaultValue"in Oe&&(Ne=Oe.defaultValue||[]),X()(!("filedNames"in Oe),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Te.state={popupVisible:Oe.popupVisible,activeValue:Ne,value:Ne,prevProps:Oe},Te.defaultFieldNames={label:"label",value:"value",children:"children"},Te}return O(ae,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Te){var Ne=this.defaultFieldNames,De=this.props,We=De.fieldNames,Le=De.filedNames;return"filedNames"in this.props?Le[Te]||Ne[Te]:We[Te]||Ne[Te]}},{key:"getFieldNames",value:function(){var Te=this.props,Ne=Te.fieldNames,De=Te.filedNames;return"filedNames"in this.props?De:Ne}},{key:"getCurrentLevelOptions",value:function(){var Te=this,Ne=this.props.options,De=Ne===void 0?[]:Ne,We=this.state.activeValue,Le=We===void 0?[]:We,Be=G()(De,function(Ge,oe){return Ge[Te.getFieldName("value")]===Le[oe]},{childrenKeyName:this.getFieldName("children")});return Be[Be.length-2]?Be[Be.length-2][this.getFieldName("children")]:w(De).filter(function(Ge){return!Ge.disabled})}},{key:"getActiveOptions",value:function(Te){var Ne=this;return G()(this.props.options||[],function(De,We){return De[Ne.getFieldName("value")]===Te[We]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Te=this.props,Ne=Te.prefixCls,De=Te.transitionName,We=Te.popupClassName,Le=Te.options,Be=Le===void 0?[]:Le,Ge=Te.disabled,oe=Te.builtinPlacements,ye=Te.popupPlacement,we=Te.children,Ae=Te.dropdownRender,Ue=R(Te,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Ve=ie.createElement("div",null),Ze="";Be&&Be.length>0?Ve=ie.createElement(A,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Ze=" ".concat(Ne,"-menus-empty");var $e=Ve;return Ae&&($e=Ae(Ve)),ie.createElement($.a,Object.assign({ref:this.saveTrigger},Ue,{popupPlacement:ye,builtinPlacements:oe,popupTransitionName:De,action:Ge?[]:["click"],popupVisible:Ge?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(Ne,"-menus"),popupClassName:We+Ze,popup:$e}),ie.cloneElement(we,{onKeyDown:this.handleKeyDown,tabIndex:Ge?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Te,Ne){var De=Ne.prevProps,We=De===void 0?{}:De,Le={prevProps:Te};return"value"in Te&&!W(We.value,Te.value)&&(Le.value=Te.value||[],"loadData"in Te||(Le.activeValue=Te.value||[])),"popupVisible"in Te&&(Le.popupVisible=Te.popupVisible),Le}}]),ae}(ie.Component);return ce.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:S,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},ce}(),Se=ke,Ce=be.a=Se},SJMd:function(st,be){/** * @license * Copyright (C) 2006 Google Inc. @@ -324,12 +324,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * 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 Q,ie,$,M=!1,X,F;window.PR_SHOULD_USE_CONTINUATION=!0;var U,G;(function(){var W=window,i=["break,continue,do,else,for,if,return,while"],D=[i,"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"],g=[D,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],m=[g,"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"],p=[g,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[g,"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"],u="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=[g,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],o="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",h=[i,"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=[i,"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"],a=[i,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],A=[m,l,p,f,o,h,s,a],_=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,S="str",L="kwd",R="com",C="typ",w="lit",x="pun",c="pln",T="tag",y="dec",v="src",N="atn",B="atv",O="nocode",j="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function P(Le){for(var Be=0,Ge=!1,oe=!1,ye=0,we=Le.length;ye122||(ne<65||_e>90||ut.push([Math.max(65,_e)|32,Math.min(ne,90)|32]),ne<97||_e>122||ut.push([Math.max(97,_e)&~32,Math.min(ne,122)&~32]))}}ut.sort(function(xe,Pe){return xe[0]-Pe[0]||Pe[1]-xe[1]});for(var re=[],he=[],je=0;jefe[0]&&(fe[1]+1>fe[0]&&Fe.push("-"),Fe.push(Ze(fe[1])))}return Fe.push("]"),Fe.join("")}function tt(Je){for(var Me=Je.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=Me.length,nt=[],Fe=0,je=0;Fe=2&&_e==="["?Me[Fe]=$e(Ee):_e!=="\\"&&(Me[Fe]=Ee.replace(/[a-zA-Z]/g,function(he){var fe=he.charCodeAt(0);return"["+String.fromCharCode(fe&~32,fe|32)+"]"}))}return Me.join("")}for(var et=[],ye=0,we=Le.length;ye|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function P(Le){for(var Be=0,Ge=!1,oe=!1,ye=0,we=Le.length;ye122||(re<65||_e>90||ut.push([Math.max(65,_e)|32,Math.min(re,90)|32]),re<97||_e>122||ut.push([Math.max(97,_e)&~32,Math.min(re,122)&~32]))}}ut.sort(function(xe,Pe){return xe[0]-Pe[0]||Pe[1]-xe[1]});for(var ne=[],he=[],je=0;jefe[0]&&(fe[1]+1>fe[0]&&Fe.push("-"),Fe.push(Ze(fe[1])))}return Fe.push("]"),Fe.join("")}function tt(Je){for(var Me=Je.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=Me.length,rt=[],Fe=0,je=0;Fe=2&&_e==="["?Me[Fe]=$e(Ee):_e!=="\\"&&(Me[Fe]=Ee.replace(/[a-zA-Z]/g,function(he){var fe=he.charCodeAt(0);return"["+String.fromCharCode(fe&~32,fe|32)+"]"}))}return Me.join("")}for(var et=[],ye=0,we=Le.length;ye=0;)Ge[et.charAt(Je)]=tt;var Me=tt[1],ut=""+Me;Ve.hasOwnProperty(ut)||(Ue.push(Me),Ve[ut]=null)}Ue.push(/[\0-\uffff]/),oe=P(Ue)})();var ye=Be.length,we=function(Ae){for(var Ue=Ae.sourceCode,Ve=Ae.basePos,Ze=Ae.sourceNode,$e=[Ve,c],tt=0,et=Ue.match(oe)||[],Je={},Me=0,ut=et.length;Me=5&&Fe.substring(0,5)==="lang-",Ee&&!(je&&typeof je[1]=="string")&&(Ee=!1,Fe=v),Ee||(Je[nt]=Fe)}var ne=tt;if(tt+=nt.length,!Ee)$e.push(Ve+ne,Fe);else{var re=je[1],he=nt.indexOf(re),fe=he+re.length;je[2]&&(fe=nt.length-je[2].length,he=fe-re.length);var xe=Fe.substring(5);Y(Ze,Ve+ne,nt.substring(0,he),we,$e),Y(Ze,Ve+ne+he,re,ae(xe,re),$e),Y(Ze,Ve+ne+fe,nt.substring(fe),we,$e)}}Ae.decorations=$e};return we}function ke(Le){var Be=[],Ge=[];Le.tripleQuotedStrings?Be.push([S,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Le.multiLineStrings?Be.push([S,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Be.push([S,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Le.verbatimStrings&&Ge.push([S,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var oe=Le.hashComments;oe&&(Le.cStyleComments?(oe>1?Be.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Be.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ge.push([S,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Be.push([R,/^#[^\r\n]*/,null,"#"])),Le.cStyleComments&&(Ge.push([R,/^\/\/[^\r\n]*/,null]),Ge.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ye=Le.regexLiterals;if(ye){var we=ye>1?"":` +`):et=et.replace(/[ \t\r\n]+/g," "),oe[Ae]=et,we[Ae<<1]=ye,ye+=et.length,we[Ae++<<1|1]=Ve)}}return Ue(Le),{sourceCode:oe.join("").replace(/\n$/,""),spans:we}}function Y(Le,Be,Ge,oe,ye){if(!Ge)return;var we={sourceNode:Le,pre:1,langExtension:null,numberLines:null,sourceCode:Ge,spans:null,basePos:Be,decorations:null};oe(we),ye.push.apply(ye,we.decorations)}var ee=/\S/;function le(Le){for(var Be=void 0,Ge=Le.firstChild;Ge;Ge=Ge.nextSibling){var oe=Ge.nodeType;Be=oe===1?Be?Le:Ge:oe===3&&ee.test(Ge.nodeValue)?Le:Be}return Be===Le?void 0:Be}function ue(Le,Be){var Ge={},oe;(function(){for(var Ae=Le.concat(Be),Ue=[],Ve={},Ze=0,$e=Ae.length;Ze<$e;++Ze){var tt=Ae[Ze],et=tt[3];if(et)for(var Je=et.length;--Je>=0;)Ge[et.charAt(Je)]=tt;var Me=tt[1],ut=""+Me;Ve.hasOwnProperty(ut)||(Ue.push(Me),Ve[ut]=null)}Ue.push(/[\0-\uffff]/),oe=P(Ue)})();var ye=Be.length,we=function(Ae){for(var Ue=Ae.sourceCode,Ve=Ae.basePos,Ze=Ae.sourceNode,$e=[Ve,c],tt=0,et=Ue.match(oe)||[],Je={},Me=0,ut=et.length;Me=5&&Fe.substring(0,5)==="lang-",Ee&&!(je&&typeof je[1]=="string")&&(Ee=!1,Fe=v),Ee||(Je[rt]=Fe)}var re=tt;if(tt+=rt.length,!Ee)$e.push(Ve+re,Fe);else{var ne=je[1],he=rt.indexOf(ne),fe=he+ne.length;je[2]&&(fe=rt.length-je[2].length,he=fe-ne.length);var xe=Fe.substring(5);Y(Ze,Ve+re,rt.substring(0,he),we,$e),Y(Ze,Ve+re+he,ne,ae(xe,ne),$e),Y(Ze,Ve+re+fe,rt.substring(fe),we,$e)}}Ae.decorations=$e};return we}function ke(Le){var Be=[],Ge=[];Le.tripleQuotedStrings?Be.push([S,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Le.multiLineStrings?Be.push([S,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Be.push([S,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Le.verbatimStrings&&Ge.push([S,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var oe=Le.hashComments;oe&&(Le.cStyleComments?(oe>1?Be.push([R,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Be.push([R,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ge.push([S,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Be.push([R,/^#[^\r\n]*/,null,"#"])),Le.cStyleComments&&(Ge.push([R,/^\/\/[^\r\n]*/,null]),Ge.push([R,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ye=Le.regexLiterals;if(ye){var we=ye>1?"":` \r`,Ae=we?".":"[\\S\\s]",Ue="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+Ae+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+Ae+")*(?:\\x5D|$))+/";Ge.push(["lang-regex",RegExp("^"+j+"("+Ue+")")])}var Ve=Le.types;Ve&&Ge.push([C,Ve]);var Ze=(""+Le.keywords).replace(/^ | $/g,"");Ze.length&&Ge.push([L,new RegExp("^(?:"+Ze.replace(/[\s,]+/g,"|")+")\\b"),null]),Be.push([c,/^\s+/,null,` \r - \xA0`]);var $e="^.[^\\s\\w.$@'\"`/\\\\]*";return Le.regexLiterals&&($e+="(?!s*/)"),Ge.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[x,new RegExp($e),null]),ue(Be,Ge)}var Se=ke({keywords:A,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ce(Le,Be,Ge){for(var oe=/(?:^|\s)nocode(?:\s|$)/,ye=/\r\n?|\n/,we=Le.ownerDocument,Ae=we.createElement("li");Le.firstChild;)Ae.appendChild(Le.firstChild);var Ue=[Ae];function Ve(Me){var ut=Me.nodeType;if(ut==1&&!oe.test(Me.className))if(Me.nodeName==="br")Ze(Me),Me.parentNode&&Me.parentNode.removeChild(Me);else for(var nt=Me.firstChild;nt;nt=nt.nextSibling)Ve(nt);else if((ut==3||ut==4)&&Ge){var Fe=Me.nodeValue,je=Fe.match(ye);if(je){var Ee=Fe.substring(0,je.index);Me.nodeValue=Ee;var ge=Fe.substring(je.index+je[0].length);if(ge){var _e=Me.parentNode;_e.insertBefore(we.createTextNode(ge),Me.nextSibling)}Ze(Me),Ee||Me.parentNode.removeChild(Me)}}}function Ze(Me){for(;!Me.nextSibling;)if(Me=Me.parentNode,!Me)return;function ut(je,Ee){var ge=Ee?je.cloneNode(!1):je,_e=je.parentNode;if(_e){var ne=ut(_e,1),re=je.nextSibling;ne.appendChild(ge);for(var he=re;he;he=re)re=he.nextSibling,ne.appendChild(he)}return ge}for(var nt=ut(Me.nextSibling,0),Fe;(Fe=nt.parentNode)&&Fe.nodeType===1;)nt=Fe;Ue.push(nt)}for(var $e=0;$e=_e&&(Ve+=2),we>=ne&&(tt+=2)}}finally{Fe&&(Fe.style.display=je)}}var pe={};function se(Le,Be){for(var Ge=Be.length;--Ge>=0;){var oe=Be[Ge];pe.hasOwnProperty(oe)?W.console&&console.warn("cannot override language handler %s",oe):pe[oe]=Le}}function ae(Le,Be){return Le&&pe.hasOwnProperty(Le)||(Le=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[x,/^(?:<[%?]|[%?]>)/],["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"]),se(ue([[c,/^[\s]+/,null,` \r -`],[B,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[T,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[N,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[x,/^[=<>\/]+/],["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"]),se(ue([],[[B,/^[\s\S]+/]]),["uq.val"]),se(ke({keywords:m,hashComments:!0,cStyleComments:!0,types:_}),["c","cc","cpp","cxx","cyc","m"]),se(ke({keywords:"null,true,false"}),["json"]),se(ke({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:_}),["cs"]),se(ke({keywords:p,cStyleComments:!0}),["java"]),se(ke({keywords:a,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),se(ke({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),se(ke({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),se(ke({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),se(ke({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),se(ke({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),se(ue([],[[S,/^[\s\S]+/]]),["regex"]);function Oe(Le){var Be=Le.langExtension;try{var Ge=b(Le.sourceNode,Le.pre),oe=Ge.sourceCode;Le.sourceCode=oe,Le.spans=Ge.spans,Le.basePos=0,ae(Be,oe)(Le),ce(Le)}catch(ye){W.console&&console.log(ye&&ye.stack||ye)}}function Te(Le,Be,Ge){var oe=Ge||!1,ye=Be||null,we=document.createElement("div");we.innerHTML="
      "+Le+"
      ",we=we.firstChild,oe&&Ce(we,oe,!0);var Ae={langExtension:ye,numberLines:oe,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Oe(Ae),we.innerHTML}function Ne(Le,Be){var Ge=Be||document.body,oe=Ge.ownerDocument||document;function ye(ge){return Ge.getElementsByTagName(ge)}for(var we=[ye("pre"),ye("code"),ye("xmp")],Ae=[],Ue=0;Ue=0),F.set("isFirefox",X.indexOf("Firefox")>=0),F.set("isChrome",X.indexOf("Chrome")>=0),F.set("isSafari",X.indexOf("Safari")>=0);const U=Object.prototype.hasOwnProperty;class G{static has(O){return m.create(O)}static equals(O,j){return p.create(O,j)}static regex(O,j){return S.create(O,j)}static not(O){return o.create(O)}static and(...O){return C.create(O,null)}static or(...O){return w.create(O,null,!0)}static deserialize(O,j=!1){return O?this._deserializeOrExpression(O,j):void 0}static _deserializeOrExpression(O,j){let P=O.split("||");return w.create(P.map(b=>this._deserializeAndExpression(b,j)),null,!0)}static _deserializeAndExpression(O,j){let P=O.split("&&");return C.create(P.map(b=>this._deserializeOne(b,j)),null)}static _deserializeOne(O,j){if(O=O.trim(),O.indexOf("!=")>=0){let P=O.split("!=");return f.create(P[0].trim(),this._deserializeValue(P[1],j))}if(O.indexOf("==")>=0){let P=O.split("==");return p.create(P[0].trim(),this._deserializeValue(P[1],j))}if(O.indexOf("=~")>=0){let P=O.split("=~");return S.create(P[0].trim(),this._deserializeRegexValue(P[1],j))}if(O.indexOf(" in ")>=0){let P=O.split(" in ");return l.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(O)){const P=O.split(">=");return a.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(O)){const P=O.split(">");return s.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(O)){const P=O.split("<=");return _.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(O)){const P=O.split("<");return A.create(P[0].trim(),P[1].trim())}return/^\!\s*/.test(O)?o.create(O.substr(1).trim()):m.create(O)}static _deserializeValue(O,j){if(O=O.trim(),O==="true")return!0;if(O==="false")return!1;let P=/^'([^']*)'$/.exec(O);return P?P[1].trim():O}static _deserializeRegexValue(O,j){if(Object($.C)(O)){if(j)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let P=O.indexOf("/"),b=O.lastIndexOf("/");if(P===b||P<0){if(j)throw new Error(`bad regexp-value '${O}', missing /-enclosure`);return console.warn(`bad regexp-value '${O}', missing /-enclosure`),null}let Y=O.slice(P+1,b),ee=O[b+1]==="i"?"i":"";try{return new RegExp(Y,ee)}catch(le){if(j)throw new Error(`bad regexp-value '${O}', parse error: ${le}`);return console.warn(`bad regexp-value '${O}', parse error: ${le}`),null}}}function W(O,j){const P=O?O.substituteConstants():void 0,b=j?j.substituteConstants():void 0;return!P&&!b?!0:!P||!b?!1:P.equals(b)}function i(O,j){return O.cmp(j)}class D{constructor(){this.type=0}cmp(O){return this.type-O.type}equals(O){return O.type===this.type}substituteConstants(){return this}evaluate(O){return!1}serialize(){return"false"}keys(){return[]}negate(){return g.INSTANCE}}D.INSTANCE=new D;class g{constructor(){this.type=1}cmp(O){return this.type-O.type}equals(O){return O.type===this.type}substituteConstants(){return this}evaluate(O){return!0}serialize(){return"true"}keys(){return[]}negate(){return D.INSTANCE}}g.INSTANCE=new g;class m{constructor(O,j){this.key=O,this.negated=j,this.type=2}static create(O,j=null){const P=F.get(O);return typeof P=="boolean"?P?g.INSTANCE:D.INSTANCE:new m(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:y(this.key,O.key)}equals(O){return O.type===this.type?this.key===O.key:!1}substituteConstants(){const O=F.get(this.key);return typeof O=="boolean"?O?g.INSTANCE:D.INSTANCE:this}evaluate(O){return!!O.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this)),this.negated}}class p{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=4}static create(O,j,P=null){if(typeof j=="boolean")return j?m.create(O,P):o.create(O,P);const b=F.get(O);if(typeof b=="boolean"){const Y=b?"true":"false";return j===Y?g.INSTANCE:D.INSTANCE}return new p(O,j,P)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){const O=F.get(this.key);if(typeof O=="boolean"){const j=O?"true":"false";return this.value===j?g.INSTANCE:D.INSTANCE}return this}evaluate(O){return O.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 l{constructor(O,j){this.key=O,this.valueKey=j,this.type=10,this.negated=null}static create(O,j){return new l(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.valueKey,O.key,O.valueKey)}equals(O){return O.type===this.type?this.key===O.key&&this.valueKey===O.valueKey:!1}substituteConstants(){return this}evaluate(O){const j=O.getValue(this.valueKey),P=O.getValue(this.key);return Array.isArray(j)?j.indexOf(P)>=0:typeof P=="string"&&typeof j=="object"&&j!==null?U.call(j,P):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=u.create(this)),this.negated}}class u{constructor(O){this._actual=O,this.type=11}static create(O){return new u(O)}cmp(O){return O.type!==this.type?this.type-O.type:this._actual.cmp(O._actual)}equals(O){return O.type===this.type?this._actual.equals(O._actual):!1}substituteConstants(){return this}evaluate(O){return!this._actual.evaluate(O)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class f{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=5}static create(O,j,P=null){if(typeof j=="boolean")return j?o.create(O,P):m.create(O,P);const b=F.get(O);if(typeof b=="boolean"){const Y=b?"true":"false";return j===Y?D.INSTANCE:g.INSTANCE}return new f(O,j,P)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){const O=F.get(this.key);if(typeof O=="boolean"){const j=O?"true":"false";return this.value===j?D.INSTANCE:g.INSTANCE}return this}evaluate(O){return O.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this.value,this)),this.negated}}class o{constructor(O,j){this.key=O,this.negated=j,this.type=3}static create(O,j=null){const P=F.get(O);return typeof P=="boolean"?P?D.INSTANCE:g.INSTANCE:new o(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:y(this.key,O.key)}equals(O){return O.type===this.type?this.key===O.key:!1}substituteConstants(){const O=F.get(this.key);return typeof O=="boolean"?O?D.INSTANCE:g.INSTANCE:this}evaluate(O){return!O.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function h(O,j){if(typeof O=="string"){const P=parseFloat(O);isNaN(P)||(O=P)}return typeof O=="string"||typeof O=="number"?j(O):D.INSTANCE}class s{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=12}static create(O,j,P=null){return h(j,b=>new s(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class a{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=13}static create(O,j,P=null){return h(j,b=>new a(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.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 A{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=14}static create(O,j,P=null){return h(j,b=>new A(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.getValue(this.key))new _(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.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 S{constructor(O,j){this.key=O,this.regexp=j,this.type=7,this.negated=null}static create(O,j){return new S(O,j)}cmp(O){if(O.type!==this.type)return this.type-O.type;if(this.keyO.key)return 1;const j=this.regexp?this.regexp.source:"",P=O.regexp?O.regexp.source:"";return jP?1:0}equals(O){if(O.type===this.type){const j=this.regexp?this.regexp.source:"",P=O.regexp?O.regexp.source:"";return this.key===O.key&&j===P}return!1}substituteConstants(){return this}evaluate(O){let j=O.getValue(this.key);return this.regexp?this.regexp.test(j):!1}serialize(){const O=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${O}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this)),this.negated}}class L{constructor(O){this._actual=O,this.type=8}static create(O){return new L(O)}cmp(O){return O.type!==this.type?this.type-O.type:this._actual.cmp(O._actual)}equals(O){return O.type===this.type?this._actual.equals(O._actual):!1}substituteConstants(){return this}evaluate(O){return!this._actual.evaluate(O)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function R(O){let j=null;for(let P=0,b=O.length;PO.expr.length)return 1;for(let j=0,P=this.expr.length;j1;){const Y=P[P.length-1];if(Y.type!==9)break;P.pop();const ee=P.pop(),le=P.length===0,ue=w.create(Y.expr.map(ke=>C.create([ke,ee],null)),null,le);ue&&(P.push(ue),P.sort(i))}return P.length===1?P[0]:new C(P,j)}serialize(){return this.expr.map(O=>O.serialize()).join(" && ")}keys(){const O=[];for(let j of this.expr)O.push(...j.keys());return O}negate(){if(!this.negated){const O=[];for(let j of this.expr)O.push(j.negate());this.negated=w.create(O,this,!0)}return this.negated}}class w{constructor(O,j){this.expr=O,this.negated=j,this.type=9}static create(O,j,P){return w._normalizeArr(O,j,P)}cmp(O){if(O.type!==this.type)return this.type-O.type;if(this.expr.lengthO.expr.length)return 1;for(let j=0,P=this.expr.length;jO.serialize()).join(" || ")}keys(){const O=[];for(let j of this.expr)O.push(...j.keys());return O}negate(){if(!this.negated){let O=[];for(let j of this.expr)O.push(j.negate());for(;O.length>1;){const j=O.shift(),P=O.shift(),b=[];for(const ee of B(j))for(const le of B(P))b.push(C.create([ee,le],null));const Y=O.length===0;O.unshift(w.create(b,null,Y))}this.negated=O[0]}return this.negated}}class x extends m{constructor(O,j,P){super(O,null);this._defaultValue=j,typeof P=="object"?x._info.push(Object.assign(Object.assign({},P),{key:O})):P!==!0&&x._info.push({key:O,description:P,type:j!=null?typeof j:void 0})}static all(){return x._info.values()}bindTo(O){return O.createKey(this.key,this._defaultValue)}getValue(O){return O.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(O){return p.create(this.key,O)}}x._info=[];const c=Object(M.c)("contextKeyService"),T="setContext";function y(O,j){return Oj?1:0}function v(O,j,P,b){return OP?1:jb?1:0}function N(O,j){if(j.type===6&&O.type!==9&&O.type!==6){for(const Y of j.expr)if(O.equals(Y))return!0}const P=O.negate(),b=B(P).concat(B(j));b.sort(i);for(let Y=0;Y=0;l--)if(this.__items[l].match(p))return!0;return!1},D.prototype.set_indent=function(p,l){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=l||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 p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__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(p){this.__items.push(p);var l=p.lastIndexOf(` + \xA0`]);var $e="^.[^\\s\\w.$@'\"`/\\\\]*";return Le.regexLiterals&&($e+="(?!s*/)"),Ge.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[c,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[c,/^\\[\s\S]?/,null],[x,new RegExp($e),null]),ue(Be,Ge)}var Se=ke({keywords:A,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ce(Le,Be,Ge){for(var oe=/(?:^|\s)nocode(?:\s|$)/,ye=/\r\n?|\n/,we=Le.ownerDocument,Ae=we.createElement("li");Le.firstChild;)Ae.appendChild(Le.firstChild);var Ue=[Ae];function Ve(Me){var ut=Me.nodeType;if(ut==1&&!oe.test(Me.className))if(Me.nodeName==="br")Ze(Me),Me.parentNode&&Me.parentNode.removeChild(Me);else for(var rt=Me.firstChild;rt;rt=rt.nextSibling)Ve(rt);else if((ut==3||ut==4)&&Ge){var Fe=Me.nodeValue,je=Fe.match(ye);if(je){var Ee=Fe.substring(0,je.index);Me.nodeValue=Ee;var ge=Fe.substring(je.index+je[0].length);if(ge){var _e=Me.parentNode;_e.insertBefore(we.createTextNode(ge),Me.nextSibling)}Ze(Me),Ee||Me.parentNode.removeChild(Me)}}}function Ze(Me){for(;!Me.nextSibling;)if(Me=Me.parentNode,!Me)return;function ut(je,Ee){var ge=Ee?je.cloneNode(!1):je,_e=je.parentNode;if(_e){var re=ut(_e,1),ne=je.nextSibling;re.appendChild(ge);for(var he=ne;he;he=ne)ne=he.nextSibling,re.appendChild(he)}return ge}for(var rt=ut(Me.nextSibling,0),Fe;(Fe=rt.parentNode)&&Fe.nodeType===1;)rt=Fe;Ue.push(rt)}for(var $e=0;$e=_e&&(Ve+=2),we>=re&&(tt+=2)}}finally{Fe&&(Fe.style.display=je)}}var pe={};function se(Le,Be){for(var Ge=Be.length;--Ge>=0;){var oe=Be[Ge];pe.hasOwnProperty(oe)?W.console&&console.warn("cannot override language handler %s",oe):pe[oe]=Le}}function ae(Le,Be){return Le&&pe.hasOwnProperty(Le)||(Le=/^\s*]*(?:>|$)/],[R,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[x,/^(?:<[%?]|[%?]>)/],["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"]),se(ue([[c,/^[\s]+/,null,` \r +`],[B,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[T,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[N,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[x,/^[=<>\/]+/],["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"]),se(ue([],[[B,/^[\s\S]+/]]),["uq.val"]),se(ke({keywords:m,hashComments:!0,cStyleComments:!0,types:_}),["c","cc","cpp","cxx","cyc","m"]),se(ke({keywords:"null,true,false"}),["json"]),se(ke({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:_}),["cs"]),se(ke({keywords:p,cStyleComments:!0}),["java"]),se(ke({keywords:a,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),se(ke({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),se(ke({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),se(ke({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),se(ke({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),se(ke({keywords:u,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),se(ue([],[[S,/^[\s\S]+/]]),["regex"]);function Oe(Le){var Be=Le.langExtension;try{var Ge=b(Le.sourceNode,Le.pre),oe=Ge.sourceCode;Le.sourceCode=oe,Le.spans=Ge.spans,Le.basePos=0,ae(Be,oe)(Le),ce(Le)}catch(ye){W.console&&console.log(ye&&ye.stack||ye)}}function Te(Le,Be,Ge){var oe=Ge||!1,ye=Be||null,we=document.createElement("div");we.innerHTML="
      "+Le+"
      ",we=we.firstChild,oe&&Ce(we,oe,!0);var Ae={langExtension:ye,numberLines:oe,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Oe(Ae),we.innerHTML}function Ne(Le,Be){var Ge=Be||document.body,oe=Ge.ownerDocument||document;function ye(ge){return Ge.getElementsByTagName(ge)}for(var we=[ye("pre"),ye("code"),ye("xmp")],Ae=[],Ue=0;Ue=0),F.set("isFirefox",X.indexOf("Firefox")>=0),F.set("isChrome",X.indexOf("Chrome")>=0),F.set("isSafari",X.indexOf("Safari")>=0);const U=Object.prototype.hasOwnProperty;class G{static has(O){return m.create(O)}static equals(O,j){return p.create(O,j)}static regex(O,j){return S.create(O,j)}static not(O){return o.create(O)}static and(...O){return C.create(O,null)}static or(...O){return w.create(O,null,!0)}static deserialize(O,j=!1){return O?this._deserializeOrExpression(O,j):void 0}static _deserializeOrExpression(O,j){let P=O.split("||");return w.create(P.map(b=>this._deserializeAndExpression(b,j)),null,!0)}static _deserializeAndExpression(O,j){let P=O.split("&&");return C.create(P.map(b=>this._deserializeOne(b,j)),null)}static _deserializeOne(O,j){if(O=O.trim(),O.indexOf("!=")>=0){let P=O.split("!=");return f.create(P[0].trim(),this._deserializeValue(P[1],j))}if(O.indexOf("==")>=0){let P=O.split("==");return p.create(P[0].trim(),this._deserializeValue(P[1],j))}if(O.indexOf("=~")>=0){let P=O.split("=~");return S.create(P[0].trim(),this._deserializeRegexValue(P[1],j))}if(O.indexOf(" in ")>=0){let P=O.split(" in ");return l.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(O)){const P=O.split(">=");return a.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(O)){const P=O.split(">");return s.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(O)){const P=O.split("<=");return _.create(P[0].trim(),P[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(O)){const P=O.split("<");return A.create(P[0].trim(),P[1].trim())}return/^\!\s*/.test(O)?o.create(O.substr(1).trim()):m.create(O)}static _deserializeValue(O,j){if(O=O.trim(),O==="true")return!0;if(O==="false")return!1;let P=/^'([^']*)'$/.exec(O);return P?P[1].trim():O}static _deserializeRegexValue(O,j){if(Object($.C)(O)){if(j)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let P=O.indexOf("/"),b=O.lastIndexOf("/");if(P===b||P<0){if(j)throw new Error(`bad regexp-value '${O}', missing /-enclosure`);return console.warn(`bad regexp-value '${O}', missing /-enclosure`),null}let Y=O.slice(P+1,b),ee=O[b+1]==="i"?"i":"";try{return new RegExp(Y,ee)}catch(le){if(j)throw new Error(`bad regexp-value '${O}', parse error: ${le}`);return console.warn(`bad regexp-value '${O}', parse error: ${le}`),null}}}function W(O,j){const P=O?O.substituteConstants():void 0,b=j?j.substituteConstants():void 0;return!P&&!b?!0:!P||!b?!1:P.equals(b)}function i(O,j){return O.cmp(j)}class D{constructor(){this.type=0}cmp(O){return this.type-O.type}equals(O){return O.type===this.type}substituteConstants(){return this}evaluate(O){return!1}serialize(){return"false"}keys(){return[]}negate(){return g.INSTANCE}}D.INSTANCE=new D;class g{constructor(){this.type=1}cmp(O){return this.type-O.type}equals(O){return O.type===this.type}substituteConstants(){return this}evaluate(O){return!0}serialize(){return"true"}keys(){return[]}negate(){return D.INSTANCE}}g.INSTANCE=new g;class m{constructor(O,j){this.key=O,this.negated=j,this.type=2}static create(O,j=null){const P=F.get(O);return typeof P=="boolean"?P?g.INSTANCE:D.INSTANCE:new m(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:y(this.key,O.key)}equals(O){return O.type===this.type?this.key===O.key:!1}substituteConstants(){const O=F.get(this.key);return typeof O=="boolean"?O?g.INSTANCE:D.INSTANCE:this}evaluate(O){return!!O.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this)),this.negated}}class p{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=4}static create(O,j,P=null){if(typeof j=="boolean")return j?m.create(O,P):o.create(O,P);const b=F.get(O);if(typeof b=="boolean"){const Y=b?"true":"false";return j===Y?g.INSTANCE:D.INSTANCE}return new p(O,j,P)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){const O=F.get(this.key);if(typeof O=="boolean"){const j=O?"true":"false";return this.value===j?g.INSTANCE:D.INSTANCE}return this}evaluate(O){return O.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 l{constructor(O,j){this.key=O,this.valueKey=j,this.type=10,this.negated=null}static create(O,j){return new l(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.valueKey,O.key,O.valueKey)}equals(O){return O.type===this.type?this.key===O.key&&this.valueKey===O.valueKey:!1}substituteConstants(){return this}evaluate(O){const j=O.getValue(this.valueKey),P=O.getValue(this.key);return Array.isArray(j)?j.indexOf(P)>=0:typeof P=="string"&&typeof j=="object"&&j!==null?U.call(j,P):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=u.create(this)),this.negated}}class u{constructor(O){this._actual=O,this.type=11}static create(O){return new u(O)}cmp(O){return O.type!==this.type?this.type-O.type:this._actual.cmp(O._actual)}equals(O){return O.type===this.type?this._actual.equals(O._actual):!1}substituteConstants(){return this}evaluate(O){return!this._actual.evaluate(O)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class f{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=5}static create(O,j,P=null){if(typeof j=="boolean")return j?o.create(O,P):m.create(O,P);const b=F.get(O);if(typeof b=="boolean"){const Y=b?"true":"false";return j===Y?D.INSTANCE:g.INSTANCE}return new f(O,j,P)}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){const O=F.get(this.key);if(typeof O=="boolean"){const j=O?"true":"false";return this.value===j?D.INSTANCE:g.INSTANCE}return this}evaluate(O){return O.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this.value,this)),this.negated}}class o{constructor(O,j){this.key=O,this.negated=j,this.type=3}static create(O,j=null){const P=F.get(O);return typeof P=="boolean"?P?D.INSTANCE:g.INSTANCE:new o(O,j)}cmp(O){return O.type!==this.type?this.type-O.type:y(this.key,O.key)}equals(O){return O.type===this.type?this.key===O.key:!1}substituteConstants(){const O=F.get(this.key);return typeof O=="boolean"?O?D.INSTANCE:g.INSTANCE:this}evaluate(O){return!O.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function h(O,j){if(typeof O=="string"){const P=parseFloat(O);isNaN(P)||(O=P)}return typeof O=="string"||typeof O=="number"?j(O):D.INSTANCE}class s{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=12}static create(O,j,P=null){return h(j,b=>new s(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class a{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=13}static create(O,j,P=null){return h(j,b=>new a(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.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 A{constructor(O,j,P){this.key=O,this.value=j,this.negated=P,this.type=14}static create(O,j,P=null){return h(j,b=>new A(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.getValue(this.key))new _(O,b,P))}cmp(O){return O.type!==this.type?this.type-O.type:v(this.key,this.value,O.key,O.value)}equals(O){return O.type===this.type?this.key===O.key&&this.value===O.value:!1}substituteConstants(){return this}evaluate(O){return typeof this.value=="string"?!1:parseFloat(O.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 S{constructor(O,j){this.key=O,this.regexp=j,this.type=7,this.negated=null}static create(O,j){return new S(O,j)}cmp(O){if(O.type!==this.type)return this.type-O.type;if(this.keyO.key)return 1;const j=this.regexp?this.regexp.source:"",P=O.regexp?O.regexp.source:"";return jP?1:0}equals(O){if(O.type===this.type){const j=this.regexp?this.regexp.source:"",P=O.regexp?O.regexp.source:"";return this.key===O.key&&j===P}return!1}substituteConstants(){return this}evaluate(O){let j=O.getValue(this.key);return this.regexp?this.regexp.test(j):!1}serialize(){const O=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${O}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this)),this.negated}}class L{constructor(O){this._actual=O,this.type=8}static create(O){return new L(O)}cmp(O){return O.type!==this.type?this.type-O.type:this._actual.cmp(O._actual)}equals(O){return O.type===this.type?this._actual.equals(O._actual):!1}substituteConstants(){return this}evaluate(O){return!this._actual.evaluate(O)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function R(O){let j=null;for(let P=0,b=O.length;PO.expr.length)return 1;for(let j=0,P=this.expr.length;j1;){const Y=P[P.length-1];if(Y.type!==9)break;P.pop();const ee=P.pop(),le=P.length===0,ue=w.create(Y.expr.map(ke=>C.create([ke,ee],null)),null,le);ue&&(P.push(ue),P.sort(i))}return P.length===1?P[0]:new C(P,j)}serialize(){return this.expr.map(O=>O.serialize()).join(" && ")}keys(){const O=[];for(let j of this.expr)O.push(...j.keys());return O}negate(){if(!this.negated){const O=[];for(let j of this.expr)O.push(j.negate());this.negated=w.create(O,this,!0)}return this.negated}}class w{constructor(O,j){this.expr=O,this.negated=j,this.type=9}static create(O,j,P){return w._normalizeArr(O,j,P)}cmp(O){if(O.type!==this.type)return this.type-O.type;if(this.expr.lengthO.expr.length)return 1;for(let j=0,P=this.expr.length;jO.serialize()).join(" || ")}keys(){const O=[];for(let j of this.expr)O.push(...j.keys());return O}negate(){if(!this.negated){let O=[];for(let j of this.expr)O.push(j.negate());for(;O.length>1;){const j=O.shift(),P=O.shift(),b=[];for(const ee of B(j))for(const le of B(P))b.push(C.create([ee,le],null));const Y=O.length===0;O.unshift(w.create(b,null,Y))}this.negated=O[0]}return this.negated}}class x extends m{constructor(O,j,P){super(O,null);this._defaultValue=j,typeof P=="object"?x._info.push(Object.assign(Object.assign({},P),{key:O})):P!==!0&&x._info.push({key:O,description:P,type:j!=null?typeof j:void 0})}static all(){return x._info.values()}bindTo(O){return O.createKey(this.key,this._defaultValue)}getValue(O){return O.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(O){return p.create(this.key,O)}}x._info=[];const c=Object(M.c)("contextKeyService"),T="setContext";function y(O,j){return Oj?1:0}function v(O,j,P,b){return OP?1:jb?1:0}function N(O,j){if(j.type===6&&O.type!==9&&O.type!==6){for(const Y of j.expr)if(O.equals(Y))return!0}const P=O.negate(),b=B(P).concat(B(j));b.sort(i);for(let Y=0;Y=0;l--)if(this.__items[l].match(p))return!0;return!1},D.prototype.set_indent=function(p,l){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=l||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 p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__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(p){this.__items.push(p);var l=p.lastIndexOf(` `);l!==-1?this.__character_count=p.length-l:this.__character_count+=p.length},D.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},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 p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function g(p,l){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),l=l||"",p.indent_level>0&&(l=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}g.prototype.get_indent_size=function(p,l){var u=this.__base_string_length;return l=l||0,p<0&&(u=0),u+=p*this.__indent_size,u+=l,u},g.prototype.get_indent_string=function(p,l){var u=this.__base_string;return l=l||0,p<0&&(p=0,u=""),l+=p*this.__indent_size,this.__ensure_cache(l),u+=this.__cache[l],u},g.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var p=this.__cache.length,l=0,u="";this.__indent_size&&p>=this.__indent_size&&(l=Math.floor(p/this.__indent_size),p-=l*this.__indent_size,u=new Array(l+1).join(this.__indent_string)),p&&(u+=new Array(p+1).join(" ")),this.__cache.push(u)};function m(p,l){this.__indent_cache=new g(p,l),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.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()}m.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},m.prototype.get_line_number=function(){return this.__lines.length},m.prototype.get_indent_string=function(p,l){return this.__indent_cache.get_indent_string(p,l)},m.prototype.get_indent_size=function(p,l){return this.__indent_cache.get_indent_size(p,l)},m.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},m.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},m.prototype.get_code=function(p){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 u=this.__lines.join(` `);return p!==` @@ -343,30 +343,30 @@ You passed in: '`+this.raw_options[p]+"'");return f},D.prototype._is_valid_selec `&&((C===0||C0&&this._indentLevel--},S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var L=this._source_text,R=this._options.eol;R==="auto"&&(R=` `,L&&o.test(L||"")&&(R=L.match(o)[0])),L=L.replace(h,` `);var C=L.match(/^[\t ]*/)[0];this._output=new p(this._options,C),this._input=new l(L),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var w=0,x=!1,c=!1,T=!1,y=!1,v=!1,N=!1,B=this._ch,O=!1,j,P,b;j=this._input.read(a),P=j!=="",b=B,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),B=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var Y=this._input.read(A),ee=f.get_directives(Y);ee&&ee.ignore==="start"&&(Y+=f.readIgnored(this._input)),this.print_string(Y),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(_)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(P),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var le=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);le.match(/[ :]$/)&&(le=this.eatString(": ").replace(/\s$/,""),this.print_string(le),this._output.space_before_token=!0),le=le.replace(/\s$/,""),le==="extend"?y=!0:le==="import"&&(v=!0),le in this.NESTED_AT_RULE?(this._nestedLevel+=1,le in this.CONDITIONAL_GROUP_RULE&&(T=!0)):!x&&w===0&&le.indexOf(":")!==-1&&(c=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(P),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")c&&(c=!1,this.outdent()),T?(T=!1,x=this._indentLevel>=this._nestedLevel):x=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&x&&(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)):(b==="("?this._output.space_before_token=!1:b!==","&&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(),b==="{"&&this._output.trim(!0),v=!1,y=!1,c&&(this.outdent(),c=!1),this.print_string(this._ch),x=!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 ue=0;ue"||this._ch==="+"||this._ch==="~")&&!c&&w===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(P),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=b==='"'||b==="'";this.preserveSingleSpace(Ce||P),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` -`&&O&&this._output.add_new_line()}var ce=this._output.get_code(R);return ce},i.exports.Beautifier=S},function(i,D,g){var m=g(6).Options;function p(l){m.call(this,l,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var u=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||u;var f=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o` ${g} `).trim():""}class G{constructor(i,D,g){this.id=i,this.definition=D,this.description=g,M.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var W;(function(i){i.iconNameSegment="[A-Za-z0-9]+",i.iconNameExpression="[A-Za-z0-9\\-]+",i.iconModifierExpression="~[A-Za-z]+";const D=new RegExp(`^(${i.iconNameExpression})(${i.iconModifierExpression})?$`);function g(l){if(l instanceof G)return["codicon","codicon-"+l.id];const u=D.exec(l.id);if(!u)return g(G.error);let[,f,o]=u;const h=["codicon","codicon-"+f];return o&&h.push("codicon-modifier-"+o.substr(1)),h}i.asClassNameArray=g;function m(l){return g(l).join(" ")}i.asClassName=m;function p(l){return"."+g(l).join(".")}i.asCSSSelector=p})(W||(W={})),function(i){i.add=new i("add",{fontCharacter:"\\ea60"}),i.plus=new i("plus",i.add.definition),i.gistNew=new i("gist-new",i.add.definition),i.repoCreate=new i("repo-create",i.add.definition),i.lightbulb=new i("lightbulb",{fontCharacter:"\\ea61"}),i.lightBulb=new i("light-bulb",{fontCharacter:"\\ea61"}),i.repo=new i("repo",{fontCharacter:"\\ea62"}),i.repoDelete=new i("repo-delete",{fontCharacter:"\\ea62"}),i.gistFork=new i("gist-fork",{fontCharacter:"\\ea63"}),i.repoForked=new i("repo-forked",{fontCharacter:"\\ea63"}),i.gitPullRequest=new i("git-pull-request",{fontCharacter:"\\ea64"}),i.gitPullRequestAbandoned=new i("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),i.recordKeys=new i("record-keys",{fontCharacter:"\\ea65"}),i.keyboard=new i("keyboard",{fontCharacter:"\\ea65"}),i.tag=new i("tag",{fontCharacter:"\\ea66"}),i.tagAdd=new i("tag-add",{fontCharacter:"\\ea66"}),i.tagRemove=new i("tag-remove",{fontCharacter:"\\ea66"}),i.person=new i("person",{fontCharacter:"\\ea67"}),i.personFollow=new i("person-follow",{fontCharacter:"\\ea67"}),i.personOutline=new i("person-outline",{fontCharacter:"\\ea67"}),i.personFilled=new i("person-filled",{fontCharacter:"\\ea67"}),i.gitBranch=new i("git-branch",{fontCharacter:"\\ea68"}),i.gitBranchCreate=new i("git-branch-create",{fontCharacter:"\\ea68"}),i.gitBranchDelete=new i("git-branch-delete",{fontCharacter:"\\ea68"}),i.sourceControl=new i("source-control",{fontCharacter:"\\ea68"}),i.mirror=new i("mirror",{fontCharacter:"\\ea69"}),i.mirrorPublic=new i("mirror-public",{fontCharacter:"\\ea69"}),i.star=new i("star",{fontCharacter:"\\ea6a"}),i.starAdd=new i("star-add",{fontCharacter:"\\ea6a"}),i.starDelete=new i("star-delete",{fontCharacter:"\\ea6a"}),i.starEmpty=new i("star-empty",{fontCharacter:"\\ea6a"}),i.comment=new i("comment",{fontCharacter:"\\ea6b"}),i.commentAdd=new i("comment-add",{fontCharacter:"\\ea6b"}),i.alert=new i("alert",{fontCharacter:"\\ea6c"}),i.warning=new i("warning",{fontCharacter:"\\ea6c"}),i.search=new i("search",{fontCharacter:"\\ea6d"}),i.searchSave=new i("search-save",{fontCharacter:"\\ea6d"}),i.logOut=new i("log-out",{fontCharacter:"\\ea6e"}),i.signOut=new i("sign-out",{fontCharacter:"\\ea6e"}),i.logIn=new i("log-in",{fontCharacter:"\\ea6f"}),i.signIn=new i("sign-in",{fontCharacter:"\\ea6f"}),i.eye=new i("eye",{fontCharacter:"\\ea70"}),i.eyeUnwatch=new i("eye-unwatch",{fontCharacter:"\\ea70"}),i.eyeWatch=new i("eye-watch",{fontCharacter:"\\ea70"}),i.circleFilled=new i("circle-filled",{fontCharacter:"\\ea71"}),i.primitiveDot=new i("primitive-dot",{fontCharacter:"\\ea71"}),i.closeDirty=new i("close-dirty",{fontCharacter:"\\ea71"}),i.debugBreakpoint=new i("debug-breakpoint",{fontCharacter:"\\ea71"}),i.debugBreakpointDisabled=new i("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),i.debugHint=new i("debug-hint",{fontCharacter:"\\ea71"}),i.primitiveSquare=new i("primitive-square",{fontCharacter:"\\ea72"}),i.edit=new i("edit",{fontCharacter:"\\ea73"}),i.pencil=new i("pencil",{fontCharacter:"\\ea73"}),i.info=new i("info",{fontCharacter:"\\ea74"}),i.issueOpened=new i("issue-opened",{fontCharacter:"\\ea74"}),i.gistPrivate=new i("gist-private",{fontCharacter:"\\ea75"}),i.gitForkPrivate=new i("git-fork-private",{fontCharacter:"\\ea75"}),i.lock=new i("lock",{fontCharacter:"\\ea75"}),i.mirrorPrivate=new i("mirror-private",{fontCharacter:"\\ea75"}),i.close=new i("close",{fontCharacter:"\\ea76"}),i.removeClose=new i("remove-close",{fontCharacter:"\\ea76"}),i.x=new i("x",{fontCharacter:"\\ea76"}),i.repoSync=new i("repo-sync",{fontCharacter:"\\ea77"}),i.sync=new i("sync",{fontCharacter:"\\ea77"}),i.clone=new i("clone",{fontCharacter:"\\ea78"}),i.desktopDownload=new i("desktop-download",{fontCharacter:"\\ea78"}),i.beaker=new i("beaker",{fontCharacter:"\\ea79"}),i.microscope=new i("microscope",{fontCharacter:"\\ea79"}),i.vm=new i("vm",{fontCharacter:"\\ea7a"}),i.deviceDesktop=new i("device-desktop",{fontCharacter:"\\ea7a"}),i.file=new i("file",{fontCharacter:"\\ea7b"}),i.fileText=new i("file-text",{fontCharacter:"\\ea7b"}),i.more=new i("more",{fontCharacter:"\\ea7c"}),i.ellipsis=new i("ellipsis",{fontCharacter:"\\ea7c"}),i.kebabHorizontal=new i("kebab-horizontal",{fontCharacter:"\\ea7c"}),i.mailReply=new i("mail-reply",{fontCharacter:"\\ea7d"}),i.reply=new i("reply",{fontCharacter:"\\ea7d"}),i.organization=new i("organization",{fontCharacter:"\\ea7e"}),i.organizationFilled=new i("organization-filled",{fontCharacter:"\\ea7e"}),i.organizationOutline=new i("organization-outline",{fontCharacter:"\\ea7e"}),i.newFile=new i("new-file",{fontCharacter:"\\ea7f"}),i.fileAdd=new i("file-add",{fontCharacter:"\\ea7f"}),i.newFolder=new i("new-folder",{fontCharacter:"\\ea80"}),i.fileDirectoryCreate=new i("file-directory-create",{fontCharacter:"\\ea80"}),i.trash=new i("trash",{fontCharacter:"\\ea81"}),i.trashcan=new i("trashcan",{fontCharacter:"\\ea81"}),i.history=new i("history",{fontCharacter:"\\ea82"}),i.clock=new i("clock",{fontCharacter:"\\ea82"}),i.folder=new i("folder",{fontCharacter:"\\ea83"}),i.fileDirectory=new i("file-directory",{fontCharacter:"\\ea83"}),i.symbolFolder=new i("symbol-folder",{fontCharacter:"\\ea83"}),i.logoGithub=new i("logo-github",{fontCharacter:"\\ea84"}),i.markGithub=new i("mark-github",{fontCharacter:"\\ea84"}),i.github=new i("github",{fontCharacter:"\\ea84"}),i.terminal=new i("terminal",{fontCharacter:"\\ea85"}),i.console=new i("console",{fontCharacter:"\\ea85"}),i.repl=new i("repl",{fontCharacter:"\\ea85"}),i.zap=new i("zap",{fontCharacter:"\\ea86"}),i.symbolEvent=new i("symbol-event",{fontCharacter:"\\ea86"}),i.error=new i("error",{fontCharacter:"\\ea87"}),i.stop=new i("stop",{fontCharacter:"\\ea87"}),i.variable=new i("variable",{fontCharacter:"\\ea88"}),i.symbolVariable=new i("symbol-variable",{fontCharacter:"\\ea88"}),i.array=new i("array",{fontCharacter:"\\ea8a"}),i.symbolArray=new i("symbol-array",{fontCharacter:"\\ea8a"}),i.symbolModule=new i("symbol-module",{fontCharacter:"\\ea8b"}),i.symbolPackage=new i("symbol-package",{fontCharacter:"\\ea8b"}),i.symbolNamespace=new i("symbol-namespace",{fontCharacter:"\\ea8b"}),i.symbolObject=new i("symbol-object",{fontCharacter:"\\ea8b"}),i.symbolMethod=new i("symbol-method",{fontCharacter:"\\ea8c"}),i.symbolFunction=new i("symbol-function",{fontCharacter:"\\ea8c"}),i.symbolConstructor=new i("symbol-constructor",{fontCharacter:"\\ea8c"}),i.symbolBoolean=new i("symbol-boolean",{fontCharacter:"\\ea8f"}),i.symbolNull=new i("symbol-null",{fontCharacter:"\\ea8f"}),i.symbolNumeric=new i("symbol-numeric",{fontCharacter:"\\ea90"}),i.symbolNumber=new i("symbol-number",{fontCharacter:"\\ea90"}),i.symbolStructure=new i("symbol-structure",{fontCharacter:"\\ea91"}),i.symbolStruct=new i("symbol-struct",{fontCharacter:"\\ea91"}),i.symbolParameter=new i("symbol-parameter",{fontCharacter:"\\ea92"}),i.symbolTypeParameter=new i("symbol-type-parameter",{fontCharacter:"\\ea92"}),i.symbolKey=new i("symbol-key",{fontCharacter:"\\ea93"}),i.symbolText=new i("symbol-text",{fontCharacter:"\\ea93"}),i.symbolReference=new i("symbol-reference",{fontCharacter:"\\ea94"}),i.goToFile=new i("go-to-file",{fontCharacter:"\\ea94"}),i.symbolEnum=new i("symbol-enum",{fontCharacter:"\\ea95"}),i.symbolValue=new i("symbol-value",{fontCharacter:"\\ea95"}),i.symbolRuler=new i("symbol-ruler",{fontCharacter:"\\ea96"}),i.symbolUnit=new i("symbol-unit",{fontCharacter:"\\ea96"}),i.activateBreakpoints=new i("activate-breakpoints",{fontCharacter:"\\ea97"}),i.archive=new i("archive",{fontCharacter:"\\ea98"}),i.arrowBoth=new i("arrow-both",{fontCharacter:"\\ea99"}),i.arrowDown=new i("arrow-down",{fontCharacter:"\\ea9a"}),i.arrowLeft=new i("arrow-left",{fontCharacter:"\\ea9b"}),i.arrowRight=new i("arrow-right",{fontCharacter:"\\ea9c"}),i.arrowSmallDown=new i("arrow-small-down",{fontCharacter:"\\ea9d"}),i.arrowSmallLeft=new i("arrow-small-left",{fontCharacter:"\\ea9e"}),i.arrowSmallRight=new i("arrow-small-right",{fontCharacter:"\\ea9f"}),i.arrowSmallUp=new i("arrow-small-up",{fontCharacter:"\\eaa0"}),i.arrowUp=new i("arrow-up",{fontCharacter:"\\eaa1"}),i.bell=new i("bell",{fontCharacter:"\\eaa2"}),i.bold=new i("bold",{fontCharacter:"\\eaa3"}),i.book=new i("book",{fontCharacter:"\\eaa4"}),i.bookmark=new i("bookmark",{fontCharacter:"\\eaa5"}),i.debugBreakpointConditionalUnverified=new i("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),i.debugBreakpointConditional=new i("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),i.debugBreakpointConditionalDisabled=new i("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),i.debugBreakpointDataUnverified=new i("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),i.debugBreakpointData=new i("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),i.debugBreakpointDataDisabled=new i("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),i.debugBreakpointLogUnverified=new i("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),i.debugBreakpointLog=new i("debug-breakpoint-log",{fontCharacter:"\\eaab"}),i.debugBreakpointLogDisabled=new i("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),i.briefcase=new i("briefcase",{fontCharacter:"\\eaac"}),i.broadcast=new i("broadcast",{fontCharacter:"\\eaad"}),i.browser=new i("browser",{fontCharacter:"\\eaae"}),i.bug=new i("bug",{fontCharacter:"\\eaaf"}),i.calendar=new i("calendar",{fontCharacter:"\\eab0"}),i.caseSensitive=new i("case-sensitive",{fontCharacter:"\\eab1"}),i.check=new i("check",{fontCharacter:"\\eab2"}),i.checklist=new i("checklist",{fontCharacter:"\\eab3"}),i.chevronDown=new i("chevron-down",{fontCharacter:"\\eab4"}),i.dropDownButton=new i("drop-down-button",i.chevronDown.definition),i.chevronLeft=new i("chevron-left",{fontCharacter:"\\eab5"}),i.chevronRight=new i("chevron-right",{fontCharacter:"\\eab6"}),i.chevronUp=new i("chevron-up",{fontCharacter:"\\eab7"}),i.chromeClose=new i("chrome-close",{fontCharacter:"\\eab8"}),i.chromeMaximize=new i("chrome-maximize",{fontCharacter:"\\eab9"}),i.chromeMinimize=new i("chrome-minimize",{fontCharacter:"\\eaba"}),i.chromeRestore=new i("chrome-restore",{fontCharacter:"\\eabb"}),i.circleOutline=new i("circle-outline",{fontCharacter:"\\eabc"}),i.debugBreakpointUnverified=new i("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),i.circleSlash=new i("circle-slash",{fontCharacter:"\\eabd"}),i.circuitBoard=new i("circuit-board",{fontCharacter:"\\eabe"}),i.clearAll=new i("clear-all",{fontCharacter:"\\eabf"}),i.clippy=new i("clippy",{fontCharacter:"\\eac0"}),i.closeAll=new i("close-all",{fontCharacter:"\\eac1"}),i.cloudDownload=new i("cloud-download",{fontCharacter:"\\eac2"}),i.cloudUpload=new i("cloud-upload",{fontCharacter:"\\eac3"}),i.code=new i("code",{fontCharacter:"\\eac4"}),i.collapseAll=new i("collapse-all",{fontCharacter:"\\eac5"}),i.colorMode=new i("color-mode",{fontCharacter:"\\eac6"}),i.commentDiscussion=new i("comment-discussion",{fontCharacter:"\\eac7"}),i.compareChanges=new i("compare-changes",{fontCharacter:"\\eafd"}),i.creditCard=new i("credit-card",{fontCharacter:"\\eac9"}),i.dash=new i("dash",{fontCharacter:"\\eacc"}),i.dashboard=new i("dashboard",{fontCharacter:"\\eacd"}),i.database=new i("database",{fontCharacter:"\\eace"}),i.debugContinue=new i("debug-continue",{fontCharacter:"\\eacf"}),i.debugDisconnect=new i("debug-disconnect",{fontCharacter:"\\ead0"}),i.debugPause=new i("debug-pause",{fontCharacter:"\\ead1"}),i.debugRestart=new i("debug-restart",{fontCharacter:"\\ead2"}),i.debugStart=new i("debug-start",{fontCharacter:"\\ead3"}),i.debugStepInto=new i("debug-step-into",{fontCharacter:"\\ead4"}),i.debugStepOut=new i("debug-step-out",{fontCharacter:"\\ead5"}),i.debugStepOver=new i("debug-step-over",{fontCharacter:"\\ead6"}),i.debugStop=new i("debug-stop",{fontCharacter:"\\ead7"}),i.debug=new i("debug",{fontCharacter:"\\ead8"}),i.deviceCameraVideo=new i("device-camera-video",{fontCharacter:"\\ead9"}),i.deviceCamera=new i("device-camera",{fontCharacter:"\\eada"}),i.deviceMobile=new i("device-mobile",{fontCharacter:"\\eadb"}),i.diffAdded=new i("diff-added",{fontCharacter:"\\eadc"}),i.diffIgnored=new i("diff-ignored",{fontCharacter:"\\eadd"}),i.diffModified=new i("diff-modified",{fontCharacter:"\\eade"}),i.diffRemoved=new i("diff-removed",{fontCharacter:"\\eadf"}),i.diffRenamed=new i("diff-renamed",{fontCharacter:"\\eae0"}),i.diff=new i("diff",{fontCharacter:"\\eae1"}),i.discard=new i("discard",{fontCharacter:"\\eae2"}),i.editorLayout=new i("editor-layout",{fontCharacter:"\\eae3"}),i.emptyWindow=new i("empty-window",{fontCharacter:"\\eae4"}),i.exclude=new i("exclude",{fontCharacter:"\\eae5"}),i.extensions=new i("extensions",{fontCharacter:"\\eae6"}),i.eyeClosed=new i("eye-closed",{fontCharacter:"\\eae7"}),i.fileBinary=new i("file-binary",{fontCharacter:"\\eae8"}),i.fileCode=new i("file-code",{fontCharacter:"\\eae9"}),i.fileMedia=new i("file-media",{fontCharacter:"\\eaea"}),i.filePdf=new i("file-pdf",{fontCharacter:"\\eaeb"}),i.fileSubmodule=new i("file-submodule",{fontCharacter:"\\eaec"}),i.fileSymlinkDirectory=new i("file-symlink-directory",{fontCharacter:"\\eaed"}),i.fileSymlinkFile=new i("file-symlink-file",{fontCharacter:"\\eaee"}),i.fileZip=new i("file-zip",{fontCharacter:"\\eaef"}),i.files=new i("files",{fontCharacter:"\\eaf0"}),i.filter=new i("filter",{fontCharacter:"\\eaf1"}),i.flame=new i("flame",{fontCharacter:"\\eaf2"}),i.foldDown=new i("fold-down",{fontCharacter:"\\eaf3"}),i.foldUp=new i("fold-up",{fontCharacter:"\\eaf4"}),i.fold=new i("fold",{fontCharacter:"\\eaf5"}),i.folderActive=new i("folder-active",{fontCharacter:"\\eaf6"}),i.folderOpened=new i("folder-opened",{fontCharacter:"\\eaf7"}),i.gear=new i("gear",{fontCharacter:"\\eaf8"}),i.gift=new i("gift",{fontCharacter:"\\eaf9"}),i.gistSecret=new i("gist-secret",{fontCharacter:"\\eafa"}),i.gist=new i("gist",{fontCharacter:"\\eafb"}),i.gitCommit=new i("git-commit",{fontCharacter:"\\eafc"}),i.gitCompare=new i("git-compare",{fontCharacter:"\\eafd"}),i.gitMerge=new i("git-merge",{fontCharacter:"\\eafe"}),i.githubAction=new i("github-action",{fontCharacter:"\\eaff"}),i.githubAlt=new i("github-alt",{fontCharacter:"\\eb00"}),i.globe=new i("globe",{fontCharacter:"\\eb01"}),i.grabber=new i("grabber",{fontCharacter:"\\eb02"}),i.graph=new i("graph",{fontCharacter:"\\eb03"}),i.gripper=new i("gripper",{fontCharacter:"\\eb04"}),i.heart=new i("heart",{fontCharacter:"\\eb05"}),i.home=new i("home",{fontCharacter:"\\eb06"}),i.horizontalRule=new i("horizontal-rule",{fontCharacter:"\\eb07"}),i.hubot=new i("hubot",{fontCharacter:"\\eb08"}),i.inbox=new i("inbox",{fontCharacter:"\\eb09"}),i.issueClosed=new i("issue-closed",{fontCharacter:"\\eba4"}),i.issueReopened=new i("issue-reopened",{fontCharacter:"\\eb0b"}),i.issues=new i("issues",{fontCharacter:"\\eb0c"}),i.italic=new i("italic",{fontCharacter:"\\eb0d"}),i.jersey=new i("jersey",{fontCharacter:"\\eb0e"}),i.json=new i("json",{fontCharacter:"\\eb0f"}),i.kebabVertical=new i("kebab-vertical",{fontCharacter:"\\eb10"}),i.key=new i("key",{fontCharacter:"\\eb11"}),i.law=new i("law",{fontCharacter:"\\eb12"}),i.lightbulbAutofix=new i("lightbulb-autofix",{fontCharacter:"\\eb13"}),i.linkExternal=new i("link-external",{fontCharacter:"\\eb14"}),i.link=new i("link",{fontCharacter:"\\eb15"}),i.listOrdered=new i("list-ordered",{fontCharacter:"\\eb16"}),i.listUnordered=new i("list-unordered",{fontCharacter:"\\eb17"}),i.liveShare=new i("live-share",{fontCharacter:"\\eb18"}),i.loading=new i("loading",{fontCharacter:"\\eb19"}),i.location=new i("location",{fontCharacter:"\\eb1a"}),i.mailRead=new i("mail-read",{fontCharacter:"\\eb1b"}),i.mail=new i("mail",{fontCharacter:"\\eb1c"}),i.markdown=new i("markdown",{fontCharacter:"\\eb1d"}),i.megaphone=new i("megaphone",{fontCharacter:"\\eb1e"}),i.mention=new i("mention",{fontCharacter:"\\eb1f"}),i.milestone=new i("milestone",{fontCharacter:"\\eb20"}),i.mortarBoard=new i("mortar-board",{fontCharacter:"\\eb21"}),i.move=new i("move",{fontCharacter:"\\eb22"}),i.multipleWindows=new i("multiple-windows",{fontCharacter:"\\eb23"}),i.mute=new i("mute",{fontCharacter:"\\eb24"}),i.noNewline=new i("no-newline",{fontCharacter:"\\eb25"}),i.note=new i("note",{fontCharacter:"\\eb26"}),i.octoface=new i("octoface",{fontCharacter:"\\eb27"}),i.openPreview=new i("open-preview",{fontCharacter:"\\eb28"}),i.package_=new i("package",{fontCharacter:"\\eb29"}),i.paintcan=new i("paintcan",{fontCharacter:"\\eb2a"}),i.pin=new i("pin",{fontCharacter:"\\eb2b"}),i.play=new i("play",{fontCharacter:"\\eb2c"}),i.run=new i("run",{fontCharacter:"\\eb2c"}),i.plug=new i("plug",{fontCharacter:"\\eb2d"}),i.preserveCase=new i("preserve-case",{fontCharacter:"\\eb2e"}),i.preview=new i("preview",{fontCharacter:"\\eb2f"}),i.project=new i("project",{fontCharacter:"\\eb30"}),i.pulse=new i("pulse",{fontCharacter:"\\eb31"}),i.question=new i("question",{fontCharacter:"\\eb32"}),i.quote=new i("quote",{fontCharacter:"\\eb33"}),i.radioTower=new i("radio-tower",{fontCharacter:"\\eb34"}),i.reactions=new i("reactions",{fontCharacter:"\\eb35"}),i.references=new i("references",{fontCharacter:"\\eb36"}),i.refresh=new i("refresh",{fontCharacter:"\\eb37"}),i.regex=new i("regex",{fontCharacter:"\\eb38"}),i.remoteExplorer=new i("remote-explorer",{fontCharacter:"\\eb39"}),i.remote=new i("remote",{fontCharacter:"\\eb3a"}),i.remove=new i("remove",{fontCharacter:"\\eb3b"}),i.replaceAll=new i("replace-all",{fontCharacter:"\\eb3c"}),i.replace=new i("replace",{fontCharacter:"\\eb3d"}),i.repoClone=new i("repo-clone",{fontCharacter:"\\eb3e"}),i.repoForcePush=new i("repo-force-push",{fontCharacter:"\\eb3f"}),i.repoPull=new i("repo-pull",{fontCharacter:"\\eb40"}),i.repoPush=new i("repo-push",{fontCharacter:"\\eb41"}),i.report=new i("report",{fontCharacter:"\\eb42"}),i.requestChanges=new i("request-changes",{fontCharacter:"\\eb43"}),i.rocket=new i("rocket",{fontCharacter:"\\eb44"}),i.rootFolderOpened=new i("root-folder-opened",{fontCharacter:"\\eb45"}),i.rootFolder=new i("root-folder",{fontCharacter:"\\eb46"}),i.rss=new i("rss",{fontCharacter:"\\eb47"}),i.ruby=new i("ruby",{fontCharacter:"\\eb48"}),i.saveAll=new i("save-all",{fontCharacter:"\\eb49"}),i.saveAs=new i("save-as",{fontCharacter:"\\eb4a"}),i.save=new i("save",{fontCharacter:"\\eb4b"}),i.screenFull=new i("screen-full",{fontCharacter:"\\eb4c"}),i.screenNormal=new i("screen-normal",{fontCharacter:"\\eb4d"}),i.searchStop=new i("search-stop",{fontCharacter:"\\eb4e"}),i.server=new i("server",{fontCharacter:"\\eb50"}),i.settingsGear=new i("settings-gear",{fontCharacter:"\\eb51"}),i.settings=new i("settings",{fontCharacter:"\\eb52"}),i.shield=new i("shield",{fontCharacter:"\\eb53"}),i.smiley=new i("smiley",{fontCharacter:"\\eb54"}),i.sortPrecedence=new i("sort-precedence",{fontCharacter:"\\eb55"}),i.splitHorizontal=new i("split-horizontal",{fontCharacter:"\\eb56"}),i.splitVertical=new i("split-vertical",{fontCharacter:"\\eb57"}),i.squirrel=new i("squirrel",{fontCharacter:"\\eb58"}),i.starFull=new i("star-full",{fontCharacter:"\\eb59"}),i.starHalf=new i("star-half",{fontCharacter:"\\eb5a"}),i.symbolClass=new i("symbol-class",{fontCharacter:"\\eb5b"}),i.symbolColor=new i("symbol-color",{fontCharacter:"\\eb5c"}),i.symbolConstant=new i("symbol-constant",{fontCharacter:"\\eb5d"}),i.symbolEnumMember=new i("symbol-enum-member",{fontCharacter:"\\eb5e"}),i.symbolField=new i("symbol-field",{fontCharacter:"\\eb5f"}),i.symbolFile=new i("symbol-file",{fontCharacter:"\\eb60"}),i.symbolInterface=new i("symbol-interface",{fontCharacter:"\\eb61"}),i.symbolKeyword=new i("symbol-keyword",{fontCharacter:"\\eb62"}),i.symbolMisc=new i("symbol-misc",{fontCharacter:"\\eb63"}),i.symbolOperator=new i("symbol-operator",{fontCharacter:"\\eb64"}),i.symbolProperty=new i("symbol-property",{fontCharacter:"\\eb65"}),i.wrench=new i("wrench",{fontCharacter:"\\eb65"}),i.wrenchSubaction=new i("wrench-subaction",{fontCharacter:"\\eb65"}),i.symbolSnippet=new i("symbol-snippet",{fontCharacter:"\\eb66"}),i.tasklist=new i("tasklist",{fontCharacter:"\\eb67"}),i.telescope=new i("telescope",{fontCharacter:"\\eb68"}),i.textSize=new i("text-size",{fontCharacter:"\\eb69"}),i.threeBars=new i("three-bars",{fontCharacter:"\\eb6a"}),i.thumbsdown=new i("thumbsdown",{fontCharacter:"\\eb6b"}),i.thumbsup=new i("thumbsup",{fontCharacter:"\\eb6c"}),i.tools=new i("tools",{fontCharacter:"\\eb6d"}),i.triangleDown=new i("triangle-down",{fontCharacter:"\\eb6e"}),i.triangleLeft=new i("triangle-left",{fontCharacter:"\\eb6f"}),i.triangleRight=new i("triangle-right",{fontCharacter:"\\eb70"}),i.triangleUp=new i("triangle-up",{fontCharacter:"\\eb71"}),i.twitter=new i("twitter",{fontCharacter:"\\eb72"}),i.unfold=new i("unfold",{fontCharacter:"\\eb73"}),i.unlock=new i("unlock",{fontCharacter:"\\eb74"}),i.unmute=new i("unmute",{fontCharacter:"\\eb75"}),i.unverified=new i("unverified",{fontCharacter:"\\eb76"}),i.verified=new i("verified",{fontCharacter:"\\eb77"}),i.versions=new i("versions",{fontCharacter:"\\eb78"}),i.vmActive=new i("vm-active",{fontCharacter:"\\eb79"}),i.vmOutline=new i("vm-outline",{fontCharacter:"\\eb7a"}),i.vmRunning=new i("vm-running",{fontCharacter:"\\eb7b"}),i.watch=new i("watch",{fontCharacter:"\\eb7c"}),i.whitespace=new i("whitespace",{fontCharacter:"\\eb7d"}),i.wholeWord=new i("whole-word",{fontCharacter:"\\eb7e"}),i.window=new i("window",{fontCharacter:"\\eb7f"}),i.wordWrap=new i("word-wrap",{fontCharacter:"\\eb80"}),i.zoomIn=new i("zoom-in",{fontCharacter:"\\eb81"}),i.zoomOut=new i("zoom-out",{fontCharacter:"\\eb82"}),i.listFilter=new i("list-filter",{fontCharacter:"\\eb83"}),i.listFlat=new i("list-flat",{fontCharacter:"\\eb84"}),i.listSelection=new i("list-selection",{fontCharacter:"\\eb85"}),i.selection=new i("selection",{fontCharacter:"\\eb85"}),i.listTree=new i("list-tree",{fontCharacter:"\\eb86"}),i.debugBreakpointFunctionUnverified=new i("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),i.debugBreakpointFunction=new i("debug-breakpoint-function",{fontCharacter:"\\eb88"}),i.debugBreakpointFunctionDisabled=new i("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),i.debugStackframeActive=new i("debug-stackframe-active",{fontCharacter:"\\eb89"}),i.debugStackframeDot=new i("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),i.debugStackframe=new i("debug-stackframe",{fontCharacter:"\\eb8b"}),i.debugStackframeFocused=new i("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),i.debugBreakpointUnsupported=new i("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),i.symbolString=new i("symbol-string",{fontCharacter:"\\eb8d"}),i.debugReverseContinue=new i("debug-reverse-continue",{fontCharacter:"\\eb8e"}),i.debugStepBack=new i("debug-step-back",{fontCharacter:"\\eb8f"}),i.debugRestartFrame=new i("debug-restart-frame",{fontCharacter:"\\eb90"}),i.callIncoming=new i("call-incoming",{fontCharacter:"\\eb92"}),i.callOutgoing=new i("call-outgoing",{fontCharacter:"\\eb93"}),i.menu=new i("menu",{fontCharacter:"\\eb94"}),i.expandAll=new i("expand-all",{fontCharacter:"\\eb95"}),i.feedback=new i("feedback",{fontCharacter:"\\eb96"}),i.groupByRefType=new i("group-by-ref-type",{fontCharacter:"\\eb97"}),i.ungroupByRefType=new i("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),i.account=new i("account",{fontCharacter:"\\eb99"}),i.bellDot=new i("bell-dot",{fontCharacter:"\\eb9a"}),i.debugConsole=new i("debug-console",{fontCharacter:"\\eb9b"}),i.library=new i("library",{fontCharacter:"\\eb9c"}),i.output=new i("output",{fontCharacter:"\\eb9d"}),i.runAll=new i("run-all",{fontCharacter:"\\eb9e"}),i.syncIgnored=new i("sync-ignored",{fontCharacter:"\\eb9f"}),i.pinned=new i("pinned",{fontCharacter:"\\eba0"}),i.githubInverted=new i("github-inverted",{fontCharacter:"\\eba1"}),i.debugAlt=new i("debug-alt",{fontCharacter:"\\eb91"}),i.serverProcess=new i("server-process",{fontCharacter:"\\eba2"}),i.serverEnvironment=new i("server-environment",{fontCharacter:"\\eba3"}),i.pass=new i("pass",{fontCharacter:"\\eba4"}),i.stopCircle=new i("stop-circle",{fontCharacter:"\\eba5"}),i.playCircle=new i("play-circle",{fontCharacter:"\\eba6"}),i.record=new i("record",{fontCharacter:"\\eba7"}),i.debugAltSmall=new i("debug-alt-small",{fontCharacter:"\\eba8"}),i.vmConnect=new i("vm-connect",{fontCharacter:"\\eba9"}),i.cloud=new i("cloud",{fontCharacter:"\\ebaa"}),i.merge=new i("merge",{fontCharacter:"\\ebab"}),i.exportIcon=new i("export",{fontCharacter:"\\ebac"}),i.graphLeft=new i("graph-left",{fontCharacter:"\\ebad"}),i.magnet=new i("magnet",{fontCharacter:"\\ebae"}),i.notebook=new i("notebook",{fontCharacter:"\\ebaf"}),i.redo=new i("redo",{fontCharacter:"\\ebb0"}),i.checkAll=new i("check-all",{fontCharacter:"\\ebb1"}),i.pinnedDirty=new i("pinned-dirty",{fontCharacter:"\\ebb2"}),i.passFilled=new i("pass-filled",{fontCharacter:"\\ebb3"}),i.circleLargeFilled=new i("circle-large-filled",{fontCharacter:"\\ebb4"}),i.circleLargeOutline=new i("circle-large-outline",{fontCharacter:"\\ebb5"}),i.combine=new i("combine",{fontCharacter:"\\ebb6"}),i.gather=new i("gather",{fontCharacter:"\\ebb6"}),i.table=new i("table",{fontCharacter:"\\ebb7"}),i.variableGroup=new i("variable-group",{fontCharacter:"\\ebb8"}),i.typeHierarchy=new i("type-hierarchy",{fontCharacter:"\\ebb9"}),i.typeHierarchySub=new i("type-hierarchy-sub",{fontCharacter:"\\ebba"}),i.typeHierarchySuper=new i("type-hierarchy-super",{fontCharacter:"\\ebbb"}),i.gitPullRequestCreate=new i("git-pull-request-create",{fontCharacter:"\\ebbc"}),i.runAbove=new i("run-above",{fontCharacter:"\\ebbd"}),i.runBelow=new i("run-below",{fontCharacter:"\\ebbe"}),i.notebookTemplate=new i("notebook-template",{fontCharacter:"\\ebbf"}),i.debugRerun=new i("debug-rerun",{fontCharacter:"\\ebc0"}),i.workspaceTrusted=new i("workspace-trusted",{fontCharacter:"\\ebc1"}),i.workspaceUntrusted=new i("workspace-untrusted",{fontCharacter:"\\ebc2"}),i.workspaceUnspecified=new i("workspace-unspecified",{fontCharacter:"\\ebc3"}),i.terminalCmd=new i("terminal-cmd",{fontCharacter:"\\ebc4"}),i.terminalDebian=new i("terminal-debian",{fontCharacter:"\\ebc5"}),i.terminalLinux=new i("terminal-linux",{fontCharacter:"\\ebc6"}),i.terminalPowershell=new i("terminal-powershell",{fontCharacter:"\\ebc7"}),i.terminalTmux=new i("terminal-tmux",{fontCharacter:"\\ebc8"}),i.terminalUbuntu=new i("terminal-ubuntu",{fontCharacter:"\\ebc9"}),i.terminalBash=new i("terminal-bash",{fontCharacter:"\\ebca"}),i.arrowSwap=new i("arrow-swap",{fontCharacter:"\\ebcb"}),i.copy=new i("copy",{fontCharacter:"\\ebcc"}),i.personAdd=new i("person-add",{fontCharacter:"\\ebcd"}),i.filterFilled=new i("filter-filled",{fontCharacter:"\\ebce"}),i.wand=new i("wand",{fontCharacter:"\\ebcf"}),i.debugLineByLine=new i("debug-line-by-line",{fontCharacter:"\\ebd0"}),i.inspect=new i("inspect",{fontCharacter:"\\ebd1"}),i.layers=new i("layers",{fontCharacter:"\\ebd2"}),i.layersDot=new i("layers-dot",{fontCharacter:"\\ebd3"}),i.layersActive=new i("layers-active",{fontCharacter:"\\ebd4"}),i.compass=new i("compass",{fontCharacter:"\\ebd5"}),i.compassDot=new i("compass-dot",{fontCharacter:"\\ebd6"}),i.compassActive=new i("compass-active",{fontCharacter:"\\ebd7"}),i.azure=new i("azure",{fontCharacter:"\\ebd8"}),i.issueDraft=new i("issue-draft",{fontCharacter:"\\ebd9"}),i.gitPullRequestClosed=new i("git-pull-request-closed",{fontCharacter:"\\ebda"}),i.gitPullRequestDraft=new i("git-pull-request-draft",{fontCharacter:"\\ebdb"}),i.debugAll=new i("debug-all",{fontCharacter:"\\ebdc"}),i.debugCoverage=new i("debug-coverage",{fontCharacter:"\\ebdd"}),i.runErrors=new i("run-errors",{fontCharacter:"\\ebde"}),i.folderLibrary=new i("folder-library",{fontCharacter:"\\ebdf"}),i.debugContinueSmall=new i("debug-continue-small",{fontCharacter:"\\ebe0"}),i.beakerStop=new i("beaker-stop",{fontCharacter:"\\ebe1"}),i.graphLine=new i("graph-line",{fontCharacter:"\\ebe2"}),i.graphScatter=new i("graph-scatter",{fontCharacter:"\\ebe3"}),i.pieChart=new i("pie-chart",{fontCharacter:"\\ebe4"}),i.bracket=new i("bracket",i.json.definition),i.bracketDot=new i("bracket-dot",{fontCharacter:"\\ebe5"}),i.bracketError=new i("bracket-error",{fontCharacter:"\\ebe6"}),i.lockSmall=new i("lock-small",{fontCharacter:"\\ebe7"}),i.azureDevops=new i("azure-devops",{fontCharacter:"\\ebe8"}),i.verifiedFilled=new i("verified-filled",{fontCharacter:"\\ebe9"})}(G||(G={}))},"VrN/":function(st,be,Q){(function(ie,$){st.exports=$()})(this,function(){"use strict";var ie=navigator.userAgent,$=navigator.platform,M=/gecko\/\d/i.test(ie),X=/MSIE \d/.test(ie),F=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ie),U=/Edge\/(\d+)/.exec(ie),G=X||F||U,W=G&&(X?document.documentMode||6:+(U||F)[1]),i=!U&&/WebKit\//.test(ie),D=i&&/Qt\/\d+\.\d+/.test(ie),g=!U&&/Chrome\//.test(ie),m=/Opera\//.test(ie),p=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ie),u=/PhantomJS/.test(ie),f=!U&&/AppleWebKit/.test(ie)&&/Mobile\/\w+/.test(ie),o=/Android/.test(ie),h=f||o||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ie),s=f||/Mac/.test($),a=/\bCrOS\b/.test(ie),A=/win/i.test($),_=m&&ie.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(m=!1,i=!0);var S=s&&(D||m&&(_==null||_<12.11)),L=M||G&&W>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C=function(e,t){var r=e.className,n=R(t).exec(r);if(n){var d=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(d?n[1]+d:"")}};function w(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function x(e,t){return w(e).appendChild(t)}function c(e,t,r,n){var d=document.createElement(e);if(r&&(d.className=r),n&&(d.style.cssText=n),typeof t=="string")d.appendChild(document.createTextNode(t));else if(t)for(var k=0;k=t)return K+(t-k);K+=J-k,K+=r-K%r,k=J+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)};ee.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ee.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(K,t-d);if(d+=k-n,d+=r-d%r,n=k+1,d>=t)return n}}var se=[""];function ae(e){for(;se.length<=e;)se.push(Oe(se)+" ");return se[e]}function Oe(e){return e[e.length-1]}function Te(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Le.test(e))}function Ge(e,t){return t?t.source.indexOf("\\w")>-1&&Be(e)?!0:t.test(e):Be(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ye=/[\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&&ye.test(e)}function Ae(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var d=(t+r)/2,k=n<0?Math.ceil(d):Math.floor(d);if(k==t)return e(k)?t:r;e(k)?r=k:t=k+n}}function Ve(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var d=!1,k=0;kt||t==r&&K.to==t)&&(n(Math.max(K.from,t),Math.min(K.to,r),K.level==1?"rtl":"ltr",k),d=!0)}d||n(t,r,"ltr")}var Ze=null;function $e(e,t,r){var n;Ze=null;for(var d=0;dt)return d;k.to==t&&(k.from!=k.to&&r=="before"?n=d:Ze=d),k.from==t&&(k.from!=k.to&&r!="before"?n=d:Ze=d)}return n!=null?n:Ze}var tt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(te){return te<=247?e.charAt(te):1424<=te&&te<=1524?"R":1536<=te&&te<=1785?t.charAt(te-1536):1774<=te&&te<=2220?"r":8192<=te&&te<=8203?"w":te==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,k=/[LRr]/,K=/[Lb1n]/,J=/[1n]/;function Z(te,de,me){this.level=te,this.from=de,this.to=me}return function(te,de){var me=de=="ltr"?"L":"R";if(te.length==0||de=="ltr"&&!n.test(te))return!1;for(var Ie=te.length,Re=[],He=0;He-1&&(n[t]=d.slice(0,k).concat(d.slice(k+1)))}}}function Fe(e,t){var r=ut(e,t);if(!r.length)return;for(var n=Array.prototype.slice.call(arguments,2),d=0;d0}function _e(e){e.prototype.on=function(t,r){Me(this,t,r)},e.prototype.off=function(t,r){nt(this,t,r)}}function ne(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function re(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function he(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function fe(e){ne(e),re(e)}function xe(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),s&&e.ctrlKey&&t==1&&(t=3),t}var ze=function(){if(G&&W<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),ot;function mt(e){if(ot==null){var t=c("span","\u200B");x(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ot=t.offsetWidth<=1&&t.offsetHeight>2&&!(G&&W<8))}var r=ot?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var ft;function wt(e){if(ft!=null)return ft;var t=x(e,document.createTextNode("A\u062EA")),r=y(t,0,1).getBoundingClientRect(),n=y(t,1,2).getBoundingClientRect();return w(e),!r||r.left==r.right?!1:ft=n.right-r.right<3}var St=` +`&&O&&this._output.add_new_line()}var ce=this._output.get_code(R);return ce},i.exports.Beautifier=S},function(i,D,g){var m=g(6).Options;function p(l){m.call(this,l,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var u=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||u;var f=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o` ${g} `).trim():""}class G{constructor(i,D,g){this.id=i,this.definition=D,this.description=g,M.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var W;(function(i){i.iconNameSegment="[A-Za-z0-9]+",i.iconNameExpression="[A-Za-z0-9\\-]+",i.iconModifierExpression="~[A-Za-z]+";const D=new RegExp(`^(${i.iconNameExpression})(${i.iconModifierExpression})?$`);function g(l){if(l instanceof G)return["codicon","codicon-"+l.id];const u=D.exec(l.id);if(!u)return g(G.error);let[,f,o]=u;const h=["codicon","codicon-"+f];return o&&h.push("codicon-modifier-"+o.substr(1)),h}i.asClassNameArray=g;function m(l){return g(l).join(" ")}i.asClassName=m;function p(l){return"."+g(l).join(".")}i.asCSSSelector=p})(W||(W={})),function(i){i.add=new i("add",{fontCharacter:"\\ea60"}),i.plus=new i("plus",i.add.definition),i.gistNew=new i("gist-new",i.add.definition),i.repoCreate=new i("repo-create",i.add.definition),i.lightbulb=new i("lightbulb",{fontCharacter:"\\ea61"}),i.lightBulb=new i("light-bulb",{fontCharacter:"\\ea61"}),i.repo=new i("repo",{fontCharacter:"\\ea62"}),i.repoDelete=new i("repo-delete",{fontCharacter:"\\ea62"}),i.gistFork=new i("gist-fork",{fontCharacter:"\\ea63"}),i.repoForked=new i("repo-forked",{fontCharacter:"\\ea63"}),i.gitPullRequest=new i("git-pull-request",{fontCharacter:"\\ea64"}),i.gitPullRequestAbandoned=new i("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),i.recordKeys=new i("record-keys",{fontCharacter:"\\ea65"}),i.keyboard=new i("keyboard",{fontCharacter:"\\ea65"}),i.tag=new i("tag",{fontCharacter:"\\ea66"}),i.tagAdd=new i("tag-add",{fontCharacter:"\\ea66"}),i.tagRemove=new i("tag-remove",{fontCharacter:"\\ea66"}),i.person=new i("person",{fontCharacter:"\\ea67"}),i.personFollow=new i("person-follow",{fontCharacter:"\\ea67"}),i.personOutline=new i("person-outline",{fontCharacter:"\\ea67"}),i.personFilled=new i("person-filled",{fontCharacter:"\\ea67"}),i.gitBranch=new i("git-branch",{fontCharacter:"\\ea68"}),i.gitBranchCreate=new i("git-branch-create",{fontCharacter:"\\ea68"}),i.gitBranchDelete=new i("git-branch-delete",{fontCharacter:"\\ea68"}),i.sourceControl=new i("source-control",{fontCharacter:"\\ea68"}),i.mirror=new i("mirror",{fontCharacter:"\\ea69"}),i.mirrorPublic=new i("mirror-public",{fontCharacter:"\\ea69"}),i.star=new i("star",{fontCharacter:"\\ea6a"}),i.starAdd=new i("star-add",{fontCharacter:"\\ea6a"}),i.starDelete=new i("star-delete",{fontCharacter:"\\ea6a"}),i.starEmpty=new i("star-empty",{fontCharacter:"\\ea6a"}),i.comment=new i("comment",{fontCharacter:"\\ea6b"}),i.commentAdd=new i("comment-add",{fontCharacter:"\\ea6b"}),i.alert=new i("alert",{fontCharacter:"\\ea6c"}),i.warning=new i("warning",{fontCharacter:"\\ea6c"}),i.search=new i("search",{fontCharacter:"\\ea6d"}),i.searchSave=new i("search-save",{fontCharacter:"\\ea6d"}),i.logOut=new i("log-out",{fontCharacter:"\\ea6e"}),i.signOut=new i("sign-out",{fontCharacter:"\\ea6e"}),i.logIn=new i("log-in",{fontCharacter:"\\ea6f"}),i.signIn=new i("sign-in",{fontCharacter:"\\ea6f"}),i.eye=new i("eye",{fontCharacter:"\\ea70"}),i.eyeUnwatch=new i("eye-unwatch",{fontCharacter:"\\ea70"}),i.eyeWatch=new i("eye-watch",{fontCharacter:"\\ea70"}),i.circleFilled=new i("circle-filled",{fontCharacter:"\\ea71"}),i.primitiveDot=new i("primitive-dot",{fontCharacter:"\\ea71"}),i.closeDirty=new i("close-dirty",{fontCharacter:"\\ea71"}),i.debugBreakpoint=new i("debug-breakpoint",{fontCharacter:"\\ea71"}),i.debugBreakpointDisabled=new i("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),i.debugHint=new i("debug-hint",{fontCharacter:"\\ea71"}),i.primitiveSquare=new i("primitive-square",{fontCharacter:"\\ea72"}),i.edit=new i("edit",{fontCharacter:"\\ea73"}),i.pencil=new i("pencil",{fontCharacter:"\\ea73"}),i.info=new i("info",{fontCharacter:"\\ea74"}),i.issueOpened=new i("issue-opened",{fontCharacter:"\\ea74"}),i.gistPrivate=new i("gist-private",{fontCharacter:"\\ea75"}),i.gitForkPrivate=new i("git-fork-private",{fontCharacter:"\\ea75"}),i.lock=new i("lock",{fontCharacter:"\\ea75"}),i.mirrorPrivate=new i("mirror-private",{fontCharacter:"\\ea75"}),i.close=new i("close",{fontCharacter:"\\ea76"}),i.removeClose=new i("remove-close",{fontCharacter:"\\ea76"}),i.x=new i("x",{fontCharacter:"\\ea76"}),i.repoSync=new i("repo-sync",{fontCharacter:"\\ea77"}),i.sync=new i("sync",{fontCharacter:"\\ea77"}),i.clone=new i("clone",{fontCharacter:"\\ea78"}),i.desktopDownload=new i("desktop-download",{fontCharacter:"\\ea78"}),i.beaker=new i("beaker",{fontCharacter:"\\ea79"}),i.microscope=new i("microscope",{fontCharacter:"\\ea79"}),i.vm=new i("vm",{fontCharacter:"\\ea7a"}),i.deviceDesktop=new i("device-desktop",{fontCharacter:"\\ea7a"}),i.file=new i("file",{fontCharacter:"\\ea7b"}),i.fileText=new i("file-text",{fontCharacter:"\\ea7b"}),i.more=new i("more",{fontCharacter:"\\ea7c"}),i.ellipsis=new i("ellipsis",{fontCharacter:"\\ea7c"}),i.kebabHorizontal=new i("kebab-horizontal",{fontCharacter:"\\ea7c"}),i.mailReply=new i("mail-reply",{fontCharacter:"\\ea7d"}),i.reply=new i("reply",{fontCharacter:"\\ea7d"}),i.organization=new i("organization",{fontCharacter:"\\ea7e"}),i.organizationFilled=new i("organization-filled",{fontCharacter:"\\ea7e"}),i.organizationOutline=new i("organization-outline",{fontCharacter:"\\ea7e"}),i.newFile=new i("new-file",{fontCharacter:"\\ea7f"}),i.fileAdd=new i("file-add",{fontCharacter:"\\ea7f"}),i.newFolder=new i("new-folder",{fontCharacter:"\\ea80"}),i.fileDirectoryCreate=new i("file-directory-create",{fontCharacter:"\\ea80"}),i.trash=new i("trash",{fontCharacter:"\\ea81"}),i.trashcan=new i("trashcan",{fontCharacter:"\\ea81"}),i.history=new i("history",{fontCharacter:"\\ea82"}),i.clock=new i("clock",{fontCharacter:"\\ea82"}),i.folder=new i("folder",{fontCharacter:"\\ea83"}),i.fileDirectory=new i("file-directory",{fontCharacter:"\\ea83"}),i.symbolFolder=new i("symbol-folder",{fontCharacter:"\\ea83"}),i.logoGithub=new i("logo-github",{fontCharacter:"\\ea84"}),i.markGithub=new i("mark-github",{fontCharacter:"\\ea84"}),i.github=new i("github",{fontCharacter:"\\ea84"}),i.terminal=new i("terminal",{fontCharacter:"\\ea85"}),i.console=new i("console",{fontCharacter:"\\ea85"}),i.repl=new i("repl",{fontCharacter:"\\ea85"}),i.zap=new i("zap",{fontCharacter:"\\ea86"}),i.symbolEvent=new i("symbol-event",{fontCharacter:"\\ea86"}),i.error=new i("error",{fontCharacter:"\\ea87"}),i.stop=new i("stop",{fontCharacter:"\\ea87"}),i.variable=new i("variable",{fontCharacter:"\\ea88"}),i.symbolVariable=new i("symbol-variable",{fontCharacter:"\\ea88"}),i.array=new i("array",{fontCharacter:"\\ea8a"}),i.symbolArray=new i("symbol-array",{fontCharacter:"\\ea8a"}),i.symbolModule=new i("symbol-module",{fontCharacter:"\\ea8b"}),i.symbolPackage=new i("symbol-package",{fontCharacter:"\\ea8b"}),i.symbolNamespace=new i("symbol-namespace",{fontCharacter:"\\ea8b"}),i.symbolObject=new i("symbol-object",{fontCharacter:"\\ea8b"}),i.symbolMethod=new i("symbol-method",{fontCharacter:"\\ea8c"}),i.symbolFunction=new i("symbol-function",{fontCharacter:"\\ea8c"}),i.symbolConstructor=new i("symbol-constructor",{fontCharacter:"\\ea8c"}),i.symbolBoolean=new i("symbol-boolean",{fontCharacter:"\\ea8f"}),i.symbolNull=new i("symbol-null",{fontCharacter:"\\ea8f"}),i.symbolNumeric=new i("symbol-numeric",{fontCharacter:"\\ea90"}),i.symbolNumber=new i("symbol-number",{fontCharacter:"\\ea90"}),i.symbolStructure=new i("symbol-structure",{fontCharacter:"\\ea91"}),i.symbolStruct=new i("symbol-struct",{fontCharacter:"\\ea91"}),i.symbolParameter=new i("symbol-parameter",{fontCharacter:"\\ea92"}),i.symbolTypeParameter=new i("symbol-type-parameter",{fontCharacter:"\\ea92"}),i.symbolKey=new i("symbol-key",{fontCharacter:"\\ea93"}),i.symbolText=new i("symbol-text",{fontCharacter:"\\ea93"}),i.symbolReference=new i("symbol-reference",{fontCharacter:"\\ea94"}),i.goToFile=new i("go-to-file",{fontCharacter:"\\ea94"}),i.symbolEnum=new i("symbol-enum",{fontCharacter:"\\ea95"}),i.symbolValue=new i("symbol-value",{fontCharacter:"\\ea95"}),i.symbolRuler=new i("symbol-ruler",{fontCharacter:"\\ea96"}),i.symbolUnit=new i("symbol-unit",{fontCharacter:"\\ea96"}),i.activateBreakpoints=new i("activate-breakpoints",{fontCharacter:"\\ea97"}),i.archive=new i("archive",{fontCharacter:"\\ea98"}),i.arrowBoth=new i("arrow-both",{fontCharacter:"\\ea99"}),i.arrowDown=new i("arrow-down",{fontCharacter:"\\ea9a"}),i.arrowLeft=new i("arrow-left",{fontCharacter:"\\ea9b"}),i.arrowRight=new i("arrow-right",{fontCharacter:"\\ea9c"}),i.arrowSmallDown=new i("arrow-small-down",{fontCharacter:"\\ea9d"}),i.arrowSmallLeft=new i("arrow-small-left",{fontCharacter:"\\ea9e"}),i.arrowSmallRight=new i("arrow-small-right",{fontCharacter:"\\ea9f"}),i.arrowSmallUp=new i("arrow-small-up",{fontCharacter:"\\eaa0"}),i.arrowUp=new i("arrow-up",{fontCharacter:"\\eaa1"}),i.bell=new i("bell",{fontCharacter:"\\eaa2"}),i.bold=new i("bold",{fontCharacter:"\\eaa3"}),i.book=new i("book",{fontCharacter:"\\eaa4"}),i.bookmark=new i("bookmark",{fontCharacter:"\\eaa5"}),i.debugBreakpointConditionalUnverified=new i("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),i.debugBreakpointConditional=new i("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),i.debugBreakpointConditionalDisabled=new i("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),i.debugBreakpointDataUnverified=new i("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),i.debugBreakpointData=new i("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),i.debugBreakpointDataDisabled=new i("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),i.debugBreakpointLogUnverified=new i("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),i.debugBreakpointLog=new i("debug-breakpoint-log",{fontCharacter:"\\eaab"}),i.debugBreakpointLogDisabled=new i("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),i.briefcase=new i("briefcase",{fontCharacter:"\\eaac"}),i.broadcast=new i("broadcast",{fontCharacter:"\\eaad"}),i.browser=new i("browser",{fontCharacter:"\\eaae"}),i.bug=new i("bug",{fontCharacter:"\\eaaf"}),i.calendar=new i("calendar",{fontCharacter:"\\eab0"}),i.caseSensitive=new i("case-sensitive",{fontCharacter:"\\eab1"}),i.check=new i("check",{fontCharacter:"\\eab2"}),i.checklist=new i("checklist",{fontCharacter:"\\eab3"}),i.chevronDown=new i("chevron-down",{fontCharacter:"\\eab4"}),i.dropDownButton=new i("drop-down-button",i.chevronDown.definition),i.chevronLeft=new i("chevron-left",{fontCharacter:"\\eab5"}),i.chevronRight=new i("chevron-right",{fontCharacter:"\\eab6"}),i.chevronUp=new i("chevron-up",{fontCharacter:"\\eab7"}),i.chromeClose=new i("chrome-close",{fontCharacter:"\\eab8"}),i.chromeMaximize=new i("chrome-maximize",{fontCharacter:"\\eab9"}),i.chromeMinimize=new i("chrome-minimize",{fontCharacter:"\\eaba"}),i.chromeRestore=new i("chrome-restore",{fontCharacter:"\\eabb"}),i.circleOutline=new i("circle-outline",{fontCharacter:"\\eabc"}),i.debugBreakpointUnverified=new i("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),i.circleSlash=new i("circle-slash",{fontCharacter:"\\eabd"}),i.circuitBoard=new i("circuit-board",{fontCharacter:"\\eabe"}),i.clearAll=new i("clear-all",{fontCharacter:"\\eabf"}),i.clippy=new i("clippy",{fontCharacter:"\\eac0"}),i.closeAll=new i("close-all",{fontCharacter:"\\eac1"}),i.cloudDownload=new i("cloud-download",{fontCharacter:"\\eac2"}),i.cloudUpload=new i("cloud-upload",{fontCharacter:"\\eac3"}),i.code=new i("code",{fontCharacter:"\\eac4"}),i.collapseAll=new i("collapse-all",{fontCharacter:"\\eac5"}),i.colorMode=new i("color-mode",{fontCharacter:"\\eac6"}),i.commentDiscussion=new i("comment-discussion",{fontCharacter:"\\eac7"}),i.compareChanges=new i("compare-changes",{fontCharacter:"\\eafd"}),i.creditCard=new i("credit-card",{fontCharacter:"\\eac9"}),i.dash=new i("dash",{fontCharacter:"\\eacc"}),i.dashboard=new i("dashboard",{fontCharacter:"\\eacd"}),i.database=new i("database",{fontCharacter:"\\eace"}),i.debugContinue=new i("debug-continue",{fontCharacter:"\\eacf"}),i.debugDisconnect=new i("debug-disconnect",{fontCharacter:"\\ead0"}),i.debugPause=new i("debug-pause",{fontCharacter:"\\ead1"}),i.debugRestart=new i("debug-restart",{fontCharacter:"\\ead2"}),i.debugStart=new i("debug-start",{fontCharacter:"\\ead3"}),i.debugStepInto=new i("debug-step-into",{fontCharacter:"\\ead4"}),i.debugStepOut=new i("debug-step-out",{fontCharacter:"\\ead5"}),i.debugStepOver=new i("debug-step-over",{fontCharacter:"\\ead6"}),i.debugStop=new i("debug-stop",{fontCharacter:"\\ead7"}),i.debug=new i("debug",{fontCharacter:"\\ead8"}),i.deviceCameraVideo=new i("device-camera-video",{fontCharacter:"\\ead9"}),i.deviceCamera=new i("device-camera",{fontCharacter:"\\eada"}),i.deviceMobile=new i("device-mobile",{fontCharacter:"\\eadb"}),i.diffAdded=new i("diff-added",{fontCharacter:"\\eadc"}),i.diffIgnored=new i("diff-ignored",{fontCharacter:"\\eadd"}),i.diffModified=new i("diff-modified",{fontCharacter:"\\eade"}),i.diffRemoved=new i("diff-removed",{fontCharacter:"\\eadf"}),i.diffRenamed=new i("diff-renamed",{fontCharacter:"\\eae0"}),i.diff=new i("diff",{fontCharacter:"\\eae1"}),i.discard=new i("discard",{fontCharacter:"\\eae2"}),i.editorLayout=new i("editor-layout",{fontCharacter:"\\eae3"}),i.emptyWindow=new i("empty-window",{fontCharacter:"\\eae4"}),i.exclude=new i("exclude",{fontCharacter:"\\eae5"}),i.extensions=new i("extensions",{fontCharacter:"\\eae6"}),i.eyeClosed=new i("eye-closed",{fontCharacter:"\\eae7"}),i.fileBinary=new i("file-binary",{fontCharacter:"\\eae8"}),i.fileCode=new i("file-code",{fontCharacter:"\\eae9"}),i.fileMedia=new i("file-media",{fontCharacter:"\\eaea"}),i.filePdf=new i("file-pdf",{fontCharacter:"\\eaeb"}),i.fileSubmodule=new i("file-submodule",{fontCharacter:"\\eaec"}),i.fileSymlinkDirectory=new i("file-symlink-directory",{fontCharacter:"\\eaed"}),i.fileSymlinkFile=new i("file-symlink-file",{fontCharacter:"\\eaee"}),i.fileZip=new i("file-zip",{fontCharacter:"\\eaef"}),i.files=new i("files",{fontCharacter:"\\eaf0"}),i.filter=new i("filter",{fontCharacter:"\\eaf1"}),i.flame=new i("flame",{fontCharacter:"\\eaf2"}),i.foldDown=new i("fold-down",{fontCharacter:"\\eaf3"}),i.foldUp=new i("fold-up",{fontCharacter:"\\eaf4"}),i.fold=new i("fold",{fontCharacter:"\\eaf5"}),i.folderActive=new i("folder-active",{fontCharacter:"\\eaf6"}),i.folderOpened=new i("folder-opened",{fontCharacter:"\\eaf7"}),i.gear=new i("gear",{fontCharacter:"\\eaf8"}),i.gift=new i("gift",{fontCharacter:"\\eaf9"}),i.gistSecret=new i("gist-secret",{fontCharacter:"\\eafa"}),i.gist=new i("gist",{fontCharacter:"\\eafb"}),i.gitCommit=new i("git-commit",{fontCharacter:"\\eafc"}),i.gitCompare=new i("git-compare",{fontCharacter:"\\eafd"}),i.gitMerge=new i("git-merge",{fontCharacter:"\\eafe"}),i.githubAction=new i("github-action",{fontCharacter:"\\eaff"}),i.githubAlt=new i("github-alt",{fontCharacter:"\\eb00"}),i.globe=new i("globe",{fontCharacter:"\\eb01"}),i.grabber=new i("grabber",{fontCharacter:"\\eb02"}),i.graph=new i("graph",{fontCharacter:"\\eb03"}),i.gripper=new i("gripper",{fontCharacter:"\\eb04"}),i.heart=new i("heart",{fontCharacter:"\\eb05"}),i.home=new i("home",{fontCharacter:"\\eb06"}),i.horizontalRule=new i("horizontal-rule",{fontCharacter:"\\eb07"}),i.hubot=new i("hubot",{fontCharacter:"\\eb08"}),i.inbox=new i("inbox",{fontCharacter:"\\eb09"}),i.issueClosed=new i("issue-closed",{fontCharacter:"\\eba4"}),i.issueReopened=new i("issue-reopened",{fontCharacter:"\\eb0b"}),i.issues=new i("issues",{fontCharacter:"\\eb0c"}),i.italic=new i("italic",{fontCharacter:"\\eb0d"}),i.jersey=new i("jersey",{fontCharacter:"\\eb0e"}),i.json=new i("json",{fontCharacter:"\\eb0f"}),i.kebabVertical=new i("kebab-vertical",{fontCharacter:"\\eb10"}),i.key=new i("key",{fontCharacter:"\\eb11"}),i.law=new i("law",{fontCharacter:"\\eb12"}),i.lightbulbAutofix=new i("lightbulb-autofix",{fontCharacter:"\\eb13"}),i.linkExternal=new i("link-external",{fontCharacter:"\\eb14"}),i.link=new i("link",{fontCharacter:"\\eb15"}),i.listOrdered=new i("list-ordered",{fontCharacter:"\\eb16"}),i.listUnordered=new i("list-unordered",{fontCharacter:"\\eb17"}),i.liveShare=new i("live-share",{fontCharacter:"\\eb18"}),i.loading=new i("loading",{fontCharacter:"\\eb19"}),i.location=new i("location",{fontCharacter:"\\eb1a"}),i.mailRead=new i("mail-read",{fontCharacter:"\\eb1b"}),i.mail=new i("mail",{fontCharacter:"\\eb1c"}),i.markdown=new i("markdown",{fontCharacter:"\\eb1d"}),i.megaphone=new i("megaphone",{fontCharacter:"\\eb1e"}),i.mention=new i("mention",{fontCharacter:"\\eb1f"}),i.milestone=new i("milestone",{fontCharacter:"\\eb20"}),i.mortarBoard=new i("mortar-board",{fontCharacter:"\\eb21"}),i.move=new i("move",{fontCharacter:"\\eb22"}),i.multipleWindows=new i("multiple-windows",{fontCharacter:"\\eb23"}),i.mute=new i("mute",{fontCharacter:"\\eb24"}),i.noNewline=new i("no-newline",{fontCharacter:"\\eb25"}),i.note=new i("note",{fontCharacter:"\\eb26"}),i.octoface=new i("octoface",{fontCharacter:"\\eb27"}),i.openPreview=new i("open-preview",{fontCharacter:"\\eb28"}),i.package_=new i("package",{fontCharacter:"\\eb29"}),i.paintcan=new i("paintcan",{fontCharacter:"\\eb2a"}),i.pin=new i("pin",{fontCharacter:"\\eb2b"}),i.play=new i("play",{fontCharacter:"\\eb2c"}),i.run=new i("run",{fontCharacter:"\\eb2c"}),i.plug=new i("plug",{fontCharacter:"\\eb2d"}),i.preserveCase=new i("preserve-case",{fontCharacter:"\\eb2e"}),i.preview=new i("preview",{fontCharacter:"\\eb2f"}),i.project=new i("project",{fontCharacter:"\\eb30"}),i.pulse=new i("pulse",{fontCharacter:"\\eb31"}),i.question=new i("question",{fontCharacter:"\\eb32"}),i.quote=new i("quote",{fontCharacter:"\\eb33"}),i.radioTower=new i("radio-tower",{fontCharacter:"\\eb34"}),i.reactions=new i("reactions",{fontCharacter:"\\eb35"}),i.references=new i("references",{fontCharacter:"\\eb36"}),i.refresh=new i("refresh",{fontCharacter:"\\eb37"}),i.regex=new i("regex",{fontCharacter:"\\eb38"}),i.remoteExplorer=new i("remote-explorer",{fontCharacter:"\\eb39"}),i.remote=new i("remote",{fontCharacter:"\\eb3a"}),i.remove=new i("remove",{fontCharacter:"\\eb3b"}),i.replaceAll=new i("replace-all",{fontCharacter:"\\eb3c"}),i.replace=new i("replace",{fontCharacter:"\\eb3d"}),i.repoClone=new i("repo-clone",{fontCharacter:"\\eb3e"}),i.repoForcePush=new i("repo-force-push",{fontCharacter:"\\eb3f"}),i.repoPull=new i("repo-pull",{fontCharacter:"\\eb40"}),i.repoPush=new i("repo-push",{fontCharacter:"\\eb41"}),i.report=new i("report",{fontCharacter:"\\eb42"}),i.requestChanges=new i("request-changes",{fontCharacter:"\\eb43"}),i.rocket=new i("rocket",{fontCharacter:"\\eb44"}),i.rootFolderOpened=new i("root-folder-opened",{fontCharacter:"\\eb45"}),i.rootFolder=new i("root-folder",{fontCharacter:"\\eb46"}),i.rss=new i("rss",{fontCharacter:"\\eb47"}),i.ruby=new i("ruby",{fontCharacter:"\\eb48"}),i.saveAll=new i("save-all",{fontCharacter:"\\eb49"}),i.saveAs=new i("save-as",{fontCharacter:"\\eb4a"}),i.save=new i("save",{fontCharacter:"\\eb4b"}),i.screenFull=new i("screen-full",{fontCharacter:"\\eb4c"}),i.screenNormal=new i("screen-normal",{fontCharacter:"\\eb4d"}),i.searchStop=new i("search-stop",{fontCharacter:"\\eb4e"}),i.server=new i("server",{fontCharacter:"\\eb50"}),i.settingsGear=new i("settings-gear",{fontCharacter:"\\eb51"}),i.settings=new i("settings",{fontCharacter:"\\eb52"}),i.shield=new i("shield",{fontCharacter:"\\eb53"}),i.smiley=new i("smiley",{fontCharacter:"\\eb54"}),i.sortPrecedence=new i("sort-precedence",{fontCharacter:"\\eb55"}),i.splitHorizontal=new i("split-horizontal",{fontCharacter:"\\eb56"}),i.splitVertical=new i("split-vertical",{fontCharacter:"\\eb57"}),i.squirrel=new i("squirrel",{fontCharacter:"\\eb58"}),i.starFull=new i("star-full",{fontCharacter:"\\eb59"}),i.starHalf=new i("star-half",{fontCharacter:"\\eb5a"}),i.symbolClass=new i("symbol-class",{fontCharacter:"\\eb5b"}),i.symbolColor=new i("symbol-color",{fontCharacter:"\\eb5c"}),i.symbolConstant=new i("symbol-constant",{fontCharacter:"\\eb5d"}),i.symbolEnumMember=new i("symbol-enum-member",{fontCharacter:"\\eb5e"}),i.symbolField=new i("symbol-field",{fontCharacter:"\\eb5f"}),i.symbolFile=new i("symbol-file",{fontCharacter:"\\eb60"}),i.symbolInterface=new i("symbol-interface",{fontCharacter:"\\eb61"}),i.symbolKeyword=new i("symbol-keyword",{fontCharacter:"\\eb62"}),i.symbolMisc=new i("symbol-misc",{fontCharacter:"\\eb63"}),i.symbolOperator=new i("symbol-operator",{fontCharacter:"\\eb64"}),i.symbolProperty=new i("symbol-property",{fontCharacter:"\\eb65"}),i.wrench=new i("wrench",{fontCharacter:"\\eb65"}),i.wrenchSubaction=new i("wrench-subaction",{fontCharacter:"\\eb65"}),i.symbolSnippet=new i("symbol-snippet",{fontCharacter:"\\eb66"}),i.tasklist=new i("tasklist",{fontCharacter:"\\eb67"}),i.telescope=new i("telescope",{fontCharacter:"\\eb68"}),i.textSize=new i("text-size",{fontCharacter:"\\eb69"}),i.threeBars=new i("three-bars",{fontCharacter:"\\eb6a"}),i.thumbsdown=new i("thumbsdown",{fontCharacter:"\\eb6b"}),i.thumbsup=new i("thumbsup",{fontCharacter:"\\eb6c"}),i.tools=new i("tools",{fontCharacter:"\\eb6d"}),i.triangleDown=new i("triangle-down",{fontCharacter:"\\eb6e"}),i.triangleLeft=new i("triangle-left",{fontCharacter:"\\eb6f"}),i.triangleRight=new i("triangle-right",{fontCharacter:"\\eb70"}),i.triangleUp=new i("triangle-up",{fontCharacter:"\\eb71"}),i.twitter=new i("twitter",{fontCharacter:"\\eb72"}),i.unfold=new i("unfold",{fontCharacter:"\\eb73"}),i.unlock=new i("unlock",{fontCharacter:"\\eb74"}),i.unmute=new i("unmute",{fontCharacter:"\\eb75"}),i.unverified=new i("unverified",{fontCharacter:"\\eb76"}),i.verified=new i("verified",{fontCharacter:"\\eb77"}),i.versions=new i("versions",{fontCharacter:"\\eb78"}),i.vmActive=new i("vm-active",{fontCharacter:"\\eb79"}),i.vmOutline=new i("vm-outline",{fontCharacter:"\\eb7a"}),i.vmRunning=new i("vm-running",{fontCharacter:"\\eb7b"}),i.watch=new i("watch",{fontCharacter:"\\eb7c"}),i.whitespace=new i("whitespace",{fontCharacter:"\\eb7d"}),i.wholeWord=new i("whole-word",{fontCharacter:"\\eb7e"}),i.window=new i("window",{fontCharacter:"\\eb7f"}),i.wordWrap=new i("word-wrap",{fontCharacter:"\\eb80"}),i.zoomIn=new i("zoom-in",{fontCharacter:"\\eb81"}),i.zoomOut=new i("zoom-out",{fontCharacter:"\\eb82"}),i.listFilter=new i("list-filter",{fontCharacter:"\\eb83"}),i.listFlat=new i("list-flat",{fontCharacter:"\\eb84"}),i.listSelection=new i("list-selection",{fontCharacter:"\\eb85"}),i.selection=new i("selection",{fontCharacter:"\\eb85"}),i.listTree=new i("list-tree",{fontCharacter:"\\eb86"}),i.debugBreakpointFunctionUnverified=new i("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),i.debugBreakpointFunction=new i("debug-breakpoint-function",{fontCharacter:"\\eb88"}),i.debugBreakpointFunctionDisabled=new i("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),i.debugStackframeActive=new i("debug-stackframe-active",{fontCharacter:"\\eb89"}),i.debugStackframeDot=new i("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),i.debugStackframe=new i("debug-stackframe",{fontCharacter:"\\eb8b"}),i.debugStackframeFocused=new i("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),i.debugBreakpointUnsupported=new i("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),i.symbolString=new i("symbol-string",{fontCharacter:"\\eb8d"}),i.debugReverseContinue=new i("debug-reverse-continue",{fontCharacter:"\\eb8e"}),i.debugStepBack=new i("debug-step-back",{fontCharacter:"\\eb8f"}),i.debugRestartFrame=new i("debug-restart-frame",{fontCharacter:"\\eb90"}),i.callIncoming=new i("call-incoming",{fontCharacter:"\\eb92"}),i.callOutgoing=new i("call-outgoing",{fontCharacter:"\\eb93"}),i.menu=new i("menu",{fontCharacter:"\\eb94"}),i.expandAll=new i("expand-all",{fontCharacter:"\\eb95"}),i.feedback=new i("feedback",{fontCharacter:"\\eb96"}),i.groupByRefType=new i("group-by-ref-type",{fontCharacter:"\\eb97"}),i.ungroupByRefType=new i("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),i.account=new i("account",{fontCharacter:"\\eb99"}),i.bellDot=new i("bell-dot",{fontCharacter:"\\eb9a"}),i.debugConsole=new i("debug-console",{fontCharacter:"\\eb9b"}),i.library=new i("library",{fontCharacter:"\\eb9c"}),i.output=new i("output",{fontCharacter:"\\eb9d"}),i.runAll=new i("run-all",{fontCharacter:"\\eb9e"}),i.syncIgnored=new i("sync-ignored",{fontCharacter:"\\eb9f"}),i.pinned=new i("pinned",{fontCharacter:"\\eba0"}),i.githubInverted=new i("github-inverted",{fontCharacter:"\\eba1"}),i.debugAlt=new i("debug-alt",{fontCharacter:"\\eb91"}),i.serverProcess=new i("server-process",{fontCharacter:"\\eba2"}),i.serverEnvironment=new i("server-environment",{fontCharacter:"\\eba3"}),i.pass=new i("pass",{fontCharacter:"\\eba4"}),i.stopCircle=new i("stop-circle",{fontCharacter:"\\eba5"}),i.playCircle=new i("play-circle",{fontCharacter:"\\eba6"}),i.record=new i("record",{fontCharacter:"\\eba7"}),i.debugAltSmall=new i("debug-alt-small",{fontCharacter:"\\eba8"}),i.vmConnect=new i("vm-connect",{fontCharacter:"\\eba9"}),i.cloud=new i("cloud",{fontCharacter:"\\ebaa"}),i.merge=new i("merge",{fontCharacter:"\\ebab"}),i.exportIcon=new i("export",{fontCharacter:"\\ebac"}),i.graphLeft=new i("graph-left",{fontCharacter:"\\ebad"}),i.magnet=new i("magnet",{fontCharacter:"\\ebae"}),i.notebook=new i("notebook",{fontCharacter:"\\ebaf"}),i.redo=new i("redo",{fontCharacter:"\\ebb0"}),i.checkAll=new i("check-all",{fontCharacter:"\\ebb1"}),i.pinnedDirty=new i("pinned-dirty",{fontCharacter:"\\ebb2"}),i.passFilled=new i("pass-filled",{fontCharacter:"\\ebb3"}),i.circleLargeFilled=new i("circle-large-filled",{fontCharacter:"\\ebb4"}),i.circleLargeOutline=new i("circle-large-outline",{fontCharacter:"\\ebb5"}),i.combine=new i("combine",{fontCharacter:"\\ebb6"}),i.gather=new i("gather",{fontCharacter:"\\ebb6"}),i.table=new i("table",{fontCharacter:"\\ebb7"}),i.variableGroup=new i("variable-group",{fontCharacter:"\\ebb8"}),i.typeHierarchy=new i("type-hierarchy",{fontCharacter:"\\ebb9"}),i.typeHierarchySub=new i("type-hierarchy-sub",{fontCharacter:"\\ebba"}),i.typeHierarchySuper=new i("type-hierarchy-super",{fontCharacter:"\\ebbb"}),i.gitPullRequestCreate=new i("git-pull-request-create",{fontCharacter:"\\ebbc"}),i.runAbove=new i("run-above",{fontCharacter:"\\ebbd"}),i.runBelow=new i("run-below",{fontCharacter:"\\ebbe"}),i.notebookTemplate=new i("notebook-template",{fontCharacter:"\\ebbf"}),i.debugRerun=new i("debug-rerun",{fontCharacter:"\\ebc0"}),i.workspaceTrusted=new i("workspace-trusted",{fontCharacter:"\\ebc1"}),i.workspaceUntrusted=new i("workspace-untrusted",{fontCharacter:"\\ebc2"}),i.workspaceUnspecified=new i("workspace-unspecified",{fontCharacter:"\\ebc3"}),i.terminalCmd=new i("terminal-cmd",{fontCharacter:"\\ebc4"}),i.terminalDebian=new i("terminal-debian",{fontCharacter:"\\ebc5"}),i.terminalLinux=new i("terminal-linux",{fontCharacter:"\\ebc6"}),i.terminalPowershell=new i("terminal-powershell",{fontCharacter:"\\ebc7"}),i.terminalTmux=new i("terminal-tmux",{fontCharacter:"\\ebc8"}),i.terminalUbuntu=new i("terminal-ubuntu",{fontCharacter:"\\ebc9"}),i.terminalBash=new i("terminal-bash",{fontCharacter:"\\ebca"}),i.arrowSwap=new i("arrow-swap",{fontCharacter:"\\ebcb"}),i.copy=new i("copy",{fontCharacter:"\\ebcc"}),i.personAdd=new i("person-add",{fontCharacter:"\\ebcd"}),i.filterFilled=new i("filter-filled",{fontCharacter:"\\ebce"}),i.wand=new i("wand",{fontCharacter:"\\ebcf"}),i.debugLineByLine=new i("debug-line-by-line",{fontCharacter:"\\ebd0"}),i.inspect=new i("inspect",{fontCharacter:"\\ebd1"}),i.layers=new i("layers",{fontCharacter:"\\ebd2"}),i.layersDot=new i("layers-dot",{fontCharacter:"\\ebd3"}),i.layersActive=new i("layers-active",{fontCharacter:"\\ebd4"}),i.compass=new i("compass",{fontCharacter:"\\ebd5"}),i.compassDot=new i("compass-dot",{fontCharacter:"\\ebd6"}),i.compassActive=new i("compass-active",{fontCharacter:"\\ebd7"}),i.azure=new i("azure",{fontCharacter:"\\ebd8"}),i.issueDraft=new i("issue-draft",{fontCharacter:"\\ebd9"}),i.gitPullRequestClosed=new i("git-pull-request-closed",{fontCharacter:"\\ebda"}),i.gitPullRequestDraft=new i("git-pull-request-draft",{fontCharacter:"\\ebdb"}),i.debugAll=new i("debug-all",{fontCharacter:"\\ebdc"}),i.debugCoverage=new i("debug-coverage",{fontCharacter:"\\ebdd"}),i.runErrors=new i("run-errors",{fontCharacter:"\\ebde"}),i.folderLibrary=new i("folder-library",{fontCharacter:"\\ebdf"}),i.debugContinueSmall=new i("debug-continue-small",{fontCharacter:"\\ebe0"}),i.beakerStop=new i("beaker-stop",{fontCharacter:"\\ebe1"}),i.graphLine=new i("graph-line",{fontCharacter:"\\ebe2"}),i.graphScatter=new i("graph-scatter",{fontCharacter:"\\ebe3"}),i.pieChart=new i("pie-chart",{fontCharacter:"\\ebe4"}),i.bracket=new i("bracket",i.json.definition),i.bracketDot=new i("bracket-dot",{fontCharacter:"\\ebe5"}),i.bracketError=new i("bracket-error",{fontCharacter:"\\ebe6"}),i.lockSmall=new i("lock-small",{fontCharacter:"\\ebe7"}),i.azureDevops=new i("azure-devops",{fontCharacter:"\\ebe8"}),i.verifiedFilled=new i("verified-filled",{fontCharacter:"\\ebe9"})}(G||(G={}))},"VrN/":function(st,be,Q){(function(ie,$){st.exports=$()})(this,function(){"use strict";var ie=navigator.userAgent,$=navigator.platform,M=/gecko\/\d/i.test(ie),X=/MSIE \d/.test(ie),F=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ie),U=/Edge\/(\d+)/.exec(ie),G=X||F||U,W=G&&(X?document.documentMode||6:+(U||F)[1]),i=!U&&/WebKit\//.test(ie),D=i&&/Qt\/\d+\.\d+/.test(ie),g=!U&&/Chrome\//.test(ie),m=/Opera\//.test(ie),p=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ie),u=/PhantomJS/.test(ie),f=!U&&/AppleWebKit/.test(ie)&&/Mobile\/\w+/.test(ie),o=/Android/.test(ie),h=f||o||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ie),s=f||/Mac/.test($),a=/\bCrOS\b/.test(ie),A=/win/i.test($),_=m&&ie.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(m=!1,i=!0);var S=s&&(D||m&&(_==null||_<12.11)),L=M||G&&W>=9;function R(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C=function(e,t){var n=e.className,r=R(t).exec(n);if(r){var d=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(d?r[1]+d:"")}};function w(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function x(e,t){return w(e).appendChild(t)}function c(e,t,n,r){var d=document.createElement(e);if(n&&(d.className=n),r&&(d.style.cssText=r),typeof t=="string")d.appendChild(document.createTextNode(t));else if(t)for(var k=0;k=t)return K+(t-k);K+=J-k,K+=n-K%n,k=J+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)};ee.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ee.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(K,t-d);if(d+=k-r,d+=n-d%n,r=k+1,d>=t)return r}}var se=[""];function ae(e){for(;se.length<=e;)se.push(Oe(se)+" ");return se[e]}function Oe(e){return e[e.length-1]}function Te(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Le.test(e))}function Ge(e,t){return t?t.source.indexOf("\\w")>-1&&Be(e)?!0:t.test(e):Be(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ye=/[\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&&ye.test(e)}function Ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var d=(t+n)/2,k=r<0?Math.ceil(d):Math.floor(d);if(k==t)return e(k)?t:n;e(k)?n=k:t=k+r}}function Ve(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var d=!1,k=0;kt||t==n&&K.to==t)&&(r(Math.max(K.from,t),Math.min(K.to,n),K.level==1?"rtl":"ltr",k),d=!0)}d||r(t,n,"ltr")}var Ze=null;function $e(e,t,n){var r;Ze=null;for(var d=0;dt)return d;k.to==t&&(k.from!=k.to&&n=="before"?r=d:Ze=d),k.from==t&&(k.from!=k.to&&n!="before"?r=d:Ze=d)}return r!=null?r:Ze}var tt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(te){return te<=247?e.charAt(te):1424<=te&&te<=1524?"R":1536<=te&&te<=1785?t.charAt(te-1536):1774<=te&&te<=2220?"r":8192<=te&&te<=8203?"w":te==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,k=/[LRr]/,K=/[Lb1n]/,J=/[1n]/;function Z(te,de,me){this.level=te,this.from=de,this.to=me}return function(te,de){var me=de=="ltr"?"L":"R";if(te.length==0||de=="ltr"&&!r.test(te))return!1;for(var Ie=te.length,Re=[],He=0;He-1&&(r[t]=d.slice(0,k).concat(d.slice(k+1)))}}}function Fe(e,t){var n=ut(e,t);if(!n.length)return;for(var r=Array.prototype.slice.call(arguments,2),d=0;d0}function _e(e){e.prototype.on=function(t,n){Me(this,t,n)},e.prototype.off=function(t,n){rt(this,t,n)}}function re(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ne(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function he(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function fe(e){re(e),ne(e)}function xe(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),s&&e.ctrlKey&&t==1&&(t=3),t}var ze=function(){if(G&&W<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),ot;function mt(e){if(ot==null){var t=c("span","\u200B");x(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ot=t.offsetWidth<=1&&t.offsetHeight>2&&!(G&&W<8))}var n=ot?c("span","\u200B"):c("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var ft;function wt(e){if(ft!=null)return ft;var t=x(e,document.createTextNode("A\u062EA")),n=y(t,0,1).getBoundingClientRect(),r=y(t,1,2).getBoundingClientRect();return w(e),!n||n.left==n.right?!1:ft=r.right-n.right<3}var St=` -b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var d=e.indexOf(` -`,t);d==-1&&(d=e.length);var k=e.slice(t,e.charAt(d-1)=="\r"?d-1:d),K=k.indexOf("\r");K!=-1?(r.push(k.slice(0,K)),t+=K+1):(r.push(k),t=d+1)}return r}:function(e){return e.split(/\r\n?|\n/)},dt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(r){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Ut=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Lt=null;function qt(e){if(Lt!=null)return Lt;var t=x(e,c("span","x")),r=t.getBoundingClientRect(),n=y(t,0,1).getBoundingClientRect();return Lt=Math.abs(r.left-n.left)>1}var Qt={},It={};function Ci(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Qt[e]=t}function Ki(e,t){It[e]=t}function yt(e){if(typeof e=="string"&&It.hasOwnProperty(e))e=It[e];else if(e&&typeof e.name=="string"&&It.hasOwnProperty(e.name)){var t=It[e.name];typeof t=="string"&&(t={name:t}),e=We(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return yt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return yt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Li(e,t){t=yt(t);var r=Qt[t.name];if(!r)return Li(e,"text/plain");var n=r(e,t);if(bt.hasOwnProperty(t.name)){var d=bt[t.name];for(var k in d){if(!d.hasOwnProperty(k))continue;n.hasOwnProperty(k)&&(n["_"+k]=n[k]),n[k]=d[k]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var K in t.modeProps)n[K]=t.modeProps[K];return n}var bt={};function xt(e,t){var r=bt.hasOwnProperty(e)?bt[e]:bt[e]={};b(t,r)}function Ft(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var d=t[n];d instanceof Array&&(d=d.concat([])),r[n]=d}return r}function ti(e,t){for(var r;e.innerMode&&!(r=e.innerMode(t),!r||r.mode==e);)t=r.state,e=r.mode;return r||{mode:e,state:t}}function di(e,t,r){return e.startState?e.startState(t,r):!0}var Pt=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};Pt.prototype.eol=function(){return this.pos>=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.post},Pt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Pt.prototype.backUp=function(e){this.pos-=e},Pt.prototype.column=function(){return this.lastColumnPos0?null:(k&&t!==!1&&(this.pos+=k[0].length),k)}},Pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Pt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Pt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ct(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var d=r.children[n],k=d.chunkSize();if(t=e.first&&tr?Qe(r,ct(e,r).text.length):I(t,ct(e,t.line).text.length)}function I(e,t){var r=e.ch;return r==null||r>t?Qe(e.line,t):r<0?Qe(e.line,0):e}function H(e,t){for(var r=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t},z.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},z.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},z.fromSaved=function(e,t,r){return t instanceof q?new z(e,Ft(e.mode,t.state),r,t.lookAhead):new z(e,Ft(e.mode,t),r)},z.prototype.save=function(e){var t=e!==!1?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new q(t,this.maxLookAhead):t};function ve(e,t,r,n){var d=[e.state.modeGen],k={};Ei(e,t.text,e.doc.mode,r,function(te,de){return d.push(te,de)},k,n);for(var K=r.state,J=function(te){r.baseTokens=d;var de=e.state.overlays[te],me=1,Ie=0;r.state=!0,Ei(e,t.text,de.mode,r,function(Re,He){for(var Xe=me;IeRe&&d.splice(me,1,Re,d[me+1],qe),me+=2,Ie=Math.min(Re,qe)}if(!He)return;if(de.opaque)d.splice(Xe,me-Xe,Re,"overlay "+He),me=Xe+2;else for(;Xee.options.maxHighlightLength&&Ft(e.doc.mode,n.state),k=ve(e,t,n);d&&(n.state=d),t.stateAfter=n.save(!d),t.styles=k.styles,k.classes?t.styleClasses=k.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function it(e,t,r){var n=e.doc,d=e.display;if(!n.mode.startState)return new z(n,!0,t);var k=xi(e,t,r),K=k>n.first&&ct(n,k-1).stateAfter,J=K?z.fromSaved(n,K,k):new z(n,di(n.mode),k);return n.iter(k,t,function(Z){pt(e,Z.text,J);var te=J.line;Z.stateAfter=te==t-1||te%5==0||te>=d.viewFrom&&tet.start)return k}throw new Error("Mode "+e.name+" failed to advance stream.")}var jt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function $t(e,t,r,n){var d=e.doc,k=d.mode,K;t=E(d,t);var J=ct(d,t.line),Z=it(e,t.line,r),te=new Pt(J.text,e.options.tabSize,Z),de;for(n&&(de=[]);(n||te.pose.options.maxHighlightLength?(J=!1,K&&pt(e,t,n,de.pos),de.pos=t.length,me=null):me=ji(_t(r,de,n.state,Ie),k),Ie){var Re=Ie[0].name;Re&&(me="m-"+(me?Re+" "+me:Re))}if(!J||te!=me){for(;ZK;--J){if(J<=k.first)return k.first;var Z=ct(k,J-1),te=Z.stateAfter;if(te&&(!r||J+(te instanceof q?te.lookAhead:0)<=k.modeFrontier))return J;var de=Y(Z.text,null,e.options.tabSize);(d==null||n>de)&&(d=J-1,n=de)}return d}function Qi(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontierr;n--){var d=ct(e,n).stateAfter;if(d&&(!(d instanceof q)||n+d.lookAhead=t:k.to>t);(n||(n=[])).push(new hn(K,k.from,Z?null:k.to))}}return n}function Vn(e,t,r){var n;if(e)for(var d=0;d=t:k.to>t);if(J||k.from==t&&K.type=="bookmark"&&(!r||k.marker.insertLeft)){var Z=k.from==null||(K.inclusiveLeft?k.from<=t:k.from0&&J)for(var ht=0;ht0)continue;var de=[Z,1],me=Ct(te.from,J.from),Ie=Ct(te.to,J.to);(me<0||!K.inclusiveLeft&&!me)&&de.push({from:te.from,to:J.from}),(Ie>0||!K.inclusiveRight&&!Ie)&&de.push({from:J.to,to:te.to}),d.splice.apply(d,de),Z+=de.length-3}return d}function dr(e){var t=e.markedSpans;if(!t)return;for(var r=0;rt)&&(!n||yi(n,k.marker)<0)&&(n=k.marker)}return n}function fi(e,t,r,n,d){var k=ct(e,t),K=ci&&k.markedSpans;if(K)for(var J=0;J=0&&me<=0||de<=0&&me>=0)continue;if(de<=0&&(Z.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.to,r)>=0:Ct(te.to,r)>0)||de>=0&&(Z.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.from,n)<=0:Ct(te.from,n)<0))return!0}}function Ai(e){for(var t;t=ai(e);)e=t.find(-1,!0).line;return e}function Yn(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function xn(e){for(var t,r;t=Kt(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function cr(e,t){var r=ct(e,t),n=Ai(r);return r==n?t:Ot(n)}function Tn(e,t){if(t>e.lastLine())return t;var r=ct(e,t),n;if(!an(e,r))return t;for(;n=Kt(r);)r=n.find(1,!0).line;return Ot(r)+1}function an(e,t){var r=ci&&t.markedSpans;if(r)for(var n=void 0,d=0;dt.maxLineLength&&(t.maxLineLength=d,t.maxLine=n)})}var Mn=function(e,t,r){this.text=e,En(this,t),this.height=r?r(this):1};Mn.prototype.lineNo=function(){return Ot(this)},_e(Mn);function ua(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),dr(e),En(e,r);var d=n?n(e):1;d!=e.height&&Jt(e,d)}function gt(e){e.parent=null,dr(e)}var At={},Et={};function Dt(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Et:At;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Bt(e,t){var r=T("span",null,null,i?"padding-right: .1px":null),n={pre:T("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var d=0;d<=(t.rest?t.rest.length:0);d++){var k=d?t.rest[d-1]:t.line,K=void 0;n.pos=0,n.addToken=Nt,wt(e.display.measure)&&(K=et(k,e.doc.direction))&&(n.addToken=Di(n.addToken,K)),n.map=[];var J=t!=e.display.externalMeasured&&Ot(k);dn(k,n,Ke(e,k,J)),k.styleClasses&&(k.styleClasses.bgClass&&(n.bgClass=O(k.styleClasses.bgClass,n.bgClass||"")),k.styleClasses.textClass&&(n.textClass=O(k.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(mt(e.display.measure))),d==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(i){var Z=n.content.lastChild;(/\bcm-tab\b/.test(Z.className)||Z.querySelector&&Z.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Fe(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=O(n.pre.className,n.textClass||"")),n}function Yt(e){var t=c("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Nt(e,t,r,n,d,k,K){if(!t)return;var J=e.splitSpaces?ui(t,e.trailingSpace):t,Z=e.cm.state.specialChars,te=!1,de;if(!Z.test(t))e.col+=t.length,de=document.createTextNode(J),e.map.push(e.pos,e.pos+t.length,de),G&&W<9&&(te=!0),e.pos+=t.length;else{de=document.createDocumentFragment();for(var me=0;;){Z.lastIndex=me;var Ie=Z.exec(t),Re=Ie?Ie.index-me:t.length-me;if(Re){var He=document.createTextNode(J.slice(me,me+Re));G&&W<9?de.appendChild(c("span",[He])):de.appendChild(He),e.map.push(e.pos,e.pos+Re,He),e.col+=Re,e.pos+=Re}if(!Ie)break;me+=Re+1;var Xe=void 0;if(Ie[0]==" "){var qe=e.cm.options.tabSize,rt=qe-e.col%qe;Xe=de.appendChild(c("span",ae(rt),"cm-tab")),Xe.setAttribute("role","presentation"),Xe.setAttribute("cm-text"," "),e.col+=rt}else Ie[0]=="\r"||Ie[0]==` -`?(Xe=de.appendChild(c("span",Ie[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Xe.setAttribute("cm-text",Ie[0]),e.col+=1):(Xe=e.cm.options.specialCharPlaceholder(Ie[0]),Xe.setAttribute("cm-text",Ie[0]),G&&W<9?de.appendChild(c("span",[Xe])):de.appendChild(Xe),e.col+=1);e.map.push(e.pos,e.pos+1,Xe),e.pos++}}if(e.trailingSpace=J.charCodeAt(t.length-1)==32,r||n||d||te||k||K){var lt=r||"";n&&(lt+=n),d&&(lt+=d);var at=c("span",[de],lt,k);if(K)for(var ht in K)K.hasOwnProperty(ht)&&ht!="style"&&ht!="class"&&at.setAttribute(ht,K[ht]);return e.content.appendChild(at)}e.content.appendChild(de)}function ui(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",d=0;dte&&me.from<=te);Ie++);if(me.to>=de)return e(r,n,d,k,K,J,Z);e(r,n.slice(0,me.to-te),d,k,null,J,Z),k=null,n=n.slice(me.to-te),te=me.to}}}function Mt(e,t,r,n){var d=!n&&r.widgetNode;d&&e.map.push(e.pos,e.pos+t,d),!n&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",r.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=t,e.trailingSpace=!1}function dn(e,t,r){var n=e.markedSpans,d=e.text,k=0;if(!n){for(var K=1;KZ||Rt.collapsed&&vt.to==Z&&vt.from==Z)){if(vt.to!=null&&vt.to!=Z&&Re>vt.to&&(Re=vt.to,Xe=""),Rt.className&&(He+=" "+Rt.className),Rt.css&&(Ie=(Ie?Ie+";":"")+Rt.css),Rt.startStyle&&vt.from==Z&&(qe+=" "+Rt.startStyle),Rt.endStyle&&vt.to==Re&&(ht||(ht=[])).push(Rt.endStyle,vt.to),Rt.title&&((lt||(lt={})).title=Rt.title),Rt.attributes)for(var Xt in Rt.attributes)(lt||(lt={}))[Xt]=Rt.attributes[Xt];Rt.collapsed&&(!rt||yi(rt.marker,Rt)<0)&&(rt=vt)}else vt.from>Z&&Re>vt.from&&(Re=vt.from)}if(ht)for(var gi=0;gi=J)break;for(var Gi=Math.min(J,Re);;){if(de){var Ni=Z+de.length;if(!rt){var si=Ni>Gi?de.slice(0,Gi-Z):de;t.addToken(t,si,me?me+He:He,qe,Z+si.length==Re?Xe:"",Ie,lt)}if(Ni>=Gi){de=de.slice(Gi-Z),Z=Gi;break}Z=Ni,qe=""}de=d.slice(k,k=r[te++]),me=Dt(r[te++],t.cm.options)}}}function Wt(e,t,r){this.line=t,this.rest=xn(t),this.size=this.rest?Ot(Oe(this.rest))-r+1:1,this.node=this.text=null,this.hidden=an(e,t)}function ki(e,t,r){for(var n=[],d,k=t;k2&&k.push((Z.bottom+te.top)/2-r.top)}}k.push(r.bottom-r.top)}}function es(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;nr)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function Uo(e,t){t=Ai(t);var r=Ot(t),n=e.display.externalMeasured=new Wt(e.doc,t,r);n.lineN=r;var d=n.built=Bt(e,n);return n.text=d.pre,x(e.display.lineMeasure,d.pre),n}function ts(e,t,r,n){return on(e,Xn(e,t),r,n)}function fa(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(k=Z-J,d=k-1,t>=Z&&(K="right")),d!=null){if(n=e[te+2],J==Z&&r==(n.insertLeft?"left":"right")&&(K=r),r=="left"&&d==0)for(;te&&e[te-2]==e[te-3]&&e[te-1].insertLeft;)n=e[(te-=3)+2],K="left";if(r=="right"&&d==Z-J)for(;te=0&&!((r=e[d]).left!=r.right);d--);return r}function Ho(e,t,r,n){var d=ns(t.map,r,n),k=d.node,K=d.start,J=d.end,Z=d.collapse,te;if(k.nodeType==3){for(var de=0;de<4;de++){for(;K&&we(t.line.text.charAt(d.coverStart+K));)--K;for(;d.coverStart+J0&&(Z=n="right");var me;e.options.lineWrapping&&(me=k.getClientRects()).length>1?te=me[n=="right"?me.length-1:0]:te=k.getBoundingClientRect()}if(G&&W<9&&!K&&(!te||!te.left&&!te.right)){var Ie=k.parentNode.getClientRects()[0];Ie?te={left:Ie.left,right:Ie.left+Jn(e.display),top:Ie.top,bottom:Ie.bottom}:te=is}for(var Re=te.top-t.rect.top,He=te.bottom-t.rect.top,Xe=(Re+He)/2,qe=t.view.measure.heights,rt=0;rt=n.text.length?(Z=n.text.length,te="before"):Z<=0&&(Z=0,te="after"),!J)return K(te=="before"?Z-1:Z,te=="before");function de(He,Xe,qe){var rt=J[Xe],lt=rt.level==1;return K(qe?He-1:He,lt!=qe)}var me=$e(J,Z,te),Ie=Ze,Re=de(Z,me,te=="before");return Ie!=null&&(Re.other=de(Z,Ie,te!="before")),Re}function us(e,t){var r=0;t=E(e.doc,t),e.options.lineWrapping||(r=Jn(e.display)*t.ch);var n=ct(e.doc,t.line),d=qi(n)+Hr(e.display);return{left:r,right:r,top:d,bottom:d+n.height}}function ga(e,t,r,n,d){var k=Qe(e,t,r);return k.xRel=d,n&&(k.outside=n),k}function va(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return ga(n.first,0,null,-1,-1);var d=li(n,r),k=n.first+n.size-1;if(d>k)return ga(n.first+n.size-1,ct(n,k).text.length,null,1,1);t<0&&(t=0);for(var K=ct(n,d);;){var J=Go(e,K,d,t,r),Z=rn(K,J.ch+(J.xRel>0||J.outside>0?1:0));if(!Z)return J;var te=Z.find(1);if(te.line==d)return te;K=ct(n,d=te.line)}}function hs(e,t,r,n){n-=pa(t);var d=t.text.length,k=Ue(function(K){return on(e,r,K-1).bottom<=n},d,0);return d=Ue(function(K){return on(e,r,K).top>n},k,d),{begin:k,end:d}}function ds(e,t,r,n){r||(r=Xn(e,t));var d=Wr(e,t,on(e,r,n),"line").top;return hs(e,t,r,d)}function ya(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function Go(e,t,r,n,d){d-=qi(t);var k=Xn(e,t),K=pa(t),J=0,Z=t.text.length,te=!0,de=et(t,e.doc.direction);if(de){var me=(e.options.lineWrapping?zo:Ko)(e,t,r,k,de,n,d);te=me.level!=1,J=te?me.from:me.to-1,Z=te?me.to:me.from-1}var Ie=null,Re=null,He=Ue(function(Tt){var vt=on(e,k,Tt);return vt.top+=K,vt.bottom+=K,ya(vt,n,d,!1)?(vt.top<=d&&vt.left<=n&&(Ie=Tt,Re=vt),!0):!1},J,Z),Xe,qe,rt=!1;if(Re){var lt=n-Re.left=ht.bottom?1:0}return He=Ae(t.text,He,1),ga(r,He,qe,rt,n-Xe)}function Ko(e,t,r,n,d,k,K){var J=Ue(function(me){var Ie=d[me],Re=Ie.level!=1;return ya(en(e,Qe(r,Re?Ie.to:Ie.from,Re?"before":"after"),"line",t,n),k,K,!0)},0,d.length-1),Z=d[J];if(J>0){var te=Z.level!=1,de=en(e,Qe(r,te?Z.from:Z.to,te?"after":"before"),"line",t,n);ya(de,k,K,!0)&&de.top>K&&(Z=d[J-1])}return Z}function zo(e,t,r,n,d,k,K){var J=hs(e,t,n,K),Z=J.begin,te=J.end;/\s/.test(t.text.charAt(te-1))&&te--;for(var de=null,me=null,Ie=0;Ie=te||Re.to<=Z)continue;var He=Re.level!=1,Xe=on(e,n,He?Math.min(te,Re.to)-1:Math.max(Z,Re.from)).right,qe=Xeqe)&&(de=Re,me=qe)}return de||(de=d[d.length-1]),de.fromte&&(de={from:de.from,to:te,level:de.level}),de}var Nn;function $n(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nn==null){Nn=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(c("br"));Nn.appendChild(document.createTextNode("x"))}x(e.measure,Nn);var r=Nn.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),w(e.measure),r||1}function Jn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),r=c("pre",[t],"CodeMirror-line-like");x(e.measure,r);var n=t.getBoundingClientRect(),d=(n.right-n.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ba(e){for(var t=e.display,r={},n={},d=t.gutters.clientLeft,k=t.gutters.firstChild,K=0;k;k=k.nextSibling,++K){var J=e.display.gutterSpecs[K].className;r[J]=k.offsetLeft+k.clientLeft+d,n[J]=k.clientWidth}return{fixedPos:_a(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function _a(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cs(e){var t=$n(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Jn(e.display)-3);return function(d){if(an(e.doc,d))return 0;var k=0;if(d.widgets)for(var K=0;K0&&(te=ct(e.doc,Z.line).text).length==Z.ch){var de=Y(te,te.length,e.options.tabSize)-te.length;Z=Qe(Z.line,Math.max(0,Math.round((k-qa(e.display).left)/Jn(e.display))-de))}return Z}function Bn(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var r=e.display.view,n=0;nt)&&(d.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=d.viewTo)ci&&cr(e.doc,t)d.viewFrom?Sn(e):(d.viewFrom+=n,d.viewTo+=n);else if(t<=d.viewFrom&&r>=d.viewTo)Sn(e);else if(t<=d.viewFrom){var k=Gr(e,r,r+n,1);k?(d.view=d.view.slice(k.index),d.viewFrom=k.lineN,d.viewTo+=n):Sn(e)}else if(r>=d.viewTo){var K=Gr(e,t,t,-1);K?(d.view=d.view.slice(0,K.index),d.viewTo=K.lineN):Sn(e)}else{var J=Gr(e,t,t,-1),Z=Gr(e,r,r+n,1);J&&Z?(d.view=d.view.slice(0,J.index).concat(ki(e,J.lineN,Z.lineN)).concat(d.view.slice(Z.index)),d.viewTo+=n):Sn(e)}var te=d.externalMeasured;te&&(r=d.lineN&&t=n.viewTo)return;var k=n.view[Bn(e,t)];if(k.node==null)return;var K=k.changes||(k.changes=[]);le(K,r)==-1&&K.push(r)}function Sn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gr(e,t,r,n){var d=Bn(e,t),k,K=e.display.view;if(!ci||r==e.doc.first+e.doc.size)return{index:d,lineN:r};for(var J=e.display.viewFrom,Z=0;Z0){if(d==K.length-1)return null;k=J+K[d].size-t,d++}else k=J-t;t+=k,r+=k}for(;cr(e.doc,r)!=r;){if(d==(n<0?0:K.length-1))return null;r+=n*K[d-(n<0?1:0)].size,d+=n}return{index:d,lineN:r}}function Vo(e,t,r){var n=e.display,d=n.view;d.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=ki(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=ki(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,Bn(e,r)))),n.viewTo=r}function fs(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||J.to().line1}var Qt={},It={};function Ci(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Qt[e]=t}function Ki(e,t){It[e]=t}function yt(e){if(typeof e=="string"&&It.hasOwnProperty(e))e=It[e];else if(e&&typeof e.name=="string"&&It.hasOwnProperty(e.name)){var t=It[e.name];typeof t=="string"&&(t={name:t}),e=We(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return yt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return yt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Li(e,t){t=yt(t);var n=Qt[t.name];if(!n)return Li(e,"text/plain");var r=n(e,t);if(bt.hasOwnProperty(t.name)){var d=bt[t.name];for(var k in d){if(!d.hasOwnProperty(k))continue;r.hasOwnProperty(k)&&(r["_"+k]=r[k]),r[k]=d[k]}}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var K in t.modeProps)r[K]=t.modeProps[K];return r}var bt={};function xt(e,t){var n=bt.hasOwnProperty(e)?bt[e]:bt[e]={};b(t,n)}function Ft(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var d=t[r];d instanceof Array&&(d=d.concat([])),n[r]=d}return n}function ti(e,t){for(var n;e.innerMode&&!(n=e.innerMode(t),!n||n.mode==e);)t=n.state,e=n.mode;return n||{mode:e,state:t}}function di(e,t,n){return e.startState?e.startState(t,n):!0}var Pt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Pt.prototype.eol=function(){return this.pos>=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.post},Pt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Pt.prototype.backUp=function(e){this.pos-=e},Pt.prototype.column=function(){return this.lastColumnPos0?null:(k&&t!==!1&&(this.pos+=k[0].length),k)}},Pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Pt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Pt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ct(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var d=n.children[r],k=d.chunkSize();if(t=e.first&&tn?Qe(n,ct(e,n).text.length):I(t,ct(e,t.line).text.length)}function I(e,t){var n=e.ch;return n==null||n>t?Qe(e.line,t):n<0?Qe(e.line,0):e}function H(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},z.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},z.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},z.fromSaved=function(e,t,n){return t instanceof q?new z(e,Ft(e.mode,t.state),n,t.lookAhead):new z(e,Ft(e.mode,t),n)},z.prototype.save=function(e){var t=e!==!1?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new q(t,this.maxLookAhead):t};function ve(e,t,n,r){var d=[e.state.modeGen],k={};Ei(e,t.text,e.doc.mode,n,function(te,de){return d.push(te,de)},k,r);for(var K=n.state,J=function(te){n.baseTokens=d;var de=e.state.overlays[te],me=1,Ie=0;n.state=!0,Ei(e,t.text,de.mode,n,function(Re,He){for(var Xe=me;IeRe&&d.splice(me,1,Re,d[me+1],qe),me+=2,Ie=Math.min(Re,qe)}if(!He)return;if(de.opaque)d.splice(Xe,me-Xe,Re,"overlay "+He),me=Xe+2;else for(;Xee.options.maxHighlightLength&&Ft(e.doc.mode,r.state),k=ve(e,t,r);d&&(r.state=d),t.stateAfter=r.save(!d),t.styles=k.styles,k.classes?t.styleClasses=k.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function it(e,t,n){var r=e.doc,d=e.display;if(!r.mode.startState)return new z(r,!0,t);var k=xi(e,t,n),K=k>r.first&&ct(r,k-1).stateAfter,J=K?z.fromSaved(r,K,k):new z(r,di(r.mode),k);return r.iter(k,t,function(Z){pt(e,Z.text,J);var te=J.line;Z.stateAfter=te==t-1||te%5==0||te>=d.viewFrom&&tet.start)return k}throw new Error("Mode "+e.name+" failed to advance stream.")}var jt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function $t(e,t,n,r){var d=e.doc,k=d.mode,K;t=E(d,t);var J=ct(d,t.line),Z=it(e,t.line,n),te=new Pt(J.text,e.options.tabSize,Z),de;for(r&&(de=[]);(r||te.pose.options.maxHighlightLength?(J=!1,K&&pt(e,t,r,de.pos),de.pos=t.length,me=null):me=ji(_t(n,de,r.state,Ie),k),Ie){var Re=Ie[0].name;Re&&(me="m-"+(me?Re+" "+me:Re))}if(!J||te!=me){for(;ZK;--J){if(J<=k.first)return k.first;var Z=ct(k,J-1),te=Z.stateAfter;if(te&&(!n||J+(te instanceof q?te.lookAhead:0)<=k.modeFrontier))return J;var de=Y(Z.text,null,e.options.tabSize);(d==null||r>de)&&(d=J-1,r=de)}return d}function Qi(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontiern;r--){var d=ct(e,r).stateAfter;if(d&&(!(d instanceof q)||r+d.lookAhead=t:k.to>t);(r||(r=[])).push(new ur(K,k.from,Z?null:k.to))}}return r}function zr(e,t,n){var r;if(e)for(var d=0;d=t:k.to>t);if(J||k.from==t&&K.type=="bookmark"&&(!n||k.marker.insertLeft)){var Z=k.from==null||(K.inclusiveLeft?k.from<=t:k.from0&&J)for(var ht=0;ht0)continue;var de=[Z,1],me=Ct(te.from,J.from),Ie=Ct(te.to,J.to);(me<0||!K.inclusiveLeft&&!me)&&de.push({from:te.from,to:J.from}),(Ie>0||!K.inclusiveRight&&!Ie)&&de.push({from:J.to,to:te.to}),d.splice.apply(d,de),Z+=de.length-3}return d}function dn(e){var t=e.markedSpans;if(!t)return;for(var n=0;nt)&&(!r||yi(r,k.marker)<0)&&(r=k.marker)}return r}function fi(e,t,n,r,d){var k=ct(e,t),K=ci&&k.markedSpans;if(K)for(var J=0;J=0&&me<=0||de<=0&&me>=0)continue;if(de<=0&&(Z.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.to,n)>=0:Ct(te.to,n)>0)||de>=0&&(Z.marker.inclusiveRight&&d.inclusiveLeft?Ct(te.from,r)<=0:Ct(te.from,r)<0))return!0}}function Ai(e){for(var t;t=ai(e);)e=t.find(-1,!0).line;return e}function Vr(e){for(var t;t=Kt(e);)e=t.find(1,!0).line;return e}function Er(e){for(var t,n;t=Kt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function cn(e,t){var n=ct(e,t),r=Ai(n);return n==r?t:Ot(r)}function xr(e,t){if(t>e.lastLine())return t;var n=ct(e,t),r;if(!nr(e,n))return t;for(;r=Kt(n);)n=r.find(1,!0).line;return Ot(n)+1}function nr(e,t){var n=ci&&t.markedSpans;if(n)for(var r=void 0,d=0;dt.maxLineLength&&(t.maxLineLength=d,t.maxLine=r)})}var kr=function(e,t,n){this.text=e,_r(this,t),this.height=n?n(this):1};kr.prototype.lineNo=function(){return Ot(this)},_e(kr);function ua(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),dn(e),_r(e,n);var d=r?r(e):1;d!=e.height&&Jt(e,d)}function gt(e){e.parent=null,dn(e)}var At={},Et={};function Dt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Et:At;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Bt(e,t){var n=T("span",null,null,i?"padding-right: .1px":null),r={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var d=0;d<=(t.rest?t.rest.length:0);d++){var k=d?t.rest[d-1]:t.line,K=void 0;r.pos=0,r.addToken=Nt,wt(e.display.measure)&&(K=et(k,e.doc.direction))&&(r.addToken=Di(r.addToken,K)),r.map=[];var J=t!=e.display.externalMeasured&&Ot(k);hr(k,r,Ke(e,k,J)),k.styleClasses&&(k.styleClasses.bgClass&&(r.bgClass=O(k.styleClasses.bgClass,r.bgClass||"")),k.styleClasses.textClass&&(r.textClass=O(k.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(mt(e.display.measure))),d==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(i){var Z=r.content.lastChild;(/\bcm-tab\b/.test(Z.className)||Z.querySelector&&Z.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Fe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=O(r.pre.className,r.textClass||"")),r}function Yt(e){var t=c("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Nt(e,t,n,r,d,k,K){if(!t)return;var J=e.splitSpaces?ui(t,e.trailingSpace):t,Z=e.cm.state.specialChars,te=!1,de;if(!Z.test(t))e.col+=t.length,de=document.createTextNode(J),e.map.push(e.pos,e.pos+t.length,de),G&&W<9&&(te=!0),e.pos+=t.length;else{de=document.createDocumentFragment();for(var me=0;;){Z.lastIndex=me;var Ie=Z.exec(t),Re=Ie?Ie.index-me:t.length-me;if(Re){var He=document.createTextNode(J.slice(me,me+Re));G&&W<9?de.appendChild(c("span",[He])):de.appendChild(He),e.map.push(e.pos,e.pos+Re,He),e.col+=Re,e.pos+=Re}if(!Ie)break;me+=Re+1;var Xe=void 0;if(Ie[0]==" "){var qe=e.cm.options.tabSize,nt=qe-e.col%qe;Xe=de.appendChild(c("span",ae(nt),"cm-tab")),Xe.setAttribute("role","presentation"),Xe.setAttribute("cm-text"," "),e.col+=nt}else Ie[0]=="\r"||Ie[0]==` +`?(Xe=de.appendChild(c("span",Ie[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Xe.setAttribute("cm-text",Ie[0]),e.col+=1):(Xe=e.cm.options.specialCharPlaceholder(Ie[0]),Xe.setAttribute("cm-text",Ie[0]),G&&W<9?de.appendChild(c("span",[Xe])):de.appendChild(Xe),e.col+=1);e.map.push(e.pos,e.pos+1,Xe),e.pos++}}if(e.trailingSpace=J.charCodeAt(t.length-1)==32,n||r||d||te||k||K){var lt=n||"";r&&(lt+=r),d&&(lt+=d);var at=c("span",[de],lt,k);if(K)for(var ht in K)K.hasOwnProperty(ht)&&ht!="style"&&ht!="class"&&at.setAttribute(ht,K[ht]);return e.content.appendChild(at)}e.content.appendChild(de)}function ui(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",d=0;dte&&me.from<=te);Ie++);if(me.to>=de)return e(n,r,d,k,K,J,Z);e(n,r.slice(0,me.to-te),d,k,null,J,Z),k=null,r=r.slice(me.to-te),te=me.to}}}function Mt(e,t,n,r){var d=!r&&n.widgetNode;d&&e.map.push(e.pos,e.pos+t,d),!r&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",n.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=t,e.trailingSpace=!1}function hr(e,t,n){var r=e.markedSpans,d=e.text,k=0;if(!r){for(var K=1;KZ||Rt.collapsed&&vt.to==Z&&vt.from==Z)){if(vt.to!=null&&vt.to!=Z&&Re>vt.to&&(Re=vt.to,Xe=""),Rt.className&&(He+=" "+Rt.className),Rt.css&&(Ie=(Ie?Ie+";":"")+Rt.css),Rt.startStyle&&vt.from==Z&&(qe+=" "+Rt.startStyle),Rt.endStyle&&vt.to==Re&&(ht||(ht=[])).push(Rt.endStyle,vt.to),Rt.title&&((lt||(lt={})).title=Rt.title),Rt.attributes)for(var Xt in Rt.attributes)(lt||(lt={}))[Xt]=Rt.attributes[Xt];Rt.collapsed&&(!nt||yi(nt.marker,Rt)<0)&&(nt=vt)}else vt.from>Z&&Re>vt.from&&(Re=vt.from)}if(ht)for(var gi=0;gi=J)break;for(var Gi=Math.min(J,Re);;){if(de){var Ni=Z+de.length;if(!nt){var si=Ni>Gi?de.slice(0,Gi-Z):de;t.addToken(t,si,me?me+He:He,qe,Z+si.length==Re?Xe:"",Ie,lt)}if(Ni>=Gi){de=de.slice(Gi-Z),Z=Gi;break}Z=Ni,qe=""}de=d.slice(k,k=n[te++]),me=Dt(n[te++],t.cm.options)}}}function Wt(e,t,n){this.line=t,this.rest=Er(t),this.size=this.rest?Ot(Oe(this.rest))-n+1:1,this.node=this.text=null,this.hidden=nr(e,t)}function ki(e,t,n){for(var r=[],d,k=t;k2&&k.push((Z.bottom+te.top)/2-n.top)}}k.push(n.bottom-n.top)}}function es(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function Uo(e,t){t=Ai(t);var n=Ot(t),r=e.display.externalMeasured=new Wt(e.doc,t,n);r.lineN=n;var d=r.built=Bt(e,r);return r.text=d.pre,x(e.display.lineMeasure,d.pre),r}function ts(e,t,n,r){return sr(e,Yr(e,t),n,r)}function fa(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(k=Z-J,d=k-1,t>=Z&&(K="right")),d!=null){if(r=e[te+2],J==Z&&n==(r.insertLeft?"left":"right")&&(K=n),n=="left"&&d==0)for(;te&&e[te-2]==e[te-3]&&e[te-1].insertLeft;)r=e[(te-=3)+2],K="left";if(n=="right"&&d==Z-J)for(;te=0&&!((n=e[d]).left!=n.right);d--);return n}function Ho(e,t,n,r){var d=rs(t.map,n,r),k=d.node,K=d.start,J=d.end,Z=d.collapse,te;if(k.nodeType==3){for(var de=0;de<4;de++){for(;K&&we(t.line.text.charAt(d.coverStart+K));)--K;for(;d.coverStart+J0&&(Z=r="right");var me;e.options.lineWrapping&&(me=k.getClientRects()).length>1?te=me[r=="right"?me.length-1:0]:te=k.getBoundingClientRect()}if(G&&W<9&&!K&&(!te||!te.left&&!te.right)){var Ie=k.parentNode.getClientRects()[0];Ie?te={left:Ie.left,right:Ie.left+$r(e.display),top:Ie.top,bottom:Ie.bottom}:te=is}for(var Re=te.top-t.rect.top,He=te.bottom-t.rect.top,Xe=(Re+He)/2,qe=t.view.measure.heights,nt=0;nt=r.text.length?(Z=r.text.length,te="before"):Z<=0&&(Z=0,te="after"),!J)return K(te=="before"?Z-1:Z,te=="before");function de(He,Xe,qe){var nt=J[Xe],lt=nt.level==1;return K(qe?He-1:He,lt!=qe)}var me=$e(J,Z,te),Ie=Ze,Re=de(Z,me,te=="before");return Ie!=null&&(Re.other=de(Z,Ie,te!="before")),Re}function us(e,t){var n=0;t=E(e.doc,t),e.options.lineWrapping||(n=$r(e.display)*t.ch);var r=ct(e.doc,t.line),d=qi(r)+Hn(e.display);return{left:n,right:n,top:d,bottom:d+r.height}}function ga(e,t,n,r,d){var k=Qe(e,t,n);return k.xRel=d,r&&(k.outside=r),k}function va(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return ga(r.first,0,null,-1,-1);var d=li(r,n),k=r.first+r.size-1;if(d>k)return ga(r.first+r.size-1,ct(r,k).text.length,null,1,1);t<0&&(t=0);for(var K=ct(r,d);;){var J=Go(e,K,d,t,n),Z=rr(K,J.ch+(J.xRel>0||J.outside>0?1:0));if(!Z)return J;var te=Z.find(1);if(te.line==d)return te;K=ct(r,d=te.line)}}function hs(e,t,n,r){r-=pa(t);var d=t.text.length,k=Ue(function(K){return sr(e,n,K-1).bottom<=r},d,0);return d=Ue(function(K){return sr(e,n,K).top>r},k,d),{begin:k,end:d}}function ds(e,t,n,r){n||(n=Yr(e,t));var d=Wn(e,t,sr(e,n,r),"line").top;return hs(e,t,n,d)}function ya(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Go(e,t,n,r,d){d-=qi(t);var k=Yr(e,t),K=pa(t),J=0,Z=t.text.length,te=!0,de=et(t,e.doc.direction);if(de){var me=(e.options.lineWrapping?zo:Ko)(e,t,n,k,de,r,d);te=me.level!=1,J=te?me.from:me.to-1,Z=te?me.to:me.from-1}var Ie=null,Re=null,He=Ue(function(Tt){var vt=sr(e,k,Tt);return vt.top+=K,vt.bottom+=K,ya(vt,r,d,!1)?(vt.top<=d&&vt.left<=r&&(Ie=Tt,Re=vt),!0):!1},J,Z),Xe,qe,nt=!1;if(Re){var lt=r-Re.left=ht.bottom?1:0}return He=Ae(t.text,He,1),ga(n,He,qe,nt,r-Xe)}function Ko(e,t,n,r,d,k,K){var J=Ue(function(me){var Ie=d[me],Re=Ie.level!=1;return ya(er(e,Qe(n,Re?Ie.to:Ie.from,Re?"before":"after"),"line",t,r),k,K,!0)},0,d.length-1),Z=d[J];if(J>0){var te=Z.level!=1,de=er(e,Qe(n,te?Z.from:Z.to,te?"after":"before"),"line",t,r);ya(de,k,K,!0)&&de.top>K&&(Z=d[J-1])}return Z}function zo(e,t,n,r,d,k,K){var J=hs(e,t,r,K),Z=J.begin,te=J.end;/\s/.test(t.text.charAt(te-1))&&te--;for(var de=null,me=null,Ie=0;Ie=te||Re.to<=Z)continue;var He=Re.level!=1,Xe=sr(e,r,He?Math.min(te,Re.to)-1:Math.max(Z,Re.from)).right,qe=Xeqe)&&(de=Re,me=qe)}return de||(de=d[d.length-1]),de.fromte&&(de={from:de.from,to:te,level:de.level}),de}var Pr;function Xr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Pr==null){Pr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Pr.appendChild(document.createTextNode("x")),Pr.appendChild(c("br"));Pr.appendChild(document.createTextNode("x"))}x(e.measure,Pr);var n=Pr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),w(e.measure),n||1}function $r(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),n=c("pre",[t],"CodeMirror-line-like");x(e.measure,n);var r=t.getBoundingClientRect(),d=(r.right-r.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function ba(e){for(var t=e.display,n={},r={},d=t.gutters.clientLeft,k=t.gutters.firstChild,K=0;k;k=k.nextSibling,++K){var J=e.display.gutterSpecs[K].className;n[J]=k.offsetLeft+k.clientLeft+d,r[J]=k.clientWidth}return{fixedPos:_a(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function _a(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cs(e){var t=Xr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/$r(e.display)-3);return function(d){if(nr(e.doc,d))return 0;var k=0;if(d.widgets)for(var K=0;K0&&(te=ct(e.doc,Z.line).text).length==Z.ch){var de=Y(te,te.length,e.options.tabSize)-te.length;Z=Qe(Z.line,Math.max(0,Math.round((k-qa(e.display).left)/$r(e.display))-de))}return Z}function Fr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;rt)&&(d.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=d.viewTo)ci&&cn(e.doc,t)d.viewFrom?wr(e):(d.viewFrom+=r,d.viewTo+=r);else if(t<=d.viewFrom&&n>=d.viewTo)wr(e);else if(t<=d.viewFrom){var k=Gn(e,n,n+r,1);k?(d.view=d.view.slice(k.index),d.viewFrom=k.lineN,d.viewTo+=r):wr(e)}else if(n>=d.viewTo){var K=Gn(e,t,t,-1);K?(d.view=d.view.slice(0,K.index),d.viewTo=K.lineN):wr(e)}else{var J=Gn(e,t,t,-1),Z=Gn(e,n,n+r,1);J&&Z?(d.view=d.view.slice(0,J.index).concat(ki(e,J.lineN,Z.lineN)).concat(d.view.slice(Z.index)),d.viewTo+=r):wr(e)}var te=d.externalMeasured;te&&(n=d.lineN&&t=r.viewTo)return;var k=r.view[Fr(e,t)];if(k.node==null)return;var K=k.changes||(k.changes=[]);le(K,n)==-1&&K.push(n)}function wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gn(e,t,n,r){var d=Fr(e,t),k,K=e.display.view;if(!ci||n==e.doc.first+e.doc.size)return{index:d,lineN:n};for(var J=e.display.viewFrom,Z=0;Z0){if(d==K.length-1)return null;k=J+K[d].size-t,d++}else k=J-t;t+=k,n+=k}for(;cn(e.doc,n)!=n;){if(d==(r<0?0:K.length-1))return null;n+=r*K[d-(r<0?1:0)].size,d+=r}return{index:d,lineN:n}}function Vo(e,t,n){var r=e.display,d=r.view;d.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=ki(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=ki(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Fr(e,n)))),r.viewTo=n}function fs(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||J.to().line0?t.blinker=setInterval(function(){e.hasFocus()||Qn(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function gs(e){e.state.focused||(e.display.input.focus(),Ta(e))}function vs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Qn(e))},100)}function Ta(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Fe(e,"focus",e,t),e.state.focused=!0,B(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),i&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e)}function Qn(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(Fe(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function zr(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n.005||de<-.005)&&(Jt(d.line,K),ys(d.line),d.rest))for(var me=0;mee.display.sizerWidth){var Ie=Math.ceil(J/Jn(e.display));Ie>e.display.maxLineLength&&(e.display.maxLineLength=Ie,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}function ys(e){if(e.widgets)for(var t=0;t=K&&(k=li(t,qi(ct(t,Z))-e.wrapper.clientHeight),K=Z)}return{from:k,to:Math.max(K,k+1)}}function Xo(e,t){if(je(e,"scrollCursorIntoView"))return;var r=e.display,n=r.sizer.getBoundingClientRect(),d=null;if(t.top+n.top<0?d=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!u){var k=c("div","\u200B",null,`position: absolute; - top: `+(t.top-r.viewOffset-Hr(e.display))+`px; - height: `+(t.bottom-t.top+sn(e)+r.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(k),k.scrollIntoView(d),e.display.lineSpace.removeChild(k)}}function $o(e,t,r,n){n==null&&(n=0);var d;!e.options.lineWrapping&&t==r&&(t=t.ch?Qe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,r=t.sticky=="before"?Qe(t.line,t.ch+1,"before"):t);for(var k=0;k<5;k++){var K=!1,J=en(e,t),Z=!r||r==t?J:en(e,r);d={left:Math.min(J.left,Z.left),top:Math.min(J.top,Z.top)-n,right:Math.max(J.left,Z.left),bottom:Math.max(J.bottom,Z.bottom)+n};var te=wa(e,d),de=e.doc.scrollTop,me=e.doc.scrollLeft;if(te.scrollTop!=null&&(Er(e,te.scrollTop),Math.abs(e.doc.scrollTop-de)>1&&(K=!0)),te.scrollLeft!=null&&(Un(e,te.scrollLeft),Math.abs(e.doc.scrollLeft-me)>1&&(K=!0)),!K)break}return d}function Jo(e,t){var r=wa(e,t);r.scrollTop!=null&&Er(e,r.scrollTop),r.scrollLeft!=null&&Un(e,r.scrollLeft)}function wa(e,t){var r=e.display,n=$n(e.display);t.top<0&&(t.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,k=ca(e),K={};t.bottom-t.top>k&&(t.bottom=t.top+k);var J=e.doc.height+da(r),Z=t.topJ-n;if(t.topd+k){var de=Math.min(t.top,(te?J:t.bottom)-k);de!=d&&(K.scrollTop=de)}var me=e.options.fixedGutter?0:r.gutters.offsetWidth,Ie=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-me,Re=Pn(e)-r.gutters.offsetWidth,He=t.right-t.left>Re;return He&&(t.right=t.left+Re),t.left<10?K.scrollLeft=0:t.leftRe+Ie-3&&(K.scrollLeft=t.right+(He?0:10)-Re),K}function Sa(e,t){if(t==null)return;Yr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Zn(e){Yr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function _r(e,t,r){(t!=null||r!=null)&&Yr(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function Qo(e,t){Yr(e),e.curOp.scrollToPos=t}function Yr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=us(e,t.from),n=us(e,t.to);bs(e,r,n,t.margin)}}function bs(e,t,r,n){var d=wa(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});_r(e,d.scrollLeft,d.scrollTop)}function Er(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;M||Aa(e,{top:t}),_s(e,t,!0),M&&Aa(e),wr(e,100)}function _s(e,t,r){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!r)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Un(e,t,r,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Ss(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function xr(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+da(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var jn=function(e,t,r){this.cm=r;var n=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=d.tabIndex=-1,e(n),e(d),Me(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Me(d,"scroll",function(){d.clientWidth&&t(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,G&&W<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var d=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var k=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+k)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},jn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jn.prototype.zeroWidthHack=function(){var e=s&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},jn.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto";function n(){var d=e.getBoundingClientRect(),k=r=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);k!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},jn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Tr=function(){};Tr.prototype.update=function(){return{bottom:0,right:0}},Tr.prototype.setScrollLeft=function(){},Tr.prototype.setScrollTop=function(){},Tr.prototype.clear=function(){};function qn(e,t){t||(t=xr(e));var r=e.display.barWidth,n=e.display.barHeight;Es(e,t);for(var d=0;d<4&&r!=e.display.barWidth||n!=e.display.barHeight;d++)r!=e.display.barWidth&&e.options.lineWrapping&&zr(e),Es(e,xr(e)),r=e.display.barWidth,n=e.display.barHeight}function Es(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var xs={native:jn,null:Tr};function Ts(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Me(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?Un(e,t):Er(e,t)},e),e.display.scrollbars.addClass&&B(e.display.wrapper,e.display.scrollbars.addClass)}var Zo=0;function Hn(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:++Zo},Ji(e.curOp)}function Wn(e){var t=e.curOp;t&&Io(t,function(r){for(var n=0;n=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Xr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&Ca(e.cm,e.update)}function il(e){var t=e.cm,r=t.display;e.updatedDisplay&&zr(t),e.barMeasure=xr(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ts(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Pn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function nl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var r=+new Date+e.options.workTime,n=it(e,t.highlightFrontier),d=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(k){if(n.line>=e.display.viewFrom){var K=k.styles,J=k.text.length>e.options.maxHighlightLength?Ft(t.mode,n.state):null,Z=ve(e,k,n,!0);J&&(n.state=J),k.styles=Z.styles;var te=k.styleClasses,de=Z.classes;de?k.styleClasses=de:te&&(k.styleClasses=null);for(var me=!K||K.length!=k.styles.length||te!=de&&(!te||!de||te.bgClass!=de.bgClass||te.textClass!=de.textClass),Ie=0;!me&&Ier)return wr(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),d.length&&Wi(e,function(){for(var k=0;k=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&fs(e)==0)return!1;Cs(e)&&(Sn(e),t.dims=ba(e));var d=n.first+n.size,k=Math.max(t.visible.from-e.options.viewportMargin,n.first),K=Math.min(d,t.visible.to+e.options.viewportMargin);r.viewFromK&&r.viewTo-K<20&&(K=Math.min(d,r.viewTo)),ci&&(k=cr(e.doc,k),K=Tn(e.doc,K));var J=k!=r.viewFrom||K!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Vo(e,k,K),r.viewOffset=qi(ct(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var Z=fs(e);if(!J&&Z==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var te=ol(e);return Z>4&&(r.lineDiv.style.display="none"),ul(e,r.updateLineNumbers,t.dims),Z>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,ll(te),w(r.cursorDiv),w(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,J&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,wr(e,400)),r.updateLineNumbers=null,!0}function ws(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Pn(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+da(e.display)-ca(e),r.top)}),t.visible=Vr(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Vr(e.display,e.doc,r));if(!Ca(e,t))break;zr(e);var d=xr(e);br(e),qn(e,d),Ra(e,d),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Aa(e,t){var r=new Xr(e,t);if(Ca(e,r)){zr(e),ws(e,r);var n=xr(e);br(e),qn(e,n),Ra(e,n),r.finish()}}function ul(e,t,r){var n=e.display,d=e.options.lineNumbers,k=n.lineDiv,K=k.firstChild;function J(He){var Xe=He.nextSibling;return i&&s&&e.display.currentWheelTarget==He?He.style.display="none":He.parentNode.removeChild(He),Xe}for(var Z=n.view,te=n.viewFrom,de=0;de-1&&(Re=!1),Xa(e,me,te,r)),Re&&(w(me.lineNumber),me.lineNumber.appendChild(document.createTextNode(Xi(e.options,te)))),K=me.node.nextSibling}te+=me.size}for(;K;)K=J(K)}function Oa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ra(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+sn(e)+"px"}function Ss(e){var t=e.display,r=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=_a(t)-t.scroller.scrollLeft+e.doc.scrollLeft,d=t.gutters.offsetWidth,k=n+"px",K=0;KK.clientWidth,Z=K.scrollHeight>K.clientHeight;if(!(n&&J||d&&Z))return;if(d&&s&&i){e:for(var te=t.target,de=k.view;te!=K;te=te.parentNode)for(var me=0;me=0&&Ct(e,n.to())<=0)return r}return-1};var Gt=function(e,t){this.anchor=e,this.head=t};Gt.prototype.from=function(){return yn(this.anchor,this.head)},Gt.prototype.to=function(){return vn(this.anchor,this.head)},Gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function tn(e,t,r){var n=e&&e.options.selectionsMayTouch,d=t[r];t.sort(function(Ie,Re){return Ct(Ie.from(),Re.from())}),r=le(t,d);for(var k=1;k0:Z>=0){var te=yn(J.from(),K.from()),de=vn(J.to(),K.to()),me=J.empty()?K.from()==K.head:J.from()==J.head;k<=r&&--r,t.splice(--k,2,new Gt(me?de:te,me?te:de))}}return new Yi(t,r)}function Cn(e,t){return new Yi([new Gt(e,t||e)],0)}function An(e){return e.text?Qe(e.from.line+e.text.length-1,Oe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ls(e,t){if(Ct(e,t.from)<0)return e;if(Ct(e,t.to)<=0)return An(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=An(t).ch-t.to.ch),Qe(r,n)}function Ia(e,t){for(var r=[],n=0;n1&&e.remove(J.line+1,He-1),e.insert(J.line+1,rt)}bi(e,"change",e,t)}function On(e,t,r){function n(d,k,K){if(d.linked)for(var J=0;J1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Oe(e.done)}function Ns(e,t,r,n){var d=e.history;d.undone.length=0;var k=+new Date,K,J;if((d.lastOp==n||d.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&d.lastModTime>k-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(K=pl(d,d.lastOp==n)))J=Oe(K.changes),Ct(t.from,t.to)==0&&Ct(t.from,J.to)==0?J.to=An(t):K.changes.push(Ma(e,t));else{var Z=Oe(d.done);for((!Z||!Z.ranges)&&Qr(e.sel,d.done),K={changes:[Ma(e,t)],generation:d.generation},d.done.push(K);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(r),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=k,d.lastOp=d.lastSelOp=n,d.lastOrigin=d.lastSelOrigin=t.origin,J||Fe(e,"historyAdded")}function ml(e,t,r,n){var d=t.charAt(0);return d=="*"||d=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,r,n){var d=e.history,k=n&&n.origin;r==d.lastSelOp||k&&d.lastSelOrigin==k&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==k||ml(e,k,Oe(d.done),t))?d.done[d.done.length-1]=t:Qr(t,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=k,d.lastSelOp=r,n&&n.clearRedo!==!1&&Ps(d.undone)}function Qr(e,t){var r=Oe(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Fs(e,t,r,n){var d=t["spans_"+e.id],k=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(K){K.markedSpans&&((d||(d=t["spans_"+e.id]={}))[k]=K.markedSpans),++k})}function vl(e){if(!e)return null;for(var t,r=0;r-1&&(Oe(J)[me]=te[me],delete te[me]))}}return n}function Pa(e,t,r,n){if(n){var d=e.anchor;if(r){var k=Ct(t,d)<0;k!=Ct(r,d)<0?(d=t,t=r):k!=Ct(t,r)<0&&(t=r)}return new Gt(d,t)}else return new Gt(r||t,t)}function Zr(e,t,r,n,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),wi(e,new Yi([Pa(e.sel.primary(),t,r,d)],0),n)}function Us(e,t,r){for(var n=[],d=e.cm&&(e.cm.display.shift||e.extend),k=0;k=t.ch:J.to>t.ch))){if(d&&(Fe(Z,"beforeCursorEnter"),Z.explicitlyCleared))if(k.markedSpans){--K;continue}else break;if(!Z.atomic)continue;if(r){var me=Z.find(n<0?1:-1),Ie=void 0;if((n<0?de:te)&&(me=zs(e,me,-n,me&&me.line==t.line?k:null)),me&&me.line==t.line&&(Ie=Ct(me,r))&&(n<0?Ie<0:Ie>0))return tr(e,me,t,n,d)}var Re=Z.find(n<0?-1:1);return(n<0?te:de)&&(Re=zs(e,Re,n,Re.line==t.line?k:null)),Re?tr(e,Re,t,n,d):null}}return t}function ea(e,t,r,n,d){var k=n||1,K=tr(e,t,r,k,d)||!d&&tr(e,t,r,k,!0)||tr(e,t,r,-k,d)||!d&&tr(e,t,r,-k,!0);return K||(e.cantEdit=!0,Qe(e.first,0))}function zs(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?E(e,Qe(t.line-1)):null:r>0&&t.ch==(n||ct(e,t.line)).text.length?t.line=0;--d)Xs(e,{from:n[d].from,to:n[d].to,text:d?[""]:t.text,origin:t.origin});else Xs(e,t)}function Xs(e,t){if(t.text.length==1&&t.text[0]==""&&Ct(t.from,t.to)==0)return;var r=Ia(e,t);Ns(e,t,r,e.cm?e.cm.curOp.id:NaN),Ar(e,t,r,Zi(e,t));var n=[];On(e,function(d,k){!k&&le(n,d.history)==-1&&(Zs(d.history,t),n.push(d.history)),Ar(d,t,null,Zi(d,t))})}function ta(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!r)return;for(var d=e.history,k,K=e.sel,J=t=="undo"?d.done:d.undone,Z=t=="undo"?d.undone:d.done,te=0;te=0;--Re){var He=Ie(Re);if(He)return He.v}}function $s(e,t){if(t==0)return;if(e.first+=t,e.sel=new Yi(Te(e.sel.ranges,function(d){return new Gt(Qe(d.anchor.line+t,d.anchor.ch),Qe(d.head.line+t,d.head.ch))}),e.sel.primIndex),e.cm){Mi(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())return;if(t.from.linek&&(t={from:t.from,to:Qe(k,ct(e,k).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ui(e,t.from,t.to),r||(r=Ia(e,t)),e.cm?_l(e.cm,t,n):ka(e,t,n),qr(e,r,Se),e.cantEdit&&ea(e,Qe(e.firstLine(),0))&&(e.cantEdit=!1)}function _l(e,t,r){var n=e.doc,d=e.display,k=t.from,K=t.to,J=!1,Z=k.line;e.options.lineWrapping||(Z=Ot(Ai(ct(n,k.line))),n.iter(Z,K.line+1,function(Re){if(Re==d.maxLine)return J=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Ee(e),ka(n,t,r,cs(e)),e.options.lineWrapping||(n.iter(Z,k.line+t.text.length,function(Re){var He=pr(Re);He>d.maxLineLength&&(d.maxLine=Re,d.maxLineLength=He,d.maxLineChanged=!0,J=!1)}),J&&(e.curOp.updateMaxLine=!0)),Qi(n,k.line),wr(e,400);var te=t.text.length-(K.line-k.line)-1;t.full?Mi(e):k.line==K.line&&t.text.length==1&&!Ds(e.doc,t)?wn(e,k.line,"text"):Mi(e,k.line,K.line+1,te);var de=ge(e,"changes"),me=ge(e,"change");if(me||de){var Ie={from:k,to:K,text:t.text,removed:t.removed,origin:t.origin};me&&bi(e,"change",e,Ie),de&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ie)}e.display.selForContextMenu=null}function nr(e,t,r,n,d){var k;n||(n=r),Ct(n,r)<0&&(k=[n,r],r=k[0],n=k[1]),typeof t=="string"&&(t=e.splitLines(t)),ir(e,{from:r,to:n,text:t,origin:d})}function Js(e,t,r,n){r1||!(this.children[0]instanceof Rr))){var J=[];this.collapse(J),this.children=[new Rr(J)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var K=d.lines.length%25+25,J=K;J10);e.parent.maybeSpill()},iterN:function(e,t,r){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=te,e.display.maxLineLength=de,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Mi(e,n,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gs(e.doc)),e&&bi(e,"markerCleared",e,this,n,d),t&&Wn(e),this.parent&&this.parent.clear()},Rn.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,d=0;d0||K==0&&k.clearWhenEmpty!==!1)return k;if(k.replacedWith&&(k.collapsed=!0,k.widgetNode=T("span",[k.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||k.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(k.widgetNode.insertLeft=!0)),k.collapsed){if(fi(e,t.line,t,r,k)||t.line!=r.line&&fi(e,r.line,t,r,k))throw new Error("Inserting collapsed marker partially overlapping an existing one");un()}k.addToHistory&&Ns(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var J=t.line,Z=e.cm,te;if(e.iter(J,r.line+1,function(me){Z&&k.collapsed&&!Z.options.lineWrapping&&Ai(me)==Z.display.maxLine&&(te=!0),k.collapsed&&J!=t.line&&Jt(me,0),bn(me,new hn(k,J==t.line?t.ch:null,J==r.line?r.ch:null)),++J}),k.collapsed&&e.iter(t.line,r.line+1,function(me){an(e,me)&&Jt(me,0)}),k.clearOnEnter&&Me(k,"beforeCursorEnter",function(){return k.clear()}),k.readOnly&&(zi(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),k.collapsed&&(k.id=++eo,k.atomic=!0),Z){if(te&&(Z.curOp.updateMaxLine=!0),k.collapsed)Mi(Z,t.line,r.line+1);else if(k.className||k.startStyle||k.endStyle||k.css||k.attributes||k.title)for(var de=t.line;de<=r.line;de++)wn(Z,de,"text");k.atomic&&Gs(Z.doc),bi(Z,"markerAdded",Z,k)}return k}var Dr=function(e,t){this.markers=e,this.primary=t;for(var r=0;r=0;Z--)ir(this,n[Z]);J?Hs(this,J):this.cm&&Zn(this.cm)}),undo:mi(function(){ta(this,"undo")}),redo:mi(function(){ta(this,"redo")}),undoSelection:mi(function(){ta(this,"undo",!0)}),redoSelection:mi(function(){ta(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(d.marker.parent||d.marker)}return t},findMarks:function(e,t,r){e=E(this,e),t=E(this,t);var n=[],d=e.line;return this.iter(e.line,t.line+1,function(k){var K=k.markedSpans;if(K)for(var J=0;J=Z.to||Z.from==null&&d!=e.line||Z.from!=null&&d==t.line&&Z.from>=t.ch)&&(!r||r(Z.marker))&&n.push(Z.marker.parent||Z.marker)}++d}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=k,++r}),E(this,Qe(r,t))},indexFromPos:function(e){e=E(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var de=e.dataTransfer.getData("Text");if(de){var me;if(t.state.draggingText&&!t.state.draggingText.copy&&(me=t.listSelections()),qr(t.doc,Cn(r,r)),me)for(var Ie=0;Ie=0;J--)nr(e.doc,"",n[J].from,n[J].to,"+delete");Zn(e)})}function Fa(e,t,r){var n=Ae(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Ba(e,t,r){var n=Fa(e,t.ch,r);return n==null?null:new Qe(t.line,n,r<0?"after":"before")}function Ua(e,t,r,n,d){if(e){t.doc.direction=="rtl"&&(d=-d);var k=et(r,t.doc.direction);if(k){var K=d<0?Oe(k):k[0],J=d<0==(K.level==1),Z=J?"after":"before",te;if(K.level>0||t.doc.direction=="rtl"){var de=Xn(t,r);te=d<0?r.text.length-1:0;var me=on(t,de,te).top;te=Ue(function(Ie){return on(t,de,Ie).top==me},d<0==(K.level==1)?K.from:K.to-1,te),Z=="before"&&(te=Fa(r,te,1))}else te=d<0?K.to:K.from;return new Qe(n,te,Z)}}return new Qe(n,d<0?r.text.length:0,d<0?"before":"after")}function Ml(e,t,r,n){var d=et(t,e.doc.direction);if(!d)return Ba(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var k=$e(d,r.ch,r.sticky),K=d[k];if(e.doc.direction=="ltr"&&K.level%2==0&&(n>0?K.to>r.ch:K.from=K.from&&Ie>=de.begin)){var Re=me?"before":"after";return new Qe(r.line,Ie,Re)}}var He=function(rt,lt,at){for(var ht=function(Xt,gi){return gi?new Qe(r.line,J(Xt,1),"before"):new Qe(r.line,Xt,"after")};rt>=0&&rt0==(Tt.level!=1),Rt=vt?at.begin:J(at.end,-1);if(Tt.from<=Rt&&Rt0?de.end:J(de.begin,-1);return qe!=null&&!(n>0&&qe==t.text.length)&&(Xe=He(n>0?0:d.length-1,n,te(qe)),Xe)?Xe:null}var Pr={selectAll:Vs,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Se)},killLine:function(e){return sr(e,function(t){if(t.empty()){var r=ct(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)d=new Qe(d.line,d.ch+1),e.replaceRange(k.charAt(d.ch-1)+k.charAt(d.ch-2),Qe(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var K=ct(e.doc,d.line-1).text;K&&(d=new Qe(d.line,1),e.replaceRange(k.charAt(0)+e.doc.lineSeparator()+K.charAt(K.length-1),Qe(d.line-1,K.length-1),d,"+transpose"))}}r.push(new Gt(d,d))}e.setSelections(r)})},newlineAndIndent:function(e){return Wi(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;ne&&Ct(t,this.pos)==0&&r==this.button};var Fr,Br;function Hl(e,t){var r=+new Date;return Br&&Br.compare(r,e,t)?(Fr=Br=null,"triple"):Fr&&Fr.compare(r,e,t)?(Br=new Ha(r,e,t),Fr=null,"double"):(Fr=new Ha(r,e,t),Br=null,"single")}function vo(e){var t=this,r=t.display;if(je(t,e)||r.activeTouch&&r.input.supportsTouch())return;if(r.input.ensurePolled(),r.shift=e.shiftKey,cn(r,e)){i||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(Wa(t,e))return;var n=Fn(t,e),d=Pe(e),k=n?Hl(n,d):"single";if(window.focus(),d==1&&t.state.selectingText&&t.state.selectingText(e),n&&Wl(t,d,n,k,e))return;d==1?n?Kl(t,n,k,e):xe(e)==r.scroller&&ne(e):d==2?(n&&Zr(t.doc,n),setTimeout(function(){return r.input.focus()},20)):d==3&&(L?t.display.input.onContextMenu(e):vs(t))}function Wl(e,t,r,n,d){var k="Click";return n=="double"?k="Double"+k:n=="triple"&&(k="Triple"+k),k=(t==1?"Left":t==2?"Middle":"Right")+k,Nr(e,oo(k,d),d,function(K){if(typeof K=="string"&&(K=Pr[K]),!K)return!1;var J=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),J=K(e,r)!=ke}finally{e.state.suppressEdits=!1}return J})}function Gl(e,t,r){var n=e.getOption("configureMouse"),d=n?n(e,t,r):{};if(d.unit==null){var k=a?r.shiftKey&&r.metaKey:r.altKey;d.unit=k?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||r.shiftKey),d.addNew==null&&(d.addNew=s?r.metaKey:r.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(s?r.altKey:r.ctrlKey)),d}function Kl(e,t,r,n){G?setTimeout(P(gs,e),0):e.curOp.focus=N();var d=Gl(e,r,n),k=e.doc.sel,K;e.options.dragDrop&&ze&&!e.isReadOnly()&&r=="single"&&(K=k.contains(t))>-1&&(Ct((K=k.ranges[K]).from(),t)<0||t.xRel>0)&&(Ct(K.to(),t)>0||t.xRel<0)?zl(e,n,t,d):Vl(e,n,t,d)}function zl(e,t,r,n){var d=e.display,k=!1,K=pi(e,function(te){i&&(d.scroller.draggable=!1),e.state.draggingText=!1,nt(d.wrapper.ownerDocument,"mouseup",K),nt(d.wrapper.ownerDocument,"mousemove",J),nt(d.scroller,"dragstart",Z),nt(d.scroller,"drop",K),k||(ne(te),n.addNew||Zr(e.doc,r,null,null,n.extend),i&&!p||G&&W==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),J=function(te){k=k||Math.abs(t.clientX-te.clientX)+Math.abs(t.clientY-te.clientY)>=10},Z=function(){return k=!0};i&&(d.scroller.draggable=!0),e.state.draggingText=K,K.copy=!n.moveOnDrag,d.scroller.dragDrop&&d.scroller.dragDrop(),Me(d.wrapper.ownerDocument,"mouseup",K),Me(d.wrapper.ownerDocument,"mousemove",J),Me(d.scroller,"dragstart",Z),Me(d.scroller,"drop",K),vs(e),setTimeout(function(){return d.input.focus()},20)}function yo(e,t,r){if(r=="char")return new Gt(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new Gt(Qe(t.line,0),E(e.doc,Qe(t.line+1,0)));var n=r(e,t);return new Gt(n.from,n.to)}function Vl(e,t,r,n){var d=e.display,k=e.doc;ne(t);var K,J,Z=k.sel,te=Z.ranges;if(n.addNew&&!n.extend?(J=k.sel.contains(r),J>-1?K=te[J]:K=new Gt(r,r)):(K=k.sel.primary(),J=k.sel.primIndex),n.unit=="rectangle")n.addNew||(K=new Gt(r,r)),r=Fn(e,t,!0,!0),J=-1;else{var de=yo(e,r,n.unit);n.extend?K=Pa(K,de.anchor,de.head,n.extend):K=de}n.addNew?J==-1?(J=te.length,wi(k,tn(e,te.concat([K]),J),{scroll:!1,origin:"*mouse"})):te.length>1&&te[J].empty()&&n.unit=="char"&&!n.extend?(wi(k,tn(e,te.slice(0,J).concat(te.slice(J+1)),0),{scroll:!1,origin:"*mouse"}),Z=k.sel):Na(k,J,K,Ce):(J=0,wi(k,new Yi([K],0),Ce),Z=k.sel);var me=r;function Ie(at){if(Ct(me,at)==0)return;if(me=at,n.unit=="rectangle"){for(var ht=[],Tt=e.options.tabSize,vt=Y(ct(k,r.line).text,r.ch,Tt),Rt=Y(ct(k,at.line).text,at.ch,Tt),Xt=Math.min(vt,Rt),gi=Math.max(vt,Rt),ei=Math.min(r.line,at.line),Gi=Math.min(e.lastLine(),Math.max(r.line,at.line));ei<=Gi;ei++){var Ni=ct(k,ei).text,si=pe(Ni,Xt,Tt);Xt==gi?ht.push(new Gt(Qe(ei,si),Qe(ei,si))):Ni.length>si&&ht.push(new Gt(Qe(ei,si),Qe(ei,pe(Ni,gi,Tt))))}ht.length||ht.push(new Gt(r,r)),wi(k,tn(e,Z.ranges.slice(0,J).concat(ht),J),{origin:"*mouse",scroll:!1}),e.scrollIntoView(at)}else{var Fi=K,_i=yo(e,at,n.unit),hi=Fi.anchor,oi;Ct(_i.anchor,hi)>0?(oi=_i.head,hi=yn(Fi.from(),_i.anchor)):(oi=_i.anchor,hi=vn(Fi.to(),_i.head));var ii=Z.ranges.slice(0);ii[J]=Yl(e,new Gt(E(k,hi),oi)),wi(k,tn(e,ii,J),Ce)}}var Re=d.wrapper.getBoundingClientRect(),He=0;function Xe(at){var ht=++He,Tt=Fn(e,at,!0,n.unit=="rectangle");if(!Tt)return;if(Ct(Tt,me)!=0){e.curOp.focus=N(),Ie(Tt);var vt=Vr(d,k);(Tt.line>=vt.to||Tt.lineRe.bottom?20:0;Rt&&setTimeout(pi(e,function(){if(He!=ht)return;d.scroller.scrollTop+=Rt,Xe(at)}),50)}}function qe(at){e.state.selectingText=!1,He=Infinity,at&&(ne(at),d.input.focus()),nt(d.wrapper.ownerDocument,"mousemove",rt),nt(d.wrapper.ownerDocument,"mouseup",lt),k.history.lastSelOrigin=null}var rt=pi(e,function(at){at.buttons===0||!Pe(at)?qe(at):Xe(at)}),lt=pi(e,qe);e.state.selectingText=lt,Me(d.wrapper.ownerDocument,"mousemove",rt),Me(d.wrapper.ownerDocument,"mouseup",lt)}function Yl(e,t){var r=t.anchor,n=t.head,d=ct(e.doc,r.line);if(Ct(r,n)==0&&r.sticky==n.sticky)return t;var k=et(d);if(!k)return t;var K=$e(k,r.ch,r.sticky),J=k[K];if(J.from!=r.ch&&J.to!=r.ch)return t;var Z=K+(J.from==r.ch==(J.level!=1)?0:1);if(Z==0||Z==k.length)return t;var te;if(n.line!=r.line)te=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var de=$e(k,n.ch,n.sticky),me=de-K||(n.ch-r.ch)*(J.level==1?-1:1);de==Z-1||de==Z?te=me<0:te=me>0}var Ie=k[Z+(te?-1:0)],Re=te==(Ie.level==1),He=Re?Ie.from:Ie.to,Xe=Re?"after":"before";return r.ch==He&&r.sticky==Xe?t:new Gt(new Qe(r.line,He,Xe),n)}function bo(e,t,r,n){var d,k;if(t.touches)d=t.touches[0].clientX,k=t.touches[0].clientY;else try{d=t.clientX,k=t.clientY}catch(Ie){return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&ne(t);var K=e.display,J=K.lineDiv.getBoundingClientRect();if(k>J.bottom||!ge(e,r))return he(t);k-=J.top-K.viewOffset;for(var Z=0;Z=d){var de=li(e.doc,k),me=e.display.gutterSpecs[Z];return Fe(e,r,e,de,me.className,t),he(t)}}}function Wa(e,t){return bo(e,t,"gutterClick",!0)}function _o(e,t){if(cn(e.display,t)||Xl(e,t))return;if(je(e,t,"contextmenu"))return;L||e.display.input.onContextMenu(t)}function Xl(e,t){return ge(e,"gutterContextMenu")?bo(e,t,"gutterContextMenu",!1):!1}function Eo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yr(e)}var or={toString:function(){return"CodeMirror.Init"}},xo={},aa={};function $l(e){var t=e.optionHandlers;function r(n,d,k,K){e.defaults[n]=d,k&&(t[n]=K?function(J,Z,te){te!=or&&k(J,Z,te)}:k)}e.defineOption=r,e.Init=or,r("value","",function(n,d){return n.setValue(d)},!0),r("mode",null,function(n,d){n.doc.modeOption=d,Da(n)},!0),r("indentUnit",2,Da,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){Cr(n),yr(n),Mi(n)},!0),r("lineSeparator",null,function(n,d){if(n.doc.lineSep=d,!d)return;var k=[],K=n.doc.first;n.doc.iter(function(Z){for(var te=0;;){var de=Z.text.indexOf(d,te);if(de==-1)break;te=de+d.length,k.push(Qe(K,de))}K++});for(var J=k.length-1;J>=0;J--)nr(n.doc,d,k[J],Qe(k[J].line,k[J].ch+d.length))}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,d,k){n.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),k!=or&&n.refresh()}),r("specialCharPlaceholder",Yt,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,d){return n.getInputField().spellcheck=d},!0),r("autocorrect",!1,function(n,d){return n.getInputField().autocorrect=d},!0),r("autocapitalize",!1,function(n,d){return n.getInputField().autocapitalize=d},!0),r("rtlMoveVisually",!A),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){Eo(n),Sr(n)},!0),r("keyMap","default",function(n,d,k){var K=na(d),J=k!=or&&na(k);J&&J.detach&&J.detach(n,K),K.attach&&K.attach(n,J||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Ql,!0),r("gutters",[],function(n,d){n.display.gutterSpecs=La(d,n.options.lineNumbers),Sr(n)},!0),r("fixedGutter",!0,function(n,d){n.display.gutters.style.left=d?_a(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return qn(n)},!0),r("scrollbarStyle","native",function(n){Ts(n),qn(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,d){n.display.gutterSpecs=La(n.options.gutters,d),Sr(n)},!0),r("firstLineNumber",1,Sr,!0),r("lineNumberFormatter",function(n){return n},Sr,!0),r("showCursorWhenSelecting",!1,br,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,d){d=="nocursor"&&(Qn(n),n.display.input.blur()),n.display.input.readOnlyChanged(d)}),r("screenReaderLabel",null,function(n,d){d=d===""?null:d,n.display.input.screenReaderLabelChanged(d)}),r("disableInput",!1,function(n,d){d||n.display.input.reset()},!0),r("dragDrop",!0,Jl),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,br,!0),r("singleCursorHeightPerLine",!0,br,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Cr,!0),r("addModeClass",!1,Cr,!0),r("pollInterval",100),r("undoDepth",200,function(n,d){return n.doc.history.undoDepth=d}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,Cr,!0),r("moveInputWithCursor",!0,function(n,d){d||n.display.input.resetPosition()}),r("tabindex",null,function(n,d){return n.display.input.getField().tabIndex=d||""}),r("autofocus",null),r("direction","ltr",function(n,d){return n.doc.setDirection(d)},!0),r("phrases",null)}function Jl(e,t,r){var n=r&&r!=or;if(!t!=!n){var d=e.display.dragFunctions,k=t?Me:nt;k(e.display.scroller,"dragstart",d.start),k(e.display.scroller,"dragenter",d.enter),k(e.display.scroller,"dragover",d.over),k(e.display.scroller,"dragleave",d.leave),k(e.display.scroller,"drop",d.drop)}}function Ql(e){e.options.lineWrapping?(B(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),jr(e)),Ea(e),Mi(e),yr(e),setTimeout(function(){return qn(e)},100)}function Zt(e,t){var r=this;if(!(this instanceof Zt))return new Zt(e,t);this.options=t=t?b(t):{},b(xo,t,!1);var n=t.value;typeof n=="string"?n=new Pi(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var d=new Zt.inputStyles[t.inputStyle](this),k=this.display=new hl(e,n,d,t);k.wrapper.CodeMirror=this,Eo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ts(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},t.autofocus&&!h&&k.input.focus(),G&&W<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Zl(this),Rl(),Hn(this),this.curOp.forceUpdate=!0,ks(this,n),t.autofocus&&!h||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Ta(r)},20):Qn(this);for(var K in aa)aa.hasOwnProperty(K)&&aa[K](this,t[K],or);Cs(this),t.finishInit&&t.finishInit(this);for(var J=0;J20*20}Me(t.scroller,"touchstart",function(Z){if(!je(e,Z)&&!k(Z)&&!Wa(e,Z)){t.input.ensurePolled(),clearTimeout(r);var te=+new Date;t.activeTouch={start:te,moved:!1,prev:te-n.end<=300?n:null},Z.touches.length==1&&(t.activeTouch.left=Z.touches[0].pageX,t.activeTouch.top=Z.touches[0].pageY)}}),Me(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Me(t.scroller,"touchend",function(Z){var te=t.activeTouch;if(te&&!cn(t,Z)&&te.left!=null&&!te.moved&&new Date-te.start<300){var de=e.coordsChar(t.activeTouch,"page"),me;!te.prev||K(te,te.prev)?me=new Gt(de,de):!te.prev.prev||K(te,te.prev.prev)?me=e.findWordAt(de):me=new Gt(Qe(de.line,0),E(e.doc,Qe(de.line+1,0))),e.setSelection(me.anchor,me.head),e.focus(),ne(Z)}d()}),Me(t.scroller,"touchcancel",d),Me(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Er(e,t.scroller.scrollTop),Un(e,t.scroller.scrollLeft,!0),Fe(e,"scroll",e))}),Me(t.scroller,"mousewheel",function(Z){return Rs(e,Z)}),Me(t.scroller,"DOMMouseScroll",function(Z){return Rs(e,Z)}),Me(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(Z){je(e,Z)||fe(Z)},over:function(Z){je(e,Z)||(Ol(e,Z),fe(Z))},start:function(Z){return Al(e,Z)},drop:pi(e,Cl),leave:function(Z){je(e,Z)||no(e)}};var J=t.input.getField();Me(J,"keyup",function(Z){return mo.call(e,Z)}),Me(J,"keydown",pi(e,po)),Me(J,"keypress",pi(e,go)),Me(J,"focus",function(Z){return Ta(e,Z)}),Me(J,"blur",function(Z){return Qn(e,Z)})}var Ga=[];Zt.defineInitHook=function(e){return Ga.push(e)};function Ur(e,t,r,n){var d=e.doc,k;r==null&&(r="add"),r=="smart"&&(d.mode.indent?k=it(e,t).state:r="prev");var K=e.options.tabSize,J=ct(d,t),Z=Y(J.text,null,K);J.stateAfter&&(J.stateAfter=null);var te=J.text.match(/^\s*/)[0],de;if(!n&&!/\S/.test(J.text))de=0,r="not";else if(r=="smart"&&(de=d.mode.indent(k,J.text.slice(te.length),J.text),de==ke||de>150)){if(!n)return;r="prev"}r=="prev"?t>d.first?de=Y(ct(d,t-1).text,null,K):de=0:r=="add"?de=Z+e.options.indentUnit:r=="subtract"?de=Z-e.options.indentUnit:typeof r=="number"&&(de=Z+r),de=Math.max(0,de);var me="",Ie=0;if(e.options.indentWithTabs)for(var Re=Math.floor(de/K);Re;--Re)Ie+=K,me+=" ";if(IeK,Z=St(t),te=null;if(J&&n.ranges.length>1)if(nn&&nn.text.join(` -`)==t){if(n.ranges.length%nn.text.length==0){te=[];for(var de=0;de=0;Ie--){var Re=n.ranges[Ie],He=Re.from(),Xe=Re.to();Re.empty()&&(r&&r>0?He=Qe(He.line,He.ch-r):e.state.overwrite&&!J?Xe=Qe(Xe.line,Math.min(ct(k,Xe.line).text.length,Xe.ch+Oe(Z).length)):J&&nn&&nn.lineWise&&nn.text.join(` + height: `+(vt-ht)+"px"))}function me(at,ht,Tt){var vt=ct(d,at),Rt=vt.text.length,Xt,gi;function ei(si,Fi){return ma(e,Qe(at,si),"div",vt,Fi)}function Gi(si,Fi,_i){var hi=ds(e,vt,null,si),oi=Fi=="ltr"==(_i=="after")?"left":"right",ii=_i=="after"?hi.begin:hi.end-(/\s/.test(vt.text.charAt(hi.end-1))?2:1);return ei(ii,oi)[oi]}var Ni=et(vt,d.direction);return Ve(Ni,ht||0,Tt==null?Rt:Tt,function(si,Fi,_i,hi){var oi=_i=="ltr",ii=ei(si,oi?"left":"right"),Bi=ei(Fi-1,oi?"right":"left"),un=ht==null&&si==0,Lr=Tt==null&&Fi==Rt,Si=hi==0,or=!Ni||hi==Ni.length-1;if(Bi.top-ii.top<=3){var vi=(te?un:Lr)&&Si,Va=(te?Lr:un)&&or,fr=vi?J:(oi?ii:Bi).left,Wr=Va?Z:(oi?Bi:ii).right;de(fr,ii.top,Wr-fr,ii.bottom)}else{var Gr,Ri,hn,Ya;oi?(Gr=te&&un&&Si?J:ii.left,Ri=te?Z:Gi(si,_i,"before"),hn=te?J:Gi(Fi,_i,"after"),Ya=te&&Lr&&or?Z:Bi.right):(Gr=te?Gi(si,_i,"before"):J,Ri=!te&&un&&Si?Z:ii.right,hn=!te&&Lr&&or?J:Bi.left,Ya=te?Gi(Fi,_i,"after"):Z),de(Gr,ii.top,Ri-Gr,ii.bottom),ii.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Jr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function gs(e){e.state.focused||(e.display.input.focus(),Ta(e))}function vs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Jr(e))},100)}function Ta(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Fe(e,"focus",e,t),e.state.focused=!0,B(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),i&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xa(e)}function Jr(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(Fe(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function zn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||de<-.005)&&(Jt(d.line,K),ys(d.line),d.rest))for(var me=0;mee.display.sizerWidth){var Ie=Math.ceil(J/$r(e.display));Ie>e.display.maxLineLength&&(e.display.maxLineLength=Ie,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}function ys(e){if(e.widgets)for(var t=0;t=K&&(k=li(t,qi(ct(t,Z))-e.wrapper.clientHeight),K=Z)}return{from:k,to:Math.max(K,k+1)}}function Xo(e,t){if(je(e,"scrollCursorIntoView"))return;var n=e.display,r=n.sizer.getBoundingClientRect(),d=null;if(t.top+r.top<0?d=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!u){var k=c("div","\u200B",null,`position: absolute; + top: `+(t.top-n.viewOffset-Hn(e.display))+`px; + height: `+(t.bottom-t.top+ar(e)+n.barHeight)+`px; + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(k),k.scrollIntoView(d),e.display.lineSpace.removeChild(k)}}function $o(e,t,n,r){r==null&&(r=0);var d;!e.options.lineWrapping&&t==n&&(t=t.ch?Qe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,n=t.sticky=="before"?Qe(t.line,t.ch+1,"before"):t);for(var k=0;k<5;k++){var K=!1,J=er(e,t),Z=!n||n==t?J:er(e,n);d={left:Math.min(J.left,Z.left),top:Math.min(J.top,Z.top)-r,right:Math.max(J.left,Z.left),bottom:Math.max(J.bottom,Z.bottom)+r};var te=wa(e,d),de=e.doc.scrollTop,me=e.doc.scrollLeft;if(te.scrollTop!=null&&(En(e,te.scrollTop),Math.abs(e.doc.scrollTop-de)>1&&(K=!0)),te.scrollLeft!=null&&(Br(e,te.scrollLeft),Math.abs(e.doc.scrollLeft-me)>1&&(K=!0)),!K)break}return d}function Jo(e,t){var n=wa(e,t);n.scrollTop!=null&&En(e,n.scrollTop),n.scrollLeft!=null&&Br(e,n.scrollLeft)}function wa(e,t){var n=e.display,r=Xr(e.display);t.top<0&&(t.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,k=ca(e),K={};t.bottom-t.top>k&&(t.bottom=t.top+k);var J=e.doc.height+da(n),Z=t.topJ-r;if(t.topd+k){var de=Math.min(t.top,(te?J:t.bottom)-k);de!=d&&(K.scrollTop=de)}var me=e.options.fixedGutter?0:n.gutters.offsetWidth,Ie=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-me,Re=Mr(e)-n.gutters.offsetWidth,He=t.right-t.left>Re;return He&&(t.right=t.left+Re),t.left<10?K.scrollLeft=0:t.leftRe+Ie-3&&(K.scrollLeft=t.right+(He?0:10)-Re),K}function Sa(e,t){if(t==null)return;Yn(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Qr(e){Yn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function _n(e,t,n){(t!=null||n!=null)&&Yn(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function Qo(e,t){Yn(e),e.curOp.scrollToPos=t}function Yn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=us(e,t.from),r=us(e,t.to);bs(e,n,r,t.margin)}}function bs(e,t,n,r){var d=wa(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});_n(e,d.scrollLeft,d.scrollTop)}function En(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;M||Aa(e,{top:t}),_s(e,t,!0),M&&Aa(e),wn(e,100)}function _s(e,t,n){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!n)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Br(e,t,n,r){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)return;e.doc.scrollLeft=t,Ss(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function xn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+da(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+ar(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ur=function(e,t,n){this.cm=n;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=d.tabIndex=-1,e(r),e(d),Me(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Me(d,"scroll",function(){d.clientWidth&&t(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,G&&W<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ur.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var d=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var k=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+k)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Ur.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ur.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ur.prototype.zeroWidthHack=function(){var e=s&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},Ur.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto";function r(){var d=e.getBoundingClientRect(),k=n=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);k!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},Ur.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Tn=function(){};Tn.prototype.update=function(){return{bottom:0,right:0}},Tn.prototype.setScrollLeft=function(){},Tn.prototype.setScrollTop=function(){},Tn.prototype.clear=function(){};function Zr(e,t){t||(t=xn(e));var n=e.display.barWidth,r=e.display.barHeight;Es(e,t);for(var d=0;d<4&&n!=e.display.barWidth||r!=e.display.barHeight;d++)n!=e.display.barWidth&&e.options.lineWrapping&&zn(e),Es(e,xn(e)),n=e.display.barWidth,r=e.display.barHeight}function Es(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var xs={native:Ur,null:Tn};function Ts(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Me(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Br(e,t):En(e,t)},e),e.display.scrollbars.addClass&&B(e.display.wrapper,e.display.scrollbars.addClass)}var Zo=0;function jr(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:++Zo},Ji(e.curOp)}function Hr(e){var t=e.curOp;t&&Io(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Xn(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&Ca(e.cm,e.update)}function il(e){var t=e.cm,n=t.display;e.updatedDisplay&&zn(t),e.barMeasure=xn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ts(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+ar(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Mr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function rl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var n=+new Date+e.options.workTime,r=it(e,t.highlightFrontier),d=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(k){if(r.line>=e.display.viewFrom){var K=k.styles,J=k.text.length>e.options.maxHighlightLength?Ft(t.mode,r.state):null,Z=ve(e,k,r,!0);J&&(r.state=J),k.styles=Z.styles;var te=k.styleClasses,de=Z.classes;de?k.styleClasses=de:te&&(k.styleClasses=null);for(var me=!K||K.length!=k.styles.length||te!=de&&(!te||!de||te.bgClass!=de.bgClass||te.textClass!=de.textClass),Ie=0;!me&&Ien)return wn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),d.length&&Wi(e,function(){for(var k=0;k=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&fs(e)==0)return!1;Cs(e)&&(wr(e),t.dims=ba(e));var d=r.first+r.size,k=Math.max(t.visible.from-e.options.viewportMargin,r.first),K=Math.min(d,t.visible.to+e.options.viewportMargin);n.viewFromK&&n.viewTo-K<20&&(K=Math.min(d,n.viewTo)),ci&&(k=cn(e.doc,k),K=xr(e.doc,K));var J=k!=n.viewFrom||K!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Vo(e,k,K),n.viewOffset=qi(ct(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var Z=fs(e);if(!J&&Z==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var te=ol(e);return Z>4&&(n.lineDiv.style.display="none"),ul(e,n.updateLineNumbers,t.dims),Z>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,ll(te),w(n.cursorDiv),w(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,J&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,wn(e,400)),n.updateLineNumbers=null,!0}function ws(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==Mr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+da(e.display)-ca(e),n.top)}),t.visible=Vn(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Vn(e.display,e.doc,n));if(!Ca(e,t))break;zn(e);var d=xn(e);bn(e),Zr(e,d),Ra(e,d),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Aa(e,t){var n=new Xn(e,t);if(Ca(e,n)){zn(e),ws(e,n);var r=xn(e);bn(e),Zr(e,r),Ra(e,r),n.finish()}}function ul(e,t,n){var r=e.display,d=e.options.lineNumbers,k=r.lineDiv,K=k.firstChild;function J(He){var Xe=He.nextSibling;return i&&s&&e.display.currentWheelTarget==He?He.style.display="none":He.parentNode.removeChild(He),Xe}for(var Z=r.view,te=r.viewFrom,de=0;de-1&&(Re=!1),Xa(e,me,te,n)),Re&&(w(me.lineNumber),me.lineNumber.appendChild(document.createTextNode(Xi(e.options,te)))),K=me.node.nextSibling}te+=me.size}for(;K;)K=J(K)}function Oa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ra(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+ar(e)+"px"}function Ss(e){var t=e.display,n=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var r=_a(t)-t.scroller.scrollLeft+e.doc.scrollLeft,d=t.gutters.offsetWidth,k=r+"px",K=0;KK.clientWidth,Z=K.scrollHeight>K.clientHeight;if(!(r&&J||d&&Z))return;if(d&&s&&i){e:for(var te=t.target,de=k.view;te!=K;te=te.parentNode)for(var me=0;me=0&&Ct(e,r.to())<=0)return n}return-1};var Gt=function(e,t){this.anchor=e,this.head=t};Gt.prototype.from=function(){return vr(this.anchor,this.head)},Gt.prototype.to=function(){return gr(this.anchor,this.head)},Gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function tr(e,t,n){var r=e&&e.options.selectionsMayTouch,d=t[n];t.sort(function(Ie,Re){return Ct(Ie.from(),Re.from())}),n=le(t,d);for(var k=1;k0:Z>=0){var te=vr(J.from(),K.from()),de=gr(J.to(),K.to()),me=J.empty()?K.from()==K.head:J.from()==J.head;k<=n&&--n,t.splice(--k,2,new Gt(me?de:te,me?te:de))}}return new Yi(t,n)}function Sr(e,t){return new Yi([new Gt(e,t||e)],0)}function Cr(e){return e.text?Qe(e.from.line+e.text.length-1,Oe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ls(e,t){if(Ct(e,t.from)<0)return e;if(Ct(e,t.to)<=0)return Cr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Cr(t).ch-t.to.ch),Qe(n,r)}function Ia(e,t){for(var n=[],r=0;r1&&e.remove(J.line+1,He-1),e.insert(J.line+1,nt)}bi(e,"change",e,t)}function Ar(e,t,n){function r(d,k,K){if(d.linked)for(var J=0;J1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Oe(e.done)}function Ns(e,t,n,r){var d=e.history;d.undone.length=0;var k=+new Date,K,J;if((d.lastOp==r||d.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&d.lastModTime>k-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(K=pl(d,d.lastOp==r)))J=Oe(K.changes),Ct(t.from,t.to)==0&&Ct(t.from,J.to)==0?J.to=Cr(t):K.changes.push(Ma(e,t));else{var Z=Oe(d.done);for((!Z||!Z.ranges)&&Qn(e.sel,d.done),K={changes:[Ma(e,t)],generation:d.generation},d.done.push(K);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(n),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=k,d.lastOp=d.lastSelOp=r,d.lastOrigin=d.lastSelOrigin=t.origin,J||Fe(e,"historyAdded")}function ml(e,t,n,r){var d=t.charAt(0);return d=="*"||d=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,n,r){var d=e.history,k=r&&r.origin;n==d.lastSelOp||k&&d.lastSelOrigin==k&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==k||ml(e,k,Oe(d.done),t))?d.done[d.done.length-1]=t:Qn(t,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=k,d.lastSelOp=n,r&&r.clearRedo!==!1&&Ps(d.undone)}function Qn(e,t){var n=Oe(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Fs(e,t,n,r){var d=t["spans_"+e.id],k=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(K){K.markedSpans&&((d||(d=t["spans_"+e.id]={}))[k]=K.markedSpans),++k})}function vl(e){if(!e)return null;for(var t,n=0;n-1&&(Oe(J)[me]=te[me],delete te[me]))}}return r}function Pa(e,t,n,r){if(r){var d=e.anchor;if(n){var k=Ct(t,d)<0;k!=Ct(n,d)<0?(d=t,t=n):k!=Ct(t,n)<0&&(t=n)}return new Gt(d,t)}else return new Gt(n||t,t)}function Zn(e,t,n,r,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),wi(e,new Yi([Pa(e.sel.primary(),t,n,d)],0),r)}function Us(e,t,n){for(var r=[],d=e.cm&&(e.cm.display.shift||e.extend),k=0;k=t.ch:J.to>t.ch))){if(d&&(Fe(Z,"beforeCursorEnter"),Z.explicitlyCleared))if(k.markedSpans){--K;continue}else break;if(!Z.atomic)continue;if(n){var me=Z.find(r<0?1:-1),Ie=void 0;if((r<0?de:te)&&(me=zs(e,me,-r,me&&me.line==t.line?k:null)),me&&me.line==t.line&&(Ie=Ct(me,n))&&(r<0?Ie<0:Ie>0))return en(e,me,t,r,d)}var Re=Z.find(r<0?-1:1);return(r<0?te:de)&&(Re=zs(e,Re,r,Re.line==t.line?k:null)),Re?en(e,Re,t,r,d):null}}return t}function ea(e,t,n,r,d){var k=r||1,K=en(e,t,n,k,d)||!d&&en(e,t,n,k,!0)||en(e,t,n,-k,d)||!d&&en(e,t,n,-k,!0);return K||(e.cantEdit=!0,Qe(e.first,0))}function zs(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?E(e,Qe(t.line-1)):null:n>0&&t.ch==(r||ct(e,t.line)).text.length?t.line=0;--d)Xs(e,{from:r[d].from,to:r[d].to,text:d?[""]:t.text,origin:t.origin});else Xs(e,t)}function Xs(e,t){if(t.text.length==1&&t.text[0]==""&&Ct(t.from,t.to)==0)return;var n=Ia(e,t);Ns(e,t,n,e.cm?e.cm.curOp.id:NaN),An(e,t,n,Zi(e,t));var r=[];Ar(e,function(d,k){!k&&le(r,d.history)==-1&&(Zs(d.history,t),r.push(d.history)),An(d,t,null,Zi(d,t))})}function ta(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(r&&!n)return;for(var d=e.history,k,K=e.sel,J=t=="undo"?d.done:d.undone,Z=t=="undo"?d.undone:d.done,te=0;te=0;--Re){var He=Ie(Re);if(He)return He.v}}function $s(e,t){if(t==0)return;if(e.first+=t,e.sel=new Yi(Te(e.sel.ranges,function(d){return new Gt(Qe(d.anchor.line+t,d.anchor.ch),Qe(d.head.line+t,d.head.ch))}),e.sel.primIndex),e.cm){Mi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())return;if(t.from.linek&&(t={from:t.from,to:Qe(k,ct(e,k).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ui(e,t.from,t.to),n||(n=Ia(e,t)),e.cm?_l(e.cm,t,r):ka(e,t,r),qn(e,n,Se),e.cantEdit&&ea(e,Qe(e.firstLine(),0))&&(e.cantEdit=!1)}function _l(e,t,n){var r=e.doc,d=e.display,k=t.from,K=t.to,J=!1,Z=k.line;e.options.lineWrapping||(Z=Ot(Ai(ct(r,k.line))),r.iter(Z,K.line+1,function(Re){if(Re==d.maxLine)return J=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Ee(e),ka(r,t,n,cs(e)),e.options.lineWrapping||(r.iter(Z,k.line+t.text.length,function(Re){var He=pn(Re);He>d.maxLineLength&&(d.maxLine=Re,d.maxLineLength=He,d.maxLineChanged=!0,J=!1)}),J&&(e.curOp.updateMaxLine=!0)),Qi(r,k.line),wn(e,400);var te=t.text.length-(K.line-k.line)-1;t.full?Mi(e):k.line==K.line&&t.text.length==1&&!Ds(e.doc,t)?Tr(e,k.line,"text"):Mi(e,k.line,K.line+1,te);var de=ge(e,"changes"),me=ge(e,"change");if(me||de){var Ie={from:k,to:K,text:t.text,removed:t.removed,origin:t.origin};me&&bi(e,"change",e,Ie),de&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ie)}e.display.selForContextMenu=null}function rn(e,t,n,r,d){var k;r||(r=n),Ct(r,n)<0&&(k=[r,n],n=k[0],r=k[1]),typeof t=="string"&&(t=e.splitLines(t)),tn(e,{from:n,to:r,text:t,origin:d})}function Js(e,t,n,r){n1||!(this.children[0]instanceof Rn))){var J=[];this.collapse(J),this.children=[new Rn(J)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var K=d.lines.length%25+25,J=K;J10);e.parent.maybeSpill()},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=te,e.display.maxLineLength=de,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Mi(e,r,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gs(e.doc)),e&&bi(e,"markerCleared",e,this,r,d),t&&Hr(e),this.parent&&this.parent.clear()},Or.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,d=0;d0||K==0&&k.clearWhenEmpty!==!1)return k;if(k.replacedWith&&(k.collapsed=!0,k.widgetNode=T("span",[k.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||k.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(k.widgetNode.insertLeft=!0)),k.collapsed){if(fi(e,t.line,t,n,k)||t.line!=n.line&&fi(e,n.line,t,n,k))throw new Error("Inserting collapsed marker partially overlapping an existing one");lr()}k.addToHistory&&Ns(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var J=t.line,Z=e.cm,te;if(e.iter(J,n.line+1,function(me){Z&&k.collapsed&&!Z.options.lineWrapping&&Ai(me)==Z.display.maxLine&&(te=!0),k.collapsed&&J!=t.line&&Jt(me,0),yr(me,new ur(k,J==t.line?t.ch:null,J==n.line?n.ch:null)),++J}),k.collapsed&&e.iter(t.line,n.line+1,function(me){nr(e,me)&&Jt(me,0)}),k.clearOnEnter&&Me(k,"beforeCursorEnter",function(){return k.clear()}),k.readOnly&&(zi(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),k.collapsed&&(k.id=++eo,k.atomic=!0),Z){if(te&&(Z.curOp.updateMaxLine=!0),k.collapsed)Mi(Z,t.line,n.line+1);else if(k.className||k.startStyle||k.endStyle||k.css||k.attributes||k.title)for(var de=t.line;de<=n.line;de++)Tr(Z,de,"text");k.atomic&&Gs(Z.doc),bi(Z,"markerAdded",Z,k)}return k}var Dn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;Z--)tn(this,r[Z]);J?Hs(this,J):this.cm&&Qr(this.cm)}),undo:mi(function(){ta(this,"undo")}),redo:mi(function(){ta(this,"redo")}),undoSelection:mi(function(){ta(this,"undo",!0)}),redoSelection:mi(function(){ta(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(d.marker.parent||d.marker)}return t},findMarks:function(e,t,n){e=E(this,e),t=E(this,t);var r=[],d=e.line;return this.iter(e.line,t.line+1,function(k){var K=k.markedSpans;if(K)for(var J=0;J=Z.to||Z.from==null&&d!=e.line||Z.from!=null&&d==t.line&&Z.from>=t.ch)&&(!n||n(Z.marker))&&r.push(Z.marker.parent||Z.marker)}++d}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=k,++n}),E(this,Qe(n,t))},indexFromPos:function(e){e=E(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var de=e.dataTransfer.getData("Text");if(de){var me;if(t.state.draggingText&&!t.state.draggingText.copy&&(me=t.listSelections()),qn(t.doc,Sr(n,n)),me)for(var Ie=0;Ie=0;J--)rn(e.doc,"",r[J].from,r[J].to,"+delete");Qr(e)})}function Fa(e,t,n){var r=Ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ba(e,t,n){var r=Fa(e,t.ch,n);return r==null?null:new Qe(t.line,r,n<0?"after":"before")}function Ua(e,t,n,r,d){if(e){t.doc.direction=="rtl"&&(d=-d);var k=et(n,t.doc.direction);if(k){var K=d<0?Oe(k):k[0],J=d<0==(K.level==1),Z=J?"after":"before",te;if(K.level>0||t.doc.direction=="rtl"){var de=Yr(t,n);te=d<0?n.text.length-1:0;var me=sr(t,de,te).top;te=Ue(function(Ie){return sr(t,de,Ie).top==me},d<0==(K.level==1)?K.from:K.to-1,te),Z=="before"&&(te=Fa(n,te,1))}else te=d<0?K.to:K.from;return new Qe(r,te,Z)}}return new Qe(r,d<0?n.text.length:0,d<0?"before":"after")}function Ml(e,t,n,r){var d=et(t,e.doc.direction);if(!d)return Ba(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var k=$e(d,n.ch,n.sticky),K=d[k];if(e.doc.direction=="ltr"&&K.level%2==0&&(r>0?K.to>n.ch:K.from=K.from&&Ie>=de.begin)){var Re=me?"before":"after";return new Qe(n.line,Ie,Re)}}var He=function(nt,lt,at){for(var ht=function(Xt,gi){return gi?new Qe(n.line,J(Xt,1),"before"):new Qe(n.line,Xt,"after")};nt>=0&&nt0==(Tt.level!=1),Rt=vt?at.begin:J(at.end,-1);if(Tt.from<=Rt&&Rt0?de.end:J(de.begin,-1);return qe!=null&&!(r>0&&qe==t.text.length)&&(Xe=He(r>0?0:d.length-1,r,te(qe)),Xe)?Xe:null}var Pn={selectAll:Vs,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Se)},killLine:function(e){return sn(e,function(t){if(t.empty()){var n=ct(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)d=new Qe(d.line,d.ch+1),e.replaceRange(k.charAt(d.ch-1)+k.charAt(d.ch-2),Qe(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var K=ct(e.doc,d.line-1).text;K&&(d=new Qe(d.line,1),e.replaceRange(k.charAt(0)+e.doc.lineSeparator()+K.charAt(K.length-1),Qe(d.line-1,K.length-1),d,"+transpose"))}}n.push(new Gt(d,d))}e.setSelections(n)})},newlineAndIndent:function(e){return Wi(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&Ct(t,this.pos)==0&&n==this.button};var Fn,Bn;function Hl(e,t){var n=+new Date;return Bn&&Bn.compare(n,e,t)?(Fn=Bn=null,"triple"):Fn&&Fn.compare(n,e,t)?(Bn=new Ha(n,e,t),Fn=null,"double"):(Fn=new Ha(n,e,t),Bn=null,"single")}function vo(e){var t=this,n=t.display;if(je(t,e)||n.activeTouch&&n.input.supportsTouch())return;if(n.input.ensurePolled(),n.shift=e.shiftKey,dr(n,e)){i||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(Wa(t,e))return;var r=Nr(t,e),d=Pe(e),k=r?Hl(r,d):"single";if(window.focus(),d==1&&t.state.selectingText&&t.state.selectingText(e),r&&Wl(t,d,r,k,e))return;d==1?r?Kl(t,r,k,e):xe(e)==n.scroller&&re(e):d==2?(r&&Zn(t.doc,r),setTimeout(function(){return n.input.focus()},20)):d==3&&(L?t.display.input.onContextMenu(e):vs(t))}function Wl(e,t,n,r,d){var k="Click";return r=="double"?k="Double"+k:r=="triple"&&(k="Triple"+k),k=(t==1?"Left":t==2?"Middle":"Right")+k,Nn(e,oo(k,d),d,function(K){if(typeof K=="string"&&(K=Pn[K]),!K)return!1;var J=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),J=K(e,n)!=ke}finally{e.state.suppressEdits=!1}return J})}function Gl(e,t,n){var r=e.getOption("configureMouse"),d=r?r(e,t,n):{};if(d.unit==null){var k=a?n.shiftKey&&n.metaKey:n.altKey;d.unit=k?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||n.shiftKey),d.addNew==null&&(d.addNew=s?n.metaKey:n.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(s?n.altKey:n.ctrlKey)),d}function Kl(e,t,n,r){G?setTimeout(P(gs,e),0):e.curOp.focus=N();var d=Gl(e,n,r),k=e.doc.sel,K;e.options.dragDrop&&ze&&!e.isReadOnly()&&n=="single"&&(K=k.contains(t))>-1&&(Ct((K=k.ranges[K]).from(),t)<0||t.xRel>0)&&(Ct(K.to(),t)>0||t.xRel<0)?zl(e,r,t,d):Vl(e,r,t,d)}function zl(e,t,n,r){var d=e.display,k=!1,K=pi(e,function(te){i&&(d.scroller.draggable=!1),e.state.draggingText=!1,rt(d.wrapper.ownerDocument,"mouseup",K),rt(d.wrapper.ownerDocument,"mousemove",J),rt(d.scroller,"dragstart",Z),rt(d.scroller,"drop",K),k||(re(te),r.addNew||Zn(e.doc,n,null,null,r.extend),i&&!p||G&&W==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),J=function(te){k=k||Math.abs(t.clientX-te.clientX)+Math.abs(t.clientY-te.clientY)>=10},Z=function(){return k=!0};i&&(d.scroller.draggable=!0),e.state.draggingText=K,K.copy=!r.moveOnDrag,d.scroller.dragDrop&&d.scroller.dragDrop(),Me(d.wrapper.ownerDocument,"mouseup",K),Me(d.wrapper.ownerDocument,"mousemove",J),Me(d.scroller,"dragstart",Z),Me(d.scroller,"drop",K),vs(e),setTimeout(function(){return d.input.focus()},20)}function yo(e,t,n){if(n=="char")return new Gt(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new Gt(Qe(t.line,0),E(e.doc,Qe(t.line+1,0)));var r=n(e,t);return new Gt(r.from,r.to)}function Vl(e,t,n,r){var d=e.display,k=e.doc;re(t);var K,J,Z=k.sel,te=Z.ranges;if(r.addNew&&!r.extend?(J=k.sel.contains(n),J>-1?K=te[J]:K=new Gt(n,n)):(K=k.sel.primary(),J=k.sel.primIndex),r.unit=="rectangle")r.addNew||(K=new Gt(n,n)),n=Nr(e,t,!0,!0),J=-1;else{var de=yo(e,n,r.unit);r.extend?K=Pa(K,de.anchor,de.head,r.extend):K=de}r.addNew?J==-1?(J=te.length,wi(k,tr(e,te.concat([K]),J),{scroll:!1,origin:"*mouse"})):te.length>1&&te[J].empty()&&r.unit=="char"&&!r.extend?(wi(k,tr(e,te.slice(0,J).concat(te.slice(J+1)),0),{scroll:!1,origin:"*mouse"}),Z=k.sel):Na(k,J,K,Ce):(J=0,wi(k,new Yi([K],0),Ce),Z=k.sel);var me=n;function Ie(at){if(Ct(me,at)==0)return;if(me=at,r.unit=="rectangle"){for(var ht=[],Tt=e.options.tabSize,vt=Y(ct(k,n.line).text,n.ch,Tt),Rt=Y(ct(k,at.line).text,at.ch,Tt),Xt=Math.min(vt,Rt),gi=Math.max(vt,Rt),ei=Math.min(n.line,at.line),Gi=Math.min(e.lastLine(),Math.max(n.line,at.line));ei<=Gi;ei++){var Ni=ct(k,ei).text,si=pe(Ni,Xt,Tt);Xt==gi?ht.push(new Gt(Qe(ei,si),Qe(ei,si))):Ni.length>si&&ht.push(new Gt(Qe(ei,si),Qe(ei,pe(Ni,gi,Tt))))}ht.length||ht.push(new Gt(n,n)),wi(k,tr(e,Z.ranges.slice(0,J).concat(ht),J),{origin:"*mouse",scroll:!1}),e.scrollIntoView(at)}else{var Fi=K,_i=yo(e,at,r.unit),hi=Fi.anchor,oi;Ct(_i.anchor,hi)>0?(oi=_i.head,hi=vr(Fi.from(),_i.anchor)):(oi=_i.anchor,hi=gr(Fi.to(),_i.head));var ii=Z.ranges.slice(0);ii[J]=Yl(e,new Gt(E(k,hi),oi)),wi(k,tr(e,ii,J),Ce)}}var Re=d.wrapper.getBoundingClientRect(),He=0;function Xe(at){var ht=++He,Tt=Nr(e,at,!0,r.unit=="rectangle");if(!Tt)return;if(Ct(Tt,me)!=0){e.curOp.focus=N(),Ie(Tt);var vt=Vn(d,k);(Tt.line>=vt.to||Tt.lineRe.bottom?20:0;Rt&&setTimeout(pi(e,function(){if(He!=ht)return;d.scroller.scrollTop+=Rt,Xe(at)}),50)}}function qe(at){e.state.selectingText=!1,He=Infinity,at&&(re(at),d.input.focus()),rt(d.wrapper.ownerDocument,"mousemove",nt),rt(d.wrapper.ownerDocument,"mouseup",lt),k.history.lastSelOrigin=null}var nt=pi(e,function(at){at.buttons===0||!Pe(at)?qe(at):Xe(at)}),lt=pi(e,qe);e.state.selectingText=lt,Me(d.wrapper.ownerDocument,"mousemove",nt),Me(d.wrapper.ownerDocument,"mouseup",lt)}function Yl(e,t){var n=t.anchor,r=t.head,d=ct(e.doc,n.line);if(Ct(n,r)==0&&n.sticky==r.sticky)return t;var k=et(d);if(!k)return t;var K=$e(k,n.ch,n.sticky),J=k[K];if(J.from!=n.ch&&J.to!=n.ch)return t;var Z=K+(J.from==n.ch==(J.level!=1)?0:1);if(Z==0||Z==k.length)return t;var te;if(r.line!=n.line)te=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var de=$e(k,r.ch,r.sticky),me=de-K||(r.ch-n.ch)*(J.level==1?-1:1);de==Z-1||de==Z?te=me<0:te=me>0}var Ie=k[Z+(te?-1:0)],Re=te==(Ie.level==1),He=Re?Ie.from:Ie.to,Xe=Re?"after":"before";return n.ch==He&&n.sticky==Xe?t:new Gt(new Qe(n.line,He,Xe),r)}function bo(e,t,n,r){var d,k;if(t.touches)d=t.touches[0].clientX,k=t.touches[0].clientY;else try{d=t.clientX,k=t.clientY}catch(Ie){return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&re(t);var K=e.display,J=K.lineDiv.getBoundingClientRect();if(k>J.bottom||!ge(e,n))return he(t);k-=J.top-K.viewOffset;for(var Z=0;Z=d){var de=li(e.doc,k),me=e.display.gutterSpecs[Z];return Fe(e,n,e,de,me.className,t),he(t)}}}function Wa(e,t){return bo(e,t,"gutterClick",!0)}function _o(e,t){if(dr(e.display,t)||Xl(e,t))return;if(je(e,t,"contextmenu"))return;L||e.display.input.onContextMenu(t)}function Xl(e,t){return ge(e,"gutterContextMenu")?bo(e,t,"gutterContextMenu",!1):!1}function Eo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yn(e)}var on={toString:function(){return"CodeMirror.Init"}},xo={},aa={};function $l(e){var t=e.optionHandlers;function n(r,d,k,K){e.defaults[r]=d,k&&(t[r]=K?function(J,Z,te){te!=on&&k(J,Z,te)}:k)}e.defineOption=n,e.Init=on,n("value","",function(r,d){return r.setValue(d)},!0),n("mode",null,function(r,d){r.doc.modeOption=d,Da(r)},!0),n("indentUnit",2,Da,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){Cn(r),yn(r),Mi(r)},!0),n("lineSeparator",null,function(r,d){if(r.doc.lineSep=d,!d)return;var k=[],K=r.doc.first;r.doc.iter(function(Z){for(var te=0;;){var de=Z.text.indexOf(d,te);if(de==-1)break;te=de+d.length,k.push(Qe(K,de))}K++});for(var J=k.length-1;J>=0;J--)rn(r.doc,d,k[J],Qe(k[J].line,k[J].ch+d.length))}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,d,k){r.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),k!=on&&r.refresh()}),n("specialCharPlaceholder",Yt,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,d){return r.getInputField().spellcheck=d},!0),n("autocorrect",!1,function(r,d){return r.getInputField().autocorrect=d},!0),n("autocapitalize",!1,function(r,d){return r.getInputField().autocapitalize=d},!0),n("rtlMoveVisually",!A),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){Eo(r),Sn(r)},!0),n("keyMap","default",function(r,d,k){var K=ra(d),J=k!=on&&ra(k);J&&J.detach&&J.detach(r,K),K.attach&&K.attach(r,J||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ql,!0),n("gutters",[],function(r,d){r.display.gutterSpecs=La(d,r.options.lineNumbers),Sn(r)},!0),n("fixedGutter",!0,function(r,d){r.display.gutters.style.left=d?_a(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Zr(r)},!0),n("scrollbarStyle","native",function(r){Ts(r),Zr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,d){r.display.gutterSpecs=La(r.options.gutters,d),Sn(r)},!0),n("firstLineNumber",1,Sn,!0),n("lineNumberFormatter",function(r){return r},Sn,!0),n("showCursorWhenSelecting",!1,bn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,d){d=="nocursor"&&(Jr(r),r.display.input.blur()),r.display.input.readOnlyChanged(d)}),n("screenReaderLabel",null,function(r,d){d=d===""?null:d,r.display.input.screenReaderLabelChanged(d)}),n("disableInput",!1,function(r,d){d||r.display.input.reset()},!0),n("dragDrop",!0,Jl),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,bn,!0),n("singleCursorHeightPerLine",!0,bn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Cn,!0),n("addModeClass",!1,Cn,!0),n("pollInterval",100),n("undoDepth",200,function(r,d){return r.doc.history.undoDepth=d}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,Cn,!0),n("moveInputWithCursor",!0,function(r,d){d||r.display.input.resetPosition()}),n("tabindex",null,function(r,d){return r.display.input.getField().tabIndex=d||""}),n("autofocus",null),n("direction","ltr",function(r,d){return r.doc.setDirection(d)},!0),n("phrases",null)}function Jl(e,t,n){var r=n&&n!=on;if(!t!=!r){var d=e.display.dragFunctions,k=t?Me:rt;k(e.display.scroller,"dragstart",d.start),k(e.display.scroller,"dragenter",d.enter),k(e.display.scroller,"dragover",d.over),k(e.display.scroller,"dragleave",d.leave),k(e.display.scroller,"drop",d.drop)}}function Ql(e){e.options.lineWrapping?(B(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),jn(e)),Ea(e),Mi(e),yn(e),setTimeout(function(){return Zr(e)},100)}function Zt(e,t){var n=this;if(!(this instanceof Zt))return new Zt(e,t);this.options=t=t?b(t):{},b(xo,t,!1);var r=t.value;typeof r=="string"?r=new Pi(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var d=new Zt.inputStyles[t.inputStyle](this),k=this.display=new hl(e,r,d,t);k.wrapper.CodeMirror=this,Eo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ts(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},t.autofocus&&!h&&k.input.focus(),G&&W<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Zl(this),Rl(),jr(this),this.curOp.forceUpdate=!0,ks(this,r),t.autofocus&&!h||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Ta(n)},20):Jr(this);for(var K in aa)aa.hasOwnProperty(K)&&aa[K](this,t[K],on);Cs(this),t.finishInit&&t.finishInit(this);for(var J=0;J20*20}Me(t.scroller,"touchstart",function(Z){if(!je(e,Z)&&!k(Z)&&!Wa(e,Z)){t.input.ensurePolled(),clearTimeout(n);var te=+new Date;t.activeTouch={start:te,moved:!1,prev:te-r.end<=300?r:null},Z.touches.length==1&&(t.activeTouch.left=Z.touches[0].pageX,t.activeTouch.top=Z.touches[0].pageY)}}),Me(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Me(t.scroller,"touchend",function(Z){var te=t.activeTouch;if(te&&!dr(t,Z)&&te.left!=null&&!te.moved&&new Date-te.start<300){var de=e.coordsChar(t.activeTouch,"page"),me;!te.prev||K(te,te.prev)?me=new Gt(de,de):!te.prev.prev||K(te,te.prev.prev)?me=e.findWordAt(de):me=new Gt(Qe(de.line,0),E(e.doc,Qe(de.line+1,0))),e.setSelection(me.anchor,me.head),e.focus(),re(Z)}d()}),Me(t.scroller,"touchcancel",d),Me(t.scroller,"scroll",function(){t.scroller.clientHeight&&(En(e,t.scroller.scrollTop),Br(e,t.scroller.scrollLeft,!0),Fe(e,"scroll",e))}),Me(t.scroller,"mousewheel",function(Z){return Rs(e,Z)}),Me(t.scroller,"DOMMouseScroll",function(Z){return Rs(e,Z)}),Me(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(Z){je(e,Z)||fe(Z)},over:function(Z){je(e,Z)||(Ol(e,Z),fe(Z))},start:function(Z){return Al(e,Z)},drop:pi(e,Cl),leave:function(Z){je(e,Z)||ro(e)}};var J=t.input.getField();Me(J,"keyup",function(Z){return mo.call(e,Z)}),Me(J,"keydown",pi(e,po)),Me(J,"keypress",pi(e,go)),Me(J,"focus",function(Z){return Ta(e,Z)}),Me(J,"blur",function(Z){return Jr(e,Z)})}var Ga=[];Zt.defineInitHook=function(e){return Ga.push(e)};function Un(e,t,n,r){var d=e.doc,k;n==null&&(n="add"),n=="smart"&&(d.mode.indent?k=it(e,t).state:n="prev");var K=e.options.tabSize,J=ct(d,t),Z=Y(J.text,null,K);J.stateAfter&&(J.stateAfter=null);var te=J.text.match(/^\s*/)[0],de;if(!r&&!/\S/.test(J.text))de=0,n="not";else if(n=="smart"&&(de=d.mode.indent(k,J.text.slice(te.length),J.text),de==ke||de>150)){if(!r)return;n="prev"}n=="prev"?t>d.first?de=Y(ct(d,t-1).text,null,K):de=0:n=="add"?de=Z+e.options.indentUnit:n=="subtract"?de=Z-e.options.indentUnit:typeof n=="number"&&(de=Z+n),de=Math.max(0,de);var me="",Ie=0;if(e.options.indentWithTabs)for(var Re=Math.floor(de/K);Re;--Re)Ie+=K,me+=" ";if(IeK,Z=St(t),te=null;if(J&&r.ranges.length>1)if(ir&&ir.text.join(` +`)==t){if(r.ranges.length%ir.text.length==0){te=[];for(var de=0;de=0;Ie--){var Re=r.ranges[Ie],He=Re.from(),Xe=Re.to();Re.empty()&&(n&&n>0?He=Qe(He.line,He.ch-n):e.state.overwrite&&!J?Xe=Qe(Xe.line,Math.min(ct(k,Xe.line).text.length,Xe.ch+Oe(Z).length)):J&&ir&&ir.lineWise&&ir.text.join(` `)==Z.join(` -`)&&(He=Xe=Qe(He.line,0)));var qe={from:He,to:Xe,text:te?te[Ie%te.length]:Z,origin:d||(J?"paste":e.state.cutIncoming>K?"cut":"+input")};ir(e.doc,qe),bi(e,"inputRead",e,qe)}t&&!J&&wo(e,t),Zn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=me),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function To(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wi(t,function(){return Ka(t,r,0,null,"paste")}),!0}function wo(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var d=r.ranges[n];if(d.head.ch>100||n&&r.ranges[n-1].head.line==d.head.line)continue;var k=e.getModeAt(d.head),K=!1;if(k.electricChars){for(var J=0;J-1){K=Ur(e,d.head.line,"smart");break}}else k.electricInput&&(k.electricInput.test(ct(e.doc,d.head.line).text.slice(0,d.head.ch))&&(K=Ur(e,d.head.line,"smart")));K&&bi(e,"electricInput",e,d.head.line)}}function So(e){for(var t=[],r=[],n=0;nk&&(Ur(this,J.head.line,n,!0),k=J.head.line,K==this.doc.sel.primIndex&&Zn(this));else{var Z=J.from(),te=J.to(),de=Math.max(k,Z.line);k=Math.min(this.lastLine(),te.line-(te.ch?0:1))+1;for(var me=de;me0&&Na(this.doc,K,new Gt(Z,Ie[K].to()),Se)}}}),getTokenAt:function(n,d){return $t(this,n,d)},getLineTokens:function(n,d){return $t(this,Qe(n),d,!0)},getTokenTypeAt:function(n){n=E(this.doc,n);var d=Ke(this,ct(this.doc,n.line)),k=0,K=(d.length-1)/2,J=n.ch,Z;if(J==0)Z=d[2];else for(;;){var te=k+K>>1;if((te?d[te*2-1]:0)>=J)K=te;else if(d[te*2+1]Z&&(n=Z,K=!0),J=ct(this.doc,n)}else J=n;return Wr(this,J,{top:0,left:0},d||"page",k||K).top+(K?this.doc.height-qi(J):0)},defaultTextHeight:function(){return $n(this.display)},defaultCharWidth:function(){return Jn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,d,k,K,J){var Z=this.display;n=en(this,E(this.doc,n));var te=n.bottom,de=n.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),Z.sizer.appendChild(d),K=="over")te=n.top;else if(K=="above"||K=="near"){var me=Math.max(Z.wrapper.clientHeight,this.doc.height),Ie=Math.max(Z.sizer.clientWidth,Z.lineSpace.clientWidth);(K=="above"||n.bottom+d.offsetHeight>me)&&n.top>d.offsetHeight?te=n.top-d.offsetHeight:n.bottom+d.offsetHeight<=me&&(te=n.bottom),de+d.offsetWidth>Ie&&(de=Ie-d.offsetWidth)}d.style.top=te+"px",d.style.left=d.style.right="",J=="right"?(de=Z.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(J=="left"?de=0:J=="middle"&&(de=(Z.sizer.clientWidth-d.offsetWidth)/2),d.style.left=de+"px"),k&&Jo(this,{left:de,top:te,right:de+d.offsetWidth,bottom:te+d.offsetHeight})},triggerOnKeyDown:Oi(po),triggerOnKeyPress:Oi(go),triggerOnKeyUp:mo,triggerOnMouseDown:Oi(vo),execCommand:function(n){if(Pr.hasOwnProperty(n))return Pr[n].call(null,this)},triggerElectric:Oi(function(n){wo(this,n)}),findPosH:function(n,d,k,K){var J=1;d<0&&(J=-1,d=-d);for(var Z=E(this.doc,n),te=0;te0&&de(k.charAt(K-1));)--K;for(;J.5||this.options.lineWrapping)&&Ea(this),Fe(this,"refresh",this)}),swapDoc:Oi(function(n){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),ks(this,n),yr(this),this.display.input.reset(),_r(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,bi(this,"swapDoc",this,d),d}),phrase:function(n){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,n)?d[n]:n},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}},_e(e),e.registerHelper=function(n,d,k){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][d]=k},e.registerGlobalHelper=function(n,d,k,K){e.registerHelper(n,d,K),r[n]._global.push({pred:k,val:K})}}function za(e,t,r,n,d){var k=t,K=r,J=ct(e,t.line),Z=d&&e.direction=="rtl"?-r:r;function te(){var lt=t.line+Z;return lt=e.first+e.size?!1:(t=new Qe(lt,t.ch,t.sticky),J=ct(e,lt))}function de(lt){var at;if(n=="codepoint"){var ht=J.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(ht)?at=null:at=new Qe(t.line,Math.max(0,Math.min(J.text.length,t.ch+r*(ht>=55296&&ht<56320?2:1))),-r)}else d?at=Ml(e.cm,J,t,r):at=Ba(J,t,r);if(at==null)if(!lt&&te())t=Ua(d,e.cm,J,t.line,Z);else return!1;else t=at;return!0}if(n=="char"||n=="codepoint")de();else if(n=="column")de(!0);else if(n=="word"||n=="group")for(var me=null,Ie=n=="group",Re=e.cm&&e.cm.getHelper(t,"wordChars"),He=!0;!(r<0&&!de(!He));He=!1){var Xe=J.text.charAt(t.ch)||` +`)&&(He=Xe=Qe(He.line,0)));var qe={from:He,to:Xe,text:te?te[Ie%te.length]:Z,origin:d||(J?"paste":e.state.cutIncoming>K?"cut":"+input")};tn(e.doc,qe),bi(e,"inputRead",e,qe)}t&&!J&&wo(e,t),Qr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=me),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function To(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wi(t,function(){return Ka(t,n,0,null,"paste")}),!0}function wo(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var d=n.ranges[r];if(d.head.ch>100||r&&n.ranges[r-1].head.line==d.head.line)continue;var k=e.getModeAt(d.head),K=!1;if(k.electricChars){for(var J=0;J-1){K=Un(e,d.head.line,"smart");break}}else k.electricInput&&(k.electricInput.test(ct(e.doc,d.head.line).text.slice(0,d.head.ch))&&(K=Un(e,d.head.line,"smart")));K&&bi(e,"electricInput",e,d.head.line)}}function So(e){for(var t=[],n=[],r=0;rk&&(Un(this,J.head.line,r,!0),k=J.head.line,K==this.doc.sel.primIndex&&Qr(this));else{var Z=J.from(),te=J.to(),de=Math.max(k,Z.line);k=Math.min(this.lastLine(),te.line-(te.ch?0:1))+1;for(var me=de;me0&&Na(this.doc,K,new Gt(Z,Ie[K].to()),Se)}}}),getTokenAt:function(r,d){return $t(this,r,d)},getLineTokens:function(r,d){return $t(this,Qe(r),d,!0)},getTokenTypeAt:function(r){r=E(this.doc,r);var d=Ke(this,ct(this.doc,r.line)),k=0,K=(d.length-1)/2,J=r.ch,Z;if(J==0)Z=d[2];else for(;;){var te=k+K>>1;if((te?d[te*2-1]:0)>=J)K=te;else if(d[te*2+1]Z&&(r=Z,K=!0),J=ct(this.doc,r)}else J=r;return Wn(this,J,{top:0,left:0},d||"page",k||K).top+(K?this.doc.height-qi(J):0)},defaultTextHeight:function(){return Xr(this.display)},defaultCharWidth:function(){return $r(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,d,k,K,J){var Z=this.display;r=er(this,E(this.doc,r));var te=r.bottom,de=r.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),Z.sizer.appendChild(d),K=="over")te=r.top;else if(K=="above"||K=="near"){var me=Math.max(Z.wrapper.clientHeight,this.doc.height),Ie=Math.max(Z.sizer.clientWidth,Z.lineSpace.clientWidth);(K=="above"||r.bottom+d.offsetHeight>me)&&r.top>d.offsetHeight?te=r.top-d.offsetHeight:r.bottom+d.offsetHeight<=me&&(te=r.bottom),de+d.offsetWidth>Ie&&(de=Ie-d.offsetWidth)}d.style.top=te+"px",d.style.left=d.style.right="",J=="right"?(de=Z.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(J=="left"?de=0:J=="middle"&&(de=(Z.sizer.clientWidth-d.offsetWidth)/2),d.style.left=de+"px"),k&&Jo(this,{left:de,top:te,right:de+d.offsetWidth,bottom:te+d.offsetHeight})},triggerOnKeyDown:Oi(po),triggerOnKeyPress:Oi(go),triggerOnKeyUp:mo,triggerOnMouseDown:Oi(vo),execCommand:function(r){if(Pn.hasOwnProperty(r))return Pn[r].call(null,this)},triggerElectric:Oi(function(r){wo(this,r)}),findPosH:function(r,d,k,K){var J=1;d<0&&(J=-1,d=-d);for(var Z=E(this.doc,r),te=0;te0&&de(k.charAt(K-1));)--K;for(;J.5||this.options.lineWrapping)&&Ea(this),Fe(this,"refresh",this)}),swapDoc:Oi(function(r){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),ks(this,r),yn(this),this.display.input.reset(),_n(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,bi(this,"swapDoc",this,d),d}),phrase:function(r){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,r)?d[r]:r},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}},_e(e),e.registerHelper=function(r,d,k){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][d]=k},e.registerGlobalHelper=function(r,d,k,K){e.registerHelper(r,d,K),n[r]._global.push({pred:k,val:K})}}function za(e,t,n,r,d){var k=t,K=n,J=ct(e,t.line),Z=d&&e.direction=="rtl"?-n:n;function te(){var lt=t.line+Z;return lt=e.first+e.size?!1:(t=new Qe(lt,t.ch,t.sticky),J=ct(e,lt))}function de(lt){var at;if(r=="codepoint"){var ht=J.text.charCodeAt(t.ch+(r>0?0:-1));isNaN(ht)?at=null:at=new Qe(t.line,Math.max(0,Math.min(J.text.length,t.ch+n*(ht>=55296&&ht<56320?2:1))),-n)}else d?at=Ml(e.cm,J,t,n):at=Ba(J,t,n);if(at==null)if(!lt&&te())t=Ua(d,e.cm,J,t.line,Z);else return!1;else t=at;return!0}if(r=="char"||r=="codepoint")de();else if(r=="column")de(!0);else if(r=="word"||r=="group")for(var me=null,Ie=r=="group",Re=e.cm&&e.cm.getHelper(t,"wordChars"),He=!0;!(n<0&&!de(!He));He=!1){var Xe=J.text.charAt(t.ch)||` `,qe=Ge(Xe,Re)?"w":Ie&&Xe==` -`?"n":!Ie||/\s/.test(Xe)?null:"p";if(Ie&&!He&&!qe&&(qe="s"),me&&me!=qe){r<0&&(r=1,de(),t.sticky="after");break}if(qe&&(me=qe),r>0&&!de(!He))break}var rt=ea(e,t,k,K,!0);return mn(k,rt)&&(rt.hitSide=!0),rt}function Oo(e,t,r,n){var d=e.doc,k=t.left,K;if(n=="page"){var J=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Z=Math.max(J-.5*$n(e.display),3);K=(r>0?t.bottom:t.top)+r*Z}else n=="line"&&(K=r>0?t.bottom+3:t.top-3);for(var te;!(te=va(e,k,K),!te.outside);){if(r<0?K<=0:K>=d.height){te.hitSide=!0;break}K+=r*5}return te}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,r=this,n=r.cm,d=r.div=e.lineDiv;Co(d,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function k(J){for(var Z=J.target;Z;Z=Z.parentNode){if(Z==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Z.className))break}return!1}Me(d,"paste",function(J){if(!k(J)||je(n,J)||To(J,n))return;W<=11&&setTimeout(pi(n,function(){return t.updateFromDOM()}),20)}),Me(d,"compositionstart",function(J){t.composing={data:J.data,done:!1}}),Me(d,"compositionupdate",function(J){t.composing||(t.composing={data:J.data,done:!1})}),Me(d,"compositionend",function(J){t.composing&&(J.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Me(d,"touchstart",function(){return r.forceCompositionEnd()}),Me(d,"input",function(){t.composing||t.readFromDOMSoon()});function K(J){if(!k(J)||je(n,J))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()}),J.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var Z=So(n);sa({lineWise:!0,text:Z.text}),J.type=="cut"&&n.operation(function(){n.setSelections(Z.ranges,0,Se),n.replaceSelection("",null,"cut")})}else return;if(J.clipboardData){J.clipboardData.clearData();var te=nn.text.join(` -`);if(J.clipboardData.setData("Text",te),J.clipboardData.getData("Text")==te){J.preventDefault();return}}var de=Ao(),me=de.firstChild;n.display.lineSpace.insertBefore(de,n.display.lineSpace.firstChild),me.value=nn.text.join(` -`);var Ie=document.activeElement;j(me),setTimeout(function(){n.display.lineSpace.removeChild(de),Ie.focus(),Ie==d&&r.showPrimarySelection()},50)}Me(d,"copy",K),Me(d,"cut",K)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=ps(this.cm,!1);return e.focus=document.activeElement==this.div,e},zt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),d=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||d.line=t.display.viewFrom&&Ro(t,n)||{node:J[0].measure.map[2],offset:0},te=d.linee.firstLine()&&(n=Qe(n.line-1,ct(e.doc,n.line-1).length)),d.ch==ct(e.doc,d.line).text.length&&d.linet.viewTo-1)return!1;var k,K,J;n.line==t.viewFrom||(k=Bn(e,n.line))==0?(K=Ot(t.view[0].line),J=t.view[0].node):(K=Ot(t.view[k].line),J=t.view[k-1].node.nextSibling);var Z=Bn(e,d.line),te,de;if(Z==t.view.length-1?(te=t.viewTo-1,de=t.lineDiv.lastChild):(te=Ot(t.view[Z+1].line)-1,de=t.view[Z+1].node.previousSibling),!J)return!1;for(var me=e.doc.splitLines(tu(e,J,de,K,te)),Ie=Ui(e.doc,Qe(K,0),Qe(te,ct(e.doc,te).text.length));me.length>1&&Ie.length>1;)if(Oe(me)==Oe(Ie))me.pop(),Ie.pop(),te--;else if(me[0]==Ie[0])me.shift(),Ie.shift(),K++;else break;for(var Re=0,He=0,Xe=me[0],qe=Ie[0],rt=Math.min(Xe.length,qe.length);Ren.ch&<.charCodeAt(lt.length-He-1)==at.charCodeAt(at.length-He-1);)Re--,He++;me[me.length-1]=lt.slice(0,lt.length-He).replace(/^\u200b+/,""),me[0]=me[0].slice(Re).replace(/\u200b+$/,"");var Tt=Qe(K,Re),vt=Qe(te,Ie.length?Oe(Ie).length-He:0);if(me.length>1||me[0]||Ct(Tt,vt))return nr(e.doc,me,Tt,vt,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},zt.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)},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wi(this.cm,function(){return Mi(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pi(this.cm,Ka)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Ro(e,t){var r=fa(e,t.line);if(!r||r.hidden)return null;var n=ct(e.doc,t.line),d=es(r,n,t.line),k=et(n,e.doc.direction),K="left";if(k){var J=$e(k,t.ch);K=J%2?"right":"left"}var Z=ns(d.map,t.ch,K);return Z.offset=Z.collapse=="right"?Z.end:Z.start,Z}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function lr(e,t){return t&&(e.bad=!0),e}function tu(e,t,r,n,d){var k="",K=!1,J=e.doc.lineSeparator(),Z=!1;function te(Re){return function(He){return He.id==Re}}function de(){K&&(k+=J,Z&&(k+=J),K=Z=!1)}function me(Re){Re&&(de(),k+=Re)}function Ie(Re){if(Re.nodeType==1){var He=Re.getAttribute("cm-text");if(He){me(He);return}var Xe=Re.getAttribute("cm-marker"),qe;if(Xe){var rt=e.findMarks(Qe(n,0),Qe(d+1,0),te(+Xe));rt.length&&(qe=rt[0].find(0))&&me(Ui(e.doc,qe.from,qe.to).join(J));return}if(Re.getAttribute("contenteditable")=="false")return;var lt=/^(pre|div|p|li|table|br)$/i.test(Re.nodeName);if(!/^br$/i.test(Re.nodeName)&&Re.textContent.length==0)return;lt&&de();for(var at=0;at=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),Me(d,"paste",function(K){if(je(n,K)||To(K,n))return;n.state.pasteIncoming=+new Date,r.fastPoll()});function k(K){if(je(n,K))return;if(n.somethingSelected())sa({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var J=So(n);sa({lineWise:!0,text:J.text}),K.type=="cut"?n.setSelections(J.ranges,null,Se):(r.prevInput="",d.value=J.text.join(` -`),j(d))}else return;K.type=="cut"&&(n.state.cutIncoming=+new Date)}Me(d,"cut",k),Me(d,"copy",k),Me(e.scroller,"paste",function(K){if(cn(e,K)||je(n,K))return;if(!d.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var J=new Event("paste");J.clipboardData=K.clipboardData,d.dispatchEvent(J)}),Me(e.lineSpace,"selectstart",function(K){cn(e,K)||ne(K)}),Me(d,"compositionstart",function(){var K=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:K,range:n.markText(K,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Me(d,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},ri.prototype.createField=function(e){this.wrapper=Ao(),this.textarea=this.wrapper.firstChild},ri.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ri.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=ps(e);if(e.options.moveInputWithCursor){var d=en(e,r.sel.primary().head,"div"),k=t.wrapper.getBoundingClientRect(),K=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,d.top+K.top-k.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,d.left+K.left-k.left))}return n},ri.prototype.showSelection=function(e){var t=this.cm,r=t.display;x(r.cursorDiv,e.cursors),x(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ri.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&j(this.textarea),G&&W>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",G&&W>=9&&(this.hasSelection=null))},ri.prototype.getField=function(){return this.textarea},ri.prototype.supportsTouch=function(){return!1},ri.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},ri.prototype.blur=function(){this.textarea.blur()},ri.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ri.prototype.receivedFocus=function(){this.slowPoll()},ri.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()})},ri.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function r(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,r)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,r)},ri.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||dt(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var d=r.value;if(d==n&&!t.somethingSelected())return!1;if(G&&W>=9&&this.hasSelection===d||s&&/[\uf700-\uf7ff]/.test(d))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var k=d.charCodeAt(0);if(k==8203&&!n&&(n="\u200B"),k==8666)return this.reset(),this.cm.execCommand("undo")}for(var K=0,J=Math.min(n.length,d.length);K1e3||d.indexOf(` -`)>-1?r.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ri.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ri.prototype.onKeyPress=function(){G&&W>=9&&(this.hasSelection=null),this.fastPoll()},ri.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,d=t.textarea;t.contextMenuPending&&t.contextMenuPending();var k=Fn(r,e),K=n.scroller.scrollTop;if(!k||m)return;var J=r.options.resetSelectionOnContextMenu;J&&r.doc.sel.contains(k)==-1&&pi(r,wi)(r.doc,Cn(k),Se);var Z=d.style.cssText,te=t.wrapper.style.cssText,de=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px; +`?"n":!Ie||/\s/.test(Xe)?null:"p";if(Ie&&!He&&!qe&&(qe="s"),me&&me!=qe){n<0&&(n=1,de(),t.sticky="after");break}if(qe&&(me=qe),n>0&&!de(!He))break}var nt=ea(e,t,k,K,!0);return pr(k,nt)&&(nt.hitSide=!0),nt}function Oo(e,t,n,r){var d=e.doc,k=t.left,K;if(r=="page"){var J=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Z=Math.max(J-.5*Xr(e.display),3);K=(n>0?t.bottom:t.top)+n*Z}else r=="line"&&(K=n>0?t.bottom+3:t.top-3);for(var te;!(te=va(e,k,K),!te.outside);){if(n<0?K<=0:K>=d.height){te.hitSide=!0;break}K+=n*5}return te}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,n=this,r=n.cm,d=n.div=e.lineDiv;Co(d,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function k(J){for(var Z=J.target;Z;Z=Z.parentNode){if(Z==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Z.className))break}return!1}Me(d,"paste",function(J){if(!k(J)||je(r,J)||To(J,r))return;W<=11&&setTimeout(pi(r,function(){return t.updateFromDOM()}),20)}),Me(d,"compositionstart",function(J){t.composing={data:J.data,done:!1}}),Me(d,"compositionupdate",function(J){t.composing||(t.composing={data:J.data,done:!1})}),Me(d,"compositionend",function(J){t.composing&&(J.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Me(d,"touchstart",function(){return n.forceCompositionEnd()}),Me(d,"input",function(){t.composing||t.readFromDOMSoon()});function K(J){if(!k(J)||je(r,J))return;if(r.somethingSelected())sa({lineWise:!1,text:r.getSelections()}),J.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var Z=So(r);sa({lineWise:!0,text:Z.text}),J.type=="cut"&&r.operation(function(){r.setSelections(Z.ranges,0,Se),r.replaceSelection("",null,"cut")})}else return;if(J.clipboardData){J.clipboardData.clearData();var te=ir.text.join(` +`);if(J.clipboardData.setData("Text",te),J.clipboardData.getData("Text")==te){J.preventDefault();return}}var de=Ao(),me=de.firstChild;r.display.lineSpace.insertBefore(de,r.display.lineSpace.firstChild),me.value=ir.text.join(` +`);var Ie=document.activeElement;j(me),setTimeout(function(){r.display.lineSpace.removeChild(de),Ie.focus(),Ie==d&&n.showPrimarySelection()},50)}Me(d,"copy",K),Me(d,"cut",K)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=ps(this.cm,!1);return e.focus=document.activeElement==this.div,e},zt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),d=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||d.line=t.display.viewFrom&&Ro(t,r)||{node:J[0].measure.map[2],offset:0},te=d.linee.firstLine()&&(r=Qe(r.line-1,ct(e.doc,r.line-1).length)),d.ch==ct(e.doc,d.line).text.length&&d.linet.viewTo-1)return!1;var k,K,J;r.line==t.viewFrom||(k=Fr(e,r.line))==0?(K=Ot(t.view[0].line),J=t.view[0].node):(K=Ot(t.view[k].line),J=t.view[k-1].node.nextSibling);var Z=Fr(e,d.line),te,de;if(Z==t.view.length-1?(te=t.viewTo-1,de=t.lineDiv.lastChild):(te=Ot(t.view[Z+1].line)-1,de=t.view[Z+1].node.previousSibling),!J)return!1;for(var me=e.doc.splitLines(tu(e,J,de,K,te)),Ie=Ui(e.doc,Qe(K,0),Qe(te,ct(e.doc,te).text.length));me.length>1&&Ie.length>1;)if(Oe(me)==Oe(Ie))me.pop(),Ie.pop(),te--;else if(me[0]==Ie[0])me.shift(),Ie.shift(),K++;else break;for(var Re=0,He=0,Xe=me[0],qe=Ie[0],nt=Math.min(Xe.length,qe.length);Rer.ch&<.charCodeAt(lt.length-He-1)==at.charCodeAt(at.length-He-1);)Re--,He++;me[me.length-1]=lt.slice(0,lt.length-He).replace(/^\u200b+/,""),me[0]=me[0].slice(Re).replace(/\u200b+$/,"");var Tt=Qe(K,Re),vt=Qe(te,Ie.length?Oe(Ie).length-He:0);if(me.length>1||me[0]||Ct(Tt,vt))return rn(e.doc,me,Tt,vt,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},zt.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)},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wi(this.cm,function(){return Mi(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||pi(this.cm,Ka)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Ro(e,t){var n=fa(e,t.line);if(!n||n.hidden)return null;var r=ct(e.doc,t.line),d=es(n,r,t.line),k=et(r,e.doc.direction),K="left";if(k){var J=$e(k,t.ch);K=J%2?"right":"left"}var Z=rs(d.map,t.ch,K);return Z.offset=Z.collapse=="right"?Z.end:Z.start,Z}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ln(e,t){return t&&(e.bad=!0),e}function tu(e,t,n,r,d){var k="",K=!1,J=e.doc.lineSeparator(),Z=!1;function te(Re){return function(He){return He.id==Re}}function de(){K&&(k+=J,Z&&(k+=J),K=Z=!1)}function me(Re){Re&&(de(),k+=Re)}function Ie(Re){if(Re.nodeType==1){var He=Re.getAttribute("cm-text");if(He){me(He);return}var Xe=Re.getAttribute("cm-marker"),qe;if(Xe){var nt=e.findMarks(Qe(r,0),Qe(d+1,0),te(+Xe));nt.length&&(qe=nt[0].find(0))&&me(Ui(e.doc,qe.from,qe.to).join(J));return}if(Re.getAttribute("contenteditable")=="false")return;var lt=/^(pre|div|p|li|table|br)$/i.test(Re.nodeName);if(!/^br$/i.test(Re.nodeName)&&Re.textContent.length==0)return;lt&&de();for(var at=0;at=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Me(d,"paste",function(K){if(je(r,K)||To(K,r))return;r.state.pasteIncoming=+new Date,n.fastPoll()});function k(K){if(je(r,K))return;if(r.somethingSelected())sa({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var J=So(r);sa({lineWise:!0,text:J.text}),K.type=="cut"?r.setSelections(J.ranges,null,Se):(n.prevInput="",d.value=J.text.join(` +`),j(d))}else return;K.type=="cut"&&(r.state.cutIncoming=+new Date)}Me(d,"cut",k),Me(d,"copy",k),Me(e.scroller,"paste",function(K){if(dr(e,K)||je(r,K))return;if(!d.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var J=new Event("paste");J.clipboardData=K.clipboardData,d.dispatchEvent(J)}),Me(e.lineSpace,"selectstart",function(K){dr(e,K)||re(K)}),Me(d,"compositionstart",function(){var K=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:K,range:r.markText(K,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Me(d,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},ni.prototype.createField=function(e){this.wrapper=Ao(),this.textarea=this.wrapper.firstChild},ni.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ni.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=ps(e);if(e.options.moveInputWithCursor){var d=er(e,n.sel.primary().head,"div"),k=t.wrapper.getBoundingClientRect(),K=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,d.top+K.top-k.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,d.left+K.left-k.left))}return r},ni.prototype.showSelection=function(e){var t=this.cm,n=t.display;x(n.cursorDiv,e.cursors),x(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ni.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&j(this.textarea),G&&W>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",G&&W>=9&&(this.hasSelection=null))},ni.prototype.getField=function(){return this.textarea},ni.prototype.supportsTouch=function(){return!1},ni.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||N()!=this.textarea))try{this.textarea.focus()}catch(e){}},ni.prototype.blur=function(){this.textarea.blur()},ni.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ni.prototype.receivedFocus=function(){this.slowPoll()},ni.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()})},ni.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},ni.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||dt(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var d=n.value;if(d==r&&!t.somethingSelected())return!1;if(G&&W>=9&&this.hasSelection===d||s&&/[\uf700-\uf7ff]/.test(d))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var k=d.charCodeAt(0);if(k==8203&&!r&&(r="\u200B"),k==8666)return this.reset(),this.cm.execCommand("undo")}for(var K=0,J=Math.min(r.length,d.length);K1e3||d.indexOf(` +`)>-1?n.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ni.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ni.prototype.onKeyPress=function(){G&&W>=9&&(this.hasSelection=null),this.fastPoll()},ni.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,d=t.textarea;t.contextMenuPending&&t.contextMenuPending();var k=Nr(n,e),K=r.scroller.scrollTop;if(!k||m)return;var J=n.options.resetSelectionOnContextMenu;J&&n.doc.sel.contains(k)==-1&&pi(n,wi)(n.doc,Sr(k),Se);var Z=d.style.cssText,te=t.wrapper.style.cssText,de=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-de.top-5)+"px; left: "+(e.clientX-de.left-5)+`px; z-index: 1000; background: `+(G?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var me;i&&(me=window.scrollY),n.input.focus(),i&&window.scrollTo(null,me),n.input.reset(),r.somethingSelected()||(d.value=t.prevInput=" "),t.contextMenuPending=Re,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function Ie(){if(d.selectionStart!=null){var Xe=r.somethingSelected(),qe="\u200B"+(Xe?d.value:"");d.value="\u21DA",d.value=qe,t.prevInput=Xe?"":"\u200B",d.selectionStart=1,d.selectionEnd=qe.length,n.selForContextMenu=r.doc.sel}}function Re(){if(t.contextMenuPending!=Re)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=te,d.style.cssText=Z,G&&W<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=K),d.selectionStart!=null){(!G||G&&W<9)&&Ie();var Xe=0,qe=function(){n.selForContextMenu==r.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&t.prevInput=="\u200B"?pi(r,Vs)(r):Xe++<10?n.detectingSelectAll=setTimeout(qe,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(qe,200)}}if(G&&W>=9&&Ie(),L){fe(e);var He=function(){nt(window,"mouseup",He),setTimeout(Re,20)};Me(window,"mouseup",He)}else setTimeout(Re,50)},ri.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ri.prototype.setUneditable=function(){},ri.prototype.needsContentAttribute=!1;function nu(e,t){if(t=t?b(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var r=N();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=J.getValue()}var d;if(e.form&&(Me(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var k=e.form;d=k.submit;try{var K=k.submit=function(){n(),k.submit=d,k.submit(),k.submit=K}}catch(Z){}}t.finishInit=function(Z){Z.save=n,Z.getTextArea=function(){return e},Z.toTextArea=function(){Z.toTextArea=isNaN,n(),e.parentNode.removeChild(Z.getWrapperElement()),e.style.display="",e.form&&(nt(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var J=Zt(function(Z){return e.parentNode.insertBefore(Z,e.nextSibling)},t);return J}function ru(e){e.off=nt,e.on=Me,e.wheelEventPixels=dl,e.Doc=Pi,e.splitLines=St,e.countColumn=Y,e.findColumn=pe,e.isWordChar=Be,e.Pass=ke,e.signal=Fe,e.Line=Mn,e.changeEnd=An,e.scrollbarModel=xs,e.Pos=Qe,e.cmpPos=Ct,e.modes=Qt,e.mimeModes=It,e.resolveMode=yt,e.getMode=Li,e.modeExtensions=bt,e.extendMode=xt,e.copyState=Ft,e.startState=di,e.innerMode=ti,e.commands=Pr,e.keyMap=fn,e.keyName=lo,e.isModifierKey=so,e.lookupKey=ar,e.normalizeKeyMap=kl,e.StringStream=Pt,e.SharedTextMarker=Dr,e.TextMarker=Rn,e.LineWidget=Ir,e.e_preventDefault=ne,e.e_stopPropagation=re,e.e_stop=fe,e.addClass=B,e.contains=v,e.rmClass=C,e.keyNames=Ln}$l(Zt),ql(Zt);var au="iter insert remove copy getEditor constructor".split(" ");for(var la in Pi.prototype)Pi.prototype.hasOwnProperty(la)&&le(au,la)<0&&(Zt.prototype[la]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pi.prototype[la]));return _e(Pi),Zt.inputStyles={textarea:ri,contenteditable:zt},Zt.defineMode=function(e){!Zt.defaults.mode&&e!="null"&&(Zt.defaults.mode=e),Ci.apply(this,arguments)},Zt.defineMIME=Ki,Zt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Zt.defineMIME("text/plain","null"),Zt.defineExtension=function(e,t){Zt.prototype[e]=t},Zt.defineDocExtension=function(e,t){Pi.prototype[e]=t},Zt.fromTextArea=nu,ru(Zt),Zt.version="5.58.2",Zt})},Y1PL:function(st,be,Q){"use strict";Q.r(be),Q.d(be,"ResizableTextArea",function(){return le});var ie=Q("wx14"),$=Q("1OyB"),M=Q("vuIU"),X=Q("Ji7U"),F=Q("LK+K"),U=Q("q1tI"),G=Q("VTBJ"),W=Q("rePB"),i=Q("Zm9Q"),D=Q("Kwbf"),g=Q("c+Xe"),m=Q("m+aA"),p=Q("bdgK"),l=new Map;function u(Se){Se.forEach(function(Ce){var ce,pe=Ce.target;(ce=l.get(pe))===null||ce===void 0||ce.forEach(function(se){return se(pe)})})}var f=new p.default(u),o=null,h=null;function s(Se,Ce){l.has(Se)||(l.set(Se,new Set),f.observe(Se)),l.get(Se).add(Ce)}function a(Se,Ce){l.has(Se)&&(l.get(Se).delete(Ce),l.get(Se).size||(f.unobserve(Se),l.delete(Se)))}var A=function(Se){Object(X.a)(ce,Se);var Ce=Object(F.a)(ce);function ce(){return Object($.a)(this,ce),Ce.apply(this,arguments)}return Object(M.a)(ce,[{key:"render",value:function(){return this.props.children}}]),ce}(U.Component),_=U.createContext(null);function S(Se){var Ce=Se.children,ce=Se.onBatchResize,pe=U.useRef(0),se=U.useRef([]),ae=U.useContext(_),Oe=U.useCallback(function(Te,Ne,De){pe.current+=1;var We=pe.current;se.current.push({size:Te,element:Ne,data:De}),Promise.resolve().then(function(){We===pe.current&&(ce==null||ce(se.current),se.current=[])}),ae==null||ae(Te,Ne,De)},[ce,ae]);return U.createElement(_.Provider,{value:Oe},Ce)}function L(Se){var Ce=Se.children,ce=Se.disabled,pe=U.useRef(null),se=U.useRef(null),ae=U.useContext(_),Oe=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Te=U.isValidElement(Ce)&&Object(g.c)(Ce),Ne=Te?Ce.ref:null,De=U.useMemo(function(){return Object(g.a)(Ne,pe)},[Ne,pe]),We=U.useRef(Se);We.current=Se;var Le=U.useCallback(function(Be){var Ge=We.current,oe=Ge.onResize,ye=Ge.data,we=Be.getBoundingClientRect(),Ae=we.width,Ue=we.height,Ve=Be.offsetWidth,Ze=Be.offsetHeight,$e=Math.floor(Ae),tt=Math.floor(Ue);if(Oe.current.width!==$e||Oe.current.height!==tt||Oe.current.offsetWidth!==Ve||Oe.current.offsetHeight!==Ze){var et={width:$e,height:tt,offsetWidth:Ve,offsetHeight:Ze};Oe.current=et;var Je=Ve===Math.round(Ae)?Ae:Ve,Me=Ze===Math.round(Ue)?Ue:Ze,ut=Object(G.a)(Object(G.a)({},et),{},{offsetWidth:Je,offsetHeight:Me});ae==null||ae(ut,Be,ye),oe&&Promise.resolve().then(function(){oe(ut,Be)})}},[]);return U.useEffect(function(){var Be=Object(m.a)(pe.current)||Object(m.a)(se.current);return Be&&!ce&&s(Be,Le),function(){return a(Be,Le)}},[pe.current,ce]),U.createElement(A,{ref:se},Te?U.cloneElement(Ce,{ref:De}):Ce)}var R="rc-observer-key";function C(Se){var Ce=Se.children,ce=Object(i.a)(Ce);return ce.map(function(pe,se){var ae=(pe==null?void 0:pe.key)||"".concat(R,"-").concat(se);return U.createElement(L,Object(ie.a)({},Se,{key:ae}),pe)})}C.Collection=S;var w=C,x=Q("bT9E"),c=Q("TSYQ"),T=Q.n(c),y=` + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var me;i&&(me=window.scrollY),r.input.focus(),i&&window.scrollTo(null,me),r.input.reset(),n.somethingSelected()||(d.value=t.prevInput=" "),t.contextMenuPending=Re,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function Ie(){if(d.selectionStart!=null){var Xe=n.somethingSelected(),qe="\u200B"+(Xe?d.value:"");d.value="\u21DA",d.value=qe,t.prevInput=Xe?"":"\u200B",d.selectionStart=1,d.selectionEnd=qe.length,r.selForContextMenu=n.doc.sel}}function Re(){if(t.contextMenuPending!=Re)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=te,d.style.cssText=Z,G&&W<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=K),d.selectionStart!=null){(!G||G&&W<9)&&Ie();var Xe=0,qe=function(){r.selForContextMenu==n.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&t.prevInput=="\u200B"?pi(n,Vs)(n):Xe++<10?r.detectingSelectAll=setTimeout(qe,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(qe,200)}}if(G&&W>=9&&Ie(),L){fe(e);var He=function(){rt(window,"mouseup",He),setTimeout(Re,20)};Me(window,"mouseup",He)}else setTimeout(Re,50)},ni.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},ni.prototype.setUneditable=function(){},ni.prototype.needsContentAttribute=!1;function ru(e,t){if(t=t?b(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=N();t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=J.getValue()}var d;if(e.form&&(Me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var k=e.form;d=k.submit;try{var K=k.submit=function(){r(),k.submit=d,k.submit(),k.submit=K}}catch(Z){}}t.finishInit=function(Z){Z.save=r,Z.getTextArea=function(){return e},Z.toTextArea=function(){Z.toTextArea=isNaN,r(),e.parentNode.removeChild(Z.getWrapperElement()),e.style.display="",e.form&&(rt(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var J=Zt(function(Z){return e.parentNode.insertBefore(Z,e.nextSibling)},t);return J}function nu(e){e.off=rt,e.on=Me,e.wheelEventPixels=dl,e.Doc=Pi,e.splitLines=St,e.countColumn=Y,e.findColumn=pe,e.isWordChar=Be,e.Pass=ke,e.signal=Fe,e.Line=kr,e.changeEnd=Cr,e.scrollbarModel=xs,e.Pos=Qe,e.cmpPos=Ct,e.modes=Qt,e.mimeModes=It,e.resolveMode=yt,e.getMode=Li,e.modeExtensions=bt,e.extendMode=xt,e.copyState=Ft,e.startState=di,e.innerMode=ti,e.commands=Pn,e.keyMap=cr,e.keyName=lo,e.isModifierKey=so,e.lookupKey=an,e.normalizeKeyMap=kl,e.StringStream=Pt,e.SharedTextMarker=Dn,e.TextMarker=Or,e.LineWidget=In,e.e_preventDefault=re,e.e_stopPropagation=ne,e.e_stop=fe,e.addClass=B,e.contains=v,e.rmClass=C,e.keyNames=Rr}$l(Zt),ql(Zt);var au="iter insert remove copy getEditor constructor".split(" ");for(var la in Pi.prototype)Pi.prototype.hasOwnProperty(la)&&le(au,la)<0&&(Zt.prototype[la]=function(e){return function(){return e.apply(this.doc,arguments)}}(Pi.prototype[la]));return _e(Pi),Zt.inputStyles={textarea:ni,contenteditable:zt},Zt.defineMode=function(e){!Zt.defaults.mode&&e!="null"&&(Zt.defaults.mode=e),Ci.apply(this,arguments)},Zt.defineMIME=Ki,Zt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Zt.defineMIME("text/plain","null"),Zt.defineExtension=function(e,t){Zt.prototype[e]=t},Zt.defineDocExtension=function(e,t){Pi.prototype[e]=t},Zt.fromTextArea=ru,nu(Zt),Zt.version="5.58.2",Zt})},Y1PL:function(st,be,Q){"use strict";Q.r(be),Q.d(be,"ResizableTextArea",function(){return le});var ie=Q("wx14"),$=Q("1OyB"),M=Q("vuIU"),X=Q("Ji7U"),F=Q("LK+K"),U=Q("q1tI"),G=Q("VTBJ"),W=Q("rePB"),i=Q("Zm9Q"),D=Q("Kwbf"),g=Q("c+Xe"),m=Q("m+aA"),p=Q("bdgK"),l=new Map;function u(Se){Se.forEach(function(Ce){var ce,pe=Ce.target;(ce=l.get(pe))===null||ce===void 0||ce.forEach(function(se){return se(pe)})})}var f=new p.default(u),o=null,h=null;function s(Se,Ce){l.has(Se)||(l.set(Se,new Set),f.observe(Se)),l.get(Se).add(Ce)}function a(Se,Ce){l.has(Se)&&(l.get(Se).delete(Ce),l.get(Se).size||(f.unobserve(Se),l.delete(Se)))}var A=function(Se){Object(X.a)(ce,Se);var Ce=Object(F.a)(ce);function ce(){return Object($.a)(this,ce),Ce.apply(this,arguments)}return Object(M.a)(ce,[{key:"render",value:function(){return this.props.children}}]),ce}(U.Component),_=U.createContext(null);function S(Se){var Ce=Se.children,ce=Se.onBatchResize,pe=U.useRef(0),se=U.useRef([]),ae=U.useContext(_),Oe=U.useCallback(function(Te,Ne,De){pe.current+=1;var We=pe.current;se.current.push({size:Te,element:Ne,data:De}),Promise.resolve().then(function(){We===pe.current&&(ce==null||ce(se.current),se.current=[])}),ae==null||ae(Te,Ne,De)},[ce,ae]);return U.createElement(_.Provider,{value:Oe},Ce)}function L(Se){var Ce=Se.children,ce=Se.disabled,pe=U.useRef(null),se=U.useRef(null),ae=U.useContext(_),Oe=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Te=U.isValidElement(Ce)&&Object(g.c)(Ce),Ne=Te?Ce.ref:null,De=U.useMemo(function(){return Object(g.a)(Ne,pe)},[Ne,pe]),We=U.useRef(Se);We.current=Se;var Le=U.useCallback(function(Be){var Ge=We.current,oe=Ge.onResize,ye=Ge.data,we=Be.getBoundingClientRect(),Ae=we.width,Ue=we.height,Ve=Be.offsetWidth,Ze=Be.offsetHeight,$e=Math.floor(Ae),tt=Math.floor(Ue);if(Oe.current.width!==$e||Oe.current.height!==tt||Oe.current.offsetWidth!==Ve||Oe.current.offsetHeight!==Ze){var et={width:$e,height:tt,offsetWidth:Ve,offsetHeight:Ze};Oe.current=et;var Je=Ve===Math.round(Ae)?Ae:Ve,Me=Ze===Math.round(Ue)?Ue:Ze,ut=Object(G.a)(Object(G.a)({},et),{},{offsetWidth:Je,offsetHeight:Me});ae==null||ae(ut,Be,ye),oe&&Promise.resolve().then(function(){oe(ut,Be)})}},[]);return U.useEffect(function(){var Be=Object(m.a)(pe.current)||Object(m.a)(se.current);return Be&&!ce&&s(Be,Le),function(){return a(Be,Le)}},[pe.current,ce]),U.createElement(A,{ref:se},Te?U.cloneElement(Ce,{ref:De}):Ce)}var R="rc-observer-key";function C(Se){var Ce=Se.children,ce=Object(i.a)(Ce);return ce.map(function(pe,se){var ae=(pe==null?void 0:pe.key)||"".concat(R,"-").concat(se);return U.createElement(L,Object(ie.a)({},Se,{key:ae}),pe)})}C.Collection=S;var w=C,x=Q("bT9E"),c=Q("TSYQ"),T=Q.n(c),y=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -395,7 +395,7 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var d=e. `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},o={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(` -`)}]},h=Q("5VLF"),s=Q.n(h),a={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"]}},A=function(Y,ee){return ee.map(function(le){return{label:le,kind:Y.languages.CompletionItemKind.Keyword,insertText:le}})},_=function(Y){return Object.keys(a.tables).map(function(ee){return{label:ee,kind:Y.languages.CompletionItemKind.Variable,insertText:ee}})},S=function(Y,ee){var le=a.tables[Y];return le?le.map(function(ue){return{label:ue,kind:ee.languages.CompletionItemKind.Field,insertText:ue}}):[]};function L(b,Y,ee,le,ue){var ke=Y.getWordUntilPosition(ee),Se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Ce=le.map(function(ce){return{label:ce,kind:b.languages.CompletionItemKind.Keyword,insertText:ce,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}});return ue.map(function(ce){Ce.push(Object(ie.a)(Object(ie.a)({},ce),{},{range:Se}))}),Ce}var R=function(b){a.languages.map(function(ue){return b.languages.registerDocumentFormattingEditProvider(ue,{provideDocumentFormattingEdits:function(Se,Ce,ce){return Object(g.a)(p.a.mark(function pe(){var se;return p.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return se=s()(Se.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}),Oe.abrupt("return",[{range:Se.getFullModelRange(),text:se}]);case 2:case"end":return Oe.stop()}},pe)}))()}}),ue});var Y=f.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ee=o.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),le=u.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}});b.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(f.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(f.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}}),b.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn};return{suggestions:Object($.a)(l.keywords.map(function(pe){return{label:pe,kind:b.languages.CompletionItemKind.Function,documentation:pe,insertText:pe,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}}))}}}),b.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(u.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(u.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}}),b.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(o.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(o.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}})},C="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",w=Q("fjLI"),x=Q("LvDl"),c=Q("+ua5");function T(b){return/^\d+$/.test(b)?"".concat(b,"px"):b}function y(){}var v=!1,N={"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 B(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=b;if(Array.isArray(b)){for(var ee=0;ee0||di.target.offsetWidth>0)&&je.current.instance.layout()}}catch(Pt){Ft.e(Pt)}finally{Ft.f()}}),bt.observe(Fe.current)),bt}function ze(){X.b.warn(decodeURIComponent(C))}var ot=function(){var xt=je.current.instance;if(ke!=null&&xt&&fe){var Ft=xt.getModel();Ft&&ke!==Ft.getValue()&&(v=!0,Ft.setValue(ke),xt.layout(),v=!1)}};Object(W.useEffect)(function(){ge.current&&clearTimeout(ge.current),ge.current=setTimeout(function(){ot()},500)},[ke,fe,je.current]),Object(W.useEffect)(function(){if(Je&&je.current&&je.current.instance){var bt=je.current.instance;bt.changeViewZones(function(Ft){var ti=document.createElement("div");ti.style.padding="10px 20px",ti.style.width="calc(100% - 20px)",ti.className="my-error-line-wrp",ti.innerHTML=ut,Ft.addZone({afterLineNumber:Je||11,heightInLines:3,domNode:ti})});var xt={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}};bt.addOverlayWidget(xt),bt.revealPositionInCenter({lineNumber:20,column:1})}},[Je,je.current,fe]);function mt(){var bt=je.current.instance;if(bt){var xt=bt.getSelection(),Ft=je.current.pastePos||{},ti=new O.Range(Ft.startLineNumber||xt.endLineNumber,Ft.startColumn||xt.endColumn,Ft.endLineNumber||xt.endLineNumber,Ft.endColumn||xt.endColumn);setTimeout(function(){bt.executeEdits("",[{range:ti,text:""}])},300)}}function ft(bt){(window.navigator.platform.match("Mac")?bt.metaKey:bt.ctrlKey)&&bt.keyCode==83&&(bt.preventDefault(),Le())}var wt=function(){if(Ge&&je.current.instance){var xt=je.current.instance.getContentHeight();yt(xt0||Ue.target.offsetWidth>0)&&Ge.layout()}}catch(Ve){we.e(Ve)}finally{we.f()}}),oe.observe(se.current)),oe}Object(W.useEffect)(function(){se.current&&Promise.all([Q.e(16),Q.e(28)]).then(Q.t.bind(null,"M/lh",7)).then(function(Ge){O=Ge;var oe=O.editor.createDiffEditor(se.current,Object(ie.a)(Object(ie.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},pe),{},{wordWrap:!0}));Ne(oe);var ye=De(oe);return function(){oe.dispose();var we=oe.getModel();we&&we.dispose(),ye.unobserve(se.current)}})},[]),Object(W.useEffect)(function(){Te&&Te.setModel({original:O.editor.createModel(ke,Ce),modified:O.editor.createModel(Se,Ce)})},[ke,Se,Ce,Te]);var We=T(ee),Le=T(ue),Be={width:We,height:Le};return i.a.createElement("div",{className:"my-diff-editor",ref:se,style:Be})}},ZpRC:function(st,be,Q){"use strict";function ie(g){return typeof g=="object"&&g!=null&&g.nodeType===1}function $(g,m){return(!m||g!=="hidden")&&g!=="visible"&&g!=="clip"}function M(g,m){if(g.clientHeightm||f>g&&o=m&&h>=p?f-g-l:o>m&&hp?o-m+u:0}var F=function(g,m){var p=window,l=m.scrollMode,u=m.block,f=m.inline,o=m.boundary,h=m.skipOverflowHiddenElements,s=typeof o=="function"?o:function(Ge){return Ge!==o};if(!ie(g))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,A=[],_=g;ie(_)&&s(_);){if((_=_.parentElement)===a){A.push(_);break}_!=null&&_===document.body&&M(_)&&!M(document.documentElement)||_!=null&&M(_,h)&&A.push(_)}for(var S=p.visualViewport?p.visualViewport.width:innerWidth,L=p.visualViewport?p.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,w=g.getBoundingClientRect(),x=w.height,c=w.width,T=w.top,y=w.right,v=w.bottom,N=w.left,B=u==="start"||u==="nearest"?T:u==="end"?v:T+x/2,O=f==="center"?N+c/2:f==="end"?y:N,j=[],P=0;P=0&&N>=0&&v<=L&&y<=S&&T>=ue&&v<=Se&&N>=Ce&&y<=ke)return j;var ce=getComputedStyle(b),pe=parseInt(ce.borderLeftWidth,10),se=parseInt(ce.borderTopWidth,10),ae=parseInt(ce.borderRightWidth,10),Oe=parseInt(ce.borderBottomWidth,10),Te=0,Ne=0,De="offsetWidth"in b?b.offsetWidth-b.clientWidth-pe-ae:0,We="offsetHeight"in b?b.offsetHeight-b.clientHeight-se-Oe:0;if(a===b)Te=u==="start"?B:u==="end"?B-L:u==="nearest"?X(C,C+L,L,se,Oe,C+B,C+B+x,x):B-L/2,Ne=f==="start"?O:f==="center"?O-S/2:f==="end"?O-S:X(R,R+S,S,pe,ae,R+O,R+O+c,c),Te=Math.max(0,Te+C),Ne=Math.max(0,Ne+R);else{Te=u==="start"?B-ue-se:u==="end"?B-Se+Oe+We:u==="nearest"?X(ue,Se,ee,se,Oe+We,B,B+x,x):B-(ue+ee/2)+We/2,Ne=f==="start"?O-Ce-pe:f==="center"?O-(Ce+le/2)+De/2:f==="end"?O-ke+ae+De:X(Ce,ke,le,pe,ae+De,O,O+c,c);var Le=b.scrollLeft,Be=b.scrollTop;B+=Be-(Te=Math.max(0,Math.min(Be+Te,b.scrollHeight-ee+We))),O+=Le-(Ne=Math.max(0,Math.min(Le+Ne,b.scrollWidth-le+De)))}j.push({el:b,top:Te,left:Ne})}return j};function U(g){return g===Object(g)&&Object.keys(g).length!==0}function G(g,m){m===void 0&&(m="auto");var p="scrollBehavior"in document.body.style;g.forEach(function(l){var u=l.el,f=l.top,o=l.left;u.scroll&&p?u.scroll({top:f,left:o,behavior:m}):(u.scrollTop=f,u.scrollLeft=o)})}function W(g){return g===!1?{block:"end",inline:"nearest"}:U(g)?g:{block:"start",inline:"nearest"}}function i(g,m){var p=!g.ownerDocument.documentElement.contains(g);if(U(m)&&typeof m.behavior=="function")return m.behavior(p?[]:F(g,m));if(p)return;var l=W(m);return G(F(g,l),l.behavior)}var D=be.a=i},bT9E:function(st,be,Q){"use strict";Q.d(be,"a",function(){return $});var ie=Q("VTBJ");function $(M,X){var F=Object(ie.a)({},M);return Array.isArray(X)&&X.forEach(function(U){delete F[U]}),F}},c5Ni:function(st,be,Q){},dejd:function(st,be,Q){},dmUQ:function(st,be,Q){"use strict";var ie=Q("Ff2n"),$=Q("rePB"),M=Q("1OyB"),X=Q("vuIU"),F=Q("Ji7U"),U=Q("md7G"),G=Q("foSv"),W=Q("q1tI"),i=Q.n(W),D=Q("TSYQ"),g=Q.n(D),m=Q("4IlW");function p(x,c){var T=Object.keys(x);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(x);c&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(x,v).enumerable})),T.push.apply(T,y)}return T}function l(x){for(var c=1;c1?le-1:0),ke=1;ke1?P-1:0),Y=1;Y=0)return parseInt(j.slice(j.indexOf("e-")+2),10);var P=0;return j.indexOf(".")>=0&&(P=j.length-j.indexOf(".")-1),P},v.getInputDisplayValue=function(O){var j=O||v.state,P=j.focused,b=j.inputValue,Y=j.value,ee;P?ee=b:ee=v.toPrecisionAsStep(Y),ee==null&&(ee="");var le=v.formatWrapper(ee);return S(v.props.decimalSeparator)&&(le=le.toString().replace(".",v.props.decimalSeparator)),le},v.recordCursorPosition=function(){try{v.cursorStart=v.input.selectionStart,v.cursorEnd=v.input.selectionEnd,v.currentValue=v.input.value,v.cursorBefore=v.input.value.substring(0,v.cursorStart),v.cursorAfter=v.input.value.substring(v.cursorEnd)}catch(O){}},v.restoreByAfter=function(O){if(O===void 0)return!1;var j=v.input.value,P=j.lastIndexOf(O);if(P===-1)return!1;var b=v.cursorBefore.length;return v.lastKeyCode===m.a.DELETE&&v.cursorBefore.charAt(b-1)===O[0]?(v.fixCaret(b,b),!0):P+O.length===j.length?(v.fixCaret(P,P),!0):!1},v.partRestoreByAfter=function(O){return O===void 0?!1:Array.prototype.some.call(O,function(j,P){var b=O.substring(P);return v.restoreByAfter(b)})},v.isNotCompleteNumber=function(O){return isNaN(O)||O===""||O===null||O&&O.toString().indexOf(".")===O.toString().length-1},v.stop=function(){v.autoStepTimer&&clearTimeout(v.autoStepTimer)},v.down=function(O,j,P){v.pressingUpOrDown=!0,v.step("down",O,j,P)},v.up=function(O,j,P){v.pressingUpOrDown=!0,v.step("up",O,j,P)},v.saveInput=function(O){v.input=O};var N=y.value;N===void 0&&(N=y.defaultValue),v.state={focused:y.autoFocus};var B=v.getValidValue(v.toNumber(N));return v.state=l(l({},v.state),{},{inputValue:v.toPrecisionAsStep(B),value:B}),v}return Object(X.a)(T,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(v){var N=this.props,B=N.value,O=N.onChange,j=N.max,P=N.min,b=this.state.focused;if(v){if(!L(v.value,B)||!L(v.max,j)||!L(v.min,P)){var Y=b?B:this.getValidValue(B),ee;this.pressingUpOrDown?ee=Y:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(Y),this.setState({value:Y,inputValue:ee})}var le="value"in this.props?B:this.state.value;"max"in this.props&&v.max!==j&&typeof le=="number"&&le>j&&O&&O(j),"min"in this.props&&v.min!==P&&typeof le=="number"&&le1&&arguments[1]!==void 0?arguments[1]:this.props.min,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,O=parseFloat(v);return isNaN(O)?v:(OB&&(O=B),O)}},{key:"setValue",value:function(v,N){var B=this.props.precision,O=this.isNotCompleteNumber(parseFloat(v))?null:parseFloat(v),j=this.state.value,P=j===void 0?null:j,b=this.state.inputValue,Y=b===void 0?null:b,ee=typeof O=="number"?O.toFixed(B):"".concat(O),le=O!==P||ee!=="".concat(Y);return"value"in this.props?(Y=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Y},N)):this.setState({value:O,inputValue:this.toPrecisionAsStep(v)},N),le&&this.props.onChange(O),O}},{key:"getMaxPrecision",value:function(v){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,B=this.props,O=B.precision,j=B.step;if(S(O))return O;var P=this.getPrecision(N),b=this.getPrecision(j),Y=this.getPrecision(v);return v?Math.max(Y,P+b):P+b}},{key:"getPrecisionFactor",value:function(v){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,B=this.getMaxPrecision(v,N);return Math.pow(10,B)}},{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(v){return this.props.formatter?this.props.formatter(v):v}},{key:"toPrecisionAsStep",value:function(v){if(this.isNotCompleteNumber(v)||v==="")return v;var N=Math.abs(this.getMaxPrecision(v));return isNaN(N)?v.toString():Number(v).toFixed(N)}},{key:"toNumber",value:function(v){var N=this.props.precision,B=this.state.focused,O=v&&v.length>16&&B;return this.isNotCompleteNumber(v)||O?v:S(N)?Math.round(v*Math.pow(10,N))/Math.pow(10,N):Number(v)}},{key:"upStep",value:function(v,N){var B=this.props.step,O=this.getPrecisionFactor(v,N),j=Math.abs(this.getMaxPrecision(v,N)),P=((O*v+O*B*N)/O).toFixed(j);return this.toNumber(P)}},{key:"downStep",value:function(v,N){var B=this.props.step,O=this.getPrecisionFactor(v,N),j=Math.abs(this.getMaxPrecision(v,N)),P=((O*v-O*B*N)/O).toFixed(j);return this.toNumber(P)}},{key:"step",value:function(v,N){var B=this,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var P=this.props;if(P.disabled)return;var b=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(b))return;var Y=this["".concat(v,"Step")](b,O),ee=Y>P.max||YP.max?Y=P.max:Y=ue),je=(tt||tt===0)&&(isNaN(tt)||Number(tt)<=ke),Ee=Fe||O||j,ge=je||O||j,_e=g()("".concat(B,"-handler"),"".concat(B,"-handler-up"),Object($.a)({},"".concat(B,"-handler-up-disabled"),Ee)),ne=g()("".concat(B,"-handler"),"".concat(B,"-handler-down"),Object($.a)({},"".concat(B,"-handler-down-disabled"),ge)),re=P?{onTouchStart:Ee?o:this.up,onTouchEnd:this.stop}:{onMouseDown:Ee?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},he=P?{onTouchStart:ge?o:this.down,onTouchEnd:this.stop}:{onMouseDown:ge?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return i.a.createElement("div",{className:Je,style:Se,title:Ce,onMouseEnter:ce,onMouseLeave:pe,onMouseOver:se,onMouseOut:ae,onFocus:function(){return null},onBlur:function(){return null}},i.a.createElement("div",{className:"".concat(B,"-handler-wrap")},i.a.createElement("span",Object.assign({unselectable:"on"},re,{role:"button","aria-label":"Increase Value","aria-disabled":Ee,className:_e}),Y||i.a.createElement("span",{unselectable:"on",className:"".concat(B,"-handler-up-inner"),onClick:h})),i.a.createElement("span",Object.assign({unselectable:"on"},he,{role:"button","aria-label":"Decrease Value","aria-disabled":ge,className:ne}),ee||i.a.createElement("span",{unselectable:"on",className:"".concat(B,"-handler-down-inner"),onClick:h}))),i.a.createElement("div",{className:"".concat(B,"-input-wrap")},i.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":ke,"aria-valuemax":ue,"aria-valuenow":tt,required:Oe,type:De,placeholder:We,onPaste:Ue,onClick:Te,onMouseUp:this.onMouseUp,className:"".concat(B,"-input"),tabIndex:Ne,autoComplete:b,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ut?this.onKeyDown:o,onKeyUp:ut?this.onKeyUp:o,autoFocus:we,maxLength:ye,readOnly:j,disabled:O,max:ue,min:ke,step:oe,name:Ae,title:Ce,id:Le,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(nt),pattern:Ge,inputMode:Be,onInput:Ve},Me))))}}]),T}(i.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:_,min:-_,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:s,required:!1,autoComplete:"off"};var C=R,w=be.a=C},eYnf:function(st,be,Q){st.exports={flex_box_center:"flex_box_center___1XyGp",flex_space_between:"flex_space_between___3jaTm",flex_box_vertical_center:"flex_box_vertical_center___2_EoO",flex_box_center_end:"flex_box_center_end___aCF48",flex_box_column:"flex_box_column___10vW2",bg:"bg___1Uj9H",title:"title___2xwyX",titleLeft:"titleLeft___1ASl5",titleRight:"titleRight___1FHl9",btns:"btns___3kkgI"}},fjLI:function(st,be,Q){"use strict";Q.d(be,"f",function(){return p}),Q.d(be,"b",function(){return l}),Q.d(be,"a",function(){return u}),Q.d(be,"d",function(){return f}),Q.d(be,"e",function(){return o}),Q.d(be,"c",function(){return h});var ie=Q("8HAY"),$=Q("Vhoy"),M=Q("MI8n"),X=Q("JYp7"),F=Q("pmY6"),U=Q("24hK"),G=Q("nnTU"),W=Q("T8No"),i=Q("Cg/j"),D=Q("t9D7"),g=function(s,a,A,_){var S=arguments.length,L=S<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,A):_,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,a,A,_);else for(var C=s.length-1;C>=0;C--)(R=s[C])&&(L=(S<3?R(L):S>3?R(a,A,L):R(a,A))||L);return S>3&&L&&Object.defineProperty(a,A,L),L},m=function(s,a){return function(A,_){a(A,_,s)}};function p(s){return s.command!==void 0}class l{constructor(s){this.id=l._idPool++,this._debugName=s}}l._idPool=0,l.CommandPalette=new l("CommandPalette"),l.EditorContext=new l("EditorContext"),l.SimpleEditorContext=new l("SimpleEditorContext"),l.EditorContextCopy=new l("EditorContextCopy"),l.EditorContextPeek=new l("EditorContextPeek"),l.MenubarEditMenu=new l("MenubarEditMenu"),l.MenubarCopy=new l("MenubarCopy"),l.MenubarGoMenu=new l("MenubarGoMenu"),l.MenubarSelectionMenu=new l("MenubarSelectionMenu"),l.InlineCompletionsActions=new l("InlineCompletionsActions");const u=Object(i.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new M.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===l.CommandPalette}}addCommand(s){return this.addCommands(X.a.single(s))}addCommands(s){for(const a of s)this._commands.set(a.id,a);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(F.i)(()=>{let a=!1;for(const A of s)a=this._commands.delete(A.id)||a;a&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((a,A)=>s.set(A,a)),s}appendMenuItem(s,a){return this.appendMenuItems(X.a.single({id:s,item:a}))}appendMenuItems(s){const a=new Set,A=new U.a;for(const{id:_,item:S}of s){let L=this._menuItems.get(_);L||(L=new U.a,this._menuItems.set(_,L)),A.push(L.push(S)),a.add(_)}return this._onDidChangeMenu.fire(a),Object(F.i)(()=>{if(A.size>0){for(let _ of A)_();this._onDidChangeMenu.fire(a),A.clear()}})}getMenuItems(s){let a;return this._menuItems.has(s)?a=[...this._menuItems.get(s)]:a=[],s===l.CommandPalette&&this._appendImplicitItems(a),a}_appendImplicitItems(s){const a=new Set;for(const A of s)p(A)&&(a.add(A.command.id),A.alt&&a.add(A.alt.id));this._commands.forEach((A,_)=>{a.has(_)||s.push({command:A})})}};class o extends ie.e{constructor(s,a,A,_){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=a,this._contextKeyService=A,this._options=_}get actions(){const s=[],a=this._menuService.createMenu(this.item.submenu,this._contextKeyService),A=a.getActions(this._options);a.dispose();for(const[,_]of A)_.length>0&&(s.push(..._),s.push(new ie.d));return s.length&&s.pop(),s}}let h=class s{constructor(a,A,_,S,L){var R,C;if(this._commandService=L,this.id=a.id,this.label=(_==null?void 0:_.renderShortTitle)&&a.shortTitle?typeof a.shortTitle=="string"?a.shortTitle:a.shortTitle.value:typeof a.title=="string"?a.title:a.title.value,this.tooltip=(C=typeof a.tooltip=="string"?a.tooltip:(R=a.tooltip)===null||R===void 0?void 0:R.value)!==null&&C!==void 0?C:"",this.enabled=!a.precondition||S.contextMatchesRules(a.precondition),this.checked=void 0,a.toggled){const w=a.toggled.condition?a.toggled:{condition:a.toggled};this.checked=S.contextMatchesRules(w.condition),this.checked&&w.tooltip&&(this.tooltip=typeof w.tooltip=="string"?w.tooltip:w.tooltip.value),w.title&&(this.label=typeof w.title=="string"?w.title:w.title.value)}this.item=a,this.alt=A?new s(A,void 0,_,S,L):void 0,this._options=_,D.d.isThemeIcon(a.icon)&&(this.class=$.a.asClassName(a.icon))}dispose(){}run(...a){var A,_;let S=[];return((A=this._options)===null||A===void 0?void 0:A.arg)&&(S=[...S,this._options.arg]),((_=this._options)===null||_===void 0?void 0:_.shouldForwardArgs)&&(S=[...S,...a]),this._commandService.executeCommand(this.id,...S)}};h=g([m(3,W.b),m(4,G.b)],h)},gJ3r:function(st,be,Q){"use strict";Q.d(be,"a",function(){return ie});var ie=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},ic2d:function(st,be,Q){"use strict";Q.d(be,"a",function(){return X});var ie=Q("FWmy"),$=Q("746U");class M{constructor(){this.data=new Map}add(F,U){ie.a($.l(F)),ie.a($.k(U)),ie.a(!this.data.has(F),"There is already an extension with this id"),this.data.set(F,U)}as(F){return this.data.get(F)||null}}const X=new M},kSUc:function(st,be,Q){},lZu9:function(st,be,Q){(function(ie){ie(Q("VrN/"),Q("1eCo"),Q("8EBN"))})(function(ie){"use strict";ie.defineMode("markdown",function($,M){var X=ie.getMode($,"text/html"),F=X.name=="null";function U(P){if(ie.findModeByName){var b=ie.findModeByName(P);b&&(P=b.mime||b.mimes[0])}var Y=ie.getMode($,P);return Y.name=="null"?null:Y}M.highlightFormatting===void 0&&(M.highlightFormatting=!1),M.maxBlockquoteDepth===void 0&&(M.maxBlockquoteDepth=0),M.taskLists===void 0&&(M.taskLists=!1),M.strikethrough===void 0&&(M.strikethrough=!1),M.emoji===void 0&&(M.emoji=!1),M.fencedCodeBlockHighlighting===void 0&&(M.fencedCodeBlockHighlighting=!0),M.fencedCodeBlockDefaultMode===void 0&&(M.fencedCodeBlockDefaultMode="text/plain"),M.xml===void 0&&(M.xml=!0),M.tokenTypeOverrides===void 0&&(M.tokenTypeOverrides={});var G={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 W in G)G.hasOwnProperty(W)&&M.tokenTypeOverrides[W]&&(G[W]=M.tokenTypeOverrides[W]);var i=/^([*\-_])(?:\s*\1){2,}\s*$/,D=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,g=/^\[(x| )\](?=\s)/i,m=M.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,p=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,u=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,o=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,h=" ";function s(P,b,Y){return b.f=b.inline=Y,Y(P,b)}function a(P,b,Y){return b.f=b.block=Y,Y(P,b)}function A(P){return!P||!/\S/.test(P.string)}function _(P){if(P.linkTitle=!1,P.linkHref=!1,P.linkText=!1,P.em=!1,P.strong=!1,P.strikethrough=!1,P.quote=0,P.indentedCode=!1,P.f==L){var b=F;if(!b){var Y=ie.innerMode(X,P.htmlState);b=Y.mode.name=="xml"&&Y.state.tagStart===null&&!Y.state.context&&Y.state.tokenize.isInText}b&&(P.f=x,P.block=S,P.htmlState=null)}return P.trailingSpace=0,P.trailingSpaceNewLine=!1,P.prevLine=P.thisLine,P.thisLine={stream:null},null}function S(P,b){var Y=P.column()===b.indentation,ee=A(b.prevLine.stream),le=b.indentedCode,ue=b.prevLine.hr,ke=b.list!==!1,Se=(b.listStack[b.listStack.length-1]||0)+3;b.indentedCode=!1;var Ce=b.indentation;if(b.indentationDiff===null&&(b.indentationDiff=b.indentation,ke)){for(b.list=null;Ce=4&&(le||b.prevLine.fencedCodeEnd||b.prevLine.header||ee))return P.skipToEnd(),b.indentedCode=!0,G.code;if(P.eatSpace())return null;if(Y&&b.indentation<=Se&&(se=P.match(m))&&se[1].length<=6)return b.quote=0,b.header=se[1].length,b.thisLine.header=!0,M.highlightFormatting&&(b.formatting="header"),b.f=b.inline,C(b);if(b.indentation<=Se&&P.eat(">"))return b.quote=Y?1:b.quote+1,M.highlightFormatting&&(b.formatting="quote"),P.eatSpace(),C(b);if(!pe&&!b.setext&&Y&&b.indentation<=Se&&(se=P.match(D))){var ae=se[1]?"ol":"ul";return b.indentation=Ce+P.current().length,b.list=!0,b.quote=0,b.listStack.push(b.indentation),b.em=!1,b.strong=!1,b.code=!1,b.strikethrough=!1,M.taskLists&&P.match(g,!1)&&(b.taskList=!0),b.f=b.inline,M.highlightFormatting&&(b.formatting=["list","list-"+ae]),C(b)}else{if(Y&&b.indentation<=Se&&(se=P.match(u,!0)))return b.quote=0,b.fencedEndRE=new RegExp(se[1]+"+ *$"),b.localMode=M.fencedCodeBlockHighlighting&&U(se[2]||M.fencedCodeBlockDefaultMode),b.localMode&&(b.localState=ie.startState(b.localMode)),b.f=b.block=R,M.highlightFormatting&&(b.formatting="code-block"),b.code=-1,C(b);if(b.setext||(!ce||!ke)&&!b.quote&&b.list===!1&&!b.code&&!pe&&!f.test(P.string)&&(se=P.lookAhead(1))&&(se=se.match(p)))return b.setext?(b.header=b.setext,b.setext=0,P.skipToEnd(),M.highlightFormatting&&(b.formatting="header")):(b.header=se[0].charAt(0)=="="?1:2,b.setext=b.header),b.thisLine.header=!0,b.f=b.inline,C(b);if(pe)return P.skipToEnd(),b.hr=!0,b.thisLine.hr=!0,G.hr;if(P.peek()==="[")return s(P,b,N)}return s(P,b,b.inline)}function L(P,b){var Y=X.token(P,b.htmlState);if(!F){var ee=ie.innerMode(X,b.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||b.md_inside&&P.current().indexOf(">")>-1)&&(b.f=x,b.block=S,b.htmlState=null)}return Y}function R(P,b){var Y=b.listStack[b.listStack.length-1]||0,ee=b.indentation=P.quote?b.push(G.formatting+"-"+P.formatting[Y]+"-"+P.quote):b.push("error"))}if(P.taskOpen)return b.push("meta"),b.length?b.join(" "):null;if(P.taskClosed)return b.push("property"),b.length?b.join(" "):null;if(P.linkHref?b.push(G.linkHref,"url"):(P.strong&&b.push(G.strong),P.em&&b.push(G.em),P.strikethrough&&b.push(G.strikethrough),P.emoji&&b.push(G.emoji),P.linkText&&b.push(G.linkText),P.code&&b.push(G.code),P.image&&b.push(G.image),P.imageAltText&&b.push(G.imageAltText,"link"),P.imageMarker&&b.push(G.imageMarker)),P.header&&b.push(G.header,G.header+"-"+P.header),P.quote&&(b.push(G.quote),!M.maxBlockquoteDepth||M.maxBlockquoteDepth>=P.quote?b.push(G.quote+"-"+P.quote):b.push(G.quote+"-"+M.maxBlockquoteDepth)),P.list!==!1){var ee=(P.listStack.length-1)%3;ee?ee===1?b.push(G.list2):b.push(G.list3):b.push(G.list1)}return P.trailingSpaceNewLine?b.push("trailing-space-new-line"):P.trailingSpace&&b.push("trailing-space-"+(P.trailingSpace%2?"a":"b")),b.length?b.join(" "):null}function w(P,b){return P.match(l,!0)?C(b):void 0}function x(P,b){var Y=b.text(P,b);if(typeof Y!="undefined")return Y;if(b.list)return b.list=null,C(b);if(b.taskList){var ee=P.match(g,!0)[1]===" ";return ee?b.taskOpen=!0:b.taskClosed=!0,M.highlightFormatting&&(b.formatting="task"),b.taskList=!1,C(b)}if(b.taskOpen=!1,b.taskClosed=!1,b.header&&P.match(/^#+$/,!0))return M.highlightFormatting&&(b.formatting="header"),C(b);var le=P.next();if(b.linkTitle){b.linkTitle=!1;var ue=le;le==="("&&(ue=")"),ue=(ue+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ke="^\\s*(?:[^"+ue+"\\\\]+|\\\\\\\\|\\\\.)"+ue;if(P.match(new RegExp(ke),!0))return G.linkHref}if(le==="`"){var Se=b.formatting;M.highlightFormatting&&(b.formatting="code"),P.eatWhile("`");var Ce=P.current().length;if(b.code==0&&(!b.quote||Ce==1))return b.code=Ce,C(b);if(Ce==b.code){var ce=C(b);return b.code=0,ce}else return b.formatting=Se,C(b)}else if(b.code)return C(b);if(le==="\\"&&(P.next(),M.highlightFormatting)){var pe=C(b),se=G.formatting+"-escape";return pe?pe+" "+se:se}if(le==="!"&&P.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return b.imageMarker=!0,b.image=!0,M.highlightFormatting&&(b.formatting="image"),C(b);if(le==="["&&b.imageMarker&&P.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return b.imageMarker=!1,b.imageAltText=!0,M.highlightFormatting&&(b.formatting="image"),C(b);if(le==="]"&&b.imageAltText){M.highlightFormatting&&(b.formatting="image");var pe=C(b);return b.imageAltText=!1,b.image=!1,b.inline=b.f=T,pe}if(le==="["&&!b.image)return b.linkText&&P.match(/^.*?\]/)||(b.linkText=!0,M.highlightFormatting&&(b.formatting="link")),C(b);if(le==="]"&&b.linkText){M.highlightFormatting&&(b.formatting="link");var pe=C(b);return b.linkText=!1,b.inline=b.f=P.match(/\(.*?\)| ?\[.*?\]/,!1)?T:x,pe}if(le==="<"&&P.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){b.f=b.inline=c,M.highlightFormatting&&(b.formatting="link");var pe=C(b);return pe?pe+=" ":pe="",pe+G.linkInline}if(le==="<"&&P.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){b.f=b.inline=c,M.highlightFormatting&&(b.formatting="link");var pe=C(b);return pe?pe+=" ":pe="",pe+G.linkEmail}if(M.xml&&le==="<"&&P.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ae=P.string.indexOf(">",P.pos);if(ae!=-1){var Oe=P.string.substring(P.start,ae);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Oe)&&(b.md_inside=!0)}return P.backUp(1),b.htmlState=ie.startState(X),a(P,b,L)}if(M.xml&&le==="<"&&P.match(/^\/\w*?>/))return b.md_inside=!1,"tag";if(le==="*"||le==="_"){for(var Te=1,Ne=P.pos==1?" ":P.string.charAt(P.pos-2);Te<3&&P.eat(le);)Te++;var De=P.peek()||" ",We=!/\s/.test(De)&&(!o.test(De)||/\s/.test(Ne)||o.test(Ne)),Le=!/\s/.test(Ne)&&(!o.test(Ne)||/\s/.test(De)||o.test(De)),Be=null,Ge=null;if(Te%2&&(!b.em&&We&&(le==="*"||!Le||o.test(Ne))?Be=!0:b.em==le&&Le&&(le==="*"||!We||o.test(De))&&(Be=!1)),Te>1&&(!b.strong&&We&&(le==="*"||!Le||o.test(Ne))?Ge=!0:b.strong==le&&Le&&(le==="*"||!We||o.test(De))&&(Ge=!1)),Ge!=null||Be!=null){M.highlightFormatting&&(b.formatting=Be==null?"strong":Ge==null?"em":"strong em"),Be===!0&&(b.em=le),Ge===!0&&(b.strong=le);var ce=C(b);return Be===!1&&(b.em=!1),Ge===!1&&(b.strong=!1),ce}}else if(le===" "&&(P.eat("*")||P.eat("_"))){if(P.peek()===" ")return C(b);P.backUp(1)}if(M.strikethrough){if(le==="~"&&P.eatWhile(le)){if(b.strikethrough){M.highlightFormatting&&(b.formatting="strikethrough");var ce=C(b);return b.strikethrough=!1,ce}else if(P.match(/^[^\s]/,!1))return b.strikethrough=!0,M.highlightFormatting&&(b.formatting="strikethrough"),C(b)}else if(le===" "&&P.match(/^~~/,!0)){if(P.peek()===" ")return C(b);P.backUp(2)}}if(M.emoji&&le===":"&&P.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){b.emoji=!0,M.highlightFormatting&&(b.formatting="emoji");var oe=C(b);return b.emoji=!1,oe}return le===" "&&(P.match(/^ +$/,!1)?b.trailingSpace++:b.trailingSpace&&(b.trailingSpaceNewLine=!0)),C(b)}function c(P,b){var Y=P.next();if(Y===">"){b.f=b.inline=x,M.highlightFormatting&&(b.formatting="link");var ee=C(b);return ee?ee+=" ":ee="",ee+G.linkInline}return P.match(/^[^>]+/,!0),G.linkInline}function T(P,b){if(P.eatSpace())return null;var Y=P.next();return Y==="("||Y==="["?(b.f=b.inline=v(Y==="("?")":"]"),M.highlightFormatting&&(b.formatting="link-string"),b.linkHref=!0,C(b)):"error"}var y={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function v(P){return function(b,Y){var ee=b.next();if(ee===P){Y.f=Y.inline=x,M.highlightFormatting&&(Y.formatting="link-string");var le=C(Y);return Y.linkHref=!1,le}return b.match(y[P]),Y.linkHref=!0,C(Y)}}function N(P,b){return P.match(/^([^\]\\]|\\.)*\]:/,!1)?(b.f=B,P.next(),M.highlightFormatting&&(b.formatting="link"),b.linkText=!0,C(b)):s(P,b,x)}function B(P,b){if(P.match(/^\]:/,!0)){b.f=b.inline=O,M.highlightFormatting&&(b.formatting="link");var Y=C(b);return b.linkText=!1,Y}return P.match(/^([^\]\\]|\\.)+/,!0),G.linkText}function O(P,b){return P.eatSpace()?null:(P.match(/^[^\s]+/,!0),P.peek()===void 0?b.linkTitle=!0:P.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),b.f=b.inline=x,G.linkHref+" url")}var j={startState:function(){return{f:S,prevLine:{stream:null},thisLine:{stream:null},block:S,htmlState:null,indentation:0,inline:x,text:w,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(P){return{f:P.f,prevLine:P.prevLine,thisLine:P.thisLine,block:P.block,htmlState:P.htmlState&&ie.copyState(X,P.htmlState),indentation:P.indentation,localMode:P.localMode,localState:P.localMode?ie.copyState(P.localMode,P.localState):null,inline:P.inline,text:P.text,formatting:!1,linkText:P.linkText,linkTitle:P.linkTitle,linkHref:P.linkHref,code:P.code,em:P.em,strong:P.strong,strikethrough:P.strikethrough,emoji:P.emoji,header:P.header,setext:P.setext,hr:P.hr,taskList:P.taskList,list:P.list,listStack:P.listStack.slice(0),quote:P.quote,indentedCode:P.indentedCode,trailingSpace:P.trailingSpace,trailingSpaceNewLine:P.trailingSpaceNewLine,md_inside:P.md_inside,fencedEndRE:P.fencedEndRE}},token:function(P,b){if(b.formatting=!1,P!=b.thisLine.stream){if(b.header=0,b.hr=!1,P.match(/^\s*$/,!0))return _(b),null;if(b.prevLine=b.thisLine,b.thisLine={stream:P},b.taskList=!1,b.trailingSpace=0,b.trailingSpaceNewLine=!1,!b.localState&&(b.f=b.block,b.f!=L)){var Y=P.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(b.indentation=Y,b.indentationDiff=null,Y>0)return null}}return b.f(P,b)},innerMode:function(P){return P.block==L?{state:P.htmlState,mode:X}:P.localState?{state:P.localState,mode:P.localMode}:{state:P,mode:j}},indent:function(P,b,Y){return P.block==L&&X.indent?X.indent(P.htmlState,b,Y):P.localState&&P.localMode.indent?P.localMode.indent(P.localState,b,Y):ie.Pass},blankLine:_,getType:C,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),ie.defineMIME("text/markdown","markdown"),ie.defineMIME("text/x-markdown","markdown")})},nEHx:function(st,be,Q){"use strict";Q.d(be,"a",function(){return ie});var ie;(function($){$.DARK="dark",$.LIGHT="light",$.HIGH_CONTRAST="hc"})(ie||(ie={}))},nnTU:function(st,be,Q){"use strict";Q.d(be,"b",function(){return G}),Q.d(be,"a",function(){return W});var ie=Q("MI8n"),$=Q("JYp7"),M=Q("pmY6"),X=Q("24hK"),F=Q("746U"),U=Q("Cg/j");const G=Object(U.c)("commandService"),W=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ie.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(i,D){if(!i)throw new Error("invalid command");if(typeof i=="string"){if(!D)throw new Error("invalid command");return this.registerCommand({id:i,handler:D})}if(i.description){const u=[];for(let o of i.description.args)u.push(o.constraint);const f=i.handler;i.handler=function(o,...h){return Object(F.o)(h,u),f(o,...h)}}const{id:g}=i;let m=this._commands.get(g);m||(m=new X.a,this._commands.set(g,m));let p=m.unshift(i),l=Object(M.i)(()=>{p();const u=this._commands.get(g);(u==null?void 0:u.isEmpty())&&this._commands.delete(g)});return this._onDidRegisterCommand.fire(g),l}registerCommandAlias(i,D){return W.registerCommand(i,(g,...m)=>g.get(G).executeCommand(D,...m))}getCommand(i){const D=this._commands.get(i);return!D||D.isEmpty()?void 0:$.a.first(D)}getCommands(){const i=new Map;for(const D of this._commands.keys()){const g=this.getCommand(D);g&&i.set(D,g)}return i}};W.registerCommand("noop",()=>{})},osHv:function(st,be,Q){(function(ie){ie(Q("VrN/"))})(function(ie){"use strict";var $=ie.Pos;function M(o,h){return o.line-h.line||o.ch-h.ch}var X="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",F=X+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",U=new RegExp("<(/?)(["+X+"]["+F+"]*)","g");function G(o,h,s,a){this.line=h,this.ch=s,this.cm=o,this.text=o.getLine(h),this.min=a?Math.max(a.from,o.firstLine()):o.firstLine(),this.max=a?Math.min(a.to-1,o.lastLine()):o.lastLine()}function W(o,h){var s=o.cm.getTokenTypeAt($(o.line,h));return s&&/\btag\b/.test(s)}function i(o){return o.line>=o.max?void 0:(o.ch=0,o.text=o.cm.getLine(++o.line),!0)}function D(o){return o.line<=o.min?void 0:(o.text=o.cm.getLine(--o.line),o.ch=o.text.length,!0)}function g(o){for(;;){var h=o.text.indexOf(">",o.ch);if(h==-1){if(i(o))continue;return}if(!W(o,h+1)){o.ch=h+1;continue}var s=o.text.lastIndexOf("/",h),a=s>-1&&!/\S/.test(o.text.slice(s+1,h));return o.ch=h+1,a?"selfClose":"regular"}}function m(o){for(;;){var h=o.ch?o.text.lastIndexOf("<",o.ch-1):-1;if(h==-1){if(D(o))continue;return}if(!W(o,h+1)){o.ch=h;continue}U.lastIndex=h,o.ch=h;var s=U.exec(o.text);if(s&&s.index==h)return s}}function p(o){for(;;){U.lastIndex=o.ch;var h=U.exec(o.text);if(!h){if(i(o))continue;return}if(!W(o,h.index+1)){o.ch=h.index+1;continue}return o.ch=h.index+h[0].length,h}}function l(o){for(;;){var h=o.ch?o.text.lastIndexOf(">",o.ch-1):-1;if(h==-1){if(D(o))continue;return}if(!W(o,h+1)){o.ch=h;continue}var s=o.text.lastIndexOf("/",h),a=s>-1&&!/\S/.test(o.text.slice(s+1,h));return o.ch=h+1,a?"selfClose":"regular"}}function u(o,h){for(var s=[];;){var a=p(o),A,_=o.line,S=o.ch-(a?a[0].length:0);if(!a||!(A=g(o)))return;if(A=="selfClose")continue;if(a[1]){for(var L=s.length-1;L>=0;--L)if(s[L]==a[2]){s.length=L;break}if(L<0&&(!h||h==a[2]))return{tag:a[2],from:$(_,S),to:$(o.line,o.ch)}}else s.push(a[2])}}function f(o,h){for(var s=[];;){var a=l(o);if(!a)return;if(a=="selfClose"){m(o);continue}var A=o.line,_=o.ch,S=m(o);if(!S)return;if(S[1])s.push(S[2]);else{for(var L=s.length-1;L>=0;--L)if(s[L]==S[2]){s.length=L;break}if(L<0&&(!h||h==S[2]))return{tag:S[2],from:$(o.line,o.ch),to:$(A,_)}}}}ie.registerHelper("fold","xml",function(o,h){for(var s=new G(o,h.line,0);;){var a=p(s);if(!a||s.line!=h.line)return;var A=g(s);if(!A)return;if(!a[1]&&A!="selfClose"){var _=$(s.line,s.ch),S=u(s,a[2]);return S&&M(S.from,_)>0?{from:_,to:S.from}:null}}}),ie.findMatchingTag=function(o,h,s){var a=new G(o,h.line,h.ch,s);if(a.text.indexOf(">")==-1&&a.text.indexOf("<")==-1)return;var A=g(a),_=A&&$(a.line,a.ch),S=A&&m(a);if(!A||!S||M(a,h)>0)return;var L={from:$(a.line,a.ch),to:_,tag:S[2]};return A=="selfClose"?{open:L,close:null,at:"open"}:S[1]?{open:f(a,S[2]),close:L,at:"close"}:(a=new G(o,_.line,_.ch,s),{open:L,close:u(a,S[2]),at:"open"})},ie.findEnclosingTag=function(o,h,s,a){for(var A=new G(o,h.line,h.ch,s);;){var _=f(A,a);if(!_)break;var S=new G(o,h.line,h.ch,s),L=u(S,_.tag);if(L)return{open:_,close:L}}},ie.scanForClosingTag=function(o,h,s,a){var A=new G(o,h.line,h.ch,a?{from:0,to:a}:null);return u(A,s)}})},p5ED:function(st,be,Q){"use strict";var ie=Q("+L6B"),$=Q("2/Rp"),M=Q("5Dmo"),X=Q("3S7+"),F=Q("k1fw"),U=Q("9og8"),G=Q("tJVT"),W=Q("WmNS"),i=Q.n(W),D=Q("q1tI"),g=Q.n(D),m=Q("vHTk"),p=Q.n(m),l=Q("yEEn"),u=Q("ZW9T"),f=Q("1vsH"),o=Q("V0Rq"),h=Q("m3rI");be.a=function(s){var a,A,_,S,L,R,C,w=s.editOffice,x=w===void 0?"view":w,c=s.data,T=s.theme,y=s.type,v=s.filename,N=s.monacoEditor,B=s.className,O=s.style,j=s.close,P=s.onClose,b=s.hasMask,Y=s.disabledDownload,ee=Object(D.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),le=Object(G.a)(ee,2),ue=le[0],ke=le[1],Se=Object(D.useState)(""),Ce=Object(G.a)(Se,2),ce=Ce[0],pe=Ce[1],se=Object(D.useState)(),ae=Object(G.a)(se,2),Oe=ae[0],Te=ae[1],Ne=window.ENV==="build"?"/react/build":"",De=h.a.PROXY_SERVER||location.origin,We,Le=1024*1024,Be=10*Le,Ge=Object(D.useRef)();(a=c)!==null&&a!==void 0&&a.startsWith("/api")&&y!=="txt"&&(c=h.a.API_SERVER+c),y==="office"&&(We=Object(f.T)(c).filesize,We>Be&&(y="other")),v&&N&&(N.filename=v),Object(D.useEffect)(function(){var Ae,Ue,Ve=(Ae=document.cookie)===null||Ae===void 0||((Ue=Ae.replace(/\s/g,""))===null||Ue===void 0)?void 0:Ue.split(";");Ve==null||Ve.map(function(Ze){var $e=Ze.split("=");$e[0]==="_educoder_session"&&pe($e[1])})},[]),Object(D.useEffect)(function(){y==="office"&&oe()},[y,c]);var oe=function(){var Ae=Object(U.a)(i.a.mark(function Ue(){var Ve,Ze,$e;return i.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return console.log("data:",c),Ve=c,c.startsWith("http")||(Ve=location.origin+Ve),Ze=new URL(Ve).pathname.split("/").pop(),et.next=6,Object(o.V)({attachment_id:Ze});case 6:$e=et.sent,Te($e);case 8:case"end":return et.stop()}},Ue)}));return function(){return Ae.apply(this,arguments)}}(),ye=function(){if(c.startsWith("http")||c.startsWith("blob:")){we();return}Object(f.z)(v||"educoder",c,v)},we=function(){Object(f.x)(v||"educoder",decodeURIComponent(c))};return g.a.createElement("div",{style:Object(F.a)({},O||{}),className:"".concat(b&&p.a.bgBlack," ").concat(y?p.a.wrp:"hide")},j&&g.a.createElement("div",{className:p.a.close,ref:Ge},!Y&&g.a.createElement(X.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ge.current}},g.a.createElement("span",{onClick:we},g.a.createElement("i",{className:"icon-quxiaozhiding"}))),g.a.createElement(X.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ge.current}},g.a.createElement("span",{className:"",onClick:P},g.a.createElement("i",{className:"icon-guanbi1"})))),g.a.createElement("div",{className:"".concat(p.a[B]," ").concat(B," ").concat(p.a.monaco," ").concat(y==="txt"?"show":"hide")},y==="txt"&&g.a.createElement(u.b,N)),y==="audio"&&g.a.createElement("audio",{src:"".concat(((A=c)===null||A===void 0?void 0:A.indexOf("http://"))>-1||((_=c)===null||_===void 0?void 0:_.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),y==="video"&&g.a.createElement(g.a.Fragment,null,((S=c)===null||S===void 0?void 0:S.indexOf("http"))>-1?g.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):g.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),y==="office"&&Oe&&g.a.createElement("iframe",{src:"".concat(Ne,"/office.html?key=").concat(Oe.key,"&url=").concat(De+Oe.url,"&callbackUrl=").concat(De+Oe.callbackUrl,"&fileType=").concat(Oe.fileType,"&title=").concat(Oe.title,"&model=").concat(x,"&officeServer=").concat(h.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Y)}),y==="html"&&g.a.createElement("iframe",{src:c+"&disposition=inline"}),y==="pdf"&&g.a.createElement("iframe",{src:"".concat(Ne,"/js/pdfview/index.html?url=").concat(c,"&disabledDownload=").concat(!!Y)}),y==="image"&&g.a.createElement("img",{src:"".concat(((L=c)===null||L===void 0?void 0:L.indexOf("http://"))>-1||((R=c)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(C=c)!==null&&C!==void 0&&C.startsWith("/api")?"":"data:image/png;base64,").concat(c)}),y==="other"&&g.a.createElement("div",null,g.a.createElement($.a,{type:"primary",size:"large",onClick:ye},g.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),y==="download"&&g.a.createElement($.a,{type:"primary",size:"large",onClick:ye},g.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(st,be,Q){},pmY6:function(st,be,Q){"use strict";Q.d(be,"h",function(){return D}),Q.d(be,"g",function(){return m}),Q.d(be,"f",function(){return p}),Q.d(be,"e",function(){return l}),Q.d(be,"i",function(){return u}),Q.d(be,"b",function(){return f}),Q.d(be,"a",function(){return o}),Q.d(be,"d",function(){return h}),Q.d(be,"c",function(){return s});var ie=Q("C/vA"),$=Q("JYp7");const M=!1;let X=null;function F(a){X=a}if(M){const a="__is_disposable_tracked__";F(new class{trackDisposable(A){const _=new Error("Potentially leaked disposable").stack;setTimeout(()=>{A[a]||console.log(_)},3e3)}setParent(A,_){if(A&&A!==o.None)try{A[a]=!0}catch(S){}}markAsDisposed(A){if(A&&A!==o.None)try{A[a]=!0}catch(_){}}markAsSingleton(A){}})}function U(a){return X==null||X.trackDisposable(a),a}function G(a){X==null||X.markAsDisposed(a)}function W(a,A){X==null||X.setParent(a,A)}function i(a,A){if(!X)return;for(const _ of a)X.setParent(_,A)}function D(a){return X==null||X.markAsSingleton(a),a}class g extends Error{constructor(a){super(`Encountered errors while disposing of store. Errors: [${a.join(", ")}]`);this.errors=a}}function m(a){return typeof a.dispose=="function"&&a.dispose.length===0}function p(a){if($.a.is(a)){let A=[];for(const _ of a)if(_)try{_.dispose()}catch(S){A.push(S)}if(A.length===1)throw A[0];if(A.length>1)throw new g(A);return Array.isArray(a)?[]:a}else if(a)return a.dispose(),a}function l(...a){const A=u(()=>p(a));return i(a,A),A}function u(a){const A=U({dispose:Object(ie.a)(()=>{G(A),a()})});return A}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,U(this)}dispose(){if(this._isDisposed)return;G(this),this._isDisposed=!0,this.clear()}clear(){try{p(this._toDispose.values())}finally{this._toDispose.clear()}}add(a){if(!a)return a;if(a===this)throw new Error("Cannot register a disposable on itself!");return W(a,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(a),a}}f.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new f,U(this),W(this._store,this)}dispose(){G(this),this._store.dispose()}_register(a){if(a===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(a)}}o.None=Object.freeze({dispose(){}});class h{constructor(){this._isDisposed=!1,U(this)}get value(){return this._isDisposed?void 0:this._value}set value(a){var A;if(this._isDisposed||a===this._value)return;(A=this._value)===null||A===void 0||A.dispose(),a&&W(a,this),this._value=a}clear(){this.value=void 0}dispose(){var a;this._isDisposed=!0,G(this),(a=this._value)===null||a===void 0||a.dispose(),this._value=void 0}clearAndLeak(){const a=this._value;return this._value=void 0,a&&W(a,null),a}}class s{constructor(a){this.object=a}dispose(){}}},psGv:function(st,be,Q){var ie,$;(function(){var M;(function(){"use strict";var G=[,,function(g){function m(u){this.__parent=u,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=[]}m.prototype.clone_empty=function(){var u=new m(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},m.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},m.prototype.has_match=function(u){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(u))return!0;return!1},m.prototype.set_indent=function(u,f){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(u){this.__items.push(u);var f=u.lastIndexOf(` +`)}]},h=Q("5VLF"),s=Q.n(h),a={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"]}},A=function(Y,ee){return ee.map(function(le){return{label:le,kind:Y.languages.CompletionItemKind.Keyword,insertText:le}})},_=function(Y){return Object.keys(a.tables).map(function(ee){return{label:ee,kind:Y.languages.CompletionItemKind.Variable,insertText:ee}})},S=function(Y,ee){var le=a.tables[Y];return le?le.map(function(ue){return{label:ue,kind:ee.languages.CompletionItemKind.Field,insertText:ue}}):[]};function L(b,Y,ee,le,ue){var ke=Y.getWordUntilPosition(ee),Se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Ce=le.map(function(ce){return{label:ce,kind:b.languages.CompletionItemKind.Keyword,insertText:ce,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}});return ue.map(function(ce){Ce.push(Object(ie.a)(Object(ie.a)({},ce),{},{range:Se}))}),Ce}var R=function(b){a.languages.map(function(ue){return b.languages.registerDocumentFormattingEditProvider(ue,{provideDocumentFormattingEdits:function(Se,Ce,ce){return Object(g.a)(p.a.mark(function pe(){var se;return p.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return se=s()(Se.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}),Oe.abrupt("return",[{range:Se.getFullModelRange(),text:se}]);case 2:case"end":return Oe.stop()}},pe)}))()}}),ue});var Y=f.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ee=o.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),le=u.quickKey.map(function(ue){return{label:ue.label,kind:b.languages.CompletionItemKind.Method,insertText:ue.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}});b.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(f.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(f.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}}),b.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn};return{suggestions:Object($.a)(l.keywords.map(function(pe){return{label:pe,kind:b.languages.CompletionItemKind.Function,documentation:pe,insertText:pe,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}}))}}}),b.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(u.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(u.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}}),b.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ke,Se){var Ce=ke.getWordUntilPosition(Se),ce={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ce.startColumn,endColumn:Ce.endColumn},pe=ke.getLineContent(Se.lineNumber).substring(Ce.startColumn-2,Ce.endColumn);return{suggestions:[].concat(Object($.a)(o.keywords.map(function(se){return{label:se,kind:b.languages.CompletionItemKind.Function,documentation:se,insertText:se,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})),Object($.a)(o.quickKey.map(function(se){return{label:se.label,kind:b.languages.CompletionItemKind.Function,documentation:se.content,insertText:pe.startsWith("#")?se.content.replace(/#/,""):se.content,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}})))}}})},C="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",w=Q("fjLI"),x=Q("LvDl"),c=Q("+ua5");function T(b){return/^\d+$/.test(b)?"".concat(b,"px"):b}function y(){}var v=!1,N={"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 B(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=b;if(Array.isArray(b)){for(var ee=0;ee0||di.target.offsetWidth>0)&&je.current.instance.layout()}}catch(Pt){Ft.e(Pt)}finally{Ft.f()}}),bt.observe(Fe.current)),bt}function ze(){X.b.warn(decodeURIComponent(C))}var ot=function(){var xt=je.current.instance;if(ke!=null&&xt&&fe){var Ft=xt.getModel();Ft&&ke!==Ft.getValue()&&(v=!0,Ft.setValue(ke),xt.layout(),v=!1)}};Object(W.useEffect)(function(){ge.current&&clearTimeout(ge.current),ge.current=setTimeout(function(){ot()},500)},[ke,fe,je.current]),Object(W.useEffect)(function(){if(Je&&je.current&&je.current.instance){var bt=je.current.instance;bt.changeViewZones(function(Ft){var ti=document.createElement("div");ti.style.padding="10px 20px",ti.style.width="calc(100% - 20px)",ti.className="my-error-line-wrp",ti.innerHTML=ut,Ft.addZone({afterLineNumber:Je||11,heightInLines:3,domNode:ti})});var xt={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}};bt.addOverlayWidget(xt),bt.revealPositionInCenter({lineNumber:20,column:1})}},[Je,je.current,fe]);function mt(){var bt=je.current.instance;if(bt){var xt=bt.getSelection(),Ft=je.current.pastePos||{},ti=new O.Range(Ft.startLineNumber||xt.endLineNumber,Ft.startColumn||xt.endColumn,Ft.endLineNumber||xt.endLineNumber,Ft.endColumn||xt.endColumn);setTimeout(function(){bt.executeEdits("",[{range:ti,text:""}])},300)}}function ft(bt){(window.navigator.platform.match("Mac")?bt.metaKey:bt.ctrlKey)&&bt.keyCode==83&&(bt.preventDefault(),Le())}var wt=function(){if(Ge&&je.current.instance){var xt=je.current.instance.getContentHeight();yt(xt0||Ue.target.offsetWidth>0)&&Ge.layout()}}catch(Ve){we.e(Ve)}finally{we.f()}}),oe.observe(se.current)),oe}Object(W.useEffect)(function(){se.current&&Promise.all([Q.e(16),Q.e(28)]).then(Q.t.bind(null,"M/lh",7)).then(function(Ge){O=Ge;var oe=O.editor.createDiffEditor(se.current,Object(ie.a)(Object(ie.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},pe),{},{wordWrap:!0}));Ne(oe);var ye=De(oe);return function(){oe.dispose();var we=oe.getModel();we&&we.dispose(),ye.unobserve(se.current)}})},[]),Object(W.useEffect)(function(){Te&&Te.setModel({original:O.editor.createModel(ke,Ce),modified:O.editor.createModel(Se,Ce)})},[ke,Se,Ce,Te]);var We=T(ee),Le=T(ue),Be={width:We,height:Le};return i.a.createElement("div",{className:"my-diff-editor",ref:se,style:Be})}},ZpRC:function(st,be,Q){"use strict";function ie(g){return typeof g=="object"&&g!=null&&g.nodeType===1}function $(g,m){return(!m||g!=="hidden")&&g!=="visible"&&g!=="clip"}function M(g,m){if(g.clientHeightm||f>g&&o=m&&h>=p?f-g-l:o>m&&hp?o-m+u:0}var F=function(g,m){var p=window,l=m.scrollMode,u=m.block,f=m.inline,o=m.boundary,h=m.skipOverflowHiddenElements,s=typeof o=="function"?o:function(Ge){return Ge!==o};if(!ie(g))throw new TypeError("Invalid target");for(var a=document.scrollingElement||document.documentElement,A=[],_=g;ie(_)&&s(_);){if((_=_.parentElement)===a){A.push(_);break}_!=null&&_===document.body&&M(_)&&!M(document.documentElement)||_!=null&&M(_,h)&&A.push(_)}for(var S=p.visualViewport?p.visualViewport.width:innerWidth,L=p.visualViewport?p.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,w=g.getBoundingClientRect(),x=w.height,c=w.width,T=w.top,y=w.right,v=w.bottom,N=w.left,B=u==="start"||u==="nearest"?T:u==="end"?v:T+x/2,O=f==="center"?N+c/2:f==="end"?y:N,j=[],P=0;P=0&&N>=0&&v<=L&&y<=S&&T>=ue&&v<=Se&&N>=Ce&&y<=ke)return j;var ce=getComputedStyle(b),pe=parseInt(ce.borderLeftWidth,10),se=parseInt(ce.borderTopWidth,10),ae=parseInt(ce.borderRightWidth,10),Oe=parseInt(ce.borderBottomWidth,10),Te=0,Ne=0,De="offsetWidth"in b?b.offsetWidth-b.clientWidth-pe-ae:0,We="offsetHeight"in b?b.offsetHeight-b.clientHeight-se-Oe:0;if(a===b)Te=u==="start"?B:u==="end"?B-L:u==="nearest"?X(C,C+L,L,se,Oe,C+B,C+B+x,x):B-L/2,Ne=f==="start"?O:f==="center"?O-S/2:f==="end"?O-S:X(R,R+S,S,pe,ae,R+O,R+O+c,c),Te=Math.max(0,Te+C),Ne=Math.max(0,Ne+R);else{Te=u==="start"?B-ue-se:u==="end"?B-Se+Oe+We:u==="nearest"?X(ue,Se,ee,se,Oe+We,B,B+x,x):B-(ue+ee/2)+We/2,Ne=f==="start"?O-Ce-pe:f==="center"?O-(Ce+le/2)+De/2:f==="end"?O-ke+ae+De:X(Ce,ke,le,pe,ae+De,O,O+c,c);var Le=b.scrollLeft,Be=b.scrollTop;B+=Be-(Te=Math.max(0,Math.min(Be+Te,b.scrollHeight-ee+We))),O+=Le-(Ne=Math.max(0,Math.min(Le+Ne,b.scrollWidth-le+De)))}j.push({el:b,top:Te,left:Ne})}return j};function U(g){return g===Object(g)&&Object.keys(g).length!==0}function G(g,m){m===void 0&&(m="auto");var p="scrollBehavior"in document.body.style;g.forEach(function(l){var u=l.el,f=l.top,o=l.left;u.scroll&&p?u.scroll({top:f,left:o,behavior:m}):(u.scrollTop=f,u.scrollLeft=o)})}function W(g){return g===!1?{block:"end",inline:"nearest"}:U(g)?g:{block:"start",inline:"nearest"}}function i(g,m){var p=!g.ownerDocument.documentElement.contains(g);if(U(m)&&typeof m.behavior=="function")return m.behavior(p?[]:F(g,m));if(p)return;var l=W(m);return G(F(g,l),l.behavior)}var D=be.a=i},bT9E:function(st,be,Q){"use strict";Q.d(be,"a",function(){return $});var ie=Q("VTBJ");function $(M,X){var F=Object(ie.a)({},M);return Array.isArray(X)&&X.forEach(function(U){delete F[U]}),F}},c5Ni:function(st,be,Q){},dejd:function(st,be,Q){},dmUQ:function(st,be,Q){"use strict";var ie=Q("Ff2n"),$=Q("rePB"),M=Q("1OyB"),X=Q("vuIU"),F=Q("Ji7U"),U=Q("md7G"),G=Q("foSv"),W=Q("q1tI"),i=Q.n(W),D=Q("TSYQ"),g=Q.n(D),m=Q("4IlW");function p(x,c){var T=Object.keys(x);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(x);c&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(x,v).enumerable})),T.push.apply(T,y)}return T}function l(x){for(var c=1;c1?le-1:0),ke=1;ke1?P-1:0),Y=1;Y=0)return parseInt(j.slice(j.indexOf("e-")+2),10);var P=0;return j.indexOf(".")>=0&&(P=j.length-j.indexOf(".")-1),P},v.getInputDisplayValue=function(O){var j=O||v.state,P=j.focused,b=j.inputValue,Y=j.value,ee;P?ee=b:ee=v.toPrecisionAsStep(Y),ee==null&&(ee="");var le=v.formatWrapper(ee);return S(v.props.decimalSeparator)&&(le=le.toString().replace(".",v.props.decimalSeparator)),le},v.recordCursorPosition=function(){try{v.cursorStart=v.input.selectionStart,v.cursorEnd=v.input.selectionEnd,v.currentValue=v.input.value,v.cursorBefore=v.input.value.substring(0,v.cursorStart),v.cursorAfter=v.input.value.substring(v.cursorEnd)}catch(O){}},v.restoreByAfter=function(O){if(O===void 0)return!1;var j=v.input.value,P=j.lastIndexOf(O);if(P===-1)return!1;var b=v.cursorBefore.length;return v.lastKeyCode===m.a.DELETE&&v.cursorBefore.charAt(b-1)===O[0]?(v.fixCaret(b,b),!0):P+O.length===j.length?(v.fixCaret(P,P),!0):!1},v.partRestoreByAfter=function(O){return O===void 0?!1:Array.prototype.some.call(O,function(j,P){var b=O.substring(P);return v.restoreByAfter(b)})},v.isNotCompleteNumber=function(O){return isNaN(O)||O===""||O===null||O&&O.toString().indexOf(".")===O.toString().length-1},v.stop=function(){v.autoStepTimer&&clearTimeout(v.autoStepTimer)},v.down=function(O,j,P){v.pressingUpOrDown=!0,v.step("down",O,j,P)},v.up=function(O,j,P){v.pressingUpOrDown=!0,v.step("up",O,j,P)},v.saveInput=function(O){v.input=O};var N=y.value;N===void 0&&(N=y.defaultValue),v.state={focused:y.autoFocus};var B=v.getValidValue(v.toNumber(N));return v.state=l(l({},v.state),{},{inputValue:v.toPrecisionAsStep(B),value:B}),v}return Object(X.a)(T,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(v){var N=this.props,B=N.value,O=N.onChange,j=N.max,P=N.min,b=this.state.focused;if(v){if(!L(v.value,B)||!L(v.max,j)||!L(v.min,P)){var Y=b?B:this.getValidValue(B),ee;this.pressingUpOrDown?ee=Y:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(Y),this.setState({value:Y,inputValue:ee})}var le="value"in this.props?B:this.state.value;"max"in this.props&&v.max!==j&&typeof le=="number"&&le>j&&O&&O(j),"min"in this.props&&v.min!==P&&typeof le=="number"&&le1&&arguments[1]!==void 0?arguments[1]:this.props.min,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,O=parseFloat(v);return isNaN(O)?v:(OB&&(O=B),O)}},{key:"setValue",value:function(v,N){var B=this.props.precision,O=this.isNotCompleteNumber(parseFloat(v))?null:parseFloat(v),j=this.state.value,P=j===void 0?null:j,b=this.state.inputValue,Y=b===void 0?null:b,ee=typeof O=="number"?O.toFixed(B):"".concat(O),le=O!==P||ee!=="".concat(Y);return"value"in this.props?(Y=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Y},N)):this.setState({value:O,inputValue:this.toPrecisionAsStep(v)},N),le&&this.props.onChange(O),O}},{key:"getMaxPrecision",value:function(v){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,B=this.props,O=B.precision,j=B.step;if(S(O))return O;var P=this.getPrecision(N),b=this.getPrecision(j),Y=this.getPrecision(v);return v?Math.max(Y,P+b):P+b}},{key:"getPrecisionFactor",value:function(v){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,B=this.getMaxPrecision(v,N);return Math.pow(10,B)}},{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(v){return this.props.formatter?this.props.formatter(v):v}},{key:"toPrecisionAsStep",value:function(v){if(this.isNotCompleteNumber(v)||v==="")return v;var N=Math.abs(this.getMaxPrecision(v));return isNaN(N)?v.toString():Number(v).toFixed(N)}},{key:"toNumber",value:function(v){var N=this.props.precision,B=this.state.focused,O=v&&v.length>16&&B;return this.isNotCompleteNumber(v)||O?v:S(N)?Math.round(v*Math.pow(10,N))/Math.pow(10,N):Number(v)}},{key:"upStep",value:function(v,N){var B=this.props.step,O=this.getPrecisionFactor(v,N),j=Math.abs(this.getMaxPrecision(v,N)),P=((O*v+O*B*N)/O).toFixed(j);return this.toNumber(P)}},{key:"downStep",value:function(v,N){var B=this.props.step,O=this.getPrecisionFactor(v,N),j=Math.abs(this.getMaxPrecision(v,N)),P=((O*v-O*B*N)/O).toFixed(j);return this.toNumber(P)}},{key:"step",value:function(v,N){var B=this,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var P=this.props;if(P.disabled)return;var b=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(b))return;var Y=this["".concat(v,"Step")](b,O),ee=Y>P.max||YP.max?Y=P.max:Y=ue),je=(tt||tt===0)&&(isNaN(tt)||Number(tt)<=ke),Ee=Fe||O||j,ge=je||O||j,_e=g()("".concat(B,"-handler"),"".concat(B,"-handler-up"),Object($.a)({},"".concat(B,"-handler-up-disabled"),Ee)),re=g()("".concat(B,"-handler"),"".concat(B,"-handler-down"),Object($.a)({},"".concat(B,"-handler-down-disabled"),ge)),ne=P?{onTouchStart:Ee?o:this.up,onTouchEnd:this.stop}:{onMouseDown:Ee?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},he=P?{onTouchStart:ge?o:this.down,onTouchEnd:this.stop}:{onMouseDown:ge?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return i.a.createElement("div",{className:Je,style:Se,title:Ce,onMouseEnter:ce,onMouseLeave:pe,onMouseOver:se,onMouseOut:ae,onFocus:function(){return null},onBlur:function(){return null}},i.a.createElement("div",{className:"".concat(B,"-handler-wrap")},i.a.createElement("span",Object.assign({unselectable:"on"},ne,{role:"button","aria-label":"Increase Value","aria-disabled":Ee,className:_e}),Y||i.a.createElement("span",{unselectable:"on",className:"".concat(B,"-handler-up-inner"),onClick:h})),i.a.createElement("span",Object.assign({unselectable:"on"},he,{role:"button","aria-label":"Decrease Value","aria-disabled":ge,className:re}),ee||i.a.createElement("span",{unselectable:"on",className:"".concat(B,"-handler-down-inner"),onClick:h}))),i.a.createElement("div",{className:"".concat(B,"-input-wrap")},i.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":ke,"aria-valuemax":ue,"aria-valuenow":tt,required:Oe,type:De,placeholder:We,onPaste:Ue,onClick:Te,onMouseUp:this.onMouseUp,className:"".concat(B,"-input"),tabIndex:Ne,autoComplete:b,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ut?this.onKeyDown:o,onKeyUp:ut?this.onKeyUp:o,autoFocus:we,maxLength:ye,readOnly:j,disabled:O,max:ue,min:ke,step:oe,name:Ae,title:Ce,id:Le,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(rt),pattern:Ge,inputMode:Be,onInput:Ve},Me))))}}]),T}(i.a.Component);R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:_,min:-_,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:s,required:!1,autoComplete:"off"};var C=R,w=be.a=C},eYnf:function(st,be,Q){st.exports={flex_box_center:"flex_box_center___1XyGp",flex_space_between:"flex_space_between___3jaTm",flex_box_vertical_center:"flex_box_vertical_center___2_EoO",flex_box_center_end:"flex_box_center_end___aCF48",flex_box_column:"flex_box_column___10vW2",bg:"bg___1Uj9H",title:"title___2xwyX",titleLeft:"titleLeft___1ASl5",titleRight:"titleRight___1FHl9",btns:"btns___3kkgI"}},fjLI:function(st,be,Q){"use strict";Q.d(be,"f",function(){return p}),Q.d(be,"b",function(){return l}),Q.d(be,"a",function(){return u}),Q.d(be,"d",function(){return f}),Q.d(be,"e",function(){return o}),Q.d(be,"c",function(){return h});var ie=Q("8HAY"),$=Q("Vhoy"),M=Q("MI8n"),X=Q("JYp7"),F=Q("pmY6"),U=Q("24hK"),G=Q("nnTU"),W=Q("T8No"),i=Q("Cg/j"),D=Q("t9D7"),g=function(s,a,A,_){var S=arguments.length,L=S<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,A):_,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,a,A,_);else for(var C=s.length-1;C>=0;C--)(R=s[C])&&(L=(S<3?R(L):S>3?R(a,A,L):R(a,A))||L);return S>3&&L&&Object.defineProperty(a,A,L),L},m=function(s,a){return function(A,_){a(A,_,s)}};function p(s){return s.command!==void 0}class l{constructor(s){this.id=l._idPool++,this._debugName=s}}l._idPool=0,l.CommandPalette=new l("CommandPalette"),l.EditorContext=new l("EditorContext"),l.SimpleEditorContext=new l("SimpleEditorContext"),l.EditorContextCopy=new l("EditorContextCopy"),l.EditorContextPeek=new l("EditorContextPeek"),l.MenubarEditMenu=new l("MenubarEditMenu"),l.MenubarCopy=new l("MenubarCopy"),l.MenubarGoMenu=new l("MenubarGoMenu"),l.MenubarSelectionMenu=new l("MenubarSelectionMenu"),l.InlineCompletionsActions=new l("InlineCompletionsActions");const u=Object(i.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new M.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===l.CommandPalette}}addCommand(s){return this.addCommands(X.a.single(s))}addCommands(s){for(const a of s)this._commands.set(a.id,a);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(F.i)(()=>{let a=!1;for(const A of s)a=this._commands.delete(A.id)||a;a&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((a,A)=>s.set(A,a)),s}appendMenuItem(s,a){return this.appendMenuItems(X.a.single({id:s,item:a}))}appendMenuItems(s){const a=new Set,A=new U.a;for(const{id:_,item:S}of s){let L=this._menuItems.get(_);L||(L=new U.a,this._menuItems.set(_,L)),A.push(L.push(S)),a.add(_)}return this._onDidChangeMenu.fire(a),Object(F.i)(()=>{if(A.size>0){for(let _ of A)_();this._onDidChangeMenu.fire(a),A.clear()}})}getMenuItems(s){let a;return this._menuItems.has(s)?a=[...this._menuItems.get(s)]:a=[],s===l.CommandPalette&&this._appendImplicitItems(a),a}_appendImplicitItems(s){const a=new Set;for(const A of s)p(A)&&(a.add(A.command.id),A.alt&&a.add(A.alt.id));this._commands.forEach((A,_)=>{a.has(_)||s.push({command:A})})}};class o extends ie.e{constructor(s,a,A,_){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=a,this._contextKeyService=A,this._options=_}get actions(){const s=[],a=this._menuService.createMenu(this.item.submenu,this._contextKeyService),A=a.getActions(this._options);a.dispose();for(const[,_]of A)_.length>0&&(s.push(..._),s.push(new ie.d));return s.length&&s.pop(),s}}let h=class s{constructor(a,A,_,S,L){var R,C;if(this._commandService=L,this.id=a.id,this.label=(_==null?void 0:_.renderShortTitle)&&a.shortTitle?typeof a.shortTitle=="string"?a.shortTitle:a.shortTitle.value:typeof a.title=="string"?a.title:a.title.value,this.tooltip=(C=typeof a.tooltip=="string"?a.tooltip:(R=a.tooltip)===null||R===void 0?void 0:R.value)!==null&&C!==void 0?C:"",this.enabled=!a.precondition||S.contextMatchesRules(a.precondition),this.checked=void 0,a.toggled){const w=a.toggled.condition?a.toggled:{condition:a.toggled};this.checked=S.contextMatchesRules(w.condition),this.checked&&w.tooltip&&(this.tooltip=typeof w.tooltip=="string"?w.tooltip:w.tooltip.value),w.title&&(this.label=typeof w.title=="string"?w.title:w.title.value)}this.item=a,this.alt=A?new s(A,void 0,_,S,L):void 0,this._options=_,D.d.isThemeIcon(a.icon)&&(this.class=$.a.asClassName(a.icon))}dispose(){}run(...a){var A,_;let S=[];return((A=this._options)===null||A===void 0?void 0:A.arg)&&(S=[...S,this._options.arg]),((_=this._options)===null||_===void 0?void 0:_.shouldForwardArgs)&&(S=[...S,...a]),this._commandService.executeCommand(this.id,...S)}};h=g([m(3,W.b),m(4,G.b)],h)},gJ3r:function(st,be,Q){"use strict";Q.d(be,"a",function(){return ie});var ie=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},ic2d:function(st,be,Q){"use strict";Q.d(be,"a",function(){return X});var ie=Q("FWmy"),$=Q("746U");class M{constructor(){this.data=new Map}add(F,U){ie.a($.l(F)),ie.a($.k(U)),ie.a(!this.data.has(F),"There is already an extension with this id"),this.data.set(F,U)}as(F){return this.data.get(F)||null}}const X=new M},kSUc:function(st,be,Q){},lZu9:function(st,be,Q){(function(ie){ie(Q("VrN/"),Q("1eCo"),Q("8EBN"))})(function(ie){"use strict";ie.defineMode("markdown",function($,M){var X=ie.getMode($,"text/html"),F=X.name=="null";function U(P){if(ie.findModeByName){var b=ie.findModeByName(P);b&&(P=b.mime||b.mimes[0])}var Y=ie.getMode($,P);return Y.name=="null"?null:Y}M.highlightFormatting===void 0&&(M.highlightFormatting=!1),M.maxBlockquoteDepth===void 0&&(M.maxBlockquoteDepth=0),M.taskLists===void 0&&(M.taskLists=!1),M.strikethrough===void 0&&(M.strikethrough=!1),M.emoji===void 0&&(M.emoji=!1),M.fencedCodeBlockHighlighting===void 0&&(M.fencedCodeBlockHighlighting=!0),M.fencedCodeBlockDefaultMode===void 0&&(M.fencedCodeBlockDefaultMode="text/plain"),M.xml===void 0&&(M.xml=!0),M.tokenTypeOverrides===void 0&&(M.tokenTypeOverrides={});var G={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 W in G)G.hasOwnProperty(W)&&M.tokenTypeOverrides[W]&&(G[W]=M.tokenTypeOverrides[W]);var i=/^([*\-_])(?:\s*\1){2,}\s*$/,D=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,g=/^\[(x| )\](?=\s)/i,m=M.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,p=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,u=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,o=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,h=" ";function s(P,b,Y){return b.f=b.inline=Y,Y(P,b)}function a(P,b,Y){return b.f=b.block=Y,Y(P,b)}function A(P){return!P||!/\S/.test(P.string)}function _(P){if(P.linkTitle=!1,P.linkHref=!1,P.linkText=!1,P.em=!1,P.strong=!1,P.strikethrough=!1,P.quote=0,P.indentedCode=!1,P.f==L){var b=F;if(!b){var Y=ie.innerMode(X,P.htmlState);b=Y.mode.name=="xml"&&Y.state.tagStart===null&&!Y.state.context&&Y.state.tokenize.isInText}b&&(P.f=x,P.block=S,P.htmlState=null)}return P.trailingSpace=0,P.trailingSpaceNewLine=!1,P.prevLine=P.thisLine,P.thisLine={stream:null},null}function S(P,b){var Y=P.column()===b.indentation,ee=A(b.prevLine.stream),le=b.indentedCode,ue=b.prevLine.hr,ke=b.list!==!1,Se=(b.listStack[b.listStack.length-1]||0)+3;b.indentedCode=!1;var Ce=b.indentation;if(b.indentationDiff===null&&(b.indentationDiff=b.indentation,ke)){for(b.list=null;Ce=4&&(le||b.prevLine.fencedCodeEnd||b.prevLine.header||ee))return P.skipToEnd(),b.indentedCode=!0,G.code;if(P.eatSpace())return null;if(Y&&b.indentation<=Se&&(se=P.match(m))&&se[1].length<=6)return b.quote=0,b.header=se[1].length,b.thisLine.header=!0,M.highlightFormatting&&(b.formatting="header"),b.f=b.inline,C(b);if(b.indentation<=Se&&P.eat(">"))return b.quote=Y?1:b.quote+1,M.highlightFormatting&&(b.formatting="quote"),P.eatSpace(),C(b);if(!pe&&!b.setext&&Y&&b.indentation<=Se&&(se=P.match(D))){var ae=se[1]?"ol":"ul";return b.indentation=Ce+P.current().length,b.list=!0,b.quote=0,b.listStack.push(b.indentation),b.em=!1,b.strong=!1,b.code=!1,b.strikethrough=!1,M.taskLists&&P.match(g,!1)&&(b.taskList=!0),b.f=b.inline,M.highlightFormatting&&(b.formatting=["list","list-"+ae]),C(b)}else{if(Y&&b.indentation<=Se&&(se=P.match(u,!0)))return b.quote=0,b.fencedEndRE=new RegExp(se[1]+"+ *$"),b.localMode=M.fencedCodeBlockHighlighting&&U(se[2]||M.fencedCodeBlockDefaultMode),b.localMode&&(b.localState=ie.startState(b.localMode)),b.f=b.block=R,M.highlightFormatting&&(b.formatting="code-block"),b.code=-1,C(b);if(b.setext||(!ce||!ke)&&!b.quote&&b.list===!1&&!b.code&&!pe&&!f.test(P.string)&&(se=P.lookAhead(1))&&(se=se.match(p)))return b.setext?(b.header=b.setext,b.setext=0,P.skipToEnd(),M.highlightFormatting&&(b.formatting="header")):(b.header=se[0].charAt(0)=="="?1:2,b.setext=b.header),b.thisLine.header=!0,b.f=b.inline,C(b);if(pe)return P.skipToEnd(),b.hr=!0,b.thisLine.hr=!0,G.hr;if(P.peek()==="[")return s(P,b,N)}return s(P,b,b.inline)}function L(P,b){var Y=X.token(P,b.htmlState);if(!F){var ee=ie.innerMode(X,b.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||b.md_inside&&P.current().indexOf(">")>-1)&&(b.f=x,b.block=S,b.htmlState=null)}return Y}function R(P,b){var Y=b.listStack[b.listStack.length-1]||0,ee=b.indentation=P.quote?b.push(G.formatting+"-"+P.formatting[Y]+"-"+P.quote):b.push("error"))}if(P.taskOpen)return b.push("meta"),b.length?b.join(" "):null;if(P.taskClosed)return b.push("property"),b.length?b.join(" "):null;if(P.linkHref?b.push(G.linkHref,"url"):(P.strong&&b.push(G.strong),P.em&&b.push(G.em),P.strikethrough&&b.push(G.strikethrough),P.emoji&&b.push(G.emoji),P.linkText&&b.push(G.linkText),P.code&&b.push(G.code),P.image&&b.push(G.image),P.imageAltText&&b.push(G.imageAltText,"link"),P.imageMarker&&b.push(G.imageMarker)),P.header&&b.push(G.header,G.header+"-"+P.header),P.quote&&(b.push(G.quote),!M.maxBlockquoteDepth||M.maxBlockquoteDepth>=P.quote?b.push(G.quote+"-"+P.quote):b.push(G.quote+"-"+M.maxBlockquoteDepth)),P.list!==!1){var ee=(P.listStack.length-1)%3;ee?ee===1?b.push(G.list2):b.push(G.list3):b.push(G.list1)}return P.trailingSpaceNewLine?b.push("trailing-space-new-line"):P.trailingSpace&&b.push("trailing-space-"+(P.trailingSpace%2?"a":"b")),b.length?b.join(" "):null}function w(P,b){return P.match(l,!0)?C(b):void 0}function x(P,b){var Y=b.text(P,b);if(typeof Y!="undefined")return Y;if(b.list)return b.list=null,C(b);if(b.taskList){var ee=P.match(g,!0)[1]===" ";return ee?b.taskOpen=!0:b.taskClosed=!0,M.highlightFormatting&&(b.formatting="task"),b.taskList=!1,C(b)}if(b.taskOpen=!1,b.taskClosed=!1,b.header&&P.match(/^#+$/,!0))return M.highlightFormatting&&(b.formatting="header"),C(b);var le=P.next();if(b.linkTitle){b.linkTitle=!1;var ue=le;le==="("&&(ue=")"),ue=(ue+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ke="^\\s*(?:[^"+ue+"\\\\]+|\\\\\\\\|\\\\.)"+ue;if(P.match(new RegExp(ke),!0))return G.linkHref}if(le==="`"){var Se=b.formatting;M.highlightFormatting&&(b.formatting="code"),P.eatWhile("`");var Ce=P.current().length;if(b.code==0&&(!b.quote||Ce==1))return b.code=Ce,C(b);if(Ce==b.code){var ce=C(b);return b.code=0,ce}else return b.formatting=Se,C(b)}else if(b.code)return C(b);if(le==="\\"&&(P.next(),M.highlightFormatting)){var pe=C(b),se=G.formatting+"-escape";return pe?pe+" "+se:se}if(le==="!"&&P.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return b.imageMarker=!0,b.image=!0,M.highlightFormatting&&(b.formatting="image"),C(b);if(le==="["&&b.imageMarker&&P.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return b.imageMarker=!1,b.imageAltText=!0,M.highlightFormatting&&(b.formatting="image"),C(b);if(le==="]"&&b.imageAltText){M.highlightFormatting&&(b.formatting="image");var pe=C(b);return b.imageAltText=!1,b.image=!1,b.inline=b.f=T,pe}if(le==="["&&!b.image)return b.linkText&&P.match(/^.*?\]/)||(b.linkText=!0,M.highlightFormatting&&(b.formatting="link")),C(b);if(le==="]"&&b.linkText){M.highlightFormatting&&(b.formatting="link");var pe=C(b);return b.linkText=!1,b.inline=b.f=P.match(/\(.*?\)| ?\[.*?\]/,!1)?T:x,pe}if(le==="<"&&P.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){b.f=b.inline=c,M.highlightFormatting&&(b.formatting="link");var pe=C(b);return pe?pe+=" ":pe="",pe+G.linkInline}if(le==="<"&&P.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){b.f=b.inline=c,M.highlightFormatting&&(b.formatting="link");var pe=C(b);return pe?pe+=" ":pe="",pe+G.linkEmail}if(M.xml&&le==="<"&&P.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ae=P.string.indexOf(">",P.pos);if(ae!=-1){var Oe=P.string.substring(P.start,ae);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Oe)&&(b.md_inside=!0)}return P.backUp(1),b.htmlState=ie.startState(X),a(P,b,L)}if(M.xml&&le==="<"&&P.match(/^\/\w*?>/))return b.md_inside=!1,"tag";if(le==="*"||le==="_"){for(var Te=1,Ne=P.pos==1?" ":P.string.charAt(P.pos-2);Te<3&&P.eat(le);)Te++;var De=P.peek()||" ",We=!/\s/.test(De)&&(!o.test(De)||/\s/.test(Ne)||o.test(Ne)),Le=!/\s/.test(Ne)&&(!o.test(Ne)||/\s/.test(De)||o.test(De)),Be=null,Ge=null;if(Te%2&&(!b.em&&We&&(le==="*"||!Le||o.test(Ne))?Be=!0:b.em==le&&Le&&(le==="*"||!We||o.test(De))&&(Be=!1)),Te>1&&(!b.strong&&We&&(le==="*"||!Le||o.test(Ne))?Ge=!0:b.strong==le&&Le&&(le==="*"||!We||o.test(De))&&(Ge=!1)),Ge!=null||Be!=null){M.highlightFormatting&&(b.formatting=Be==null?"strong":Ge==null?"em":"strong em"),Be===!0&&(b.em=le),Ge===!0&&(b.strong=le);var ce=C(b);return Be===!1&&(b.em=!1),Ge===!1&&(b.strong=!1),ce}}else if(le===" "&&(P.eat("*")||P.eat("_"))){if(P.peek()===" ")return C(b);P.backUp(1)}if(M.strikethrough){if(le==="~"&&P.eatWhile(le)){if(b.strikethrough){M.highlightFormatting&&(b.formatting="strikethrough");var ce=C(b);return b.strikethrough=!1,ce}else if(P.match(/^[^\s]/,!1))return b.strikethrough=!0,M.highlightFormatting&&(b.formatting="strikethrough"),C(b)}else if(le===" "&&P.match(/^~~/,!0)){if(P.peek()===" ")return C(b);P.backUp(2)}}if(M.emoji&&le===":"&&P.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){b.emoji=!0,M.highlightFormatting&&(b.formatting="emoji");var oe=C(b);return b.emoji=!1,oe}return le===" "&&(P.match(/^ +$/,!1)?b.trailingSpace++:b.trailingSpace&&(b.trailingSpaceNewLine=!0)),C(b)}function c(P,b){var Y=P.next();if(Y===">"){b.f=b.inline=x,M.highlightFormatting&&(b.formatting="link");var ee=C(b);return ee?ee+=" ":ee="",ee+G.linkInline}return P.match(/^[^>]+/,!0),G.linkInline}function T(P,b){if(P.eatSpace())return null;var Y=P.next();return Y==="("||Y==="["?(b.f=b.inline=v(Y==="("?")":"]"),M.highlightFormatting&&(b.formatting="link-string"),b.linkHref=!0,C(b)):"error"}var y={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function v(P){return function(b,Y){var ee=b.next();if(ee===P){Y.f=Y.inline=x,M.highlightFormatting&&(Y.formatting="link-string");var le=C(Y);return Y.linkHref=!1,le}return b.match(y[P]),Y.linkHref=!0,C(Y)}}function N(P,b){return P.match(/^([^\]\\]|\\.)*\]:/,!1)?(b.f=B,P.next(),M.highlightFormatting&&(b.formatting="link"),b.linkText=!0,C(b)):s(P,b,x)}function B(P,b){if(P.match(/^\]:/,!0)){b.f=b.inline=O,M.highlightFormatting&&(b.formatting="link");var Y=C(b);return b.linkText=!1,Y}return P.match(/^([^\]\\]|\\.)+/,!0),G.linkText}function O(P,b){return P.eatSpace()?null:(P.match(/^[^\s]+/,!0),P.peek()===void 0?b.linkTitle=!0:P.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),b.f=b.inline=x,G.linkHref+" url")}var j={startState:function(){return{f:S,prevLine:{stream:null},thisLine:{stream:null},block:S,htmlState:null,indentation:0,inline:x,text:w,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(P){return{f:P.f,prevLine:P.prevLine,thisLine:P.thisLine,block:P.block,htmlState:P.htmlState&&ie.copyState(X,P.htmlState),indentation:P.indentation,localMode:P.localMode,localState:P.localMode?ie.copyState(P.localMode,P.localState):null,inline:P.inline,text:P.text,formatting:!1,linkText:P.linkText,linkTitle:P.linkTitle,linkHref:P.linkHref,code:P.code,em:P.em,strong:P.strong,strikethrough:P.strikethrough,emoji:P.emoji,header:P.header,setext:P.setext,hr:P.hr,taskList:P.taskList,list:P.list,listStack:P.listStack.slice(0),quote:P.quote,indentedCode:P.indentedCode,trailingSpace:P.trailingSpace,trailingSpaceNewLine:P.trailingSpaceNewLine,md_inside:P.md_inside,fencedEndRE:P.fencedEndRE}},token:function(P,b){if(b.formatting=!1,P!=b.thisLine.stream){if(b.header=0,b.hr=!1,P.match(/^\s*$/,!0))return _(b),null;if(b.prevLine=b.thisLine,b.thisLine={stream:P},b.taskList=!1,b.trailingSpace=0,b.trailingSpaceNewLine=!1,!b.localState&&(b.f=b.block,b.f!=L)){var Y=P.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(b.indentation=Y,b.indentationDiff=null,Y>0)return null}}return b.f(P,b)},innerMode:function(P){return P.block==L?{state:P.htmlState,mode:X}:P.localState?{state:P.localState,mode:P.localMode}:{state:P,mode:j}},indent:function(P,b,Y){return P.block==L&&X.indent?X.indent(P.htmlState,b,Y):P.localState&&P.localMode.indent?P.localMode.indent(P.localState,b,Y):ie.Pass},blankLine:_,getType:C,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),ie.defineMIME("text/markdown","markdown"),ie.defineMIME("text/x-markdown","markdown")})},nEHx:function(st,be,Q){"use strict";Q.d(be,"a",function(){return ie});var ie;(function($){$.DARK="dark",$.LIGHT="light",$.HIGH_CONTRAST="hc"})(ie||(ie={}))},nnTU:function(st,be,Q){"use strict";Q.d(be,"b",function(){return G}),Q.d(be,"a",function(){return W});var ie=Q("MI8n"),$=Q("JYp7"),M=Q("pmY6"),X=Q("24hK"),F=Q("746U"),U=Q("Cg/j");const G=Object(U.c)("commandService"),W=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ie.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(i,D){if(!i)throw new Error("invalid command");if(typeof i=="string"){if(!D)throw new Error("invalid command");return this.registerCommand({id:i,handler:D})}if(i.description){const u=[];for(let o of i.description.args)u.push(o.constraint);const f=i.handler;i.handler=function(o,...h){return Object(F.o)(h,u),f(o,...h)}}const{id:g}=i;let m=this._commands.get(g);m||(m=new X.a,this._commands.set(g,m));let p=m.unshift(i),l=Object(M.i)(()=>{p();const u=this._commands.get(g);(u==null?void 0:u.isEmpty())&&this._commands.delete(g)});return this._onDidRegisterCommand.fire(g),l}registerCommandAlias(i,D){return W.registerCommand(i,(g,...m)=>g.get(G).executeCommand(D,...m))}getCommand(i){const D=this._commands.get(i);return!D||D.isEmpty()?void 0:$.a.first(D)}getCommands(){const i=new Map;for(const D of this._commands.keys()){const g=this.getCommand(D);g&&i.set(D,g)}return i}};W.registerCommand("noop",()=>{})},osHv:function(st,be,Q){(function(ie){ie(Q("VrN/"))})(function(ie){"use strict";var $=ie.Pos;function M(o,h){return o.line-h.line||o.ch-h.ch}var X="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",F=X+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",U=new RegExp("<(/?)(["+X+"]["+F+"]*)","g");function G(o,h,s,a){this.line=h,this.ch=s,this.cm=o,this.text=o.getLine(h),this.min=a?Math.max(a.from,o.firstLine()):o.firstLine(),this.max=a?Math.min(a.to-1,o.lastLine()):o.lastLine()}function W(o,h){var s=o.cm.getTokenTypeAt($(o.line,h));return s&&/\btag\b/.test(s)}function i(o){return o.line>=o.max?void 0:(o.ch=0,o.text=o.cm.getLine(++o.line),!0)}function D(o){return o.line<=o.min?void 0:(o.text=o.cm.getLine(--o.line),o.ch=o.text.length,!0)}function g(o){for(;;){var h=o.text.indexOf(">",o.ch);if(h==-1){if(i(o))continue;return}if(!W(o,h+1)){o.ch=h+1;continue}var s=o.text.lastIndexOf("/",h),a=s>-1&&!/\S/.test(o.text.slice(s+1,h));return o.ch=h+1,a?"selfClose":"regular"}}function m(o){for(;;){var h=o.ch?o.text.lastIndexOf("<",o.ch-1):-1;if(h==-1){if(D(o))continue;return}if(!W(o,h+1)){o.ch=h;continue}U.lastIndex=h,o.ch=h;var s=U.exec(o.text);if(s&&s.index==h)return s}}function p(o){for(;;){U.lastIndex=o.ch;var h=U.exec(o.text);if(!h){if(i(o))continue;return}if(!W(o,h.index+1)){o.ch=h.index+1;continue}return o.ch=h.index+h[0].length,h}}function l(o){for(;;){var h=o.ch?o.text.lastIndexOf(">",o.ch-1):-1;if(h==-1){if(D(o))continue;return}if(!W(o,h+1)){o.ch=h;continue}var s=o.text.lastIndexOf("/",h),a=s>-1&&!/\S/.test(o.text.slice(s+1,h));return o.ch=h+1,a?"selfClose":"regular"}}function u(o,h){for(var s=[];;){var a=p(o),A,_=o.line,S=o.ch-(a?a[0].length:0);if(!a||!(A=g(o)))return;if(A=="selfClose")continue;if(a[1]){for(var L=s.length-1;L>=0;--L)if(s[L]==a[2]){s.length=L;break}if(L<0&&(!h||h==a[2]))return{tag:a[2],from:$(_,S),to:$(o.line,o.ch)}}else s.push(a[2])}}function f(o,h){for(var s=[];;){var a=l(o);if(!a)return;if(a=="selfClose"){m(o);continue}var A=o.line,_=o.ch,S=m(o);if(!S)return;if(S[1])s.push(S[2]);else{for(var L=s.length-1;L>=0;--L)if(s[L]==S[2]){s.length=L;break}if(L<0&&(!h||h==S[2]))return{tag:S[2],from:$(o.line,o.ch),to:$(A,_)}}}}ie.registerHelper("fold","xml",function(o,h){for(var s=new G(o,h.line,0);;){var a=p(s);if(!a||s.line!=h.line)return;var A=g(s);if(!A)return;if(!a[1]&&A!="selfClose"){var _=$(s.line,s.ch),S=u(s,a[2]);return S&&M(S.from,_)>0?{from:_,to:S.from}:null}}}),ie.findMatchingTag=function(o,h,s){var a=new G(o,h.line,h.ch,s);if(a.text.indexOf(">")==-1&&a.text.indexOf("<")==-1)return;var A=g(a),_=A&&$(a.line,a.ch),S=A&&m(a);if(!A||!S||M(a,h)>0)return;var L={from:$(a.line,a.ch),to:_,tag:S[2]};return A=="selfClose"?{open:L,close:null,at:"open"}:S[1]?{open:f(a,S[2]),close:L,at:"close"}:(a=new G(o,_.line,_.ch,s),{open:L,close:u(a,S[2]),at:"open"})},ie.findEnclosingTag=function(o,h,s,a){for(var A=new G(o,h.line,h.ch,s);;){var _=f(A,a);if(!_)break;var S=new G(o,h.line,h.ch,s),L=u(S,_.tag);if(L)return{open:_,close:L}}},ie.scanForClosingTag=function(o,h,s,a){var A=new G(o,h.line,h.ch,a?{from:0,to:a}:null);return u(A,s)}})},p5ED:function(st,be,Q){"use strict";var ie=Q("+L6B"),$=Q("2/Rp"),M=Q("5Dmo"),X=Q("3S7+"),F=Q("k1fw"),U=Q("9og8"),G=Q("tJVT"),W=Q("WmNS"),i=Q.n(W),D=Q("q1tI"),g=Q.n(D),m=Q("vHTk"),p=Q.n(m),l=Q("yEEn"),u=Q("ZW9T"),f=Q("1vsH"),o=Q("V0Rq"),h=Q("m3rI");be.a=function(s){var a,A,_,S,L,R,C,w=s.editOffice,x=w===void 0?"view":w,c=s.data,T=s.theme,y=s.type,v=s.filename,N=s.monacoEditor,B=s.className,O=s.style,j=s.close,P=s.onClose,b=s.hasMask,Y=s.disabledDownload,ee=Object(D.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),le=Object(G.a)(ee,2),ue=le[0],ke=le[1],Se=Object(D.useState)(""),Ce=Object(G.a)(Se,2),ce=Ce[0],pe=Ce[1],se=Object(D.useState)(),ae=Object(G.a)(se,2),Oe=ae[0],Te=ae[1],Ne=window.ENV==="build"?"/react/build":"",De=h.a.PROXY_SERVER||location.origin,We,Le=1024*1024,Be=10*Le,Ge=Object(D.useRef)();(a=c)!==null&&a!==void 0&&a.startsWith("/api")&&y!=="txt"&&(c=h.a.API_SERVER+c),y==="office"&&(We=Object(f.T)(c).filesize,We>Be&&(y="other")),v&&N&&(N.filename=v),Object(D.useEffect)(function(){var Ae,Ue,Ve=(Ae=document.cookie)===null||Ae===void 0||((Ue=Ae.replace(/\s/g,""))===null||Ue===void 0)?void 0:Ue.split(";");Ve==null||Ve.map(function(Ze){var $e=Ze.split("=");$e[0]==="_educoder_session"&&pe($e[1])})},[]),Object(D.useEffect)(function(){y==="office"&&oe()},[y,c]);var oe=function(){var Ae=Object(U.a)(i.a.mark(function Ue(){var Ve,Ze,$e;return i.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return console.log("data:",c),Ve=c,c.startsWith("http")||(Ve=location.origin+Ve),Ze=new URL(Ve).pathname.split("/").pop(),et.next=6,Object(o.V)({attachment_id:Ze});case 6:$e=et.sent,Te($e);case 8:case"end":return et.stop()}},Ue)}));return function(){return Ae.apply(this,arguments)}}(),ye=function(){if(c.startsWith("http")||c.startsWith("blob:")){we();return}Object(f.z)(v||"educoder",c,v)},we=function(){Object(f.x)(v||"educoder",decodeURIComponent(c))};return g.a.createElement("div",{style:Object(F.a)({},O||{}),className:"".concat(b&&p.a.bgBlack," ").concat(y?p.a.wrp:"hide")},j&&g.a.createElement("div",{className:p.a.close,ref:Ge},!Y&&g.a.createElement(X.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ge.current}},g.a.createElement("span",{onClick:we},g.a.createElement("i",{className:"icon-quxiaozhiding"}))),g.a.createElement(X.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ge.current}},g.a.createElement("span",{className:"",onClick:P},g.a.createElement("i",{className:"icon-guanbi1"})))),g.a.createElement("div",{className:"".concat(p.a[B]," ").concat(B," ").concat(p.a.monaco," ").concat(y==="txt"?"show":"hide")},y==="txt"&&g.a.createElement(u.b,N)),y==="audio"&&g.a.createElement("audio",{src:"".concat(((A=c)===null||A===void 0?void 0:A.indexOf("http://"))>-1||((_=c)===null||_===void 0?void 0:_.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),y==="video"&&g.a.createElement(g.a.Fragment,null,((S=c)===null||S===void 0?void 0:S.indexOf("http"))>-1?g.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):g.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),y==="office"&&Oe&&g.a.createElement("iframe",{src:"".concat(Ne,"/office.html?key=").concat(Oe.key,"&url=").concat(De+Oe.url,"&callbackUrl=").concat(De+Oe.callbackUrl,"&fileType=").concat(Oe.fileType,"&title=").concat(Oe.title,"&model=").concat(x,"&officeServer=").concat(h.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Y)}),y==="html"&&g.a.createElement("iframe",{src:c+"&disposition=inline"}),y==="pdf"&&g.a.createElement("iframe",{src:"".concat(Ne,"/js/pdfview/index.html?url=").concat(c,"&disabledDownload=").concat(!!Y)}),y==="image"&&g.a.createElement("img",{src:"".concat(((L=c)===null||L===void 0?void 0:L.indexOf("http://"))>-1||((R=c)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(C=c)!==null&&C!==void 0&&C.startsWith("/api")?"":"data:image/png;base64,").concat(c)}),y==="other"&&g.a.createElement("div",null,g.a.createElement($.a,{type:"primary",size:"large",onClick:ye},g.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),y==="download"&&g.a.createElement($.a,{type:"primary",size:"large",onClick:ye},g.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(st,be,Q){},pmY6:function(st,be,Q){"use strict";Q.d(be,"h",function(){return D}),Q.d(be,"g",function(){return m}),Q.d(be,"f",function(){return p}),Q.d(be,"e",function(){return l}),Q.d(be,"i",function(){return u}),Q.d(be,"b",function(){return f}),Q.d(be,"a",function(){return o}),Q.d(be,"d",function(){return h}),Q.d(be,"c",function(){return s});var ie=Q("C/vA"),$=Q("JYp7");const M=!1;let X=null;function F(a){X=a}if(M){const a="__is_disposable_tracked__";F(new class{trackDisposable(A){const _=new Error("Potentially leaked disposable").stack;setTimeout(()=>{A[a]||console.log(_)},3e3)}setParent(A,_){if(A&&A!==o.None)try{A[a]=!0}catch(S){}}markAsDisposed(A){if(A&&A!==o.None)try{A[a]=!0}catch(_){}}markAsSingleton(A){}})}function U(a){return X==null||X.trackDisposable(a),a}function G(a){X==null||X.markAsDisposed(a)}function W(a,A){X==null||X.setParent(a,A)}function i(a,A){if(!X)return;for(const _ of a)X.setParent(_,A)}function D(a){return X==null||X.markAsSingleton(a),a}class g extends Error{constructor(a){super(`Encountered errors while disposing of store. Errors: [${a.join(", ")}]`);this.errors=a}}function m(a){return typeof a.dispose=="function"&&a.dispose.length===0}function p(a){if($.a.is(a)){let A=[];for(const _ of a)if(_)try{_.dispose()}catch(S){A.push(S)}if(A.length===1)throw A[0];if(A.length>1)throw new g(A);return Array.isArray(a)?[]:a}else if(a)return a.dispose(),a}function l(...a){const A=u(()=>p(a));return i(a,A),A}function u(a){const A=U({dispose:Object(ie.a)(()=>{G(A),a()})});return A}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,U(this)}dispose(){if(this._isDisposed)return;G(this),this._isDisposed=!0,this.clear()}clear(){try{p(this._toDispose.values())}finally{this._toDispose.clear()}}add(a){if(!a)return a;if(a===this)throw new Error("Cannot register a disposable on itself!");return W(a,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(a),a}}f.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new f,U(this),W(this._store,this)}dispose(){G(this),this._store.dispose()}_register(a){if(a===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(a)}}o.None=Object.freeze({dispose(){}});class h{constructor(){this._isDisposed=!1,U(this)}get value(){return this._isDisposed?void 0:this._value}set value(a){var A;if(this._isDisposed||a===this._value)return;(A=this._value)===null||A===void 0||A.dispose(),a&&W(a,this),this._value=a}clear(){this.value=void 0}dispose(){var a;this._isDisposed=!0,G(this),(a=this._value)===null||a===void 0||a.dispose(),this._value=void 0}clearAndLeak(){const a=this._value;return this._value=void 0,a&&W(a,null),a}}class s{constructor(a){this.object=a}dispose(){}}},psGv:function(st,be,Q){var ie,$;(function(){var M;(function(){"use strict";var G=[,,function(g){function m(u){this.__parent=u,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=[]}m.prototype.clone_empty=function(){var u=new m(this.__parent);return u.set_indent(this.__indent_count,this.__alignment_count),u},m.prototype.item=function(u){return u<0?this.__items[this.__items.length+u]:this.__items[u]},m.prototype.has_match=function(u){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(u))return!0;return!1},m.prototype.set_indent=function(u,f){this.is_empty()&&(this.__indent_count=u||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var u=this.__parent.current_line;return u.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),u.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),u.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,u.__items[0]===" "&&(u.__items.splice(0,1),u.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(u){this.__items.push(u);var f=u.lastIndexOf(` `);f!==-1?this.__character_count=u.length-f:this.__character_count+=u.length},m.prototype.pop=function(){var u=null;return this.is_empty()||(u=this.__items.pop(),this.__character_count-=u.length),u},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var u="";return this.is_empty()?this.__parent.indent_empty_lines&&(u=this.__parent.get_indent_string(this.__indent_count)):(u=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),u+=this.__items.join("")),u};function p(u,f){this.__cache=[""],this.__indent_size=u.indent_size,this.__indent_string=u.indent_char,u.indent_with_tabs||(this.__indent_string=new Array(u.indent_size+1).join(u.indent_char)),f=f||"",u.indent_level>0&&(f=new Array(u.indent_level+1).join(this.__indent_string)),this.__base_string=f,this.__base_string_length=f.length}p.prototype.get_indent_size=function(u,f){var o=this.__base_string_length;return f=f||0,u<0&&(o=0),o+=u*this.__indent_size,o+=f,o},p.prototype.get_indent_string=function(u,f){var o=this.__base_string;return f=f||0,u<0&&(u=0,o=""),f+=u*this.__indent_size,this.__ensure_cache(f),o+=this.__cache[f],o},p.prototype.__ensure_cache=function(u){for(;u>=this.__cache.length;)this.__add_column()},p.prototype.__add_column=function(){var u=this.__cache.length,f=0,o="";this.__indent_size&&u>=this.__indent_size&&(f=Math.floor(u/this.__indent_size),u-=f*this.__indent_size,o=new Array(f+1).join(this.__indent_string)),u&&(o+=new Array(u+1).join(" ")),this.__cache.push(o)};function l(u,f){this.__indent_cache=new p(u,f),this.raw=!1,this._end_with_newline=u.end_with_newline,this.indent_size=u.indent_size,this.wrap_line_length=u.wrap_line_length,this.indent_empty_lines=u.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(u,f){return this.__indent_cache.get_indent_string(u,f)},l.prototype.get_indent_size=function(u,f){return this.__indent_cache.get_indent_size(u,f)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(u){return this.is_empty()||!u&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(u){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 o=this.__lines.join(` `);return u!==` @@ -426,7 +426,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho trackSwitch: `+O+` contiguous: `+b+` accurateTimeOffset: `+R+` - timeOffset: `+y);var le=new G.TransmuxConfig(a,A,s,L,w);this.configureTransmuxer(le)}if(this.frag=_,this.part=S,T)T.postMessage({cmd:"demux",data:h,decryptdata:v,chunkMeta:C,state:ee},h instanceof ArrayBuffer?[h]:[]);else if(c){var ue=c.push(h,v,C,ee);Object(G.isPromise)(ue)?ue.then(function(ke){x.handleTransmuxComplete(ke)}):this.handleTransmuxComplete(ue)}},f.flush=function(h){var s=this;h.transmuxing.start=self.performance.now();var a=this.transmuxer,A=this.worker;if(A)A.postMessage({cmd:"flush",chunkMeta:h});else if(a){var _=a.flush(h);Object(G.isPromise)(_)?_.then(function(S){s.handleFlushResult(S,h)}):this.handleFlushResult(_,h)}},f.handleFlushResult=function(h,s){var a=this;h.forEach(function(A){a.handleTransmuxComplete(A)}),this.onFlush(s)},f.onWorkerMessage=function(h){var s=h.data,a=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,a.trigger(s.event,s.data);break}}},f.configureTransmuxer=function(h){var s=this.worker,a=this.transmuxer;s?s.postMessage({cmd:"configure",config:h}):a&&a.configure(h)},f.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},u}()},"./src/demux/transmuxer-worker.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return i});var X=M("./src/demux/transmuxer.ts"),F=M("./src/events.ts"),U=M("./src/utils/logger.ts"),G=M("./node_modules/eventemitter3/index.js"),W=M.n(G);function i(l){var u=new G.EventEmitter,f=function(h,s){l.postMessage({event:h,data:s})};u.on(F.Events.FRAG_DECRYPTED,f),u.on(F.Events.ERROR,f),l.addEventListener("message",function(o){var h=o.data;switch(h.cmd){case"init":{var s=JSON.parse(h.config);l.transmuxer=new X.default(u,h.typeSupported,s,h.vendor,h.id),Object(U.enableLogs)(s.debug),f("init",null);break}case"configure":{l.transmuxer.configure(h.config);break}case"demux":{var a=l.transmuxer.push(h.data,h.decryptdata,h.chunkMeta,h.state);Object(X.isPromise)(a)?a.then(function(S){D(l,S)}):D(l,a);break}case"flush":{var A=h.chunkMeta,_=l.transmuxer.flush(A);Object(X.isPromise)(_)?_.then(function(S){m(l,S,A)}):m(l,_,A);break}default:break}})}function D(l,u){if(p(u.remuxResult))return;var f=[],o=u.remuxResult,h=o.audio,s=o.video;h&&g(f,h),s&&g(f,s),l.postMessage({event:"transmuxComplete",data:u},f)}function g(l,u){u.data1&&l.push(u.data1.buffer),u.data2&&l.push(u.data2.buffer)}function m(l,u,f){u.forEach(function(o){D(l,o)}),l.postMessage({event:"flush",data:f})}function p(l){return!l.audio&&!l.video&&!l.text&&!l.id3&&!l.initSegment}},"./src/demux/transmuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return s}),M.d($,"isPromise",function(){return _}),M.d($,"TransmuxConfig",function(){return S}),M.d($,"TransmuxState",function(){return L});var X=M("./src/events.ts"),F=M("./src/errors.ts"),U=M("./src/crypt/decrypter.ts"),G=M("./src/demux/aacdemuxer.ts"),W=M("./src/demux/mp4demuxer.ts"),i=M("./src/demux/tsdemuxer.ts"),D=M("./src/demux/mp3demuxer.ts"),g=M("./src/remux/mp4-remuxer.ts"),m=M("./src/remux/passthrough-remuxer.ts"),p=M("./src/demux/chunk-cache.ts"),l=M("./src/utils/mp4-tools.ts"),u=M("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(R){u.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var o=[{demux:i.default,remux:g.default},{demux:W.default,remux:m.default},{demux:G.default,remux:g.default},{demux:D.default,remux:g.default}],h=1024;o.forEach(function(R){var C=R.demux;h=Math.max(h,C.minProbeByteLength)});var s=function(){function R(w,x,c,T,y){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 p.default,this.observer=w,this.typeSupported=x,this.config=c,this.vendor=T,this.id=y}var C=R.prototype;return C.configure=function(x){this.transmuxConfig=x,this.decrypter&&this.decrypter.reset()},C.push=function(x,c,T,y){var v=this,N=T.transmuxing;N.executeStart=f();var B=new Uint8Array(x),O=this.cache,j=this.config,P=this.currentTransmuxState,b=this.transmuxConfig;y&&(this.currentTransmuxState=y);var Y=a(B,c);if(Y&&Y.method==="AES-128"){var ee=this.getDecrypter();if(j.enableSoftwareAES){var le=ee.softwareDecrypt(B,Y.key.buffer,Y.iv.buffer);if(!le)return N.executeEnd=f(),A(T);B=new Uint8Array(le)}else return this.decryptionPromise=ee.webCryptoDecrypt(B,Y.key.buffer,Y.iv.buffer).then(function(Be){var Ge=v.push(Be,null,T);return v.decryptionPromise=null,Ge}),this.decryptionPromise}var ue=y||P,ke=ue.contiguous,Se=ue.discontinuity,Ce=ue.trackSwitch,ce=ue.accurateTimeOffset,pe=ue.timeOffset,se=b.audioCodec,ae=b.videoCodec,Oe=b.defaultInitPts,Te=b.duration,Ne=b.initSegmentData;if((Se||Ce)&&this.resetInitSegment(Ne,se,ae,Te),Se&&this.resetInitialTimestamp(Oe),ke||this.resetContiguity(),this.needsProbing(B,Se,Ce)){if(O.dataLength){var De=O.flush();B=Object(l.appendUint8Array)(De,B)}this.configureTransmuxer(B,b)}var We=this.transmux(B,Y,pe,ce,T),Le=this.currentTransmuxState;return Le.contiguous=!0,Le.discontinuity=!1,Le.trackSwitch=!1,N.executeEnd=f(),We},C.flush=function(x){var c=this,T=x.transmuxing;T.executeStart=f();var y=this.decrypter,v=this.cache,N=this.currentTransmuxState,B=this.decryptionPromise;if(B)return B.then(function(){return c.flush(x)});var O=[],j=N.timeOffset;if(y){var P=y.flush();P&&O.push(this.push(P,null,x))}var b=v.dataLength;v.reset();var Y=this.demuxer,ee=this.remuxer;if(!Y||!ee)return b>=h&&this.observer.emit(X.Events.ERROR,X.Events.ERROR,{type:F.ErrorTypes.MEDIA_ERROR,details:F.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),T.executeEnd=f(),[A(x)];var le=Y.flush(j);return _(le)?le.then(function(ue){return c.flushRemux(O,ue,x),O}):(this.flushRemux(O,le,x),O)},C.flushRemux=function(x,c,T){var y=c.audioTrack,v=c.avcTrack,N=c.id3Track,B=c.textTrack,O=this.currentTransmuxState,j=O.accurateTimeOffset,P=O.timeOffset;u.logger.log("[transmuxer.ts]: Flushed fragment "+T.sn+(T.part>-1?" p: "+T.part:"")+" of level "+T.level);var b=this.remuxer.remux(y,v,N,B,P,j,!0,this.id);x.push({remuxResult:b,chunkMeta:T}),T.transmuxing.executeEnd=f()},C.resetInitialTimestamp=function(x){var c=this.demuxer,T=this.remuxer;if(!c||!T)return;c.resetTimeStamp(x),T.resetTimeStamp(x)},C.resetContiguity=function(){var x=this.demuxer,c=this.remuxer;if(!x||!c)return;x.resetContiguity(),c.resetNextTimestamp()},C.resetInitSegment=function(x,c,T,y){var v=this.demuxer,N=this.remuxer;if(!v||!N)return;v.resetInitSegment(c,T,y),N.resetInitSegment(x,c,T)},C.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},C.transmux=function(x,c,T,y,v){var N;return c&&c.method==="SAMPLE-AES"?N=this.transmuxSampleAes(x,c,T,y,v):N=this.transmuxUnencrypted(x,T,y,v),N},C.transmuxUnencrypted=function(x,c,T,y){var v=this.demuxer.demux(x,c,!1,!this.config.progressive),N=v.audioTrack,B=v.avcTrack,O=v.id3Track,j=v.textTrack,P=this.remuxer.remux(N,B,O,j,c,T,!1,this.id);return{remuxResult:P,chunkMeta:y}},C.transmuxSampleAes=function(x,c,T,y,v){var N=this;return this.demuxer.demuxSampleAes(x,c,T).then(function(B){var O=N.remuxer.remux(B.audioTrack,B.avcTrack,B.id3Track,B.textTrack,T,y,!1,N.id);return{remuxResult:O,chunkMeta:v}})},C.configureTransmuxer=function(x,c){for(var T=this.config,y=this.observer,v=this.typeSupported,N=this.vendor,B=c.audioCodec,O=c.defaultInitPts,j=c.duration,P=c.initSegmentData,b=c.videoCodec,Y,ee=0,le=o.length;ee0&&C!=null&&C.key!=null&&C.iv!==null&&C.method!=null&&(w=C),w}var A=function(C){return{remuxResult:{},chunkMeta:C}};function _(R){return"then"in R&&R.then instanceof Function}var S=function(C,w,x,c,T){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=w,this.initSegmentData=x,this.duration=c,this.defaultInitPts=T},L=function(C,w,x,c,T){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=w,this.accurateTimeOffset=x,this.trackSwitch=c,this.timeOffset=T}},"./src/demux/tsdemuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"discardEPB",function(){return A});var X=M("./src/demux/adts.ts"),F=M("./src/demux/mpegaudio.ts"),U=M("./src/demux/exp-golomb.ts"),G=M("./src/demux/id3.ts"),W=M("./src/demux/sample-aes.ts"),i=M("./src/events.ts"),D=M("./src/utils/mp4-tools.ts"),g=M("./src/utils/logger.ts"),m=M("./src/errors.ts"),p={video:1,audio:2,id3:3,text:4},l=function(){function _(L,R,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=L,this.config=R,this.typeSupported=C}_.probe=function(R){var C=_.syncOffset(R);return C<0?!1:(C&&g.logger.warn("MPEG2-TS detected but first sync word found @ offset "+C+", junk ahead ?"),!0)},_.syncOffset=function(R){for(var C=Math.min(1e3,R.length-3*188),w=0;w>4,se=void 0;if(pe>1){if(se=Se+5+R[Se+4],se===Se+188)continue}else se=Se+4;switch(ce){case N:Ce&&(B&&(c=h(B))&&this.parseAVCPES(c,!1),B={data:[],size:0}),B&&(B.data.push(R.subarray(se,Se+188)),B.size+=Se+188-se);break;case O:Ce&&(P&&(c=h(P))&&(y.isAAC?this.parseAACPES(c):this.parseMPEGPES(c)),P={data:[],size:0}),P&&(P.data.push(R.subarray(se,Se+188)),P.size+=Se+188-se);break;case j:Ce&&(b&&(c=h(b))&&this.parseID3PES(c),b={data:[],size:0}),b&&(b.data.push(R.subarray(se,Se+188)),b.size+=Se+188-se);break;case 0:Ce&&(se+=R[se]+1),le=this._pmtId=f(R,se);break;case le:{Ce&&(se+=R[se]+1);var ae=o(R,se,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,w);N=ae.avc,N>0&&(T.pid=N),O=ae.audio,O>0&&(y.pid=O,y.isAAC=ae.isAAC),j=ae.id3,j>0&&(v.pid=j),Y&&!ee&&(g.logger.log("reparse from beginning"),Y=!1,Se=ke-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:Y=!0;break}}else this.observer.emit(i.Events.ERROR,i.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});T.pesData=B,y.pesData=P,v.pesData=b;var Oe={audioTrack:y,avcTrack:T,id3Track:v,textTrack:this._txtTrack};return x&&this.extractRemainingSamples(Oe),Oe},S.flush=function(){var R=this.remainderData;this.remainderData=null;var C;return R?C=this.demux(R,-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},S.extractRemainingSamples=function(R){var C=R.audioTrack,w=R.avcTrack,x=R.id3Track,c=w.pesData,T=C.pesData,y=x.pesData,v;c&&(v=h(c))?(this.parseAVCPES(v,!0),w.pesData=null):w.pesData=c,T&&(v=h(T))?(C.isAAC?this.parseAACPES(v):this.parseMPEGPES(v),C.pesData=null):(T!=null&&T.size&&g.logger.log("last AAC PES packet truncated,might overlap between fragments"),C.pesData=T),y&&(v=h(y))?(this.parseID3PES(v),x.pesData=null):x.pesData=y},S.demuxSampleAes=function(R,C,w){var x=this.demux(R,w,!0,!this.config.progressive),c=this.sampleAes=new W.default(this.observer,this.config,C);return this.decrypt(x,c)},S.decrypt=function(R,C){return new Promise(function(w){var x=R.audioTrack,c=R.avcTrack;x.samples&&x.isAAC?C.decryptAacSamples(x.samples,0,function(){c.samples?C.decryptAvcSamples(c.samples,0,0,function(){w(R)}):w(R)}):c.samples&&C.decryptAvcSamples(c.samples,0,0,function(){w(R)})})},S.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},S.parseAVCPES=function(R,C){var w=this,x=this._avcTrack,c=this.parseAVCNALu(R.data),T=!1,y=this.avcSample,v,N=!1;R.data=null,y&&c.length&&!x.audFound&&(s(y,x),y=this.avcSample=u(!1,R.pts,R.dts,"")),c.forEach(function(B){switch(B.type){case 1:{v=!0,y||(y=w.avcSample=u(!0,R.pts,R.dts,"")),T&&(y.debug+="NDR "),y.frame=!0;var O=B.data;if(N&&O.length>4){var j=new U.default(O).readSliceType();(j===2||j===4||j===7||j===9)&&(y.key=!0)}break}case 5:v=!0,y||(y=w.avcSample=u(!0,R.pts,R.dts,"")),T&&(y.debug+="IDR "),y.key=!0,y.frame=!0;break;case 6:{v=!0,T&&y&&(y.debug+="SEI ");var P=new U.default(A(B.data));P.readUByte();for(var b=0,Y=0,ee=!1,le=0;!ee&&P.bytesAvailable>1;){b=0;do le=P.readUByte(),b+=le;while(le===255);Y=0;do le=P.readUByte(),Y+=le;while(le===255);if(b===4&&P.bytesAvailable!==0){ee=!0;var ue=P.readUByte();if(ue===181){var ke=P.readUShort();if(ke===49){var Se=P.readUInt();if(Se===1195456820){var Ce=P.readUByte();if(Ce===3){for(var ce=P.readUByte(),pe=P.readUByte(),se=31&ce,ae=[ce,pe],Oe=0;Oe16){for(var Te=[],Ne=0;Ne<16;Ne++)Te.push(P.readUByte().toString(16)),(Ne===3||Ne===5||Ne===7||Ne===9)&&Te.push("-");for(var De=Y-16,We=new Uint8Array(De),Le=0;Le=0){var P={data:R.subarray(O,y-x-1),type:j};T.push(P)}else{var b=this.getLastNalUnit();if(b&&(c&&y<=4-c&&(b.state&&(b.data=b.data.subarray(0,b.data.byteLength-c))),N=y-x-1,N>0)){var Y=new Uint8Array(b.data.byteLength+N);Y.set(b.data,0),Y.set(R.subarray(0,N),b.data.byteLength),b.data=Y,b.state=0}}y=0&&x>=0){var ee={data:R.subarray(O,C),type:j,state:x};T.push(ee)}if(T.length===0){var le=this.getLastNalUnit();if(le){var ue=new Uint8Array(le.data.byteLength+R.byteLength);ue.set(le.data,0),ue.set(R,le.data.byteLength),le.data=ue}}return w.naluState=x,T},S.parseAACPES=function(R){var C=0,w=this._audioTrack,x=this.aacOverFlow,c=R.data;if(x){this.aacOverFlow=null;var T=x.sample.unit.byteLength,y=Math.min(x.missing,T),v=T-y;x.sample.unit.set(c.subarray(0,y),v),w.samples.push(x.sample),C=x.missing}var N,B;for(N=C,B=c.length;N1;){var T=new Uint8Array(c[0].length+c[1].length);T.set(c[0]),T.set(c[1],c[0].length),c[0]=T,c.splice(1,1)}L=c[0];var y=(L[0]<<16)+(L[1]<<8)+L[2];if(y===1){if(R=(L[4]<<8)+L[5],R&&R>_.size-6)return null;var v=L[7];v&192&&(w=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,v&64?(x=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,w-x>60*9e4&&(g.logger.warn(Math.round((w-x)/9e4)+"s delta between PTS and DTS, align them"),w=x)):x=w),C=L[8];var N=C+9;if(_.size<=N)return null;_.size-=N;for(var B=new Uint8Array(_.size),O=0,j=c.length;OP){N-=P;continue}else L=L.subarray(N),P-=N,N=0;B.set(L,S),S+=P}return R&&(R-=C+3),{data:B,pts:w,dts:x,len:R}}return null}function s(_,S){if(_.units.length&&_.frame){if(_.pts===void 0){var L=S.samples,R=L.length;if(R){var C=L[R-1];_.pts=C.pts,_.dts=C.dts}else{S.dropped++;return}}S.samples.push(_)}_.debug.length&&g.logger.log(_.pts+"/"+_.dts+":"+_.debug)}function a(_,S){var L=_.length;if(L>0){if(S.pts>=_[L-1].pts)_.push(S);else for(var R=L-1;R>=0;R--)if(S.pts<_[R].pts){_.splice(R,0,S);break}}else _.push(S)}function A(_){for(var S=_.byteLength,L=[],R=1;Rw)return c;return 0}},{key:"maxAutoLevel",get:function(){var C=this.levels,w=this.autoLevelCapping,x;return w===-1&&C&&C.length?x=C.length-1:x=w,x}},{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 w=this.audioTrackController;w&&(w.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 w=this.subtitleTrackController;w&&(w.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 w=this.subtitleTrackController;w&&(w.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 h.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return S.defaultConfig?S.defaultConfig:u.hlsDefaultConfig},set:function(C){S.defaultConfig=C}}]),S}();_.defaultConfig=void 0},"./src/is-supported.ts":function(ie,$,M){"use strict";M.r($),M.d($,"isSupported",function(){return U}),M.d($,"changeTypeSupported",function(){return G});var X=M("./src/utils/mediasource-helper.ts");function F(){return self.SourceBuffer||self.WebKitSourceBuffer}function U(){var W=Object(X.getMediaSource)();if(!W)return!1;var i=F(),D=W&&typeof W.isTypeSupported=="function"&&W.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),g=!i||i.prototype&&typeof i.prototype.appendBuffer=="function"&&typeof i.prototype.remove=="function";return!!D&&!!g}function G(){var W,i=F();return typeof(i==null||((W=i.prototype)===null||W===void 0)?void 0:W.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return l}),M.d($,"LoadError",function(){return f});var X=M("./src/polyfills/number.ts"),F=M("./src/errors.ts");function U(o,h){o.prototype=Object.create(h.prototype),o.prototype.constructor=o,g(o,h)}function G(o){var h=typeof Map=="function"?new Map:void 0;return G=function(a){if(a===null||!D(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof h!="undefined"){if(h.has(a))return h.get(a);h.set(a,A)}function A(){return W(a,arguments,m(this).constructor)}return A.prototype=Object.create(a.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),g(A,a)},G(o)}function W(o,h,s){return i()?W=Reflect.construct:W=function(A,_,S){var L=[null];L.push.apply(L,_);var R=Function.bind.apply(A,L),C=new R;return S&&g(C,S.prototype),C},W.apply(null,arguments)}function i(){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(o){return!1}}function D(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function g(o,h){return g=Object.setPrototypeOf||function(a,A){return a.__proto__=A,a},g(o,h)}function m(o){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},m(o)}var p=Math.pow(2,17),l=function(){function o(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var h=o.prototype;return h.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},h.abort=function(){this.loader&&this.loader.abort()},h.load=function(a,A){var _=this,S=a.url;if(!S)return Promise.reject(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,networkDetails:null},"Fragment does not have a "+(S?"part list":"url")));this.abort();var L=this.config,R=L.fLoader,C=L.loader;return new Promise(function(w,x){_.loader&&_.loader.destroy();var c=_.loader=a.loader=R?new R(L):new C(L),T=u(a),y={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:p};a.stats=c.stats,c.load(T,y,{onSuccess:function(N,B,O,j){_.resetLoader(a,c),w({frag:a,part:null,payload:N.data,networkDetails:j})},onError:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,response:N,networkDetails:O}))},onAbort:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,networkDetails:O}))},onTimeout:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,networkDetails:O}))},onProgress:function(N,B,O,j){A&&A({frag:a,part:null,payload:O,networkDetails:j})}})})},h.loadPart=function(a,A,_){var S=this;this.abort();var L=this.config,R=L.fLoader,C=L.loader;return new Promise(function(w,x){S.loader&&S.loader.destroy();var c=S.loader=a.loader=R?new R(L):new C(L),T=u(a,A),y={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:p};A.stats=c.stats,c.load(T,y,{onSuccess:function(N,B,O,j){S.resetLoader(a,c),S.updateStatsFromPart(a,A);var P={frag:a,part:A,payload:N.data,networkDetails:j};_(P),w(P)},onError:function(N,B,O){S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,part:A,response:N,networkDetails:O}))},onAbort:function(N,B,O){a.stats.aborted=A.stats.aborted,S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,part:A,networkDetails:O}))},onTimeout:function(N,B,O){S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,part:A,networkDetails:O}))}})})},h.updateStatsFromPart=function(a,A){var _=a.stats,S=A.stats,L=S.total;if(_.loaded+=S.loaded,L){var R=Math.round(a.duration/A.duration),C=Math.min(Math.round(_.loaded/L),R),w=R-C,x=w*Math.round(_.loaded/C);_.total=_.loaded+x}else _.total=Math.max(_.loaded,_.total);var c=_.loading,T=S.loading;c.start?c.first+=T.first-T.start:(c.start=T.start,c.first=T.first),c.end=T.end},h.resetLoader=function(a,A){a.loader=null,this.loader===A&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),A.destroy()},o}();function u(o,h){h===void 0&&(h=null);var s=h||o,a={frag:o,part:h,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},A=s.byteRangeStartOffset,_=s.byteRangeEndOffset;return Object(X.isFiniteNumber)(A)&&Object(X.isFiniteNumber)(_)&&(a.rangeStart=A,a.rangeEnd=_),a}var f=function(o){U(h,o);function h(s){for(var a,A=arguments.length,_=new Array(A>1?A-1:0),S=1;S>8*(15-L)&255;return S},a.setDecryptDataFromLevelKey=function(_,S){var L=_;return(_==null?void 0:_.method)==="AES-128"&&_.uri&&!_.iv&&(L=W.LevelKey.fromURI(_.uri),L.method=_.method,L.iv=this.createInitializationVector(S),L.keyFormat="identity"),L},a.setElementaryStreamInfo=function(_,S,L,R,C,w){w===void 0&&(w=!1);var x=this.elementaryStreams,c=x[_];if(!c){x[_]={startPTS:S,endPTS:L,startDTS:R,endDTS:C,partial:w};return}c.startPTS=Math.min(c.startPTS,S),c.endPTS=Math.max(c.endPTS,L),c.startDTS=Math.min(c.startDTS,R),c.endDTS=Math.max(c.endDTS,C)},a.clearElementaryStreamInfo=function(){var _=this.elementaryStreams;_[l.AUDIO]=null,_[l.VIDEO]=null,_[l.AUDIOVIDEO]=null},p(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var _=this.sn;typeof _!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&G.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),_=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,_)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(X.isFiniteNumber)(this.programDateTime))return null;var _=Object(X.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+_*1e3}},{key:"encrypted",get:function(){var _;return!!((_=this.decryptdata)!==null&&_!==void 0&&_.keyFormat&&this.decryptdata.uri)}}]),s}(u),o=function(h){D(s,h);function s(a,A,_,S,L){var R;R=h.call(this,_)||this,R.fragOffset=0,R.duration=0,R.gap=!1,R.independent=!1,R.relurl=void 0,R.fragment=void 0,R.index=void 0,R.stats=new i.LoadStats,R.duration=a.decimalFloatingPoint("DURATION"),R.gap=a.bool("GAP"),R.independent=a.bool("INDEPENDENT"),R.relurl=a.enumeratedString("URI"),R.fragment=A,R.index=S;var C=a.enumeratedString("BYTERANGE");return C&&R.setByteRange(C,L),L&&(R.fragOffset=L.fragOffset+L.duration),R}return p(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 A=this.elementaryStreams;return!!(A.audio||A.video||A.audiovideo)}}]),s}(u)},"./src/loader/key-loader.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return G});var X=M("./src/events.ts"),F=M("./src/errors.ts"),U=M("./src/utils/logger.ts"),G=function(){function W(D){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=D,this._registerListeners()}var i=W.prototype;return i._registerListeners=function(){this.hls.on(X.Events.KEY_LOADING,this.onKeyLoading,this)},i._unregisterListeners=function(){this.hls.off(X.Events.KEY_LOADING,this.onKeyLoading)},i.destroy=function(){this._unregisterListeners();for(var g in this.loaders){var m=this.loaders[g];m&&m.destroy()}this.loaders={}},i.onKeyLoading=function(g,m){var p=m.frag,l=p.type,u=this.loaders[l];if(!p.decryptdata){U.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=p.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var o=this.hls.config;if(u&&(U.logger.warn("abort previous key loader for type:"+l),u.abort()),!f){U.logger.warn("key uri is falsy");return}var h=o.loader,s=p.loader=this.loaders[l]=new h(o);this.decrypturl=f,this.decryptkey=null;var a={url:f,frag:p,responseType:"arraybuffer"},A={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout,highWaterMark:0},_={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(a,A,_)}else this.decryptkey&&(p.decryptdata.key=this.decryptkey,this.hls.trigger(X.Events.KEY_LOADED,{frag:p}))},i.loadsuccess=function(g,m,p){var l=p.frag;if(!l.decryptdata){U.logger.error("after key load, decryptdata unset");return}this.decryptkey=l.decryptdata.key=new Uint8Array(g.data),l.loader=null,delete this.loaders[l.type],this.hls.trigger(X.Events.KEY_LOADED,{frag:l})},i.loaderror=function(g,m){var p=m.frag,l=p.loader;l&&l.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:p,response:g})},i.loadtimeout=function(g,m){var p=m.frag,l=p.loader;l&&l.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:p})},W}()},"./src/loader/level-details.ts":function(ie,$,M){"use strict";M.r($),M.d($,"LevelDetails",function(){return W});var X=M("./src/polyfills/number.ts");function F(i,D){for(var g=0;gm.endSN||p>0||p===0&&l>0,this.updated||this.advanced?this.misses=Math.floor(m.misses*.6):this.misses=m.misses+1,this.availabilityDelay=m.availabilityDelay},U(i,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(X.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||G}},{key:"drift",get:function(){var m=this.driftEndTime-this.driftStartTime;if(m>0){var p=this.driftEnd-this.driftStart;return p*1e3/m}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var m;return(m=this.fragments)!==null&&m!==void 0&&m.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 m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),i}()},"./src/loader/level-key.ts":function(ie,$,M){"use strict";M.r($),M.d($,"LevelKey",function(){return W});var X=M("./node_modules/url-toolkit/src/url-toolkit.js"),F=M.n(X);function U(i,D){for(var g=0;g2){var x=w.shift()+".";return x+=parseInt(w.shift()).toString(16),x+=("000"+parseInt(w.shift()).toString(16)).substr(-4),x}return C},L.resolve=function(C,w){return F.buildAbsoluteURL(w,C,{alwaysNormalize:!0})},L.parseMasterPlaylist=function(C,w){var x=[],c={},T=!1;p.lastIndex=0;for(var y;(y=p.exec(C))!=null;)if(y[1]){var v=new D.AttrList(y[1]),N={attrs:v,bitrate:v.decimalInteger("AVERAGE-BANDWIDTH")||v.decimalInteger("BANDWIDTH"),name:v.NAME,url:L.resolve(y[2],w)},B=v.decimalResolution("RESOLUTION");B&&(N.width=B.width,N.height=B.height),a((v.CODECS||"").split(/[ ,]+/).filter(function(j){return j}),N),N.videoCodec&&N.videoCodec.indexOf("avc1")!==-1&&(N.videoCodec=L.convertAVC1ToAVCOTI(N.videoCodec)),x.push(N)}else if(y[3]){var O=new D.AttrList(y[3]);O["DATA-ID"]&&(T=!0,c[O["DATA-ID"]]=O)}return{levels:x,sessionData:T?c:null}},L.parseMasterPlaylistMedia=function(C,w,x,c){c===void 0&&(c=[]);var T,y=[],v=0;for(l.lastIndex=0;(T=l.exec(C))!==null;){var N=new D.AttrList(T[1]);if(N.TYPE===x){var B={attrs:N,bitrate:0,id:v++,groupId:N["GROUP-ID"],instreamId:N["INSTREAM-ID"],name:N.NAME||N.LANGUAGE||"",type:x,default:N.bool("DEFAULT"),autoselect:N.bool("AUTOSELECT"),forced:N.bool("FORCED"),lang:N.LANGUAGE,url:N.URI?L.resolve(N.URI,w):""};if(c.length){var O=L.findGroup(c,B.groupId)||c[0];A(B,O,"audioCodec"),A(B,O,"textCodec")}y.push(B)}}return y},L.parseLevelPlaylist=function(C,w,x,c,T){var y=new W.LevelDetails(w),v=y.fragments,N=null,B=0,O=0,j=0,P=0,b=null,Y=new G.Fragment(c,w),ee,le,ue,ke=-1,Se=!1;for(u.lastIndex=0,y.m3u8=C;(ee=u.exec(C))!==null;){Se&&(Se=!1,Y=new G.Fragment(c,w),Y.start=j,Y.sn=B,Y.cc=P,Y.level=x,N&&(Y.initSegment=N,Y.rawProgramDateTime=N.rawProgramDateTime));var Ce=ee[1];if(Ce){Y.duration=parseFloat(Ce);var ce=(" "+ee[2]).slice(1);Y.title=ce||null,Y.tagList.push(ce?["INF",Ce,ce]:["INF",Ce])}else if(ee[3])Object(X.isFiniteNumber)(Y.duration)&&(Y.start=j,ue&&(Y.levelkey=ue),Y.sn=B,Y.level=x,Y.cc=P,Y.urlId=T,v.push(Y),Y.relurl=(" "+ee[3]).slice(1),S(Y,b),b=Y,j+=Y.duration,B++,O=0,Se=!0);else if(ee[4]){var pe=(" "+ee[4]).slice(1);b?Y.setByteRange(pe,b):Y.setByteRange(pe)}else if(ee[5])Y.rawProgramDateTime=(" "+ee[5]).slice(1),Y.tagList.push(["PROGRAM-DATE-TIME",Y.rawProgramDateTime]),ke===-1&&(ke=v.length);else{if(ee=ee[0].match(f),!ee){g.logger.warn("No matches on slow regex match for level playlist!");continue}for(le=1;le-1){g.logger.warn("Keyformat "+Ue+" is not supported from the manifest");continue}else if(Ue!=="identity")continue;Ge&&(ue=i.LevelKey.fromURL(w,oe),oe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Ge)>=0&&(ue.method=Ge,ue.keyFormat=Ue,Ae&&(ue.keyID=Ae),we&&(ue.keyFormatVersions=we),ue.iv=ye));break}case"START":{var Ze=new D.AttrList(ae),$e=Ze.decimalFloatingPoint("TIME-OFFSET");Object(X.isFiniteNumber)($e)&&(y.startTimeOffset=$e);break}case"MAP":{var tt=new D.AttrList(ae);Y.relurl=tt.URI,tt.BYTERANGE&&Y.setByteRange(tt.BYTERANGE),Y.level=x,Y.sn="initSegment",ue&&(Y.levelkey=ue),Y.initSegment=null,N=Y,Se=!0;break}case"SERVER-CONTROL":{var et=new D.AttrList(ae);y.canBlockReload=et.bool("CAN-BLOCK-RELOAD"),y.canSkipUntil=et.optionalFloat("CAN-SKIP-UNTIL",0),y.canSkipDateRanges=y.canSkipUntil>0&&et.bool("CAN-SKIP-DATERANGES"),y.partHoldBack=et.optionalFloat("PART-HOLD-BACK",0),y.holdBack=et.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Je=new D.AttrList(ae);y.partTarget=Je.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Me=y.partList;Me||(Me=y.partList=[]);var ut=O>0?Me[Me.length-1]:void 0,nt=O++,Fe=new G.Part(new D.AttrList(ae),Y,w,nt,ut);Me.push(Fe),Y.duration+=Fe.duration;break}case"PRELOAD-HINT":{var je=new D.AttrList(ae);y.preloadHint=je;break}case"RENDITION-REPORT":{var Ee=new D.AttrList(ae);y.renditionReports=y.renditionReports||[],y.renditionReports.push(Ee);break}default:g.logger.warn("line parsed but not handled: "+ee);break}}}b&&!b.relurl?(v.pop(),j-=b.duration,y.partList&&(y.fragmentHint=b)):y.partList&&(S(Y,b),Y.cc=P,y.fragmentHint=Y);var ge=v.length,_e=v[0],ne=v[ge-1];if(j+=y.skippedSegments*y.targetduration,j>0&&ge&&ne){y.averagetargetduration=j/ge;var re=ne.sn;y.endSN=re!=="initSegment"?re:0,_e&&(y.startCC=_e.cc,_e.initSegment||y.fragments.every(function(he){return he.relurl&&h(he.relurl)})&&(g.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Y=new G.Fragment(c,w),Y.relurl=ne.relurl,Y.level=x,Y.sn="initSegment",_e.initSegment=Y,y.needSidxRanges=!0))}else y.endSN=0,y.startCC=0;return y.fragmentHint&&(j+=y.fragmentHint.duration),y.totalduration=j,y.endCC=P,ke>0&&_(v,ke),y},L}();function a(L,R){["video","audio","text"].forEach(function(C){var w=L.filter(function(c){return Object(m.isCodecType)(c,C)});if(w.length){var x=w.filter(function(c){return c.lastIndexOf("avc1",0)===0||c.lastIndexOf("mp4a",0)===0});R[C+"Codec"]=x.length>0?x[0]:w[0],L=L.filter(function(c){return w.indexOf(c)===-1})}}),R.unknownCodecs=L}function A(L,R,C){var w=R[C];w&&(L[C]=w)}function _(L,R){for(var C=L[R],w=R;w--;){var x=L[w];if(!x)return;x.programDateTime=C.programDateTime-x.duration*1e3,C=x}}function S(L,R){L.rawProgramDateTime?L.programDateTime=Date.parse(L.rawProgramDateTime):R!=null&&R.programDateTime&&(L.programDateTime=R.endProgramDateTime),Object(X.isFiniteNumber)(L.programDateTime)||(L.programDateTime=null,L.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ie,$,M){"use strict";M.r($);var X=M("./src/polyfills/number.ts"),F=M("./src/events.ts"),U=M("./src/errors.ts"),G=M("./src/utils/logger.ts"),W=M("./src/utils/mp4-tools.ts"),i=M("./src/loader/m3u8-parser.ts"),D=M("./src/types/loader.ts"),g=M("./src/utils/attr-list.ts");function m(u){var f=u.type;switch(f){case D.PlaylistContextType.AUDIO_TRACK:return D.PlaylistLevelType.AUDIO;case D.PlaylistContextType.SUBTITLE_TRACK:return D.PlaylistLevelType.SUBTITLE;default:return D.PlaylistLevelType.MAIN}}function p(u,f){var o=u.url;return(o===void 0||o.indexOf("data:")===0)&&(o=f.url),o}var l=function(){function u(o){this.hls=void 0,this.loaders=Object.create(null),this.hls=o,this.registerListeners()}var f=u.prototype;return f.registerListeners=function(){var h=this.hls;h.on(F.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(F.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(F.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.on(F.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var h=this.hls;h.off(F.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(F.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(F.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.off(F.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(h){var s=this.hls.config,a=s.pLoader,A=s.loader,_=a||A,S=new _(s);return h.loader=S,this.loaders[h.type]=S,S},f.getInternalLoader=function(h){return this.loaders[h.type]},f.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},f.destroyInternalLoaders=function(){for(var h in this.loaders){var s=this.loaders[h];s&&s.destroy(),this.resetInternalLoader(h)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(h,s){var a=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:D.PlaylistContextType.MANIFEST,url:a,deliveryDirectives:null})},f.onLevelLoading=function(h,s){var a=s.id,A=s.level,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:null,level:A,responseType:"text",type:D.PlaylistContextType.LEVEL,url:_,deliveryDirectives:S})},f.onAudioTrackLoading=function(h,s){var a=s.id,A=s.groupId,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:A,level:null,responseType:"text",type:D.PlaylistContextType.AUDIO_TRACK,url:_,deliveryDirectives:S})},f.onSubtitleTrackLoading=function(h,s){var a=s.id,A=s.groupId,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:A,level:null,responseType:"text",type:D.PlaylistContextType.SUBTITLE_TRACK,url:_,deliveryDirectives:S})},f.load=function(h){var s,a=this.hls.config,A=this.getInternalLoader(h);if(A){var _=A.context;if(_&&_.url===h.url){G.logger.trace("[playlist-loader]: playlist request ongoing");return}G.logger.log("[playlist-loader]: aborting previous loader for type: "+h.type),A.abort()}var S,L,R,C;switch(h.type){case D.PlaylistContextType.MANIFEST:S=a.manifestLoadingMaxRetry,L=a.manifestLoadingTimeOut,R=a.manifestLoadingRetryDelay,C=a.manifestLoadingMaxRetryTimeout;break;case D.PlaylistContextType.LEVEL:case D.PlaylistContextType.AUDIO_TRACK:case D.PlaylistContextType.SUBTITLE_TRACK:S=0,L=a.levelLoadingTimeOut;break;default:S=a.levelLoadingMaxRetry,L=a.levelLoadingTimeOut,R=a.levelLoadingRetryDelay,C=a.levelLoadingMaxRetryTimeout;break}if(A=this.createInternalLoader(h),(s=h.deliveryDirectives)!==null&&s!==void 0&&s.part){var w;if(h.type===D.PlaylistContextType.LEVEL&&h.level!==null?w=this.hls.levels[h.level].details:h.type===D.PlaylistContextType.AUDIO_TRACK&&h.id!==null?w=this.hls.audioTracks[h.id].details:h.type===D.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(w=this.hls.subtitleTracks[h.id].details),w){var x=w.partTarget,c=w.targetduration;x&&c&&(L=Math.min(Math.max(x*3,c*.8)*1e3,L))}}var T={timeout:L,maxRetry:S,retryDelay:R,maxRetryDelay:C,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};A.load(h,T,y)},f.loadsuccess=function(h,s,a,A){if(A===void 0&&(A=null),a.isSidxRequest){this.handleSidxRequest(h,a),this.handlePlaylistLoaded(h,s,a,A);return}this.resetInternalLoader(a.type);var _=h.data;if(_.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,a,"no EXTM3U delimiter",A);return}s.parsing.start=performance.now(),_.indexOf("#EXTINF:")>0||_.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,s,a,A):this.handleMasterPlaylist(h,s,a,A)},f.loaderror=function(h,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!1,h)},f.loadtimeout=function(h,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!0)},f.handleMasterPlaylist=function(h,s,a,A){var _=this.hls,S=h.data,L=p(h,a),R=i.default.parseMasterPlaylist(S,L),C=R.levels,w=R.sessionData;if(!C.length){this.handleManifestParsingError(h,a,"no level found in manifest",A);return}var x=C.map(function(B){return{id:B.attrs.AUDIO,audioCodec:B.audioCodec}}),c=C.map(function(B){return{id:B.attrs.SUBTITLES,textCodec:B.textCodec}}),T=i.default.parseMasterPlaylistMedia(S,L,"AUDIO",x),y=i.default.parseMasterPlaylistMedia(S,L,"SUBTITLES",c),v=i.default.parseMasterPlaylistMedia(S,L,"CLOSED-CAPTIONS");if(T.length){var N=T.some(function(B){return!B.url});!N&&C[0].audioCodec&&!C[0].attrs.AUDIO&&(G.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 g.AttrList({}),bitrate:0,url:""}))}_.trigger(F.Events.MANIFEST_LOADED,{levels:C,audioTracks:T,subtitles:y,captions:v,url:L,stats:s,networkDetails:A,sessionData:w})},f.handleTrackOrLevelPlaylist=function(h,s,a,A){var _=this.hls,S=a.id,L=a.level,R=a.type,C=p(h,a),w=Object(X.isFiniteNumber)(S)?S:0,x=Object(X.isFiniteNumber)(L)?L:w,c=m(a),T=i.default.parseLevelPlaylist(h.data,C,x,c,w);if(!T.fragments.length){_.trigger(F.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:C,reason:"no fragments found in level",level:typeof a.level=="number"?a.level:void 0});return}if(R===D.PlaylistContextType.MANIFEST){var y={attrs:new g.AttrList({}),bitrate:0,details:T,name:"",url:C};_.trigger(F.Events.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:C,stats:s,networkDetails:A,sessionData:null})}if(s.parsing.end=performance.now(),T.needSidxRanges){var v,N=(v=T.fragments[0].initSegment)===null||v===void 0?void 0:v.url;this.load({url:N,isSidxRequest:!0,type:R,level:L,levelDetails:T,id:S,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}a.levelDetails=T,this.handlePlaylistLoaded(h,s,a,A)},f.handleSidxRequest=function(h,s){var a=Object(W.parseSegmentIndex)(new Uint8Array(h.data));if(!a)return;var A=a.references,_=s.levelDetails;A.forEach(function(S,L){var R=S.info,C=_.fragments[L];C.byteRange.length===0&&C.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),C.initSegment&&C.initSegment.setByteRange(String(a.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(h,s,a,A){this.hls.trigger(F.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===D.PlaylistContextType.MANIFEST,url:h.url,reason:a,response:h,context:s,networkDetails:A})},f.handleNetworkError=function(h,s,a,A){a===void 0&&(a=!1),G.logger.warn("[playlist-loader]: A network "+(a?"timeout":"error")+" occurred while loading "+h.type+" level: "+h.level+" id: "+h.id+' group-id: "'+h.groupId+'"');var _=U.ErrorDetails.UNKNOWN,S=!1,L=this.getInternalLoader(h);switch(h.type){case D.PlaylistContextType.MANIFEST:_=a?U.ErrorDetails.MANIFEST_LOAD_TIMEOUT:U.ErrorDetails.MANIFEST_LOAD_ERROR,S=!0;break;case D.PlaylistContextType.LEVEL:_=a?U.ErrorDetails.LEVEL_LOAD_TIMEOUT:U.ErrorDetails.LEVEL_LOAD_ERROR,S=!1;break;case D.PlaylistContextType.AUDIO_TRACK:_=a?U.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:U.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,S=!1;break;case D.PlaylistContextType.SUBTITLE_TRACK:_=a?U.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:U.ErrorDetails.SUBTITLE_LOAD_ERROR,S=!1;break}L&&this.resetInternalLoader(h.type);var R={type:U.ErrorTypes.NETWORK_ERROR,details:_,fatal:S,url:h.url,loader:L,context:h,networkDetails:s};A&&(R.response=A),this.hls.trigger(F.Events.ERROR,R)},f.handlePlaylistLoaded=function(h,s,a,A){var _=a.type,S=a.level,L=a.id,R=a.groupId,C=a.loader,w=a.levelDetails,x=a.deliveryDirectives;if(!(w!=null&&w.targetduration)){this.handleManifestParsingError(h,a,"invalid target duration",A);return}if(!C)return;w.live&&(C.getCacheAge&&(w.ageHeader=C.getCacheAge()||0),(!C.getCacheAge||isNaN(w.ageHeader))&&(w.ageHeader=0));switch(_){case D.PlaylistContextType.MANIFEST:case D.PlaylistContextType.LEVEL:this.hls.trigger(F.Events.LEVEL_LOADED,{details:w,level:S||0,id:L||0,stats:s,networkDetails:A,deliveryDirectives:x});break;case D.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(F.Events.AUDIO_TRACK_LOADED,{details:w,id:L||0,groupId:R||"",stats:s,networkDetails:A,deliveryDirectives:x});break;case D.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(F.Events.SUBTITLE_TRACK_LOADED,{details:w,id:L||0,groupId:R||"",stats:s,networkDetails:A,deliveryDirectives:x});break}},u}();$.default=l},"./src/polyfills/number.ts":function(ie,$,M){"use strict";M.r($),M.d($,"isFiniteNumber",function(){return X}),M.d($,"MAX_SAFE_INTEGER",function(){return F});var X=Number.isFinite||function(U){return typeof U=="number"&&isFinite(U)},F=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ie,$,M){"use strict";M.r($);var X=function(){function F(){}return F.getSilentFrame=function(G,W){switch(G){case"mp4a.40.2":if(W===1)return new Uint8Array([0,200,0,128,35,128]);if(W===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(W===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(W===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(W===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(W===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(W===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(W===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(W===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},F}();$.default=X},"./src/remux/mp4-generator.ts":function(ie,$,M){"use strict";M.r($);var X=Math.pow(2,32)-1,F=function(){function U(){}return U.init=function(){U.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 W;for(W in U.types)U.types.hasOwnProperty(W)&&(U.types[W]=[W.charCodeAt(0),W.charCodeAt(1),W.charCodeAt(2),W.charCodeAt(3)]);var i=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]),D=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]);U.HDLR_TYPES={video:i,audio:D};var g=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m=new Uint8Array([0,0,0,0,0,0,0,0]);U.STTS=U.STSC=U.STCO=m,U.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),U.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),U.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var p=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);U.FTYP=U.box(U.types.ftyp,p,u,p,l),U.DINF=U.box(U.types.dinf,U.box(U.types.dref,g))},U.box=function(W){for(var i=8,D=arguments.length,g=new Array(D>1?D-1:0),m=1;m>24&255,u[1]=i>>16&255,u[2]=i>>8&255,u[3]=i&255,u.set(W,4),p=0,i=8;p>24&255,W>>16&255,W>>8&255,W&255,D>>24,D>>16&255,D>>8&255,D&255,g>>24,g>>16&255,g>>8&255,g&255,85,196,0,0]))},U.mdia=function(W){return U.box(U.types.mdia,U.mdhd(W.timescale,W.duration),U.hdlr(W.type),U.minf(W))},U.mfhd=function(W){return U.box(U.types.mfhd,new Uint8Array([0,0,0,0,W>>24,W>>16&255,W>>8&255,W&255]))},U.minf=function(W){return W.type==="audio"?U.box(U.types.minf,U.box(U.types.smhd,U.SMHD),U.DINF,U.stbl(W)):U.box(U.types.minf,U.box(U.types.vmhd,U.VMHD),U.DINF,U.stbl(W))},U.moof=function(W,i,D){return U.box(U.types.moof,U.mfhd(W),U.traf(D,i))},U.moov=function(W){for(var i=W.length,D=[];i--;)D[i]=U.trak(W[i]);return U.box.apply(null,[U.types.moov,U.mvhd(W[0].timescale,W[0].duration)].concat(D).concat(U.mvex(W)))},U.mvex=function(W){for(var i=W.length,D=[];i--;)D[i]=U.trex(W[i]);return U.box.apply(null,[U.types.mvex].concat(D))},U.mvhd=function(W,i){i*=W;var D=Math.floor(i/(X+1)),g=Math.floor(i%(X+1)),m=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,W>>24&255,W>>16&255,W>>8&255,W&255,D>>24,D>>16&255,D>>8&255,D&255,g>>24,g>>16&255,g>>8&255,g&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 U.box(U.types.mvhd,m)},U.sdtp=function(W){var i=W.samples||[],D=new Uint8Array(4+i.length),g,m;for(g=0;g>>8&255),i.push(p&255),i=i.concat(Array.prototype.slice.call(m));for(g=0;g>>8&255),D.push(p&255),D=D.concat(Array.prototype.slice.call(m));var l=U.box(U.types.avcC,new Uint8Array([1,i[3],i[4],i[5],252|3,224|W.sps.length].concat(i).concat([W.pps.length]).concat(D))),u=W.width,f=W.height,o=W.pixelRatio[0],h=W.pixelRatio[1];return U.box(U.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,u>>8&255,u&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]),l,U.box(U.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),U.box(U.types.pasp,new Uint8Array([o>>24,o>>16&255,o>>8&255,o&255,h>>24,h>>16&255,h>>8&255,h&255])))},U.esds=function(W){var i=W.config.length;return new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(W.config).concat([6,1,2]))},U.mp4a=function(W){var i=W.samplerate;return U.box(U.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,W.channelCount,0,16,0,0,0,0,i>>8&255,i&255,0,0]),U.box(U.types.esds,U.esds(W)))},U.mp3=function(W){var i=W.samplerate;return U.box(U.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,W.channelCount,0,16,0,0,0,0,i>>8&255,i&255,0,0]))},U.stsd=function(W){return W.type==="audio"?!W.isAAC&&W.codec==="mp3"?U.box(U.types.stsd,U.STSD,U.mp3(W)):U.box(U.types.stsd,U.STSD,U.mp4a(W)):U.box(U.types.stsd,U.STSD,U.avc1(W))},U.tkhd=function(W){var i=W.id,D=W.duration*W.timescale,g=W.width,m=W.height,p=Math.floor(D/(X+1)),l=Math.floor(D%(X+1));return U.box(U.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,i>>24&255,i>>16&255,i>>8&255,i&255,0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,l>>24,l>>16&255,l>>8&255,l&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,g>>8&255,g&255,0,0,m>>8&255,m&255,0,0]))},U.traf=function(W,i){var D=U.sdtp(W),g=W.id,m=Math.floor(i/(X+1)),p=Math.floor(i%(X+1));return U.box(U.types.traf,U.box(U.types.tfhd,new Uint8Array([0,0,0,0,g>>24,g>>16&255,g>>8&255,g&255])),U.box(U.types.tfdt,new Uint8Array([1,0,0,0,m>>24,m>>16&255,m>>8&255,m&255,p>>24,p>>16&255,p>>8&255,p&255])),U.trun(W,D.length+16+20+8+16+8+8),D)},U.trak=function(W){return W.duration=W.duration||4294967295,U.box(U.types.trak,U.tkhd(W),U.mdia(W))},U.trex=function(W){var i=W.id;return U.box(U.types.trex,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},U.trun=function(W,i){var D=W.samples||[],g=D.length,m=12+16*g,p=new Uint8Array(m),l,u,f,o,h,s;for(i+=8+m,p.set([0,0,15,1,g>>>24&255,g>>>16&255,g>>>8&255,g&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255],0),l=0;l>>24&255,f>>>16&255,f>>>8&255,f&255,o>>>24&255,o>>>16&255,o>>>8&255,o&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&240<<8,h.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*l);return U.box(U.types.trun,p)},U.initSegment=function(W){U.types||U.init();var i=U.moov(W),D=new Uint8Array(U.FTYP.byteLength+i.byteLength);return D.set(U.FTYP),D.set(i,U.FTYP.byteLength),D},U}();F.types=void 0,F.HDLR_TYPES=void 0,F.STTS=void 0,F.STSC=void 0,F.STCO=void 0,F.STSZ=void 0,F.VMHD=void 0,F.SMHD=void 0,F.STSD=void 0,F.FTYP=void 0,F.DINF=void 0,$.default=F},"./src/remux/mp4-remuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return s}),M.d($,"normalizePts",function(){return a});var X=M("./src/polyfills/number.ts"),F=M("./src/remux/aac-helper.ts"),U=M("./src/remux/mp4-generator.ts"),G=M("./src/events.ts"),W=M("./src/errors.ts"),i=M("./src/utils/logger.ts"),D=M("./src/types/loader.ts"),g=M("./src/utils/timescale-conversion.ts");function m(){return m=Object.assign||function(L){for(var R=1;R0?T:y.pts},w[0].pts);return x&&i.logger.debug("PTS rollover detected"),c},R.remux=function(w,x,c,T,y,v,N,B){var O,j,P,b,Y,ee,le=y,ue=y,ke=w.pid>-1,Se=x.pid>-1,Ce=x.samples.length,ce=w.samples.length>0,pe=Ce>1,se=(!ke||ce)&&(!Se||pe)||this.ISGenerated||N;if(se){this.ISGenerated||(P=this.generateIS(w,x,y));var ae=this.isVideoContiguous,Oe=-1;if(pe&&(Oe=A(x.samples),!ae&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,Oe>0){i.logger.warn("[mp4-remuxer]: Dropped "+Oe+" out of "+Ce+" video samples due to a missing keyframe");var Te=this.getVideoStartPts(x.samples);x.samples=x.samples.slice(Oe),x.dropped+=Oe,ue+=(x.samples[0].pts-Te)/(x.timescale||9e4)}else Oe===-1&&(i.logger.warn("[mp4-remuxer]: No keyframe found out of "+Ce+" video samples"),ee=!1);if(this.ISGenerated){if(ce&&pe){var Ne=this.getVideoStartPts(x.samples),De=a(w.samples[0].pts,Ne)-Ne,We=De/x.inputTimeScale;le+=Math.max(0,We),ue+=Math.max(0,-We)}if(ce){if(w.samplerate||(i.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),P=this.generateIS(w,x,y)),j=this.remuxAudio(w,le,this.isAudioContiguous,v,Se||pe||B===D.PlaylistLevelType.AUDIO?ue:void 0),pe){var Le=j?j.endPTS-j.startPTS:0;x.inputTimeScale||(i.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),P=this.generateIS(w,x,y)),O=this.remuxVideo(x,ue,ae,Le)}}else pe&&(O=this.remuxVideo(x,ue,ae,0));O&&(O.firstKeyFrame=Oe,O.independent=Oe!==-1)}}return this.ISGenerated&&(c.samples.length&&(Y=this.remuxID3(c,y)),T.samples.length&&(b=this.remuxText(T,y))),{audio:j,video:O,initSegment:P,independent:ee,text:b,id3:Y}},R.generateIS=function(w,x,c){var T=w.samples,y=x.samples,v=this.typeSupported,N={},B=!Object(X.isFiniteNumber)(this._initPTS),O="audio/mp4",j,P,b;if(B&&(j=P=Infinity),w.config&&T.length&&(w.timescale=w.samplerate,w.isAAC||(v.mpeg?(O="audio/mpeg",w.codec=""):v.mp3&&(w.codec="mp3")),N.audio={id:"audio",container:O,codec:w.codec,initSegment:!w.isAAC&&v.mpeg?new Uint8Array(0):U.default.initSegment([w]),metadata:{channelCount:w.channelCount}},B&&(b=w.inputTimeScale,j=P=T[0].pts-Math.round(b*c))),x.sps&&x.pps&&y.length&&(x.timescale=x.inputTimeScale,N.video={id:"main",container:"video/mp4",codec:x.codec,initSegment:U.default.initSegment([x]),metadata:{width:x.width,height:x.height}},B)){b=x.inputTimeScale;var Y=this.getVideoStartPts(y),ee=Math.round(b*c);P=Math.min(P,a(y[0].dts,Y)-ee),j=Math.min(j,Y-ee)}if(Object.keys(N).length)return this.ISGenerated=!0,B&&(this._initPTS=j,this._initDTS=P),{tracks:N,initPTS:j,timescale:b}},R.remuxVideo=function(w,x,c,T){var y=w.inputTimeScale,v=w.samples,N=[],B=v.length,O=this._initPTS,j=this.nextAvcDts,P=8,b,Y,ee,le=Number.POSITIVE_INFINITY,ue=Number.NEGATIVE_INFINITY,ke=0,Se=!1;if(!c||j===null){var Ce=x*y,ce=v[0].pts-a(v[0].dts,v[0].pts);j=Ce-ce}for(var pe=0;pese.pts){var ae=9e4*.2;ke=Math.max(Math.min(ke,se.pts-se.dts),-1*ae)}se.dts0?pe-1:pe].dts&&(Se=!0)}Se&&v.sort(function(wt,St){var dt=wt.dts-St.dts,Ut=wt.pts-St.pts;return dt||Ut}),Y=v[0].dts,ee=v[v.length-1].dts;var Oe=Math.round((ee-Y)/(B-1));if(ke<0){if(keOe,Be=We<-1;if(Le||Be){Le?i.logger.warn("AVC: "+Object(g.toMsFromMpegTsClock)(We,!0)+" ms ("+We+"dts) hole between fragments detected, filling it"):i.logger.warn("AVC: "+Object(g.toMsFromMpegTsClock)(-We,!0)+" ms ("+We+"dts) overlapping between fragments detected"),Y=j;var Ge=v[0].pts-We;v[0].dts=Y,v[0].pts=Ge,i.logger.log("Video: First PTS/DTS adjusted: "+Object(g.toMsFromMpegTsClock)(Ge,!0)+"/"+Object(g.toMsFromMpegTsClock)(Y,!0)+", delta: "+Object(g.toMsFromMpegTsClock)(We,!0)+" ms")}}h&&(Y=Math.max(0,Y));for(var oe=0,ye=0,we=0;we0?Me-1:Me].dts;if(re.stretchShortVideoTrack&&this.nextAudioPts!==null){var fe=Math.floor(re.maxBufferHole*y),xe=(T?le+T*y:this.nextAudioPts)-ut.pts;xe>fe?(b=xe-he,b<0&&(b=he),i.logger.log("[mp4-remuxer]: It is approximately "+xe/90+" ms to the next segment; using duration "+b/90+" ms for the last video frame.")):b=he}else b=he}var Pe=Math.round(ut.pts-ut.dts);N.push(new _(ut.key,b,Fe,Pe))}if(N.length&&f&&f<70){var ze=N[0].flags;ze.dependsOn=2,ze.isNonSync=0}console.assert(b!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=j=ee+b,this.isVideoContiguous=!0;var ot=U.default.moof(w.sequenceNumber++,Y,m({},w,{samples:N})),mt="video",ft={data1:ot,data2:et,startPTS:le/y,endPTS:(ue+b)/y,startDTS:Y/y,endDTS:j/y,type:mt,hasAudio:!1,hasVideo:!0,nb:N.length,dropped:w.dropped};return w.samples=[],w.dropped=0,console.assert(et.length,"MDAT length must not be zero"),ft},R.remuxAudio=function(w,x,c,T,y){var v=w.inputTimeScale,N=w.samplerate?w.samplerate:v,B=v/N,O=w.isAAC?l:u,j=O*B,P=this._initPTS,b=!w.isAAC&&this.typeSupported.mpeg,Y=[],ee=w.samples,le=b?0:8,ue=this.nextAudioPts||-1,ke=x*v;if(this.isAudioContiguous=c=c||ee.length&&ue>0&&(T&&Math.abs(ke-ue)<9e3||Math.abs(a(ee[0].pts-P,ke)-ue)<20*j),ee.forEach(function(_e){_e.pts=a(_e.pts-P,ke)}),!c||ue<0){if(ee=ee.filter(function(_e){return _e.pts>=0}),!ee.length)return;y===0?ue=0:T?ue=Math.max(0,ke):ue=ee[0].pts}if(w.isAAC)for(var Se=y!==void 0,Ce=this.config.maxAudioFramesDrift,ce=0,pe=ue;ce=Ce*j&&Te0){ye+=le;try{oe=new Uint8Array(ye)}catch(_e){this.observer.emit(G.Events.ERROR,G.Events.ERROR,{type:W.ErrorTypes.MUX_ERROR,details:W.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ye,reason:"fail allocating audio mdat "+ye});return}if(!b){var et=new DataView(oe.buffer);et.setUint32(0,ye),oe.set(U.default.types.mdat,4)}}else return;oe.set(Ze,le);var Je=Ze.byteLength;le+=Je,Y.push(new _(!0,O,Je,0)),Ge=$e}var Me=Y.length;if(!Me)return;var ut=Y[Y.length-1];this.nextAudioPts=ue=Ge+B*ut.duration;var nt=b?new Uint8Array(0):U.default.moof(w.sequenceNumber++,Be/B,m({},w,{samples:Y}));w.samples=[];var Fe=Be/v,je=ue/v,Ee="audio",ge={data1:nt,data2:oe,startPTS:Fe,endPTS:je,startDTS:Fe,endDTS:je,type:Ee,hasAudio:!0,hasVideo:!1,nb:Me};return this.isAudioContiguous=!0,console.assert(oe.length,"MDAT length must not be zero"),ge},R.remuxEmptyAudio=function(w,x,c,T){var y=w.inputTimeScale,v=w.samplerate?w.samplerate:y,N=y/v,B=this.nextAudioPts,O=(B!==null?B:T.startDTS*y)+this._initDTS,j=T.endDTS*y+this._initDTS,P=N*l,b=Math.ceil((j-O)/P),Y=F.default.getSilentFrame(w.manifestCodec||w.codec,w.channelCount);if(i.logger.warn("[mp4-remuxer]: remux empty Audio"),!Y){i.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],le=0;le4294967296;)L+=C;return L}function A(L){for(var R=0;R0?this.lastEndDTS=w:(G.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var x=!!L.audio,c=!!L.video,T="";x&&(T+="audio"),c&&(T+="video");var y={data1:_,startPTS:C,startDTS:C,endPTS:w,endDTS:w,type:T,hasAudio:x,hasVideo:c,nb:1,dropped:0};return A.audio=y.type==="audio"?y:void 0,A.video=y.type!=="audio"?y:void 0,A.text=o,A.id3=f,A.initSegment=S,A},g}(),i=function(m,p,l){return Object(F.getStartDTS)(m,p)-l};function D(g,m){var p=g==null?void 0:g.codec;return p&&p.length>4?p:p==="hvc1"?"hvc1.1.c.L120.90":p==="av01"?"av01.0.04M.08":p==="avc1"||m===U.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}$.default=W},"./src/task-loop.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return X});var X=function(){function F(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var U=F.prototype;return U.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},U.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},U.onHandlerDestroyed=function(){},U.hasInterval=function(){return!!this._tickInterval},U.hasNextTick=function(){return!!this._tickTimer},U.setInterval=function(W){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,W),!0)},U.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},U.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},U.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},U.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},U.doTick=function(){},F}()},"./src/types/cmcd.ts":function(ie,$,M){"use strict";M.r($),M.d($,"CMCDVersion",function(){return X}),M.d($,"CMCDObjectType",function(){return F}),M.d($,"CMCDStreamingFormat",function(){return U}),M.d($,"CMCDStreamType",function(){return G});var X=1,F;(function(W){W.MANIFEST="m",W.AUDIO="a",W.VIDEO="v",W.MUXED="av",W.INIT="i",W.CAPTION="c",W.TIMED_TEXT="tt",W.KEY="k",W.OTHER="o"})(F||(F={}));var U;(function(W){W.DASH="d",W.HLS="h",W.SMOOTH="s",W.OTHER="o"})(U||(U={}));var G;(function(W){W.VOD="v",W.LIVE="l"})(G||(G={}))},"./src/types/level.ts":function(ie,$,M){"use strict";M.r($),M.d($,"HlsSkip",function(){return U}),M.d($,"getSkipValue",function(){return G}),M.d($,"HlsUrlParameters",function(){return W}),M.d($,"Level",function(){return i});function X(D,g){for(var m=0;mNumber.MAX_SAFE_INTEGER?Infinity:g},W.hexadecimalInteger=function(D){if(this[D]){var g=(this[D]||"0x").slice(2);g=(g.length&1?"0":"")+g;for(var m=new Uint8Array(g.length/2),p=0;pNumber.MAX_SAFE_INTEGER?Infinity:g},W.decimalFloatingPoint=function(D){return parseFloat(this[D])},W.optionalFloat=function(D,g){var m=this[D];return m?parseFloat(m):g},W.enumeratedString=function(D){return this[D]},W.bool=function(D){return this[D]==="YES"},W.decimalResolution=function(D){var g=X.exec(this[D]);return g===null?void 0:{width:parseInt(g[1],10),height:parseInt(g[2],10)}},G.parseAttrList=function(D){var g,m={},p='"';for(F.lastIndex=0;(g=F.exec(D))!==null;){var l=g[2];l.indexOf(p)===0&&l.lastIndexOf(p)===l.length-1&&(l=l.slice(1,-1)),m[g[1]]=l}return m},G}()},"./src/utils/binary-search.ts":function(ie,$,M){"use strict";M.r($);var X={search:function(U,G){for(var W=0,i=U.length-1,D=null,g=null;W<=i;){D=(W+i)/2|0,g=U[D];var m=G(g);if(m>0)W=D+1;else if(m<0)i=D-1;else return g}return null}};$.default=X},"./src/utils/buffer-helper.ts":function(ie,$,M){"use strict";M.r($),M.d($,"BufferHelper",function(){return U});var X=M("./src/utils/logger.ts"),F={length:0,start:function(){return 0},end:function(){return 0}},U=function(){function G(){}return G.isBuffered=function(i,D){try{if(i){for(var g=G.getBuffered(i),m=0;m=g.start(m)&&D<=g.end(m))return!0}}catch(p){}return!1},G.bufferInfo=function(i,D,g){try{if(i){var m=G.getBuffered(i),p=[],l;for(l=0;lu&&(m[l-1].end=i[p].end):m.push(i[p])}else m.push(i[p])}else m=i;for(var f=0,o,h=D,s=D,a=0;a=A&&D<_)h=A,s=_,f=s-D;else if(D+g=c&&X.logger.log(this.time+" ["+c+"] "+T)},C}(),f=function(w){for(var x=[],c=0;cW&&(this.logger.log(l.DEBUG,"Too large cursor position "+this.pos),this.pos=W)},w.moveCursor=function(c){var T=this.pos+c;if(c>1)for(var y=this.pos+1;y=144&&this.backSpace();var T=U(c);if(this.pos>=W){this.logger.log(l.ERROR,"Cannot insert "+c.toString(16)+" ("+T+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(T,this.currPenState),this.moveCursor(1)},w.clearFromPos=function(c){var T;for(T=c;T0&&(c?y="["+T.join(" | ")+"]":y=T.join(` + timeOffset: `+y);var le=new G.TransmuxConfig(a,A,s,L,w);this.configureTransmuxer(le)}if(this.frag=_,this.part=S,T)T.postMessage({cmd:"demux",data:h,decryptdata:v,chunkMeta:C,state:ee},h instanceof ArrayBuffer?[h]:[]);else if(c){var ue=c.push(h,v,C,ee);Object(G.isPromise)(ue)?ue.then(function(ke){x.handleTransmuxComplete(ke)}):this.handleTransmuxComplete(ue)}},f.flush=function(h){var s=this;h.transmuxing.start=self.performance.now();var a=this.transmuxer,A=this.worker;if(A)A.postMessage({cmd:"flush",chunkMeta:h});else if(a){var _=a.flush(h);Object(G.isPromise)(_)?_.then(function(S){s.handleFlushResult(S,h)}):this.handleFlushResult(_,h)}},f.handleFlushResult=function(h,s){var a=this;h.forEach(function(A){a.handleTransmuxComplete(A)}),this.onFlush(s)},f.onWorkerMessage=function(h){var s=h.data,a=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,a.trigger(s.event,s.data);break}}},f.configureTransmuxer=function(h){var s=this.worker,a=this.transmuxer;s?s.postMessage({cmd:"configure",config:h}):a&&a.configure(h)},f.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},u}()},"./src/demux/transmuxer-worker.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return i});var X=M("./src/demux/transmuxer.ts"),F=M("./src/events.ts"),U=M("./src/utils/logger.ts"),G=M("./node_modules/eventemitter3/index.js"),W=M.n(G);function i(l){var u=new G.EventEmitter,f=function(h,s){l.postMessage({event:h,data:s})};u.on(F.Events.FRAG_DECRYPTED,f),u.on(F.Events.ERROR,f),l.addEventListener("message",function(o){var h=o.data;switch(h.cmd){case"init":{var s=JSON.parse(h.config);l.transmuxer=new X.default(u,h.typeSupported,s,h.vendor,h.id),Object(U.enableLogs)(s.debug),f("init",null);break}case"configure":{l.transmuxer.configure(h.config);break}case"demux":{var a=l.transmuxer.push(h.data,h.decryptdata,h.chunkMeta,h.state);Object(X.isPromise)(a)?a.then(function(S){D(l,S)}):D(l,a);break}case"flush":{var A=h.chunkMeta,_=l.transmuxer.flush(A);Object(X.isPromise)(_)?_.then(function(S){m(l,S,A)}):m(l,_,A);break}default:break}})}function D(l,u){if(p(u.remuxResult))return;var f=[],o=u.remuxResult,h=o.audio,s=o.video;h&&g(f,h),s&&g(f,s),l.postMessage({event:"transmuxComplete",data:u},f)}function g(l,u){u.data1&&l.push(u.data1.buffer),u.data2&&l.push(u.data2.buffer)}function m(l,u,f){u.forEach(function(o){D(l,o)}),l.postMessage({event:"flush",data:f})}function p(l){return!l.audio&&!l.video&&!l.text&&!l.id3&&!l.initSegment}},"./src/demux/transmuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return s}),M.d($,"isPromise",function(){return _}),M.d($,"TransmuxConfig",function(){return S}),M.d($,"TransmuxState",function(){return L});var X=M("./src/events.ts"),F=M("./src/errors.ts"),U=M("./src/crypt/decrypter.ts"),G=M("./src/demux/aacdemuxer.ts"),W=M("./src/demux/mp4demuxer.ts"),i=M("./src/demux/tsdemuxer.ts"),D=M("./src/demux/mp3demuxer.ts"),g=M("./src/remux/mp4-remuxer.ts"),m=M("./src/remux/passthrough-remuxer.ts"),p=M("./src/demux/chunk-cache.ts"),l=M("./src/utils/mp4-tools.ts"),u=M("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(R){u.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var o=[{demux:i.default,remux:g.default},{demux:W.default,remux:m.default},{demux:G.default,remux:g.default},{demux:D.default,remux:g.default}],h=1024;o.forEach(function(R){var C=R.demux;h=Math.max(h,C.minProbeByteLength)});var s=function(){function R(w,x,c,T,y){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 p.default,this.observer=w,this.typeSupported=x,this.config=c,this.vendor=T,this.id=y}var C=R.prototype;return C.configure=function(x){this.transmuxConfig=x,this.decrypter&&this.decrypter.reset()},C.push=function(x,c,T,y){var v=this,N=T.transmuxing;N.executeStart=f();var B=new Uint8Array(x),O=this.cache,j=this.config,P=this.currentTransmuxState,b=this.transmuxConfig;y&&(this.currentTransmuxState=y);var Y=a(B,c);if(Y&&Y.method==="AES-128"){var ee=this.getDecrypter();if(j.enableSoftwareAES){var le=ee.softwareDecrypt(B,Y.key.buffer,Y.iv.buffer);if(!le)return N.executeEnd=f(),A(T);B=new Uint8Array(le)}else return this.decryptionPromise=ee.webCryptoDecrypt(B,Y.key.buffer,Y.iv.buffer).then(function(Be){var Ge=v.push(Be,null,T);return v.decryptionPromise=null,Ge}),this.decryptionPromise}var ue=y||P,ke=ue.contiguous,Se=ue.discontinuity,Ce=ue.trackSwitch,ce=ue.accurateTimeOffset,pe=ue.timeOffset,se=b.audioCodec,ae=b.videoCodec,Oe=b.defaultInitPts,Te=b.duration,Ne=b.initSegmentData;if((Se||Ce)&&this.resetInitSegment(Ne,se,ae,Te),Se&&this.resetInitialTimestamp(Oe),ke||this.resetContiguity(),this.needsProbing(B,Se,Ce)){if(O.dataLength){var De=O.flush();B=Object(l.appendUint8Array)(De,B)}this.configureTransmuxer(B,b)}var We=this.transmux(B,Y,pe,ce,T),Le=this.currentTransmuxState;return Le.contiguous=!0,Le.discontinuity=!1,Le.trackSwitch=!1,N.executeEnd=f(),We},C.flush=function(x){var c=this,T=x.transmuxing;T.executeStart=f();var y=this.decrypter,v=this.cache,N=this.currentTransmuxState,B=this.decryptionPromise;if(B)return B.then(function(){return c.flush(x)});var O=[],j=N.timeOffset;if(y){var P=y.flush();P&&O.push(this.push(P,null,x))}var b=v.dataLength;v.reset();var Y=this.demuxer,ee=this.remuxer;if(!Y||!ee)return b>=h&&this.observer.emit(X.Events.ERROR,X.Events.ERROR,{type:F.ErrorTypes.MEDIA_ERROR,details:F.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),T.executeEnd=f(),[A(x)];var le=Y.flush(j);return _(le)?le.then(function(ue){return c.flushRemux(O,ue,x),O}):(this.flushRemux(O,le,x),O)},C.flushRemux=function(x,c,T){var y=c.audioTrack,v=c.avcTrack,N=c.id3Track,B=c.textTrack,O=this.currentTransmuxState,j=O.accurateTimeOffset,P=O.timeOffset;u.logger.log("[transmuxer.ts]: Flushed fragment "+T.sn+(T.part>-1?" p: "+T.part:"")+" of level "+T.level);var b=this.remuxer.remux(y,v,N,B,P,j,!0,this.id);x.push({remuxResult:b,chunkMeta:T}),T.transmuxing.executeEnd=f()},C.resetInitialTimestamp=function(x){var c=this.demuxer,T=this.remuxer;if(!c||!T)return;c.resetTimeStamp(x),T.resetTimeStamp(x)},C.resetContiguity=function(){var x=this.demuxer,c=this.remuxer;if(!x||!c)return;x.resetContiguity(),c.resetNextTimestamp()},C.resetInitSegment=function(x,c,T,y){var v=this.demuxer,N=this.remuxer;if(!v||!N)return;v.resetInitSegment(c,T,y),N.resetInitSegment(x,c,T)},C.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},C.transmux=function(x,c,T,y,v){var N;return c&&c.method==="SAMPLE-AES"?N=this.transmuxSampleAes(x,c,T,y,v):N=this.transmuxUnencrypted(x,T,y,v),N},C.transmuxUnencrypted=function(x,c,T,y){var v=this.demuxer.demux(x,c,!1,!this.config.progressive),N=v.audioTrack,B=v.avcTrack,O=v.id3Track,j=v.textTrack,P=this.remuxer.remux(N,B,O,j,c,T,!1,this.id);return{remuxResult:P,chunkMeta:y}},C.transmuxSampleAes=function(x,c,T,y,v){var N=this;return this.demuxer.demuxSampleAes(x,c,T).then(function(B){var O=N.remuxer.remux(B.audioTrack,B.avcTrack,B.id3Track,B.textTrack,T,y,!1,N.id);return{remuxResult:O,chunkMeta:v}})},C.configureTransmuxer=function(x,c){for(var T=this.config,y=this.observer,v=this.typeSupported,N=this.vendor,B=c.audioCodec,O=c.defaultInitPts,j=c.duration,P=c.initSegmentData,b=c.videoCodec,Y,ee=0,le=o.length;ee0&&C!=null&&C.key!=null&&C.iv!==null&&C.method!=null&&(w=C),w}var A=function(C){return{remuxResult:{},chunkMeta:C}};function _(R){return"then"in R&&R.then instanceof Function}var S=function(C,w,x,c,T){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=w,this.initSegmentData=x,this.duration=c,this.defaultInitPts=T},L=function(C,w,x,c,T){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=w,this.accurateTimeOffset=x,this.trackSwitch=c,this.timeOffset=T}},"./src/demux/tsdemuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"discardEPB",function(){return A});var X=M("./src/demux/adts.ts"),F=M("./src/demux/mpegaudio.ts"),U=M("./src/demux/exp-golomb.ts"),G=M("./src/demux/id3.ts"),W=M("./src/demux/sample-aes.ts"),i=M("./src/events.ts"),D=M("./src/utils/mp4-tools.ts"),g=M("./src/utils/logger.ts"),m=M("./src/errors.ts"),p={video:1,audio:2,id3:3,text:4},l=function(){function _(L,R,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=L,this.config=R,this.typeSupported=C}_.probe=function(R){var C=_.syncOffset(R);return C<0?!1:(C&&g.logger.warn("MPEG2-TS detected but first sync word found @ offset "+C+", junk ahead ?"),!0)},_.syncOffset=function(R){for(var C=Math.min(1e3,R.length-3*188),w=0;w>4,se=void 0;if(pe>1){if(se=Se+5+R[Se+4],se===Se+188)continue}else se=Se+4;switch(ce){case N:Ce&&(B&&(c=h(B))&&this.parseAVCPES(c,!1),B={data:[],size:0}),B&&(B.data.push(R.subarray(se,Se+188)),B.size+=Se+188-se);break;case O:Ce&&(P&&(c=h(P))&&(y.isAAC?this.parseAACPES(c):this.parseMPEGPES(c)),P={data:[],size:0}),P&&(P.data.push(R.subarray(se,Se+188)),P.size+=Se+188-se);break;case j:Ce&&(b&&(c=h(b))&&this.parseID3PES(c),b={data:[],size:0}),b&&(b.data.push(R.subarray(se,Se+188)),b.size+=Se+188-se);break;case 0:Ce&&(se+=R[se]+1),le=this._pmtId=f(R,se);break;case le:{Ce&&(se+=R[se]+1);var ae=o(R,se,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,w);N=ae.avc,N>0&&(T.pid=N),O=ae.audio,O>0&&(y.pid=O,y.isAAC=ae.isAAC),j=ae.id3,j>0&&(v.pid=j),Y&&!ee&&(g.logger.log("reparse from beginning"),Y=!1,Se=ke-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:Y=!0;break}}else this.observer.emit(i.Events.ERROR,i.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});T.pesData=B,y.pesData=P,v.pesData=b;var Oe={audioTrack:y,avcTrack:T,id3Track:v,textTrack:this._txtTrack};return x&&this.extractRemainingSamples(Oe),Oe},S.flush=function(){var R=this.remainderData;this.remainderData=null;var C;return R?C=this.demux(R,-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},S.extractRemainingSamples=function(R){var C=R.audioTrack,w=R.avcTrack,x=R.id3Track,c=w.pesData,T=C.pesData,y=x.pesData,v;c&&(v=h(c))?(this.parseAVCPES(v,!0),w.pesData=null):w.pesData=c,T&&(v=h(T))?(C.isAAC?this.parseAACPES(v):this.parseMPEGPES(v),C.pesData=null):(T!=null&&T.size&&g.logger.log("last AAC PES packet truncated,might overlap between fragments"),C.pesData=T),y&&(v=h(y))?(this.parseID3PES(v),x.pesData=null):x.pesData=y},S.demuxSampleAes=function(R,C,w){var x=this.demux(R,w,!0,!this.config.progressive),c=this.sampleAes=new W.default(this.observer,this.config,C);return this.decrypt(x,c)},S.decrypt=function(R,C){return new Promise(function(w){var x=R.audioTrack,c=R.avcTrack;x.samples&&x.isAAC?C.decryptAacSamples(x.samples,0,function(){c.samples?C.decryptAvcSamples(c.samples,0,0,function(){w(R)}):w(R)}):c.samples&&C.decryptAvcSamples(c.samples,0,0,function(){w(R)})})},S.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},S.parseAVCPES=function(R,C){var w=this,x=this._avcTrack,c=this.parseAVCNALu(R.data),T=!1,y=this.avcSample,v,N=!1;R.data=null,y&&c.length&&!x.audFound&&(s(y,x),y=this.avcSample=u(!1,R.pts,R.dts,"")),c.forEach(function(B){switch(B.type){case 1:{v=!0,y||(y=w.avcSample=u(!0,R.pts,R.dts,"")),T&&(y.debug+="NDR "),y.frame=!0;var O=B.data;if(N&&O.length>4){var j=new U.default(O).readSliceType();(j===2||j===4||j===7||j===9)&&(y.key=!0)}break}case 5:v=!0,y||(y=w.avcSample=u(!0,R.pts,R.dts,"")),T&&(y.debug+="IDR "),y.key=!0,y.frame=!0;break;case 6:{v=!0,T&&y&&(y.debug+="SEI ");var P=new U.default(A(B.data));P.readUByte();for(var b=0,Y=0,ee=!1,le=0;!ee&&P.bytesAvailable>1;){b=0;do le=P.readUByte(),b+=le;while(le===255);Y=0;do le=P.readUByte(),Y+=le;while(le===255);if(b===4&&P.bytesAvailable!==0){ee=!0;var ue=P.readUByte();if(ue===181){var ke=P.readUShort();if(ke===49){var Se=P.readUInt();if(Se===1195456820){var Ce=P.readUByte();if(Ce===3){for(var ce=P.readUByte(),pe=P.readUByte(),se=31&ce,ae=[ce,pe],Oe=0;Oe16){for(var Te=[],Ne=0;Ne<16;Ne++)Te.push(P.readUByte().toString(16)),(Ne===3||Ne===5||Ne===7||Ne===9)&&Te.push("-");for(var De=Y-16,We=new Uint8Array(De),Le=0;Le=0){var P={data:R.subarray(O,y-x-1),type:j};T.push(P)}else{var b=this.getLastNalUnit();if(b&&(c&&y<=4-c&&(b.state&&(b.data=b.data.subarray(0,b.data.byteLength-c))),N=y-x-1,N>0)){var Y=new Uint8Array(b.data.byteLength+N);Y.set(b.data,0),Y.set(R.subarray(0,N),b.data.byteLength),b.data=Y,b.state=0}}y=0&&x>=0){var ee={data:R.subarray(O,C),type:j,state:x};T.push(ee)}if(T.length===0){var le=this.getLastNalUnit();if(le){var ue=new Uint8Array(le.data.byteLength+R.byteLength);ue.set(le.data,0),ue.set(R,le.data.byteLength),le.data=ue}}return w.naluState=x,T},S.parseAACPES=function(R){var C=0,w=this._audioTrack,x=this.aacOverFlow,c=R.data;if(x){this.aacOverFlow=null;var T=x.sample.unit.byteLength,y=Math.min(x.missing,T),v=T-y;x.sample.unit.set(c.subarray(0,y),v),w.samples.push(x.sample),C=x.missing}var N,B;for(N=C,B=c.length;N1;){var T=new Uint8Array(c[0].length+c[1].length);T.set(c[0]),T.set(c[1],c[0].length),c[0]=T,c.splice(1,1)}L=c[0];var y=(L[0]<<16)+(L[1]<<8)+L[2];if(y===1){if(R=(L[4]<<8)+L[5],R&&R>_.size-6)return null;var v=L[7];v&192&&(w=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,v&64?(x=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,w-x>60*9e4&&(g.logger.warn(Math.round((w-x)/9e4)+"s delta between PTS and DTS, align them"),w=x)):x=w),C=L[8];var N=C+9;if(_.size<=N)return null;_.size-=N;for(var B=new Uint8Array(_.size),O=0,j=c.length;OP){N-=P;continue}else L=L.subarray(N),P-=N,N=0;B.set(L,S),S+=P}return R&&(R-=C+3),{data:B,pts:w,dts:x,len:R}}return null}function s(_,S){if(_.units.length&&_.frame){if(_.pts===void 0){var L=S.samples,R=L.length;if(R){var C=L[R-1];_.pts=C.pts,_.dts=C.dts}else{S.dropped++;return}}S.samples.push(_)}_.debug.length&&g.logger.log(_.pts+"/"+_.dts+":"+_.debug)}function a(_,S){var L=_.length;if(L>0){if(S.pts>=_[L-1].pts)_.push(S);else for(var R=L-1;R>=0;R--)if(S.pts<_[R].pts){_.splice(R,0,S);break}}else _.push(S)}function A(_){for(var S=_.byteLength,L=[],R=1;Rw)return c;return 0}},{key:"maxAutoLevel",get:function(){var C=this.levels,w=this.autoLevelCapping,x;return w===-1&&C&&C.length?x=C.length-1:x=w,x}},{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 w=this.audioTrackController;w&&(w.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 w=this.subtitleTrackController;w&&(w.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 w=this.subtitleTrackController;w&&(w.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 h.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return S.defaultConfig?S.defaultConfig:u.hlsDefaultConfig},set:function(C){S.defaultConfig=C}}]),S}();_.defaultConfig=void 0},"./src/is-supported.ts":function(ie,$,M){"use strict";M.r($),M.d($,"isSupported",function(){return U}),M.d($,"changeTypeSupported",function(){return G});var X=M("./src/utils/mediasource-helper.ts");function F(){return self.SourceBuffer||self.WebKitSourceBuffer}function U(){var W=Object(X.getMediaSource)();if(!W)return!1;var i=F(),D=W&&typeof W.isTypeSupported=="function"&&W.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),g=!i||i.prototype&&typeof i.prototype.appendBuffer=="function"&&typeof i.prototype.remove=="function";return!!D&&!!g}function G(){var W,i=F();return typeof(i==null||((W=i.prototype)===null||W===void 0)?void 0:W.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return l}),M.d($,"LoadError",function(){return f});var X=M("./src/polyfills/number.ts"),F=M("./src/errors.ts");function U(o,h){o.prototype=Object.create(h.prototype),o.prototype.constructor=o,g(o,h)}function G(o){var h=typeof Map=="function"?new Map:void 0;return G=function(a){if(a===null||!D(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof h!="undefined"){if(h.has(a))return h.get(a);h.set(a,A)}function A(){return W(a,arguments,m(this).constructor)}return A.prototype=Object.create(a.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),g(A,a)},G(o)}function W(o,h,s){return i()?W=Reflect.construct:W=function(A,_,S){var L=[null];L.push.apply(L,_);var R=Function.bind.apply(A,L),C=new R;return S&&g(C,S.prototype),C},W.apply(null,arguments)}function i(){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(o){return!1}}function D(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function g(o,h){return g=Object.setPrototypeOf||function(a,A){return a.__proto__=A,a},g(o,h)}function m(o){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},m(o)}var p=Math.pow(2,17),l=function(){function o(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var h=o.prototype;return h.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},h.abort=function(){this.loader&&this.loader.abort()},h.load=function(a,A){var _=this,S=a.url;if(!S)return Promise.reject(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,networkDetails:null},"Fragment does not have a "+(S?"part list":"url")));this.abort();var L=this.config,R=L.fLoader,C=L.loader;return new Promise(function(w,x){_.loader&&_.loader.destroy();var c=_.loader=a.loader=R?new R(L):new C(L),T=u(a),y={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:p};a.stats=c.stats,c.load(T,y,{onSuccess:function(N,B,O,j){_.resetLoader(a,c),w({frag:a,part:null,payload:N.data,networkDetails:j})},onError:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,response:N,networkDetails:O}))},onAbort:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,networkDetails:O}))},onTimeout:function(N,B,O){_.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,networkDetails:O}))},onProgress:function(N,B,O,j){A&&A({frag:a,part:null,payload:O,networkDetails:j})}})})},h.loadPart=function(a,A,_){var S=this;this.abort();var L=this.config,R=L.fLoader,C=L.loader;return new Promise(function(w,x){S.loader&&S.loader.destroy();var c=S.loader=a.loader=R?new R(L):new C(L),T=u(a,A),y={timeout:L.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:L.fragLoadingMaxRetryTimeout,highWaterMark:p};A.stats=c.stats,c.load(T,y,{onSuccess:function(N,B,O,j){S.resetLoader(a,c),S.updateStatsFromPart(a,A);var P={frag:a,part:A,payload:N.data,networkDetails:j};_(P),w(P)},onError:function(N,B,O){S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:a,part:A,response:N,networkDetails:O}))},onAbort:function(N,B,O){a.stats.aborted=A.stats.aborted,S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:a,part:A,networkDetails:O}))},onTimeout:function(N,B,O){S.resetLoader(a,c),x(new f({type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:a,part:A,networkDetails:O}))}})})},h.updateStatsFromPart=function(a,A){var _=a.stats,S=A.stats,L=S.total;if(_.loaded+=S.loaded,L){var R=Math.round(a.duration/A.duration),C=Math.min(Math.round(_.loaded/L),R),w=R-C,x=w*Math.round(_.loaded/C);_.total=_.loaded+x}else _.total=Math.max(_.loaded,_.total);var c=_.loading,T=S.loading;c.start?c.first+=T.first-T.start:(c.start=T.start,c.first=T.first),c.end=T.end},h.resetLoader=function(a,A){a.loader=null,this.loader===A&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),A.destroy()},o}();function u(o,h){h===void 0&&(h=null);var s=h||o,a={frag:o,part:h,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},A=s.byteRangeStartOffset,_=s.byteRangeEndOffset;return Object(X.isFiniteNumber)(A)&&Object(X.isFiniteNumber)(_)&&(a.rangeStart=A,a.rangeEnd=_),a}var f=function(o){U(h,o);function h(s){for(var a,A=arguments.length,_=new Array(A>1?A-1:0),S=1;S>8*(15-L)&255;return S},a.setDecryptDataFromLevelKey=function(_,S){var L=_;return(_==null?void 0:_.method)==="AES-128"&&_.uri&&!_.iv&&(L=W.LevelKey.fromURI(_.uri),L.method=_.method,L.iv=this.createInitializationVector(S),L.keyFormat="identity"),L},a.setElementaryStreamInfo=function(_,S,L,R,C,w){w===void 0&&(w=!1);var x=this.elementaryStreams,c=x[_];if(!c){x[_]={startPTS:S,endPTS:L,startDTS:R,endDTS:C,partial:w};return}c.startPTS=Math.min(c.startPTS,S),c.endPTS=Math.max(c.endPTS,L),c.startDTS=Math.min(c.startDTS,R),c.endDTS=Math.max(c.endDTS,C)},a.clearElementaryStreamInfo=function(){var _=this.elementaryStreams;_[l.AUDIO]=null,_[l.VIDEO]=null,_[l.AUDIOVIDEO]=null},p(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var _=this.sn;typeof _!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&G.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),_=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,_)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(X.isFiniteNumber)(this.programDateTime))return null;var _=Object(X.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+_*1e3}},{key:"encrypted",get:function(){var _;return!!((_=this.decryptdata)!==null&&_!==void 0&&_.keyFormat&&this.decryptdata.uri)}}]),s}(u),o=function(h){D(s,h);function s(a,A,_,S,L){var R;R=h.call(this,_)||this,R.fragOffset=0,R.duration=0,R.gap=!1,R.independent=!1,R.relurl=void 0,R.fragment=void 0,R.index=void 0,R.stats=new i.LoadStats,R.duration=a.decimalFloatingPoint("DURATION"),R.gap=a.bool("GAP"),R.independent=a.bool("INDEPENDENT"),R.relurl=a.enumeratedString("URI"),R.fragment=A,R.index=S;var C=a.enumeratedString("BYTERANGE");return C&&R.setByteRange(C,L),L&&(R.fragOffset=L.fragOffset+L.duration),R}return p(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 A=this.elementaryStreams;return!!(A.audio||A.video||A.audiovideo)}}]),s}(u)},"./src/loader/key-loader.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return G});var X=M("./src/events.ts"),F=M("./src/errors.ts"),U=M("./src/utils/logger.ts"),G=function(){function W(D){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=D,this._registerListeners()}var i=W.prototype;return i._registerListeners=function(){this.hls.on(X.Events.KEY_LOADING,this.onKeyLoading,this)},i._unregisterListeners=function(){this.hls.off(X.Events.KEY_LOADING,this.onKeyLoading)},i.destroy=function(){this._unregisterListeners();for(var g in this.loaders){var m=this.loaders[g];m&&m.destroy()}this.loaders={}},i.onKeyLoading=function(g,m){var p=m.frag,l=p.type,u=this.loaders[l];if(!p.decryptdata){U.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=p.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var o=this.hls.config;if(u&&(U.logger.warn("abort previous key loader for type:"+l),u.abort()),!f){U.logger.warn("key uri is falsy");return}var h=o.loader,s=p.loader=this.loaders[l]=new h(o);this.decrypturl=f,this.decryptkey=null;var a={url:f,frag:p,responseType:"arraybuffer"},A={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout,highWaterMark:0},_={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(a,A,_)}else this.decryptkey&&(p.decryptdata.key=this.decryptkey,this.hls.trigger(X.Events.KEY_LOADED,{frag:p}))},i.loadsuccess=function(g,m,p){var l=p.frag;if(!l.decryptdata){U.logger.error("after key load, decryptdata unset");return}this.decryptkey=l.decryptdata.key=new Uint8Array(g.data),l.loader=null,delete this.loaders[l.type],this.hls.trigger(X.Events.KEY_LOADED,{frag:l})},i.loaderror=function(g,m){var p=m.frag,l=p.loader;l&&l.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:p,response:g})},i.loadtimeout=function(g,m){var p=m.frag,l=p.loader;l&&l.abort(),delete this.loaders[p.type],this.hls.trigger(X.Events.ERROR,{type:F.ErrorTypes.NETWORK_ERROR,details:F.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:p})},W}()},"./src/loader/level-details.ts":function(ie,$,M){"use strict";M.r($),M.d($,"LevelDetails",function(){return W});var X=M("./src/polyfills/number.ts");function F(i,D){for(var g=0;gm.endSN||p>0||p===0&&l>0,this.updated||this.advanced?this.misses=Math.floor(m.misses*.6):this.misses=m.misses+1,this.availabilityDelay=m.availabilityDelay},U(i,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(X.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||G}},{key:"drift",get:function(){var m=this.driftEndTime-this.driftStartTime;if(m>0){var p=this.driftEnd-this.driftStart;return p*1e3/m}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var m;return(m=this.fragments)!==null&&m!==void 0&&m.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 m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var m;return(m=this.partList)!==null&&m!==void 0&&m.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),i}()},"./src/loader/level-key.ts":function(ie,$,M){"use strict";M.r($),M.d($,"LevelKey",function(){return W});var X=M("./node_modules/url-toolkit/src/url-toolkit.js"),F=M.n(X);function U(i,D){for(var g=0;g2){var x=w.shift()+".";return x+=parseInt(w.shift()).toString(16),x+=("000"+parseInt(w.shift()).toString(16)).substr(-4),x}return C},L.resolve=function(C,w){return F.buildAbsoluteURL(w,C,{alwaysNormalize:!0})},L.parseMasterPlaylist=function(C,w){var x=[],c={},T=!1;p.lastIndex=0;for(var y;(y=p.exec(C))!=null;)if(y[1]){var v=new D.AttrList(y[1]),N={attrs:v,bitrate:v.decimalInteger("AVERAGE-BANDWIDTH")||v.decimalInteger("BANDWIDTH"),name:v.NAME,url:L.resolve(y[2],w)},B=v.decimalResolution("RESOLUTION");B&&(N.width=B.width,N.height=B.height),a((v.CODECS||"").split(/[ ,]+/).filter(function(j){return j}),N),N.videoCodec&&N.videoCodec.indexOf("avc1")!==-1&&(N.videoCodec=L.convertAVC1ToAVCOTI(N.videoCodec)),x.push(N)}else if(y[3]){var O=new D.AttrList(y[3]);O["DATA-ID"]&&(T=!0,c[O["DATA-ID"]]=O)}return{levels:x,sessionData:T?c:null}},L.parseMasterPlaylistMedia=function(C,w,x,c){c===void 0&&(c=[]);var T,y=[],v=0;for(l.lastIndex=0;(T=l.exec(C))!==null;){var N=new D.AttrList(T[1]);if(N.TYPE===x){var B={attrs:N,bitrate:0,id:v++,groupId:N["GROUP-ID"],instreamId:N["INSTREAM-ID"],name:N.NAME||N.LANGUAGE||"",type:x,default:N.bool("DEFAULT"),autoselect:N.bool("AUTOSELECT"),forced:N.bool("FORCED"),lang:N.LANGUAGE,url:N.URI?L.resolve(N.URI,w):""};if(c.length){var O=L.findGroup(c,B.groupId)||c[0];A(B,O,"audioCodec"),A(B,O,"textCodec")}y.push(B)}}return y},L.parseLevelPlaylist=function(C,w,x,c,T){var y=new W.LevelDetails(w),v=y.fragments,N=null,B=0,O=0,j=0,P=0,b=null,Y=new G.Fragment(c,w),ee,le,ue,ke=-1,Se=!1;for(u.lastIndex=0,y.m3u8=C;(ee=u.exec(C))!==null;){Se&&(Se=!1,Y=new G.Fragment(c,w),Y.start=j,Y.sn=B,Y.cc=P,Y.level=x,N&&(Y.initSegment=N,Y.rawProgramDateTime=N.rawProgramDateTime));var Ce=ee[1];if(Ce){Y.duration=parseFloat(Ce);var ce=(" "+ee[2]).slice(1);Y.title=ce||null,Y.tagList.push(ce?["INF",Ce,ce]:["INF",Ce])}else if(ee[3])Object(X.isFiniteNumber)(Y.duration)&&(Y.start=j,ue&&(Y.levelkey=ue),Y.sn=B,Y.level=x,Y.cc=P,Y.urlId=T,v.push(Y),Y.relurl=(" "+ee[3]).slice(1),S(Y,b),b=Y,j+=Y.duration,B++,O=0,Se=!0);else if(ee[4]){var pe=(" "+ee[4]).slice(1);b?Y.setByteRange(pe,b):Y.setByteRange(pe)}else if(ee[5])Y.rawProgramDateTime=(" "+ee[5]).slice(1),Y.tagList.push(["PROGRAM-DATE-TIME",Y.rawProgramDateTime]),ke===-1&&(ke=v.length);else{if(ee=ee[0].match(f),!ee){g.logger.warn("No matches on slow regex match for level playlist!");continue}for(le=1;le-1){g.logger.warn("Keyformat "+Ue+" is not supported from the manifest");continue}else if(Ue!=="identity")continue;Ge&&(ue=i.LevelKey.fromURL(w,oe),oe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Ge)>=0&&(ue.method=Ge,ue.keyFormat=Ue,Ae&&(ue.keyID=Ae),we&&(ue.keyFormatVersions=we),ue.iv=ye));break}case"START":{var Ze=new D.AttrList(ae),$e=Ze.decimalFloatingPoint("TIME-OFFSET");Object(X.isFiniteNumber)($e)&&(y.startTimeOffset=$e);break}case"MAP":{var tt=new D.AttrList(ae);Y.relurl=tt.URI,tt.BYTERANGE&&Y.setByteRange(tt.BYTERANGE),Y.level=x,Y.sn="initSegment",ue&&(Y.levelkey=ue),Y.initSegment=null,N=Y,Se=!0;break}case"SERVER-CONTROL":{var et=new D.AttrList(ae);y.canBlockReload=et.bool("CAN-BLOCK-RELOAD"),y.canSkipUntil=et.optionalFloat("CAN-SKIP-UNTIL",0),y.canSkipDateRanges=y.canSkipUntil>0&&et.bool("CAN-SKIP-DATERANGES"),y.partHoldBack=et.optionalFloat("PART-HOLD-BACK",0),y.holdBack=et.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Je=new D.AttrList(ae);y.partTarget=Je.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Me=y.partList;Me||(Me=y.partList=[]);var ut=O>0?Me[Me.length-1]:void 0,rt=O++,Fe=new G.Part(new D.AttrList(ae),Y,w,rt,ut);Me.push(Fe),Y.duration+=Fe.duration;break}case"PRELOAD-HINT":{var je=new D.AttrList(ae);y.preloadHint=je;break}case"RENDITION-REPORT":{var Ee=new D.AttrList(ae);y.renditionReports=y.renditionReports||[],y.renditionReports.push(Ee);break}default:g.logger.warn("line parsed but not handled: "+ee);break}}}b&&!b.relurl?(v.pop(),j-=b.duration,y.partList&&(y.fragmentHint=b)):y.partList&&(S(Y,b),Y.cc=P,y.fragmentHint=Y);var ge=v.length,_e=v[0],re=v[ge-1];if(j+=y.skippedSegments*y.targetduration,j>0&&ge&&re){y.averagetargetduration=j/ge;var ne=re.sn;y.endSN=ne!=="initSegment"?ne:0,_e&&(y.startCC=_e.cc,_e.initSegment||y.fragments.every(function(he){return he.relurl&&h(he.relurl)})&&(g.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Y=new G.Fragment(c,w),Y.relurl=re.relurl,Y.level=x,Y.sn="initSegment",_e.initSegment=Y,y.needSidxRanges=!0))}else y.endSN=0,y.startCC=0;return y.fragmentHint&&(j+=y.fragmentHint.duration),y.totalduration=j,y.endCC=P,ke>0&&_(v,ke),y},L}();function a(L,R){["video","audio","text"].forEach(function(C){var w=L.filter(function(c){return Object(m.isCodecType)(c,C)});if(w.length){var x=w.filter(function(c){return c.lastIndexOf("avc1",0)===0||c.lastIndexOf("mp4a",0)===0});R[C+"Codec"]=x.length>0?x[0]:w[0],L=L.filter(function(c){return w.indexOf(c)===-1})}}),R.unknownCodecs=L}function A(L,R,C){var w=R[C];w&&(L[C]=w)}function _(L,R){for(var C=L[R],w=R;w--;){var x=L[w];if(!x)return;x.programDateTime=C.programDateTime-x.duration*1e3,C=x}}function S(L,R){L.rawProgramDateTime?L.programDateTime=Date.parse(L.rawProgramDateTime):R!=null&&R.programDateTime&&(L.programDateTime=R.endProgramDateTime),Object(X.isFiniteNumber)(L.programDateTime)||(L.programDateTime=null,L.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ie,$,M){"use strict";M.r($);var X=M("./src/polyfills/number.ts"),F=M("./src/events.ts"),U=M("./src/errors.ts"),G=M("./src/utils/logger.ts"),W=M("./src/utils/mp4-tools.ts"),i=M("./src/loader/m3u8-parser.ts"),D=M("./src/types/loader.ts"),g=M("./src/utils/attr-list.ts");function m(u){var f=u.type;switch(f){case D.PlaylistContextType.AUDIO_TRACK:return D.PlaylistLevelType.AUDIO;case D.PlaylistContextType.SUBTITLE_TRACK:return D.PlaylistLevelType.SUBTITLE;default:return D.PlaylistLevelType.MAIN}}function p(u,f){var o=u.url;return(o===void 0||o.indexOf("data:")===0)&&(o=f.url),o}var l=function(){function u(o){this.hls=void 0,this.loaders=Object.create(null),this.hls=o,this.registerListeners()}var f=u.prototype;return f.registerListeners=function(){var h=this.hls;h.on(F.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(F.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(F.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.on(F.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var h=this.hls;h.off(F.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(F.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(F.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.off(F.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(h){var s=this.hls.config,a=s.pLoader,A=s.loader,_=a||A,S=new _(s);return h.loader=S,this.loaders[h.type]=S,S},f.getInternalLoader=function(h){return this.loaders[h.type]},f.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},f.destroyInternalLoaders=function(){for(var h in this.loaders){var s=this.loaders[h];s&&s.destroy(),this.resetInternalLoader(h)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(h,s){var a=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:D.PlaylistContextType.MANIFEST,url:a,deliveryDirectives:null})},f.onLevelLoading=function(h,s){var a=s.id,A=s.level,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:null,level:A,responseType:"text",type:D.PlaylistContextType.LEVEL,url:_,deliveryDirectives:S})},f.onAudioTrackLoading=function(h,s){var a=s.id,A=s.groupId,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:A,level:null,responseType:"text",type:D.PlaylistContextType.AUDIO_TRACK,url:_,deliveryDirectives:S})},f.onSubtitleTrackLoading=function(h,s){var a=s.id,A=s.groupId,_=s.url,S=s.deliveryDirectives;this.load({id:a,groupId:A,level:null,responseType:"text",type:D.PlaylistContextType.SUBTITLE_TRACK,url:_,deliveryDirectives:S})},f.load=function(h){var s,a=this.hls.config,A=this.getInternalLoader(h);if(A){var _=A.context;if(_&&_.url===h.url){G.logger.trace("[playlist-loader]: playlist request ongoing");return}G.logger.log("[playlist-loader]: aborting previous loader for type: "+h.type),A.abort()}var S,L,R,C;switch(h.type){case D.PlaylistContextType.MANIFEST:S=a.manifestLoadingMaxRetry,L=a.manifestLoadingTimeOut,R=a.manifestLoadingRetryDelay,C=a.manifestLoadingMaxRetryTimeout;break;case D.PlaylistContextType.LEVEL:case D.PlaylistContextType.AUDIO_TRACK:case D.PlaylistContextType.SUBTITLE_TRACK:S=0,L=a.levelLoadingTimeOut;break;default:S=a.levelLoadingMaxRetry,L=a.levelLoadingTimeOut,R=a.levelLoadingRetryDelay,C=a.levelLoadingMaxRetryTimeout;break}if(A=this.createInternalLoader(h),(s=h.deliveryDirectives)!==null&&s!==void 0&&s.part){var w;if(h.type===D.PlaylistContextType.LEVEL&&h.level!==null?w=this.hls.levels[h.level].details:h.type===D.PlaylistContextType.AUDIO_TRACK&&h.id!==null?w=this.hls.audioTracks[h.id].details:h.type===D.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(w=this.hls.subtitleTracks[h.id].details),w){var x=w.partTarget,c=w.targetduration;x&&c&&(L=Math.min(Math.max(x*3,c*.8)*1e3,L))}}var T={timeout:L,maxRetry:S,retryDelay:R,maxRetryDelay:C,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};A.load(h,T,y)},f.loadsuccess=function(h,s,a,A){if(A===void 0&&(A=null),a.isSidxRequest){this.handleSidxRequest(h,a),this.handlePlaylistLoaded(h,s,a,A);return}this.resetInternalLoader(a.type);var _=h.data;if(_.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,a,"no EXTM3U delimiter",A);return}s.parsing.start=performance.now(),_.indexOf("#EXTINF:")>0||_.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,s,a,A):this.handleMasterPlaylist(h,s,a,A)},f.loaderror=function(h,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!1,h)},f.loadtimeout=function(h,s,a){a===void 0&&(a=null),this.handleNetworkError(s,a,!0)},f.handleMasterPlaylist=function(h,s,a,A){var _=this.hls,S=h.data,L=p(h,a),R=i.default.parseMasterPlaylist(S,L),C=R.levels,w=R.sessionData;if(!C.length){this.handleManifestParsingError(h,a,"no level found in manifest",A);return}var x=C.map(function(B){return{id:B.attrs.AUDIO,audioCodec:B.audioCodec}}),c=C.map(function(B){return{id:B.attrs.SUBTITLES,textCodec:B.textCodec}}),T=i.default.parseMasterPlaylistMedia(S,L,"AUDIO",x),y=i.default.parseMasterPlaylistMedia(S,L,"SUBTITLES",c),v=i.default.parseMasterPlaylistMedia(S,L,"CLOSED-CAPTIONS");if(T.length){var N=T.some(function(B){return!B.url});!N&&C[0].audioCodec&&!C[0].attrs.AUDIO&&(G.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 g.AttrList({}),bitrate:0,url:""}))}_.trigger(F.Events.MANIFEST_LOADED,{levels:C,audioTracks:T,subtitles:y,captions:v,url:L,stats:s,networkDetails:A,sessionData:w})},f.handleTrackOrLevelPlaylist=function(h,s,a,A){var _=this.hls,S=a.id,L=a.level,R=a.type,C=p(h,a),w=Object(X.isFiniteNumber)(S)?S:0,x=Object(X.isFiniteNumber)(L)?L:w,c=m(a),T=i.default.parseLevelPlaylist(h.data,C,x,c,w);if(!T.fragments.length){_.trigger(F.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:C,reason:"no fragments found in level",level:typeof a.level=="number"?a.level:void 0});return}if(R===D.PlaylistContextType.MANIFEST){var y={attrs:new g.AttrList({}),bitrate:0,details:T,name:"",url:C};_.trigger(F.Events.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:C,stats:s,networkDetails:A,sessionData:null})}if(s.parsing.end=performance.now(),T.needSidxRanges){var v,N=(v=T.fragments[0].initSegment)===null||v===void 0?void 0:v.url;this.load({url:N,isSidxRequest:!0,type:R,level:L,levelDetails:T,id:S,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}a.levelDetails=T,this.handlePlaylistLoaded(h,s,a,A)},f.handleSidxRequest=function(h,s){var a=Object(W.parseSegmentIndex)(new Uint8Array(h.data));if(!a)return;var A=a.references,_=s.levelDetails;A.forEach(function(S,L){var R=S.info,C=_.fragments[L];C.byteRange.length===0&&C.setByteRange(String(1+R.end-R.start)+"@"+String(R.start)),C.initSegment&&C.initSegment.setByteRange(String(a.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(h,s,a,A){this.hls.trigger(F.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===D.PlaylistContextType.MANIFEST,url:h.url,reason:a,response:h,context:s,networkDetails:A})},f.handleNetworkError=function(h,s,a,A){a===void 0&&(a=!1),G.logger.warn("[playlist-loader]: A network "+(a?"timeout":"error")+" occurred while loading "+h.type+" level: "+h.level+" id: "+h.id+' group-id: "'+h.groupId+'"');var _=U.ErrorDetails.UNKNOWN,S=!1,L=this.getInternalLoader(h);switch(h.type){case D.PlaylistContextType.MANIFEST:_=a?U.ErrorDetails.MANIFEST_LOAD_TIMEOUT:U.ErrorDetails.MANIFEST_LOAD_ERROR,S=!0;break;case D.PlaylistContextType.LEVEL:_=a?U.ErrorDetails.LEVEL_LOAD_TIMEOUT:U.ErrorDetails.LEVEL_LOAD_ERROR,S=!1;break;case D.PlaylistContextType.AUDIO_TRACK:_=a?U.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:U.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,S=!1;break;case D.PlaylistContextType.SUBTITLE_TRACK:_=a?U.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:U.ErrorDetails.SUBTITLE_LOAD_ERROR,S=!1;break}L&&this.resetInternalLoader(h.type);var R={type:U.ErrorTypes.NETWORK_ERROR,details:_,fatal:S,url:h.url,loader:L,context:h,networkDetails:s};A&&(R.response=A),this.hls.trigger(F.Events.ERROR,R)},f.handlePlaylistLoaded=function(h,s,a,A){var _=a.type,S=a.level,L=a.id,R=a.groupId,C=a.loader,w=a.levelDetails,x=a.deliveryDirectives;if(!(w!=null&&w.targetduration)){this.handleManifestParsingError(h,a,"invalid target duration",A);return}if(!C)return;w.live&&(C.getCacheAge&&(w.ageHeader=C.getCacheAge()||0),(!C.getCacheAge||isNaN(w.ageHeader))&&(w.ageHeader=0));switch(_){case D.PlaylistContextType.MANIFEST:case D.PlaylistContextType.LEVEL:this.hls.trigger(F.Events.LEVEL_LOADED,{details:w,level:S||0,id:L||0,stats:s,networkDetails:A,deliveryDirectives:x});break;case D.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(F.Events.AUDIO_TRACK_LOADED,{details:w,id:L||0,groupId:R||"",stats:s,networkDetails:A,deliveryDirectives:x});break;case D.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(F.Events.SUBTITLE_TRACK_LOADED,{details:w,id:L||0,groupId:R||"",stats:s,networkDetails:A,deliveryDirectives:x});break}},u}();$.default=l},"./src/polyfills/number.ts":function(ie,$,M){"use strict";M.r($),M.d($,"isFiniteNumber",function(){return X}),M.d($,"MAX_SAFE_INTEGER",function(){return F});var X=Number.isFinite||function(U){return typeof U=="number"&&isFinite(U)},F=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ie,$,M){"use strict";M.r($);var X=function(){function F(){}return F.getSilentFrame=function(G,W){switch(G){case"mp4a.40.2":if(W===1)return new Uint8Array([0,200,0,128,35,128]);if(W===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(W===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(W===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(W===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(W===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(W===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(W===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(W===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},F}();$.default=X},"./src/remux/mp4-generator.ts":function(ie,$,M){"use strict";M.r($);var X=Math.pow(2,32)-1,F=function(){function U(){}return U.init=function(){U.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 W;for(W in U.types)U.types.hasOwnProperty(W)&&(U.types[W]=[W.charCodeAt(0),W.charCodeAt(1),W.charCodeAt(2),W.charCodeAt(3)]);var i=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]),D=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]);U.HDLR_TYPES={video:i,audio:D};var g=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m=new Uint8Array([0,0,0,0,0,0,0,0]);U.STTS=U.STSC=U.STCO=m,U.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),U.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),U.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var p=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);U.FTYP=U.box(U.types.ftyp,p,u,p,l),U.DINF=U.box(U.types.dinf,U.box(U.types.dref,g))},U.box=function(W){for(var i=8,D=arguments.length,g=new Array(D>1?D-1:0),m=1;m>24&255,u[1]=i>>16&255,u[2]=i>>8&255,u[3]=i&255,u.set(W,4),p=0,i=8;p>24&255,W>>16&255,W>>8&255,W&255,D>>24,D>>16&255,D>>8&255,D&255,g>>24,g>>16&255,g>>8&255,g&255,85,196,0,0]))},U.mdia=function(W){return U.box(U.types.mdia,U.mdhd(W.timescale,W.duration),U.hdlr(W.type),U.minf(W))},U.mfhd=function(W){return U.box(U.types.mfhd,new Uint8Array([0,0,0,0,W>>24,W>>16&255,W>>8&255,W&255]))},U.minf=function(W){return W.type==="audio"?U.box(U.types.minf,U.box(U.types.smhd,U.SMHD),U.DINF,U.stbl(W)):U.box(U.types.minf,U.box(U.types.vmhd,U.VMHD),U.DINF,U.stbl(W))},U.moof=function(W,i,D){return U.box(U.types.moof,U.mfhd(W),U.traf(D,i))},U.moov=function(W){for(var i=W.length,D=[];i--;)D[i]=U.trak(W[i]);return U.box.apply(null,[U.types.moov,U.mvhd(W[0].timescale,W[0].duration)].concat(D).concat(U.mvex(W)))},U.mvex=function(W){for(var i=W.length,D=[];i--;)D[i]=U.trex(W[i]);return U.box.apply(null,[U.types.mvex].concat(D))},U.mvhd=function(W,i){i*=W;var D=Math.floor(i/(X+1)),g=Math.floor(i%(X+1)),m=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,W>>24&255,W>>16&255,W>>8&255,W&255,D>>24,D>>16&255,D>>8&255,D&255,g>>24,g>>16&255,g>>8&255,g&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 U.box(U.types.mvhd,m)},U.sdtp=function(W){var i=W.samples||[],D=new Uint8Array(4+i.length),g,m;for(g=0;g>>8&255),i.push(p&255),i=i.concat(Array.prototype.slice.call(m));for(g=0;g>>8&255),D.push(p&255),D=D.concat(Array.prototype.slice.call(m));var l=U.box(U.types.avcC,new Uint8Array([1,i[3],i[4],i[5],252|3,224|W.sps.length].concat(i).concat([W.pps.length]).concat(D))),u=W.width,f=W.height,o=W.pixelRatio[0],h=W.pixelRatio[1];return U.box(U.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,u>>8&255,u&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]),l,U.box(U.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),U.box(U.types.pasp,new Uint8Array([o>>24,o>>16&255,o>>8&255,o&255,h>>24,h>>16&255,h>>8&255,h&255])))},U.esds=function(W){var i=W.config.length;return new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(W.config).concat([6,1,2]))},U.mp4a=function(W){var i=W.samplerate;return U.box(U.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,W.channelCount,0,16,0,0,0,0,i>>8&255,i&255,0,0]),U.box(U.types.esds,U.esds(W)))},U.mp3=function(W){var i=W.samplerate;return U.box(U.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,W.channelCount,0,16,0,0,0,0,i>>8&255,i&255,0,0]))},U.stsd=function(W){return W.type==="audio"?!W.isAAC&&W.codec==="mp3"?U.box(U.types.stsd,U.STSD,U.mp3(W)):U.box(U.types.stsd,U.STSD,U.mp4a(W)):U.box(U.types.stsd,U.STSD,U.avc1(W))},U.tkhd=function(W){var i=W.id,D=W.duration*W.timescale,g=W.width,m=W.height,p=Math.floor(D/(X+1)),l=Math.floor(D%(X+1));return U.box(U.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,i>>24&255,i>>16&255,i>>8&255,i&255,0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255,l>>24,l>>16&255,l>>8&255,l&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,g>>8&255,g&255,0,0,m>>8&255,m&255,0,0]))},U.traf=function(W,i){var D=U.sdtp(W),g=W.id,m=Math.floor(i/(X+1)),p=Math.floor(i%(X+1));return U.box(U.types.traf,U.box(U.types.tfhd,new Uint8Array([0,0,0,0,g>>24,g>>16&255,g>>8&255,g&255])),U.box(U.types.tfdt,new Uint8Array([1,0,0,0,m>>24,m>>16&255,m>>8&255,m&255,p>>24,p>>16&255,p>>8&255,p&255])),U.trun(W,D.length+16+20+8+16+8+8),D)},U.trak=function(W){return W.duration=W.duration||4294967295,U.box(U.types.trak,U.tkhd(W),U.mdia(W))},U.trex=function(W){var i=W.id;return U.box(U.types.trex,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},U.trun=function(W,i){var D=W.samples||[],g=D.length,m=12+16*g,p=new Uint8Array(m),l,u,f,o,h,s;for(i+=8+m,p.set([0,0,15,1,g>>>24&255,g>>>16&255,g>>>8&255,g&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255],0),l=0;l>>24&255,f>>>16&255,f>>>8&255,f&255,o>>>24&255,o>>>16&255,o>>>8&255,o&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&240<<8,h.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*l);return U.box(U.types.trun,p)},U.initSegment=function(W){U.types||U.init();var i=U.moov(W),D=new Uint8Array(U.FTYP.byteLength+i.byteLength);return D.set(U.FTYP),D.set(i,U.FTYP.byteLength),D},U}();F.types=void 0,F.HDLR_TYPES=void 0,F.STTS=void 0,F.STSC=void 0,F.STCO=void 0,F.STSZ=void 0,F.VMHD=void 0,F.SMHD=void 0,F.STSD=void 0,F.FTYP=void 0,F.DINF=void 0,$.default=F},"./src/remux/mp4-remuxer.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return s}),M.d($,"normalizePts",function(){return a});var X=M("./src/polyfills/number.ts"),F=M("./src/remux/aac-helper.ts"),U=M("./src/remux/mp4-generator.ts"),G=M("./src/events.ts"),W=M("./src/errors.ts"),i=M("./src/utils/logger.ts"),D=M("./src/types/loader.ts"),g=M("./src/utils/timescale-conversion.ts");function m(){return m=Object.assign||function(L){for(var R=1;R0?T:y.pts},w[0].pts);return x&&i.logger.debug("PTS rollover detected"),c},R.remux=function(w,x,c,T,y,v,N,B){var O,j,P,b,Y,ee,le=y,ue=y,ke=w.pid>-1,Se=x.pid>-1,Ce=x.samples.length,ce=w.samples.length>0,pe=Ce>1,se=(!ke||ce)&&(!Se||pe)||this.ISGenerated||N;if(se){this.ISGenerated||(P=this.generateIS(w,x,y));var ae=this.isVideoContiguous,Oe=-1;if(pe&&(Oe=A(x.samples),!ae&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,Oe>0){i.logger.warn("[mp4-remuxer]: Dropped "+Oe+" out of "+Ce+" video samples due to a missing keyframe");var Te=this.getVideoStartPts(x.samples);x.samples=x.samples.slice(Oe),x.dropped+=Oe,ue+=(x.samples[0].pts-Te)/(x.timescale||9e4)}else Oe===-1&&(i.logger.warn("[mp4-remuxer]: No keyframe found out of "+Ce+" video samples"),ee=!1);if(this.ISGenerated){if(ce&&pe){var Ne=this.getVideoStartPts(x.samples),De=a(w.samples[0].pts,Ne)-Ne,We=De/x.inputTimeScale;le+=Math.max(0,We),ue+=Math.max(0,-We)}if(ce){if(w.samplerate||(i.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),P=this.generateIS(w,x,y)),j=this.remuxAudio(w,le,this.isAudioContiguous,v,Se||pe||B===D.PlaylistLevelType.AUDIO?ue:void 0),pe){var Le=j?j.endPTS-j.startPTS:0;x.inputTimeScale||(i.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),P=this.generateIS(w,x,y)),O=this.remuxVideo(x,ue,ae,Le)}}else pe&&(O=this.remuxVideo(x,ue,ae,0));O&&(O.firstKeyFrame=Oe,O.independent=Oe!==-1)}}return this.ISGenerated&&(c.samples.length&&(Y=this.remuxID3(c,y)),T.samples.length&&(b=this.remuxText(T,y))),{audio:j,video:O,initSegment:P,independent:ee,text:b,id3:Y}},R.generateIS=function(w,x,c){var T=w.samples,y=x.samples,v=this.typeSupported,N={},B=!Object(X.isFiniteNumber)(this._initPTS),O="audio/mp4",j,P,b;if(B&&(j=P=Infinity),w.config&&T.length&&(w.timescale=w.samplerate,w.isAAC||(v.mpeg?(O="audio/mpeg",w.codec=""):v.mp3&&(w.codec="mp3")),N.audio={id:"audio",container:O,codec:w.codec,initSegment:!w.isAAC&&v.mpeg?new Uint8Array(0):U.default.initSegment([w]),metadata:{channelCount:w.channelCount}},B&&(b=w.inputTimeScale,j=P=T[0].pts-Math.round(b*c))),x.sps&&x.pps&&y.length&&(x.timescale=x.inputTimeScale,N.video={id:"main",container:"video/mp4",codec:x.codec,initSegment:U.default.initSegment([x]),metadata:{width:x.width,height:x.height}},B)){b=x.inputTimeScale;var Y=this.getVideoStartPts(y),ee=Math.round(b*c);P=Math.min(P,a(y[0].dts,Y)-ee),j=Math.min(j,Y-ee)}if(Object.keys(N).length)return this.ISGenerated=!0,B&&(this._initPTS=j,this._initDTS=P),{tracks:N,initPTS:j,timescale:b}},R.remuxVideo=function(w,x,c,T){var y=w.inputTimeScale,v=w.samples,N=[],B=v.length,O=this._initPTS,j=this.nextAvcDts,P=8,b,Y,ee,le=Number.POSITIVE_INFINITY,ue=Number.NEGATIVE_INFINITY,ke=0,Se=!1;if(!c||j===null){var Ce=x*y,ce=v[0].pts-a(v[0].dts,v[0].pts);j=Ce-ce}for(var pe=0;pese.pts){var ae=9e4*.2;ke=Math.max(Math.min(ke,se.pts-se.dts),-1*ae)}se.dts0?pe-1:pe].dts&&(Se=!0)}Se&&v.sort(function(wt,St){var dt=wt.dts-St.dts,Ut=wt.pts-St.pts;return dt||Ut}),Y=v[0].dts,ee=v[v.length-1].dts;var Oe=Math.round((ee-Y)/(B-1));if(ke<0){if(keOe,Be=We<-1;if(Le||Be){Le?i.logger.warn("AVC: "+Object(g.toMsFromMpegTsClock)(We,!0)+" ms ("+We+"dts) hole between fragments detected, filling it"):i.logger.warn("AVC: "+Object(g.toMsFromMpegTsClock)(-We,!0)+" ms ("+We+"dts) overlapping between fragments detected"),Y=j;var Ge=v[0].pts-We;v[0].dts=Y,v[0].pts=Ge,i.logger.log("Video: First PTS/DTS adjusted: "+Object(g.toMsFromMpegTsClock)(Ge,!0)+"/"+Object(g.toMsFromMpegTsClock)(Y,!0)+", delta: "+Object(g.toMsFromMpegTsClock)(We,!0)+" ms")}}h&&(Y=Math.max(0,Y));for(var oe=0,ye=0,we=0;we0?Me-1:Me].dts;if(ne.stretchShortVideoTrack&&this.nextAudioPts!==null){var fe=Math.floor(ne.maxBufferHole*y),xe=(T?le+T*y:this.nextAudioPts)-ut.pts;xe>fe?(b=xe-he,b<0&&(b=he),i.logger.log("[mp4-remuxer]: It is approximately "+xe/90+" ms to the next segment; using duration "+b/90+" ms for the last video frame.")):b=he}else b=he}var Pe=Math.round(ut.pts-ut.dts);N.push(new _(ut.key,b,Fe,Pe))}if(N.length&&f&&f<70){var ze=N[0].flags;ze.dependsOn=2,ze.isNonSync=0}console.assert(b!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=j=ee+b,this.isVideoContiguous=!0;var ot=U.default.moof(w.sequenceNumber++,Y,m({},w,{samples:N})),mt="video",ft={data1:ot,data2:et,startPTS:le/y,endPTS:(ue+b)/y,startDTS:Y/y,endDTS:j/y,type:mt,hasAudio:!1,hasVideo:!0,nb:N.length,dropped:w.dropped};return w.samples=[],w.dropped=0,console.assert(et.length,"MDAT length must not be zero"),ft},R.remuxAudio=function(w,x,c,T,y){var v=w.inputTimeScale,N=w.samplerate?w.samplerate:v,B=v/N,O=w.isAAC?l:u,j=O*B,P=this._initPTS,b=!w.isAAC&&this.typeSupported.mpeg,Y=[],ee=w.samples,le=b?0:8,ue=this.nextAudioPts||-1,ke=x*v;if(this.isAudioContiguous=c=c||ee.length&&ue>0&&(T&&Math.abs(ke-ue)<9e3||Math.abs(a(ee[0].pts-P,ke)-ue)<20*j),ee.forEach(function(_e){_e.pts=a(_e.pts-P,ke)}),!c||ue<0){if(ee=ee.filter(function(_e){return _e.pts>=0}),!ee.length)return;y===0?ue=0:T?ue=Math.max(0,ke):ue=ee[0].pts}if(w.isAAC)for(var Se=y!==void 0,Ce=this.config.maxAudioFramesDrift,ce=0,pe=ue;ce=Ce*j&&Te0){ye+=le;try{oe=new Uint8Array(ye)}catch(_e){this.observer.emit(G.Events.ERROR,G.Events.ERROR,{type:W.ErrorTypes.MUX_ERROR,details:W.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ye,reason:"fail allocating audio mdat "+ye});return}if(!b){var et=new DataView(oe.buffer);et.setUint32(0,ye),oe.set(U.default.types.mdat,4)}}else return;oe.set(Ze,le);var Je=Ze.byteLength;le+=Je,Y.push(new _(!0,O,Je,0)),Ge=$e}var Me=Y.length;if(!Me)return;var ut=Y[Y.length-1];this.nextAudioPts=ue=Ge+B*ut.duration;var rt=b?new Uint8Array(0):U.default.moof(w.sequenceNumber++,Be/B,m({},w,{samples:Y}));w.samples=[];var Fe=Be/v,je=ue/v,Ee="audio",ge={data1:rt,data2:oe,startPTS:Fe,endPTS:je,startDTS:Fe,endDTS:je,type:Ee,hasAudio:!0,hasVideo:!1,nb:Me};return this.isAudioContiguous=!0,console.assert(oe.length,"MDAT length must not be zero"),ge},R.remuxEmptyAudio=function(w,x,c,T){var y=w.inputTimeScale,v=w.samplerate?w.samplerate:y,N=y/v,B=this.nextAudioPts,O=(B!==null?B:T.startDTS*y)+this._initDTS,j=T.endDTS*y+this._initDTS,P=N*l,b=Math.ceil((j-O)/P),Y=F.default.getSilentFrame(w.manifestCodec||w.codec,w.channelCount);if(i.logger.warn("[mp4-remuxer]: remux empty Audio"),!Y){i.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],le=0;le4294967296;)L+=C;return L}function A(L){for(var R=0;R0?this.lastEndDTS=w:(G.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var x=!!L.audio,c=!!L.video,T="";x&&(T+="audio"),c&&(T+="video");var y={data1:_,startPTS:C,startDTS:C,endPTS:w,endDTS:w,type:T,hasAudio:x,hasVideo:c,nb:1,dropped:0};return A.audio=y.type==="audio"?y:void 0,A.video=y.type!=="audio"?y:void 0,A.text=o,A.id3=f,A.initSegment=S,A},g}(),i=function(m,p,l){return Object(F.getStartDTS)(m,p)-l};function D(g,m){var p=g==null?void 0:g.codec;return p&&p.length>4?p:p==="hvc1"?"hvc1.1.c.L120.90":p==="av01"?"av01.0.04M.08":p==="avc1"||m===U.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}$.default=W},"./src/task-loop.ts":function(ie,$,M){"use strict";M.r($),M.d($,"default",function(){return X});var X=function(){function F(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var U=F.prototype;return U.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},U.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},U.onHandlerDestroyed=function(){},U.hasInterval=function(){return!!this._tickInterval},U.hasNextTick=function(){return!!this._tickTimer},U.setInterval=function(W){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,W),!0)},U.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},U.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},U.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},U.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},U.doTick=function(){},F}()},"./src/types/cmcd.ts":function(ie,$,M){"use strict";M.r($),M.d($,"CMCDVersion",function(){return X}),M.d($,"CMCDObjectType",function(){return F}),M.d($,"CMCDStreamingFormat",function(){return U}),M.d($,"CMCDStreamType",function(){return G});var X=1,F;(function(W){W.MANIFEST="m",W.AUDIO="a",W.VIDEO="v",W.MUXED="av",W.INIT="i",W.CAPTION="c",W.TIMED_TEXT="tt",W.KEY="k",W.OTHER="o"})(F||(F={}));var U;(function(W){W.DASH="d",W.HLS="h",W.SMOOTH="s",W.OTHER="o"})(U||(U={}));var G;(function(W){W.VOD="v",W.LIVE="l"})(G||(G={}))},"./src/types/level.ts":function(ie,$,M){"use strict";M.r($),M.d($,"HlsSkip",function(){return U}),M.d($,"getSkipValue",function(){return G}),M.d($,"HlsUrlParameters",function(){return W}),M.d($,"Level",function(){return i});function X(D,g){for(var m=0;mNumber.MAX_SAFE_INTEGER?Infinity:g},W.hexadecimalInteger=function(D){if(this[D]){var g=(this[D]||"0x").slice(2);g=(g.length&1?"0":"")+g;for(var m=new Uint8Array(g.length/2),p=0;pNumber.MAX_SAFE_INTEGER?Infinity:g},W.decimalFloatingPoint=function(D){return parseFloat(this[D])},W.optionalFloat=function(D,g){var m=this[D];return m?parseFloat(m):g},W.enumeratedString=function(D){return this[D]},W.bool=function(D){return this[D]==="YES"},W.decimalResolution=function(D){var g=X.exec(this[D]);return g===null?void 0:{width:parseInt(g[1],10),height:parseInt(g[2],10)}},G.parseAttrList=function(D){var g,m={},p='"';for(F.lastIndex=0;(g=F.exec(D))!==null;){var l=g[2];l.indexOf(p)===0&&l.lastIndexOf(p)===l.length-1&&(l=l.slice(1,-1)),m[g[1]]=l}return m},G}()},"./src/utils/binary-search.ts":function(ie,$,M){"use strict";M.r($);var X={search:function(U,G){for(var W=0,i=U.length-1,D=null,g=null;W<=i;){D=(W+i)/2|0,g=U[D];var m=G(g);if(m>0)W=D+1;else if(m<0)i=D-1;else return g}return null}};$.default=X},"./src/utils/buffer-helper.ts":function(ie,$,M){"use strict";M.r($),M.d($,"BufferHelper",function(){return U});var X=M("./src/utils/logger.ts"),F={length:0,start:function(){return 0},end:function(){return 0}},U=function(){function G(){}return G.isBuffered=function(i,D){try{if(i){for(var g=G.getBuffered(i),m=0;m=g.start(m)&&D<=g.end(m))return!0}}catch(p){}return!1},G.bufferInfo=function(i,D,g){try{if(i){var m=G.getBuffered(i),p=[],l;for(l=0;lu&&(m[l-1].end=i[p].end):m.push(i[p])}else m.push(i[p])}else m=i;for(var f=0,o,h=D,s=D,a=0;a=A&&D<_)h=A,s=_,f=s-D;else if(D+g=c&&X.logger.log(this.time+" ["+c+"] "+T)},C}(),f=function(w){for(var x=[],c=0;cW&&(this.logger.log(l.DEBUG,"Too large cursor position "+this.pos),this.pos=W)},w.moveCursor=function(c){var T=this.pos+c;if(c>1)for(var y=this.pos+1;y=144&&this.backSpace();var T=U(c);if(this.pos>=W){this.logger.log(l.ERROR,"Cannot insert "+c.toString(16)+" ("+T+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(T,this.currPenState),this.moveCursor(1)},w.clearFromPos=function(c){var T;for(T=c;T0&&(c?y="["+T.join(" | ")+"]":y=T.join(` `)),y},w.getTextAndFormat=function(){return this.rows},C}(),A=function(){function C(x,c,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=x,this.outputFilter=c,this.mode=null,this.verbose=0,this.displayedMemory=new a(T),this.nonDisplayedMemory=new a(T),this.lastOutputScreen=new a(T),this.currRollUpRow=this.displayedMemory.rows[G-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=T}var w=C.prototype;return w.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[G-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},w.getHandler=function(){return this.outputFilter},w.setHandler=function(c){this.outputFilter=c},w.setPAC=function(c){this.writeScreen.setPAC(c)},w.setBkgData=function(c){this.writeScreen.setBkgData(c)},w.setMode=function(c){if(c===this.mode)return;this.mode=c,this.logger.log(l.INFO,"MODE="+c),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=c},w.insertChars=function(c){for(var T=0;T=46,T.italics)T.foreground="white";else{var y=Math.floor(c/2)-16,v=["white","green","blue","cyan","red","yellow","magenta"];T.foreground=v[y]}this.logger.log(l.INFO,"MIDROW: "+JSON.stringify(T)),this.writeScreen.setPen(T)},w.outputDataUpdate=function(c){c===void 0&&(c=!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),c&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:T),this.lastOutputScreen.copy(this.displayedMemory))},w.cueSplitAtTime=function(c){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,c,this.displayedMemory),this.cueStartTime=c))},C}(),_=function(){function C(x,c,T){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var y=new u;this.channels=[null,new A(x,c,y),new A(x+1,T,y)],this.cmdHistory=R(),this.logger=y}var w=C.prototype;return w.getHandler=function(c){return this.channels[c].getHandler()},w.setHandler=function(c,T){this.channels[c].setHandler(T)},w.addData=function(c,T){var y,v,N,B=!1;this.logger.time=c;for(var O=0;O ("+f([v,N])+")"),y=this.parseCmd(v,N),y||(y=this.parseMidrow(v,N)),y||(y=this.parsePAC(v,N)),y||(y=this.parseBackgroundAttributes(v,N)),!y&&(B=this.parseChars(v,N),B)){var j=this.currentChannel;if(j&&j>0){var P=this.channels[j];P.insertChars(B)}else this.logger.log(l.WARNING,"No channel found yet. TEXT-MODE?")}!y&&!B&&this.logger.log(l.WARNING,"Couldn't parse cleaned data "+f([v,N])+" orig: "+f([T[O],T[O+1]]))}},w.parseCmd=function(c,T){var y=this.cmdHistory,v=(c===20||c===28||c===21||c===29)&&T>=32&&T<=47,N=(c===23||c===31)&&T>=33&&T<=35;if(!(v||N))return!1;if(L(c,T,y))return S(null,null,y),this.logger.log(l.DEBUG,"Repeated command ("+f([c,T])+") is dropped"),!0;var B=c===20||c===21||c===23?1:2,O=this.channels[B];return c===20||c===21||c===28||c===29?T===32?O.ccRCL():T===33?O.ccBS():T===34?O.ccAOF():T===35?O.ccAON():T===36?O.ccDER():T===37?O.ccRU(2):T===38?O.ccRU(3):T===39?O.ccRU(4):T===40?O.ccFON():T===41?O.ccRDC():T===42?O.ccTR():T===43?O.ccRTD():T===44?O.ccEDM():T===45?O.ccCR():T===46?O.ccENM():T===47&&O.ccEOC():O.ccTO(T-32),S(c,T,y),this.currentChannel=B,!0},w.parseMidrow=function(c,T){var y=0;if((c===17||c===25)&&T>=32&&T<=47){if(c===17?y=1:y=2,y!==this.currentChannel)return this.logger.log(l.ERROR,"Mismatch channel in midrow parsing"),!1;var v=this.channels[y];return v?(v.ccMIDROW(T),this.logger.log(l.DEBUG,"MIDROW ("+f([c,T])+")"),!0):!1}return!1},w.parsePAC=function(c,T){var y,v=this.cmdHistory,N=(c>=17&&c<=23||c>=25&&c<=31)&&T>=64&&T<=127,B=(c===16||c===24)&&T>=64&&T<=95;if(!(N||B))return!1;if(L(c,T,v))return S(null,null,v),!0;var O=c<=23?1:2;T>=64&&T<=95?y=O===1?i[c]:g[c]:y=O===1?D[c]:m[c];var j=this.channels[O];return j?(j.setPAC(this.interpretPAC(y,T)),S(c,T,v),this.currentChannel=O,!0):!1},w.interpretPAC=function(c,T){var y,v={color:null,italics:!1,indent:null,underline:!1,row:c};return T>95?y=T-96:y=T-64,v.underline=(y&1)===1,y<=13?v.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(y/2)]:y<=15?(v.italics=!0,v.color="white"):v.indent=Math.floor((y-16)/2)*4,v},w.parseChars=function(c,T){var y,v=null,N=null;if(c>=25?(y=2,N=c-8):(y=1,N=c),N>=17&&N<=19){var B;N===17?B=T+80:N===18?B=T+112:B=T+144,this.logger.log(l.INFO,"Special char '"+U(B)+"' in channel "+y),v=[B]}else c>=32&&c<=127&&(v=T===0?[c]:[c,T]);if(v){var O=f(v);this.logger.log(l.DEBUG,"Char codes = "+O.join(",")),S(c,T,this.cmdHistory)}return v},w.parseBackgroundAttributes=function(c,T){var y=(c===16||c===24)&&T>=32&&T<=47,v=(c===23||c===31)&&T>=45&&T<=47;if(!(y||v))return!1;var N,B={};c===16||c===24?(N=Math.floor((T-32)/2),B.background=p[N],T%2===1&&(B.background=B.background+"_semi")):T===45?B.background="transparent":(B.foreground="black",T===47&&(B.underline=!0));var O=c<=23?1:2,j=this.channels[O];return j.setBkgData(B),S(c,T,this.cmdHistory),!0},w.reset=function(){for(var c=0;c=16?h--:h++;var S=Object(X.fixLineBreaks)(s.trim()),L=Object(F.generateCueId)(g,m,S);(!D||!D.cues||!D.cues.getCueById(L))&&(f=new a(g,m,S),f.id=L,f.line=A+1,f.align="left",f.position=10+Math.min(80,Math.floor(h*8/32)*10),l.push(f))}return D&&l.length&&(l.sort(function(R,C){return R.line==="auto"||C.line==="auto"?0:R.line>8&&C.line>8?C.line-R.line:R.line-C.line}),l.forEach(function(R){return Object(U.addCueToTrack)(D,R)})),l}};$.default=W},"./src/utils/discontinuities.ts":function(ie,$,M){"use strict";M.r($),M.d($,"findFirstFragWithCC",function(){return G}),M.d($,"shouldAlignOnDiscontinuities",function(){return W}),M.d($,"findDiscontinuousReferenceFrag",function(){return i}),M.d($,"adjustSlidingStart",function(){return g}),M.d($,"alignStream",function(){return m}),M.d($,"alignPDT",function(){return l}),M.d($,"alignFragmentByPDTDelta",function(){return u}),M.d($,"alignMediaPlaylistByPDT",function(){return f});var X=M("./src/polyfills/number.ts"),F=M("./src/utils/logger.ts"),U=M("./src/controller/level-helper.ts");function G(o,h){for(var s=null,a=0,A=o.length;as.startCC||o&&o.cc=this.minWeight_},G.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},G.destroy=function(){},U}();$.default=F},"./src/utils/ewma.ts":function(ie,$,M){"use strict";M.r($);var X=function(){function F(G,W,i){W===void 0&&(W=0),i===void 0&&(i=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=G,this.alpha_=G?Math.exp(Math.log(.5)/G):0,this.estimate_=W,this.totalWeight_=i}var U=F.prototype;return U.sample=function(W,i){var D=Math.pow(this.alpha_,W);this.estimate_=i*(1-D)+D*this.estimate_,this.totalWeight_+=W},U.getTotalWeight=function(){return this.totalWeight_},U.getEstimate=function(){if(this.alpha_){var W=1-Math.pow(this.alpha_,this.totalWeight_);if(W)return this.estimate_/W}return this.estimate_},F}();$.default=X},"./src/utils/fetch-loader.ts":function(ie,$,M){"use strict";M.r($),M.d($,"fetchSupported",function(){return u});var X=M("./src/polyfills/number.ts"),F=M("./src/loader/load-stats.ts"),U=M("./src/demux/chunk-cache.ts");function G(a,A){a.prototype=Object.create(A.prototype),a.prototype.constructor=a,m(a,A)}function W(a){var A=typeof Map=="function"?new Map:void 0;return W=function(S){if(S===null||!g(S))return S;if(typeof S!="function")throw new TypeError("Super expression must either be null or a function");if(typeof A!="undefined"){if(A.has(S))return A.get(S);A.set(S,L)}function L(){return i(S,arguments,p(this).constructor)}return L.prototype=Object.create(S.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),m(L,S)},W(a)}function i(a,A,_){return D()?i=Reflect.construct:i=function(L,R,C){var w=[null];w.push.apply(w,R);var x=Function.bind.apply(L,w),c=new x;return C&&m(c,C.prototype),c},i.apply(null,arguments)}function D(){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(a){return!1}}function g(a){return Function.toString.call(a).indexOf("[native code]")!==-1}function m(a,A){return m=Object.setPrototypeOf||function(S,L){return S.__proto__=L,S},m(a,A)}function p(a){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},p(a)}function l(){return l=Object.assign||function(a){for(var A=1;A=C&&w(L,R,x.flush(),S)):w(L,R,N,S),y()}).catch(function(){return Promise.reject()})};return T()},a}();function o(a,A){var _={method:"GET",mode:"cors",credentials:"same-origin",signal:A,headers:new self.Headers(l({},a.headers))};return a.rangeEnd&&_.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),_}function h(a,A){return new self.Request(a.url,A)}var s=function(a){G(A,a);function A(_,S,L){var R;return R=a.call(this,_)||this,R.code=void 0,R.details=void 0,R.code=S,R.details=L,R}return A}(W(Error));$.default=f},"./src/utils/imsc1-ttml-parser.ts":function(ie,$,M){"use strict";M.r($),M.d($,"IMSC1_CODEC",function(){return g}),M.d($,"parseIMSC1",function(){return u});var X=M("./src/utils/mp4-tools.ts"),F=M("./src/utils/vttparser.ts"),U=M("./src/utils/vttcue.ts"),G=M("./src/demux/id3.ts"),W=M("./src/utils/timescale-conversion.ts"),i=M("./src/utils/webvtt-parser.ts");function D(){return D=Object.assign||function(C){for(var w=1;w"):X}function W(g){for(var m=arguments.length,p=new Array(m>1?m-1:0),l=1;l>24,A[_+1]=S>>16&255,A[_+2]=S>>8&255,A[_+3]=S&255}function m(A,_){var S=[];if(!_.length)return S;var L,R,C;"data"in A?(L=A.data,R=A.start,C=A.end):(L=A,R=0,C=L.byteLength);for(var w=R;w1?w+x:C;if(c===_[0])if(_.length===1)S.push({data:L,start:w+8,end:T});else{var y=m({data:L,start:w+8,end:T},_.slice(1));y.length&&G.apply(S,y)}w=T}return S}function p(A){var _=m(A,["moov"]),S=_[0],L=S?S.end:null,R=m(A,["sidx"]);if(!R||!R[0])return null;var C=[],w=R[0],x=w.data[0],c=x===0?8:16,T=D(w,c);c+=4;var y=0,v=0;x===0?c+=8:c+=16,c+=2;var N=w.end+v,B=i(w,c);c+=2;for(var O=0;O>>31;if(Y===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ee=D(w,j);j+=4,C.push({referenceSize:b,subsegmentDuration:ee,info:{duration:ee/T,start:N,end:N+b-1}}),N+=b,j+=4,c=j}return{earliestPresentationTime:y,timescale:T,version:x,referencesCount:B,references:C,moovEndOffset:L}}function l(A){for(var _=[],S=m(A,["moov","trak"]),L=0;LW)&&(this.startTime=W),this.endTime=i,this.screen=D,this.timelineController.createCaptionsTrack(this.trackName)},U.reset=function(){this.cueRanges=[]},F}()},"./src/utils/texttrack-utils.ts":function(ie,$,M){"use strict";M.r($),M.d($,"sendAddTrackEvent",function(){return F}),M.d($,"addCueToTrack",function(){return U}),M.d($,"clearCurrentCues",function(){return G}),M.d($,"removeCuesInRange",function(){return W}),M.d($,"getCuesInRange",function(){return D});var X=M("./src/utils/logger.ts");function F(g,m){var p;try{p=new Event("addtrack")}catch(l){p=document.createEvent("Event"),p.initEvent("addtrack",!1,!1)}p.track=g,m.dispatchEvent(p)}function U(g,m){var p=g.mode;if(p==="disabled"&&(g.mode="hidden"),g.cues&&!g.cues.getCueById(m.id))try{if(g.addCue(m),!g.cues.getCueById(m.id))throw new Error("addCue is failed for: "+m)}catch(u){X.logger.debug("[texttrack-utils]: "+u);var l=new self.TextTrackCue(m.startTime,m.endTime,m.text);l.id=m.id,g.addCue(l)}p==="disabled"&&(g.mode=p)}function G(g){var m=g.mode;if(m==="disabled"&&(g.mode="hidden"),g.cues)for(var p=g.cues.length;p--;)g.removeCue(g.cues[p]);m==="disabled"&&(g.mode=m)}function W(g,m,p){var l=g.mode;if(l==="disabled"&&(g.mode="hidden"),g.cues&&g.cues.length>0)for(var u=D(g.cues,m,p),f=0;fg[p].endTime)return-1;for(var l=0,u=p;l<=u;){var f=Math.floor((u+l)/2);if(mg[f].startTime&&l-1)for(var f=u,o=g.length;f=m&&h.endTime<=p)l.push(h);else if(h.startTime>p)return l}return l}},"./src/utils/time-ranges.ts":function(ie,$,M){"use strict";M.r($);var X={toString:function(U){for(var G="",W=U.length,i=0;i1?m-1:0),l=1;l100)throw new Error("Position must be between 0 and 100.");C=y,this.hasBeenReset=!0}})),Object.defineProperty(l,"positionAlign",i({},u,{get:function(){return w},set:function(y){var v=W(y);if(!v)throw new SyntaxError("An invalid or illegal string was specified.");w=v,this.hasBeenReset=!0}})),Object.defineProperty(l,"size",i({},u,{get:function(){return x},set:function(y){if(y<0||y>100)throw new Error("Size must be between 0 and 100.");x=y,this.hasBeenReset=!0}})),Object.defineProperty(l,"align",i({},u,{get:function(){return c},set:function(y){var v=W(y);if(!v)throw new SyntaxError("An invalid or illegal string was specified.");c=v,this.hasBeenReset=!0}})),l.displayState=void 0}return D.prototype.getCueAsHTML=function(){var g=self.WebVTT;return g.convertCueToDOMTree(self,this.text)},D}()},"./src/utils/vttparser.ts":function(ie,$,M){"use strict";M.r($),M.d($,"parseTimeStamp",function(){return U}),M.d($,"fixLineBreaks",function(){return m}),M.d($,"VTTParser",function(){return p});var X=M("./src/utils/vttcue.ts"),F=function(){function l(){}var u=l.prototype;return u.decode=function(o,h){if(!o)return"";if(typeof o!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(o))},l}();function U(l){function u(o,h,s,a){return(o|0)*3600+(h|0)*60+(s|0)+parseFloat(a||0)}var f=l.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return f?parseFloat(f[2])>59?u(f[2],f[3],0,f[4]):u(f[1],f[2],f[3],f[4]):null}var G=function(){function l(){this.values=Object.create(null)}var u=l.prototype;return u.set=function(o,h){!this.get(o)&&h!==""&&(this.values[o]=h)},u.get=function(o,h,s){return s?this.has(o)?this.values[o]:h[s]:this.has(o)?this.values[o]:h},u.has=function(o){return o in this.values},u.alt=function(o,h,s){for(var a=0;a=0&&s<=100)return this.set(o,s),!0}return!1},l}();function W(l,u,f,o){var h=o?l.split(o):[l];for(var s in h){if(typeof h[s]!="string")continue;var a=h[s].split(f);if(a.length!==2)continue;var A=a[0],_=a[1];u(A,_)}}var i=new X.default(0,0,""),D=i.align==="middle"?"middle":"center";function g(l,u,f){var o=l;function h(){var A=U(l);if(A===null)throw new Error("Malformed timestamp: "+o);return l=l.replace(/^[^\sa-zA-Z-]+/,""),A}function s(A,_){var S=new G;W(A,function(C,w){var x;switch(C){case"region":for(var c=f.length-1;c>=0;c--)if(f[c].id===w){S.set(C,f[c].region);break}break;case"vertical":S.alt(C,w,["rl","lr"]);break;case"line":x=w.split(","),S.integer(C,x[0]),S.percent(C,x[0])&&S.set("snapToLines",!1),S.alt(C,x[0],["auto"]),x.length===2&&S.alt("lineAlign",x[1],["start",D,"end"]);break;case"position":x=w.split(","),S.percent(C,x[0]),x.length===2&&S.alt("positionAlign",x[1],["start",D,"end","line-left","line-right","auto"]);break;case"size":S.percent(C,w);break;case"align":S.alt(C,w,["start",D,"end","left","right"]);break}},/:/,/\s/),_.region=S.get("region",null),_.vertical=S.get("vertical","");var L=S.get("line","auto");L==="auto"&&i.line===-1&&(L=-1),_.line=L,_.lineAlign=S.get("lineAlign","start"),_.snapToLines=S.get("snapToLines",!0),_.size=S.get("size",100),_.align=S.get("align",D);var R=S.get("position","auto");R==="auto"&&i.position===50&&(R=_.align==="start"||_.align==="left"?0:_.align==="end"||_.align==="right"?100:50),_.position=R}function a(){l=l.replace(/^\s+/,"")}if(a(),u.startTime=h(),a(),l.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+o);l=l.substr(3),a(),u.endTime=h(),a(),s(l,u)}function m(l){return l.replace(//gi,` `)}var p=function(){function l(){this.state="INITIAL",this.buffer="",this.decoder=new F,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var u=l.prototype;return u.parse=function(o){var h=this;o&&(h.buffer+=h.decoder.decode(o,{stream:!0}));function s(){var R=h.buffer,C=0;for(R=m(R);C9?parseInt(o.substr(0,o.indexOf(":"))):0;if(!Object(X.isFiniteNumber)(h)||!Object(X.isFiniteNumber)(s)||!Object(X.isFiniteNumber)(a)||!Object(X.isFiniteNumber)(A))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+o);return h+=1e3*s,h+=60*1e3*a,h+=60*60*1e3*A,h},m=function(o){for(var h=5381,s=o.length;s;)h=h*33^o.charCodeAt(--s);return(h>>>0).toString()};function p(f,o,h){return m(f.toString())+m(o.toString())+m(h)}var l=function(o,h,s){var a=o[h],A=o[a.prevCC];if(!A||!A.new&&a.new){o.ccOffset=o.presentationOffset=a.start,a.new=!1;return}for(;(_=A)!==null&&_!==void 0&&_.new;){var _;o.ccOffset+=a.start-A.start,a.new=!1,a=A,A=o[a.prevCC]}o.presentationOffset=s};function u(f,o,h,s,a,A,_,S){var L=new F.VTTParser,R=Object(U.utf8ArrayToStr)(new Uint8Array(f)).trim().replace(i,` `).split(` `),C=[],w=Object(G.toMpegTsClockFromTimescale)(o,h),x="00:00.000",c=0,T=0,y,v=!0,N=!1;L.oncue=function(B){var O=s[a],j=s.ccOffset,P=(c-w)/9e4;if(O!=null&&O.new&&(T!==void 0?j=s.ccOffset=O.start:l(s,a,P)),P&&(j=P-s.presentationOffset),N){var b=B.endTime-B.startTime,Y=Object(W.normalizePts)((B.startTime+j-T)*9e4,A*9e4)/9e4;B.startTime=Y,B.endTime=Y+b}var ee=B.text.trim();B.text=decodeURIComponent(encodeURIComponent(ee)),B.id||(B.id=p(B.startTime,B.endTime,ee)),B.endTime>0&&C.push(B)},L.onparsingerror=function(B){y=B},L.onflush=function(){if(y){S(y);return}_(C)},R.forEach(function(B){if(v)if(D(B,"X-TIMESTAMP-MAP=")){v=!1,N=!0,B.substr(16).split(",").forEach(function(O){D(O,"LOCAL:")?x=O.substr(6):D(O,"MPEGTS:")&&(c=parseInt(O.substr(7)))});try{T=g(x)/1e3}catch(O){N=!1,y=O}return}else B===""&&(v=!1);L.parse(B+` -`)}),L.flush()}},"./src/utils/xhr-loader.ts":function(ie,$,M){"use strict";M.r($);var X=M("./src/utils/logger.ts"),F=M("./src/loader/load-stats.ts"),U=/^age:\s*[\d.]+\s*$/m,G=function(){function W(D){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=D?D.xhrSetup:null,this.stats=new F.LoadStats,this.retryDelay=0}var i=W.prototype;return i.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},i.abortInternal=function(){var g=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),g&&(g.onreadystatechange=null,g.onprogress=null,g.readyState!==4&&(this.stats.aborted=!0,g.abort()))},i.abort=function(){var g;this.abortInternal(),(g=this.callbacks)!==null&&g!==void 0&&g.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},i.load=function(g,m,p){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=g,this.config=m,this.callbacks=p,this.retryDelay=m.retryDelay,this.loadInternal()},i.loadInternal=function(){var g=this.config,m=this.context;if(!g)return;var p=this.loader=new self.XMLHttpRequest,l=this.stats;l.loading.first=0,l.loaded=0;var u=this.xhrSetup;try{if(u)try{u(p,m.url)}catch(h){p.open("GET",m.url,!0),u(p,m.url)}p.readyState||p.open("GET",m.url,!0);var f=this.context.headers;if(f)for(var o in f)p.setRequestHeader(o,f[o])}catch(h){this.callbacks.onError({code:p.status,text:h.message},m,p);return}m.rangeEnd&&p.setRequestHeader("Range","bytes="+m.rangeStart+"-"+(m.rangeEnd-1)),p.onreadystatechange=this.readystatechange.bind(this),p.onprogress=this.loadprogress.bind(this),p.responseType=m.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),g.timeout),p.send()},i.readystatechange=function(){var g=this.context,m=this.loader,p=this.stats;if(!g||!m)return;var l=m.readyState,u=this.config;if(p.aborted)return;if(l>=2)if(self.clearTimeout(this.requestTimeout),p.loading.first===0&&(p.loading.first=Math.max(self.performance.now(),p.loading.start)),l===4){m.onreadystatechange=null,m.onprogress=null;var f=m.status;if(f>=200&&f<300){p.loading.end=Math.max(self.performance.now(),p.loading.first);var o,h;if(g.responseType==="arraybuffer"?(o=m.response,h=o.byteLength):(o=m.responseText,h=o.length),p.loaded=p.total=h,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(p,g,o,m),!this.callbacks)return;var a={url:m.responseURL,data:o};this.callbacks.onSuccess(a,p,g,m)}else p.retry>=u.maxRetry||f>=400&&f<499?(X.logger.error(f+" while loading "+g.url),this.callbacks.onError({code:f,text:m.statusText},g,m)):(X.logger.warn(f+" while loading "+g.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,u.maxRetryDelay),p.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),u.timeout)},i.loadtimeout=function(){X.logger.warn("timeout while loading "+this.context.url);var g=this.callbacks;g&&(this.abortInternal(),g.onTimeout(this.stats,this.context,this.loader))},i.loadprogress=function(g){var m=this.stats;m.loaded=g.loaded,g.lengthComputable&&(m.total=g.total)},i.getCacheAge=function(){var g=null;if(this.loader&&U.test(this.loader.getAllResponseHeaders())){var m=this.loader.getResponseHeader("age");g=m?parseFloat(m):null}return g},W}();$.default=G}}).default})},vHTk:function(st,be,Q){st.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKdk:function(st,be,Q){"use strict";Q.r(be);var ie=Q("+L6B"),$=Q("2/Rp"),M=Q("6UJt"),X=Q("DFOY"),F=Q("/zsF"),U=Q("PArb"),G=Q("5NDa"),W=Q("5rEg"),i=Q("OaEy"),D=Q("2fM7"),g=Q("14J3"),m=Q("BMrR"),p=Q("jCWc"),l=Q("kPKH"),u=Q("sPJy"),f=Q("bE4q"),o=Q("miYZ"),h=Q("tsqr"),s=Q("k1fw"),a=Q("9og8"),A=Q("y8nQ"),_=Q("Vl3Y"),S=Q("tJVT"),L=Q("PpiC"),R=Q("B9cy"),C=Q("Ol7k"),w=Q("lUTK"),x=Q("BvKs"),c=Q("WmNS"),T=Q.n(c),y=Q("q1tI"),v=Q.n(y),N=Q("Ot1p"),B=Q("Ty5D"),O=Q("9kvl"),j=Q("55Ip"),P=Q("gJ3r"),b=Q("eYnf"),Y=Q.n(b),ee=x.a.SubMenu,le=C.a.Content,ue=C.a.Sider,ke=function(Ce){var ce,pe,se,ae,Oe,Te,Ne,De,We=Ce.graduation,Le=Ce.globalSetting,Be=Ce.loading,Ge=Ce.user,oe=Ce.dispatch,ye=Object(L.a)(Ce,["graduation","globalSetting","loading","user","dispatch"]),we=Object(B.i)(),Ae=Object(B.h)(),Ue=Ge.userInfo,Ve=_.a.useForm(),Ze=Object(S.a)(Ve,1),$e=Ze[0],tt=We.editTopicData,et=function(){var Je=Object(a.a)(T.a.mark(function Me(){var ut,nt,Fe;return T.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ut=$e.getFieldsValue(),nt=Object(s.a)({},ut),nt.city&&(nt.province=nt.city[0],nt.city=nt.city[1]),Ee.next=5,oe({type:"graduation/editTopic",payload:{categoryId:we.categoryId,coursesId:we.coursesId,attachment_ids:[],graduation_topic:nt}});case 5:Fe=Ee.sent,Fe.status?h.b.error(Fe.message):O.d.push("/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id));case 7:case"end":return Ee.stop()}},Me)}));return function(){return Je.apply(this,arguments)}}();return Object(y.useEffect)(function(){function Je(){return Me.apply(this,arguments)}function Me(){return Me=Object(a.a)(T.a.mark(function ut(){var nt,Fe;return T.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,oe({type:"graduation/editTopicDefaultData",payload:Object(s.a)({},we)});case 2:nt=Ee.sent,Fe=Object(s.a)({},nt.selected_data),Fe.city=[Fe.province,Fe.city],$e.setFieldsValue(Fe);case 6:case"end":return Ee.stop()}},ut)})),Me.apply(this,arguments)}Je()},[we.coursesId]),v.a.createElement("section",{className:"edu-container"},v.a.createElement("section",{className:"animated fadeIn"},v.a.createElement("aside",{className:"mt10"},Ue&&v.a.createElement(f.a,{separator:">"},v.a.createElement(f.a.Item,null,v.a.createElement(j.a,{to:"".concat(Ue.first_category_url)},Ue==null||((ce=Ue.course)===null||ce===void 0)?void 0:ce.course_name)),v.a.createElement(f.a.Item,null,v.a.createElement(j.a,{to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id)},"\u6BD5\u8BBE\u9009\u9898")),v.a.createElement(f.a.Item,null,"\u7F16\u8F91"))),v.a.createElement("aside",{className:[Y.a.title,"mt20"].join(" ")},v.a.createElement(m.a,{style:{width:"100%"}},v.a.createElement(l.a,{flex:"1"},v.a.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u6BD5\u8BBE\u9009\u9898")),v.a.createElement(l.a,null,v.a.createElement(j.a,{className:"font16 c-light-black",to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id)},"\u8FD4\u56DE"))))),v.a.createElement("section",{className:[Y.a.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},v.a.createElement(_.a,{layout:"vertical",form:$e,scrollToFirstError:!0,initialValues:tt==null?void 0:tt.selected_data,onFinish:function(){var Je=Object(a.a)(T.a.mark(function Me(ut){return T.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:et();case 1:case"end":return Fe.stop()}},Me)}));return function(Me){return Je.apply(this,arguments)}}()},v.a.createElement(_.a.Item,{name:"tea_id",label:"\u6307\u5BFC\u8001\u5E08\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08",style:{width:200}},(pe=tt.teacher_list)===null||pe===void 0?void 0:pe.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)}))),v.a.createElement(_.a.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},v.a.createElement(W.a,{maxLength:60,size:"large",placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),v.a.createElement(U.a,null),v.a.createElement(_.a.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},v.a.createElement(N.a,{watch:!0,defaultValue:(se=tt.selected_data)===null||se===void 0?void 0:se.description,placeholder:"\u8BF7\u7B80\u8981\u8BF4\u660E\u9009\u9898\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),v.a.createElement(m.a,{gutter:[20,0]},v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_type"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},(ae=tt.topic_type)===null||ae===void 0?void 0:ae.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_source"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(Oe=tt.topic_source)===null||Oe===void 0?void 0:Oe.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_property_first"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(Te=tt.topic_property_first)===null||Te===void 0?void 0:Te.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_property_second"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(Ne=tt.topic_property_second)===null||Ne===void 0?void 0:Ne.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"150px"})),v.a.createElement(U.a,null),v.a.createElement(_.a.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},v.a.createElement(W.a,{width:"200",size:"large",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),v.a.createElement(_.a.Item,{name:"topic_repeat",label:"\u9009\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u91CD\u590D\u60C5\u51B5",style:{width:200}},(De=tt.topic_repeat)===null||De===void 0?void 0:De.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)}))),v.a.createElement(_.a.Item,{name:"city",label:"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"},v.a.createElement(X.a,{size:"large",style:{width:200},options:P.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"})))),v.a.createElement("aside",{className:Y.a.btns},v.a.createElement($.a,{type:"primary",onClick:function(){$e.submit()}},"\u4FDD\u5B58"),v.a.createElement(j.a,{to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(we.categoryId)},"\u53D6\u6D88")))};be.default=Object(O.a)(function(Se){var Ce=Se.graduation,ce=Se.loading,pe=Se.user,se=Se.globalSetting;return{graduation:Ce,globalSetting:se,user:pe,loading:ce.effects}})(ke)}}]); +`)}),L.flush()}},"./src/utils/xhr-loader.ts":function(ie,$,M){"use strict";M.r($);var X=M("./src/utils/logger.ts"),F=M("./src/loader/load-stats.ts"),U=/^age:\s*[\d.]+\s*$/m,G=function(){function W(D){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=D?D.xhrSetup:null,this.stats=new F.LoadStats,this.retryDelay=0}var i=W.prototype;return i.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},i.abortInternal=function(){var g=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),g&&(g.onreadystatechange=null,g.onprogress=null,g.readyState!==4&&(this.stats.aborted=!0,g.abort()))},i.abort=function(){var g;this.abortInternal(),(g=this.callbacks)!==null&&g!==void 0&&g.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},i.load=function(g,m,p){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=g,this.config=m,this.callbacks=p,this.retryDelay=m.retryDelay,this.loadInternal()},i.loadInternal=function(){var g=this.config,m=this.context;if(!g)return;var p=this.loader=new self.XMLHttpRequest,l=this.stats;l.loading.first=0,l.loaded=0;var u=this.xhrSetup;try{if(u)try{u(p,m.url)}catch(h){p.open("GET",m.url,!0),u(p,m.url)}p.readyState||p.open("GET",m.url,!0);var f=this.context.headers;if(f)for(var o in f)p.setRequestHeader(o,f[o])}catch(h){this.callbacks.onError({code:p.status,text:h.message},m,p);return}m.rangeEnd&&p.setRequestHeader("Range","bytes="+m.rangeStart+"-"+(m.rangeEnd-1)),p.onreadystatechange=this.readystatechange.bind(this),p.onprogress=this.loadprogress.bind(this),p.responseType=m.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),g.timeout),p.send()},i.readystatechange=function(){var g=this.context,m=this.loader,p=this.stats;if(!g||!m)return;var l=m.readyState,u=this.config;if(p.aborted)return;if(l>=2)if(self.clearTimeout(this.requestTimeout),p.loading.first===0&&(p.loading.first=Math.max(self.performance.now(),p.loading.start)),l===4){m.onreadystatechange=null,m.onprogress=null;var f=m.status;if(f>=200&&f<300){p.loading.end=Math.max(self.performance.now(),p.loading.first);var o,h;if(g.responseType==="arraybuffer"?(o=m.response,h=o.byteLength):(o=m.responseText,h=o.length),p.loaded=p.total=h,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(p,g,o,m),!this.callbacks)return;var a={url:m.responseURL,data:o};this.callbacks.onSuccess(a,p,g,m)}else p.retry>=u.maxRetry||f>=400&&f<499?(X.logger.error(f+" while loading "+g.url),this.callbacks.onError({code:f,text:m.statusText},g,m)):(X.logger.warn(f+" while loading "+g.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,u.maxRetryDelay),p.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),u.timeout)},i.loadtimeout=function(){X.logger.warn("timeout while loading "+this.context.url);var g=this.callbacks;g&&(this.abortInternal(),g.onTimeout(this.stats,this.context,this.loader))},i.loadprogress=function(g){var m=this.stats;m.loaded=g.loaded,g.lengthComputable&&(m.total=g.total)},i.getCacheAge=function(){var g=null;if(this.loader&&U.test(this.loader.getAllResponseHeaders())){var m=this.loader.getResponseHeader("age");g=m?parseFloat(m):null}return g},W}();$.default=G}}).default})},vHTk:function(st,be,Q){st.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKdk:function(st,be,Q){"use strict";Q.r(be);var ie=Q("+L6B"),$=Q("2/Rp"),M=Q("6UJt"),X=Q("DFOY"),F=Q("/zsF"),U=Q("PArb"),G=Q("5NDa"),W=Q("5rEg"),i=Q("OaEy"),D=Q("2fM7"),g=Q("14J3"),m=Q("BMrR"),p=Q("jCWc"),l=Q("kPKH"),u=Q("sPJy"),f=Q("bE4q"),o=Q("miYZ"),h=Q("tsqr"),s=Q("k1fw"),a=Q("9og8"),A=Q("y8nQ"),_=Q("Vl3Y"),S=Q("tJVT"),L=Q("PpiC"),R=Q("B9cy"),C=Q("Ol7k"),w=Q("lUTK"),x=Q("BvKs"),c=Q("WmNS"),T=Q.n(c),y=Q("q1tI"),v=Q.n(y),N=Q("Ot1p"),B=Q("Ty5D"),O=Q("9kvl"),j=Q("55Ip"),P=Q("gJ3r"),b=Q("eYnf"),Y=Q.n(b),ee=x.a.SubMenu,le=C.a.Content,ue=C.a.Sider,ke=function(Ce){var ce,pe,se,ae,Oe,Te,Ne,De,We=Ce.graduation,Le=Ce.globalSetting,Be=Ce.loading,Ge=Ce.user,oe=Ce.dispatch,ye=Object(L.a)(Ce,["graduation","globalSetting","loading","user","dispatch"]),we=Object(B.i)(),Ae=Object(B.h)(),Ue=Ge.userInfo,Ve=_.a.useForm(),Ze=Object(S.a)(Ve,1),$e=Ze[0],tt=We.editTopicData,et=function(){var Je=Object(a.a)(T.a.mark(function Me(){var ut,rt,Fe;return T.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ut=$e.getFieldsValue(),rt=Object(s.a)({},ut),rt.city&&(rt.province=rt.city[0],rt.city=rt.city[1]),Ee.next=5,oe({type:"graduation/editTopic",payload:{categoryId:we.categoryId,coursesId:we.coursesId,attachment_ids:[],graduation_topic:rt}});case 5:Fe=Ee.sent,Fe.status?h.b.error(Fe.message):O.d.push("/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id));case 7:case"end":return Ee.stop()}},Me)}));return function(){return Je.apply(this,arguments)}}();return Object(y.useEffect)(function(){function Je(){return Me.apply(this,arguments)}function Me(){return Me=Object(a.a)(T.a.mark(function ut(){var rt,Fe;return T.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,oe({type:"graduation/editTopicDefaultData",payload:Object(s.a)({},we)});case 2:rt=Ee.sent,Fe=Object(s.a)({},rt.selected_data),Fe.city=[Fe.province,Fe.city],$e.setFieldsValue(Fe);case 6:case"end":return Ee.stop()}},ut)})),Me.apply(this,arguments)}Je()},[we.coursesId]),v.a.createElement("section",{className:"edu-container"},v.a.createElement("section",{className:"animated fadeIn"},v.a.createElement("aside",{className:"mt10"},Ue&&v.a.createElement(f.a,{separator:">"},v.a.createElement(f.a.Item,null,v.a.createElement(j.a,{to:"".concat(Ue.first_category_url)},Ue==null||((ce=Ue.course)===null||ce===void 0)?void 0:ce.course_name)),v.a.createElement(f.a.Item,null,v.a.createElement(j.a,{to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id)},"\u6BD5\u8BBE\u9009\u9898")),v.a.createElement(f.a.Item,null,"\u7F16\u8F91"))),v.a.createElement("aside",{className:[Y.a.title,"mt20"].join(" ")},v.a.createElement(m.a,{style:{width:"100%"}},v.a.createElement(l.a,{flex:"1"},v.a.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u6BD5\u8BBE\u9009\u9898")),v.a.createElement(l.a,null,v.a.createElement(j.a,{className:"font16 c-light-black",to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(tt.left_banner_id)},"\u8FD4\u56DE"))))),v.a.createElement("section",{className:[Y.a.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},v.a.createElement(_.a,{layout:"vertical",form:$e,scrollToFirstError:!0,initialValues:tt==null?void 0:tt.selected_data,onFinish:function(){var Je=Object(a.a)(T.a.mark(function Me(ut){return T.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:et();case 1:case"end":return Fe.stop()}},Me)}));return function(Me){return Je.apply(this,arguments)}}()},v.a.createElement(_.a.Item,{name:"tea_id",label:"\u6307\u5BFC\u8001\u5E08\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08",style:{width:200}},(pe=tt.teacher_list)===null||pe===void 0?void 0:pe.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)}))),v.a.createElement(_.a.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},v.a.createElement(W.a,{maxLength:60,size:"large",placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),v.a.createElement(U.a,null),v.a.createElement(_.a.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},v.a.createElement(N.a,{watch:!0,defaultValue:(se=tt.selected_data)===null||se===void 0?void 0:se.description,placeholder:"\u8BF7\u7B80\u8981\u8BF4\u660E\u9009\u9898\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),v.a.createElement(m.a,{gutter:[20,0]},v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_type"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},(ae=tt.topic_type)===null||ae===void 0?void 0:ae.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_source"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(Oe=tt.topic_source)===null||Oe===void 0?void 0:Oe.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_property_first"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(Te=tt.topic_property_first)===null||Te===void 0?void 0:Te.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"1"},v.a.createElement(_.a.Item,{name:"topic_property_second"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(Ne=tt.topic_property_second)===null||Ne===void 0?void 0:Ne.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)})))),v.a.createElement(l.a,{flex:"150px"})),v.a.createElement(U.a,null),v.a.createElement(_.a.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},v.a.createElement(W.a,{width:"200",size:"large",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),v.a.createElement(_.a.Item,{name:"topic_repeat",label:"\u9009\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"},v.a.createElement(D.a,{size:"large",placeholder:"\u8BF7\u9009\u62E9\u91CD\u590D\u60C5\u51B5",style:{width:200}},(De=tt.topic_repeat)===null||De===void 0?void 0:De.map(function(Je,Me){return v.a.createElement(D.a.Option,{value:Je.id,key:Me},Je.name)}))),v.a.createElement(_.a.Item,{name:"city",label:"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"},v.a.createElement(X.a,{size:"large",style:{width:200},options:P.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"})))),v.a.createElement("aside",{className:Y.a.btns},v.a.createElement($.a,{type:"primary",onClick:function(){$e.submit()}},"\u4FDD\u5B58"),v.a.createElement(j.a,{to:"/classrooms/".concat(we.coursesId,"/graduation_topics/").concat(we.categoryId)},"\u53D6\u6D88")))};be.default=Object(O.a)(function(Se){var Ce=Se.graduation,ce=Se.loading,pe=Se.user,se=Se.globalSetting;return{graduation:Ce,globalSetting:se,user:pe,loading:ce.effects}})(ke)}}]); diff --git a/p__Classrooms__Lists__Statistics__StudentDetail.bd6e6b5b.async.js b/p__Classrooms__Lists__Statistics__StudentDetail.bd6e6b5b.async.js index e3e8a3aa94..d33ec4e7bc 100644 --- a/p__Classrooms__Lists__Statistics__StudentDetail.bd6e6b5b.async.js +++ b/p__Classrooms__Lists__Statistics__StudentDetail.bd6e6b5b.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[114,8,14],{"55Ip":function(mt,ne,r){"use strict";r.d(ne,"a",function(){return H});var T=r("Ty5D"),M=r("dI71"),he=r("q1tI"),S=r.n(he),o=r("YS25"),C=r("17x9"),ae=r.n(C),Q=r("wx14"),D=r("zLVn"),G=r("9R94"),J=function(f){Object(M.a)(s,f);function s(){for(var R,A=arguments.length,ee=new Array(A),L=0;L=0||A.relatedTarget.className.indexOf("".concat(de,"-next"))>=0))return;f.setState({goInputText:""}),ie(f.getValidValue())},f.go=function(A){var ee=f.state.goInputText;if(ee==="")return;(A.keyCode===q.ENTER||A.type==="click")&&(f.setState({goInputText:""}),f.props.quickGo(f.getValidValue()))},f}return Object(o.a)(b,[{key:"getValidValue",value:function(){var s=this.state,j=s.goInputText,R=s.current;return!j||isNaN(j)?R:Number(j)}},{key:"getPageSizeOptions",value:function(){var s=this.props,j=s.pageSize,R=s.pageSizeOptions;return R.some(function(A){return A.toString()===j.toString()})?R:R.concat([j.toString()]).sort(function(A,ee){var L=isNaN(Number(A))?0:Number(A),ie=isNaN(Number(ee))?0:Number(ee);return L-ie})}},{key:"render",value:function(){var s=this,j=this.props,R=j.pageSize,A=j.locale,ee=j.rootPrefixCls,L=j.changeSize,ie=j.quickGo,de=j.goButton,ve=j.selectComponentClass,Be=j.buildOptionText,_e=j.selectPrefixCls,oe=j.disabled,ye=this.state.goInputText,Se="".concat(ee,"-options"),Pe=ve,De=null,Ge=null,Ce=null;if(!L&&!ie)return null;var ht=this.getPageSizeOptions();if(L&&Pe){var ct=ht.map(function(Xe,le){return D.a.createElement(Pe.Option,{key:le,value:Xe.toString()},(Be||s.buildOptionText)(Xe))});De=D.a.createElement(Pe,{disabled:oe,prefixCls:_e,showSearch:!1,className:"".concat(Se,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(R||ht[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},ct)}return ie&&(de&&(Ce=typeof de=="boolean"?D.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:oe,className:"".concat(Se,"-quick-jumper-button")},A.jump_to_confirm):D.a.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),Ge=D.a.createElement("div",{className:"".concat(Se,"-quick-jumper")},A.jump_to,D.a.createElement("input",{disabled:oe,type:"text",value:ye,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),A.page,Ce)),D.a.createElement("li",{className:"".concat(Se)},De,Ge)}}]),b}(D.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=_,u=r("N2Kk");function U(){}function H(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k}function X(k,E,b){return b}function F(k,E,b){var f=typeof k=="undefined"?E.pageSize:k;return Math.floor((b.total-1)/f)+1}var se=function(k){Object(C.a)(b,k);var E=Object(ae.a)(b);function b(f){var s;Object(S.a)(this,b),s=E.call(this,f),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(F(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(L,ie){var de=s.props.prefixCls,ve=L||D.a.createElement("button",{type:"button","aria-label":ie,className:"".concat(de,"-item-link")});return typeof L=="function"&&(ve=D.a.createElement(L,Object(he.a)({},s.props))),ve},s.savePaginationNode=function(L){s.paginationNode=L},s.isValid=function(L){return H(L)&&L!==s.state.current},s.shouldDisplayQuickJumper=function(){var L=s.props,ie=L.showQuickJumper,de=L.pageSize,ve=L.total;return ve<=de?!1:ie},s.handleKeyDown=function(L){(L.keyCode===q.ARROW_UP||L.keyCode===q.ARROW_DOWN)&&L.preventDefault()},s.handleKeyUp=function(L){var ie=s.getValidValue(L),de=s.state.currentInputValue;ie!==de&&s.setState({currentInputValue:ie}),L.keyCode===q.ENTER?s.handleChange(ie):L.keyCode===q.ARROW_UP?s.handleChange(ie-1):L.keyCode===q.ARROW_DOWN&&s.handleChange(ie+1)},s.changePageSize=function(L){var ie=s.state.current,de=F(L,s.state,s.props);ie=ie>de?de:ie,de===0&&(ie=s.state.current),typeof L=="number"&&("pageSize"in s.props||s.setState({pageSize:L}),"current"in s.props||s.setState({current:ie,currentInputValue:ie})),s.props.onShowSizeChange(ie,L),"onChange"in s.props&&s.props.onChange&&s.props.onChange(ie,L)},s.handleChange=function(L){var ie=s.props.disabled,de=L;if(s.isValid(de)&&!ie){var ve=F(void 0,s.state,s.props);de>ve?de=ve:de<1&&(de=1),"current"in s.props||s.setState({current:de,currentInputValue:de});var Be=s.state.pageSize;return s.props.onChange(de,Be),de}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?de-2:0),Be=2;Be=R?ee=R:ee=Number(j),ee}},{key:"getShowSizeChanger",value:function(){var s=this.props,j=s.showSizeChanger,R=s.total,A=s.totalBoundaryShowSizeChanger;return typeof j!="undefined"?j:R>A}},{key:"renderPrev",value:function(s){var j=this.props,R=j.prevIcon,A=j.itemRender,ee=A(s,"prev",this.getItemIcon(R,"prev page")),L=!this.hasPrev();return Object(Q.isValidElement)(ee)?Object(Q.cloneElement)(ee,{disabled:L}):ee}},{key:"renderNext",value:function(s){var j=this.props,R=j.nextIcon,A=j.itemRender,ee=A(s,"next",this.getItemIcon(R,"next page")),L=!this.hasNext();return Object(Q.isValidElement)(ee)?Object(Q.cloneElement)(ee,{disabled:L}):ee}},{key:"render",value:function(){var s=this,j=this.props,R=j.prefixCls,A=j.className,ee=j.style,L=j.disabled,ie=j.hideOnSinglePage,de=j.total,ve=j.locale,Be=j.showQuickJumper,_e=j.showLessItems,oe=j.showTitle,ye=j.showTotal,Se=j.simple,Pe=j.itemRender,De=j.showPrevNextJumpers,Ge=j.jumpPrevIcon,Ce=j.jumpNextIcon,ht=j.selectComponentClass,ct=j.selectPrefixCls,Xe=j.pageSizeOptions,le=this.state,we=le.current,wt=le.pageSize,Ne=le.currentInputValue;if(ie===!0&&de<=wt)return null;var Y=F(void 0,this.state,this.props),be=[],Je=null,bt=null,xt=null,tt=null,dt=null,Me=Be&&Be.goButton,Re=_e?1:2,ge=we-1>0?we-1:0,Mt=we+1=Re*2&&we!==1+2&&(be[0]=Object(Q.cloneElement)(be[0],{className:"".concat(R,"-item-after-jump-prev")}),be.unshift(Je)),Y-we>=Re*2&&we!==Y-2&&(be[be.length-1]=Object(Q.cloneElement)(be[be.length-1],{className:"".concat(R,"-item-before-jump-next")}),be.push(bt)),$!==1&&be.unshift(xt),m!==Y&&be.push(tt)}var P=null;ye&&(P=D.a.createElement("li",{className:"".concat(R,"-total-text")},ye(de,[de===0?0:(we-1)*wt+1,we*wt>de?de:we*wt])));var K=!this.hasPrev()||!Y,W=!this.hasNext()||!Y;return D.a.createElement("ul",Object(T.a)({className:J()(R,A,Object(M.a)({},"".concat(R,"-disabled"),L)),style:ee,unselectable:"unselectable",ref:this.savePaginationNode},Pt),P,D.a.createElement("li",{title:oe?ve.prev_page:null,onClick:this.prev,tabIndex:K?null:0,onKeyPress:this.runIfEnterPrev,className:J()("".concat(R,"-prev"),Object(M.a)({},"".concat(R,"-disabled"),K)),"aria-disabled":K},this.renderPrev(ge)),be,D.a.createElement("li",{title:oe?ve.next_page:null,onClick:this.next,tabIndex:W?null:0,onKeyPress:this.runIfEnterNext,className:J()("".concat(R,"-next"),Object(M.a)({},"".concat(R,"-disabled"),W)),"aria-disabled":W},this.renderNext(Mt)),D.a.createElement(g,{disabled:L,locale:ve,rootPrefixCls:R,selectComponentClass:ht,selectPrefixCls:ct,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:we,pageSize:wt,pageSizeOptions:Xe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Me}))}}],[{key:"getDerivedStateFromProps",value:function(s,j){var R={};if("current"in s&&(R.current=s.current,s.current!==j.current&&(R.currentInputValue=R.current)),"pageSize"in s&&s.pageSize!==j.pageSize){var A=j.current,ee=F(s.pageSize,j,s);A=A>ee?ee:A,"current"in s||(R.current=A,R.currentInputValue=A),R.pageSize=s.pageSize}return R}}]),b}(D.a.Component);se.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:U,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:U,locale:u.a,style:{},itemRender:X,totalBoundaryShowSizeChanger:50};var w=se},"6RRn":function(mt,ne,r){"use strict";var T=r("wCXF"),M=r("n6Qo");r.d(ne,"b",function(){return M.a});var he=r("IBYe"),S=r("6eGT"),o=r("hW8S");r.d(ne,"a",function(){return o.a}),ne.c=T.b},"6eGT":function(mt,ne,r){"use strict";function T(M){return null}ne.a=T},"815F":function(mt,ne,r){"use strict";r.d(ne,"e",function(){return ae}),r.d(ne,"c",function(){return D}),r.d(ne,"d",function(){return G}),r.d(ne,"a",function(){return me}),r.d(ne,"f",function(){return re}),r.d(ne,"b",function(){return q});var T=r("KQm4"),M=r("VTBJ"),he=r("Ff2n"),S=r("Zm9Q"),o=r("Kwbf"),C=r("OZM5");function ae(_,g){return _!=null?_:g}function Q(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=new Map;function u(U){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(U||[]).forEach(function(X){var F=X.key,se=X.children;Object(o.a)(F!=null,"Tree node must have a certain key: [".concat(H).concat(F,"]"));var w=String(F);Object(o.a)(!g.has(w)||F===null||F===void 0,"Same 'key' exist in the Tree: ".concat(w)),g.set(w,!0),u(se,"".concat(H).concat(w," > "))})}u(_)}function D(_){function g(u){var U=Object(S.a)(u);return U.map(function(H){if(!Object(C.i)(H))return Object(o.a)(!H,"Tree/TreeNode can only accept TreeNode as children."),null;var X=H.key,F=H.props,se=F.children,w=Object(he.a)(F,["children"]),k=Object(M.a)({key:X},w),E=g(se);return E.length&&(k.children=E),k}).filter(function(H){return H})}return g(_)}function G(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=new Set(g===!0?[]:g),U=[];function H(X){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return X.map(function(se,w){var k=Object(C.h)(F?F.pos:"0",w),E=ae(se.key,k),b=Object(M.a)(Object(M.a)({},se),{},{parent:F,pos:k,children:null,data:se,isStart:[].concat(Object(T.a)(F?F.isStart:[]),[w===0]),isEnd:[].concat(Object(T.a)(F?F.isEnd:[]),[w===X.length-1])});return U.push(b),g===!0||u.has(E)?b.children=H(se.children||[],b):b.children=[],b})}return H(_),U}function J(_,g,u){var U;u?typeof u=="string"?U=function(F){return F[u]}:typeof u=="function"&&(U=function(F){return u(F)}):U=function(F,se){return ae(F.key,se)};function H(X,F,se){var w=X?X.children:_,k=X?Object(C.h)(se.pos,F):"0";if(X){var E=U(X,k),b={node:X,index:F,pos:k,key:E,parentPos:se.node?se.pos:null,level:se.level+1};g(b)}w&&w.forEach(function(f,s){H(f,s,{node:X,pos:k,level:se?se.level+1:-1})})}H(null)}function me(_){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=g.initWrapper,U=g.processEntity,H=g.onProcessFinished,X=arguments.length>2?arguments[2]:void 0,F={},se={},w={posEntities:F,keyEntities:se};return u&&(w=u(w)||w),J(_,function(k){var E=k.node,b=k.index,f=k.pos,s=k.key,j=k.parentPos,R=k.level,A={node:E,index:b,key:s,pos:f,level:R},ee=ae(s,f);F[f]=A,se[ee]=A,A.parent=F[j],A.parent&&(A.parent.children=A.parent.children||[],A.parent.children.push(A)),U&&U(A,w)},X),H&&H(w),w}function re(_,g){var u=g.expandedKeys,U=g.selectedKeys,H=g.loadedKeys,X=g.loadingKeys,F=g.checkedKeys,se=g.halfCheckedKeys,w=g.dragOverNodeKey,k=g.dropPosition,E=g.keyEntities,b=E[_],f={eventKey:_,expanded:u.indexOf(_)!==-1,selected:U.indexOf(_)!==-1,loaded:H.indexOf(_)!==-1,loading:X.indexOf(_)!==-1,checked:F.indexOf(_)!==-1,halfChecked:se.indexOf(_)!==-1,pos:String(b?b.pos:""),dragOver:w===_&&k===0,dragOverGapTop:w===_&&k===-1,dragOverGapBottom:w===_&&k===1};return f}function q(_){var g=_.data,u=_.expanded,U=_.selected,H=_.checked,X=_.loaded,F=_.loading,se=_.halfChecked,w=_.dragOver,k=_.dragOverGapTop,E=_.dragOverGapBottom,b=_.pos,f=_.active,s=Object(M.a)(Object(M.a)({},g),{},{expanded:u,selected:U,checked:H,loaded:X,loading:F,halfChecked:se,dragOver:w,dragOverGapTop:k,dragOverGapBottom:E,pos:b,active:f});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),s}},BU3w:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return C});var T=r("MNnm"),M="rc-util-key";function he(ae){if(ae.attachTo)return ae.attachTo;var Q=document.querySelector("head");return Q||document.body}function S(ae){var Q,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(T.a)())return null;var G=document.createElement("style");if((Q=D.csp)===null||Q===void 0?void 0:Q.nonce){var J;G.nonce=(J=D.csp)===null||J===void 0?void 0:J.nonce}G.innerHTML=ae;var me=he(D),re=me.firstChild;return D.prepend&&me.prepend?me.prepend(G):D.prepend&&re?me.insertBefore(G,re):me.appendChild(G),G}var o=new Map;function C(ae,Q){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},G=he(D);if(!o.has(G)){var J=S("",D),me=J.parentNode;o.set(G,me),me.removeChild(J)}var re=Array.from(o.get(G).children).find(function(U){return U.tagName==="STYLE"&&U[M]===Q});if(re){var q,_;if(((q=D.csp)===null||q===void 0?void 0:q.nonce)&&re.nonce!==((_=D.csp)===null||_===void 0?void 0:_.nonce)){var g;re.nonce=(g=D.csp)===null||g===void 0?void 0:g.nonce}return re.innerHTML!==ae&&(re.innerHTML=ae),re}var u=S(ae,D);return u[M]=Q,u}},IBYe:function(mt,ne,r){"use strict";function T(M){return null}ne.a=T},LH4l:function(mt,ne,r){mt.exports={flex_box_center:"flex_box_center___2kM9t",flex_space_between:"flex_space_between___2GWTm",flex_box_vertical_center:"flex_box_vertical_center___1fefq",flex_box_center_end:"flex_box_center_end___1W7v1",flex_box_column:"flex_box_column___1ghF4",bg:"bg___2u1mi",title:"title___2oznh",img:"img___e7qFG",right:"right___2qEm7",top:"top___64ioH",spanfont:"spanfont___1M2sf",bottom:"bottom___uHkeQ",rightdiv:"rightdiv___3xV1j",fonttitle:"fonttitle___35Nl1",ling:"ling___348jK",content:"content___cYR2j",bgs:"bgs___3sNmI",contenttitle:"contenttitle___BbdDe",titlecoent:"titlecoent___1aw6d",es:"es___3bs0Z"}},LdHM:function(mt,ne,r){"use strict";r.d(ne,"b",function(){return X}),r.d(ne,"a",function(){return se});var T=r("1OyB"),M=r("vuIU"),he=r("Ji7U"),S=r("LK+K"),o=r("q1tI"),C=r("rePB"),ae=r("Ff2n"),Q=r("ODXe"),D=r("4IlW"),G=r("bX4T"),J=r("YrtM"),me=r("TSYQ"),re=r.n(me),q=r("+nKL"),_=r("8OUc"),g=function(oe,ye){var Se=oe.prefixCls,Pe=oe.id,De=oe.flattenOptions,Ge=oe.childrenAsData,Ce=oe.values,ht=oe.searchValue,ct=oe.multiple,Xe=oe.defaultActiveFirstOption,le=oe.height,we=oe.itemHeight,wt=oe.notFoundContent,Ne=oe.open,Y=oe.menuItemSelectedIcon,be=oe.virtual,Je=oe.onSelect,bt=oe.onToggleOpen,xt=oe.onActiveValue,tt=oe.onScroll,dt=oe.onMouseEnter,Me="".concat(Se,"-item"),Re=Object(J.a)(function(){return De},[Ne,De],function(x,P){return P[0]&&x[1]!==P[1]}),ge=o.useRef(null),Mt=function(P){P.preventDefault()},Pt=function(P){ge.current&&ge.current.scrollTo({index:P})},Ye=function(P){for(var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,W=Re.length,fe=0;fe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(k.a)(_e).map(function(ye,Se){if(!o.isValidElement(ye)||!ye.type)return null;var Pe=ye.type.isSelectOptGroup,De=ye.key,Ge=ye.props,Ce=Ge.children,ht=Object(ae.a)(Ge,["children"]);return oe||!Pe?E(ye):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(De===null?Se:De,"__"),label:De},ht),{},{options:b(Ce)})}).filter(function(ye){return ye})}var f=r("2Qr1"),s=r("qNPg"),j=r("U8pU"),R=r("Kwbf"),A=r("WKfj");function ee(_e){var oe=_e.mode,ye=_e.options,Se=_e.children,Pe=_e.backfill,De=_e.allowClear,Ge=_e.placeholder,Ce=_e.getInputElement,ht=_e.showSearch,ct=_e.onSearch,Xe=_e.defaultOpen,le=_e.autoFocus,we=_e.labelInValue,wt=_e.value,Ne=_e.inputValue,Y=_e.optionLabelProp,be=oe==="multiple"||oe==="tags",Je=ht!==void 0?ht:be||oe==="combobox",bt=ye||b(Se);if(Object(R.a)(oe!=="tags"||bt.every(function(Me){return!Me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),oe==="tags"||oe==="combobox"){var xt=bt.some(function(Me){return Me.options?Me.options.some(function(Re){return typeof("value"in Re?Re.value:Re.key)=="number"}):typeof("value"in Me?Me.value:Me.key)=="number"});Object(R.a)(!xt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(R.a)(oe!=="combobox"||!Y,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(R.a)(oe==="combobox"||!Pe,"`backfill` only works with `combobox` mode."),Object(R.a)(oe==="combobox"||!Ce,"`getInputElement` only work with `combobox` mode."),Object(R.b)(oe!=="combobox"||!Ce||!De||!Ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ct&&!Je&&oe!=="combobox"&&oe!=="tags"&&Object(R.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(R.b)(!Xe||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),wt!=null){var tt=Object(A.d)(wt);Object(R.a)(!we||tt.every(function(Me){return Object(j.a)(Me)==="object"&&("key"in Me||"value"in Me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(R.a)(!be||Array.isArray(wt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Se){var dt=null;Object(k.a)(Se).some(function(Me){if(!o.isValidElement(Me)||!Me.type)return!1;var Re=Me.type;if(Re.isSelectOption)return!1;if(Re.isSelectOptGroup){var ge=Object(k.a)(Me.props.children).every(function(Mt){return!o.isValidElement(Mt)||!Me.type||Mt.type.isSelectOption?!0:(dt=Mt.type,!1)});return!ge}return dt=Re,!0}),dt&&Object(R.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(dt.displayName||dt.name||dt,"`.")),Object(R.a)(Ne===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=ee,ie=Object(s.a)({prefixCls:"rc-select",components:{optionList:U},convertChildrenToData:b,flattenOptions:f.d,getLabeledValue:f.e,filterOptions:f.b,isValueDisabled:f.g,findValueOption:f.c,warningProps:L,fillOptionsWithMissingValue:f.a}),de=function(_e){Object(he.a)(ye,_e);var oe=Object(S.a)(ye);function ye(){var Se;return Object(T.a)(this,ye),Se=oe.apply(this,arguments),Se.selectRef=o.createRef(),Se.focus=function(){Se.selectRef.current.focus()},Se.blur=function(){Se.selectRef.current.blur()},Se}return Object(M.a)(ye,[{key:"render",value:function(){return o.createElement(ie,Object.assign({ref:this.selectRef},this.props))}}]),ye}(o.Component);de.Option=X,de.OptGroup=se;var ve=de,Be=ne.c=ve},NvD2:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return C});var T=r("Kwbf");function M(ae,Q){var D=new Set;return ae.forEach(function(G){Q.has(G)||D.add(G)}),D}function he(ae){var Q=ae||{},D=Q.disabled,G=Q.disableCheckbox,J=Q.checkable;return!!(D||G)||J===!1}function S(ae,Q,D,G){for(var J=new Set(ae),me=new Set,re=0;re<=D;re+=1){var q=Q.get(re)||new Set;q.forEach(function(U){var H=U.key,X=U.node,F=U.children,se=F===void 0?[]:F;J.has(H)&&!G(X)&&se.filter(function(w){return!G(w.node)}).forEach(function(w){J.add(w.key)})})}for(var _=new Set,g=D;g>=0;g-=1){var u=Q.get(g)||new Set;u.forEach(function(U){var H=U.parent,X=U.node;if(G(X)||!U.parent||_.has(U.parent.key))return;if(G(U.parent.node)){_.add(H.key);return}var F=!0,se=!1;(H.children||[]).filter(function(w){return!G(w.node)}).forEach(function(w){var k=w.key,E=J.has(k);F&&!E&&(F=!1),!se&&(E||me.has(k))&&(se=!0)}),F&&J.add(H.key),se&&me.add(H.key),_.add(H.key)})}return{checkedKeys:Array.from(J),halfCheckedKeys:Array.from(M(me,J))}}function o(ae,Q,D,G,J){for(var me=new Set(ae),re=new Set(Q),q=0;q<=G;q+=1){var _=D.get(q)||new Set;_.forEach(function(H){var X=H.key,F=H.node,se=H.children,w=se===void 0?[]:se;!me.has(X)&&!re.has(X)&&!J(F)&&w.filter(function(k){return!J(k.node)}).forEach(function(k){me.delete(k.key)})})}re=new Set;for(var g=new Set,u=G;u>=0;u-=1){var U=D.get(u)||new Set;U.forEach(function(H){var X=H.parent,F=H.node;if(J(F)||!H.parent||g.has(H.parent.key))return;if(J(H.parent.node)){g.add(X.key);return}var se=!0,w=!1;(X.children||[]).filter(function(k){return!J(k.node)}).forEach(function(k){var E=k.key,b=me.has(E);se&&!b&&(se=!1),!w&&(b||re.has(E))&&(w=!0)}),se||me.delete(X.key),w&&re.add(X.key),g.add(X.key)})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(M(re,me))}}function C(ae,Q,D,G){var J=[],me;G?me=G:me=he;var re=new Set(ae.filter(function(u){var U=!!D[u];return U||J.push(u),U})),q=new Map,_=0;Object.keys(D).forEach(function(u){var U=D[u],H=U.level,X=q.get(H);X||(X=new Set,q.set(H,X)),X.add(U),_=Math.max(_,H)}),Object(T.a)(!J.length,"Tree missing follow keys: ".concat(J.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var g;return Q===!0?g=S(re,q,_,me):g=o(re,Q.halfCheckedKeys,q,_,me),g}},OZM5:function(mt,ne,r){"use strict";r.d(ne,"b",function(){return G}),r.d(ne,"a",function(){return J}),r.d(ne,"k",function(){return me}),r.d(ne,"h",function(){return re}),r.d(ne,"i",function(){return q}),r.d(ne,"g",function(){return _}),r.d(ne,"c",function(){return g}),r.d(ne,"d",function(){return u}),r.d(ne,"j",function(){return X}),r.d(ne,"e",function(){return F}),r.d(ne,"f",function(){return se});var T=r("KQm4"),M=r("U8pU"),he=r("Ff2n"),S=r("q1tI"),o=r.n(S),C=r("Kwbf"),ae=r("WaYH"),Q=.25,D=2;function G(w,k){var E=w.slice(),b=E.indexOf(k);return b>=0&&E.splice(b,1),E}function J(w,k){var E=w.slice();return E.indexOf(k)===-1&&E.push(k),E}function me(w){return w.split("-")}function re(w,k){return"".concat(w,"-").concat(k)}function q(w){return w&&w.type&&w.type.isTreeNode}function _(w,k){var E=[w],b=k[w];function f(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(j){var R=j.key,A=j.children;E.push(R),f(A)})}return f(b.children),E}function g(w,k){var E=w.clientY,b=k.selectHandle.getBoundingClientRect(),f=b.top,s=b.bottom,j=b.height,R=Math.max(j*Q,D);return E<=f+R?-1:E>=s-R?1:0}function u(w,k){if(!w)return;var E=k.multiple;return E?w.slice():w.length?[w[0]]:w}var U=function(k){return k};function H(w,k){if(!w)return[];var E=k||{},b=E.processProps,f=b===void 0?U:b,s=Array.isArray(w)?w:[w];return s.map(function(j){var R=j.children,A=Object(he.a)(j,["children"]),ee=H(R,k);return o.a.createElement(ae.a,Object.assign({},f(A)),ee)})}function X(w){if(!w)return null;var k;if(Array.isArray(w))k={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(M.a)(w)==="object")k={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return k}function F(w,k){var E=new Set;function b(f){if(E.has(f))return;var s=k[f];if(!s)return;E.add(f);var j=s.parent,R=s.node;if(R.disabled)return;j&&b(j.key)}return(w||[]).forEach(function(f){b(f)}),Object(T.a)(E)}function se(w){var k={};return Object.keys(w).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(k[E]=w[E])}),k}},"SA+Z":function(mt,ne,r){var T=r("wTVA"),M=r("EbDI"),he=r("ZhPi"),S=r("wkBT");function o(C){return T(C)||M(C)||he(C)||S()}mt.exports=o,mt.exports.__esModule=!0,mt.exports.default=mt.exports},TljI:function(mt,ne,r){"use strict";r.r(ne);var T=r("qVdP"),M=r("jsC+"),he=r("DYRE"),S=r("zeV3"),o=r("lUTK"),C=r("BvKs"),ae=r("sPJy"),Q=r("bE4q"),D=r("9og8"),G=r("k1fw"),J=r("tJVT"),me=r("Znn+"),re=r("ZTPi"),q=r("WmNS"),_=r.n(q),g=r("q1tI"),u=r.n(g),U=r("wd/R"),H=r.n(U),X=r("Ty5D"),F=r("55Ip"),se=r("9kvl"),w=r("ErOA"),k=r("LH4l"),E=r.n(k),b=r("8Skl"),f=r("DjyN"),s=r("NUBc"),j=r("g9YV"),R=r("wCAj");H.a.locale("zh-cn");var A=re.a.TabPane,ee=[{text:"\u672A\u5F00\u542F",color:"#272A3A"},{text:"\u672A\u901A\u5173",color:"#E30000"},{text:"\u6309\u65F6\u901A\u5173",color:"#038D00"},{text:"\u8FDF\u4EA4\u901A\u5173",color:"#0152D9"}],L=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:4,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="1"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u5B9E\u9A8C\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/shixun_homework/").concat(P==null?void 0:P.id,"/").concat(P==null?void 0:P.student_work_id,"/comment"),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var P,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(P=ee[x])===null||P===void 0?void 0:P.color}},(K=ee[x])===null||K===void 0?void 0:K.text)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center",key:"sum_evaluate_count"},{title:"\u901A\u5173\u60C5\u51B5",dataIndex:"current_complete_count",align:"center",key:"current_complete_count",render:function(x,P){return u.a.createElement("span",null,x+"/"+(P==null?void 0:P.complete_count))}},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"work_score",align:"center",key:"address",render:function(x){return u.a.createElement("span",{style:{color:parseInt(x)===100?"#FF6800":"#E30000"}},x)}},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u5B9E\u9A8C")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},m==null?void 0:m.unstart_count),u.a.createElement("div",null,"\u672A\u5F00\u542F")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#E30000"}},m==null?void 0:m.uncompelete_count),u.a.createElement("div",null,"\u672A\u901A\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.opportune_compelete_count),u.a.createElement("div",null,"\u6309\u65F6\u901A\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.late_compelete_count),u.a.createElement("div",null,"\u8FDF\u4EA4\u901A\u5173")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.total_challenges_count),u.a.createElement("div",null,"\u5168\u90E8\u5173\u5361")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.compelete_count),u.a.createElement("div",null,"\u5DF2\u8FC7\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_evaluate_count)||0),u.a.createElement("div",null,"\u8BC4\u6D4B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},ie=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(L);H.a.locale("zh-cn");var de=re.a.TabPane,ve=[{text:"\u672A\u5F00\u59CB",color:"#272A3A"},{text:"\u8003\u8BD5\u4E2D",color:"#0152D9"},{text:"\u5DF2\u4EA4\u5377",color:"#038D00"},{text:"\u5DF2\u4EA4\u5377/\u672A\u7B54",color:"#038D00"}],Be=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:5,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="4"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u8003\u8BD5\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"36%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/exercise/").concat(P==null?void 0:P.id,"/review/").concat(ge.login),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",key:"commit_status",width:"11%",render:function(x){var P,K;return u.a.createElement("span",{style:{color:(P=ve[x])===null||P===void 0?void 0:P.color}},(K=ve[x])===null||K===void 0?void 0:K.text)}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",key:"end_at",width:"27%",render:function(x){return u.a.createElement("span",null,x)}},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",width:"11%"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",width:"15%",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(be=parseFloat(m==null?void 0:m.total_score))===null||be===void 0?void 0:be.toFixed(2)),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},m==null?void 0:m.total_count),u.a.createElement("div",null,"\u5168\u90E8\u8003\u8BD5")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},m==null?void 0:m.total_unstart_count),u.a.createElement("div",null,"\u672A\u5F00\u59CB")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.total_examing_count),u.a.createElement("div",null,"\u8003\u8BD5\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.total_commit_count,u.a.createElement("span",{style:{color:"#272A3A"}},"/",m==null?void 0:m.total_uncommit_count)),u.a.createElement("div",null,"\u5DF2\u4EA4\u5377/\u672A\u7B54"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},_e=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Be);H.a.locale("zh-cn");var oe=re.a.TabPane,ye=[{text:"\u672A\u63D0\u4EA4",color:"#272A3A"},{text:"\u6309\u65F6\u63D0\u4EA4",color:"#038D00"},{text:"\u5EF6\u65F6\u63D0\u4EA4",color:"#0152D9"}],Se=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:1,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="2"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u4F5C\u4E1A\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/common_homework/").concat(P==null?void 0:P.id,"/review/").concat(P==null?void 0:P.student_work_id),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var P,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(P=ye[x])===null||P===void 0?void 0:P.color}},(K=ye[x])===null||K===void 0?void 0:K.text)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",key:"redo_count"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"update_time",key:"update_time",render:function(x){return u.a.createElement("span",null,x||"- -")}},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",key:"teacher_score"},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"\u5F53\u524D\u6210\u7EE9",dataIndex:"work_score",key:"address"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u4F5C\u4E1A")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},(m==null?void 0:m.total_uncommit_count)||0),u.a.createElement("div",null,"\u672A\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},(m==null?void 0:m.total_commit_count)||0),u.a.createElement("div",null,"\u6309\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null?void 0:m.total_late_commit_count)||0),u.a.createElement("div",null,"\u5EF6\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#FF9D18"}},(m==null?void 0:m.total_redos_count)||0),u.a.createElement("div",null,"\u91CD\u505A\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_returns_count)||0),u.a.createElement("div",null,"\u6253\u56DE\u603B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},Pe=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Se);H.a.locale("zh-cn");var De=re.a.TabPane,Ge=[{text:"\u672A\u63D0\u4EA4",color:"#272A3A"},{text:"\u6309\u65F6\u63D0\u4EA4",color:"#038D00"},{text:"\u5EF6\u65F6\u63D0\u4EA4",color:"#0152D9"}],Ce=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:3,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Pt=Object(g.useState)([]),Ye=Object(J.a)(Pt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="3"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var P;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:P=W.sent,Mt(Object(G.a)({},x)),P&&Wt(P);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u4F5C\u4E1A\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,P){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/group_homework/").concat(P==null?void 0:P.id,"/review/").concat(P==null?void 0:P.student_work_id),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u5206\u7EC4",dataIndex:"work_group",key:"work_group",render:function(x){return u.a.createElement("span",null,x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var P,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(P=Ge[x])===null||P===void 0?void 0:P.color}},(K=Ge[x])===null||K===void 0?void 0:K.text)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",key:"redo_count"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"update_time",key:"update_time",render:function(x){return u.a.createElement("span",null,x||"- -")}},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",key:"teacher_score"},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"\u5F53\u524D\u6210\u7EE9",dataIndex:"work_score",key:"address"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u4F5C\u4E1A")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},(m==null?void 0:m.total_uncommit_count)||0),u.a.createElement("div",null,"\u672A\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},(m==null?void 0:m.total_commit_count)||0),u.a.createElement("div",null,"\u6309\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null?void 0:m.total_late_commit_count)||0),u.a.createElement("div",null,"\u5EF6\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#FF9D18"}},(m==null?void 0:m.total_redos_count)||0),u.a.createElement("div",null,"\u91CD\u505A\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_returns_count)||0),u.a.createElement("div",null,"\u6253\u56DE\u603B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},ht=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Ce),ct=r("m3rI"),Xe=r("xKgJ");H.a.locale("zh-cn");var le=re.a.TabPane,we=function(Y){var be,Je,bt,xt,tt,dt,Me,Re,ge,Mt,Pt,Ye,Et,Wt,O,I,$,m=Y.classroomList,V=Y.globalSetting,x=Y.loading,P=Y.dispatch,K=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:4})),W=Object(J.a)(K,2),fe=W[0],ue=W[1],Ee=Object(g.useState)(),Te=Object(J.a)(Ee,2),Z=Te[0],ke=Te[1],pt=Object(g.useState)(),Qe=Object(J.a)(pt,2),nt=Qe[0],Ae=Qe[1],zt=Object(g.useState)("1"),Rt=Object(J.a)(zt,2),it=Rt[0],jt=Rt[1],Ht=Object(X.h)();Object(g.useEffect)(function(){at(Object(G.a)({},fe)),Ot(Object(G.a)({},fe)),P({type:"classroomList/getClassroomLeftMenus",payload:Object(G.a)({},fe)})},[]),Object(g.useEffect)(function(){var ce,Ie,gt,Lt,Fe,fn,mn,En,tn;m!=null&&(ce=m.detailLeftMenus)!==null&&ce!==void 0&&(Ie=ce.course_modules)!==null&&Ie!==void 0&&Ie.map(function(St){return St.type}).find(function(St){return St==="shixun_homework"})?jt("1"):m!=null&&(gt=m.detailLeftMenus)!==null&>!==void 0&&(Lt=gt.course_modules)!==null&&Lt!==void 0&&Lt.map(function(St){return St.type}).find(function(St){return St==="common_homework"})?jt("2"):m!=null&&(Fe=m.detailLeftMenus)!==null&&Fe!==void 0&&(fn=Fe.course_modules)!==null&&fn!==void 0&&fn.map(function(St){return St.type}).find(function(St){return St==="group_homework"})?jt("3"):m!=null&&(mn=m.detailLeftMenus)!==null&&mn!==void 0&&(En=mn.course_modules)!==null&&En!==void 0&&En.map(function(St){return St.type}).find(function(St){return St==="exercise"})&&jt("4")},[m==null||((be=m.detailLeftMenus)===null||be===void 0)?void 0:be.course_modules]);function at(ce){return Bt.apply(this,arguments)}function Bt(){return Bt=Object(D.a)(_.a.mark(function ce(Ie){var gt;return _.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(w.a)("/api/courses/".concat(Ie==null?void 0:Ie.coursesId,"/course_members/").concat(Ie.login,"/learning_statistics"),{method:"get",params:Ie});case 2:gt=Fe.sent,ue(Object(G.a)({},Ie)),gt&&ke(gt);case 5:case"end":return Fe.stop()}},ce)})),Bt.apply(this,arguments)}function Ot(ce){return ft.apply(this,arguments)}function ft(){return ft=Object(D.a)(_.a.mark(function ce(Ie){var gt;return _.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(w.a)("/api/courses/".concat(Ie==null?void 0:Ie.coursesId,"/students.json"),{method:"get",params:Object(G.a)({limit:2e3},Ie)});case 2:gt=Fe.sent,gt&&Ae(gt);case 4:case"end":return Fe.stop()}},ce)})),ft.apply(this,arguments)}var Le=m==null||((Je=m.detailLeftMenus)===null||Je===void 0||((bt=Je.course_modules)===null||bt===void 0))?void 0:bt.map(function(ce){return ce.type});return u.a.createElement("section",{className:E.a.bg},u.a.createElement(Q.a,{separator:">",style:{marginTop:20}},u.a.createElement(Q.a.Item,null,"\u6559\u5B66\u8BFE\u5802"),u.a.createElement(Q.a.Item,null,u.a.createElement(F.a,{to:"/classrooms/".concat(fe==null?void 0:fe.coursesId)},Z==null?void 0:Z.course_name)),u.a.createElement(Q.a.Item,null,u.a.createElement(F.a,{to:m==null||((xt=m.detailLeftMenus)===null||xt===void 0||((tt=xt.course_modules)===null||tt===void 0||((dt=tt.filter(function(ce){return ce.type==="statistics"}))===null||dt===void 0||((Me=dt[0])===null||Me===void 0))))?void 0:Me.category_url},"\u5B66\u751F\u5206\u6790")),u.a.createElement(Q.a.Item,null,"\u5B66\u751F\u5B66\u4E60\u8BE6\u60C5")),u.a.createElement("div",{className:E.a.title},u.a.createElement("div",{className:E.a.img},u.a.createElement("img",{src:ct.a.IMG_SERVER+"/images/"+(Z==null?void 0:Z.image_url)})),u.a.createElement("div",{className:E.a.right},u.a.createElement("div",{className:E.a.top},u.a.createElement("div",null,u.a.createElement("span",{className:E.a.spanfont},"\u59D3\u540D\uFF1A",u.a.createElement("span",null,Z==null?void 0:Z.username)),u.a.createElement("span",{className:E.a.spanfont},"\u5B66\u53F7\uFF1A",u.a.createElement("span",null,(Z==null?void 0:Z.student_id)||"- -")),u.a.createElement("span",{className:E.a.spanfont},"\u5206\u73ED\uFF1A",u.a.createElement("span",null,(Z==null?void 0:Z.course_group)||"- -"))),!Object(Xe.s)()&&u.a.createElement(M.a,{overlay:u.a.createElement(C.a,{selectedKeys:[fe==null?void 0:fe.login],style:{maxHeight:"380px",overflow:"auto"}},nt==null||((Re=nt.students)===null||Re===void 0)?void 0:Re.map(function(ce,Ie){return u.a.createElement(C.a.Item,{onClick:function(){se.d.push("/classrooms/".concat(fe==null?void 0:fe.coursesId,"/Studentdetail/").concat(ce==null?void 0:ce.login)),window.location.reload()},key:ce==null?void 0:ce.login},ce.name)}))},u.a.createElement(S.a,{style:{fontSize:14}},Z==null?void 0:Z.username,u.a.createElement(b.a,{style:{color:"#0152D9"}})))),u.a.createElement("div",{className:E.a.bottom},u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},Z==null||((ge=Z.total_score)===null||ge===void 0)?void 0:ge.toFixed(2)),u.a.createElement("div",null,"\u603B\u6210\u7EE9")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.course_group_user_ranking,"/",u.a.createElement("span",{style:{color:"#99A2B4"}},Z==null?void 0:Z.course_group_user_ranking_count)),u.a.createElement("div",null,"\u5206\u73ED\u6392\u540D\uFF08\u6392\u540D / \u5206\u73ED\u4EBA\u6570\uFF09")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.overall_rating),u.a.createElement("div",null,"\u7EFC\u5408\u8BC4\u5206")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.total_user_ranking,"/",u.a.createElement("span",{style:{color:"#99A2B4"}},Z==null?void 0:Z.total_user_ranking_count)),u.a.createElement("div",null,"\u7EFC\u5408\u603B\u6392\u540D\uFF08\u6392\u540D / \u603B\u4EBA\u6570\uFF09"))))),u.a.createElement("div",{className:E.a.content},u.a.createElement(re.a,{accessKey:it,onChange:function(Ie){jt(Ie)},tabBarStyle:{padding:"0px 40px",height:55}},(Le==null?void 0:Le.find(function(ce){return ce==="shixun_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Mt=m.detailLeftMenusNames)===null||Mt===void 0)?void 0:Mt.shixun_homework},m==null||((Pt=m.detailLeftMenusNames)===null||Pt===void 0)?void 0:Pt.shixun_homework),key:"1"},u.a.createElement(ie,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="common_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Ye=m.detailLeftMenusNames)===null||Ye===void 0)?void 0:Ye.common_homework},m==null||((Et=m.detailLeftMenusNames)===null||Et===void 0)?void 0:Et.common_homework),key:"2"},u.a.createElement(Pe,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="group_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Wt=m.detailLeftMenusNames)===null||Wt===void 0)?void 0:Wt.group_homework},m==null||((O=m.detailLeftMenusNames)===null||O===void 0)?void 0:O.group_homework),key:"3"},u.a.createElement(ht,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="exercise"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((I=m.detailLeftMenusNames)===null||I===void 0)?void 0:I.exercise},m==null||(($=m.detailLeftMenusNames)===null||$===void 0)?void 0:$.exercise),key:"4"},u.a.createElement(_e,{activitykey:it})))))},wt=ne.default=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(we)},WaYH:function(mt,ne,r){"use strict";var T=r("rePB"),M=r("Ff2n"),he=r("VTBJ"),S=r("1OyB"),o=r("vuIU"),C=r("JX7q"),ae=r("Ji7U"),Q=r("LK+K"),D=r("q1tI"),G=r("TSYQ"),J=r.n(G),me=r("sboe"),re=r("OZM5"),q=function(k){var E=k.prefixCls,b=k.level,f=k.isStart,s=k.isEnd;if(!b)return null;for(var j="".concat(E,"-indent-unit"),R=[],A=0;Ay&&(B=y-z),Object(o.useMemo)(function(){if(!n.length)return[0,0];for(var te=n.length,je=te,ze=0;zep+B){je=ze-1;break}}for(var Ve=0,He=te-1;He>=0;He-=1){var Ke=a.get(n[He].key)||F;if(Ke[h]1&&arguments[1]!==void 0?arguments[1]:!1,l=d&&typeof d.getBoundingClientRect=="function"&&d.getBoundingClientRect().width;if(l){if(v){var e=getComputedStyle(d),n=e.marginLeft,t=e.marginRight;l+=+n.replace("px","")+ +t.replace("px","")}l=+l.toFixed(6)}return l||0},Me=function(d,v,l){d&&Object(ie.a)(d.style)==="object"&&(d.style[v]=l)},Re=function(){return Ne.any},ge=r("bdgK"),Mt=r("i8i4"),Pt=r.n(Mt),Ye=r("wgJM"),Et=r("l4aY"),Wt=r("m+aA"),O=r("c+Xe"),I=r("zT1h"),$=r("QC+M");function m(a,d,v){return v?a[0]===d[0]:a[0]===d[0]&&a[1]===d[1]}function V(a,d,v){var l=a[d]||{};return Object(S.a)(Object(S.a)({},l),v)}function x(a,d,v,l){for(var e=v.points,n=Object.keys(a),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;d();var n=Object(Ye.a)(function(){e<=1?l({isCanceled:function(){return n!==a.current}}):v(l,e-1)});a.current=n}return o.useEffect(function(){return function(){d()}},[]),[v,d]},fn=[Ot,ft,Le,ce],mn=!1,En=!0;function tn(a){return a===Le||a===ce}var St=function(a,d){var v=o.useState(Bt),l=Object(M.a)(v,2),e=l[0],n=l[1],t=Fe(),i=Object(M.a)(t,2),c=i[0],h=i[1];function p(){n(Ot)}return Lt(function(){if(e!==Bt&&e!==ce){var y=fn.indexOf(e),N=fn[y+1],z=d(e);z===mn?n(N):c(function(B){function te(){if(B.isCanceled())return;n(N)}z===!0?te():Promise.resolve(z).then(te)})}},[a,e]),o.useEffect(function(){return function(){h()}},[]),[p,e]},jn=function(a){var d=Object(o.useRef)(),v=Object(o.useRef)(a);v.current=a;var l=o.useCallback(function(t){v.current(t)},[]);function e(t){t&&(t.removeEventListener(zt,l),t.removeEventListener(Ae,l))}function n(t){d.current&&d.current!==t&&e(d.current),t&&t!==d.current&&(t.addEventListener(zt,l),t.addEventListener(Ae,l),d.current=t)}return o.useEffect(function(){return function(){e(d.current)}},[]),[n,e]};function Mn(a,d,v,l){var e=l.motionEnter,n=e===void 0?!0:e,t=l.motionAppear,i=t===void 0?!0:t,c=l.motionLeave,h=c===void 0?!0:c,p=l.motionDeadline,y=l.motionLeaveImmediately,N=l.onAppearPrepare,z=l.onEnterPrepare,B=l.onLeavePrepare,te=l.onAppearStart,je=l.onEnterStart,ze=l.onLeaveStart,Ue=l.onAppearActive,Ve=l.onEnterActive,He=l.onLeaveActive,Ke=l.onAppearEnd,We=l.onEnterEnd,lt=l.onLeaveEnd,$e=l.onVisibleChanged,It=Ie(),yt=Object(M.a)(It,2),xe=yt[0],Oe=yt[1],Ze=Ie(it),et=Object(M.a)(Ze,2),pe=et[0],st=et[1],Nt=Ie(null),ut=Object(M.a)(Nt,2),_t=ut[0],At=ut[1],Gt=Object(o.useRef)(!1),rn=Object(o.useRef)(null),Kt=Object(o.useRef)(!1),ln=Object(o.useRef)(null);function Cn(){var Dt=v();return Dt||ln.current}var un=Object(o.useRef)(!1);function cn(Dt){var vt=Cn();if(Dt&&!Dt.deadline&&Dt.target!==vt)return;var Yt;pe===jt&&un.current?Yt=Ke==null?void 0:Ke(vt,Dt):pe===Ht&&un.current?Yt=We==null?void 0:We(vt,Dt):pe===at&&un.current&&(Yt=lt==null?void 0:lt(vt,Dt)),Yt!==!1&&!Kt.current&&(st(it),At(null))}var Ft=jn(cn),en=Object(M.a)(Ft,1),Jt=en[0],$t=o.useMemo(function(){var Dt,vt,Yt;switch(pe){case"appear":return Dt={},Object(T.a)(Dt,Ot,N),Object(T.a)(Dt,ft,te),Object(T.a)(Dt,Le,Ue),Dt;case"enter":return vt={},Object(T.a)(vt,Ot,z),Object(T.a)(vt,ft,je),Object(T.a)(vt,Le,Ve),vt;case"leave":return Yt={},Object(T.a)(Yt,Ot,B),Object(T.a)(Yt,ft,ze),Object(T.a)(Yt,Le,He),Yt;default:return{}}},[pe]),wn=St(pe,function(Dt){if(Dt===Ot){var vt=$t[Ot];return vt?vt(Cn()):mn}if(Tt in $t){var Yt;At(((Yt=$t[Tt])===null||Yt===void 0?void 0:Yt.call($t,Cn(),null))||null)}return Tt===Le&&(Jt(Cn()),p>0&&(clearTimeout(rn.current),rn.current=setTimeout(function(){cn({deadline:!0})},p))),En}),An=Object(M.a)(wn,2),Fn=An[0],Tt=An[1],xn=tn(Tt);un.current=xn,Lt(function(){Oe(d);var Dt=Gt.current;if(Gt.current=!0,!a)return;var vt;!Dt&&d&&i&&(vt=jt),Dt&&d&&n&&(vt=Ht),(Dt&&!d&&h||!Dt&&y&&!d&&h)&&(vt=at),vt&&(st(vt),Fn())},[d]),Object(o.useEffect)(function(){(pe===jt&&!i||pe===Ht&&!n||pe===at&&!h)&&st(it)},[i,n,h]),Object(o.useEffect)(function(){return function(){clearTimeout(rn.current),Kt.current=!0}},[]),Object(o.useEffect)(function(){xe!==void 0&&pe===it&&($e==null||$e(xe))},[xe,pe]);var zn=_t;return $t[Ot]&&Tt===ft&&(zn=Object(S.a)({transition:"none"},zn)),[pe,Tt,zn,xe!=null?xe:d]}var Hn=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){return Object(k.a)(this,v),d.apply(this,arguments)}return Object(E.a)(v,[{key:"render",value:function(){return this.props.children}}]),v}(o.Component),nn=Hn;function Un(a){var d=a;Object(ie.a)(a)==="object"&&(d=a.transitionSupport);function v(e){return!!(e.motionName&&d)}var l=o.forwardRef(function(e,n){var t=e.visible,i=t===void 0?!0:t,c=e.removeOnLeave,h=c===void 0?!0:c,p=e.forceRender,y=e.children,N=e.motionName,z=e.leavedClassName,B=e.eventProps,te=v(e),je=Object(o.useRef)(),ze=Object(o.useRef)();function Ue(){try{return Object(Wt.a)(je.current||ze.current)}catch(st){return null}}var Ve=Mn(te,i,Ue,e),He=Object(M.a)(Ve,4),Ke=He[0],We=He[1],lt=He[2],$e=He[3],It=o.useRef($e);$e&&(It.current=!0);var yt=Object(o.useRef)(n);yt.current=n;var xe=o.useCallback(function(st){je.current=st,Object(O.b)(yt.current,st)},[]),Oe,Ze=Object(S.a)(Object(S.a)({},B),{},{visible:i});if(!y)Oe=null;else if(Ke===it||!v(e))$e?Oe=y(Object(S.a)({},Ze),xe):!h&&It.current?Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{className:z}),xe):p?Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{style:{display:"none"}}),xe):Oe=null;else{var et,pe;We===Ot?pe="prepare":tn(We)?pe="active":We===ft&&(pe="start"),Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{className:ae()(Rt(N,Ke),(et={},Object(T.a)(et,Rt(N,"".concat(Ke,"-").concat(pe)),pe),Object(T.a)(et,N,typeof N=="string"),et)),style:lt}),xe)}return o.createElement(nn,{ref:ze},Oe)});return l.displayName="CSSMotion",l}var On=Un(nt),kn="add",Rn="keep",gn="remove",Sn="removed";function Vn(a){var d;return a&&Object(ie.a)(a)==="object"&&"key"in a?d=a:d={key:a},Object(S.a)(Object(S.a)({},d),{},{key:String(d.key)})}function Pn(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return a.map(Vn)}function Vt(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=[],l=0,e=d.length,n=Pn(a),t=Pn(d);n.forEach(function(h){for(var p=!1,y=l;y1});return c.forEach(function(h){v=v.filter(function(p){var y=p.key,N=p.status;return y!==h||N!==gn}),v.forEach(function(p){p.key===h&&(p.status=Rn)})}),v}var qt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:On,v=function(l){Object(f.a)(n,l);var e=Object(s.a)(n);function n(){var t;return Object(k.a)(this,n),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(i){t.setState(function(c){var h=c.keyEntities;return{keyEntities:h.map(function(p){return p.key!==i?p:Object(S.a)(Object(S.a)({},p),{},{status:Sn})})}})},t}return Object(E.a)(n,[{key:"render",value:function(){var i=this,c=this.state.keyEntities,h=this.props,p=h.component,y=h.children,N=h.onVisibleChanged,z=Object(he.a)(h,["component","children","onVisibleChanged"]),B=p||o.Fragment,te={};return qt.forEach(function(je){te[je]=z[je],delete z[je]}),delete z.keys,o.createElement(B,z,c.map(function(je){var ze=je.status,Ue=Object(he.a)(je,["status"]),Ve=ze===kn||ze===Rn;return o.createElement(d,Object(w.a)({},te,{key:Ue.key,visible:Ve,eventProps:Ue,onVisibleChanged:function(Ke){N==null||N(Ke,{key:Ue.key}),Ke||i.removeKey(Ue.key)}}),y)}))}}],[{key:"getDerivedStateFromProps",value:function(i,c){var h=i.keys,p=c.keyEntities,y=Pn(h),N=Vt(p,y);return{keyEntities:N.filter(function(z){var B=p.find(function(te){var je=te.key;return z.key===je});return!(B&&B.status===Sn&&z.status===gn)})}}}]),n}(o.Component);return v.defaultProps={component:"div"},v}var Qt=sn(nt),an=On;function pn(a){var d=a.prefixCls,v=a.motion,l=a.animation,e=a.transitionName;return v||(l?{motionName:"".concat(d,"-").concat(l)}:e?{motionName:e}:null)}function $n(a){var d=a.prefixCls,v=a.visible,l=a.zIndex,e=a.mask,n=a.maskMotion,t=a.maskAnimation,i=a.maskTransitionName;if(!e)return null;var c={};return(n||i||t)&&(c=Object(S.a)({motionAppear:!0},pn({motion:n,prefixCls:d,transitionName:i,animation:t}))),o.createElement(an,Object(w.a)({},c,{visible:v,removeOnLeave:!0}),function(h){var p=h.className;return o.createElement("div",{style:{zIndex:l},className:ae()("".concat(d,"-mask"),p)})})}var In=r("9mu1"),Xn=r("o0o1"),Ma=r.n(Xn),Ra=r("HaE+"),Gn=["measure","align",null,"motion"],Ut=function(a,d){var v=Object(o.useState)(null),l=Object(M.a)(v,2),e=l[0],n=l[1],t=Object(o.useRef)(),i=Object(o.useRef)(!1);function c(y){i.current||n(y)}function h(){Ye.a.cancel(t.current)}function p(y){h(),t.current=Object(Ye.a)(function(){c(function(N){switch(e){case"align":return"motion";case"motion":return"stable";default:}return N}),y==null||y()})}return Object(o.useEffect)(function(){c("measure")},[a]),Object(o.useEffect)(function(){switch(e){case"measure":d();break;default:}e&&(t.current=Object(Ye.a)(Object(Ra.a)(Ma.a.mark(function y(){var N,z;return Ma.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:N=Gn.indexOf(e),z=Gn[N+1],z&&N!==-1&&c(z);case 3:case"end":return te.stop()}},y)}))))},[e]),Object(o.useEffect)(function(){return function(){i.current=!0,h()}},[]),[e,p]},Jn=function(a){var d=o.useState({width:0,height:0}),v=Object(M.a)(d,2),l=v[0],e=v[1];function n(i){e({width:i.offsetWidth,height:i.offsetHeight})}var t=o.useMemo(function(){var i={};if(a){var c=l.width,h=l.height;a.indexOf("height")!==-1&&h?i.height=h:a.indexOf("minHeight")!==-1&&h&&(i.minHeight=h),a.indexOf("width")!==-1&&c?i.width=c:a.indexOf("minWidth")!==-1&&c&&(i.minWidth=c)}return i},[a,l]);return[t,n]},Yn=o.forwardRef(function(a,d){var v=a.visible,l=a.prefixCls,e=a.className,n=a.style,t=a.children,i=a.zIndex,c=a.stretch,h=a.destroyPopupOnHide,p=a.forceRender,y=a.align,N=a.point,z=a.getRootDomNode,B=a.getClassNameFromAlign,te=a.onAlign,je=a.onMouseEnter,ze=a.onMouseLeave,Ue=a.onMouseDown,Ve=a.onTouchStart,He=Object(o.useRef)(),Ke=Object(o.useRef)(),We=Object(o.useState)(),lt=Object(M.a)(We,2),$e=lt[0],It=lt[1],yt=Jn(c),xe=Object(M.a)(yt,2),Oe=xe[0],Ze=xe[1];function et(){c&&Ze(z())}var pe=Ut(v,et),st=Object(M.a)(pe,2),Nt=st[0],ut=st[1],_t=Object(o.useRef)();function At(){return N||z}function Gt(){var Ft;(Ft=He.current)===null||Ft===void 0||Ft.forceAlign()}function rn(Ft,en){var Jt=B(en);$e!==Jt&&It(Jt),Nt==="align"&&($e!==Jt?Promise.resolve().then(function(){Gt()}):ut(function(){var $t;($t=_t.current)===null||$t===void 0||$t.call(_t)}),te==null||te(Ft,en))}var Kt=Object(S.a)({},pn(a));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ft){var en=Kt[Ft];Kt[Ft]=function(Jt,$t){return ut(),en==null?void 0:en(Jt,$t)}});function ln(){return new Promise(function(Ft){_t.current=Ft})}o.useEffect(function(){!Kt.motionName&&Nt==="motion"&&ut()},[Kt.motionName,Nt]),o.useImperativeHandle(d,function(){return{forceAlign:Gt,getElement:function(){return Ke.current}}});var Cn=Object(S.a)(Object(S.a)({},Oe),{},{zIndex:i,opacity:Nt==="motion"||Nt==="stable"||!v?void 0:0,pointerEvents:Nt==="stable"?void 0:"none"},n),un=!0;(y==null?void 0:y.points)&&(Nt==="align"||Nt==="stable")&&(un=!1);var cn=t;return o.Children.count(t)>1&&(cn=o.createElement("div",{className:"".concat(l,"-content")},t)),o.createElement(an,Object(w.a)({visible:v,ref:Ke,leavedClassName:"".concat(l,"-hidden")},Kt,{onAppearPrepare:ln,onEnterPrepare:ln,removeOnLeave:h,forceRender:p}),function(Ft,en){var Jt=Ft.className,$t=Ft.style,wn=ae()(l,e,$e,Jt);return o.createElement(In.a,{target:At(),key:"popup",ref:He,monitorWindowResize:!0,disabled:un,align:y,onAlign:rn},o.createElement("div",{ref:en,className:wn,onMouseEnter:je,onMouseLeave:ze,onMouseDownCapture:Ue,onTouchStartCapture:Ve,style:Object(S.a)(Object(S.a)({},$t),Cn)},cn))})});Yn.displayName="PopupInner";var Sa=Yn,vn=o.forwardRef(function(a,d){var v=a.prefixCls,l=a.visible,e=a.zIndex,n=a.children,t=a.mobile;t=t===void 0?{}:t;var i=t.popupClassName,c=t.popupStyle,h=t.popupMotion,p=h===void 0?{}:h,y=t.popupRender,N=o.useRef();o.useImperativeHandle(d,function(){return{forceAlign:function(){},getElement:function(){return N.current}}});var z=Object(S.a)({zIndex:e},c),B=n;return o.Children.count(n)>1&&(B=o.createElement("div",{className:"".concat(v,"-content")},n)),y&&(B=y(B)),o.createElement(an,Object(w.a)({visible:l,ref:N,removeOnLeave:!0},p),function(te,je){var ze=te.className,Ue=te.style,Ve=ae()(v,i,ze);return o.createElement("div",{ref:je,className:Ve,style:Object(S.a)(Object(S.a)({},Ue),z)},B)})});vn.displayName="MobilePopupInner";var Ha=vn,Pa=["visible","mobile"],oa=o.forwardRef(function(a,d){var v=a.visible,l=a.mobile,e=Object(he.a)(a,Pa),n=Object(o.useState)(v),t=Object(M.a)(n,2),i=t[0],c=t[1],h=Object(o.useState)(!1),p=Object(M.a)(h,2),y=p[0],N=p[1],z=Object(S.a)(Object(S.a)({},e),{},{visible:i});Object(o.useEffect)(function(){c(v),v&&l&&N(P())},[v,l]);var B=y?o.createElement(Ha,Object(w.a)({},z,{mobile:l,ref:d})):o.createElement(Sa,Object(w.a)({},z,{ref:d}));return o.createElement("div",null,o.createElement($n,z),B)});oa.displayName="Popup";var Va=oa,$a=o.createContext(null),ra=$a;function Qn(){}function Xa(){return""}function Ga(a){return a?a.ownerDocument:window.document}var Ta=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ja(a){var d=function(v){Object(f.a)(e,v);var l=Object(s.a)(e);function e(n){var t;Object(k.a)(this,e),t=l.call(this,n),t.popupRef=o.createRef(),t.triggerRef=o.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(c){var h=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",c),t.delaySetPopupVisible(!0,h,h?null:c)},t.onMouseMove=function(c){t.fireEvents("onMouseMove",c),t.setPoint(c)},t.onMouseLeave=function(c){t.fireEvents("onMouseLeave",c),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(c){var h;if(c.relatedTarget&&!c.relatedTarget.setTimeout&&Object(Et.a)((h=t.popupRef.current)===null||h===void 0?void 0:h.getElement(),c.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(c){t.fireEvents("onFocus",c),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(c){t.fireEvents("onMouseDown",c),t.preClickTime=Date.now()},t.onTouchStart=function(c){t.fireEvents("onTouchStart",c),t.preTouchTime=Date.now()},t.onBlur=function(c){t.fireEvents("onBlur",c),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(c){c.preventDefault(),t.fireEvents("onContextMenu",c),t.setPopupVisible(!0,c)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(c){if(t.fireEvents("onClick",c),t.focusTime){var h;if(t.preClickTime&&t.preTouchTime?h=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?h=t.preClickTime:t.preTouchTime&&(h=t.preTouchTime),Math.abs(h-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var p=!t.state.popupVisible;(t.isClickToHide()&&!p||p&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,c)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var c;(c=t.context).onPopupMouseDown.apply(c,arguments)}},t.onDocumentClick=function(c){if(t.props.mask&&!t.props.maskClosable)return;var h=c.target,p=t.getRootDomNode(),y=t.getPopupDomNode();(!Object(Et.a)(p,h)||t.isContextMenuOnly())&&!Object(Et.a)(y,h)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var c=t.props.getTriggerDOMNode;if(c)return c(t.triggerRef.current);try{var h=Object(Wt.a)(t.triggerRef.current);if(h)return h}catch(p){}return Pt.a.findDOMNode(Object(b.a)(t))},t.getPopupClassNameFromAlign=function(c){var h=[],p=t.props,y=p.popupPlacement,N=p.builtinPlacements,z=p.prefixCls,B=p.alignPoint,te=p.getPopupClassNameFromAlign;return y&&N&&h.push(x(N,z,c,B)),te&&h.push(te(c)),h.join(" ")},t.getComponent=function(){var c=t.props,h=c.prefixCls,p=c.destroyPopupOnHide,y=c.popupClassName,N=c.onPopupAlign,z=c.popupMotion,B=c.popupAnimation,te=c.popupTransitionName,je=c.popupStyle,ze=c.mask,Ue=c.maskAnimation,Ve=c.maskTransitionName,He=c.maskMotion,Ke=c.zIndex,We=c.popup,lt=c.stretch,$e=c.alignPoint,It=c.mobile,yt=c.forceRender,xe=t.state,Oe=xe.popupVisible,Ze=xe.point,et=t.getPopupAlign(),pe={};return t.isMouseEnterToShow()&&(pe.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(pe.onMouseLeave=t.onPopupMouseLeave),pe.onMouseDown=t.onPopupMouseDown,pe.onTouchStart=t.onPopupMouseDown,o.createElement(Va,Object(w.a)({prefixCls:h,destroyPopupOnHide:p,visible:Oe,point:$e&&Ze,className:y,align:et,onAlign:N,animation:B,getClassNameFromAlign:t.getPopupClassNameFromAlign},pe,{stretch:lt,getRootDomNode:t.getRootDomNode,style:je,mask:ze,zIndex:Ke,transitionName:te,maskAnimation:Ue,maskTransitionName:Ve,maskMotion:He,ref:t.popupRef,motion:z,mobile:It,forceRender:yt}),typeof We=="function"?We():We)},t.attachParent=function(c){Ye.a.cancel(t.attachId);var h=t.props,p=h.getPopupContainer,y=h.getDocument,N=t.getRootDomNode(),z;p?(N||p.length===0)&&(z=p(N)):z=y(t.getRootDomNode()).body,z?z.appendChild(c):t.attachId=Object(Ye.a)(function(){t.attachParent(c)})},t.getContainer=function(){var c=t.props.getDocument,h=c(t.getRootDomNode()).createElement("div");return h.style.position="absolute",h.style.top="0",h.style.left="0",h.style.width="100%",t.attachParent(h),h},t.setPoint=function(c){var h=t.props.alignPoint;if(!h||!c)return;t.setState({point:{pageX:c.pageX,pageY:c.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var i;return"popupVisible"in n?i=!!n.popupVisible:i=!!n.defaultPopupVisible,t.state={prevPopupVisible:i,popupVisible:i},Ta.forEach(function(c){t["fire".concat(c)]=function(h){t.fireEvents(c,h)}}),t}return Object(E.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,i=this.state;if(i.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(I.a)(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(I.a)(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(I.a)(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(I.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ye.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,i=t.popupPlacement,c=t.popupAlign,h=t.builtinPlacements;return i&&h?V(h,i,c):c}},{key:"setPopupVisible",value:function(t,i){var c=this.props.alignPoint,h=this.state.popupVisible;this.clearDelayTimer(),h!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:h}),this.props.onPopupVisibleChange(t)),c&&i&&t&&this.setPoint(i)}},{key:"delaySetPopupVisible",value:function(t,i,c){var h=this,p=i*1e3;if(this.clearDelayTimer(),p){var y=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){h.setPopupVisible(t,y),h.clearDelayTimer()},p)}else this.setPopupVisible(t,c)}},{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(t){var i=this.props.children.props,c=this.props;return i[t]&&c[t]?this["fire".concat(t)]:i[t]||c[t]}},{key:"isClickToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,i){var c=this.props.children.props[t];c&&c(i);var h=this.props[t];h&&h(i)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,i=this.props,c=i.children,h=i.forceRender,p=i.alignPoint,y=i.className,N=i.autoDestroy,z=o.Children.only(c),B={key:"trigger"};this.isContextMenuToShow()?B.onContextMenu=this.onContextMenu:B.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(B.onClick=this.onClick,B.onMouseDown=this.onMouseDown,B.onTouchStart=this.onTouchStart):(B.onClick=this.createTwoChains("onClick"),B.onMouseDown=this.createTwoChains("onMouseDown"),B.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(B.onMouseEnter=this.onMouseEnter,p&&(B.onMouseMove=this.onMouseMove)):B.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?B.onMouseLeave=this.onMouseLeave:B.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(B.onFocus=this.onFocus,B.onBlur=this.onBlur):(B.onFocus=this.createTwoChains("onFocus"),B.onBlur=this.createTwoChains("onBlur"));var te=ae()(z&&z.props&&z.props.className,y);te&&(B.className=te);var je=Object(S.a)({},B);Object(O.c)(z)&&(je.ref=Object(O.a)(this.triggerRef,z.ref));var ze=o.cloneElement(z,je),Ue;return(t||this.popupRef.current||h)&&(Ue=o.createElement(a,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&N&&(Ue=null),o.createElement(ra.Provider,{value:this.triggerContextValue},ze,Ue)}}],[{key:"getDerivedStateFromProps",value:function(t,i){var c=t.popupVisible,h={};return c!==void 0&&i.popupVisible!==c&&(h.popupVisible=c,h.prevPopupVisible=i.popupVisible),h}}]),e}(o.Component);return d.contextType=ra,d.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Xa,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},d}var Ya=Ja($.a),yn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:yn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:yn,offset:[4,0]}},Na={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:yn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:yn,offset:[4,0]}},la=ia,on=0,hn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},bn=function(d,v,l){var e=Je(v),n=d.getState();d.setState({defaultActiveFirst:Object(S.a)(Object(S.a)({},n.defaultActiveFirst),{},Object(T.a)({},e,l))})},sa=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;Object(k.a)(this,v),e=d.call(this,l),e.onDestroy=function(p){e.props.onDestroy(p)},e.onKeyDown=function(p){var y=p.keyCode,N=e.menuInstance,z=e.props.store,B=e.getVisible();if(y===g.a.ENTER)return e.onTitleClick(p),bn(z,e.props.eventKey,!0),!0;if(y===g.a.RIGHT)return B?N.onKeyDown(p):(e.triggerOpenChange(!0),bn(z,e.props.eventKey,!0)),!0;if(y===g.a.LEFT){var te;if(B)te=N.onKeyDown(p);else return;return te||(e.triggerOpenChange(!1),te=!0),te}return B&&(y===g.a.UP||y===g.a.DOWN)?N.onKeyDown(p):void 0},e.onOpenChange=function(p){e.props.onOpenChange(p)},e.onPopupVisibleChange=function(p){e.triggerOpenChange(p,p?"mouseenter":"mouseleave")},e.onMouseEnter=function(p){var y=e.props,N=y.eventKey,z=y.onMouseEnter,B=y.store;bn(B,e.props.eventKey,!1),z({key:N,domEvent:p})},e.onMouseLeave=function(p){var y=e.props,N=y.parentMenu,z=y.eventKey,B=y.onMouseLeave;N.subMenuInstance=Object(b.a)(e),B({key:z,domEvent:p})},e.onTitleMouseEnter=function(p){var y=e.props,N=y.eventKey,z=y.onItemHover,B=y.onTitleMouseEnter;z({key:N,hover:!0}),B({key:N,domEvent:p})},e.onTitleMouseLeave=function(p){var y=e.props,N=y.parentMenu,z=y.eventKey,B=y.onItemHover,te=y.onTitleMouseLeave;N.subMenuInstance=Object(b.a)(e),B({key:z,hover:!1}),te({key:z,domEvent:p})},e.onTitleClick=function(p){var y=Object(b.a)(e),N=y.props;if(N.onTitleClick({key:N.eventKey,domEvent:p}),N.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),bn(N.store,e.props.eventKey,!1)},e.onSubMenuClick=function(p){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(p))},e.onSelect=function(p){e.props.onSelect(p)},e.onDeselect=function(p){e.props.onDeselect(p)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(p){e.menuInstance=p},e.addKeyPath=function(p){return Object(S.a)(Object(S.a)({},p),{},{keyPath:(p.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(p,y){var N=e.props.eventKey,z=function(){e.onOpenChange({key:N,item:Object(b.a)(e),trigger:y,open:p})};y==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){z()},0):z()},e.isChildrenSelected=function(){var p={find:!1};return xt(e.props.children,e.props.selectedKeys,p),p.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var p=Mt.findDOMNode(e.menuInstance);if(p.offsetWidth>=e.subMenuTitle.offsetWidth)return;p.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(p){e.subMenuTitle=p},e.getBaseProps=function(){var p=Object(b.a)(e),y=p.props,N=e.getMode();return{mode:N==="horizontal"?"vertical":N,visible:e.getVisible(),level:y.level+1,inlineIndent:y.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:y.selectedKeys,eventKey:"".concat(y.eventKey,"-menu-"),openKeys:y.openKeys,motion:y.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:y.subMenuOpenDelay,parentMenu:Object(b.a)(e),subMenuCloseDelay:y.subMenuCloseDelay,forceSubMenuRender:y.forceSubMenuRender,triggerSubMenuAction:y.triggerSubMenuAction,builtinPlacements:y.builtinPlacements,defaultActiveFirst:y.store.getState().defaultActiveFirst[Je(y.eventKey)],multiple:y.multiple,prefixCls:y.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:y.itemIcon,expandIcon:y.expandIcon,direction:y.direction}},e.getMotion=function(p,y){var N=Object(b.a)(e),z=N.haveRendered,B=e.props,te=B.motion,je=B.rootPrefixCls,ze=Object(S.a)(Object(S.a)({},te),{},{leavedClassName:"".concat(je,"-hidden"),removeOnLeave:!1,motionAppear:z||!y||p!=="inline"});return ze};var n=l.store,t=l.eventKey,i=n.getState(),c=i.defaultActiveFirst;e.isRootMenu=!1;var h=!1;return c&&(h=c[t]),bn(n,t,h),e.state={mode:l.mode,isOpen:l.isOpen},e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,n=this.props,t=n.mode,i=n.parentMenu,c=n.manualRef,h=n.isOpen,p=function(){e.setState({mode:t,isOpen:h})},y=h!==this.state.isOpen,N=t!==this.state.mode;if((N||y)&&(Ye.a.cancel(this.updateStateRaf),N?this.updateStateRaf=Object(Ye.a)(p):p()),c&&c(this),t!=="horizontal"||!(i==null?void 0:i.isRootMenu)||!h)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,n=e.onDestroy,t=e.eventKey;n&&n(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Ye.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,n){var t=this.getBaseProps();return o.createElement(ea,Object(w.a)({},t,{id:this.internalMenuId,className:e,style:n}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,n=this.getBaseProps(),t=n.mode,i=n.visible,c=n.forceSubMenuRender,h=n.direction,p=this.getMotion(t,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||c,!this.haveOpened)return o.createElement("div",null);var y=ae()("".concat(n.prefixCls,"-sub"),Object(T.a)({},"".concat(n.prefixCls,"-rtl"),h==="rtl"));return this.isInlineMode()?o.createElement(an,Object(w.a)({visible:n.visible,forceRender:c},p),function(N){var z=N.className,B=N.style,te=ae()(y,z);return e.renderPopupMenu(te,B)}):this.renderPopupMenu(y)}},{key:"render",value:function(){var e,n,t,i=Object(S.a)({},this.props),c=this.getVisible(),h=this.getPrefixCls(),p=this.isInlineMode(),y=this.getMode(),N=ae()(h,"".concat(h,"-").concat(y),(e={},Object(T.a)(e,i.className,!!i.className),Object(T.a)(e,this.getOpenClassName(),c),Object(T.a)(e,this.getActiveClassName(),i.active||c&&!p),Object(T.a)(e,this.getDisabledClassName(),i.disabled),Object(T.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(on+=1,this.internalMenuId="$__$".concat(on,"$Menu")));var z={},B={},te={};i.disabled||(z={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},B={onClick:this.onTitleClick},te={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var je={},ze=i.direction,Ue=ze==="rtl";p&&(Ue?je.paddingRight=i.inlineIndent*i.level:je.paddingLeft=i.inlineIndent*i.level);var Ve={};this.getVisible()&&(Ve={"aria-owns":this.internalMenuId});var He=null;y!=="horizontal"&&(He=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(He=o.createElement(this.props.expandIcon,Object(S.a)({},this.props))));var Ke=o.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:je,className:"".concat(h,"-title"),role:"button"},te,B,{"aria-expanded":c},Ve,{"aria-haspopup":"true",title:typeof i.title=="string"?i.title:void 0}),i.title,He||o.createElement("i",{className:"".concat(h,"-arrow")})),We=this.renderChildren(),lt=((n=i.parentMenu)===null||n===void 0?void 0:n.isRootMenu)?i.parentMenu.props.getPopupContainer:function(At){return At.parentNode},$e=hn[y],It=i.popupOffset?{offset:i.popupOffset}:{},yt=ae()((t={},Object(T.a)(t,i.popupClassName,i.popupClassName&&!p),Object(T.a)(t,"".concat(h,"-rtl"),Ue),t)),xe=i.disabled,Oe=i.triggerSubMenuAction,Ze=i.subMenuOpenDelay,et=i.forceSubMenuRender,pe=i.subMenuCloseDelay,st=i.builtinPlacements;tt.forEach(function(At){return delete i[At]}),delete i.onClick;var Nt=Ue?Object(S.a)(Object(S.a)({},Na),st):Object(S.a)(Object(S.a)({},ia),st);delete i.direction;var ut=this.getBaseProps(),_t=p?null:this.getMotion(ut.mode,ut.visible);return o.createElement("li",Object(w.a)({},i,z,{className:N,role:"menuitem"}),o.createElement(Ya,{prefixCls:h,popupClassName:ae()("".concat(h,"-popup"),yt),getPopupContainer:lt,builtinPlacements:Nt,popupPlacement:$e,popupVisible:p?!1:c,popupAlign:It,popup:p?null:We,action:xe||p?[]:[Oe],mouseEnterDelay:Ze,mouseLeaveDelay:pe,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:et,popupMotion:_t},Ke),p?We:null)}}]),v}(o.Component);sa.defaultProps={onMouseEnter:Y,onMouseLeave:Y,onTitleMouseEnter:Y,onTitleMouseLeave:Y,onTitleClick:Y,manualRef:Y,mode:"vertical",title:""};var Kn=Object(j.b)(function(a,d){var v=a.openKeys,l=a.activeKey,e=a.selectedKeys,n=d.eventKey,t=d.subMenuKey;return{isOpen:v.indexOf(n)>-1,active:l[t]===n,selectedKeys:e}})(sa);Kn.isSubMenu=!0;var Wn=Kn,Da="menuitem-overflowed",Qa=.5,wa=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.resizeObserver=null,l.mutationObserver=null,l.originalTotalWidth=0,l.overflowedItems=[],l.menuItemSizes=[],l.cancelFrameId=null,l.state={lastVisibleIndex:void 0},l.childRef=o.createRef(),l.getMenuItemNodes=function(){var e=l.props.prefixCls,n=l.childRef.current;return n?[].slice.call(n.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},l.getOverflowedSubMenuItem=function(e,n,t){var i=l.props,c=i.overflowedIndicator,h=i.level,p=i.mode,y=i.prefixCls,N=i.theme;if(h!==1||p!=="horizontal")return null;var z=l.props.children[0],B=z.props,te=B.children,je=B.title,ze=B.style,Ue=Object(he.a)(B,["children","title","style"]),Ve=Object(S.a)({},ze),He="".concat(e,"-overflowed-indicator"),Ke="".concat(e,"-overflowed-indicator");n.length===0&&t!==!0?Ve=Object(S.a)(Object(S.a)({},Ve),{},{display:"none"}):t&&(Ve=Object(S.a)(Object(S.a)({},Ve),{},{visibility:"hidden",position:"absolute"}),He="".concat(He,"-placeholder"),Ke="".concat(Ke,"-placeholder"));var We=N?"".concat(y,"-").concat(N):"",lt={};return tt.forEach(function($e){Ue[$e]!==void 0&&(lt[$e]=Ue[$e])}),o.createElement(Wn,Object(w.a)({title:c,className:"".concat(y,"-overflowed-submenu"),popupClassName:We},lt,{key:He,eventKey:Ke,disabled:!1,style:Ve}),n)},l.setChildrenWidthAndResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var n=e.children;if(!n||n.length===0)return;var t=e.children[n.length-1];Me(t,"display","inline-block");var i=l.getMenuItemNodes(),c=i.filter(function(h){return h.className.split(" ").indexOf(Da)>=0});c.forEach(function(h){Me(h,"display","inline-block")}),l.menuItemSizes=i.map(function(h){return dt(h,!0)}),c.forEach(function(h){Me(h,"display","none")}),l.overflowedIndicatorWidth=dt(e.children[e.children.length-1],!0),l.originalTotalWidth=l.menuItemSizes.reduce(function(h,p){return h+p},0),l.handleResize(),Me(t,"display","none")},l.handleResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var n=dt(e);l.overflowedItems=[];var t=0,i;l.originalTotalWidth>n+Qa&&(i=-1,l.menuItemSizes.forEach(function(c){t+=c,t+l.overflowedIndicatorWidth<=n&&(i+=1)})),l.setState({lastVisibleIndex:i})},l}return Object(E.a)(v,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var n=this.childRef.current;if(!n)return;this.resizeObserver=new ge.default(function(t){t.forEach(function(){var i=e.cancelFrameId;cancelAnimationFrame(i),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(n,{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(e){var n=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,c,h){var p=c;if(n.props.mode==="horizontal"){var y=n.getOverflowedSubMenuItem(c.props.eventKey,[]);t!==void 0&&n.props.className.indexOf("".concat(n.props.prefixCls,"-root"))!==-1&&(h>t&&(p=o.cloneElement(c,{style:{display:"none"},eventKey:"".concat(c.props.eventKey,"-hidden"),className:"".concat(Da)})),h===t+1&&(n.overflowedItems=e.slice(t+1).map(function(z){return o.cloneElement(z,{key:z.props.eventKey,mode:"vertical-left"})}),y=n.getOverflowedSubMenuItem(c.props.eventKey,n.overflowedItems)));var N=[].concat(Object(G.a)(i),[y,p]);return h===e.length-1&&N.push(n.getOverflowedSubMenuItem(c.props.eventKey,[],!0)),N}return[].concat(Object(G.a)(i),[p])},[])}},{key:"render",value:function(){var e=this.props,n=e.visible,t=e.prefixCls,i=e.overflowedIndicator,c=e.mode,h=e.level,p=e.tag,y=e.children,N=e.theme,z=Object(he.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),B=p;return o.createElement(B,Object(w.a)({ref:this.childRef},z),this.renderChildren(y))}}]),v}(o.Component);wa.defaultProps={tag:"div",className:""};var ua=wa;function Zn(a){return a.length?a.every(function(d){return!!d.props.disabled}):!0}function Tn(a,d,v){var l=a.getState();a.setState({activeKey:Object(S.a)(Object(S.a)({},l.activeKey),{},Object(T.a)({},d,v))})}function _n(a){return a.eventKey||"0-menu-"}function qn(a,d){var v=d,l=a.children,e=a.eventKey;if(v){var n;if(bt(l,function(t,i){t&&t.props&&!t.props.disabled&&v===be(t,e,i)&&(n=!0)}),n)return v}return v=null,a.defaultActiveFirst&&bt(l,function(t,i){!v&&t&&!t.props.disabled&&(v=be(t,e,i))}),v}function Aa(a){if(!a)return;var d=this.instanceArray.indexOf(a);d!==-1?this.instanceArray[d]=a:this.instanceArray.push(a)}var La=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;return Object(k.a)(this,v),e=d.call(this,l),e.onKeyDown=function(n,t){var i=n.keyCode,c;if(e.getFlatInstanceArray().forEach(function(p){p&&p.props.active&&p.onKeyDown&&(c=p.onKeyDown(n))}),c)return 1;var h=null;return(i===g.a.UP||i===g.a.DOWN)&&(h=e.step(i===g.a.UP?-1:1)),h?(n.preventDefault(),Tn(e.props.store,_n(e.props),h.props.eventKey),typeof t=="function"&&t(h),1):void 0},e.onItemHover=function(n){var t=n.key,i=n.hover;Tn(e.props.store,_n(e.props),i?t:null)},e.onDeselect=function(n){e.props.onDeselect(n)},e.onSelect=function(n){e.props.onSelect(n)},e.onClick=function(n){e.props.onClick(n)},e.onOpenChange=function(n){e.props.onOpenChange(n)},e.onDestroy=function(n){e.props.onDestroy(n)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(n){var t=e.getFlatInstanceArray(),i=e.props.store.getState().activeKey[_n(e.props)],c=t.length;if(!c)return null;n<0&&(t=t.concat().reverse());var h=-1;if(t.every(function(z,B){return z&&z.props.eventKey===i?(h=B,!1):!0}),!e.props.defaultActiveFirst&&h!==-1&&Zn(t.slice(h,c-1)))return;var p=(h+1)%c,y=p;do{var N=t[y];if(!N||N.props.disabled)y=(y+1)%c;else return N}while(y!==p);return null},e.renderCommonMenuItem=function(n,t,i){var c=e.props.store.getState(),h=Object(b.a)(e),p=h.props,y=be(n,p.eventKey,t),N=n.props;if(!N||typeof n.type=="string")return n;var z=y===c.activeKey,B=Object(S.a)(Object(S.a)({mode:N.mode||p.mode,level:p.level,inlineIndent:p.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:p.prefixCls,index:t,parentMenu:p.parentMenu,manualRef:N.disabled?void 0:Object(A.a)(n.ref,Aa.bind(Object(b.a)(e))),eventKey:y,active:!N.disabled&&z,multiple:p.multiple,onClick:function(je){(N.onClick||Y)(je),e.onClick(je)},onItemHover:e.onItemHover,motion:p.motion,subMenuOpenDelay:p.subMenuOpenDelay,subMenuCloseDelay:p.subMenuCloseDelay,forceSubMenuRender:p.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:p.builtinPlacements,itemIcon:N.itemIcon||e.props.itemIcon,expandIcon:N.expandIcon||e.props.expandIcon},i),{},{direction:p.direction});return(p.mode==="inline"||Re())&&(B.triggerSubMenuAction="click"),o.cloneElement(n,Object(S.a)(Object(S.a)({},B),{},{key:y||t}))},e.renderMenuItem=function(n,t,i){if(!n)return null;var c=e.props.store.getState(),h={openKeys:c.openKeys,selectedKeys:c.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:i};return e.renderCommonMenuItem(n,t,h)},l.store.setState({activeKey:Object(S.a)(Object(S.a)({},l.store.getState().activeKey),{},Object(T.a)({},l.eventKey,qn(l,l.activeKey)))}),e.instanceArray=[],e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!L()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t="activeKey"in n?n.activeKey:n.store.getState().activeKey[_n(n)],i=qn(n,t);if(i!==t)Tn(n.store,_n(n),i);else if("activeKey"in e){var c=qn(e,e.activeKey);i!==c&&Tn(n.store,_n(n),i)}}},{key:"render",value:function(){var e=this,n=Object(w.a)({},this.props);this.instanceArray=[];var t=ae()(n.prefixCls,n.className,"".concat(n.prefixCls,"-").concat(n.mode)),i={className:t,role:n.role||"menu"};n.id&&(i.id=n.id),n.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var c=n.prefixCls,h=n.eventKey,p=n.visible,y=n.level,N=n.mode,z=n.overflowedIndicator,B=n.theme;return tt.forEach(function(te){return delete n[te]}),delete n.onClick,o.createElement(ua,Object(w.a)({},n,{prefixCls:c,mode:N,tag:"ul",level:y,theme:B,visible:p,overflowedIndicator:z},i),Object(Q.a)(n.children).map(function(te,je){return e.renderMenuItem(te,je,h||"0-menu-")}))}}]),v}(o.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Y};var Ua=Object(j.b)()(La),ea=Ua,Nn=r("Kwbf");function ca(a,d,v){var l=a.prefixCls,e=a.motion,n=a.defaultMotions,t=n===void 0?{}:n,i=a.openAnimation,c=a.openTransitionName,h=d.switchingModeFromInline;if(e)return e;if(Object(ie.a)(i)==="object"&&i)Object(Nn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof i=="string")return{motionName:"".concat(l,"-open-").concat(i)};if(c)return{motionName:c};var p=t[v];return p||(h?null:t.other)}var ka=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;Object(k.a)(this,v),e=d.call(this,l),e.onSelect=function(i){var c=Object(b.a)(e),h=c.props;if(h.selectable){var p=e.store.getState(),y=p.selectedKeys,N=i.key;h.multiple?y=y.concat([N]):y=[N],"selectedKeys"in h||e.store.setState({selectedKeys:y}),h.onSelect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:y}))}},e.onClick=function(i){var c=e.getRealMenuMode(),h=Object(b.a)(e),p=h.store,y=h.props.onOpenChange;c!=="inline"&&!("openKeys"in e.props)&&(p.setState({openKeys:[]}),y([])),e.props.onClick(i)},e.onKeyDown=function(i,c){e.innerMenu.getWrappedInstance().onKeyDown(i,c)},e.onOpenChange=function(i){var c=Object(b.a)(e),h=c.props,p=e.store.getState().openKeys.concat(),y=!1,N=function(B){var te=!1;if(B.open)te=p.indexOf(B.key)===-1,te&&p.push(B.key);else{var je=p.indexOf(B.key);te=je!==-1,te&&p.splice(je,1)}y=y||te};Array.isArray(i)?i.forEach(N):N(i),y&&("openKeys"in e.props||e.store.setState({openKeys:p}),h.onOpenChange(p))},e.onDeselect=function(i){var c=Object(b.a)(e),h=c.props;if(h.selectable){var p=e.store.getState().selectedKeys.concat(),y=i.key,N=p.indexOf(y);N!==-1&&p.splice(N,1),"selectedKeys"in h||e.store.setState({selectedKeys:p}),h.onDeselect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:p}))}},e.onMouseEnter=function(i){e.restoreModeVerticalFromInline();var c=e.props.onMouseEnter;c&&c(i)},e.onTransitionEnd=function(i){var c=i.propertyName==="width"&&i.target===i.currentTarget,h=i.target.className,p=Object.prototype.toString.call(h)==="[object SVGAnimatedString]"?h.animVal:h,y=i.propertyName==="font-size"&&p.indexOf("anticon")>=0;(c||y)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(i){e.innerMenu=i},e.isRootMenu=!0;var n=l.defaultSelectedKeys,t=l.defaultOpenKeys;return"selectedKeys"in l&&(n=l.selectedKeys||[]),"openKeys"in l&&(t=l.openKeys||[]),e.store=Object(j.c)({selectedKeys:n,openKeys:t,activeKey:{"0-menu-":qn(l,l.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:l,inlineOpenKeys:[],store:e.store},e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.siderCollapsed,i=n.inlineCollapsed,c=n.onOpenChange;(!e.inlineCollapsed&&i||!e.siderCollapsed&&t)&&c([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,n=this.store,t=this.prevOpenKeys,i=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");i?(this.prevOpenKeys=n.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,n=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return n&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,n=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:n}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(S.a)({},Object(R.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),n=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(S.a)(Object(S.a)({},e),{},{mode:n,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,n)}),delete e.openAnimation,delete e.openTransitionName,o.createElement(j.a,{store:this.store},o.createElement(ea,Object(w.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,i=n.store,c=i.getState(),h={},p={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(p.switchingModeFromInline=!0),"openKeys"in e?h.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(p.switchingModeFromInline=!0,p.inlineOpenKeys=c.openKeys,h.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(h.openKeys=n.inlineOpenKeys,p.inlineOpenKeys=[])),Object.keys(h).length&&i.setState(h),p}}]),v}(o.Component);ka.defaultProps={selectable:!0,onClick:Y,onSelect:Y,onOpenChange:Y,onDeselect:Y,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 Ia=ka,Dn=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.onKeyDown=function(e){var n=e.keyCode;return n===g.a.ENTER?(l.onClick(e),!0):void 0},l.onMouseLeave=function(e){var n=l.props,t=n.eventKey,i=n.onItemHover,c=n.onMouseLeave;i({key:t,hover:!1}),c({key:t,domEvent:e})},l.onMouseEnter=function(e){var n=l.props,t=n.eventKey,i=n.onItemHover,c=n.onMouseEnter;i({key:t,hover:!0}),c({key:t,domEvent:e})},l.onClick=function(e){var n=l.props,t=n.eventKey,i=n.multiple,c=n.onClick,h=n.onSelect,p=n.onDeselect,y=n.isSelected,N={key:t,keyPath:[t],item:Object(b.a)(l),domEvent:e};c(N),i?y?p(N):h(N):y||h(N)},l.saveNode=function(e){l.node=e},l}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,n=Object(S.a)({},this.props),t=ae()(this.getPrefixCls(),n.className,(e={},Object(T.a)(e,this.getActiveClassName(),!n.disabled&&n.active),Object(T.a)(e,this.getSelectedClassName(),n.isSelected),Object(T.a)(e,this.getDisabledClassName(),n.disabled),e)),i=Object(S.a)(Object(S.a)({},n.attribute),{},{title:typeof n.title=="string"?n.title:void 0,className:t,role:n.role||"menuitem","aria-disabled":n.disabled});n.role==="option"?i=Object(S.a)(Object(S.a)({},i),{},{role:"option","aria-selected":n.isSelected}):(n.role===null||n.role==="none")&&(i.role="none");var c={onClick:n.disabled?null:this.onClick,onMouseLeave:n.disabled?null:this.onMouseLeave,onMouseEnter:n.disabled?null:this.onMouseEnter},h=Object(S.a)({},n.style);n.mode==="inline"&&(n.direction==="rtl"?h.paddingRight=n.inlineIndent*n.level:h.paddingLeft=n.inlineIndent*n.level),tt.forEach(function(y){return delete n[y]}),delete n.direction;var p=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(p=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(w.a)({},Object(R.a)(n,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,c,{style:h,ref:this.saveNode}),n.children,p)}}]),v}(o.Component);Dn.isMenuItem=!0,Dn.defaultProps={onSelect:Y,onMouseEnter:Y,onMouseLeave:Y,manualRef:Y};var da=Object(j.b)(function(a,d){var v=a.activeKey,l=a.selectedKeys,e=d.eventKey,n=d.subMenuKey;return{active:v[n]===e,isSelected:Array.isArray(l)?l.indexOf(e)!==-1:l===e}})(Dn),fa=da,ma=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.renderInnerMenuItem=function(e){var n=l.props,t=n.renderMenuItem,i=n.index;return t(e,i,l.props.subMenuKey)},l}return Object(E.a)(v,[{key:"render",value:function(){var e=Object(w.a)({},this.props),n=e.className,t=n===void 0?"":n,i=e.rootPrefixCls,c="".concat(i,"-item-group-title"),h="".concat(i,"-item-group-list"),p=e.title,y=e.children;return tt.forEach(function(N){return delete e[N]}),delete e.direction,o.createElement("li",Object(w.a)({},e,{onClick:function(z){return z.stopPropagation()},className:"".concat(t," ").concat(i,"-item-group")}),o.createElement("div",{className:c,title:typeof p=="string"?p:void 0},p),o.createElement("ul",{className:h},o.Children.map(y,this.renderInnerMenuItem)))}}]),v}(o.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(d){var v=d.className,l=d.rootPrefixCls,e=d.style;return o.createElement("li",{className:"".concat(v," ").concat(l,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ia,va=r("eDIo");function eo(a,d){var v=a.prefixCls,l=a.editable,e=a.locale,n=a.style;return!l||l.showAdd===!1?null:o.createElement("button",{ref:d,type:"button",className:"".concat(v,"-nav-add"),style:n,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(i){l.onEdit("add",{event:i})}},l.addIcon||"+")}var ta=o.forwardRef(eo);function to(a,d){var v=a.prefixCls,l=a.id,e=a.tabs,n=a.locale,t=a.mobile,i=a.moreIcon,c=i===void 0?"More":i,h=a.moreTransitionName,p=a.style,y=a.className,N=a.editable,z=a.tabBarGutter,B=a.rtl,te=a.onTabClick,je=Object(o.useState)(!1),ze=Object(M.a)(je,2),Ue=ze[0],Ve=ze[1],He=Object(o.useState)(null),Ke=Object(M.a)(He,2),We=Ke[0],lt=Ke[1],$e="".concat(l,"-more-popup"),It="".concat(v,"-dropdown"),yt=We!==null?"".concat($e,"-").concat(We):null,xe=n==null?void 0:n.dropdownAriaLabel,Oe=o.createElement(Ka,{onClick:function(_t){var At=_t.key,Gt=_t.domEvent;te(At,Gt),Ve(!1)},id:$e,tabIndex:-1,role:"listbox","aria-activedescendant":yt,selectedKeys:[We],"aria-label":xe!==void 0?xe:"expanded dropdown"},e.map(function(ut){return o.createElement(fa,{key:ut.key,id:"".concat($e,"-").concat(ut.key),role:"option","aria-controls":l&&"".concat(l,"-panel-").concat(ut.key),disabled:ut.disabled},ut.tab)}));function Ze(ut){for(var _t=e.filter(function(ln){return!ln.disabled}),At=_t.findIndex(function(ln){return ln.key===We})||0,Gt=_t.length,rn=0;rnst?(et=Oe,$e.current="x"):(et=Ze,$e.current="y");var Nt=Date.now();Nt-We.current>100&&(lt.current=!1),(d(-et,-et)||lt.current)&&(xe.preventDefault(),lt.current=!0),We.current=Nt}var yt=Object(o.useRef)(null);yt.current={onTouchStart:Ve,onTouchMove:He,onTouchEnd:Ke,onWheel:It},o.useEffect(function(){function xe(pe){yt.current.onTouchStart(pe)}function Oe(pe){yt.current.onTouchMove(pe)}function Ze(pe){yt.current.onTouchEnd(pe)}function et(pe){yt.current.onWheel(pe)}return document.addEventListener("touchmove",Oe,{passive:!1}),document.addEventListener("touchend",Ze,{passive:!1}),a.current.addEventListener("touchstart",xe,{passive:!1}),a.current.addEventListener("wheel",et),function(){document.removeEventListener("touchmove",Oe),document.removeEventListener("touchend",Ze)}},[])}function ba(){var a=Object(o.useRef)(new Map);function d(l){return a.current.has(l)||a.current.set(l,o.createRef()),a.current.get(l)}function v(l){a.current.delete(l)}return[d,v]}function Ba(a,d){var v=o.useRef(a),l=o.useState({}),e=Object(M.a)(l,2),n=e[1];function t(i){var c=typeof i=="function"?i(v.current):i;c!==v.current&&d(c,v.current),v.current=c,n({})}return[v.current,t]}var Fa=function(d){var v=d.position,l=d.prefixCls,e=d.extra;if(!e)return null;var n,t=e;return v==="right"&&(n=t.right||!t.left&&t||null),v==="left"&&(n=t.left||null),n?o.createElement("div",{className:"".concat(l,"-extra-content")},n):null};function Bo(a,d){var v,l=o.useContext(ha),e=l.prefixCls,n=l.tabs,t=a.className,i=a.style,c=a.id,h=a.animated,p=a.activeKey,y=a.rtl,N=a.extra,z=a.editable,B=a.locale,te=a.tabPosition,je=a.tabBarGutter,ze=a.children,Ue=a.onTabClick,Ve=a.onTabScroll,He=Object(o.useRef)(),Ke=Object(o.useRef)(),We=Object(o.useRef)(),lt=Object(o.useRef)(),$e=ba(),It=Object(M.a)($e,2),yt=It[0],xe=It[1],Oe=te==="top"||te==="bottom",Ze=Ba(0,function(Ct,qe){Oe&&Ve&&Ve({direction:Ct>qe?"left":"right"})}),et=Object(M.a)(Ze,2),pe=et[0],st=et[1],Nt=Ba(0,function(Ct,qe){!Oe&&Ve&&Ve({direction:Ct>qe?"top":"bottom"})}),ut=Object(M.a)(Nt,2),_t=ut[0],At=ut[1],Gt=Object(o.useState)(0),rn=Object(M.a)(Gt,2),Kt=rn[0],ln=rn[1],Cn=Object(o.useState)(0),un=Object(M.a)(Cn,2),cn=un[0],Ft=un[1],en=Object(o.useState)(0),Jt=Object(M.a)(en,2),$t=Jt[0],wn=Jt[1],An=Object(o.useState)(0),Fn=Object(M.a)(An,2),Tt=Fn[0],xn=Fn[1],zn=Object(o.useState)(null),Dt=Object(M.a)(zn,2),vt=Dt[0],Yt=Dt[1],$o=Object(o.useState)(null),bo=Object(M.a)($o,2),na=bo[0],Xo=bo[1],Go=Object(o.useState)(0),Eo=Object(M.a)(Go,2),Jo=Eo[0],Yo=Eo[1],Qo=Object(o.useState)(0),go=Object(M.a)(Qo,2),Zo=go[0],qo=go[1],er=_(new Map),yo=Object(M.a)(er,2),tr=yo[0],nr=yo[1],za=X(n,tr,Kt),Co="".concat(e,"-nav-operations-hidden"),Ea=0,ga=0;Oe?y?(Ea=0,ga=Math.max(0,Kt-vt)):(Ea=Math.min(0,vt-Kt),ga=0):(Ea=Math.min(0,na-cn),ga=0);function ao(Ct){return Ctga?[ga,!1]:[Ct,!0]}var Oo=Object(o.useRef)(),ar=Object(o.useState)(),_o=Object(M.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Wa(He,function(Ct,qe){var Xt=!1;function dn(Ca,Oa){Ca(function(_a){var xa=ao(_a+Oa),aa=Object(M.a)(xa,2),co=aa[0],fo=aa[1];return Xt=fo,co})}if(Oe){if(vt>=Kt)return Xt;dn(st,Ct)}else{if(na>=cn)return Xt;dn(At,qe)}return io(),ro(),Xt}),Object(o.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,qe=za.get(Ct);if(!qe)return;if(Oe){var Xt=pe;y?qe.rightpe+vt&&(Xt=qe.right+qe.width-vt):qe.left<-pe?Xt=-qe.left:qe.left+qe.width>-pe+vt&&(Xt=-(qe.left+qe.width-vt)),At(0),st(ao(Xt)[0])}else{var dn=_t;qe.top<-_t?dn=-qe.top:qe.top+qe.height>-_t+na&&(dn=-(qe.top+qe.height-na)),st(0),At(ao(dn)[0])}}var or=se(za,{width:vt,height:na,left:pe,top:_t},{width:$t,height:Tt},{width:Jo,height:Zo},Object(S.a)(Object(S.a)({},a),{},{tabs:n})),Mo=Object(M.a)(or,2),rr=Mo[0],ir=Mo[1],lr=n.map(function(Ct){var qe=Ct.key;return o.createElement(U,{id:c,prefixCls:e,key:qe,rtl:y,tab:Ct,closable:Ct.closable,editable:z,active:qe===p,tabPosition:te,tabBarGutter:je,renderWrapper:ze,removeAriaLabel:B==null?void 0:B.removeAriaLabel,ref:yt(qe),onClick:function(dn){Ue(qe,dn)},onRemove:function(){xe(qe)},onFocus:function(){jo(qe),ro(),y||(He.current.scrollLeft=0),He.current.scrollTop=0}})}),lo=q(function(){var Ct,qe,Xt,dn,Ca,Oa,_a,xa,aa,co=((Ct=He.current)===null||Ct===void 0?void 0:Ct.offsetWidth)||0,fo=((qe=He.current)===null||qe===void 0?void 0:qe.offsetHeight)||0,Ao=((Xt=lt.current)===null||Xt===void 0?void 0:Xt.offsetWidth)||0,Lo=((dn=lt.current)===null||dn===void 0?void 0:dn.offsetHeight)||0,mr=((Ca=We.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=We.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),Xo(fo),Yo(Ao),qo(Lo);var Uo=(((_a=Ke.current)===null||_a===void 0?void 0:_a.offsetWidth)||0)-Ao,ko=(((xa=Ke.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-Lo;ln(Uo),Ft(ko);var Io=(aa=We.current)===null||aa===void 0?void 0:aa.className.includes(Co);wn(Uo-(Io?0:mr)),xn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return n.forEach(function(vr){var Wo=vr.key,ja=yt(Wo).current;ja&&Ko.set(Wo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),sr=n.slice(0,rr),ur=n.slice(ir+1),Ro=[].concat(Object(G.a)(sr),Object(G.a)(ur)),cr=Object(o.useState)(),So=Object(M.a)(cr,2),dr=So[0],fr=So[1],Ln=za.get(p),Po=Object(o.useRef)();function To(){me.a.cancel(Po.current)}Object(o.useEffect)(function(){var Ct={};return Ln&&(Oe?(y?Ct.right=Ln.right:Ct.left=Ln.left,Ct.width=Ln.width):(Ct.top=Ln.top,Ct.height=Ln.height)),To(),Po.current=me()(function(){fr(Ct)}),To},[Ln,Oe,y]),Object(o.useEffect)(function(){jo()},[p,Ln,za,Oe]),Object(o.useEffect)(function(){lo()},[y,je,p,n.map(function(Ct){return Ct.key}).join("_")]);var No=!!Ro.length,ya="".concat(e,"-nav-wrap"),so,uo,Do,wo;return Oe?y?(uo=pe>0,so=pe+vt1)Object(G.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(X.length===0)return Object(G.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var F=X[0];if(C.isValidElement(F)&&Object(J.c)(F)){var se=F.ref;X[0]=C.cloneElement(F,{ref:Object(J.a)(se,this.setChildNode)})}return X.length===1?X[0]:X.map(function(w,k){return!C.isValidElement(w)||"key"in w&&w.key!==null?w:C.cloneElement(w,{key:"".concat(re,"-").concat(k)})})}}]),u}(C.Component);q.displayName="ResizeObserver",ne.a=q},wCXF:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return Pt});var T=r("rePB"),M=r("VTBJ"),he=r("KQm4"),S=r("U8pU"),o=r("ODXe"),C=r("q1tI"),ae=r("TSYQ"),Q=r.n(ae),D=r("Gytx"),G=r.n(D),J=r("Kwbf"),me=r("t23M"),re=r("qx4F"),q=r("6eGT"),_=r("IBYe"),g=r("Ff2n"),u=r("c+Xe"),U=r("fyJ8"),H=r("biw7");function X(O,I,$,m,V){var x=$[O]||{},P=$[I]||{},K,W;x.fixed==="left"?K=m.left[O]:P.fixed==="right"&&(W=m.right[I]);var fe=!1,ue=!1,Ee=!1,Te=!1,Z=$[I+1],ke=$[O-1];if(V==="rtl"){if(K!==void 0){var pt=ke&&ke.fixed==="left";Te=!pt}else if(W!==void 0){var Qe=Z&&Z.fixed==="right";Ee=!Qe}}else if(K!==void 0){var nt=Z&&Z.fixed==="left";fe=!nt}else if(W!==void 0){var Ae=ke&&ke.fixed==="right";ue=!Ae}return{fixLeft:K,fixRight:W,lastFixLeft:fe,firstFixRight:ue,lastFixRight:Ee,firstFixLeft:Te,isSticky:m.isSticky}}var F=r("sR1s");function se(O){var I=O.cells,$=O.stickyOffsets,m=O.flattenColumns,V=O.rowComponent,x=O.cellComponent,P=O.onHeaderRow,K=O.index,W=C.useContext(H.a),fe=W.prefixCls,ue=W.direction,Ee;P&&(Ee=P(I.map(function(Z){return Z.column}),K));var Te=Object(F.a)(I.map(function(Z){return Z.column}));return C.createElement(V,Object.assign({},Ee),I.map(function(Z,ke){var pt=Z.column,Qe=X(Z.colStart,Z.colEnd,m,$,ue),nt;return pt&&pt.onHeaderCell&&(nt=Z.column.onHeaderCell(pt)),C.createElement(U.a,Object.assign({},Z,{ellipsis:pt.ellipsis,align:pt.align,component:x,prefixCls:fe,key:Te[ke]},Qe,{additionalProps:nt,rowType:"header"}))}))}se.displayName="HeaderRow";var w=se;function k(O){var I=[];function $(P,K){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;I[W]=I[W]||[];var fe=K,ue=P.filter(Boolean).map(function(Ee){var Te={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:fe},Z=1,ke=Ee.children;return ke&&ke.length>0&&(Z=$(ke,fe,W+1).reduce(function(pt,Qe){return pt+Qe},0),Te.hasSubColumns=!0),"colSpan"in Ee&&(Z=Ee.colSpan),"rowSpan"in Ee&&(Te.rowSpan=Ee.rowSpan),Te.colSpan=Z,Te.colEnd=Te.colStart+Z-1,I[W].push(Te),fe+=Z,Z});return ue}$(O,0);for(var m=I.length,V=function(K){I[K].forEach(function(W){!("rowSpan"in W)&&!W.hasSubColumns&&(W.rowSpan=m-K)})},x=0;x=0;K-=1){var W=I[K],fe=$&&$[K],ue=fe&&fe[f.a];(W||ue||P)&&(V.unshift(C.createElement("col",Object.assign({key:K,style:{width:W,minWidth:W}},ue))),P=!0)}return C.createElement("colgroup",null,V)}var j=s;function R(O,I){return Object(C.useMemo)(function(){for(var $=[],m=0;m1?Qt-1:0),pn=1;pn=Ee&&(Fe=Ee-Te),P({scrollLeft:Fe/Ee*(ue+2)}),Ae.current.x=ce.pageX},Ot=function(){var ce=Object(tt.b)(x.current).top,Ie=ce+x.current.offsetHeight,gt=document.documentElement.scrollTop+window.innerHeight;Ie-Object(re.a)()<=gt||ce>=gt-K?nt(function(Lt){return Object(M.a)(Object(M.a)({},Lt),{},{isHiddenScrollBar:!0})}):nt(function(Lt){return Object(M.a)(Object(M.a)({},Lt),{},{isHiddenScrollBar:!1})})},ft=function(ce){nt(function(Ie){return Object(M.a)(Object(M.a)({},Ie),{},{scrollLeft:ce/ue*Ee||0})})};return C.useImperativeHandle($,function(){return{setScrollLeft:ft}}),C.useEffect(function(){var Le=Object(xt.a)(document.body,"mouseup",Ht,!1),ce=Object(xt.a)(document.body,"mousemove",Bt,!1);return Ot(),function(){Le.remove(),ce.remove()}},[Te,it]),C.useEffect(function(){var Le=Object(xt.a)(window,"scroll",Ot,!1),ce=Object(xt.a)(window,"resize",Ot,!1);return function(){Le.remove(),ce.remove()}},[]),C.useEffect(function(){Qe.isHiddenScrollBar||nt(function(Le){var ce,Ie;return Object(M.a)(Object(M.a)({},Le),{},{scrollLeft:x.current.scrollLeft/((ce=x.current)===null||ce===void 0?void 0:ce.scrollWidth)*((Ie=x.current)===null||Ie===void 0?void 0:Ie.clientWidth)})})},[Qe.isHiddenScrollBar]),ue<=Ee||!Te||Qe.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(re.a)(),width:Ee,bottom:K},className:"".concat(fe,"-sticky-scroll")},C.createElement("div",{onMouseDown:at,ref:Z,className:Q()("".concat(fe,"-sticky-scroll-bar"),Object(T.a)({},"".concat(fe,"-sticky-scroll-bar-active"),it)),style:{width:"".concat(Te,"px"),transform:"translate3d(".concat(Qe.scrollLeft,"px, 0, 0)")}}))},Me=C.forwardRef(dt);function Re(O,I){return C.useMemo(function(){var $=!!O;return{isSticky:$,stickyClassName:$?"".concat(I,"-sticky-header"):"",offsetHeader:Object(S.a)(O)==="object"&&O.offsetHeader||0,offsetScroll:Object(S.a)(O)==="object"&&O.offsetScroll||0}},[O,I])}var ge=[],Mt={},Pt="rc-table-internal-hook",Ye=C.memo(function(O){var I=O.children;return I},function(O,I){return G()(O.props,I.props)?O.pingLeft!==I.pingLeft||O.pingRight!==I.pingRight:!1});function Et(O){var I,$=O.prefixCls,m=O.className,V=O.rowClassName,x=O.style,P=O.data,K=O.rowKey,W=O.scroll,fe=O.tableLayout,ue=O.direction,Ee=O.title,Te=O.footer,Z=O.summary,ke=O.id,pt=O.showHeader,Qe=O.components,nt=O.emptyText,Ae=O.onRow,zt=O.onHeaderRow,Rt=O.internalHooks,it=O.transformColumns,jt=O.internalRefs,Ht=O.sticky,at=P||ge,Bt=!!at.length,Ot=C.useState(0),ft=Object(o.a)(Ot,2),Le=ft[0],ce=ft[1];C.useEffect(function(){ce(Object(re.a)())});var Ie=C.useMemo(function(){return Object(F.c)(Qe,{})},[Qe]),gt=C.useCallback(function(ot,rt){return Object(F.b)(Ie,ot)||rt},[Ie]),Lt=C.useMemo(function(){return typeof K=="function"?K:function(ot){var rt=ot&&ot[K];return rt}},[K]),Fe=Object(f.c)(O),fn=Fe.expandIcon,mn=Fe.expandedRowKeys,En=Fe.defaultExpandedRowKeys,tn=Fe.defaultExpandAllRows,St=Fe.expandedRowRender,jn=Fe.onExpand,Mn=Fe.onExpandedRowsChange,Hn=Fe.expandRowByClick,nn=Fe.rowExpandable,Un=Fe.expandIconColumnIndex,On=Fe.expandedRowClassName,kn=Fe.childrenColumnName,Rn=Fe.indentSize,gn=fn||Je,Sn=kn||"children",Vn=C.useMemo(function(){return St?"row":O.expandable&&Rt===Pt&&O.expandable.__PARENT_RENDER_ICON__||at.some(function(ot){return ot&&Object(S.a)(ot)==="object"&&ot[Sn]})?"nest":!1},[!!St,at]),Pn=C.useState(function(){return En||(tn?bt(at,Lt,Sn):[])}),Vt=Object(o.a)(Pn,2),qt=Vt[0],sn=Vt[1],Qt=C.useMemo(function(){return new Set(mn||qt||[])},[mn,qt]),an=C.useCallback(function(ot){var rt=Lt(ot,at.indexOf(ot)),kt,Zt=Qt.has(rt);Zt?(Qt.delete(rt),kt=Object(he.a)(Qt)):kt=[].concat(Object(he.a)(Qt),[rt]),sn(kt),jn&&jn(!Zt,ot),Mn&&Mn(kt)},[Lt,Qt,at,jn,Mn]),pn=C.useState(0),$n=Object(o.a)(pn,2),In=$n[0],Xn=$n[1],Ma=Object(Ce.b)(Object(M.a)(Object(M.a)(Object(M.a)({},O),Fe),{},{expandable:!!St,expandedKeys:Qt,getRowKey:Lt,onTriggerExpand:an,expandIcon:gn,expandIconColumnIndex:Un,direction:ue}),Rt===Pt?it:null),Ra=Object(o.a)(Ma,2),Gn=Ra[0],Ut=Ra[1],Jn=C.useMemo(function(){return{columns:Gn,flattenColumns:Ut}},[Gn,Ut]),Yn=C.useRef(),Sa=C.useRef(),vn=C.useRef(),Ha=C.useState(!1),Pa=Object(o.a)(Ha,2),oa=Pa[0],Va=Pa[1],$a=C.useState(!1),ra=Object(o.a)($a,2),Qn=ra[0],Xa=ra[1],Ga=Xe(new Map),Ta=Object(o.a)(Ga,2),Ja=Ta[0],Ya=Ta[1],yn=Object(F.a)(Ut),ia=yn.map(function(ot){return Ja.get(ot)}),Na=C.useMemo(function(){return ia},[ia.join("_")]),la=wt(Na,Ut.length,ue),on=W&&Object(F.d)(W.y),hn=W&&Object(F.d)(W.x),bn=hn&&Ut.some(function(ot){var rt=ot.fixed;return rt}),sa=C.useRef(),Kn=Re(Ht,$),Wn=Kn.isSticky,Da=Kn.offsetHeader,Qa=Kn.offsetScroll,wa=Kn.stickyClassName,ua,Zn,Tn;on&&(Zn={overflowY:"scroll",maxHeight:W.y}),hn&&(ua={overflowX:"auto"},on||(Zn={overflowY:"hidden"}),Tn={width:W.x===!0?"auto":W.x,minWidth:"100%"});var _n=C.useCallback(function(ot,rt){Ya(function(kt){var Zt=new Map(kt);return Zt.set(ot,rt),Zt})},[]),qn=le(null),Aa=Object(o.a)(qn,2),La=Aa[0],Ua=Aa[1];function ea(ot,rt){if(!rt)return;typeof rt=="function"?rt(ot):rt.scrollLeft!==ot&&(rt.scrollLeft=ot)}var Nn=function(rt){var kt=rt.currentTarget,Zt=rt.scrollLeft,Bn=typeof Zt=="number"?Zt:kt.scrollLeft,Wa=kt||Mt;if(!Ua()||Ua()===Wa){var ba;La(Wa),ea(Bn,Sa.current),ea(Bn,vn.current),ea(Bn,(ba=sa.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(kt){var Ba=kt.scrollWidth,Fa=kt.clientWidth;Va(Bn>0),Xa(Bn0?[].concat(Object(M.a)(g),Object(M.a)(J(X).map(function(F){return Object(he.a)({fixed:H},F)}))):[].concat(Object(M.a)(g),[Object(he.a)(Object(he.a)({},u),{},{fixed:H})])},[])}function me(_){for(var g=!0,u=0;u<_.length;u+=1){var U=_[u];if(g&&U.fixed!=="left")g=!1;else if(!g&&U.fixed==="left"){Object(ae.a)(!1,"Index ".concat(u-1," of `columns` missing `fixed='left'` prop."));break}}for(var H=!0,X=_.length-1;X>=0;X-=1){var F=_[X];if(H&&F.fixed!=="right")H=!1;else if(!H&&F.fixed==="right"){Object(ae.a)(!1,"Index ".concat(X+1," of `columns` missing `fixed='right'` prop."));break}}}function re(_){return _.map(function(g){var u=g.fixed,U=Object(S.a)(g,["fixed"]),H=u;return u==="left"?H="right":u==="right"&&(H="left"),Object(he.a)({fixed:H},U)})}function q(_,g){var u=_.prefixCls,U=_.columns,H=_.children,X=_.expandable,F=_.expandedKeys,se=_.getRowKey,w=_.onTriggerExpand,k=_.expandIcon,E=_.rowExpandable,b=_.expandIconColumnIndex,f=_.direction,s=_.expandRowByClick,j=o.useMemo(function(){return U||G(H)},[U,H]),R=o.useMemo(function(){if(X){var L,ie=b||0,de=j[ie],ve=(L={},Object(T.a)(L,D.a,{className:"".concat(u,"-expand-icon-col")}),Object(T.a)(L,"title",""),Object(T.a)(L,"fixed",de?de.fixed:null),Object(T.a)(L,"className","".concat(u,"-row-expand-icon-cell")),Object(T.a)(L,"render",function(oe,ye,Se){var Pe=se(ye,Se),De=F.has(Pe),Ge=E?E(ye):!0,Ce=k({prefixCls:u,expanded:De,expandable:Ge,record:ye,onExpand:w});return s?o.createElement("span",{onClick:function(ct){return ct.stopPropagation()}},Ce):Ce}),L),Be=j.slice();return ie>=0&&Be.splice(ie,0,ve),Be}return j},[X,j,se,F,k,f]),A=o.useMemo(function(){var L=R;return g&&(L=g(L)),L.length||(L=[{render:function(){return null}}]),L},[g,R,f]),ee=o.useMemo(function(){return f==="rtl"?re(J(A)):J(A)},[A,f]);return[A,ee]}ne.b=q},"y0+3":function(mt,ne,r){"use strict";r.d(ne,"a",function(){return J}),r.d(ne,"b",function(){return re});var T=/margin|padding|width|height|max|min|offset/,M={left:!0,top:!0},he={cssFloat:1,styleFloat:1,float:1};function S(q){return q.nodeType===1?q.ownerDocument.defaultView.getComputedStyle(q,null):{}}function o(q,_,g){if(_=_.toLowerCase(),g==="auto"){if(_==="height")return q.offsetHeight;if(_==="width")return q.offsetWidth}return _ in M||(M[_]=T.test(_)),M[_]?parseFloat(g)||0:g}function C(q,_){var g=arguments.length,u=S(q);return _=he[_]?"cssFloat"in q.style?"cssFloat":"styleFloat":_,g===1?u:o(q,_,u[_]||q.style[_])}function ae(q,_,g){var u=arguments.length;if(_=he[_]?"cssFloat"in q.style?"cssFloat":"styleFloat":_,u===3)return typeof g=="number"&&T.test(_)&&(g="".concat(g,"px")),q.style[_]=g,g;for(var U in _)_.hasOwnProperty(U)&&ae(q,U,_[U]);return S(q)}function Q(q){return q===document.body?document.documentElement.clientWidth:q.offsetWidth}function D(q){return q===document.body?window.innerHeight||document.documentElement.clientHeight:q.offsetHeight}function G(){var q=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:q,height:_}}function J(){var q=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:q,height:_}}function me(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function re(q){var _=q.getBoundingClientRect(),g=document.documentElement;return{left:_.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[114,8,14],{"55Ip":function(mt,ne,r){"use strict";r.d(ne,"a",function(){return H});var P=r("Ty5D"),M=r("dI71"),he=r("q1tI"),S=r.n(he),o=r("YS25"),C=r("17x9"),ae=r.n(C),Q=r("wx14"),D=r("zLVn"),G=r("9R94"),J=function(f){Object(M.a)(s,f);function s(){for(var R,A=arguments.length,ee=new Array(A),L=0;L=0||A.relatedTarget.className.indexOf("".concat(de,"-next"))>=0))return;f.setState({goInputText:""}),ie(f.getValidValue())},f.go=function(A){var ee=f.state.goInputText;if(ee==="")return;(A.keyCode===q.ENTER||A.type==="click")&&(f.setState({goInputText:""}),f.props.quickGo(f.getValidValue()))},f}return Object(o.a)(b,[{key:"getValidValue",value:function(){var s=this.state,j=s.goInputText,R=s.current;return!j||isNaN(j)?R:Number(j)}},{key:"getPageSizeOptions",value:function(){var s=this.props,j=s.pageSize,R=s.pageSizeOptions;return R.some(function(A){return A.toString()===j.toString()})?R:R.concat([j.toString()]).sort(function(A,ee){var L=isNaN(Number(A))?0:Number(A),ie=isNaN(Number(ee))?0:Number(ee);return L-ie})}},{key:"render",value:function(){var s=this,j=this.props,R=j.pageSize,A=j.locale,ee=j.rootPrefixCls,L=j.changeSize,ie=j.quickGo,de=j.goButton,ve=j.selectComponentClass,Be=j.buildOptionText,_e=j.selectPrefixCls,oe=j.disabled,ye=this.state.goInputText,Se="".concat(ee,"-options"),Te=ve,De=null,Ge=null,Ce=null;if(!L&&!ie)return null;var ht=this.getPageSizeOptions();if(L&&Te){var ct=ht.map(function(Xe,le){return D.a.createElement(Te.Option,{key:le,value:Xe.toString()},(Be||s.buildOptionText)(Xe))});De=D.a.createElement(Te,{disabled:oe,prefixCls:_e,showSearch:!1,className:"".concat(Se,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(R||ht[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},ct)}return ie&&(de&&(Ce=typeof de=="boolean"?D.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:oe,className:"".concat(Se,"-quick-jumper-button")},A.jump_to_confirm):D.a.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),Ge=D.a.createElement("div",{className:"".concat(Se,"-quick-jumper")},A.jump_to,D.a.createElement("input",{disabled:oe,type:"text",value:ye,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),A.page,Ce)),D.a.createElement("li",{className:"".concat(Se)},De,Ge)}}]),b}(D.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var g=_,u=r("N2Kk");function U(){}function H(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k}function X(k,E,b){return b}function F(k,E,b){var f=typeof k=="undefined"?E.pageSize:k;return Math.floor((b.total-1)/f)+1}var se=function(k){Object(C.a)(b,k);var E=Object(ae.a)(b);function b(f){var s;Object(S.a)(this,b),s=E.call(this,f),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(F(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(L,ie){var de=s.props.prefixCls,ve=L||D.a.createElement("button",{type:"button","aria-label":ie,className:"".concat(de,"-item-link")});return typeof L=="function"&&(ve=D.a.createElement(L,Object(he.a)({},s.props))),ve},s.savePaginationNode=function(L){s.paginationNode=L},s.isValid=function(L){return H(L)&&L!==s.state.current},s.shouldDisplayQuickJumper=function(){var L=s.props,ie=L.showQuickJumper,de=L.pageSize,ve=L.total;return ve<=de?!1:ie},s.handleKeyDown=function(L){(L.keyCode===q.ARROW_UP||L.keyCode===q.ARROW_DOWN)&&L.preventDefault()},s.handleKeyUp=function(L){var ie=s.getValidValue(L),de=s.state.currentInputValue;ie!==de&&s.setState({currentInputValue:ie}),L.keyCode===q.ENTER?s.handleChange(ie):L.keyCode===q.ARROW_UP?s.handleChange(ie-1):L.keyCode===q.ARROW_DOWN&&s.handleChange(ie+1)},s.changePageSize=function(L){var ie=s.state.current,de=F(L,s.state,s.props);ie=ie>de?de:ie,de===0&&(ie=s.state.current),typeof L=="number"&&("pageSize"in s.props||s.setState({pageSize:L}),"current"in s.props||s.setState({current:ie,currentInputValue:ie})),s.props.onShowSizeChange(ie,L),"onChange"in s.props&&s.props.onChange&&s.props.onChange(ie,L)},s.handleChange=function(L){var ie=s.props.disabled,de=L;if(s.isValid(de)&&!ie){var ve=F(void 0,s.state,s.props);de>ve?de=ve:de<1&&(de=1),"current"in s.props||s.setState({current:de,currentInputValue:de});var Be=s.state.pageSize;return s.props.onChange(de,Be),de}return s.state.current},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current2?de-2:0),Be=2;Be=R?ee=R:ee=Number(j),ee}},{key:"getShowSizeChanger",value:function(){var s=this.props,j=s.showSizeChanger,R=s.total,A=s.totalBoundaryShowSizeChanger;return typeof j!="undefined"?j:R>A}},{key:"renderPrev",value:function(s){var j=this.props,R=j.prevIcon,A=j.itemRender,ee=A(s,"prev",this.getItemIcon(R,"prev page")),L=!this.hasPrev();return Object(Q.isValidElement)(ee)?Object(Q.cloneElement)(ee,{disabled:L}):ee}},{key:"renderNext",value:function(s){var j=this.props,R=j.nextIcon,A=j.itemRender,ee=A(s,"next",this.getItemIcon(R,"next page")),L=!this.hasNext();return Object(Q.isValidElement)(ee)?Object(Q.cloneElement)(ee,{disabled:L}):ee}},{key:"render",value:function(){var s=this,j=this.props,R=j.prefixCls,A=j.className,ee=j.style,L=j.disabled,ie=j.hideOnSinglePage,de=j.total,ve=j.locale,Be=j.showQuickJumper,_e=j.showLessItems,oe=j.showTitle,ye=j.showTotal,Se=j.simple,Te=j.itemRender,De=j.showPrevNextJumpers,Ge=j.jumpPrevIcon,Ce=j.jumpNextIcon,ht=j.selectComponentClass,ct=j.selectPrefixCls,Xe=j.pageSizeOptions,le=this.state,we=le.current,wt=le.pageSize,Ne=le.currentInputValue;if(ie===!0&&de<=wt)return null;var Y=F(void 0,this.state,this.props),be=[],Je=null,bt=null,xt=null,tt=null,dt=null,Me=Be&&Be.goButton,Re=_e?1:2,ge=we-1>0?we-1:0,Mt=we+1=Re*2&&we!==1+2&&(be[0]=Object(Q.cloneElement)(be[0],{className:"".concat(R,"-item-after-jump-prev")}),be.unshift(Je)),Y-we>=Re*2&&we!==Y-2&&(be[be.length-1]=Object(Q.cloneElement)(be[be.length-1],{className:"".concat(R,"-item-before-jump-next")}),be.push(bt)),$!==1&&be.unshift(xt),m!==Y&&be.push(tt)}var T=null;ye&&(T=D.a.createElement("li",{className:"".concat(R,"-total-text")},ye(de,[de===0?0:(we-1)*wt+1,we*wt>de?de:we*wt])));var K=!this.hasPrev()||!Y,W=!this.hasNext()||!Y;return D.a.createElement("ul",Object(P.a)({className:J()(R,A,Object(M.a)({},"".concat(R,"-disabled"),L)),style:ee,unselectable:"unselectable",ref:this.savePaginationNode},Tt),T,D.a.createElement("li",{title:oe?ve.prev_page:null,onClick:this.prev,tabIndex:K?null:0,onKeyPress:this.runIfEnterPrev,className:J()("".concat(R,"-prev"),Object(M.a)({},"".concat(R,"-disabled"),K)),"aria-disabled":K},this.renderPrev(ge)),be,D.a.createElement("li",{title:oe?ve.next_page:null,onClick:this.next,tabIndex:W?null:0,onKeyPress:this.runIfEnterNext,className:J()("".concat(R,"-next"),Object(M.a)({},"".concat(R,"-disabled"),W)),"aria-disabled":W},this.renderNext(Mt)),D.a.createElement(g,{disabled:L,locale:ve,rootPrefixCls:R,selectComponentClass:ht,selectPrefixCls:ct,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:we,pageSize:wt,pageSizeOptions:Xe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Me}))}}],[{key:"getDerivedStateFromProps",value:function(s,j){var R={};if("current"in s&&(R.current=s.current,s.current!==j.current&&(R.currentInputValue=R.current)),"pageSize"in s&&s.pageSize!==j.pageSize){var A=j.current,ee=F(s.pageSize,j,s);A=A>ee?ee:A,"current"in s||(R.current=A,R.currentInputValue=A),R.pageSize=s.pageSize}return R}}]),b}(D.a.Component);se.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:U,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:U,locale:u.a,style:{},itemRender:X,totalBoundaryShowSizeChanger:50};var w=se},"6RRn":function(mt,ne,r){"use strict";var P=r("wCXF"),M=r("n6Qo");r.d(ne,"b",function(){return M.a});var he=r("IBYe"),S=r("6eGT"),o=r("hW8S");r.d(ne,"a",function(){return o.a}),ne.c=P.b},"6eGT":function(mt,ne,r){"use strict";function P(M){return null}ne.a=P},"815F":function(mt,ne,r){"use strict";r.d(ne,"e",function(){return ae}),r.d(ne,"c",function(){return D}),r.d(ne,"d",function(){return G}),r.d(ne,"a",function(){return me}),r.d(ne,"f",function(){return re}),r.d(ne,"b",function(){return q});var P=r("KQm4"),M=r("VTBJ"),he=r("Ff2n"),S=r("Zm9Q"),o=r("Kwbf"),C=r("OZM5");function ae(_,g){return _!=null?_:g}function Q(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=new Map;function u(U){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(U||[]).forEach(function(X){var F=X.key,se=X.children;Object(o.a)(F!=null,"Tree node must have a certain key: [".concat(H).concat(F,"]"));var w=String(F);Object(o.a)(!g.has(w)||F===null||F===void 0,"Same 'key' exist in the Tree: ".concat(w)),g.set(w,!0),u(se,"".concat(H).concat(w," > "))})}u(_)}function D(_){function g(u){var U=Object(S.a)(u);return U.map(function(H){if(!Object(C.i)(H))return Object(o.a)(!H,"Tree/TreeNode can only accept TreeNode as children."),null;var X=H.key,F=H.props,se=F.children,w=Object(he.a)(F,["children"]),k=Object(M.a)({key:X},w),E=g(se);return E.length&&(k.children=E),k}).filter(function(H){return H})}return g(_)}function G(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=new Set(g===!0?[]:g),U=[];function H(X){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return X.map(function(se,w){var k=Object(C.h)(F?F.pos:"0",w),E=ae(se.key,k),b=Object(M.a)(Object(M.a)({},se),{},{parent:F,pos:k,children:null,data:se,isStart:[].concat(Object(P.a)(F?F.isStart:[]),[w===0]),isEnd:[].concat(Object(P.a)(F?F.isEnd:[]),[w===X.length-1])});return U.push(b),g===!0||u.has(E)?b.children=H(se.children||[],b):b.children=[],b})}return H(_),U}function J(_,g,u){var U;u?typeof u=="string"?U=function(F){return F[u]}:typeof u=="function"&&(U=function(F){return u(F)}):U=function(F,se){return ae(F.key,se)};function H(X,F,se){var w=X?X.children:_,k=X?Object(C.h)(se.pos,F):"0";if(X){var E=U(X,k),b={node:X,index:F,pos:k,key:E,parentPos:se.node?se.pos:null,level:se.level+1};g(b)}w&&w.forEach(function(f,s){H(f,s,{node:X,pos:k,level:se?se.level+1:-1})})}H(null)}function me(_){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=g.initWrapper,U=g.processEntity,H=g.onProcessFinished,X=arguments.length>2?arguments[2]:void 0,F={},se={},w={posEntities:F,keyEntities:se};return u&&(w=u(w)||w),J(_,function(k){var E=k.node,b=k.index,f=k.pos,s=k.key,j=k.parentPos,R=k.level,A={node:E,index:b,key:s,pos:f,level:R},ee=ae(s,f);F[f]=A,se[ee]=A,A.parent=F[j],A.parent&&(A.parent.children=A.parent.children||[],A.parent.children.push(A)),U&&U(A,w)},X),H&&H(w),w}function re(_,g){var u=g.expandedKeys,U=g.selectedKeys,H=g.loadedKeys,X=g.loadingKeys,F=g.checkedKeys,se=g.halfCheckedKeys,w=g.dragOverNodeKey,k=g.dropPosition,E=g.keyEntities,b=E[_],f={eventKey:_,expanded:u.indexOf(_)!==-1,selected:U.indexOf(_)!==-1,loaded:H.indexOf(_)!==-1,loading:X.indexOf(_)!==-1,checked:F.indexOf(_)!==-1,halfChecked:se.indexOf(_)!==-1,pos:String(b?b.pos:""),dragOver:w===_&&k===0,dragOverGapTop:w===_&&k===-1,dragOverGapBottom:w===_&&k===1};return f}function q(_){var g=_.data,u=_.expanded,U=_.selected,H=_.checked,X=_.loaded,F=_.loading,se=_.halfChecked,w=_.dragOver,k=_.dragOverGapTop,E=_.dragOverGapBottom,b=_.pos,f=_.active,s=Object(M.a)(Object(M.a)({},g),{},{expanded:u,selected:U,checked:H,loaded:X,loading:F,halfChecked:se,dragOver:w,dragOverGapTop:k,dragOverGapBottom:E,pos:b,active:f});return"props"in s||Object.defineProperty(s,"props",{get:function(){return Object(o.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),s}},BU3w:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return C});var P=r("MNnm"),M="rc-util-key";function he(ae){if(ae.attachTo)return ae.attachTo;var Q=document.querySelector("head");return Q||document.body}function S(ae){var Q,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(P.a)())return null;var G=document.createElement("style");if((Q=D.csp)===null||Q===void 0?void 0:Q.nonce){var J;G.nonce=(J=D.csp)===null||J===void 0?void 0:J.nonce}G.innerHTML=ae;var me=he(D),re=me.firstChild;return D.prepend&&me.prepend?me.prepend(G):D.prepend&&re?me.insertBefore(G,re):me.appendChild(G),G}var o=new Map;function C(ae,Q){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},G=he(D);if(!o.has(G)){var J=S("",D),me=J.parentNode;o.set(G,me),me.removeChild(J)}var re=Array.from(o.get(G).children).find(function(U){return U.tagName==="STYLE"&&U[M]===Q});if(re){var q,_;if(((q=D.csp)===null||q===void 0?void 0:q.nonce)&&re.nonce!==((_=D.csp)===null||_===void 0?void 0:_.nonce)){var g;re.nonce=(g=D.csp)===null||g===void 0?void 0:g.nonce}return re.innerHTML!==ae&&(re.innerHTML=ae),re}var u=S(ae,D);return u[M]=Q,u}},IBYe:function(mt,ne,r){"use strict";function P(M){return null}ne.a=P},LH4l:function(mt,ne,r){mt.exports={flex_box_center:"flex_box_center___2kM9t",flex_space_between:"flex_space_between___2GWTm",flex_box_vertical_center:"flex_box_vertical_center___1fefq",flex_box_center_end:"flex_box_center_end___1W7v1",flex_box_column:"flex_box_column___1ghF4",bg:"bg___2u1mi",title:"title___2oznh",img:"img___e7qFG",right:"right___2qEm7",top:"top___64ioH",spanfont:"spanfont___1M2sf",bottom:"bottom___uHkeQ",rightdiv:"rightdiv___3xV1j",fonttitle:"fonttitle___35Nl1",ling:"ling___348jK",content:"content___cYR2j",bgs:"bgs___3sNmI",contenttitle:"contenttitle___BbdDe",titlecoent:"titlecoent___1aw6d",es:"es___3bs0Z"}},LdHM:function(mt,ne,r){"use strict";r.d(ne,"b",function(){return X}),r.d(ne,"a",function(){return se});var P=r("1OyB"),M=r("vuIU"),he=r("Ji7U"),S=r("LK+K"),o=r("q1tI"),C=r("rePB"),ae=r("Ff2n"),Q=r("ODXe"),D=r("4IlW"),G=r("bX4T"),J=r("YrtM"),me=r("TSYQ"),re=r.n(me),q=r("+nKL"),_=r("8OUc"),g=function(oe,ye){var Se=oe.prefixCls,Te=oe.id,De=oe.flattenOptions,Ge=oe.childrenAsData,Ce=oe.values,ht=oe.searchValue,ct=oe.multiple,Xe=oe.defaultActiveFirstOption,le=oe.height,we=oe.itemHeight,wt=oe.notFoundContent,Ne=oe.open,Y=oe.menuItemSelectedIcon,be=oe.virtual,Je=oe.onSelect,bt=oe.onToggleOpen,xt=oe.onActiveValue,tt=oe.onScroll,dt=oe.onMouseEnter,Me="".concat(Se,"-item"),Re=Object(J.a)(function(){return De},[Ne,De],function(x,T){return T[0]&&x[1]!==T[1]}),ge=o.useRef(null),Mt=function(T){T.preventDefault()},Tt=function(T){ge.current&&ge.current.scrollTo({index:T})},Ye=function(T){for(var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,W=Re.length,fe=0;fe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(k.a)(_e).map(function(ye,Se){if(!o.isValidElement(ye)||!ye.type)return null;var Te=ye.type.isSelectOptGroup,De=ye.key,Ge=ye.props,Ce=Ge.children,ht=Object(ae.a)(Ge,["children"]);return oe||!Te?E(ye):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(De===null?Se:De,"__"),label:De},ht),{},{options:b(Ce)})}).filter(function(ye){return ye})}var f=r("2Qr1"),s=r("qNPg"),j=r("U8pU"),R=r("Kwbf"),A=r("WKfj");function ee(_e){var oe=_e.mode,ye=_e.options,Se=_e.children,Te=_e.backfill,De=_e.allowClear,Ge=_e.placeholder,Ce=_e.getInputElement,ht=_e.showSearch,ct=_e.onSearch,Xe=_e.defaultOpen,le=_e.autoFocus,we=_e.labelInValue,wt=_e.value,Ne=_e.inputValue,Y=_e.optionLabelProp,be=oe==="multiple"||oe==="tags",Je=ht!==void 0?ht:be||oe==="combobox",bt=ye||b(Se);if(Object(R.a)(oe!=="tags"||bt.every(function(Me){return!Me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),oe==="tags"||oe==="combobox"){var xt=bt.some(function(Me){return Me.options?Me.options.some(function(Re){return typeof("value"in Re?Re.value:Re.key)=="number"}):typeof("value"in Me?Me.value:Me.key)=="number"});Object(R.a)(!xt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(R.a)(oe!=="combobox"||!Y,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(R.a)(oe==="combobox"||!Te,"`backfill` only works with `combobox` mode."),Object(R.a)(oe==="combobox"||!Ce,"`getInputElement` only work with `combobox` mode."),Object(R.b)(oe!=="combobox"||!Ce||!De||!Ge,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ct&&!Je&&oe!=="combobox"&&oe!=="tags"&&Object(R.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(R.b)(!Xe||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),wt!=null){var tt=Object(A.d)(wt);Object(R.a)(!we||tt.every(function(Me){return Object(j.a)(Me)==="object"&&("key"in Me||"value"in Me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(R.a)(!be||Array.isArray(wt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Se){var dt=null;Object(k.a)(Se).some(function(Me){if(!o.isValidElement(Me)||!Me.type)return!1;var Re=Me.type;if(Re.isSelectOption)return!1;if(Re.isSelectOptGroup){var ge=Object(k.a)(Me.props.children).every(function(Mt){return!o.isValidElement(Mt)||!Me.type||Mt.type.isSelectOption?!0:(dt=Mt.type,!1)});return!ge}return dt=Re,!0}),dt&&Object(R.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(dt.displayName||dt.name||dt,"`.")),Object(R.a)(Ne===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=ee,ie=Object(s.a)({prefixCls:"rc-select",components:{optionList:U},convertChildrenToData:b,flattenOptions:f.d,getLabeledValue:f.e,filterOptions:f.b,isValueDisabled:f.g,findValueOption:f.c,warningProps:L,fillOptionsWithMissingValue:f.a}),de=function(_e){Object(he.a)(ye,_e);var oe=Object(S.a)(ye);function ye(){var Se;return Object(P.a)(this,ye),Se=oe.apply(this,arguments),Se.selectRef=o.createRef(),Se.focus=function(){Se.selectRef.current.focus()},Se.blur=function(){Se.selectRef.current.blur()},Se}return Object(M.a)(ye,[{key:"render",value:function(){return o.createElement(ie,Object.assign({ref:this.selectRef},this.props))}}]),ye}(o.Component);de.Option=X,de.OptGroup=se;var ve=de,Be=ne.c=ve},NvD2:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return C});var P=r("Kwbf");function M(ae,Q){var D=new Set;return ae.forEach(function(G){Q.has(G)||D.add(G)}),D}function he(ae){var Q=ae||{},D=Q.disabled,G=Q.disableCheckbox,J=Q.checkable;return!!(D||G)||J===!1}function S(ae,Q,D,G){for(var J=new Set(ae),me=new Set,re=0;re<=D;re+=1){var q=Q.get(re)||new Set;q.forEach(function(U){var H=U.key,X=U.node,F=U.children,se=F===void 0?[]:F;J.has(H)&&!G(X)&&se.filter(function(w){return!G(w.node)}).forEach(function(w){J.add(w.key)})})}for(var _=new Set,g=D;g>=0;g-=1){var u=Q.get(g)||new Set;u.forEach(function(U){var H=U.parent,X=U.node;if(G(X)||!U.parent||_.has(U.parent.key))return;if(G(U.parent.node)){_.add(H.key);return}var F=!0,se=!1;(H.children||[]).filter(function(w){return!G(w.node)}).forEach(function(w){var k=w.key,E=J.has(k);F&&!E&&(F=!1),!se&&(E||me.has(k))&&(se=!0)}),F&&J.add(H.key),se&&me.add(H.key),_.add(H.key)})}return{checkedKeys:Array.from(J),halfCheckedKeys:Array.from(M(me,J))}}function o(ae,Q,D,G,J){for(var me=new Set(ae),re=new Set(Q),q=0;q<=G;q+=1){var _=D.get(q)||new Set;_.forEach(function(H){var X=H.key,F=H.node,se=H.children,w=se===void 0?[]:se;!me.has(X)&&!re.has(X)&&!J(F)&&w.filter(function(k){return!J(k.node)}).forEach(function(k){me.delete(k.key)})})}re=new Set;for(var g=new Set,u=G;u>=0;u-=1){var U=D.get(u)||new Set;U.forEach(function(H){var X=H.parent,F=H.node;if(J(F)||!H.parent||g.has(H.parent.key))return;if(J(H.parent.node)){g.add(X.key);return}var se=!0,w=!1;(X.children||[]).filter(function(k){return!J(k.node)}).forEach(function(k){var E=k.key,b=me.has(E);se&&!b&&(se=!1),!w&&(b||re.has(E))&&(w=!0)}),se||me.delete(X.key),w&&re.add(X.key),g.add(X.key)})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(M(re,me))}}function C(ae,Q,D,G){var J=[],me;G?me=G:me=he;var re=new Set(ae.filter(function(u){var U=!!D[u];return U||J.push(u),U})),q=new Map,_=0;Object.keys(D).forEach(function(u){var U=D[u],H=U.level,X=q.get(H);X||(X=new Set,q.set(H,X)),X.add(U),_=Math.max(_,H)}),Object(P.a)(!J.length,"Tree missing follow keys: ".concat(J.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var g;return Q===!0?g=S(re,q,_,me):g=o(re,Q.halfCheckedKeys,q,_,me),g}},OZM5:function(mt,ne,r){"use strict";r.d(ne,"b",function(){return G}),r.d(ne,"a",function(){return J}),r.d(ne,"k",function(){return me}),r.d(ne,"h",function(){return re}),r.d(ne,"i",function(){return q}),r.d(ne,"g",function(){return _}),r.d(ne,"c",function(){return g}),r.d(ne,"d",function(){return u}),r.d(ne,"j",function(){return X}),r.d(ne,"e",function(){return F}),r.d(ne,"f",function(){return se});var P=r("KQm4"),M=r("U8pU"),he=r("Ff2n"),S=r("q1tI"),o=r.n(S),C=r("Kwbf"),ae=r("WaYH"),Q=.25,D=2;function G(w,k){var E=w.slice(),b=E.indexOf(k);return b>=0&&E.splice(b,1),E}function J(w,k){var E=w.slice();return E.indexOf(k)===-1&&E.push(k),E}function me(w){return w.split("-")}function re(w,k){return"".concat(w,"-").concat(k)}function q(w){return w&&w.type&&w.type.isTreeNode}function _(w,k){var E=[w],b=k[w];function f(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(j){var R=j.key,A=j.children;E.push(R),f(A)})}return f(b.children),E}function g(w,k){var E=w.clientY,b=k.selectHandle.getBoundingClientRect(),f=b.top,s=b.bottom,j=b.height,R=Math.max(j*Q,D);return E<=f+R?-1:E>=s-R?1:0}function u(w,k){if(!w)return;var E=k.multiple;return E?w.slice():w.length?[w[0]]:w}var U=function(k){return k};function H(w,k){if(!w)return[];var E=k||{},b=E.processProps,f=b===void 0?U:b,s=Array.isArray(w)?w:[w];return s.map(function(j){var R=j.children,A=Object(he.a)(j,["children"]),ee=H(R,k);return o.a.createElement(ae.a,Object.assign({},f(A)),ee)})}function X(w){if(!w)return null;var k;if(Array.isArray(w))k={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(M.a)(w)==="object")k={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return k}function F(w,k){var E=new Set;function b(f){if(E.has(f))return;var s=k[f];if(!s)return;E.add(f);var j=s.parent,R=s.node;if(R.disabled)return;j&&b(j.key)}return(w||[]).forEach(function(f){b(f)}),Object(P.a)(E)}function se(w){var k={};return Object.keys(w).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(k[E]=w[E])}),k}},"SA+Z":function(mt,ne,r){var P=r("wTVA"),M=r("EbDI"),he=r("ZhPi"),S=r("wkBT");function o(C){return P(C)||M(C)||he(C)||S()}mt.exports=o,mt.exports.__esModule=!0,mt.exports.default=mt.exports},TljI:function(mt,ne,r){"use strict";r.r(ne);var P=r("qVdP"),M=r("jsC+"),he=r("DYRE"),S=r("zeV3"),o=r("lUTK"),C=r("BvKs"),ae=r("sPJy"),Q=r("bE4q"),D=r("9og8"),G=r("k1fw"),J=r("tJVT"),me=r("Znn+"),re=r("ZTPi"),q=r("WmNS"),_=r.n(q),g=r("q1tI"),u=r.n(g),U=r("wd/R"),H=r.n(U),X=r("Ty5D"),F=r("55Ip"),se=r("9kvl"),w=r("ErOA"),k=r("LH4l"),E=r.n(k),b=r("8Skl"),f=r("DjyN"),s=r("NUBc"),j=r("g9YV"),R=r("wCAj");H.a.locale("zh-cn");var A=re.a.TabPane,ee=[{text:"\u672A\u5F00\u542F",color:"#272A3A"},{text:"\u672A\u901A\u5173",color:"#E30000"},{text:"\u6309\u65F6\u901A\u5173",color:"#038D00"},{text:"\u8FDF\u4EA4\u901A\u5173",color:"#0152D9"}],L=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:4,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Tt=Object(g.useState)([]),Ye=Object(J.a)(Tt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="1"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var T;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:T=W.sent,Mt(Object(G.a)({},x)),T&&Wt(T);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u5B9E\u9A8C\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,T){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/shixun_homework/").concat(T==null?void 0:T.id,"/").concat(T==null?void 0:T.student_work_id,"/comment"),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var T,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(T=ee[x])===null||T===void 0?void 0:T.color}},(K=ee[x])===null||K===void 0?void 0:K.text)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center",key:"sum_evaluate_count"},{title:"\u901A\u5173\u60C5\u51B5",dataIndex:"current_complete_count",align:"center",key:"current_complete_count",render:function(x,T){return u.a.createElement("span",null,x+"/"+(T==null?void 0:T.complete_count))}},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"work_score",align:"center",key:"address",render:function(x){return u.a.createElement("span",{style:{color:parseInt(x)===100?"#FF6800":"#E30000"}},x)}},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u5B9E\u9A8C")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},m==null?void 0:m.unstart_count),u.a.createElement("div",null,"\u672A\u5F00\u542F")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#E30000"}},m==null?void 0:m.uncompelete_count),u.a.createElement("div",null,"\u672A\u901A\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.opportune_compelete_count),u.a.createElement("div",null,"\u6309\u65F6\u901A\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.late_compelete_count),u.a.createElement("div",null,"\u8FDF\u4EA4\u901A\u5173")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.total_challenges_count),u.a.createElement("div",null,"\u5168\u90E8\u5173\u5361")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.compelete_count),u.a.createElement("div",null,"\u5DF2\u8FC7\u5173")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_evaluate_count)||0),u.a.createElement("div",null,"\u8BC4\u6D4B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},ie=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(L);H.a.locale("zh-cn");var de=re.a.TabPane,ve=[{text:"\u672A\u5F00\u59CB",color:"#272A3A"},{text:"\u8003\u8BD5\u4E2D",color:"#0152D9"},{text:"\u5DF2\u4EA4\u5377",color:"#038D00"},{text:"\u5DF2\u4EA4\u5377/\u672A\u7B54",color:"#038D00"}],Be=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:5,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Tt=Object(g.useState)([]),Ye=Object(J.a)(Tt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="4"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var T;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:T=W.sent,Mt(Object(G.a)({},x)),T&&Wt(T);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u8003\u8BD5\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"36%",render:function(x,T){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/exercise/").concat(T==null?void 0:T.id,"/review/").concat(ge.login),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",key:"commit_status",width:"11%",render:function(x){var T,K;return u.a.createElement("span",{style:{color:(T=ve[x])===null||T===void 0?void 0:T.color}},(K=ve[x])===null||K===void 0?void 0:K.text)}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",key:"end_at",width:"27%",render:function(x){return u.a.createElement("span",null,x)}},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",width:"11%"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",width:"15%",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(be=parseFloat(m==null?void 0:m.total_score))===null||be===void 0?void 0:be.toFixed(2)),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},m==null?void 0:m.total_count),u.a.createElement("div",null,"\u5168\u90E8\u8003\u8BD5")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},m==null?void 0:m.total_unstart_count),u.a.createElement("div",null,"\u672A\u5F00\u59CB")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},m==null?void 0:m.total_examing_count),u.a.createElement("div",null,"\u8003\u8BD5\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},m==null?void 0:m.total_commit_count,u.a.createElement("span",{style:{color:"#272A3A"}},"/",m==null?void 0:m.total_uncommit_count)),u.a.createElement("div",null,"\u5DF2\u4EA4\u5377/\u672A\u7B54"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},_e=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Be);H.a.locale("zh-cn");var oe=re.a.TabPane,ye=[{text:"\u672A\u63D0\u4EA4",color:"#272A3A"},{text:"\u6309\u65F6\u63D0\u4EA4",color:"#038D00"},{text:"\u5EF6\u65F6\u63D0\u4EA4",color:"#0152D9"}],Se=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:1,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Tt=Object(g.useState)([]),Ye=Object(J.a)(Tt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="2"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var T;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:T=W.sent,Mt(Object(G.a)({},x)),T&&Wt(T);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u4F5C\u4E1A\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,T){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/common_homework/").concat(T==null?void 0:T.id,"/review/").concat(T==null?void 0:T.student_work_id),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var T,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(T=ye[x])===null||T===void 0?void 0:T.color}},(K=ye[x])===null||K===void 0?void 0:K.text)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",key:"redo_count"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"update_time",key:"update_time",render:function(x){return u.a.createElement("span",null,x||"- -")}},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",key:"teacher_score"},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"\u5F53\u524D\u6210\u7EE9",dataIndex:"work_score",key:"address"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u4F5C\u4E1A")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},(m==null?void 0:m.total_uncommit_count)||0),u.a.createElement("div",null,"\u672A\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},(m==null?void 0:m.total_commit_count)||0),u.a.createElement("div",null,"\u6309\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null?void 0:m.total_late_commit_count)||0),u.a.createElement("div",null,"\u5EF6\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#FF9D18"}},(m==null?void 0:m.total_redos_count)||0),u.a.createElement("div",null,"\u91CD\u505A\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_returns_count)||0),u.a.createElement("div",null,"\u6253\u56DE\u603B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},Te=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Se);H.a.locale("zh-cn");var De=re.a.TabPane,Ge=[{text:"\u672A\u63D0\u4EA4",color:"#272A3A"},{text:"\u6309\u65F6\u63D0\u4EA4",color:"#038D00"},{text:"\u5EF6\u65F6\u63D0\u4EA4",color:"#0152D9"}],Ce=function(Y){var be,Je=Y.classroomList,bt=Y.globalSetting,xt=Y.loading,tt=Y.activitykey,dt=Y.dispatch,Me=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:3,limit:10})),Re=Object(J.a)(Me,2),ge=Re[0],Mt=Re[1],Tt=Object(g.useState)([]),Ye=Object(J.a)(Tt,2),Et=Ye[0],Wt=Ye[1];Object(g.useEffect)(function(){tt==="3"&&O(Object(G.a)({},ge))},[tt]);function O(V){return I.apply(this,arguments)}function I(){return I=Object(D.a)(_.a.mark(function V(x){var T;return _.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(w.a)("/api/courses/".concat(x==null?void 0:x.coursesId,"/course_members/").concat(x.login,"/learning_statistics"),{method:"get",params:x});case 2:T=W.sent,Mt(Object(G.a)({},x)),T&&Wt(T);case 5:case"end":return W.stop()}},V)})),I.apply(this,arguments)}var $=[{title:u.a.createElement("div",{style:{marginLeft:12}},"\u4F5C\u4E1A\u540D\u79F0"),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(x,T){return u.a.createElement("a",{href:"/classrooms/".concat(ge==null?void 0:ge.coursesId,"/group_homework/").concat(T==null?void 0:T.id,"/review/").concat(T==null?void 0:T.student_work_id),target:"_blank",style:{marginLeft:12}},x)}},{title:"\u5206\u7EC4",dataIndex:"work_group",key:"work_group",render:function(x){return u.a.createElement("span",null,x)}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",key:"work_status",render:function(x){var T,K;return x===-1?u.a.createElement("span",{style:{color:"#FF9D18"}},"\u91CD\u505A\u4E2D"):u.a.createElement("span",{style:{color:(T=Ge[x])===null||T===void 0?void 0:T.color}},(K=Ge[x])===null||K===void 0?void 0:K.text)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",key:"redo_count"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"update_time",key:"update_time",render:function(x){return u.a.createElement("span",null,x||"- -")}},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",key:"teacher_score"},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"\u5F53\u524D\u6210\u7EE9",dataIndex:"work_score",key:"address"},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",key:"address",render:function(x){return u.a.createElement("span",null,x?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605")}}],m=Et.table_data;return u.a.createElement("section",{className:E.a.bgs},u.a.createElement("div",{className:E.a.contenttitle},u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null||((be=m.total_score)===null||be===void 0)?void 0:be.toFixed(2))||0),u.a.createElement("div",null,"\u603B\u5206")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_count)||0),u.a.createElement("div",null,"\u5168\u90E8\u4F5C\u4E1A")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#9A9DAD"}},(m==null?void 0:m.total_uncommit_count)||0),u.a.createElement("div",null,"\u672A\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#038D00"}},(m==null?void 0:m.total_commit_count)||0),u.a.createElement("div",null,"\u6309\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},(m==null?void 0:m.total_late_commit_count)||0),u.a.createElement("div",null,"\u5EF6\u65F6\u63D0\u4EA4")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#FF9D18"}},(m==null?void 0:m.total_redos_count)||0),u.a.createElement("div",null,"\u91CD\u505A\u4E2D")),u.a.createElement("div",{className:E.a.titlecoent},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},(m==null?void 0:m.total_returns_count)||0),u.a.createElement("div",null,"\u6253\u56DE\u603B\u6B21\u6570"))),u.a.createElement(R.a,{columns:$,dataSource:m==null?void 0:m.list,pagination:!1}),u.a.createElement(s.a,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(x){ge.page=x,O(ge)},current:ge==null?void 0:ge.page,total:m==null?void 0:m.total_count}))},ht=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(Ce),ct=r("m3rI"),Xe=r("xKgJ");H.a.locale("zh-cn");var le=re.a.TabPane,we=function(Y){var be,Je,bt,xt,tt,dt,Me,Re,ge,Mt,Tt,Ye,Et,Wt,O,I,$,m=Y.classroomList,V=Y.globalSetting,x=Y.loading,T=Y.dispatch,K=Object(g.useState)(Object(G.a)(Object(G.a)({},Object(X.i)()),{},{page:1,type:4})),W=Object(J.a)(K,2),fe=W[0],ue=W[1],Ee=Object(g.useState)(),Pe=Object(J.a)(Ee,2),Z=Pe[0],ke=Pe[1],pt=Object(g.useState)(),Qe=Object(J.a)(pt,2),nt=Qe[0],Ae=Qe[1],zt=Object(g.useState)("1"),Rt=Object(J.a)(zt,2),it=Rt[0],jt=Rt[1],Ht=Object(X.h)();Object(g.useEffect)(function(){at(Object(G.a)({},fe)),Ot(Object(G.a)({},fe)),T({type:"classroomList/getClassroomLeftMenus",payload:Object(G.a)({},fe)})},[]),Object(g.useEffect)(function(){var ce,Ie,gt,Lt,Fe,fn,mn,En,tn;m!=null&&(ce=m.detailLeftMenus)!==null&&ce!==void 0&&(Ie=ce.course_modules)!==null&&Ie!==void 0&&Ie.map(function(St){return St.type}).find(function(St){return St==="shixun_homework"})?jt("1"):m!=null&&(gt=m.detailLeftMenus)!==null&>!==void 0&&(Lt=gt.course_modules)!==null&&Lt!==void 0&&Lt.map(function(St){return St.type}).find(function(St){return St==="common_homework"})?jt("2"):m!=null&&(Fe=m.detailLeftMenus)!==null&&Fe!==void 0&&(fn=Fe.course_modules)!==null&&fn!==void 0&&fn.map(function(St){return St.type}).find(function(St){return St==="group_homework"})?jt("3"):m!=null&&(mn=m.detailLeftMenus)!==null&&mn!==void 0&&(En=mn.course_modules)!==null&&En!==void 0&&En.map(function(St){return St.type}).find(function(St){return St==="exercise"})&&jt("4")},[m==null||((be=m.detailLeftMenus)===null||be===void 0)?void 0:be.course_modules]);function at(ce){return Bt.apply(this,arguments)}function Bt(){return Bt=Object(D.a)(_.a.mark(function ce(Ie){var gt;return _.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(w.a)("/api/courses/".concat(Ie==null?void 0:Ie.coursesId,"/course_members/").concat(Ie.login,"/learning_statistics"),{method:"get",params:Ie});case 2:gt=Fe.sent,ue(Object(G.a)({},Ie)),gt&&ke(gt);case 5:case"end":return Fe.stop()}},ce)})),Bt.apply(this,arguments)}function Ot(ce){return ft.apply(this,arguments)}function ft(){return ft=Object(D.a)(_.a.mark(function ce(Ie){var gt;return _.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,Object(w.a)("/api/courses/".concat(Ie==null?void 0:Ie.coursesId,"/students.json"),{method:"get",params:Object(G.a)({limit:2e3},Ie)});case 2:gt=Fe.sent,gt&&Ae(gt);case 4:case"end":return Fe.stop()}},ce)})),ft.apply(this,arguments)}var Le=m==null||((Je=m.detailLeftMenus)===null||Je===void 0||((bt=Je.course_modules)===null||bt===void 0))?void 0:bt.map(function(ce){return ce.type});return u.a.createElement("section",{className:E.a.bg},u.a.createElement(Q.a,{separator:">",style:{marginTop:20}},u.a.createElement(Q.a.Item,null,"\u6559\u5B66\u8BFE\u5802"),u.a.createElement(Q.a.Item,null,u.a.createElement(F.a,{to:"/classrooms/".concat(fe==null?void 0:fe.coursesId)},Z==null?void 0:Z.course_name)),u.a.createElement(Q.a.Item,null,u.a.createElement(F.a,{to:m==null||((xt=m.detailLeftMenus)===null||xt===void 0||((tt=xt.course_modules)===null||tt===void 0||((dt=tt.filter(function(ce){return ce.type==="statistics"}))===null||dt===void 0||((Me=dt[0])===null||Me===void 0))))?void 0:Me.category_url},"\u5B66\u751F\u5206\u6790")),u.a.createElement(Q.a.Item,null,"\u5B66\u751F\u5B66\u4E60\u8BE6\u60C5")),u.a.createElement("div",{className:E.a.title},u.a.createElement("div",{className:E.a.img},u.a.createElement("img",{src:ct.a.IMG_SERVER+"/images/"+(Z==null?void 0:Z.image_url)})),u.a.createElement("div",{className:E.a.right},u.a.createElement("div",{className:E.a.top},u.a.createElement("div",null,u.a.createElement("span",{className:E.a.spanfont},"\u59D3\u540D\uFF1A",u.a.createElement("span",null,Z==null?void 0:Z.username)),u.a.createElement("span",{className:E.a.spanfont},"\u5B66\u53F7\uFF1A",u.a.createElement("span",null,(Z==null?void 0:Z.student_id)||"- -")),u.a.createElement("span",{className:E.a.spanfont},"\u5206\u73ED\uFF1A",u.a.createElement("span",null,(Z==null?void 0:Z.course_group)||"- -"))),!Object(Xe.s)()&&u.a.createElement(M.a,{overlay:u.a.createElement(C.a,{selectedKeys:[fe==null?void 0:fe.login],style:{maxHeight:"380px",overflow:"auto"}},nt==null||((Re=nt.students)===null||Re===void 0)?void 0:Re.map(function(ce,Ie){return u.a.createElement(C.a.Item,{onClick:function(){se.d.push("/classrooms/".concat(fe==null?void 0:fe.coursesId,"/Studentdetail/").concat(ce==null?void 0:ce.login)),window.location.reload()},key:ce==null?void 0:ce.login},ce.name)}))},u.a.createElement(S.a,{style:{fontSize:14}},Z==null?void 0:Z.username,u.a.createElement(b.a,{style:{color:"#0152D9"}})))),u.a.createElement("div",{className:E.a.bottom},u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#0152D9"}},Z==null||((ge=Z.total_score)===null||ge===void 0)?void 0:ge.toFixed(2)),u.a.createElement("div",null,"\u603B\u6210\u7EE9")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.course_group_user_ranking,"/",u.a.createElement("span",{style:{color:"#99A2B4"}},Z==null?void 0:Z.course_group_user_ranking_count)),u.a.createElement("div",null,"\u5206\u73ED\u6392\u540D\uFF08\u6392\u540D / \u5206\u73ED\u4EBA\u6570\uFF09")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.overall_rating),u.a.createElement("div",null,"\u7EFC\u5408\u8BC4\u5206")),u.a.createElement("div",{className:E.a.ling}),u.a.createElement("div",{className:E.a.rightdiv},u.a.createElement("div",{className:E.a.fonttitle,style:{color:"#272A3A"}},Z==null?void 0:Z.total_user_ranking,"/",u.a.createElement("span",{style:{color:"#99A2B4"}},Z==null?void 0:Z.total_user_ranking_count)),u.a.createElement("div",null,"\u7EFC\u5408\u603B\u6392\u540D\uFF08\u6392\u540D / \u603B\u4EBA\u6570\uFF09"))))),u.a.createElement("div",{className:E.a.content},u.a.createElement(re.a,{accessKey:it,onChange:function(Ie){jt(Ie)},tabBarStyle:{padding:"0px 40px",height:55}},(Le==null?void 0:Le.find(function(ce){return ce==="shixun_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Mt=m.detailLeftMenusNames)===null||Mt===void 0)?void 0:Mt.shixun_homework},m==null||((Tt=m.detailLeftMenusNames)===null||Tt===void 0)?void 0:Tt.shixun_homework),key:"1"},u.a.createElement(ie,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="common_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Ye=m.detailLeftMenusNames)===null||Ye===void 0)?void 0:Ye.common_homework},m==null||((Et=m.detailLeftMenusNames)===null||Et===void 0)?void 0:Et.common_homework),key:"2"},u.a.createElement(Te,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="group_homework"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((Wt=m.detailLeftMenusNames)===null||Wt===void 0)?void 0:Wt.group_homework},m==null||((O=m.detailLeftMenusNames)===null||O===void 0)?void 0:O.group_homework),key:"3"},u.a.createElement(ht,{activitykey:it})),(Le==null?void 0:Le.find(function(ce){return ce==="exercise"}))&&u.a.createElement(le,{tab:u.a.createElement("span",{className:E.a.es,title:m==null||((I=m.detailLeftMenusNames)===null||I===void 0)?void 0:I.exercise},m==null||(($=m.detailLeftMenusNames)===null||$===void 0)?void 0:$.exercise),key:"4"},u.a.createElement(_e,{activitykey:it})))))},wt=ne.default=Object(se.a)(function(Ne){var Y=Ne.classroomList,be=Ne.loading,Je=Ne.globalSetting;return{classroomList:Y,globalSetting:Je,loading:be}})(we)},WaYH:function(mt,ne,r){"use strict";var P=r("rePB"),M=r("Ff2n"),he=r("VTBJ"),S=r("1OyB"),o=r("vuIU"),C=r("JX7q"),ae=r("Ji7U"),Q=r("LK+K"),D=r("q1tI"),G=r("TSYQ"),J=r.n(G),me=r("sboe"),re=r("OZM5"),q=function(k){var E=k.prefixCls,b=k.level,f=k.isStart,s=k.isEnd;if(!b)return null;for(var j="".concat(E,"-indent-unit"),R=[],A=0;Ay&&(B=y-z),Object(o.useMemo)(function(){if(!n.length)return[0,0];for(var te=n.length,je=te,ze=0;zep+B){je=ze-1;break}}for(var Ve=0,He=te-1;He>=0;He-=1){var Ke=a.get(n[He].key)||F;if(Ke[h]1&&arguments[1]!==void 0?arguments[1]:!1,l=d&&typeof d.getBoundingClientRect=="function"&&d.getBoundingClientRect().width;if(l){if(v){var e=getComputedStyle(d),n=e.marginLeft,t=e.marginRight;l+=+n.replace("px","")+ +t.replace("px","")}l=+l.toFixed(6)}return l||0},Me=function(d,v,l){d&&Object(ie.a)(d.style)==="object"&&(d.style[v]=l)},Re=function(){return Ne.any},ge=r("bdgK"),Mt=r("i8i4"),Tt=r.n(Mt),Ye=r("wgJM"),Et=r("l4aY"),Wt=r("m+aA"),O=r("c+Xe"),I=r("zT1h"),$=r("QC+M");function m(a,d,v){return v?a[0]===d[0]:a[0]===d[0]&&a[1]===d[1]}function V(a,d,v){var l=a[d]||{};return Object(S.a)(Object(S.a)({},l),v)}function x(a,d,v,l){for(var e=v.points,n=Object.keys(a),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;d();var n=Object(Ye.a)(function(){e<=1?l({isCanceled:function(){return n!==a.current}}):v(l,e-1)});a.current=n}return o.useEffect(function(){return function(){d()}},[]),[v,d]},fn=[Ot,ft,Le,ce],mn=!1,En=!0;function tn(a){return a===Le||a===ce}var St=function(a,d){var v=o.useState(Bt),l=Object(M.a)(v,2),e=l[0],n=l[1],t=Fe(),i=Object(M.a)(t,2),c=i[0],h=i[1];function p(){n(Ot)}return Lt(function(){if(e!==Bt&&e!==ce){var y=fn.indexOf(e),N=fn[y+1],z=d(e);z===mn?n(N):c(function(B){function te(){if(B.isCanceled())return;n(N)}z===!0?te():Promise.resolve(z).then(te)})}},[a,e]),o.useEffect(function(){return function(){h()}},[]),[p,e]},jn=function(a){var d=Object(o.useRef)(),v=Object(o.useRef)(a);v.current=a;var l=o.useCallback(function(t){v.current(t)},[]);function e(t){t&&(t.removeEventListener(zt,l),t.removeEventListener(Ae,l))}function n(t){d.current&&d.current!==t&&e(d.current),t&&t!==d.current&&(t.addEventListener(zt,l),t.addEventListener(Ae,l),d.current=t)}return o.useEffect(function(){return function(){e(d.current)}},[]),[n,e]};function Mn(a,d,v,l){var e=l.motionEnter,n=e===void 0?!0:e,t=l.motionAppear,i=t===void 0?!0:t,c=l.motionLeave,h=c===void 0?!0:c,p=l.motionDeadline,y=l.motionLeaveImmediately,N=l.onAppearPrepare,z=l.onEnterPrepare,B=l.onLeavePrepare,te=l.onAppearStart,je=l.onEnterStart,ze=l.onLeaveStart,Ue=l.onAppearActive,Ve=l.onEnterActive,He=l.onLeaveActive,Ke=l.onAppearEnd,We=l.onEnterEnd,lt=l.onLeaveEnd,$e=l.onVisibleChanged,It=Ie(),yt=Object(M.a)(It,2),xe=yt[0],Oe=yt[1],Ze=Ie(it),et=Object(M.a)(Ze,2),pe=et[0],st=et[1],Nt=Ie(null),ut=Object(M.a)(Nt,2),_t=ut[0],At=ut[1],Gt=Object(o.useRef)(!1),rn=Object(o.useRef)(null),Kt=Object(o.useRef)(!1),ln=Object(o.useRef)(null);function Cn(){var Dt=v();return Dt||ln.current}var un=Object(o.useRef)(!1);function cn(Dt){var vt=Cn();if(Dt&&!Dt.deadline&&Dt.target!==vt)return;var Yt;pe===jt&&un.current?Yt=Ke==null?void 0:Ke(vt,Dt):pe===Ht&&un.current?Yt=We==null?void 0:We(vt,Dt):pe===at&&un.current&&(Yt=lt==null?void 0:lt(vt,Dt)),Yt!==!1&&!Kt.current&&(st(it),At(null))}var Ft=jn(cn),en=Object(M.a)(Ft,1),Jt=en[0],$t=o.useMemo(function(){var Dt,vt,Yt;switch(pe){case"appear":return Dt={},Object(P.a)(Dt,Ot,N),Object(P.a)(Dt,ft,te),Object(P.a)(Dt,Le,Ue),Dt;case"enter":return vt={},Object(P.a)(vt,Ot,z),Object(P.a)(vt,ft,je),Object(P.a)(vt,Le,Ve),vt;case"leave":return Yt={},Object(P.a)(Yt,Ot,B),Object(P.a)(Yt,ft,ze),Object(P.a)(Yt,Le,He),Yt;default:return{}}},[pe]),wn=St(pe,function(Dt){if(Dt===Ot){var vt=$t[Ot];return vt?vt(Cn()):mn}if(Pt in $t){var Yt;At(((Yt=$t[Pt])===null||Yt===void 0?void 0:Yt.call($t,Cn(),null))||null)}return Pt===Le&&(Jt(Cn()),p>0&&(clearTimeout(rn.current),rn.current=setTimeout(function(){cn({deadline:!0})},p))),En}),An=Object(M.a)(wn,2),Fn=An[0],Pt=An[1],xn=tn(Pt);un.current=xn,Lt(function(){Oe(d);var Dt=Gt.current;if(Gt.current=!0,!a)return;var vt;!Dt&&d&&i&&(vt=jt),Dt&&d&&n&&(vt=Ht),(Dt&&!d&&h||!Dt&&y&&!d&&h)&&(vt=at),vt&&(st(vt),Fn())},[d]),Object(o.useEffect)(function(){(pe===jt&&!i||pe===Ht&&!n||pe===at&&!h)&&st(it)},[i,n,h]),Object(o.useEffect)(function(){return function(){clearTimeout(rn.current),Kt.current=!0}},[]),Object(o.useEffect)(function(){xe!==void 0&&pe===it&&($e==null||$e(xe))},[xe,pe]);var zn=_t;return $t[Ot]&&Pt===ft&&(zn=Object(S.a)({transition:"none"},zn)),[pe,Pt,zn,xe!=null?xe:d]}var Hn=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){return Object(k.a)(this,v),d.apply(this,arguments)}return Object(E.a)(v,[{key:"render",value:function(){return this.props.children}}]),v}(o.Component),nn=Hn;function Un(a){var d=a;Object(ie.a)(a)==="object"&&(d=a.transitionSupport);function v(e){return!!(e.motionName&&d)}var l=o.forwardRef(function(e,n){var t=e.visible,i=t===void 0?!0:t,c=e.removeOnLeave,h=c===void 0?!0:c,p=e.forceRender,y=e.children,N=e.motionName,z=e.leavedClassName,B=e.eventProps,te=v(e),je=Object(o.useRef)(),ze=Object(o.useRef)();function Ue(){try{return Object(Wt.a)(je.current||ze.current)}catch(st){return null}}var Ve=Mn(te,i,Ue,e),He=Object(M.a)(Ve,4),Ke=He[0],We=He[1],lt=He[2],$e=He[3],It=o.useRef($e);$e&&(It.current=!0);var yt=Object(o.useRef)(n);yt.current=n;var xe=o.useCallback(function(st){je.current=st,Object(O.b)(yt.current,st)},[]),Oe,Ze=Object(S.a)(Object(S.a)({},B),{},{visible:i});if(!y)Oe=null;else if(Ke===it||!v(e))$e?Oe=y(Object(S.a)({},Ze),xe):!h&&It.current?Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{className:z}),xe):p?Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{style:{display:"none"}}),xe):Oe=null;else{var et,pe;We===Ot?pe="prepare":tn(We)?pe="active":We===ft&&(pe="start"),Oe=y(Object(S.a)(Object(S.a)({},Ze),{},{className:ae()(Rt(N,Ke),(et={},Object(P.a)(et,Rt(N,"".concat(Ke,"-").concat(pe)),pe),Object(P.a)(et,N,typeof N=="string"),et)),style:lt}),xe)}return o.createElement(nn,{ref:ze},Oe)});return l.displayName="CSSMotion",l}var On=Un(nt),kn="add",Rn="keep",gn="remove",Sn="removed";function Vn(a){var d;return a&&Object(ie.a)(a)==="object"&&"key"in a?d=a:d={key:a},Object(S.a)(Object(S.a)({},d),{},{key:String(d.key)})}function Tn(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return a.map(Vn)}function Vt(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=[],l=0,e=d.length,n=Tn(a),t=Tn(d);n.forEach(function(h){for(var p=!1,y=l;y1});return c.forEach(function(h){v=v.filter(function(p){var y=p.key,N=p.status;return y!==h||N!==gn}),v.forEach(function(p){p.key===h&&(p.status=Rn)})}),v}var qt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:On,v=function(l){Object(f.a)(n,l);var e=Object(s.a)(n);function n(){var t;return Object(k.a)(this,n),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(i){t.setState(function(c){var h=c.keyEntities;return{keyEntities:h.map(function(p){return p.key!==i?p:Object(S.a)(Object(S.a)({},p),{},{status:Sn})})}})},t}return Object(E.a)(n,[{key:"render",value:function(){var i=this,c=this.state.keyEntities,h=this.props,p=h.component,y=h.children,N=h.onVisibleChanged,z=Object(he.a)(h,["component","children","onVisibleChanged"]),B=p||o.Fragment,te={};return qt.forEach(function(je){te[je]=z[je],delete z[je]}),delete z.keys,o.createElement(B,z,c.map(function(je){var ze=je.status,Ue=Object(he.a)(je,["status"]),Ve=ze===kn||ze===Rn;return o.createElement(d,Object(w.a)({},te,{key:Ue.key,visible:Ve,eventProps:Ue,onVisibleChanged:function(Ke){N==null||N(Ke,{key:Ue.key}),Ke||i.removeKey(Ue.key)}}),y)}))}}],[{key:"getDerivedStateFromProps",value:function(i,c){var h=i.keys,p=c.keyEntities,y=Tn(h),N=Vt(p,y);return{keyEntities:N.filter(function(z){var B=p.find(function(te){var je=te.key;return z.key===je});return!(B&&B.status===Sn&&z.status===gn)})}}}]),n}(o.Component);return v.defaultProps={component:"div"},v}var Qt=sn(nt),an=On;function pn(a){var d=a.prefixCls,v=a.motion,l=a.animation,e=a.transitionName;return v||(l?{motionName:"".concat(d,"-").concat(l)}:e?{motionName:e}:null)}function $n(a){var d=a.prefixCls,v=a.visible,l=a.zIndex,e=a.mask,n=a.maskMotion,t=a.maskAnimation,i=a.maskTransitionName;if(!e)return null;var c={};return(n||i||t)&&(c=Object(S.a)({motionAppear:!0},pn({motion:n,prefixCls:d,transitionName:i,animation:t}))),o.createElement(an,Object(w.a)({},c,{visible:v,removeOnLeave:!0}),function(h){var p=h.className;return o.createElement("div",{style:{zIndex:l},className:ae()("".concat(d,"-mask"),p)})})}var In=r("9mu1"),Xn=r("o0o1"),Ma=r.n(Xn),Ra=r("HaE+"),Gn=["measure","align",null,"motion"],Ut=function(a,d){var v=Object(o.useState)(null),l=Object(M.a)(v,2),e=l[0],n=l[1],t=Object(o.useRef)(),i=Object(o.useRef)(!1);function c(y){i.current||n(y)}function h(){Ye.a.cancel(t.current)}function p(y){h(),t.current=Object(Ye.a)(function(){c(function(N){switch(e){case"align":return"motion";case"motion":return"stable";default:}return N}),y==null||y()})}return Object(o.useEffect)(function(){c("measure")},[a]),Object(o.useEffect)(function(){switch(e){case"measure":d();break;default:}e&&(t.current=Object(Ye.a)(Object(Ra.a)(Ma.a.mark(function y(){var N,z;return Ma.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:N=Gn.indexOf(e),z=Gn[N+1],z&&N!==-1&&c(z);case 3:case"end":return te.stop()}},y)}))))},[e]),Object(o.useEffect)(function(){return function(){i.current=!0,h()}},[]),[e,p]},Jn=function(a){var d=o.useState({width:0,height:0}),v=Object(M.a)(d,2),l=v[0],e=v[1];function n(i){e({width:i.offsetWidth,height:i.offsetHeight})}var t=o.useMemo(function(){var i={};if(a){var c=l.width,h=l.height;a.indexOf("height")!==-1&&h?i.height=h:a.indexOf("minHeight")!==-1&&h&&(i.minHeight=h),a.indexOf("width")!==-1&&c?i.width=c:a.indexOf("minWidth")!==-1&&c&&(i.minWidth=c)}return i},[a,l]);return[t,n]},Yn=o.forwardRef(function(a,d){var v=a.visible,l=a.prefixCls,e=a.className,n=a.style,t=a.children,i=a.zIndex,c=a.stretch,h=a.destroyPopupOnHide,p=a.forceRender,y=a.align,N=a.point,z=a.getRootDomNode,B=a.getClassNameFromAlign,te=a.onAlign,je=a.onMouseEnter,ze=a.onMouseLeave,Ue=a.onMouseDown,Ve=a.onTouchStart,He=Object(o.useRef)(),Ke=Object(o.useRef)(),We=Object(o.useState)(),lt=Object(M.a)(We,2),$e=lt[0],It=lt[1],yt=Jn(c),xe=Object(M.a)(yt,2),Oe=xe[0],Ze=xe[1];function et(){c&&Ze(z())}var pe=Ut(v,et),st=Object(M.a)(pe,2),Nt=st[0],ut=st[1],_t=Object(o.useRef)();function At(){return N||z}function Gt(){var Ft;(Ft=He.current)===null||Ft===void 0||Ft.forceAlign()}function rn(Ft,en){var Jt=B(en);$e!==Jt&&It(Jt),Nt==="align"&&($e!==Jt?Promise.resolve().then(function(){Gt()}):ut(function(){var $t;($t=_t.current)===null||$t===void 0||$t.call(_t)}),te==null||te(Ft,en))}var Kt=Object(S.a)({},pn(a));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ft){var en=Kt[Ft];Kt[Ft]=function(Jt,$t){return ut(),en==null?void 0:en(Jt,$t)}});function ln(){return new Promise(function(Ft){_t.current=Ft})}o.useEffect(function(){!Kt.motionName&&Nt==="motion"&&ut()},[Kt.motionName,Nt]),o.useImperativeHandle(d,function(){return{forceAlign:Gt,getElement:function(){return Ke.current}}});var Cn=Object(S.a)(Object(S.a)({},Oe),{},{zIndex:i,opacity:Nt==="motion"||Nt==="stable"||!v?void 0:0,pointerEvents:Nt==="stable"?void 0:"none"},n),un=!0;(y==null?void 0:y.points)&&(Nt==="align"||Nt==="stable")&&(un=!1);var cn=t;return o.Children.count(t)>1&&(cn=o.createElement("div",{className:"".concat(l,"-content")},t)),o.createElement(an,Object(w.a)({visible:v,ref:Ke,leavedClassName:"".concat(l,"-hidden")},Kt,{onAppearPrepare:ln,onEnterPrepare:ln,removeOnLeave:h,forceRender:p}),function(Ft,en){var Jt=Ft.className,$t=Ft.style,wn=ae()(l,e,$e,Jt);return o.createElement(In.a,{target:At(),key:"popup",ref:He,monitorWindowResize:!0,disabled:un,align:y,onAlign:rn},o.createElement("div",{ref:en,className:wn,onMouseEnter:je,onMouseLeave:ze,onMouseDownCapture:Ue,onTouchStartCapture:Ve,style:Object(S.a)(Object(S.a)({},$t),Cn)},cn))})});Yn.displayName="PopupInner";var Sa=Yn,vn=o.forwardRef(function(a,d){var v=a.prefixCls,l=a.visible,e=a.zIndex,n=a.children,t=a.mobile;t=t===void 0?{}:t;var i=t.popupClassName,c=t.popupStyle,h=t.popupMotion,p=h===void 0?{}:h,y=t.popupRender,N=o.useRef();o.useImperativeHandle(d,function(){return{forceAlign:function(){},getElement:function(){return N.current}}});var z=Object(S.a)({zIndex:e},c),B=n;return o.Children.count(n)>1&&(B=o.createElement("div",{className:"".concat(v,"-content")},n)),y&&(B=y(B)),o.createElement(an,Object(w.a)({visible:l,ref:N,removeOnLeave:!0},p),function(te,je){var ze=te.className,Ue=te.style,Ve=ae()(v,i,ze);return o.createElement("div",{ref:je,className:Ve,style:Object(S.a)(Object(S.a)({},Ue),z)},B)})});vn.displayName="MobilePopupInner";var Ha=vn,Ta=["visible","mobile"],oa=o.forwardRef(function(a,d){var v=a.visible,l=a.mobile,e=Object(he.a)(a,Ta),n=Object(o.useState)(v),t=Object(M.a)(n,2),i=t[0],c=t[1],h=Object(o.useState)(!1),p=Object(M.a)(h,2),y=p[0],N=p[1],z=Object(S.a)(Object(S.a)({},e),{},{visible:i});Object(o.useEffect)(function(){c(v),v&&l&&N(T())},[v,l]);var B=y?o.createElement(Ha,Object(w.a)({},z,{mobile:l,ref:d})):o.createElement(Sa,Object(w.a)({},z,{ref:d}));return o.createElement("div",null,o.createElement($n,z),B)});oa.displayName="Popup";var Va=oa,$a=o.createContext(null),ra=$a;function Qn(){}function Xa(){return""}function Ga(a){return a?a.ownerDocument:window.document}var Pa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ja(a){var d=function(v){Object(f.a)(e,v);var l=Object(s.a)(e);function e(n){var t;Object(k.a)(this,e),t=l.call(this,n),t.popupRef=o.createRef(),t.triggerRef=o.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(c){var h=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",c),t.delaySetPopupVisible(!0,h,h?null:c)},t.onMouseMove=function(c){t.fireEvents("onMouseMove",c),t.setPoint(c)},t.onMouseLeave=function(c){t.fireEvents("onMouseLeave",c),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(c){var h;if(c.relatedTarget&&!c.relatedTarget.setTimeout&&Object(Et.a)((h=t.popupRef.current)===null||h===void 0?void 0:h.getElement(),c.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(c){t.fireEvents("onFocus",c),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(c){t.fireEvents("onMouseDown",c),t.preClickTime=Date.now()},t.onTouchStart=function(c){t.fireEvents("onTouchStart",c),t.preTouchTime=Date.now()},t.onBlur=function(c){t.fireEvents("onBlur",c),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(c){c.preventDefault(),t.fireEvents("onContextMenu",c),t.setPopupVisible(!0,c)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(c){if(t.fireEvents("onClick",c),t.focusTime){var h;if(t.preClickTime&&t.preTouchTime?h=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?h=t.preClickTime:t.preTouchTime&&(h=t.preTouchTime),Math.abs(h-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var p=!t.state.popupVisible;(t.isClickToHide()&&!p||p&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,c)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var c;(c=t.context).onPopupMouseDown.apply(c,arguments)}},t.onDocumentClick=function(c){if(t.props.mask&&!t.props.maskClosable)return;var h=c.target,p=t.getRootDomNode(),y=t.getPopupDomNode();(!Object(Et.a)(p,h)||t.isContextMenuOnly())&&!Object(Et.a)(y,h)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var c=t.props.getTriggerDOMNode;if(c)return c(t.triggerRef.current);try{var h=Object(Wt.a)(t.triggerRef.current);if(h)return h}catch(p){}return Tt.a.findDOMNode(Object(b.a)(t))},t.getPopupClassNameFromAlign=function(c){var h=[],p=t.props,y=p.popupPlacement,N=p.builtinPlacements,z=p.prefixCls,B=p.alignPoint,te=p.getPopupClassNameFromAlign;return y&&N&&h.push(x(N,z,c,B)),te&&h.push(te(c)),h.join(" ")},t.getComponent=function(){var c=t.props,h=c.prefixCls,p=c.destroyPopupOnHide,y=c.popupClassName,N=c.onPopupAlign,z=c.popupMotion,B=c.popupAnimation,te=c.popupTransitionName,je=c.popupStyle,ze=c.mask,Ue=c.maskAnimation,Ve=c.maskTransitionName,He=c.maskMotion,Ke=c.zIndex,We=c.popup,lt=c.stretch,$e=c.alignPoint,It=c.mobile,yt=c.forceRender,xe=t.state,Oe=xe.popupVisible,Ze=xe.point,et=t.getPopupAlign(),pe={};return t.isMouseEnterToShow()&&(pe.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(pe.onMouseLeave=t.onPopupMouseLeave),pe.onMouseDown=t.onPopupMouseDown,pe.onTouchStart=t.onPopupMouseDown,o.createElement(Va,Object(w.a)({prefixCls:h,destroyPopupOnHide:p,visible:Oe,point:$e&&Ze,className:y,align:et,onAlign:N,animation:B,getClassNameFromAlign:t.getPopupClassNameFromAlign},pe,{stretch:lt,getRootDomNode:t.getRootDomNode,style:je,mask:ze,zIndex:Ke,transitionName:te,maskAnimation:Ue,maskTransitionName:Ve,maskMotion:He,ref:t.popupRef,motion:z,mobile:It,forceRender:yt}),typeof We=="function"?We():We)},t.attachParent=function(c){Ye.a.cancel(t.attachId);var h=t.props,p=h.getPopupContainer,y=h.getDocument,N=t.getRootDomNode(),z;p?(N||p.length===0)&&(z=p(N)):z=y(t.getRootDomNode()).body,z?z.appendChild(c):t.attachId=Object(Ye.a)(function(){t.attachParent(c)})},t.getContainer=function(){var c=t.props.getDocument,h=c(t.getRootDomNode()).createElement("div");return h.style.position="absolute",h.style.top="0",h.style.left="0",h.style.width="100%",t.attachParent(h),h},t.setPoint=function(c){var h=t.props.alignPoint;if(!h||!c)return;t.setState({point:{pageX:c.pageX,pageY:c.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var i;return"popupVisible"in n?i=!!n.popupVisible:i=!!n.defaultPopupVisible,t.state={prevPopupVisible:i,popupVisible:i},Pa.forEach(function(c){t["fire".concat(c)]=function(h){t.fireEvents(c,h)}}),t}return Object(E.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,i=this.state;if(i.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(I.a)(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(I.a)(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(I.a)(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(I.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ye.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,i=t.popupPlacement,c=t.popupAlign,h=t.builtinPlacements;return i&&h?V(h,i,c):c}},{key:"setPopupVisible",value:function(t,i){var c=this.props.alignPoint,h=this.state.popupVisible;this.clearDelayTimer(),h!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:h}),this.props.onPopupVisibleChange(t)),c&&i&&t&&this.setPoint(i)}},{key:"delaySetPopupVisible",value:function(t,i,c){var h=this,p=i*1e3;if(this.clearDelayTimer(),p){var y=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){h.setPopupVisible(t,y),h.clearDelayTimer()},p)}else this.setPopupVisible(t,c)}},{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(t){var i=this.props.children.props,c=this.props;return i[t]&&c[t]?this["fire".concat(t)]:i[t]||c[t]}},{key:"isClickToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,i=t.action,c=t.showAction;return i.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,i=t.action,c=t.hideAction;return i.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,i){var c=this.props.children.props[t];c&&c(i);var h=this.props[t];h&&h(i)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,i=this.props,c=i.children,h=i.forceRender,p=i.alignPoint,y=i.className,N=i.autoDestroy,z=o.Children.only(c),B={key:"trigger"};this.isContextMenuToShow()?B.onContextMenu=this.onContextMenu:B.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(B.onClick=this.onClick,B.onMouseDown=this.onMouseDown,B.onTouchStart=this.onTouchStart):(B.onClick=this.createTwoChains("onClick"),B.onMouseDown=this.createTwoChains("onMouseDown"),B.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(B.onMouseEnter=this.onMouseEnter,p&&(B.onMouseMove=this.onMouseMove)):B.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?B.onMouseLeave=this.onMouseLeave:B.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(B.onFocus=this.onFocus,B.onBlur=this.onBlur):(B.onFocus=this.createTwoChains("onFocus"),B.onBlur=this.createTwoChains("onBlur"));var te=ae()(z&&z.props&&z.props.className,y);te&&(B.className=te);var je=Object(S.a)({},B);Object(O.c)(z)&&(je.ref=Object(O.a)(this.triggerRef,z.ref));var ze=o.cloneElement(z,je),Ue;return(t||this.popupRef.current||h)&&(Ue=o.createElement(a,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&N&&(Ue=null),o.createElement(ra.Provider,{value:this.triggerContextValue},ze,Ue)}}],[{key:"getDerivedStateFromProps",value:function(t,i){var c=t.popupVisible,h={};return c!==void 0&&i.popupVisible!==c&&(h.popupVisible=c,h.prevPopupVisible=i.popupVisible),h}}]),e}(o.Component);return d.contextType=ra,d.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Xa,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},d}var Ya=Ja($.a),yn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:yn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:yn,offset:[4,0]}},Na={topLeft:{points:["bl","tl"],overflow:yn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:yn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:yn,offset:[4,0]}},la=ia,on=0,hn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},bn=function(d,v,l){var e=Je(v),n=d.getState();d.setState({defaultActiveFirst:Object(S.a)(Object(S.a)({},n.defaultActiveFirst),{},Object(P.a)({},e,l))})},sa=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;Object(k.a)(this,v),e=d.call(this,l),e.onDestroy=function(p){e.props.onDestroy(p)},e.onKeyDown=function(p){var y=p.keyCode,N=e.menuInstance,z=e.props.store,B=e.getVisible();if(y===g.a.ENTER)return e.onTitleClick(p),bn(z,e.props.eventKey,!0),!0;if(y===g.a.RIGHT)return B?N.onKeyDown(p):(e.triggerOpenChange(!0),bn(z,e.props.eventKey,!0)),!0;if(y===g.a.LEFT){var te;if(B)te=N.onKeyDown(p);else return;return te||(e.triggerOpenChange(!1),te=!0),te}return B&&(y===g.a.UP||y===g.a.DOWN)?N.onKeyDown(p):void 0},e.onOpenChange=function(p){e.props.onOpenChange(p)},e.onPopupVisibleChange=function(p){e.triggerOpenChange(p,p?"mouseenter":"mouseleave")},e.onMouseEnter=function(p){var y=e.props,N=y.eventKey,z=y.onMouseEnter,B=y.store;bn(B,e.props.eventKey,!1),z({key:N,domEvent:p})},e.onMouseLeave=function(p){var y=e.props,N=y.parentMenu,z=y.eventKey,B=y.onMouseLeave;N.subMenuInstance=Object(b.a)(e),B({key:z,domEvent:p})},e.onTitleMouseEnter=function(p){var y=e.props,N=y.eventKey,z=y.onItemHover,B=y.onTitleMouseEnter;z({key:N,hover:!0}),B({key:N,domEvent:p})},e.onTitleMouseLeave=function(p){var y=e.props,N=y.parentMenu,z=y.eventKey,B=y.onItemHover,te=y.onTitleMouseLeave;N.subMenuInstance=Object(b.a)(e),B({key:z,hover:!1}),te({key:z,domEvent:p})},e.onTitleClick=function(p){var y=Object(b.a)(e),N=y.props;if(N.onTitleClick({key:N.eventKey,domEvent:p}),N.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),bn(N.store,e.props.eventKey,!1)},e.onSubMenuClick=function(p){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(p))},e.onSelect=function(p){e.props.onSelect(p)},e.onDeselect=function(p){e.props.onDeselect(p)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(p){e.menuInstance=p},e.addKeyPath=function(p){return Object(S.a)(Object(S.a)({},p),{},{keyPath:(p.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(p,y){var N=e.props.eventKey,z=function(){e.onOpenChange({key:N,item:Object(b.a)(e),trigger:y,open:p})};y==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){z()},0):z()},e.isChildrenSelected=function(){var p={find:!1};return xt(e.props.children,e.props.selectedKeys,p),p.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var p=Mt.findDOMNode(e.menuInstance);if(p.offsetWidth>=e.subMenuTitle.offsetWidth)return;p.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(p){e.subMenuTitle=p},e.getBaseProps=function(){var p=Object(b.a)(e),y=p.props,N=e.getMode();return{mode:N==="horizontal"?"vertical":N,visible:e.getVisible(),level:y.level+1,inlineIndent:y.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:y.selectedKeys,eventKey:"".concat(y.eventKey,"-menu-"),openKeys:y.openKeys,motion:y.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:y.subMenuOpenDelay,parentMenu:Object(b.a)(e),subMenuCloseDelay:y.subMenuCloseDelay,forceSubMenuRender:y.forceSubMenuRender,triggerSubMenuAction:y.triggerSubMenuAction,builtinPlacements:y.builtinPlacements,defaultActiveFirst:y.store.getState().defaultActiveFirst[Je(y.eventKey)],multiple:y.multiple,prefixCls:y.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:y.itemIcon,expandIcon:y.expandIcon,direction:y.direction}},e.getMotion=function(p,y){var N=Object(b.a)(e),z=N.haveRendered,B=e.props,te=B.motion,je=B.rootPrefixCls,ze=Object(S.a)(Object(S.a)({},te),{},{leavedClassName:"".concat(je,"-hidden"),removeOnLeave:!1,motionAppear:z||!y||p!=="inline"});return ze};var n=l.store,t=l.eventKey,i=n.getState(),c=i.defaultActiveFirst;e.isRootMenu=!1;var h=!1;return c&&(h=c[t]),bn(n,t,h),e.state={mode:l.mode,isOpen:l.isOpen},e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,n=this.props,t=n.mode,i=n.parentMenu,c=n.manualRef,h=n.isOpen,p=function(){e.setState({mode:t,isOpen:h})},y=h!==this.state.isOpen,N=t!==this.state.mode;if((N||y)&&(Ye.a.cancel(this.updateStateRaf),N?this.updateStateRaf=Object(Ye.a)(p):p()),c&&c(this),t!=="horizontal"||!(i==null?void 0:i.isRootMenu)||!h)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,n=e.onDestroy,t=e.eventKey;n&&n(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Ye.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,n){var t=this.getBaseProps();return o.createElement(ea,Object(w.a)({},t,{id:this.internalMenuId,className:e,style:n}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,n=this.getBaseProps(),t=n.mode,i=n.visible,c=n.forceSubMenuRender,h=n.direction,p=this.getMotion(t,i);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i||c,!this.haveOpened)return o.createElement("div",null);var y=ae()("".concat(n.prefixCls,"-sub"),Object(P.a)({},"".concat(n.prefixCls,"-rtl"),h==="rtl"));return this.isInlineMode()?o.createElement(an,Object(w.a)({visible:n.visible,forceRender:c},p),function(N){var z=N.className,B=N.style,te=ae()(y,z);return e.renderPopupMenu(te,B)}):this.renderPopupMenu(y)}},{key:"render",value:function(){var e,n,t,i=Object(S.a)({},this.props),c=this.getVisible(),h=this.getPrefixCls(),p=this.isInlineMode(),y=this.getMode(),N=ae()(h,"".concat(h,"-").concat(y),(e={},Object(P.a)(e,i.className,!!i.className),Object(P.a)(e,this.getOpenClassName(),c),Object(P.a)(e,this.getActiveClassName(),i.active||c&&!p),Object(P.a)(e,this.getDisabledClassName(),i.disabled),Object(P.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(i.eventKey?this.internalMenuId="".concat(i.eventKey,"$Menu"):(on+=1,this.internalMenuId="$__$".concat(on,"$Menu")));var z={},B={},te={};i.disabled||(z={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},B={onClick:this.onTitleClick},te={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var je={},ze=i.direction,Ue=ze==="rtl";p&&(Ue?je.paddingRight=i.inlineIndent*i.level:je.paddingLeft=i.inlineIndent*i.level);var Ve={};this.getVisible()&&(Ve={"aria-owns":this.internalMenuId});var He=null;y!=="horizontal"&&(He=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(He=o.createElement(this.props.expandIcon,Object(S.a)({},this.props))));var Ke=o.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:je,className:"".concat(h,"-title"),role:"button"},te,B,{"aria-expanded":c},Ve,{"aria-haspopup":"true",title:typeof i.title=="string"?i.title:void 0}),i.title,He||o.createElement("i",{className:"".concat(h,"-arrow")})),We=this.renderChildren(),lt=((n=i.parentMenu)===null||n===void 0?void 0:n.isRootMenu)?i.parentMenu.props.getPopupContainer:function(At){return At.parentNode},$e=hn[y],It=i.popupOffset?{offset:i.popupOffset}:{},yt=ae()((t={},Object(P.a)(t,i.popupClassName,i.popupClassName&&!p),Object(P.a)(t,"".concat(h,"-rtl"),Ue),t)),xe=i.disabled,Oe=i.triggerSubMenuAction,Ze=i.subMenuOpenDelay,et=i.forceSubMenuRender,pe=i.subMenuCloseDelay,st=i.builtinPlacements;tt.forEach(function(At){return delete i[At]}),delete i.onClick;var Nt=Ue?Object(S.a)(Object(S.a)({},Na),st):Object(S.a)(Object(S.a)({},ia),st);delete i.direction;var ut=this.getBaseProps(),_t=p?null:this.getMotion(ut.mode,ut.visible);return o.createElement("li",Object(w.a)({},i,z,{className:N,role:"menuitem"}),o.createElement(Ya,{prefixCls:h,popupClassName:ae()("".concat(h,"-popup"),yt),getPopupContainer:lt,builtinPlacements:Nt,popupPlacement:$e,popupVisible:p?!1:c,popupAlign:It,popup:p?null:We,action:xe||p?[]:[Oe],mouseEnterDelay:Ze,mouseLeaveDelay:pe,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:et,popupMotion:_t},Ke),p?We:null)}}]),v}(o.Component);sa.defaultProps={onMouseEnter:Y,onMouseLeave:Y,onTitleMouseEnter:Y,onTitleMouseLeave:Y,onTitleClick:Y,manualRef:Y,mode:"vertical",title:""};var Kn=Object(j.b)(function(a,d){var v=a.openKeys,l=a.activeKey,e=a.selectedKeys,n=d.eventKey,t=d.subMenuKey;return{isOpen:v.indexOf(n)>-1,active:l[t]===n,selectedKeys:e}})(sa);Kn.isSubMenu=!0;var Wn=Kn,Da="menuitem-overflowed",Qa=.5,wa=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.resizeObserver=null,l.mutationObserver=null,l.originalTotalWidth=0,l.overflowedItems=[],l.menuItemSizes=[],l.cancelFrameId=null,l.state={lastVisibleIndex:void 0},l.childRef=o.createRef(),l.getMenuItemNodes=function(){var e=l.props.prefixCls,n=l.childRef.current;return n?[].slice.call(n.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},l.getOverflowedSubMenuItem=function(e,n,t){var i=l.props,c=i.overflowedIndicator,h=i.level,p=i.mode,y=i.prefixCls,N=i.theme;if(h!==1||p!=="horizontal")return null;var z=l.props.children[0],B=z.props,te=B.children,je=B.title,ze=B.style,Ue=Object(he.a)(B,["children","title","style"]),Ve=Object(S.a)({},ze),He="".concat(e,"-overflowed-indicator"),Ke="".concat(e,"-overflowed-indicator");n.length===0&&t!==!0?Ve=Object(S.a)(Object(S.a)({},Ve),{},{display:"none"}):t&&(Ve=Object(S.a)(Object(S.a)({},Ve),{},{visibility:"hidden",position:"absolute"}),He="".concat(He,"-placeholder"),Ke="".concat(Ke,"-placeholder"));var We=N?"".concat(y,"-").concat(N):"",lt={};return tt.forEach(function($e){Ue[$e]!==void 0&&(lt[$e]=Ue[$e])}),o.createElement(Wn,Object(w.a)({title:c,className:"".concat(y,"-overflowed-submenu"),popupClassName:We},lt,{key:He,eventKey:Ke,disabled:!1,style:Ve}),n)},l.setChildrenWidthAndResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var n=e.children;if(!n||n.length===0)return;var t=e.children[n.length-1];Me(t,"display","inline-block");var i=l.getMenuItemNodes(),c=i.filter(function(h){return h.className.split(" ").indexOf(Da)>=0});c.forEach(function(h){Me(h,"display","inline-block")}),l.menuItemSizes=i.map(function(h){return dt(h,!0)}),c.forEach(function(h){Me(h,"display","none")}),l.overflowedIndicatorWidth=dt(e.children[e.children.length-1],!0),l.originalTotalWidth=l.menuItemSizes.reduce(function(h,p){return h+p},0),l.handleResize(),Me(t,"display","none")},l.handleResize=function(){if(l.props.mode!=="horizontal")return;var e=l.childRef.current;if(!e)return;var n=dt(e);l.overflowedItems=[];var t=0,i;l.originalTotalWidth>n+Qa&&(i=-1,l.menuItemSizes.forEach(function(c){t+=c,t+l.overflowedIndicatorWidth<=n&&(i+=1)})),l.setState({lastVisibleIndex:i})},l}return Object(E.a)(v,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var n=this.childRef.current;if(!n)return;this.resizeObserver=new ge.default(function(t){t.forEach(function(){var i=e.cancelFrameId;cancelAnimationFrame(i),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(n.children).concat(n).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(n,{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(e){var n=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,c,h){var p=c;if(n.props.mode==="horizontal"){var y=n.getOverflowedSubMenuItem(c.props.eventKey,[]);t!==void 0&&n.props.className.indexOf("".concat(n.props.prefixCls,"-root"))!==-1&&(h>t&&(p=o.cloneElement(c,{style:{display:"none"},eventKey:"".concat(c.props.eventKey,"-hidden"),className:"".concat(Da)})),h===t+1&&(n.overflowedItems=e.slice(t+1).map(function(z){return o.cloneElement(z,{key:z.props.eventKey,mode:"vertical-left"})}),y=n.getOverflowedSubMenuItem(c.props.eventKey,n.overflowedItems)));var N=[].concat(Object(G.a)(i),[y,p]);return h===e.length-1&&N.push(n.getOverflowedSubMenuItem(c.props.eventKey,[],!0)),N}return[].concat(Object(G.a)(i),[p])},[])}},{key:"render",value:function(){var e=this.props,n=e.visible,t=e.prefixCls,i=e.overflowedIndicator,c=e.mode,h=e.level,p=e.tag,y=e.children,N=e.theme,z=Object(he.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),B=p;return o.createElement(B,Object(w.a)({ref:this.childRef},z),this.renderChildren(y))}}]),v}(o.Component);wa.defaultProps={tag:"div",className:""};var ua=wa;function Zn(a){return a.length?a.every(function(d){return!!d.props.disabled}):!0}function Pn(a,d,v){var l=a.getState();a.setState({activeKey:Object(S.a)(Object(S.a)({},l.activeKey),{},Object(P.a)({},d,v))})}function _n(a){return a.eventKey||"0-menu-"}function qn(a,d){var v=d,l=a.children,e=a.eventKey;if(v){var n;if(bt(l,function(t,i){t&&t.props&&!t.props.disabled&&v===be(t,e,i)&&(n=!0)}),n)return v}return v=null,a.defaultActiveFirst&&bt(l,function(t,i){!v&&t&&!t.props.disabled&&(v=be(t,e,i))}),v}function Aa(a){if(!a)return;var d=this.instanceArray.indexOf(a);d!==-1?this.instanceArray[d]=a:this.instanceArray.push(a)}var La=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;return Object(k.a)(this,v),e=d.call(this,l),e.onKeyDown=function(n,t){var i=n.keyCode,c;if(e.getFlatInstanceArray().forEach(function(p){p&&p.props.active&&p.onKeyDown&&(c=p.onKeyDown(n))}),c)return 1;var h=null;return(i===g.a.UP||i===g.a.DOWN)&&(h=e.step(i===g.a.UP?-1:1)),h?(n.preventDefault(),Pn(e.props.store,_n(e.props),h.props.eventKey),typeof t=="function"&&t(h),1):void 0},e.onItemHover=function(n){var t=n.key,i=n.hover;Pn(e.props.store,_n(e.props),i?t:null)},e.onDeselect=function(n){e.props.onDeselect(n)},e.onSelect=function(n){e.props.onSelect(n)},e.onClick=function(n){e.props.onClick(n)},e.onOpenChange=function(n){e.props.onOpenChange(n)},e.onDestroy=function(n){e.props.onDestroy(n)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(n){var t=e.getFlatInstanceArray(),i=e.props.store.getState().activeKey[_n(e.props)],c=t.length;if(!c)return null;n<0&&(t=t.concat().reverse());var h=-1;if(t.every(function(z,B){return z&&z.props.eventKey===i?(h=B,!1):!0}),!e.props.defaultActiveFirst&&h!==-1&&Zn(t.slice(h,c-1)))return;var p=(h+1)%c,y=p;do{var N=t[y];if(!N||N.props.disabled)y=(y+1)%c;else return N}while(y!==p);return null},e.renderCommonMenuItem=function(n,t,i){var c=e.props.store.getState(),h=Object(b.a)(e),p=h.props,y=be(n,p.eventKey,t),N=n.props;if(!N||typeof n.type=="string")return n;var z=y===c.activeKey,B=Object(S.a)(Object(S.a)({mode:N.mode||p.mode,level:p.level,inlineIndent:p.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:p.prefixCls,index:t,parentMenu:p.parentMenu,manualRef:N.disabled?void 0:Object(A.a)(n.ref,Aa.bind(Object(b.a)(e))),eventKey:y,active:!N.disabled&&z,multiple:p.multiple,onClick:function(je){(N.onClick||Y)(je),e.onClick(je)},onItemHover:e.onItemHover,motion:p.motion,subMenuOpenDelay:p.subMenuOpenDelay,subMenuCloseDelay:p.subMenuCloseDelay,forceSubMenuRender:p.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:p.builtinPlacements,itemIcon:N.itemIcon||e.props.itemIcon,expandIcon:N.expandIcon||e.props.expandIcon},i),{},{direction:p.direction});return(p.mode==="inline"||Re())&&(B.triggerSubMenuAction="click"),o.cloneElement(n,Object(S.a)(Object(S.a)({},B),{},{key:y||t}))},e.renderMenuItem=function(n,t,i){if(!n)return null;var c=e.props.store.getState(),h={openKeys:c.openKeys,selectedKeys:c.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:i};return e.renderCommonMenuItem(n,t,h)},l.store.setState({activeKey:Object(S.a)(Object(S.a)({},l.store.getState().activeKey),{},Object(P.a)({},l.eventKey,qn(l,l.activeKey)))}),e.instanceArray=[],e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!L()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t="activeKey"in n?n.activeKey:n.store.getState().activeKey[_n(n)],i=qn(n,t);if(i!==t)Pn(n.store,_n(n),i);else if("activeKey"in e){var c=qn(e,e.activeKey);i!==c&&Pn(n.store,_n(n),i)}}},{key:"render",value:function(){var e=this,n=Object(w.a)({},this.props);this.instanceArray=[];var t=ae()(n.prefixCls,n.className,"".concat(n.prefixCls,"-").concat(n.mode)),i={className:t,role:n.role||"menu"};n.id&&(i.id=n.id),n.focusable&&(i.tabIndex=0,i.onKeyDown=this.onKeyDown);var c=n.prefixCls,h=n.eventKey,p=n.visible,y=n.level,N=n.mode,z=n.overflowedIndicator,B=n.theme;return tt.forEach(function(te){return delete n[te]}),delete n.onClick,o.createElement(ua,Object(w.a)({},n,{prefixCls:c,mode:N,tag:"ul",level:y,theme:B,visible:p,overflowedIndicator:z},i),Object(Q.a)(n.children).map(function(te,je){return e.renderMenuItem(te,je,h||"0-menu-")}))}}]),v}(o.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Y};var Ua=Object(j.b)()(La),ea=Ua,Nn=r("Kwbf");function ca(a,d,v){var l=a.prefixCls,e=a.motion,n=a.defaultMotions,t=n===void 0?{}:n,i=a.openAnimation,c=a.openTransitionName,h=d.switchingModeFromInline;if(e)return e;if(Object(ie.a)(i)==="object"&&i)Object(Nn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof i=="string")return{motionName:"".concat(l,"-open-").concat(i)};if(c)return{motionName:c};var p=t[v];return p||(h?null:t.other)}var ka=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(l){var e;Object(k.a)(this,v),e=d.call(this,l),e.onSelect=function(i){var c=Object(b.a)(e),h=c.props;if(h.selectable){var p=e.store.getState(),y=p.selectedKeys,N=i.key;h.multiple?y=y.concat([N]):y=[N],"selectedKeys"in h||e.store.setState({selectedKeys:y}),h.onSelect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:y}))}},e.onClick=function(i){var c=e.getRealMenuMode(),h=Object(b.a)(e),p=h.store,y=h.props.onOpenChange;c!=="inline"&&!("openKeys"in e.props)&&(p.setState({openKeys:[]}),y([])),e.props.onClick(i)},e.onKeyDown=function(i,c){e.innerMenu.getWrappedInstance().onKeyDown(i,c)},e.onOpenChange=function(i){var c=Object(b.a)(e),h=c.props,p=e.store.getState().openKeys.concat(),y=!1,N=function(B){var te=!1;if(B.open)te=p.indexOf(B.key)===-1,te&&p.push(B.key);else{var je=p.indexOf(B.key);te=je!==-1,te&&p.splice(je,1)}y=y||te};Array.isArray(i)?i.forEach(N):N(i),y&&("openKeys"in e.props||e.store.setState({openKeys:p}),h.onOpenChange(p))},e.onDeselect=function(i){var c=Object(b.a)(e),h=c.props;if(h.selectable){var p=e.store.getState().selectedKeys.concat(),y=i.key,N=p.indexOf(y);N!==-1&&p.splice(N,1),"selectedKeys"in h||e.store.setState({selectedKeys:p}),h.onDeselect(Object(S.a)(Object(S.a)({},i),{},{selectedKeys:p}))}},e.onMouseEnter=function(i){e.restoreModeVerticalFromInline();var c=e.props.onMouseEnter;c&&c(i)},e.onTransitionEnd=function(i){var c=i.propertyName==="width"&&i.target===i.currentTarget,h=i.target.className,p=Object.prototype.toString.call(h)==="[object SVGAnimatedString]"?h.animVal:h,y=i.propertyName==="font-size"&&p.indexOf("anticon")>=0;(c||y)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(i){e.innerMenu=i},e.isRootMenu=!0;var n=l.defaultSelectedKeys,t=l.defaultOpenKeys;return"selectedKeys"in l&&(n=l.selectedKeys||[]),"openKeys"in l&&(t=l.openKeys||[]),e.store=Object(j.c)({selectedKeys:n,openKeys:t,activeKey:{"0-menu-":qn(l,l.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:l,inlineOpenKeys:[],store:e.store},e}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.siderCollapsed,i=n.inlineCollapsed,c=n.onOpenChange;(!e.inlineCollapsed&&i||!e.siderCollapsed&&t)&&c([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,n=this.store,t=this.prevOpenKeys,i=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");i?(this.prevOpenKeys=n.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,n=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return n&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,n=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:n}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(S.a)({},Object(R.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),n=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(S.a)(Object(S.a)({},e),{},{mode:n,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,n)}),delete e.openAnimation,delete e.openTransitionName,o.createElement(j.a,{store:this.store},o.createElement(ea,Object(w.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,i=n.store,c=i.getState(),h={},p={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(p.switchingModeFromInline=!0),"openKeys"in e?h.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(p.switchingModeFromInline=!0,p.inlineOpenKeys=c.openKeys,h.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(h.openKeys=n.inlineOpenKeys,p.inlineOpenKeys=[])),Object.keys(h).length&&i.setState(h),p}}]),v}(o.Component);ka.defaultProps={selectable:!0,onClick:Y,onSelect:Y,onOpenChange:Y,onDeselect:Y,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 Ia=ka,Dn=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.onKeyDown=function(e){var n=e.keyCode;return n===g.a.ENTER?(l.onClick(e),!0):void 0},l.onMouseLeave=function(e){var n=l.props,t=n.eventKey,i=n.onItemHover,c=n.onMouseLeave;i({key:t,hover:!1}),c({key:t,domEvent:e})},l.onMouseEnter=function(e){var n=l.props,t=n.eventKey,i=n.onItemHover,c=n.onMouseEnter;i({key:t,hover:!0}),c({key:t,domEvent:e})},l.onClick=function(e){var n=l.props,t=n.eventKey,i=n.multiple,c=n.onClick,h=n.onSelect,p=n.onDeselect,y=n.isSelected,N={key:t,keyPath:[t],item:Object(b.a)(l),domEvent:e};c(N),i?y?p(N):h(N):y||h(N)},l.saveNode=function(e){l.node=e},l}return Object(E.a)(v,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,n=Object(S.a)({},this.props),t=ae()(this.getPrefixCls(),n.className,(e={},Object(P.a)(e,this.getActiveClassName(),!n.disabled&&n.active),Object(P.a)(e,this.getSelectedClassName(),n.isSelected),Object(P.a)(e,this.getDisabledClassName(),n.disabled),e)),i=Object(S.a)(Object(S.a)({},n.attribute),{},{title:typeof n.title=="string"?n.title:void 0,className:t,role:n.role||"menuitem","aria-disabled":n.disabled});n.role==="option"?i=Object(S.a)(Object(S.a)({},i),{},{role:"option","aria-selected":n.isSelected}):(n.role===null||n.role==="none")&&(i.role="none");var c={onClick:n.disabled?null:this.onClick,onMouseLeave:n.disabled?null:this.onMouseLeave,onMouseEnter:n.disabled?null:this.onMouseEnter},h=Object(S.a)({},n.style);n.mode==="inline"&&(n.direction==="rtl"?h.paddingRight=n.inlineIndent*n.level:h.paddingLeft=n.inlineIndent*n.level),tt.forEach(function(y){return delete n[y]}),delete n.direction;var p=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(p=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object(w.a)({},Object(R.a)(n,["onClick","onMouseEnter","onMouseLeave","onSelect"]),i,c,{style:h,ref:this.saveNode}),n.children,p)}}]),v}(o.Component);Dn.isMenuItem=!0,Dn.defaultProps={onSelect:Y,onMouseEnter:Y,onMouseLeave:Y,manualRef:Y};var da=Object(j.b)(function(a,d){var v=a.activeKey,l=a.selectedKeys,e=d.eventKey,n=d.subMenuKey;return{active:v[n]===e,isSelected:Array.isArray(l)?l.indexOf(e)!==-1:l===e}})(Dn),fa=da,ma=function(a){Object(f.a)(v,a);var d=Object(s.a)(v);function v(){var l;return Object(k.a)(this,v),l=d.apply(this,arguments),l.renderInnerMenuItem=function(e){var n=l.props,t=n.renderMenuItem,i=n.index;return t(e,i,l.props.subMenuKey)},l}return Object(E.a)(v,[{key:"render",value:function(){var e=Object(w.a)({},this.props),n=e.className,t=n===void 0?"":n,i=e.rootPrefixCls,c="".concat(i,"-item-group-title"),h="".concat(i,"-item-group-list"),p=e.title,y=e.children;return tt.forEach(function(N){return delete e[N]}),delete e.direction,o.createElement("li",Object(w.a)({},e,{onClick:function(z){return z.stopPropagation()},className:"".concat(t," ").concat(i,"-item-group")}),o.createElement("div",{className:c,title:typeof p=="string"?p:void 0},p),o.createElement("ul",{className:h},o.Children.map(y,this.renderInnerMenuItem)))}}]),v}(o.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(d){var v=d.className,l=d.rootPrefixCls,e=d.style;return o.createElement("li",{className:"".concat(v," ").concat(l,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ia,va=r("eDIo");function eo(a,d){var v=a.prefixCls,l=a.editable,e=a.locale,n=a.style;return!l||l.showAdd===!1?null:o.createElement("button",{ref:d,type:"button",className:"".concat(v,"-nav-add"),style:n,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(i){l.onEdit("add",{event:i})}},l.addIcon||"+")}var ta=o.forwardRef(eo);function to(a,d){var v=a.prefixCls,l=a.id,e=a.tabs,n=a.locale,t=a.mobile,i=a.moreIcon,c=i===void 0?"More":i,h=a.moreTransitionName,p=a.style,y=a.className,N=a.editable,z=a.tabBarGutter,B=a.rtl,te=a.onTabClick,je=Object(o.useState)(!1),ze=Object(M.a)(je,2),Ue=ze[0],Ve=ze[1],He=Object(o.useState)(null),Ke=Object(M.a)(He,2),We=Ke[0],lt=Ke[1],$e="".concat(l,"-more-popup"),It="".concat(v,"-dropdown"),yt=We!==null?"".concat($e,"-").concat(We):null,xe=n==null?void 0:n.dropdownAriaLabel,Oe=o.createElement(Ka,{onClick:function(_t){var At=_t.key,Gt=_t.domEvent;te(At,Gt),Ve(!1)},id:$e,tabIndex:-1,role:"listbox","aria-activedescendant":yt,selectedKeys:[We],"aria-label":xe!==void 0?xe:"expanded dropdown"},e.map(function(ut){return o.createElement(fa,{key:ut.key,id:"".concat($e,"-").concat(ut.key),role:"option","aria-controls":l&&"".concat(l,"-panel-").concat(ut.key),disabled:ut.disabled},ut.tab)}));function Ze(ut){for(var _t=e.filter(function(ln){return!ln.disabled}),At=_t.findIndex(function(ln){return ln.key===We})||0,Gt=_t.length,rn=0;rnst?(et=Oe,$e.current="x"):(et=Ze,$e.current="y");var Nt=Date.now();Nt-We.current>100&&(lt.current=!1),(d(-et,-et)||lt.current)&&(xe.preventDefault(),lt.current=!0),We.current=Nt}var yt=Object(o.useRef)(null);yt.current={onTouchStart:Ve,onTouchMove:He,onTouchEnd:Ke,onWheel:It},o.useEffect(function(){function xe(pe){yt.current.onTouchStart(pe)}function Oe(pe){yt.current.onTouchMove(pe)}function Ze(pe){yt.current.onTouchEnd(pe)}function et(pe){yt.current.onWheel(pe)}return document.addEventListener("touchmove",Oe,{passive:!1}),document.addEventListener("touchend",Ze,{passive:!1}),a.current.addEventListener("touchstart",xe,{passive:!1}),a.current.addEventListener("wheel",et),function(){document.removeEventListener("touchmove",Oe),document.removeEventListener("touchend",Ze)}},[])}function ba(){var a=Object(o.useRef)(new Map);function d(l){return a.current.has(l)||a.current.set(l,o.createRef()),a.current.get(l)}function v(l){a.current.delete(l)}return[d,v]}function Ba(a,d){var v=o.useRef(a),l=o.useState({}),e=Object(M.a)(l,2),n=e[1];function t(i){var c=typeof i=="function"?i(v.current):i;c!==v.current&&d(c,v.current),v.current=c,n({})}return[v.current,t]}var Fa=function(d){var v=d.position,l=d.prefixCls,e=d.extra;if(!e)return null;var n,t=e;return v==="right"&&(n=t.right||!t.left&&t||null),v==="left"&&(n=t.left||null),n?o.createElement("div",{className:"".concat(l,"-extra-content")},n):null};function Bo(a,d){var v,l=o.useContext(ha),e=l.prefixCls,n=l.tabs,t=a.className,i=a.style,c=a.id,h=a.animated,p=a.activeKey,y=a.rtl,N=a.extra,z=a.editable,B=a.locale,te=a.tabPosition,je=a.tabBarGutter,ze=a.children,Ue=a.onTabClick,Ve=a.onTabScroll,He=Object(o.useRef)(),Ke=Object(o.useRef)(),We=Object(o.useRef)(),lt=Object(o.useRef)(),$e=ba(),It=Object(M.a)($e,2),yt=It[0],xe=It[1],Oe=te==="top"||te==="bottom",Ze=Ba(0,function(Ct,qe){Oe&&Ve&&Ve({direction:Ct>qe?"left":"right"})}),et=Object(M.a)(Ze,2),pe=et[0],st=et[1],Nt=Ba(0,function(Ct,qe){!Oe&&Ve&&Ve({direction:Ct>qe?"top":"bottom"})}),ut=Object(M.a)(Nt,2),_t=ut[0],At=ut[1],Gt=Object(o.useState)(0),rn=Object(M.a)(Gt,2),Kt=rn[0],ln=rn[1],Cn=Object(o.useState)(0),un=Object(M.a)(Cn,2),cn=un[0],Ft=un[1],en=Object(o.useState)(0),Jt=Object(M.a)(en,2),$t=Jt[0],wn=Jt[1],An=Object(o.useState)(0),Fn=Object(M.a)(An,2),Pt=Fn[0],xn=Fn[1],zn=Object(o.useState)(null),Dt=Object(M.a)(zn,2),vt=Dt[0],Yt=Dt[1],$o=Object(o.useState)(null),bo=Object(M.a)($o,2),na=bo[0],Xo=bo[1],Go=Object(o.useState)(0),Eo=Object(M.a)(Go,2),Jo=Eo[0],Yo=Eo[1],Qo=Object(o.useState)(0),go=Object(M.a)(Qo,2),Zo=go[0],qo=go[1],er=_(new Map),yo=Object(M.a)(er,2),tr=yo[0],nr=yo[1],za=X(n,tr,Kt),Co="".concat(e,"-nav-operations-hidden"),Ea=0,ga=0;Oe?y?(Ea=0,ga=Math.max(0,Kt-vt)):(Ea=Math.min(0,vt-Kt),ga=0):(Ea=Math.min(0,na-cn),ga=0);function ao(Ct){return Ctga?[ga,!1]:[Ct,!0]}var Oo=Object(o.useRef)(),ar=Object(o.useState)(),_o=Object(M.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Wa(He,function(Ct,qe){var Xt=!1;function dn(Ca,Oa){Ca(function(_a){var xa=ao(_a+Oa),aa=Object(M.a)(xa,2),co=aa[0],fo=aa[1];return Xt=fo,co})}if(Oe){if(vt>=Kt)return Xt;dn(st,Ct)}else{if(na>=cn)return Xt;dn(At,qe)}return io(),ro(),Xt}),Object(o.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,qe=za.get(Ct);if(!qe)return;if(Oe){var Xt=pe;y?qe.rightpe+vt&&(Xt=qe.right+qe.width-vt):qe.left<-pe?Xt=-qe.left:qe.left+qe.width>-pe+vt&&(Xt=-(qe.left+qe.width-vt)),At(0),st(ao(Xt)[0])}else{var dn=_t;qe.top<-_t?dn=-qe.top:qe.top+qe.height>-_t+na&&(dn=-(qe.top+qe.height-na)),st(0),At(ao(dn)[0])}}var or=se(za,{width:vt,height:na,left:pe,top:_t},{width:$t,height:Pt},{width:Jo,height:Zo},Object(S.a)(Object(S.a)({},a),{},{tabs:n})),Mo=Object(M.a)(or,2),rr=Mo[0],ir=Mo[1],lr=n.map(function(Ct){var qe=Ct.key;return o.createElement(U,{id:c,prefixCls:e,key:qe,rtl:y,tab:Ct,closable:Ct.closable,editable:z,active:qe===p,tabPosition:te,tabBarGutter:je,renderWrapper:ze,removeAriaLabel:B==null?void 0:B.removeAriaLabel,ref:yt(qe),onClick:function(dn){Ue(qe,dn)},onRemove:function(){xe(qe)},onFocus:function(){jo(qe),ro(),y||(He.current.scrollLeft=0),He.current.scrollTop=0}})}),lo=q(function(){var Ct,qe,Xt,dn,Ca,Oa,_a,xa,aa,co=((Ct=He.current)===null||Ct===void 0?void 0:Ct.offsetWidth)||0,fo=((qe=He.current)===null||qe===void 0?void 0:qe.offsetHeight)||0,Ao=((Xt=lt.current)===null||Xt===void 0?void 0:Xt.offsetWidth)||0,Lo=((dn=lt.current)===null||dn===void 0?void 0:dn.offsetHeight)||0,mr=((Ca=We.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=We.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),Xo(fo),Yo(Ao),qo(Lo);var Uo=(((_a=Ke.current)===null||_a===void 0?void 0:_a.offsetWidth)||0)-Ao,ko=(((xa=Ke.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-Lo;ln(Uo),Ft(ko);var Io=(aa=We.current)===null||aa===void 0?void 0:aa.className.includes(Co);wn(Uo-(Io?0:mr)),xn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return n.forEach(function(vr){var Wo=vr.key,ja=yt(Wo).current;ja&&Ko.set(Wo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),sr=n.slice(0,rr),ur=n.slice(ir+1),Ro=[].concat(Object(G.a)(sr),Object(G.a)(ur)),cr=Object(o.useState)(),So=Object(M.a)(cr,2),dr=So[0],fr=So[1],Ln=za.get(p),To=Object(o.useRef)();function Po(){me.a.cancel(To.current)}Object(o.useEffect)(function(){var Ct={};return Ln&&(Oe?(y?Ct.right=Ln.right:Ct.left=Ln.left,Ct.width=Ln.width):(Ct.top=Ln.top,Ct.height=Ln.height)),Po(),To.current=me()(function(){fr(Ct)}),Po},[Ln,Oe,y]),Object(o.useEffect)(function(){jo()},[p,Ln,za,Oe]),Object(o.useEffect)(function(){lo()},[y,je,p,n.map(function(Ct){return Ct.key}).join("_")]);var No=!!Ro.length,ya="".concat(e,"-nav-wrap"),so,uo,Do,wo;return Oe?y?(uo=pe>0,so=pe+vt1)Object(G.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(X.length===0)return Object(G.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var F=X[0];if(C.isValidElement(F)&&Object(J.c)(F)){var se=F.ref;X[0]=C.cloneElement(F,{ref:Object(J.a)(se,this.setChildNode)})}return X.length===1?X[0]:X.map(function(w,k){return!C.isValidElement(w)||"key"in w&&w.key!==null?w:C.cloneElement(w,{key:"".concat(re,"-").concat(k)})})}}]),u}(C.Component);q.displayName="ResizeObserver",ne.a=q},wCXF:function(mt,ne,r){"use strict";r.d(ne,"a",function(){return Tt});var P=r("rePB"),M=r("VTBJ"),he=r("KQm4"),S=r("U8pU"),o=r("ODXe"),C=r("q1tI"),ae=r("TSYQ"),Q=r.n(ae),D=r("Gytx"),G=r.n(D),J=r("Kwbf"),me=r("t23M"),re=r("qx4F"),q=r("6eGT"),_=r("IBYe"),g=r("Ff2n"),u=r("c+Xe"),U=r("fyJ8"),H=r("biw7");function X(O,I,$,m,V){var x=$[O]||{},T=$[I]||{},K,W;x.fixed==="left"?K=m.left[O]:T.fixed==="right"&&(W=m.right[I]);var fe=!1,ue=!1,Ee=!1,Pe=!1,Z=$[I+1],ke=$[O-1];if(V==="rtl"){if(K!==void 0){var pt=ke&&ke.fixed==="left";Pe=!pt}else if(W!==void 0){var Qe=Z&&Z.fixed==="right";Ee=!Qe}}else if(K!==void 0){var nt=Z&&Z.fixed==="left";fe=!nt}else if(W!==void 0){var Ae=ke&&ke.fixed==="right";ue=!Ae}return{fixLeft:K,fixRight:W,lastFixLeft:fe,firstFixRight:ue,lastFixRight:Ee,firstFixLeft:Pe,isSticky:m.isSticky}}var F=r("sR1s");function se(O){var I=O.cells,$=O.stickyOffsets,m=O.flattenColumns,V=O.rowComponent,x=O.cellComponent,T=O.onHeaderRow,K=O.index,W=C.useContext(H.a),fe=W.prefixCls,ue=W.direction,Ee;T&&(Ee=T(I.map(function(Z){return Z.column}),K));var Pe=Object(F.a)(I.map(function(Z){return Z.column}));return C.createElement(V,Object.assign({},Ee),I.map(function(Z,ke){var pt=Z.column,Qe=X(Z.colStart,Z.colEnd,m,$,ue),nt;return pt&&pt.onHeaderCell&&(nt=Z.column.onHeaderCell(pt)),C.createElement(U.a,Object.assign({},Z,{ellipsis:pt.ellipsis,align:pt.align,component:x,prefixCls:fe,key:Pe[ke]},Qe,{additionalProps:nt,rowType:"header"}))}))}se.displayName="HeaderRow";var w=se;function k(O){var I=[];function $(T,K){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;I[W]=I[W]||[];var fe=K,ue=T.filter(Boolean).map(function(Ee){var Pe={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:fe},Z=1,ke=Ee.children;return ke&&ke.length>0&&(Z=$(ke,fe,W+1).reduce(function(pt,Qe){return pt+Qe},0),Pe.hasSubColumns=!0),"colSpan"in Ee&&(Z=Ee.colSpan),"rowSpan"in Ee&&(Pe.rowSpan=Ee.rowSpan),Pe.colSpan=Z,Pe.colEnd=Pe.colStart+Z-1,I[W].push(Pe),fe+=Z,Z});return ue}$(O,0);for(var m=I.length,V=function(K){I[K].forEach(function(W){!("rowSpan"in W)&&!W.hasSubColumns&&(W.rowSpan=m-K)})},x=0;x=0;K-=1){var W=I[K],fe=$&&$[K],ue=fe&&fe[f.a];(W||ue||T)&&(V.unshift(C.createElement("col",Object.assign({key:K,style:{width:W,minWidth:W}},ue))),T=!0)}return C.createElement("colgroup",null,V)}var j=s;function R(O,I){return Object(C.useMemo)(function(){for(var $=[],m=0;m1?Qt-1:0),pn=1;pn=Ee&&(Fe=Ee-Pe),T({scrollLeft:Fe/Ee*(ue+2)}),Ae.current.x=ce.pageX},Ot=function(){var ce=Object(tt.b)(x.current).top,Ie=ce+x.current.offsetHeight,gt=document.documentElement.scrollTop+window.innerHeight;Ie-Object(re.a)()<=gt||ce>=gt-K?nt(function(Lt){return Object(M.a)(Object(M.a)({},Lt),{},{isHiddenScrollBar:!0})}):nt(function(Lt){return Object(M.a)(Object(M.a)({},Lt),{},{isHiddenScrollBar:!1})})},ft=function(ce){nt(function(Ie){return Object(M.a)(Object(M.a)({},Ie),{},{scrollLeft:ce/ue*Ee||0})})};return C.useImperativeHandle($,function(){return{setScrollLeft:ft}}),C.useEffect(function(){var Le=Object(xt.a)(document.body,"mouseup",Ht,!1),ce=Object(xt.a)(document.body,"mousemove",Bt,!1);return Ot(),function(){Le.remove(),ce.remove()}},[Pe,it]),C.useEffect(function(){var Le=Object(xt.a)(window,"scroll",Ot,!1),ce=Object(xt.a)(window,"resize",Ot,!1);return function(){Le.remove(),ce.remove()}},[]),C.useEffect(function(){Qe.isHiddenScrollBar||nt(function(Le){var ce,Ie;return Object(M.a)(Object(M.a)({},Le),{},{scrollLeft:x.current.scrollLeft/((ce=x.current)===null||ce===void 0?void 0:ce.scrollWidth)*((Ie=x.current)===null||Ie===void 0?void 0:Ie.clientWidth)})})},[Qe.isHiddenScrollBar]),ue<=Ee||!Pe||Qe.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(re.a)(),width:Ee,bottom:K},className:"".concat(fe,"-sticky-scroll")},C.createElement("div",{onMouseDown:at,ref:Z,className:Q()("".concat(fe,"-sticky-scroll-bar"),Object(P.a)({},"".concat(fe,"-sticky-scroll-bar-active"),it)),style:{width:"".concat(Pe,"px"),transform:"translate3d(".concat(Qe.scrollLeft,"px, 0, 0)")}}))},Me=C.forwardRef(dt);function Re(O,I){return C.useMemo(function(){var $=!!O;return{isSticky:$,stickyClassName:$?"".concat(I,"-sticky-header"):"",offsetHeader:Object(S.a)(O)==="object"&&O.offsetHeader||0,offsetScroll:Object(S.a)(O)==="object"&&O.offsetScroll||0}},[O,I])}var ge=[],Mt={},Tt="rc-table-internal-hook",Ye=C.memo(function(O){var I=O.children;return I},function(O,I){return G()(O.props,I.props)?O.pingLeft!==I.pingLeft||O.pingRight!==I.pingRight:!1});function Et(O){var I,$=O.prefixCls,m=O.className,V=O.rowClassName,x=O.style,T=O.data,K=O.rowKey,W=O.scroll,fe=O.tableLayout,ue=O.direction,Ee=O.title,Pe=O.footer,Z=O.summary,ke=O.id,pt=O.showHeader,Qe=O.components,nt=O.emptyText,Ae=O.onRow,zt=O.onHeaderRow,Rt=O.internalHooks,it=O.transformColumns,jt=O.internalRefs,Ht=O.sticky,at=T||ge,Bt=!!at.length,Ot=C.useState(0),ft=Object(o.a)(Ot,2),Le=ft[0],ce=ft[1];C.useEffect(function(){ce(Object(re.a)())});var Ie=C.useMemo(function(){return Object(F.c)(Qe,{})},[Qe]),gt=C.useCallback(function(ot,rt){return Object(F.b)(Ie,ot)||rt},[Ie]),Lt=C.useMemo(function(){return typeof K=="function"?K:function(ot){var rt=ot&&ot[K];return rt}},[K]),Fe=Object(f.c)(O),fn=Fe.expandIcon,mn=Fe.expandedRowKeys,En=Fe.defaultExpandedRowKeys,tn=Fe.defaultExpandAllRows,St=Fe.expandedRowRender,jn=Fe.onExpand,Mn=Fe.onExpandedRowsChange,Hn=Fe.expandRowByClick,nn=Fe.rowExpandable,Un=Fe.expandIconColumnIndex,On=Fe.expandedRowClassName,kn=Fe.childrenColumnName,Rn=Fe.indentSize,gn=fn||Je,Sn=kn||"children",Vn=C.useMemo(function(){return St?"row":O.expandable&&Rt===Tt&&O.expandable.__PARENT_RENDER_ICON__||at.some(function(ot){return ot&&Object(S.a)(ot)==="object"&&ot[Sn]})?"nest":!1},[!!St,at]),Tn=C.useState(function(){return En||(tn?bt(at,Lt,Sn):[])}),Vt=Object(o.a)(Tn,2),qt=Vt[0],sn=Vt[1],Qt=C.useMemo(function(){return new Set(mn||qt||[])},[mn,qt]),an=C.useCallback(function(ot){var rt=Lt(ot,at.indexOf(ot)),kt,Zt=Qt.has(rt);Zt?(Qt.delete(rt),kt=Object(he.a)(Qt)):kt=[].concat(Object(he.a)(Qt),[rt]),sn(kt),jn&&jn(!Zt,ot),Mn&&Mn(kt)},[Lt,Qt,at,jn,Mn]),pn=C.useState(0),$n=Object(o.a)(pn,2),In=$n[0],Xn=$n[1],Ma=Object(Ce.b)(Object(M.a)(Object(M.a)(Object(M.a)({},O),Fe),{},{expandable:!!St,expandedKeys:Qt,getRowKey:Lt,onTriggerExpand:an,expandIcon:gn,expandIconColumnIndex:Un,direction:ue}),Rt===Tt?it:null),Ra=Object(o.a)(Ma,2),Gn=Ra[0],Ut=Ra[1],Jn=C.useMemo(function(){return{columns:Gn,flattenColumns:Ut}},[Gn,Ut]),Yn=C.useRef(),Sa=C.useRef(),vn=C.useRef(),Ha=C.useState(!1),Ta=Object(o.a)(Ha,2),oa=Ta[0],Va=Ta[1],$a=C.useState(!1),ra=Object(o.a)($a,2),Qn=ra[0],Xa=ra[1],Ga=Xe(new Map),Pa=Object(o.a)(Ga,2),Ja=Pa[0],Ya=Pa[1],yn=Object(F.a)(Ut),ia=yn.map(function(ot){return Ja.get(ot)}),Na=C.useMemo(function(){return ia},[ia.join("_")]),la=wt(Na,Ut.length,ue),on=W&&Object(F.d)(W.y),hn=W&&Object(F.d)(W.x),bn=hn&&Ut.some(function(ot){var rt=ot.fixed;return rt}),sa=C.useRef(),Kn=Re(Ht,$),Wn=Kn.isSticky,Da=Kn.offsetHeader,Qa=Kn.offsetScroll,wa=Kn.stickyClassName,ua,Zn,Pn;on&&(Zn={overflowY:"scroll",maxHeight:W.y}),hn&&(ua={overflowX:"auto"},on||(Zn={overflowY:"hidden"}),Pn={width:W.x===!0?"auto":W.x,minWidth:"100%"});var _n=C.useCallback(function(ot,rt){Ya(function(kt){var Zt=new Map(kt);return Zt.set(ot,rt),Zt})},[]),qn=le(null),Aa=Object(o.a)(qn,2),La=Aa[0],Ua=Aa[1];function ea(ot,rt){if(!rt)return;typeof rt=="function"?rt(ot):rt.scrollLeft!==ot&&(rt.scrollLeft=ot)}var Nn=function(rt){var kt=rt.currentTarget,Zt=rt.scrollLeft,Bn=typeof Zt=="number"?Zt:kt.scrollLeft,Wa=kt||Mt;if(!Ua()||Ua()===Wa){var ba;La(Wa),ea(Bn,Sa.current),ea(Bn,vn.current),ea(Bn,(ba=sa.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(kt){var Ba=kt.scrollWidth,Fa=kt.clientWidth;Va(Bn>0),Xa(Bn0?[].concat(Object(M.a)(g),Object(M.a)(J(X).map(function(F){return Object(he.a)({fixed:H},F)}))):[].concat(Object(M.a)(g),[Object(he.a)(Object(he.a)({},u),{},{fixed:H})])},[])}function me(_){for(var g=!0,u=0;u<_.length;u+=1){var U=_[u];if(g&&U.fixed!=="left")g=!1;else if(!g&&U.fixed==="left"){Object(ae.a)(!1,"Index ".concat(u-1," of `columns` missing `fixed='left'` prop."));break}}for(var H=!0,X=_.length-1;X>=0;X-=1){var F=_[X];if(H&&F.fixed!=="right")H=!1;else if(!H&&F.fixed==="right"){Object(ae.a)(!1,"Index ".concat(X+1," of `columns` missing `fixed='right'` prop."));break}}}function re(_){return _.map(function(g){var u=g.fixed,U=Object(S.a)(g,["fixed"]),H=u;return u==="left"?H="right":u==="right"&&(H="left"),Object(he.a)({fixed:H},U)})}function q(_,g){var u=_.prefixCls,U=_.columns,H=_.children,X=_.expandable,F=_.expandedKeys,se=_.getRowKey,w=_.onTriggerExpand,k=_.expandIcon,E=_.rowExpandable,b=_.expandIconColumnIndex,f=_.direction,s=_.expandRowByClick,j=o.useMemo(function(){return U||G(H)},[U,H]),R=o.useMemo(function(){if(X){var L,ie=b||0,de=j[ie],ve=(L={},Object(P.a)(L,D.a,{className:"".concat(u,"-expand-icon-col")}),Object(P.a)(L,"title",""),Object(P.a)(L,"fixed",de?de.fixed:null),Object(P.a)(L,"className","".concat(u,"-row-expand-icon-cell")),Object(P.a)(L,"render",function(oe,ye,Se){var Te=se(ye,Se),De=F.has(Te),Ge=E?E(ye):!0,Ce=k({prefixCls:u,expanded:De,expandable:Ge,record:ye,onExpand:w});return s?o.createElement("span",{onClick:function(ct){return ct.stopPropagation()}},Ce):Ce}),L),Be=j.slice();return ie>=0&&Be.splice(ie,0,ve),Be}return j},[X,j,se,F,k,f]),A=o.useMemo(function(){var L=R;return g&&(L=g(L)),L.length||(L=[{render:function(){return null}}]),L},[g,R,f]),ee=o.useMemo(function(){return f==="rtl"?re(J(A)):J(A)},[A,f]);return[A,ee]}ne.b=q},"y0+3":function(mt,ne,r){"use strict";r.d(ne,"a",function(){return J}),r.d(ne,"b",function(){return re});var P=/margin|padding|width|height|max|min|offset/,M={left:!0,top:!0},he={cssFloat:1,styleFloat:1,float:1};function S(q){return q.nodeType===1?q.ownerDocument.defaultView.getComputedStyle(q,null):{}}function o(q,_,g){if(_=_.toLowerCase(),g==="auto"){if(_==="height")return q.offsetHeight;if(_==="width")return q.offsetWidth}return _ in M||(M[_]=P.test(_)),M[_]?parseFloat(g)||0:g}function C(q,_){var g=arguments.length,u=S(q);return _=he[_]?"cssFloat"in q.style?"cssFloat":"styleFloat":_,g===1?u:o(q,_,u[_]||q.style[_])}function ae(q,_,g){var u=arguments.length;if(_=he[_]?"cssFloat"in q.style?"cssFloat":"styleFloat":_,u===3)return typeof g=="number"&&P.test(_)&&(g="".concat(g,"px")),q.style[_]=g,g;for(var U in _)_.hasOwnProperty(U)&&ae(q,U,_[U]);return S(q)}function Q(q){return q===document.body?document.documentElement.clientWidth:q.offsetWidth}function D(q){return q===document.body?window.innerHeight||document.documentElement.clientHeight:q.offsetHeight}function G(){var q=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:q,height:_}}function J(){var q=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:q,height:_}}function me(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function re(q){var _=q.getBoundingClientRect(),g=document.documentElement;return{left:_.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Competitions__Entered__Assembly__TeamDateil.6da9ae7f.async.js b/p__Competitions__Entered__Assembly__TeamDateil.6da9ae7f.async.js index 030563b94e..352936ac78 100644 --- a/p__Competitions__Entered__Assembly__TeamDateil.6da9ae7f.async.js +++ b/p__Competitions__Entered__Assembly__TeamDateil.6da9ae7f.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[137,8],{"55Ip":function(je,U,n){"use strict";n.d(U,"a",function(){return g});var b=n("Ty5D"),C=n("dI71"),Q=n("q1tI"),J=n.n(Q),j=n("YS25"),o=n("17x9"),ne=n.n(o),L=n("wx14"),u=n("zLVn"),V=n("9R94"),A=function(t){Object(C.a)(e,t);function e(){for(var c,d=arguments.length,N=new Array(d),f=0;f=0||d.relatedTarget.className.indexOf("".concat(k,"-next"))>=0))return;t.setState({goInputText:""}),K(t.getValidValue())},t.go=function(d){var N=t.state.goInputText;if(N==="")return;(d.keyCode===_.ENTER||d.type==="click")&&(t.setState({goInputText:""}),t.props.quickGo(t.getValidValue()))},t}return Object(j.a)(a,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,c=e.current;return!i||isNaN(i)?c:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,c=e.pageSizeOptions;return c.some(function(d){return d.toString()===i.toString()})?c:c.concat([i.toString()]).sort(function(d,N){var f=isNaN(Number(d))?0:Number(d),K=isNaN(Number(N))?0:Number(N);return f-K})}},{key:"render",value:function(){var e=this,i=this.props,c=i.pageSize,d=i.locale,N=i.rootPrefixCls,f=i.changeSize,K=i.quickGo,k=i.goButton,F=i.selectComponentClass,ce=i.buildOptionText,Z=i.selectPrefixCls,D=i.disabled,ee=this.state.goInputText,ae="".concat(N,"-options"),le=F,oe=null,te=null,y=null;if(!f&&!K)return null;var X=this.getPageSizeOptions();if(f&&le){var ve=X.map(function(pe,he){return u.a.createElement(le.Option,{key:he,value:pe.toString()},(ce||e.buildOptionText)(pe))});oe=u.a.createElement(le,{disabled:D,prefixCls:Z,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||X[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},ve)}return K&&(k&&(y=typeof k=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:D,className:"".concat(ae,"-quick-jumper-button")},d.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},k)),te=u.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},d.jump_to,u.a.createElement("input",{disabled:D,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),d.page,y)),u.a.createElement("li",{className:"".concat(ae)},oe,te)}}]),a}(u.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var s=r,x=n("N2Kk");function p(){}function g(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function O(v,E,a){return a}function h(v,E,a){var t=typeof v=="undefined"?E.pageSize:v;return Math.floor((a.total-1)/t)+1}var B=function(v){Object(o.a)(a,v);var E=Object(ne.a)(a);function a(t){var e;Object(J.a)(this,a),e=E.call(this,t),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(f,K){var k=e.props.prefixCls,F=f||u.a.createElement("button",{type:"button","aria-label":K,className:"".concat(k,"-item-link")});return typeof f=="function"&&(F=u.a.createElement(f,Object(Q.a)({},e.props))),F},e.savePaginationNode=function(f){e.paginationNode=f},e.isValid=function(f){return g(f)&&f!==e.state.current},e.shouldDisplayQuickJumper=function(){var f=e.props,K=f.showQuickJumper,k=f.pageSize,F=f.total;return F<=k?!1:K},e.handleKeyDown=function(f){(f.keyCode===_.ARROW_UP||f.keyCode===_.ARROW_DOWN)&&f.preventDefault()},e.handleKeyUp=function(f){var K=e.getValidValue(f),k=e.state.currentInputValue;K!==k&&e.setState({currentInputValue:K}),f.keyCode===_.ENTER?e.handleChange(K):f.keyCode===_.ARROW_UP?e.handleChange(K-1):f.keyCode===_.ARROW_DOWN&&e.handleChange(K+1)},e.changePageSize=function(f){var K=e.state.current,k=h(f,e.state,e.props);K=K>k?k:K,k===0&&(K=e.state.current),typeof f=="number"&&("pageSize"in e.props||e.setState({pageSize:f}),"current"in e.props||e.setState({current:K,currentInputValue:K})),e.props.onShowSizeChange(K,f),"onChange"in e.props&&e.props.onChange&&e.props.onChange(K,f)},e.handleChange=function(f){var K=e.props.disabled,k=f;if(e.isValid(k)&&!K){var F=h(void 0,e.state,e.props);k>F?k=F:k<1&&(k=1),"current"in e.props||e.setState({current:k,currentInputValue:k});var ce=e.state.pageSize;return e.props.onChange(k,ce),k}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?k-2:0),ce=2;ce=c?N=c:N=Number(i),N}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,c=e.total,d=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:c>d}},{key:"renderPrev",value:function(e){var i=this.props,c=i.prevIcon,d=i.itemRender,N=d(e,"prev",this.getItemIcon(c,"prev page")),f=!this.hasPrev();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"renderNext",value:function(e){var i=this.props,c=i.nextIcon,d=i.itemRender,N=d(e,"next",this.getItemIcon(c,"next page")),f=!this.hasNext();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"render",value:function(){var e=this,i=this.props,c=i.prefixCls,d=i.className,N=i.style,f=i.disabled,K=i.hideOnSinglePage,k=i.total,F=i.locale,ce=i.showQuickJumper,Z=i.showLessItems,D=i.showTitle,ee=i.showTotal,ae=i.simple,le=i.itemRender,oe=i.showPrevNextJumpers,te=i.jumpPrevIcon,y=i.jumpNextIcon,X=i.selectComponentClass,ve=i.selectPrefixCls,pe=i.pageSizeOptions,he=this.state,se=he.current,_e=he.pageSize,Le=he.currentInputValue;if(K===!0&&k<=_e)return null;var de=h(void 0,this.state,this.props),ye=[],Be=null,Ue=null,ke=null,Ye=null,Ae=null,me=ce&&ce.goButton,be=Z?1:2,Qe=se-1>0?se-1:0,et=se+1=be*2&&se!==1+2&&(ye[0]=Object(L.cloneElement)(ye[0],{className:"".concat(c,"-item-after-jump-prev")}),ye.unshift(Be)),de-se>=be*2&&se!==de-2&&(ye[ye.length-1]=Object(L.cloneElement)(ye[ye.length-1],{className:"".concat(c,"-item-before-jump-next")}),ye.push(Ue)),P!==1&&ye.unshift(ke),I!==de&&ye.push(Ye)}var S=null;ee&&(S=u.a.createElement("li",{className:"".concat(c,"-total-text")},ee(k,[k===0?0:(se-1)*_e+1,se*_e>k?k:se*_e])));var T=!this.hasPrev()||!de,M=!this.hasNext()||!de;return u.a.createElement("ul",Object(b.a)({className:A()(c,d,Object(C.a)({},"".concat(c,"-disabled"),f)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},tt),S,u.a.createElement("li",{title:D?F.prev_page:null,onClick:this.prev,tabIndex:T?null:0,onKeyPress:this.runIfEnterPrev,className:A()("".concat(c,"-prev"),Object(C.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),ye,u.a.createElement("li",{title:D?F.next_page:null,onClick:this.next,tabIndex:M?null:0,onKeyPress:this.runIfEnterNext,className:A()("".concat(c,"-next"),Object(C.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderNext(et)),u.a.createElement(s,{disabled:f,locale:F,rootPrefixCls:c,selectComponentClass:X,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:_e,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var c={};if("current"in e&&(c.current=e.current,e.current!==i.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var d=i.current,N=h(e.pageSize,i,e);d=d>N?N:d,"current"in e||(c.current=d,c.currentInputValue=d),c.pageSize=e.pageSize}return c}}]),a}(u.a.Component);B.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:x.a,style:{},itemRender:O,totalBoundaryShowSizeChanger:50};var m=B},"6RRn":function(je,U,n){"use strict";var b=n("wCXF"),C=n("n6Qo");n.d(U,"b",function(){return C.a});var Q=n("IBYe"),J=n("6eGT"),j=n("hW8S");n.d(U,"a",function(){return j.a}),U.c=b.b},"6eGT":function(je,U,n){"use strict";function b(C){return null}U.a=b},"815F":function(je,U,n){"use strict";n.d(U,"e",function(){return ne}),n.d(U,"c",function(){return u}),n.d(U,"d",function(){return V}),n.d(U,"a",function(){return Y}),n.d(U,"f",function(){return H}),n.d(U,"b",function(){return _});var b=n("KQm4"),C=n("VTBJ"),Q=n("Ff2n"),J=n("Zm9Q"),j=n("Kwbf"),o=n("OZM5");function ne(r,s){return r!=null?r:s}function L(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function x(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(O){var h=O.key,B=O.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(g).concat(h,"]"));var m=String(h);Object(j.a)(!s.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),s.set(m,!0),x(B,"".concat(g).concat(m," > "))})}x(r)}function u(r){function s(x){var p=Object(J.a)(x);return p.map(function(g){if(!Object(o.i)(g))return Object(j.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var O=g.key,h=g.props,B=h.children,m=Object(Q.a)(h,["children"]),v=Object(C.a)({key:O},m),E=s(B);return E.length&&(v.children=E),v}).filter(function(g){return g})}return s(r)}function V(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(s===!0?[]:s),p=[];function g(O){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return O.map(function(B,m){var v=Object(o.h)(h?h.pos:"0",m),E=ne(B.key,v),a=Object(C.a)(Object(C.a)({},B),{},{parent:h,pos:v,children:null,data:B,isStart:[].concat(Object(b.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(b.a)(h?h.isEnd:[]),[m===O.length-1])});return p.push(a),s===!0||x.has(E)?a.children=g(B.children||[],a):a.children=[],a})}return g(r),p}function A(r,s,x){var p;x?typeof x=="string"?p=function(h){return h[x]}:typeof x=="function"&&(p=function(h){return x(h)}):p=function(h,B){return ne(h.key,B)};function g(O,h,B){var m=O?O.children:r,v=O?Object(o.h)(B.pos,h):"0";if(O){var E=p(O,v),a={node:O,index:h,pos:v,key:E,parentPos:B.node?B.pos:null,level:B.level+1};s(a)}m&&m.forEach(function(t,e){g(t,e,{node:O,pos:v,level:B?B.level+1:-1})})}g(null)}function Y(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=s.initWrapper,p=s.processEntity,g=s.onProcessFinished,O=arguments.length>2?arguments[2]:void 0,h={},B={},m={posEntities:h,keyEntities:B};return x&&(m=x(m)||m),A(r,function(v){var E=v.node,a=v.index,t=v.pos,e=v.key,i=v.parentPos,c=v.level,d={node:E,index:a,key:e,pos:t,level:c},N=ne(e,t);h[t]=d,B[N]=d,d.parent=h[i],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),p&&p(d,m)},O),g&&g(m),m}function H(r,s){var x=s.expandedKeys,p=s.selectedKeys,g=s.loadedKeys,O=s.loadingKeys,h=s.checkedKeys,B=s.halfCheckedKeys,m=s.dragOverNodeKey,v=s.dropPosition,E=s.keyEntities,a=E[r],t={eventKey:r,expanded:x.indexOf(r)!==-1,selected:p.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:O.indexOf(r)!==-1,checked:h.indexOf(r)!==-1,halfChecked:B.indexOf(r)!==-1,pos:String(a?a.pos:""),dragOver:m===r&&v===0,dragOverGapTop:m===r&&v===-1,dragOverGapBottom:m===r&&v===1};return t}function _(r){var s=r.data,x=r.expanded,p=r.selected,g=r.checked,O=r.loaded,h=r.loading,B=r.halfChecked,m=r.dragOver,v=r.dragOverGapTop,E=r.dragOverGapBottom,a=r.pos,t=r.active,e=Object(C.a)(Object(C.a)({},s),{},{expanded:x,selected:p,checked:g,loaded:O,loading:h,halfChecked:B,dragOver:m,dragOverGapTop:v,dragOverGapBottom:E,pos:a,active:t});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),e}},IBYe:function(je,U,n){"use strict";function b(C){return null}U.a=b},LdHM:function(je,U,n){"use strict";n.d(U,"b",function(){return O}),n.d(U,"a",function(){return B});var b=n("1OyB"),C=n("vuIU"),Q=n("Ji7U"),J=n("LK+K"),j=n("q1tI"),o=n("rePB"),ne=n("Ff2n"),L=n("ODXe"),u=n("4IlW"),V=n("bX4T"),A=n("YrtM"),Y=n("TSYQ"),H=n.n(Y),_=n("+nKL"),r=n("8OUc"),s=function(D,ee){var ae=D.prefixCls,le=D.id,oe=D.flattenOptions,te=D.childrenAsData,y=D.values,X=D.searchValue,ve=D.multiple,pe=D.defaultActiveFirstOption,he=D.height,se=D.itemHeight,_e=D.notFoundContent,Le=D.open,de=D.menuItemSelectedIcon,ye=D.virtual,Be=D.onSelect,Ue=D.onToggleOpen,ke=D.onActiveValue,Ye=D.onScroll,Ae=D.onMouseEnter,me="".concat(ae,"-item"),be=Object(A.a)(function(){return oe},[Le,oe],function(w,S){return S[0]&&w[1]!==S[1]}),Qe=j.useRef(null),et=function(S){S.preventDefault()},tt=function(S){Qe.current&&Qe.current.scrollTo({index:S})},st=function(S){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=be.length,G=0;G1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Z).map(function(ee,ae){if(!j.isValidElement(ee)||!ee.type)return null;var le=ee.type.isSelectOptGroup,oe=ee.key,te=ee.props,y=te.children,X=Object(ne.a)(te,["children"]);return D||!le?E(ee):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(oe===null?ae:oe,"__"),label:oe},X),{},{options:a(y)})}).filter(function(ee){return ee})}var t=n("2Qr1"),e=n("qNPg"),i=n("U8pU"),c=n("Kwbf"),d=n("WKfj");function N(Z){var D=Z.mode,ee=Z.options,ae=Z.children,le=Z.backfill,oe=Z.allowClear,te=Z.placeholder,y=Z.getInputElement,X=Z.showSearch,ve=Z.onSearch,pe=Z.defaultOpen,he=Z.autoFocus,se=Z.labelInValue,_e=Z.value,Le=Z.inputValue,de=Z.optionLabelProp,ye=D==="multiple"||D==="tags",Be=X!==void 0?X:ye||D==="combobox",Ue=ee||a(ae);if(Object(c.a)(D!=="tags"||Ue.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),D==="tags"||D==="combobox"){var ke=Ue.some(function(me){return me.options?me.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(D!=="combobox"||!de,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(D==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(c.a)(D==="combobox"||!y,"`getInputElement` only work with `combobox` mode."),Object(c.b)(D!=="combobox"||!y||!oe||!te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!Be&&D!=="combobox"&&D!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!pe||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_e!=null){var Ye=Object(d.d)(_e);Object(c.a)(!se||Ye.every(function(me){return Object(i.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!ye||Array.isArray(_e),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var Ae=null;Object(v.a)(ae).some(function(me){if(!j.isValidElement(me)||!me.type)return!1;var be=me.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var Qe=Object(v.a)(me.props.children).every(function(et){return!j.isValidElement(et)||!me.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=be,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=N,K=Object(e.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:t.d,getLabeledValue:t.e,filterOptions:t.b,isValueDisabled:t.g,findValueOption:t.c,warningProps:f,fillOptionsWithMissingValue:t.a}),k=function(Z){Object(Q.a)(ee,Z);var D=Object(J.a)(ee);function ee(){var ae;return Object(b.a)(this,ee),ae=D.apply(this,arguments),ae.selectRef=j.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(C.a)(ee,[{key:"render",value:function(){return j.createElement(K,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);k.Option=O,k.OptGroup=B;var F=k,ce=U.c=F},NvD2:function(je,U,n){"use strict";n.d(U,"a",function(){return o});var b=n("Kwbf");function C(ne,L){var u=new Set;return ne.forEach(function(V){L.has(V)||u.add(V)}),u}function Q(ne){var L=ne||{},u=L.disabled,V=L.disableCheckbox,A=L.checkable;return!!(u||V)||A===!1}function J(ne,L,u,V){for(var A=new Set(ne),Y=new Set,H=0;H<=u;H+=1){var _=L.get(H)||new Set;_.forEach(function(p){var g=p.key,O=p.node,h=p.children,B=h===void 0?[]:h;A.has(g)&&!V(O)&&B.filter(function(m){return!V(m.node)}).forEach(function(m){A.add(m.key)})})}for(var r=new Set,s=u;s>=0;s-=1){var x=L.get(s)||new Set;x.forEach(function(p){var g=p.parent,O=p.node;if(V(O)||!p.parent||r.has(p.parent.key))return;if(V(p.parent.node)){r.add(g.key);return}var h=!0,B=!1;(g.children||[]).filter(function(m){return!V(m.node)}).forEach(function(m){var v=m.key,E=A.has(v);h&&!E&&(h=!1),!B&&(E||Y.has(v))&&(B=!0)}),h&&A.add(g.key),B&&Y.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(C(Y,A))}}function j(ne,L,u,V,A){for(var Y=new Set(ne),H=new Set(L),_=0;_<=V;_+=1){var r=u.get(_)||new Set;r.forEach(function(g){var O=g.key,h=g.node,B=g.children,m=B===void 0?[]:B;!Y.has(O)&&!H.has(O)&&!A(h)&&m.filter(function(v){return!A(v.node)}).forEach(function(v){Y.delete(v.key)})})}H=new Set;for(var s=new Set,x=V;x>=0;x-=1){var p=u.get(x)||new Set;p.forEach(function(g){var O=g.parent,h=g.node;if(A(h)||!g.parent||s.has(g.parent.key))return;if(A(g.parent.node)){s.add(O.key);return}var B=!0,m=!1;(O.children||[]).filter(function(v){return!A(v.node)}).forEach(function(v){var E=v.key,a=Y.has(E);B&&!a&&(B=!1),!m&&(a||H.has(E))&&(m=!0)}),B||Y.delete(O.key),m&&H.add(O.key),s.add(O.key)})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(C(H,Y))}}function o(ne,L,u,V){var A=[],Y;V?Y=V:Y=Q;var H=new Set(ne.filter(function(x){var p=!!u[x];return p||A.push(x),p})),_=new Map,r=0;Object.keys(u).forEach(function(x){var p=u[x],g=p.level,O=_.get(g);O||(O=new Set,_.set(g,O)),O.add(p),r=Math.max(r,g)}),Object(b.a)(!A.length,"Tree missing follow keys: ".concat(A.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var s;return L===!0?s=J(H,_,r,Y):s=j(H,L.halfCheckedKeys,_,r,Y),s}},OZM5:function(je,U,n){"use strict";n.d(U,"b",function(){return V}),n.d(U,"a",function(){return A}),n.d(U,"k",function(){return Y}),n.d(U,"h",function(){return H}),n.d(U,"i",function(){return _}),n.d(U,"g",function(){return r}),n.d(U,"c",function(){return s}),n.d(U,"d",function(){return x}),n.d(U,"j",function(){return O}),n.d(U,"e",function(){return h}),n.d(U,"f",function(){return B});var b=n("KQm4"),C=n("U8pU"),Q=n("Ff2n"),J=n("q1tI"),j=n.n(J),o=n("Kwbf"),ne=n("WaYH"),L=.25,u=2;function V(m,v){var E=m.slice(),a=E.indexOf(v);return a>=0&&E.splice(a,1),E}function A(m,v){var E=m.slice();return E.indexOf(v)===-1&&E.push(v),E}function Y(m){return m.split("-")}function H(m,v){return"".concat(m,"-").concat(v)}function _(m){return m&&m.type&&m.type.isTreeNode}function r(m,v){var E=[m],a=v[m];function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var c=i.key,d=i.children;E.push(c),t(d)})}return t(a.children),E}function s(m,v){var E=m.clientY,a=v.selectHandle.getBoundingClientRect(),t=a.top,e=a.bottom,i=a.height,c=Math.max(i*L,u);return E<=t+c?-1:E>=e-c?1:0}function x(m,v){if(!m)return;var E=v.multiple;return E?m.slice():m.length?[m[0]]:m}var p=function(v){return v};function g(m,v){if(!m)return[];var E=v||{},a=E.processProps,t=a===void 0?p:a,e=Array.isArray(m)?m:[m];return e.map(function(i){var c=i.children,d=Object(Q.a)(i,["children"]),N=g(c,v);return j.a.createElement(ne.a,Object.assign({},t(d)),N)})}function O(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(C.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var E=new Set;function a(t){if(E.has(t))return;var e=v[t];if(!e)return;E.add(t);var i=e.parent,c=e.node;if(c.disabled)return;i&&a(i.key)}return(m||[]).forEach(function(t){a(t)}),Object(b.a)(E)}function B(m){var v={};return Object.keys(m).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(v[E]=m[E])}),v}},"SA+Z":function(je,U,n){var b=n("wTVA"),C=n("EbDI"),Q=n("ZhPi"),J=n("wkBT");function j(o){return b(o)||C(o)||Q(o)||J()}je.exports=j,je.exports.__esModule=!0,je.exports.default=je.exports},WaYH:function(je,U,n){"use strict";var b=n("rePB"),C=n("Ff2n"),Q=n("VTBJ"),J=n("1OyB"),j=n("vuIU"),o=n("JX7q"),ne=n("Ji7U"),L=n("LK+K"),u=n("q1tI"),V=n("TSYQ"),A=n.n(V),Y=n("sboe"),H=n("OZM5"),_=function(v){var E=v.prefixCls,a=v.level,t=v.isStart,e=v.isEnd;if(!a)return null;for(var i="".concat(E,"-indent-unit"),c=[],d=0;d"},r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index/".concat(e,"/enroll")},"\u62A5\u540D")),r.a.createElement(J.a.Item,null,"\u6218\u961F\u8BE6\u60C5")),r.a.createElement("p",null,"\u5B9E\u8DF5\u9879\u76EE"),r.a.createElement(C.a,{className:"teamsLayoutTable",columns:le,dataSource:N,bordered:!0,pagination:!1}),r.a.createElement("p",null,"\u6559\u5B66\u8BFE\u5802"),r.a.createElement(C.a,{className:"teamsLayoutTable",columns:oe,dataSource:F,bordered:!0,pagination:!1}))};U.default=Object(p.a)(function(O){var h=O.loading,B=O.globalSetting,m=O.user;return{globalSetting:B,loading:h.effects,user:m}})(g)},n6Qo:function(je,U,n){"use strict";n.d(U,"a",function(){return L});var b=n("q1tI"),C=n("biw7"),Q=n("fyJ8");function J(u){var V=u.className,A=u.index,Y=u.children,H=u.colSpan,_=u.rowSpan,r=b.useContext(C.a),s=r.prefixCls,x=r.fixedInfoList,p=x[A];return b.createElement(Q.a,Object.assign({className:V,index:A,component:"td",prefixCls:s,record:null,dataIndex:null,render:function(){return{children:Y,props:{colSpan:H,rowSpan:_}}}},p))}function j(u){return b.createElement("tr",Object.assign({},u))}function o(u){var V=u.children,A=b.useContext(C.a),Y=A.prefixCls;return b.createElement("tfoot",{className:"".concat(Y,"-summary")},V)}var ne=U.b=o,L={Cell:J,Row:j}},sR1s:function(je,U,n){"use strict";n.d(U,"b",function(){return J}),n.d(U,"a",function(){return j}),n.d(U,"c",function(){return o}),n.d(U,"d",function(){return ne});var b=n("U8pU"),C="RC_TABLE_KEY";function Q(L){return L==null?[]:Array.isArray(L)?L:[L]}function J(L,u){if(!u&&typeof u!="number")return L;for(var V=Q(u),A=L,Y=0;Y1)Object(V.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(O.length===0)return Object(V.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=O[0];if(o.isValidElement(h)&&Object(A.c)(h)){var B=h.ref;O[0]=o.cloneElement(h,{ref:Object(A.a)(B,this.setChildNode)})}return O.length===1?O[0]:O.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(H,"-").concat(v)})})}}]),x}(o.Component);_.displayName="ResizeObserver",U.a=_},wCXF:function(je,U,n){"use strict";n.d(U,"a",function(){return tt});var b=n("rePB"),C=n("VTBJ"),Q=n("KQm4"),J=n("U8pU"),j=n("ODXe"),o=n("q1tI"),ne=n("TSYQ"),L=n.n(ne),u=n("Gytx"),V=n.n(u),A=n("Kwbf"),Y=n("t23M"),H=n("qx4F"),_=n("6eGT"),r=n("IBYe"),s=n("Ff2n"),x=n("c+Xe"),p=n("fyJ8"),g=n("biw7");function O(l,R,P,I,z){var w=P[l]||{},S=P[R]||{},T,M;w.fixed==="left"?T=I.left[l]:S.fixed==="right"&&(M=I.right[R]);var G=!1,W=!1,$=!1,re=!1,q=P[R+1],ue=P[l-1];if(z==="rtl"){if(T!==void 0){var Re=ue&&ue.fixed==="left";re=!Re}else if(M!==void 0){var Ce=q&&q.fixed==="right";$=!Ce}}else if(T!==void 0){var xe=q&&q.fixed==="left";G=!xe}else if(M!==void 0){var ie=ue&&ue.fixed==="right";W=!ie}return{fixLeft:T,fixRight:M,lastFixLeft:G,firstFixRight:W,lastFixRight:$,firstFixLeft:re,isSticky:I.isSticky}}var h=n("sR1s");function B(l){var R=l.cells,P=l.stickyOffsets,I=l.flattenColumns,z=l.rowComponent,w=l.cellComponent,S=l.onHeaderRow,T=l.index,M=o.useContext(g.a),G=M.prefixCls,W=M.direction,$;S&&($=S(R.map(function(q){return q.column}),T));var re=Object(h.a)(R.map(function(q){return q.column}));return o.createElement(z,Object.assign({},$),R.map(function(q,ue){var Re=q.column,Ce=O(q.colStart,q.colEnd,I,P,W),xe;return Re&&Re.onHeaderCell&&(xe=q.column.onHeaderCell(Re)),o.createElement(p.a,Object.assign({},q,{ellipsis:Re.ellipsis,align:Re.align,component:w,prefixCls:G,key:re[ue]},Ce,{additionalProps:xe,rowType:"header"}))}))}B.displayName="HeaderRow";var m=B;function v(l){var R=[];function P(S,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;R[M]=R[M]||[];var G=T,W=S.filter(Boolean).map(function($){var re={key:$.key,className:$.className||"",children:$.title,column:$,colStart:G},q=1,ue=$.children;return ue&&ue.length>0&&(q=P(ue,G,M+1).reduce(function(Re,Ce){return Re+Ce},0),re.hasSubColumns=!0),"colSpan"in $&&(q=$.colSpan),"rowSpan"in $&&(re.rowSpan=$.rowSpan),re.colSpan=q,re.colEnd=re.colStart+q-1,R[M].push(re),G+=q,q});return W}P(l,0);for(var I=R.length,z=function(T){R[T].forEach(function(M){!("rowSpan"in M)&&!M.hasSubColumns&&(M.rowSpan=I-T)})},w=0;w=0;T-=1){var M=R[T],G=P&&P[T],W=G&&G[t.a];(M||W||S)&&(z.unshift(o.createElement("col",Object.assign({key:T,style:{width:M,minWidth:M}},W))),S=!0)}return o.createElement("colgroup",null,z)}var i=e;function c(l,R){return Object(o.useMemo)(function(){for(var P=[],I=0;I1?Fe-1:0),dt=1;dt=$&&(Ne=$-re),S({scrollLeft:Ne/$*(W+2)}),ie.current.x=fe.pageX},We=function(){var fe=Object(Ye.b)(w.current).top,we=fe+w.current.offsetHeight,He=document.documentElement.scrollTop+window.innerHeight;we-Object(H.a)()<=He||fe>=He-T?xe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!0})}):xe(function(Je){return Object(C.a)(Object(C.a)({},Je),{},{isHiddenScrollBar:!1})})},Se=function(fe){xe(function(we){return Object(C.a)(Object(C.a)({},we),{},{scrollLeft:fe/W*$||0})})};return o.useImperativeHandle(P,function(){return{setScrollLeft:Se}}),o.useEffect(function(){var Pe=Object(ke.a)(document.body,"mouseup",$e,!1),fe=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){Pe.remove(),fe.remove()}},[re,Te]),o.useEffect(function(){var Pe=Object(ke.a)(window,"scroll",We,!1),fe=Object(ke.a)(window,"resize",We,!1);return function(){Pe.remove(),fe.remove()}},[]),o.useEffect(function(){Ce.isHiddenScrollBar||xe(function(Pe){var fe,we;return Object(C.a)(Object(C.a)({},Pe),{},{scrollLeft:w.current.scrollLeft/((fe=w.current)===null||fe===void 0?void 0:fe.scrollWidth)*((we=w.current)===null||we===void 0?void 0:we.clientWidth)})})},[Ce.isHiddenScrollBar]),W<=$||!re||Ce.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(H.a)(),width:$,bottom:T},className:"".concat(G,"-sticky-scroll")},o.createElement("div",{onMouseDown:Oe,ref:q,className:L()("".concat(G,"-sticky-scroll-bar"),Object(b.a)({},"".concat(G,"-sticky-scroll-bar-active"),Te)),style:{width:"".concat(re,"px"),transform:"translate3d(".concat(Ce.scrollLeft,"px, 0, 0)")}}))},me=o.forwardRef(Ae);function be(l,R){return o.useMemo(function(){var P=!!l;return{isSticky:P,stickyClassName:P?"".concat(R,"-sticky-header"):"",offsetHeader:Object(J.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(J.a)(l)==="object"&&l.offsetScroll||0}},[l,R])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(l){var R=l.children;return R},function(l,R){return V()(l.props,R.props)?l.pingLeft!==R.pingLeft||l.pingRight!==R.pingRight:!1});function Ve(l){var R,P=l.prefixCls,I=l.className,z=l.rowClassName,w=l.style,S=l.data,T=l.rowKey,M=l.scroll,G=l.tableLayout,W=l.direction,$=l.title,re=l.footer,q=l.summary,ue=l.id,Re=l.showHeader,Ce=l.components,xe=l.emptyText,ie=l.onRow,Xe=l.onHeaderRow,De=l.internalHooks,Te=l.transformColumns,Ie=l.internalRefs,$e=l.sticky,Oe=S||Qe,Ge=!!Oe.length,We=o.useState(0),Se=Object(j.a)(We,2),Pe=Se[0],fe=Se[1];o.useEffect(function(){fe(Object(H.a)())});var we=o.useMemo(function(){return Object(h.c)(Ce,{})},[Ce]),He=o.useCallback(function(Ee,ge){return Object(h.b)(we,Ee)||ge},[we]),Je=o.useMemo(function(){return typeof T=="function"?T:function(Ee){var ge=Ee&&Ee[T];return ge}},[T]),Ne=Object(t.c)(l),jt=Ne.expandIcon,Rt=Ne.expandedRowKeys,Pt=Ne.defaultExpandedRowKeys,rt=Ne.defaultExpandAllRows,it=Ne.expandedRowRender,ft=Ne.onExpand,mt=Ne.onExpandedRowsChange,Nt=Ne.expandRowByClick,nt=Ne.rowExpandable,Et=Ne.expandIconColumnIndex,pt=Ne.expandedRowClassName,Kt=Ne.childrenColumnName,Tt=Ne.indentSize,ht=jt||Be,gt=Kt||"children",_t=o.useMemo(function(){return it?"row":l.expandable&&De===tt&&l.expandable.__PARENT_RENDER_ICON__||Oe.some(function(Ee){return Ee&&Object(J.a)(Ee)==="object"&&Ee[gt]})?"nest":!1},[!!it,Oe]),Dt=o.useState(function(){return Pt||(rt?Ue(Oe,Je,gt):[])}),ze=Object(j.a)(Dt,2),Ze=ze[0],at=ze[1],Fe=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),ct=o.useCallback(function(Ee){var ge=Je(Ee,Oe.indexOf(Ee)),Ke,qe=Fe.has(ge);qe?(Fe.delete(ge),Ke=Object(Q.a)(Fe)):Ke=[].concat(Object(Q.a)(Fe),[ge]),at(Ke),ft&&ft(!qe,Ee),mt&&mt(Ke)},[Je,Fe,Oe,ft,mt]),dt=o.useState(0),St=Object(j.a)(dt,2),Ct=St[0],Mt=St[1],vn=Object(y.b)(Object(C.a)(Object(C.a)(Object(C.a)({},l),Ne),{},{expandable:!!it,expandedKeys:Fe,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:W}),De===tt?Te:null),Yt=Object(j.a)(vn,2),kt=Yt[0],Me=Yt[1],Lt=o.useMemo(function(){return{columns:kt,flattenColumns:Me}},[kt,Me]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],Cn=en[1],yn=pe(new Map),nn=Object(j.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(Me),an=jn.map(function(Ee){return On.get(Ee)}),on=o.useMemo(function(){return an},[an.join("_")]),At=_e(on,Me.length,W),ot=M&&Object(h.d)(M.y),lt=M&&Object(h.d)(M.x),yt=lt&&Me.some(function(Ee){var ge=Ee.fixed;return ge}),rn=o.useRef(),wt=be($e,P),Ot=wt.isSticky,Rn=wt.offsetHeader,Pn=wt.offsetScroll,Nn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:M.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:M.x===!0?"auto":M.x,minWidth:"100%"});var ln=o.useCallback(function(Ee,ge){xn(function(Ke){var qe=new Map(Ke);return qe.set(Ee,ge),qe})},[]),Tn=he(null),sn=Object(j.a)(Tn,2),_n=sn[0],cn=sn[1];function Ht(Ee,ge){if(!ge)return;typeof ge=="function"?ge(Ee):ge.scrollLeft!==Ee&&(ge.scrollLeft=Ee)}var vt=function(ge){var Ke=ge.currentTarget,qe=ge.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;_n(hn),Ht(xt,Qt.current),Ht(xt,ut.current),Ht(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(C.a)(s),Object(C.a)(A(O).map(function(h){return Object(Q.a)({fixed:g},h)}))):[].concat(Object(C.a)(s),[Object(Q.a)(Object(Q.a)({},x),{},{fixed:g})])},[])}function Y(r){for(var s=!0,x=0;x=0;O-=1){var h=r[O];if(g&&h.fixed!=="right")g=!1;else if(!g&&h.fixed==="right"){Object(ne.a)(!1,"Index ".concat(O+1," of `columns` missing `fixed='right'` prop."));break}}}function H(r){return r.map(function(s){var x=s.fixed,p=Object(J.a)(s,["fixed"]),g=x;return x==="left"?g="right":x==="right"&&(g="left"),Object(Q.a)({fixed:g},p)})}function _(r,s){var x=r.prefixCls,p=r.columns,g=r.children,O=r.expandable,h=r.expandedKeys,B=r.getRowKey,m=r.onTriggerExpand,v=r.expandIcon,E=r.rowExpandable,a=r.expandIconColumnIndex,t=r.direction,e=r.expandRowByClick,i=j.useMemo(function(){return p||V(g)},[p,g]),c=j.useMemo(function(){if(O){var f,K=a||0,k=i[K],F=(f={},Object(b.a)(f,u.a,{className:"".concat(x,"-expand-icon-col")}),Object(b.a)(f,"title",""),Object(b.a)(f,"fixed",k?k.fixed:null),Object(b.a)(f,"className","".concat(x,"-row-expand-icon-cell")),Object(b.a)(f,"render",function(D,ee,ae){var le=B(ee,ae),oe=h.has(le),te=E?E(ee):!0,y=v({prefixCls:x,expanded:oe,expandable:te,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},y):y}),f),ce=i.slice();return K>=0&&ce.splice(K,0,F),ce}return i},[O,i,B,h,v,t]),d=j.useMemo(function(){var f=c;return s&&(f=s(f)),f.length||(f=[{render:function(){return null}}]),f},[s,c,t]),N=j.useMemo(function(){return t==="rtl"?H(A(d)):A(d)},[d,t]);return[d,N]}U.b=_},"y0+3":function(je,U,n){"use strict";n.d(U,"a",function(){return A}),n.d(U,"b",function(){return H});var b=/margin|padding|width|height|max|min|offset/,C={left:!0,top:!0},Q={cssFloat:1,styleFloat:1,float:1};function J(_){return _.nodeType===1?_.ownerDocument.defaultView.getComputedStyle(_,null):{}}function j(_,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return _.offsetHeight;if(r==="width")return _.offsetWidth}return r in C||(C[r]=b.test(r)),C[r]?parseFloat(s)||0:s}function o(_,r){var s=arguments.length,x=J(_);return r=Q[r]?"cssFloat"in _.style?"cssFloat":"styleFloat":r,s===1?x:j(_,r,x[r]||_.style[r])}function ne(_,r,s){var x=arguments.length;if(r=Q[r]?"cssFloat"in _.style?"cssFloat":"styleFloat":r,x===3)return typeof s=="number"&&b.test(r)&&(s="".concat(s,"px")),_.style[r]=s,s;for(var p in r)r.hasOwnProperty(p)&&ne(_,p,r[p]);return J(_)}function L(_){return _===document.body?document.documentElement.clientWidth:_.offsetWidth}function u(_){return _===document.body?window.innerHeight||document.documentElement.clientHeight:_.offsetHeight}function V(){var _=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:_,height:r}}function A(){var _=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:_,height:r}}function Y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function H(_){var r=_.getBoundingClientRect(),s=document.documentElement;return{left:r.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[137,8],{"55Ip":function(je,U,n){"use strict";n.d(U,"a",function(){return g});var b=n("Ty5D"),y=n("dI71"),Q=n("q1tI"),J=n.n(Q),j=n("YS25"),o=n("17x9"),ne=n.n(o),L=n("wx14"),u=n("zLVn"),V=n("9R94"),A=function(t){Object(y.a)(e,t);function e(){for(var c,d=arguments.length,N=new Array(d),f=0;f=0||d.relatedTarget.className.indexOf("".concat(k,"-next"))>=0))return;t.setState({goInputText:""}),K(t.getValidValue())},t.go=function(d){var N=t.state.goInputText;if(N==="")return;(d.keyCode===D.ENTER||d.type==="click")&&(t.setState({goInputText:""}),t.props.quickGo(t.getValidValue()))},t}return Object(j.a)(a,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,c=e.current;return!i||isNaN(i)?c:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,c=e.pageSizeOptions;return c.some(function(d){return d.toString()===i.toString()})?c:c.concat([i.toString()]).sort(function(d,N){var f=isNaN(Number(d))?0:Number(d),K=isNaN(Number(N))?0:Number(N);return f-K})}},{key:"render",value:function(){var e=this,i=this.props,c=i.pageSize,d=i.locale,N=i.rootPrefixCls,f=i.changeSize,K=i.quickGo,k=i.goButton,F=i.selectComponentClass,ce=i.buildOptionText,Z=i.selectPrefixCls,_=i.disabled,ee=this.state.goInputText,ae="".concat(N,"-options"),le=F,oe=null,te=null,C=null;if(!f&&!K)return null;var X=this.getPageSizeOptions();if(f&&le){var ve=X.map(function(pe,he){return u.a.createElement(le.Option,{key:he,value:pe.toString()},(ce||e.buildOptionText)(pe))});oe=u.a.createElement(le,{disabled:_,prefixCls:Z,showSearch:!1,className:"".concat(ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||X[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},ve)}return K&&(k&&(C=typeof k=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:_,className:"".concat(ae,"-quick-jumper-button")},d.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},k)),te=u.a.createElement("div",{className:"".concat(ae,"-quick-jumper")},d.jump_to,u.a.createElement("input",{disabled:_,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),d.page,C)),u.a.createElement("li",{className:"".concat(ae)},oe,te)}}]),a}(u.a.Component);r.defaultProps={pageSizeOptions:["10","20","50","100"]};var s=r,x=n("N2Kk");function p(){}function g(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function O(v,E,a){return a}function h(v,E,a){var t=typeof v=="undefined"?E.pageSize:v;return Math.floor((a.total-1)/t)+1}var B=function(v){Object(o.a)(a,v);var E=Object(ne.a)(a);function a(t){var e;Object(J.a)(this,a),e=E.call(this,t),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(h(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(f,K){var k=e.props.prefixCls,F=f||u.a.createElement("button",{type:"button","aria-label":K,className:"".concat(k,"-item-link")});return typeof f=="function"&&(F=u.a.createElement(f,Object(Q.a)({},e.props))),F},e.savePaginationNode=function(f){e.paginationNode=f},e.isValid=function(f){return g(f)&&f!==e.state.current},e.shouldDisplayQuickJumper=function(){var f=e.props,K=f.showQuickJumper,k=f.pageSize,F=f.total;return F<=k?!1:K},e.handleKeyDown=function(f){(f.keyCode===D.ARROW_UP||f.keyCode===D.ARROW_DOWN)&&f.preventDefault()},e.handleKeyUp=function(f){var K=e.getValidValue(f),k=e.state.currentInputValue;K!==k&&e.setState({currentInputValue:K}),f.keyCode===D.ENTER?e.handleChange(K):f.keyCode===D.ARROW_UP?e.handleChange(K-1):f.keyCode===D.ARROW_DOWN&&e.handleChange(K+1)},e.changePageSize=function(f){var K=e.state.current,k=h(f,e.state,e.props);K=K>k?k:K,k===0&&(K=e.state.current),typeof f=="number"&&("pageSize"in e.props||e.setState({pageSize:f}),"current"in e.props||e.setState({current:K,currentInputValue:K})),e.props.onShowSizeChange(K,f),"onChange"in e.props&&e.props.onChange&&e.props.onChange(K,f)},e.handleChange=function(f){var K=e.props.disabled,k=f;if(e.isValid(k)&&!K){var F=h(void 0,e.state,e.props);k>F?k=F:k<1&&(k=1),"current"in e.props||e.setState({current:k,currentInputValue:k});var ce=e.state.pageSize;return e.props.onChange(k,ce),k}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?k-2:0),ce=2;ce=c?N=c:N=Number(i),N}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,c=e.total,d=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:c>d}},{key:"renderPrev",value:function(e){var i=this.props,c=i.prevIcon,d=i.itemRender,N=d(e,"prev",this.getItemIcon(c,"prev page")),f=!this.hasPrev();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"renderNext",value:function(e){var i=this.props,c=i.nextIcon,d=i.itemRender,N=d(e,"next",this.getItemIcon(c,"next page")),f=!this.hasNext();return Object(L.isValidElement)(N)?Object(L.cloneElement)(N,{disabled:f}):N}},{key:"render",value:function(){var e=this,i=this.props,c=i.prefixCls,d=i.className,N=i.style,f=i.disabled,K=i.hideOnSinglePage,k=i.total,F=i.locale,ce=i.showQuickJumper,Z=i.showLessItems,_=i.showTitle,ee=i.showTotal,ae=i.simple,le=i.itemRender,oe=i.showPrevNextJumpers,te=i.jumpPrevIcon,C=i.jumpNextIcon,X=i.selectComponentClass,ve=i.selectPrefixCls,pe=i.pageSizeOptions,he=this.state,se=he.current,De=he.pageSize,Le=he.currentInputValue;if(K===!0&&k<=De)return null;var de=h(void 0,this.state,this.props),Ce=[],Be=null,Ue=null,ke=null,Ye=null,Ae=null,me=ce&&ce.goButton,be=Z?1:2,Qe=se-1>0?se-1:0,et=se+1=be*2&&se!==1+2&&(Ce[0]=Object(L.cloneElement)(Ce[0],{className:"".concat(c,"-item-after-jump-prev")}),Ce.unshift(Be)),de-se>=be*2&&se!==de-2&&(Ce[Ce.length-1]=Object(L.cloneElement)(Ce[Ce.length-1],{className:"".concat(c,"-item-before-jump-next")}),Ce.push(Ue)),P!==1&&Ce.unshift(ke),I!==de&&Ce.push(Ye)}var S=null;ee&&(S=u.a.createElement("li",{className:"".concat(c,"-total-text")},ee(k,[k===0?0:(se-1)*De+1,se*De>k?k:se*De])));var T=!this.hasPrev()||!de,M=!this.hasNext()||!de;return u.a.createElement("ul",Object(b.a)({className:A()(c,d,Object(y.a)({},"".concat(c,"-disabled"),f)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},tt),S,u.a.createElement("li",{title:_?F.prev_page:null,onClick:this.prev,tabIndex:T?null:0,onKeyPress:this.runIfEnterPrev,className:A()("".concat(c,"-prev"),Object(y.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),Ce,u.a.createElement("li",{title:_?F.next_page:null,onClick:this.next,tabIndex:M?null:0,onKeyPress:this.runIfEnterNext,className:A()("".concat(c,"-next"),Object(y.a)({},"".concat(c,"-disabled"),M)),"aria-disabled":M},this.renderNext(et)),u.a.createElement(s,{disabled:f,locale:F,rootPrefixCls:c,selectComponentClass:X,selectPrefixCls:ve,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:De,pageSizeOptions:pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var c={};if("current"in e&&(c.current=e.current,e.current!==i.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var d=i.current,N=h(e.pageSize,i,e);d=d>N?N:d,"current"in e||(c.current=d,c.currentInputValue=d),c.pageSize=e.pageSize}return c}}]),a}(u.a.Component);B.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p,locale:x.a,style:{},itemRender:O,totalBoundaryShowSizeChanger:50};var m=B},"6RRn":function(je,U,n){"use strict";var b=n("wCXF"),y=n("n6Qo");n.d(U,"b",function(){return y.a});var Q=n("IBYe"),J=n("6eGT"),j=n("hW8S");n.d(U,"a",function(){return j.a}),U.c=b.b},"6eGT":function(je,U,n){"use strict";function b(y){return null}U.a=b},"815F":function(je,U,n){"use strict";n.d(U,"e",function(){return ne}),n.d(U,"c",function(){return u}),n.d(U,"d",function(){return V}),n.d(U,"a",function(){return Y}),n.d(U,"f",function(){return H}),n.d(U,"b",function(){return D});var b=n("KQm4"),y=n("VTBJ"),Q=n("Ff2n"),J=n("Zm9Q"),j=n("Kwbf"),o=n("OZM5");function ne(r,s){return r!=null?r:s}function L(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function x(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(p||[]).forEach(function(O){var h=O.key,B=O.children;Object(j.a)(h!=null,"Tree node must have a certain key: [".concat(g).concat(h,"]"));var m=String(h);Object(j.a)(!s.has(m)||h===null||h===void 0,"Same 'key' exist in the Tree: ".concat(m)),s.set(m,!0),x(B,"".concat(g).concat(m," > "))})}x(r)}function u(r){function s(x){var p=Object(J.a)(x);return p.map(function(g){if(!Object(o.i)(g))return Object(j.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var O=g.key,h=g.props,B=h.children,m=Object(Q.a)(h,["children"]),v=Object(y.a)({key:O},m),E=s(B);return E.length&&(v.children=E),v}).filter(function(g){return g})}return s(r)}function V(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=new Set(s===!0?[]:s),p=[];function g(O){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return O.map(function(B,m){var v=Object(o.h)(h?h.pos:"0",m),E=ne(B.key,v),a=Object(y.a)(Object(y.a)({},B),{},{parent:h,pos:v,children:null,data:B,isStart:[].concat(Object(b.a)(h?h.isStart:[]),[m===0]),isEnd:[].concat(Object(b.a)(h?h.isEnd:[]),[m===O.length-1])});return p.push(a),s===!0||x.has(E)?a.children=g(B.children||[],a):a.children=[],a})}return g(r),p}function A(r,s,x){var p;x?typeof x=="string"?p=function(h){return h[x]}:typeof x=="function"&&(p=function(h){return x(h)}):p=function(h,B){return ne(h.key,B)};function g(O,h,B){var m=O?O.children:r,v=O?Object(o.h)(B.pos,h):"0";if(O){var E=p(O,v),a={node:O,index:h,pos:v,key:E,parentPos:B.node?B.pos:null,level:B.level+1};s(a)}m&&m.forEach(function(t,e){g(t,e,{node:O,pos:v,level:B?B.level+1:-1})})}g(null)}function Y(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=s.initWrapper,p=s.processEntity,g=s.onProcessFinished,O=arguments.length>2?arguments[2]:void 0,h={},B={},m={posEntities:h,keyEntities:B};return x&&(m=x(m)||m),A(r,function(v){var E=v.node,a=v.index,t=v.pos,e=v.key,i=v.parentPos,c=v.level,d={node:E,index:a,key:e,pos:t,level:c},N=ne(e,t);h[t]=d,B[N]=d,d.parent=h[i],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),p&&p(d,m)},O),g&&g(m),m}function H(r,s){var x=s.expandedKeys,p=s.selectedKeys,g=s.loadedKeys,O=s.loadingKeys,h=s.checkedKeys,B=s.halfCheckedKeys,m=s.dragOverNodeKey,v=s.dropPosition,E=s.keyEntities,a=E[r],t={eventKey:r,expanded:x.indexOf(r)!==-1,selected:p.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:O.indexOf(r)!==-1,checked:h.indexOf(r)!==-1,halfChecked:B.indexOf(r)!==-1,pos:String(a?a.pos:""),dragOver:m===r&&v===0,dragOverGapTop:m===r&&v===-1,dragOverGapBottom:m===r&&v===1};return t}function D(r){var s=r.data,x=r.expanded,p=r.selected,g=r.checked,O=r.loaded,h=r.loading,B=r.halfChecked,m=r.dragOver,v=r.dragOverGapTop,E=r.dragOverGapBottom,a=r.pos,t=r.active,e=Object(y.a)(Object(y.a)({},s),{},{expanded:x,selected:p,checked:g,loaded:O,loading:h,halfChecked:B,dragOver:m,dragOverGapTop:v,dragOverGapBottom:E,pos:a,active:t});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(j.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),e}},IBYe:function(je,U,n){"use strict";function b(y){return null}U.a=b},LdHM:function(je,U,n){"use strict";n.d(U,"b",function(){return O}),n.d(U,"a",function(){return B});var b=n("1OyB"),y=n("vuIU"),Q=n("Ji7U"),J=n("LK+K"),j=n("q1tI"),o=n("rePB"),ne=n("Ff2n"),L=n("ODXe"),u=n("4IlW"),V=n("bX4T"),A=n("YrtM"),Y=n("TSYQ"),H=n.n(Y),D=n("+nKL"),r=n("8OUc"),s=function(_,ee){var ae=_.prefixCls,le=_.id,oe=_.flattenOptions,te=_.childrenAsData,C=_.values,X=_.searchValue,ve=_.multiple,pe=_.defaultActiveFirstOption,he=_.height,se=_.itemHeight,De=_.notFoundContent,Le=_.open,de=_.menuItemSelectedIcon,Ce=_.virtual,Be=_.onSelect,Ue=_.onToggleOpen,ke=_.onActiveValue,Ye=_.onScroll,Ae=_.onMouseEnter,me="".concat(ae,"-item"),be=Object(A.a)(function(){return oe},[Le,oe],function(w,S){return S[0]&&w[1]!==S[1]}),Qe=j.useRef(null),et=function(S){S.preventDefault()},tt=function(S){Qe.current&&Qe.current.scrollTo({index:S})},st=function(S){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,M=be.length,G=0;G1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Z).map(function(ee,ae){if(!j.isValidElement(ee)||!ee.type)return null;var le=ee.type.isSelectOptGroup,oe=ee.key,te=ee.props,C=te.children,X=Object(ne.a)(te,["children"]);return _||!le?E(ee):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(oe===null?ae:oe,"__"),label:oe},X),{},{options:a(C)})}).filter(function(ee){return ee})}var t=n("2Qr1"),e=n("qNPg"),i=n("U8pU"),c=n("Kwbf"),d=n("WKfj");function N(Z){var _=Z.mode,ee=Z.options,ae=Z.children,le=Z.backfill,oe=Z.allowClear,te=Z.placeholder,C=Z.getInputElement,X=Z.showSearch,ve=Z.onSearch,pe=Z.defaultOpen,he=Z.autoFocus,se=Z.labelInValue,De=Z.value,Le=Z.inputValue,de=Z.optionLabelProp,Ce=_==="multiple"||_==="tags",Be=X!==void 0?X:Ce||_==="combobox",Ue=ee||a(ae);if(Object(c.a)(_!=="tags"||Ue.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_==="tags"||_==="combobox"){var ke=Ue.some(function(me){return me.options?me.options.some(function(be){return typeof("value"in be?be.value:be.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(_!=="combobox"||!de,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(_==="combobox"||!le,"`backfill` only works with `combobox` mode."),Object(c.a)(_==="combobox"||!C,"`getInputElement` only work with `combobox` mode."),Object(c.b)(_!=="combobox"||!C||!oe||!te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ve&&!Be&&_!=="combobox"&&_!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!pe||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),De!=null){var Ye=Object(d.d)(De);Object(c.a)(!se||Ye.every(function(me){return Object(i.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!Ce||Array.isArray(De),"`value` should be array when `mode` is `multiple` or `tags`")}if(ae){var Ae=null;Object(v.a)(ae).some(function(me){if(!j.isValidElement(me)||!me.type)return!1;var be=me.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var Qe=Object(v.a)(me.props.children).every(function(et){return!j.isValidElement(et)||!me.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=be,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var f=N,K=Object(e.a)({prefixCls:"rc-select",components:{optionList:p},convertChildrenToData:a,flattenOptions:t.d,getLabeledValue:t.e,filterOptions:t.b,isValueDisabled:t.g,findValueOption:t.c,warningProps:f,fillOptionsWithMissingValue:t.a}),k=function(Z){Object(Q.a)(ee,Z);var _=Object(J.a)(ee);function ee(){var ae;return Object(b.a)(this,ee),ae=_.apply(this,arguments),ae.selectRef=j.createRef(),ae.focus=function(){ae.selectRef.current.focus()},ae.blur=function(){ae.selectRef.current.blur()},ae}return Object(y.a)(ee,[{key:"render",value:function(){return j.createElement(K,Object.assign({ref:this.selectRef},this.props))}}]),ee}(j.Component);k.Option=O,k.OptGroup=B;var F=k,ce=U.c=F},NvD2:function(je,U,n){"use strict";n.d(U,"a",function(){return o});var b=n("Kwbf");function y(ne,L){var u=new Set;return ne.forEach(function(V){L.has(V)||u.add(V)}),u}function Q(ne){var L=ne||{},u=L.disabled,V=L.disableCheckbox,A=L.checkable;return!!(u||V)||A===!1}function J(ne,L,u,V){for(var A=new Set(ne),Y=new Set,H=0;H<=u;H+=1){var D=L.get(H)||new Set;D.forEach(function(p){var g=p.key,O=p.node,h=p.children,B=h===void 0?[]:h;A.has(g)&&!V(O)&&B.filter(function(m){return!V(m.node)}).forEach(function(m){A.add(m.key)})})}for(var r=new Set,s=u;s>=0;s-=1){var x=L.get(s)||new Set;x.forEach(function(p){var g=p.parent,O=p.node;if(V(O)||!p.parent||r.has(p.parent.key))return;if(V(p.parent.node)){r.add(g.key);return}var h=!0,B=!1;(g.children||[]).filter(function(m){return!V(m.node)}).forEach(function(m){var v=m.key,E=A.has(v);h&&!E&&(h=!1),!B&&(E||Y.has(v))&&(B=!0)}),h&&A.add(g.key),B&&Y.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(y(Y,A))}}function j(ne,L,u,V,A){for(var Y=new Set(ne),H=new Set(L),D=0;D<=V;D+=1){var r=u.get(D)||new Set;r.forEach(function(g){var O=g.key,h=g.node,B=g.children,m=B===void 0?[]:B;!Y.has(O)&&!H.has(O)&&!A(h)&&m.filter(function(v){return!A(v.node)}).forEach(function(v){Y.delete(v.key)})})}H=new Set;for(var s=new Set,x=V;x>=0;x-=1){var p=u.get(x)||new Set;p.forEach(function(g){var O=g.parent,h=g.node;if(A(h)||!g.parent||s.has(g.parent.key))return;if(A(g.parent.node)){s.add(O.key);return}var B=!0,m=!1;(O.children||[]).filter(function(v){return!A(v.node)}).forEach(function(v){var E=v.key,a=Y.has(E);B&&!a&&(B=!1),!m&&(a||H.has(E))&&(m=!0)}),B||Y.delete(O.key),m&&H.add(O.key),s.add(O.key)})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(y(H,Y))}}function o(ne,L,u,V){var A=[],Y;V?Y=V:Y=Q;var H=new Set(ne.filter(function(x){var p=!!u[x];return p||A.push(x),p})),D=new Map,r=0;Object.keys(u).forEach(function(x){var p=u[x],g=p.level,O=D.get(g);O||(O=new Set,D.set(g,O)),O.add(p),r=Math.max(r,g)}),Object(b.a)(!A.length,"Tree missing follow keys: ".concat(A.slice(0,100).map(function(x){return"'".concat(x,"'")}).join(", ")));var s;return L===!0?s=J(H,D,r,Y):s=j(H,L.halfCheckedKeys,D,r,Y),s}},OZM5:function(je,U,n){"use strict";n.d(U,"b",function(){return V}),n.d(U,"a",function(){return A}),n.d(U,"k",function(){return Y}),n.d(U,"h",function(){return H}),n.d(U,"i",function(){return D}),n.d(U,"g",function(){return r}),n.d(U,"c",function(){return s}),n.d(U,"d",function(){return x}),n.d(U,"j",function(){return O}),n.d(U,"e",function(){return h}),n.d(U,"f",function(){return B});var b=n("KQm4"),y=n("U8pU"),Q=n("Ff2n"),J=n("q1tI"),j=n.n(J),o=n("Kwbf"),ne=n("WaYH"),L=.25,u=2;function V(m,v){var E=m.slice(),a=E.indexOf(v);return a>=0&&E.splice(a,1),E}function A(m,v){var E=m.slice();return E.indexOf(v)===-1&&E.push(v),E}function Y(m){return m.split("-")}function H(m,v){return"".concat(m,"-").concat(v)}function D(m){return m&&m.type&&m.type.isTreeNode}function r(m,v){var E=[m],a=v[m];function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var c=i.key,d=i.children;E.push(c),t(d)})}return t(a.children),E}function s(m,v){var E=m.clientY,a=v.selectHandle.getBoundingClientRect(),t=a.top,e=a.bottom,i=a.height,c=Math.max(i*L,u);return E<=t+c?-1:E>=e-c?1:0}function x(m,v){if(!m)return;var E=v.multiple;return E?m.slice():m.length?[m[0]]:m}var p=function(v){return v};function g(m,v){if(!m)return[];var E=v||{},a=E.processProps,t=a===void 0?p:a,e=Array.isArray(m)?m:[m];return e.map(function(i){var c=i.children,d=Object(Q.a)(i,["children"]),N=g(c,v);return j.a.createElement(ne.a,Object.assign({},t(d)),N)})}function O(m){if(!m)return null;var v;if(Array.isArray(m))v={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(y.a)(m)==="object")v={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function h(m,v){var E=new Set;function a(t){if(E.has(t))return;var e=v[t];if(!e)return;E.add(t);var i=e.parent,c=e.node;if(c.disabled)return;i&&a(i.key)}return(m||[]).forEach(function(t){a(t)}),Object(b.a)(E)}function B(m){var v={};return Object.keys(m).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(v[E]=m[E])}),v}},"SA+Z":function(je,U,n){var b=n("wTVA"),y=n("EbDI"),Q=n("ZhPi"),J=n("wkBT");function j(o){return b(o)||y(o)||Q(o)||J()}je.exports=j,je.exports.__esModule=!0,je.exports.default=je.exports},WaYH:function(je,U,n){"use strict";var b=n("rePB"),y=n("Ff2n"),Q=n("VTBJ"),J=n("1OyB"),j=n("vuIU"),o=n("JX7q"),ne=n("Ji7U"),L=n("LK+K"),u=n("q1tI"),V=n("TSYQ"),A=n.n(V),Y=n("sboe"),H=n("OZM5"),D=function(v){var E=v.prefixCls,a=v.level,t=v.isStart,e=v.isEnd;if(!a)return null;for(var i="".concat(E,"-indent-unit"),c=[],d=0;d"},r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index"},"\u5728\u7EBF\u7ADE\u8D5B")),r.a.createElement(J.a.Item,null,r.a.createElement(x.a,{to:"/competitions/index/".concat(e,"/enroll")},"\u62A5\u540D")),r.a.createElement(J.a.Item,null,"\u6218\u961F\u8BE6\u60C5")),r.a.createElement("p",null,"\u5B9E\u8DF5\u9879\u76EE"),r.a.createElement(y.a,{className:"teamsLayoutTable",columns:le,dataSource:N,bordered:!0,pagination:!1}),r.a.createElement("p",null,"\u6559\u5B66\u8BFE\u5802"),r.a.createElement(y.a,{className:"teamsLayoutTable",columns:oe,dataSource:F,bordered:!0,pagination:!1}))};U.default=Object(p.a)(function(O){var h=O.loading,B=O.globalSetting,m=O.user;return{globalSetting:B,loading:h.effects,user:m}})(g)},n6Qo:function(je,U,n){"use strict";n.d(U,"a",function(){return L});var b=n("q1tI"),y=n("biw7"),Q=n("fyJ8");function J(u){var V=u.className,A=u.index,Y=u.children,H=u.colSpan,D=u.rowSpan,r=b.useContext(y.a),s=r.prefixCls,x=r.fixedInfoList,p=x[A];return b.createElement(Q.a,Object.assign({className:V,index:A,component:"td",prefixCls:s,record:null,dataIndex:null,render:function(){return{children:Y,props:{colSpan:H,rowSpan:D}}}},p))}function j(u){return b.createElement("tr",Object.assign({},u))}function o(u){var V=u.children,A=b.useContext(y.a),Y=A.prefixCls;return b.createElement("tfoot",{className:"".concat(Y,"-summary")},V)}var ne=U.b=o,L={Cell:J,Row:j}},sR1s:function(je,U,n){"use strict";n.d(U,"b",function(){return J}),n.d(U,"a",function(){return j}),n.d(U,"c",function(){return o}),n.d(U,"d",function(){return ne});var b=n("U8pU"),y="RC_TABLE_KEY";function Q(L){return L==null?[]:Array.isArray(L)?L:[L]}function J(L,u){if(!u&&typeof u!="number")return L;for(var V=Q(u),A=L,Y=0;Y1)Object(V.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(O.length===0)return Object(V.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var h=O[0];if(o.isValidElement(h)&&Object(A.c)(h)){var B=h.ref;O[0]=o.cloneElement(h,{ref:Object(A.a)(B,this.setChildNode)})}return O.length===1?O[0]:O.map(function(m,v){return!o.isValidElement(m)||"key"in m&&m.key!==null?m:o.cloneElement(m,{key:"".concat(H,"-").concat(v)})})}}]),x}(o.Component);D.displayName="ResizeObserver",U.a=D},wCXF:function(je,U,n){"use strict";n.d(U,"a",function(){return tt});var b=n("rePB"),y=n("VTBJ"),Q=n("KQm4"),J=n("U8pU"),j=n("ODXe"),o=n("q1tI"),ne=n("TSYQ"),L=n.n(ne),u=n("Gytx"),V=n.n(u),A=n("Kwbf"),Y=n("t23M"),H=n("qx4F"),D=n("6eGT"),r=n("IBYe"),s=n("Ff2n"),x=n("c+Xe"),p=n("fyJ8"),g=n("biw7");function O(l,R,P,I,z){var w=P[l]||{},S=P[R]||{},T,M;w.fixed==="left"?T=I.left[l]:S.fixed==="right"&&(M=I.right[R]);var G=!1,W=!1,$=!1,re=!1,q=P[R+1],ue=P[l-1];if(z==="rtl"){if(T!==void 0){var Re=ue&&ue.fixed==="left";re=!Re}else if(M!==void 0){var ye=q&&q.fixed==="right";$=!ye}}else if(T!==void 0){var xe=q&&q.fixed==="left";G=!xe}else if(M!==void 0){var ie=ue&&ue.fixed==="right";W=!ie}return{fixLeft:T,fixRight:M,lastFixLeft:G,firstFixRight:W,lastFixRight:$,firstFixLeft:re,isSticky:I.isSticky}}var h=n("sR1s");function B(l){var R=l.cells,P=l.stickyOffsets,I=l.flattenColumns,z=l.rowComponent,w=l.cellComponent,S=l.onHeaderRow,T=l.index,M=o.useContext(g.a),G=M.prefixCls,W=M.direction,$;S&&($=S(R.map(function(q){return q.column}),T));var re=Object(h.a)(R.map(function(q){return q.column}));return o.createElement(z,Object.assign({},$),R.map(function(q,ue){var Re=q.column,ye=O(q.colStart,q.colEnd,I,P,W),xe;return Re&&Re.onHeaderCell&&(xe=q.column.onHeaderCell(Re)),o.createElement(p.a,Object.assign({},q,{ellipsis:Re.ellipsis,align:Re.align,component:w,prefixCls:G,key:re[ue]},ye,{additionalProps:xe,rowType:"header"}))}))}B.displayName="HeaderRow";var m=B;function v(l){var R=[];function P(S,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;R[M]=R[M]||[];var G=T,W=S.filter(Boolean).map(function($){var re={key:$.key,className:$.className||"",children:$.title,column:$,colStart:G},q=1,ue=$.children;return ue&&ue.length>0&&(q=P(ue,G,M+1).reduce(function(Re,ye){return Re+ye},0),re.hasSubColumns=!0),"colSpan"in $&&(q=$.colSpan),"rowSpan"in $&&(re.rowSpan=$.rowSpan),re.colSpan=q,re.colEnd=re.colStart+q-1,R[M].push(re),G+=q,q});return W}P(l,0);for(var I=R.length,z=function(T){R[T].forEach(function(M){!("rowSpan"in M)&&!M.hasSubColumns&&(M.rowSpan=I-T)})},w=0;w=0;T-=1){var M=R[T],G=P&&P[T],W=G&&G[t.a];(M||W||S)&&(z.unshift(o.createElement("col",Object.assign({key:T,style:{width:M,minWidth:M}},W))),S=!0)}return o.createElement("colgroup",null,z)}var i=e;function c(l,R){return Object(o.useMemo)(function(){for(var P=[],I=0;I1?Fe-1:0),dt=1;dt=$&&(Ne=$-re),S({scrollLeft:Ne/$*(W+2)}),ie.current.x=fe.pageX},We=function(){var fe=Object(Ye.b)(w.current).top,we=fe+w.current.offsetHeight,He=document.documentElement.scrollTop+window.innerHeight;we-Object(H.a)()<=He||fe>=He-T?xe(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!0})}):xe(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!1})})},Se=function(fe){xe(function(we){return Object(y.a)(Object(y.a)({},we),{},{scrollLeft:fe/W*$||0})})};return o.useImperativeHandle(P,function(){return{setScrollLeft:Se}}),o.useEffect(function(){var Pe=Object(ke.a)(document.body,"mouseup",$e,!1),fe=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){Pe.remove(),fe.remove()}},[re,Te]),o.useEffect(function(){var Pe=Object(ke.a)(window,"scroll",We,!1),fe=Object(ke.a)(window,"resize",We,!1);return function(){Pe.remove(),fe.remove()}},[]),o.useEffect(function(){ye.isHiddenScrollBar||xe(function(Pe){var fe,we;return Object(y.a)(Object(y.a)({},Pe),{},{scrollLeft:w.current.scrollLeft/((fe=w.current)===null||fe===void 0?void 0:fe.scrollWidth)*((we=w.current)===null||we===void 0?void 0:we.clientWidth)})})},[ye.isHiddenScrollBar]),W<=$||!re||ye.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(H.a)(),width:$,bottom:T},className:"".concat(G,"-sticky-scroll")},o.createElement("div",{onMouseDown:Oe,ref:q,className:L()("".concat(G,"-sticky-scroll-bar"),Object(b.a)({},"".concat(G,"-sticky-scroll-bar-active"),Te)),style:{width:"".concat(re,"px"),transform:"translate3d(".concat(ye.scrollLeft,"px, 0, 0)")}}))},me=o.forwardRef(Ae);function be(l,R){return o.useMemo(function(){var P=!!l;return{isSticky:P,stickyClassName:P?"".concat(R,"-sticky-header"):"",offsetHeader:Object(J.a)(l)==="object"&&l.offsetHeader||0,offsetScroll:Object(J.a)(l)==="object"&&l.offsetScroll||0}},[l,R])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(l){var R=l.children;return R},function(l,R){return V()(l.props,R.props)?l.pingLeft!==R.pingLeft||l.pingRight!==R.pingRight:!1});function Ve(l){var R,P=l.prefixCls,I=l.className,z=l.rowClassName,w=l.style,S=l.data,T=l.rowKey,M=l.scroll,G=l.tableLayout,W=l.direction,$=l.title,re=l.footer,q=l.summary,ue=l.id,Re=l.showHeader,ye=l.components,xe=l.emptyText,ie=l.onRow,Xe=l.onHeaderRow,_e=l.internalHooks,Te=l.transformColumns,Ie=l.internalRefs,$e=l.sticky,Oe=S||Qe,Ge=!!Oe.length,We=o.useState(0),Se=Object(j.a)(We,2),Pe=Se[0],fe=Se[1];o.useEffect(function(){fe(Object(H.a)())});var we=o.useMemo(function(){return Object(h.c)(ye,{})},[ye]),He=o.useCallback(function(Ee,ge){return Object(h.b)(we,Ee)||ge},[we]),Je=o.useMemo(function(){return typeof T=="function"?T:function(Ee){var ge=Ee&&Ee[T];return ge}},[T]),Ne=Object(t.c)(l),jt=Ne.expandIcon,Rt=Ne.expandedRowKeys,Pt=Ne.defaultExpandedRowKeys,rt=Ne.defaultExpandAllRows,it=Ne.expandedRowRender,ft=Ne.onExpand,mt=Ne.onExpandedRowsChange,Nt=Ne.expandRowByClick,nt=Ne.rowExpandable,Et=Ne.expandIconColumnIndex,pt=Ne.expandedRowClassName,Kt=Ne.childrenColumnName,Tt=Ne.indentSize,ht=jt||Be,gt=Kt||"children",Dt=o.useMemo(function(){return it?"row":l.expandable&&_e===tt&&l.expandable.__PARENT_RENDER_ICON__||Oe.some(function(Ee){return Ee&&Object(J.a)(Ee)==="object"&&Ee[gt]})?"nest":!1},[!!it,Oe]),_t=o.useState(function(){return Pt||(rt?Ue(Oe,Je,gt):[])}),ze=Object(j.a)(_t,2),Ze=ze[0],at=ze[1],Fe=o.useMemo(function(){return new Set(Rt||Ze||[])},[Rt,Ze]),ct=o.useCallback(function(Ee){var ge=Je(Ee,Oe.indexOf(Ee)),Ke,qe=Fe.has(ge);qe?(Fe.delete(ge),Ke=Object(Q.a)(Fe)):Ke=[].concat(Object(Q.a)(Fe),[ge]),at(Ke),ft&&ft(!qe,Ee),mt&&mt(Ke)},[Je,Fe,Oe,ft,mt]),dt=o.useState(0),St=Object(j.a)(dt,2),yt=St[0],Mt=St[1],vn=Object(C.b)(Object(y.a)(Object(y.a)(Object(y.a)({},l),Ne),{},{expandable:!!it,expandedKeys:Fe,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:W}),_e===tt?Te:null),Yt=Object(j.a)(vn,2),kt=Yt[0],Me=Yt[1],Lt=o.useMemo(function(){return{columns:kt,flattenColumns:Me}},[kt,Me]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(j.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(j.a)(gn,2),tn=en[0],yn=en[1],Cn=pe(new Map),nn=Object(j.a)(Cn,2),On=nn[0],xn=nn[1],jn=Object(h.a)(Me),an=jn.map(function(Ee){return On.get(Ee)}),on=o.useMemo(function(){return an},[an.join("_")]),At=De(on,Me.length,W),ot=M&&Object(h.d)(M.y),lt=M&&Object(h.d)(M.x),Ct=lt&&Me.some(function(Ee){var ge=Ee.fixed;return ge}),rn=o.useRef(),wt=be($e,P),Ot=wt.isSticky,Rn=wt.offsetHeader,Pn=wt.offsetScroll,Nn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:M.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:M.x===!0?"auto":M.x,minWidth:"100%"});var ln=o.useCallback(function(Ee,ge){xn(function(Ke){var qe=new Map(Ke);return qe.set(Ee,ge),qe})},[]),Tn=he(null),sn=Object(j.a)(Tn,2),Dn=sn[0],cn=sn[1];function Ht(Ee,ge){if(!ge)return;typeof ge=="function"?ge(Ee):ge.scrollLeft!==Ee&&(ge.scrollLeft=Ee)}var vt=function(ge){var Ke=ge.currentTarget,qe=ge.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Dn(hn),Ht(xt,Qt.current),Ht(xt,ut.current),Ht(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),yn(xt0?[].concat(Object(y.a)(s),Object(y.a)(A(O).map(function(h){return Object(Q.a)({fixed:g},h)}))):[].concat(Object(y.a)(s),[Object(Q.a)(Object(Q.a)({},x),{},{fixed:g})])},[])}function Y(r){for(var s=!0,x=0;x=0;O-=1){var h=r[O];if(g&&h.fixed!=="right")g=!1;else if(!g&&h.fixed==="right"){Object(ne.a)(!1,"Index ".concat(O+1," of `columns` missing `fixed='right'` prop."));break}}}function H(r){return r.map(function(s){var x=s.fixed,p=Object(J.a)(s,["fixed"]),g=x;return x==="left"?g="right":x==="right"&&(g="left"),Object(Q.a)({fixed:g},p)})}function D(r,s){var x=r.prefixCls,p=r.columns,g=r.children,O=r.expandable,h=r.expandedKeys,B=r.getRowKey,m=r.onTriggerExpand,v=r.expandIcon,E=r.rowExpandable,a=r.expandIconColumnIndex,t=r.direction,e=r.expandRowByClick,i=j.useMemo(function(){return p||V(g)},[p,g]),c=j.useMemo(function(){if(O){var f,K=a||0,k=i[K],F=(f={},Object(b.a)(f,u.a,{className:"".concat(x,"-expand-icon-col")}),Object(b.a)(f,"title",""),Object(b.a)(f,"fixed",k?k.fixed:null),Object(b.a)(f,"className","".concat(x,"-row-expand-icon-cell")),Object(b.a)(f,"render",function(_,ee,ae){var le=B(ee,ae),oe=h.has(le),te=E?E(ee):!0,C=v({prefixCls:x,expanded:oe,expandable:te,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},C):C}),f),ce=i.slice();return K>=0&&ce.splice(K,0,F),ce}return i},[O,i,B,h,v,t]),d=j.useMemo(function(){var f=c;return s&&(f=s(f)),f.length||(f=[{render:function(){return null}}]),f},[s,c,t]),N=j.useMemo(function(){return t==="rtl"?H(A(d)):A(d)},[d,t]);return[d,N]}U.b=D},"y0+3":function(je,U,n){"use strict";n.d(U,"a",function(){return A}),n.d(U,"b",function(){return H});var b=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},Q={cssFloat:1,styleFloat:1,float:1};function J(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function j(D,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return D.offsetHeight;if(r==="width")return D.offsetWidth}return r in y||(y[r]=b.test(r)),y[r]?parseFloat(s)||0:s}function o(D,r){var s=arguments.length,x=J(D);return r=Q[r]?"cssFloat"in D.style?"cssFloat":"styleFloat":r,s===1?x:j(D,r,x[r]||D.style[r])}function ne(D,r,s){var x=arguments.length;if(r=Q[r]?"cssFloat"in D.style?"cssFloat":"styleFloat":r,x===3)return typeof s=="number"&&b.test(r)&&(s="".concat(s,"px")),D.style[r]=s,s;for(var p in r)r.hasOwnProperty(p)&&ne(D,p,r[p]);return J(D)}function L(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function u(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function V(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:r}}function A(){var D=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:r}}function Y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function H(D){var r=D.getBoundingClientRect(),s=document.documentElement;return{left:r.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Lists__CourseList.f60a0322.async.js b/p__Engineering__Lists__CourseList.f60a0322.async.js index 95c5575a36..be081b04df 100644 --- a/p__Engineering__Lists__CourseList.f60a0322.async.js +++ b/p__Engineering__Lists__CourseList.f60a0322.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[146,6,8,14],{"/g4j":function(Je,re,n){Je.exports={flex_box_center:"flex_box_center___1vSD-",flex_space_between:"flex_space_between___1CYBY",flex_box_vertical_center:"flex_box_vertical_center___1ksWI",flex_box_center_end:"flex_box_center_end___2rg95",flex_box_column:"flex_box_column___3_2gH",wrap:"wrap___U0vsC",title:"title___1LrA4",control:"control___2cRmR",label:"label___2jAXg",tagWrap:"tagWrap___3nB3k",tag:"tag___2tnBb",button:"button___Ii848",customTable:"customTable___M6we4",form:"form___OReeI",customModal:"customModal___4nYQc"}},"6+eU":function(Je,re,n){"use strict";n.d(re,"a",function(){return W});var I=n("wx14"),S=n("rePB"),xe=n("VTBJ"),N=n("1OyB"),i=n("vuIU"),u=n("Ji7U"),de=n("LK+K"),ee=n("q1tI"),U=n.n(ee),F=n("TSYQ"),Q=n.n(F),ce=function(q){var O,y="".concat(q.rootPrefixCls,"-item"),b=Q()(y,"".concat(y,"-").concat(q.page),(O={},Object(S.a)(O,"".concat(y,"-active"),q.active),Object(S.a)(O,q.className,!!q.className),Object(S.a)(O,"".concat(y,"-disabled"),!q.page),O)),D=function(){q.onClick(q.page)},k=function(Ce){q.onKeyPress(Ce,q.onClick,q.page)};return U.a.createElement("li",{title:q.showTitle?q.page:null,className:b,onClick:D,onKeyPress:k,tabIndex:"0"},q.itemRender(q.page,"page",U.a.createElement("a",{rel:"nofollow"},q.page)))},ye=ce,te={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},P=function(V){Object(u.a)(O,V);var q=Object(de.a)(O);function O(){var y;Object(N.a)(this,O);for(var b=arguments.length,D=new Array(b),k=0;k=0||M.relatedTarget.className.indexOf("".concat(K,"-next"))>=0))return;y.setState({goInputText:""}),A(y.getValidValue())},y.go=function(M){var Ce=y.state.goInputText;if(Ce==="")return;(M.keyCode===te.ENTER||M.type==="click")&&(y.setState({goInputText:""}),y.props.quickGo(y.getValidValue()))},y}return Object(i.a)(O,[{key:"getValidValue",value:function(){var b=this.state,D=b.goInputText,k=b.current;return!D||isNaN(D)?k:Number(D)}},{key:"getPageSizeOptions",value:function(){var b=this.props,D=b.pageSize,k=b.pageSizeOptions;return k.some(function(M){return M.toString()===D.toString()})?k:k.concat([D.toString()]).sort(function(M,Ce){var X=isNaN(Number(M))?0:Number(M),A=isNaN(Number(Ce))?0:Number(Ce);return X-A})}},{key:"render",value:function(){var b=this,D=this.props,k=D.pageSize,M=D.locale,Ce=D.rootPrefixCls,X=D.changeSize,A=D.quickGo,K=D.goButton,v=D.selectComponentClass,s=D.buildOptionText,f=D.selectPrefixCls,c=D.disabled,m=this.state.goInputText,j="".concat(Ce,"-options"),Z=v,ve=null,Y=null,ne=null;if(!X&&!A)return null;var se=this.getPageSizeOptions();if(X&&Z){var ae=se.map(function(H,$){return U.a.createElement(Z.Option,{key:$,value:H.toString()},(s||b.buildOptionText)(H))});ve=U.a.createElement(Z,{disabled:c,prefixCls:f,showSearch:!1,className:"".concat(j,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(k||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function($){return $.parentNode}},ae)}return A&&(K&&(ne=typeof K=="boolean"?U.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:c,className:"".concat(j,"-quick-jumper-button")},M.jump_to_confirm):U.a.createElement("span",{onClick:this.go,onKeyUp:this.go},K)),Y=U.a.createElement("div",{className:"".concat(j,"-quick-jumper")},M.jump_to,U.a.createElement("input",{disabled:c,type:"text",value:m,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),M.page,ne)),U.a.createElement("li",{className:"".concat(j)},ve,Y)}}]),O}(U.a.Component);P.defaultProps={pageSizeOptions:["10","20","50","100"]};var R=P,le=n("N2Kk");function J(){}function ue(V){return typeof V=="number"&&isFinite(V)&&Math.floor(V)===V}function fe(V,q,O){return O}function ie(V,q,O){var y=typeof V=="undefined"?q.pageSize:V;return Math.floor((O.total-1)/y)+1}var Ee=function(V){Object(u.a)(O,V);var q=Object(de.a)(O);function O(y){var b;Object(N.a)(this,O),b=q.call(this,y),b.getJumpPrevPage=function(){return Math.max(1,b.state.current-(b.props.showLessItems?3:5))},b.getJumpNextPage=function(){return Math.min(ie(void 0,b.state,b.props),b.state.current+(b.props.showLessItems?3:5))},b.getItemIcon=function(X,A){var K=b.props.prefixCls,v=X||U.a.createElement("button",{type:"button","aria-label":A,className:"".concat(K,"-item-link")});return typeof X=="function"&&(v=U.a.createElement(X,Object(xe.a)({},b.props))),v},b.savePaginationNode=function(X){b.paginationNode=X},b.isValid=function(X){return ue(X)&&X!==b.state.current},b.shouldDisplayQuickJumper=function(){var X=b.props,A=X.showQuickJumper,K=X.pageSize,v=X.total;return v<=K?!1:A},b.handleKeyDown=function(X){(X.keyCode===te.ARROW_UP||X.keyCode===te.ARROW_DOWN)&&X.preventDefault()},b.handleKeyUp=function(X){var A=b.getValidValue(X),K=b.state.currentInputValue;A!==K&&b.setState({currentInputValue:A}),X.keyCode===te.ENTER?b.handleChange(A):X.keyCode===te.ARROW_UP?b.handleChange(A-1):X.keyCode===te.ARROW_DOWN&&b.handleChange(A+1)},b.changePageSize=function(X){var A=b.state.current,K=ie(X,b.state,b.props);A=A>K?K:A,K===0&&(A=b.state.current),typeof X=="number"&&("pageSize"in b.props||b.setState({pageSize:X}),"current"in b.props||b.setState({current:A,currentInputValue:A})),b.props.onShowSizeChange(A,X),"onChange"in b.props&&b.props.onChange&&b.props.onChange(A,X)},b.handleChange=function(X){var A=b.props.disabled,K=X;if(b.isValid(K)&&!A){var v=ie(void 0,b.state,b.props);K>v?K=v:K<1&&(K=1),"current"in b.props||b.setState({current:K,currentInputValue:K});var s=b.state.pageSize;return b.props.onChange(K,s),K}return b.state.current},b.prev=function(){b.hasPrev()&&b.handleChange(b.state.current-1)},b.next=function(){b.hasNext()&&b.handleChange(b.state.current+1)},b.jumpPrev=function(){b.handleChange(b.getJumpPrevPage())},b.jumpNext=function(){b.handleChange(b.getJumpNextPage())},b.hasPrev=function(){return b.state.current>1},b.hasNext=function(){return b.state.current2?K-2:0),s=2;s=k?Ce=k:Ce=Number(D),Ce}},{key:"getShowSizeChanger",value:function(){var b=this.props,D=b.showSizeChanger,k=b.total,M=b.totalBoundaryShowSizeChanger;return typeof D!="undefined"?D:k>M}},{key:"renderPrev",value:function(b){var D=this.props,k=D.prevIcon,M=D.itemRender,Ce=M(b,"prev",this.getItemIcon(k,"prev page")),X=!this.hasPrev();return Object(ee.isValidElement)(Ce)?Object(ee.cloneElement)(Ce,{disabled:X}):Ce}},{key:"renderNext",value:function(b){var D=this.props,k=D.nextIcon,M=D.itemRender,Ce=M(b,"next",this.getItemIcon(k,"next page")),X=!this.hasNext();return Object(ee.isValidElement)(Ce)?Object(ee.cloneElement)(Ce,{disabled:X}):Ce}},{key:"render",value:function(){var b=this,D=this.props,k=D.prefixCls,M=D.className,Ce=D.style,X=D.disabled,A=D.hideOnSinglePage,K=D.total,v=D.locale,s=D.showQuickJumper,f=D.showLessItems,c=D.showTitle,m=D.showTotal,j=D.simple,Z=D.itemRender,ve=D.showPrevNextJumpers,Y=D.jumpPrevIcon,ne=D.jumpNextIcon,se=D.selectComponentClass,ae=D.selectPrefixCls,H=D.pageSizeOptions,$=this.state,a=$.current,g=$.pageSize,r=$.currentInputValue;if(A===!0&&K<=g)return null;var w=ie(void 0,this.state,this.props),G=[],oe=null,z=null,we=null,ze=null,We=null,Le=s&&s.goButton,Ie=f?1:2,Qe=a-1>0?a-1:0,jt=a+1=Ie*2&&a!==1+2&&(G[0]=Object(ee.cloneElement)(G[0],{className:"".concat(k,"-item-after-jump-prev")}),G.unshift(oe)),w-a>=Ie*2&&a!==w-2&&(G[G.length-1]=Object(ee.cloneElement)(G[G.length-1],{className:"".concat(k,"-item-before-jump-next")}),G.push(z)),be!==1&&G.unshift(we),Me!==w&&G.push(ze)}var je=null;m&&(je=U.a.createElement("li",{className:"".concat(k,"-total-text")},m(K,[K===0?0:(a-1)*g+1,a*g>K?K:a*g])));var ge=!this.hasPrev()||!w,Oe=!this.hasNext()||!w;return U.a.createElement("ul",Object(I.a)({className:Q()(k,M,Object(S.a)({},"".concat(k,"-disabled"),X)),style:Ce,unselectable:"unselectable",ref:this.savePaginationNode},It),je,U.a.createElement("li",{title:c?v.prev_page:null,onClick:this.prev,tabIndex:ge?null:0,onKeyPress:this.runIfEnterPrev,className:Q()("".concat(k,"-prev"),Object(S.a)({},"".concat(k,"-disabled"),ge)),"aria-disabled":ge},this.renderPrev(Qe)),G,U.a.createElement("li",{title:c?v.next_page:null,onClick:this.next,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterNext,className:Q()("".concat(k,"-next"),Object(S.a)({},"".concat(k,"-disabled"),Oe)),"aria-disabled":Oe},this.renderNext(jt)),U.a.createElement(R,{disabled:X,locale:v,rootPrefixCls:k,selectComponentClass:se,selectPrefixCls:ae,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:a,pageSize:g,pageSizeOptions:H,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Le}))}}],[{key:"getDerivedStateFromProps",value:function(b,D){var k={};if("current"in b&&(k.current=b.current,b.current!==D.current&&(k.currentInputValue=k.current)),"pageSize"in b&&b.pageSize!==D.pageSize){var M=D.current,Ce=ie(b.pageSize,D,b);M=M>Ce?Ce:M,"current"in b||(k.current=M,k.currentInputValue=M),k.pageSize=b.pageSize}return k}}]),O}(U.a.Component);Ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:J,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:J,locale:le.a,style:{},itemRender:fe,totalBoundaryShowSizeChanger:50};var W=Ee},"6RRn":function(Je,re,n){"use strict";var I=n("wCXF"),S=n("n6Qo");n.d(re,"b",function(){return S.a});var xe=n("IBYe"),N=n("6eGT"),i=n("hW8S");n.d(re,"a",function(){return i.a}),re.c=I.b},"6eGT":function(Je,re,n){"use strict";function I(S){return null}re.a=I},"815F":function(Je,re,n){"use strict";n.d(re,"e",function(){return de}),n.d(re,"c",function(){return U}),n.d(re,"d",function(){return F}),n.d(re,"a",function(){return ce}),n.d(re,"f",function(){return ye}),n.d(re,"b",function(){return te});var I=n("KQm4"),S=n("VTBJ"),xe=n("Ff2n"),N=n("Zm9Q"),i=n("Kwbf"),u=n("OZM5");function de(P,R){return P!=null?P:R}function ee(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=new Map;function le(J){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(J||[]).forEach(function(fe){var ie=fe.key,Ee=fe.children;Object(i.a)(ie!=null,"Tree node must have a certain key: [".concat(ue).concat(ie,"]"));var W=String(ie);Object(i.a)(!R.has(W)||ie===null||ie===void 0,"Same 'key' exist in the Tree: ".concat(W)),R.set(W,!0),le(Ee,"".concat(ue).concat(W," > "))})}le(P)}function U(P){function R(le){var J=Object(N.a)(le);return J.map(function(ue){if(!Object(u.i)(ue))return Object(i.a)(!ue,"Tree/TreeNode can only accept TreeNode as children."),null;var fe=ue.key,ie=ue.props,Ee=ie.children,W=Object(xe.a)(ie,["children"]),V=Object(S.a)({key:fe},W),q=R(Ee);return q.length&&(V.children=q),V}).filter(function(ue){return ue})}return R(P)}function F(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],le=new Set(R===!0?[]:R),J=[];function ue(fe){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return fe.map(function(Ee,W){var V=Object(u.h)(ie?ie.pos:"0",W),q=de(Ee.key,V),O=Object(S.a)(Object(S.a)({},Ee),{},{parent:ie,pos:V,children:null,data:Ee,isStart:[].concat(Object(I.a)(ie?ie.isStart:[]),[W===0]),isEnd:[].concat(Object(I.a)(ie?ie.isEnd:[]),[W===fe.length-1])});return J.push(O),R===!0||le.has(q)?O.children=ue(Ee.children||[],O):O.children=[],O})}return ue(P),J}function Q(P,R,le){var J;le?typeof le=="string"?J=function(ie){return ie[le]}:typeof le=="function"&&(J=function(ie){return le(ie)}):J=function(ie,Ee){return de(ie.key,Ee)};function ue(fe,ie,Ee){var W=fe?fe.children:P,V=fe?Object(u.h)(Ee.pos,ie):"0";if(fe){var q=J(fe,V),O={node:fe,index:ie,pos:V,key:q,parentPos:Ee.node?Ee.pos:null,level:Ee.level+1};R(O)}W&&W.forEach(function(y,b){ue(y,b,{node:fe,pos:V,level:Ee?Ee.level+1:-1})})}ue(null)}function ce(P){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},le=R.initWrapper,J=R.processEntity,ue=R.onProcessFinished,fe=arguments.length>2?arguments[2]:void 0,ie={},Ee={},W={posEntities:ie,keyEntities:Ee};return le&&(W=le(W)||W),Q(P,function(V){var q=V.node,O=V.index,y=V.pos,b=V.key,D=V.parentPos,k=V.level,M={node:q,index:O,key:b,pos:y,level:k},Ce=de(b,y);ie[y]=M,Ee[Ce]=M,M.parent=ie[D],M.parent&&(M.parent.children=M.parent.children||[],M.parent.children.push(M)),J&&J(M,W)},fe),ue&&ue(W),W}function ye(P,R){var le=R.expandedKeys,J=R.selectedKeys,ue=R.loadedKeys,fe=R.loadingKeys,ie=R.checkedKeys,Ee=R.halfCheckedKeys,W=R.dragOverNodeKey,V=R.dropPosition,q=R.keyEntities,O=q[P],y={eventKey:P,expanded:le.indexOf(P)!==-1,selected:J.indexOf(P)!==-1,loaded:ue.indexOf(P)!==-1,loading:fe.indexOf(P)!==-1,checked:ie.indexOf(P)!==-1,halfChecked:Ee.indexOf(P)!==-1,pos:String(O?O.pos:""),dragOver:W===P&&V===0,dragOverGapTop:W===P&&V===-1,dragOverGapBottom:W===P&&V===1};return y}function te(P){var R=P.data,le=P.expanded,J=P.selected,ue=P.checked,fe=P.loaded,ie=P.loading,Ee=P.halfChecked,W=P.dragOver,V=P.dragOverGapTop,q=P.dragOverGapBottom,O=P.pos,y=P.active,b=Object(S.a)(Object(S.a)({},R),{},{expanded:le,selected:J,checked:ue,loaded:fe,loading:ie,halfChecked:Ee,dragOver:W,dragOverGapTop:V,dragOverGapBottom:q,pos:O,active:y});return"props"in b||Object.defineProperty(b,"props",{get:function(){return Object(i.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),P}}),b}},GfqC:function(Je,re,n){"use strict";var I=n("q1tI"),S=n.n(I),xe=n("TSYQ"),N=n.n(xe);function i(v,s){var f="cannot "+v.method+" "+v.action+" "+s.status+"'",c=new Error(f);return c.status=s.status,c.method=v.method,c.url=v.action,c}function u(v){var s=v.responseText||v.response;if(!s)return s;try{return JSON.parse(s)}catch(f){return s}}function de(v){var s=new XMLHttpRequest;v.onProgress&&s.upload&&(s.upload.onprogress=function(j){j.total>0&&(j.percent=j.loaded/j.total*100),v.onProgress(j)});var f=new FormData;v.data&&Object.keys(v.data).forEach(function(m){var j=v.data[m];if(Array.isArray(j)){j.forEach(function(Z){f.append(m+"[]",Z)});return}f.append(m,v.data[m])}),v.file instanceof Blob?f.append(v.filename,v.file,v.file.name):f.append(v.filename,v.file),s.onerror=function(j){v.onError(j)},s.onload=function(){return s.status<200||s.status>=300?v.onError(i(v,s),u(s)):v.onSuccess(u(s),s)},s.open(v.method,v.action,!0),v.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var c=v.headers||{};return c["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(c).forEach(function(m){c[m]!==null&&s.setRequestHeader(m,c[m])}),s.send(f),{abort:function(){s.abort()}}}var ee=+new Date,U=0;function F(){return"rc-upload-"+ee+"-"+ ++U}function Q(v,s){return v.indexOf(s,v.length-s.length)!==-1}var ce=function(v,s){if(v&&s){var f=Array.isArray(s)?s:s.split(","),c=v.name||"",m=v.type||"",j=m.replace(/\/.*$/,"");return f.some(function(Z){var ve=Z.trim();return ve.charAt(0)==="."?Q(c.toLowerCase(),ve.toLowerCase()):/\/\*$/.test(ve)?j===ve.replace(/\/.*$/,""):m===ve})}return!0};function ye(v,s){var f=v.createReader(),c=[];function m(){f.readEntries(function(j){var Z=Array.prototype.slice.apply(j);c=c.concat(Z);var ve=!Z.length;ve?s(c):m()})}m()}var te=function(s,f,c){var m=function j(Z,ve){ve=ve||"",Z.isFile?Z.file(function(Y){c(Y)&&(Z.fullPath&&!Y.webkitRelativePath&&(Object.defineProperties(Y,{webkitRelativePath:{writable:!0}}),Y.webkitRelativePath=Z.fullPath.replace(/^\//,""),Object.defineProperties(Y,{webkitRelativePath:{writable:!1}})),f([Y]))}):Z.isDirectory&&ye(Z,function(Y){Y.forEach(function(ne){j(ne,""+ve+Z.name+"/")})})};s.forEach(function(j){m(j.webkitGetAsEntry())})},P=te,R=Object.assign||function(v){for(var s=1;s=0)continue;if(!Object.prototype.hasOwnProperty.call(v,c))continue;f[c]=v[c]}return f}function ie(v,s){if(!(v instanceof s))throw new TypeError("Cannot call a class as a function")}function Ee(v,s){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:v}function W(v,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);v.prototype=Object.create(s&&s.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(v,s):v.__proto__=s)}var V=function(s){return Object.keys(s).reduce(function(f,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-"||c==="role")&&(f[c]=s[c]),f},{})},q=function(v){W(s,v);function s(){var f,c,m,j;ie(this,s);for(var Z=arguments.length,ve=Array(Z),Y=0;Y1&&arguments[1]!==void 0?arguments[1]:1,Oe=Ie.length,Ke=0;Ke1&&arguments[1]!==void 0?arguments[1]:!1;return Object(V.a)(f).map(function(m,j){if(!i.isValidElement(m)||!m.type)return null;var Z=m.type.isSelectOptGroup,ve=m.key,Y=m.props,ne=Y.children,se=Object(de.a)(Y,["children"]);return c||!Z?q(m):Object(W.a)(Object(W.a)({key:"__RC_SELECT_GRP__".concat(ve===null?j:ve,"__"),label:ve},se),{},{options:O(ne)})}).filter(function(m){return m})}var y=n("2Qr1"),b=n("qNPg"),D=n("U8pU"),k=n("Kwbf"),M=n("WKfj");function Ce(f){var c=f.mode,m=f.options,j=f.children,Z=f.backfill,ve=f.allowClear,Y=f.placeholder,ne=f.getInputElement,se=f.showSearch,ae=f.onSearch,H=f.defaultOpen,$=f.autoFocus,a=f.labelInValue,g=f.value,r=f.inputValue,w=f.optionLabelProp,G=c==="multiple"||c==="tags",oe=se!==void 0?se:G||c==="combobox",z=m||O(j);if(Object(k.a)(c!=="tags"||z.every(function(Le){return!Le.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),c==="tags"||c==="combobox"){var we=z.some(function(Le){return Le.options?Le.options.some(function(Ie){return typeof("value"in Ie?Ie.value:Ie.key)=="number"}):typeof("value"in Le?Le.value:Le.key)=="number"});Object(k.a)(!we,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(k.a)(c!=="combobox"||!w,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(k.a)(c==="combobox"||!Z,"`backfill` only works with `combobox` mode."),Object(k.a)(c==="combobox"||!ne,"`getInputElement` only work with `combobox` mode."),Object(k.b)(c!=="combobox"||!ne||!ve||!Y,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ae&&!oe&&c!=="combobox"&&c!=="tags"&&Object(k.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(k.b)(!H||$,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var ze=Object(M.d)(g);Object(k.a)(!a||ze.every(function(Le){return Object(D.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(k.a)(!G||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(j){var We=null;Object(V.a)(j).some(function(Le){if(!i.isValidElement(Le)||!Le.type)return!1;var Ie=Le.type;if(Ie.isSelectOption)return!1;if(Ie.isSelectOptGroup){var Qe=Object(V.a)(Le.props.children).every(function(jt){return!i.isValidElement(jt)||!Le.type||jt.type.isSelectOption?!0:(We=jt.type,!1)});return!Qe}return We=Ie,!0}),We&&Object(k.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(We.displayName||We.name||We,"`.")),Object(k.a)(r===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var X=Ce,A=Object(b.a)({prefixCls:"rc-select",components:{optionList:J},convertChildrenToData:O,flattenOptions:y.d,getLabeledValue:y.e,filterOptions:y.b,isValueDisabled:y.g,findValueOption:y.c,warningProps:X,fillOptionsWithMissingValue:y.a}),K=function(f){Object(xe.a)(m,f);var c=Object(N.a)(m);function m(){var j;return Object(I.a)(this,m),j=c.apply(this,arguments),j.selectRef=i.createRef(),j.focus=function(){j.selectRef.current.focus()},j.blur=function(){j.selectRef.current.blur()},j}return Object(S.a)(m,[{key:"render",value:function(){return i.createElement(A,Object.assign({ref:this.selectRef},this.props))}}]),m}(i.Component);K.Option=fe,K.OptGroup=Ee;var v=K,s=re.c=v},NvD2:function(Je,re,n){"use strict";n.d(re,"a",function(){return u});var I=n("Kwbf");function S(de,ee){var U=new Set;return de.forEach(function(F){ee.has(F)||U.add(F)}),U}function xe(de){var ee=de||{},U=ee.disabled,F=ee.disableCheckbox,Q=ee.checkable;return!!(U||F)||Q===!1}function N(de,ee,U,F){for(var Q=new Set(de),ce=new Set,ye=0;ye<=U;ye+=1){var te=ee.get(ye)||new Set;te.forEach(function(J){var ue=J.key,fe=J.node,ie=J.children,Ee=ie===void 0?[]:ie;Q.has(ue)&&!F(fe)&&Ee.filter(function(W){return!F(W.node)}).forEach(function(W){Q.add(W.key)})})}for(var P=new Set,R=U;R>=0;R-=1){var le=ee.get(R)||new Set;le.forEach(function(J){var ue=J.parent,fe=J.node;if(F(fe)||!J.parent||P.has(J.parent.key))return;if(F(J.parent.node)){P.add(ue.key);return}var ie=!0,Ee=!1;(ue.children||[]).filter(function(W){return!F(W.node)}).forEach(function(W){var V=W.key,q=Q.has(V);ie&&!q&&(ie=!1),!Ee&&(q||ce.has(V))&&(Ee=!0)}),ie&&Q.add(ue.key),Ee&&ce.add(ue.key),P.add(ue.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(S(ce,Q))}}function i(de,ee,U,F,Q){for(var ce=new Set(de),ye=new Set(ee),te=0;te<=F;te+=1){var P=U.get(te)||new Set;P.forEach(function(ue){var fe=ue.key,ie=ue.node,Ee=ue.children,W=Ee===void 0?[]:Ee;!ce.has(fe)&&!ye.has(fe)&&!Q(ie)&&W.filter(function(V){return!Q(V.node)}).forEach(function(V){ce.delete(V.key)})})}ye=new Set;for(var R=new Set,le=F;le>=0;le-=1){var J=U.get(le)||new Set;J.forEach(function(ue){var fe=ue.parent,ie=ue.node;if(Q(ie)||!ue.parent||R.has(ue.parent.key))return;if(Q(ue.parent.node)){R.add(fe.key);return}var Ee=!0,W=!1;(fe.children||[]).filter(function(V){return!Q(V.node)}).forEach(function(V){var q=V.key,O=ce.has(q);Ee&&!O&&(Ee=!1),!W&&(O||ye.has(q))&&(W=!0)}),Ee||ce.delete(fe.key),W&&ye.add(fe.key),R.add(fe.key)})}return{checkedKeys:Array.from(ce),halfCheckedKeys:Array.from(S(ye,ce))}}function u(de,ee,U,F){var Q=[],ce;F?ce=F:ce=xe;var ye=new Set(de.filter(function(le){var J=!!U[le];return J||Q.push(le),J})),te=new Map,P=0;Object.keys(U).forEach(function(le){var J=U[le],ue=J.level,fe=te.get(ue);fe||(fe=new Set,te.set(ue,fe)),fe.add(J),P=Math.max(P,ue)}),Object(I.a)(!Q.length,"Tree missing follow keys: ".concat(Q.slice(0,100).map(function(le){return"'".concat(le,"'")}).join(", ")));var R;return ee===!0?R=N(ye,te,P,ce):R=i(ye,ee.halfCheckedKeys,te,P,ce),R}},OZM5:function(Je,re,n){"use strict";n.d(re,"b",function(){return F}),n.d(re,"a",function(){return Q}),n.d(re,"k",function(){return ce}),n.d(re,"h",function(){return ye}),n.d(re,"i",function(){return te}),n.d(re,"g",function(){return P}),n.d(re,"c",function(){return R}),n.d(re,"d",function(){return le}),n.d(re,"j",function(){return fe}),n.d(re,"e",function(){return ie}),n.d(re,"f",function(){return Ee});var I=n("KQm4"),S=n("U8pU"),xe=n("Ff2n"),N=n("q1tI"),i=n.n(N),u=n("Kwbf"),de=n("WaYH"),ee=.25,U=2;function F(W,V){var q=W.slice(),O=q.indexOf(V);return O>=0&&q.splice(O,1),q}function Q(W,V){var q=W.slice();return q.indexOf(V)===-1&&q.push(V),q}function ce(W){return W.split("-")}function ye(W,V){return"".concat(W,"-").concat(V)}function te(W){return W&&W.type&&W.type.isTreeNode}function P(W,V){var q=[W],O=V[W];function y(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];b.forEach(function(D){var k=D.key,M=D.children;q.push(k),y(M)})}return y(O.children),q}function R(W,V){var q=W.clientY,O=V.selectHandle.getBoundingClientRect(),y=O.top,b=O.bottom,D=O.height,k=Math.max(D*ee,U);return q<=y+k?-1:q>=b-k?1:0}function le(W,V){if(!W)return;var q=V.multiple;return q?W.slice():W.length?[W[0]]:W}var J=function(V){return V};function ue(W,V){if(!W)return[];var q=V||{},O=q.processProps,y=O===void 0?J:O,b=Array.isArray(W)?W:[W];return b.map(function(D){var k=D.children,M=Object(xe.a)(D,["children"]),Ce=ue(k,V);return i.a.createElement(de.a,Object.assign({},y(M)),Ce)})}function fe(W){if(!W)return null;var V;if(Array.isArray(W))V={checkedKeys:W,halfCheckedKeys:void 0};else if(Object(S.a)(W)==="object")V={checkedKeys:W.checked||void 0,halfCheckedKeys:W.halfChecked||void 0};else return Object(u.a)(!1,"`checkedKeys` is not an array or an object"),null;return V}function ie(W,V){var q=new Set;function O(y){if(q.has(y))return;var b=V[y];if(!b)return;q.add(y);var D=b.parent,k=b.node;if(k.disabled)return;D&&O(D.key)}return(W||[]).forEach(function(y){O(y)}),Object(I.a)(q)}function Ee(W){var V={};return Object.keys(W).forEach(function(q){(q.startsWith("data-")||q.startsWith("aria-"))&&(V[q]=W[q])}),V}},PsNh:function(Je,re,n){Je.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(Je,re,n){var I=n("wTVA"),S=n("EbDI"),xe=n("ZhPi"),N=n("wkBT");function i(u){return I(u)||S(u)||xe(u)||N()}Je.exports=i,Je.exports.__esModule=!0,Je.exports.default=Je.exports},WaYH:function(Je,re,n){"use strict";var I=n("rePB"),S=n("Ff2n"),xe=n("VTBJ"),N=n("1OyB"),i=n("vuIU"),u=n("JX7q"),de=n("Ji7U"),ee=n("LK+K"),U=n("q1tI"),F=n("TSYQ"),Q=n.n(F),ce=n("sboe"),ye=n("OZM5"),te=function(V){var q=V.prefixCls,O=V.level,y=V.isStart,b=V.isEnd;if(!O)return null;for(var D="".concat(q,"-indent-unit"),k=[],M=0;M=0||S.relatedTarget.className.indexOf("".concat(K,"-next"))>=0))return;y.setState({goInputText:""}),A(y.getValidValue())},y.go=function(S){var Ce=y.state.goInputText;if(Ce==="")return;(S.keyCode===te.ENTER||S.type==="click")&&(y.setState({goInputText:""}),y.props.quickGo(y.getValidValue()))},y}return Object(i.a)(O,[{key:"getValidValue",value:function(){var b=this.state,D=b.goInputText,k=b.current;return!D||isNaN(D)?k:Number(D)}},{key:"getPageSizeOptions",value:function(){var b=this.props,D=b.pageSize,k=b.pageSizeOptions;return k.some(function(S){return S.toString()===D.toString()})?k:k.concat([D.toString()]).sort(function(S,Ce){var X=isNaN(Number(S))?0:Number(S),A=isNaN(Number(Ce))?0:Number(Ce);return X-A})}},{key:"render",value:function(){var b=this,D=this.props,k=D.pageSize,S=D.locale,Ce=D.rootPrefixCls,X=D.changeSize,A=D.quickGo,K=D.goButton,v=D.selectComponentClass,s=D.buildOptionText,f=D.selectPrefixCls,c=D.disabled,m=this.state.goInputText,j="".concat(Ce,"-options"),Z=v,ve=null,Y=null,ne=null;if(!X&&!A)return null;var se=this.getPageSizeOptions();if(X&&Z){var ae=se.map(function(H,$){return U.a.createElement(Z.Option,{key:$,value:H.toString()},(s||b.buildOptionText)(H))});ve=U.a.createElement(Z,{disabled:c,prefixCls:f,showSearch:!1,className:"".concat(j,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(k||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function($){return $.parentNode}},ae)}return A&&(K&&(ne=typeof K=="boolean"?U.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:c,className:"".concat(j,"-quick-jumper-button")},S.jump_to_confirm):U.a.createElement("span",{onClick:this.go,onKeyUp:this.go},K)),Y=U.a.createElement("div",{className:"".concat(j,"-quick-jumper")},S.jump_to,U.a.createElement("input",{disabled:c,type:"text",value:m,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),S.page,ne)),U.a.createElement("li",{className:"".concat(j)},ve,Y)}}]),O}(U.a.Component);P.defaultProps={pageSizeOptions:["10","20","50","100"]};var R=P,le=n("N2Kk");function J(){}function ue(V){return typeof V=="number"&&isFinite(V)&&Math.floor(V)===V}function fe(V,q,O){return O}function ie(V,q,O){var y=typeof V=="undefined"?q.pageSize:V;return Math.floor((O.total-1)/y)+1}var Ee=function(V){Object(u.a)(O,V);var q=Object(de.a)(O);function O(y){var b;Object(N.a)(this,O),b=q.call(this,y),b.getJumpPrevPage=function(){return Math.max(1,b.state.current-(b.props.showLessItems?3:5))},b.getJumpNextPage=function(){return Math.min(ie(void 0,b.state,b.props),b.state.current+(b.props.showLessItems?3:5))},b.getItemIcon=function(X,A){var K=b.props.prefixCls,v=X||U.a.createElement("button",{type:"button","aria-label":A,className:"".concat(K,"-item-link")});return typeof X=="function"&&(v=U.a.createElement(X,Object(xe.a)({},b.props))),v},b.savePaginationNode=function(X){b.paginationNode=X},b.isValid=function(X){return ue(X)&&X!==b.state.current},b.shouldDisplayQuickJumper=function(){var X=b.props,A=X.showQuickJumper,K=X.pageSize,v=X.total;return v<=K?!1:A},b.handleKeyDown=function(X){(X.keyCode===te.ARROW_UP||X.keyCode===te.ARROW_DOWN)&&X.preventDefault()},b.handleKeyUp=function(X){var A=b.getValidValue(X),K=b.state.currentInputValue;A!==K&&b.setState({currentInputValue:A}),X.keyCode===te.ENTER?b.handleChange(A):X.keyCode===te.ARROW_UP?b.handleChange(A-1):X.keyCode===te.ARROW_DOWN&&b.handleChange(A+1)},b.changePageSize=function(X){var A=b.state.current,K=ie(X,b.state,b.props);A=A>K?K:A,K===0&&(A=b.state.current),typeof X=="number"&&("pageSize"in b.props||b.setState({pageSize:X}),"current"in b.props||b.setState({current:A,currentInputValue:A})),b.props.onShowSizeChange(A,X),"onChange"in b.props&&b.props.onChange&&b.props.onChange(A,X)},b.handleChange=function(X){var A=b.props.disabled,K=X;if(b.isValid(K)&&!A){var v=ie(void 0,b.state,b.props);K>v?K=v:K<1&&(K=1),"current"in b.props||b.setState({current:K,currentInputValue:K});var s=b.state.pageSize;return b.props.onChange(K,s),K}return b.state.current},b.prev=function(){b.hasPrev()&&b.handleChange(b.state.current-1)},b.next=function(){b.hasNext()&&b.handleChange(b.state.current+1)},b.jumpPrev=function(){b.handleChange(b.getJumpPrevPage())},b.jumpNext=function(){b.handleChange(b.getJumpNextPage())},b.hasPrev=function(){return b.state.current>1},b.hasNext=function(){return b.state.current2?K-2:0),s=2;s=k?Ce=k:Ce=Number(D),Ce}},{key:"getShowSizeChanger",value:function(){var b=this.props,D=b.showSizeChanger,k=b.total,S=b.totalBoundaryShowSizeChanger;return typeof D!="undefined"?D:k>S}},{key:"renderPrev",value:function(b){var D=this.props,k=D.prevIcon,S=D.itemRender,Ce=S(b,"prev",this.getItemIcon(k,"prev page")),X=!this.hasPrev();return Object(ee.isValidElement)(Ce)?Object(ee.cloneElement)(Ce,{disabled:X}):Ce}},{key:"renderNext",value:function(b){var D=this.props,k=D.nextIcon,S=D.itemRender,Ce=S(b,"next",this.getItemIcon(k,"next page")),X=!this.hasNext();return Object(ee.isValidElement)(Ce)?Object(ee.cloneElement)(Ce,{disabled:X}):Ce}},{key:"render",value:function(){var b=this,D=this.props,k=D.prefixCls,S=D.className,Ce=D.style,X=D.disabled,A=D.hideOnSinglePage,K=D.total,v=D.locale,s=D.showQuickJumper,f=D.showLessItems,c=D.showTitle,m=D.showTotal,j=D.simple,Z=D.itemRender,ve=D.showPrevNextJumpers,Y=D.jumpPrevIcon,ne=D.jumpNextIcon,se=D.selectComponentClass,ae=D.selectPrefixCls,H=D.pageSizeOptions,$=this.state,a=$.current,g=$.pageSize,r=$.currentInputValue;if(A===!0&&K<=g)return null;var w=ie(void 0,this.state,this.props),G=[],oe=null,z=null,we=null,ze=null,We=null,Le=s&&s.goButton,Ie=f?1:2,Qe=a-1>0?a-1:0,jt=a+1=Ie*2&&a!==1+2&&(G[0]=Object(ee.cloneElement)(G[0],{className:"".concat(k,"-item-after-jump-prev")}),G.unshift(oe)),w-a>=Ie*2&&a!==w-2&&(G[G.length-1]=Object(ee.cloneElement)(G[G.length-1],{className:"".concat(k,"-item-before-jump-next")}),G.push(z)),be!==1&&G.unshift(we),Se!==w&&G.push(ze)}var je=null;m&&(je=U.a.createElement("li",{className:"".concat(k,"-total-text")},m(K,[K===0?0:(a-1)*g+1,a*g>K?K:a*g])));var ge=!this.hasPrev()||!w,Oe=!this.hasNext()||!w;return U.a.createElement("ul",Object(I.a)({className:Q()(k,S,Object(M.a)({},"".concat(k,"-disabled"),X)),style:Ce,unselectable:"unselectable",ref:this.savePaginationNode},It),je,U.a.createElement("li",{title:c?v.prev_page:null,onClick:this.prev,tabIndex:ge?null:0,onKeyPress:this.runIfEnterPrev,className:Q()("".concat(k,"-prev"),Object(M.a)({},"".concat(k,"-disabled"),ge)),"aria-disabled":ge},this.renderPrev(Qe)),G,U.a.createElement("li",{title:c?v.next_page:null,onClick:this.next,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterNext,className:Q()("".concat(k,"-next"),Object(M.a)({},"".concat(k,"-disabled"),Oe)),"aria-disabled":Oe},this.renderNext(jt)),U.a.createElement(R,{disabled:X,locale:v,rootPrefixCls:k,selectComponentClass:se,selectPrefixCls:ae,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:a,pageSize:g,pageSizeOptions:H,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Le}))}}],[{key:"getDerivedStateFromProps",value:function(b,D){var k={};if("current"in b&&(k.current=b.current,b.current!==D.current&&(k.currentInputValue=k.current)),"pageSize"in b&&b.pageSize!==D.pageSize){var S=D.current,Ce=ie(b.pageSize,D,b);S=S>Ce?Ce:S,"current"in b||(k.current=S,k.currentInputValue=S),k.pageSize=b.pageSize}return k}}]),O}(U.a.Component);Ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:J,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:J,locale:le.a,style:{},itemRender:fe,totalBoundaryShowSizeChanger:50};var W=Ee},"6RRn":function(Je,re,n){"use strict";var I=n("wCXF"),M=n("n6Qo");n.d(re,"b",function(){return M.a});var xe=n("IBYe"),N=n("6eGT"),i=n("hW8S");n.d(re,"a",function(){return i.a}),re.c=I.b},"6eGT":function(Je,re,n){"use strict";function I(M){return null}re.a=I},"815F":function(Je,re,n){"use strict";n.d(re,"e",function(){return de}),n.d(re,"c",function(){return U}),n.d(re,"d",function(){return F}),n.d(re,"a",function(){return ce}),n.d(re,"f",function(){return ye}),n.d(re,"b",function(){return te});var I=n("KQm4"),M=n("VTBJ"),xe=n("Ff2n"),N=n("Zm9Q"),i=n("Kwbf"),u=n("OZM5");function de(P,R){return P!=null?P:R}function ee(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=new Map;function le(J){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(J||[]).forEach(function(fe){var ie=fe.key,Ee=fe.children;Object(i.a)(ie!=null,"Tree node must have a certain key: [".concat(ue).concat(ie,"]"));var W=String(ie);Object(i.a)(!R.has(W)||ie===null||ie===void 0,"Same 'key' exist in the Tree: ".concat(W)),R.set(W,!0),le(Ee,"".concat(ue).concat(W," > "))})}le(P)}function U(P){function R(le){var J=Object(N.a)(le);return J.map(function(ue){if(!Object(u.i)(ue))return Object(i.a)(!ue,"Tree/TreeNode can only accept TreeNode as children."),null;var fe=ue.key,ie=ue.props,Ee=ie.children,W=Object(xe.a)(ie,["children"]),V=Object(M.a)({key:fe},W),q=R(Ee);return q.length&&(V.children=q),V}).filter(function(ue){return ue})}return R(P)}function F(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],le=new Set(R===!0?[]:R),J=[];function ue(fe){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return fe.map(function(Ee,W){var V=Object(u.h)(ie?ie.pos:"0",W),q=de(Ee.key,V),O=Object(M.a)(Object(M.a)({},Ee),{},{parent:ie,pos:V,children:null,data:Ee,isStart:[].concat(Object(I.a)(ie?ie.isStart:[]),[W===0]),isEnd:[].concat(Object(I.a)(ie?ie.isEnd:[]),[W===fe.length-1])});return J.push(O),R===!0||le.has(q)?O.children=ue(Ee.children||[],O):O.children=[],O})}return ue(P),J}function Q(P,R,le){var J;le?typeof le=="string"?J=function(ie){return ie[le]}:typeof le=="function"&&(J=function(ie){return le(ie)}):J=function(ie,Ee){return de(ie.key,Ee)};function ue(fe,ie,Ee){var W=fe?fe.children:P,V=fe?Object(u.h)(Ee.pos,ie):"0";if(fe){var q=J(fe,V),O={node:fe,index:ie,pos:V,key:q,parentPos:Ee.node?Ee.pos:null,level:Ee.level+1};R(O)}W&&W.forEach(function(y,b){ue(y,b,{node:fe,pos:V,level:Ee?Ee.level+1:-1})})}ue(null)}function ce(P){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},le=R.initWrapper,J=R.processEntity,ue=R.onProcessFinished,fe=arguments.length>2?arguments[2]:void 0,ie={},Ee={},W={posEntities:ie,keyEntities:Ee};return le&&(W=le(W)||W),Q(P,function(V){var q=V.node,O=V.index,y=V.pos,b=V.key,D=V.parentPos,k=V.level,S={node:q,index:O,key:b,pos:y,level:k},Ce=de(b,y);ie[y]=S,Ee[Ce]=S,S.parent=ie[D],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),J&&J(S,W)},fe),ue&&ue(W),W}function ye(P,R){var le=R.expandedKeys,J=R.selectedKeys,ue=R.loadedKeys,fe=R.loadingKeys,ie=R.checkedKeys,Ee=R.halfCheckedKeys,W=R.dragOverNodeKey,V=R.dropPosition,q=R.keyEntities,O=q[P],y={eventKey:P,expanded:le.indexOf(P)!==-1,selected:J.indexOf(P)!==-1,loaded:ue.indexOf(P)!==-1,loading:fe.indexOf(P)!==-1,checked:ie.indexOf(P)!==-1,halfChecked:Ee.indexOf(P)!==-1,pos:String(O?O.pos:""),dragOver:W===P&&V===0,dragOverGapTop:W===P&&V===-1,dragOverGapBottom:W===P&&V===1};return y}function te(P){var R=P.data,le=P.expanded,J=P.selected,ue=P.checked,fe=P.loaded,ie=P.loading,Ee=P.halfChecked,W=P.dragOver,V=P.dragOverGapTop,q=P.dragOverGapBottom,O=P.pos,y=P.active,b=Object(M.a)(Object(M.a)({},R),{},{expanded:le,selected:J,checked:ue,loaded:fe,loading:ie,halfChecked:Ee,dragOver:W,dragOverGapTop:V,dragOverGapBottom:q,pos:O,active:y});return"props"in b||Object.defineProperty(b,"props",{get:function(){return Object(i.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),P}}),b}},GfqC:function(Je,re,n){"use strict";var I=n("q1tI"),M=n.n(I),xe=n("TSYQ"),N=n.n(xe);function i(v,s){var f="cannot "+v.method+" "+v.action+" "+s.status+"'",c=new Error(f);return c.status=s.status,c.method=v.method,c.url=v.action,c}function u(v){var s=v.responseText||v.response;if(!s)return s;try{return JSON.parse(s)}catch(f){return s}}function de(v){var s=new XMLHttpRequest;v.onProgress&&s.upload&&(s.upload.onprogress=function(j){j.total>0&&(j.percent=j.loaded/j.total*100),v.onProgress(j)});var f=new FormData;v.data&&Object.keys(v.data).forEach(function(m){var j=v.data[m];if(Array.isArray(j)){j.forEach(function(Z){f.append(m+"[]",Z)});return}f.append(m,v.data[m])}),v.file instanceof Blob?f.append(v.filename,v.file,v.file.name):f.append(v.filename,v.file),s.onerror=function(j){v.onError(j)},s.onload=function(){return s.status<200||s.status>=300?v.onError(i(v,s),u(s)):v.onSuccess(u(s),s)},s.open(v.method,v.action,!0),v.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var c=v.headers||{};return c["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(c).forEach(function(m){c[m]!==null&&s.setRequestHeader(m,c[m])}),s.send(f),{abort:function(){s.abort()}}}var ee=+new Date,U=0;function F(){return"rc-upload-"+ee+"-"+ ++U}function Q(v,s){return v.indexOf(s,v.length-s.length)!==-1}var ce=function(v,s){if(v&&s){var f=Array.isArray(s)?s:s.split(","),c=v.name||"",m=v.type||"",j=m.replace(/\/.*$/,"");return f.some(function(Z){var ve=Z.trim();return ve.charAt(0)==="."?Q(c.toLowerCase(),ve.toLowerCase()):/\/\*$/.test(ve)?j===ve.replace(/\/.*$/,""):m===ve})}return!0};function ye(v,s){var f=v.createReader(),c=[];function m(){f.readEntries(function(j){var Z=Array.prototype.slice.apply(j);c=c.concat(Z);var ve=!Z.length;ve?s(c):m()})}m()}var te=function(s,f,c){var m=function j(Z,ve){ve=ve||"",Z.isFile?Z.file(function(Y){c(Y)&&(Z.fullPath&&!Y.webkitRelativePath&&(Object.defineProperties(Y,{webkitRelativePath:{writable:!0}}),Y.webkitRelativePath=Z.fullPath.replace(/^\//,""),Object.defineProperties(Y,{webkitRelativePath:{writable:!1}})),f([Y]))}):Z.isDirectory&&ye(Z,function(Y){Y.forEach(function(ne){j(ne,""+ve+Z.name+"/")})})};s.forEach(function(j){m(j.webkitGetAsEntry())})},P=te,R=Object.assign||function(v){for(var s=1;s=0)continue;if(!Object.prototype.hasOwnProperty.call(v,c))continue;f[c]=v[c]}return f}function ie(v,s){if(!(v instanceof s))throw new TypeError("Cannot call a class as a function")}function Ee(v,s){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:v}function W(v,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);v.prototype=Object.create(s&&s.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(v,s):v.__proto__=s)}var V=function(s){return Object.keys(s).reduce(function(f,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-"||c==="role")&&(f[c]=s[c]),f},{})},q=function(v){W(s,v);function s(){var f,c,m,j;ie(this,s);for(var Z=arguments.length,ve=Array(Z),Y=0;Y1&&arguments[1]!==void 0?arguments[1]:1,Oe=Ie.length,Ke=0;Ke1&&arguments[1]!==void 0?arguments[1]:!1;return Object(V.a)(f).map(function(m,j){if(!i.isValidElement(m)||!m.type)return null;var Z=m.type.isSelectOptGroup,ve=m.key,Y=m.props,ne=Y.children,se=Object(de.a)(Y,["children"]);return c||!Z?q(m):Object(W.a)(Object(W.a)({key:"__RC_SELECT_GRP__".concat(ve===null?j:ve,"__"),label:ve},se),{},{options:O(ne)})}).filter(function(m){return m})}var y=n("2Qr1"),b=n("qNPg"),D=n("U8pU"),k=n("Kwbf"),S=n("WKfj");function Ce(f){var c=f.mode,m=f.options,j=f.children,Z=f.backfill,ve=f.allowClear,Y=f.placeholder,ne=f.getInputElement,se=f.showSearch,ae=f.onSearch,H=f.defaultOpen,$=f.autoFocus,a=f.labelInValue,g=f.value,r=f.inputValue,w=f.optionLabelProp,G=c==="multiple"||c==="tags",oe=se!==void 0?se:G||c==="combobox",z=m||O(j);if(Object(k.a)(c!=="tags"||z.every(function(Le){return!Le.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),c==="tags"||c==="combobox"){var we=z.some(function(Le){return Le.options?Le.options.some(function(Ie){return typeof("value"in Ie?Ie.value:Ie.key)=="number"}):typeof("value"in Le?Le.value:Le.key)=="number"});Object(k.a)(!we,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(k.a)(c!=="combobox"||!w,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(k.a)(c==="combobox"||!Z,"`backfill` only works with `combobox` mode."),Object(k.a)(c==="combobox"||!ne,"`getInputElement` only work with `combobox` mode."),Object(k.b)(c!=="combobox"||!ne||!ve||!Y,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ae&&!oe&&c!=="combobox"&&c!=="tags"&&Object(k.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(k.b)(!H||$,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var ze=Object(S.d)(g);Object(k.a)(!a||ze.every(function(Le){return Object(D.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(k.a)(!G||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(j){var We=null;Object(V.a)(j).some(function(Le){if(!i.isValidElement(Le)||!Le.type)return!1;var Ie=Le.type;if(Ie.isSelectOption)return!1;if(Ie.isSelectOptGroup){var Qe=Object(V.a)(Le.props.children).every(function(jt){return!i.isValidElement(jt)||!Le.type||jt.type.isSelectOption?!0:(We=jt.type,!1)});return!Qe}return We=Ie,!0}),We&&Object(k.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(We.displayName||We.name||We,"`.")),Object(k.a)(r===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var X=Ce,A=Object(b.a)({prefixCls:"rc-select",components:{optionList:J},convertChildrenToData:O,flattenOptions:y.d,getLabeledValue:y.e,filterOptions:y.b,isValueDisabled:y.g,findValueOption:y.c,warningProps:X,fillOptionsWithMissingValue:y.a}),K=function(f){Object(xe.a)(m,f);var c=Object(N.a)(m);function m(){var j;return Object(I.a)(this,m),j=c.apply(this,arguments),j.selectRef=i.createRef(),j.focus=function(){j.selectRef.current.focus()},j.blur=function(){j.selectRef.current.blur()},j}return Object(M.a)(m,[{key:"render",value:function(){return i.createElement(A,Object.assign({ref:this.selectRef},this.props))}}]),m}(i.Component);K.Option=fe,K.OptGroup=Ee;var v=K,s=re.c=v},NvD2:function(Je,re,n){"use strict";n.d(re,"a",function(){return u});var I=n("Kwbf");function M(de,ee){var U=new Set;return de.forEach(function(F){ee.has(F)||U.add(F)}),U}function xe(de){var ee=de||{},U=ee.disabled,F=ee.disableCheckbox,Q=ee.checkable;return!!(U||F)||Q===!1}function N(de,ee,U,F){for(var Q=new Set(de),ce=new Set,ye=0;ye<=U;ye+=1){var te=ee.get(ye)||new Set;te.forEach(function(J){var ue=J.key,fe=J.node,ie=J.children,Ee=ie===void 0?[]:ie;Q.has(ue)&&!F(fe)&&Ee.filter(function(W){return!F(W.node)}).forEach(function(W){Q.add(W.key)})})}for(var P=new Set,R=U;R>=0;R-=1){var le=ee.get(R)||new Set;le.forEach(function(J){var ue=J.parent,fe=J.node;if(F(fe)||!J.parent||P.has(J.parent.key))return;if(F(J.parent.node)){P.add(ue.key);return}var ie=!0,Ee=!1;(ue.children||[]).filter(function(W){return!F(W.node)}).forEach(function(W){var V=W.key,q=Q.has(V);ie&&!q&&(ie=!1),!Ee&&(q||ce.has(V))&&(Ee=!0)}),ie&&Q.add(ue.key),Ee&&ce.add(ue.key),P.add(ue.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(M(ce,Q))}}function i(de,ee,U,F,Q){for(var ce=new Set(de),ye=new Set(ee),te=0;te<=F;te+=1){var P=U.get(te)||new Set;P.forEach(function(ue){var fe=ue.key,ie=ue.node,Ee=ue.children,W=Ee===void 0?[]:Ee;!ce.has(fe)&&!ye.has(fe)&&!Q(ie)&&W.filter(function(V){return!Q(V.node)}).forEach(function(V){ce.delete(V.key)})})}ye=new Set;for(var R=new Set,le=F;le>=0;le-=1){var J=U.get(le)||new Set;J.forEach(function(ue){var fe=ue.parent,ie=ue.node;if(Q(ie)||!ue.parent||R.has(ue.parent.key))return;if(Q(ue.parent.node)){R.add(fe.key);return}var Ee=!0,W=!1;(fe.children||[]).filter(function(V){return!Q(V.node)}).forEach(function(V){var q=V.key,O=ce.has(q);Ee&&!O&&(Ee=!1),!W&&(O||ye.has(q))&&(W=!0)}),Ee||ce.delete(fe.key),W&&ye.add(fe.key),R.add(fe.key)})}return{checkedKeys:Array.from(ce),halfCheckedKeys:Array.from(M(ye,ce))}}function u(de,ee,U,F){var Q=[],ce;F?ce=F:ce=xe;var ye=new Set(de.filter(function(le){var J=!!U[le];return J||Q.push(le),J})),te=new Map,P=0;Object.keys(U).forEach(function(le){var J=U[le],ue=J.level,fe=te.get(ue);fe||(fe=new Set,te.set(ue,fe)),fe.add(J),P=Math.max(P,ue)}),Object(I.a)(!Q.length,"Tree missing follow keys: ".concat(Q.slice(0,100).map(function(le){return"'".concat(le,"'")}).join(", ")));var R;return ee===!0?R=N(ye,te,P,ce):R=i(ye,ee.halfCheckedKeys,te,P,ce),R}},OZM5:function(Je,re,n){"use strict";n.d(re,"b",function(){return F}),n.d(re,"a",function(){return Q}),n.d(re,"k",function(){return ce}),n.d(re,"h",function(){return ye}),n.d(re,"i",function(){return te}),n.d(re,"g",function(){return P}),n.d(re,"c",function(){return R}),n.d(re,"d",function(){return le}),n.d(re,"j",function(){return fe}),n.d(re,"e",function(){return ie}),n.d(re,"f",function(){return Ee});var I=n("KQm4"),M=n("U8pU"),xe=n("Ff2n"),N=n("q1tI"),i=n.n(N),u=n("Kwbf"),de=n("WaYH"),ee=.25,U=2;function F(W,V){var q=W.slice(),O=q.indexOf(V);return O>=0&&q.splice(O,1),q}function Q(W,V){var q=W.slice();return q.indexOf(V)===-1&&q.push(V),q}function ce(W){return W.split("-")}function ye(W,V){return"".concat(W,"-").concat(V)}function te(W){return W&&W.type&&W.type.isTreeNode}function P(W,V){var q=[W],O=V[W];function y(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];b.forEach(function(D){var k=D.key,S=D.children;q.push(k),y(S)})}return y(O.children),q}function R(W,V){var q=W.clientY,O=V.selectHandle.getBoundingClientRect(),y=O.top,b=O.bottom,D=O.height,k=Math.max(D*ee,U);return q<=y+k?-1:q>=b-k?1:0}function le(W,V){if(!W)return;var q=V.multiple;return q?W.slice():W.length?[W[0]]:W}var J=function(V){return V};function ue(W,V){if(!W)return[];var q=V||{},O=q.processProps,y=O===void 0?J:O,b=Array.isArray(W)?W:[W];return b.map(function(D){var k=D.children,S=Object(xe.a)(D,["children"]),Ce=ue(k,V);return i.a.createElement(de.a,Object.assign({},y(S)),Ce)})}function fe(W){if(!W)return null;var V;if(Array.isArray(W))V={checkedKeys:W,halfCheckedKeys:void 0};else if(Object(M.a)(W)==="object")V={checkedKeys:W.checked||void 0,halfCheckedKeys:W.halfChecked||void 0};else return Object(u.a)(!1,"`checkedKeys` is not an array or an object"),null;return V}function ie(W,V){var q=new Set;function O(y){if(q.has(y))return;var b=V[y];if(!b)return;q.add(y);var D=b.parent,k=b.node;if(k.disabled)return;D&&O(D.key)}return(W||[]).forEach(function(y){O(y)}),Object(I.a)(q)}function Ee(W){var V={};return Object.keys(W).forEach(function(q){(q.startsWith("data-")||q.startsWith("aria-"))&&(V[q]=W[q])}),V}},PsNh:function(Je,re,n){Je.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(Je,re,n){var I=n("wTVA"),M=n("EbDI"),xe=n("ZhPi"),N=n("wkBT");function i(u){return I(u)||M(u)||xe(u)||N()}Je.exports=i,Je.exports.__esModule=!0,Je.exports.default=Je.exports},WaYH:function(Je,re,n){"use strict";var I=n("rePB"),M=n("Ff2n"),xe=n("VTBJ"),N=n("1OyB"),i=n("vuIU"),u=n("JX7q"),de=n("Ji7U"),ee=n("LK+K"),U=n("q1tI"),F=n("TSYQ"),Q=n.n(F),ce=n("sboe"),ye=n("OZM5"),te=function(V){var q=V.prefixCls,O=V.level,y=V.isStart,b=V.isEnd;if(!O)return null;for(var D="".concat(q,"-indent-unit"),k=[],S=0;S1&&arguments[1]!==void 0?arguments[1]:!1,se=Y.getAttribute("id")||Y.getAttribute("data-reactid")||Y.getAttribute("name");if(ne&&X[se])return X[se];var ae=window.getComputedStyle(Y),H=ae.getPropertyValue("box-sizing")||ae.getPropertyValue("-moz-box-sizing")||ae.getPropertyValue("-webkit-box-sizing"),$=parseFloat(ae.getPropertyValue("padding-bottom"))+parseFloat(ae.getPropertyValue("padding-top")),a=parseFloat(ae.getPropertyValue("border-bottom-width"))+parseFloat(ae.getPropertyValue("border-top-width")),g=Ce.map(function(w){return"".concat(w,":").concat(ae.getPropertyValue(w))}).join(";"),r={sizingStyle:g,paddingSize:$,borderSize:a,boxSizing:H};return ne&&se&&(X[se]=r),r}function v(Y){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ae=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;A||(A=document.createElement("textarea"),A.setAttribute("tab-index","-1"),A.setAttribute("aria-hidden","true"),document.body.appendChild(A)),Y.getAttribute("wrap")?A.setAttribute("wrap",Y.getAttribute("wrap")):A.removeAttribute("wrap");var H=K(Y,ne),$=H.paddingSize,a=H.borderSize,g=H.boxSizing,r=H.sizingStyle;A.setAttribute("style","".concat(r,";").concat(M)),A.value=Y.value||Y.placeholder||"";var w=Number.MIN_SAFE_INTEGER,G=Number.MAX_SAFE_INTEGER,oe=A.scrollHeight,z;if(g==="border-box"?oe+=a:g==="content-box"&&(oe-=$),se!==null||ae!==null){A.value=" ";var we=A.scrollHeight-$;se!==null&&(w=we*se,g==="border-box"&&(w=w+$+a),oe=Math.max(w,oe)),ae!==null&&(G=we*ae,g==="border-box"&&(G=G+$+a),z=oe>G?"":"hidden",oe=Math.min(G,oe))}return{height:oe,minHeight:w,maxHeight:G,overflowY:z,resize:"none"}}var s=n("Gytx"),f=n.n(s),c;(function(Y){Y[Y.NONE=0]="NONE",Y[Y.RESIZING=1]="RESIZING",Y[Y.RESIZED=2]="RESIZED"})(c||(c={}));var m=function(Y){Object(N.a)(se,Y);var ne=Object(i.a)(se);function se(ae){var H;return Object(S.a)(this,se),H=ne.call(this,ae),H.nextFrameActionId=void 0,H.resizeFrameId=void 0,H.textArea=void 0,H.saveTextArea=function($){H.textArea=$},H.handleResize=function($){var a=H.state.resizeStatus,g=H.props,r=g.autoSize,w=g.onResize;if(a!==c.NONE)return;typeof w=="function"&&w($),r&&H.resizeOnNextFrame()},H.resizeOnNextFrame=function(){cancelAnimationFrame(H.nextFrameActionId),H.nextFrameActionId=requestAnimationFrame(H.resizeTextarea)},H.resizeTextarea=function(){var $=H.props.autoSize;if(!$||!H.textArea)return;var a=$.minRows,g=$.maxRows,r=v(H.textArea,!1,a,g);H.setState({textareaStyles:r,resizeStatus:c.RESIZING},function(){cancelAnimationFrame(H.resizeFrameId),H.resizeFrameId=requestAnimationFrame(function(){H.setState({resizeStatus:c.RESIZED},function(){H.resizeFrameId=requestAnimationFrame(function(){H.setState({resizeStatus:c.NONE}),H.fixFirefoxAutoScroll()})})})})},H.renderTextArea=function(){var $=H.props,a=$.prefixCls,g=a===void 0?"rc-textarea":a,r=$.autoSize,w=$.onResize,G=$.className,oe=$.disabled,z=H.state,we=z.textareaStyles,ze=z.resizeStatus,We=Object(b.a)(H.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Le=k()(g,G,Object(ee.a)({},"".concat(g,"-disabled"),oe));"value"in We&&(We.value=We.value||"");var Ie=Object(de.a)(Object(de.a)(Object(de.a)({},H.props.style),we),ze===c.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return u.createElement(y,{onResize:H.handleResize,disabled:!(r||w)},u.createElement("textarea",Object(I.a)({},We,{className:Le,style:Ie,ref:H.saveTextArea})))},H.state={textareaStyles:{},resizeStatus:c.NONE},H}return Object(xe.a)(se,[{key:"componentDidUpdate",value:function(H){(H.value!==this.props.value||!f()(H.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 H=this.textArea.selectionStart,$=this.textArea.selectionEnd;this.textArea.setSelectionRange(H,$)}}catch(a){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(u.Component),j=m,Z=function(Y){Object(N.a)(se,Y);var ne=Object(i.a)(se);function se(ae){var H;Object(S.a)(this,se),H=ne.call(this,ae),H.resizableTextArea=void 0,H.focus=function(){H.resizableTextArea.textArea.focus()},H.saveTextArea=function(a){H.resizableTextArea=a},H.handleChange=function(a){var g=H.props.onChange;H.setValue(a.target.value,function(){H.resizableTextArea.resizeTextarea()}),g&&g(a)},H.handleKeyDown=function(a){var g=H.props,r=g.onPressEnter,w=g.onKeyDown;a.keyCode===13&&r&&r(a),w&&w(a)};var $=typeof ae.value=="undefined"||ae.value===null?ae.defaultValue:ae.value;return H.state={value:$},H}return Object(xe.a)(se,[{key:"setValue",value:function(H,$){"value"in this.props||this.setState({value:H},$)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return u.createElement(j,Object(I.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(H){return"value"in H?{value:H.value}:null}}]),se}(u.Component),ve=re.default=Z},ZW5e:function(Je,re,n){Je.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(Je,re,n){"use strict";function I(Q){return typeof Q=="object"&&Q!=null&&Q.nodeType===1}function S(Q,ce){return(!ce||Q!=="hidden")&&Q!=="visible"&&Q!=="clip"}function xe(Q,ce){if(Q.clientHeightce||R>Q&&le=ce&&J>=ye?R-Q-te:le>ce&&Jye?le-ce+P:0}var i=function(Q,ce){var ye=window,te=ce.scrollMode,P=ce.block,R=ce.inline,le=ce.boundary,J=ce.skipOverflowHiddenElements,ue=typeof le=="function"?le:function(we){return we!==le};if(!I(Q))throw new TypeError("Invalid target");for(var fe=document.scrollingElement||document.documentElement,ie=[],Ee=Q;I(Ee)&&ue(Ee);){if((Ee=Ee.parentElement)===fe){ie.push(Ee);break}Ee!=null&&Ee===document.body&&xe(Ee)&&!xe(document.documentElement)||Ee!=null&&xe(Ee,J)&&ie.push(Ee)}for(var W=ye.visualViewport?ye.visualViewport.width:innerWidth,V=ye.visualViewport?ye.visualViewport.height:innerHeight,q=window.scrollX||pageXOffset,O=window.scrollY||pageYOffset,y=Q.getBoundingClientRect(),b=y.height,D=y.width,k=y.top,M=y.right,Ce=y.bottom,X=y.left,A=P==="start"||P==="nearest"?k:P==="end"?Ce:k+b/2,K=R==="center"?X+D/2:R==="end"?M:X,v=[],s=0;s=0&&X>=0&&Ce<=V&&M<=W&&k>=Z&&Ce<=Y&&X>=ne&&M<=ve)return v;var se=getComputedStyle(f),ae=parseInt(se.borderLeftWidth,10),H=parseInt(se.borderTopWidth,10),$=parseInt(se.borderRightWidth,10),a=parseInt(se.borderBottomWidth,10),g=0,r=0,w="offsetWidth"in f?f.offsetWidth-f.clientWidth-ae-$:0,G="offsetHeight"in f?f.offsetHeight-f.clientHeight-H-a:0;if(fe===f)g=P==="start"?A:P==="end"?A-V:P==="nearest"?N(O,O+V,V,H,a,O+A,O+A+b,b):A-V/2,r=R==="start"?K:R==="center"?K-W/2:R==="end"?K-W:N(q,q+W,W,ae,$,q+K,q+K+D,D),g=Math.max(0,g+O),r=Math.max(0,r+q);else{g=P==="start"?A-Z-H:P==="end"?A-Y+a+G:P==="nearest"?N(Z,Y,m,H,a+G,A,A+b,b):A-(Z+m/2)+G/2,r=R==="start"?K-ne-ae:R==="center"?K-(ne+j/2)+w/2:R==="end"?K-ve+$+w:N(ne,ve,j,ae,$+w,K,K+D,D);var oe=f.scrollLeft,z=f.scrollTop;A+=z-(g=Math.max(0,Math.min(z+g,f.scrollHeight-m+G))),K+=oe-(r=Math.max(0,Math.min(oe+r,f.scrollWidth-j+w)))}v.push({el:f,top:g,left:r})}return v};function u(Q){return Q===Object(Q)&&Object.keys(Q).length!==0}function de(Q,ce){ce===void 0&&(ce="auto");var ye="scrollBehavior"in document.body.style;Q.forEach(function(te){var P=te.el,R=te.top,le=te.left;P.scroll&&ye?P.scroll({top:R,left:le,behavior:ce}):(P.scrollTop=R,P.scrollLeft=le)})}function ee(Q){return Q===!1?{block:"end",inline:"nearest"}:u(Q)?Q:{block:"start",inline:"nearest"}}function U(Q,ce){var ye=!Q.ownerDocument.documentElement.contains(Q);if(u(ce)&&typeof ce.behavior=="function")return ce.behavior(ye?[]:i(Q,ce));if(ye)return;var te=ee(ce);return de(i(Q,te),te.behavior)}var F=re.a=U},Zss7:function(Je,re,n){var I;(function(S){var xe=/^\s+/,N=/\s+$/,i=0,u=S.round,de=S.min,ee=S.max,U=S.random;function F(a,g){if(a=a||"",g=g||{},a instanceof F)return a;if(!(this instanceof F))return new F(a,g);var r=Q(a);this._originalInput=a,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=u(100*this._a)/100,this._format=g.format||r.format,this._gradientType=g.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=r.ok,this._tc_id=i++}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 a=this.toRgb();return(a.r*299+a.g*587+a.b*114)/1e3},getLuminance:function(){var a=this.toRgb(),g,r,w,G,oe,z;return g=a.r/255,r=a.g/255,w=a.b/255,g<=.03928?G=g/12.92:G=S.pow((g+.055)/1.055,2.4),r<=.03928?oe=r/12.92:oe=S.pow((r+.055)/1.055,2.4),w<=.03928?z=w/12.92:z=S.pow((w+.055)/1.055,2.4),.2126*G+.7152*oe+.0722*z},setAlpha:function(a){return this._a=v(a),this._roundA=u(100*this._a)/100,this},toHsv:function(){var a=P(this._r,this._g,this._b);return{h:a.h*360,s:a.s,v:a.v,a:this._a}},toHsvString:function(){var a=P(this._r,this._g,this._b),g=u(a.h*360),r=u(a.s*100),w=u(a.v*100);return this._a==1?"hsv("+g+", "+r+"%, "+w+"%)":"hsva("+g+", "+r+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var a=ye(this._r,this._g,this._b);return{h:a.h*360,s:a.s,l:a.l,a:this._a}},toHslString:function(){var a=ye(this._r,this._g,this._b),g=u(a.h*360),r=u(a.s*100),w=u(a.l*100);return this._a==1?"hsl("+g+", "+r+"%, "+w+"%)":"hsla("+g+", "+r+"%, "+w+"%, "+this._roundA+")"},toHex:function(a){return le(this._r,this._g,this._b,a)},toHexString:function(a){return"#"+this.toHex(a)},toHex8:function(a){return J(this._r,this._g,this._b,this._a,a)},toHex8String:function(a){return"#"+this.toHex8(a)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(s(this._r,255)*100)+"%",g:u(s(this._g,255)*100)+"%",b:u(s(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+u(s(this._r,255)*100)+"%, "+u(s(this._g,255)*100)+"%, "+u(s(this._b,255)*100)+"%)":"rgba("+u(s(this._r,255)*100)+"%, "+u(s(this._g,255)*100)+"%, "+u(s(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:A[le(this._r,this._g,this._b,!0)]||!1},toFilter:function(a){var g="#"+ue(this._r,this._g,this._b,this._a),r=g,w=this._gradientType?"GradientType = 1, ":"";if(a){var G=F(a);r="#"+ue(G._r,G._g,G._b,G._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+g+",endColorstr="+r+")"},toString:function(a){var g=!!a;a=a||this._format;var r=!1,w=this._a<1&&this._a>=0,G=!g&&w&&(a==="hex"||a==="hex6"||a==="hex3"||a==="hex4"||a==="hex8"||a==="name");return G?a==="name"&&this._a===0?this.toName():this.toRgbString():(a==="rgb"&&(r=this.toRgbString()),a==="prgb"&&(r=this.toPercentageRgbString()),(a==="hex"||a==="hex6")&&(r=this.toHexString()),a==="hex3"&&(r=this.toHexString(!0)),a==="hex4"&&(r=this.toHex8String(!0)),a==="hex8"&&(r=this.toHex8String()),a==="name"&&(r=this.toName()),a==="hsl"&&(r=this.toHslString()),a==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return F(this.toString())},_applyModification:function(a,g){var r=a.apply(null,[this].concat([].slice.call(g)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(W,arguments)},brighten:function(){return this._applyModification(V,arguments)},darken:function(){return this._applyModification(q,arguments)},desaturate:function(){return this._applyModification(fe,arguments)},saturate:function(){return this._applyModification(ie,arguments)},greyscale:function(){return this._applyModification(Ee,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(a,g){return a.apply(null,[this].concat([].slice.call(g)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(Ce,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(b,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},F.fromRatio=function(a,g){if(typeof a=="object"){var r={};for(var w in a)a.hasOwnProperty(w)&&(w==="a"?r[w]=a[w]:r[w]=ve(a[w]));a=r}return F(a,g)};function Q(a){var g={r:0,g:0,b:0},r=1,w=null,G=null,oe=null,z=!1,we=!1;return typeof a=="string"&&(a=H(a)),typeof a=="object"&&(ae(a.r)&&ae(a.g)&&ae(a.b)?(g=ce(a.r,a.g,a.b),z=!0,we=String(a.r).substr(-1)==="%"?"prgb":"rgb"):ae(a.h)&&ae(a.s)&&ae(a.v)?(w=ve(a.s),G=ve(a.v),g=R(a.h,w,G),z=!0,we="hsv"):ae(a.h)&&ae(a.s)&&ae(a.l)&&(w=ve(a.s),oe=ve(a.l),g=te(a.h,w,oe),z=!0,we="hsl"),a.hasOwnProperty("a")&&(r=a.a)),r=v(r),{ok:z,format:a.format||we,r:de(255,ee(g.r,0)),g:de(255,ee(g.g,0)),b:de(255,ee(g.b,0)),a:r}}function ce(a,g,r){return{r:s(a,255)*255,g:s(g,255)*255,b:s(r,255)*255}}function ye(a,g,r){a=s(a,255),g=s(g,255),r=s(r,255);var w=ee(a,g,r),G=de(a,g,r),oe,z,we=(w+G)/2;if(w==G)oe=z=0;else{var ze=w-G;z=we>.5?ze/(2-w-G):ze/(w+G);switch(w){case a:oe=(g-r)/ze+(g1&&(Ie-=1),Ie<1/6?We+(Le-We)*6*Ie:Ie<1/2?Le:Ie<2/3?We+(Le-We)*(2/3-Ie)*6:We}if(g===0)w=G=oe=r;else{var we=r<.5?r*(1+g):r+g-r*g,ze=2*r-we;w=z(ze,we,a+1/3),G=z(ze,we,a),oe=z(ze,we,a-1/3)}return{r:w*255,g:G*255,b:oe*255}}function P(a,g,r){a=s(a,255),g=s(g,255),r=s(r,255);var w=ee(a,g,r),G=de(a,g,r),oe,z,we=w,ze=w-G;if(z=w===0?0:ze/w,w==G)oe=0;else{switch(w){case a:oe=(g-r)/ze+(g>1)+720)%360;--g;)w.h=(w.h+G)%360,oe.push(F(w));return oe}function Ce(a,g){g=g||6;for(var r=F(a).toHsv(),w=r.h,G=r.s,oe=r.v,z=[],we=1/g;g--;)z.push(F({h:w,s:G,v:oe})),oe=(oe+we)%1;return z}F.mix=function(a,g,r){r=r===0?0:r||50;var w=F(a).toRgb(),G=F(g).toRgb(),oe=r/100,z={r:(G.r-w.r)*oe+w.r,g:(G.g-w.g)*oe+w.g,b:(G.b-w.b)*oe+w.b,a:(G.a-w.a)*oe+w.a};return F(z)},F.readability=function(a,g){var r=F(a),w=F(g);return(S.max(r.getLuminance(),w.getLuminance())+.05)/(S.min(r.getLuminance(),w.getLuminance())+.05)},F.isReadable=function(a,g,r){var w=F.readability(a,g),G,oe;oe=!1,G=$(r);switch(G.level+G.size){case"AAsmall":case"AAAlarge":oe=w>=4.5;break;case"AAlarge":oe=w>=3;break;case"AAAsmall":oe=w>=7;break}return oe},F.mostReadable=function(a,g,r){var w=null,G=0,oe,z,we,ze;r=r||{},z=r.includeFallbackColors,we=r.level,ze=r.size;for(var We=0;WeG&&(G=oe,w=F(g[We]));return F.isReadable(a,w,{level:we,size:ze})||!z?w:(r.includeFallbackColors=!1,F.mostReadable(a,["#fff","#000"],r))};var X=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"},A=F.hexNames=K(X);function K(a){var g={};for(var r in a)a.hasOwnProperty(r)&&(g[a[r]]=r);return g}function v(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function s(a,g){m(a)&&(a="100%");var r=j(a);return a=de(g,ee(0,parseFloat(a))),r&&(a=parseInt(a*g,10)/100),S.abs(a-g)<1e-6?1:a%g/parseFloat(g)}function f(a){return de(1,ee(0,a))}function c(a){return parseInt(a,16)}function m(a){return typeof a=="string"&&a.indexOf(".")!=-1&&parseFloat(a)===1}function j(a){return typeof a=="string"&&a.indexOf("%")!=-1}function Z(a){return a.length==1?"0"+a:""+a}function ve(a){return a<=1&&(a=a*100+"%"),a}function Y(a){return S.round(parseFloat(a)*255).toString(16)}function ne(a){return c(a)/255}var se=function(){var a="[-\\+]?\\d+%?",g="[-\\+]?\\d*\\.\\d+%?",r="(?:"+g+")|(?:"+a+")",w="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",G="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+w),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+w),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+w),hsva:new RegExp("hsva"+G),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 ae(a){return!!se.CSS_UNIT.exec(a)}function H(a){a=a.replace(xe,"").replace(N,"").toLowerCase();var g=!1;if(X[a])a=X[a],g=!0;else if(a=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=se.rgb.exec(a))?{r:r[1],g:r[2],b:r[3]}:(r=se.rgba.exec(a))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=se.hsl.exec(a))?{h:r[1],s:r[2],l:r[3]}:(r=se.hsla.exec(a))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=se.hsv.exec(a))?{h:r[1],s:r[2],v:r[3]}:(r=se.hsva.exec(a))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=se.hex8.exec(a))?{r:c(r[1]),g:c(r[2]),b:c(r[3]),a:ne(r[4]),format:g?"name":"hex8"}:(r=se.hex6.exec(a))?{r:c(r[1]),g:c(r[2]),b:c(r[3]),format:g?"name":"hex"}:(r=se.hex4.exec(a))?{r:c(r[1]+""+r[1]),g:c(r[2]+""+r[2]),b:c(r[3]+""+r[3]),a:ne(r[4]+""+r[4]),format:g?"name":"hex8"}:(r=se.hex3.exec(a))?{r:c(r[1]+""+r[1]),g:c(r[2]+""+r[2]),b:c(r[3]+""+r[3]),format:g?"name":"hex"}:!1}function $(a){var g,r;return a=a||{level:"AA",size:"small"},g=(a.level||"AA").toUpperCase(),r=(a.size||"small").toLowerCase(),g!=="AA"&&g!=="AAA"&&(g="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:g,size:r}}Je.exports?Je.exports=F:!(I=function(){return F}.call(re,n,re,Je),I!==void 0&&(Je.exports=I))})(Math)},bT9E:function(Je,re,n){"use strict";n.d(re,"a",function(){return S});var I=n("VTBJ");function S(xe,N){var i=Object(I.a)({},xe);return Array.isArray(N)&&N.forEach(function(u){delete i[u]}),i}},biw7:function(Je,re,n){"use strict";var I=n("q1tI"),S=n.n(I),xe=I.createContext(null);re.a=xe},fj85:function(Je,re,n){"use strict";n.d(re,"a",function(){return u}),n.d(re,"b",function(){return F});var I=n("q1tI"),S=n.n(I),xe=n("ZW5e"),N=n.n(xe),i=function(ce){var ye=ce.title,te=ce.style,P=te===void 0?{}:te;return S.a.createElement("div",{className:N.a.panelTitleContainer,style:P},S.a.createElement("div",null,ye))},u=i,de=n("PsNh"),ee=n.n(de),U=function(ce){var ye=ce.title,te=ce.children;return S.a.createElement("div",{className:ee.a.selectWrapContainer},S.a.createElement("span",null,ye),te)},F=U},fyJ8:function(Je,re,n){"use strict";var I=n("rePB"),S=n("VTBJ"),xe=n("Ff2n"),N=n("U8pU"),i=n("q1tI"),u=n.n(i),de=n("TSYQ"),ee=n.n(de),U=n("c+Xe"),F=n("sR1s");function Q(R){return R&&Object(N.a)(R)==="object"&&!Array.isArray(R)&&!i.isValidElement(R)}function ce(R){return typeof R=="string"?!0:Object(U.c)(R)}function ye(R,le){var J,ue=R.prefixCls,fe=R.className,ie=R.record,Ee=R.index,W=R.dataIndex,V=R.render,q=R.children,O=R.component,y=O===void 0?"td":O,b=R.colSpan,D=R.rowSpan,k=R.fixLeft,M=R.fixRight,Ce=R.firstFixLeft,X=R.lastFixLeft,A=R.firstFixRight,K=R.lastFixRight,v=R.appendNode,s=R.additionalProps,f=s===void 0?{}:s,c=R.ellipsis,m=R.align,j=R.rowType,Z=R.isSticky,ve="".concat(ue,"-cell"),Y,ne;if(q)ne=q;else{var se=Object(F.b)(ie,W);if(ne=se,V){var ae=V(se,ie,Ee);Q(ae)?(ne=ae.children,Y=ae.props):ne=ae}}Object(N.a)(ne)==="object"&&!Array.isArray(ne)&&!i.isValidElement(ne)&&(ne=null),c&&(X||A)&&(ne=i.createElement("span",{className:"".concat(ve,"-content")},ne));var H=Y||{},$=H.colSpan,a=H.rowSpan,g=H.style,r=H.className,w=Object(xe.a)(H,["colSpan","rowSpan","style","className"]),G=$!==void 0?$:b,oe=a!==void 0?a:D;if(G===0||oe===0)return null;var z={},we=typeof k=="number",ze=typeof M=="number";we&&(z.position="sticky",z.left=k),ze&&(z.position="sticky",z.right=M);var We={};m&&(We.textAlign=m);var Le,Ie=c===!0?{showTitle:!0}:c;Ie&&(Ie.showTitle||j==="header")&&(typeof ne=="string"||typeof ne=="number"?Le=ne.toString():i.isValidElement(ne)&&typeof ne.props.children=="string"&&(Le=ne.props.children));var Qe=Object(S.a)(Object(S.a)(Object(S.a)({title:Le},w),f),{},{colSpan:G&&G!==1?G:null,rowSpan:oe&&oe!==1?oe:null,className:ee()(ve,fe,(J={},Object(I.a)(J,"".concat(ve,"-fix-left"),we),Object(I.a)(J,"".concat(ve,"-fix-left-first"),Ce),Object(I.a)(J,"".concat(ve,"-fix-left-last"),X),Object(I.a)(J,"".concat(ve,"-fix-right"),ze),Object(I.a)(J,"".concat(ve,"-fix-right-first"),A),Object(I.a)(J,"".concat(ve,"-fix-right-last"),K),Object(I.a)(J,"".concat(ve,"-ellipsis"),c),Object(I.a)(J,"".concat(ve,"-with-append"),v),Object(I.a)(J,"".concat(ve,"-fix-sticky"),(we||ze)&&Z),J),f.className,r),style:Object(S.a)(Object(S.a)(Object(S.a)(Object(S.a)({},f.style),We),z),g),ref:ce(y)?le:null});return i.createElement(y,Object.assign({},Qe),v,ne)}var te=i.forwardRef(ye);te.displayName="Cell";var P=i.memo(te,function(R,le){return le.shouldCellUpdate?!le.shouldCellUpdate(le.record,R.record):!1});re.a=P},h78n:function(Je,re,n){"use strict";n.d(re,"a",function(){return Ce});var I=n("q1tI"),S=n.n(I),xe=n("TSYQ"),N=n.n(xe),i={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},u=function(K){var v=K.map(function(){return Object(I.useRef)()}),s=Object(I.useRef)();return Object(I.useEffect)(function(){var f=Date.now(),c=!1;Object.keys(v).forEach(function(m){var j=v[m].current;if(!j)return;c=!0;var Z=j.style;Z.transitionDuration=".3s, .3s, .3s, .06s",s.current&&f-s.current<100&&(Z.transitionDuration="0s, 0s")}),c&&(s.current=Date.now())}),[v]};function de(){return de=Object.assign||function(A){for(var K=1;K1&&arguments[1]!==void 0?arguments[1]:!1,se=Y.getAttribute("id")||Y.getAttribute("data-reactid")||Y.getAttribute("name");if(ne&&X[se])return X[se];var ae=window.getComputedStyle(Y),H=ae.getPropertyValue("box-sizing")||ae.getPropertyValue("-moz-box-sizing")||ae.getPropertyValue("-webkit-box-sizing"),$=parseFloat(ae.getPropertyValue("padding-bottom"))+parseFloat(ae.getPropertyValue("padding-top")),a=parseFloat(ae.getPropertyValue("border-bottom-width"))+parseFloat(ae.getPropertyValue("border-top-width")),g=Ce.map(function(w){return"".concat(w,":").concat(ae.getPropertyValue(w))}).join(";"),r={sizingStyle:g,paddingSize:$,borderSize:a,boxSizing:H};return ne&&se&&(X[se]=r),r}function v(Y){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ae=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;A||(A=document.createElement("textarea"),A.setAttribute("tab-index","-1"),A.setAttribute("aria-hidden","true"),document.body.appendChild(A)),Y.getAttribute("wrap")?A.setAttribute("wrap",Y.getAttribute("wrap")):A.removeAttribute("wrap");var H=K(Y,ne),$=H.paddingSize,a=H.borderSize,g=H.boxSizing,r=H.sizingStyle;A.setAttribute("style","".concat(r,";").concat(S)),A.value=Y.value||Y.placeholder||"";var w=Number.MIN_SAFE_INTEGER,G=Number.MAX_SAFE_INTEGER,oe=A.scrollHeight,z;if(g==="border-box"?oe+=a:g==="content-box"&&(oe-=$),se!==null||ae!==null){A.value=" ";var we=A.scrollHeight-$;se!==null&&(w=we*se,g==="border-box"&&(w=w+$+a),oe=Math.max(w,oe)),ae!==null&&(G=we*ae,g==="border-box"&&(G=G+$+a),z=oe>G?"":"hidden",oe=Math.min(G,oe))}return{height:oe,minHeight:w,maxHeight:G,overflowY:z,resize:"none"}}var s=n("Gytx"),f=n.n(s),c;(function(Y){Y[Y.NONE=0]="NONE",Y[Y.RESIZING=1]="RESIZING",Y[Y.RESIZED=2]="RESIZED"})(c||(c={}));var m=function(Y){Object(N.a)(se,Y);var ne=Object(i.a)(se);function se(ae){var H;return Object(M.a)(this,se),H=ne.call(this,ae),H.nextFrameActionId=void 0,H.resizeFrameId=void 0,H.textArea=void 0,H.saveTextArea=function($){H.textArea=$},H.handleResize=function($){var a=H.state.resizeStatus,g=H.props,r=g.autoSize,w=g.onResize;if(a!==c.NONE)return;typeof w=="function"&&w($),r&&H.resizeOnNextFrame()},H.resizeOnNextFrame=function(){cancelAnimationFrame(H.nextFrameActionId),H.nextFrameActionId=requestAnimationFrame(H.resizeTextarea)},H.resizeTextarea=function(){var $=H.props.autoSize;if(!$||!H.textArea)return;var a=$.minRows,g=$.maxRows,r=v(H.textArea,!1,a,g);H.setState({textareaStyles:r,resizeStatus:c.RESIZING},function(){cancelAnimationFrame(H.resizeFrameId),H.resizeFrameId=requestAnimationFrame(function(){H.setState({resizeStatus:c.RESIZED},function(){H.resizeFrameId=requestAnimationFrame(function(){H.setState({resizeStatus:c.NONE}),H.fixFirefoxAutoScroll()})})})})},H.renderTextArea=function(){var $=H.props,a=$.prefixCls,g=a===void 0?"rc-textarea":a,r=$.autoSize,w=$.onResize,G=$.className,oe=$.disabled,z=H.state,we=z.textareaStyles,ze=z.resizeStatus,We=Object(b.a)(H.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Le=k()(g,G,Object(ee.a)({},"".concat(g,"-disabled"),oe));"value"in We&&(We.value=We.value||"");var Ie=Object(de.a)(Object(de.a)(Object(de.a)({},H.props.style),we),ze===c.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return u.createElement(y,{onResize:H.handleResize,disabled:!(r||w)},u.createElement("textarea",Object(I.a)({},We,{className:Le,style:Ie,ref:H.saveTextArea})))},H.state={textareaStyles:{},resizeStatus:c.NONE},H}return Object(xe.a)(se,[{key:"componentDidUpdate",value:function(H){(H.value!==this.props.value||!f()(H.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 H=this.textArea.selectionStart,$=this.textArea.selectionEnd;this.textArea.setSelectionRange(H,$)}}catch(a){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(u.Component),j=m,Z=function(Y){Object(N.a)(se,Y);var ne=Object(i.a)(se);function se(ae){var H;Object(M.a)(this,se),H=ne.call(this,ae),H.resizableTextArea=void 0,H.focus=function(){H.resizableTextArea.textArea.focus()},H.saveTextArea=function(a){H.resizableTextArea=a},H.handleChange=function(a){var g=H.props.onChange;H.setValue(a.target.value,function(){H.resizableTextArea.resizeTextarea()}),g&&g(a)},H.handleKeyDown=function(a){var g=H.props,r=g.onPressEnter,w=g.onKeyDown;a.keyCode===13&&r&&r(a),w&&w(a)};var $=typeof ae.value=="undefined"||ae.value===null?ae.defaultValue:ae.value;return H.state={value:$},H}return Object(xe.a)(se,[{key:"setValue",value:function(H,$){"value"in this.props||this.setState({value:H},$)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return u.createElement(j,Object(I.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(H){return"value"in H?{value:H.value}:null}}]),se}(u.Component),ve=re.default=Z},ZW5e:function(Je,re,n){Je.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(Je,re,n){"use strict";function I(Q){return typeof Q=="object"&&Q!=null&&Q.nodeType===1}function M(Q,ce){return(!ce||Q!=="hidden")&&Q!=="visible"&&Q!=="clip"}function xe(Q,ce){if(Q.clientHeightce||R>Q&&le=ce&&J>=ye?R-Q-te:le>ce&&Jye?le-ce+P:0}var i=function(Q,ce){var ye=window,te=ce.scrollMode,P=ce.block,R=ce.inline,le=ce.boundary,J=ce.skipOverflowHiddenElements,ue=typeof le=="function"?le:function(we){return we!==le};if(!I(Q))throw new TypeError("Invalid target");for(var fe=document.scrollingElement||document.documentElement,ie=[],Ee=Q;I(Ee)&&ue(Ee);){if((Ee=Ee.parentElement)===fe){ie.push(Ee);break}Ee!=null&&Ee===document.body&&xe(Ee)&&!xe(document.documentElement)||Ee!=null&&xe(Ee,J)&&ie.push(Ee)}for(var W=ye.visualViewport?ye.visualViewport.width:innerWidth,V=ye.visualViewport?ye.visualViewport.height:innerHeight,q=window.scrollX||pageXOffset,O=window.scrollY||pageYOffset,y=Q.getBoundingClientRect(),b=y.height,D=y.width,k=y.top,S=y.right,Ce=y.bottom,X=y.left,A=P==="start"||P==="nearest"?k:P==="end"?Ce:k+b/2,K=R==="center"?X+D/2:R==="end"?S:X,v=[],s=0;s=0&&X>=0&&Ce<=V&&S<=W&&k>=Z&&Ce<=Y&&X>=ne&&S<=ve)return v;var se=getComputedStyle(f),ae=parseInt(se.borderLeftWidth,10),H=parseInt(se.borderTopWidth,10),$=parseInt(se.borderRightWidth,10),a=parseInt(se.borderBottomWidth,10),g=0,r=0,w="offsetWidth"in f?f.offsetWidth-f.clientWidth-ae-$:0,G="offsetHeight"in f?f.offsetHeight-f.clientHeight-H-a:0;if(fe===f)g=P==="start"?A:P==="end"?A-V:P==="nearest"?N(O,O+V,V,H,a,O+A,O+A+b,b):A-V/2,r=R==="start"?K:R==="center"?K-W/2:R==="end"?K-W:N(q,q+W,W,ae,$,q+K,q+K+D,D),g=Math.max(0,g+O),r=Math.max(0,r+q);else{g=P==="start"?A-Z-H:P==="end"?A-Y+a+G:P==="nearest"?N(Z,Y,m,H,a+G,A,A+b,b):A-(Z+m/2)+G/2,r=R==="start"?K-ne-ae:R==="center"?K-(ne+j/2)+w/2:R==="end"?K-ve+$+w:N(ne,ve,j,ae,$+w,K,K+D,D);var oe=f.scrollLeft,z=f.scrollTop;A+=z-(g=Math.max(0,Math.min(z+g,f.scrollHeight-m+G))),K+=oe-(r=Math.max(0,Math.min(oe+r,f.scrollWidth-j+w)))}v.push({el:f,top:g,left:r})}return v};function u(Q){return Q===Object(Q)&&Object.keys(Q).length!==0}function de(Q,ce){ce===void 0&&(ce="auto");var ye="scrollBehavior"in document.body.style;Q.forEach(function(te){var P=te.el,R=te.top,le=te.left;P.scroll&&ye?P.scroll({top:R,left:le,behavior:ce}):(P.scrollTop=R,P.scrollLeft=le)})}function ee(Q){return Q===!1?{block:"end",inline:"nearest"}:u(Q)?Q:{block:"start",inline:"nearest"}}function U(Q,ce){var ye=!Q.ownerDocument.documentElement.contains(Q);if(u(ce)&&typeof ce.behavior=="function")return ce.behavior(ye?[]:i(Q,ce));if(ye)return;var te=ee(ce);return de(i(Q,te),te.behavior)}var F=re.a=U},Zss7:function(Je,re,n){var I;(function(M){var xe=/^\s+/,N=/\s+$/,i=0,u=M.round,de=M.min,ee=M.max,U=M.random;function F(a,g){if(a=a||"",g=g||{},a instanceof F)return a;if(!(this instanceof F))return new F(a,g);var r=Q(a);this._originalInput=a,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=u(100*this._a)/100,this._format=g.format||r.format,this._gradientType=g.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=r.ok,this._tc_id=i++}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 a=this.toRgb();return(a.r*299+a.g*587+a.b*114)/1e3},getLuminance:function(){var a=this.toRgb(),g,r,w,G,oe,z;return g=a.r/255,r=a.g/255,w=a.b/255,g<=.03928?G=g/12.92:G=M.pow((g+.055)/1.055,2.4),r<=.03928?oe=r/12.92:oe=M.pow((r+.055)/1.055,2.4),w<=.03928?z=w/12.92:z=M.pow((w+.055)/1.055,2.4),.2126*G+.7152*oe+.0722*z},setAlpha:function(a){return this._a=v(a),this._roundA=u(100*this._a)/100,this},toHsv:function(){var a=P(this._r,this._g,this._b);return{h:a.h*360,s:a.s,v:a.v,a:this._a}},toHsvString:function(){var a=P(this._r,this._g,this._b),g=u(a.h*360),r=u(a.s*100),w=u(a.v*100);return this._a==1?"hsv("+g+", "+r+"%, "+w+"%)":"hsva("+g+", "+r+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var a=ye(this._r,this._g,this._b);return{h:a.h*360,s:a.s,l:a.l,a:this._a}},toHslString:function(){var a=ye(this._r,this._g,this._b),g=u(a.h*360),r=u(a.s*100),w=u(a.l*100);return this._a==1?"hsl("+g+", "+r+"%, "+w+"%)":"hsla("+g+", "+r+"%, "+w+"%, "+this._roundA+")"},toHex:function(a){return le(this._r,this._g,this._b,a)},toHexString:function(a){return"#"+this.toHex(a)},toHex8:function(a){return J(this._r,this._g,this._b,this._a,a)},toHex8String:function(a){return"#"+this.toHex8(a)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(s(this._r,255)*100)+"%",g:u(s(this._g,255)*100)+"%",b:u(s(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+u(s(this._r,255)*100)+"%, "+u(s(this._g,255)*100)+"%, "+u(s(this._b,255)*100)+"%)":"rgba("+u(s(this._r,255)*100)+"%, "+u(s(this._g,255)*100)+"%, "+u(s(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:A[le(this._r,this._g,this._b,!0)]||!1},toFilter:function(a){var g="#"+ue(this._r,this._g,this._b,this._a),r=g,w=this._gradientType?"GradientType = 1, ":"";if(a){var G=F(a);r="#"+ue(G._r,G._g,G._b,G._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+g+",endColorstr="+r+")"},toString:function(a){var g=!!a;a=a||this._format;var r=!1,w=this._a<1&&this._a>=0,G=!g&&w&&(a==="hex"||a==="hex6"||a==="hex3"||a==="hex4"||a==="hex8"||a==="name");return G?a==="name"&&this._a===0?this.toName():this.toRgbString():(a==="rgb"&&(r=this.toRgbString()),a==="prgb"&&(r=this.toPercentageRgbString()),(a==="hex"||a==="hex6")&&(r=this.toHexString()),a==="hex3"&&(r=this.toHexString(!0)),a==="hex4"&&(r=this.toHex8String(!0)),a==="hex8"&&(r=this.toHex8String()),a==="name"&&(r=this.toName()),a==="hsl"&&(r=this.toHslString()),a==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return F(this.toString())},_applyModification:function(a,g){var r=a.apply(null,[this].concat([].slice.call(g)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(W,arguments)},brighten:function(){return this._applyModification(V,arguments)},darken:function(){return this._applyModification(q,arguments)},desaturate:function(){return this._applyModification(fe,arguments)},saturate:function(){return this._applyModification(ie,arguments)},greyscale:function(){return this._applyModification(Ee,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(a,g){return a.apply(null,[this].concat([].slice.call(g)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(Ce,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(b,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},F.fromRatio=function(a,g){if(typeof a=="object"){var r={};for(var w in a)a.hasOwnProperty(w)&&(w==="a"?r[w]=a[w]:r[w]=ve(a[w]));a=r}return F(a,g)};function Q(a){var g={r:0,g:0,b:0},r=1,w=null,G=null,oe=null,z=!1,we=!1;return typeof a=="string"&&(a=H(a)),typeof a=="object"&&(ae(a.r)&&ae(a.g)&&ae(a.b)?(g=ce(a.r,a.g,a.b),z=!0,we=String(a.r).substr(-1)==="%"?"prgb":"rgb"):ae(a.h)&&ae(a.s)&&ae(a.v)?(w=ve(a.s),G=ve(a.v),g=R(a.h,w,G),z=!0,we="hsv"):ae(a.h)&&ae(a.s)&&ae(a.l)&&(w=ve(a.s),oe=ve(a.l),g=te(a.h,w,oe),z=!0,we="hsl"),a.hasOwnProperty("a")&&(r=a.a)),r=v(r),{ok:z,format:a.format||we,r:de(255,ee(g.r,0)),g:de(255,ee(g.g,0)),b:de(255,ee(g.b,0)),a:r}}function ce(a,g,r){return{r:s(a,255)*255,g:s(g,255)*255,b:s(r,255)*255}}function ye(a,g,r){a=s(a,255),g=s(g,255),r=s(r,255);var w=ee(a,g,r),G=de(a,g,r),oe,z,we=(w+G)/2;if(w==G)oe=z=0;else{var ze=w-G;z=we>.5?ze/(2-w-G):ze/(w+G);switch(w){case a:oe=(g-r)/ze+(g1&&(Ie-=1),Ie<1/6?We+(Le-We)*6*Ie:Ie<1/2?Le:Ie<2/3?We+(Le-We)*(2/3-Ie)*6:We}if(g===0)w=G=oe=r;else{var we=r<.5?r*(1+g):r+g-r*g,ze=2*r-we;w=z(ze,we,a+1/3),G=z(ze,we,a),oe=z(ze,we,a-1/3)}return{r:w*255,g:G*255,b:oe*255}}function P(a,g,r){a=s(a,255),g=s(g,255),r=s(r,255);var w=ee(a,g,r),G=de(a,g,r),oe,z,we=w,ze=w-G;if(z=w===0?0:ze/w,w==G)oe=0;else{switch(w){case a:oe=(g-r)/ze+(g>1)+720)%360;--g;)w.h=(w.h+G)%360,oe.push(F(w));return oe}function Ce(a,g){g=g||6;for(var r=F(a).toHsv(),w=r.h,G=r.s,oe=r.v,z=[],we=1/g;g--;)z.push(F({h:w,s:G,v:oe})),oe=(oe+we)%1;return z}F.mix=function(a,g,r){r=r===0?0:r||50;var w=F(a).toRgb(),G=F(g).toRgb(),oe=r/100,z={r:(G.r-w.r)*oe+w.r,g:(G.g-w.g)*oe+w.g,b:(G.b-w.b)*oe+w.b,a:(G.a-w.a)*oe+w.a};return F(z)},F.readability=function(a,g){var r=F(a),w=F(g);return(M.max(r.getLuminance(),w.getLuminance())+.05)/(M.min(r.getLuminance(),w.getLuminance())+.05)},F.isReadable=function(a,g,r){var w=F.readability(a,g),G,oe;oe=!1,G=$(r);switch(G.level+G.size){case"AAsmall":case"AAAlarge":oe=w>=4.5;break;case"AAlarge":oe=w>=3;break;case"AAAsmall":oe=w>=7;break}return oe},F.mostReadable=function(a,g,r){var w=null,G=0,oe,z,we,ze;r=r||{},z=r.includeFallbackColors,we=r.level,ze=r.size;for(var We=0;WeG&&(G=oe,w=F(g[We]));return F.isReadable(a,w,{level:we,size:ze})||!z?w:(r.includeFallbackColors=!1,F.mostReadable(a,["#fff","#000"],r))};var X=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"},A=F.hexNames=K(X);function K(a){var g={};for(var r in a)a.hasOwnProperty(r)&&(g[a[r]]=r);return g}function v(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function s(a,g){m(a)&&(a="100%");var r=j(a);return a=de(g,ee(0,parseFloat(a))),r&&(a=parseInt(a*g,10)/100),M.abs(a-g)<1e-6?1:a%g/parseFloat(g)}function f(a){return de(1,ee(0,a))}function c(a){return parseInt(a,16)}function m(a){return typeof a=="string"&&a.indexOf(".")!=-1&&parseFloat(a)===1}function j(a){return typeof a=="string"&&a.indexOf("%")!=-1}function Z(a){return a.length==1?"0"+a:""+a}function ve(a){return a<=1&&(a=a*100+"%"),a}function Y(a){return M.round(parseFloat(a)*255).toString(16)}function ne(a){return c(a)/255}var se=function(){var a="[-\\+]?\\d+%?",g="[-\\+]?\\d*\\.\\d+%?",r="(?:"+g+")|(?:"+a+")",w="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",G="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+w),rgba:new RegExp("rgba"+G),hsl:new RegExp("hsl"+w),hsla:new RegExp("hsla"+G),hsv:new RegExp("hsv"+w),hsva:new RegExp("hsva"+G),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 ae(a){return!!se.CSS_UNIT.exec(a)}function H(a){a=a.replace(xe,"").replace(N,"").toLowerCase();var g=!1;if(X[a])a=X[a],g=!0;else if(a=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=se.rgb.exec(a))?{r:r[1],g:r[2],b:r[3]}:(r=se.rgba.exec(a))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=se.hsl.exec(a))?{h:r[1],s:r[2],l:r[3]}:(r=se.hsla.exec(a))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=se.hsv.exec(a))?{h:r[1],s:r[2],v:r[3]}:(r=se.hsva.exec(a))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=se.hex8.exec(a))?{r:c(r[1]),g:c(r[2]),b:c(r[3]),a:ne(r[4]),format:g?"name":"hex8"}:(r=se.hex6.exec(a))?{r:c(r[1]),g:c(r[2]),b:c(r[3]),format:g?"name":"hex"}:(r=se.hex4.exec(a))?{r:c(r[1]+""+r[1]),g:c(r[2]+""+r[2]),b:c(r[3]+""+r[3]),a:ne(r[4]+""+r[4]),format:g?"name":"hex8"}:(r=se.hex3.exec(a))?{r:c(r[1]+""+r[1]),g:c(r[2]+""+r[2]),b:c(r[3]+""+r[3]),format:g?"name":"hex"}:!1}function $(a){var g,r;return a=a||{level:"AA",size:"small"},g=(a.level||"AA").toUpperCase(),r=(a.size||"small").toLowerCase(),g!=="AA"&&g!=="AAA"&&(g="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:g,size:r}}Je.exports?Je.exports=F:!(I=function(){return F}.call(re,n,re,Je),I!==void 0&&(Je.exports=I))})(Math)},bT9E:function(Je,re,n){"use strict";n.d(re,"a",function(){return M});var I=n("VTBJ");function M(xe,N){var i=Object(I.a)({},xe);return Array.isArray(N)&&N.forEach(function(u){delete i[u]}),i}},biw7:function(Je,re,n){"use strict";var I=n("q1tI"),M=n.n(I),xe=I.createContext(null);re.a=xe},fj85:function(Je,re,n){"use strict";n.d(re,"a",function(){return u}),n.d(re,"b",function(){return F});var I=n("q1tI"),M=n.n(I),xe=n("ZW5e"),N=n.n(xe),i=function(ce){var ye=ce.title,te=ce.style,P=te===void 0?{}:te;return M.a.createElement("div",{className:N.a.panelTitleContainer,style:P},M.a.createElement("div",null,ye))},u=i,de=n("PsNh"),ee=n.n(de),U=function(ce){var ye=ce.title,te=ce.children;return M.a.createElement("div",{className:ee.a.selectWrapContainer},M.a.createElement("span",null,ye),te)},F=U},fyJ8:function(Je,re,n){"use strict";var I=n("rePB"),M=n("VTBJ"),xe=n("Ff2n"),N=n("U8pU"),i=n("q1tI"),u=n.n(i),de=n("TSYQ"),ee=n.n(de),U=n("c+Xe"),F=n("sR1s");function Q(R){return R&&Object(N.a)(R)==="object"&&!Array.isArray(R)&&!i.isValidElement(R)}function ce(R){return typeof R=="string"?!0:Object(U.c)(R)}function ye(R,le){var J,ue=R.prefixCls,fe=R.className,ie=R.record,Ee=R.index,W=R.dataIndex,V=R.render,q=R.children,O=R.component,y=O===void 0?"td":O,b=R.colSpan,D=R.rowSpan,k=R.fixLeft,S=R.fixRight,Ce=R.firstFixLeft,X=R.lastFixLeft,A=R.firstFixRight,K=R.lastFixRight,v=R.appendNode,s=R.additionalProps,f=s===void 0?{}:s,c=R.ellipsis,m=R.align,j=R.rowType,Z=R.isSticky,ve="".concat(ue,"-cell"),Y,ne;if(q)ne=q;else{var se=Object(F.b)(ie,W);if(ne=se,V){var ae=V(se,ie,Ee);Q(ae)?(ne=ae.children,Y=ae.props):ne=ae}}Object(N.a)(ne)==="object"&&!Array.isArray(ne)&&!i.isValidElement(ne)&&(ne=null),c&&(X||A)&&(ne=i.createElement("span",{className:"".concat(ve,"-content")},ne));var H=Y||{},$=H.colSpan,a=H.rowSpan,g=H.style,r=H.className,w=Object(xe.a)(H,["colSpan","rowSpan","style","className"]),G=$!==void 0?$:b,oe=a!==void 0?a:D;if(G===0||oe===0)return null;var z={},we=typeof k=="number",ze=typeof S=="number";we&&(z.position="sticky",z.left=k),ze&&(z.position="sticky",z.right=S);var We={};m&&(We.textAlign=m);var Le,Ie=c===!0?{showTitle:!0}:c;Ie&&(Ie.showTitle||j==="header")&&(typeof ne=="string"||typeof ne=="number"?Le=ne.toString():i.isValidElement(ne)&&typeof ne.props.children=="string"&&(Le=ne.props.children));var Qe=Object(M.a)(Object(M.a)(Object(M.a)({title:Le},w),f),{},{colSpan:G&&G!==1?G:null,rowSpan:oe&&oe!==1?oe:null,className:ee()(ve,fe,(J={},Object(I.a)(J,"".concat(ve,"-fix-left"),we),Object(I.a)(J,"".concat(ve,"-fix-left-first"),Ce),Object(I.a)(J,"".concat(ve,"-fix-left-last"),X),Object(I.a)(J,"".concat(ve,"-fix-right"),ze),Object(I.a)(J,"".concat(ve,"-fix-right-first"),A),Object(I.a)(J,"".concat(ve,"-fix-right-last"),K),Object(I.a)(J,"".concat(ve,"-ellipsis"),c),Object(I.a)(J,"".concat(ve,"-with-append"),v),Object(I.a)(J,"".concat(ve,"-fix-sticky"),(we||ze)&&Z),J),f.className,r),style:Object(M.a)(Object(M.a)(Object(M.a)(Object(M.a)({},f.style),We),z),g),ref:ce(y)?le:null});return i.createElement(y,Object.assign({},Qe),v,ne)}var te=i.forwardRef(ye);te.displayName="Cell";var P=i.memo(te,function(R,le){return le.shouldCellUpdate?!le.shouldCellUpdate(le.record,R.record):!1});re.a=P},h78n:function(Je,re,n){"use strict";n.d(re,"a",function(){return Ce});var I=n("q1tI"),M=n.n(I),xe=n("TSYQ"),N=n.n(xe),i={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},u=function(K){var v=K.map(function(){return Object(I.useRef)()}),s=Object(I.useRef)();return Object(I.useEffect)(function(){var f=Date.now(),c=!1;Object.keys(v).forEach(function(m){var j=v[m].current;if(!j)return;c=!0;var Z=j.style;Z.transitionDuration=".3s, .3s, .3s, .06s",s.current&&f-s.current<100&&(Z.transitionDuration="0s, 0s")}),c&&(s.current=Date.now())}),[v]};function de(){return de=Object.assign||function(A){for(var K=1;KA.length)&&(K=A.length);for(var v=0,s=new Array(K);v=0)continue;if(!Object.prototype.propertyIsEnumerable.call(A,s))continue;v[s]=A[s]}}return v}function P(A,K){if(A==null)return{};var v={},s=Object.keys(A),f,c;for(c=0;c=0)continue;v[f]=A[f]}return v}var R=function(K){var v=K.className,s=K.percent,f=K.prefixCls,c=K.strokeColor,m=K.strokeLinecap,j=K.strokeWidth,Z=K.style,ve=K.trailColor,Y=K.trailWidth,ne=K.transition,se=te(K,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete se.gapPosition;var ae=Array.isArray(s)?s:[s],H=Array.isArray(c)?c:[c],$=u(ae),a=ee($,1),g=a[0],r=j/2,w=100-j/2,G="M ".concat(m==="round"?r:0,",").concat(r,` - L `).concat(m==="round"?w:100,",").concat(r),oe="0 0 100 ".concat(j),z=0;return S.a.createElement("svg",de({className:N()("".concat(f,"-line"),v),viewBox:oe,preserveAspectRatio:"none",style:Z},se),S.a.createElement("path",{className:"".concat(f,"-line-trail"),d:G,strokeLinecap:m,stroke:ve,strokeWidth:Y||j,fillOpacity:"0"}),ae.map(function(we,ze){var We={strokeDasharray:"".concat(we,"px, 100px"),strokeDashoffset:"-".concat(z,"px"),transition:ne||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Le=H[ze]||H[H.length-1];return z+=we,S.a.createElement("path",{key:ze,className:"".concat(f,"-line-path"),d:G,strokeLinecap:m,stroke:Le,strokeWidth:j,fillOpacity:"0",ref:g[ze],style:We})}))};R.defaultProps=i;var le=R;function J(){return J=Object.assign||function(A){for(var K=1;KA.length)&&(K=A.length);for(var v=0,s=new Array(K);v=0)continue;if(!Object.prototype.propertyIsEnumerable.call(A,s))continue;v[s]=A[s]}}return v}function O(A,K){if(A==null)return{};var v={},s=Object.keys(A),f,c;for(c=0;c=0)continue;v[f]=A[f]}return v}var y=0;function b(A){return+A.replace("%","")}function D(A){return Array.isArray(A)?A:[A]}function k(A,K,v,s){var f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,c=arguments.length>5?arguments[5]:void 0,m=50-s/2,j=0,Z=-m,ve=0,Y=-2*m;switch(c){case"left":j=-m,Z=0,ve=2*m,Y=0;break;case"right":j=m,Z=0,ve=-2*m,Y=0;break;case"bottom":Z=m,Y=2*m;break;default:}var ne="M 50,50 m ".concat(j,",").concat(Z,` a `).concat(m,",").concat(m," 0 1 1 ").concat(ve,",").concat(-Y,` - a `).concat(m,",").concat(m," 0 1 1 ").concat(-ve,",").concat(Y),se=Math.PI*2*m,ae={stroke:v,strokeDasharray:"".concat(K/100*(se-f),"px ").concat(se,"px"),strokeDashoffset:"-".concat(f/2+A/100*(se-f),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ne,pathStyle:ae}}var M=function(K){var v=K.prefixCls,s=K.strokeWidth,f=K.trailWidth,c=K.gapDegree,m=K.gapPosition,j=K.trailColor,Z=K.strokeLinecap,ve=K.style,Y=K.className,ne=K.strokeColor,se=K.percent,ae=q(K,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),H=Object(I.useMemo)(function(){return y+=1,y},[]),$=k(0,100,j,s,c,m),a=$.pathString,g=$.pathStyle,r=D(se),w=D(ne),G=w.find(function(We){return Object.prototype.toString.call(We)==="[object Object]"}),oe=u(r),z=ue(oe,1),we=z[0],ze=function(){var Le=0;return r.map(function(Ie,Qe){var jt=w[Qe]||w[w.length-1],It=Object.prototype.toString.call(jt)==="[object Object]"?"url(#".concat(v,"-gradient-").concat(H,")"):"",Rt=k(Le,Ie,jt,s,c,m);return Le+=Ie,S.a.createElement("path",{key:Qe,className:"".concat(v,"-circle-path"),d:Rt.pathString,stroke:It,strokeLinecap:Z,strokeWidth:s,opacity:Ie===0?0:1,fillOpacity:"0",style:Rt.pathStyle,ref:we[Qe]})})};return S.a.createElement("svg",J({className:N()("".concat(v,"-circle"),Y),viewBox:"0 0 100 100",style:ve},ae),G&&S.a.createElement("defs",null,S.a.createElement("linearGradient",{id:"".concat(v,"-gradient-").concat(H),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(G).sort(function(We,Le){return b(We)-b(Le)}).map(function(We,Le){return S.a.createElement("stop",{key:Le,offset:We,stopColor:G[We]})}))),S.a.createElement("path",{className:"".concat(v,"-circle-trail"),d:a,stroke:j,strokeLinecap:Z,strokeWidth:f||s,fillOpacity:"0",style:g}),ze().reverse())};M.defaultProps=i;var Ce=M,X={Line:le,Circle:Ce}},hW8S:function(Je,re,n){"use strict";n.d(re,"a",function(){return N}),n.d(re,"c",function(){return i}),n.d(re,"b",function(){return u});var I=n("VTBJ"),S=n("Ff2n"),xe=n("Kwbf"),N="RC_TABLE_INTERNAL_COL_DEFINE";function i(de){var ee=de.expandable,U=Object(S.a)(de,["expandable"]);return"expandable"in de?Object(I.a)(Object(I.a)({},U),ee):U}function u(de){return Object.keys(de).reduce(function(ee,U){return(U.substr(0,5)==="data-"||U.substr(0,5)==="aria-")&&(ee[U]=de[U]),ee},{})}},k3GJ:function(Je,re,n){"use strict";n.d(re,"a",function(){return mo});var I=n("rePB"),S=n("ODXe"),xe=n("Ff2n"),N=n("VTBJ"),i=n("q1tI"),u=n("TSYQ"),de=n.n(u),ee=n("Zm9Q"),U=n("6cGi"),F=n("KQm4"),Q=n("xEkU"),ce=n.n(Q),ye=n("t23M");function te(l){var E=Object(i.useRef)(),x=Object(i.useRef)(!1);function p(){for(var e=arguments.length,o=new Array(e),t=0;tT&&(pe=T-me),Object(i.useMemo)(function(){if(!o.length)return[0,0];for(var _e=o.length,$e=_e,rt=0;rt<_e;rt+=1){var qe=l.get(o[rt].key)||ie;if(qe[_]+qe[h]>C+pe){$e=rt-1;break}}for(var lt=0,it=_e-1;it>=0;it-=1){var tt=l.get(o[it].key)||ie;if(tt[_]1&&arguments[1]!==void 0?arguments[1]:!1,p=E&&typeof E.getBoundingClientRect=="function"&&E.getBoundingClientRect().width;if(p){if(x){var e=getComputedStyle(E),o=e.marginLeft,t=e.marginRight;p+=+o.replace("px","")+ +t.replace("px","")}p=+p.toFixed(6)}return p||0},Le=function(E,x,p){E&&Object(A.a)(E.style)==="object"&&(E.style[x]=p)},Ie=function(){return r.any},Qe=n("bdgK"),jt=n("i8i4"),It=n.n(jt),Rt=n("wgJM"),Lt=n("l4aY"),Jt=n("m+aA"),L=n("c+Xe"),he=n("zT1h"),be=n("QC+M");function Me(l,E,x){return x?l[0]===E[0]:l[0]===E[0]&&l[1]===E[1]}function Pe(l,E,x){var p=l[E]||{};return Object(N.a)(Object(N.a)({},p),x)}function Se(l,E,x,p){for(var e=x.points,o=Object.keys(l),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;E();var o=Object(Rt.a)(function(){e<=1?p({isCanceled:function(){return o!==l.current}}):x(p,e-1)});l.current=o}return i.useEffect(function(){return function(){E()}},[]),[x,E]},zn=[Nt,St,mt,et],Bn=!1,_n=!0;function dn(l){return l===mt||l===et}var bn=function(l,E){var x=i.useState(Zt),p=Object(S.a)(x,2),e=p[0],o=p[1],t=Mt(),d=Object(S.a)(t,2),h=d[0],_=d[1];function C(){o(Nt)}return Vt(function(){if(e!==Zt&&e!==et){var T=zn.indexOf(e),B=zn[T+1],me=E(e);me===Bn?o(B):h(function(pe){function _e(){if(pe.isCanceled())return;o(B)}me===!0?_e():Promise.resolve(me).then(_e)})}},[l,e]),i.useEffect(function(){return function(){_()}},[]),[C,e]},kn=function(l){var E=Object(i.useRef)(),x=Object(i.useRef)(l);x.current=l;var p=i.useCallback(function(t){x.current(t)},[]);function e(t){t&&(t.removeEventListener(at,p),t.removeEventListener(Xe,p))}function o(t){E.current&&E.current!==t&&e(E.current),t&&t!==E.current&&(t.addEventListener(at,p),t.addEventListener(Xe,p),E.current=t)}return i.useEffect(function(){return function(){e(E.current)}},[]),[o,e]};function wn(l,E,x,p){var e=p.motionEnter,o=e===void 0?!0:e,t=p.motionAppear,d=t===void 0?!0:t,h=p.motionLeave,_=h===void 0?!0:h,C=p.motionDeadline,T=p.motionLeaveImmediately,B=p.onAppearPrepare,me=p.onEnterPrepare,pe=p.onLeavePrepare,_e=p.onAppearStart,$e=p.onEnterStart,rt=p.onLeaveStart,qe=p.onAppearActive,lt=p.onEnterActive,it=p.onLeaveActive,tt=p.onAppearEnd,nt=p.onEnterEnd,Ot=p.onLeaveEnd,ct=p.onVisibleChanged,Bt=Ut(),At=Object(S.a)(Bt,2),Ve=At[0],He=At[1],ft=Ut(dt),ht=Object(S.a)(ft,2),ke=ht[0],xt=ht[1],Kt=Ut(null),_t=Object(S.a)(Kt,2),Dt=_t[0],Ft=_t[1],on=Object(i.useRef)(!1),On=Object(i.useRef)(null),Xt=Object(i.useRef)(!1),xn=Object(i.useRef)(null);function Fn(){var Wt=x();return Wt||xn.current}var Sn=Object(i.useRef)(!1);function Mn(Wt){var Tt=Fn();if(Wt&&!Wt.deadline&&Wt.target!==Tt)return;var sn;ke===bt&&Sn.current?sn=tt==null?void 0:tt(Tt,Wt):ke===Ht&&Sn.current?sn=nt==null?void 0:nt(Tt,Wt):ke===ot&&Sn.current&&(sn=Ot==null?void 0:Ot(Tt,Wt)),sn!==!1&&!Xt.current&&(xt(dt),Ft(null))}var Gt=kn(Mn),vn=Object(S.a)(Gt,1),rn=vn[0],nn=i.useMemo(function(){var Wt,Tt,sn;switch(ke){case"appear":return Wt={},Object(I.a)(Wt,Nt,B),Object(I.a)(Wt,St,_e),Object(I.a)(Wt,mt,qe),Wt;case"enter":return Tt={},Object(I.a)(Tt,Nt,me),Object(I.a)(Tt,St,$e),Object(I.a)(Tt,mt,lt),Tt;case"leave":return sn={},Object(I.a)(sn,Nt,pe),Object(I.a)(sn,St,rt),Object(I.a)(sn,mt,it),sn;default:return{}}},[ke]),ea=bn(ke,function(Wt){if(Wt===Nt){var Tt=nn[Nt];return Tt?Tt(Fn()):Bn}if(kt in nn){var sn;Ft(((sn=nn[kt])===null||sn===void 0?void 0:sn.call(nn,Fn(),null))||null)}return kt===mt&&(rn(Fn()),C>0&&(clearTimeout(On.current),On.current=setTimeout(function(){Mn({deadline:!0})},C))),_n}),ta=Object(S.a)(ea,2),sa=ta[0],kt=ta[1],Xn=dn(kt);Sn.current=Xn,Vt(function(){He(E);var Wt=on.current;if(on.current=!0,!l)return;var Tt;!Wt&&E&&d&&(Tt=bt),Wt&&E&&o&&(Tt=Ht),(Wt&&!E&&_||!Wt&&T&&!E&&_)&&(Tt=ot),Tt&&(xt(Tt),sa())},[E]),Object(i.useEffect)(function(){(ke===bt&&!d||ke===Ht&&!o||ke===ot&&!_)&&xt(dt)},[d,o,_]),Object(i.useEffect)(function(){return function(){clearTimeout(On.current),Xt.current=!0}},[]),Object(i.useEffect)(function(){Ve!==void 0&&ke===dt&&(ct==null||ct(Ve))},[Ve,ke]);var la=Dt;return nn[Nt]&&kt===St&&(la=Object(N.a)({transition:"none"},la)),[ke,kt,la,Ve!=null?Ve:E]}var gn=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(){return Object(V.a)(this,x),E.apply(this,arguments)}return Object(q.a)(x,[{key:"render",value:function(){return this.props.children}}]),x}(i.Component),ln=gn;function In(l){var E=l;Object(A.a)(l)==="object"&&(E=l.transitionSupport);function x(e){return!!(e.motionName&&E)}var p=i.forwardRef(function(e,o){var t=e.visible,d=t===void 0?!0:t,h=e.removeOnLeave,_=h===void 0?!0:h,C=e.forceRender,T=e.children,B=e.motionName,me=e.leavedClassName,pe=e.eventProps,_e=x(e),$e=Object(i.useRef)(),rt=Object(i.useRef)();function qe(){try{return Object(Jt.a)($e.current||rt.current)}catch(xt){return null}}var lt=wn(_e,d,qe,e),it=Object(S.a)(lt,4),tt=it[0],nt=it[1],Ot=it[2],ct=it[3],Bt=i.useRef(ct);ct&&(Bt.current=!0);var At=Object(i.useRef)(o);At.current=o;var Ve=i.useCallback(function(xt){$e.current=xt,Object(L.b)(At.current,xt)},[]),He,ft=Object(N.a)(Object(N.a)({},pe),{},{visible:d});if(!T)He=null;else if(tt===dt||!x(e))ct?He=T(Object(N.a)({},ft),Ve):!_&&Bt.current?He=T(Object(N.a)(Object(N.a)({},ft),{},{className:me}),Ve):C?He=T(Object(N.a)(Object(N.a)({},ft),{},{style:{display:"none"}}),Ve):He=null;else{var ht,ke;nt===Nt?ke="prepare":dn(nt)?ke="active":nt===St&&(ke="start"),He=T(Object(N.a)(Object(N.a)({},ft),{},{className:de()(Ct(B,tt),(ht={},Object(I.a)(ht,Ct(B,"".concat(tt,"-").concat(ke)),ke),Object(I.a)(ht,B,typeof B=="string"),ht)),style:Ot}),Ve)}return i.createElement(ln,{ref:rt},He)});return p.displayName="CSSMotion",p}var En=In(vt),An="add",qt="keep",jn="remove",Kn="removed";function $n(l){var E;return l&&Object(A.a)(l)==="object"&&"key"in l?E=l:E={key:l},Object(N.a)(Object(N.a)({},E),{},{key:String(E.key)})}function Pn(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return l.map($n)}function Qt(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=[],p=0,e=E.length,o=Pn(l),t=Pn(E);o.forEach(function(_){for(var C=!1,T=p;T1});return h.forEach(function(_){x=x.filter(function(C){var T=C.key,B=C.status;return T!==_||B!==jn}),x.forEach(function(C){C.key===_&&(C.status=qt)})}),x}var en=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fn(l){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:En,x=function(p){Object(y.a)(o,p);var e=Object(b.a)(o);function o(){var t;return Object(V.a)(this,o),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(d){t.setState(function(h){var _=h.keyEntities;return{keyEntities:_.map(function(C){return C.key!==d?C:Object(N.a)(Object(N.a)({},C),{},{status:Kn})})}})},t}return Object(q.a)(o,[{key:"render",value:function(){var d=this,h=this.state.keyEntities,_=this.props,C=_.component,T=_.children,B=_.onVisibleChanged,me=Object(xe.a)(_,["component","children","onVisibleChanged"]),pe=C||i.Fragment,_e={};return en.forEach(function($e){_e[$e]=me[$e],delete me[$e]}),delete me.keys,i.createElement(pe,me,h.map(function($e){var rt=$e.status,qe=Object(xe.a)($e,["status"]),lt=rt===An||rt===qt;return i.createElement(E,Object(W.a)({},_e,{key:qe.key,visible:lt,eventProps:qe,onVisibleChanged:function(tt){B==null||B(tt,{key:qe.key}),tt||d.removeKey(qe.key)}}),T)}))}}],[{key:"getDerivedStateFromProps",value:function(d,h){var _=d.keys,C=h.keyEntities,T=Pn(_),B=Qt(C,T);return{keyEntities:B.filter(function(me){var pe=C.find(function(_e){var $e=_e.key;return me.key===$e});return!(pe&&pe.status===Kn&&me.status===jn)})}}}]),o}(i.Component);return x.defaultProps={component:"div"},x}var tn=fn(vt),un=En;function pn(l){var E=l.prefixCls,x=l.motion,p=l.animation,e=l.transitionName;return x||(p?{motionName:"".concat(E,"-").concat(p)}:e?{motionName:e}:null)}function Gn(l){var E=l.prefixCls,x=l.visible,p=l.zIndex,e=l.mask,o=l.maskMotion,t=l.maskAnimation,d=l.maskTransitionName;if(!e)return null;var h={};return(o||d||t)&&(h=Object(N.a)({motionAppear:!0},pn({motion:o,prefixCls:E,transitionName:d,animation:t}))),i.createElement(un,Object(W.a)({},h,{visible:x,removeOnLeave:!0}),function(_){var C=_.className;return i.createElement("div",{style:{zIndex:p},className:de()("".concat(E,"-mask"),C)})})}var Nn=n("9mu1"),Yn=n("o0o1"),ua=n.n(Yn),ca=n("HaE+"),Rn=["measure","align",null,"motion"],Ae=function(l,E){var x=Object(i.useState)(null),p=Object(S.a)(x,2),e=p[0],o=p[1],t=Object(i.useRef)(),d=Object(i.useRef)(!1);function h(T){d.current||o(T)}function _(){Rt.a.cancel(t.current)}function C(T){_(),t.current=Object(Rt.a)(function(){h(function(B){switch(e){case"align":return"motion";case"motion":return"stable";default:}return B}),T==null||T()})}return Object(i.useEffect)(function(){h("measure")},[l]),Object(i.useEffect)(function(){switch(e){case"measure":E();break;default:}e&&(t.current=Object(Rt.a)(Object(ca.a)(ua.a.mark(function T(){var B,me;return ua.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:B=Rn.indexOf(e),me=Rn[B+1],me&&B!==-1&&h(me);case 3:case"end":return _e.stop()}},T)}))))},[e]),Object(i.useEffect)(function(){return function(){d.current=!0,_()}},[]),[e,C]},Re=function(l){var E=i.useState({width:0,height:0}),x=Object(S.a)(E,2),p=x[0],e=x[1];function o(d){e({width:d.offsetWidth,height:d.offsetHeight})}var t=i.useMemo(function(){var d={};if(l){var h=p.width,_=p.height;l.indexOf("height")!==-1&&_?d.height=_:l.indexOf("minHeight")!==-1&&_&&(d.minHeight=_),l.indexOf("width")!==-1&&h?d.width=h:l.indexOf("minWidth")!==-1&&h&&(d.minWidth=h)}return d},[l,p]);return[t,o]},Ne=i.forwardRef(function(l,E){var x=l.visible,p=l.prefixCls,e=l.className,o=l.style,t=l.children,d=l.zIndex,h=l.stretch,_=l.destroyPopupOnHide,C=l.forceRender,T=l.align,B=l.point,me=l.getRootDomNode,pe=l.getClassNameFromAlign,_e=l.onAlign,$e=l.onMouseEnter,rt=l.onMouseLeave,qe=l.onMouseDown,lt=l.onTouchStart,it=Object(i.useRef)(),tt=Object(i.useRef)(),nt=Object(i.useState)(),Ot=Object(S.a)(nt,2),ct=Ot[0],Bt=Ot[1],At=Re(h),Ve=Object(S.a)(At,2),He=Ve[0],ft=Ve[1];function ht(){h&&ft(me())}var ke=Ae(x,ht),xt=Object(S.a)(ke,2),Kt=xt[0],_t=xt[1],Dt=Object(i.useRef)();function Ft(){return B||me}function on(){var Gt;(Gt=it.current)===null||Gt===void 0||Gt.forceAlign()}function On(Gt,vn){var rn=pe(vn);ct!==rn&&Bt(rn),Kt==="align"&&(ct!==rn?Promise.resolve().then(function(){on()}):_t(function(){var nn;(nn=Dt.current)===null||nn===void 0||nn.call(Dt)}),_e==null||_e(Gt,vn))}var Xt=Object(N.a)({},pn(l));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Gt){var vn=Xt[Gt];Xt[Gt]=function(rn,nn){return _t(),vn==null?void 0:vn(rn,nn)}});function xn(){return new Promise(function(Gt){Dt.current=Gt})}i.useEffect(function(){!Xt.motionName&&Kt==="motion"&&_t()},[Xt.motionName,Kt]),i.useImperativeHandle(E,function(){return{forceAlign:on,getElement:function(){return tt.current}}});var Fn=Object(N.a)(Object(N.a)({},He),{},{zIndex:d,opacity:Kt==="motion"||Kt==="stable"||!x?void 0:0,pointerEvents:Kt==="stable"?void 0:"none"},o),Sn=!0;(T==null?void 0:T.points)&&(Kt==="align"||Kt==="stable")&&(Sn=!1);var Mn=t;return i.Children.count(t)>1&&(Mn=i.createElement("div",{className:"".concat(p,"-content")},t)),i.createElement(un,Object(W.a)({visible:x,ref:tt,leavedClassName:"".concat(p,"-hidden")},Xt,{onAppearPrepare:xn,onEnterPrepare:xn,removeOnLeave:_,forceRender:C}),function(Gt,vn){var rn=Gt.className,nn=Gt.style,ea=de()(p,e,ct,rn);return i.createElement(Nn.a,{target:Ft(),key:"popup",ref:it,monitorWindowResize:!0,disabled:Sn,align:T,onAlign:On},i.createElement("div",{ref:vn,className:ea,onMouseEnter:$e,onMouseLeave:rt,onMouseDownCapture:qe,onTouchStartCapture:lt,style:Object(N.a)(Object(N.a)({},nn),Fn)},Mn))})});Ne.displayName="PopupInner";var De=Ne,Be=i.forwardRef(function(l,E){var x=l.prefixCls,p=l.visible,e=l.zIndex,o=l.children,t=l.mobile;t=t===void 0?{}:t;var d=t.popupClassName,h=t.popupStyle,_=t.popupMotion,C=_===void 0?{}:_,T=t.popupRender,B=i.useRef();i.useImperativeHandle(E,function(){return{forceAlign:function(){},getElement:function(){return B.current}}});var me=Object(N.a)({zIndex:e},h),pe=o;return i.Children.count(o)>1&&(pe=i.createElement("div",{className:"".concat(x,"-content")},o)),T&&(pe=T(pe)),i.createElement(un,Object(W.a)({visible:p,ref:B,removeOnLeave:!0},C),function(_e,$e){var rt=_e.className,qe=_e.style,lt=de()(x,d,rt);return i.createElement("div",{ref:$e,className:lt,style:Object(N.a)(Object(N.a)({},qe),me)},pe)})});Be.displayName="MobilePopupInner";var Ye=Be,st=["visible","mobile"],wt=i.forwardRef(function(l,E){var x=l.visible,p=l.mobile,e=Object(xe.a)(l,st),o=Object(i.useState)(x),t=Object(S.a)(o,2),d=t[0],h=t[1],_=Object(i.useState)(!1),C=Object(S.a)(_,2),T=C[0],B=C[1],me=Object(N.a)(Object(N.a)({},e),{},{visible:d});Object(i.useEffect)(function(){h(x),x&&p&&B(je())},[x,p]);var pe=T?i.createElement(Ye,Object(W.a)({},me,{mobile:p,ref:E})):i.createElement(De,Object(W.a)({},me,{ref:E}));return i.createElement("div",null,i.createElement(Gn,me),pe)});wt.displayName="Popup";var mn=wt,yn=i.createContext(null),Hn=yn;function Wn(){}function hn(){return""}function aa(l){return l?l.ownerDocument:window.document}var Qn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Dn(l){var E=function(x){Object(y.a)(e,x);var p=Object(b.a)(e);function e(o){var t;Object(V.a)(this,e),t=p.call(this,o),t.popupRef=i.createRef(),t.triggerRef=i.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(h){var _=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",h),t.delaySetPopupVisible(!0,_,_?null:h)},t.onMouseMove=function(h){t.fireEvents("onMouseMove",h),t.setPoint(h)},t.onMouseLeave=function(h){t.fireEvents("onMouseLeave",h),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(h){var _;if(h.relatedTarget&&!h.relatedTarget.setTimeout&&Object(Lt.a)((_=t.popupRef.current)===null||_===void 0?void 0:_.getElement(),h.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(h){t.fireEvents("onFocus",h),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(h){t.fireEvents("onMouseDown",h),t.preClickTime=Date.now()},t.onTouchStart=function(h){t.fireEvents("onTouchStart",h),t.preTouchTime=Date.now()},t.onBlur=function(h){t.fireEvents("onBlur",h),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(h){h.preventDefault(),t.fireEvents("onContextMenu",h),t.setPopupVisible(!0,h)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(h){if(t.fireEvents("onClick",h),t.focusTime){var _;if(t.preClickTime&&t.preTouchTime?_=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?_=t.preClickTime:t.preTouchTime&&(_=t.preTouchTime),Math.abs(_-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&h&&h.preventDefault&&h.preventDefault();var C=!t.state.popupVisible;(t.isClickToHide()&&!C||C&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,h)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var h;(h=t.context).onPopupMouseDown.apply(h,arguments)}},t.onDocumentClick=function(h){if(t.props.mask&&!t.props.maskClosable)return;var _=h.target,C=t.getRootDomNode(),T=t.getPopupDomNode();(!Object(Lt.a)(C,_)||t.isContextMenuOnly())&&!Object(Lt.a)(T,_)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var h=t.props.getTriggerDOMNode;if(h)return h(t.triggerRef.current);try{var _=Object(Jt.a)(t.triggerRef.current);if(_)return _}catch(C){}return It.a.findDOMNode(Object(O.a)(t))},t.getPopupClassNameFromAlign=function(h){var _=[],C=t.props,T=C.popupPlacement,B=C.builtinPlacements,me=C.prefixCls,pe=C.alignPoint,_e=C.getPopupClassNameFromAlign;return T&&B&&_.push(Se(B,me,h,pe)),_e&&_.push(_e(h)),_.join(" ")},t.getComponent=function(){var h=t.props,_=h.prefixCls,C=h.destroyPopupOnHide,T=h.popupClassName,B=h.onPopupAlign,me=h.popupMotion,pe=h.popupAnimation,_e=h.popupTransitionName,$e=h.popupStyle,rt=h.mask,qe=h.maskAnimation,lt=h.maskTransitionName,it=h.maskMotion,tt=h.zIndex,nt=h.popup,Ot=h.stretch,ct=h.alignPoint,Bt=h.mobile,At=h.forceRender,Ve=t.state,He=Ve.popupVisible,ft=Ve.point,ht=t.getPopupAlign(),ke={};return t.isMouseEnterToShow()&&(ke.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ke.onMouseLeave=t.onPopupMouseLeave),ke.onMouseDown=t.onPopupMouseDown,ke.onTouchStart=t.onPopupMouseDown,i.createElement(mn,Object(W.a)({prefixCls:_,destroyPopupOnHide:C,visible:He,point:ct&&ft,className:T,align:ht,onAlign:B,animation:pe,getClassNameFromAlign:t.getPopupClassNameFromAlign},ke,{stretch:Ot,getRootDomNode:t.getRootDomNode,style:$e,mask:rt,zIndex:tt,transitionName:_e,maskAnimation:qe,maskTransitionName:lt,maskMotion:it,ref:t.popupRef,motion:me,mobile:Bt,forceRender:At}),typeof nt=="function"?nt():nt)},t.attachParent=function(h){Rt.a.cancel(t.attachId);var _=t.props,C=_.getPopupContainer,T=_.getDocument,B=t.getRootDomNode(),me;C?(B||C.length===0)&&(me=C(B)):me=T(t.getRootDomNode()).body,me?me.appendChild(h):t.attachId=Object(Rt.a)(function(){t.attachParent(h)})},t.getContainer=function(){var h=t.props.getDocument,_=h(t.getRootDomNode()).createElement("div");return _.style.position="absolute",_.style.top="0",_.style.left="0",_.style.width="100%",t.attachParent(_),_},t.setPoint=function(h){var _=t.props.alignPoint;if(!_||!h)return;t.setState({point:{pageX:h.pageX,pageY:h.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var d;return"popupVisible"in o?d=!!o.popupVisible:d=!!o.defaultPopupVisible,t.state={prevPopupVisible:d,popupVisible:d},Qn.forEach(function(h){t["fire".concat(h)]=function(_){t.fireEvents(h,_)}}),t}return Object(q.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,d=this.state;if(d.popupVisible){var h;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(h=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(he.a)(h,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(h=h||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(he.a)(h,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(h=h||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(he.a)(h,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(he.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Rt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,d=t.popupPlacement,h=t.popupAlign,_=t.builtinPlacements;return d&&_?Pe(_,d,h):h}},{key:"setPopupVisible",value:function(t,d){var h=this.props.alignPoint,_=this.state.popupVisible;this.clearDelayTimer(),_!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:_}),this.props.onPopupVisibleChange(t)),h&&d&&t&&this.setPoint(d)}},{key:"delaySetPopupVisible",value:function(t,d,h){var _=this,C=d*1e3;if(this.clearDelayTimer(),C){var T=h?{pageX:h.pageX,pageY:h.pageY}:null;this.delayTimer=window.setTimeout(function(){_.setPopupVisible(t,T),_.clearDelayTimer()},C)}else this.setPopupVisible(t,h)}},{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(t){var d=this.props.children.props,h=this.props;return d[t]&&h[t]?this["fire".concat(t)]:d[t]||h[t]}},{key:"isClickToShow",value:function(){var t=this.props,d=t.action,h=t.showAction;return d.indexOf("click")!==-1||h.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,d=t.action,h=t.showAction;return d.indexOf("contextMenu")!==-1||h.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,d=t.action,h=t.hideAction;return d.indexOf("click")!==-1||h.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,d=t.action,h=t.showAction;return d.indexOf("hover")!==-1||h.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,d=t.action,h=t.hideAction;return d.indexOf("hover")!==-1||h.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,d=t.action,h=t.showAction;return d.indexOf("focus")!==-1||h.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,d=t.action,h=t.hideAction;return d.indexOf("focus")!==-1||h.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,d){var h=this.props.children.props[t];h&&h(d);var _=this.props[t];_&&_(d)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,d=this.props,h=d.children,_=d.forceRender,C=d.alignPoint,T=d.className,B=d.autoDestroy,me=i.Children.only(h),pe={key:"trigger"};this.isContextMenuToShow()?pe.onContextMenu=this.onContextMenu:pe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(pe.onClick=this.onClick,pe.onMouseDown=this.onMouseDown,pe.onTouchStart=this.onTouchStart):(pe.onClick=this.createTwoChains("onClick"),pe.onMouseDown=this.createTwoChains("onMouseDown"),pe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(pe.onMouseEnter=this.onMouseEnter,C&&(pe.onMouseMove=this.onMouseMove)):pe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?pe.onMouseLeave=this.onMouseLeave:pe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(pe.onFocus=this.onFocus,pe.onBlur=this.onBlur):(pe.onFocus=this.createTwoChains("onFocus"),pe.onBlur=this.createTwoChains("onBlur"));var _e=de()(me&&me.props&&me.props.className,T);_e&&(pe.className=_e);var $e=Object(N.a)({},pe);Object(L.c)(me)&&($e.ref=Object(L.a)(this.triggerRef,me.ref));var rt=i.cloneElement(me,$e),qe;return(t||this.popupRef.current||_)&&(qe=i.createElement(l,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&B&&(qe=null),i.createElement(Hn.Provider,{value:this.triggerContextValue},rt,qe)}}],[{key:"getDerivedStateFromProps",value:function(t,d){var h=t.popupVisible,_={};return h!==void 0&&d.popupVisible!==h&&(_.popupVisible=h,_.prevPopupVisible=d.popupVisible),_}}]),e}(i.Component);return E.contextType=Hn,E.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:hn,getDocument:aa,onPopupVisibleChange:Wn,afterPopupVisibleChange:Wn,onPopupAlign:Wn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},E}var ka=Dn(be.a),$t={adjustX:1,adjustY:1},ba={topLeft:{points:["bl","tl"],overflow:$t,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$t,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:$t,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:$t,offset:[4,0]}},Ia={topLeft:{points:["bl","tl"],overflow:$t,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$t,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:$t,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:$t,offset:[4,0]}},ga=ba,Cn=0,Ln={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Un=function(E,x,p){var e=oe(x),o=E.getState();E.setState({defaultActiveFirst:Object(N.a)(Object(N.a)({},o.defaultActiveFirst),{},Object(I.a)({},e,p))})},Ea=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(p){var e;Object(V.a)(this,x),e=E.call(this,p),e.onDestroy=function(C){e.props.onDestroy(C)},e.onKeyDown=function(C){var T=C.keyCode,B=e.menuInstance,me=e.props.store,pe=e.getVisible();if(T===R.a.ENTER)return e.onTitleClick(C),Un(me,e.props.eventKey,!0),!0;if(T===R.a.RIGHT)return pe?B.onKeyDown(C):(e.triggerOpenChange(!0),Un(me,e.props.eventKey,!0)),!0;if(T===R.a.LEFT){var _e;if(pe)_e=B.onKeyDown(C);else return;return _e||(e.triggerOpenChange(!1),_e=!0),_e}return pe&&(T===R.a.UP||T===R.a.DOWN)?B.onKeyDown(C):void 0},e.onOpenChange=function(C){e.props.onOpenChange(C)},e.onPopupVisibleChange=function(C){e.triggerOpenChange(C,C?"mouseenter":"mouseleave")},e.onMouseEnter=function(C){var T=e.props,B=T.eventKey,me=T.onMouseEnter,pe=T.store;Un(pe,e.props.eventKey,!1),me({key:B,domEvent:C})},e.onMouseLeave=function(C){var T=e.props,B=T.parentMenu,me=T.eventKey,pe=T.onMouseLeave;B.subMenuInstance=Object(O.a)(e),pe({key:me,domEvent:C})},e.onTitleMouseEnter=function(C){var T=e.props,B=T.eventKey,me=T.onItemHover,pe=T.onTitleMouseEnter;me({key:B,hover:!0}),pe({key:B,domEvent:C})},e.onTitleMouseLeave=function(C){var T=e.props,B=T.parentMenu,me=T.eventKey,pe=T.onItemHover,_e=T.onTitleMouseLeave;B.subMenuInstance=Object(O.a)(e),pe({key:me,hover:!1}),_e({key:me,domEvent:C})},e.onTitleClick=function(C){var T=Object(O.a)(e),B=T.props;if(B.onTitleClick({key:B.eventKey,domEvent:C}),B.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),Un(B.store,e.props.eventKey,!1)},e.onSubMenuClick=function(C){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(C))},e.onSelect=function(C){e.props.onSelect(C)},e.onDeselect=function(C){e.props.onDeselect(C)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(C){e.menuInstance=C},e.addKeyPath=function(C){return Object(N.a)(Object(N.a)({},C),{},{keyPath:(C.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(C,T){var B=e.props.eventKey,me=function(){e.onOpenChange({key:B,item:Object(O.a)(e),trigger:T,open:C})};T==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){me()},0):me()},e.isChildrenSelected=function(){var C={find:!1};return we(e.props.children,e.props.selectedKeys,C),C.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var C=jt.findDOMNode(e.menuInstance);if(C.offsetWidth>=e.subMenuTitle.offsetWidth)return;C.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(C){e.subMenuTitle=C},e.getBaseProps=function(){var C=Object(O.a)(e),T=C.props,B=e.getMode();return{mode:B==="horizontal"?"vertical":B,visible:e.getVisible(),level:T.level+1,inlineIndent:T.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:T.selectedKeys,eventKey:"".concat(T.eventKey,"-menu-"),openKeys:T.openKeys,motion:T.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:T.subMenuOpenDelay,parentMenu:Object(O.a)(e),subMenuCloseDelay:T.subMenuCloseDelay,forceSubMenuRender:T.forceSubMenuRender,triggerSubMenuAction:T.triggerSubMenuAction,builtinPlacements:T.builtinPlacements,defaultActiveFirst:T.store.getState().defaultActiveFirst[oe(T.eventKey)],multiple:T.multiple,prefixCls:T.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:T.itemIcon,expandIcon:T.expandIcon,direction:T.direction}},e.getMotion=function(C,T){var B=Object(O.a)(e),me=B.haveRendered,pe=e.props,_e=pe.motion,$e=pe.rootPrefixCls,rt=Object(N.a)(Object(N.a)({},_e),{},{leavedClassName:"".concat($e,"-hidden"),removeOnLeave:!1,motionAppear:me||!T||C!=="inline"});return rt};var o=p.store,t=p.eventKey,d=o.getState(),h=d.defaultActiveFirst;e.isRootMenu=!1;var _=!1;return h&&(_=h[t]),Un(o,t,_),e.state={mode:p.mode,isOpen:p.isOpen},e}return Object(q.a)(x,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,o=this.props,t=o.mode,d=o.parentMenu,h=o.manualRef,_=o.isOpen,C=function(){e.setState({mode:t,isOpen:_})},T=_!==this.state.isOpen,B=t!==this.state.mode;if((B||T)&&(Rt.a.cancel(this.updateStateRaf),B?this.updateStateRaf=Object(Rt.a)(C):C()),h&&h(this),t!=="horizontal"||!(d==null?void 0:d.isRootMenu)||!_)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,o=e.onDestroy,t=e.eventKey;o&&o(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Rt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,o){var t=this.getBaseProps();return i.createElement(pa,Object(W.a)({},t,{id:this.internalMenuId,className:e,style:o}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,o=this.getBaseProps(),t=o.mode,d=o.visible,h=o.forceSubMenuRender,_=o.direction,C=this.getMotion(t,d);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||d||h,!this.haveOpened)return i.createElement("div",null);var T=de()("".concat(o.prefixCls,"-sub"),Object(I.a)({},"".concat(o.prefixCls,"-rtl"),_==="rtl"));return this.isInlineMode()?i.createElement(un,Object(W.a)({visible:o.visible,forceRender:h},C),function(B){var me=B.className,pe=B.style,_e=de()(T,me);return e.renderPopupMenu(_e,pe)}):this.renderPopupMenu(T)}},{key:"render",value:function(){var e,o,t,d=Object(N.a)({},this.props),h=this.getVisible(),_=this.getPrefixCls(),C=this.isInlineMode(),T=this.getMode(),B=de()(_,"".concat(_,"-").concat(T),(e={},Object(I.a)(e,d.className,!!d.className),Object(I.a)(e,this.getOpenClassName(),h),Object(I.a)(e,this.getActiveClassName(),d.active||h&&!C),Object(I.a)(e,this.getDisabledClassName(),d.disabled),Object(I.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(d.eventKey?this.internalMenuId="".concat(d.eventKey,"$Menu"):(Cn+=1,this.internalMenuId="$__$".concat(Cn,"$Menu")));var me={},pe={},_e={};d.disabled||(me={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},pe={onClick:this.onTitleClick},_e={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var $e={},rt=d.direction,qe=rt==="rtl";C&&(qe?$e.paddingRight=d.inlineIndent*d.level:$e.paddingLeft=d.inlineIndent*d.level);var lt={};this.getVisible()&&(lt={"aria-owns":this.internalMenuId});var it=null;T!=="horizontal"&&(it=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(it=i.createElement(this.props.expandIcon,Object(N.a)({},this.props))));var tt=i.createElement("div",Object(W.a)({ref:this.saveSubMenuTitle,style:$e,className:"".concat(_,"-title"),role:"button"},_e,pe,{"aria-expanded":h},lt,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,it||i.createElement("i",{className:"".concat(_,"-arrow")})),nt=this.renderChildren(),Ot=((o=d.parentMenu)===null||o===void 0?void 0:o.isRootMenu)?d.parentMenu.props.getPopupContainer:function(Ft){return Ft.parentNode},ct=Ln[T],Bt=d.popupOffset?{offset:d.popupOffset}:{},At=de()((t={},Object(I.a)(t,d.popupClassName,d.popupClassName&&!C),Object(I.a)(t,"".concat(_,"-rtl"),qe),t)),Ve=d.disabled,He=d.triggerSubMenuAction,ft=d.subMenuOpenDelay,ht=d.forceSubMenuRender,ke=d.subMenuCloseDelay,xt=d.builtinPlacements;ze.forEach(function(Ft){return delete d[Ft]}),delete d.onClick;var Kt=qe?Object(N.a)(Object(N.a)({},Ia),xt):Object(N.a)(Object(N.a)({},ba),xt);delete d.direction;var _t=this.getBaseProps(),Dt=C?null:this.getMotion(_t.mode,_t.visible);return i.createElement("li",Object(W.a)({},d,me,{className:B,role:"menuitem"}),i.createElement(ka,{prefixCls:_,popupClassName:de()("".concat(_,"-popup"),At),getPopupContainer:Ot,builtinPlacements:Kt,popupPlacement:ct,popupVisible:C?!1:h,popupAlign:Bt,popup:C?null:nt,action:Ve||C?[]:[He],mouseEnterDelay:ft,mouseLeaveDelay:ke,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ht,popupMotion:Dt},tt),C?nt:null)}}]),x}(i.Component);Ea.defaultProps={onMouseEnter:w,onMouseLeave:w,onTitleMouseEnter:w,onTitleMouseLeave:w,onTitleClick:w,manualRef:w,mode:"vertical",title:""};var oa=Object(D.b)(function(l,E){var x=l.openKeys,p=l.activeKey,e=l.selectedKeys,o=E.eventKey,t=E.subMenuKey;return{isOpen:x.indexOf(o)>-1,active:p[t]===o,selectedKeys:e}})(Ea);oa.isSubMenu=!0;var ra=oa,Ka="menuitem-overflowed",Ja=.5,Wa=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(){var p;return Object(V.a)(this,x),p=E.apply(this,arguments),p.resizeObserver=null,p.mutationObserver=null,p.originalTotalWidth=0,p.overflowedItems=[],p.menuItemSizes=[],p.cancelFrameId=null,p.state={lastVisibleIndex:void 0},p.childRef=i.createRef(),p.getMenuItemNodes=function(){var e=p.props.prefixCls,o=p.childRef.current;return o?[].slice.call(o.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},p.getOverflowedSubMenuItem=function(e,o,t){var d=p.props,h=d.overflowedIndicator,_=d.level,C=d.mode,T=d.prefixCls,B=d.theme;if(_!==1||C!=="horizontal")return null;var me=p.props.children[0],pe=me.props,_e=pe.children,$e=pe.title,rt=pe.style,qe=Object(xe.a)(pe,["children","title","style"]),lt=Object(N.a)({},rt),it="".concat(e,"-overflowed-indicator"),tt="".concat(e,"-overflowed-indicator");o.length===0&&t!==!0?lt=Object(N.a)(Object(N.a)({},lt),{},{display:"none"}):t&&(lt=Object(N.a)(Object(N.a)({},lt),{},{visibility:"hidden",position:"absolute"}),it="".concat(it,"-placeholder"),tt="".concat(tt,"-placeholder"));var nt=B?"".concat(T,"-").concat(B):"",Ot={};return ze.forEach(function(ct){qe[ct]!==void 0&&(Ot[ct]=qe[ct])}),i.createElement(ra,Object(W.a)({title:h,className:"".concat(T,"-overflowed-submenu"),popupClassName:nt},Ot,{key:it,eventKey:tt,disabled:!1,style:lt}),o)},p.setChildrenWidthAndResize=function(){if(p.props.mode!=="horizontal")return;var e=p.childRef.current;if(!e)return;var o=e.children;if(!o||o.length===0)return;var t=e.children[o.length-1];Le(t,"display","inline-block");var d=p.getMenuItemNodes(),h=d.filter(function(_){return _.className.split(" ").indexOf(Ka)>=0});h.forEach(function(_){Le(_,"display","inline-block")}),p.menuItemSizes=d.map(function(_){return We(_,!0)}),h.forEach(function(_){Le(_,"display","none")}),p.overflowedIndicatorWidth=We(e.children[e.children.length-1],!0),p.originalTotalWidth=p.menuItemSizes.reduce(function(_,C){return _+C},0),p.handleResize(),Le(t,"display","none")},p.handleResize=function(){if(p.props.mode!=="horizontal")return;var e=p.childRef.current;if(!e)return;var o=We(e);p.overflowedItems=[];var t=0,d;p.originalTotalWidth>o+Ja&&(d=-1,p.menuItemSizes.forEach(function(h){t+=h,t+p.overflowedIndicatorWidth<=o&&(d+=1)})),p.setState({lastVisibleIndex:d})},p}return Object(q.a)(x,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var o=this.childRef.current;if(!o)return;this.resizeObserver=new Qe.default(function(t){t.forEach(function(){var d=e.cancelFrameId;cancelAnimationFrame(d),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(o,{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(e){var o=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(d,h,_){var C=h;if(o.props.mode==="horizontal"){var T=o.getOverflowedSubMenuItem(h.props.eventKey,[]);t!==void 0&&o.props.className.indexOf("".concat(o.props.prefixCls,"-root"))!==-1&&(_>t&&(C=i.cloneElement(h,{style:{display:"none"},eventKey:"".concat(h.props.eventKey,"-hidden"),className:"".concat(Ka)})),_===t+1&&(o.overflowedItems=e.slice(t+1).map(function(me){return i.cloneElement(me,{key:me.props.eventKey,mode:"vertical-left"})}),T=o.getOverflowedSubMenuItem(h.props.eventKey,o.overflowedItems)));var B=[].concat(Object(F.a)(d),[T,C]);return _===e.length-1&&B.push(o.getOverflowedSubMenuItem(h.props.eventKey,[],!0)),B}return[].concat(Object(F.a)(d),[C])},[])}},{key:"render",value:function(){var e=this.props,o=e.visible,t=e.prefixCls,d=e.overflowedIndicator,h=e.mode,_=e.level,C=e.tag,T=e.children,B=e.theme,me=Object(xe.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),pe=C;return i.createElement(pe,Object(W.a)({ref:this.childRef},me),this.renderChildren(T))}}]),x}(i.Component);Wa.defaultProps={tag:"div",className:""};var ya=Wa;function da(l){return l.length?l.every(function(E){return!!E.props.disabled}):!0}function Jn(l,E,x){var p=l.getState();l.setState({activeKey:Object(N.a)(Object(N.a)({},p.activeKey),{},Object(I.a)({},E,x))})}function Vn(l){return l.eventKey||"0-menu-"}function fa(l,E){var x=E,p=l.children,e=l.eventKey;if(x){var o;if(z(p,function(t,d){t&&t.props&&!t.props.disabled&&x===G(t,e,d)&&(o=!0)}),o)return x}return x=null,l.defaultActiveFirst&&z(p,function(t,d){!x&&t&&!t.props.disabled&&(x=G(t,e,d))}),x}function Fa(l){if(!l)return;var E=this.instanceArray.indexOf(l);E!==-1?this.instanceArray[E]=l:this.instanceArray.push(l)}var za=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(p){var e;return Object(V.a)(this,x),e=E.call(this,p),e.onKeyDown=function(o,t){var d=o.keyCode,h;if(e.getFlatInstanceArray().forEach(function(C){C&&C.props.active&&C.onKeyDown&&(h=C.onKeyDown(o))}),h)return 1;var _=null;return(d===R.a.UP||d===R.a.DOWN)&&(_=e.step(d===R.a.UP?-1:1)),_?(o.preventDefault(),Jn(e.props.store,Vn(e.props),_.props.eventKey),typeof t=="function"&&t(_),1):void 0},e.onItemHover=function(o){var t=o.key,d=o.hover;Jn(e.props.store,Vn(e.props),d?t:null)},e.onDeselect=function(o){e.props.onDeselect(o)},e.onSelect=function(o){e.props.onSelect(o)},e.onClick=function(o){e.props.onClick(o)},e.onOpenChange=function(o){e.props.onOpenChange(o)},e.onDestroy=function(o){e.props.onDestroy(o)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(o){var t=e.getFlatInstanceArray(),d=e.props.store.getState().activeKey[Vn(e.props)],h=t.length;if(!h)return null;o<0&&(t=t.concat().reverse());var _=-1;if(t.every(function(me,pe){return me&&me.props.eventKey===d?(_=pe,!1):!0}),!e.props.defaultActiveFirst&&_!==-1&&da(t.slice(_,h-1)))return;var C=(_+1)%h,T=C;do{var B=t[T];if(!B||B.props.disabled)T=(T+1)%h;else return B}while(T!==C);return null},e.renderCommonMenuItem=function(o,t,d){var h=e.props.store.getState(),_=Object(O.a)(e),C=_.props,T=G(o,C.eventKey,t),B=o.props;if(!B||typeof o.type=="string")return o;var me=T===h.activeKey,pe=Object(N.a)(Object(N.a)({mode:B.mode||C.mode,level:C.level,inlineIndent:C.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:C.prefixCls,index:t,parentMenu:C.parentMenu,manualRef:B.disabled?void 0:Object(M.a)(o.ref,Fa.bind(Object(O.a)(e))),eventKey:T,active:!B.disabled&&me,multiple:C.multiple,onClick:function($e){(B.onClick||w)($e),e.onClick($e)},onItemHover:e.onItemHover,motion:C.motion,subMenuOpenDelay:C.subMenuOpenDelay,subMenuCloseDelay:C.subMenuCloseDelay,forceSubMenuRender:C.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:C.builtinPlacements,itemIcon:B.itemIcon||e.props.itemIcon,expandIcon:B.expandIcon||e.props.expandIcon},d),{},{direction:C.direction});return(C.mode==="inline"||Ie())&&(pe.triggerSubMenuAction="click"),i.cloneElement(o,Object(N.a)(Object(N.a)({},pe),{},{key:T||t}))},e.renderMenuItem=function(o,t,d){if(!o)return null;var h=e.props.store.getState(),_={openKeys:h.openKeys,selectedKeys:h.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:d};return e.renderCommonMenuItem(o,t,_)},p.store.setState({activeKey:Object(N.a)(Object(N.a)({},p.store.getState().activeKey),{},Object(I.a)({},p.eventKey,fa(p,p.activeKey)))}),e.instanceArray=[],e}return Object(q.a)(x,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!X()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var o=this.props,t="activeKey"in o?o.activeKey:o.store.getState().activeKey[Vn(o)],d=fa(o,t);if(d!==t)Jn(o.store,Vn(o),d);else if("activeKey"in e){var h=fa(e,e.activeKey);d!==h&&Jn(o.store,Vn(o),d)}}},{key:"render",value:function(){var e=this,o=Object(W.a)({},this.props);this.instanceArray=[];var t=de()(o.prefixCls,o.className,"".concat(o.prefixCls,"-").concat(o.mode)),d={className:t,role:o.role||"menu"};o.id&&(d.id=o.id),o.focusable&&(d.tabIndex=0,d.onKeyDown=this.onKeyDown);var h=o.prefixCls,_=o.eventKey,C=o.visible,T=o.level,B=o.mode,me=o.overflowedIndicator,pe=o.theme;return ze.forEach(function(_e){return delete o[_e]}),delete o.onClick,i.createElement(ya,Object(W.a)({},o,{prefixCls:h,mode:B,tag:"ul",level:T,theme:pe,visible:C,overflowedIndicator:me},d),Object(ee.a)(o.children).map(function(_e,$e){return e.renderMenuItem(_e,$e,_||"0-menu-")}))}}]),x}(i.Component);za.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:w};var Ba=Object(D.b)()(za),pa=Ba,Zn=n("Kwbf");function Ca(l,E,x){var p=l.prefixCls,e=l.motion,o=l.defaultMotions,t=o===void 0?{}:o,d=l.openAnimation,h=l.openTransitionName,_=E.switchingModeFromInline;if(e)return e;if(Object(A.a)(d)==="object"&&d)Object(Zn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof d=="string")return{motionName:"".concat(p,"-open-").concat(d)};if(h)return{motionName:h};var C=t[x];return C||(_?null:t.other)}var Ha=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(p){var e;Object(V.a)(this,x),e=E.call(this,p),e.onSelect=function(d){var h=Object(O.a)(e),_=h.props;if(_.selectable){var C=e.store.getState(),T=C.selectedKeys,B=d.key;_.multiple?T=T.concat([B]):T=[B],"selectedKeys"in _||e.store.setState({selectedKeys:T}),_.onSelect(Object(N.a)(Object(N.a)({},d),{},{selectedKeys:T}))}},e.onClick=function(d){var h=e.getRealMenuMode(),_=Object(O.a)(e),C=_.store,T=_.props.onOpenChange;h!=="inline"&&!("openKeys"in e.props)&&(C.setState({openKeys:[]}),T([])),e.props.onClick(d)},e.onKeyDown=function(d,h){e.innerMenu.getWrappedInstance().onKeyDown(d,h)},e.onOpenChange=function(d){var h=Object(O.a)(e),_=h.props,C=e.store.getState().openKeys.concat(),T=!1,B=function(pe){var _e=!1;if(pe.open)_e=C.indexOf(pe.key)===-1,_e&&C.push(pe.key);else{var $e=C.indexOf(pe.key);_e=$e!==-1,_e&&C.splice($e,1)}T=T||_e};Array.isArray(d)?d.forEach(B):B(d),T&&("openKeys"in e.props||e.store.setState({openKeys:C}),_.onOpenChange(C))},e.onDeselect=function(d){var h=Object(O.a)(e),_=h.props;if(_.selectable){var C=e.store.getState().selectedKeys.concat(),T=d.key,B=C.indexOf(T);B!==-1&&C.splice(B,1),"selectedKeys"in _||e.store.setState({selectedKeys:C}),_.onDeselect(Object(N.a)(Object(N.a)({},d),{},{selectedKeys:C}))}},e.onMouseEnter=function(d){e.restoreModeVerticalFromInline();var h=e.props.onMouseEnter;h&&h(d)},e.onTransitionEnd=function(d){var h=d.propertyName==="width"&&d.target===d.currentTarget,_=d.target.className,C=Object.prototype.toString.call(_)==="[object SVGAnimatedString]"?_.animVal:_,T=d.propertyName==="font-size"&&C.indexOf("anticon")>=0;(h||T)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(d){e.innerMenu=d},e.isRootMenu=!0;var o=p.defaultSelectedKeys,t=p.defaultOpenKeys;return"selectedKeys"in p&&(o=p.selectedKeys||[]),"openKeys"in p&&(t=p.openKeys||[]),e.store=Object(D.c)({selectedKeys:o,openKeys:t,activeKey:{"0-menu-":fa(p,p.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:p,inlineOpenKeys:[],store:e.store},e}return Object(q.a)(x,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var o=this.props,t=o.siderCollapsed,d=o.inlineCollapsed,h=o.onOpenChange;(!e.inlineCollapsed&&d||!e.siderCollapsed&&t)&&h([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,o=this.store,t=this.prevOpenKeys,d=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");d?(this.prevOpenKeys=o.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,o=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return o&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,o=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:o}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(N.a)({},Object(k.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),o=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(N.a)(Object(N.a)({},e),{},{mode:o,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ca(this.props,this.state,o)}),delete e.openAnimation,delete e.openTransitionName,i.createElement(D.a,{store:this.store},i.createElement(pa,Object(W.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var t=o.prevProps,d=o.store,h=d.getState(),_={},C={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(C.switchingModeFromInline=!0),"openKeys"in e?_.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(C.switchingModeFromInline=!0,C.inlineOpenKeys=h.openKeys,_.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(_.openKeys=o.inlineOpenKeys,C.inlineOpenKeys=[])),Object.keys(_).length&&d.setState(_),C}}]),x}(i.Component);Ha.defaultProps={selectable:!0,onClick:w,onSelect:w,onOpenChange:w,onDeselect:w,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:i.createElement("span",null,"\xB7\xB7\xB7")};var Va=Ha,qn=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(){var p;return Object(V.a)(this,x),p=E.apply(this,arguments),p.onKeyDown=function(e){var o=e.keyCode;return o===R.a.ENTER?(p.onClick(e),!0):void 0},p.onMouseLeave=function(e){var o=p.props,t=o.eventKey,d=o.onItemHover,h=o.onMouseLeave;d({key:t,hover:!1}),h({key:t,domEvent:e})},p.onMouseEnter=function(e){var o=p.props,t=o.eventKey,d=o.onItemHover,h=o.onMouseEnter;d({key:t,hover:!0}),h({key:t,domEvent:e})},p.onClick=function(e){var o=p.props,t=o.eventKey,d=o.multiple,h=o.onClick,_=o.onSelect,C=o.onDeselect,T=o.isSelected,B={key:t,keyPath:[t],item:Object(O.a)(p),domEvent:e};h(B),d?T?C(B):_(B):T||_(B)},p.saveNode=function(e){p.node=e},p}return Object(q.a)(x,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,o=Object(N.a)({},this.props),t=de()(this.getPrefixCls(),o.className,(e={},Object(I.a)(e,this.getActiveClassName(),!o.disabled&&o.active),Object(I.a)(e,this.getSelectedClassName(),o.isSelected),Object(I.a)(e,this.getDisabledClassName(),o.disabled),e)),d=Object(N.a)(Object(N.a)({},o.attribute),{},{title:typeof o.title=="string"?o.title:void 0,className:t,role:o.role||"menuitem","aria-disabled":o.disabled});o.role==="option"?d=Object(N.a)(Object(N.a)({},d),{},{role:"option","aria-selected":o.isSelected}):(o.role===null||o.role==="none")&&(d.role="none");var h={onClick:o.disabled?null:this.onClick,onMouseLeave:o.disabled?null:this.onMouseLeave,onMouseEnter:o.disabled?null:this.onMouseEnter},_=Object(N.a)({},o.style);o.mode==="inline"&&(o.direction==="rtl"?_.paddingRight=o.inlineIndent*o.level:_.paddingLeft=o.inlineIndent*o.level),ze.forEach(function(T){return delete o[T]}),delete o.direction;var C=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(C=i.createElement(this.props.itemIcon,this.props)),i.createElement("li",Object(W.a)({},Object(k.a)(o,["onClick","onMouseEnter","onMouseLeave","onSelect"]),d,h,{style:_,ref:this.saveNode}),o.children,C)}}]),x}(i.Component);qn.isMenuItem=!0,qn.defaultProps={onSelect:w,onMouseEnter:w,onMouseLeave:w,manualRef:w};var Oa=Object(D.b)(function(l,E){var x=l.activeKey,p=l.selectedKeys,e=E.eventKey,o=E.subMenuKey;return{active:x[o]===e,isSelected:Array.isArray(p)?p.indexOf(e)!==-1:p===e}})(qn),xa=Oa,_a=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(){var p;return Object(V.a)(this,x),p=E.apply(this,arguments),p.renderInnerMenuItem=function(e){var o=p.props,t=o.renderMenuItem,d=o.index;return t(e,d,p.props.subMenuKey)},p}return Object(q.a)(x,[{key:"render",value:function(){var e=Object(W.a)({},this.props),o=e.className,t=o===void 0?"":o,d=e.rootPrefixCls,h="".concat(d,"-item-group-title"),_="".concat(d,"-item-group-list"),C=e.title,T=e.children;return ze.forEach(function(B){return delete e[B]}),delete e.direction,i.createElement("li",Object(W.a)({},e,{onClick:function(me){return me.stopPropagation()},className:"".concat(t," ").concat(d,"-item-group")}),i.createElement("div",{className:h,title:typeof C=="string"?C:void 0},C),i.createElement("ul",{className:_},i.Children.map(T,this.renderInnerMenuItem)))}}]),x}(i.Component);_a.isMenuItemGroup=!0,_a.defaultProps={disabled:!0};var Za=_a,ja=function(E){var x=E.className,p=E.rootPrefixCls,e=E.style;return i.createElement("li",{className:"".concat(x," ").concat(p,"-item-divider"),style:e})};ja.defaultProps={disabled:!0,className:"",style:{}};var qa=ja,Xa=Va,Ra=n("eDIo");function eo(l,E){var x=l.prefixCls,p=l.editable,e=l.locale,o=l.style;return!p||p.showAdd===!1?null:i.createElement("button",{ref:E,type:"button",className:"".concat(x,"-nav-add"),style:o,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(d){p.onEdit("add",{event:d})}},p.addIcon||"+")}var ma=i.forwardRef(eo);function to(l,E){var x=l.prefixCls,p=l.id,e=l.tabs,o=l.locale,t=l.mobile,d=l.moreIcon,h=d===void 0?"More":d,_=l.moreTransitionName,C=l.style,T=l.className,B=l.editable,me=l.tabBarGutter,pe=l.rtl,_e=l.onTabClick,$e=Object(i.useState)(!1),rt=Object(S.a)($e,2),qe=rt[0],lt=rt[1],it=Object(i.useState)(null),tt=Object(S.a)(it,2),nt=tt[0],Ot=tt[1],ct="".concat(p,"-more-popup"),Bt="".concat(x,"-dropdown"),At=nt!==null?"".concat(ct,"-").concat(nt):null,Ve=o==null?void 0:o.dropdownAriaLabel,He=i.createElement(Xa,{onClick:function(Dt){var Ft=Dt.key,on=Dt.domEvent;_e(Ft,on),lt(!1)},id:ct,tabIndex:-1,role:"listbox","aria-activedescendant":At,selectedKeys:[nt],"aria-label":Ve!==void 0?Ve:"expanded dropdown"},e.map(function(_t){return i.createElement(xa,{key:_t.key,id:"".concat(ct,"-").concat(_t.key),role:"option","aria-controls":p&&"".concat(p,"-panel-").concat(_t.key),disabled:_t.disabled},_t.tab)}));function ft(_t){for(var Dt=e.filter(function(xn){return!xn.disabled}),Ft=Dt.findIndex(function(xn){return xn.key===nt})||0,on=Dt.length,On=0;Onxt?(ht=He,ct.current="x"):(ht=ft,ct.current="y");var Kt=Date.now();Kt-nt.current>100&&(Ot.current=!1),(E(-ht,-ht)||Ot.current)&&(Ve.preventDefault(),Ot.current=!0),nt.current=Kt}var At=Object(i.useRef)(null);At.current={onTouchStart:lt,onTouchMove:it,onTouchEnd:tt,onWheel:Bt},i.useEffect(function(){function Ve(ke){At.current.onTouchStart(ke)}function He(ke){At.current.onTouchMove(ke)}function ft(ke){At.current.onTouchEnd(ke)}function ht(ke){At.current.onWheel(ke)}return document.addEventListener("touchmove",He,{passive:!1}),document.addEventListener("touchend",ft,{passive:!1}),l.current.addEventListener("touchstart",Ve,{passive:!1}),l.current.addEventListener("wheel",ht),function(){document.removeEventListener("touchmove",He),document.removeEventListener("touchend",ft)}},[])}function Ma(){var l=Object(i.useRef)(new Map);function E(p){return l.current.has(p)||l.current.set(p,i.createRef()),l.current.get(p)}function x(p){l.current.delete(p)}return[E,x]}function Ga(l,E){var x=i.useRef(l),p=i.useState({}),e=Object(S.a)(p,2),o=e[1];function t(d){var h=typeof d=="function"?d(x.current):d;h!==x.current&&E(h,x.current),x.current=h,o({})}return[x.current,t]}var Ya=function(E){var x=E.position,p=E.prefixCls,e=E.extra;if(!e)return null;var o,t=e;return x==="right"&&(o=t.right||!t.left&&t||null),x==="left"&&(o=t.left||null),o?i.createElement("div",{className:"".concat(p,"-extra-content")},o):null};function Fo(l,E){var x,p=i.useContext(Sa),e=p.prefixCls,o=p.tabs,t=l.className,d=l.style,h=l.id,_=l.animated,C=l.activeKey,T=l.rtl,B=l.extra,me=l.editable,pe=l.locale,_e=l.tabPosition,$e=l.tabBarGutter,rt=l.children,qe=l.onTabClick,lt=l.onTabScroll,it=Object(i.useRef)(),tt=Object(i.useRef)(),nt=Object(i.useRef)(),Ot=Object(i.useRef)(),ct=Ma(),Bt=Object(S.a)(ct,2),At=Bt[0],Ve=Bt[1],He=_e==="top"||_e==="bottom",ft=Ga(0,function(Pt,pt){He&<&<({direction:Pt>pt?"left":"right"})}),ht=Object(S.a)(ft,2),ke=ht[0],xt=ht[1],Kt=Ga(0,function(Pt,pt){!He&<&<({direction:Pt>pt?"top":"bottom"})}),_t=Object(S.a)(Kt,2),Dt=_t[0],Ft=_t[1],on=Object(i.useState)(0),On=Object(S.a)(on,2),Xt=On[0],xn=On[1],Fn=Object(i.useState)(0),Sn=Object(S.a)(Fn,2),Mn=Sn[0],Gt=Sn[1],vn=Object(i.useState)(0),rn=Object(S.a)(vn,2),nn=rn[0],ea=rn[1],ta=Object(i.useState)(0),sa=Object(S.a)(ta,2),kt=sa[0],Xn=sa[1],la=Object(i.useState)(null),Wt=Object(S.a)(la,2),Tt=Wt[0],sn=Wt[1],Xo=Object(i.useState)(null),bo=Object(S.a)(Xo,2),ha=bo[0],$o=bo[1],Go=Object(i.useState)(0),go=Object(S.a)(Go,2),Yo=go[0],Qo=go[1],Jo=Object(i.useState)(0),Eo=Object(S.a)(Jo,2),Zo=Eo[0],qo=Eo[1],er=P(new Map),yo=Object(S.a)(er,2),tr=yo[0],nr=yo[1],Qa=fe(o,tr,Xt),Co="".concat(e,"-nav-operations-hidden"),Ta=0,wa=0;He?T?(Ta=0,wa=Math.max(0,Xt-Tt)):(Ta=Math.min(0,Tt-Xt),wa=0):(Ta=Math.min(0,ha-Mn),wa=0);function ao(Pt){return Ptwa?[wa,!1]:[Pt,!0]}var Oo=Object(i.useRef)(),ar=Object(i.useState)(),xo=Object(S.a)(ar,2),oo=xo[0],_o=xo[1];function ro(){_o(Date.now())}function io(){window.clearTimeout(Oo.current)}$a(it,function(Pt,pt){var an=!1;function Tn(Pa,Na){Pa(function(Da){var La=ao(Da+Na),va=Object(S.a)(La,2),co=va[0],fo=va[1];return an=fo,co})}if(He){if(Tt>=Xt)return an;Tn(xt,Pt)}else{if(ha>=Mn)return an;Tn(Ft,pt)}return io(),ro(),an}),Object(i.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){_o(0)},100)),io},[oo]);function jo(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,pt=Qa.get(Pt);if(!pt)return;if(He){var an=ke;T?pt.rightke+Tt&&(an=pt.right+pt.width-Tt):pt.left<-ke?an=-pt.left:pt.left+pt.width>-ke+Tt&&(an=-(pt.left+pt.width-Tt)),Ft(0),xt(ao(an)[0])}else{var Tn=Dt;pt.top<-Dt?Tn=-pt.top:pt.top+pt.height>-Dt+ha&&(Tn=-(pt.top+pt.height-ha)),xt(0),Ft(ao(Tn)[0])}}var or=Ee(Qa,{width:Tt,height:ha,left:ke,top:Dt},{width:nn,height:kt},{width:Yo,height:Zo},Object(N.a)(Object(N.a)({},l),{},{tabs:o})),Ro=Object(S.a)(or,2),rr=Ro[0],ir=Ro[1],sr=o.map(function(Pt){var pt=Pt.key;return i.createElement(J,{id:h,prefixCls:e,key:pt,rtl:T,tab:Pt,closable:Pt.closable,editable:me,active:pt===C,tabPosition:_e,tabBarGutter:$e,renderWrapper:rt,removeAriaLabel:pe==null?void 0:pe.removeAriaLabel,ref:At(pt),onClick:function(Tn){qe(pt,Tn)},onRemove:function(){Ve(pt)},onFocus:function(){jo(pt),ro(),T||(it.current.scrollLeft=0),it.current.scrollTop=0}})}),so=te(function(){var Pt,pt,an,Tn,Pa,Na,Da,La,va,co=((Pt=it.current)===null||Pt===void 0?void 0:Pt.offsetWidth)||0,fo=((pt=it.current)===null||pt===void 0?void 0:pt.offsetHeight)||0,Do=((an=Ot.current)===null||an===void 0?void 0:an.offsetWidth)||0,Lo=((Tn=Ot.current)===null||Tn===void 0?void 0:Tn.offsetHeight)||0,pr=((Pa=nt.current)===null||Pa===void 0?void 0:Pa.offsetWidth)||0,mr=((Na=nt.current)===null||Na===void 0?void 0:Na.offsetHeight)||0;sn(co),$o(fo),Qo(Do),qo(Lo);var Uo=(((Da=tt.current)===null||Da===void 0?void 0:Da.offsetWidth)||0)-Do,ko=(((La=tt.current)===null||La===void 0?void 0:La.offsetHeight)||0)-Lo;xn(Uo),Gt(ko);var Io=(va=nt.current)===null||va===void 0?void 0:va.className.includes(Co);ea(Uo-(Io?0:pr)),Xn(ko-(Io?0:mr)),nr(function(){var Ko=new Map;return o.forEach(function(hr){var Wo=hr.key,Ua=At(Wo).current;Ua&&Ko.set(Wo,{width:Ua.offsetWidth,height:Ua.offsetHeight,left:Ua.offsetLeft,top:Ua.offsetTop})}),Ko})}),lr=o.slice(0,rr),ur=o.slice(ir+1),So=[].concat(Object(F.a)(lr),Object(F.a)(ur)),cr=Object(i.useState)(),Mo=Object(S.a)(cr,2),dr=Mo[0],fr=Mo[1],na=Qa.get(C),To=Object(i.useRef)();function wo(){ce.a.cancel(To.current)}Object(i.useEffect)(function(){var Pt={};return na&&(He?(T?Pt.right=na.right:Pt.left=na.left,Pt.width=na.width):(Pt.top=na.top,Pt.height=na.height)),wo(),To.current=ce()(function(){fr(Pt)}),wo},[na,He,T]),Object(i.useEffect)(function(){jo()},[C,na,Qa,He]),Object(i.useEffect)(function(){so()},[T,$e,C,o.map(function(Pt){return Pt.key}).join("_")]);var Ao=!!So.length,Aa="".concat(e,"-nav-wrap"),lo,uo,Po,No;return He?T?(uo=ke>0,lo=ke+Tt7?{y:400}:{},columns:vt,loading:Te,onChange:ut,pagination:{pageSize:Qe.per_page,total:Qe.total,current:Qe.page,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"],showTotal:function(at){return M.a.createElement("span",{className:"mr10"},"\u5171",M.a.createElement("span",{className:"c-orange"},at),"\u6761\u6570\u636E")}}}))},j=m,Z=n("m3rI"),ve=n("fj85"),Y=n("g+eg"),ne=n("mgmH"),se=function($){var a,g,r=$.user,w={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,sort_by:null,direction:null},G=Object(k.useState)(w),oe=Object(y.a)(G,2),z=oe[0],we=oe[1],ze=Object(k.useState)(!0),We=Object(y.a)(ze,2),Le=We[0],Ie=We[1],Qe=Object(k.useState)(!1),jt=Object(y.a)(Qe,2),It=jt[0],Rt=jt[1],Lt=Object(k.useState)(!1),Jt=Object(y.a)(Lt,2),L=Jt[0],he=Jt[1],be=Object(k.useState)(!1),Me=Object(y.a)(be,2),Pe=Me[0],Se=Me[1],je=Object(k.useState)([]),ge=Object(y.a)(je,2),Oe=ge[0],Ke=ge[1],Te=Object(k.useState)([]),Ue=Object(y.a)(Te,2),Ge=Ue[0],Fe=Ue[1],Ze=Object(k.useState)([]),yt=Object(y.a)(Ze,2),ut=yt[0],vt=yt[1],Xe=Object(k.useState)([]),at=Object(y.a)(Xe,2),Ct=at[0],dt=at[1],bt=Object(k.useState)([]),Ht=Object(y.a)(bt,2),ot=Ht[0],Zt=Ht[1],Nt=Object(k.useState)(!1),St=Object(y.a)(Nt,2),mt=St[0],et=St[1],Ut=Object(k.useState)(!1),Yt=Object(y.a)(Ut,2),Vt=Yt[0],Mt=Yt[1],zn=O.a.useForm(),Bn=Object(y.a)(zn,1),_n=Bn[0],dn=Object(k.useState)("1"),bn=Object(y.a)(dn,2),kn=bn[0],wn=bn[1],gn=Object(A.h)(),ln=Object(k.useState)([]),In=Object(y.a)(ln,2),En=In[0],An=In[1];Object(k.useEffect)(function(){var Ae;r!=null&&(Ae=r.userInfo)!==null&&Ae!==void 0&&Ae.school_id&&(jn(),$n())},[r==null||((a=r.userInfo)===null||a===void 0)?void 0:a.school_id]);var qt=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne){var De,Be,Ye;return D.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return Be=Object(s.cloneDeep)(Ne),Y.a.setItem(r==null||((De=r.userInfo)===null||De===void 0)?void 0:De.login,[Be==null?void 0:Be.ec_major_school_id,Be==null?void 0:Be.ec_year_id]),Ie(!0),wt.next=5,Object(v.a)("/api/ec_years/".concat(z.ec_year_id,"/ec_courses.json"),{method:"get",params:Be});case 5:Ye=wt.sent,Ye!=null&&Ye.ec_courses&&(vt((Ye==null?void 0:Ye.ec_courses)||[]),z.total=Ye==null?void 0:Ye.count,we(Object(W.a)({},z))),Ie(!1);case 8:case"end":return wt.stop()}},Re)}));return function(Ne){return Ae.apply(this,arguments)}}(),jn=function(){var Ae=Object(V.a)(D.a.mark(function Re(){var Ne,De,Be,Ye,st,wt,mn,yn,Hn,Wn,hn,aa,Qn,Dn;return D.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return $t.next=2,Object(v.a)("/api/schools/".concat(r==null||((Ne=r.userInfo)===null||Ne===void 0)?void 0:Ne.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(hn=$t.sent,hn!=null&&(De=hn.data)!==null&&De!==void 0&&(Be=De[0])!==null&&Be!==void 0&&Be.ec_major_school_id){$t.next=7;break}return Ie(!1),Rt(!0),$t.abrupt("return");case 7:return aa=Y.a.getItem(r==null||((Ye=r.userInfo)===null||Ye===void 0)?void 0:Ye.login),Qn=Number(gn==null||((st=gn.query)===null||st===void 0)?void 0:st.ec_major_school_id)||aa[0]||(hn==null||((wt=hn.data)===null||wt===void 0||((mn=wt[0])===null||mn===void 0))?void 0:mn.ec_major_school_id),$t.next=11,Object(v.a)("/api/ec_major_schools/".concat(Qn,"/ec_years/get_year_list.json"),{method:"get"});case 11:Dn=$t.sent,z.ec_major_school_id=Qn,z.ec_year_id=Number(gn==null||((yn=gn.query)===null||yn===void 0)?void 0:yn.ec_year_id)||aa[1]||(Dn==null||((Hn=Dn.data)===null||Hn===void 0||((Wn=Hn[0])===null||Wn===void 0))?void 0:Wn.ec_year_id),Ke((hn==null?void 0:hn.data)||[]),Fe((Dn==null?void 0:Dn.data)||[]),we(z),qt(z);case 18:case"end":return $t.stop()}},Re)}));return function(){return Ae.apply(this,arguments)}}(),Kn=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne){var De,Be,Ye;return D.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Object(v.a)("/api/ec_major_schools/".concat(Ne,"/ec_years/get_year_list.json"),{method:"get"});case 2:Ye=wt.sent,z.ec_major_school_id=Ne,z.ec_year_id=Ye==null||((De=Ye.data)===null||De===void 0||((Be=De[0])===null||Be===void 0))?void 0:Be.ec_year_id,Fe((Ye==null?void 0:Ye.data)||[]),we(z),qt(z);case 8:case"end":return wt.stop()}},Re)}));return function(Ne){return Ae.apply(this,arguments)}}(),$n=function(){var Ae=Object(V.a)(D.a.mark(function Re(){var Ne;return D.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.next=2,Object(v.a)("/api/ec_years/1/ec_courses/course_type_list.json",{method:"get"});case 2:Ne=Be.sent,Ne!=null&&Ne.list&&dt(Ne.list||[]);case 4:case"end":return Be.stop()}},Re)}));return function(){return Ae.apply(this,arguments)}}(),Pn=function(Re,Ne){if(z.page=1,z[Ne]=Re,Ne==="ec_major_school_id"){Kn(Re);return}Ne==="ec_year_id"&&(we(Object(W.a)({},z)),qt(z))},Qt=function(Re){Ee.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Ne=Object(V.a)(D.a.mark(function Be(){var Ye,st;return D.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return mn.next=2,Object(v.a)("/api/ec_years/".concat(z.ec_year_id,"/ec_courses/").concat(Re,".json"),{method:"delete"});case 2:Ye=mn.sent,(Ye==null?void 0:Ye.status)===0&&(st=ut.length===1&&z.page>1?z.page-1:z.page,z.page=st,we(Object(W.a)({},z)),qt(z));case 4:case"end":return mn.stop()}},Be)}));function De(){return Ne.apply(this,arguments)}return De}()})},en=function(Re,Ne,De){Ee.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Be=Object(V.a)(D.a.mark(function st(){var wt;return D.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return yn.next=2,Object(v.a)("/api/ec_years/1/ec_courses/".concat(Ne?"delete_course_teacher":"delete_work_teacher",".json"),{method:"delete",body:{id:Re,ec_course_id:De==null?void 0:De.id}});case 2:wt=yn.sent,(wt==null?void 0:wt.status)===0&&qt(z);case 4:case"end":return yn.stop()}},st)}));function Ye(){return Be.apply(this,arguments)}return Ye}()})},fn=function(Re,Ne,De){if(z.page=Re==null?void 0:Re.current,z.per_page=Re==null?void 0:Re.pageSize,De!=null&&De.order?(z.sort_by=De==null?void 0:De.field,z.direction=(De==null?void 0:De.order)==="ascend"?"asc":"desc"):(z.sort_by=null,z.direction=null),we(Object(W.a)({},z)),Rn)return;qt(z)},tn=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:function(Re,Ne,De){return M.a.createElement("span",{className:"pl20"},z.per_page*(z.page-1)+De+1)}},{title:"\u8BFE\u7A0B\u540D\u79F0",dataIndex:"name",sorter:!0,ellipsis:!0,render:function(Re){return Re||"-"}},{title:"\u8BFE\u7A0B\u7C7B\u578B",dataIndex:"course_type",ellipsis:!0,width:120,sorter:!0,render:function(Re){return Re||"-"}},{title:"\u6388\u8BFE\u6559\u5E08",dataIndex:"course_teachers",align:"right",width:300,render:function(Re,Ne){return M.a.createElement("span",{className:X.a.tagWrap},Re==null?void 0:Re.map(function(De){return M.a.createElement("div",{className:X.a.tag,key:De.id},M.a.createElement("span",{title:De.name},De.name),M.a.createElement("span",{onClick:function(Ye){Ye.preventDefault(),en(De.id,!0,Ne)}},M.a.createElement("i",{className:"iconfont icon-guanbi7"})))}),M.a.createElement("span",{onClick:function(){return pn(Re,!0,Ne)},className:"iconfont c-gcrz-primary current icon-tianjiatimu"}))}},{title:M.a.createElement("div",{className:"mr20"},"\u8BA4\u8BC1\u5DE5\u4F5C\u6559\u5E08"),dataIndex:"work_teachers",width:300,align:"right",render:function(Re,Ne){return M.a.createElement("span",{style:{marginRight:20},className:X.a.tagWrap},Re==null?void 0:Re.map(function(De){return M.a.createElement("div",{className:X.a.tag,key:De.id},M.a.createElement("span",{title:De.name},De.name),M.a.createElement("span",{onClick:function(Ye){Ye.preventDefault(),en(De.id,!1,Ne)}},M.a.createElement("i",{className:"iconfont icon-guanbi7"})))}),M.a.createElement("span",{onClick:function(){return pn(Re,!1,Ne)},className:"iconfont c-gcrz-primary current icon-tianjiatimu"}))}},{title:"\u64CD\u4F5C",width:110,dataIndex:"action",render:function(Re,Ne){return M.a.createElement("span",{style:{display:"inline-block",transform:"translateY(1px)"}},M.a.createElement("i",{onClick:function(){return un(Ne)},className:"iconfont icon-bianji7 c-gcrz-primary mr15 current"}),M.a.createElement("i",{onClick:function(){return Qt(Ne.id)},className:"iconfont icon-piliangshanchubeifen mr15 c-gcrz-primary current"}),M.a.createElement("i",{onClick:function(){return K.d.push("/engineering/cursesetting?course=".concat(Ne.id,"&ec_major_school_id=").concat(z==null?void 0:z.ec_major_school_id,"&ec_year_id=").concat(z==null?void 0:z.ec_year_id))},className:"iconfont icon-anquanshezhi c-gcrz-primary current"}))}}],un=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne){return D.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:Mt(Ne.id),_n.setFieldsValue({name:Ne.name,course_type:Ne.course_type});case 2:case"end":return Be.stop()}},Re)}));return function(Ne){return Ae.apply(this,arguments)}}(),pn=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne,De,Be){return D.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:Zt(Ne.map(function(wt){return wt.id})||[]),et(De),Se(Be.id);case 3:case"end":return st.stop()}},Re)}));return function(Ne,De,Be){return Ae.apply(this,arguments)}}(),Gn=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne){var De,Be;return D.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(he(!0),!(Vt===!0)){st.next=7;break}return st.next=4,Object(v.a)("/api/ec_years/".concat(z.ec_year_id,"/ec_courses.json"),{method:"post",body:Object(W.a)({},Ne)});case 4:Be=st.sent,st.next=10;break;case 7:return st.next=9,Object(v.a)("/api/ec_years/".concat(z.ec_year_id,"/ec_courses/").concat(Vt,".json"),{method:"put",body:Object(W.a)({},Ne)});case 9:Be=st.sent;case 10:((De=Be)===null||De===void 0?void 0:De.status)===0&&(qt(z),Mt(!1)),_n.resetFields(),he(!1);case 13:case"end":return st.stop()}},Re)}));return function(Ne){return Ae.apply(this,arguments)}}(),Nn=function(){Mt(!1),wn("1"),_n.resetFields()},Yn=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne,De){var Be;return D.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(!(Ne.length===0)){st.next=4;break}return fe.b.warn("\u8BF7\u9009\u62E9\u6559\u5E08"),De(),st.abrupt("return");case 4:if(!(Ne.length>2)){st.next=8;break}return fe.b.warn("\u6700\u591A\u9009\u62E9\u4E24\u540D\u6559\u5E08"),De(),st.abrupt("return");case 8:return st.next=10,Object(v.a)("/api/ec_years/1/ec_courses/".concat(mt?"add_course_teachers":"add_work_teachers",".json"),{method:"post",body:{ids:Ne,ec_course_id:Pe}});case 10:Be=st.sent,(Be==null?void 0:Be.status)===0&&(qt(z),Se(!1)),De();case 13:case"end":return st.stop()}},Re)}));return function(Ne,De){return Ae.apply(this,arguments)}}(),ua=function(){return M.a.createElement("div",null,M.a.createElement(O.a,{colon:!1,form:_n,onFinish:Gn,className:X.a.form,labelCol:{span:4},wrapperCol:{span:19}},M.a.createElement(O.a.Item,{label:"\u8BFE\u7A0B\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"},{max:60,message:"\u6700\u591A\u8F93\u516560\u4E2A\u5B57"}]},M.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"})),M.a.createElement(O.a.Item,{label:"\u8BFE\u7A0B\u7C7B\u578B",name:"course_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B"}]},M.a.createElement(R.a,{style:{width:358},placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B"},Ct==null?void 0:Ct.map(function(Re){return M.a.createElement(R.a.Option,{value:Re},Re)})))),M.a.createElement(ce.a,{size:10,className:X.a.button,style:{margin:"26px 40px 20px 0",float:"right"}},M.a.createElement(te.a,{onClick:Nn},"\u53D6\u6D88"),M.a.createElement(te.a,{type:"primary",loading:L,onClick:function(){_n.submit()}},"\u4FDD\u5B58")),M.a.createElement("div",{style:{clear:"both"}}))},ca={onRemove:function(){An([])},beforeUpload:function(Re){if(console.log(Re),(Re==null?void 0:Re.size)>1024*1024*50)return fe.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var Ne=[];return Ne.push(Re),An([].concat(Ne)),!1},fileList:En,accept:".xls,.xlsx"},Rn=Le||It;return M.a.createElement("div",{className:X.a.wrap},M.a.createElement(ve.a,{title:"\u8BFE\u7A0B\u5217\u8868",style:{padding:"12px 0 0 20px"}}),M.a.createElement("div",{className:X.a.control},M.a.createElement("div",{className:X.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),M.a.createElement(R.a,{disabled:Rn,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:z==null?void 0:z.ec_major_school_id,onChange:function(Re){return Pn(Re,"ec_major_school_id")}},Oe==null?void 0:Oe.map(function(Ae){return M.a.createElement(R.a.Option,{value:Ae.ec_major_school_id},Ae.name)})),M.a.createElement("div",{className:X.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),M.a.createElement(R.a,{disabled:Rn,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:z==null?void 0:z.ec_year_id,onChange:function(Re){return Pn(Re,"ec_year_id")}},Ge==null?void 0:Ge.map(function(Ae){return M.a.createElement(R.a.Option,{value:Ae.ec_year_id},Ae.year)})),M.a.createElement(ce.a,{className:X.a.button,size:10},M.a.createElement(te.a,{disabled:Rn,style:{transition:"0s"},onClick:function(){Mt(!0)},type:"primary"},M.a.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u65B0\u589E\u8BFE\u7A0B"),M.a.createElement(te.a,{disabled:Rn,onClick:function(){Object(ne.q)({ec_year_id:z==null?void 0:z.ec_year_id})}},M.a.createElement("i",{style:{marginRight:"7px"},className:"iconfont icon-daochubeifen"})," ","\u5BFC\u51FA"))),M.a.createElement(F.a,{className:X.a.customTable,dataSource:ut,bordered:!1,rowKey:"id",columns:tn,rowClassName:X.a.row,loading:Le,onChange:fn,pagination:{pageSize:z.per_page,total:z.total,current:z.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(Re){return M.a.createElement("span",{className:"mr10"},"\u5171",M.a.createElement("span",{className:"c-orange"},Re),"\u6761\u6570\u636E")}}}),M.a.createElement(Ee.a,{title:Vt===!0?"\u65B0\u589E\u8BFE\u7A0B":"\u7F16\u8F91\u8BFE\u7A0B",visible:!!Vt,centered:!0,onCancel:Nn,className:X.a.customModal,width:"740px",footer:null},M.a.createElement(ee.a,{activeKey:kn,onChange:function(Re){wn(Re)},style:{paddingLeft:20}},M.a.createElement(ee.a.TabPane,{key:1,tab:"\u624B\u52A8\u65B0\u589E"},ua()),M.a.createElement(ee.a.TabPane,{key:2,tab:"\u6279\u91CF\u5BFC\u5165"},M.a.createElement("p",null,"\u6B65\u9AA41\uFF1A\u4E0B\u8F7D",M.a.createElement("a",{href:"".concat(Z.a.API_SERVER,"/api/ec_years/0/ec_courses/download_template.xlsx"),download:"\u6A21\u7248.xlsx"},"\u8BFE\u7A0B\u4F53\u7CFB\u5BFC\u5165\u6A21\u677F"),",\u6279\u91CF\u5BFC\u5165\u8BFE\u7A0B\u6570\u636E\u3002",M.a.createElement("span",{style:{color:"#D95201"}},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F")),M.a.createElement(S.a,null,M.a.createElement(u.a,null,"\u6B65\u9AA42\uFF1A"),M.a.createElement(u.a,null,M.a.createElement(N.a,ca,M.a.createElement(te.a,{type:"primary"},"\u9009\u62E9\u6587\u4EF6")))),M.a.createElement(ce.a,{size:10,className:X.a.button,style:{margin:"26px 40px 20px 0",float:"right"}},M.a.createElement(te.a,{onClick:Nn},"\u53D6\u6D88"),M.a.createElement(te.a,{type:"primary",loading:L,onClick:Object(V.a)(D.a.mark(function Ae(){var Re,Ne,De;return D.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Ne=new FormData,!(En.length>0)){Ye.next=5;break}Ne.append("file",En[0]),Ye.next=7;break;case 5:return fe.b.warn("\u8BF7\u9009\u62E9\u6587\u4EF6"),Ye.abrupt("return");case 7:return he(!0),Ne.append("ec_year_id",z.ec_year_id),Ne.append("school_id",r==null||((Re=r.userInfo)===null||Re===void 0)?void 0:Re.school_id),Ye.next=12,Object(v.a)("/api/ec_years/".concat(z.ec_year_id,"/ec_courses/import_ec_courses.json"),{method:"post",body:Ne},!0);case 12:De=Ye.sent,he(!1),(De==null?void 0:De.status)===0&&(An([]),Mt(!1),fe.b.info("\u6DFB\u52A0\u6210\u529F"),qt(z));case 15:case"end":return Ye.stop()}},Ae)}))},"\u4FDD\u5B58"))))),M.a.createElement(j,{visible:!!Pe,onCancel:function(){return Se(!1)},onOk:Yn,selectIds:ot,teacher:mt,ec_year_id:z==null?void 0:z.ec_year_id,title:mt?"\u9009\u62E9\u6388\u8BFE\u6559\u5E08":"\u9009\u62E9\u8BA4\u8BC1\u5DE5\u4F5C\u6559\u5E08",schoolId:r==null||((g=r.userInfo)===null||g===void 0)?void 0:g.school_id}))},ae=re.default=Object(K.a)(function(H){var $=H.user;return{user:$}})(se)},mgmH:function(Je,re,n){"use strict";n.d(re,"d",function(){return ye}),n.d(re,"b",function(){return te}),n.d(re,"e",function(){return P}),n.d(re,"c",function(){return R}),n.d(re,"n",function(){return le}),n.d(re,"g",function(){return J}),n.d(re,"h",function(){return ue}),n.d(re,"j",function(){return ie}),n.d(re,"a",function(){return Ee}),n.d(re,"l",function(){return W}),n.d(re,"f",function(){return V}),n.d(re,"k",function(){return q}),n.d(re,"m",function(){return O}),n.d(re,"i",function(){return y}),n.d(re,"o",function(){return b}),n.d(re,"t",function(){return D}),n.d(re,"s",function(){return k}),n.d(re,"p",function(){return M}),n.d(re,"q",function(){return Ce}),n.d(re,"r",function(){return X}),n.d(re,"v",function(){return A}),n.d(re,"u",function(){return K});var I=n("miYZ"),S=n("tsqr"),xe=n("k1fw"),N=n("9og8"),i=n("WmNS"),u=n.n(i),de=n("oUNq"),ee=n("9kvl"),U=n("1vsH"),F=n("m3rI"),Q=function(){Object(ee.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},ce=function(){Object(ee.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},ye=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return Q(),j.next=3,Object(de.t)(Object(xe.a)({},f));case 3:if(c=j.sent,!(c.status===0)){j.next=7;break}return j.next=7,Object(U.w)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/".concat(f.coursesId,"/export_couser_info.json"),query:f}));case 7:ce();case 8:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),te=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.r)(Object(xe.a)({},f));case 2:if(c=j.sent,!(c.status===0)){j.next=8;break}S.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_member_act_score")),j.next=13;break;case 8:if(!(c.status===-2)){j.next=12;break}return j.abrupt("return",c);case 12:c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),P=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.u)(Object(xe.a)({},f));case 2:if(c=j.sent,!(c.status===0)){j.next=8;break}S.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_score")),j.next=13;break;case 8:if(!(c.status===-2)){j.next=12;break}return j.abrupt("return",c);case 12:c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_score")));case 13:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),R=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.s)(Object(xe.a)({},f));case 2:if(c=j.sent,!(c.status===0)){j.next=8;break}S.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_exercise_and_other")),j.next=13;break;case 8:if(!(c.status===-2)){j.next=12;break}return j.abrupt("return",c);case 12:c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),le=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.z)(Object(xe.a)({},f));case 2:if(c=j.sent,!(c.status===0)){j.next=8;break}S.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_exercise_and_other")),j.next=13;break;case 8:if(!(c.status===-2)){j.next=12;break}return j.abrupt("return",c);case 12:c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),J=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.v)(Object(xe.a)({},f));case 2:if(c=j.sent,!(c.status===0)){j.next=8;break}S.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_homework")),j.next=13;break;case 8:if(!(c.status===-2)){j.next=12;break}return j.abrupt("return",c);case 12:c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),ue=function(){var v=Object(N.a)(u.a.mark(function s(f,c){var m;return u.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,Object(de.x)(Object(xe.a)({},f));case 2:m=Z.sent,m.status===0?(S.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/").concat(c))):m.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/").concat(c)));case 4:case"end":return Z.stop()}},s)}));return function(f,c){return v.apply(this,arguments)}}(),fe=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return Q(),j.next=3,Object(de.w)(Object(xe.a)({},f));case 3:if(c=j.sent,!(c.status===0)){j.next=7;break}return j.next=7,Object(U.w)("",Object(U.Y)({url:F.a.API_SERVER+"/api/homework_commons/".concat(f.categoryId,"/works_list.zip"),query:f}));case 7:ce();case 8:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),ie=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return Q(),j.next=3,Object(de.A)(Object(xe.a)({},f));case 3:if(c=j.sent,!(c.status===0)){j.next=7;break}return j.next=7,Object(U.w)("",Object(U.Y)({url:F.a.API_SERVER+"/api/polls/".concat(f.categoryId,"/commit_result.xlsx"),query:f}));case 7:ce();case 8:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),Ee=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/".concat(f.coursesId,"/attendances/export_xlsx_data.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),W=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/".concat(f.coursesId,"/video_study_statics.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),V=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/".concat(f.coursesId,"/export_course_students_info.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),q=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/item_banks/export.xlsx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),O=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),y=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.y)(Object(xe.a)({},f));case 2:c=j.sent,c.status===0?(S.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/exercise_score"))):c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/exercise_score")));case 4:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),b=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),m.next=3,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/export_records/".concat(f.id,".xlsx"),query:f}));case 3:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),D=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),k=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/ec_years/".concat(f==null?void 0:f.ec_year_id,"/ec_training_objectives.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),M=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)(f==null?void 0:f.name,Object(U.Y)({url:F.a.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),Ce=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/ec_years/".concat(f==null?void 0:f.ec_year_id,"/ec_courses.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),X=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/ec_years/".concat(f==null?void 0:f.ec_year_id,"/ec_graduation_requirements.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),A=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/rank_list.xlsx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),K=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/question_rank_list.xlsx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}()},n6Qo:function(Je,re,n){"use strict";n.d(re,"a",function(){return ee});var I=n("q1tI"),S=n("biw7"),xe=n("fyJ8");function N(U){var F=U.className,Q=U.index,ce=U.children,ye=U.colSpan,te=U.rowSpan,P=I.useContext(S.a),R=P.prefixCls,le=P.fixedInfoList,J=le[Q];return I.createElement(xe.a,Object.assign({className:F,index:Q,component:"td",prefixCls:R,record:null,dataIndex:null,render:function(){return{children:ce,props:{colSpan:ye,rowSpan:te}}}},J))}function i(U){return I.createElement("tr",Object.assign({},U))}function u(U){var F=U.children,Q=I.useContext(S.a),ce=Q.prefixCls;return I.createElement("tfoot",{className:"".concat(ce,"-summary")},F)}var de=re.b=u,ee={Cell:N,Row:i}},sBkp:function(Je,re,n){Je.exports={flex_box_center:"flex_box_center___2ei3K",flex_space_between:"flex_space_between___3lPdu",flex_box_vertical_center:"flex_box_vertical_center___16QaQ",flex_box_center_end:"flex_box_center_end___30Z_i",flex_box_column:"flex_box_column___2a4ue",customModal:"customModal___2B4GK",customTable:"customTable___1U6wo"}},sR1s:function(Je,re,n){"use strict";n.d(re,"b",function(){return N}),n.d(re,"a",function(){return i}),n.d(re,"c",function(){return u}),n.d(re,"d",function(){return de});var I=n("U8pU"),S="RC_TABLE_KEY";function xe(ee){return ee==null?[]:Array.isArray(ee)?ee:[ee]}function N(ee,U){if(!U&&typeof U!="number")return ee;for(var F=xe(U),Q=ee,ce=0;ce1)Object(F.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(fe.length===0)return Object(F.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var ie=fe[0];if(u.isValidElement(ie)&&Object(Q.c)(ie)){var Ee=ie.ref;fe[0]=u.cloneElement(ie,{ref:Object(Q.a)(Ee,this.setChildNode)})}return fe.length===1?fe[0]:fe.map(function(W,V){return!u.isValidElement(W)||"key"in W&&W.key!==null?W:u.cloneElement(W,{key:"".concat(ye,"-").concat(V)})})}}]),le}(u.Component);te.displayName="ResizeObserver",re.a=te},wCXF:function(Je,re,n){"use strict";n.d(re,"a",function(){return It});var I=n("rePB"),S=n("VTBJ"),xe=n("KQm4"),N=n("U8pU"),i=n("ODXe"),u=n("q1tI"),de=n("TSYQ"),ee=n.n(de),U=n("Gytx"),F=n.n(U),Q=n("Kwbf"),ce=n("t23M"),ye=n("qx4F"),te=n("6eGT"),P=n("IBYe"),R=n("Ff2n"),le=n("c+Xe"),J=n("fyJ8"),ue=n("biw7");function fe(L,he,be,Me,Pe){var Se=be[L]||{},je=be[he]||{},ge,Oe;Se.fixed==="left"?ge=Me.left[L]:je.fixed==="right"&&(Oe=Me.right[he]);var Ke=!1,Te=!1,Ue=!1,Ge=!1,Fe=be[he+1],Ze=be[L-1];if(Pe==="rtl"){if(ge!==void 0){var yt=Ze&&Ze.fixed==="left";Ge=!yt}else if(Oe!==void 0){var ut=Fe&&Fe.fixed==="right";Ue=!ut}}else if(ge!==void 0){var vt=Fe&&Fe.fixed==="left";Ke=!vt}else if(Oe!==void 0){var Xe=Ze&&Ze.fixed==="right";Te=!Xe}return{fixLeft:ge,fixRight:Oe,lastFixLeft:Ke,firstFixRight:Te,lastFixRight:Ue,firstFixLeft:Ge,isSticky:Me.isSticky}}var ie=n("sR1s");function Ee(L){var he=L.cells,be=L.stickyOffsets,Me=L.flattenColumns,Pe=L.rowComponent,Se=L.cellComponent,je=L.onHeaderRow,ge=L.index,Oe=u.useContext(ue.a),Ke=Oe.prefixCls,Te=Oe.direction,Ue;je&&(Ue=je(he.map(function(Fe){return Fe.column}),ge));var Ge=Object(ie.a)(he.map(function(Fe){return Fe.column}));return u.createElement(Pe,Object.assign({},Ue),he.map(function(Fe,Ze){var yt=Fe.column,ut=fe(Fe.colStart,Fe.colEnd,Me,be,Te),vt;return yt&&yt.onHeaderCell&&(vt=Fe.column.onHeaderCell(yt)),u.createElement(J.a,Object.assign({},Fe,{ellipsis:yt.ellipsis,align:yt.align,component:Se,prefixCls:Ke,key:Ge[Ze]},ut,{additionalProps:vt,rowType:"header"}))}))}Ee.displayName="HeaderRow";var W=Ee;function V(L){var he=[];function be(je,ge){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;he[Oe]=he[Oe]||[];var Ke=ge,Te=je.filter(Boolean).map(function(Ue){var Ge={key:Ue.key,className:Ue.className||"",children:Ue.title,column:Ue,colStart:Ke},Fe=1,Ze=Ue.children;return Ze&&Ze.length>0&&(Fe=be(Ze,Ke,Oe+1).reduce(function(yt,ut){return yt+ut},0),Ge.hasSubColumns=!0),"colSpan"in Ue&&(Fe=Ue.colSpan),"rowSpan"in Ue&&(Ge.rowSpan=Ue.rowSpan),Ge.colSpan=Fe,Ge.colEnd=Ge.colStart+Fe-1,he[Oe].push(Ge),Ke+=Fe,Fe});return Te}be(L,0);for(var Me=he.length,Pe=function(ge){he[ge].forEach(function(Oe){!("rowSpan"in Oe)&&!Oe.hasSubColumns&&(Oe.rowSpan=Me-ge)})},Se=0;Se=0;ge-=1){var Oe=he[ge],Ke=be&&be[ge],Te=Ke&&Ke[y.a];(Oe||Te||je)&&(Pe.unshift(u.createElement("col",Object.assign({key:ge,style:{width:Oe,minWidth:Oe}},Te))),je=!0)}return u.createElement("colgroup",null,Pe)}var D=b;function k(L,he){return Object(u.useMemo)(function(){for(var be=[],Me=0;Me1?tn-1:0),pn=1;pn=Ue&&(Mt=Ue-Ge),je({scrollLeft:Mt/Ue*(Te+2)}),Xe.current.x=et.pageX},Nt=function(){var et=Object(ze.b)(Se.current).top,Ut=et+Se.current.offsetHeight,Yt=document.documentElement.scrollTop+window.innerHeight;Ut-Object(ye.a)()<=Yt||et>=Yt-ge?vt(function(Vt){return Object(S.a)(Object(S.a)({},Vt),{},{isHiddenScrollBar:!0})}):vt(function(Vt){return Object(S.a)(Object(S.a)({},Vt),{},{isHiddenScrollBar:!1})})},St=function(et){vt(function(Ut){return Object(S.a)(Object(S.a)({},Ut),{},{scrollLeft:et/Te*Ue||0})})};return u.useImperativeHandle(be,function(){return{setScrollLeft:St}}),u.useEffect(function(){var mt=Object(we.a)(document.body,"mouseup",Ht,!1),et=Object(we.a)(document.body,"mousemove",Zt,!1);return Nt(),function(){mt.remove(),et.remove()}},[Ge,dt]),u.useEffect(function(){var mt=Object(we.a)(window,"scroll",Nt,!1),et=Object(we.a)(window,"resize",Nt,!1);return function(){mt.remove(),et.remove()}},[]),u.useEffect(function(){ut.isHiddenScrollBar||vt(function(mt){var et,Ut;return Object(S.a)(Object(S.a)({},mt),{},{scrollLeft:Se.current.scrollLeft/((et=Se.current)===null||et===void 0?void 0:et.scrollWidth)*((Ut=Se.current)===null||Ut===void 0?void 0:Ut.clientWidth)})})},[ut.isHiddenScrollBar]),Te<=Ue||!Ge||ut.isHiddenScrollBar?null:u.createElement("div",{style:{height:Object(ye.a)(),width:Ue,bottom:ge},className:"".concat(Ke,"-sticky-scroll")},u.createElement("div",{onMouseDown:ot,ref:Fe,className:ee()("".concat(Ke,"-sticky-scroll-bar"),Object(I.a)({},"".concat(Ke,"-sticky-scroll-bar-active"),dt)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(ut.scrollLeft,"px, 0, 0)")}}))},Le=u.forwardRef(We);function Ie(L,he){return u.useMemo(function(){var be=!!L;return{isSticky:be,stickyClassName:be?"".concat(he,"-sticky-header"):"",offsetHeader:Object(N.a)(L)==="object"&&L.offsetHeader||0,offsetScroll:Object(N.a)(L)==="object"&&L.offsetScroll||0}},[L,he])}var Qe=[],jt={},It="rc-table-internal-hook",Rt=u.memo(function(L){var he=L.children;return he},function(L,he){return F()(L.props,he.props)?L.pingLeft!==he.pingLeft||L.pingRight!==he.pingRight:!1});function Lt(L){var he,be=L.prefixCls,Me=L.className,Pe=L.rowClassName,Se=L.style,je=L.data,ge=L.rowKey,Oe=L.scroll,Ke=L.tableLayout,Te=L.direction,Ue=L.title,Ge=L.footer,Fe=L.summary,Ze=L.id,yt=L.showHeader,ut=L.components,vt=L.emptyText,Xe=L.onRow,at=L.onHeaderRow,Ct=L.internalHooks,dt=L.transformColumns,bt=L.internalRefs,Ht=L.sticky,ot=je||Qe,Zt=!!ot.length,Nt=u.useState(0),St=Object(i.a)(Nt,2),mt=St[0],et=St[1];u.useEffect(function(){et(Object(ye.a)())});var Ut=u.useMemo(function(){return Object(ie.c)(ut,{})},[ut]),Yt=u.useCallback(function(gt,Et){return Object(ie.b)(Ut,gt)||Et},[Ut]),Vt=u.useMemo(function(){return typeof ge=="function"?ge:function(gt){var Et=gt&>[ge];return Et}},[ge]),Mt=Object(y.c)(L),zn=Mt.expandIcon,Bn=Mt.expandedRowKeys,_n=Mt.defaultExpandedRowKeys,dn=Mt.defaultExpandAllRows,bn=Mt.expandedRowRender,kn=Mt.onExpand,wn=Mt.onExpandedRowsChange,gn=Mt.expandRowByClick,ln=Mt.rowExpandable,In=Mt.expandIconColumnIndex,En=Mt.expandedRowClassName,An=Mt.childrenColumnName,qt=Mt.indentSize,jn=zn||oe,Kn=An||"children",$n=u.useMemo(function(){return bn?"row":L.expandable&&Ct===It&&L.expandable.__PARENT_RENDER_ICON__||ot.some(function(gt){return gt&&Object(N.a)(gt)==="object"&>[Kn]})?"nest":!1},[!!bn,ot]),Pn=u.useState(function(){return _n||(dn?z(ot,Vt,Kn):[])}),Qt=Object(i.a)(Pn,2),en=Qt[0],fn=Qt[1],tn=u.useMemo(function(){return new Set(Bn||en||[])},[Bn,en]),un=u.useCallback(function(gt){var Et=Vt(gt,ot.indexOf(gt)),zt,cn=tn.has(Et);cn?(tn.delete(Et),zt=Object(xe.a)(tn)):zt=[].concat(Object(xe.a)(tn),[Et]),fn(zt),kn&&kn(!cn,gt),wn&&wn(zt)},[Vt,tn,ot,kn,wn]),pn=u.useState(0),Gn=Object(i.a)(pn,2),Nn=Gn[0],Yn=Gn[1],ua=Object(ne.b)(Object(S.a)(Object(S.a)(Object(S.a)({},L),Mt),{},{expandable:!!bn,expandedKeys:tn,getRowKey:Vt,onTriggerExpand:un,expandIcon:jn,expandIconColumnIndex:In,direction:Te}),Ct===It?dt:null),ca=Object(i.a)(ua,2),Rn=ca[0],Ae=ca[1],Re=u.useMemo(function(){return{columns:Rn,flattenColumns:Ae}},[Rn,Ae]),Ne=u.useRef(),De=u.useRef(),Be=u.useRef(),Ye=u.useState(!1),st=Object(i.a)(Ye,2),wt=st[0],mn=st[1],yn=u.useState(!1),Hn=Object(i.a)(yn,2),Wn=Hn[0],hn=Hn[1],aa=H(new Map),Qn=Object(i.a)(aa,2),Dn=Qn[0],ka=Qn[1],$t=Object(ie.a)(Ae),ba=$t.map(function(gt){return Dn.get(gt)}),Ia=u.useMemo(function(){return ba},[ba.join("_")]),ga=g(Ia,Ae.length,Te),Cn=Oe&&Object(ie.d)(Oe.y),Ln=Oe&&Object(ie.d)(Oe.x),Un=Ln&&Ae.some(function(gt){var Et=gt.fixed;return Et}),Ea=u.useRef(),oa=Ie(Ht,be),ra=oa.isSticky,Ka=oa.offsetHeader,Ja=oa.offsetScroll,Wa=oa.stickyClassName,ya,da,Jn;Cn&&(da={overflowY:"scroll",maxHeight:Oe.y}),Ln&&(ya={overflowX:"auto"},Cn||(da={overflowY:"hidden"}),Jn={width:Oe.x===!0?"auto":Oe.x,minWidth:"100%"});var Vn=u.useCallback(function(gt,Et){ka(function(zt){var cn=new Map(zt);return cn.set(gt,Et),cn})},[]),fa=$(null),Fa=Object(i.a)(fa,2),za=Fa[0],Ba=Fa[1];function pa(gt,Et){if(!Et)return;typeof Et=="function"?Et(gt):Et.scrollLeft!==gt&&(Et.scrollLeft=gt)}var Zn=function(Et){var zt=Et.currentTarget,cn=Et.scrollLeft,ia=typeof cn=="number"?cn:zt.scrollLeft,$a=zt||jt;if(!Ba()||Ba()===$a){var Ma;za($a),pa(ia,De.current),pa(ia,Be.current),pa(ia,(Ma=Ea.current)===null||Ma===void 0?void 0:Ma.setScrollLeft)}if(zt){var Ga=zt.scrollWidth,Ya=zt.clientWidth;mn(ia>0),hn(ia0?[].concat(Object(S.a)(R),Object(S.a)(Q(fe).map(function(ie){return Object(xe.a)({fixed:ue},ie)}))):[].concat(Object(S.a)(R),[Object(xe.a)(Object(xe.a)({},le),{},{fixed:ue})])},[])}function ce(P){for(var R=!0,le=0;le=0;fe-=1){var ie=P[fe];if(ue&&ie.fixed!=="right")ue=!1;else if(!ue&&ie.fixed==="right"){Object(de.a)(!1,"Index ".concat(fe+1," of `columns` missing `fixed='right'` prop."));break}}}function ye(P){return P.map(function(R){var le=R.fixed,J=Object(N.a)(R,["fixed"]),ue=le;return le==="left"?ue="right":le==="right"&&(ue="left"),Object(xe.a)({fixed:ue},J)})}function te(P,R){var le=P.prefixCls,J=P.columns,ue=P.children,fe=P.expandable,ie=P.expandedKeys,Ee=P.getRowKey,W=P.onTriggerExpand,V=P.expandIcon,q=P.rowExpandable,O=P.expandIconColumnIndex,y=P.direction,b=P.expandRowByClick,D=i.useMemo(function(){return J||F(ue)},[J,ue]),k=i.useMemo(function(){if(fe){var X,A=O||0,K=D[A],v=(X={},Object(I.a)(X,U.a,{className:"".concat(le,"-expand-icon-col")}),Object(I.a)(X,"title",""),Object(I.a)(X,"fixed",K?K.fixed:null),Object(I.a)(X,"className","".concat(le,"-row-expand-icon-cell")),Object(I.a)(X,"render",function(c,m,j){var Z=Ee(m,j),ve=ie.has(Z),Y=q?q(m):!0,ne=V({prefixCls:le,expanded:ve,expandable:Y,record:m,onExpand:W});return b?i.createElement("span",{onClick:function(ae){return ae.stopPropagation()}},ne):ne}),X),s=D.slice();return A>=0&&s.splice(A,0,v),s}return D},[fe,D,Ee,ie,V,y]),M=i.useMemo(function(){var X=k;return R&&(X=R(X)),X.length||(X=[{render:function(){return null}}]),X},[R,k,y]),Ce=i.useMemo(function(){return y==="rtl"?ye(Q(M)):Q(M)},[M,y]);return[M,Ce]}re.b=te},"y0+3":function(Je,re,n){"use strict";n.d(re,"a",function(){return Q}),n.d(re,"b",function(){return ye});var I=/margin|padding|width|height|max|min|offset/,S={left:!0,top:!0},xe={cssFloat:1,styleFloat:1,float:1};function N(te){return te.nodeType===1?te.ownerDocument.defaultView.getComputedStyle(te,null):{}}function i(te,P,R){if(P=P.toLowerCase(),R==="auto"){if(P==="height")return te.offsetHeight;if(P==="width")return te.offsetWidth}return P in S||(S[P]=I.test(P)),S[P]?parseFloat(R)||0:R}function u(te,P){var R=arguments.length,le=N(te);return P=xe[P]?"cssFloat"in te.style?"cssFloat":"styleFloat":P,R===1?le:i(te,P,le[P]||te.style[P])}function de(te,P,R){var le=arguments.length;if(P=xe[P]?"cssFloat"in te.style?"cssFloat":"styleFloat":P,le===3)return typeof R=="number"&&I.test(P)&&(R="".concat(R,"px")),te.style[P]=R,R;for(var J in P)P.hasOwnProperty(J)&&de(te,J,P[J]);return N(te)}function ee(te){return te===document.body?document.documentElement.clientWidth:te.offsetWidth}function U(te){return te===document.body?window.innerHeight||document.documentElement.clientHeight:te.offsetHeight}function F(){var te=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),P=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:te,height:P}}function Q(){var te=document.documentElement.clientWidth,P=window.innerHeight||document.documentElement.clientHeight;return{width:te,height:P}}function ce(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ye(te){var P=te.getBoundingClientRect(),R=document.documentElement;return{left:P.left+(window.pageXOffset||R.scrollLeft)-(R.clientLeft||document.body.clientLeft||0),top:P.top+(window.pageYOffset||R.scrollTop)-(R.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(m,",").concat(m," 0 1 1 ").concat(-ve,",").concat(Y),se=Math.PI*2*m,ae={stroke:v,strokeDasharray:"".concat(K/100*(se-f),"px ").concat(se,"px"),strokeDashoffset:"-".concat(f/2+A/100*(se-f),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ne,pathStyle:ae}}var S=function(K){var v=K.prefixCls,s=K.strokeWidth,f=K.trailWidth,c=K.gapDegree,m=K.gapPosition,j=K.trailColor,Z=K.strokeLinecap,ve=K.style,Y=K.className,ne=K.strokeColor,se=K.percent,ae=q(K,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),H=Object(I.useMemo)(function(){return y+=1,y},[]),$=k(0,100,j,s,c,m),a=$.pathString,g=$.pathStyle,r=D(se),w=D(ne),G=w.find(function(We){return Object.prototype.toString.call(We)==="[object Object]"}),oe=u(r),z=ue(oe,1),we=z[0],ze=function(){var Le=0;return r.map(function(Ie,Qe){var jt=w[Qe]||w[w.length-1],It=Object.prototype.toString.call(jt)==="[object Object]"?"url(#".concat(v,"-gradient-").concat(H,")"):"",Rt=k(Le,Ie,jt,s,c,m);return Le+=Ie,M.a.createElement("path",{key:Qe,className:"".concat(v,"-circle-path"),d:Rt.pathString,stroke:It,strokeLinecap:Z,strokeWidth:s,opacity:Ie===0?0:1,fillOpacity:"0",style:Rt.pathStyle,ref:we[Qe]})})};return M.a.createElement("svg",J({className:N()("".concat(v,"-circle"),Y),viewBox:"0 0 100 100",style:ve},ae),G&&M.a.createElement("defs",null,M.a.createElement("linearGradient",{id:"".concat(v,"-gradient-").concat(H),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(G).sort(function(We,Le){return b(We)-b(Le)}).map(function(We,Le){return M.a.createElement("stop",{key:Le,offset:We,stopColor:G[We]})}))),M.a.createElement("path",{className:"".concat(v,"-circle-trail"),d:a,stroke:j,strokeLinecap:Z,strokeWidth:f||s,fillOpacity:"0",style:g}),ze().reverse())};S.defaultProps=i;var Ce=S,X={Line:le,Circle:Ce}},hW8S:function(Je,re,n){"use strict";n.d(re,"a",function(){return N}),n.d(re,"c",function(){return i}),n.d(re,"b",function(){return u});var I=n("VTBJ"),M=n("Ff2n"),xe=n("Kwbf"),N="RC_TABLE_INTERNAL_COL_DEFINE";function i(de){var ee=de.expandable,U=Object(M.a)(de,["expandable"]);return"expandable"in de?Object(I.a)(Object(I.a)({},U),ee):U}function u(de){return Object.keys(de).reduce(function(ee,U){return(U.substr(0,5)==="data-"||U.substr(0,5)==="aria-")&&(ee[U]=de[U]),ee},{})}},k3GJ:function(Je,re,n){"use strict";n.d(re,"a",function(){return mo});var I=n("rePB"),M=n("ODXe"),xe=n("Ff2n"),N=n("VTBJ"),i=n("q1tI"),u=n("TSYQ"),de=n.n(u),ee=n("Zm9Q"),U=n("6cGi"),F=n("KQm4"),Q=n("xEkU"),ce=n.n(Q),ye=n("t23M");function te(l){var E=Object(i.useRef)(),x=Object(i.useRef)(!1);function p(){for(var e=arguments.length,o=new Array(e),t=0;tT&&(pe=T-me),Object(i.useMemo)(function(){if(!o.length)return[0,0];for(var _e=o.length,$e=_e,rt=0;rt<_e;rt+=1){var qe=l.get(o[rt].key)||ie;if(qe[_]+qe[h]>C+pe){$e=rt-1;break}}for(var lt=0,it=_e-1;it>=0;it-=1){var tt=l.get(o[it].key)||ie;if(tt[_]1&&arguments[1]!==void 0?arguments[1]:!1,p=E&&typeof E.getBoundingClientRect=="function"&&E.getBoundingClientRect().width;if(p){if(x){var e=getComputedStyle(E),o=e.marginLeft,t=e.marginRight;p+=+o.replace("px","")+ +t.replace("px","")}p=+p.toFixed(6)}return p||0},Le=function(E,x,p){E&&Object(A.a)(E.style)==="object"&&(E.style[x]=p)},Ie=function(){return r.any},Qe=n("bdgK"),jt=n("i8i4"),It=n.n(jt),Rt=n("wgJM"),Lt=n("l4aY"),Jt=n("m+aA"),L=n("c+Xe"),he=n("zT1h"),be=n("QC+M");function Se(l,E,x){return x?l[0]===E[0]:l[0]===E[0]&&l[1]===E[1]}function Pe(l,E,x){var p=l[E]||{};return Object(N.a)(Object(N.a)({},p),x)}function Me(l,E,x,p){for(var e=x.points,o=Object.keys(l),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;E();var o=Object(Rt.a)(function(){e<=1?p({isCanceled:function(){return o!==l.current}}):x(p,e-1)});l.current=o}return i.useEffect(function(){return function(){E()}},[]),[x,E]},zn=[Nt,Mt,mt,et],Bn=!1,_n=!0;function dn(l){return l===mt||l===et}var bn=function(l,E){var x=i.useState(Zt),p=Object(M.a)(x,2),e=p[0],o=p[1],t=St(),d=Object(M.a)(t,2),h=d[0],_=d[1];function C(){o(Nt)}return Vt(function(){if(e!==Zt&&e!==et){var T=zn.indexOf(e),B=zn[T+1],me=E(e);me===Bn?o(B):h(function(pe){function _e(){if(pe.isCanceled())return;o(B)}me===!0?_e():Promise.resolve(me).then(_e)})}},[l,e]),i.useEffect(function(){return function(){_()}},[]),[C,e]},kn=function(l){var E=Object(i.useRef)(),x=Object(i.useRef)(l);x.current=l;var p=i.useCallback(function(t){x.current(t)},[]);function e(t){t&&(t.removeEventListener(at,p),t.removeEventListener(Xe,p))}function o(t){E.current&&E.current!==t&&e(E.current),t&&t!==E.current&&(t.addEventListener(at,p),t.addEventListener(Xe,p),E.current=t)}return i.useEffect(function(){return function(){e(E.current)}},[]),[o,e]};function wn(l,E,x,p){var e=p.motionEnter,o=e===void 0?!0:e,t=p.motionAppear,d=t===void 0?!0:t,h=p.motionLeave,_=h===void 0?!0:h,C=p.motionDeadline,T=p.motionLeaveImmediately,B=p.onAppearPrepare,me=p.onEnterPrepare,pe=p.onLeavePrepare,_e=p.onAppearStart,$e=p.onEnterStart,rt=p.onLeaveStart,qe=p.onAppearActive,lt=p.onEnterActive,it=p.onLeaveActive,tt=p.onAppearEnd,nt=p.onEnterEnd,Ot=p.onLeaveEnd,ct=p.onVisibleChanged,Bt=Ut(),At=Object(M.a)(Bt,2),Ve=At[0],He=At[1],ft=Ut(dt),ht=Object(M.a)(ft,2),ke=ht[0],xt=ht[1],Kt=Ut(null),_t=Object(M.a)(Kt,2),Dt=_t[0],Ft=_t[1],on=Object(i.useRef)(!1),On=Object(i.useRef)(null),Xt=Object(i.useRef)(!1),xn=Object(i.useRef)(null);function Fn(){var Wt=x();return Wt||xn.current}var Mn=Object(i.useRef)(!1);function Sn(Wt){var Tt=Fn();if(Wt&&!Wt.deadline&&Wt.target!==Tt)return;var sn;ke===bt&&Mn.current?sn=tt==null?void 0:tt(Tt,Wt):ke===Ht&&Mn.current?sn=nt==null?void 0:nt(Tt,Wt):ke===ot&&Mn.current&&(sn=Ot==null?void 0:Ot(Tt,Wt)),sn!==!1&&!Xt.current&&(xt(dt),Ft(null))}var Gt=kn(Sn),vn=Object(M.a)(Gt,1),rn=vn[0],nn=i.useMemo(function(){var Wt,Tt,sn;switch(ke){case"appear":return Wt={},Object(I.a)(Wt,Nt,B),Object(I.a)(Wt,Mt,_e),Object(I.a)(Wt,mt,qe),Wt;case"enter":return Tt={},Object(I.a)(Tt,Nt,me),Object(I.a)(Tt,Mt,$e),Object(I.a)(Tt,mt,lt),Tt;case"leave":return sn={},Object(I.a)(sn,Nt,pe),Object(I.a)(sn,Mt,rt),Object(I.a)(sn,mt,it),sn;default:return{}}},[ke]),ea=bn(ke,function(Wt){if(Wt===Nt){var Tt=nn[Nt];return Tt?Tt(Fn()):Bn}if(kt in nn){var sn;Ft(((sn=nn[kt])===null||sn===void 0?void 0:sn.call(nn,Fn(),null))||null)}return kt===mt&&(rn(Fn()),C>0&&(clearTimeout(On.current),On.current=setTimeout(function(){Sn({deadline:!0})},C))),_n}),ta=Object(M.a)(ea,2),sa=ta[0],kt=ta[1],Xn=dn(kt);Mn.current=Xn,Vt(function(){He(E);var Wt=on.current;if(on.current=!0,!l)return;var Tt;!Wt&&E&&d&&(Tt=bt),Wt&&E&&o&&(Tt=Ht),(Wt&&!E&&_||!Wt&&T&&!E&&_)&&(Tt=ot),Tt&&(xt(Tt),sa())},[E]),Object(i.useEffect)(function(){(ke===bt&&!d||ke===Ht&&!o||ke===ot&&!_)&&xt(dt)},[d,o,_]),Object(i.useEffect)(function(){return function(){clearTimeout(On.current),Xt.current=!0}},[]),Object(i.useEffect)(function(){Ve!==void 0&&ke===dt&&(ct==null||ct(Ve))},[Ve,ke]);var la=Dt;return nn[Nt]&&kt===Mt&&(la=Object(N.a)({transition:"none"},la)),[ke,kt,la,Ve!=null?Ve:E]}var gn=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(){return Object(V.a)(this,x),E.apply(this,arguments)}return Object(q.a)(x,[{key:"render",value:function(){return this.props.children}}]),x}(i.Component),ln=gn;function In(l){var E=l;Object(A.a)(l)==="object"&&(E=l.transitionSupport);function x(e){return!!(e.motionName&&E)}var p=i.forwardRef(function(e,o){var t=e.visible,d=t===void 0?!0:t,h=e.removeOnLeave,_=h===void 0?!0:h,C=e.forceRender,T=e.children,B=e.motionName,me=e.leavedClassName,pe=e.eventProps,_e=x(e),$e=Object(i.useRef)(),rt=Object(i.useRef)();function qe(){try{return Object(Jt.a)($e.current||rt.current)}catch(xt){return null}}var lt=wn(_e,d,qe,e),it=Object(M.a)(lt,4),tt=it[0],nt=it[1],Ot=it[2],ct=it[3],Bt=i.useRef(ct);ct&&(Bt.current=!0);var At=Object(i.useRef)(o);At.current=o;var Ve=i.useCallback(function(xt){$e.current=xt,Object(L.b)(At.current,xt)},[]),He,ft=Object(N.a)(Object(N.a)({},pe),{},{visible:d});if(!T)He=null;else if(tt===dt||!x(e))ct?He=T(Object(N.a)({},ft),Ve):!_&&Bt.current?He=T(Object(N.a)(Object(N.a)({},ft),{},{className:me}),Ve):C?He=T(Object(N.a)(Object(N.a)({},ft),{},{style:{display:"none"}}),Ve):He=null;else{var ht,ke;nt===Nt?ke="prepare":dn(nt)?ke="active":nt===Mt&&(ke="start"),He=T(Object(N.a)(Object(N.a)({},ft),{},{className:de()(Ct(B,tt),(ht={},Object(I.a)(ht,Ct(B,"".concat(tt,"-").concat(ke)),ke),Object(I.a)(ht,B,typeof B=="string"),ht)),style:Ot}),Ve)}return i.createElement(ln,{ref:rt},He)});return p.displayName="CSSMotion",p}var En=In(vt),An="add",qt="keep",jn="remove",Kn="removed";function $n(l){var E;return l&&Object(A.a)(l)==="object"&&"key"in l?E=l:E={key:l},Object(N.a)(Object(N.a)({},E),{},{key:String(E.key)})}function Pn(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return l.map($n)}function Qt(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x=[],p=0,e=E.length,o=Pn(l),t=Pn(E);o.forEach(function(_){for(var C=!1,T=p;T1});return h.forEach(function(_){x=x.filter(function(C){var T=C.key,B=C.status;return T!==_||B!==jn}),x.forEach(function(C){C.key===_&&(C.status=qt)})}),x}var en=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fn(l){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:En,x=function(p){Object(y.a)(o,p);var e=Object(b.a)(o);function o(){var t;return Object(V.a)(this,o),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(d){t.setState(function(h){var _=h.keyEntities;return{keyEntities:_.map(function(C){return C.key!==d?C:Object(N.a)(Object(N.a)({},C),{},{status:Kn})})}})},t}return Object(q.a)(o,[{key:"render",value:function(){var d=this,h=this.state.keyEntities,_=this.props,C=_.component,T=_.children,B=_.onVisibleChanged,me=Object(xe.a)(_,["component","children","onVisibleChanged"]),pe=C||i.Fragment,_e={};return en.forEach(function($e){_e[$e]=me[$e],delete me[$e]}),delete me.keys,i.createElement(pe,me,h.map(function($e){var rt=$e.status,qe=Object(xe.a)($e,["status"]),lt=rt===An||rt===qt;return i.createElement(E,Object(W.a)({},_e,{key:qe.key,visible:lt,eventProps:qe,onVisibleChanged:function(tt){B==null||B(tt,{key:qe.key}),tt||d.removeKey(qe.key)}}),T)}))}}],[{key:"getDerivedStateFromProps",value:function(d,h){var _=d.keys,C=h.keyEntities,T=Pn(_),B=Qt(C,T);return{keyEntities:B.filter(function(me){var pe=C.find(function(_e){var $e=_e.key;return me.key===$e});return!(pe&&pe.status===Kn&&me.status===jn)})}}}]),o}(i.Component);return x.defaultProps={component:"div"},x}var tn=fn(vt),un=En;function pn(l){var E=l.prefixCls,x=l.motion,p=l.animation,e=l.transitionName;return x||(p?{motionName:"".concat(E,"-").concat(p)}:e?{motionName:e}:null)}function Gn(l){var E=l.prefixCls,x=l.visible,p=l.zIndex,e=l.mask,o=l.maskMotion,t=l.maskAnimation,d=l.maskTransitionName;if(!e)return null;var h={};return(o||d||t)&&(h=Object(N.a)({motionAppear:!0},pn({motion:o,prefixCls:E,transitionName:d,animation:t}))),i.createElement(un,Object(W.a)({},h,{visible:x,removeOnLeave:!0}),function(_){var C=_.className;return i.createElement("div",{style:{zIndex:p},className:de()("".concat(E,"-mask"),C)})})}var Nn=n("9mu1"),Yn=n("o0o1"),ua=n.n(Yn),ca=n("HaE+"),Rn=["measure","align",null,"motion"],Ae=function(l,E){var x=Object(i.useState)(null),p=Object(M.a)(x,2),e=p[0],o=p[1],t=Object(i.useRef)(),d=Object(i.useRef)(!1);function h(T){d.current||o(T)}function _(){Rt.a.cancel(t.current)}function C(T){_(),t.current=Object(Rt.a)(function(){h(function(B){switch(e){case"align":return"motion";case"motion":return"stable";default:}return B}),T==null||T()})}return Object(i.useEffect)(function(){h("measure")},[l]),Object(i.useEffect)(function(){switch(e){case"measure":E();break;default:}e&&(t.current=Object(Rt.a)(Object(ca.a)(ua.a.mark(function T(){var B,me;return ua.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:B=Rn.indexOf(e),me=Rn[B+1],me&&B!==-1&&h(me);case 3:case"end":return _e.stop()}},T)}))))},[e]),Object(i.useEffect)(function(){return function(){d.current=!0,_()}},[]),[e,C]},Re=function(l){var E=i.useState({width:0,height:0}),x=Object(M.a)(E,2),p=x[0],e=x[1];function o(d){e({width:d.offsetWidth,height:d.offsetHeight})}var t=i.useMemo(function(){var d={};if(l){var h=p.width,_=p.height;l.indexOf("height")!==-1&&_?d.height=_:l.indexOf("minHeight")!==-1&&_&&(d.minHeight=_),l.indexOf("width")!==-1&&h?d.width=h:l.indexOf("minWidth")!==-1&&h&&(d.minWidth=h)}return d},[l,p]);return[t,o]},Ne=i.forwardRef(function(l,E){var x=l.visible,p=l.prefixCls,e=l.className,o=l.style,t=l.children,d=l.zIndex,h=l.stretch,_=l.destroyPopupOnHide,C=l.forceRender,T=l.align,B=l.point,me=l.getRootDomNode,pe=l.getClassNameFromAlign,_e=l.onAlign,$e=l.onMouseEnter,rt=l.onMouseLeave,qe=l.onMouseDown,lt=l.onTouchStart,it=Object(i.useRef)(),tt=Object(i.useRef)(),nt=Object(i.useState)(),Ot=Object(M.a)(nt,2),ct=Ot[0],Bt=Ot[1],At=Re(h),Ve=Object(M.a)(At,2),He=Ve[0],ft=Ve[1];function ht(){h&&ft(me())}var ke=Ae(x,ht),xt=Object(M.a)(ke,2),Kt=xt[0],_t=xt[1],Dt=Object(i.useRef)();function Ft(){return B||me}function on(){var Gt;(Gt=it.current)===null||Gt===void 0||Gt.forceAlign()}function On(Gt,vn){var rn=pe(vn);ct!==rn&&Bt(rn),Kt==="align"&&(ct!==rn?Promise.resolve().then(function(){on()}):_t(function(){var nn;(nn=Dt.current)===null||nn===void 0||nn.call(Dt)}),_e==null||_e(Gt,vn))}var Xt=Object(N.a)({},pn(l));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Gt){var vn=Xt[Gt];Xt[Gt]=function(rn,nn){return _t(),vn==null?void 0:vn(rn,nn)}});function xn(){return new Promise(function(Gt){Dt.current=Gt})}i.useEffect(function(){!Xt.motionName&&Kt==="motion"&&_t()},[Xt.motionName,Kt]),i.useImperativeHandle(E,function(){return{forceAlign:on,getElement:function(){return tt.current}}});var Fn=Object(N.a)(Object(N.a)({},He),{},{zIndex:d,opacity:Kt==="motion"||Kt==="stable"||!x?void 0:0,pointerEvents:Kt==="stable"?void 0:"none"},o),Mn=!0;(T==null?void 0:T.points)&&(Kt==="align"||Kt==="stable")&&(Mn=!1);var Sn=t;return i.Children.count(t)>1&&(Sn=i.createElement("div",{className:"".concat(p,"-content")},t)),i.createElement(un,Object(W.a)({visible:x,ref:tt,leavedClassName:"".concat(p,"-hidden")},Xt,{onAppearPrepare:xn,onEnterPrepare:xn,removeOnLeave:_,forceRender:C}),function(Gt,vn){var rn=Gt.className,nn=Gt.style,ea=de()(p,e,ct,rn);return i.createElement(Nn.a,{target:Ft(),key:"popup",ref:it,monitorWindowResize:!0,disabled:Mn,align:T,onAlign:On},i.createElement("div",{ref:vn,className:ea,onMouseEnter:$e,onMouseLeave:rt,onMouseDownCapture:qe,onTouchStartCapture:lt,style:Object(N.a)(Object(N.a)({},nn),Fn)},Sn))})});Ne.displayName="PopupInner";var De=Ne,Be=i.forwardRef(function(l,E){var x=l.prefixCls,p=l.visible,e=l.zIndex,o=l.children,t=l.mobile;t=t===void 0?{}:t;var d=t.popupClassName,h=t.popupStyle,_=t.popupMotion,C=_===void 0?{}:_,T=t.popupRender,B=i.useRef();i.useImperativeHandle(E,function(){return{forceAlign:function(){},getElement:function(){return B.current}}});var me=Object(N.a)({zIndex:e},h),pe=o;return i.Children.count(o)>1&&(pe=i.createElement("div",{className:"".concat(x,"-content")},o)),T&&(pe=T(pe)),i.createElement(un,Object(W.a)({visible:p,ref:B,removeOnLeave:!0},C),function(_e,$e){var rt=_e.className,qe=_e.style,lt=de()(x,d,rt);return i.createElement("div",{ref:$e,className:lt,style:Object(N.a)(Object(N.a)({},qe),me)},pe)})});Be.displayName="MobilePopupInner";var Ye=Be,st=["visible","mobile"],wt=i.forwardRef(function(l,E){var x=l.visible,p=l.mobile,e=Object(xe.a)(l,st),o=Object(i.useState)(x),t=Object(M.a)(o,2),d=t[0],h=t[1],_=Object(i.useState)(!1),C=Object(M.a)(_,2),T=C[0],B=C[1],me=Object(N.a)(Object(N.a)({},e),{},{visible:d});Object(i.useEffect)(function(){h(x),x&&p&&B(je())},[x,p]);var pe=T?i.createElement(Ye,Object(W.a)({},me,{mobile:p,ref:E})):i.createElement(De,Object(W.a)({},me,{ref:E}));return i.createElement("div",null,i.createElement(Gn,me),pe)});wt.displayName="Popup";var mn=wt,yn=i.createContext(null),Hn=yn;function Wn(){}function hn(){return""}function aa(l){return l?l.ownerDocument:window.document}var Qn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Dn(l){var E=function(x){Object(y.a)(e,x);var p=Object(b.a)(e);function e(o){var t;Object(V.a)(this,e),t=p.call(this,o),t.popupRef=i.createRef(),t.triggerRef=i.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(h){var _=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",h),t.delaySetPopupVisible(!0,_,_?null:h)},t.onMouseMove=function(h){t.fireEvents("onMouseMove",h),t.setPoint(h)},t.onMouseLeave=function(h){t.fireEvents("onMouseLeave",h),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(h){var _;if(h.relatedTarget&&!h.relatedTarget.setTimeout&&Object(Lt.a)((_=t.popupRef.current)===null||_===void 0?void 0:_.getElement(),h.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(h){t.fireEvents("onFocus",h),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(h){t.fireEvents("onMouseDown",h),t.preClickTime=Date.now()},t.onTouchStart=function(h){t.fireEvents("onTouchStart",h),t.preTouchTime=Date.now()},t.onBlur=function(h){t.fireEvents("onBlur",h),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(h){h.preventDefault(),t.fireEvents("onContextMenu",h),t.setPopupVisible(!0,h)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(h){if(t.fireEvents("onClick",h),t.focusTime){var _;if(t.preClickTime&&t.preTouchTime?_=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?_=t.preClickTime:t.preTouchTime&&(_=t.preTouchTime),Math.abs(_-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&h&&h.preventDefault&&h.preventDefault();var C=!t.state.popupVisible;(t.isClickToHide()&&!C||C&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,h)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var h;(h=t.context).onPopupMouseDown.apply(h,arguments)}},t.onDocumentClick=function(h){if(t.props.mask&&!t.props.maskClosable)return;var _=h.target,C=t.getRootDomNode(),T=t.getPopupDomNode();(!Object(Lt.a)(C,_)||t.isContextMenuOnly())&&!Object(Lt.a)(T,_)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var h=t.props.getTriggerDOMNode;if(h)return h(t.triggerRef.current);try{var _=Object(Jt.a)(t.triggerRef.current);if(_)return _}catch(C){}return It.a.findDOMNode(Object(O.a)(t))},t.getPopupClassNameFromAlign=function(h){var _=[],C=t.props,T=C.popupPlacement,B=C.builtinPlacements,me=C.prefixCls,pe=C.alignPoint,_e=C.getPopupClassNameFromAlign;return T&&B&&_.push(Me(B,me,h,pe)),_e&&_.push(_e(h)),_.join(" ")},t.getComponent=function(){var h=t.props,_=h.prefixCls,C=h.destroyPopupOnHide,T=h.popupClassName,B=h.onPopupAlign,me=h.popupMotion,pe=h.popupAnimation,_e=h.popupTransitionName,$e=h.popupStyle,rt=h.mask,qe=h.maskAnimation,lt=h.maskTransitionName,it=h.maskMotion,tt=h.zIndex,nt=h.popup,Ot=h.stretch,ct=h.alignPoint,Bt=h.mobile,At=h.forceRender,Ve=t.state,He=Ve.popupVisible,ft=Ve.point,ht=t.getPopupAlign(),ke={};return t.isMouseEnterToShow()&&(ke.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ke.onMouseLeave=t.onPopupMouseLeave),ke.onMouseDown=t.onPopupMouseDown,ke.onTouchStart=t.onPopupMouseDown,i.createElement(mn,Object(W.a)({prefixCls:_,destroyPopupOnHide:C,visible:He,point:ct&&ft,className:T,align:ht,onAlign:B,animation:pe,getClassNameFromAlign:t.getPopupClassNameFromAlign},ke,{stretch:Ot,getRootDomNode:t.getRootDomNode,style:$e,mask:rt,zIndex:tt,transitionName:_e,maskAnimation:qe,maskTransitionName:lt,maskMotion:it,ref:t.popupRef,motion:me,mobile:Bt,forceRender:At}),typeof nt=="function"?nt():nt)},t.attachParent=function(h){Rt.a.cancel(t.attachId);var _=t.props,C=_.getPopupContainer,T=_.getDocument,B=t.getRootDomNode(),me;C?(B||C.length===0)&&(me=C(B)):me=T(t.getRootDomNode()).body,me?me.appendChild(h):t.attachId=Object(Rt.a)(function(){t.attachParent(h)})},t.getContainer=function(){var h=t.props.getDocument,_=h(t.getRootDomNode()).createElement("div");return _.style.position="absolute",_.style.top="0",_.style.left="0",_.style.width="100%",t.attachParent(_),_},t.setPoint=function(h){var _=t.props.alignPoint;if(!_||!h)return;t.setState({point:{pageX:h.pageX,pageY:h.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var d;return"popupVisible"in o?d=!!o.popupVisible:d=!!o.defaultPopupVisible,t.state={prevPopupVisible:d,popupVisible:d},Qn.forEach(function(h){t["fire".concat(h)]=function(_){t.fireEvents(h,_)}}),t}return Object(q.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,d=this.state;if(d.popupVisible){var h;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(h=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(he.a)(h,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(h=h||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(he.a)(h,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(h=h||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(he.a)(h,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(he.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Rt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,d=t.popupPlacement,h=t.popupAlign,_=t.builtinPlacements;return d&&_?Pe(_,d,h):h}},{key:"setPopupVisible",value:function(t,d){var h=this.props.alignPoint,_=this.state.popupVisible;this.clearDelayTimer(),_!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:_}),this.props.onPopupVisibleChange(t)),h&&d&&t&&this.setPoint(d)}},{key:"delaySetPopupVisible",value:function(t,d,h){var _=this,C=d*1e3;if(this.clearDelayTimer(),C){var T=h?{pageX:h.pageX,pageY:h.pageY}:null;this.delayTimer=window.setTimeout(function(){_.setPopupVisible(t,T),_.clearDelayTimer()},C)}else this.setPopupVisible(t,h)}},{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(t){var d=this.props.children.props,h=this.props;return d[t]&&h[t]?this["fire".concat(t)]:d[t]||h[t]}},{key:"isClickToShow",value:function(){var t=this.props,d=t.action,h=t.showAction;return d.indexOf("click")!==-1||h.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,d=t.action,h=t.showAction;return d.indexOf("contextMenu")!==-1||h.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,d=t.action,h=t.hideAction;return d.indexOf("click")!==-1||h.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,d=t.action,h=t.showAction;return d.indexOf("hover")!==-1||h.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,d=t.action,h=t.hideAction;return d.indexOf("hover")!==-1||h.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,d=t.action,h=t.showAction;return d.indexOf("focus")!==-1||h.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,d=t.action,h=t.hideAction;return d.indexOf("focus")!==-1||h.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,d){var h=this.props.children.props[t];h&&h(d);var _=this.props[t];_&&_(d)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,d=this.props,h=d.children,_=d.forceRender,C=d.alignPoint,T=d.className,B=d.autoDestroy,me=i.Children.only(h),pe={key:"trigger"};this.isContextMenuToShow()?pe.onContextMenu=this.onContextMenu:pe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(pe.onClick=this.onClick,pe.onMouseDown=this.onMouseDown,pe.onTouchStart=this.onTouchStart):(pe.onClick=this.createTwoChains("onClick"),pe.onMouseDown=this.createTwoChains("onMouseDown"),pe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(pe.onMouseEnter=this.onMouseEnter,C&&(pe.onMouseMove=this.onMouseMove)):pe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?pe.onMouseLeave=this.onMouseLeave:pe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(pe.onFocus=this.onFocus,pe.onBlur=this.onBlur):(pe.onFocus=this.createTwoChains("onFocus"),pe.onBlur=this.createTwoChains("onBlur"));var _e=de()(me&&me.props&&me.props.className,T);_e&&(pe.className=_e);var $e=Object(N.a)({},pe);Object(L.c)(me)&&($e.ref=Object(L.a)(this.triggerRef,me.ref));var rt=i.cloneElement(me,$e),qe;return(t||this.popupRef.current||_)&&(qe=i.createElement(l,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&B&&(qe=null),i.createElement(Hn.Provider,{value:this.triggerContextValue},rt,qe)}}],[{key:"getDerivedStateFromProps",value:function(t,d){var h=t.popupVisible,_={};return h!==void 0&&d.popupVisible!==h&&(_.popupVisible=h,_.prevPopupVisible=d.popupVisible),_}}]),e}(i.Component);return E.contextType=Hn,E.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:hn,getDocument:aa,onPopupVisibleChange:Wn,afterPopupVisibleChange:Wn,onPopupAlign:Wn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},E}var ka=Dn(be.a),$t={adjustX:1,adjustY:1},ba={topLeft:{points:["bl","tl"],overflow:$t,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$t,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:$t,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:$t,offset:[4,0]}},Ia={topLeft:{points:["bl","tl"],overflow:$t,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:$t,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:$t,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:$t,offset:[4,0]}},ga=ba,Cn=0,Ln={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Un=function(E,x,p){var e=oe(x),o=E.getState();E.setState({defaultActiveFirst:Object(N.a)(Object(N.a)({},o.defaultActiveFirst),{},Object(I.a)({},e,p))})},Ea=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(p){var e;Object(V.a)(this,x),e=E.call(this,p),e.onDestroy=function(C){e.props.onDestroy(C)},e.onKeyDown=function(C){var T=C.keyCode,B=e.menuInstance,me=e.props.store,pe=e.getVisible();if(T===R.a.ENTER)return e.onTitleClick(C),Un(me,e.props.eventKey,!0),!0;if(T===R.a.RIGHT)return pe?B.onKeyDown(C):(e.triggerOpenChange(!0),Un(me,e.props.eventKey,!0)),!0;if(T===R.a.LEFT){var _e;if(pe)_e=B.onKeyDown(C);else return;return _e||(e.triggerOpenChange(!1),_e=!0),_e}return pe&&(T===R.a.UP||T===R.a.DOWN)?B.onKeyDown(C):void 0},e.onOpenChange=function(C){e.props.onOpenChange(C)},e.onPopupVisibleChange=function(C){e.triggerOpenChange(C,C?"mouseenter":"mouseleave")},e.onMouseEnter=function(C){var T=e.props,B=T.eventKey,me=T.onMouseEnter,pe=T.store;Un(pe,e.props.eventKey,!1),me({key:B,domEvent:C})},e.onMouseLeave=function(C){var T=e.props,B=T.parentMenu,me=T.eventKey,pe=T.onMouseLeave;B.subMenuInstance=Object(O.a)(e),pe({key:me,domEvent:C})},e.onTitleMouseEnter=function(C){var T=e.props,B=T.eventKey,me=T.onItemHover,pe=T.onTitleMouseEnter;me({key:B,hover:!0}),pe({key:B,domEvent:C})},e.onTitleMouseLeave=function(C){var T=e.props,B=T.parentMenu,me=T.eventKey,pe=T.onItemHover,_e=T.onTitleMouseLeave;B.subMenuInstance=Object(O.a)(e),pe({key:me,hover:!1}),_e({key:me,domEvent:C})},e.onTitleClick=function(C){var T=Object(O.a)(e),B=T.props;if(B.onTitleClick({key:B.eventKey,domEvent:C}),B.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),Un(B.store,e.props.eventKey,!1)},e.onSubMenuClick=function(C){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(C))},e.onSelect=function(C){e.props.onSelect(C)},e.onDeselect=function(C){e.props.onDeselect(C)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(C){e.menuInstance=C},e.addKeyPath=function(C){return Object(N.a)(Object(N.a)({},C),{},{keyPath:(C.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(C,T){var B=e.props.eventKey,me=function(){e.onOpenChange({key:B,item:Object(O.a)(e),trigger:T,open:C})};T==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){me()},0):me()},e.isChildrenSelected=function(){var C={find:!1};return we(e.props.children,e.props.selectedKeys,C),C.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var C=jt.findDOMNode(e.menuInstance);if(C.offsetWidth>=e.subMenuTitle.offsetWidth)return;C.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(C){e.subMenuTitle=C},e.getBaseProps=function(){var C=Object(O.a)(e),T=C.props,B=e.getMode();return{mode:B==="horizontal"?"vertical":B,visible:e.getVisible(),level:T.level+1,inlineIndent:T.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:T.selectedKeys,eventKey:"".concat(T.eventKey,"-menu-"),openKeys:T.openKeys,motion:T.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:T.subMenuOpenDelay,parentMenu:Object(O.a)(e),subMenuCloseDelay:T.subMenuCloseDelay,forceSubMenuRender:T.forceSubMenuRender,triggerSubMenuAction:T.triggerSubMenuAction,builtinPlacements:T.builtinPlacements,defaultActiveFirst:T.store.getState().defaultActiveFirst[oe(T.eventKey)],multiple:T.multiple,prefixCls:T.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:T.itemIcon,expandIcon:T.expandIcon,direction:T.direction}},e.getMotion=function(C,T){var B=Object(O.a)(e),me=B.haveRendered,pe=e.props,_e=pe.motion,$e=pe.rootPrefixCls,rt=Object(N.a)(Object(N.a)({},_e),{},{leavedClassName:"".concat($e,"-hidden"),removeOnLeave:!1,motionAppear:me||!T||C!=="inline"});return rt};var o=p.store,t=p.eventKey,d=o.getState(),h=d.defaultActiveFirst;e.isRootMenu=!1;var _=!1;return h&&(_=h[t]),Un(o,t,_),e.state={mode:p.mode,isOpen:p.isOpen},e}return Object(q.a)(x,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,o=this.props,t=o.mode,d=o.parentMenu,h=o.manualRef,_=o.isOpen,C=function(){e.setState({mode:t,isOpen:_})},T=_!==this.state.isOpen,B=t!==this.state.mode;if((B||T)&&(Rt.a.cancel(this.updateStateRaf),B?this.updateStateRaf=Object(Rt.a)(C):C()),h&&h(this),t!=="horizontal"||!(d==null?void 0:d.isRootMenu)||!_)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,o=e.onDestroy,t=e.eventKey;o&&o(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Rt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,o){var t=this.getBaseProps();return i.createElement(pa,Object(W.a)({},t,{id:this.internalMenuId,className:e,style:o}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,o=this.getBaseProps(),t=o.mode,d=o.visible,h=o.forceSubMenuRender,_=o.direction,C=this.getMotion(t,d);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||d||h,!this.haveOpened)return i.createElement("div",null);var T=de()("".concat(o.prefixCls,"-sub"),Object(I.a)({},"".concat(o.prefixCls,"-rtl"),_==="rtl"));return this.isInlineMode()?i.createElement(un,Object(W.a)({visible:o.visible,forceRender:h},C),function(B){var me=B.className,pe=B.style,_e=de()(T,me);return e.renderPopupMenu(_e,pe)}):this.renderPopupMenu(T)}},{key:"render",value:function(){var e,o,t,d=Object(N.a)({},this.props),h=this.getVisible(),_=this.getPrefixCls(),C=this.isInlineMode(),T=this.getMode(),B=de()(_,"".concat(_,"-").concat(T),(e={},Object(I.a)(e,d.className,!!d.className),Object(I.a)(e,this.getOpenClassName(),h),Object(I.a)(e,this.getActiveClassName(),d.active||h&&!C),Object(I.a)(e,this.getDisabledClassName(),d.disabled),Object(I.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(d.eventKey?this.internalMenuId="".concat(d.eventKey,"$Menu"):(Cn+=1,this.internalMenuId="$__$".concat(Cn,"$Menu")));var me={},pe={},_e={};d.disabled||(me={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},pe={onClick:this.onTitleClick},_e={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var $e={},rt=d.direction,qe=rt==="rtl";C&&(qe?$e.paddingRight=d.inlineIndent*d.level:$e.paddingLeft=d.inlineIndent*d.level);var lt={};this.getVisible()&&(lt={"aria-owns":this.internalMenuId});var it=null;T!=="horizontal"&&(it=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(it=i.createElement(this.props.expandIcon,Object(N.a)({},this.props))));var tt=i.createElement("div",Object(W.a)({ref:this.saveSubMenuTitle,style:$e,className:"".concat(_,"-title"),role:"button"},_e,pe,{"aria-expanded":h},lt,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,it||i.createElement("i",{className:"".concat(_,"-arrow")})),nt=this.renderChildren(),Ot=((o=d.parentMenu)===null||o===void 0?void 0:o.isRootMenu)?d.parentMenu.props.getPopupContainer:function(Ft){return Ft.parentNode},ct=Ln[T],Bt=d.popupOffset?{offset:d.popupOffset}:{},At=de()((t={},Object(I.a)(t,d.popupClassName,d.popupClassName&&!C),Object(I.a)(t,"".concat(_,"-rtl"),qe),t)),Ve=d.disabled,He=d.triggerSubMenuAction,ft=d.subMenuOpenDelay,ht=d.forceSubMenuRender,ke=d.subMenuCloseDelay,xt=d.builtinPlacements;ze.forEach(function(Ft){return delete d[Ft]}),delete d.onClick;var Kt=qe?Object(N.a)(Object(N.a)({},Ia),xt):Object(N.a)(Object(N.a)({},ba),xt);delete d.direction;var _t=this.getBaseProps(),Dt=C?null:this.getMotion(_t.mode,_t.visible);return i.createElement("li",Object(W.a)({},d,me,{className:B,role:"menuitem"}),i.createElement(ka,{prefixCls:_,popupClassName:de()("".concat(_,"-popup"),At),getPopupContainer:Ot,builtinPlacements:Kt,popupPlacement:ct,popupVisible:C?!1:h,popupAlign:Bt,popup:C?null:nt,action:Ve||C?[]:[He],mouseEnterDelay:ft,mouseLeaveDelay:ke,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ht,popupMotion:Dt},tt),C?nt:null)}}]),x}(i.Component);Ea.defaultProps={onMouseEnter:w,onMouseLeave:w,onTitleMouseEnter:w,onTitleMouseLeave:w,onTitleClick:w,manualRef:w,mode:"vertical",title:""};var oa=Object(D.b)(function(l,E){var x=l.openKeys,p=l.activeKey,e=l.selectedKeys,o=E.eventKey,t=E.subMenuKey;return{isOpen:x.indexOf(o)>-1,active:p[t]===o,selectedKeys:e}})(Ea);oa.isSubMenu=!0;var ra=oa,Ka="menuitem-overflowed",Ja=.5,Wa=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(){var p;return Object(V.a)(this,x),p=E.apply(this,arguments),p.resizeObserver=null,p.mutationObserver=null,p.originalTotalWidth=0,p.overflowedItems=[],p.menuItemSizes=[],p.cancelFrameId=null,p.state={lastVisibleIndex:void 0},p.childRef=i.createRef(),p.getMenuItemNodes=function(){var e=p.props.prefixCls,o=p.childRef.current;return o?[].slice.call(o.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},p.getOverflowedSubMenuItem=function(e,o,t){var d=p.props,h=d.overflowedIndicator,_=d.level,C=d.mode,T=d.prefixCls,B=d.theme;if(_!==1||C!=="horizontal")return null;var me=p.props.children[0],pe=me.props,_e=pe.children,$e=pe.title,rt=pe.style,qe=Object(xe.a)(pe,["children","title","style"]),lt=Object(N.a)({},rt),it="".concat(e,"-overflowed-indicator"),tt="".concat(e,"-overflowed-indicator");o.length===0&&t!==!0?lt=Object(N.a)(Object(N.a)({},lt),{},{display:"none"}):t&&(lt=Object(N.a)(Object(N.a)({},lt),{},{visibility:"hidden",position:"absolute"}),it="".concat(it,"-placeholder"),tt="".concat(tt,"-placeholder"));var nt=B?"".concat(T,"-").concat(B):"",Ot={};return ze.forEach(function(ct){qe[ct]!==void 0&&(Ot[ct]=qe[ct])}),i.createElement(ra,Object(W.a)({title:h,className:"".concat(T,"-overflowed-submenu"),popupClassName:nt},Ot,{key:it,eventKey:tt,disabled:!1,style:lt}),o)},p.setChildrenWidthAndResize=function(){if(p.props.mode!=="horizontal")return;var e=p.childRef.current;if(!e)return;var o=e.children;if(!o||o.length===0)return;var t=e.children[o.length-1];Le(t,"display","inline-block");var d=p.getMenuItemNodes(),h=d.filter(function(_){return _.className.split(" ").indexOf(Ka)>=0});h.forEach(function(_){Le(_,"display","inline-block")}),p.menuItemSizes=d.map(function(_){return We(_,!0)}),h.forEach(function(_){Le(_,"display","none")}),p.overflowedIndicatorWidth=We(e.children[e.children.length-1],!0),p.originalTotalWidth=p.menuItemSizes.reduce(function(_,C){return _+C},0),p.handleResize(),Le(t,"display","none")},p.handleResize=function(){if(p.props.mode!=="horizontal")return;var e=p.childRef.current;if(!e)return;var o=We(e);p.overflowedItems=[];var t=0,d;p.originalTotalWidth>o+Ja&&(d=-1,p.menuItemSizes.forEach(function(h){t+=h,t+p.overflowedIndicatorWidth<=o&&(d+=1)})),p.setState({lastVisibleIndex:d})},p}return Object(q.a)(x,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var o=this.childRef.current;if(!o)return;this.resizeObserver=new Qe.default(function(t){t.forEach(function(){var d=e.cancelFrameId;cancelAnimationFrame(d),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(o,{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(e){var o=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(d,h,_){var C=h;if(o.props.mode==="horizontal"){var T=o.getOverflowedSubMenuItem(h.props.eventKey,[]);t!==void 0&&o.props.className.indexOf("".concat(o.props.prefixCls,"-root"))!==-1&&(_>t&&(C=i.cloneElement(h,{style:{display:"none"},eventKey:"".concat(h.props.eventKey,"-hidden"),className:"".concat(Ka)})),_===t+1&&(o.overflowedItems=e.slice(t+1).map(function(me){return i.cloneElement(me,{key:me.props.eventKey,mode:"vertical-left"})}),T=o.getOverflowedSubMenuItem(h.props.eventKey,o.overflowedItems)));var B=[].concat(Object(F.a)(d),[T,C]);return _===e.length-1&&B.push(o.getOverflowedSubMenuItem(h.props.eventKey,[],!0)),B}return[].concat(Object(F.a)(d),[C])},[])}},{key:"render",value:function(){var e=this.props,o=e.visible,t=e.prefixCls,d=e.overflowedIndicator,h=e.mode,_=e.level,C=e.tag,T=e.children,B=e.theme,me=Object(xe.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),pe=C;return i.createElement(pe,Object(W.a)({ref:this.childRef},me),this.renderChildren(T))}}]),x}(i.Component);Wa.defaultProps={tag:"div",className:""};var ya=Wa;function da(l){return l.length?l.every(function(E){return!!E.props.disabled}):!0}function Jn(l,E,x){var p=l.getState();l.setState({activeKey:Object(N.a)(Object(N.a)({},p.activeKey),{},Object(I.a)({},E,x))})}function Vn(l){return l.eventKey||"0-menu-"}function fa(l,E){var x=E,p=l.children,e=l.eventKey;if(x){var o;if(z(p,function(t,d){t&&t.props&&!t.props.disabled&&x===G(t,e,d)&&(o=!0)}),o)return x}return x=null,l.defaultActiveFirst&&z(p,function(t,d){!x&&t&&!t.props.disabled&&(x=G(t,e,d))}),x}function Fa(l){if(!l)return;var E=this.instanceArray.indexOf(l);E!==-1?this.instanceArray[E]=l:this.instanceArray.push(l)}var za=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(p){var e;return Object(V.a)(this,x),e=E.call(this,p),e.onKeyDown=function(o,t){var d=o.keyCode,h;if(e.getFlatInstanceArray().forEach(function(C){C&&C.props.active&&C.onKeyDown&&(h=C.onKeyDown(o))}),h)return 1;var _=null;return(d===R.a.UP||d===R.a.DOWN)&&(_=e.step(d===R.a.UP?-1:1)),_?(o.preventDefault(),Jn(e.props.store,Vn(e.props),_.props.eventKey),typeof t=="function"&&t(_),1):void 0},e.onItemHover=function(o){var t=o.key,d=o.hover;Jn(e.props.store,Vn(e.props),d?t:null)},e.onDeselect=function(o){e.props.onDeselect(o)},e.onSelect=function(o){e.props.onSelect(o)},e.onClick=function(o){e.props.onClick(o)},e.onOpenChange=function(o){e.props.onOpenChange(o)},e.onDestroy=function(o){e.props.onDestroy(o)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(o){var t=e.getFlatInstanceArray(),d=e.props.store.getState().activeKey[Vn(e.props)],h=t.length;if(!h)return null;o<0&&(t=t.concat().reverse());var _=-1;if(t.every(function(me,pe){return me&&me.props.eventKey===d?(_=pe,!1):!0}),!e.props.defaultActiveFirst&&_!==-1&&da(t.slice(_,h-1)))return;var C=(_+1)%h,T=C;do{var B=t[T];if(!B||B.props.disabled)T=(T+1)%h;else return B}while(T!==C);return null},e.renderCommonMenuItem=function(o,t,d){var h=e.props.store.getState(),_=Object(O.a)(e),C=_.props,T=G(o,C.eventKey,t),B=o.props;if(!B||typeof o.type=="string")return o;var me=T===h.activeKey,pe=Object(N.a)(Object(N.a)({mode:B.mode||C.mode,level:C.level,inlineIndent:C.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:C.prefixCls,index:t,parentMenu:C.parentMenu,manualRef:B.disabled?void 0:Object(S.a)(o.ref,Fa.bind(Object(O.a)(e))),eventKey:T,active:!B.disabled&&me,multiple:C.multiple,onClick:function($e){(B.onClick||w)($e),e.onClick($e)},onItemHover:e.onItemHover,motion:C.motion,subMenuOpenDelay:C.subMenuOpenDelay,subMenuCloseDelay:C.subMenuCloseDelay,forceSubMenuRender:C.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:C.builtinPlacements,itemIcon:B.itemIcon||e.props.itemIcon,expandIcon:B.expandIcon||e.props.expandIcon},d),{},{direction:C.direction});return(C.mode==="inline"||Ie())&&(pe.triggerSubMenuAction="click"),i.cloneElement(o,Object(N.a)(Object(N.a)({},pe),{},{key:T||t}))},e.renderMenuItem=function(o,t,d){if(!o)return null;var h=e.props.store.getState(),_={openKeys:h.openKeys,selectedKeys:h.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:d};return e.renderCommonMenuItem(o,t,_)},p.store.setState({activeKey:Object(N.a)(Object(N.a)({},p.store.getState().activeKey),{},Object(I.a)({},p.eventKey,fa(p,p.activeKey)))}),e.instanceArray=[],e}return Object(q.a)(x,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!X()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var o=this.props,t="activeKey"in o?o.activeKey:o.store.getState().activeKey[Vn(o)],d=fa(o,t);if(d!==t)Jn(o.store,Vn(o),d);else if("activeKey"in e){var h=fa(e,e.activeKey);d!==h&&Jn(o.store,Vn(o),d)}}},{key:"render",value:function(){var e=this,o=Object(W.a)({},this.props);this.instanceArray=[];var t=de()(o.prefixCls,o.className,"".concat(o.prefixCls,"-").concat(o.mode)),d={className:t,role:o.role||"menu"};o.id&&(d.id=o.id),o.focusable&&(d.tabIndex=0,d.onKeyDown=this.onKeyDown);var h=o.prefixCls,_=o.eventKey,C=o.visible,T=o.level,B=o.mode,me=o.overflowedIndicator,pe=o.theme;return ze.forEach(function(_e){return delete o[_e]}),delete o.onClick,i.createElement(ya,Object(W.a)({},o,{prefixCls:h,mode:B,tag:"ul",level:T,theme:pe,visible:C,overflowedIndicator:me},d),Object(ee.a)(o.children).map(function(_e,$e){return e.renderMenuItem(_e,$e,_||"0-menu-")}))}}]),x}(i.Component);za.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:w};var Ba=Object(D.b)()(za),pa=Ba,Zn=n("Kwbf");function Ca(l,E,x){var p=l.prefixCls,e=l.motion,o=l.defaultMotions,t=o===void 0?{}:o,d=l.openAnimation,h=l.openTransitionName,_=E.switchingModeFromInline;if(e)return e;if(Object(A.a)(d)==="object"&&d)Object(Zn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof d=="string")return{motionName:"".concat(p,"-open-").concat(d)};if(h)return{motionName:h};var C=t[x];return C||(_?null:t.other)}var Ha=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(p){var e;Object(V.a)(this,x),e=E.call(this,p),e.onSelect=function(d){var h=Object(O.a)(e),_=h.props;if(_.selectable){var C=e.store.getState(),T=C.selectedKeys,B=d.key;_.multiple?T=T.concat([B]):T=[B],"selectedKeys"in _||e.store.setState({selectedKeys:T}),_.onSelect(Object(N.a)(Object(N.a)({},d),{},{selectedKeys:T}))}},e.onClick=function(d){var h=e.getRealMenuMode(),_=Object(O.a)(e),C=_.store,T=_.props.onOpenChange;h!=="inline"&&!("openKeys"in e.props)&&(C.setState({openKeys:[]}),T([])),e.props.onClick(d)},e.onKeyDown=function(d,h){e.innerMenu.getWrappedInstance().onKeyDown(d,h)},e.onOpenChange=function(d){var h=Object(O.a)(e),_=h.props,C=e.store.getState().openKeys.concat(),T=!1,B=function(pe){var _e=!1;if(pe.open)_e=C.indexOf(pe.key)===-1,_e&&C.push(pe.key);else{var $e=C.indexOf(pe.key);_e=$e!==-1,_e&&C.splice($e,1)}T=T||_e};Array.isArray(d)?d.forEach(B):B(d),T&&("openKeys"in e.props||e.store.setState({openKeys:C}),_.onOpenChange(C))},e.onDeselect=function(d){var h=Object(O.a)(e),_=h.props;if(_.selectable){var C=e.store.getState().selectedKeys.concat(),T=d.key,B=C.indexOf(T);B!==-1&&C.splice(B,1),"selectedKeys"in _||e.store.setState({selectedKeys:C}),_.onDeselect(Object(N.a)(Object(N.a)({},d),{},{selectedKeys:C}))}},e.onMouseEnter=function(d){e.restoreModeVerticalFromInline();var h=e.props.onMouseEnter;h&&h(d)},e.onTransitionEnd=function(d){var h=d.propertyName==="width"&&d.target===d.currentTarget,_=d.target.className,C=Object.prototype.toString.call(_)==="[object SVGAnimatedString]"?_.animVal:_,T=d.propertyName==="font-size"&&C.indexOf("anticon")>=0;(h||T)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(d){e.innerMenu=d},e.isRootMenu=!0;var o=p.defaultSelectedKeys,t=p.defaultOpenKeys;return"selectedKeys"in p&&(o=p.selectedKeys||[]),"openKeys"in p&&(t=p.openKeys||[]),e.store=Object(D.c)({selectedKeys:o,openKeys:t,activeKey:{"0-menu-":fa(p,p.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:p,inlineOpenKeys:[],store:e.store},e}return Object(q.a)(x,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var o=this.props,t=o.siderCollapsed,d=o.inlineCollapsed,h=o.onOpenChange;(!e.inlineCollapsed&&d||!e.siderCollapsed&&t)&&h([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,o=this.store,t=this.prevOpenKeys,d=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");d?(this.prevOpenKeys=o.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,o=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return o&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,o=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:o}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(N.a)({},Object(k.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),o=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(N.a)(Object(N.a)({},e),{},{mode:o,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ca(this.props,this.state,o)}),delete e.openAnimation,delete e.openTransitionName,i.createElement(D.a,{store:this.store},i.createElement(pa,Object(W.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var t=o.prevProps,d=o.store,h=d.getState(),_={},C={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(C.switchingModeFromInline=!0),"openKeys"in e?_.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(C.switchingModeFromInline=!0,C.inlineOpenKeys=h.openKeys,_.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(_.openKeys=o.inlineOpenKeys,C.inlineOpenKeys=[])),Object.keys(_).length&&d.setState(_),C}}]),x}(i.Component);Ha.defaultProps={selectable:!0,onClick:w,onSelect:w,onOpenChange:w,onDeselect:w,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:i.createElement("span",null,"\xB7\xB7\xB7")};var Va=Ha,qn=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(){var p;return Object(V.a)(this,x),p=E.apply(this,arguments),p.onKeyDown=function(e){var o=e.keyCode;return o===R.a.ENTER?(p.onClick(e),!0):void 0},p.onMouseLeave=function(e){var o=p.props,t=o.eventKey,d=o.onItemHover,h=o.onMouseLeave;d({key:t,hover:!1}),h({key:t,domEvent:e})},p.onMouseEnter=function(e){var o=p.props,t=o.eventKey,d=o.onItemHover,h=o.onMouseEnter;d({key:t,hover:!0}),h({key:t,domEvent:e})},p.onClick=function(e){var o=p.props,t=o.eventKey,d=o.multiple,h=o.onClick,_=o.onSelect,C=o.onDeselect,T=o.isSelected,B={key:t,keyPath:[t],item:Object(O.a)(p),domEvent:e};h(B),d?T?C(B):_(B):T||_(B)},p.saveNode=function(e){p.node=e},p}return Object(q.a)(x,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,o=Object(N.a)({},this.props),t=de()(this.getPrefixCls(),o.className,(e={},Object(I.a)(e,this.getActiveClassName(),!o.disabled&&o.active),Object(I.a)(e,this.getSelectedClassName(),o.isSelected),Object(I.a)(e,this.getDisabledClassName(),o.disabled),e)),d=Object(N.a)(Object(N.a)({},o.attribute),{},{title:typeof o.title=="string"?o.title:void 0,className:t,role:o.role||"menuitem","aria-disabled":o.disabled});o.role==="option"?d=Object(N.a)(Object(N.a)({},d),{},{role:"option","aria-selected":o.isSelected}):(o.role===null||o.role==="none")&&(d.role="none");var h={onClick:o.disabled?null:this.onClick,onMouseLeave:o.disabled?null:this.onMouseLeave,onMouseEnter:o.disabled?null:this.onMouseEnter},_=Object(N.a)({},o.style);o.mode==="inline"&&(o.direction==="rtl"?_.paddingRight=o.inlineIndent*o.level:_.paddingLeft=o.inlineIndent*o.level),ze.forEach(function(T){return delete o[T]}),delete o.direction;var C=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(C=i.createElement(this.props.itemIcon,this.props)),i.createElement("li",Object(W.a)({},Object(k.a)(o,["onClick","onMouseEnter","onMouseLeave","onSelect"]),d,h,{style:_,ref:this.saveNode}),o.children,C)}}]),x}(i.Component);qn.isMenuItem=!0,qn.defaultProps={onSelect:w,onMouseEnter:w,onMouseLeave:w,manualRef:w};var Oa=Object(D.b)(function(l,E){var x=l.activeKey,p=l.selectedKeys,e=E.eventKey,o=E.subMenuKey;return{active:x[o]===e,isSelected:Array.isArray(p)?p.indexOf(e)!==-1:p===e}})(qn),xa=Oa,_a=function(l){Object(y.a)(x,l);var E=Object(b.a)(x);function x(){var p;return Object(V.a)(this,x),p=E.apply(this,arguments),p.renderInnerMenuItem=function(e){var o=p.props,t=o.renderMenuItem,d=o.index;return t(e,d,p.props.subMenuKey)},p}return Object(q.a)(x,[{key:"render",value:function(){var e=Object(W.a)({},this.props),o=e.className,t=o===void 0?"":o,d=e.rootPrefixCls,h="".concat(d,"-item-group-title"),_="".concat(d,"-item-group-list"),C=e.title,T=e.children;return ze.forEach(function(B){return delete e[B]}),delete e.direction,i.createElement("li",Object(W.a)({},e,{onClick:function(me){return me.stopPropagation()},className:"".concat(t," ").concat(d,"-item-group")}),i.createElement("div",{className:h,title:typeof C=="string"?C:void 0},C),i.createElement("ul",{className:_},i.Children.map(T,this.renderInnerMenuItem)))}}]),x}(i.Component);_a.isMenuItemGroup=!0,_a.defaultProps={disabled:!0};var Za=_a,ja=function(E){var x=E.className,p=E.rootPrefixCls,e=E.style;return i.createElement("li",{className:"".concat(x," ").concat(p,"-item-divider"),style:e})};ja.defaultProps={disabled:!0,className:"",style:{}};var qa=ja,Xa=Va,Ra=n("eDIo");function eo(l,E){var x=l.prefixCls,p=l.editable,e=l.locale,o=l.style;return!p||p.showAdd===!1?null:i.createElement("button",{ref:E,type:"button",className:"".concat(x,"-nav-add"),style:o,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(d){p.onEdit("add",{event:d})}},p.addIcon||"+")}var ma=i.forwardRef(eo);function to(l,E){var x=l.prefixCls,p=l.id,e=l.tabs,o=l.locale,t=l.mobile,d=l.moreIcon,h=d===void 0?"More":d,_=l.moreTransitionName,C=l.style,T=l.className,B=l.editable,me=l.tabBarGutter,pe=l.rtl,_e=l.onTabClick,$e=Object(i.useState)(!1),rt=Object(M.a)($e,2),qe=rt[0],lt=rt[1],it=Object(i.useState)(null),tt=Object(M.a)(it,2),nt=tt[0],Ot=tt[1],ct="".concat(p,"-more-popup"),Bt="".concat(x,"-dropdown"),At=nt!==null?"".concat(ct,"-").concat(nt):null,Ve=o==null?void 0:o.dropdownAriaLabel,He=i.createElement(Xa,{onClick:function(Dt){var Ft=Dt.key,on=Dt.domEvent;_e(Ft,on),lt(!1)},id:ct,tabIndex:-1,role:"listbox","aria-activedescendant":At,selectedKeys:[nt],"aria-label":Ve!==void 0?Ve:"expanded dropdown"},e.map(function(_t){return i.createElement(xa,{key:_t.key,id:"".concat(ct,"-").concat(_t.key),role:"option","aria-controls":p&&"".concat(p,"-panel-").concat(_t.key),disabled:_t.disabled},_t.tab)}));function ft(_t){for(var Dt=e.filter(function(xn){return!xn.disabled}),Ft=Dt.findIndex(function(xn){return xn.key===nt})||0,on=Dt.length,On=0;Onxt?(ht=He,ct.current="x"):(ht=ft,ct.current="y");var Kt=Date.now();Kt-nt.current>100&&(Ot.current=!1),(E(-ht,-ht)||Ot.current)&&(Ve.preventDefault(),Ot.current=!0),nt.current=Kt}var At=Object(i.useRef)(null);At.current={onTouchStart:lt,onTouchMove:it,onTouchEnd:tt,onWheel:Bt},i.useEffect(function(){function Ve(ke){At.current.onTouchStart(ke)}function He(ke){At.current.onTouchMove(ke)}function ft(ke){At.current.onTouchEnd(ke)}function ht(ke){At.current.onWheel(ke)}return document.addEventListener("touchmove",He,{passive:!1}),document.addEventListener("touchend",ft,{passive:!1}),l.current.addEventListener("touchstart",Ve,{passive:!1}),l.current.addEventListener("wheel",ht),function(){document.removeEventListener("touchmove",He),document.removeEventListener("touchend",ft)}},[])}function Sa(){var l=Object(i.useRef)(new Map);function E(p){return l.current.has(p)||l.current.set(p,i.createRef()),l.current.get(p)}function x(p){l.current.delete(p)}return[E,x]}function Ga(l,E){var x=i.useRef(l),p=i.useState({}),e=Object(M.a)(p,2),o=e[1];function t(d){var h=typeof d=="function"?d(x.current):d;h!==x.current&&E(h,x.current),x.current=h,o({})}return[x.current,t]}var Ya=function(E){var x=E.position,p=E.prefixCls,e=E.extra;if(!e)return null;var o,t=e;return x==="right"&&(o=t.right||!t.left&&t||null),x==="left"&&(o=t.left||null),o?i.createElement("div",{className:"".concat(p,"-extra-content")},o):null};function Fo(l,E){var x,p=i.useContext(Ma),e=p.prefixCls,o=p.tabs,t=l.className,d=l.style,h=l.id,_=l.animated,C=l.activeKey,T=l.rtl,B=l.extra,me=l.editable,pe=l.locale,_e=l.tabPosition,$e=l.tabBarGutter,rt=l.children,qe=l.onTabClick,lt=l.onTabScroll,it=Object(i.useRef)(),tt=Object(i.useRef)(),nt=Object(i.useRef)(),Ot=Object(i.useRef)(),ct=Sa(),Bt=Object(M.a)(ct,2),At=Bt[0],Ve=Bt[1],He=_e==="top"||_e==="bottom",ft=Ga(0,function(Pt,pt){He&<&<({direction:Pt>pt?"left":"right"})}),ht=Object(M.a)(ft,2),ke=ht[0],xt=ht[1],Kt=Ga(0,function(Pt,pt){!He&<&<({direction:Pt>pt?"top":"bottom"})}),_t=Object(M.a)(Kt,2),Dt=_t[0],Ft=_t[1],on=Object(i.useState)(0),On=Object(M.a)(on,2),Xt=On[0],xn=On[1],Fn=Object(i.useState)(0),Mn=Object(M.a)(Fn,2),Sn=Mn[0],Gt=Mn[1],vn=Object(i.useState)(0),rn=Object(M.a)(vn,2),nn=rn[0],ea=rn[1],ta=Object(i.useState)(0),sa=Object(M.a)(ta,2),kt=sa[0],Xn=sa[1],la=Object(i.useState)(null),Wt=Object(M.a)(la,2),Tt=Wt[0],sn=Wt[1],Xo=Object(i.useState)(null),bo=Object(M.a)(Xo,2),ha=bo[0],$o=bo[1],Go=Object(i.useState)(0),go=Object(M.a)(Go,2),Yo=go[0],Qo=go[1],Jo=Object(i.useState)(0),Eo=Object(M.a)(Jo,2),Zo=Eo[0],qo=Eo[1],er=P(new Map),yo=Object(M.a)(er,2),tr=yo[0],nr=yo[1],Qa=fe(o,tr,Xt),Co="".concat(e,"-nav-operations-hidden"),Ta=0,wa=0;He?T?(Ta=0,wa=Math.max(0,Xt-Tt)):(Ta=Math.min(0,Tt-Xt),wa=0):(Ta=Math.min(0,ha-Sn),wa=0);function ao(Pt){return Ptwa?[wa,!1]:[Pt,!0]}var Oo=Object(i.useRef)(),ar=Object(i.useState)(),xo=Object(M.a)(ar,2),oo=xo[0],_o=xo[1];function ro(){_o(Date.now())}function io(){window.clearTimeout(Oo.current)}$a(it,function(Pt,pt){var an=!1;function Tn(Pa,Na){Pa(function(Da){var La=ao(Da+Na),va=Object(M.a)(La,2),co=va[0],fo=va[1];return an=fo,co})}if(He){if(Tt>=Xt)return an;Tn(xt,Pt)}else{if(ha>=Sn)return an;Tn(Ft,pt)}return io(),ro(),an}),Object(i.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){_o(0)},100)),io},[oo]);function jo(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,pt=Qa.get(Pt);if(!pt)return;if(He){var an=ke;T?pt.rightke+Tt&&(an=pt.right+pt.width-Tt):pt.left<-ke?an=-pt.left:pt.left+pt.width>-ke+Tt&&(an=-(pt.left+pt.width-Tt)),Ft(0),xt(ao(an)[0])}else{var Tn=Dt;pt.top<-Dt?Tn=-pt.top:pt.top+pt.height>-Dt+ha&&(Tn=-(pt.top+pt.height-ha)),xt(0),Ft(ao(Tn)[0])}}var or=Ee(Qa,{width:Tt,height:ha,left:ke,top:Dt},{width:nn,height:kt},{width:Yo,height:Zo},Object(N.a)(Object(N.a)({},l),{},{tabs:o})),Ro=Object(M.a)(or,2),rr=Ro[0],ir=Ro[1],sr=o.map(function(Pt){var pt=Pt.key;return i.createElement(J,{id:h,prefixCls:e,key:pt,rtl:T,tab:Pt,closable:Pt.closable,editable:me,active:pt===C,tabPosition:_e,tabBarGutter:$e,renderWrapper:rt,removeAriaLabel:pe==null?void 0:pe.removeAriaLabel,ref:At(pt),onClick:function(Tn){qe(pt,Tn)},onRemove:function(){Ve(pt)},onFocus:function(){jo(pt),ro(),T||(it.current.scrollLeft=0),it.current.scrollTop=0}})}),so=te(function(){var Pt,pt,an,Tn,Pa,Na,Da,La,va,co=((Pt=it.current)===null||Pt===void 0?void 0:Pt.offsetWidth)||0,fo=((pt=it.current)===null||pt===void 0?void 0:pt.offsetHeight)||0,Do=((an=Ot.current)===null||an===void 0?void 0:an.offsetWidth)||0,Lo=((Tn=Ot.current)===null||Tn===void 0?void 0:Tn.offsetHeight)||0,pr=((Pa=nt.current)===null||Pa===void 0?void 0:Pa.offsetWidth)||0,mr=((Na=nt.current)===null||Na===void 0?void 0:Na.offsetHeight)||0;sn(co),$o(fo),Qo(Do),qo(Lo);var Uo=(((Da=tt.current)===null||Da===void 0?void 0:Da.offsetWidth)||0)-Do,ko=(((La=tt.current)===null||La===void 0?void 0:La.offsetHeight)||0)-Lo;xn(Uo),Gt(ko);var Io=(va=nt.current)===null||va===void 0?void 0:va.className.includes(Co);ea(Uo-(Io?0:pr)),Xn(ko-(Io?0:mr)),nr(function(){var Ko=new Map;return o.forEach(function(hr){var Wo=hr.key,Ua=At(Wo).current;Ua&&Ko.set(Wo,{width:Ua.offsetWidth,height:Ua.offsetHeight,left:Ua.offsetLeft,top:Ua.offsetTop})}),Ko})}),lr=o.slice(0,rr),ur=o.slice(ir+1),Mo=[].concat(Object(F.a)(lr),Object(F.a)(ur)),cr=Object(i.useState)(),So=Object(M.a)(cr,2),dr=So[0],fr=So[1],na=Qa.get(C),To=Object(i.useRef)();function wo(){ce.a.cancel(To.current)}Object(i.useEffect)(function(){var Pt={};return na&&(He?(T?Pt.right=na.right:Pt.left=na.left,Pt.width=na.width):(Pt.top=na.top,Pt.height=na.height)),wo(),To.current=ce()(function(){fr(Pt)}),wo},[na,He,T]),Object(i.useEffect)(function(){jo()},[C,na,Qa,He]),Object(i.useEffect)(function(){so()},[T,$e,C,o.map(function(Pt){return Pt.key}).join("_")]);var Ao=!!Mo.length,Aa="".concat(e,"-nav-wrap"),lo,uo,Po,No;return He?T?(uo=ke>0,lo=ke+Tt7?{y:400}:{},columns:vt,loading:Te,onChange:ut,pagination:{pageSize:Qe.per_page,total:Qe.total,current:Qe.page,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"],showTotal:function(at){return S.a.createElement("span",{className:"mr10"},"\u5171",S.a.createElement("span",{className:"c-orange"},at),"\u6761\u6570\u636E")}}}))},j=m,Z=n("m3rI"),ve=n("fj85"),Y=n("g+eg"),ne=n("mgmH"),se=function($){var a,g,r=$.user,w={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,sort_by:null,direction:null},G=Object(k.useState)(w),oe=Object(y.a)(G,2),z=oe[0],we=oe[1],ze=Object(k.useState)(!0),We=Object(y.a)(ze,2),Le=We[0],Ie=We[1],Qe=Object(k.useState)(!1),jt=Object(y.a)(Qe,2),It=jt[0],Rt=jt[1],Lt=Object(k.useState)(!1),Jt=Object(y.a)(Lt,2),L=Jt[0],he=Jt[1],be=Object(k.useState)(!1),Se=Object(y.a)(be,2),Pe=Se[0],Me=Se[1],je=Object(k.useState)([]),ge=Object(y.a)(je,2),Oe=ge[0],Ke=ge[1],Te=Object(k.useState)([]),Ue=Object(y.a)(Te,2),Ge=Ue[0],Fe=Ue[1],Ze=Object(k.useState)([]),yt=Object(y.a)(Ze,2),ut=yt[0],vt=yt[1],Xe=Object(k.useState)([]),at=Object(y.a)(Xe,2),Ct=at[0],dt=at[1],bt=Object(k.useState)([]),Ht=Object(y.a)(bt,2),ot=Ht[0],Zt=Ht[1],Nt=Object(k.useState)(!1),Mt=Object(y.a)(Nt,2),mt=Mt[0],et=Mt[1],Ut=Object(k.useState)(!1),Yt=Object(y.a)(Ut,2),Vt=Yt[0],St=Yt[1],zn=O.a.useForm(),Bn=Object(y.a)(zn,1),_n=Bn[0],dn=Object(k.useState)("1"),bn=Object(y.a)(dn,2),kn=bn[0],wn=bn[1],gn=Object(A.h)(),ln=Object(k.useState)([]),In=Object(y.a)(ln,2),En=In[0],An=In[1];Object(k.useEffect)(function(){var Ae;r!=null&&(Ae=r.userInfo)!==null&&Ae!==void 0&&Ae.school_id&&(jn(),$n())},[r==null||((a=r.userInfo)===null||a===void 0)?void 0:a.school_id]);var qt=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne){var De,Be,Ye;return D.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return Be=Object(s.cloneDeep)(Ne),Y.a.setItem(r==null||((De=r.userInfo)===null||De===void 0)?void 0:De.login,[Be==null?void 0:Be.ec_major_school_id,Be==null?void 0:Be.ec_year_id]),Ie(!0),wt.next=5,Object(v.a)("/api/ec_years/".concat(z.ec_year_id,"/ec_courses.json"),{method:"get",params:Be});case 5:Ye=wt.sent,Ye!=null&&Ye.ec_courses&&(vt((Ye==null?void 0:Ye.ec_courses)||[]),z.total=Ye==null?void 0:Ye.count,we(Object(W.a)({},z))),Ie(!1);case 8:case"end":return wt.stop()}},Re)}));return function(Ne){return Ae.apply(this,arguments)}}(),jn=function(){var Ae=Object(V.a)(D.a.mark(function Re(){var Ne,De,Be,Ye,st,wt,mn,yn,Hn,Wn,hn,aa,Qn,Dn;return D.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return $t.next=2,Object(v.a)("/api/schools/".concat(r==null||((Ne=r.userInfo)===null||Ne===void 0)?void 0:Ne.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(hn=$t.sent,hn!=null&&(De=hn.data)!==null&&De!==void 0&&(Be=De[0])!==null&&Be!==void 0&&Be.ec_major_school_id){$t.next=7;break}return Ie(!1),Rt(!0),$t.abrupt("return");case 7:return aa=Y.a.getItem(r==null||((Ye=r.userInfo)===null||Ye===void 0)?void 0:Ye.login),Qn=Number(gn==null||((st=gn.query)===null||st===void 0)?void 0:st.ec_major_school_id)||aa[0]||(hn==null||((wt=hn.data)===null||wt===void 0||((mn=wt[0])===null||mn===void 0))?void 0:mn.ec_major_school_id),$t.next=11,Object(v.a)("/api/ec_major_schools/".concat(Qn,"/ec_years/get_year_list.json"),{method:"get"});case 11:Dn=$t.sent,z.ec_major_school_id=Qn,z.ec_year_id=Number(gn==null||((yn=gn.query)===null||yn===void 0)?void 0:yn.ec_year_id)||aa[1]||(Dn==null||((Hn=Dn.data)===null||Hn===void 0||((Wn=Hn[0])===null||Wn===void 0))?void 0:Wn.ec_year_id),Ke((hn==null?void 0:hn.data)||[]),Fe((Dn==null?void 0:Dn.data)||[]),we(z),qt(z);case 18:case"end":return $t.stop()}},Re)}));return function(){return Ae.apply(this,arguments)}}(),Kn=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne){var De,Be,Ye;return D.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Object(v.a)("/api/ec_major_schools/".concat(Ne,"/ec_years/get_year_list.json"),{method:"get"});case 2:Ye=wt.sent,z.ec_major_school_id=Ne,z.ec_year_id=Ye==null||((De=Ye.data)===null||De===void 0||((Be=De[0])===null||Be===void 0))?void 0:Be.ec_year_id,Fe((Ye==null?void 0:Ye.data)||[]),we(z),qt(z);case 8:case"end":return wt.stop()}},Re)}));return function(Ne){return Ae.apply(this,arguments)}}(),$n=function(){var Ae=Object(V.a)(D.a.mark(function Re(){var Ne;return D.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.next=2,Object(v.a)("/api/ec_years/1/ec_courses/course_type_list.json",{method:"get"});case 2:Ne=Be.sent,Ne!=null&&Ne.list&&dt(Ne.list||[]);case 4:case"end":return Be.stop()}},Re)}));return function(){return Ae.apply(this,arguments)}}(),Pn=function(Re,Ne){if(z.page=1,z[Ne]=Re,Ne==="ec_major_school_id"){Kn(Re);return}Ne==="ec_year_id"&&(we(Object(W.a)({},z)),qt(z))},Qt=function(Re){Ee.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Ne=Object(V.a)(D.a.mark(function Be(){var Ye,st;return D.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return mn.next=2,Object(v.a)("/api/ec_years/".concat(z.ec_year_id,"/ec_courses/").concat(Re,".json"),{method:"delete"});case 2:Ye=mn.sent,(Ye==null?void 0:Ye.status)===0&&(st=ut.length===1&&z.page>1?z.page-1:z.page,z.page=st,we(Object(W.a)({},z)),qt(z));case 4:case"end":return mn.stop()}},Be)}));function De(){return Ne.apply(this,arguments)}return De}()})},en=function(Re,Ne,De){Ee.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Be=Object(V.a)(D.a.mark(function st(){var wt;return D.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return yn.next=2,Object(v.a)("/api/ec_years/1/ec_courses/".concat(Ne?"delete_course_teacher":"delete_work_teacher",".json"),{method:"delete",body:{id:Re,ec_course_id:De==null?void 0:De.id}});case 2:wt=yn.sent,(wt==null?void 0:wt.status)===0&&qt(z);case 4:case"end":return yn.stop()}},st)}));function Ye(){return Be.apply(this,arguments)}return Ye}()})},fn=function(Re,Ne,De){if(z.page=Re==null?void 0:Re.current,z.per_page=Re==null?void 0:Re.pageSize,De!=null&&De.order?(z.sort_by=De==null?void 0:De.field,z.direction=(De==null?void 0:De.order)==="ascend"?"asc":"desc"):(z.sort_by=null,z.direction=null),we(Object(W.a)({},z)),Rn)return;qt(z)},tn=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:function(Re,Ne,De){return S.a.createElement("span",{className:"pl20"},z.per_page*(z.page-1)+De+1)}},{title:"\u8BFE\u7A0B\u540D\u79F0",dataIndex:"name",sorter:!0,ellipsis:!0,render:function(Re){return Re||"-"}},{title:"\u8BFE\u7A0B\u7C7B\u578B",dataIndex:"course_type",ellipsis:!0,width:120,sorter:!0,render:function(Re){return Re||"-"}},{title:"\u6388\u8BFE\u6559\u5E08",dataIndex:"course_teachers",align:"right",width:300,render:function(Re,Ne){return S.a.createElement("span",{className:X.a.tagWrap},Re==null?void 0:Re.map(function(De){return S.a.createElement("div",{className:X.a.tag,key:De.id},S.a.createElement("span",{title:De.name},De.name),S.a.createElement("span",{onClick:function(Ye){Ye.preventDefault(),en(De.id,!0,Ne)}},S.a.createElement("i",{className:"iconfont icon-guanbi7"})))}),S.a.createElement("span",{onClick:function(){return pn(Re,!0,Ne)},className:"iconfont c-gcrz-primary current icon-tianjiatimu"}))}},{title:S.a.createElement("div",{className:"mr20"},"\u8BA4\u8BC1\u5DE5\u4F5C\u6559\u5E08"),dataIndex:"work_teachers",width:300,align:"right",render:function(Re,Ne){return S.a.createElement("span",{style:{marginRight:20},className:X.a.tagWrap},Re==null?void 0:Re.map(function(De){return S.a.createElement("div",{className:X.a.tag,key:De.id},S.a.createElement("span",{title:De.name},De.name),S.a.createElement("span",{onClick:function(Ye){Ye.preventDefault(),en(De.id,!1,Ne)}},S.a.createElement("i",{className:"iconfont icon-guanbi7"})))}),S.a.createElement("span",{onClick:function(){return pn(Re,!1,Ne)},className:"iconfont c-gcrz-primary current icon-tianjiatimu"}))}},{title:"\u64CD\u4F5C",width:110,dataIndex:"action",render:function(Re,Ne){return S.a.createElement("span",{style:{display:"inline-block",transform:"translateY(1px)"}},S.a.createElement("i",{onClick:function(){return un(Ne)},className:"iconfont icon-bianji7 c-gcrz-primary mr15 current"}),S.a.createElement("i",{onClick:function(){return Qt(Ne.id)},className:"iconfont icon-piliangshanchubeifen mr15 c-gcrz-primary current"}),S.a.createElement("i",{onClick:function(){return K.d.push("/engineering/cursesetting?course=".concat(Ne.id,"&ec_major_school_id=").concat(z==null?void 0:z.ec_major_school_id,"&ec_year_id=").concat(z==null?void 0:z.ec_year_id))},className:"iconfont icon-anquanshezhi c-gcrz-primary current"}))}}],un=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne){return D.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:St(Ne.id),_n.setFieldsValue({name:Ne.name,course_type:Ne.course_type});case 2:case"end":return Be.stop()}},Re)}));return function(Ne){return Ae.apply(this,arguments)}}(),pn=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne,De,Be){return D.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:Zt(Ne.map(function(wt){return wt.id})||[]),et(De),Me(Be.id);case 3:case"end":return st.stop()}},Re)}));return function(Ne,De,Be){return Ae.apply(this,arguments)}}(),Gn=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne){var De,Be;return D.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(he(!0),!(Vt===!0)){st.next=7;break}return st.next=4,Object(v.a)("/api/ec_years/".concat(z.ec_year_id,"/ec_courses.json"),{method:"post",body:Object(W.a)({},Ne)});case 4:Be=st.sent,st.next=10;break;case 7:return st.next=9,Object(v.a)("/api/ec_years/".concat(z.ec_year_id,"/ec_courses/").concat(Vt,".json"),{method:"put",body:Object(W.a)({},Ne)});case 9:Be=st.sent;case 10:((De=Be)===null||De===void 0?void 0:De.status)===0&&(qt(z),St(!1)),_n.resetFields(),he(!1);case 13:case"end":return st.stop()}},Re)}));return function(Ne){return Ae.apply(this,arguments)}}(),Nn=function(){St(!1),wn("1"),_n.resetFields()},Yn=function(){var Ae=Object(V.a)(D.a.mark(function Re(Ne,De){var Be;return D.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(!(Ne.length===0)){st.next=4;break}return fe.b.warn("\u8BF7\u9009\u62E9\u6559\u5E08"),De(),st.abrupt("return");case 4:if(!(Ne.length>2)){st.next=8;break}return fe.b.warn("\u6700\u591A\u9009\u62E9\u4E24\u540D\u6559\u5E08"),De(),st.abrupt("return");case 8:return st.next=10,Object(v.a)("/api/ec_years/1/ec_courses/".concat(mt?"add_course_teachers":"add_work_teachers",".json"),{method:"post",body:{ids:Ne,ec_course_id:Pe}});case 10:Be=st.sent,(Be==null?void 0:Be.status)===0&&(qt(z),Me(!1)),De();case 13:case"end":return st.stop()}},Re)}));return function(Ne,De){return Ae.apply(this,arguments)}}(),ua=function(){return S.a.createElement("div",null,S.a.createElement(O.a,{colon:!1,form:_n,onFinish:Gn,className:X.a.form,labelCol:{span:4},wrapperCol:{span:19}},S.a.createElement(O.a.Item,{label:"\u8BFE\u7A0B\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"},{max:60,message:"\u6700\u591A\u8F93\u516560\u4E2A\u5B57"}]},S.a.createElement(J.a,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0"})),S.a.createElement(O.a.Item,{label:"\u8BFE\u7A0B\u7C7B\u578B",name:"course_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B"}]},S.a.createElement(R.a,{style:{width:358},placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B"},Ct==null?void 0:Ct.map(function(Re){return S.a.createElement(R.a.Option,{value:Re},Re)})))),S.a.createElement(ce.a,{size:10,className:X.a.button,style:{margin:"26px 40px 20px 0",float:"right"}},S.a.createElement(te.a,{onClick:Nn},"\u53D6\u6D88"),S.a.createElement(te.a,{type:"primary",loading:L,onClick:function(){_n.submit()}},"\u4FDD\u5B58")),S.a.createElement("div",{style:{clear:"both"}}))},ca={onRemove:function(){An([])},beforeUpload:function(Re){if(console.log(Re),(Re==null?void 0:Re.size)>1024*1024*50)return fe.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var Ne=[];return Ne.push(Re),An([].concat(Ne)),!1},fileList:En,accept:".xls,.xlsx"},Rn=Le||It;return S.a.createElement("div",{className:X.a.wrap},S.a.createElement(ve.a,{title:"\u8BFE\u7A0B\u5217\u8868",style:{padding:"12px 0 0 20px"}}),S.a.createElement("div",{className:X.a.control},S.a.createElement("div",{className:X.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),S.a.createElement(R.a,{disabled:Rn,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:z==null?void 0:z.ec_major_school_id,onChange:function(Re){return Pn(Re,"ec_major_school_id")}},Oe==null?void 0:Oe.map(function(Ae){return S.a.createElement(R.a.Option,{value:Ae.ec_major_school_id},Ae.name)})),S.a.createElement("div",{className:X.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),S.a.createElement(R.a,{disabled:Rn,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:z==null?void 0:z.ec_year_id,onChange:function(Re){return Pn(Re,"ec_year_id")}},Ge==null?void 0:Ge.map(function(Ae){return S.a.createElement(R.a.Option,{value:Ae.ec_year_id},Ae.year)})),S.a.createElement(ce.a,{className:X.a.button,size:10},S.a.createElement(te.a,{disabled:Rn,style:{transition:"0s"},onClick:function(){St(!0)},type:"primary"},S.a.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u65B0\u589E\u8BFE\u7A0B"),S.a.createElement(te.a,{disabled:Rn,onClick:function(){Object(ne.q)({ec_year_id:z==null?void 0:z.ec_year_id})}},S.a.createElement("i",{style:{marginRight:"7px"},className:"iconfont icon-daochubeifen"})," ","\u5BFC\u51FA"))),S.a.createElement(F.a,{className:X.a.customTable,dataSource:ut,bordered:!1,rowKey:"id",columns:tn,rowClassName:X.a.row,loading:Le,onChange:fn,pagination:{pageSize:z.per_page,total:z.total,current:z.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(Re){return S.a.createElement("span",{className:"mr10"},"\u5171",S.a.createElement("span",{className:"c-orange"},Re),"\u6761\u6570\u636E")}}}),S.a.createElement(Ee.a,{title:Vt===!0?"\u65B0\u589E\u8BFE\u7A0B":"\u7F16\u8F91\u8BFE\u7A0B",visible:!!Vt,centered:!0,onCancel:Nn,className:X.a.customModal,width:"740px",footer:null},S.a.createElement(ee.a,{activeKey:kn,onChange:function(Re){wn(Re)},style:{paddingLeft:20}},S.a.createElement(ee.a.TabPane,{key:1,tab:"\u624B\u52A8\u65B0\u589E"},ua()),S.a.createElement(ee.a.TabPane,{key:2,tab:"\u6279\u91CF\u5BFC\u5165"},S.a.createElement("p",null,"\u6B65\u9AA41\uFF1A\u4E0B\u8F7D",S.a.createElement("a",{href:"".concat(Z.a.API_SERVER,"/api/ec_years/0/ec_courses/download_template.xlsx"),download:"\u6A21\u7248.xlsx"},"\u8BFE\u7A0B\u4F53\u7CFB\u5BFC\u5165\u6A21\u677F"),",\u6279\u91CF\u5BFC\u5165\u8BFE\u7A0B\u6570\u636E\u3002",S.a.createElement("span",{style:{color:"#D95201"}},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F")),S.a.createElement(M.a,null,S.a.createElement(u.a,null,"\u6B65\u9AA42\uFF1A"),S.a.createElement(u.a,null,S.a.createElement(N.a,ca,S.a.createElement(te.a,{type:"primary"},"\u9009\u62E9\u6587\u4EF6")))),S.a.createElement(ce.a,{size:10,className:X.a.button,style:{margin:"26px 40px 20px 0",float:"right"}},S.a.createElement(te.a,{onClick:Nn},"\u53D6\u6D88"),S.a.createElement(te.a,{type:"primary",loading:L,onClick:Object(V.a)(D.a.mark(function Ae(){var Re,Ne,De;return D.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Ne=new FormData,!(En.length>0)){Ye.next=5;break}Ne.append("file",En[0]),Ye.next=7;break;case 5:return fe.b.warn("\u8BF7\u9009\u62E9\u6587\u4EF6"),Ye.abrupt("return");case 7:return he(!0),Ne.append("ec_year_id",z.ec_year_id),Ne.append("school_id",r==null||((Re=r.userInfo)===null||Re===void 0)?void 0:Re.school_id),Ye.next=12,Object(v.a)("/api/ec_years/".concat(z.ec_year_id,"/ec_courses/import_ec_courses.json"),{method:"post",body:Ne},!0);case 12:De=Ye.sent,he(!1),(De==null?void 0:De.status)===0&&(An([]),St(!1),fe.b.info("\u6DFB\u52A0\u6210\u529F"),qt(z));case 15:case"end":return Ye.stop()}},Ae)}))},"\u4FDD\u5B58"))))),S.a.createElement(j,{visible:!!Pe,onCancel:function(){return Me(!1)},onOk:Yn,selectIds:ot,teacher:mt,ec_year_id:z==null?void 0:z.ec_year_id,title:mt?"\u9009\u62E9\u6388\u8BFE\u6559\u5E08":"\u9009\u62E9\u8BA4\u8BC1\u5DE5\u4F5C\u6559\u5E08",schoolId:r==null||((g=r.userInfo)===null||g===void 0)?void 0:g.school_id}))},ae=re.default=Object(K.a)(function(H){var $=H.user;return{user:$}})(se)},mgmH:function(Je,re,n){"use strict";n.d(re,"d",function(){return ye}),n.d(re,"b",function(){return te}),n.d(re,"e",function(){return P}),n.d(re,"c",function(){return R}),n.d(re,"n",function(){return le}),n.d(re,"g",function(){return J}),n.d(re,"h",function(){return ue}),n.d(re,"j",function(){return ie}),n.d(re,"a",function(){return Ee}),n.d(re,"l",function(){return W}),n.d(re,"f",function(){return V}),n.d(re,"k",function(){return q}),n.d(re,"m",function(){return O}),n.d(re,"i",function(){return y}),n.d(re,"o",function(){return b}),n.d(re,"t",function(){return D}),n.d(re,"s",function(){return k}),n.d(re,"p",function(){return S}),n.d(re,"q",function(){return Ce}),n.d(re,"r",function(){return X}),n.d(re,"v",function(){return A}),n.d(re,"u",function(){return K});var I=n("miYZ"),M=n("tsqr"),xe=n("k1fw"),N=n("9og8"),i=n("WmNS"),u=n.n(i),de=n("oUNq"),ee=n("9kvl"),U=n("1vsH"),F=n("m3rI"),Q=function(){Object(ee.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},ce=function(){Object(ee.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},ye=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return Q(),j.next=3,Object(de.t)(Object(xe.a)({},f));case 3:if(c=j.sent,!(c.status===0)){j.next=7;break}return j.next=7,Object(U.w)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/".concat(f.coursesId,"/export_couser_info.json"),query:f}));case 7:ce();case 8:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),te=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.r)(Object(xe.a)({},f));case 2:if(c=j.sent,!(c.status===0)){j.next=8;break}M.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_member_act_score")),j.next=13;break;case 8:if(!(c.status===-2)){j.next=12;break}return j.abrupt("return",c);case 12:c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),P=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.u)(Object(xe.a)({},f));case 2:if(c=j.sent,!(c.status===0)){j.next=8;break}M.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_score")),j.next=13;break;case 8:if(!(c.status===-2)){j.next=12;break}return j.abrupt("return",c);case 12:c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_score")));case 13:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),R=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.s)(Object(xe.a)({},f));case 2:if(c=j.sent,!(c.status===0)){j.next=8;break}M.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_exercise_and_other")),j.next=13;break;case 8:if(!(c.status===-2)){j.next=12;break}return j.abrupt("return",c);case 12:c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),le=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.z)(Object(xe.a)({},f));case 2:if(c=j.sent,!(c.status===0)){j.next=8;break}M.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_exercise_and_other")),j.next=13;break;case 8:if(!(c.status===-2)){j.next=12;break}return j.abrupt("return",c);case 12:c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),J=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.v)(Object(xe.a)({},f));case 2:if(c=j.sent,!(c.status===0)){j.next=8;break}M.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_homework")),j.next=13;break;case 8:if(!(c.status===-2)){j.next=12;break}return j.abrupt("return",c);case 12:c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),ue=function(){var v=Object(N.a)(u.a.mark(function s(f,c){var m;return u.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,Object(de.x)(Object(xe.a)({},f));case 2:m=Z.sent,m.status===0?(M.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/").concat(c))):m.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/").concat(c)));case 4:case"end":return Z.stop()}},s)}));return function(f,c){return v.apply(this,arguments)}}(),fe=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return Q(),j.next=3,Object(de.w)(Object(xe.a)({},f));case 3:if(c=j.sent,!(c.status===0)){j.next=7;break}return j.next=7,Object(U.w)("",Object(U.Y)({url:F.a.API_SERVER+"/api/homework_commons/".concat(f.categoryId,"/works_list.zip"),query:f}));case 7:ce();case 8:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),ie=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return Q(),j.next=3,Object(de.A)(Object(xe.a)({},f));case 3:if(c=j.sent,!(c.status===0)){j.next=7;break}return j.next=7,Object(U.w)("",Object(U.Y)({url:F.a.API_SERVER+"/api/polls/".concat(f.categoryId,"/commit_result.xlsx"),query:f}));case 7:ce();case 8:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),Ee=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/".concat(f.coursesId,"/attendances/export_xlsx_data.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),W=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/".concat(f.coursesId,"/video_study_statics.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),V=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/".concat(f.coursesId,"/export_course_students_info.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),q=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/item_banks/export.xlsx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),O=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),y=function(){var v=Object(N.a)(u.a.mark(function s(f){var c;return u.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,Object(de.y)(Object(xe.a)({},f));case 2:c=j.sent,c.status===0?(M.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/exercise_score"))):c.status===-3&&(Object(ee.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ee.d.push("/classrooms/".concat(f.coursesId,"/exportlist/exercise_score")));case 4:case"end":return j.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),b=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),m.next=3,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/export_records/".concat(f.id,".xlsx"),query:f}));case 3:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),D=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),k=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/ec_years/".concat(f==null?void 0:f.ec_year_id,"/ec_training_objectives.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),S=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)(f==null?void 0:f.name,Object(U.Y)({url:F.a.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),Ce=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/ec_years/".concat(f==null?void 0:f.ec_year_id,"/ec_courses.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),X=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/ec_years/".concat(f==null?void 0:f.ec_year_id,"/ec_graduation_requirements.xlsx"),query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),A=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/rank_list.xlsx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}(),K=function(){var v=Object(N.a)(u.a.mark(function s(f){return u.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Object(U.v)("",Object(U.Y)({url:F.a.API_SERVER+"/api/courses/question_rank_list.xlsx",query:f}));case 2:case"end":return m.stop()}},s)}));return function(f){return v.apply(this,arguments)}}()},n6Qo:function(Je,re,n){"use strict";n.d(re,"a",function(){return ee});var I=n("q1tI"),M=n("biw7"),xe=n("fyJ8");function N(U){var F=U.className,Q=U.index,ce=U.children,ye=U.colSpan,te=U.rowSpan,P=I.useContext(M.a),R=P.prefixCls,le=P.fixedInfoList,J=le[Q];return I.createElement(xe.a,Object.assign({className:F,index:Q,component:"td",prefixCls:R,record:null,dataIndex:null,render:function(){return{children:ce,props:{colSpan:ye,rowSpan:te}}}},J))}function i(U){return I.createElement("tr",Object.assign({},U))}function u(U){var F=U.children,Q=I.useContext(M.a),ce=Q.prefixCls;return I.createElement("tfoot",{className:"".concat(ce,"-summary")},F)}var de=re.b=u,ee={Cell:N,Row:i}},sBkp:function(Je,re,n){Je.exports={flex_box_center:"flex_box_center___2ei3K",flex_space_between:"flex_space_between___3lPdu",flex_box_vertical_center:"flex_box_vertical_center___16QaQ",flex_box_center_end:"flex_box_center_end___30Z_i",flex_box_column:"flex_box_column___2a4ue",customModal:"customModal___2B4GK",customTable:"customTable___1U6wo"}},sR1s:function(Je,re,n){"use strict";n.d(re,"b",function(){return N}),n.d(re,"a",function(){return i}),n.d(re,"c",function(){return u}),n.d(re,"d",function(){return de});var I=n("U8pU"),M="RC_TABLE_KEY";function xe(ee){return ee==null?[]:Array.isArray(ee)?ee:[ee]}function N(ee,U){if(!U&&typeof U!="number")return ee;for(var F=xe(U),Q=ee,ce=0;ce1)Object(F.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(fe.length===0)return Object(F.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var ie=fe[0];if(u.isValidElement(ie)&&Object(Q.c)(ie)){var Ee=ie.ref;fe[0]=u.cloneElement(ie,{ref:Object(Q.a)(Ee,this.setChildNode)})}return fe.length===1?fe[0]:fe.map(function(W,V){return!u.isValidElement(W)||"key"in W&&W.key!==null?W:u.cloneElement(W,{key:"".concat(ye,"-").concat(V)})})}}]),le}(u.Component);te.displayName="ResizeObserver",re.a=te},wCXF:function(Je,re,n){"use strict";n.d(re,"a",function(){return It});var I=n("rePB"),M=n("VTBJ"),xe=n("KQm4"),N=n("U8pU"),i=n("ODXe"),u=n("q1tI"),de=n("TSYQ"),ee=n.n(de),U=n("Gytx"),F=n.n(U),Q=n("Kwbf"),ce=n("t23M"),ye=n("qx4F"),te=n("6eGT"),P=n("IBYe"),R=n("Ff2n"),le=n("c+Xe"),J=n("fyJ8"),ue=n("biw7");function fe(L,he,be,Se,Pe){var Me=be[L]||{},je=be[he]||{},ge,Oe;Me.fixed==="left"?ge=Se.left[L]:je.fixed==="right"&&(Oe=Se.right[he]);var Ke=!1,Te=!1,Ue=!1,Ge=!1,Fe=be[he+1],Ze=be[L-1];if(Pe==="rtl"){if(ge!==void 0){var yt=Ze&&Ze.fixed==="left";Ge=!yt}else if(Oe!==void 0){var ut=Fe&&Fe.fixed==="right";Ue=!ut}}else if(ge!==void 0){var vt=Fe&&Fe.fixed==="left";Ke=!vt}else if(Oe!==void 0){var Xe=Ze&&Ze.fixed==="right";Te=!Xe}return{fixLeft:ge,fixRight:Oe,lastFixLeft:Ke,firstFixRight:Te,lastFixRight:Ue,firstFixLeft:Ge,isSticky:Se.isSticky}}var ie=n("sR1s");function Ee(L){var he=L.cells,be=L.stickyOffsets,Se=L.flattenColumns,Pe=L.rowComponent,Me=L.cellComponent,je=L.onHeaderRow,ge=L.index,Oe=u.useContext(ue.a),Ke=Oe.prefixCls,Te=Oe.direction,Ue;je&&(Ue=je(he.map(function(Fe){return Fe.column}),ge));var Ge=Object(ie.a)(he.map(function(Fe){return Fe.column}));return u.createElement(Pe,Object.assign({},Ue),he.map(function(Fe,Ze){var yt=Fe.column,ut=fe(Fe.colStart,Fe.colEnd,Se,be,Te),vt;return yt&&yt.onHeaderCell&&(vt=Fe.column.onHeaderCell(yt)),u.createElement(J.a,Object.assign({},Fe,{ellipsis:yt.ellipsis,align:yt.align,component:Me,prefixCls:Ke,key:Ge[Ze]},ut,{additionalProps:vt,rowType:"header"}))}))}Ee.displayName="HeaderRow";var W=Ee;function V(L){var he=[];function be(je,ge){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;he[Oe]=he[Oe]||[];var Ke=ge,Te=je.filter(Boolean).map(function(Ue){var Ge={key:Ue.key,className:Ue.className||"",children:Ue.title,column:Ue,colStart:Ke},Fe=1,Ze=Ue.children;return Ze&&Ze.length>0&&(Fe=be(Ze,Ke,Oe+1).reduce(function(yt,ut){return yt+ut},0),Ge.hasSubColumns=!0),"colSpan"in Ue&&(Fe=Ue.colSpan),"rowSpan"in Ue&&(Ge.rowSpan=Ue.rowSpan),Ge.colSpan=Fe,Ge.colEnd=Ge.colStart+Fe-1,he[Oe].push(Ge),Ke+=Fe,Fe});return Te}be(L,0);for(var Se=he.length,Pe=function(ge){he[ge].forEach(function(Oe){!("rowSpan"in Oe)&&!Oe.hasSubColumns&&(Oe.rowSpan=Se-ge)})},Me=0;Me=0;ge-=1){var Oe=he[ge],Ke=be&&be[ge],Te=Ke&&Ke[y.a];(Oe||Te||je)&&(Pe.unshift(u.createElement("col",Object.assign({key:ge,style:{width:Oe,minWidth:Oe}},Te))),je=!0)}return u.createElement("colgroup",null,Pe)}var D=b;function k(L,he){return Object(u.useMemo)(function(){for(var be=[],Se=0;Se1?tn-1:0),pn=1;pn=Ue&&(St=Ue-Ge),je({scrollLeft:St/Ue*(Te+2)}),Xe.current.x=et.pageX},Nt=function(){var et=Object(ze.b)(Me.current).top,Ut=et+Me.current.offsetHeight,Yt=document.documentElement.scrollTop+window.innerHeight;Ut-Object(ye.a)()<=Yt||et>=Yt-ge?vt(function(Vt){return Object(M.a)(Object(M.a)({},Vt),{},{isHiddenScrollBar:!0})}):vt(function(Vt){return Object(M.a)(Object(M.a)({},Vt),{},{isHiddenScrollBar:!1})})},Mt=function(et){vt(function(Ut){return Object(M.a)(Object(M.a)({},Ut),{},{scrollLeft:et/Te*Ue||0})})};return u.useImperativeHandle(be,function(){return{setScrollLeft:Mt}}),u.useEffect(function(){var mt=Object(we.a)(document.body,"mouseup",Ht,!1),et=Object(we.a)(document.body,"mousemove",Zt,!1);return Nt(),function(){mt.remove(),et.remove()}},[Ge,dt]),u.useEffect(function(){var mt=Object(we.a)(window,"scroll",Nt,!1),et=Object(we.a)(window,"resize",Nt,!1);return function(){mt.remove(),et.remove()}},[]),u.useEffect(function(){ut.isHiddenScrollBar||vt(function(mt){var et,Ut;return Object(M.a)(Object(M.a)({},mt),{},{scrollLeft:Me.current.scrollLeft/((et=Me.current)===null||et===void 0?void 0:et.scrollWidth)*((Ut=Me.current)===null||Ut===void 0?void 0:Ut.clientWidth)})})},[ut.isHiddenScrollBar]),Te<=Ue||!Ge||ut.isHiddenScrollBar?null:u.createElement("div",{style:{height:Object(ye.a)(),width:Ue,bottom:ge},className:"".concat(Ke,"-sticky-scroll")},u.createElement("div",{onMouseDown:ot,ref:Fe,className:ee()("".concat(Ke,"-sticky-scroll-bar"),Object(I.a)({},"".concat(Ke,"-sticky-scroll-bar-active"),dt)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(ut.scrollLeft,"px, 0, 0)")}}))},Le=u.forwardRef(We);function Ie(L,he){return u.useMemo(function(){var be=!!L;return{isSticky:be,stickyClassName:be?"".concat(he,"-sticky-header"):"",offsetHeader:Object(N.a)(L)==="object"&&L.offsetHeader||0,offsetScroll:Object(N.a)(L)==="object"&&L.offsetScroll||0}},[L,he])}var Qe=[],jt={},It="rc-table-internal-hook",Rt=u.memo(function(L){var he=L.children;return he},function(L,he){return F()(L.props,he.props)?L.pingLeft!==he.pingLeft||L.pingRight!==he.pingRight:!1});function Lt(L){var he,be=L.prefixCls,Se=L.className,Pe=L.rowClassName,Me=L.style,je=L.data,ge=L.rowKey,Oe=L.scroll,Ke=L.tableLayout,Te=L.direction,Ue=L.title,Ge=L.footer,Fe=L.summary,Ze=L.id,yt=L.showHeader,ut=L.components,vt=L.emptyText,Xe=L.onRow,at=L.onHeaderRow,Ct=L.internalHooks,dt=L.transformColumns,bt=L.internalRefs,Ht=L.sticky,ot=je||Qe,Zt=!!ot.length,Nt=u.useState(0),Mt=Object(i.a)(Nt,2),mt=Mt[0],et=Mt[1];u.useEffect(function(){et(Object(ye.a)())});var Ut=u.useMemo(function(){return Object(ie.c)(ut,{})},[ut]),Yt=u.useCallback(function(gt,Et){return Object(ie.b)(Ut,gt)||Et},[Ut]),Vt=u.useMemo(function(){return typeof ge=="function"?ge:function(gt){var Et=gt&>[ge];return Et}},[ge]),St=Object(y.c)(L),zn=St.expandIcon,Bn=St.expandedRowKeys,_n=St.defaultExpandedRowKeys,dn=St.defaultExpandAllRows,bn=St.expandedRowRender,kn=St.onExpand,wn=St.onExpandedRowsChange,gn=St.expandRowByClick,ln=St.rowExpandable,In=St.expandIconColumnIndex,En=St.expandedRowClassName,An=St.childrenColumnName,qt=St.indentSize,jn=zn||oe,Kn=An||"children",$n=u.useMemo(function(){return bn?"row":L.expandable&&Ct===It&&L.expandable.__PARENT_RENDER_ICON__||ot.some(function(gt){return gt&&Object(N.a)(gt)==="object"&>[Kn]})?"nest":!1},[!!bn,ot]),Pn=u.useState(function(){return _n||(dn?z(ot,Vt,Kn):[])}),Qt=Object(i.a)(Pn,2),en=Qt[0],fn=Qt[1],tn=u.useMemo(function(){return new Set(Bn||en||[])},[Bn,en]),un=u.useCallback(function(gt){var Et=Vt(gt,ot.indexOf(gt)),zt,cn=tn.has(Et);cn?(tn.delete(Et),zt=Object(xe.a)(tn)):zt=[].concat(Object(xe.a)(tn),[Et]),fn(zt),kn&&kn(!cn,gt),wn&&wn(zt)},[Vt,tn,ot,kn,wn]),pn=u.useState(0),Gn=Object(i.a)(pn,2),Nn=Gn[0],Yn=Gn[1],ua=Object(ne.b)(Object(M.a)(Object(M.a)(Object(M.a)({},L),St),{},{expandable:!!bn,expandedKeys:tn,getRowKey:Vt,onTriggerExpand:un,expandIcon:jn,expandIconColumnIndex:In,direction:Te}),Ct===It?dt:null),ca=Object(i.a)(ua,2),Rn=ca[0],Ae=ca[1],Re=u.useMemo(function(){return{columns:Rn,flattenColumns:Ae}},[Rn,Ae]),Ne=u.useRef(),De=u.useRef(),Be=u.useRef(),Ye=u.useState(!1),st=Object(i.a)(Ye,2),wt=st[0],mn=st[1],yn=u.useState(!1),Hn=Object(i.a)(yn,2),Wn=Hn[0],hn=Hn[1],aa=H(new Map),Qn=Object(i.a)(aa,2),Dn=Qn[0],ka=Qn[1],$t=Object(ie.a)(Ae),ba=$t.map(function(gt){return Dn.get(gt)}),Ia=u.useMemo(function(){return ba},[ba.join("_")]),ga=g(Ia,Ae.length,Te),Cn=Oe&&Object(ie.d)(Oe.y),Ln=Oe&&Object(ie.d)(Oe.x),Un=Ln&&Ae.some(function(gt){var Et=gt.fixed;return Et}),Ea=u.useRef(),oa=Ie(Ht,be),ra=oa.isSticky,Ka=oa.offsetHeader,Ja=oa.offsetScroll,Wa=oa.stickyClassName,ya,da,Jn;Cn&&(da={overflowY:"scroll",maxHeight:Oe.y}),Ln&&(ya={overflowX:"auto"},Cn||(da={overflowY:"hidden"}),Jn={width:Oe.x===!0?"auto":Oe.x,minWidth:"100%"});var Vn=u.useCallback(function(gt,Et){ka(function(zt){var cn=new Map(zt);return cn.set(gt,Et),cn})},[]),fa=$(null),Fa=Object(i.a)(fa,2),za=Fa[0],Ba=Fa[1];function pa(gt,Et){if(!Et)return;typeof Et=="function"?Et(gt):Et.scrollLeft!==gt&&(Et.scrollLeft=gt)}var Zn=function(Et){var zt=Et.currentTarget,cn=Et.scrollLeft,ia=typeof cn=="number"?cn:zt.scrollLeft,$a=zt||jt;if(!Ba()||Ba()===$a){var Sa;za($a),pa(ia,De.current),pa(ia,Be.current),pa(ia,(Sa=Ea.current)===null||Sa===void 0?void 0:Sa.setScrollLeft)}if(zt){var Ga=zt.scrollWidth,Ya=zt.clientWidth;mn(ia>0),hn(ia0?[].concat(Object(M.a)(R),Object(M.a)(Q(fe).map(function(ie){return Object(xe.a)({fixed:ue},ie)}))):[].concat(Object(M.a)(R),[Object(xe.a)(Object(xe.a)({},le),{},{fixed:ue})])},[])}function ce(P){for(var R=!0,le=0;le=0;fe-=1){var ie=P[fe];if(ue&&ie.fixed!=="right")ue=!1;else if(!ue&&ie.fixed==="right"){Object(de.a)(!1,"Index ".concat(fe+1," of `columns` missing `fixed='right'` prop."));break}}}function ye(P){return P.map(function(R){var le=R.fixed,J=Object(N.a)(R,["fixed"]),ue=le;return le==="left"?ue="right":le==="right"&&(ue="left"),Object(xe.a)({fixed:ue},J)})}function te(P,R){var le=P.prefixCls,J=P.columns,ue=P.children,fe=P.expandable,ie=P.expandedKeys,Ee=P.getRowKey,W=P.onTriggerExpand,V=P.expandIcon,q=P.rowExpandable,O=P.expandIconColumnIndex,y=P.direction,b=P.expandRowByClick,D=i.useMemo(function(){return J||F(ue)},[J,ue]),k=i.useMemo(function(){if(fe){var X,A=O||0,K=D[A],v=(X={},Object(I.a)(X,U.a,{className:"".concat(le,"-expand-icon-col")}),Object(I.a)(X,"title",""),Object(I.a)(X,"fixed",K?K.fixed:null),Object(I.a)(X,"className","".concat(le,"-row-expand-icon-cell")),Object(I.a)(X,"render",function(c,m,j){var Z=Ee(m,j),ve=ie.has(Z),Y=q?q(m):!0,ne=V({prefixCls:le,expanded:ve,expandable:Y,record:m,onExpand:W});return b?i.createElement("span",{onClick:function(ae){return ae.stopPropagation()}},ne):ne}),X),s=D.slice();return A>=0&&s.splice(A,0,v),s}return D},[fe,D,Ee,ie,V,y]),S=i.useMemo(function(){var X=k;return R&&(X=R(X)),X.length||(X=[{render:function(){return null}}]),X},[R,k,y]),Ce=i.useMemo(function(){return y==="rtl"?ye(Q(S)):Q(S)},[S,y]);return[S,Ce]}re.b=te},"y0+3":function(Je,re,n){"use strict";n.d(re,"a",function(){return Q}),n.d(re,"b",function(){return ye});var I=/margin|padding|width|height|max|min|offset/,M={left:!0,top:!0},xe={cssFloat:1,styleFloat:1,float:1};function N(te){return te.nodeType===1?te.ownerDocument.defaultView.getComputedStyle(te,null):{}}function i(te,P,R){if(P=P.toLowerCase(),R==="auto"){if(P==="height")return te.offsetHeight;if(P==="width")return te.offsetWidth}return P in M||(M[P]=I.test(P)),M[P]?parseFloat(R)||0:R}function u(te,P){var R=arguments.length,le=N(te);return P=xe[P]?"cssFloat"in te.style?"cssFloat":"styleFloat":P,R===1?le:i(te,P,le[P]||te.style[P])}function de(te,P,R){var le=arguments.length;if(P=xe[P]?"cssFloat"in te.style?"cssFloat":"styleFloat":P,le===3)return typeof R=="number"&&I.test(P)&&(R="".concat(R,"px")),te.style[P]=R,R;for(var J in P)P.hasOwnProperty(J)&&de(te,J,P[J]);return N(te)}function ee(te){return te===document.body?document.documentElement.clientWidth:te.offsetWidth}function U(te){return te===document.body?window.innerHeight||document.documentElement.clientHeight:te.offsetHeight}function F(){var te=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),P=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:te,height:P}}function Q(){var te=document.documentElement.clientWidth,P=window.innerHeight||document.documentElement.clientHeight;return{width:te,height:P}}function ce(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ye(te){var P=te.getBoundingClientRect(),R=document.documentElement;return{left:P.left+(window.pageXOffset||R.scrollLeft)-(R.clientLeft||document.body.clientLeft||0),top:P.top+(window.pageYOffset||R.scrollTop)-(R.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Lists__CurseSetting.589c6b98.async.js b/p__Engineering__Lists__CurseSetting.589c6b98.async.js index 0a54110de7..4fd49d762e 100644 --- a/p__Engineering__Lists__CurseSetting.589c6b98.async.js +++ b/p__Engineering__Lists__CurseSetting.589c6b98.async.js @@ -1,10 +1,10 @@ (window.webpackJsonp=window.webpackJsonp||[]).push([[148,5,6,8,14],{"+ua5":function(Ge,Q,o){},"/cxE":function(Ge,Q,o){"use strict";o.d(Q,"f",function(){return ce}),o.d(Q,"g",function(){return ee}),o.d(Q,"h",function(){return y}),o.d(Q,"e",function(){return oe}),o.d(Q,"b",function(){return re}),o.d(Q,"c",function(){return e}),o.d(Q,"d",function(){return T}),o.d(Q,"a",function(){return E});class Y{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(p){setTimeout(()=>{throw p.stack?new Error(p.message+` -`+p.stack):p},0)}}emit(p){this.listeners.forEach(l=>{l(p)})}onUnexpectedError(p){this.unexpectedErrorHandler(p),this.emit(p)}onUnexpectedExternalError(p){this.unexpectedErrorHandler(p)}}const z=new Y;function ce(p){oe(p)||z.onUnexpectedError(p);return}function ee(p){oe(p)||z.onUnexpectedExternalError(p);return}function y(p){if(p instanceof Error){let{name:l,message:r}=p;const i=p.stacktrace||p.stack;return{$isError:!0,name:l,message:r,stack:i}}return p}const A="Canceled";function oe(p){return p instanceof Error&&p.name===A&&p.message===A}function re(){const p=new Error(A);return p.name=p.message,p}function e(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function T(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class E extends Error{constructor(p){super("NotSupported");p&&(this.message=p)}}},"24hK":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return z});class Y{constructor(ce){this.element=ce,this.next=Y.Undefined,this.prev=Y.Undefined}}Y.Undefined=new Y(void 0);class z{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 ce=this._first;for(;ce!==Y.Undefined;){const ee=ce.next;ce.prev=Y.Undefined,ce.next=Y.Undefined,ce=ee}this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}unshift(ce){return this._insert(ce,!1)}push(ce){return this._insert(ce,!0)}_insert(ce,ee){const y=new Y(ce);if(this._first===Y.Undefined)this._first=y,this._last=y;else if(ee){const oe=this._last;this._last=y,y.prev=oe,oe.next=y}else{const oe=this._first;this._first=y,y.next=oe,oe.prev=y}this._size+=1;let A=!1;return()=>{A||(A=!0,this._remove(y))}}shift(){if(this._first===Y.Undefined)return;{const ce=this._first.element;return this._remove(this._first),ce}}pop(){if(this._last===Y.Undefined)return;{const ce=this._last.element;return this._remove(this._last),ce}}_remove(ce){if(ce.prev!==Y.Undefined&&ce.next!==Y.Undefined){const ee=ce.prev;ee.next=ce.next,ce.next.prev=ee}else ce.prev===Y.Undefined&&ce.next===Y.Undefined?(this._first=Y.Undefined,this._last=Y.Undefined):ce.next===Y.Undefined?(this._last=this._last.prev,this._last.next=Y.Undefined):ce.prev===Y.Undefined&&(this._first=this._first.next,this._first.prev=Y.Undefined);this._size-=1}*[Symbol.iterator](){let ce=this._first;for(;ce!==Y.Undefined;)yield ce.element,ce=ce.next}}},"2U/9":function(Ge,Q,o){"use strict";var Y=o("VTBJ"),z=o("rePB"),ce=o("Ff2n"),ee=o("1OyB"),y=o("vuIU"),A=o("Ji7U"),oe=o("LK+K"),re=o("q1tI"),e=o.n(re),T=o("Zm9Q"),E=o("TSYQ"),p=o.n(E),l=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function r(v){return typeof v=="string"}var i=function(v){Object(A.a)(W,v);var m=Object(oe.a)(W);function W(){var $;return Object(ee.a)(this,W),$=m.apply(this,arguments),$.onClick=function(){var G=$.props,N=G.onClick,J=G.onStepClick,S=G.stepIndex;N&&N.apply(void 0,arguments),J(S)},$}return Object(y.a)(W,[{key:"renderIconNode",value:function(){var G,N=this.props,J=N.prefixCls,S=N.progressDot,X=N.stepIcon,M=N.stepNumber,D=N.status,P=N.title,w=N.description,f=N.icon,k=N.iconPrefix,b=N.icons,n,u=p()("".concat(J,"-icon"),"".concat(k,"icon"),(G={},Object(z.a)(G,"".concat(k,"icon-").concat(f),f&&r(f)),Object(z.a)(G,"".concat(k,"icon-check"),!f&&D==="finish"&&(b&&!b.finish||!b)),Object(z.a)(G,"".concat(k,"icon-cross"),!f&&D==="error"&&(b&&!b.error||!b)),G)),s=re.createElement("span",{className:"".concat(J,"-icon-dot")});return S?typeof S=="function"?n=re.createElement("span",{className:"".concat(J,"-icon")},S(s,{index:M-1,status:D,title:P,description:w})):n=re.createElement("span",{className:"".concat(J,"-icon")},s):f&&!r(f)?n=re.createElement("span",{className:"".concat(J,"-icon")},f):b&&b.finish&&D==="finish"?n=re.createElement("span",{className:"".concat(J,"-icon")},b.finish):b&&b.error&&D==="error"?n=re.createElement("span",{className:"".concat(J,"-icon")},b.error):f||D==="finish"||D==="error"?n=re.createElement("span",{className:u}):n=re.createElement("span",{className:"".concat(J,"-icon")},M),X&&(n=X({index:M-1,status:D,title:P,description:w,node:n})),n}},{key:"render",value:function(){var G,N=this.props,J=N.className,S=N.prefixCls,X=N.style,M=N.active,D=N.status,P=D===void 0?"wait":D,w=N.iconPrefix,f=N.icon,k=N.wrapperStyle,b=N.stepNumber,n=N.disabled,u=N.description,s=N.title,a=N.subTitle,t=N.progressDot,R=N.stepIcon,U=N.tailContent,ae=N.icons,_e=N.stepIndex,ne=N.onStepClick,me=N.onClick,Oe=Object(ce.a)(N,l),we=p()("".concat(S,"-item"),"".concat(S,"-item-").concat(P),J,(G={},Object(z.a)(G,"".concat(S,"-item-custom"),f),Object(z.a)(G,"".concat(S,"-item-active"),M),Object(z.a)(G,"".concat(S,"-item-disabled"),n===!0),G)),ue=Object(Y.a)({},X),Ee={};return ne&&!n&&(Ee.role="button",Ee.tabIndex=0,Ee.onClick=this.onClick),re.createElement("div",Object.assign({},Oe,{className:we,style:ue}),re.createElement("div",Object.assign({onClick:me},Ee,{className:"".concat(S,"-item-container")}),re.createElement("div",{className:"".concat(S,"-item-tail")},U),re.createElement("div",{className:"".concat(S,"-item-icon")},this.renderIconNode()),re.createElement("div",{className:"".concat(S,"-item-content")},re.createElement("div",{className:"".concat(S,"-item-title")},s,a&&re.createElement("div",{title:typeof a=="string"?a:void 0,className:"".concat(S,"-item-subtitle")},a)),u&&re.createElement("div",{className:"".concat(S,"-item-description")},u))))}}]),W}(re.Component),c=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],g=function(v){Object(A.a)(W,v);var m=Object(oe.a)(W);function W(){var $;return Object(ee.a)(this,W),$=m.apply(this,arguments),$.onStepClick=function(G){var N=$.props,J=N.onChange,S=N.current;J&&S!==G&&J(G)},$}return Object(y.a)(W,[{key:"render",value:function(){var G,N=this,J=this.props,S=J.prefixCls,X=J.style,M=X===void 0?{}:X,D=J.className,P=J.children,w=J.direction,f=J.type,k=J.labelPlacement,b=J.iconPrefix,n=J.status,u=J.size,s=J.current,a=J.progressDot,t=J.stepIcon,R=J.initial,U=J.icons,ae=J.onChange,_e=Object(ce.a)(J,c),ne=f==="navigation",me=a?"vertical":k,Oe=p()(S,"".concat(S,"-").concat(w),D,(G={},Object(z.a)(G,"".concat(S,"-").concat(u),u),Object(z.a)(G,"".concat(S,"-label-").concat(me),w==="horizontal"),Object(z.a)(G,"".concat(S,"-dot"),!!a),Object(z.a)(G,"".concat(S,"-navigation"),ne),G));return e.a.createElement("div",Object.assign({className:Oe,style:M},_e),Object(T.a)(P).map(function(we,ue){var Ee=R+ue,C=Object(Y.a)({stepNumber:"".concat(Ee+1),stepIndex:Ee,key:Ee,prefixCls:S,iconPrefix:b,wrapperStyle:M,progressDot:a,stepIcon:t,icons:U,onStepClick:ae&&N.onStepClick},we.props);return n==="error"&&ue===s-1&&(C.className="".concat(S,"-next-error")),we.props.status||(Ee===s?C.status=n:Ee0&&(fe==null||fe.map(function(Ie){Ue.push(Ie)}))}),Ye([].concat(Ue))}else Ye([])}})," ","\u8003\u6838\u5185\u5BB9"),t.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),t.a.createElement("span",{style:{width:214}},"\u8003\u6838\u77E5\u8BC6\u70B9"),t.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),t.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),t.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},t.a.createElement("span",{style:{width:93}},pe.name),t.a.createElement("span",{style:{width:194,maxHeight:"552px"}},pe==null||((Je=pe.courses)===null||Je===void 0)?void 0:Je.map(function(Z){var xe,he,be,Ce;return t.a.createElement("div",{className:U.a.textwidth,style:{height:(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?40:(Z==null||((he=Z.shixun_models)===null||he===void 0)?void 0:he.length)*40,lineHeight:(Z==null||((be=Z.shixun_models)===null||be===void 0)?void 0:be.length)===0?40+"px":(Z==null||((Ce=Z.shixun_models)===null||Ce===void 0)?void 0:Ce.length)*40+"px"}},Z.name)})),t.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},t.a.createElement(ye.a.Group,{onChange:function(xe){var he,be=ze==null||((he=ze.courses)===null||he===void 0)?void 0:he.map(function(fe){var Ie;return fe==null||((Ie=fe.shixun_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ce=[];be.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ce.push(Ie)}))});var Ue=Ce.filter(function(fe){return xe.includes(fe.id)});Ye(Ue)},style:{width:"100%"},value:$e==null?void 0:$e.map(function(Z){return Z==null?void 0:Z.id})},pe==null||((ot=pe.courses)===null||ot===void 0)?void 0:ot.map(function(Z){var xe,he;return(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.shixun_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(ye.a,{onChange:function(Ue){be.checked=Ue.target.checked,ct(Object(D.a)({},pe))},value:be==null?void 0:be.id},be.name))})}))),t.a.createElement("span",{style:{width:277,maxHeight:"552px"}},pe==null||((st=pe.courses)===null||st===void 0)?void 0:st.map(function(Z){var xe,he;return(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.shixun_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement($.a,{title:be.groups},t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.groups))})})),t.a.createElement("span",{style:{width:214,maxHeight:"552px"}},pe==null||((Pt=pe.courses)===null||Pt===void 0)?void 0:Pt.map(function(Z){var xe,he;return(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.shixun_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(M.a,{value:be.ec_point_ids,onChange:function(Ue){be.ec_point_ids=Ue,ct(Object(D.a)({},pe))},mode:"multiple",style:{width:200}},Le.map(function(Ce,Ue){return t.a.createElement(M.a.Option,{key:Ue,value:Ce.id},"\u77E5\u8BC6\u70B9".concat(Ue+1,"\uFF1A"),Ce.name)})))})})),t.a.createElement("span",{style:{width:87,maxHeight:"552px"}},pe==null||((Ot=pe.courses)===null||Ot===void 0)?void 0:Ot.map(function(Z){var xe,he;return(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.shixun_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.total_score)})})),t.a.createElement("span",{style:{width:93,maxHeight:"552px"}},pe==null||((gt=pe.courses)===null||gt===void 0)?void 0:gt.map(function(Z){var xe,he;return(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{disabled:!0})):Z==null||((he=Z.shixun_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{min:1,step:.1,parser:wn,value:be==null?void 0:be.position,onChange:function(Ue){be.position=Ue,ct(Object(D.a)({},pe))}}))})}))))},Rn=function(pe){var Je,ot,st,Pt,Ot,gt;return t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},t.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),t.a.createElement("span",{style:{width:324}},t.a.createElement(ye.a,{checked:$e.length===(pe==null?void 0:pe.exercise_count),onChange:function(xe){var he;if(pe==null||((he=pe.courses)===null||he===void 0)||he.map(function(fe){var Ie;fe==null||((Ie=fe.exercise_models)===null||Ie===void 0)||Ie.map(function(nt){nt.checked=xe.target.checked})}),ct(Object(D.a)({},ze)),xe.target.checked){var be,Ce=ze==null||((be=ze.courses)===null||be===void 0)?void 0:be.map(function(fe){var Ie;return fe==null||((Ie=fe.exercise_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ue=[];Ce.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ue.push(Ie)}))}),Ye([].concat(Ue))}else Ye([])}})," ","\u8003\u6838\u5185\u5BB9"),t.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),t.a.createElement("span",{style:{width:214}},"\u8003\u6838\u77E5\u8BC6\u70B9"),t.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),t.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),t.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},t.a.createElement("span",{style:{width:93}},pe.name),t.a.createElement("span",{style:{width:194,maxHeight:"552px"}},pe==null||((Je=pe.courses)===null||Je===void 0)?void 0:Je.map(function(Z){var xe,he,be,Ce;return t.a.createElement("div",{className:U.a.textwidth,style:{height:(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?40:(Z==null||((he=Z.exercise_models)===null||he===void 0)?void 0:he.length)*40,lineHeight:(Z==null||((be=Z.exercise_models)===null||be===void 0)?void 0:be.length)===0?40+"px":(Z==null||((Ce=Z.exercise_models)===null||Ce===void 0)?void 0:Ce.length)*40+"px"}},Z.name)})),t.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},t.a.createElement(ye.a.Group,{onChange:function(xe){var he,be=ze==null||((he=ze.courses)===null||he===void 0)?void 0:he.map(function(fe){var Ie;return fe==null||((Ie=fe.exercise_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ce=[];be.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ce.push(Ie)}))});var Ue=Ce.filter(function(fe){return xe.includes(fe.id)});Ye(Ue)},style:{width:"100%"},value:$e==null?void 0:$e.map(function(Z){return Z==null?void 0:Z.id})},pe==null||((ot=pe.courses)===null||ot===void 0)?void 0:ot.map(function(Z){var xe,he;return(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.exercise_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(ye.a,{onChange:function(Ue){be.checked=Ue.target.checked,ct(Object(D.a)({},pe))},value:be==null?void 0:be.id},be.name))})}))),t.a.createElement("span",{style:{width:277,maxHeight:"552px"}},pe==null||((st=pe.courses)===null||st===void 0)?void 0:st.map(function(Z){var xe,he;return(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.exercise_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement($.a,{title:be.groups},t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.groups))})})),t.a.createElement("span",{style:{width:214,maxHeight:"552px"}},pe==null||((Pt=pe.courses)===null||Pt===void 0)?void 0:Pt.map(function(Z){var xe,he;return(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.exercise_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(M.a,{value:be.ec_point_ids,onChange:function(Ue){be.ec_point_ids=Ue,ct(Object(D.a)({},pe))},mode:"multiple",style:{width:200}},Le.map(function(Ce,Ue){return t.a.createElement(M.a.Option,{key:Ue,value:Ce.id},"\u77E5\u8BC6\u70B9".concat(Ue+1,"\uFF1A"),Ce.name)})))})})),t.a.createElement("span",{style:{width:87,maxHeight:"552px"}},pe==null||((Ot=pe.courses)===null||Ot===void 0)?void 0:Ot.map(function(Z){var xe,he;return(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.exercise_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.total_score)})})),t.a.createElement("span",{style:{width:93,maxHeight:"552px"}},pe==null||((gt=pe.courses)===null||gt===void 0)?void 0:gt.map(function(Z){var xe,he;return(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{disabled:!0})):Z==null||((he=Z.exercise_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{min:1,step:.1,parser:wn,value:be==null?void 0:be.position,onChange:function(Ue){be.position=Ue,ct(Object(D.a)({},pe))}}))})}))))},Nn=function(pe){var Je,ot,st,Pt,Ot,gt;return t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},t.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),t.a.createElement("span",{style:{width:324}},t.a.createElement(ye.a,{checked:$e.length===(pe==null?void 0:pe.common_count),onChange:function(xe){var he;if(pe==null||((he=pe.courses)===null||he===void 0)||he.map(function(fe){var Ie;fe==null||((Ie=fe.common_models)===null||Ie===void 0)||Ie.map(function(nt){nt.checked=xe.target.checked})}),ct(Object(D.a)({},ze)),xe.target.checked){var be,Ce=ze==null||((be=ze.courses)===null||be===void 0)?void 0:be.map(function(fe){var Ie;return fe==null||((Ie=fe.common_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ue=[];Ce.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ue.push(Ie)}))}),Ye([].concat(Ue))}else Ye([])}})," ","\u8003\u6838\u5185\u5BB9"),t.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),t.a.createElement("span",{style:{width:214}},"\u8003\u6838\u77E5\u8BC6\u70B9"),t.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),t.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),t.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},t.a.createElement("span",{style:{width:93}},pe.name),t.a.createElement("span",{style:{width:194,maxHeight:"552px"}},pe==null||((Je=pe.courses)===null||Je===void 0)?void 0:Je.map(function(Z){var xe,he,be,Ce;return t.a.createElement("div",{className:U.a.textwidth,style:{height:(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?40:(Z==null||((he=Z.common_models)===null||he===void 0)?void 0:he.length)*40,lineHeight:(Z==null||((be=Z.common_models)===null||be===void 0)?void 0:be.length)===0?40+"px":(Z==null||((Ce=Z.common_models)===null||Ce===void 0)?void 0:Ce.length)*40+"px"}},Z.name)})),t.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},t.a.createElement(ye.a.Group,{onChange:function(xe){var he,be=ze==null||((he=ze.courses)===null||he===void 0)?void 0:he.map(function(fe){var Ie;return fe==null||((Ie=fe.common_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ce=[];be.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ce.push(Ie)}))});var Ue=Ce.filter(function(fe){return xe.includes(fe.id)});Ye(Ue)},style:{width:"100%"},value:$e==null?void 0:$e.map(function(Z){return Z==null?void 0:Z.id})},pe==null||((ot=pe.courses)===null||ot===void 0)?void 0:ot.map(function(Z){var xe,he;return(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.common_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(ye.a,{onChange:function(Ue){be.checked=Ue.target.checked,ct(Object(D.a)({},pe))},value:be==null?void 0:be.id},be.name))})}))),t.a.createElement("span",{style:{width:277,maxHeight:"552px"}},pe==null||((st=pe.courses)===null||st===void 0)?void 0:st.map(function(Z){var xe,he;return(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.common_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement($.a,{title:be.groups},t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.groups))})})),t.a.createElement("span",{style:{width:214,maxHeight:"552px"}},pe==null||((Pt=pe.courses)===null||Pt===void 0)?void 0:Pt.map(function(Z){var xe,he;return(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.common_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(M.a,{value:be.ec_point_ids,onChange:function(Ue){be.ec_point_ids=Ue,ct(Object(D.a)({},pe))},mode:"multiple",style:{width:200}},Le.map(function(Ce,Ue){return t.a.createElement(M.a.Option,{key:Ue,value:Ce.id},"\u77E5\u8BC6\u70B9".concat(Ue+1,"\uFF1A"),Ce.name)})))})})),t.a.createElement("span",{style:{width:87,maxHeight:"552px"}},pe==null||((Ot=pe.courses)===null||Ot===void 0)?void 0:Ot.map(function(Z){var xe,he;return(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.common_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.total_score)})})),t.a.createElement("span",{style:{width:93,maxHeight:"552px"}},pe==null||((gt=pe.courses)===null||gt===void 0)?void 0:gt.map(function(Z){var xe,he;return(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{disabled:!0})):Z==null||((he=Z.common_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{min:1,step:.1,parser:wn,value:be==null?void 0:be.position,onChange:function(Ue){be.position=Ue,ct(Object(D.a)({},pe))}}))})}))))},Dn=function(pe){var Je,ot,st,Pt,Ot,gt;return t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},t.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),t.a.createElement("span",{style:{width:324}},t.a.createElement(ye.a,{checked:$e.length===(pe==null?void 0:pe.group_count),onChange:function(xe){var he;if(pe==null||((he=pe.courses)===null||he===void 0)||he.map(function(fe){var Ie;fe==null||((Ie=fe.group_models)===null||Ie===void 0)||Ie.map(function(nt){nt.checked=xe.target.checked})}),ct(Object(D.a)({},ze)),xe.target.checked){var be,Ce=ze==null||((be=ze.courses)===null||be===void 0)?void 0:be.map(function(fe){var Ie;return fe==null||((Ie=fe.group_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ue=[];Ce.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ue.push(Ie)}))}),Ye([].concat(Ue))}else Ye([])}})," ","\u8003\u6838\u5185\u5BB9"),t.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),t.a.createElement("span",{style:{width:214}},"\u8003\u6838\u77E5\u8BC6\u70B9"),t.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),t.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),t.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},t.a.createElement("span",{style:{width:93}},pe.name),t.a.createElement("span",{style:{width:194,maxHeight:"552px"}},pe==null||((Je=pe.courses)===null||Je===void 0)?void 0:Je.map(function(Z){var xe,he,be,Ce;return t.a.createElement("div",{className:U.a.textwidth,style:{height:(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?40:(Z==null||((he=Z.group_models)===null||he===void 0)?void 0:he.length)*40,lineHeight:(Z==null||((be=Z.group_models)===null||be===void 0)?void 0:be.length)===0?40+"px":(Z==null||((Ce=Z.group_models)===null||Ce===void 0)?void 0:Ce.length)*40+"px"}},Z.name)})),t.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},t.a.createElement(ye.a.Group,{onChange:function(xe){var he,be=ze==null||((he=ze.courses)===null||he===void 0)?void 0:he.map(function(fe){var Ie;return fe==null||((Ie=fe.group_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ce=[];be.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ce.push(Ie)}))});var Ue=Ce.filter(function(fe){return xe.includes(fe.id)});Ye(Ue)},style:{width:"100%"},value:$e==null?void 0:$e.map(function(Z){return Z==null?void 0:Z.id})},pe==null||((ot=pe.courses)===null||ot===void 0)?void 0:ot.map(function(Z){var xe,he;return(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.group_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(ye.a,{onChange:function(Ue){be.checked=Ue.target.checked,ct(Object(D.a)({},pe))},value:be==null?void 0:be.id},be.name))})}))),t.a.createElement("span",{style:{width:277,maxHeight:"552px"}},pe==null||((st=pe.courses)===null||st===void 0)?void 0:st.map(function(Z){var xe,he;return(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.group_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement($.a,{title:be.groups},t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.groups))})})),t.a.createElement("span",{style:{width:214,maxHeight:"552px"}},pe==null||((Pt=pe.courses)===null||Pt===void 0)?void 0:Pt.map(function(Z){var xe,he;return(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.group_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(M.a,{value:be.ec_point_ids,onChange:function(Ue){be.ec_point_ids=Ue,ct(Object(D.a)({},pe))},mode:"multiple",style:{width:200}},Le.map(function(Ce,Ue){return t.a.createElement(M.a.Option,{key:Ue,value:Ce.id},"\u77E5\u8BC6\u70B9".concat(Ue+1,"\uFF1A"),Ce.name)})))})})),t.a.createElement("span",{style:{width:87,maxHeight:"552px"}},pe==null||((Ot=pe.courses)===null||Ot===void 0)?void 0:Ot.map(function(Z){var xe,he;return(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((he=Z.group_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.total_score)})})),t.a.createElement("span",{style:{width:93,maxHeight:"552px"}},pe==null||((gt=pe.courses)===null||gt===void 0)?void 0:gt.map(function(Z){var xe,he;return(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{disabled:!0})):Z==null||((he=Z.group_models)===null||he===void 0)?void 0:he.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{min:1,step:.1,parser:wn,value:be==null?void 0:be.position,onChange:function(Ue){be.position=Ue,ct(Object(D.a)({},pe))}}))})}))))};return t.a.createElement(m.a,{title:"\u6DFB\u52A0\u8BFE\u5802\u6570\u636E",wrapClassName:U.a.modalWrapContainer,visible:de,width:Qe<2?740:1100,footer:t.a.createElement("div",null,Qe<2&&t.a.createElement(S.a,{type:"primary",onClick:Object(f.a)(s.a.mark(function vt(){var pe,Je,ot,st;return s.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(!(!Vt||Vt=="")){Ot.next=3;break}return w.b.warn("\u8BF7\u9009\u62E9\u8BFE\u5802"),Ot.abrupt("return");case 3:return Ot.next=5,Object(ne.a)("/api/ec_courses/".concat(Ne==null?void 0:Ne.id,"/course_evaluations/search_works.json"),{method:"get",params:{course_ids:Vt,list_id:Ke||""}});case 5:Je=Ot.sent,ct(Je),ot=Je==null||((pe=Je.courses)===null||pe===void 0)?void 0:pe.map(function(gt){var Z;return gt==null||((Z=gt.shixun_models)===null||Z===void 0)?void 0:Z.map(function(xe){return xe})}),st=[],ot.map(function(gt){gt.length>0&&(gt==null||gt.map(function(Z){Z.checked&&st.push(Z)}))}),Ye([].concat(st)),bn("1"),Ve(2);case 13:case"end":return Ot.stop()}},vt)}))},"\u4E0B\u4E00\u6B65"),Qe>=2&&t.a.createElement("div",null,t.a.createElement(S.a,{type:"primary",onClick:Object(f.a)(s.a.mark(function vt(){return s.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:Me(!1),Ve(0);case 2:case"end":return Je.stop()}},vt)}))},"\u53D6\u6D88"),t.a.createElement(S.a,{type:"primary",loading:Jt,onClick:Object(f.a)(s.a.mark(function vt(){var pe,Je,ot,st,Pt,Ot,gt,Z,xe,he,be,Ce,Ue,fe,Ie,nt,Tn,fn;return s.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:if(xe=ze==null||((pe=ze.courses)===null||pe===void 0)?void 0:pe.map(function(mt){var Dt;return mt==null||((Dt=mt.common_models)===null||Dt===void 0)?void 0:Dt.map(function(_n){return _n})}),he=[],xe.map(function(mt){mt.length>0&&(mt==null||mt.map(function(Dt){Dt.checked&&he.push(Dt)}))}),be=ze==null||((Je=ze.courses)===null||Je===void 0)?void 0:Je.map(function(mt){var Dt;return mt==null||((Dt=mt.group_models)===null||Dt===void 0)?void 0:Dt.map(function(_n){return _n})}),Ce=[],be.map(function(mt){mt.length>0&&(mt==null||mt.map(function(Dt){Dt.checked&&Ce.push(Dt)}))}),Ue=ze==null||((ot=ze.courses)===null||ot===void 0)?void 0:ot.map(function(mt){var Dt;return mt==null||((Dt=mt.exercise_models)===null||Dt===void 0)?void 0:Dt.map(function(_n){return _n})}),fe=[],Ue.map(function(mt){mt.length>0&&(mt==null||mt.map(function(Dt){Dt.checked&&fe.push(Dt)}))}),Ie=ze==null||((st=ze.courses)===null||st===void 0)?void 0:st.map(function(mt){var Dt;return mt==null||((Dt=mt.shixun_models)===null||Dt===void 0)?void 0:Dt.map(function(_n){return _n})}),nt=[],Ie.map(function(mt){mt.length>0&&(mt==null||mt.map(function(Dt){Dt.checked&&nt.push(Dt)}))}),on==="1"?nt=$e:on==="2"?he=$e:on==="3"?Ce=$e:fe=$e,an(!0),!(((Pt=nt)===null||Pt===void 0?void 0:Pt.length)<=0&&((Ot=he)===null||Ot===void 0?void 0:Ot.length)<=0&&((gt=Ce)===null||gt===void 0?void 0:gt.length)<=0&&((Z=fe)===null||Z===void 0?void 0:Z.length)<=0)){$t.next=18;break}return w.b.info("\u8BF7\u9009\u62E9\u8003\u6838\u5185\u5BB9"),an(!1),$t.abrupt("return");case 18:if(!Ke){$t.next=25;break}return $t.next=21,Object(ne.a)("/api/ec_courses/".concat(Ne==null?void 0:Ne.id,"/course_evaluations/update_online"),{method:"put",body:{id:Ke,course_ids:Vt,shixun_works:nt,common_works:he,group_works:Ce,exercise_works:fe}});case 21:Tn=$t.sent,Tn&&(Me(!1),He(Ne),Se(Ne)),$t.next=29;break;case 25:return $t.next=27,Object(ne.a)("/api/ec_courses/".concat(Ne==null?void 0:Ne.id,"/course_evaluations/create_online"),{method:"post",body:{course_ids:Vt,shixun_works:nt,common_works:he,group_works:Ce,exercise_works:fe}});case 27:fn=$t.sent,fn&&(Me(!1),He(Ne),Se(Ne));case 29:an(!1),Ve(0);case 31:case"end":return $t.stop()}},vt)}))},"\u4FDD\u5B58"))),onCancel:function(){Ve(0),Me(!1)}},t.a.createElement("div",{style:{width:"calc(100% - 184px)",margin:"0 auto"}},t.a.createElement(B.a,{current:Qe},t.a.createElement(B.a.Step,{style:{cursor:"pointer"},onClick:function(){Ve(1)},key:1,title:"\u5173\u8054\u8BFE\u5802"}),t.a.createElement(B.a.Step,{style:{cursor:"pointer"},onClick:Object(f.a)(s.a.mark(function vt(){var pe,Je,ot,st;return s.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(!(Vt.length<=0)){Ot.next=3;break}return w.b.info("\u8BF7\u9009\u62E9\u8BFE\u5802"),Ot.abrupt("return");case 3:return Ot.next=5,Object(ne.a)("/api/ec_courses/".concat(Ne==null?void 0:Ne.id,"/course_evaluations/search_works.json"),{method:"get",params:{course_ids:Vt,list_id:Ke||""}});case 5:Je=Ot.sent,ct(Je),ot=Je==null||((pe=Je.courses)===null||pe===void 0)?void 0:pe.map(function(gt){var Z;return gt==null||((Z=gt.shixun_models)===null||Z===void 0)?void 0:Z.map(function(xe){return xe})}),st=[],ot.map(function(gt){gt.length>0&&(gt==null||gt.map(function(Z){Z.checked&&st.push(Z)}))}),Ye([].concat(st)),bn("1"),Ve(2);case 13:case"end":return Ot.stop()}},vt)})),key:2,title:"\u914D\u7F6E\u8003\u6838\u65B9\u5F0F\u4E0E\u5185\u5BB9"}))),Qe<2&&t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:30,padding:"0 40px"}},t.a.createElement("div",{style:{flex:1},className:U.a.title},"\u5173\u8054\u8BFE\u5802"),t.a.createElement(l.a.Search,{className:U.a.inputWrap,style:{width:"342px"},onSearch:function(pe){ht.page=1,ht.name=pe,Tt(Object(D.a)({},ht)),En(ht)},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"})),t.a.createElement("div",null,t.a.createElement(j.a,{style:{marginTop:"10px"},dataSource:nn,rowKey:"id",scroll:{y:300},rowSelection:yn,onChange:Sn,columns:[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name"},{title:"\u521B\u5EFA\u8005",dataIndex:"creator_name",width:110},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:133},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"end_time",width:133,render:function(pe,Je,ot){return pe||"- -"}}],pagination:{pageSize:ht.per_page,total:ht.total,current:ht.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(pe){return t.a.createElement("span",{className:"mr10"},"\u5171",t.a.createElement("span",{className:"c-orange"},pe),"\u6761\u6570\u636E")}}}))),Qe===2&&t.a.createElement("div",{className:U.a.addCourseTabsContainer},t.a.createElement(e.a,{defaultActiveKey:"1",activeKey:on,onChange:function(pe){if(bn(pe),pe==="1"){var Je,ot=ze==null||((Je=ze.courses)===null||Je===void 0)?void 0:Je.map(function(fe){var Ie;return fe==null||((Ie=fe.shixun_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),st=[];ot.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ie.checked&&st.push(Ie)}))}),Ye([].concat(st))}else if(pe==="2"){var Pt,Ot=ze==null||((Pt=ze.courses)===null||Pt===void 0)?void 0:Pt.map(function(fe){var Ie;return fe==null||((Ie=fe.common_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),gt=[];Ot.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ie.checked&>.push(Ie)}))}),Ye([].concat(gt))}else if(pe==="3"){var Z,xe=ze==null||((Z=ze.courses)===null||Z===void 0)?void 0:Z.map(function(fe){var Ie;return fe==null||((Ie=fe.group_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),he=[];xe.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ie.checked&&he.push(Ie)}))}),Ye([].concat(he))}else{var be,Ce=ze==null||((be=ze.courses)===null||be===void 0)?void 0:be.map(function(fe){var Ie;return fe==null||((Ie=fe.exercise_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ue=[];Ce.map(function(fe){fe.length>0&&(fe==null||fe.map(function(Ie){Ie.checked&&Ue.push(Ie)}))}),Ye([].concat(Ue))}}},t.a.createElement(e.a.TabPane,{tab:"\u5B9E\u8BAD\u4F5C\u4E1A",key:1},xn(),An(Object(D.a)(Object(D.a)({},ze),{},{name:"\u5B9E\u8BAD\u4F5C\u4E1A"}))),t.a.createElement(e.a.TabPane,{tab:"\u666E\u901A\u4F5C\u4E1A",key:2},xn(),Nn(Object(D.a)(Object(D.a)({},ze),{},{name:"\u666E\u901A\u4F5C\u4E1A"}))),t.a.createElement(e.a.TabPane,{tab:"\u5206\u7EC4\u4F5C\u4E1A",key:3},xn(),Dn(Object(D.a)(Object(D.a)({},ze),{},{name:"\u5206\u7EC4\u4F5C\u4E1A"}))),t.a.createElement(e.a.TabPane,{tab:"\u5728\u7EBF\u8003\u8BD5",key:4},xn(),Rn(Object(D.a)(Object(D.a)({},ze),{},{name:"\u5728\u7EBF\u8003\u8BD5"}))))))}var Fe=Ae,Xe=o("LvDl"),V=o("BdwD");function se(tt){var Rt,de,Me,Ne=tt.isshow,Ke=tt.setishow,He=tt.modalparams,Se=tt.getcourse_evaluations,ke={page:1,per_page:20,total:0,name:""},Le=Object(a.useState)(0),Be=Object(n.a)(Le,2),Re=Be[0],We=Be[1],Qe=Object(a.useState)(ke),Ve=Object(n.a)(Qe,2),at=Ve[0],yt=Ve[1],ht=Object(a.useState)([]),Tt=Object(n.a)(ht,2),Nt=Tt[0],_t=Tt[1],nn=Object(a.useState)([]),Gt=Object(n.a)(nn,2),Ut=Gt[0],Qt=Gt[1],Vt=Object(a.useState)([]),jt=Object(n.a)(Vt,2),ln=jt[0],Ft=jt[1],ze=Object(a.useState)({}),ct=Object(n.a)(ze,2),it=ct[0],zt=ct[1],$e=Object(a.useState)(),Ye=Object(n.a)($e,2),et=Ye[0],Lt=Ye[1],on=Object(a.useState)(!1),bn=Object(n.a)(on,2),hn=bn[0],vn=bn[1],Jt=Object(a.useState)("1"),an=Object(n.a)(Jt,2),En=an[0],Zt=an[1],Sn=Object(a.useRef)(ke),yn=Object(a.useState)(null),wn=Object(n.a)(yn,2),xn=wn[0],An=wn[1],Rn=Object(a.useRef)(null),Nn=Object(a.useRef)(""),Dn=Object(a.useRef)([]);Object(a.useEffect)(function(){Ne&&(Je(at),Zt("1"))},[Ne]);var vt=function(xe){An(xe),Rn.current=xe,gt(Object(Xe.cloneDeep)(Dn.current))},pe=function(xe){var he=xe;return he=isNaN(he)?"":he,he[0]==="."&&(he=""),he};function Je(Z){return ot.apply(this,arguments)}function ot(){return ot=Object(f.a)(s.a.mark(function Z(xe){var he,be,Ce;return s.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,Object(ne.a)("/api/ec_courses/".concat(He.id,"/evaluations/evaluation_settings.json"),{method:"get",params:xe});case 2:be=fe.sent,_t(be),Lt((be==null||((he=be.ec_course_targets)===null||he===void 0)?void 0:he.length)*75+227+240+32),Ce=be.ec_course_targets,Ce.unshift({content:"11"}),Dn.current=Ce,gt(Ce);case 9:case"end":return fe.stop()}},Z)})),ot.apply(this,arguments)}function st(Z){return Pt.apply(this,arguments)}function Pt(){return Pt=Object(f.a)(s.a.mark(function Z(xe){var he,be,Ce;return s.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,Object(ne.a)("/api/ec_courses/".concat(He.id,"/evaluations/evaluation_settings_subitems.json"),{method:"get",params:xe});case 2:be=fe.sent,Ce=[],be.evaluations.map(function(Ie){var nt;Ie==null||((nt=Ie.subitems)===null||nt===void 0)||nt.map(function(Tn){Ce.push(Tn)})}),Lt((be==null||((he=be.ec_course_targets)===null||he===void 0)?void 0:he.length)*75+227+240+32),zt({}),zt(be),Ft(Ce);case 9:case"end":return fe.stop()}},Z)})),Pt.apply(this,arguments)}var Ot=function(){var Z=Object(f.a)(s.a.mark(function xe(he){var be,Ce,Ue,fe,Ie,nt;return s.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:return An(null),fe=Rn.current,Rn.current=null,Ie=he?"/api/ec_courses/".concat(He.id,"/evaluations/update_evaluation_settings"):"/api/ec_courses/".concat(He.id,"/evaluations/update_evaluation_setting_subitem"),fn.next=6,Object(ne.a)(Ie,{method:"post",body:{random_number:fe==null||((be=fe.split("-"))===null||be===void 0)?void 0:be[1],ec_course_target_id:fe==null||((Ce=fe.split("-"))===null||Ce===void 0)?void 0:Ce[0],weight:Nn.current,ec_course_evaluation_subitem_ids:he?null:[fe==null||((Ue=fe.split("-"))===null||Ue===void 0)?void 0:Ue[2]]}});case 6:nt=fn.sent,nt.status===0&&(w.b.success("\u4FDD\u5B58\u6210\u529F"),he?(Je(at),Se(He)):(st(at),Se(He)));case 8:case"end":return fn.stop()}},xe)}));return function(he){return Z.apply(this,arguments)}}(),gt=function(xe){var he=Object(Xe.cloneDeep)(xe);he[0].title=t.a.createElement("div",{className:U.a.line},t.a.createElement("span",null,"\u8BFE\u7A0B\u76EE\u6807"),t.a.createElement("span",null,"\u8003\u6838\u65B9\u5F0F")),he[0].dataIndex="work_name",he[0].width=180,he[0].fixed="left",he[0].render=function(Ce,Ue){return t.a.createElement("div",{className:U.a.omit},t.a.createElement("span",{title:Ce},Ce),Ue.warning&&t.a.createElement($.a,{title:"\u8BE5\u8003\u6838\u65B9\u5F0F\u5BF9\u5E94\u76EE\u6807\u5360\u6BD4\u4E4B\u548C\u4E3A0\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E"},t.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))};var be=function(Ue,fe,Ie,nt){var Tn,fn,Ln="",$t="";Ue&&(Ln=Ue.split("-")[0],$t=Ue.split("-")[1]);var mt=((Tn=Sn.current)===null||Tn===void 0?void 0:Tn.tab)==="1"?Ln:$t,Dt=fe==null||((fn=fe.relation[nt-1])===null||fn===void 0)?void 0:fn.weight;return t.a.createElement("span",null,Rn.current==="".concat(Ie,"-").concat(fe.random_number)?t.a.createElement(E.a,{key:"".concat(Ie,"-").concat(fe.random_number),autoFocus:!0,defaultValue:Dt,onBlur:function(){return Ot(!0)},step:.1,parser:pe,onChange:function(Zn){return Nn.current=Zn},style:{width:100}}):t.a.createElement(a.Fragment,{key:"".concat(Ie,"-").concat(fe.random_number)},t.a.createElement("span",{className:U.a.tbl,onClick:function(){return vt("".concat(Ie,"-").concat(fe.random_number))},style:{color:mt==="H"?"#0152D9":mt==="M"?"#07C160":mt==="L"?"#FF9D18":"#0152d9"}},Dt?t.a.createElement("span",null,Dt):"\u8F93\u5165\u6570\u5B57")))};he=he.map(function(Ce,Ue){return Ue?{title:t.a.createElement("span",{key:Math.random()},t.a.createElement($.a,{title:Ce.content},t.a.createElement("span",null,"\u76EE\u6807"+Ue)),Ce.warning&&t.a.createElement($.a,{title:"\u8BE5\u76EE\u6807\u4E0B\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01"},t.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"}))),dataIndex:"content",width:Ue===he.length-1?120:"",fixed:Ue===he.length-1?"right":"",render:function(Ie,nt){return be(Ie,nt,Ce.id,Ue)}}:Ce}),Qt(he||[])};return t.a.createElement(m.a,{title:"\u8BBE\u7F6E\u8003\u6838\u5360\u6BD4",visible:Ne,width:et>1060?1060:et,footer:null,centered:!0,onCancel:function(){Ke(!1)}},t.a.createElement(e.a,{activeKey:En,onChange:function(xe){Zt(xe),xe==="1"?Je(at):st(at)}},t.a.createElement(e.a.TabPane,{tab:"\u8BBE\u7F6E\u8003\u6838\u65B9\u5F0F\u5360\u6BD4",key:1},t.a.createElement("div",{style:{marginTop:"30px",color:"#464F66",fontSize:"14px"}},t.a.createElement("p",null,"\u8BF4\u660E\uFF1A"),t.a.createElement("p",null,"\u6BCF\u4E00\u4E2A\u8BFE\u7A0B\u76EE\u6807\u4E0B\u7684\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002")),t.a.createElement(j.a,{columns:Ut,bordered:!0,scroll:{x:2e3},dataSource:Nt==null?void 0:Nt.evaluations,pagination:!1})),t.a.createElement(e.a.TabPane,{tab:"\u8BBE\u7F6E\u8003\u6838\u5185\u5BB9\u5360\u6BD4",key:2},t.a.createElement("div",{style:{marginTop:"30px",color:"#464F66",fontSize:"14px"}},t.a.createElement("p",null,"\u8BF4\u660E\uFF1A"),t.a.createElement("p",null,"\u6BCF\u4E00\u4E2A\u8003\u6838\u65B9\u5F0F\u4E0B\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002")),t.a.createElement("div",{style:{overflow:"auto",width:"100%"}},t.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"78px"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderLeft:"1px solid #E0E2EC",borderTop:"1px solid #E0E2EC",width:"240px",paddingLeft:"30px",lineHeight:"78px",flexShrink:0}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderTop:"1px solid #E0E2EC",width:"227px",lineHeight:"78px",textAlign:"center",flexShrink:0}},"\u8003\u6838\u5185\u5BB9"),it==null||((Rt=it.ec_course_targets)===null||Rt===void 0)?void 0:Rt.map(function(Z,xe){var he;return t.a.createElement("div",{style:{borderRight:xe!=(it==null||((he=it.ec_course_targets)===null||he===void 0)?void 0:he.length)-1&&"1px solid #E0E2EC",width:"75px",lineHeight:"78px",textAlign:"center",flexShrink:0,background:"#F5F5F5",borderTop:"1px solid #E0E2EC"}},t.a.createElement($.a,{title:Z.content},t.a.createElement("span",null,"\u76EE\u6807"+(xe+1))),Z.warning&&t.a.createElement($.a,{title:"\u8BE5\u76EE\u6807\u4E0B\u6709\u8003\u6838\u65B9\u5F0F\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01"},t.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))})),t.a.createElement("div",null,t.a.createElement("div",{style:{maxHeight:"550px"}},(it==null||((de=it.evaluations)===null||de===void 0)?void 0:de.length)<=0&&t.a.createElement(V.a,{customText:"\u5F53\u524D\u6682\u65E0\u6570\u636E"}),it==null||((Me=it.evaluations)===null||Me===void 0)?void 0:Me.map(function(Z,xe){var he,be;return t.a.createElement("div",{style:{height:"100%",display:"flex",borderLeft:"1px solid #E0E2EC"}},t.a.createElement("div",{style:{width:"240px",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},Z.work_name),t.a.createElement("div",{style:{display:"flex",flexDirection:"column",borderRight:"1px solid #E0E2EC",width:"227px",flexShrink:0}},Z==null||((he=Z.subitems)===null||he===void 0)?void 0:he.map(function(Ce,Ue){return t.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",paddingLeft:8,paddingRight:12,display:"flex",alignItems:"center"}},t.a.createElement($.a,{title:Ce==null?void 0:Ce.name},t.a.createElement("div",{className:U.a.textone,style:{height:"42px",lineHeight:"42px"}},Ce==null?void 0:Ce.name)),Ce.warning&&t.a.createElement($.a,{title:"\u8BE5\u8003\u6838\u5185\u5BB9\u5BF9\u5E94\u76EE\u6807\u5360\u6BD4\u4E4B\u548C\u4E3A0\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E"},t.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))})),it==null||((be=it.ec_course_targets)===null||be===void 0)?void 0:be.map(function(Ce,Ue){var fe,Ie;return t.a.createElement("div",{style:{display:"flex",flexDirection:"column",borderRight:"1px solid #E0E2EC",width:Ue!=(it==null||((fe=it.ec_course_targets)===null||fe===void 0)?void 0:fe.length)-1?"75px":"74px",flexShrink:0}},Z==null||((Ie=Z.subitems)===null||Ie===void 0)?void 0:Ie.map(function(nt,Tn){var fn,Ln,$t;return t.a.createElement(E.a,{key:"".concat(Ue,"-").concat(Tn),parser:pe,step:.1,disabled:hn,onBlur:function(){var mt=Object(f.a)(s.a.mark(function Dt(_n){var Zn;return s.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return vn(!0),$n.next=3,Object(ne.a)("/api/ec_courses/".concat(He.id,"/evaluations/update_evaluation_setting_subitem"),{method:"post",body:{random_number:nt==null?void 0:nt.random_number,ec_course_target_id:Ce==null?void 0:Ce.id,weight:_n.target.value,ec_course_evaluation_subitem_ids:nt==null?void 0:nt.ec_course_evaluation_subitem_ids}});case 3:Zn=$n.sent,vn(!1),Zn&&(st(at),Se(He));case 6:case"end":return $n.stop()}},Dt)}));return function(Dt){return mt.apply(this,arguments)}}(),defaultValue:nt==null||((fn=nt.relation)===null||fn===void 0||((Ln=fn[Ue])===null||Ln===void 0))?void 0:Ln.weight,style:{height:43,lineHeight:"43px",width:Ue!=(it==null||(($t=it.ec_course_targets)===null||$t===void 0)?void 0:$t.length)-1?"75px":"74px"}})}))}))})))))))}var ge=se,Te=o("zmGA"),qe=o.n(Te),ut=o("g+eg"),At=function(Rt){var de,Me,Ne,Ke,He,Se=Rt.user,ke={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,sort_by:null,direction:null,id:null},Le=Object(a.useState)(ke),Be=Object(n.a)(Le,2),Re=Be[0],We=Be[1],Qe=Object(a.useState)([]),Ve=Object(n.a)(Qe,2),at=Ve[0],yt=Ve[1],ht=Object(a.useState)([]),Tt=Object(n.a)(ht,2),Nt=Tt[0],_t=Tt[1],nn=Object(a.useState)([]),Gt=Object(n.a)(nn,2),Ut=Gt[0],Qt=Gt[1],Vt=Object(a.useState)([]),jt=Object(n.a)(Vt,2),ln=jt[0],Ft=jt[1],ze=Object(a.useState)([]),ct=Object(n.a)(ze,2),it=ct[0],zt=ct[1],$e=Object(a.useState)(),Ye=Object(n.a)($e,2),et=Ye[0],Lt=Ye[1],on=Object(a.useState)(),bn=Object(n.a)(on,2),hn=bn[0],vn=bn[1],Jt=Object(a.useState)([]),an=Object(n.a)(Jt,2),En=an[0],Zt=an[1],Sn=Object(a.useState)(!1),yn=Object(n.a)(Sn,2),wn=yn[0],xn=yn[1],An=Object(a.useState)([]),Rn=Object(n.a)(An,2),Nn=Rn[0],Dn=Rn[1],vt=Object(a.useState)(!1),pe=Object(n.a)(vt,2),Je=pe[0],ot=pe[1],st=Object(a.useRef)(),Pt=Object(a.useState)(!1),Ot=Object(n.a)(Pt,2),gt=Ot[0],Z=Ot[1],xe=Object(a.useState)([]),he=Object(n.a)(xe,2),be=he[0],Ce=he[1],Ue=Object(ae.h)(),fe=Object(a.useState)(!1),Ie=Object(n.a)(fe,2),nt=Ie[0],Tn=Ie[1],fn=Object(a.useState)(!1),Ln=Object(n.a)(fn,2),$t=Ln[0],mt=Ln[1],Dt=Object(a.useState)([]),_n=Object(n.a)(Dt,2),Zn=_n[0],Ma=_n[1],$n=Object(a.useState)(""),Da=Object(n.a)($n,2),oa=Da[0],Kn=Da[1],ya=Object(a.useState)(!1),Oa=Object(n.a)(ya,2),wa=Oa[0],In=Oa[1],zn=Object(a.useState)({}),Bn=Object(n.a)(zn,2),rn=Bn[0],qn=Bn[1],sa=Object(a.useState)([]),xa=Object(n.a)(sa,2),Xa=xa[0],La=xa[1],Ra=Object(a.useState)("1"),la=Object(n.a)(Ra,2),Xn=la[0],ea=la[1],ha=Object(a.useState)({name:"",filename:"",editOffice:"view",type:"",className:"",data:"",close:!0,hasMask:!0,style:{position:"fixed",zIndex:9999,background:"rgba(0,0,0,.7)"},monacoEditor:{value:"",language:"",theme:"vs",options:{readOnly:!0}}}),Ta=Object(n.a)(ha,2),ta=Ta[0],fa=Ta[1],pa=Object(a.useState)({}),na=Object(n.a)(pa,2),ma=na[0],Ua=na[1],ka=Object(a.useState)(!1),aa=Object(n.a)(ka,2),Ca=aa[0],_a=aa[1],Sa=Object(a.useState)(),Fa=Object(n.a)(Sa,2),jn=Fa[0],Ba=Fa[1],Ha=b.a.useForm(),Aa=Object(n.a)(Ha,1),ua=Aa[0],va=Object(a.useState)(!1),Wa=Object(n.a)(va,2),Ya=Wa[0],ia=Wa[1],Bt=Object(a.useState)(!1),kt=Object(n.a)(Bt,2),un=kt[0],Cn=kt[1];Object(a.useEffect)(function(){var _;Se!=null&&(_=Se.userInfo)!==null&&_!==void 0&&_.school_id&&li()},[Se==null||((de=Se.userInfo)===null||de===void 0)?void 0:de.school_id]);var Hn=function(){var _=Object(f.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:ut.a.setItem(Se==null||((d=Se.userInfo)===null||d===void 0)?void 0:d.login,[O==null?void 0:O.ec_major_school_id,O==null?void 0:O.ec_year_id]),za(O),Ia(O),Ga(O),Ja(O),ca(O),Na(O),Za(O);case 8:case"end":return h.stop()}},L)}));return function(O){return _.apply(this,arguments)}}();function Ka(){Ft([]),zt([]),vn([]),Lt([]),Dn([]),Ba([]),Zt([])}var Na=function(){var _=Object(f.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(ne.a)("/api/ec_years/".concat(O.ec_year_id,"/graduation_subitems.json"),{method:"get"});case 2:d=h.sent,Zt((d==null?void 0:d.graduation_subitems)||[]);case 4:case"end":return h.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),za=function(){var _=Object(f.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(ne.a)("/api/ec_years/".concat(O.ec_year_id,"/ec_courses/get_course_teachers.json"),{method:"get",params:O});case 2:d=h.sent,Ft(d==null?void 0:d.data);case 4:case"end":return h.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),Ia=function(){var _=Object(f.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(ne.a)("/api/ec_courses/".concat(O.id,"/ec_course_standards.json"),{method:"get",params:{ec_course_id:O==null?void 0:O.id}});case 2:d=h.sent,zt(d==null?void 0:d.data);case 4:case"end":return h.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),Ga=function(){var _=Object(f.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(ne.a)("/api/ec_courses/".concat(O.id,"/course_targets.json"),{method:"get",params:{ec_course_id:O==null?void 0:O.id}});case 2:d=h.sent,vn(d==null?void 0:d.course_targets),Lt(d==null?void 0:d.course_targets);case 5:case"end":return h.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),si={onRemove:function(){Ce([])},beforeUpload:function(L){if(console.log(L),(L==null?void 0:L.size)>1024*1024*50)return w.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var O=[];return O.push(L),Ce([].concat(O)),!1},fileList:be,accept:".xls,.xlsx"},Ja=function(){var _=Object(f.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(ne.a)("/api/ec_courses/".concat(O==null?void 0:O.id,"/course_evaluations.json"),{method:"get",params:{ec_course_id:O==null?void 0:O.id}});case 2:d=h.sent,Dn(d==null?void 0:d.course_evaluation_tops);case 4:case"end":return h.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),ca=function(){var _=Object(f.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(ne.a)("/api/ec_courses/".concat(O==null?void 0:O.id,"/evaluations.json"),{method:"get",params:{ec_course_id:O==null?void 0:O.id}});case 2:d=h.sent,Ba(d==null?void 0:d.data);case 4:case"end":return h.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),li=function(){var _=Object(f.a)(s.a.mark(function L(){var O,d,x,h,I,F,H,te,ie,ve,je,Pe,De,lt,xt,Ze,wt,dt,bt,St,It,Mt;return s.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(ne.a)("/api/schools/".concat(Se==null||((O=Se.userInfo)===null||O===void 0)?void 0:O.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(Ze=Ct.sent,!((Ze==null||((d=Ze.data)===null||d===void 0)?void 0:d.length)<=0)){Ct.next=7;break}return mt(!0),We(Object(D.a)({},Re)),Ct.abrupt("return");case 7:return yt((Ze==null?void 0:Ze.data)||[]),wt=ut.a.getItem(Se==null||((x=Se.userInfo)===null||x===void 0)?void 0:x.login),dt=Number(Ue==null||((h=Ue.query)===null||h===void 0)?void 0:h.ec_major_school_id)||wt[0]||(Ze==null||((I=Ze.data)===null||I===void 0||((F=I[0])===null||F===void 0))?void 0:F.ec_major_school_id),Ct.next=12,Object(ne.a)("/api/ec_major_schools/".concat(dt,"/ec_years/get_year_list.json"),{method:"get"});case 12:if(bt=Ct.sent,!((bt==null||((H=bt.data)===null||H===void 0)?void 0:H.length)<=0)){Ct.next=18;break}return mt(!0),Re.ec_year_id="",We(Object(D.a)({},Re)),Ct.abrupt("return");case 18:return _t((bt==null?void 0:bt.data)||[]),St=Number(Ue==null||((te=Ue.query)===null||te===void 0)?void 0:te.ec_year_id)||wt[1]||(bt==null||((ie=bt.data)===null||ie===void 0||((ve=ie[0])===null||ve===void 0))?void 0:ve.ec_year_id),Ct.next=22,Object(ne.a)("/api/ec_years/".concat(St,"/ec_courses/get_courses.json"),{method:"get"});case 22:return It=Ct.sent,Qt((It==null?void 0:It.data)||[]),Ct.next=26,Object(ne.a)("/api/ec_years/".concat(St,"/graduation_subitems.json"),{method:"get"});case 26:if(Mt=Ct.sent,Re.ec_major_school_id=dt,Re.ec_year_id=St,Re.id=Ue!=null&&(je=Ue.query)!==null&&je!==void 0&&je.course?Number(Ue==null||((Pe=Ue.query)===null||Pe===void 0)?void 0:Pe.course):It==null||((De=It.data)===null||De===void 0||((lt=De[0])===null||lt===void 0))?void 0:lt.id,!((It==null||((xt=It.data)===null||xt===void 0)?void 0:xt.length)<=0)){Ct.next=35;break}return mt(!0),Ct.abrupt("return");case 35:mt(!1);case 36:Zt((Mt==null?void 0:Mt.graduation_subitems)||[]),We(Re),Hn(Re),console.log("ec_major_school_id",dt);case 40:case"end":return Ct.stop()}},L)}));return function(){return _.apply(this,arguments)}}(),hi=function(){var _=Object(f.a)(s.a.mark(function L(O){var d,x,h,I,F,H;return s.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Object(ne.a)("/api/ec_major_schools/".concat(O,"/ec_years/get_year_list.json"),{method:"get"});case 2:if(H=ie.sent,!((H==null||((d=H.data)===null||d===void 0)?void 0:d.length)<=0)){ie.next=10;break}return mt(!0),Re.ec_year_id="",We(Object(D.a)({},Re)),ie.abrupt("return");case 10:mt(!1);case 11:Re.ec_major_school_id=O,Re.ec_year_id=H==null||((x=H.data)===null||x===void 0||((h=x[0])===null||h===void 0))?void 0:h.ec_year_id,_t((H==null?void 0:H.data)||[]),We(Re),ui(H==null||((I=H.data)===null||I===void 0||((F=I[0])===null||F===void 0))?void 0:F.ec_year_id);case 16:case"end":return ie.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),ui=function(){var _=Object(f.a)(s.a.mark(function L(O){var d,x,h,I;return s.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(ne.a)("/api/ec_years/".concat(O,"/ec_courses/get_courses.json"),{method:"get"});case 2:if(I=H.sent,!((I==null||((d=I.data)===null||d===void 0)?void 0:d.length)<=0)){H.next=11;break}return mt(!0),Re.id="",We(Object(D.a)({},Re)),Ka(),H.abrupt("return");case 11:mt(!1);case 12:Re.ec_year_id=O,Re.id=I==null||((x=I.data)===null||x===void 0||((h=x[0])===null||h===void 0))?void 0:h.id,Qt((I==null?void 0:I.data)||[]),We(Re),Hn(Re);case 17:case"end":return H.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),Qa=function(){var _=Object(f.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(ne.a)("/api/ec_years/1/ec_courses/get_formulas.json",{method:"get",params:{ec_course_id:O}});case 2:d=h.sent,We(Re),qn(d);case 5:case"end":return h.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),Za=function(){var _=Object(f.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Object(ne.a)("/api/ec_courses/".concat(O==null?void 0:O.id,"/ec_points.json"),{method:"get",params:{ec_course_id:O==null?void 0:O.id}});case 2:d=h.sent,We(Re),Ma(d==null?void 0:d.data);case 5:case"end":return h.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),ci=function(L,O){if(Re.page=1,Re[O]=L,O==="ec_major_school_id"){hi(L);return}O==="ec_year_id"&&(We(Object(D.a)({},Re)),ui(L)),O==="id"&&(We(Object(D.a)({},Re)),Hn(Re))},K={beforeUpload:function(){var _=Object(f.a)(s.a.mark(function O(d){var x,h;return s.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(console.log(d),!((d==null?void 0:d.size)>1024*1024*50)){F.next=4;break}return w.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),F.abrupt("return",!1);case 4:return x=new FormData,x.append("file",d),F.next=8,Object(ne.a)("/api/ec_courses/".concat(Re==null?void 0:Re.id,"/ec_course_standards.json"),{method:"post",body:x},!0);case 8:return h=F.sent,Ia(Re),ca(Re),F.abrupt("return",!1);case 12:case"end":return F.stop()}},O)}));function L(O){return _.apply(this,arguments)}return L}(),fileList:[]};return t.a.createElement("div",{className:U.a.wrap},t.a.createElement("div",{className:U.a.title},"\u8BFE\u7A0B\u8BBE\u7F6E"),t.a.createElement("div",{style:{clear:"both",marginTop:"40px"}}),t.a.createElement("div",{className:U.a.control},t.a.createElement("div",{className:U.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),t.a.createElement(M.a,{style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:Re==null?void 0:Re.ec_major_school_id,onChange:function(L){return ci(L,"ec_major_school_id")}},at==null?void 0:at.map(function(_){return t.a.createElement(M.a.Option,{value:_.ec_major_school_id},_.name)})),t.a.createElement("div",{className:U.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),t.a.createElement(M.a,{disabled:$t&&Nt.length<=0,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:Re==null?void 0:Re.ec_year_id,onChange:function(L){return ci(L,"ec_year_id")}},Nt==null?void 0:Nt.map(function(_){return t.a.createElement(M.a.Option,{value:_.ec_year_id},_.year)})),t.a.createElement("div",{className:U.a.label},"\u8BFE\u7A0B"),t.a.createElement(M.a,{disabled:$t,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",value:Re==null?void 0:Re.id,onChange:function(L){return ci(L,"id")}},Ut==null?void 0:Ut.map(function(_){return t.a.createElement(M.a.Option,{value:_.id},_.name)}))),t.a.createElement("div",{className:U.a.title},"\u8BFE\u7A0B\u6559\u5E08"),t.a.createElement("div",{className:U.a.teachcount,style:{display:"flex",marginTop:20,marginBottom:16}},ln==null?void 0:ln.map(function(_,L){return t.a.createElement("div",{style:{display:"flex",marginLeft:L===0?"20px":"47px"}},t.a.createElement("img",{src:qe.a,style:{width:"50px",height:"50px",borderRadius:"50%",zIndex:0}}),t.a.createElement("div",{style:{marginLeft:"8px"}},t.a.createElement("p",{style:{marginBottom:"0px"}},_.name),t.a.createElement("p",{style:{marginTop:"10px",height:"22px",borderRadius:"0px 12px 12px 0px",background:"#DFEAFF",marginLeft:"-30px",lineHeight:"22px",paddingLeft:32,display:"inline-block",paddingRight:16,color:"#0152D9"}},_.pro)))})),t.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),t.a.createElement("div",{className:U.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u6807\u51C6",t.a.createElement("span",null,t.a.createElement(N.a,K,t.a.createElement(S.a,{disabled:$t,type:"primary",style:{marginRight:"20px"},onClick:function(){}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-shangchuan3"})," ","\u4E0A\u4F20\u8BFE\u7A0B\u6807\u51C6")))),t.a.createElement("div",{className:U.a.teachcount},t.a.createElement(j.a,{style:{marginTop:"20px",marginBottom:20,padding:"0px 20px"},dataSource:it,pagination:!1,columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",render:function(L,O,d){return Re.per_page*(Re.page-1)+d+1}},{title:"\u6587\u4EF6\u540D\u79F0",dataIndex:"name",width:"50%",key:"name"},{title:"\u4E0A\u4F20\u65F6\u95F4",dataIndex:"created_at",key:"created_at"},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",render:function(L,O,d){return t.a.createElement("div",null,t.a.createElement("i",{onClick:function(){console.log(L,O,d);var h=["office","pdf","image","other","video","audio","download"];if(!h.includes(O.file_type)){w.b.info("\u5F53\u524D\u7C7B\u578B\u6682\u4E0D\u652F\u6301\u9884\u89C8");return}ta.editOffice="view",fa(Object(D.a)(Object(D.a)({},ta),{},{filename:O.name,type:O.file_type,data:"/api/attachments/".concat(O.attachment_id)}))},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-chakansvg"}),t.a.createElement($.a,{title:"\u5728\u7EBF\u7F16\u8F91"},t.a.createElement("i",{onClick:Object(f.a)(s.a.mark(function x(){return s.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(!["xlsx","docx","pptx"].includes(O==null?void 0:O.type)){I.next=5;break}ta.editOffice="edit",fa(Object(D.a)(Object(D.a)({},ta),{},{filename:O.name,type:O.file_type,data:"/api/attachments/".concat(O.attachment_id)})),I.next=7;break;case 5:return w.b.info("\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u7F16\u8F91"),I.abrupt("return");case 7:case"end":return I.stop()}},x)})),style:{cursor:"pointer",color:"#0152d9",marginLeft:"5px"},className:"iconfont icon-bianji10"})),t.a.createElement("i",{onClick:function(){m.a.confirm({title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F",icon:t.a.createElement(Oe.a,null),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var h=Object(f.a)(s.a.mark(function F(){var H;return s.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Object(ne.a)("/api/ec_courses/".concat(Re==null?void 0:Re.id,"/ec_course_standards/").concat(L),{method:"delete"});case 2:H=ie.sent,H&&(w.b.info("\u5220\u9664\u6210\u529F"),Hn(Re));case 4:case"end":return ie.stop()}},F)}));function I(){return h.apply(this,arguments)}return I}(),onCancel:function(){}})},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-shanchu9 pl10"}))}}]})),t.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),t.a.createElement("div",{className:U.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u76EE\u6807",t.a.createElement("span",null,t.a.createElement(S.a,{disabled:$t,type:"primary",style:{marginRight:"20px"},onClick:Object(f.a)(s.a.mark(function _(){var L;return s.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Ga(Re);case 2:(et==null?void 0:et.length)<=0&&(L={id:0,content:"",weight:"",standard_grade:"",graduation_subitem_ids:[""]},et.push(L),Lt(Object(c.a)(et))),xn(!0);case 4:case"end":return d.stop()}},_)}))},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-bianji7"})," ","\u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807"))),t.a.createElement("div",{className:U.a.teachcount},t.a.createElement(j.a,{style:{marginTop:"20px",marginBottom:20,padding:"0px 20px"},dataSource:hn,bordered:!0,pagination:!1,columns:[{title:"\u5206\u9879",dataIndex:"name",key:"name",render:function(L,O,d){return Re.per_page*(Re.page-1)+d+1}},{title:"\u8BFE\u7A0B\u76EE\u6807",dataIndex:"content",width:"40%",key:"content"},{title:"\u6743\u91CD",dataIndex:"weight",key:"weight"},{title:"\u8FBE\u6210\u5206\u503C",dataIndex:"standard_grade",key:"standard_grade"},{title:"\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9",dataIndex:"graduation_subitem",key:"graduation_subitem",render:function(L,O,d){return t.a.createElement("div",null,t.a.createElement(i.b,{itemLayout:"horizontal",dataSource:L,renderItem:function(h){return t.a.createElement(i.b.Item,null,t.a.createElement(i.b.Item.Meta,{style:{fontSize:14},description:"\u6307\u6807\u70B9"+(h==null?void 0:h.index)+"\uFF1A"+(h==null?void 0:h.content)}))}}))}}]})),t.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),t.a.createElement("div",{className:U.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u77E5\u8BC6\u70B9\u4E0E\u6559\u5B66\u5185\u5BB9",t.a.createElement("span",null,t.a.createElement(S.a,{disabled:$t,type:"primary",style:{marginRight:"20px"},onClick:function(){ia(!0),Kn("")}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-tianjiatimu"})," ","\u65B0\u589E\u77E5\u8BC6\u70B9"))),t.a.createElement(j.a,{style:{marginTop:"20px",marginBottom:20,padding:"0px 20px"},dataSource:Zn,bordered:!0,pagination:!1,columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",render:function(L,O,d){return Re.per_page*(Re.page-1)+d+1}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"name",width:"40%",key:"name"},{title:"\u6559\u5B66\u76EE\u7684",dataIndex:"target",key:"target"},{title:"\u6559\u5B66\u5185\u5BB9",dataIndex:"content",key:"content"},{title:"\u91CD\u70B9\u96BE\u70B9",dataIndex:"problem",key:"problem"},{title:"\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9",dataIndex:"ec_course_targets",key:"ec_course_targets",render:function(L,O,d){return t.a.createElement("div",null,t.a.createElement(i.b,{itemLayout:"horizontal",dataSource:L,renderItem:function(h){return t.a.createElement(i.b.Item,null,t.a.createElement(i.b.Item.Meta,{style:{fontSize:14},description:h==null?void 0:h.name}))}}))}},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",render:function(L,O,d){return t.a.createElement("div",null,t.a.createElement("a",{onClick:function(){m.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var h=Object(f.a)(s.a.mark(function F(){var H;return s.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Object(ne.a)("/api/ec_courses/".concat(Re==null?void 0:Re.id,"/ec_points/").concat(L,".json"),{method:"delete"});case 2:H=ie.sent,H.status===0&&(w.b.info("\u5220\u9664\u6210\u529F"),Za(Re));case 4:case"end":return ie.stop()}},F)}));function I(){return h.apply(this,arguments)}return I}()})},style:{marginRight:5}},"\u5220\u9664"),t.a.createElement("a",{onClick:function(){ia(!0),Kn(L),ua.setFieldsValue({name:O.name,target:O.target,content:O.content,problem:O.problem,ec_course_target_ids:O.ec_course_targets.map(function(h){return h.id})})}},"\u7F16\u8F91"))}}]}),t.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),t.a.createElement("div",{className:U.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8003\u6838\u65B9\u5F0F\u4E0E\u6570\u636E\u6765\u6E90",t.a.createElement("span",null,t.a.createElement(S.a,{disabled:$t,type:"primary",style:{marginRight:"20px"},onClick:function(){st.current="",ot(!0)}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-tianjiatimu"})," ","\u6DFB\u52A0\u8BFE\u5802\u6570\u636E"),t.a.createElement(S.a,{disabled:$t,style:{marginRight:"20px"},onClick:function(){st.current="",Z(!0)}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-piliangdaoru"})," ","\u5BFC\u5165\u6570\u636E"))),t.a.createElement("div",{className:U.a.teachcount},!Nn&&t.a.createElement(V.a,null),Nn&&t.a.createElement("div",{style:{padding:"0px 20px",marginBottom:"20px",fontSize:"14px"}},t.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"58px",border:"1px solid #E0E2EC",marginTop:"20px"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6570\u636E\u6765\u6E90"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"24%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6559\u5B66\u8BFE\u5802/\u6570\u636E\u6587\u4EF6"),t.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"28%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8003\u6838\u5185\u5BB9"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"28%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8003\u6838\u77E5\u8BC6\u70B9"),t.a.createElement("div",{style:{width:"14%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6EE1\u5206\u503C")),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u72B6\u6001"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u540C\u6B65/\u5BFC\u5165\u65F6\u95F4"),t.a.createElement("div",{style:{width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u64CD\u4F5C")),t.a.createElement("div",{style:{border:"1px solid #E0E2EC",marginTop:-1}},Nn==null?void 0:Nn.map(function(_){var L,O,d,x,h,I,F;return t.a.createElement("div",{style:{display:"flex",width:"100%",borderBottom:"1px solid #E0E2EC"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},_==null?void 0:_.name),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"24%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},(_==null?void 0:_.name)==="\u5BFC\u5165\u6570\u636E"&&t.a.createElement("a",{href:me.a.API_SERVER+"/api/ec_courses/1/course_evaluations/download?id=".concat(_==null||((L=_.contents)===null||L===void 0||((O=L[0])===null||O===void 0))?void 0:O.attachment_id)},_==null||((d=_.contents)===null||d===void 0||((x=d[0])===null||x===void 0))?void 0:x.content),(_==null?void 0:_.name)==="\u5173\u8054\u8BFE\u5802"&&(_==null||((h=_.contents)===null||h===void 0)?void 0:h.map(function(H){return t.a.createElement("a",{style:{display:"flex"},href:H==null?void 0:H.first_category_url,target:"_blank"},H==null?void 0:H.content)}))),t.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC",flexDirection:"column"}},(_==null||((I=_.evaluation_methods)===null||I===void 0)?void 0:I.length)<=0&&t.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"56%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--"),t.a.createElement("div",{style:{width:"14%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--")),_==null||((F=_.evaluation_methods)===null||F===void 0)?void 0:F.map(function(H,te){var ie,ve,je,Pe,De,lt,xt;return t.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderBottom:!(te===(_==null||((ie=_.evaluation_methods)===null||ie===void 0)?void 0:ie.length)-1)&&"1px solid #E0E2EC"}},H==null?void 0:H.work_name),t.a.createElement("div",{style:{width:"28%"}},(H==null||((ve=H.subitems)===null||ve===void 0)?void 0:ve.length)<=0&&t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30}},"--"),H==null||((je=H.evaluation_method_contents)===null||je===void 0)?void 0:je.map(function(Ze,wt){var dt;return t.a.createElement($.a,{title:Ze==null?void 0:Ze.name},t.a.createElement("div",{className:U.a.textone,style:{borderRight:"1px solid #E0E2EC",borderBottom:!(te===(_==null||((dt=_.evaluation_methods)===null||dt===void 0)?void 0:dt.length)-1&&wt===(H==null?void 0:H.evaluation_method_contents.length)-1)&&"1px solid #E0E2EC",marginTop:-1,lineHeight:"30px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30,paddingLeft:"5px"}},Ze==null?void 0:Ze.name))})),t.a.createElement("div",{style:{width:"28%"}},(H==null||((Pe=H.subitems)===null||Pe===void 0)?void 0:Pe.length)<=0&&t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30}},"--"),H==null||((De=H.evaluation_method_contents)===null||De===void 0)?void 0:De.map(function(Ze,wt){var dt;return t.a.createElement($.a,{title:Ze==null?void 0:Ze.ec_points},t.a.createElement("div",{className:U.a.textone,style:{borderRight:"1px solid #E0E2EC",borderBottom:!(te===(_==null||((dt=_.evaluation_methods)===null||dt===void 0)?void 0:dt.length)-1&&wt===(H==null?void 0:H.evaluation_method_contents.length)-1)&&"1px solid #E0E2EC",marginTop:-1,lineHeight:"30px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30,paddingLeft:"5px"}},(Ze==null?void 0:Ze.ec_points)||"- -"))})),t.a.createElement("div",{style:{width:"14%"}},(H==null||((lt=H.subitems)===null||lt===void 0)?void 0:lt.length)<=0&&t.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30}},"--"),H==null||((xt=H.evaluation_method_contents)===null||xt===void 0)?void 0:xt.map(function(Ze,wt){var dt;return t.a.createElement($.a,{title:Ze==null?void 0:Ze.score},t.a.createElement("div",{className:U.a.textone,style:{borderBottom:!(te===(_==null||((dt=_.evaluation_methods)===null||dt===void 0)?void 0:dt.length)-1&&wt===(H==null?void 0:H.evaluation_method_contents.length)-1)&&"1px solid #E0E2EC",marginTop:-1,lineHeight:"30px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30,paddingLeft:"5px"}},Ze==null?void 0:Ze.score))})))})),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#07C160"}},_==null?void 0:_.status),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},_==null?void 0:_.update_at),t.a.createElement("div",{style:{width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},(_==null?void 0:_.status)!="\u5DF2\u5BFC\u5165"&&t.a.createElement("i",{onClick:Object(f.a)(s.a.mark(function H(){var te;return s.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ve.next=2,Object(ne.a)("/api/ec_courses/".concat(Re.id,"/course_evaluations/update_online_data.json"),{method:"get",params:{id:_.id}});case 2:te=ve.sent,te&&(w.b.info("\u540C\u6B65\u6210\u529F"),Hn(Re));case 4:case"end":return ve.stop()}},H)})),style:{marginRight:"15px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-tongbushuju"}),t.a.createElement("i",{onClick:function(){m.a.confirm({title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F",icon:t.a.createElement(Oe.a,null),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var te=Object(f.a)(s.a.mark(function ve(){var je;return s.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,Object(ne.a)("/api/ec_courses/".concat(Re.id,"/course_evaluations/deletes.json"),{method:"delete",body:{id:_.id}});case 2:je=De.sent,je&&(w.b.info("\u5220\u9664\u6210\u529F"),Hn(Re));case 4:case"end":return De.stop()}},ve)}));function ie(){return te.apply(this,arguments)}return ie}(),onCancel:function(){}})},style:{marginRight:"15px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-shanchu9"}),t.a.createElement("i",{onClick:function(){st.current=_.id,(_==null?void 0:_.status)!="\u5DF2\u5BFC\u5165"?(La(_),ot(!0)):Z(!0)},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-bianji8"})))})))),t.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),t.a.createElement("div",{className:U.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u76EE\u6807\u8FBE\u6210\u5EA6",t.a.createElement("span",null,t.a.createElement(S.a,{disabled:$t,style:{marginRight:"20px"},onClick:function(){_a(!0)}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-kechengshezhi"})," ","\u8BBE\u7F6E\u8003\u6838\u5360\u6BD4"),t.a.createElement(S.a,{disabled:$t,style:{marginRight:"20px"},onClick:function(){Qa(Re.id),In(!0)}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-jisuangongshi"})," ","\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"),t.a.createElement(S.a,{type:"primary",disabled:$t,style:{marginRight:"20px"},onClick:Object(f.a)(s.a.mark(function _(){var L;return s.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Object(ne.a)("/api/ec_courses/".concat(Re.id,"/evaluations/evaluation_data.json"),{method:"post"});case 2:L=d.sent,L&&(w.b.info("\u8BA1\u7B97\u5B8C\u6210"),ca(Re));case 4:case"end":return d.stop()}},_)}))},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-jisuan"})," ","\u8BA1\u7B97"))),t.a.createElement("div",{style:{padding:"0px 20px"},className:U.a.teachcount},!jn&&t.a.createElement(V.a,null),jn&&t.a.createElement("div",{style:{fontSize:"14px"}},t.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"58px",border:"1px solid #E0E2EC",marginTop:"20px"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"4%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u5206\u9879"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"15%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BFE\u7A0B\u76EE\u6807"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"3%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6743\u91CD"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"9%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"),t.a.createElement("div",{style:{height:"100%",width:"40%",display:"flex",flexDirection:"column",flexShrink:0,borderRight:"1px solid #E0E2EC"}},t.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0,height:"100%"}},t.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("div",{style:{width:"12.5%",borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",textAlign:"center"}},"\u8003\u6838\u65B9\u5F0F\u5360\u6BD4"),t.a.createElement("div",{style:{width:"45%",height:"100%"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:"100%"}},"\u8003\u6838\u5185\u5BB9")),t.a.createElement("div",{style:{width:"12.5%",height:"100%"}},t.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:"100%",textAlign:"center"}},"\u8003\u6838\u5185\u5BB9\u5360\u6BD4")))),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",textAlignLast:"center"}},"\u8FBE\u6210\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"7%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",textAlignLast:"center"}},"\u5B9E\u9645\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BC4\u4EF7\u7ED3\u679C"),t.a.createElement("div",{style:{width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BA1\u7B97\u65F6\u95F4")),t.a.createElement("div",{style:{borderLeft:"1px solid #E0E2EC"}},jn==null||((Me=jn.ec_course_target)===null||Me===void 0)?void 0:Me.map(function(_,L){var O,d,x,h,I,F;return t.a.createElement("div",{style:{height:"100%",display:"flex"}},t.a.createElement("div",{style:{width:"4%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},L+1),t.a.createElement("div",{className:U.a.textone,style:{width:"15%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,alignItems:"center",justifyContent:"center",flexShrink:0,maxHeight:(_==null||((O=_.evaluation)===null||O===void 0)?void 0:O.length)<=0&&43,lineHeight:(_==null||((d=_.evaluation)===null||d===void 0)?void 0:d.length)<=0&&"43px",display:(_==null||((x=_.evaluation)===null||x===void 0)?void 0:x.length)!=0&&"flex",paddingLeft:10}},t.a.createElement($.a,{title:_.content},_.content)),t.a.createElement("div",{style:{width:"3%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},_.weights),t.a.createElement("div",{style:{width:"9%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},_==null||((h=_.graduation_subitem)===null||h===void 0)?void 0:h.map(function(H){return H.name}).toString()),t.a.createElement("div",{style:{height:"100%",width:"40%",display:"flex",flexDirection:"column",flexShrink:0,borderRight:"1px solid #E0E2EC"}},(_==null||((I=_.evaluation)===null||I===void 0)?void 0:I.length)<=0&&t.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},t.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"--"),t.a.createElement("div",{style:{width:"12.6%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"--"),t.a.createElement("div",{style:{width:"45.3%"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--")),t.a.createElement("div",{style:{width:"12.5%"}},t.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--"))),_==null||((F=_.evaluation)===null||F===void 0)?void 0:F.map(function(H,te){var ie,ve,je,Pe;return t.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},t.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},(H==null?void 0:H.work_name)||"--"),t.a.createElement("div",{style:{width:"12.5%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},(H==null?void 0:H.weight)||"--"),t.a.createElement("div",{style:{width:"45%"}},(H==null||((ie=H.subitems)===null||ie===void 0)?void 0:ie.length)<=0&&t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:43}},"--"),H==null||((ve=H.subitems)===null||ve===void 0)?void 0:ve.map(function(De,lt){return t.a.createElement($.a,{title:De==null?void 0:De.name},t.a.createElement("div",{className:U.a.textone,style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,lineHeight:"43px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43,paddingLeft:"5px"}},De==null?void 0:De.name))})),t.a.createElement("div",{style:{width:"12.5%"}},(H==null||((je=H.subitems)===null||je===void 0)?void 0:je.length)<=0&&t.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--"),H==null||((Pe=H.subitems)===null||Pe===void 0)?void 0:Pe.map(function(De,lt){return t.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},De==null?void 0:De.weight)})))})),t.a.createElement("div",{style:{width:"8%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},_==null?void 0:_.standard_grade),t.a.createElement("div",{style:{width:"7%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},_==null?void 0:_.actual_grade),t.a.createElement("div",{style:{width:"6%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:_!=null&&_.status?"#07C160":"#E30000"}},_!=null&&_.status?"\u8FBE\u6210":"\u672A\u8FBE\u6210"),t.a.createElement("div",{style:{width:"8%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,textAlign:"center"}},jn==null?void 0:jn.evaluation_time))})),t.a.createElement("div",{style:{display:"flex",height:"58px",border:"1px solid #E0E2EC",marginTop:-1}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"4%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u603B\u5206"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"75%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}}),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"7%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},jn==null?void 0:jn.total_score)))),t.a.createElement(Fe,{courseId:st.current,isshow:Je,setishow:ot,items:Xa,points:Zn,modalparams:Re,getevaluations:ca,getcourse_evaluations:Ja}),t.a.createElement(ge,{isshow:Ca,setishow:_a,modalparams:Re,getcourse_evaluations:ca}),t.a.createElement(m.a,{title:"\u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807",visible:wn,wrapClassName:U.a.modalWrapContainer,width:918,okText:"\u4FDD\u5B58",onOk:Object(f.a)(s.a.mark(function _(){var L;return s.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!((et==null?void 0:et.filter(function(x){var h,I;return!x.content||!x.weight||!x.standard_grade||(x==null||((h=x.graduation_subitem_ids)===null||h===void 0)?void 0:h.length)<=0||(x==null||((I=x.graduation_subitem_ids)===null||I===void 0)?void 0:I.filter(function(F){return!F}).length)>0}).length)>0)){d.next=3;break}return w.b.info("\u8BF7\u586B\u5199\u6216\u5220\u9664\u6CA1\u6709\u586B\u5165\u6570\u503C\u7684\u6570\u636E"),d.abrupt("return");case 3:return d.next=5,Object(ne.a)("/api/ec_courses/".concat(Re==null?void 0:Re.id,"/course_targets"),{method:"POST",body:{course_targets:et}});case 5:L=d.sent,(L==null?void 0:L.status)===0&&(xn(!1),Ga(Re),ca(Re));case 7:case"end":return d.stop()}},_)})),onCancel:function(){xn(!1),Ga(Re)}},t.a.createElement("div",{style:{color:"#464F66",fontSize:14,paddingLeft:40,paddingBottom:12}},t.a.createElement("div",null,"\u8BF4\u660E\uFF1A"),t.a.createElement("div",null,"1.\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u4E4B\u548C\u5E94\u7B49\u4E8E1\uFF1B",t.a.createElement("br",null),"2.\u53EF\u5728\u8BBE\u7F6E\u8BFE\u7A0B\u8FBE\u6210\u5EA6\u8BA1\u7B97\u516C\u5F0F\u65F6\uFF0C\u9009\u62E9\u662F\u5426\u5C06\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u53C2\u4E0E\u5230\u8BA1\u7B97\u4E2D\u3002")),t.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"38px",alignItems:"center",padding:"0px 10px"}},t.a.createElement("span",{style:{flex:1}},"\u5206\u9879"),t.a.createElement("span",{style:{flex:3}},t.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u8BFE\u7A0B\u76EE\u6807"),t.a.createElement("span",{style:{flex:2}},t.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u6743\u91CD"),t.a.createElement("span",{style:{flex:2}},t.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u8FBE\u6210\u5206\u503C\uFF08\u5206\uFF09")),et==null?void 0:et.map(function(_,L){var O;return t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",background:"#EEF2F8",height:"62px",alignItems:"center",padding:"0px 10px"}},t.a.createElement("span",{style:{flex:1}},L+1),t.a.createElement("span",{style:{flex:3,padding:"0px 10px"}},t.a.createElement(l.a,{onChange:function(x){_.content=x.target.value,Lt(Object(c.a)(et))},value:_==null?void 0:_.content})),t.a.createElement("span",{style:{flex:2}},t.a.createElement(E.a,{min:0,max:1,step:.1,onChange:function(x){_.weight=x,Lt(Object(c.a)(et))},value:_==null?void 0:_.weight})),t.a.createElement("span",{style:{flex:2}},t.a.createElement(E.a,{min:0,max:100,onChange:function(x){_.standard_grade=x,Lt(Object(c.a)(et))},value:_==null?void 0:_.standard_grade}),t.a.createElement($.a,{title:"\u65B0\u589E\u8BFE\u7A0B\u76EE\u6807"},t.a.createElement("i",{style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-xinzeng",onClick:Object(f.a)(s.a.mark(function d(){var x;return s.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:x={id:0,content:"",weight:"",standard_grade:"",graduation_subitem_ids:[""]},et.push(x),Lt(Object(c.a)(et));case 3:case"end":return I.stop()}},d)}))})),L!==0&&t.a.createElement($.a,{title:"\u5220\u9664"},t.a.createElement("i",{onClick:Object(f.a)(s.a.mark(function d(){return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:et.splice(L,1),Lt(Object(c.a)(et));case 2:case"end":return h.stop()}},d)})),style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-shanchu9"})))),t.a.createElement("div",{style:{display:"flex",padding:"0px 10px"}},t.a.createElement("span",{style:{flex:1}}),t.a.createElement("span",{style:{flex:3}}," ",t.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*")," ","\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"," "),t.a.createElement("span",{style:{flex:2}}),t.a.createElement("span",{style:{flex:2}})),_==null||((O=_.graduation_subitem_ids)===null||O===void 0)?void 0:O.map(function(d,x){return t.a.createElement("div",{style:{display:"flex",height:"40px",alignItems:"center",padding:"0px 10px"}},t.a.createElement("span",{style:{flex:1}}),t.a.createElement("span",{style:{flex:3,display:"flex",alignItems:"center"}},t.a.createElement(M.a,{value:d,getPopupContainer:function(I){return I.parentNode},onChange:function(I){_.graduation_subitem_ids[x]=I,Lt(Object(c.a)(et))},style:{width:"320px"}},En==null?void 0:En.map(function(h,I){return t.a.createElement(M.a.Option,{disabled:_.graduation_subitem_ids.includes(h==null?void 0:h.id),value:h==null?void 0:h.id,title:"\u6307\u6807\u70B9"+(h==null?void 0:h.index)+"\uFF1A"+(h==null?void 0:h.content)},"\u6307\u6807\u70B9",h==null?void 0:h.index,"\uFF1A",h==null?void 0:h.content)})),t.a.createElement($.a,{title:"\u65B0\u589E\u6307\u6807\u70B9"},t.a.createElement("i",{style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-xinzeng",onClick:Object(f.a)(s.a.mark(function h(){return s.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:_==null||_.graduation_subitem_ids.push(""),Lt(Object(c.a)(et));case 2:case"end":return F.stop()}},h)}))})),x!==0&&t.a.createElement($.a,{title:"\u5220\u9664"},t.a.createElement("i",{onClick:Object(f.a)(s.a.mark(function h(){return s.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:_.graduation_subitem_ids.splice(x,1),Lt(Object(c.a)(et));case 2:case"end":return F.stop()}},h)})),style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-shanchu9"}))),t.a.createElement("span",{style:{flex:2}}),t.a.createElement("span",{style:{flex:1}}))}))})),t.a.createElement(m.a,{title:"\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F",visible:wa,width:918,className:U.a.modalWrapContainer,onCancel:function(){In(!1)},onOk:Object(f.a)(s.a.mark(function _(){var L,O,d,x,h;return s.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,Object(ne.a)("/api/ec_years/1/ec_courses/save_formulas.json",{method:"post",body:{ec_course_id:Re.id,ec_course_target_formula_id:rn==null||((L=rn.ec_course_target_formulas.filter(function(H){return H.checked}))===null||L===void 0||((O=L[0])===null||O===void 0))?void 0:O.id,ec_course_formula_id:rn==null||((d=rn.ec_course_formulas.filter(function(H){return H.checked}))===null||d===void 0||((x=d[0])===null||x===void 0))?void 0:x.id}});case 2:h=F.sent,h&&(In(!1),Qa(Re.id));case 4:case"end":return F.stop()}},_)}))},t.a.createElement("div",{style:{padding:"16px 40px"}},t.a.createElement(e.a,{activeKey:Xn,onChange:function(L){ea(L)}},t.a.createElement(e.a.TabPane,{key:1,tab:"\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C"}),t.a.createElement(e.a.TabPane,{key:2,tab:"\u8BFE\u7A0B\u603B\u5206"}))),Xn==="1"&&t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",height:38,background:"#F5F5F5",lineHeight:"38px",padding:"0px 40px"}},t.a.createElement("span",{style:{flex:1,marginRight:"30px"}},"\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C\u8BA1\u7B97\u516C\u5F0F"),t.a.createElement("span",{style:{width:185}},"\u64CD\u4F5C")),rn==null||((Ne=rn.ec_course_target_formulas)===null||Ne===void 0)?void 0:Ne.map(function(_,L){return t.a.createElement("div",{style:{display:"flex",padding:"20px 40px"}},(_==null?void 0:_.checked)&&t.a.createElement("span",{style:{width:"40px",borderRadius:"2px",color:"#0152D9",border:"1px solid #0152D9",display:"inline-flex",alignItems:"center",justifyContent:"center",marginRight:"10px",height:"22px"}},"\u9ED8\u8BA4"),t.a.createElement("span",{style:{flex:1,marginRight:"30px",marginLeft:!(_!=null&&_.checked)&&"50px"}},t.a.createElement("p",null,_==null?void 0:_.content),(_==null?void 0:_.explain)&&t.a.createElement("p",null,"\u8BF4\u660E\uFF1A",_==null?void 0:_.explain)),t.a.createElement("span",{style:{width:185}},t.a.createElement(oe.a,{onClick:function(){rn==null||rn.ec_course_target_formulas.map(function(d){_.id===d.id?d.checked=!0:d.checked=!1}),qn(Object(D.a)({},rn))},checked:_==null?void 0:_.checked}," ","\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F")))})),Xn==="2"&&t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",height:38,background:"#F5F5F5",lineHeight:"38px",padding:"0px 40px"}},t.a.createElement("span",{style:{flex:1}},"\u8BFE\u7A0B\u603B\u5206\u8BA1\u7B97\u516C\u5F0F"),t.a.createElement("span",{style:{width:185}},"\u64CD\u4F5C")),rn==null||((Ke=rn.ec_course_formulas)===null||Ke===void 0)?void 0:Ke.map(function(_,L){return t.a.createElement("div",{style:{display:"flex",padding:"20px 40px"}},(_==null?void 0:_.checked)&&t.a.createElement("span",{style:{width:"40px",borderRadius:"2px",color:"#0152D9",border:"1px solid #0152D9",display:"inline-flex",alignItems:"center",justifyContent:"center",marginRight:"10px",height:"22px"}},"\u9ED8\u8BA4"),t.a.createElement("span",{style:{flex:1,marginRight:"30px",marginLeft:!(_!=null&&_.checked)&&"50px"}},t.a.createElement("p",null,_==null?void 0:_.content),(_==null?void 0:_.explain)&&t.a.createElement("p",null,"\u8BF4\u660E\uFF1A",_==null?void 0:_.explain)),t.a.createElement("span",{style:{width:185}},t.a.createElement(oe.a,{onClick:function(){rn==null||rn.ec_course_formulas.map(function(d){_.id===d.id?d.checked=!0:d.checked=!1}),qn(Object(D.a)({},rn))},checked:_==null?void 0:_.checked}," ","\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F")))}))),t.a.createElement(m.a,{title:"\u6279\u91CF\u5BFC\u5165",visible:gt,centered:!0,onCancel:function(){Z(!1),Ce([])},okButtonProps:{loading:nt},onOk:Object(f.a)(s.a.mark(function _(){var L,O,d;return s.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(L=new FormData,!(be.length>0)){h.next=5;break}L.append("file",be[0]),h.next=7;break;case 5:return w.b.warn("\u8BF7\u9009\u62E9\u6587\u4EF6"),h.abrupt("return");case 7:if(Re.id){h.next=10;break}return w.b.info("\u8BF7\u5148\u521B\u5EFA\u8BFE\u7A0B"),h.abrupt("return");case 10:return Tn(!0),L.append("ec_course_id",Re.id),st.current&&L.append("id",st.current),O=st.current?"/api/ec_courses/".concat(Re.id,"/course_evaluations/update_offline.json"):"/api/ec_courses/".concat(Re.id,"/course_evaluations/create_offline.json"),h.next=16,Object(ne.a)(O,{method:st.current?"put":"post",body:L},!0);case 16:d=h.sent,Tn(!1),(d==null?void 0:d.status)===0&&(w.b.info("\u6DFB\u52A0\u6210\u529F"),Z(!1),Ce([]),Ja(Re));case 19:case"end":return h.stop()}},_)}))},t.a.createElement("p",null,"\u6B65\u9AA41\uFF1A\u4E0B\u8F7D",t.a.createElement("a",{href:me.a.API_SERVER+"/api/ec_courses/1/course_evaluations/download_template.xlsx",download:"\u6A21\u7248.xlsx"},"\u660E\u7EC6\u6210\u7EE9\u5BFC\u5165\u6A21\u677F"),",\u5BFC\u5165\u7EBF\u4E0B\u6570\u636E\u5185\u5BB9\u3002",t.a.createElement("span",{style:{color:"#D95201"}},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F")),t.a.createElement(ce.a,null,t.a.createElement(y.a,null,"\u6B65\u9AA42\uFF1A"),t.a.createElement(y.a,null,t.a.createElement(N.a,si,t.a.createElement(S.a,{type:"primary"},"\u9009\u62E9\u6587\u4EF6"))))),t.a.createElement(we.a,Object(Y.a)({},ta,{onClose:function(){fa(Object(D.a)(Object(D.a)({},ta),{},{type:""}))}})),t.a.createElement(C,Object(Y.a)({},ma,{onClose:function(){Ua(Object(D.a)(Object(D.a)({},ma),{},{type:""}))}})),t.a.createElement(m.a,{title:oa?"\u7F16\u8F91\u77E5\u8BC6\u70B9":"\u65B0\u589E\u77E5\u8BC6\u70B9",visible:Ya,onOk:function(){ua.submit()},okButtonProps:{loading:un},onCancel:function(){ia(!1),ua.setFieldsValue({name:"",target:"",content:"",problem:"",ec_course_target_ids:[]})}},t.a.createElement("p",{style:{color:"#FA6400",fontSize:"14px"}}),t.a.createElement(b.a,{labelCol:{span:7},wrapperCol:{span:17},form:ua,onFinish:function(){var _=Object(f.a)(s.a.mark(function L(O){var d,x;return s.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return Cn(!0),d=oa?"/api/ec_courses/".concat(Re.id,"/ec_points/").concat(oa,".json"):"/api/ec_courses/".concat(Re.id,"/ec_points.json"),I.next=4,Object(ne.a)(d,{method:oa?"put":"post",body:Object(D.a)({ec_course_id:Re.id,id:oa},O)});case 4:x=I.sent,Cn(!1),x.status===0&&(w.b.info("\u65B0\u589E\u6210\u529F"),Za(Re),ua.setFieldsValue({name:"",target:"",content:"",problem:"",ec_course_target_ids:[]}),ia(!1));case 7:case"end":return I.stop()}},L)}));return function(L){return _.apply(this,arguments)}}()},t.a.createElement(b.a.Item,{label:"\u77E5\u8BC6\u70B9",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9"}]},t.a.createElement(l.a,null)),t.a.createElement(b.a.Item,{label:"\u6559\u5B66\u76EE\u7684",name:"target",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6559\u5B66\u76EE\u7684"}]},t.a.createElement(l.a,null)),t.a.createElement(b.a.Item,{label:"\u6559\u5B66\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6559\u5B66\u5185\u5BB9"}]},t.a.createElement(l.a,null)),t.a.createElement(b.a.Item,{label:"\u91CD\u70B9\u96BE\u70B9",name:"problem",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91CD\u70B9\u96BE\u70B9"}]},t.a.createElement(l.a,null)),t.a.createElement(b.a.Item,{label:"\u652F\u6491\u7684\u8BFE\u7A0B\u76EE\u6807",name:"ec_course_target_ids",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u76EE\u6807"}]},t.a.createElement(M.a,{mode:"multiple",disabled:((He=Re.kcdatas)===null||He===void 0?void 0:He.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u76EE\u6807"},hn==null?void 0:hn.map(function(_,L){return t.a.createElement(M.a.Option,{key:L,value:_==null?void 0:_.id},_==null?void 0:_.content)}))))))},Et=Q.default=Object(_e.a)(function(tt){var Rt=tt.user;return{user:Rt}})(At)},"6+eU":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return G});var Y=o("wx14"),z=o("rePB"),ce=o("VTBJ"),ee=o("1OyB"),y=o("vuIU"),A=o("Ji7U"),oe=o("LK+K"),re=o("q1tI"),e=o.n(re),T=o("TSYQ"),E=o.n(T),p=function(J){var S,X="".concat(J.rootPrefixCls,"-item"),M=E()(X,"".concat(X,"-").concat(J.page),(S={},Object(z.a)(S,"".concat(X,"-active"),J.active),Object(z.a)(S,J.className,!!J.className),Object(z.a)(S,"".concat(X,"-disabled"),!J.page),S)),D=function(){J.onClick(J.page)},P=function(f){J.onKeyPress(f,J.onClick,J.page)};return e.a.createElement("li",{title:J.showTitle?J.page:null,className:M,onClick:D,onKeyPress:P,tabIndex:"0"},J.itemRender(J.page,"page",e.a.createElement("a",{rel:"nofollow"},J.page)))},l=p,r={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},i=function(N){Object(A.a)(S,N);var J=Object(oe.a)(S);function S(){var X;Object(ee.a)(this,S);for(var M=arguments.length,D=new Array(M),P=0;P=0||w.relatedTarget.className.indexOf("".concat(n,"-next"))>=0))return;X.setState({goInputText:""}),b(X.getValidValue())},X.go=function(w){var f=X.state.goInputText;if(f==="")return;(w.keyCode===r.ENTER||w.type==="click")&&(X.setState({goInputText:""}),X.props.quickGo(X.getValidValue()))},X}return Object(y.a)(S,[{key:"getValidValue",value:function(){var M=this.state,D=M.goInputText,P=M.current;return!D||isNaN(D)?P:Number(D)}},{key:"getPageSizeOptions",value:function(){var M=this.props,D=M.pageSize,P=M.pageSizeOptions;return P.some(function(w){return w.toString()===D.toString()})?P:P.concat([D.toString()]).sort(function(w,f){var k=isNaN(Number(w))?0:Number(w),b=isNaN(Number(f))?0:Number(f);return k-b})}},{key:"render",value:function(){var M=this,D=this.props,P=D.pageSize,w=D.locale,f=D.rootPrefixCls,k=D.changeSize,b=D.quickGo,n=D.goButton,u=D.selectComponentClass,s=D.buildOptionText,a=D.selectPrefixCls,t=D.disabled,R=this.state.goInputText,U="".concat(f,"-options"),ae=u,_e=null,ne=null,me=null;if(!k&&!b)return null;var Oe=this.getPageSizeOptions();if(k&&ae){var we=Oe.map(function(ue,Ee){return e.a.createElement(ae.Option,{key:Ee,value:ue.toString()},(s||M.buildOptionText)(ue))});_e=e.a.createElement(ae,{disabled:t,prefixCls:a,showSearch:!1,className:"".concat(U,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(P||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ee){return Ee.parentNode}},we)}return b&&(n&&(me=typeof n=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:t,className:"".concat(U,"-quick-jumper-button")},w.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},n)),ne=e.a.createElement("div",{className:"".concat(U,"-quick-jumper")},w.jump_to,e.a.createElement("input",{disabled:t,type:"text",value:R,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),w.page,me)),e.a.createElement("li",{className:"".concat(U)},_e,ne)}}]),S}(e.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=i,g=o("N2Kk");function j(){}function v(N){return typeof N=="number"&&isFinite(N)&&Math.floor(N)===N}function m(N,J,S){return S}function W(N,J,S){var X=typeof N=="undefined"?J.pageSize:N;return Math.floor((S.total-1)/X)+1}var $=function(N){Object(A.a)(S,N);var J=Object(oe.a)(S);function S(X){var M;Object(ee.a)(this,S),M=J.call(this,X),M.getJumpPrevPage=function(){return Math.max(1,M.state.current-(M.props.showLessItems?3:5))},M.getJumpNextPage=function(){return Math.min(W(void 0,M.state,M.props),M.state.current+(M.props.showLessItems?3:5))},M.getItemIcon=function(k,b){var n=M.props.prefixCls,u=k||e.a.createElement("button",{type:"button","aria-label":b,className:"".concat(n,"-item-link")});return typeof k=="function"&&(u=e.a.createElement(k,Object(ce.a)({},M.props))),u},M.savePaginationNode=function(k){M.paginationNode=k},M.isValid=function(k){return v(k)&&k!==M.state.current},M.shouldDisplayQuickJumper=function(){var k=M.props,b=k.showQuickJumper,n=k.pageSize,u=k.total;return u<=n?!1:b},M.handleKeyDown=function(k){(k.keyCode===r.ARROW_UP||k.keyCode===r.ARROW_DOWN)&&k.preventDefault()},M.handleKeyUp=function(k){var b=M.getValidValue(k),n=M.state.currentInputValue;b!==n&&M.setState({currentInputValue:b}),k.keyCode===r.ENTER?M.handleChange(b):k.keyCode===r.ARROW_UP?M.handleChange(b-1):k.keyCode===r.ARROW_DOWN&&M.handleChange(b+1)},M.changePageSize=function(k){var b=M.state.current,n=W(k,M.state,M.props);b=b>n?n:b,n===0&&(b=M.state.current),typeof k=="number"&&("pageSize"in M.props||M.setState({pageSize:k}),"current"in M.props||M.setState({current:b,currentInputValue:b})),M.props.onShowSizeChange(b,k),"onChange"in M.props&&M.props.onChange&&M.props.onChange(b,k)},M.handleChange=function(k){var b=M.props.disabled,n=k;if(M.isValid(n)&&!b){var u=W(void 0,M.state,M.props);n>u?n=u:n<1&&(n=1),"current"in M.props||M.setState({current:n,currentInputValue:n});var s=M.state.pageSize;return M.props.onChange(n,s),n}return M.state.current},M.prev=function(){M.hasPrev()&&M.handleChange(M.state.current-1)},M.next=function(){M.hasNext()&&M.handleChange(M.state.current+1)},M.jumpPrev=function(){M.handleChange(M.getJumpPrevPage())},M.jumpNext=function(){M.handleChange(M.getJumpNextPage())},M.hasPrev=function(){return M.state.current>1},M.hasNext=function(){return M.state.current2?n-2:0),s=2;s=P?f=P:f=Number(D),f}},{key:"getShowSizeChanger",value:function(){var M=this.props,D=M.showSizeChanger,P=M.total,w=M.totalBoundaryShowSizeChanger;return typeof D!="undefined"?D:P>w}},{key:"renderPrev",value:function(M){var D=this.props,P=D.prevIcon,w=D.itemRender,f=w(M,"prev",this.getItemIcon(P,"prev page")),k=!this.hasPrev();return Object(re.isValidElement)(f)?Object(re.cloneElement)(f,{disabled:k}):f}},{key:"renderNext",value:function(M){var D=this.props,P=D.nextIcon,w=D.itemRender,f=w(M,"next",this.getItemIcon(P,"next page")),k=!this.hasNext();return Object(re.isValidElement)(f)?Object(re.cloneElement)(f,{disabled:k}):f}},{key:"render",value:function(){var M=this,D=this.props,P=D.prefixCls,w=D.className,f=D.style,k=D.disabled,b=D.hideOnSinglePage,n=D.total,u=D.locale,s=D.showQuickJumper,a=D.showLessItems,t=D.showTitle,R=D.showTotal,U=D.simple,ae=D.itemRender,_e=D.showPrevNextJumpers,ne=D.jumpPrevIcon,me=D.jumpNextIcon,Oe=D.selectComponentClass,we=D.selectPrefixCls,ue=D.pageSizeOptions,Ee=this.state,C=Ee.current,q=Ee.pageSize,B=Ee.currentInputValue;if(b===!0&&n<=q)return null;var le=W(void 0,this.state,this.props),ye=[],Ae=null,Fe=null,Xe=null,V=null,se=null,ge=s&&s.goButton,Te=a?1:2,qe=C-1>0?C-1:0,ut=C+1=Te*2&&C!==1+2&&(ye[0]=Object(re.cloneElement)(ye[0],{className:"".concat(P,"-item-after-jump-prev")}),ye.unshift(Ae)),le-C>=Te*2&&C!==le-2&&(ye[ye.length-1]=Object(re.cloneElement)(ye[ye.length-1],{className:"".concat(P,"-item-before-jump-next")}),ye.push(Fe)),Ne!==1&&ye.unshift(Xe),Ke!==le&&ye.push(V)}var ke=null;R&&(ke=e.a.createElement("li",{className:"".concat(P,"-total-text")},R(n,[n===0?0:(C-1)*q+1,C*q>n?n:C*q])));var Le=!this.hasPrev()||!le,Be=!this.hasNext()||!le;return e.a.createElement("ul",Object(Y.a)({className:E()(P,w,Object(z.a)({},"".concat(P,"-disabled"),k)),style:f,unselectable:"unselectable",ref:this.savePaginationNode},At),ke,e.a.createElement("li",{title:t?u.prev_page:null,onClick:this.prev,tabIndex:Le?null:0,onKeyPress:this.runIfEnterPrev,className:E()("".concat(P,"-prev"),Object(z.a)({},"".concat(P,"-disabled"),Le)),"aria-disabled":Le},this.renderPrev(qe)),ye,e.a.createElement("li",{title:t?u.next_page:null,onClick:this.next,tabIndex:Be?null:0,onKeyPress:this.runIfEnterNext,className:E()("".concat(P,"-next"),Object(z.a)({},"".concat(P,"-disabled"),Be)),"aria-disabled":Be},this.renderNext(ut)),e.a.createElement(c,{disabled:k,locale:u,rootPrefixCls:P,selectComponentClass:Oe,selectPrefixCls:we,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:C,pageSize:q,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ge}))}}],[{key:"getDerivedStateFromProps",value:function(M,D){var P={};if("current"in M&&(P.current=M.current,M.current!==D.current&&(P.currentInputValue=P.current)),"pageSize"in M&&M.pageSize!==D.pageSize){var w=D.current,f=W(M.pageSize,D,M);w=w>f?f:w,"current"in M||(P.current=w,P.currentInputValue=w),P.pageSize=M.pageSize}return P}}]),S}(e.a.Component);$.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:j,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:j,locale:g.a,style:{},itemRender:m,totalBoundaryShowSizeChanger:50};var G=$},"6RRn":function(Ge,Q,o){"use strict";var Y=o("wCXF"),z=o("n6Qo");o.d(Q,"b",function(){return z.a});var ce=o("IBYe"),ee=o("6eGT"),y=o("hW8S");o.d(Q,"a",function(){return y.a}),Q.c=Y.b},"6UM0":function(Ge,Q,o){var Y,z;(function(){var ce;(function(){"use strict";var y=[function(e,T,E){var p=E(1).Beautifier,l=E(5).Options;function r(i,c){var g=new p(i,c);return g.beautify()}e.exports=r,e.exports.defaultOptions=function(){return new l}},function(e,T,E){var p=E(2).Output,l=E(3).Token,r=E(4),i=E(5).Options,c=E(7).Tokenizer,g=E(7).line_starters,j=E(7).positionable_operators,v=E(7).TOKEN;function m(a,t){return t.indexOf(a)!==-1}function W(a){return a.replace(/^\s+/g,"")}function $(a){for(var t={},R=0;R{l(p)})}onUnexpectedError(p){this.unexpectedErrorHandler(p),this.emit(p)}onUnexpectedExternalError(p){this.unexpectedErrorHandler(p)}}const z=new Y;function ce(p){oe(p)||z.onUnexpectedError(p);return}function ee(p){oe(p)||z.onUnexpectedExternalError(p);return}function y(p){if(p instanceof Error){let{name:l,message:r}=p;const i=p.stacktrace||p.stack;return{$isError:!0,name:l,message:r,stack:i}}return p}const A="Canceled";function oe(p){return p instanceof Error&&p.name===A&&p.message===A}function re(){const p=new Error(A);return p.name=p.message,p}function e(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function T(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class E extends Error{constructor(p){super("NotSupported");p&&(this.message=p)}}},"24hK":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return z});class Y{constructor(ce){this.element=ce,this.next=Y.Undefined,this.prev=Y.Undefined}}Y.Undefined=new Y(void 0);class z{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 ce=this._first;for(;ce!==Y.Undefined;){const ee=ce.next;ce.prev=Y.Undefined,ce.next=Y.Undefined,ce=ee}this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}unshift(ce){return this._insert(ce,!1)}push(ce){return this._insert(ce,!0)}_insert(ce,ee){const y=new Y(ce);if(this._first===Y.Undefined)this._first=y,this._last=y;else if(ee){const oe=this._last;this._last=y,y.prev=oe,oe.next=y}else{const oe=this._first;this._first=y,y.next=oe,oe.prev=y}this._size+=1;let A=!1;return()=>{A||(A=!0,this._remove(y))}}shift(){if(this._first===Y.Undefined)return;{const ce=this._first.element;return this._remove(this._first),ce}}pop(){if(this._last===Y.Undefined)return;{const ce=this._last.element;return this._remove(this._last),ce}}_remove(ce){if(ce.prev!==Y.Undefined&&ce.next!==Y.Undefined){const ee=ce.prev;ee.next=ce.next,ce.next.prev=ee}else ce.prev===Y.Undefined&&ce.next===Y.Undefined?(this._first=Y.Undefined,this._last=Y.Undefined):ce.next===Y.Undefined?(this._last=this._last.prev,this._last.next=Y.Undefined):ce.prev===Y.Undefined&&(this._first=this._first.next,this._first.prev=Y.Undefined);this._size-=1}*[Symbol.iterator](){let ce=this._first;for(;ce!==Y.Undefined;)yield ce.element,ce=ce.next}}},"2U/9":function(Ge,Q,o){"use strict";var Y=o("VTBJ"),z=o("rePB"),ce=o("Ff2n"),ee=o("1OyB"),y=o("vuIU"),A=o("Ji7U"),oe=o("LK+K"),re=o("q1tI"),e=o.n(re),T=o("Zm9Q"),E=o("TSYQ"),p=o.n(E),l=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function r(v){return typeof v=="string"}var i=function(v){Object(A.a)(W,v);var m=Object(oe.a)(W);function W(){var $;return Object(ee.a)(this,W),$=m.apply(this,arguments),$.onClick=function(){var G=$.props,N=G.onClick,J=G.onStepClick,S=G.stepIndex;N&&N.apply(void 0,arguments),J(S)},$}return Object(y.a)(W,[{key:"renderIconNode",value:function(){var G,N=this.props,J=N.prefixCls,S=N.progressDot,X=N.stepIcon,M=N.stepNumber,D=N.status,P=N.title,w=N.description,h=N.icon,k=N.iconPrefix,b=N.icons,n,u=p()("".concat(J,"-icon"),"".concat(k,"icon"),(G={},Object(z.a)(G,"".concat(k,"icon-").concat(h),h&&r(h)),Object(z.a)(G,"".concat(k,"icon-check"),!h&&D==="finish"&&(b&&!b.finish||!b)),Object(z.a)(G,"".concat(k,"icon-cross"),!h&&D==="error"&&(b&&!b.error||!b)),G)),s=re.createElement("span",{className:"".concat(J,"-icon-dot")});return S?typeof S=="function"?n=re.createElement("span",{className:"".concat(J,"-icon")},S(s,{index:M-1,status:D,title:P,description:w})):n=re.createElement("span",{className:"".concat(J,"-icon")},s):h&&!r(h)?n=re.createElement("span",{className:"".concat(J,"-icon")},h):b&&b.finish&&D==="finish"?n=re.createElement("span",{className:"".concat(J,"-icon")},b.finish):b&&b.error&&D==="error"?n=re.createElement("span",{className:"".concat(J,"-icon")},b.error):h||D==="finish"||D==="error"?n=re.createElement("span",{className:u}):n=re.createElement("span",{className:"".concat(J,"-icon")},M),X&&(n=X({index:M-1,status:D,title:P,description:w,node:n})),n}},{key:"render",value:function(){var G,N=this.props,J=N.className,S=N.prefixCls,X=N.style,M=N.active,D=N.status,P=D===void 0?"wait":D,w=N.iconPrefix,h=N.icon,k=N.wrapperStyle,b=N.stepNumber,n=N.disabled,u=N.description,s=N.title,a=N.subTitle,t=N.progressDot,R=N.stepIcon,U=N.tailContent,ae=N.icons,_e=N.stepIndex,ne=N.onStepClick,me=N.onClick,Oe=Object(ce.a)(N,l),we=p()("".concat(S,"-item"),"".concat(S,"-item-").concat(P),J,(G={},Object(z.a)(G,"".concat(S,"-item-custom"),h),Object(z.a)(G,"".concat(S,"-item-active"),M),Object(z.a)(G,"".concat(S,"-item-disabled"),n===!0),G)),ue=Object(Y.a)({},X),Ee={};return ne&&!n&&(Ee.role="button",Ee.tabIndex=0,Ee.onClick=this.onClick),re.createElement("div",Object.assign({},Oe,{className:we,style:ue}),re.createElement("div",Object.assign({onClick:me},Ee,{className:"".concat(S,"-item-container")}),re.createElement("div",{className:"".concat(S,"-item-tail")},U),re.createElement("div",{className:"".concat(S,"-item-icon")},this.renderIconNode()),re.createElement("div",{className:"".concat(S,"-item-content")},re.createElement("div",{className:"".concat(S,"-item-title")},s,a&&re.createElement("div",{title:typeof a=="string"?a:void 0,className:"".concat(S,"-item-subtitle")},a)),u&&re.createElement("div",{className:"".concat(S,"-item-description")},u))))}}]),W}(re.Component),c=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],g=function(v){Object(A.a)(W,v);var m=Object(oe.a)(W);function W(){var $;return Object(ee.a)(this,W),$=m.apply(this,arguments),$.onStepClick=function(G){var N=$.props,J=N.onChange,S=N.current;J&&S!==G&&J(G)},$}return Object(y.a)(W,[{key:"render",value:function(){var G,N=this,J=this.props,S=J.prefixCls,X=J.style,M=X===void 0?{}:X,D=J.className,P=J.children,w=J.direction,h=J.type,k=J.labelPlacement,b=J.iconPrefix,n=J.status,u=J.size,s=J.current,a=J.progressDot,t=J.stepIcon,R=J.initial,U=J.icons,ae=J.onChange,_e=Object(ce.a)(J,c),ne=h==="navigation",me=a?"vertical":k,Oe=p()(S,"".concat(S,"-").concat(w),D,(G={},Object(z.a)(G,"".concat(S,"-").concat(u),u),Object(z.a)(G,"".concat(S,"-label-").concat(me),w==="horizontal"),Object(z.a)(G,"".concat(S,"-dot"),!!a),Object(z.a)(G,"".concat(S,"-navigation"),ne),G));return e.a.createElement("div",Object.assign({className:Oe,style:M},_e),Object(T.a)(P).map(function(we,ue){var Ee=R+ue,C=Object(Y.a)({stepNumber:"".concat(Ee+1),stepIndex:Ee,key:Ee,prefixCls:S,iconPrefix:b,wrapperStyle:M,progressDot:a,stepIcon:t,icons:U,onStepClick:ae&&N.onStepClick},we.props);return n==="error"&&ue===s-1&&(C.className="".concat(S,"-next-error")),we.props.status||(Ee===s?C.status=n:Ee0&&(he==null||he.map(function(Ie){Ue.push(Ie)}))}),Ye([].concat(Ue))}else Ye([])}})," ","\u8003\u6838\u5185\u5BB9"),t.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),t.a.createElement("span",{style:{width:214}},"\u8003\u6838\u77E5\u8BC6\u70B9"),t.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),t.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),t.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},t.a.createElement("span",{style:{width:93}},pe.name),t.a.createElement("span",{style:{width:194,maxHeight:"552px"}},pe==null||((Je=pe.courses)===null||Je===void 0)?void 0:Je.map(function(Z){var xe,fe,be,Ce;return t.a.createElement("div",{className:U.a.textwidth,style:{height:(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?40:(Z==null||((fe=Z.shixun_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(Z==null||((be=Z.shixun_models)===null||be===void 0)?void 0:be.length)===0?40+"px":(Z==null||((Ce=Z.shixun_models)===null||Ce===void 0)?void 0:Ce.length)*40+"px"}},Z.name)})),t.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},t.a.createElement(ye.a.Group,{onChange:function(xe){var fe,be=ze==null||((fe=ze.courses)===null||fe===void 0)?void 0:fe.map(function(he){var Ie;return he==null||((Ie=he.shixun_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ce=[];be.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ce.push(Ie)}))});var Ue=Ce.filter(function(he){return xe.includes(he.id)});Ye(Ue)},style:{width:"100%"},value:$e==null?void 0:$e.map(function(Z){return Z==null?void 0:Z.id})},pe==null||((ot=pe.courses)===null||ot===void 0)?void 0:ot.map(function(Z){var xe,fe;return(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.shixun_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(ye.a,{onChange:function(Ue){be.checked=Ue.target.checked,ct(Object(D.a)({},pe))},value:be==null?void 0:be.id},be.name))})}))),t.a.createElement("span",{style:{width:277,maxHeight:"552px"}},pe==null||((st=pe.courses)===null||st===void 0)?void 0:st.map(function(Z){var xe,fe;return(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.shixun_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement($.a,{title:be.groups},t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.groups))})})),t.a.createElement("span",{style:{width:214,maxHeight:"552px"}},pe==null||((Pt=pe.courses)===null||Pt===void 0)?void 0:Pt.map(function(Z){var xe,fe;return(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.shixun_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(M.a,{value:be.ec_point_ids,onChange:function(Ue){be.ec_point_ids=Ue,ct(Object(D.a)({},pe))},mode:"multiple",style:{width:200}},Le.map(function(Ce,Ue){return t.a.createElement(M.a.Option,{key:Ue,value:Ce.id},"\u77E5\u8BC6\u70B9".concat(Ue+1,"\uFF1A"),Ce.name)})))})})),t.a.createElement("span",{style:{width:87,maxHeight:"552px"}},pe==null||((Ot=pe.courses)===null||Ot===void 0)?void 0:Ot.map(function(Z){var xe,fe;return(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.shixun_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.total_score)})})),t.a.createElement("span",{style:{width:93,maxHeight:"552px"}},pe==null||((gt=pe.courses)===null||gt===void 0)?void 0:gt.map(function(Z){var xe,fe;return(Z==null||((xe=Z.shixun_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{disabled:!0})):Z==null||((fe=Z.shixun_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{min:1,step:.1,parser:wn,value:be==null?void 0:be.position,onChange:function(Ue){be.position=Ue,ct(Object(D.a)({},pe))}}))})}))))},Rn=function(pe){var Je,ot,st,Pt,Ot,gt;return t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},t.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),t.a.createElement("span",{style:{width:324}},t.a.createElement(ye.a,{checked:$e.length===(pe==null?void 0:pe.exercise_count),onChange:function(xe){var fe;if(pe==null||((fe=pe.courses)===null||fe===void 0)||fe.map(function(he){var Ie;he==null||((Ie=he.exercise_models)===null||Ie===void 0)||Ie.map(function(nt){nt.checked=xe.target.checked})}),ct(Object(D.a)({},ze)),xe.target.checked){var be,Ce=ze==null||((be=ze.courses)===null||be===void 0)?void 0:be.map(function(he){var Ie;return he==null||((Ie=he.exercise_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ue=[];Ce.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ue.push(Ie)}))}),Ye([].concat(Ue))}else Ye([])}})," ","\u8003\u6838\u5185\u5BB9"),t.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),t.a.createElement("span",{style:{width:214}},"\u8003\u6838\u77E5\u8BC6\u70B9"),t.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),t.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),t.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},t.a.createElement("span",{style:{width:93}},pe.name),t.a.createElement("span",{style:{width:194,maxHeight:"552px"}},pe==null||((Je=pe.courses)===null||Je===void 0)?void 0:Je.map(function(Z){var xe,fe,be,Ce;return t.a.createElement("div",{className:U.a.textwidth,style:{height:(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?40:(Z==null||((fe=Z.exercise_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(Z==null||((be=Z.exercise_models)===null||be===void 0)?void 0:be.length)===0?40+"px":(Z==null||((Ce=Z.exercise_models)===null||Ce===void 0)?void 0:Ce.length)*40+"px"}},Z.name)})),t.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},t.a.createElement(ye.a.Group,{onChange:function(xe){var fe,be=ze==null||((fe=ze.courses)===null||fe===void 0)?void 0:fe.map(function(he){var Ie;return he==null||((Ie=he.exercise_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ce=[];be.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ce.push(Ie)}))});var Ue=Ce.filter(function(he){return xe.includes(he.id)});Ye(Ue)},style:{width:"100%"},value:$e==null?void 0:$e.map(function(Z){return Z==null?void 0:Z.id})},pe==null||((ot=pe.courses)===null||ot===void 0)?void 0:ot.map(function(Z){var xe,fe;return(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.exercise_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(ye.a,{onChange:function(Ue){be.checked=Ue.target.checked,ct(Object(D.a)({},pe))},value:be==null?void 0:be.id},be.name))})}))),t.a.createElement("span",{style:{width:277,maxHeight:"552px"}},pe==null||((st=pe.courses)===null||st===void 0)?void 0:st.map(function(Z){var xe,fe;return(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.exercise_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement($.a,{title:be.groups},t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.groups))})})),t.a.createElement("span",{style:{width:214,maxHeight:"552px"}},pe==null||((Pt=pe.courses)===null||Pt===void 0)?void 0:Pt.map(function(Z){var xe,fe;return(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.exercise_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(M.a,{value:be.ec_point_ids,onChange:function(Ue){be.ec_point_ids=Ue,ct(Object(D.a)({},pe))},mode:"multiple",style:{width:200}},Le.map(function(Ce,Ue){return t.a.createElement(M.a.Option,{key:Ue,value:Ce.id},"\u77E5\u8BC6\u70B9".concat(Ue+1,"\uFF1A"),Ce.name)})))})})),t.a.createElement("span",{style:{width:87,maxHeight:"552px"}},pe==null||((Ot=pe.courses)===null||Ot===void 0)?void 0:Ot.map(function(Z){var xe,fe;return(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.exercise_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.total_score)})})),t.a.createElement("span",{style:{width:93,maxHeight:"552px"}},pe==null||((gt=pe.courses)===null||gt===void 0)?void 0:gt.map(function(Z){var xe,fe;return(Z==null||((xe=Z.exercise_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{disabled:!0})):Z==null||((fe=Z.exercise_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{min:1,step:.1,parser:wn,value:be==null?void 0:be.position,onChange:function(Ue){be.position=Ue,ct(Object(D.a)({},pe))}}))})}))))},Nn=function(pe){var Je,ot,st,Pt,Ot,gt;return t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},t.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),t.a.createElement("span",{style:{width:324}},t.a.createElement(ye.a,{checked:$e.length===(pe==null?void 0:pe.common_count),onChange:function(xe){var fe;if(pe==null||((fe=pe.courses)===null||fe===void 0)||fe.map(function(he){var Ie;he==null||((Ie=he.common_models)===null||Ie===void 0)||Ie.map(function(nt){nt.checked=xe.target.checked})}),ct(Object(D.a)({},ze)),xe.target.checked){var be,Ce=ze==null||((be=ze.courses)===null||be===void 0)?void 0:be.map(function(he){var Ie;return he==null||((Ie=he.common_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ue=[];Ce.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ue.push(Ie)}))}),Ye([].concat(Ue))}else Ye([])}})," ","\u8003\u6838\u5185\u5BB9"),t.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),t.a.createElement("span",{style:{width:214}},"\u8003\u6838\u77E5\u8BC6\u70B9"),t.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),t.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),t.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},t.a.createElement("span",{style:{width:93}},pe.name),t.a.createElement("span",{style:{width:194,maxHeight:"552px"}},pe==null||((Je=pe.courses)===null||Je===void 0)?void 0:Je.map(function(Z){var xe,fe,be,Ce;return t.a.createElement("div",{className:U.a.textwidth,style:{height:(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?40:(Z==null||((fe=Z.common_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(Z==null||((be=Z.common_models)===null||be===void 0)?void 0:be.length)===0?40+"px":(Z==null||((Ce=Z.common_models)===null||Ce===void 0)?void 0:Ce.length)*40+"px"}},Z.name)})),t.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},t.a.createElement(ye.a.Group,{onChange:function(xe){var fe,be=ze==null||((fe=ze.courses)===null||fe===void 0)?void 0:fe.map(function(he){var Ie;return he==null||((Ie=he.common_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ce=[];be.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ce.push(Ie)}))});var Ue=Ce.filter(function(he){return xe.includes(he.id)});Ye(Ue)},style:{width:"100%"},value:$e==null?void 0:$e.map(function(Z){return Z==null?void 0:Z.id})},pe==null||((ot=pe.courses)===null||ot===void 0)?void 0:ot.map(function(Z){var xe,fe;return(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.common_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(ye.a,{onChange:function(Ue){be.checked=Ue.target.checked,ct(Object(D.a)({},pe))},value:be==null?void 0:be.id},be.name))})}))),t.a.createElement("span",{style:{width:277,maxHeight:"552px"}},pe==null||((st=pe.courses)===null||st===void 0)?void 0:st.map(function(Z){var xe,fe;return(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.common_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement($.a,{title:be.groups},t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.groups))})})),t.a.createElement("span",{style:{width:214,maxHeight:"552px"}},pe==null||((Pt=pe.courses)===null||Pt===void 0)?void 0:Pt.map(function(Z){var xe,fe;return(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.common_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(M.a,{value:be.ec_point_ids,onChange:function(Ue){be.ec_point_ids=Ue,ct(Object(D.a)({},pe))},mode:"multiple",style:{width:200}},Le.map(function(Ce,Ue){return t.a.createElement(M.a.Option,{key:Ue,value:Ce.id},"\u77E5\u8BC6\u70B9".concat(Ue+1,"\uFF1A"),Ce.name)})))})})),t.a.createElement("span",{style:{width:87,maxHeight:"552px"}},pe==null||((Ot=pe.courses)===null||Ot===void 0)?void 0:Ot.map(function(Z){var xe,fe;return(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.common_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.total_score)})})),t.a.createElement("span",{style:{width:93,maxHeight:"552px"}},pe==null||((gt=pe.courses)===null||gt===void 0)?void 0:gt.map(function(Z){var xe,fe;return(Z==null||((xe=Z.common_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{disabled:!0})):Z==null||((fe=Z.common_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{min:1,step:.1,parser:wn,value:be==null?void 0:be.position,onChange:function(Ue){be.position=Ue,ct(Object(D.a)({},pe))}}))})}))))},Dn=function(pe){var Je,ot,st,Pt,Ot,gt;return t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",height:"38px",background:"#F5F5F5",alignItems:"center",textAlign:"center",marginTop:"20px"}},t.a.createElement("span",{style:{width:93}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("span",{style:{width:194}},"\u6559\u5B66\u8BFE\u5802"),t.a.createElement("span",{style:{width:324}},t.a.createElement(ye.a,{checked:$e.length===(pe==null?void 0:pe.group_count),onChange:function(xe){var fe;if(pe==null||((fe=pe.courses)===null||fe===void 0)||fe.map(function(he){var Ie;he==null||((Ie=he.group_models)===null||Ie===void 0)||Ie.map(function(nt){nt.checked=xe.target.checked})}),ct(Object(D.a)({},ze)),xe.target.checked){var be,Ce=ze==null||((be=ze.courses)===null||be===void 0)?void 0:be.map(function(he){var Ie;return he==null||((Ie=he.group_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ue=[];Ce.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ue.push(Ie)}))}),Ye([].concat(Ue))}else Ye([])}})," ","\u8003\u6838\u5185\u5BB9"),t.a.createElement("span",{style:{width:277}},"\u5206\u73ED"),t.a.createElement("span",{style:{width:214}},"\u8003\u6838\u77E5\u8BC6\u70B9"),t.a.createElement("span",{style:{width:87}},"\u6EE1\u5206\u503C"),t.a.createElement("span",{style:{width:93}},"\u7EC4\u5408\u8BA1\u7B97")),t.a.createElement("div",{style:{display:"flex",alignItems:"center",textAlign:"center",border:"1px solid #f0f0f0",maxHeight:"552px",overflow:"auto"}},t.a.createElement("span",{style:{width:93}},pe.name),t.a.createElement("span",{style:{width:194,maxHeight:"552px"}},pe==null||((Je=pe.courses)===null||Je===void 0)?void 0:Je.map(function(Z){var xe,fe,be,Ce;return t.a.createElement("div",{className:U.a.textwidth,style:{height:(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?40:(Z==null||((fe=Z.group_models)===null||fe===void 0)?void 0:fe.length)*40,lineHeight:(Z==null||((be=Z.group_models)===null||be===void 0)?void 0:be.length)===0?40+"px":(Z==null||((Ce=Z.group_models)===null||Ce===void 0)?void 0:Ce.length)*40+"px"}},Z.name)})),t.a.createElement("span",{style:{width:324,maxHeight:"552px",textAlign:"left"}},t.a.createElement(ye.a.Group,{onChange:function(xe){var fe,be=ze==null||((fe=ze.courses)===null||fe===void 0)?void 0:fe.map(function(he){var Ie;return he==null||((Ie=he.group_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ce=[];be.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ce.push(Ie)}))});var Ue=Ce.filter(function(he){return xe.includes(he.id)});Ye(Ue)},style:{width:"100%"},value:$e==null?void 0:$e.map(function(Z){return Z==null?void 0:Z.id})},pe==null||((ot=pe.courses)===null||ot===void 0)?void 0:ot.map(function(Z){var xe,fe;return(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.group_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(ye.a,{onChange:function(Ue){be.checked=Ue.target.checked,ct(Object(D.a)({},pe))},value:be==null?void 0:be.id},be.name))})}))),t.a.createElement("span",{style:{width:277,maxHeight:"552px"}},pe==null||((st=pe.courses)===null||st===void 0)?void 0:st.map(function(Z){var xe,fe;return(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.group_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement($.a,{title:be.groups},t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.groups))})})),t.a.createElement("span",{style:{width:214,maxHeight:"552px"}},pe==null||((Pt=pe.courses)===null||Pt===void 0)?void 0:Pt.map(function(Z){var xe,fe;return(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.group_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(M.a,{value:be.ec_point_ids,onChange:function(Ue){be.ec_point_ids=Ue,ct(Object(D.a)({},pe))},mode:"multiple",style:{width:200}},Le.map(function(Ce,Ue){return t.a.createElement(M.a.Option,{key:Ue,value:Ce.id},"\u77E5\u8BC6\u70B9".concat(Ue+1,"\uFF1A"),Ce.name)})))})})),t.a.createElement("span",{style:{width:87,maxHeight:"552px"}},pe==null||((Ot=pe.courses)===null||Ot===void 0)?void 0:Ot.map(function(Z){var xe,fe;return(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},"--"):Z==null||((fe=Z.group_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},be.total_score)})})),t.a.createElement("span",{style:{width:93,maxHeight:"552px"}},pe==null||((gt=pe.courses)===null||gt===void 0)?void 0:gt.map(function(Z){var xe,fe;return(Z==null||((xe=Z.group_models)===null||xe===void 0)?void 0:xe.length)===0?t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{disabled:!0})):Z==null||((fe=Z.group_models)===null||fe===void 0)?void 0:fe.map(function(be){return t.a.createElement("div",{className:U.a.textwidth,style:{height:40,lineHeight:"40px"}},t.a.createElement(E.a,{min:1,step:.1,parser:wn,value:be==null?void 0:be.position,onChange:function(Ue){be.position=Ue,ct(Object(D.a)({},pe))}}))})}))))};return t.a.createElement(m.a,{title:"\u6DFB\u52A0\u8BFE\u5802\u6570\u636E",wrapClassName:U.a.modalWrapContainer,visible:de,width:Qe<2?740:1100,footer:t.a.createElement("div",null,Qe<2&&t.a.createElement(S.a,{type:"primary",onClick:Object(h.a)(s.a.mark(function vt(){var pe,Je,ot,st;return s.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(!(!Vt||Vt=="")){Ot.next=3;break}return w.b.warn("\u8BF7\u9009\u62E9\u8BFE\u5802"),Ot.abrupt("return");case 3:return Ot.next=5,Object(ne.a)("/api/ec_courses/".concat(Ne==null?void 0:Ne.id,"/course_evaluations/search_works.json"),{method:"get",params:{course_ids:Vt,list_id:Ke||""}});case 5:Je=Ot.sent,ct(Je),ot=Je==null||((pe=Je.courses)===null||pe===void 0)?void 0:pe.map(function(gt){var Z;return gt==null||((Z=gt.shixun_models)===null||Z===void 0)?void 0:Z.map(function(xe){return xe})}),st=[],ot.map(function(gt){gt.length>0&&(gt==null||gt.map(function(Z){Z.checked&&st.push(Z)}))}),Ye([].concat(st)),bn("1"),Ve(2);case 13:case"end":return Ot.stop()}},vt)}))},"\u4E0B\u4E00\u6B65"),Qe>=2&&t.a.createElement("div",null,t.a.createElement(S.a,{type:"primary",onClick:Object(h.a)(s.a.mark(function vt(){return s.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:Me(!1),Ve(0);case 2:case"end":return Je.stop()}},vt)}))},"\u53D6\u6D88"),t.a.createElement(S.a,{type:"primary",loading:Jt,onClick:Object(h.a)(s.a.mark(function vt(){var pe,Je,ot,st,Pt,Ot,gt,Z,xe,fe,be,Ce,Ue,he,Ie,nt,Tn,hn;return s.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:if(xe=ze==null||((pe=ze.courses)===null||pe===void 0)?void 0:pe.map(function(mt){var Dt;return mt==null||((Dt=mt.common_models)===null||Dt===void 0)?void 0:Dt.map(function(_n){return _n})}),fe=[],xe.map(function(mt){mt.length>0&&(mt==null||mt.map(function(Dt){Dt.checked&&fe.push(Dt)}))}),be=ze==null||((Je=ze.courses)===null||Je===void 0)?void 0:Je.map(function(mt){var Dt;return mt==null||((Dt=mt.group_models)===null||Dt===void 0)?void 0:Dt.map(function(_n){return _n})}),Ce=[],be.map(function(mt){mt.length>0&&(mt==null||mt.map(function(Dt){Dt.checked&&Ce.push(Dt)}))}),Ue=ze==null||((ot=ze.courses)===null||ot===void 0)?void 0:ot.map(function(mt){var Dt;return mt==null||((Dt=mt.exercise_models)===null||Dt===void 0)?void 0:Dt.map(function(_n){return _n})}),he=[],Ue.map(function(mt){mt.length>0&&(mt==null||mt.map(function(Dt){Dt.checked&&he.push(Dt)}))}),Ie=ze==null||((st=ze.courses)===null||st===void 0)?void 0:st.map(function(mt){var Dt;return mt==null||((Dt=mt.shixun_models)===null||Dt===void 0)?void 0:Dt.map(function(_n){return _n})}),nt=[],Ie.map(function(mt){mt.length>0&&(mt==null||mt.map(function(Dt){Dt.checked&&nt.push(Dt)}))}),on==="1"?nt=$e:on==="2"?fe=$e:on==="3"?Ce=$e:he=$e,an(!0),!(((Pt=nt)===null||Pt===void 0?void 0:Pt.length)<=0&&((Ot=fe)===null||Ot===void 0?void 0:Ot.length)<=0&&((gt=Ce)===null||gt===void 0?void 0:gt.length)<=0&&((Z=he)===null||Z===void 0?void 0:Z.length)<=0)){$t.next=18;break}return w.b.info("\u8BF7\u9009\u62E9\u8003\u6838\u5185\u5BB9"),an(!1),$t.abrupt("return");case 18:if(!Ke){$t.next=25;break}return $t.next=21,Object(ne.a)("/api/ec_courses/".concat(Ne==null?void 0:Ne.id,"/course_evaluations/update_online"),{method:"put",body:{id:Ke,course_ids:Vt,shixun_works:nt,common_works:fe,group_works:Ce,exercise_works:he}});case 21:Tn=$t.sent,Tn&&(Me(!1),He(Ne),Se(Ne)),$t.next=29;break;case 25:return $t.next=27,Object(ne.a)("/api/ec_courses/".concat(Ne==null?void 0:Ne.id,"/course_evaluations/create_online"),{method:"post",body:{course_ids:Vt,shixun_works:nt,common_works:fe,group_works:Ce,exercise_works:he}});case 27:hn=$t.sent,hn&&(Me(!1),He(Ne),Se(Ne));case 29:an(!1),Ve(0);case 31:case"end":return $t.stop()}},vt)}))},"\u4FDD\u5B58"))),onCancel:function(){Ve(0),Me(!1)}},t.a.createElement("div",{style:{width:"calc(100% - 184px)",margin:"0 auto"}},t.a.createElement(B.a,{current:Qe},t.a.createElement(B.a.Step,{style:{cursor:"pointer"},onClick:function(){Ve(1)},key:1,title:"\u5173\u8054\u8BFE\u5802"}),t.a.createElement(B.a.Step,{style:{cursor:"pointer"},onClick:Object(h.a)(s.a.mark(function vt(){var pe,Je,ot,st;return s.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(!(Vt.length<=0)){Ot.next=3;break}return w.b.info("\u8BF7\u9009\u62E9\u8BFE\u5802"),Ot.abrupt("return");case 3:return Ot.next=5,Object(ne.a)("/api/ec_courses/".concat(Ne==null?void 0:Ne.id,"/course_evaluations/search_works.json"),{method:"get",params:{course_ids:Vt,list_id:Ke||""}});case 5:Je=Ot.sent,ct(Je),ot=Je==null||((pe=Je.courses)===null||pe===void 0)?void 0:pe.map(function(gt){var Z;return gt==null||((Z=gt.shixun_models)===null||Z===void 0)?void 0:Z.map(function(xe){return xe})}),st=[],ot.map(function(gt){gt.length>0&&(gt==null||gt.map(function(Z){Z.checked&&st.push(Z)}))}),Ye([].concat(st)),bn("1"),Ve(2);case 13:case"end":return Ot.stop()}},vt)})),key:2,title:"\u914D\u7F6E\u8003\u6838\u65B9\u5F0F\u4E0E\u5185\u5BB9"}))),Qe<2&&t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:30,padding:"0 40px"}},t.a.createElement("div",{style:{flex:1},className:U.a.title},"\u5173\u8054\u8BFE\u5802"),t.a.createElement(l.a.Search,{className:U.a.inputWrap,style:{width:"342px"},onSearch:function(pe){ft.page=1,ft.name=pe,Tt(Object(D.a)({},ft)),En(ft)},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"})),t.a.createElement("div",null,t.a.createElement(j.a,{style:{marginTop:"10px"},dataSource:nn,rowKey:"id",scroll:{y:300},rowSelection:yn,onChange:Sn,columns:[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name"},{title:"\u521B\u5EFA\u8005",dataIndex:"creator_name",width:110},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:133},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"end_time",width:133,render:function(pe,Je,ot){return pe||"- -"}}],pagination:{pageSize:ft.per_page,total:ft.total,current:ft.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(pe){return t.a.createElement("span",{className:"mr10"},"\u5171",t.a.createElement("span",{className:"c-orange"},pe),"\u6761\u6570\u636E")}}}))),Qe===2&&t.a.createElement("div",{className:U.a.addCourseTabsContainer},t.a.createElement(e.a,{defaultActiveKey:"1",activeKey:on,onChange:function(pe){if(bn(pe),pe==="1"){var Je,ot=ze==null||((Je=ze.courses)===null||Je===void 0)?void 0:Je.map(function(he){var Ie;return he==null||((Ie=he.shixun_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),st=[];ot.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ie.checked&&st.push(Ie)}))}),Ye([].concat(st))}else if(pe==="2"){var Pt,Ot=ze==null||((Pt=ze.courses)===null||Pt===void 0)?void 0:Pt.map(function(he){var Ie;return he==null||((Ie=he.common_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),gt=[];Ot.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ie.checked&>.push(Ie)}))}),Ye([].concat(gt))}else if(pe==="3"){var Z,xe=ze==null||((Z=ze.courses)===null||Z===void 0)?void 0:Z.map(function(he){var Ie;return he==null||((Ie=he.group_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),fe=[];xe.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ie.checked&&fe.push(Ie)}))}),Ye([].concat(fe))}else{var be,Ce=ze==null||((be=ze.courses)===null||be===void 0)?void 0:be.map(function(he){var Ie;return he==null||((Ie=he.exercise_models)===null||Ie===void 0)?void 0:Ie.map(function(nt){return nt})}),Ue=[];Ce.map(function(he){he.length>0&&(he==null||he.map(function(Ie){Ie.checked&&Ue.push(Ie)}))}),Ye([].concat(Ue))}}},t.a.createElement(e.a.TabPane,{tab:"\u5B9E\u8BAD\u4F5C\u4E1A",key:1},xn(),An(Object(D.a)(Object(D.a)({},ze),{},{name:"\u5B9E\u8BAD\u4F5C\u4E1A"}))),t.a.createElement(e.a.TabPane,{tab:"\u666E\u901A\u4F5C\u4E1A",key:2},xn(),Nn(Object(D.a)(Object(D.a)({},ze),{},{name:"\u666E\u901A\u4F5C\u4E1A"}))),t.a.createElement(e.a.TabPane,{tab:"\u5206\u7EC4\u4F5C\u4E1A",key:3},xn(),Dn(Object(D.a)(Object(D.a)({},ze),{},{name:"\u5206\u7EC4\u4F5C\u4E1A"}))),t.a.createElement(e.a.TabPane,{tab:"\u5728\u7EBF\u8003\u8BD5",key:4},xn(),Rn(Object(D.a)(Object(D.a)({},ze),{},{name:"\u5728\u7EBF\u8003\u8BD5"}))))))}var Fe=Ae,Xe=o("LvDl"),V=o("BdwD");function se(tt){var Rt,de,Me,Ne=tt.isshow,Ke=tt.setishow,He=tt.modalparams,Se=tt.getcourse_evaluations,ke={page:1,per_page:20,total:0,name:""},Le=Object(a.useState)(0),Be=Object(n.a)(Le,2),Re=Be[0],We=Be[1],Qe=Object(a.useState)(ke),Ve=Object(n.a)(Qe,2),at=Ve[0],yt=Ve[1],ft=Object(a.useState)([]),Tt=Object(n.a)(ft,2),Nt=Tt[0],_t=Tt[1],nn=Object(a.useState)([]),Gt=Object(n.a)(nn,2),Ut=Gt[0],Qt=Gt[1],Vt=Object(a.useState)([]),jt=Object(n.a)(Vt,2),ln=jt[0],Ft=jt[1],ze=Object(a.useState)({}),ct=Object(n.a)(ze,2),it=ct[0],zt=ct[1],$e=Object(a.useState)(),Ye=Object(n.a)($e,2),et=Ye[0],Lt=Ye[1],on=Object(a.useState)(!1),bn=Object(n.a)(on,2),fn=bn[0],vn=bn[1],Jt=Object(a.useState)("1"),an=Object(n.a)(Jt,2),En=an[0],Zt=an[1],Sn=Object(a.useRef)(ke),yn=Object(a.useState)(null),wn=Object(n.a)(yn,2),xn=wn[0],An=wn[1],Rn=Object(a.useRef)(null),Nn=Object(a.useRef)(""),Dn=Object(a.useRef)([]);Object(a.useEffect)(function(){Ne&&(Je(at),Zt("1"))},[Ne]);var vt=function(xe){An(xe),Rn.current=xe,gt(Object(Xe.cloneDeep)(Dn.current))},pe=function(xe){var fe=xe;return fe=isNaN(fe)?"":fe,fe[0]==="."&&(fe=""),fe};function Je(Z){return ot.apply(this,arguments)}function ot(){return ot=Object(h.a)(s.a.mark(function Z(xe){var fe,be,Ce;return s.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(ne.a)("/api/ec_courses/".concat(He.id,"/evaluations/evaluation_settings.json"),{method:"get",params:xe});case 2:be=he.sent,_t(be),Lt((be==null||((fe=be.ec_course_targets)===null||fe===void 0)?void 0:fe.length)*75+227+240+32),Ce=be.ec_course_targets,Ce.unshift({content:"11"}),Dn.current=Ce,gt(Ce);case 9:case"end":return he.stop()}},Z)})),ot.apply(this,arguments)}function st(Z){return Pt.apply(this,arguments)}function Pt(){return Pt=Object(h.a)(s.a.mark(function Z(xe){var fe,be,Ce;return s.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,Object(ne.a)("/api/ec_courses/".concat(He.id,"/evaluations/evaluation_settings_subitems.json"),{method:"get",params:xe});case 2:be=he.sent,Ce=[],be.evaluations.map(function(Ie){var nt;Ie==null||((nt=Ie.subitems)===null||nt===void 0)||nt.map(function(Tn){Ce.push(Tn)})}),Lt((be==null||((fe=be.ec_course_targets)===null||fe===void 0)?void 0:fe.length)*75+227+240+32),zt({}),zt(be),Ft(Ce);case 9:case"end":return he.stop()}},Z)})),Pt.apply(this,arguments)}var Ot=function(){var Z=Object(h.a)(s.a.mark(function xe(fe){var be,Ce,Ue,he,Ie,nt;return s.a.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:return An(null),he=Rn.current,Rn.current=null,Ie=fe?"/api/ec_courses/".concat(He.id,"/evaluations/update_evaluation_settings"):"/api/ec_courses/".concat(He.id,"/evaluations/update_evaluation_setting_subitem"),hn.next=6,Object(ne.a)(Ie,{method:"post",body:{random_number:he==null||((be=he.split("-"))===null||be===void 0)?void 0:be[1],ec_course_target_id:he==null||((Ce=he.split("-"))===null||Ce===void 0)?void 0:Ce[0],weight:Nn.current,ec_course_evaluation_subitem_ids:fe?null:[he==null||((Ue=he.split("-"))===null||Ue===void 0)?void 0:Ue[2]]}});case 6:nt=hn.sent,nt.status===0&&(w.b.success("\u4FDD\u5B58\u6210\u529F"),fe?(Je(at),Se(He)):(st(at),Se(He)));case 8:case"end":return hn.stop()}},xe)}));return function(fe){return Z.apply(this,arguments)}}(),gt=function(xe){var fe=Object(Xe.cloneDeep)(xe);fe[0].title=t.a.createElement("div",{className:U.a.line},t.a.createElement("span",null,"\u8BFE\u7A0B\u76EE\u6807"),t.a.createElement("span",null,"\u8003\u6838\u65B9\u5F0F")),fe[0].dataIndex="work_name",fe[0].width=180,fe[0].fixed="left",fe[0].render=function(Ce,Ue){return t.a.createElement("div",{className:U.a.omit},t.a.createElement("span",{title:Ce},Ce),Ue.warning&&t.a.createElement($.a,{title:"\u8BE5\u8003\u6838\u65B9\u5F0F\u5BF9\u5E94\u76EE\u6807\u5360\u6BD4\u4E4B\u548C\u4E3A0\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E"},t.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))};var be=function(Ue,he,Ie,nt){var Tn,hn,Ln="",$t="";Ue&&(Ln=Ue.split("-")[0],$t=Ue.split("-")[1]);var mt=((Tn=Sn.current)===null||Tn===void 0?void 0:Tn.tab)==="1"?Ln:$t,Dt=he==null||((hn=he.relation[nt-1])===null||hn===void 0)?void 0:hn.weight;return t.a.createElement("span",null,Rn.current==="".concat(Ie,"-").concat(he.random_number)?t.a.createElement(E.a,{key:"".concat(Ie,"-").concat(he.random_number),autoFocus:!0,defaultValue:Dt,onBlur:function(){return Ot(!0)},step:.1,parser:pe,onChange:function(Zn){return Nn.current=Zn},style:{width:100}}):t.a.createElement(a.Fragment,{key:"".concat(Ie,"-").concat(he.random_number)},t.a.createElement("span",{className:U.a.tbl,onClick:function(){return vt("".concat(Ie,"-").concat(he.random_number))},style:{color:mt==="H"?"#0152D9":mt==="M"?"#07C160":mt==="L"?"#FF9D18":"#0152d9"}},Dt?t.a.createElement("span",null,Dt):"\u8F93\u5165\u6570\u5B57")))};fe=fe.map(function(Ce,Ue){return Ue?{title:t.a.createElement("span",{key:Math.random()},t.a.createElement($.a,{title:Ce.content},t.a.createElement("span",null,"\u76EE\u6807"+Ue)),Ce.warning&&t.a.createElement($.a,{title:"\u8BE5\u76EE\u6807\u4E0B\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01"},t.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"}))),dataIndex:"content",width:Ue===fe.length-1?120:"",fixed:Ue===fe.length-1?"right":"",render:function(Ie,nt){return be(Ie,nt,Ce.id,Ue)}}:Ce}),Qt(fe||[])};return t.a.createElement(m.a,{title:"\u8BBE\u7F6E\u8003\u6838\u5360\u6BD4",visible:Ne,width:et>1060?1060:et,footer:null,centered:!0,onCancel:function(){Ke(!1)}},t.a.createElement(e.a,{activeKey:En,onChange:function(xe){Zt(xe),xe==="1"?Je(at):st(at)}},t.a.createElement(e.a.TabPane,{tab:"\u8BBE\u7F6E\u8003\u6838\u65B9\u5F0F\u5360\u6BD4",key:1},t.a.createElement("div",{style:{marginTop:"30px",color:"#464F66",fontSize:"14px"}},t.a.createElement("p",null,"\u8BF4\u660E\uFF1A"),t.a.createElement("p",null,"\u6BCF\u4E00\u4E2A\u8BFE\u7A0B\u76EE\u6807\u4E0B\u7684\u8003\u6838\u65B9\u5F0F\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002")),t.a.createElement(j.a,{columns:Ut,bordered:!0,scroll:{x:2e3},dataSource:Nt==null?void 0:Nt.evaluations,pagination:!1})),t.a.createElement(e.a.TabPane,{tab:"\u8BBE\u7F6E\u8003\u6838\u5185\u5BB9\u5360\u6BD4",key:2},t.a.createElement("div",{style:{marginTop:"30px",color:"#464F66",fontSize:"14px"}},t.a.createElement("p",null,"\u8BF4\u660E\uFF1A"),t.a.createElement("p",null,"\u6BCF\u4E00\u4E2A\u8003\u6838\u65B9\u5F0F\u4E0B\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E1\u3002")),t.a.createElement("div",{style:{overflow:"auto",width:"100%"}},t.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"78px"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderLeft:"1px solid #E0E2EC",borderTop:"1px solid #E0E2EC",width:"240px",paddingLeft:"30px",lineHeight:"78px",flexShrink:0}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderTop:"1px solid #E0E2EC",width:"227px",lineHeight:"78px",textAlign:"center",flexShrink:0}},"\u8003\u6838\u5185\u5BB9"),it==null||((Rt=it.ec_course_targets)===null||Rt===void 0)?void 0:Rt.map(function(Z,xe){var fe;return t.a.createElement("div",{style:{borderRight:xe!=(it==null||((fe=it.ec_course_targets)===null||fe===void 0)?void 0:fe.length)-1&&"1px solid #E0E2EC",width:"75px",lineHeight:"78px",textAlign:"center",flexShrink:0,background:"#F5F5F5",borderTop:"1px solid #E0E2EC"}},t.a.createElement($.a,{title:Z.content},t.a.createElement("span",null,"\u76EE\u6807"+(xe+1))),Z.warning&&t.a.createElement($.a,{title:"\u8BE5\u76EE\u6807\u4E0B\u6709\u8003\u6838\u65B9\u5F0F\u7684\u8003\u6838\u5185\u5BB9\u5360\u6BD4\u4E4B\u548C\u4E0D\u7B49\u4E8E1 \uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E\uFF01"},t.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))})),t.a.createElement("div",null,t.a.createElement("div",{style:{maxHeight:"550px"}},(it==null||((de=it.evaluations)===null||de===void 0)?void 0:de.length)<=0&&t.a.createElement(V.a,{customText:"\u5F53\u524D\u6682\u65E0\u6570\u636E"}),it==null||((Me=it.evaluations)===null||Me===void 0)?void 0:Me.map(function(Z,xe){var fe,be;return t.a.createElement("div",{style:{height:"100%",display:"flex",borderLeft:"1px solid #E0E2EC"}},t.a.createElement("div",{style:{width:"240px",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},Z.work_name),t.a.createElement("div",{style:{display:"flex",flexDirection:"column",borderRight:"1px solid #E0E2EC",width:"227px",flexShrink:0}},Z==null||((fe=Z.subitems)===null||fe===void 0)?void 0:fe.map(function(Ce,Ue){return t.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",paddingLeft:8,paddingRight:12,display:"flex",alignItems:"center"}},t.a.createElement($.a,{title:Ce==null?void 0:Ce.name},t.a.createElement("div",{className:U.a.textone,style:{height:"42px",lineHeight:"42px"}},Ce==null?void 0:Ce.name)),Ce.warning&&t.a.createElement($.a,{title:"\u8BE5\u8003\u6838\u5185\u5BB9\u5BF9\u5E94\u76EE\u6807\u5360\u6BD4\u4E4B\u548C\u4E3A0\uFF0C\u53EF\u80FD\u5BFC\u81F4\u8BA1\u7B97\u7ED3\u679C\u4E0D\u51C6\u786E"},t.a.createElement("i",{style:{color:"#FF9D18"},className:"iconfont icon-hongsejingshi ml5"})))})),it==null||((be=it.ec_course_targets)===null||be===void 0)?void 0:be.map(function(Ce,Ue){var he,Ie;return t.a.createElement("div",{style:{display:"flex",flexDirection:"column",borderRight:"1px solid #E0E2EC",width:Ue!=(it==null||((he=it.ec_course_targets)===null||he===void 0)?void 0:he.length)-1?"75px":"74px",flexShrink:0}},Z==null||((Ie=Z.subitems)===null||Ie===void 0)?void 0:Ie.map(function(nt,Tn){var hn,Ln,$t;return t.a.createElement(E.a,{key:"".concat(Ue,"-").concat(Tn),parser:pe,step:.1,disabled:fn,onBlur:function(){var mt=Object(h.a)(s.a.mark(function Dt(_n){var Zn;return s.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:return vn(!0),$n.next=3,Object(ne.a)("/api/ec_courses/".concat(He.id,"/evaluations/update_evaluation_setting_subitem"),{method:"post",body:{random_number:nt==null?void 0:nt.random_number,ec_course_target_id:Ce==null?void 0:Ce.id,weight:_n.target.value,ec_course_evaluation_subitem_ids:nt==null?void 0:nt.ec_course_evaluation_subitem_ids}});case 3:Zn=$n.sent,vn(!1),Zn&&(st(at),Se(He));case 6:case"end":return $n.stop()}},Dt)}));return function(Dt){return mt.apply(this,arguments)}}(),defaultValue:nt==null||((hn=nt.relation)===null||hn===void 0||((Ln=hn[Ue])===null||Ln===void 0))?void 0:Ln.weight,style:{height:43,lineHeight:"43px",width:Ue!=(it==null||(($t=it.ec_course_targets)===null||$t===void 0)?void 0:$t.length)-1?"75px":"74px"}})}))}))})))))))}var ge=se,Te=o("zmGA"),qe=o.n(Te),ut=o("g+eg"),At=function(Rt){var de,Me,Ne,Ke,He,Se=Rt.user,ke={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,sort_by:null,direction:null,id:null},Le=Object(a.useState)(ke),Be=Object(n.a)(Le,2),Re=Be[0],We=Be[1],Qe=Object(a.useState)([]),Ve=Object(n.a)(Qe,2),at=Ve[0],yt=Ve[1],ft=Object(a.useState)([]),Tt=Object(n.a)(ft,2),Nt=Tt[0],_t=Tt[1],nn=Object(a.useState)([]),Gt=Object(n.a)(nn,2),Ut=Gt[0],Qt=Gt[1],Vt=Object(a.useState)([]),jt=Object(n.a)(Vt,2),ln=jt[0],Ft=jt[1],ze=Object(a.useState)([]),ct=Object(n.a)(ze,2),it=ct[0],zt=ct[1],$e=Object(a.useState)(),Ye=Object(n.a)($e,2),et=Ye[0],Lt=Ye[1],on=Object(a.useState)(),bn=Object(n.a)(on,2),fn=bn[0],vn=bn[1],Jt=Object(a.useState)([]),an=Object(n.a)(Jt,2),En=an[0],Zt=an[1],Sn=Object(a.useState)(!1),yn=Object(n.a)(Sn,2),wn=yn[0],xn=yn[1],An=Object(a.useState)([]),Rn=Object(n.a)(An,2),Nn=Rn[0],Dn=Rn[1],vt=Object(a.useState)(!1),pe=Object(n.a)(vt,2),Je=pe[0],ot=pe[1],st=Object(a.useRef)(),Pt=Object(a.useState)(!1),Ot=Object(n.a)(Pt,2),gt=Ot[0],Z=Ot[1],xe=Object(a.useState)([]),fe=Object(n.a)(xe,2),be=fe[0],Ce=fe[1],Ue=Object(ae.h)(),he=Object(a.useState)(!1),Ie=Object(n.a)(he,2),nt=Ie[0],Tn=Ie[1],hn=Object(a.useState)(!1),Ln=Object(n.a)(hn,2),$t=Ln[0],mt=Ln[1],Dt=Object(a.useState)([]),_n=Object(n.a)(Dt,2),Zn=_n[0],Ma=_n[1],$n=Object(a.useState)(""),Da=Object(n.a)($n,2),oa=Da[0],Kn=Da[1],ya=Object(a.useState)(!1),Oa=Object(n.a)(ya,2),wa=Oa[0],In=Oa[1],zn=Object(a.useState)({}),Bn=Object(n.a)(zn,2),rn=Bn[0],qn=Bn[1],sa=Object(a.useState)([]),xa=Object(n.a)(sa,2),Xa=xa[0],La=xa[1],Ra=Object(a.useState)("1"),la=Object(n.a)(Ra,2),Xn=la[0],ea=la[1],fa=Object(a.useState)({name:"",filename:"",editOffice:"view",type:"",className:"",data:"",close:!0,hasMask:!0,style:{position:"fixed",zIndex:9999,background:"rgba(0,0,0,.7)"},monacoEditor:{value:"",language:"",theme:"vs",options:{readOnly:!0}}}),Ta=Object(n.a)(fa,2),ta=Ta[0],ha=Ta[1],pa=Object(a.useState)({}),na=Object(n.a)(pa,2),ma=na[0],Ua=na[1],ka=Object(a.useState)(!1),aa=Object(n.a)(ka,2),Ca=aa[0],_a=aa[1],Sa=Object(a.useState)(),Fa=Object(n.a)(Sa,2),jn=Fa[0],Ba=Fa[1],Ha=b.a.useForm(),Aa=Object(n.a)(Ha,1),ua=Aa[0],va=Object(a.useState)(!1),Wa=Object(n.a)(va,2),Ya=Wa[0],ia=Wa[1],Bt=Object(a.useState)(!1),kt=Object(n.a)(Bt,2),un=kt[0],Cn=kt[1];Object(a.useEffect)(function(){var _;Se!=null&&(_=Se.userInfo)!==null&&_!==void 0&&_.school_id&&li()},[Se==null||((de=Se.userInfo)===null||de===void 0)?void 0:de.school_id]);var Hn=function(){var _=Object(h.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:ut.a.setItem(Se==null||((d=Se.userInfo)===null||d===void 0)?void 0:d.login,[O==null?void 0:O.ec_major_school_id,O==null?void 0:O.ec_year_id]),za(O),Ia(O),Ga(O),Ja(O),ca(O),Na(O),Za(O);case 8:case"end":return f.stop()}},L)}));return function(O){return _.apply(this,arguments)}}();function Ka(){Ft([]),zt([]),vn([]),Lt([]),Dn([]),Ba([]),Zt([])}var Na=function(){var _=Object(h.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Object(ne.a)("/api/ec_years/".concat(O.ec_year_id,"/graduation_subitems.json"),{method:"get"});case 2:d=f.sent,Zt((d==null?void 0:d.graduation_subitems)||[]);case 4:case"end":return f.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),za=function(){var _=Object(h.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Object(ne.a)("/api/ec_years/".concat(O.ec_year_id,"/ec_courses/get_course_teachers.json"),{method:"get",params:O});case 2:d=f.sent,Ft(d==null?void 0:d.data);case 4:case"end":return f.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),Ia=function(){var _=Object(h.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Object(ne.a)("/api/ec_courses/".concat(O.id,"/ec_course_standards.json"),{method:"get",params:{ec_course_id:O==null?void 0:O.id}});case 2:d=f.sent,zt(d==null?void 0:d.data);case 4:case"end":return f.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),Ga=function(){var _=Object(h.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Object(ne.a)("/api/ec_courses/".concat(O.id,"/course_targets.json"),{method:"get",params:{ec_course_id:O==null?void 0:O.id}});case 2:d=f.sent,vn(d==null?void 0:d.course_targets),Lt(d==null?void 0:d.course_targets);case 5:case"end":return f.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),si={onRemove:function(){Ce([])},beforeUpload:function(L){if(console.log(L),(L==null?void 0:L.size)>1024*1024*50)return w.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var O=[];return O.push(L),Ce([].concat(O)),!1},fileList:be,accept:".xls,.xlsx"},Ja=function(){var _=Object(h.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Object(ne.a)("/api/ec_courses/".concat(O==null?void 0:O.id,"/course_evaluations.json"),{method:"get",params:{ec_course_id:O==null?void 0:O.id}});case 2:d=f.sent,Dn(d==null?void 0:d.course_evaluation_tops);case 4:case"end":return f.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),ca=function(){var _=Object(h.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Object(ne.a)("/api/ec_courses/".concat(O==null?void 0:O.id,"/evaluations.json"),{method:"get",params:{ec_course_id:O==null?void 0:O.id}});case 2:d=f.sent,Ba(d==null?void 0:d.data);case 4:case"end":return f.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),li=function(){var _=Object(h.a)(s.a.mark(function L(){var O,d,x,f,I,F,H,te,ie,ve,je,Pe,De,lt,xt,Ze,wt,dt,bt,St,It,Mt;return s.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(ne.a)("/api/schools/".concat(Se==null||((O=Se.userInfo)===null||O===void 0)?void 0:O.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(Ze=Ct.sent,!((Ze==null||((d=Ze.data)===null||d===void 0)?void 0:d.length)<=0)){Ct.next=7;break}return mt(!0),We(Object(D.a)({},Re)),Ct.abrupt("return");case 7:return yt((Ze==null?void 0:Ze.data)||[]),wt=ut.a.getItem(Se==null||((x=Se.userInfo)===null||x===void 0)?void 0:x.login),dt=Number(Ue==null||((f=Ue.query)===null||f===void 0)?void 0:f.ec_major_school_id)||wt[0]||(Ze==null||((I=Ze.data)===null||I===void 0||((F=I[0])===null||F===void 0))?void 0:F.ec_major_school_id),Ct.next=12,Object(ne.a)("/api/ec_major_schools/".concat(dt,"/ec_years/get_year_list.json"),{method:"get"});case 12:if(bt=Ct.sent,!((bt==null||((H=bt.data)===null||H===void 0)?void 0:H.length)<=0)){Ct.next=18;break}return mt(!0),Re.ec_year_id="",We(Object(D.a)({},Re)),Ct.abrupt("return");case 18:return _t((bt==null?void 0:bt.data)||[]),St=Number(Ue==null||((te=Ue.query)===null||te===void 0)?void 0:te.ec_year_id)||wt[1]||(bt==null||((ie=bt.data)===null||ie===void 0||((ve=ie[0])===null||ve===void 0))?void 0:ve.ec_year_id),Ct.next=22,Object(ne.a)("/api/ec_years/".concat(St,"/ec_courses/get_courses.json"),{method:"get"});case 22:return It=Ct.sent,Qt((It==null?void 0:It.data)||[]),Ct.next=26,Object(ne.a)("/api/ec_years/".concat(St,"/graduation_subitems.json"),{method:"get"});case 26:if(Mt=Ct.sent,Re.ec_major_school_id=dt,Re.ec_year_id=St,Re.id=Ue!=null&&(je=Ue.query)!==null&&je!==void 0&&je.course?Number(Ue==null||((Pe=Ue.query)===null||Pe===void 0)?void 0:Pe.course):It==null||((De=It.data)===null||De===void 0||((lt=De[0])===null||lt===void 0))?void 0:lt.id,!((It==null||((xt=It.data)===null||xt===void 0)?void 0:xt.length)<=0)){Ct.next=35;break}return mt(!0),Ct.abrupt("return");case 35:mt(!1);case 36:Zt((Mt==null?void 0:Mt.graduation_subitems)||[]),We(Re),Hn(Re),console.log("ec_major_school_id",dt);case 40:case"end":return Ct.stop()}},L)}));return function(){return _.apply(this,arguments)}}(),fi=function(){var _=Object(h.a)(s.a.mark(function L(O){var d,x,f,I,F,H;return s.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Object(ne.a)("/api/ec_major_schools/".concat(O,"/ec_years/get_year_list.json"),{method:"get"});case 2:if(H=ie.sent,!((H==null||((d=H.data)===null||d===void 0)?void 0:d.length)<=0)){ie.next=10;break}return mt(!0),Re.ec_year_id="",We(Object(D.a)({},Re)),ie.abrupt("return");case 10:mt(!1);case 11:Re.ec_major_school_id=O,Re.ec_year_id=H==null||((x=H.data)===null||x===void 0||((f=x[0])===null||f===void 0))?void 0:f.ec_year_id,_t((H==null?void 0:H.data)||[]),We(Re),ui(H==null||((I=H.data)===null||I===void 0||((F=I[0])===null||F===void 0))?void 0:F.ec_year_id);case 16:case"end":return ie.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),ui=function(){var _=Object(h.a)(s.a.mark(function L(O){var d,x,f,I;return s.a.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,Object(ne.a)("/api/ec_years/".concat(O,"/ec_courses/get_courses.json"),{method:"get"});case 2:if(I=H.sent,!((I==null||((d=I.data)===null||d===void 0)?void 0:d.length)<=0)){H.next=11;break}return mt(!0),Re.id="",We(Object(D.a)({},Re)),Ka(),H.abrupt("return");case 11:mt(!1);case 12:Re.ec_year_id=O,Re.id=I==null||((x=I.data)===null||x===void 0||((f=x[0])===null||f===void 0))?void 0:f.id,Qt((I==null?void 0:I.data)||[]),We(Re),Hn(Re);case 17:case"end":return H.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),Qa=function(){var _=Object(h.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Object(ne.a)("/api/ec_years/1/ec_courses/get_formulas.json",{method:"get",params:{ec_course_id:O}});case 2:d=f.sent,We(Re),qn(d);case 5:case"end":return f.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),Za=function(){var _=Object(h.a)(s.a.mark(function L(O){var d;return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,Object(ne.a)("/api/ec_courses/".concat(O==null?void 0:O.id,"/ec_points.json"),{method:"get",params:{ec_course_id:O==null?void 0:O.id}});case 2:d=f.sent,We(Re),Ma(d==null?void 0:d.data);case 5:case"end":return f.stop()}},L)}));return function(O){return _.apply(this,arguments)}}(),ci=function(L,O){if(Re.page=1,Re[O]=L,O==="ec_major_school_id"){fi(L);return}O==="ec_year_id"&&(We(Object(D.a)({},Re)),ui(L)),O==="id"&&(We(Object(D.a)({},Re)),Hn(Re))},K={beforeUpload:function(){var _=Object(h.a)(s.a.mark(function O(d){var x,f;return s.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(console.log(d),!((d==null?void 0:d.size)>1024*1024*50)){F.next=4;break}return w.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),F.abrupt("return",!1);case 4:return x=new FormData,x.append("file",d),F.next=8,Object(ne.a)("/api/ec_courses/".concat(Re==null?void 0:Re.id,"/ec_course_standards.json"),{method:"post",body:x},!0);case 8:return f=F.sent,Ia(Re),ca(Re),F.abrupt("return",!1);case 12:case"end":return F.stop()}},O)}));function L(O){return _.apply(this,arguments)}return L}(),fileList:[]};return t.a.createElement("div",{className:U.a.wrap},t.a.createElement("div",{className:U.a.title},"\u8BFE\u7A0B\u8BBE\u7F6E"),t.a.createElement("div",{style:{clear:"both",marginTop:"40px"}}),t.a.createElement("div",{className:U.a.control},t.a.createElement("div",{className:U.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),t.a.createElement(M.a,{style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:Re==null?void 0:Re.ec_major_school_id,onChange:function(L){return ci(L,"ec_major_school_id")}},at==null?void 0:at.map(function(_){return t.a.createElement(M.a.Option,{value:_.ec_major_school_id},_.name)})),t.a.createElement("div",{className:U.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),t.a.createElement(M.a,{disabled:$t&&Nt.length<=0,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:Re==null?void 0:Re.ec_year_id,onChange:function(L){return ci(L,"ec_year_id")}},Nt==null?void 0:Nt.map(function(_){return t.a.createElement(M.a.Option,{value:_.ec_year_id},_.year)})),t.a.createElement("div",{className:U.a.label},"\u8BFE\u7A0B"),t.a.createElement(M.a,{disabled:$t,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",value:Re==null?void 0:Re.id,onChange:function(L){return ci(L,"id")}},Ut==null?void 0:Ut.map(function(_){return t.a.createElement(M.a.Option,{value:_.id},_.name)}))),t.a.createElement("div",{className:U.a.title},"\u8BFE\u7A0B\u6559\u5E08"),t.a.createElement("div",{className:U.a.teachcount,style:{display:"flex",marginTop:20,marginBottom:16}},ln==null?void 0:ln.map(function(_,L){return t.a.createElement("div",{style:{display:"flex",marginLeft:L===0?"20px":"47px"}},t.a.createElement("img",{src:qe.a,style:{width:"50px",height:"50px",borderRadius:"50%",zIndex:0}}),t.a.createElement("div",{style:{marginLeft:"8px"}},t.a.createElement("p",{style:{marginBottom:"0px"}},_.name),t.a.createElement("p",{style:{marginTop:"10px",height:"22px",borderRadius:"0px 12px 12px 0px",background:"#DFEAFF",marginLeft:"-30px",lineHeight:"22px",paddingLeft:32,display:"inline-block",paddingRight:16,color:"#0152D9"}},_.pro)))})),t.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),t.a.createElement("div",{className:U.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u6807\u51C6",t.a.createElement("span",null,t.a.createElement(N.a,K,t.a.createElement(S.a,{disabled:$t,type:"primary",style:{marginRight:"20px"},onClick:function(){}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-shangchuan3"})," ","\u4E0A\u4F20\u8BFE\u7A0B\u6807\u51C6")))),t.a.createElement("div",{className:U.a.teachcount},t.a.createElement(j.a,{style:{marginTop:"20px",marginBottom:20,padding:"0px 20px"},dataSource:it,pagination:!1,columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",render:function(L,O,d){return Re.per_page*(Re.page-1)+d+1}},{title:"\u6587\u4EF6\u540D\u79F0",dataIndex:"name",width:"50%",key:"name"},{title:"\u4E0A\u4F20\u65F6\u95F4",dataIndex:"created_at",key:"created_at"},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",render:function(L,O,d){return t.a.createElement("div",null,t.a.createElement("i",{onClick:function(){console.log(L,O,d);var f=["office","pdf","image","other","video","audio","download"];if(!f.includes(O.file_type)){w.b.info("\u5F53\u524D\u7C7B\u578B\u6682\u4E0D\u652F\u6301\u9884\u89C8");return}ta.editOffice="view",ha(Object(D.a)(Object(D.a)({},ta),{},{filename:O.name,type:O.file_type,data:"/api/attachments/".concat(O.attachment_id)}))},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-chakansvg"}),t.a.createElement($.a,{title:"\u5728\u7EBF\u7F16\u8F91"},t.a.createElement("i",{onClick:Object(h.a)(s.a.mark(function x(){return s.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(!["xlsx","docx","pptx"].includes(O==null?void 0:O.type)){I.next=5;break}ta.editOffice="edit",ha(Object(D.a)(Object(D.a)({},ta),{},{filename:O.name,type:O.file_type,data:"/api/attachments/".concat(O.attachment_id)})),I.next=7;break;case 5:return w.b.info("\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u7F16\u8F91"),I.abrupt("return");case 7:case"end":return I.stop()}},x)})),style:{cursor:"pointer",color:"#0152d9",marginLeft:"5px"},className:"iconfont icon-bianji10"})),t.a.createElement("i",{onClick:function(){m.a.confirm({title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F",icon:t.a.createElement(Oe.a,null),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var f=Object(h.a)(s.a.mark(function F(){var H;return s.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Object(ne.a)("/api/ec_courses/".concat(Re==null?void 0:Re.id,"/ec_course_standards/").concat(L),{method:"delete"});case 2:H=ie.sent,H&&(w.b.info("\u5220\u9664\u6210\u529F"),Hn(Re));case 4:case"end":return ie.stop()}},F)}));function I(){return f.apply(this,arguments)}return I}(),onCancel:function(){}})},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-shanchu9 pl10"}))}}]})),t.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),t.a.createElement("div",{className:U.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u76EE\u6807",t.a.createElement("span",null,t.a.createElement(S.a,{disabled:$t,type:"primary",style:{marginRight:"20px"},onClick:Object(h.a)(s.a.mark(function _(){var L;return s.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Ga(Re);case 2:(et==null?void 0:et.length)<=0&&(L={id:0,content:"",weight:"",standard_grade:"",graduation_subitem_ids:[""]},et.push(L),Lt(Object(c.a)(et))),xn(!0);case 4:case"end":return d.stop()}},_)}))},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-bianji7"})," ","\u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807"))),t.a.createElement("div",{className:U.a.teachcount},t.a.createElement(j.a,{style:{marginTop:"20px",marginBottom:20,padding:"0px 20px"},dataSource:fn,bordered:!0,pagination:!1,columns:[{title:"\u5206\u9879",dataIndex:"name",key:"name",render:function(L,O,d){return Re.per_page*(Re.page-1)+d+1}},{title:"\u8BFE\u7A0B\u76EE\u6807",dataIndex:"content",width:"40%",key:"content"},{title:"\u6743\u91CD",dataIndex:"weight",key:"weight"},{title:"\u8FBE\u6210\u5206\u503C",dataIndex:"standard_grade",key:"standard_grade"},{title:"\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9",dataIndex:"graduation_subitem",key:"graduation_subitem",render:function(L,O,d){return t.a.createElement("div",null,t.a.createElement(i.b,{itemLayout:"horizontal",dataSource:L,renderItem:function(f){return t.a.createElement(i.b.Item,null,t.a.createElement(i.b.Item.Meta,{style:{fontSize:14},description:"\u6307\u6807\u70B9"+(f==null?void 0:f.index)+"\uFF1A"+(f==null?void 0:f.content)}))}}))}}]})),t.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),t.a.createElement("div",{className:U.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u77E5\u8BC6\u70B9\u4E0E\u6559\u5B66\u5185\u5BB9",t.a.createElement("span",null,t.a.createElement(S.a,{disabled:$t,type:"primary",style:{marginRight:"20px"},onClick:function(){ia(!0),Kn("")}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-tianjiatimu"})," ","\u65B0\u589E\u77E5\u8BC6\u70B9"))),t.a.createElement(j.a,{style:{marginTop:"20px",marginBottom:20,padding:"0px 20px"},dataSource:Zn,bordered:!0,pagination:!1,columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",render:function(L,O,d){return Re.per_page*(Re.page-1)+d+1}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"name",width:"40%",key:"name"},{title:"\u6559\u5B66\u76EE\u7684",dataIndex:"target",key:"target"},{title:"\u6559\u5B66\u5185\u5BB9",dataIndex:"content",key:"content"},{title:"\u91CD\u70B9\u96BE\u70B9",dataIndex:"problem",key:"problem"},{title:"\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9",dataIndex:"ec_course_targets",key:"ec_course_targets",render:function(L,O,d){return t.a.createElement("div",null,t.a.createElement(i.b,{itemLayout:"horizontal",dataSource:L,renderItem:function(f){return t.a.createElement(i.b.Item,null,t.a.createElement(i.b.Item.Meta,{style:{fontSize:14},description:f==null?void 0:f.name}))}}))}},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",render:function(L,O,d){return t.a.createElement("div",null,t.a.createElement("a",{onClick:function(){m.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var f=Object(h.a)(s.a.mark(function F(){var H;return s.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Object(ne.a)("/api/ec_courses/".concat(Re==null?void 0:Re.id,"/ec_points/").concat(L,".json"),{method:"delete"});case 2:H=ie.sent,H.status===0&&(w.b.info("\u5220\u9664\u6210\u529F"),Za(Re));case 4:case"end":return ie.stop()}},F)}));function I(){return f.apply(this,arguments)}return I}()})},style:{marginRight:5}},"\u5220\u9664"),t.a.createElement("a",{onClick:function(){ia(!0),Kn(L),ua.setFieldsValue({name:O.name,target:O.target,content:O.content,problem:O.problem,ec_course_target_ids:O.ec_course_targets.map(function(f){return f.id})})}},"\u7F16\u8F91"))}}]}),t.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),t.a.createElement("div",{className:U.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8003\u6838\u65B9\u5F0F\u4E0E\u6570\u636E\u6765\u6E90",t.a.createElement("span",null,t.a.createElement(S.a,{disabled:$t,type:"primary",style:{marginRight:"20px"},onClick:function(){st.current="",ot(!0)}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-tianjiatimu"})," ","\u6DFB\u52A0\u8BFE\u5802\u6570\u636E"),t.a.createElement(S.a,{disabled:$t,style:{marginRight:"20px"},onClick:function(){st.current="",Z(!0)}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-piliangdaoru"})," ","\u5BFC\u5165\u6570\u636E"))),t.a.createElement("div",{className:U.a.teachcount},!Nn&&t.a.createElement(V.a,null),Nn&&t.a.createElement("div",{style:{padding:"0px 20px",marginBottom:"20px",fontSize:"14px"}},t.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"58px",border:"1px solid #E0E2EC",marginTop:"20px"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6570\u636E\u6765\u6E90"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"24%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6559\u5B66\u8BFE\u5802/\u6570\u636E\u6587\u4EF6"),t.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"28%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8003\u6838\u5185\u5BB9"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"28%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8003\u6838\u77E5\u8BC6\u70B9"),t.a.createElement("div",{style:{width:"14%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6EE1\u5206\u503C")),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u72B6\u6001"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u540C\u6B65/\u5BFC\u5165\u65F6\u95F4"),t.a.createElement("div",{style:{width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u64CD\u4F5C")),t.a.createElement("div",{style:{border:"1px solid #E0E2EC",marginTop:-1}},Nn==null?void 0:Nn.map(function(_){var L,O,d,x,f,I,F;return t.a.createElement("div",{style:{display:"flex",width:"100%",borderBottom:"1px solid #E0E2EC"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},_==null?void 0:_.name),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"24%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},(_==null?void 0:_.name)==="\u5BFC\u5165\u6570\u636E"&&t.a.createElement("a",{href:me.a.API_SERVER+"/api/ec_courses/1/course_evaluations/download?id=".concat(_==null||((L=_.contents)===null||L===void 0||((O=L[0])===null||O===void 0))?void 0:O.attachment_id)},_==null||((d=_.contents)===null||d===void 0||((x=d[0])===null||x===void 0))?void 0:x.content),(_==null?void 0:_.name)==="\u5173\u8054\u8BFE\u5802"&&(_==null||((f=_.contents)===null||f===void 0)?void 0:f.map(function(H){return t.a.createElement("a",{style:{display:"flex"},href:H==null?void 0:H.first_category_url,target:"_blank"},H==null?void 0:H.content)}))),t.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC",flexDirection:"column"}},(_==null||((I=_.evaluation_methods)===null||I===void 0)?void 0:I.length)<=0&&t.a.createElement("div",{style:{height:"100%",width:"42%",display:"flex",flexShrink:0,borderRight:"1px solid #E0E2EC"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"56%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--"),t.a.createElement("div",{style:{width:"14%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"--")),_==null||((F=_.evaluation_methods)===null||F===void 0)?void 0:F.map(function(H,te){var ie,ve,je,Pe,De,lt,xt;return t.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"30%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderBottom:!(te===(_==null||((ie=_.evaluation_methods)===null||ie===void 0)?void 0:ie.length)-1)&&"1px solid #E0E2EC"}},H==null?void 0:H.work_name),t.a.createElement("div",{style:{width:"28%"}},(H==null||((ve=H.subitems)===null||ve===void 0)?void 0:ve.length)<=0&&t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30}},"--"),H==null||((je=H.evaluation_method_contents)===null||je===void 0)?void 0:je.map(function(Ze,wt){var dt;return t.a.createElement($.a,{title:Ze==null?void 0:Ze.name},t.a.createElement("div",{className:U.a.textone,style:{borderRight:"1px solid #E0E2EC",borderBottom:!(te===(_==null||((dt=_.evaluation_methods)===null||dt===void 0)?void 0:dt.length)-1&&wt===(H==null?void 0:H.evaluation_method_contents.length)-1)&&"1px solid #E0E2EC",marginTop:-1,lineHeight:"30px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30,paddingLeft:"5px"}},Ze==null?void 0:Ze.name))})),t.a.createElement("div",{style:{width:"28%"}},(H==null||((Pe=H.subitems)===null||Pe===void 0)?void 0:Pe.length)<=0&&t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30}},"--"),H==null||((De=H.evaluation_method_contents)===null||De===void 0)?void 0:De.map(function(Ze,wt){var dt;return t.a.createElement($.a,{title:Ze==null?void 0:Ze.ec_points},t.a.createElement("div",{className:U.a.textone,style:{borderRight:"1px solid #E0E2EC",borderBottom:!(te===(_==null||((dt=_.evaluation_methods)===null||dt===void 0)?void 0:dt.length)-1&&wt===(H==null?void 0:H.evaluation_method_contents.length)-1)&&"1px solid #E0E2EC",marginTop:-1,lineHeight:"30px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30,paddingLeft:"5px"}},(Ze==null?void 0:Ze.ec_points)||"- -"))})),t.a.createElement("div",{style:{width:"14%"}},(H==null||((lt=H.subitems)===null||lt===void 0)?void 0:lt.length)<=0&&t.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30}},"--"),H==null||((xt=H.evaluation_method_contents)===null||xt===void 0)?void 0:xt.map(function(Ze,wt){var dt;return t.a.createElement($.a,{title:Ze==null?void 0:Ze.score},t.a.createElement("div",{className:U.a.textone,style:{borderBottom:!(te===(_==null||((dt=_.evaluation_methods)===null||dt===void 0)?void 0:dt.length)-1&&wt===(H==null?void 0:H.evaluation_method_contents.length)-1)&&"1px solid #E0E2EC",marginTop:-1,lineHeight:"30px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:30,paddingLeft:"5px"}},Ze==null?void 0:Ze.score))})))})),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#07C160"}},_==null?void 0:_.status),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},_==null?void 0:_.update_at),t.a.createElement("div",{style:{width:"10%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},(_==null?void 0:_.status)!="\u5DF2\u5BFC\u5165"&&t.a.createElement("i",{onClick:Object(h.a)(s.a.mark(function H(){var te;return s.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ve.next=2,Object(ne.a)("/api/ec_courses/".concat(Re.id,"/course_evaluations/update_online_data.json"),{method:"get",params:{id:_.id}});case 2:te=ve.sent,te&&(w.b.info("\u540C\u6B65\u6210\u529F"),Hn(Re));case 4:case"end":return ve.stop()}},H)})),style:{marginRight:"15px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-tongbushuju"}),t.a.createElement("i",{onClick:function(){m.a.confirm({title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F",icon:t.a.createElement(Oe.a,null),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var te=Object(h.a)(s.a.mark(function ve(){var je;return s.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,Object(ne.a)("/api/ec_courses/".concat(Re.id,"/course_evaluations/deletes.json"),{method:"delete",body:{id:_.id}});case 2:je=De.sent,je&&(w.b.info("\u5220\u9664\u6210\u529F"),Hn(Re));case 4:case"end":return De.stop()}},ve)}));function ie(){return te.apply(this,arguments)}return ie}(),onCancel:function(){}})},style:{marginRight:"15px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-shanchu9"}),t.a.createElement("i",{onClick:function(){st.current=_.id,(_==null?void 0:_.status)!="\u5DF2\u5BFC\u5165"?(La(_),ot(!0)):Z(!0)},style:{marginRight:"5px",color:"#0152d9",cursor:"pointer"},className:"iconfont icon-bianji8"})))})))),t.a.createElement("div",{style:{height:"20px",background:"#fafafa"}}),t.a.createElement("div",{className:U.a.title,style:{display:"flex",justifyContent:"space-between"}},"\u8BFE\u7A0B\u76EE\u6807\u8FBE\u6210\u5EA6",t.a.createElement("span",null,t.a.createElement(S.a,{disabled:$t,style:{marginRight:"20px"},onClick:function(){_a(!0)}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-kechengshezhi"})," ","\u8BBE\u7F6E\u8003\u6838\u5360\u6BD4"),t.a.createElement(S.a,{disabled:$t,style:{marginRight:"20px"},onClick:function(){Qa(Re.id),In(!0)}},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-jisuangongshi"})," ","\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"),t.a.createElement(S.a,{type:"primary",disabled:$t,style:{marginRight:"20px"},onClick:Object(h.a)(s.a.mark(function _(){var L;return s.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Object(ne.a)("/api/ec_courses/".concat(Re.id,"/evaluations/evaluation_data.json"),{method:"post"});case 2:L=d.sent,L&&(w.b.info("\u8BA1\u7B97\u5B8C\u6210"),ca(Re));case 4:case"end":return d.stop()}},_)}))},t.a.createElement("i",{style:{marginRight:"8px"},className:"iconfont icon-jisuan"})," ","\u8BA1\u7B97"))),t.a.createElement("div",{style:{padding:"0px 20px"},className:U.a.teachcount},!jn&&t.a.createElement(V.a,null),jn&&t.a.createElement("div",{style:{fontSize:"14px"}},t.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"58px",border:"1px solid #E0E2EC",marginTop:"20px"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"4%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u5206\u9879"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"15%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BFE\u7A0B\u76EE\u6807"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"3%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u6743\u91CD"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"9%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"),t.a.createElement("div",{style:{height:"100%",width:"40%",display:"flex",flexDirection:"column",flexShrink:0,borderRight:"1px solid #E0E2EC"}},t.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0,height:"100%"}},t.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"\u8003\u6838\u65B9\u5F0F"),t.a.createElement("div",{style:{width:"12.5%",borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",textAlign:"center"}},"\u8003\u6838\u65B9\u5F0F\u5360\u6BD4"),t.a.createElement("div",{style:{width:"45%",height:"100%"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:"100%"}},"\u8003\u6838\u5185\u5BB9")),t.a.createElement("div",{style:{width:"12.5%",height:"100%"}},t.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:"100%",textAlign:"center"}},"\u8003\u6838\u5185\u5BB9\u5360\u6BD4")))),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",textAlignLast:"center"}},"\u8FBE\u6210\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"7%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",textAlignLast:"center"}},"\u5B9E\u9645\u5206\u503C\uFF08\u767E\u5206\u5236\uFF09"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"6%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BC4\u4EF7\u7ED3\u679C"),t.a.createElement("div",{style:{width:"8%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u8BA1\u7B97\u65F6\u95F4")),t.a.createElement("div",{style:{borderLeft:"1px solid #E0E2EC"}},jn==null||((Me=jn.ec_course_target)===null||Me===void 0)?void 0:Me.map(function(_,L){var O,d,x,f,I,F;return t.a.createElement("div",{style:{height:"100%",display:"flex"}},t.a.createElement("div",{style:{width:"4%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},L+1),t.a.createElement("div",{className:U.a.textone,style:{width:"15%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,alignItems:"center",justifyContent:"center",flexShrink:0,maxHeight:(_==null||((O=_.evaluation)===null||O===void 0)?void 0:O.length)<=0&&43,lineHeight:(_==null||((d=_.evaluation)===null||d===void 0)?void 0:d.length)<=0&&"43px",display:(_==null||((x=_.evaluation)===null||x===void 0)?void 0:x.length)!=0&&"flex",paddingLeft:10}},t.a.createElement($.a,{title:_.content},_.content)),t.a.createElement("div",{style:{width:"3%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},_.weights),t.a.createElement("div",{style:{width:"9%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},_==null||((f=_.graduation_subitem)===null||f===void 0)?void 0:f.map(function(H){return H.name}).toString()),t.a.createElement("div",{style:{height:"100%",width:"40%",display:"flex",flexDirection:"column",flexShrink:0,borderRight:"1px solid #E0E2EC"}},(_==null||((I=_.evaluation)===null||I===void 0)?void 0:I.length)<=0&&t.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},t.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"--"),t.a.createElement("div",{style:{width:"12.6%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column"}},"--"),t.a.createElement("div",{style:{width:"45.3%"}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--")),t.a.createElement("div",{style:{width:"12.5%"}},t.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--"))),_==null||((F=_.evaluation)===null||F===void 0)?void 0:F.map(function(H,te){var ie,ve,je,Pe;return t.a.createElement("div",{style:{width:"100%",display:"flex",flexShrink:0}},t.a.createElement("div",{style:{width:"30%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},(H==null?void 0:H.work_name)||"--"),t.a.createElement("div",{style:{width:"12.5%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},(H==null?void 0:H.weight)||"--"),t.a.createElement("div",{style:{width:"45%"}},(H==null||((ie=H.subitems)===null||ie===void 0)?void 0:ie.length)<=0&&t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:43}},"--"),H==null||((ve=H.subitems)===null||ve===void 0)?void 0:ve.map(function(De,lt){return t.a.createElement($.a,{title:De==null?void 0:De.name},t.a.createElement("div",{className:U.a.textone,style:{borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,lineHeight:"43px",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43,paddingLeft:"5px"}},De==null?void 0:De.name))})),t.a.createElement("div",{style:{width:"12.5%"}},(H==null||((je=H.subitems)===null||je===void 0)?void 0:je.length)<=0&&t.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},"--"),H==null||((Pe=H.subitems)===null||Pe===void 0)?void 0:Pe.map(function(De,lt){return t.a.createElement("div",{style:{borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,flexDirection:"column",height:43}},De==null?void 0:De.weight)})))})),t.a.createElement("div",{style:{width:"8%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},_==null?void 0:_.standard_grade),t.a.createElement("div",{style:{width:"7%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},_==null?void 0:_.actual_grade),t.a.createElement("div",{style:{width:"6%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:_!=null&&_.status?"#07C160":"#E30000"}},_!=null&&_.status?"\u8FBE\u6210":"\u672A\u8FBE\u6210"),t.a.createElement("div",{style:{width:"8%",borderRight:"1px solid #E0E2EC",borderBottom:"1px solid #E0E2EC",marginTop:-1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,textAlign:"center"}},jn==null?void 0:jn.evaluation_time))})),t.a.createElement("div",{style:{display:"flex",height:"58px",border:"1px solid #E0E2EC",marginTop:-1}},t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"4%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},"\u603B\u5206"),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"75%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}}),t.a.createElement("div",{style:{borderRight:"1px solid #E0E2EC",width:"7%",textAlign:"center",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"}},jn==null?void 0:jn.total_score)))),t.a.createElement(Fe,{courseId:st.current,isshow:Je,setishow:ot,items:Xa,points:Zn,modalparams:Re,getevaluations:ca,getcourse_evaluations:Ja}),t.a.createElement(ge,{isshow:Ca,setishow:_a,modalparams:Re,getcourse_evaluations:ca}),t.a.createElement(m.a,{title:"\u7F16\u8F91\u8BFE\u7A0B\u76EE\u6807",visible:wn,wrapClassName:U.a.modalWrapContainer,width:918,okText:"\u4FDD\u5B58",onOk:Object(h.a)(s.a.mark(function _(){var L;return s.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!((et==null?void 0:et.filter(function(x){var f,I;return!x.content||!x.weight||!x.standard_grade||(x==null||((f=x.graduation_subitem_ids)===null||f===void 0)?void 0:f.length)<=0||(x==null||((I=x.graduation_subitem_ids)===null||I===void 0)?void 0:I.filter(function(F){return!F}).length)>0}).length)>0)){d.next=3;break}return w.b.info("\u8BF7\u586B\u5199\u6216\u5220\u9664\u6CA1\u6709\u586B\u5165\u6570\u503C\u7684\u6570\u636E"),d.abrupt("return");case 3:return d.next=5,Object(ne.a)("/api/ec_courses/".concat(Re==null?void 0:Re.id,"/course_targets"),{method:"POST",body:{course_targets:et}});case 5:L=d.sent,(L==null?void 0:L.status)===0&&(xn(!1),Ga(Re),ca(Re));case 7:case"end":return d.stop()}},_)})),onCancel:function(){xn(!1),Ga(Re)}},t.a.createElement("div",{style:{color:"#464F66",fontSize:14,paddingLeft:40,paddingBottom:12}},t.a.createElement("div",null,"\u8BF4\u660E\uFF1A"),t.a.createElement("div",null,"1.\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u4E4B\u548C\u5E94\u7B49\u4E8E1\uFF1B",t.a.createElement("br",null),"2.\u53EF\u5728\u8BBE\u7F6E\u8BFE\u7A0B\u8FBE\u6210\u5EA6\u8BA1\u7B97\u516C\u5F0F\u65F6\uFF0C\u9009\u62E9\u662F\u5426\u5C06\u8BFE\u7A0B\u76EE\u6807\u7684\u6743\u91CD\u53C2\u4E0E\u5230\u8BA1\u7B97\u4E2D\u3002")),t.a.createElement("div",{style:{display:"flex",background:"#F5F5F5",height:"38px",alignItems:"center",padding:"0px 10px"}},t.a.createElement("span",{style:{flex:1}},"\u5206\u9879"),t.a.createElement("span",{style:{flex:3}},t.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u8BFE\u7A0B\u76EE\u6807"),t.a.createElement("span",{style:{flex:2}},t.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u6743\u91CD"),t.a.createElement("span",{style:{flex:2}},t.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*"),"\u8FBE\u6210\u5206\u503C\uFF08\u5206\uFF09")),et==null?void 0:et.map(function(_,L){var O;return t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",background:"#EEF2F8",height:"62px",alignItems:"center",padding:"0px 10px"}},t.a.createElement("span",{style:{flex:1}},L+1),t.a.createElement("span",{style:{flex:3,padding:"0px 10px"}},t.a.createElement(l.a,{onChange:function(x){_.content=x.target.value,Lt(Object(c.a)(et))},value:_==null?void 0:_.content})),t.a.createElement("span",{style:{flex:2}},t.a.createElement(E.a,{min:0,max:1,step:.1,onChange:function(x){_.weight=x,Lt(Object(c.a)(et))},value:_==null?void 0:_.weight})),t.a.createElement("span",{style:{flex:2}},t.a.createElement(E.a,{min:0,max:100,onChange:function(x){_.standard_grade=x,Lt(Object(c.a)(et))},value:_==null?void 0:_.standard_grade}),t.a.createElement($.a,{title:"\u65B0\u589E\u8BFE\u7A0B\u76EE\u6807"},t.a.createElement("i",{style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-xinzeng",onClick:Object(h.a)(s.a.mark(function d(){var x;return s.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:x={id:0,content:"",weight:"",standard_grade:"",graduation_subitem_ids:[""]},et.push(x),Lt(Object(c.a)(et));case 3:case"end":return I.stop()}},d)}))})),L!==0&&t.a.createElement($.a,{title:"\u5220\u9664"},t.a.createElement("i",{onClick:Object(h.a)(s.a.mark(function d(){return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:et.splice(L,1),Lt(Object(c.a)(et));case 2:case"end":return f.stop()}},d)})),style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-shanchu9"})))),t.a.createElement("div",{style:{display:"flex",padding:"0px 10px"}},t.a.createElement("span",{style:{flex:1}}),t.a.createElement("span",{style:{flex:3}}," ",t.a.createElement("span",{style:{color:"#EE0A24",marginRight:"5px"}},"*")," ","\u5BF9\u5E94\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9"," "),t.a.createElement("span",{style:{flex:2}}),t.a.createElement("span",{style:{flex:2}})),_==null||((O=_.graduation_subitem_ids)===null||O===void 0)?void 0:O.map(function(d,x){return t.a.createElement("div",{style:{display:"flex",height:"40px",alignItems:"center",padding:"0px 10px"}},t.a.createElement("span",{style:{flex:1}}),t.a.createElement("span",{style:{flex:3,display:"flex",alignItems:"center"}},t.a.createElement(M.a,{value:d,getPopupContainer:function(I){return I.parentNode},onChange:function(I){_.graduation_subitem_ids[x]=I,Lt(Object(c.a)(et))},style:{width:"320px"}},En==null?void 0:En.map(function(f,I){return t.a.createElement(M.a.Option,{disabled:_.graduation_subitem_ids.includes(f==null?void 0:f.id),value:f==null?void 0:f.id,title:"\u6307\u6807\u70B9"+(f==null?void 0:f.index)+"\uFF1A"+(f==null?void 0:f.content)},"\u6307\u6807\u70B9",f==null?void 0:f.index,"\uFF1A",f==null?void 0:f.content)})),t.a.createElement($.a,{title:"\u65B0\u589E\u6307\u6807\u70B9"},t.a.createElement("i",{style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-xinzeng",onClick:Object(h.a)(s.a.mark(function f(){return s.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:_==null||_.graduation_subitem_ids.push(""),Lt(Object(c.a)(et));case 2:case"end":return F.stop()}},f)}))})),x!==0&&t.a.createElement($.a,{title:"\u5220\u9664"},t.a.createElement("i",{onClick:Object(h.a)(s.a.mark(function f(){return s.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:_.graduation_subitem_ids.splice(x,1),Lt(Object(c.a)(et));case 2:case"end":return F.stop()}},f)})),style:{color:"#0152D9",cursor:"pointer",marginLeft:"10px"},className:"iconfont icon-shanchu9"}))),t.a.createElement("span",{style:{flex:2}}),t.a.createElement("span",{style:{flex:1}}))}))})),t.a.createElement(m.a,{title:"\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F",visible:wa,width:918,className:U.a.modalWrapContainer,onCancel:function(){In(!1)},onOk:Object(h.a)(s.a.mark(function _(){var L,O,d,x,f;return s.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,Object(ne.a)("/api/ec_years/1/ec_courses/save_formulas.json",{method:"post",body:{ec_course_id:Re.id,ec_course_target_formula_id:rn==null||((L=rn.ec_course_target_formulas.filter(function(H){return H.checked}))===null||L===void 0||((O=L[0])===null||O===void 0))?void 0:O.id,ec_course_formula_id:rn==null||((d=rn.ec_course_formulas.filter(function(H){return H.checked}))===null||d===void 0||((x=d[0])===null||x===void 0))?void 0:x.id}});case 2:f=F.sent,f&&(In(!1),Qa(Re.id));case 4:case"end":return F.stop()}},_)}))},t.a.createElement("div",{style:{padding:"16px 40px"}},t.a.createElement(e.a,{activeKey:Xn,onChange:function(L){ea(L)}},t.a.createElement(e.a.TabPane,{key:1,tab:"\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C"}),t.a.createElement(e.a.TabPane,{key:2,tab:"\u8BFE\u7A0B\u603B\u5206"}))),Xn==="1"&&t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",height:38,background:"#F5F5F5",lineHeight:"38px",padding:"0px 40px"}},t.a.createElement("span",{style:{flex:1,marginRight:"30px"}},"\u8BFE\u7A0B\u76EE\u6807\u5B9E\u9645\u5206\u503C\u8BA1\u7B97\u516C\u5F0F"),t.a.createElement("span",{style:{width:185}},"\u64CD\u4F5C")),rn==null||((Ne=rn.ec_course_target_formulas)===null||Ne===void 0)?void 0:Ne.map(function(_,L){return t.a.createElement("div",{style:{display:"flex",padding:"20px 40px"}},(_==null?void 0:_.checked)&&t.a.createElement("span",{style:{width:"40px",borderRadius:"2px",color:"#0152D9",border:"1px solid #0152D9",display:"inline-flex",alignItems:"center",justifyContent:"center",marginRight:"10px",height:"22px"}},"\u9ED8\u8BA4"),t.a.createElement("span",{style:{flex:1,marginRight:"30px",marginLeft:!(_!=null&&_.checked)&&"50px"}},t.a.createElement("p",null,_==null?void 0:_.content),(_==null?void 0:_.explain)&&t.a.createElement("p",null,"\u8BF4\u660E\uFF1A",_==null?void 0:_.explain)),t.a.createElement("span",{style:{width:185}},t.a.createElement(oe.a,{onClick:function(){rn==null||rn.ec_course_target_formulas.map(function(d){_.id===d.id?d.checked=!0:d.checked=!1}),qn(Object(D.a)({},rn))},checked:_==null?void 0:_.checked}," ","\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F")))})),Xn==="2"&&t.a.createElement("div",null,t.a.createElement("div",{style:{display:"flex",height:38,background:"#F5F5F5",lineHeight:"38px",padding:"0px 40px"}},t.a.createElement("span",{style:{flex:1}},"\u8BFE\u7A0B\u603B\u5206\u8BA1\u7B97\u516C\u5F0F"),t.a.createElement("span",{style:{width:185}},"\u64CD\u4F5C")),rn==null||((Ke=rn.ec_course_formulas)===null||Ke===void 0)?void 0:Ke.map(function(_,L){return t.a.createElement("div",{style:{display:"flex",padding:"20px 40px"}},(_==null?void 0:_.checked)&&t.a.createElement("span",{style:{width:"40px",borderRadius:"2px",color:"#0152D9",border:"1px solid #0152D9",display:"inline-flex",alignItems:"center",justifyContent:"center",marginRight:"10px",height:"22px"}},"\u9ED8\u8BA4"),t.a.createElement("span",{style:{flex:1,marginRight:"30px",marginLeft:!(_!=null&&_.checked)&&"50px"}},t.a.createElement("p",null,_==null?void 0:_.content),(_==null?void 0:_.explain)&&t.a.createElement("p",null,"\u8BF4\u660E\uFF1A",_==null?void 0:_.explain)),t.a.createElement("span",{style:{width:185}},t.a.createElement(oe.a,{onClick:function(){rn==null||rn.ec_course_formulas.map(function(d){_.id===d.id?d.checked=!0:d.checked=!1}),qn(Object(D.a)({},rn))},checked:_==null?void 0:_.checked}," ","\u8BBE\u4E3A\u9ED8\u8BA4\u516C\u5F0F")))}))),t.a.createElement(m.a,{title:"\u6279\u91CF\u5BFC\u5165",visible:gt,centered:!0,onCancel:function(){Z(!1),Ce([])},okButtonProps:{loading:nt},onOk:Object(h.a)(s.a.mark(function _(){var L,O,d;return s.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(L=new FormData,!(be.length>0)){f.next=5;break}L.append("file",be[0]),f.next=7;break;case 5:return w.b.warn("\u8BF7\u9009\u62E9\u6587\u4EF6"),f.abrupt("return");case 7:if(Re.id){f.next=10;break}return w.b.info("\u8BF7\u5148\u521B\u5EFA\u8BFE\u7A0B"),f.abrupt("return");case 10:return Tn(!0),L.append("ec_course_id",Re.id),st.current&&L.append("id",st.current),O=st.current?"/api/ec_courses/".concat(Re.id,"/course_evaluations/update_offline.json"):"/api/ec_courses/".concat(Re.id,"/course_evaluations/create_offline.json"),f.next=16,Object(ne.a)(O,{method:st.current?"put":"post",body:L},!0);case 16:d=f.sent,Tn(!1),(d==null?void 0:d.status)===0&&(w.b.info("\u6DFB\u52A0\u6210\u529F"),Z(!1),Ce([]),Ja(Re));case 19:case"end":return f.stop()}},_)}))},t.a.createElement("p",null,"\u6B65\u9AA41\uFF1A\u4E0B\u8F7D",t.a.createElement("a",{href:me.a.API_SERVER+"/api/ec_courses/1/course_evaluations/download_template.xlsx",download:"\u6A21\u7248.xlsx"},"\u660E\u7EC6\u6210\u7EE9\u5BFC\u5165\u6A21\u677F"),",\u5BFC\u5165\u7EBF\u4E0B\u6570\u636E\u5185\u5BB9\u3002",t.a.createElement("span",{style:{color:"#D95201"}},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F")),t.a.createElement(ce.a,null,t.a.createElement(y.a,null,"\u6B65\u9AA42\uFF1A"),t.a.createElement(y.a,null,t.a.createElement(N.a,si,t.a.createElement(S.a,{type:"primary"},"\u9009\u62E9\u6587\u4EF6"))))),t.a.createElement(we.a,Object(Y.a)({},ta,{onClose:function(){ha(Object(D.a)(Object(D.a)({},ta),{},{type:""}))}})),t.a.createElement(C,Object(Y.a)({},ma,{onClose:function(){Ua(Object(D.a)(Object(D.a)({},ma),{},{type:""}))}})),t.a.createElement(m.a,{title:oa?"\u7F16\u8F91\u77E5\u8BC6\u70B9":"\u65B0\u589E\u77E5\u8BC6\u70B9",visible:Ya,onOk:function(){ua.submit()},okButtonProps:{loading:un},onCancel:function(){ia(!1),ua.setFieldsValue({name:"",target:"",content:"",problem:"",ec_course_target_ids:[]})}},t.a.createElement("p",{style:{color:"#FA6400",fontSize:"14px"}}),t.a.createElement(b.a,{labelCol:{span:7},wrapperCol:{span:17},form:ua,onFinish:function(){var _=Object(h.a)(s.a.mark(function L(O){var d,x;return s.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return Cn(!0),d=oa?"/api/ec_courses/".concat(Re.id,"/ec_points/").concat(oa,".json"):"/api/ec_courses/".concat(Re.id,"/ec_points.json"),I.next=4,Object(ne.a)(d,{method:oa?"put":"post",body:Object(D.a)({ec_course_id:Re.id,id:oa},O)});case 4:x=I.sent,Cn(!1),x.status===0&&(w.b.info("\u65B0\u589E\u6210\u529F"),Za(Re),ua.setFieldsValue({name:"",target:"",content:"",problem:"",ec_course_target_ids:[]}),ia(!1));case 7:case"end":return I.stop()}},L)}));return function(L){return _.apply(this,arguments)}}()},t.a.createElement(b.a.Item,{label:"\u77E5\u8BC6\u70B9",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9"}]},t.a.createElement(l.a,null)),t.a.createElement(b.a.Item,{label:"\u6559\u5B66\u76EE\u7684",name:"target",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6559\u5B66\u76EE\u7684"}]},t.a.createElement(l.a,null)),t.a.createElement(b.a.Item,{label:"\u6559\u5B66\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6559\u5B66\u5185\u5BB9"}]},t.a.createElement(l.a,null)),t.a.createElement(b.a.Item,{label:"\u91CD\u70B9\u96BE\u70B9",name:"problem",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91CD\u70B9\u96BE\u70B9"}]},t.a.createElement(l.a,null)),t.a.createElement(b.a.Item,{label:"\u652F\u6491\u7684\u8BFE\u7A0B\u76EE\u6807",name:"ec_course_target_ids",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u76EE\u6807"}]},t.a.createElement(M.a,{mode:"multiple",disabled:((He=Re.kcdatas)===null||He===void 0?void 0:He.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u76EE\u6807"},fn==null?void 0:fn.map(function(_,L){return t.a.createElement(M.a.Option,{key:L,value:_==null?void 0:_.id},_==null?void 0:_.content)}))))))},Et=Q.default=Object(_e.a)(function(tt){var Rt=tt.user;return{user:Rt}})(At)},"6+eU":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return G});var Y=o("wx14"),z=o("rePB"),ce=o("VTBJ"),ee=o("1OyB"),y=o("vuIU"),A=o("Ji7U"),oe=o("LK+K"),re=o("q1tI"),e=o.n(re),T=o("TSYQ"),E=o.n(T),p=function(J){var S,X="".concat(J.rootPrefixCls,"-item"),M=E()(X,"".concat(X,"-").concat(J.page),(S={},Object(z.a)(S,"".concat(X,"-active"),J.active),Object(z.a)(S,J.className,!!J.className),Object(z.a)(S,"".concat(X,"-disabled"),!J.page),S)),D=function(){J.onClick(J.page)},P=function(h){J.onKeyPress(h,J.onClick,J.page)};return e.a.createElement("li",{title:J.showTitle?J.page:null,className:M,onClick:D,onKeyPress:P,tabIndex:"0"},J.itemRender(J.page,"page",e.a.createElement("a",{rel:"nofollow"},J.page)))},l=p,r={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},i=function(N){Object(A.a)(S,N);var J=Object(oe.a)(S);function S(){var X;Object(ee.a)(this,S);for(var M=arguments.length,D=new Array(M),P=0;P=0||w.relatedTarget.className.indexOf("".concat(n,"-next"))>=0))return;X.setState({goInputText:""}),b(X.getValidValue())},X.go=function(w){var h=X.state.goInputText;if(h==="")return;(w.keyCode===r.ENTER||w.type==="click")&&(X.setState({goInputText:""}),X.props.quickGo(X.getValidValue()))},X}return Object(y.a)(S,[{key:"getValidValue",value:function(){var M=this.state,D=M.goInputText,P=M.current;return!D||isNaN(D)?P:Number(D)}},{key:"getPageSizeOptions",value:function(){var M=this.props,D=M.pageSize,P=M.pageSizeOptions;return P.some(function(w){return w.toString()===D.toString()})?P:P.concat([D.toString()]).sort(function(w,h){var k=isNaN(Number(w))?0:Number(w),b=isNaN(Number(h))?0:Number(h);return k-b})}},{key:"render",value:function(){var M=this,D=this.props,P=D.pageSize,w=D.locale,h=D.rootPrefixCls,k=D.changeSize,b=D.quickGo,n=D.goButton,u=D.selectComponentClass,s=D.buildOptionText,a=D.selectPrefixCls,t=D.disabled,R=this.state.goInputText,U="".concat(h,"-options"),ae=u,_e=null,ne=null,me=null;if(!k&&!b)return null;var Oe=this.getPageSizeOptions();if(k&&ae){var we=Oe.map(function(ue,Ee){return e.a.createElement(ae.Option,{key:Ee,value:ue.toString()},(s||M.buildOptionText)(ue))});_e=e.a.createElement(ae,{disabled:t,prefixCls:a,showSearch:!1,className:"".concat(U,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(P||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ee){return Ee.parentNode}},we)}return b&&(n&&(me=typeof n=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:t,className:"".concat(U,"-quick-jumper-button")},w.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},n)),ne=e.a.createElement("div",{className:"".concat(U,"-quick-jumper")},w.jump_to,e.a.createElement("input",{disabled:t,type:"text",value:R,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),w.page,me)),e.a.createElement("li",{className:"".concat(U)},_e,ne)}}]),S}(e.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=i,g=o("N2Kk");function j(){}function v(N){return typeof N=="number"&&isFinite(N)&&Math.floor(N)===N}function m(N,J,S){return S}function W(N,J,S){var X=typeof N=="undefined"?J.pageSize:N;return Math.floor((S.total-1)/X)+1}var $=function(N){Object(A.a)(S,N);var J=Object(oe.a)(S);function S(X){var M;Object(ee.a)(this,S),M=J.call(this,X),M.getJumpPrevPage=function(){return Math.max(1,M.state.current-(M.props.showLessItems?3:5))},M.getJumpNextPage=function(){return Math.min(W(void 0,M.state,M.props),M.state.current+(M.props.showLessItems?3:5))},M.getItemIcon=function(k,b){var n=M.props.prefixCls,u=k||e.a.createElement("button",{type:"button","aria-label":b,className:"".concat(n,"-item-link")});return typeof k=="function"&&(u=e.a.createElement(k,Object(ce.a)({},M.props))),u},M.savePaginationNode=function(k){M.paginationNode=k},M.isValid=function(k){return v(k)&&k!==M.state.current},M.shouldDisplayQuickJumper=function(){var k=M.props,b=k.showQuickJumper,n=k.pageSize,u=k.total;return u<=n?!1:b},M.handleKeyDown=function(k){(k.keyCode===r.ARROW_UP||k.keyCode===r.ARROW_DOWN)&&k.preventDefault()},M.handleKeyUp=function(k){var b=M.getValidValue(k),n=M.state.currentInputValue;b!==n&&M.setState({currentInputValue:b}),k.keyCode===r.ENTER?M.handleChange(b):k.keyCode===r.ARROW_UP?M.handleChange(b-1):k.keyCode===r.ARROW_DOWN&&M.handleChange(b+1)},M.changePageSize=function(k){var b=M.state.current,n=W(k,M.state,M.props);b=b>n?n:b,n===0&&(b=M.state.current),typeof k=="number"&&("pageSize"in M.props||M.setState({pageSize:k}),"current"in M.props||M.setState({current:b,currentInputValue:b})),M.props.onShowSizeChange(b,k),"onChange"in M.props&&M.props.onChange&&M.props.onChange(b,k)},M.handleChange=function(k){var b=M.props.disabled,n=k;if(M.isValid(n)&&!b){var u=W(void 0,M.state,M.props);n>u?n=u:n<1&&(n=1),"current"in M.props||M.setState({current:n,currentInputValue:n});var s=M.state.pageSize;return M.props.onChange(n,s),n}return M.state.current},M.prev=function(){M.hasPrev()&&M.handleChange(M.state.current-1)},M.next=function(){M.hasNext()&&M.handleChange(M.state.current+1)},M.jumpPrev=function(){M.handleChange(M.getJumpPrevPage())},M.jumpNext=function(){M.handleChange(M.getJumpNextPage())},M.hasPrev=function(){return M.state.current>1},M.hasNext=function(){return M.state.current2?n-2:0),s=2;s=P?h=P:h=Number(D),h}},{key:"getShowSizeChanger",value:function(){var M=this.props,D=M.showSizeChanger,P=M.total,w=M.totalBoundaryShowSizeChanger;return typeof D!="undefined"?D:P>w}},{key:"renderPrev",value:function(M){var D=this.props,P=D.prevIcon,w=D.itemRender,h=w(M,"prev",this.getItemIcon(P,"prev page")),k=!this.hasPrev();return Object(re.isValidElement)(h)?Object(re.cloneElement)(h,{disabled:k}):h}},{key:"renderNext",value:function(M){var D=this.props,P=D.nextIcon,w=D.itemRender,h=w(M,"next",this.getItemIcon(P,"next page")),k=!this.hasNext();return Object(re.isValidElement)(h)?Object(re.cloneElement)(h,{disabled:k}):h}},{key:"render",value:function(){var M=this,D=this.props,P=D.prefixCls,w=D.className,h=D.style,k=D.disabled,b=D.hideOnSinglePage,n=D.total,u=D.locale,s=D.showQuickJumper,a=D.showLessItems,t=D.showTitle,R=D.showTotal,U=D.simple,ae=D.itemRender,_e=D.showPrevNextJumpers,ne=D.jumpPrevIcon,me=D.jumpNextIcon,Oe=D.selectComponentClass,we=D.selectPrefixCls,ue=D.pageSizeOptions,Ee=this.state,C=Ee.current,q=Ee.pageSize,B=Ee.currentInputValue;if(b===!0&&n<=q)return null;var le=W(void 0,this.state,this.props),ye=[],Ae=null,Fe=null,Xe=null,V=null,se=null,ge=s&&s.goButton,Te=a?1:2,qe=C-1>0?C-1:0,ut=C+1=Te*2&&C!==1+2&&(ye[0]=Object(re.cloneElement)(ye[0],{className:"".concat(P,"-item-after-jump-prev")}),ye.unshift(Ae)),le-C>=Te*2&&C!==le-2&&(ye[ye.length-1]=Object(re.cloneElement)(ye[ye.length-1],{className:"".concat(P,"-item-before-jump-next")}),ye.push(Fe)),Ne!==1&&ye.unshift(Xe),Ke!==le&&ye.push(V)}var ke=null;R&&(ke=e.a.createElement("li",{className:"".concat(P,"-total-text")},R(n,[n===0?0:(C-1)*q+1,C*q>n?n:C*q])));var Le=!this.hasPrev()||!le,Be=!this.hasNext()||!le;return e.a.createElement("ul",Object(Y.a)({className:E()(P,w,Object(z.a)({},"".concat(P,"-disabled"),k)),style:h,unselectable:"unselectable",ref:this.savePaginationNode},At),ke,e.a.createElement("li",{title:t?u.prev_page:null,onClick:this.prev,tabIndex:Le?null:0,onKeyPress:this.runIfEnterPrev,className:E()("".concat(P,"-prev"),Object(z.a)({},"".concat(P,"-disabled"),Le)),"aria-disabled":Le},this.renderPrev(qe)),ye,e.a.createElement("li",{title:t?u.next_page:null,onClick:this.next,tabIndex:Be?null:0,onKeyPress:this.runIfEnterNext,className:E()("".concat(P,"-next"),Object(z.a)({},"".concat(P,"-disabled"),Be)),"aria-disabled":Be},this.renderNext(ut)),e.a.createElement(c,{disabled:k,locale:u,rootPrefixCls:P,selectComponentClass:Oe,selectPrefixCls:we,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:C,pageSize:q,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ge}))}}],[{key:"getDerivedStateFromProps",value:function(M,D){var P={};if("current"in M&&(P.current=M.current,M.current!==D.current&&(P.currentInputValue=P.current)),"pageSize"in M&&M.pageSize!==D.pageSize){var w=D.current,h=W(M.pageSize,D,M);w=w>h?h:w,"current"in M||(P.current=w,P.currentInputValue=w),P.pageSize=M.pageSize}return P}}]),S}(e.a.Component);$.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:j,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:j,locale:g.a,style:{},itemRender:m,totalBoundaryShowSizeChanger:50};var G=$},"6RRn":function(Ge,Q,o){"use strict";var Y=o("wCXF"),z=o("n6Qo");o.d(Q,"b",function(){return z.a});var ce=o("IBYe"),ee=o("6eGT"),y=o("hW8S");o.d(Q,"a",function(){return y.a}),Q.c=Y.b},"6UM0":function(Ge,Q,o){var Y,z;(function(){var ce;(function(){"use strict";var y=[function(e,T,E){var p=E(1).Beautifier,l=E(5).Options;function r(i,c){var g=new p(i,c);return g.beautify()}e.exports=r,e.exports.defaultOptions=function(){return new l}},function(e,T,E){var p=E(2).Output,l=E(3).Token,r=E(4),i=E(5).Options,c=E(7).Tokenizer,g=E(7).line_starters,j=E(7).positionable_operators,v=E(7).TOKEN;function m(a,t){return t.indexOf(a)!==-1}function W(a){return a.replace(/^\s+/g,"")}function $(a){for(var t={},R=0;RR&&(R=a.line_indent_level));var U={mode:t,parent:a,last_token:a?a.last_token:new l(v.START_BLOCK,""),last_word:a?a.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:R,alignment:0,line_indent_level:a?a.line_indent_level:R,start_line_index:this._output.get_line_number(),ternary_depth:0};return U},u.prototype._reset=function(a){var t=a.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new p(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(D.BlockStatement);var R=new c(a,this._options);return this._tokens=R.tokenize(),a},u.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var a,t=this._reset(this._source_text),R=this._options.eol;this._options.eol==="auto"&&(R=` -`,t&&r.lineBreak.test(t||"")&&(R=t.match(r.lineBreak)[0]));for(var U=this._tokens.next();U;)this.handle_token(U),this._last_last_text=this._flags.last_token.text,this._flags.last_token=U,U=this._tokens.next();return a=this._output.get_code(R),a},u.prototype.handle_token=function(a,t){a.type===v.START_EXPR?this.handle_start_expr(a):a.type===v.END_EXPR?this.handle_end_expr(a):a.type===v.START_BLOCK?this.handle_start_block(a):a.type===v.END_BLOCK?this.handle_end_block(a):a.type===v.WORD?this.handle_word(a):a.type===v.RESERVED?this.handle_word(a):a.type===v.SEMICOLON?this.handle_semicolon(a):a.type===v.STRING?this.handle_string(a):a.type===v.EQUALS?this.handle_equals(a):a.type===v.OPERATOR?this.handle_operator(a):a.type===v.COMMA?this.handle_comma(a):a.type===v.BLOCK_COMMENT?this.handle_block_comment(a,t):a.type===v.COMMENT?this.handle_comment(a,t):a.type===v.DOT?this.handle_dot(a):a.type===v.EOF?this.handle_eof(a):a.type===v.UNKNOWN?this.handle_unknown(a,t):this.handle_unknown(a,t)},u.prototype.handle_whitespace_and_comments=function(a,t){var R=a.newlines,U=this._options.keep_array_indentation&&f(this._flags.mode);if(a.comments_before)for(var ae=a.comments_before.next();ae;)this.handle_whitespace_and_comments(ae,t),this.handle_token(ae,t),ae=a.comments_before.next();if(U)for(var _e=0;_e0,t);else if(this._options.max_preserve_newlines&&R>this._options.max_preserve_newlines&&(R=this._options.max_preserve_newlines),this._options.preserve_newlines&&R>1){this.print_newline(!1,t);for(var ne=1;ne0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},u.prototype.set_mode=function(a){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,a),this._flags=this.create_flags(this._previous_flags,a),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},u.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===D.Statement&&P(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},u.prototype.start_of_object_property=function(){return this._flags.parent.mode===D.ObjectLiteral&&this._flags.mode===D.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||N(this._flags.last_token,["get","set"]))},u.prototype.start_of_statement=function(a){var t=!1;return t=t||N(this._flags.last_token,["var","let","const"])&&a.type===v.WORD,t=t||G(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===D.ObjectLiteral&&this._flags.mode===D.Statement)&&N(this._flags.last_token,s)&&!a.newlines,t=t||G(this._flags.last_token,"else")&&!(G(a,"if")&&!a.comments_before),t=t||this._flags.last_token.type===v.END_EXPR&&(this._previous_flags.mode===D.ForInitializer||this._previous_flags.mode===D.Conditional),t=t||this._flags.last_token.type===v.WORD&&this._flags.mode===D.BlockStatement&&!this._flags.in_case&&!(a.text==="--"||a.text==="++")&&this._last_last_text!=="function"&&a.type!==v.WORD&&a.type!==v.RESERVED,t=t||this._flags.mode===D.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||N(this._flags.last_token,["get","set"])),t?(this.set_mode(D.Statement),this.indent(),this.handle_whitespace_and_comments(a,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a,N(a,["do","for","if","while"])),!0):!1},u.prototype.handle_start_expr=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a);var t=D.Expression;if(a.text==="["){if(this._flags.last_token.type===v.WORD||this._flags.last_token.text===")"){N(this._flags.last_token,g)&&(this._output.space_before_token=!0),this.print_token(a),this.set_mode(t),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}t=D.ArrayLiteral,f(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),m(this._flags.last_token.type,[v.START_EXPR,v.END_EXPR,v.WORD,v.OPERATOR,v.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===v.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,t=D.ForInitializer):m(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=D.Conditional):m(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&a.whitespace_before===""?this._output.space_before_token=!1:(m(this._flags.last_token.text,g)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===v.EQUALS||this._flags.last_token.type===v.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a);else if(this._flags.last_token.type===v.WORD){this._output.space_before_token=!1;var R=this._tokens.peek(-3);if(this._options.space_after_named_function&&R){var U=this._tokens.peek(-4);N(R,["async","function"])||R.text==="*"&&N(U,["async","function"])?this._output.space_before_token=!0:this._flags.mode===D.ObjectLiteral?(R.text==="{"||R.text===","||R.text==="*"&&(U.text==="{"||U.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(a);(this._flags.last_token.type===v.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(m(this._last_last_text,["function","yield"])||this._flags.mode===D.ObjectLiteral&&m(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===v.START_BLOCK?this.print_newline():(this._flags.last_token.type===v.END_EXPR||this._flags.last_token.type===v.START_EXPR||this._flags.last_token.type===v.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===v.COMMA)&&this.allow_wrap_or_preserved_newline(a,a.newlines),this.print_token(a),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},u.prototype.handle_end_expr=function(a){for(;this._flags.mode===D.Statement;)this.restore_mode();this.handle_whitespace_and_comments(a),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(a,a.text==="]"&&f(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===v.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(a),this.restore_mode(),P(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===D.Conditional&&(this._previous_flags.mode=D.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},u.prototype.handle_start_block=function(a){this.handle_whitespace_and_comments(a);var t=this._tokens.peek(),R=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===v.END_EXPR?(this.set_mode(D.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(D.BlockStatement):R&&(m(R.text,[":",","])&&m(t.type,[v.STRING,v.WORD,v.RESERVED])||m(t.text,["get","set","..."])&&m(R.type,[v.WORD,v.RESERVED]))?m(this._last_last_text,["class","interface"])&&!m(R.text,[":",","])?this.set_mode(D.BlockStatement):this.set_mode(D.ObjectLiteral):this._flags.last_token.type===v.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(D.BlockStatement):m(this._flags.last_token.type,[v.EQUALS,v.START_EXPR,v.COMMA,v.OPERATOR])||N(this._flags.last_token,["return","throw","import","default"])?this.set_mode(D.ObjectLiteral):this.set_mode(D.BlockStatement),this._flags.last_token&&(N(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var U=!t.comments_before&&t.text==="}",ae=U&&this._flags.last_word==="function"&&this._flags.last_token.type===v.END_EXPR;if(this._options.brace_preserve_inline){var _e=0,ne=null;this._flags.inline_frame=!0;do if(_e+=1,ne=this._tokens.peek(_e-1),ne.newlines){this._flags.inline_frame=!1;break}while(ne.type!==v.EOF&&!(ne.type===v.END_BLOCK&&ne.opened===a))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&a.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==v.OPERATOR&&(ae||this._flags.last_token.type===v.EQUALS||N(this._flags.last_token,J)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(f(this._previous_flags.mode)&&(this._flags.last_token.type===v.START_EXPR||this._flags.last_token.type===v.COMMA)&&((this._flags.last_token.type===v.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===v.COMMA||this._flags.last_token.type===v.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(a),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==v.OPERATOR&&this._flags.last_token.type!==v.START_EXPR&&(this._flags.last_token.type===v.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(a),this.indent(),!U&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},u.prototype.handle_end_block=function(a){for(this.handle_whitespace_and_comments(a);this._flags.mode===D.Statement;)this.restore_mode();var t=this._flags.last_token.type===v.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:this._options.brace_style==="expand"?t||this.print_newline():t||(f(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(a)},u.prototype.handle_word=function(a){if(a.type===v.RESERVED){if(m(a.text,["set","get"])&&this._flags.mode!==D.ObjectLiteral)a.type=v.WORD;else if(a.text==="import"&&m(this._tokens.peek().text,["(","."]))a.type=v.WORD;else if(m(a.text,["as","from"])&&!this._flags.import_block)a.type=v.WORD;else if(this._flags.mode===D.ObjectLiteral){var t=this._tokens.peek();t.text===":"&&(a.type=v.WORD)}}if(this.start_of_statement(a)?N(this._flags.last_token,["var","let","const"])&&a.type===v.WORD&&(this._flags.declaration_statement=!0):a.newlines&&!k(this._flags.mode)&&(this._flags.last_token.type!==v.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==v.EQUALS&&(this._options.preserve_newlines||!N(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(a),this.print_newline()):this.handle_whitespace_and_comments(a),this._flags.do_block&&!this._flags.do_while)if(G(a,"while")){this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&G(a,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===D.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&N(a,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(a),this._flags.in_case=!0;return}if((this._flags.last_token.type===v.COMMA||this._flags.last_token.type===v.START_EXPR||this._flags.last_token.type===v.EQUALS||this._flags.last_token.type===v.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a)),G(a,"function")){(m(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(m(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===v.OPERATOR))&&(!this._output.just_added_blankline()&&!a.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===v.RESERVED||this._flags.last_token.type===v.WORD?N(this._flags.last_token,["get","set","new","export"])||N(this._flags.last_token,s)?this._output.space_before_token=!0:G(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===v.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(k(this._flags.mode)||f(this._flags.mode))||this.print_newline(),this.print_token(a),this._flags.last_word=a.text;return}var R="NONE";if(this._flags.last_token.type===v.END_BLOCK?this._previous_flags.inline_frame?R="SPACE":N(a,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&a.newlines?R="NEWLINE":(R="SPACE",this._output.space_before_token=!0):R="NEWLINE":this._flags.last_token.type===v.SEMICOLON&&this._flags.mode===D.BlockStatement?R="NEWLINE":this._flags.last_token.type===v.SEMICOLON&&k(this._flags.mode)?R="SPACE":this._flags.last_token.type===v.STRING?R="NEWLINE":this._flags.last_token.type===v.RESERVED||this._flags.last_token.type===v.WORD||this._flags.last_token.text==="*"&&(m(this._last_last_text,["function","yield"])||this._flags.mode===D.ObjectLiteral&&m(this._last_last_text,["{",","]))?R="SPACE":this._flags.last_token.type===v.START_BLOCK?this._flags.inline_frame?R="SPACE":R="NEWLINE":this._flags.last_token.type===v.END_EXPR&&(this._output.space_before_token=!0,R="NEWLINE"),N(a,g)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?R="SPACE":R="NEWLINE"),N(a,["else","catch","finally"]))if((!(this._flags.last_token.type===v.END_BLOCK&&this._previous_flags.mode===D.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&a.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var U=this._output.current_line;U.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else R==="NEWLINE"?N(this._flags.last_token,J)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&N(a,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==v.END_EXPR?(this._flags.last_token.type!==v.START_EXPR||!N(a,["var","let","const"]))&&this._flags.last_token.text!==":"&&(G(a,"if")&&G(a.previous,"else")?this._output.space_before_token=!0:this.print_newline()):N(a,g)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&f(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():R==="SPACE"&&(this._output.space_before_token=!0);a.previous&&(a.previous.type===v.WORD||a.previous.type===v.RESERVED)&&(this._output.space_before_token=!0),this.print_token(a),this._flags.last_word=a.text,a.type===v.RESERVED&&(a.text==="do"?this._flags.do_block=!0:a.text==="if"?this._flags.if_block=!0:a.text==="import"?this._flags.import_block=!0:this._flags.import_block&&G(a,"from")&&(this._flags.import_block=!1))},u.prototype.handle_semicolon=function(a){this.start_of_statement(a)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(a);for(var t=this._tokens.peek();this._flags.mode===D.Statement&&!(this._flags.if_block&&G(t,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(a)},u.prototype.handle_string=function(a){a.text.startsWith("`")&&a.newlines===0&&a.whitespace_before===""&&(a.previous.text===")"||this._flags.last_token.type===v.WORD)||(this.start_of_statement(a)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(a),this._flags.last_token.type===v.RESERVED||this._flags.last_token.type===v.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===v.COMMA||this._flags.last_token.type===v.START_EXPR||this._flags.last_token.type===v.EQUALS||this._flags.last_token.type===v.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a):a.text.startsWith("`")&&this._flags.last_token.type===v.END_EXPR&&(a.previous.text==="]"||a.previous.text===")")&&a.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(a)},u.prototype.handle_equals=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0},u.prototype.handle_comma=function(a){this.handle_whitespace_and_comments(a,!0),this.print_token(a),this._output.space_before_token=!0,this._flags.declaration_statement?(k(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(a)):this._flags.mode===D.ObjectLiteral||this._flags.mode===D.Statement&&this._flags.parent.mode===D.ObjectLiteral?(this._flags.mode===D.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(a)},u.prototype.handle_operator=function(a){var t=a.text==="*"&&(N(this._flags.last_token,["function","yield"])||m(this._flags.last_token.type,[v.START_BLOCK,v.COMMA,v.END_BLOCK,v.SEMICOLON])),R=m(a.text,["-","+"])&&(m(this._flags.last_token.type,[v.START_BLOCK,v.START_EXPR,v.EQUALS,v.OPERATOR])||m(this._flags.last_token.text,g)||this._flags.last_token.text===",");if(!this.start_of_statement(a)){var U=!t;this.handle_whitespace_and_comments(a,U)}if(a.text==="*"&&this._flags.last_token.type===v.DOT){this.print_token(a);return}if(a.text==="::"){this.print_token(a);return}if(this._flags.last_token.type===v.OPERATOR&&m(this._options.operator_position,M)&&this.allow_wrap_or_preserved_newline(a),a.text===":"&&this._flags.in_case){this.print_token(a),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==v.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var ae=!0,_e=!0,ne=!1;if(a.text===":"?this._flags.ternary_depth===0?ae=!1:(this._flags.ternary_depth-=1,ne=!0):a.text==="?"&&(this._flags.ternary_depth+=1),!R&&!t&&this._options.preserve_newlines&&m(a.text,j)){var me=a.text===":",Oe=me&&ne,we=me&&!ne;switch(this._options.operator_position){case X.before_newline:this._output.space_before_token=!we,this.print_token(a),(!me||Oe)&&this.allow_wrap_or_preserved_newline(a),this._output.space_before_token=!0;return;case X.after_newline:this._output.space_before_token=!0,!me||Oe?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(a):this._output.space_before_token=!1,this.print_token(a),this._output.space_before_token=!0;return;case X.preserve_newline:we||this.allow_wrap_or_preserved_newline(a),ae=!(this._output.just_added_newline()||we),this._output.space_before_token=ae,this.print_token(a),this._output.space_before_token=!0;return}}if(t){this.allow_wrap_or_preserved_newline(a),ae=!1;var ue=this._tokens.peek();_e=ue&&m(ue.type,[v.WORD,v.RESERVED])}else if(a.text==="...")this.allow_wrap_or_preserved_newline(a),ae=this._flags.last_token.type===v.START_BLOCK,_e=!1;else if(m(a.text,["--","++","!","~"])||R){if((this._flags.last_token.type===v.COMMA||this._flags.last_token.type===v.START_EXPR)&&this.allow_wrap_or_preserved_newline(a),ae=!1,_e=!1,a.newlines&&(a.text==="--"||a.text==="++"||a.text==="~")){var Ee=N(this._flags.last_token,J)&&a.newlines;Ee&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Ee,!0)}this._flags.last_token.text===";"&&k(this._flags.mode)&&(ae=!0),this._flags.last_token.type===v.RESERVED?ae=!0:this._flags.last_token.type===v.END_EXPR?ae=!(this._flags.last_token.text==="]"&&(a.text==="--"||a.text==="++")):this._flags.last_token.type===v.OPERATOR&&(ae=m(a.text,["--","-","++","+"])&&m(this._flags.last_token.text,["--","-","++","+"]),m(a.text,["+","-"])&&m(this._flags.last_token.text,["--","++"])&&(_e=!0)),(this._flags.mode===D.BlockStatement&&!this._flags.inline_frame||this._flags.mode===D.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||ae,this.print_token(a),this._output.space_before_token=_e},u.prototype.handle_block_comment=function(a,t){if(this._output.raw){this._output.add_raw_token(a),a.directives&&a.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(a.directives){this.print_newline(!1,t),this.print_token(a),a.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!r.newline.test(a.text)&&!a.newlines){this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0;return}else this.print_block_commment(a,t)},u.prototype.print_block_commment=function(a,t){var R=w(a.text),U,ae=!1,_e=!1,ne=a.whitespace_before,me=ne.length;if(this.print_newline(!1,t),this.print_token_line_indentation(a),this._output.add_token(R[0]),this.print_newline(!1,t),R.length>1){for(R=R.slice(1),ae=b(R,"*"),_e=n(R,ne),ae&&(this._flags.alignment=1),U=0;UR&&(R=a.line_indent_level));var U={mode:t,parent:a,last_token:a?a.last_token:new l(v.START_BLOCK,""),last_word:a?a.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:R,alignment:0,line_indent_level:a?a.line_indent_level:R,start_line_index:this._output.get_line_number(),ternary_depth:0};return U},u.prototype._reset=function(a){var t=a.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new p(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(D.BlockStatement);var R=new c(a,this._options);return this._tokens=R.tokenize(),a},u.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var a,t=this._reset(this._source_text),R=this._options.eol;this._options.eol==="auto"&&(R=` +`,t&&r.lineBreak.test(t||"")&&(R=t.match(r.lineBreak)[0]));for(var U=this._tokens.next();U;)this.handle_token(U),this._last_last_text=this._flags.last_token.text,this._flags.last_token=U,U=this._tokens.next();return a=this._output.get_code(R),a},u.prototype.handle_token=function(a,t){a.type===v.START_EXPR?this.handle_start_expr(a):a.type===v.END_EXPR?this.handle_end_expr(a):a.type===v.START_BLOCK?this.handle_start_block(a):a.type===v.END_BLOCK?this.handle_end_block(a):a.type===v.WORD?this.handle_word(a):a.type===v.RESERVED?this.handle_word(a):a.type===v.SEMICOLON?this.handle_semicolon(a):a.type===v.STRING?this.handle_string(a):a.type===v.EQUALS?this.handle_equals(a):a.type===v.OPERATOR?this.handle_operator(a):a.type===v.COMMA?this.handle_comma(a):a.type===v.BLOCK_COMMENT?this.handle_block_comment(a,t):a.type===v.COMMENT?this.handle_comment(a,t):a.type===v.DOT?this.handle_dot(a):a.type===v.EOF?this.handle_eof(a):a.type===v.UNKNOWN?this.handle_unknown(a,t):this.handle_unknown(a,t)},u.prototype.handle_whitespace_and_comments=function(a,t){var R=a.newlines,U=this._options.keep_array_indentation&&h(this._flags.mode);if(a.comments_before)for(var ae=a.comments_before.next();ae;)this.handle_whitespace_and_comments(ae,t),this.handle_token(ae,t),ae=a.comments_before.next();if(U)for(var _e=0;_e0,t);else if(this._options.max_preserve_newlines&&R>this._options.max_preserve_newlines&&(R=this._options.max_preserve_newlines),this._options.preserve_newlines&&R>1){this.print_newline(!1,t);for(var ne=1;ne0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},u.prototype.set_mode=function(a){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,a),this._flags=this.create_flags(this._previous_flags,a),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},u.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===D.Statement&&P(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},u.prototype.start_of_object_property=function(){return this._flags.parent.mode===D.ObjectLiteral&&this._flags.mode===D.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||N(this._flags.last_token,["get","set"]))},u.prototype.start_of_statement=function(a){var t=!1;return t=t||N(this._flags.last_token,["var","let","const"])&&a.type===v.WORD,t=t||G(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===D.ObjectLiteral&&this._flags.mode===D.Statement)&&N(this._flags.last_token,s)&&!a.newlines,t=t||G(this._flags.last_token,"else")&&!(G(a,"if")&&!a.comments_before),t=t||this._flags.last_token.type===v.END_EXPR&&(this._previous_flags.mode===D.ForInitializer||this._previous_flags.mode===D.Conditional),t=t||this._flags.last_token.type===v.WORD&&this._flags.mode===D.BlockStatement&&!this._flags.in_case&&!(a.text==="--"||a.text==="++")&&this._last_last_text!=="function"&&a.type!==v.WORD&&a.type!==v.RESERVED,t=t||this._flags.mode===D.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||N(this._flags.last_token,["get","set"])),t?(this.set_mode(D.Statement),this.indent(),this.handle_whitespace_and_comments(a,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a,N(a,["do","for","if","while"])),!0):!1},u.prototype.handle_start_expr=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a);var t=D.Expression;if(a.text==="["){if(this._flags.last_token.type===v.WORD||this._flags.last_token.text===")"){N(this._flags.last_token,g)&&(this._output.space_before_token=!0),this.print_token(a),this.set_mode(t),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}t=D.ArrayLiteral,h(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),m(this._flags.last_token.type,[v.START_EXPR,v.END_EXPR,v.WORD,v.OPERATOR,v.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===v.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,t=D.ForInitializer):m(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=D.Conditional):m(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&a.whitespace_before===""?this._output.space_before_token=!1:(m(this._flags.last_token.text,g)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===v.EQUALS||this._flags.last_token.type===v.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a);else if(this._flags.last_token.type===v.WORD){this._output.space_before_token=!1;var R=this._tokens.peek(-3);if(this._options.space_after_named_function&&R){var U=this._tokens.peek(-4);N(R,["async","function"])||R.text==="*"&&N(U,["async","function"])?this._output.space_before_token=!0:this._flags.mode===D.ObjectLiteral?(R.text==="{"||R.text===","||R.text==="*"&&(U.text==="{"||U.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(a);(this._flags.last_token.type===v.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(m(this._last_last_text,["function","yield"])||this._flags.mode===D.ObjectLiteral&&m(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===v.START_BLOCK?this.print_newline():(this._flags.last_token.type===v.END_EXPR||this._flags.last_token.type===v.START_EXPR||this._flags.last_token.type===v.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===v.COMMA)&&this.allow_wrap_or_preserved_newline(a,a.newlines),this.print_token(a),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},u.prototype.handle_end_expr=function(a){for(;this._flags.mode===D.Statement;)this.restore_mode();this.handle_whitespace_and_comments(a),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(a,a.text==="]"&&h(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===v.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(a),this.restore_mode(),P(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===D.Conditional&&(this._previous_flags.mode=D.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},u.prototype.handle_start_block=function(a){this.handle_whitespace_and_comments(a);var t=this._tokens.peek(),R=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===v.END_EXPR?(this.set_mode(D.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(D.BlockStatement):R&&(m(R.text,[":",","])&&m(t.type,[v.STRING,v.WORD,v.RESERVED])||m(t.text,["get","set","..."])&&m(R.type,[v.WORD,v.RESERVED]))?m(this._last_last_text,["class","interface"])&&!m(R.text,[":",","])?this.set_mode(D.BlockStatement):this.set_mode(D.ObjectLiteral):this._flags.last_token.type===v.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(D.BlockStatement):m(this._flags.last_token.type,[v.EQUALS,v.START_EXPR,v.COMMA,v.OPERATOR])||N(this._flags.last_token,["return","throw","import","default"])?this.set_mode(D.ObjectLiteral):this.set_mode(D.BlockStatement),this._flags.last_token&&(N(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var U=!t.comments_before&&t.text==="}",ae=U&&this._flags.last_word==="function"&&this._flags.last_token.type===v.END_EXPR;if(this._options.brace_preserve_inline){var _e=0,ne=null;this._flags.inline_frame=!0;do if(_e+=1,ne=this._tokens.peek(_e-1),ne.newlines){this._flags.inline_frame=!1;break}while(ne.type!==v.EOF&&!(ne.type===v.END_BLOCK&&ne.opened===a))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&a.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==v.OPERATOR&&(ae||this._flags.last_token.type===v.EQUALS||N(this._flags.last_token,J)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(h(this._previous_flags.mode)&&(this._flags.last_token.type===v.START_EXPR||this._flags.last_token.type===v.COMMA)&&((this._flags.last_token.type===v.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===v.COMMA||this._flags.last_token.type===v.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(a),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==v.OPERATOR&&this._flags.last_token.type!==v.START_EXPR&&(this._flags.last_token.type===v.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(a),this.indent(),!U&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},u.prototype.handle_end_block=function(a){for(this.handle_whitespace_and_comments(a);this._flags.mode===D.Statement;)this.restore_mode();var t=this._flags.last_token.type===v.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:this._options.brace_style==="expand"?t||this.print_newline():t||(h(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(a)},u.prototype.handle_word=function(a){if(a.type===v.RESERVED){if(m(a.text,["set","get"])&&this._flags.mode!==D.ObjectLiteral)a.type=v.WORD;else if(a.text==="import"&&m(this._tokens.peek().text,["(","."]))a.type=v.WORD;else if(m(a.text,["as","from"])&&!this._flags.import_block)a.type=v.WORD;else if(this._flags.mode===D.ObjectLiteral){var t=this._tokens.peek();t.text===":"&&(a.type=v.WORD)}}if(this.start_of_statement(a)?N(this._flags.last_token,["var","let","const"])&&a.type===v.WORD&&(this._flags.declaration_statement=!0):a.newlines&&!k(this._flags.mode)&&(this._flags.last_token.type!==v.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==v.EQUALS&&(this._options.preserve_newlines||!N(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(a),this.print_newline()):this.handle_whitespace_and_comments(a),this._flags.do_block&&!this._flags.do_while)if(G(a,"while")){this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&G(a,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===D.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&N(a,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(a),this._flags.in_case=!0;return}if((this._flags.last_token.type===v.COMMA||this._flags.last_token.type===v.START_EXPR||this._flags.last_token.type===v.EQUALS||this._flags.last_token.type===v.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a)),G(a,"function")){(m(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(m(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===v.OPERATOR))&&(!this._output.just_added_blankline()&&!a.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===v.RESERVED||this._flags.last_token.type===v.WORD?N(this._flags.last_token,["get","set","new","export"])||N(this._flags.last_token,s)?this._output.space_before_token=!0:G(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===v.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(k(this._flags.mode)||h(this._flags.mode))||this.print_newline(),this.print_token(a),this._flags.last_word=a.text;return}var R="NONE";if(this._flags.last_token.type===v.END_BLOCK?this._previous_flags.inline_frame?R="SPACE":N(a,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&a.newlines?R="NEWLINE":(R="SPACE",this._output.space_before_token=!0):R="NEWLINE":this._flags.last_token.type===v.SEMICOLON&&this._flags.mode===D.BlockStatement?R="NEWLINE":this._flags.last_token.type===v.SEMICOLON&&k(this._flags.mode)?R="SPACE":this._flags.last_token.type===v.STRING?R="NEWLINE":this._flags.last_token.type===v.RESERVED||this._flags.last_token.type===v.WORD||this._flags.last_token.text==="*"&&(m(this._last_last_text,["function","yield"])||this._flags.mode===D.ObjectLiteral&&m(this._last_last_text,["{",","]))?R="SPACE":this._flags.last_token.type===v.START_BLOCK?this._flags.inline_frame?R="SPACE":R="NEWLINE":this._flags.last_token.type===v.END_EXPR&&(this._output.space_before_token=!0,R="NEWLINE"),N(a,g)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?R="SPACE":R="NEWLINE"),N(a,["else","catch","finally"]))if((!(this._flags.last_token.type===v.END_BLOCK&&this._previous_flags.mode===D.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&a.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var U=this._output.current_line;U.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else R==="NEWLINE"?N(this._flags.last_token,J)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&N(a,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==v.END_EXPR?(this._flags.last_token.type!==v.START_EXPR||!N(a,["var","let","const"]))&&this._flags.last_token.text!==":"&&(G(a,"if")&&G(a.previous,"else")?this._output.space_before_token=!0:this.print_newline()):N(a,g)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&h(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():R==="SPACE"&&(this._output.space_before_token=!0);a.previous&&(a.previous.type===v.WORD||a.previous.type===v.RESERVED)&&(this._output.space_before_token=!0),this.print_token(a),this._flags.last_word=a.text,a.type===v.RESERVED&&(a.text==="do"?this._flags.do_block=!0:a.text==="if"?this._flags.if_block=!0:a.text==="import"?this._flags.import_block=!0:this._flags.import_block&&G(a,"from")&&(this._flags.import_block=!1))},u.prototype.handle_semicolon=function(a){this.start_of_statement(a)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(a);for(var t=this._tokens.peek();this._flags.mode===D.Statement&&!(this._flags.if_block&&G(t,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(a)},u.prototype.handle_string=function(a){a.text.startsWith("`")&&a.newlines===0&&a.whitespace_before===""&&(a.previous.text===")"||this._flags.last_token.type===v.WORD)||(this.start_of_statement(a)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(a),this._flags.last_token.type===v.RESERVED||this._flags.last_token.type===v.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===v.COMMA||this._flags.last_token.type===v.START_EXPR||this._flags.last_token.type===v.EQUALS||this._flags.last_token.type===v.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a):a.text.startsWith("`")&&this._flags.last_token.type===v.END_EXPR&&(a.previous.text==="]"||a.previous.text===")")&&a.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(a)},u.prototype.handle_equals=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0},u.prototype.handle_comma=function(a){this.handle_whitespace_and_comments(a,!0),this.print_token(a),this._output.space_before_token=!0,this._flags.declaration_statement?(k(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(a)):this._flags.mode===D.ObjectLiteral||this._flags.mode===D.Statement&&this._flags.parent.mode===D.ObjectLiteral?(this._flags.mode===D.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(a)},u.prototype.handle_operator=function(a){var t=a.text==="*"&&(N(this._flags.last_token,["function","yield"])||m(this._flags.last_token.type,[v.START_BLOCK,v.COMMA,v.END_BLOCK,v.SEMICOLON])),R=m(a.text,["-","+"])&&(m(this._flags.last_token.type,[v.START_BLOCK,v.START_EXPR,v.EQUALS,v.OPERATOR])||m(this._flags.last_token.text,g)||this._flags.last_token.text===",");if(!this.start_of_statement(a)){var U=!t;this.handle_whitespace_and_comments(a,U)}if(a.text==="*"&&this._flags.last_token.type===v.DOT){this.print_token(a);return}if(a.text==="::"){this.print_token(a);return}if(this._flags.last_token.type===v.OPERATOR&&m(this._options.operator_position,M)&&this.allow_wrap_or_preserved_newline(a),a.text===":"&&this._flags.in_case){this.print_token(a),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==v.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var ae=!0,_e=!0,ne=!1;if(a.text===":"?this._flags.ternary_depth===0?ae=!1:(this._flags.ternary_depth-=1,ne=!0):a.text==="?"&&(this._flags.ternary_depth+=1),!R&&!t&&this._options.preserve_newlines&&m(a.text,j)){var me=a.text===":",Oe=me&&ne,we=me&&!ne;switch(this._options.operator_position){case X.before_newline:this._output.space_before_token=!we,this.print_token(a),(!me||Oe)&&this.allow_wrap_or_preserved_newline(a),this._output.space_before_token=!0;return;case X.after_newline:this._output.space_before_token=!0,!me||Oe?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(a):this._output.space_before_token=!1,this.print_token(a),this._output.space_before_token=!0;return;case X.preserve_newline:we||this.allow_wrap_or_preserved_newline(a),ae=!(this._output.just_added_newline()||we),this._output.space_before_token=ae,this.print_token(a),this._output.space_before_token=!0;return}}if(t){this.allow_wrap_or_preserved_newline(a),ae=!1;var ue=this._tokens.peek();_e=ue&&m(ue.type,[v.WORD,v.RESERVED])}else if(a.text==="...")this.allow_wrap_or_preserved_newline(a),ae=this._flags.last_token.type===v.START_BLOCK,_e=!1;else if(m(a.text,["--","++","!","~"])||R){if((this._flags.last_token.type===v.COMMA||this._flags.last_token.type===v.START_EXPR)&&this.allow_wrap_or_preserved_newline(a),ae=!1,_e=!1,a.newlines&&(a.text==="--"||a.text==="++"||a.text==="~")){var Ee=N(this._flags.last_token,J)&&a.newlines;Ee&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Ee,!0)}this._flags.last_token.text===";"&&k(this._flags.mode)&&(ae=!0),this._flags.last_token.type===v.RESERVED?ae=!0:this._flags.last_token.type===v.END_EXPR?ae=!(this._flags.last_token.text==="]"&&(a.text==="--"||a.text==="++")):this._flags.last_token.type===v.OPERATOR&&(ae=m(a.text,["--","-","++","+"])&&m(this._flags.last_token.text,["--","-","++","+"]),m(a.text,["+","-"])&&m(this._flags.last_token.text,["--","++"])&&(_e=!0)),(this._flags.mode===D.BlockStatement&&!this._flags.inline_frame||this._flags.mode===D.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||ae,this.print_token(a),this._output.space_before_token=_e},u.prototype.handle_block_comment=function(a,t){if(this._output.raw){this._output.add_raw_token(a),a.directives&&a.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(a.directives){this.print_newline(!1,t),this.print_token(a),a.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!r.newline.test(a.text)&&!a.newlines){this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0;return}else this.print_block_commment(a,t)},u.prototype.print_block_commment=function(a,t){var R=w(a.text),U,ae=!1,_e=!1,ne=a.whitespace_before,me=ne.length;if(this.print_newline(!1,t),this.print_token_line_indentation(a),this._output.add_token(R[0]),this.print_newline(!1,t),R.length>1){for(R=R.slice(1),ae=b(R,"*"),_e=n(R,ne),ae&&(this._flags.alignment=1),U=0;U=0;r--)if(this.__items[r].match(l))return!0;return!1},T.prototype.set_indent=function(l,r){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=r||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},T.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)},T.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},T.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},T.prototype.is_empty=function(){return this.__items.length===0},T.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},T.prototype.push=function(l){this.__items.push(l);var r=l.lastIndexOf(` `);r!==-1?this.__character_count=l.length-r:this.__character_count+=l.length},T.prototype.pop=function(){var l=null;return this.is_empty()||(l=this.__items.pop(),this.__character_count-=l.length),l},T.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},T.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},T.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},T.prototype.toString=function(){var l="";return this.is_empty()?this.__parent.indent_empty_lines&&(l=this.__parent.get_indent_string(this.__indent_count)):(l=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),l+=this.__items.join("")),l};function E(l,r){this.__cache=[""],this.__indent_size=l.indent_size,this.__indent_string=l.indent_char,l.indent_with_tabs||(this.__indent_string=new Array(l.indent_size+1).join(l.indent_char)),r=r||"",l.indent_level>0&&(r=new Array(l.indent_level+1).join(this.__indent_string)),this.__base_string=r,this.__base_string_length=r.length}E.prototype.get_indent_size=function(l,r){var i=this.__base_string_length;return r=r||0,l<0&&(i=0),i+=l*this.__indent_size,i+=r,i},E.prototype.get_indent_string=function(l,r){var i=this.__base_string;return r=r||0,l<0&&(l=0,i=""),r+=l*this.__indent_size,this.__ensure_cache(r),i+=this.__cache[r],i},E.prototype.__ensure_cache=function(l){for(;l>=this.__cache.length;)this.__add_column()},E.prototype.__add_column=function(){var l=this.__cache.length,r=0,i="";this.__indent_size&&l>=this.__indent_size&&(r=Math.floor(l/this.__indent_size),l-=r*this.__indent_size,i=new Array(r+1).join(this.__indent_string)),l&&(i+=new Array(l+1).join(" ")),this.__cache.push(i)};function p(l,r){this.__indent_cache=new E(l,r),this.raw=!1,this._end_with_newline=l.end_with_newline,this.indent_size=l.indent_size,this.wrap_line_length=l.wrap_line_length,this.indent_empty_lines=l.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new T(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(l,r){return this.__indent_cache.get_indent_string(l,r)},p.prototype.get_indent_size=function(l,r){return this.__indent_cache.get_indent_size(l,r)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(l){return this.is_empty()||!l&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(l){this.trim(!0);var r=this.current_line.pop();r&&(r[r.length-1]===` `&&(r=r.replace(/\n+$/g,"")),this.current_line.push(r)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(` @@ -15,16 +15,16 @@ `+r+` You passed in: '`+this.raw_options[l]+"'");return c[0]},T.prototype._get_selection_list=function(l,r,i){if(!r||r.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[r[0]],!this._is_valid_selection(i,r))throw new Error("Invalid Default Value!");var c=this._get_array(l,i);if(!this._is_valid_selection(c,r))throw new Error("Invalid Option Value: The option '"+l+`' can contain only the following values: `+r+` -You passed in: '`+this.raw_options[l]+"'");return c},T.prototype._is_valid_selection=function(l,r){return l.length&&r.length&&!l.some(function(i){return r.indexOf(i)===-1})};function E(l,r){var i={};l=p(l);var c;for(c in l)c!==r&&(i[c]=l[c]);if(r&&l[r])for(c in l[r])i[c]=l[r][c];return i}function p(l){var r={},i;for(i in l){var c=i.replace(/-/g,"_");r[c]=l[i]}return r}e.exports.Options=T,e.exports.normalizeOpts=p,e.exports.mergeOpts=E},function(e,T,E){var p=E(8).InputScanner,l=E(9).Tokenizer,r=E(9).TOKEN,i=E(13).Directives,c=E(4),g=E(12).Pattern,j=E(14).TemplatablePattern;function v(b,n){return n.indexOf(b)!==-1}var m={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},W=new i(/\/\*/,/\*\//),$=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,G=/[0-9]/,N=/[^\d\.]/,J=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),S=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";S=S.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),S="\\?\\.(?!\\d) "+S,S=S.replace(/ /g,"|");var X=new RegExp(S),M="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),D=M.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),P=new RegExp("^(?:"+D.join("|")+")$"),w,f=function(b,n){l.call(this,b,n),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var u=new g(this._input),s=new j(this._input).read_options(this._options);this.__patterns={template:s,identifier:s.starting_with(c.identifier).matching(c.identifierMatch),number:u.matching($),punct:u.matching(X),comment:u.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:u.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:u.matching(//),include:u.starting_with(/#include/).until_after(c.lineBreak),shebang:u.starting_with(/#!/).until_after(c.lineBreak),xml:u.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:s.until(/['\\\n\r\u2028\u2029]/),double_quote:s.until(/["\\\n\r\u2028\u2029]/),template_text:s.until(/[`\\$]/),template_expression:s.until(/[`}\\]/)}};f.prototype=new l,f.prototype._is_comment=function(b){return b.type===m.COMMENT||b.type===m.BLOCK_COMMENT||b.type===m.UNKNOWN},f.prototype._is_opening=function(b){return b.type===m.START_BLOCK||b.type===m.START_EXPR},f.prototype._is_closing=function(b,n){return(b.type===m.END_BLOCK||b.type===m.END_EXPR)&&n&&(b.text==="]"&&n.text==="["||b.text===")"&&n.text==="("||b.text==="}"&&n.text==="{")},f.prototype._reset=function(){w=!1},f.prototype._get_next_token=function(b,n){var u=null;this._readWhitespace();var s=this._input.peek();return s===null?this._create_token(m.EOF,""):(u=u||this._read_non_javascript(s),u=u||this._read_string(s),u=u||this._read_word(b),u=u||this._read_singles(s),u=u||this._read_comment(s),u=u||this._read_regexp(s,b),u=u||this._read_xml(s,b),u=u||this._read_punctuation(),u=u||this._create_token(m.UNKNOWN,this._input.next()),u)},f.prototype._read_word=function(b){var n;if(n=this.__patterns.identifier.read(),n!=="")return n=n.replace(c.allLineBreaks,` -`),!(b.type===m.DOT||b.type===m.RESERVED&&(b.text==="set"||b.text==="get"))&&P.test(n)?(n==="in"||n==="of")&&(b.type===m.WORD||b.type===m.STRING)?this._create_token(m.OPERATOR,n):this._create_token(m.RESERVED,n):this._create_token(m.WORD,n);if(n=this.__patterns.number.read(),n!=="")return this._create_token(m.WORD,n)},f.prototype._read_singles=function(b){var n=null;return b==="("||b==="["?n=this._create_token(m.START_EXPR,b):b===")"||b==="]"?n=this._create_token(m.END_EXPR,b):b==="{"?n=this._create_token(m.START_BLOCK,b):b==="}"?n=this._create_token(m.END_BLOCK,b):b===";"?n=this._create_token(m.SEMICOLON,b):b==="."&&N.test(this._input.peek(1))?n=this._create_token(m.DOT,b):b===","&&(n=this._create_token(m.COMMA,b)),n&&this._input.next(),n},f.prototype._read_punctuation=function(){var b=this.__patterns.punct.read();if(b!=="")return b==="="?this._create_token(m.EQUALS,b):b==="?."?this._create_token(m.DOT,b):this._create_token(m.OPERATOR,b)},f.prototype._read_non_javascript=function(b){var n="";if(b==="#"){if(this._is_first_token()&&(n=this.__patterns.shebang.read(),n))return this._create_token(m.UNKNOWN,n.trim()+` +You passed in: '`+this.raw_options[l]+"'");return c},T.prototype._is_valid_selection=function(l,r){return l.length&&r.length&&!l.some(function(i){return r.indexOf(i)===-1})};function E(l,r){var i={};l=p(l);var c;for(c in l)c!==r&&(i[c]=l[c]);if(r&&l[r])for(c in l[r])i[c]=l[r][c];return i}function p(l){var r={},i;for(i in l){var c=i.replace(/-/g,"_");r[c]=l[i]}return r}e.exports.Options=T,e.exports.normalizeOpts=p,e.exports.mergeOpts=E},function(e,T,E){var p=E(8).InputScanner,l=E(9).Tokenizer,r=E(9).TOKEN,i=E(13).Directives,c=E(4),g=E(12).Pattern,j=E(14).TemplatablePattern;function v(b,n){return n.indexOf(b)!==-1}var m={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},W=new i(/\/\*/,/\*\//),$=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,G=/[0-9]/,N=/[^\d\.]/,J=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),S=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";S=S.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),S="\\?\\.(?!\\d) "+S,S=S.replace(/ /g,"|");var X=new RegExp(S),M="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),D=M.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),P=new RegExp("^(?:"+D.join("|")+")$"),w,h=function(b,n){l.call(this,b,n),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var u=new g(this._input),s=new j(this._input).read_options(this._options);this.__patterns={template:s,identifier:s.starting_with(c.identifier).matching(c.identifierMatch),number:u.matching($),punct:u.matching(X),comment:u.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:u.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:u.matching(//),include:u.starting_with(/#include/).until_after(c.lineBreak),shebang:u.starting_with(/#!/).until_after(c.lineBreak),xml:u.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:s.until(/['\\\n\r\u2028\u2029]/),double_quote:s.until(/["\\\n\r\u2028\u2029]/),template_text:s.until(/[`\\$]/),template_expression:s.until(/[`}\\]/)}};h.prototype=new l,h.prototype._is_comment=function(b){return b.type===m.COMMENT||b.type===m.BLOCK_COMMENT||b.type===m.UNKNOWN},h.prototype._is_opening=function(b){return b.type===m.START_BLOCK||b.type===m.START_EXPR},h.prototype._is_closing=function(b,n){return(b.type===m.END_BLOCK||b.type===m.END_EXPR)&&n&&(b.text==="]"&&n.text==="["||b.text===")"&&n.text==="("||b.text==="}"&&n.text==="{")},h.prototype._reset=function(){w=!1},h.prototype._get_next_token=function(b,n){var u=null;this._readWhitespace();var s=this._input.peek();return s===null?this._create_token(m.EOF,""):(u=u||this._read_non_javascript(s),u=u||this._read_string(s),u=u||this._read_word(b),u=u||this._read_singles(s),u=u||this._read_comment(s),u=u||this._read_regexp(s,b),u=u||this._read_xml(s,b),u=u||this._read_punctuation(),u=u||this._create_token(m.UNKNOWN,this._input.next()),u)},h.prototype._read_word=function(b){var n;if(n=this.__patterns.identifier.read(),n!=="")return n=n.replace(c.allLineBreaks,` +`),!(b.type===m.DOT||b.type===m.RESERVED&&(b.text==="set"||b.text==="get"))&&P.test(n)?(n==="in"||n==="of")&&(b.type===m.WORD||b.type===m.STRING)?this._create_token(m.OPERATOR,n):this._create_token(m.RESERVED,n):this._create_token(m.WORD,n);if(n=this.__patterns.number.read(),n!=="")return this._create_token(m.WORD,n)},h.prototype._read_singles=function(b){var n=null;return b==="("||b==="["?n=this._create_token(m.START_EXPR,b):b===")"||b==="]"?n=this._create_token(m.END_EXPR,b):b==="{"?n=this._create_token(m.START_BLOCK,b):b==="}"?n=this._create_token(m.END_BLOCK,b):b===";"?n=this._create_token(m.SEMICOLON,b):b==="."&&N.test(this._input.peek(1))?n=this._create_token(m.DOT,b):b===","&&(n=this._create_token(m.COMMA,b)),n&&this._input.next(),n},h.prototype._read_punctuation=function(){var b=this.__patterns.punct.read();if(b!=="")return b==="="?this._create_token(m.EQUALS,b):b==="?."?this._create_token(m.DOT,b):this._create_token(m.OPERATOR,b)},h.prototype._read_non_javascript=function(b){var n="";if(b==="#"){if(this._is_first_token()&&(n=this.__patterns.shebang.read(),n))return this._create_token(m.UNKNOWN,n.trim()+` `);if(n=this.__patterns.include.read(),n)return this._create_token(m.UNKNOWN,n.trim()+` -`);b=this._input.next();var u="#";if(this._input.hasNext()&&this._input.testChar(G)){do b=this._input.next(),u+=b;while(this._input.hasNext()&&b!=="#"&&b!=="=");return b==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(u+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(u+="{}",this._input.next(),this._input.next())),this._create_token(m.WORD,u)}this._input.back()}else if(b==="<"&&this._is_first_token()){if(n=this.__patterns.html_comment_start.read(),n){for(;this._input.hasNext()&&!this._input.testChar(c.newline);)n+=this._input.next();return w=!0,this._create_token(m.COMMENT,n)}}else if(w&&b==="-"&&(n=this.__patterns.html_comment_end.read(),n))return w=!1,this._create_token(m.COMMENT,n);return null},f.prototype._read_comment=function(b){var n=null;if(b==="/"){var u="";if(this._input.peek(1)==="*"){u=this.__patterns.block_comment.read();var s=W.get_directives(u);s&&s.ignore==="start"&&(u+=W.readIgnored(this._input)),u=u.replace(c.allLineBreaks,` -`),n=this._create_token(m.BLOCK_COMMENT,u),n.directives=s}else this._input.peek(1)==="/"&&(u=this.__patterns.comment.read(),n=this._create_token(m.COMMENT,u))}return n},f.prototype._read_string=function(b){if(b==="`"||b==="'"||b==='"'){var n=this._input.next();return this.has_char_escapes=!1,b==="`"?n+=this._read_string_recursive("`",!0,"${"):n+=this._read_string_recursive(b),this.has_char_escapes&&this._options.unescape_strings&&(n=k(n)),this._input.peek()===b&&(n+=this._input.next()),n=n.replace(c.allLineBreaks,` -`),this._create_token(m.STRING,n)}return null},f.prototype._allow_regexp_or_xml=function(b){return b.type===m.RESERVED&&v(b.text,["return","case","throw","else","do","typeof","yield"])||b.type===m.END_EXPR&&b.text===")"&&b.opened.previous.type===m.RESERVED&&v(b.opened.previous.text,["if","while","for"])||v(b.type,[m.COMMENT,m.START_EXPR,m.START_BLOCK,m.START,m.END_BLOCK,m.OPERATOR,m.EQUALS,m.EOF,m.SEMICOLON,m.COMMA])},f.prototype._read_regexp=function(b,n){if(b==="/"&&this._allow_regexp_or_xml(n)){for(var u=this._input.next(),s=!1,a=!1;this._input.hasNext()&&(s||a||this._input.peek()!==b)&&!this._input.testChar(c.newline);)u+=this._input.peek(),s?s=!1:(s=this._input.peek()==="\\",this._input.peek()==="["?a=!0:this._input.peek()==="]"&&(a=!1)),this._input.next();return this._input.peek()===b&&(u+=this._input.next(),u+=this._input.read(c.identifier)),this._create_token(m.STRING,u)}return null},f.prototype._read_xml=function(b,n){if(this._options.e4x&&b==="<"&&this._allow_regexp_or_xml(n)){var u="",s=this.__patterns.xml.read_match();if(s){for(var a=s[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),t=a.indexOf("{")===0,R=0;s;){var U=!!s[1],ae=s[2],_e=!!s[s.length-1]||ae.slice(0,8)==="![CDATA[";if(!_e&&(ae===a||t&&ae.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(U?--R:++R),u+=s[0],R<=0)break;s=this.__patterns.xml.read_match()}return s||(u+=this._input.match(/[\s\S]*/g)[0]),u=u.replace(c.allLineBreaks,` -`),this._create_token(m.STRING,u)}}return null};function k(b){for(var n="",u=0,s=new p(b),a=null;s.hasNext();)if(a=s.match(/([\s]|[^\\]|\\\\)+/g),a&&(n+=a[0]),s.peek()==="\\"){if(s.next(),s.peek()==="x")a=s.match(/x([0-9A-Fa-f]{2})/g);else if(s.peek()==="u")a=s.match(/u([0-9A-Fa-f]{4})/g);else{n+="\\",s.hasNext()&&(n+=s.next());continue}if(!a)return b;if(u=parseInt(a[1],16),u>126&&u<=255&&a[0].indexOf("x")===0)return b;if(u>=0&&u<32){n+="\\"+a[0];continue}else u===34||u===39||u===92?n+="\\"+String.fromCharCode(u):n+=String.fromCharCode(u)}return n}f.prototype._read_string_recursive=function(b,n,u){var s,a;b==="'"?a=this.__patterns.single_quote:b==='"'?a=this.__patterns.double_quote:b==="`"?a=this.__patterns.template_text:b==="}"&&(a=this.__patterns.template_expression);for(var t=a.read(),R="";this._input.hasNext();){if(R=this._input.next(),R===b||!n&&c.newline.test(R)){this._input.back();break}else R==="\\"&&this._input.hasNext()?(s=this._input.peek(),s==="x"||s==="u"?this.has_char_escapes=!0:s==="\r"&&this._input.peek(1)===` -`&&this._input.next(),R+=this._input.next()):u&&(u==="${"&&R==="$"&&this._input.peek()==="{"&&(R+=this._input.next()),u===R&&(b==="`"?R+=this._read_string_recursive("}",n,"`"):R+=this._read_string_recursive("`",n,"${"),this._input.hasNext()&&(R+=this._input.next())));R+=a.read(),t+=R}return t},e.exports.Tokenizer=f,e.exports.TOKEN=m,e.exports.positionable_operators=J.slice(),e.exports.line_starters=M.slice()},function(e){var T=RegExp.prototype.hasOwnProperty("sticky");function E(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}E.prototype.restart=function(){this.__position=0},E.prototype.back=function(){this.__position>0&&(this.__position-=1)},E.prototype.hasNext=function(){return this.__position=0&&p=0&&l=p.length&&this.__input.substring(l-p.length,l).toLowerCase()===p},e.exports.InputScanner=E},function(e,T,E){var p=E(8).InputScanner,l=E(3).Token,r=E(10).TokenStream,i=E(11).WhitespacePattern,c={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},g=function(j,v){this._input=new p(j),this._options=v||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};g.prototype.tokenize=function(){this._input.restart(),this.__tokens=new r,this._reset();for(var j,v=new l(c.START,""),m=null,W=[],$=new r;v.type!==c.EOF;){for(j=this._get_next_token(v,m);this._is_comment(j);)$.add(j),j=this._get_next_token(v,m);$.isEmpty()||(j.comments_before=$,$=new r),j.parent=m,this._is_opening(j)?(W.push(m),m=j):m&&this._is_closing(j,m)&&(j.opened=m,m.closed=j,m=W.pop(),j.parent=m),j.previous=v,v.next=j,this.__tokens.add(j),v=j}return this.__tokens},g.prototype._is_first_token=function(){return this.__tokens.isEmpty()},g.prototype._reset=function(){},g.prototype._get_next_token=function(j,v){this._readWhitespace();var m=this._input.read(/.+/g);return m?this._create_token(c.RAW,m):this._create_token(c.EOF,"")},g.prototype._is_comment=function(j){return!1},g.prototype._is_opening=function(j){return!1},g.prototype._is_closing=function(j,v){return!1},g.prototype._create_token=function(j,v){var m=new l(j,v,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return m},g.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=g,e.exports.TOKEN=c},function(e){function T(E){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=E}T.prototype.restart=function(){this.__position=0},T.prototype.isEmpty=function(){return this.__tokens_length===0},T.prototype.hasNext=function(){return this.__position=0&&E/),erb:g.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:g.starting_with(/{%/).until_after(/%}/),django_value:g.starting_with(/{{/).until_after(/}}/),django_comment:g.starting_with(/{#/).until_after(/#}/),smarty:g.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:g.starting_with(/{\*/).until_after(/\*}/),smarty_literal:g.starting_with(/{literal}/).until_after(/{\/literal}/)}}r.prototype=new p,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(i){var c=this._create();return c._disabled[i]=!0,c._update(),c},r.prototype.read_options=function(i){var c=this._create();for(var g in l)c._disabled[g]=i.templating.indexOf(g)===-1;return c._update(),c},r.prototype.exclude=function(i){var c=this._create();return c._excluded[i]=!0,c._update(),c},r.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 c=this._read_template();c;)this._match_pattern?c+=this._input.read(this._match_pattern):c+=this._input.readUntil(this.__template_pattern),i+=c,c=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},r.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("|")+")")},r.prototype._read_template=function(){var i="",c=this._input.peek();if(c==="<"){var g=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&g==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&g==="%"&&(i=i||this.__patterns.erb.read())}else c==="{"&&(!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},e.exports.TemplatablePattern=r}],A={};function oe(e){var T=A[e];if(T!==void 0)return T.exports;var E=A[e]={exports:{}};return y[e](E,E.exports,oe),E.exports}var re=oe(0);ce=re})();var ee=ce;!(Y=[],z=function(){return{js_beautify:ee}}.apply(Q,Y),z!==void 0&&(Ge.exports=z))})()},"6eGT":function(Ge,Q,o){"use strict";function Y(z){return null}Q.a=Y},"746U":function(Ge,Q,o){"use strict";o.d(Q,"f",function(){return Y}),o.d(Q,"l",function(){return z}),o.d(Q,"k",function(){return ce}),o.d(Q,"j",function(){return ee}),o.d(Q,"g",function(){return y}),o.d(Q,"m",function(){return A}),o.d(Q,"h",function(){return oe}),o.d(Q,"n",function(){return re}),o.d(Q,"c",function(){return e}),o.d(Q,"a",function(){return T}),o.d(Q,"i",function(){return E}),o.d(Q,"o",function(){return p}),o.d(Q,"e",function(){return i}),o.d(Q,"d",function(){return c}),o.d(Q,"p",function(){return g}),o.d(Q,"b",function(){return j});function Y(v){return Array.isArray(v)}function z(v){return typeof v=="string"}function ce(v){return typeof v=="object"&&v!==null&&!Array.isArray(v)&&!(v instanceof RegExp)&&!(v instanceof Date)}function ee(v){return typeof v=="number"&&!isNaN(v)}function y(v){return v===!0||v===!1}function A(v){return typeof v=="undefined"}function oe(v){return!re(v)}function re(v){return A(v)||v===null}function e(v,m){if(!v)throw new Error(m?`Unexpected type, expected '${m}'`:"Unexpected type")}function T(v){if(re(v))throw new Error("Assertion Failed: argument is undefined or null");return v}function E(v){return typeof v=="function"}function p(v,m){const W=Math.min(v.length,m.length);for(let $=0;$function(){const N=Array.prototype.slice.call(arguments,0);return m(G,N)};let $={};for(const G of v)$[G]=W(G);return $}function g(v){return v===null?void 0:v}function j(v,m="Unreachable"){throw new Error(m)}},"815F":function(Ge,Q,o){"use strict";o.d(Q,"e",function(){return oe}),o.d(Q,"c",function(){return e}),o.d(Q,"d",function(){return T}),o.d(Q,"a",function(){return p}),o.d(Q,"f",function(){return l}),o.d(Q,"b",function(){return r});var Y=o("KQm4"),z=o("VTBJ"),ce=o("Ff2n"),ee=o("Zm9Q"),y=o("Kwbf"),A=o("OZM5");function oe(i,c){return i!=null?i:c}function re(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=new Map;function g(j){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(j||[]).forEach(function(m){var W=m.key,$=m.children;Object(y.a)(W!=null,"Tree node must have a certain key: [".concat(v).concat(W,"]"));var G=String(W);Object(y.a)(!c.has(G)||W===null||W===void 0,"Same 'key' exist in the Tree: ".concat(G)),c.set(G,!0),g($,"".concat(v).concat(G," > "))})}g(i)}function e(i){function c(g){var j=Object(ee.a)(g);return j.map(function(v){if(!Object(A.i)(v))return Object(y.a)(!v,"Tree/TreeNode can only accept TreeNode as children."),null;var m=v.key,W=v.props,$=W.children,G=Object(ce.a)(W,["children"]),N=Object(z.a)({key:m},G),J=c($);return J.length&&(N.children=J),N}).filter(function(v){return v})}return c(i)}function T(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],g=new Set(c===!0?[]:c),j=[];function v(m){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return m.map(function($,G){var N=Object(A.h)(W?W.pos:"0",G),J=oe($.key,N),S=Object(z.a)(Object(z.a)({},$),{},{parent:W,pos:N,children:null,data:$,isStart:[].concat(Object(Y.a)(W?W.isStart:[]),[G===0]),isEnd:[].concat(Object(Y.a)(W?W.isEnd:[]),[G===m.length-1])});return j.push(S),c===!0||g.has(J)?S.children=v($.children||[],S):S.children=[],S})}return v(i),j}function E(i,c,g){var j;g?typeof g=="string"?j=function(W){return W[g]}:typeof g=="function"&&(j=function(W){return g(W)}):j=function(W,$){return oe(W.key,$)};function v(m,W,$){var G=m?m.children:i,N=m?Object(A.h)($.pos,W):"0";if(m){var J=j(m,N),S={node:m,index:W,pos:N,key:J,parentPos:$.node?$.pos:null,level:$.level+1};c(S)}G&&G.forEach(function(X,M){v(X,M,{node:m,pos:N,level:$?$.level+1:-1})})}v(null)}function p(i){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=c.initWrapper,j=c.processEntity,v=c.onProcessFinished,m=arguments.length>2?arguments[2]:void 0,W={},$={},G={posEntities:W,keyEntities:$};return g&&(G=g(G)||G),E(i,function(N){var J=N.node,S=N.index,X=N.pos,M=N.key,D=N.parentPos,P=N.level,w={node:J,index:S,key:M,pos:X,level:P},f=oe(M,X);W[X]=w,$[f]=w,w.parent=W[D],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),j&&j(w,G)},m),v&&v(G),G}function l(i,c){var g=c.expandedKeys,j=c.selectedKeys,v=c.loadedKeys,m=c.loadingKeys,W=c.checkedKeys,$=c.halfCheckedKeys,G=c.dragOverNodeKey,N=c.dropPosition,J=c.keyEntities,S=J[i],X={eventKey:i,expanded:g.indexOf(i)!==-1,selected:j.indexOf(i)!==-1,loaded:v.indexOf(i)!==-1,loading:m.indexOf(i)!==-1,checked:W.indexOf(i)!==-1,halfChecked:$.indexOf(i)!==-1,pos:String(S?S.pos:""),dragOver:G===i&&N===0,dragOverGapTop:G===i&&N===-1,dragOverGapBottom:G===i&&N===1};return X}function r(i){var c=i.data,g=i.expanded,j=i.selected,v=i.checked,m=i.loaded,W=i.loading,$=i.halfChecked,G=i.dragOver,N=i.dragOverGapTop,J=i.dragOverGapBottom,S=i.pos,X=i.active,M=Object(z.a)(Object(z.a)({},c),{},{expanded:g,selected:j,checked:v,loaded:m,loading:W,halfChecked:$,dragOver:G,dragOverGapTop:N,dragOverGapBottom:J,pos:S,active:X});return"props"in M||Object.defineProperty(M,"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`."),i}}),M}},"8HAY":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return y}),o.d(Q,"b",function(){return A}),o.d(Q,"d",function(){return oe}),o.d(Q,"e",function(){return re}),o.d(Q,"c",function(){return e});var Y=o("MI8n"),z=o("pmY6"),ce=o("3/fG"),ee=function(T,E,p,l){function r(i){return i instanceof p?i:new p(function(c){c(i)})}return new(p||(p=Promise))(function(i,c){function g(m){try{v(l.next(m))}catch(W){c(W)}}function j(m){try{v(l.throw(m))}catch(W){c(W)}}function v(m){m.done?i(m.value):r(m.value).then(g,j)}v((l=l.apply(T,E||[])).next())})};class y extends z.a{constructor(T,E="",p="",l=!0,r){super();this._onDidChange=this._register(new Y.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=T,this._label=E,this._cssClass=p,this._enabled=l,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(T){this._setLabel(T)}_setLabel(T){this._label!==T&&(this._label=T,this._onDidChange.fire({label:T}))}get tooltip(){return this._tooltip||""}set tooltip(T){this._setTooltip(T)}_setTooltip(T){this._tooltip!==T&&(this._tooltip=T,this._onDidChange.fire({tooltip:T}))}get class(){return this._cssClass}set class(T){this._setClass(T)}_setClass(T){this._cssClass!==T&&(this._cssClass=T,this._onDidChange.fire({class:T}))}get enabled(){return this._enabled}set enabled(T){this._setEnabled(T)}_setEnabled(T){this._enabled!==T&&(this._enabled=T,this._onDidChange.fire({enabled:T}))}get checked(){return this._checked}set checked(T){this._setChecked(T)}_setChecked(T){this._checked!==T&&(this._checked=T,this._onDidChange.fire({checked:T}))}run(T,E){return ee(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(T))})}}class A extends z.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new Y.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Y.b),this.onDidRun=this._onDidRun.event}run(T,E){return ee(this,void 0,void 0,function*(){if(!T.enabled)return;this._onBeforeRun.fire({action:T});let p;try{yield this.runAction(T,E)}catch(l){p=l}this._onDidRun.fire({action:T,error:p})})}runAction(T,E){return ee(this,void 0,void 0,function*(){yield T.run(E)})}}class oe extends y{constructor(T){super(oe.ID,T,T?"separator text":"separator");this.checked=!1,this.enabled=!1}}oe.ID="vs.actions.separator";class re{constructor(T,E,p,l){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=T,this.label=E,this.class=l,this._actions=p}get actions(){return this._actions}dispose(){}run(){return ee(this,void 0,void 0,function*(){})}}class e extends y{constructor(){super(e.ID,ce.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},BU3w:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return A});var Y=o("MNnm"),z="rc-util-key";function ce(oe){if(oe.attachTo)return oe.attachTo;var re=document.querySelector("head");return re||document.body}function ee(oe){var re,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Y.a)())return null;var T=document.createElement("style");if((re=e.csp)===null||re===void 0?void 0:re.nonce){var E;T.nonce=(E=e.csp)===null||E===void 0?void 0:E.nonce}T.innerHTML=oe;var p=ce(e),l=p.firstChild;return e.prepend&&p.prepend?p.prepend(T):e.prepend&&l?p.insertBefore(T,l):p.appendChild(T),T}var y=new Map;function A(oe,re){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=ce(e);if(!y.has(T)){var E=ee("",e),p=E.parentNode;y.set(T,p),p.removeChild(E)}var l=Array.from(y.get(T).children).find(function(j){return j.tagName==="STYLE"&&j[z]===re});if(l){var r,i;if(((r=e.csp)===null||r===void 0?void 0:r.nonce)&&l.nonce!==((i=e.csp)===null||i===void 0?void 0:i.nonce)){var c;l.nonce=(c=e.csp)===null||c===void 0?void 0:c.nonce}return l.innerHTML!==oe&&(l.innerHTML=oe),l}var g=ee(oe,e);return g[z]=re,g}},BdwD:function(Ge,Q,o){"use strict";var Y=o("+L6B"),z=o("2/Rp"),ce=o("0Owb"),ee=o("k1fw"),y=o("q1tI"),A=o.n(y),oe=o("FOrL"),re=o.n(oe),e=function(E){var p=E.buttonProps,l=p===void 0?{}:p,r=E.styles,i=r===void 0?{}:r,c=E.customText,g=E.ButtonText,j=E.ButtonClick,v=E.Buttonclass,m=E.ButtonTwo;return A.a.createElement("section",{className:"tc animated fadeIn",style:Object(ee.a)(Object(ee.a)({},{color:"#999",margin:"200px auto"}),i)},A.a.createElement("img",{src:re.a}),A.a.createElement("p",{className:"mt20 font14"},c||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),g&&A.a.createElement(z.a,Object(ce.a)({className:v,onClick:j},l),g),m&&m)};Q.a=e},"C/vA":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return Y});function Y(z){const ce=this;let ee=!1,y;return function(){return ee||(ee=!0,y=z.apply(ce,arguments)),y}}},"Cg/j":function(Ge,Q,o){"use strict";o.d(Q,"b",function(){return Y}),o.d(Q,"a",function(){return z}),o.d(Q,"c",function(){return ee}),o.d(Q,"d",function(){return y});var Y;(function(A){A.serviceIds=new Map,A.DI_TARGET="$di$target",A.DI_DEPENDENCIES="$di$dependencies";function oe(re){return re[A.DI_DEPENDENCIES]||[]}A.getServiceDependencies=oe})(Y||(Y={}));const z=ee("instantiationService");function ce(A,oe,re,e){oe[Y.DI_TARGET]===oe?oe[Y.DI_DEPENDENCIES].push({id:A,index:re,optional:e}):(oe[Y.DI_DEPENDENCIES]=[{id:A,index:re,optional:e}],oe[Y.DI_TARGET]=oe)}function ee(A){if(Y.serviceIds.has(A))return Y.serviceIds.get(A);const oe=function(re,e,T){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ce(oe,re,T,!1)};return oe.toString=()=>A,Y.serviceIds.set(A,oe),oe}function y(A){return function(oe,re,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ce(A,oe,e,!0)}}},DjB7:function(Ge,Q,o){Ge.exports={wrp:"wrp___2nXny",bgBlack:"bgBlack___1IKUX",monaco:"monaco___2Y5lJ",darkBlue:"darkBlue___ra_Hy",close:"close___2rU-E",embed:"embed___H-q69"}},FOrL:function(Ge,Q,o){Ge.exports=o.p+"static/nodata.a6b3f948.png"},FWmy:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return Y});function Y(z,ce){if(!z)throw new Error(ce?`Assertion failed (${ce})`:"Assertion Failed")}},GfqC:function(Ge,Q,o){"use strict";var Y=o("q1tI"),z=o.n(Y),ce=o("TSYQ"),ee=o.n(ce);function y(u,s){var a="cannot "+u.method+" "+u.action+" "+s.status+"'",t=new Error(a);return t.status=s.status,t.method=u.method,t.url=u.action,t}function A(u){var s=u.responseText||u.response;if(!s)return s;try{return JSON.parse(s)}catch(a){return s}}function oe(u){var s=new XMLHttpRequest;u.onProgress&&s.upload&&(s.upload.onprogress=function(U){U.total>0&&(U.percent=U.loaded/U.total*100),u.onProgress(U)});var a=new FormData;u.data&&Object.keys(u.data).forEach(function(R){var U=u.data[R];if(Array.isArray(U)){U.forEach(function(ae){a.append(R+"[]",ae)});return}a.append(R,u.data[R])}),u.file instanceof Blob?a.append(u.filename,u.file,u.file.name):a.append(u.filename,u.file),s.onerror=function(U){u.onError(U)},s.onload=function(){return s.status<200||s.status>=300?u.onError(y(u,s),A(s)):u.onSuccess(A(s),s)},s.open(u.method,u.action,!0),u.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var t=u.headers||{};return t["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(t).forEach(function(R){t[R]!==null&&s.setRequestHeader(R,t[R])}),s.send(a),{abort:function(){s.abort()}}}var re=+new Date,e=0;function T(){return"rc-upload-"+re+"-"+ ++e}function E(u,s){return u.indexOf(s,u.length-s.length)!==-1}var p=function(u,s){if(u&&s){var a=Array.isArray(s)?s:s.split(","),t=u.name||"",R=u.type||"",U=R.replace(/\/.*$/,"");return a.some(function(ae){var _e=ae.trim();return _e.charAt(0)==="."?E(t.toLowerCase(),_e.toLowerCase()):/\/\*$/.test(_e)?U===_e.replace(/\/.*$/,""):R===_e})}return!0};function l(u,s){var a=u.createReader(),t=[];function R(){a.readEntries(function(U){var ae=Array.prototype.slice.apply(U);t=t.concat(ae);var _e=!ae.length;_e?s(t):R()})}R()}var r=function(s,a,t){var R=function U(ae,_e){_e=_e||"",ae.isFile?ae.file(function(ne){t(ne)&&(ae.fullPath&&!ne.webkitRelativePath&&(Object.defineProperties(ne,{webkitRelativePath:{writable:!0}}),ne.webkitRelativePath=ae.fullPath.replace(/^\//,""),Object.defineProperties(ne,{webkitRelativePath:{writable:!1}})),a([ne]))}):ae.isDirectory&&l(ae,function(ne){ne.forEach(function(me){U(me,""+_e+ae.name+"/")})})};s.forEach(function(U){R(U.webkitGetAsEntry())})},i=r,c=Object.assign||function(u){for(var s=1;s=0)continue;if(!Object.prototype.hasOwnProperty.call(u,t))continue;a[t]=u[t]}return a}function W(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function $(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function G(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var N=function(s){return Object.keys(s).reduce(function(a,t){return(t.substr(0,5)==="data-"||t.substr(0,5)==="aria-"||t==="role")&&(a[t]=s[t]),a},{})},J=function(u){G(s,u);function s(){var a,t,R,U;W(this,s);for(var ae=arguments.length,_e=Array(ae),ne=0;nem.length&&($=m.length);W<$;W++)yield m[W]}z.slice=g;function j(m,W=Number.POSITIVE_INFINITY){const $=[];if(W===0)return[$,m];const G=m[Symbol.iterator]();for(let N=0;NG===N){const G=m[Symbol.iterator](),N=W[Symbol.iterator]();for(;;){const J=G.next(),S=N.next();if(J.done!==S.done)return!1;if(J.done)return!0;if(!$(J.value,S.value))return!1}}z.equals=v})(Y||(Y={}))},LdHM:function(Ge,Q,o){"use strict";o.d(Q,"b",function(){return m}),o.d(Q,"a",function(){return $});var Y=o("1OyB"),z=o("vuIU"),ce=o("Ji7U"),ee=o("LK+K"),y=o("q1tI"),A=o("rePB"),oe=o("Ff2n"),re=o("ODXe"),e=o("4IlW"),T=o("bX4T"),E=o("YrtM"),p=o("TSYQ"),l=o.n(p),r=o("+nKL"),i=o("8OUc"),c=function(t,R){var U=t.prefixCls,ae=t.id,_e=t.flattenOptions,ne=t.childrenAsData,me=t.values,Oe=t.searchValue,we=t.multiple,ue=t.defaultActiveFirstOption,Ee=t.height,C=t.itemHeight,q=t.notFoundContent,B=t.open,le=t.menuItemSelectedIcon,ye=t.virtual,Ae=t.onSelect,Fe=t.onToggleOpen,Xe=t.onActiveValue,V=t.onScroll,se=t.onMouseEnter,ge="".concat(U,"-item"),Te=Object(E.a)(function(){return _e},[B,_e],function(Se,ke){return ke[0]&&Se[1]!==ke[1]}),qe=y.useRef(null),ut=function(ke){ke.preventDefault()},At=function(ke){qe.current&&qe.current.scrollTo({index:ke})},Et=function(ke){for(var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Be=Te.length,Re=0;Re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(N.a)(a).map(function(R,U){if(!y.isValidElement(R)||!R.type)return null;var ae=R.type.isSelectOptGroup,_e=R.key,ne=R.props,me=ne.children,Oe=Object(oe.a)(ne,["children"]);return t||!ae?J(R):Object(G.a)(Object(G.a)({key:"__RC_SELECT_GRP__".concat(_e===null?U:_e,"__"),label:_e},Oe),{},{options:S(me)})}).filter(function(R){return R})}var X=o("2Qr1"),M=o("qNPg"),D=o("U8pU"),P=o("Kwbf"),w=o("WKfj");function f(a){var t=a.mode,R=a.options,U=a.children,ae=a.backfill,_e=a.allowClear,ne=a.placeholder,me=a.getInputElement,Oe=a.showSearch,we=a.onSearch,ue=a.defaultOpen,Ee=a.autoFocus,C=a.labelInValue,q=a.value,B=a.inputValue,le=a.optionLabelProp,ye=t==="multiple"||t==="tags",Ae=Oe!==void 0?Oe:ye||t==="combobox",Fe=R||S(U);if(Object(P.a)(t!=="tags"||Fe.every(function(ge){return!ge.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var Xe=Fe.some(function(ge){return ge.options?ge.options.some(function(Te){return typeof("value"in Te?Te.value:Te.key)=="number"}):typeof("value"in ge?ge.value:ge.key)=="number"});Object(P.a)(!Xe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(P.a)(t!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(P.a)(t==="combobox"||!ae,"`backfill` only works with `combobox` mode."),Object(P.a)(t==="combobox"||!me,"`getInputElement` only work with `combobox` mode."),Object(P.b)(t!=="combobox"||!me||!_e||!ne,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),we&&!Ae&&t!=="combobox"&&t!=="tags"&&Object(P.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(P.b)(!ue||Ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),q!=null){var V=Object(w.d)(q);Object(P.a)(!C||V.every(function(ge){return Object(D.a)(ge)==="object"&&("key"in ge||"value"in ge)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(P.a)(!ye||Array.isArray(q),"`value` should be array when `mode` is `multiple` or `tags`")}if(U){var se=null;Object(N.a)(U).some(function(ge){if(!y.isValidElement(ge)||!ge.type)return!1;var Te=ge.type;if(Te.isSelectOption)return!1;if(Te.isSelectOptGroup){var qe=Object(N.a)(ge.props.children).every(function(ut){return!y.isValidElement(ut)||!ge.type||ut.type.isSelectOption?!0:(se=ut.type,!1)});return!qe}return se=Te,!0}),se&&Object(P.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(se.displayName||se.name||se,"`.")),Object(P.a)(B===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var k=f,b=Object(M.a)({prefixCls:"rc-select",components:{optionList:j},convertChildrenToData:S,flattenOptions:X.d,getLabeledValue:X.e,filterOptions:X.b,isValueDisabled:X.g,findValueOption:X.c,warningProps:k,fillOptionsWithMissingValue:X.a}),n=function(a){Object(ce.a)(R,a);var t=Object(ee.a)(R);function R(){var U;return Object(Y.a)(this,R),U=t.apply(this,arguments),U.selectRef=y.createRef(),U.focus=function(){U.selectRef.current.focus()},U.blur=function(){U.selectRef.current.blur()},U}return Object(z.a)(R,[{key:"render",value:function(){return y.createElement(b,Object.assign({ref:this.selectRef},this.props))}}]),R}(y.Component);n.Option=m,n.OptGroup=$;var u=n,s=Q.c=u},MI8n:function(Ge,Q,o){"use strict";o.d(Q,"c",function(){return y}),o.d(Q,"b",function(){return e}),o.d(Q,"e",function(){return T}),o.d(Q,"a",function(){return E}),o.d(Q,"d",function(){return p}),o.d(Q,"f",function(){return l});var Y=o("/cxE"),z=o("pmY6"),ce=o("24hK"),ee=o("5Y4S"),y;(function(r){r.None=()=>z.a.None;function i(f){return(k,b=null,n)=>{let u=!1,s;return s=f(a=>u?void 0:(s?s.dispose():u=!0,k.call(b,a)),null,n),u&&s.dispose(),s}}r.once=i;function c(f,k){return $((b,n=null,u)=>f(s=>b.call(n,k(s)),null,u))}r.map=c;function g(f,k){return $((b,n=null,u)=>f(s=>{k(s),b.call(n,s)},null,u))}r.forEach=g;function j(f,k){return $((b,n=null,u)=>f(s=>k(s)&&b.call(n,s),null,u))}r.filter=j;function v(f){return f}r.signal=v;function m(...f){return(k,b=null,n)=>Object(z.e)(...f.map(u=>u(s=>k.call(b,s),null,n)))}r.any=m;function W(f,k,b){let n=b;return c(f,u=>(n=k(n,u),n))}r.reduce=W;function $(f){let k;const b=new e({onFirstListenerAdd(){k=f(b.fire,b)},onLastListenerRemove(){k.dispose()}});return b.event}function G(f,k,b=100,n=!1,u){let s,a,t,R=0;const U=new e({leakWarningThreshold:u,onFirstListenerAdd(){s=f(ae=>{R++,a=k(a,ae),n&&!t&&(U.fire(a),a=void 0),clearTimeout(t),t=setTimeout(()=>{const _e=a;a=void 0,t=void 0,(!n||R>1)&&U.fire(_e),R=0},b)})},onLastListenerRemove(){s.dispose()}});return U.event}r.debounce=G;function N(f,k=(b,n)=>b===n){let b=!0,n;return j(f,u=>{const s=b||!k(u,n);return b=!1,n=u,s})}r.latch=N;function J(f,k){return[r.filter(f,k),r.filter(f,b=>!k(b))]}r.split=J;function S(f,k=!1,b=[]){let n=b.slice(),u=f(t=>{n?n.push(t):a.fire(t)});const s=()=>{n&&n.forEach(t=>a.fire(t)),n=null},a=new e({onFirstListenerAdd(){u||(u=f(t=>a.fire(t)))},onFirstListenerDidAdd(){n&&(k?setTimeout(s):s())},onLastListenerRemove(){u&&u.dispose(),u=null}});return a.event}r.buffer=S;class X{constructor(f){this.event=f}map(f){return new X(c(this.event,f))}forEach(f){return new X(g(this.event,f))}filter(f){return new X(j(this.event,f))}reduce(f,k){return new X(W(this.event,f,k))}latch(){return new X(N(this.event))}debounce(f,k=100,b=!1,n){return new X(G(this.event,f,k,b,n))}on(f,k,b){return this.event(f,k,b)}once(f,k,b){return i(this.event)(f,k,b)}}function M(f){return new X(f)}r.chain=M;function D(f,k,b=n=>n){const n=(...t)=>a.fire(b(...t)),u=()=>f.on(k,n),s=()=>f.removeListener(k,n),a=new e({onFirstListenerAdd:u,onLastListenerRemove:s});return a.event}r.fromNodeEventEmitter=D;function P(f,k,b=n=>n){const n=(...t)=>a.fire(b(...t)),u=()=>f.addEventListener(k,n),s=()=>f.removeEventListener(k,n),a=new e({onFirstListenerAdd:u,onLastListenerRemove:s});return a.event}r.fromDOMEventEmitter=P;function w(f){return new Promise(k=>i(f)(k))}r.toPromise=w})(y||(y={}));class A{constructor(r){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${r}_${A._idPool++}`}start(r){this._stopWatch=new ee.a(!0),this._listenerCount=r}stop(){if(this._stopWatch){const r=this._stopWatch.elapsed();this._elapsedOverall+=r,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${r.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}A._idPool=0;let oe=-1;class re{constructor(r,i=Math.random().toString(18).slice(2,5)){this.customThreshold=r,this.name=i,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(r){let i=oe;if(typeof this.customThreshold=="number"&&(i=this.customThreshold),i<=0||r126&&u<=255&&a[0].indexOf("x")===0)return b;if(u>=0&&u<32){n+="\\"+a[0];continue}else u===34||u===39||u===92?n+="\\"+String.fromCharCode(u):n+=String.fromCharCode(u)}return n}h.prototype._read_string_recursive=function(b,n,u){var s,a;b==="'"?a=this.__patterns.single_quote:b==='"'?a=this.__patterns.double_quote:b==="`"?a=this.__patterns.template_text:b==="}"&&(a=this.__patterns.template_expression);for(var t=a.read(),R="";this._input.hasNext();){if(R=this._input.next(),R===b||!n&&c.newline.test(R)){this._input.back();break}else R==="\\"&&this._input.hasNext()?(s=this._input.peek(),s==="x"||s==="u"?this.has_char_escapes=!0:s==="\r"&&this._input.peek(1)===` +`&&this._input.next(),R+=this._input.next()):u&&(u==="${"&&R==="$"&&this._input.peek()==="{"&&(R+=this._input.next()),u===R&&(b==="`"?R+=this._read_string_recursive("}",n,"`"):R+=this._read_string_recursive("`",n,"${"),this._input.hasNext()&&(R+=this._input.next())));R+=a.read(),t+=R}return t},e.exports.Tokenizer=h,e.exports.TOKEN=m,e.exports.positionable_operators=J.slice(),e.exports.line_starters=M.slice()},function(e){var T=RegExp.prototype.hasOwnProperty("sticky");function E(p){this.__input=p||"",this.__input_length=this.__input.length,this.__position=0}E.prototype.restart=function(){this.__position=0},E.prototype.back=function(){this.__position>0&&(this.__position-=1)},E.prototype.hasNext=function(){return this.__position=0&&p=0&&l=p.length&&this.__input.substring(l-p.length,l).toLowerCase()===p},e.exports.InputScanner=E},function(e,T,E){var p=E(8).InputScanner,l=E(3).Token,r=E(10).TokenStream,i=E(11).WhitespacePattern,c={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},g=function(j,v){this._input=new p(j),this._options=v||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};g.prototype.tokenize=function(){this._input.restart(),this.__tokens=new r,this._reset();for(var j,v=new l(c.START,""),m=null,W=[],$=new r;v.type!==c.EOF;){for(j=this._get_next_token(v,m);this._is_comment(j);)$.add(j),j=this._get_next_token(v,m);$.isEmpty()||(j.comments_before=$,$=new r),j.parent=m,this._is_opening(j)?(W.push(m),m=j):m&&this._is_closing(j,m)&&(j.opened=m,m.closed=j,m=W.pop(),j.parent=m),j.previous=v,v.next=j,this.__tokens.add(j),v=j}return this.__tokens},g.prototype._is_first_token=function(){return this.__tokens.isEmpty()},g.prototype._reset=function(){},g.prototype._get_next_token=function(j,v){this._readWhitespace();var m=this._input.read(/.+/g);return m?this._create_token(c.RAW,m):this._create_token(c.EOF,"")},g.prototype._is_comment=function(j){return!1},g.prototype._is_opening=function(j){return!1},g.prototype._is_closing=function(j,v){return!1},g.prototype._create_token=function(j,v){var m=new l(j,v,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return m},g.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=g,e.exports.TOKEN=c},function(e){function T(E){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=E}T.prototype.restart=function(){this.__position=0},T.prototype.isEmpty=function(){return this.__tokens_length===0},T.prototype.hasNext=function(){return this.__position=0&&E/),erb:g.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:g.starting_with(/{%/).until_after(/%}/),django_value:g.starting_with(/{{/).until_after(/}}/),django_comment:g.starting_with(/{#/).until_after(/#}/),smarty:g.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:g.starting_with(/{\*/).until_after(/\*}/),smarty_literal:g.starting_with(/{literal}/).until_after(/{\/literal}/)}}r.prototype=new p,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(i){var c=this._create();return c._disabled[i]=!0,c._update(),c},r.prototype.read_options=function(i){var c=this._create();for(var g in l)c._disabled[g]=i.templating.indexOf(g)===-1;return c._update(),c},r.prototype.exclude=function(i){var c=this._create();return c._excluded[i]=!0,c._update(),c},r.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 c=this._read_template();c;)this._match_pattern?c+=this._input.read(this._match_pattern):c+=this._input.readUntil(this.__template_pattern),i+=c,c=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},r.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("|")+")")},r.prototype._read_template=function(){var i="",c=this._input.peek();if(c==="<"){var g=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&g==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&g==="%"&&(i=i||this.__patterns.erb.read())}else c==="{"&&(!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},e.exports.TemplatablePattern=r}],A={};function oe(e){var T=A[e];if(T!==void 0)return T.exports;var E=A[e]={exports:{}};return y[e](E,E.exports,oe),E.exports}var re=oe(0);ce=re})();var ee=ce;!(Y=[],z=function(){return{js_beautify:ee}}.apply(Q,Y),z!==void 0&&(Ge.exports=z))})()},"6eGT":function(Ge,Q,o){"use strict";function Y(z){return null}Q.a=Y},"746U":function(Ge,Q,o){"use strict";o.d(Q,"f",function(){return Y}),o.d(Q,"l",function(){return z}),o.d(Q,"k",function(){return ce}),o.d(Q,"j",function(){return ee}),o.d(Q,"g",function(){return y}),o.d(Q,"m",function(){return A}),o.d(Q,"h",function(){return oe}),o.d(Q,"n",function(){return re}),o.d(Q,"c",function(){return e}),o.d(Q,"a",function(){return T}),o.d(Q,"i",function(){return E}),o.d(Q,"o",function(){return p}),o.d(Q,"e",function(){return i}),o.d(Q,"d",function(){return c}),o.d(Q,"p",function(){return g}),o.d(Q,"b",function(){return j});function Y(v){return Array.isArray(v)}function z(v){return typeof v=="string"}function ce(v){return typeof v=="object"&&v!==null&&!Array.isArray(v)&&!(v instanceof RegExp)&&!(v instanceof Date)}function ee(v){return typeof v=="number"&&!isNaN(v)}function y(v){return v===!0||v===!1}function A(v){return typeof v=="undefined"}function oe(v){return!re(v)}function re(v){return A(v)||v===null}function e(v,m){if(!v)throw new Error(m?`Unexpected type, expected '${m}'`:"Unexpected type")}function T(v){if(re(v))throw new Error("Assertion Failed: argument is undefined or null");return v}function E(v){return typeof v=="function"}function p(v,m){const W=Math.min(v.length,m.length);for(let $=0;$function(){const N=Array.prototype.slice.call(arguments,0);return m(G,N)};let $={};for(const G of v)$[G]=W(G);return $}function g(v){return v===null?void 0:v}function j(v,m="Unreachable"){throw new Error(m)}},"815F":function(Ge,Q,o){"use strict";o.d(Q,"e",function(){return oe}),o.d(Q,"c",function(){return e}),o.d(Q,"d",function(){return T}),o.d(Q,"a",function(){return p}),o.d(Q,"f",function(){return l}),o.d(Q,"b",function(){return r});var Y=o("KQm4"),z=o("VTBJ"),ce=o("Ff2n"),ee=o("Zm9Q"),y=o("Kwbf"),A=o("OZM5");function oe(i,c){return i!=null?i:c}function re(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=new Map;function g(j){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(j||[]).forEach(function(m){var W=m.key,$=m.children;Object(y.a)(W!=null,"Tree node must have a certain key: [".concat(v).concat(W,"]"));var G=String(W);Object(y.a)(!c.has(G)||W===null||W===void 0,"Same 'key' exist in the Tree: ".concat(G)),c.set(G,!0),g($,"".concat(v).concat(G," > "))})}g(i)}function e(i){function c(g){var j=Object(ee.a)(g);return j.map(function(v){if(!Object(A.i)(v))return Object(y.a)(!v,"Tree/TreeNode can only accept TreeNode as children."),null;var m=v.key,W=v.props,$=W.children,G=Object(ce.a)(W,["children"]),N=Object(z.a)({key:m},G),J=c($);return J.length&&(N.children=J),N}).filter(function(v){return v})}return c(i)}function T(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],g=new Set(c===!0?[]:c),j=[];function v(m){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return m.map(function($,G){var N=Object(A.h)(W?W.pos:"0",G),J=oe($.key,N),S=Object(z.a)(Object(z.a)({},$),{},{parent:W,pos:N,children:null,data:$,isStart:[].concat(Object(Y.a)(W?W.isStart:[]),[G===0]),isEnd:[].concat(Object(Y.a)(W?W.isEnd:[]),[G===m.length-1])});return j.push(S),c===!0||g.has(J)?S.children=v($.children||[],S):S.children=[],S})}return v(i),j}function E(i,c,g){var j;g?typeof g=="string"?j=function(W){return W[g]}:typeof g=="function"&&(j=function(W){return g(W)}):j=function(W,$){return oe(W.key,$)};function v(m,W,$){var G=m?m.children:i,N=m?Object(A.h)($.pos,W):"0";if(m){var J=j(m,N),S={node:m,index:W,pos:N,key:J,parentPos:$.node?$.pos:null,level:$.level+1};c(S)}G&&G.forEach(function(X,M){v(X,M,{node:m,pos:N,level:$?$.level+1:-1})})}v(null)}function p(i){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=c.initWrapper,j=c.processEntity,v=c.onProcessFinished,m=arguments.length>2?arguments[2]:void 0,W={},$={},G={posEntities:W,keyEntities:$};return g&&(G=g(G)||G),E(i,function(N){var J=N.node,S=N.index,X=N.pos,M=N.key,D=N.parentPos,P=N.level,w={node:J,index:S,key:M,pos:X,level:P},h=oe(M,X);W[X]=w,$[h]=w,w.parent=W[D],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),j&&j(w,G)},m),v&&v(G),G}function l(i,c){var g=c.expandedKeys,j=c.selectedKeys,v=c.loadedKeys,m=c.loadingKeys,W=c.checkedKeys,$=c.halfCheckedKeys,G=c.dragOverNodeKey,N=c.dropPosition,J=c.keyEntities,S=J[i],X={eventKey:i,expanded:g.indexOf(i)!==-1,selected:j.indexOf(i)!==-1,loaded:v.indexOf(i)!==-1,loading:m.indexOf(i)!==-1,checked:W.indexOf(i)!==-1,halfChecked:$.indexOf(i)!==-1,pos:String(S?S.pos:""),dragOver:G===i&&N===0,dragOverGapTop:G===i&&N===-1,dragOverGapBottom:G===i&&N===1};return X}function r(i){var c=i.data,g=i.expanded,j=i.selected,v=i.checked,m=i.loaded,W=i.loading,$=i.halfChecked,G=i.dragOver,N=i.dragOverGapTop,J=i.dragOverGapBottom,S=i.pos,X=i.active,M=Object(z.a)(Object(z.a)({},c),{},{expanded:g,selected:j,checked:v,loaded:m,loading:W,halfChecked:$,dragOver:G,dragOverGapTop:N,dragOverGapBottom:J,pos:S,active:X});return"props"in M||Object.defineProperty(M,"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`."),i}}),M}},"8HAY":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return y}),o.d(Q,"b",function(){return A}),o.d(Q,"d",function(){return oe}),o.d(Q,"e",function(){return re}),o.d(Q,"c",function(){return e});var Y=o("MI8n"),z=o("pmY6"),ce=o("3/fG"),ee=function(T,E,p,l){function r(i){return i instanceof p?i:new p(function(c){c(i)})}return new(p||(p=Promise))(function(i,c){function g(m){try{v(l.next(m))}catch(W){c(W)}}function j(m){try{v(l.throw(m))}catch(W){c(W)}}function v(m){m.done?i(m.value):r(m.value).then(g,j)}v((l=l.apply(T,E||[])).next())})};class y extends z.a{constructor(T,E="",p="",l=!0,r){super();this._onDidChange=this._register(new Y.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=T,this._label=E,this._cssClass=p,this._enabled=l,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(T){this._setLabel(T)}_setLabel(T){this._label!==T&&(this._label=T,this._onDidChange.fire({label:T}))}get tooltip(){return this._tooltip||""}set tooltip(T){this._setTooltip(T)}_setTooltip(T){this._tooltip!==T&&(this._tooltip=T,this._onDidChange.fire({tooltip:T}))}get class(){return this._cssClass}set class(T){this._setClass(T)}_setClass(T){this._cssClass!==T&&(this._cssClass=T,this._onDidChange.fire({class:T}))}get enabled(){return this._enabled}set enabled(T){this._setEnabled(T)}_setEnabled(T){this._enabled!==T&&(this._enabled=T,this._onDidChange.fire({enabled:T}))}get checked(){return this._checked}set checked(T){this._setChecked(T)}_setChecked(T){this._checked!==T&&(this._checked=T,this._onDidChange.fire({checked:T}))}run(T,E){return ee(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(T))})}}class A extends z.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new Y.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Y.b),this.onDidRun=this._onDidRun.event}run(T,E){return ee(this,void 0,void 0,function*(){if(!T.enabled)return;this._onBeforeRun.fire({action:T});let p;try{yield this.runAction(T,E)}catch(l){p=l}this._onDidRun.fire({action:T,error:p})})}runAction(T,E){return ee(this,void 0,void 0,function*(){yield T.run(E)})}}class oe extends y{constructor(T){super(oe.ID,T,T?"separator text":"separator");this.checked=!1,this.enabled=!1}}oe.ID="vs.actions.separator";class re{constructor(T,E,p,l){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=T,this.label=E,this.class=l,this._actions=p}get actions(){return this._actions}dispose(){}run(){return ee(this,void 0,void 0,function*(){})}}class e extends y{constructor(){super(e.ID,ce.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},BU3w:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return A});var Y=o("MNnm"),z="rc-util-key";function ce(oe){if(oe.attachTo)return oe.attachTo;var re=document.querySelector("head");return re||document.body}function ee(oe){var re,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Y.a)())return null;var T=document.createElement("style");if((re=e.csp)===null||re===void 0?void 0:re.nonce){var E;T.nonce=(E=e.csp)===null||E===void 0?void 0:E.nonce}T.innerHTML=oe;var p=ce(e),l=p.firstChild;return e.prepend&&p.prepend?p.prepend(T):e.prepend&&l?p.insertBefore(T,l):p.appendChild(T),T}var y=new Map;function A(oe,re){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=ce(e);if(!y.has(T)){var E=ee("",e),p=E.parentNode;y.set(T,p),p.removeChild(E)}var l=Array.from(y.get(T).children).find(function(j){return j.tagName==="STYLE"&&j[z]===re});if(l){var r,i;if(((r=e.csp)===null||r===void 0?void 0:r.nonce)&&l.nonce!==((i=e.csp)===null||i===void 0?void 0:i.nonce)){var c;l.nonce=(c=e.csp)===null||c===void 0?void 0:c.nonce}return l.innerHTML!==oe&&(l.innerHTML=oe),l}var g=ee(oe,e);return g[z]=re,g}},BdwD:function(Ge,Q,o){"use strict";var Y=o("+L6B"),z=o("2/Rp"),ce=o("0Owb"),ee=o("k1fw"),y=o("q1tI"),A=o.n(y),oe=o("FOrL"),re=o.n(oe),e=function(E){var p=E.buttonProps,l=p===void 0?{}:p,r=E.styles,i=r===void 0?{}:r,c=E.customText,g=E.ButtonText,j=E.ButtonClick,v=E.Buttonclass,m=E.ButtonTwo;return A.a.createElement("section",{className:"tc animated fadeIn",style:Object(ee.a)(Object(ee.a)({},{color:"#999",margin:"200px auto"}),i)},A.a.createElement("img",{src:re.a}),A.a.createElement("p",{className:"mt20 font14"},c||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),g&&A.a.createElement(z.a,Object(ce.a)({className:v,onClick:j},l),g),m&&m)};Q.a=e},"C/vA":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return Y});function Y(z){const ce=this;let ee=!1,y;return function(){return ee||(ee=!0,y=z.apply(ce,arguments)),y}}},"Cg/j":function(Ge,Q,o){"use strict";o.d(Q,"b",function(){return Y}),o.d(Q,"a",function(){return z}),o.d(Q,"c",function(){return ee}),o.d(Q,"d",function(){return y});var Y;(function(A){A.serviceIds=new Map,A.DI_TARGET="$di$target",A.DI_DEPENDENCIES="$di$dependencies";function oe(re){return re[A.DI_DEPENDENCIES]||[]}A.getServiceDependencies=oe})(Y||(Y={}));const z=ee("instantiationService");function ce(A,oe,re,e){oe[Y.DI_TARGET]===oe?oe[Y.DI_DEPENDENCIES].push({id:A,index:re,optional:e}):(oe[Y.DI_DEPENDENCIES]=[{id:A,index:re,optional:e}],oe[Y.DI_TARGET]=oe)}function ee(A){if(Y.serviceIds.has(A))return Y.serviceIds.get(A);const oe=function(re,e,T){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ce(oe,re,T,!1)};return oe.toString=()=>A,Y.serviceIds.set(A,oe),oe}function y(A){return function(oe,re,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ce(A,oe,e,!0)}}},DjB7:function(Ge,Q,o){Ge.exports={wrp:"wrp___2nXny",bgBlack:"bgBlack___1IKUX",monaco:"monaco___2Y5lJ",darkBlue:"darkBlue___ra_Hy",close:"close___2rU-E",embed:"embed___H-q69"}},FOrL:function(Ge,Q,o){Ge.exports=o.p+"static/nodata.a6b3f948.png"},FWmy:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return Y});function Y(z,ce){if(!z)throw new Error(ce?`Assertion failed (${ce})`:"Assertion Failed")}},GfqC:function(Ge,Q,o){"use strict";var Y=o("q1tI"),z=o.n(Y),ce=o("TSYQ"),ee=o.n(ce);function y(u,s){var a="cannot "+u.method+" "+u.action+" "+s.status+"'",t=new Error(a);return t.status=s.status,t.method=u.method,t.url=u.action,t}function A(u){var s=u.responseText||u.response;if(!s)return s;try{return JSON.parse(s)}catch(a){return s}}function oe(u){var s=new XMLHttpRequest;u.onProgress&&s.upload&&(s.upload.onprogress=function(U){U.total>0&&(U.percent=U.loaded/U.total*100),u.onProgress(U)});var a=new FormData;u.data&&Object.keys(u.data).forEach(function(R){var U=u.data[R];if(Array.isArray(U)){U.forEach(function(ae){a.append(R+"[]",ae)});return}a.append(R,u.data[R])}),u.file instanceof Blob?a.append(u.filename,u.file,u.file.name):a.append(u.filename,u.file),s.onerror=function(U){u.onError(U)},s.onload=function(){return s.status<200||s.status>=300?u.onError(y(u,s),A(s)):u.onSuccess(A(s),s)},s.open(u.method,u.action,!0),u.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var t=u.headers||{};return t["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(t).forEach(function(R){t[R]!==null&&s.setRequestHeader(R,t[R])}),s.send(a),{abort:function(){s.abort()}}}var re=+new Date,e=0;function T(){return"rc-upload-"+re+"-"+ ++e}function E(u,s){return u.indexOf(s,u.length-s.length)!==-1}var p=function(u,s){if(u&&s){var a=Array.isArray(s)?s:s.split(","),t=u.name||"",R=u.type||"",U=R.replace(/\/.*$/,"");return a.some(function(ae){var _e=ae.trim();return _e.charAt(0)==="."?E(t.toLowerCase(),_e.toLowerCase()):/\/\*$/.test(_e)?U===_e.replace(/\/.*$/,""):R===_e})}return!0};function l(u,s){var a=u.createReader(),t=[];function R(){a.readEntries(function(U){var ae=Array.prototype.slice.apply(U);t=t.concat(ae);var _e=!ae.length;_e?s(t):R()})}R()}var r=function(s,a,t){var R=function U(ae,_e){_e=_e||"",ae.isFile?ae.file(function(ne){t(ne)&&(ae.fullPath&&!ne.webkitRelativePath&&(Object.defineProperties(ne,{webkitRelativePath:{writable:!0}}),ne.webkitRelativePath=ae.fullPath.replace(/^\//,""),Object.defineProperties(ne,{webkitRelativePath:{writable:!1}})),a([ne]))}):ae.isDirectory&&l(ae,function(ne){ne.forEach(function(me){U(me,""+_e+ae.name+"/")})})};s.forEach(function(U){R(U.webkitGetAsEntry())})},i=r,c=Object.assign||function(u){for(var s=1;s=0)continue;if(!Object.prototype.hasOwnProperty.call(u,t))continue;a[t]=u[t]}return a}function W(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function $(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function G(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var N=function(s){return Object.keys(s).reduce(function(a,t){return(t.substr(0,5)==="data-"||t.substr(0,5)==="aria-"||t==="role")&&(a[t]=s[t]),a},{})},J=function(u){G(s,u);function s(){var a,t,R,U;W(this,s);for(var ae=arguments.length,_e=Array(ae),ne=0;nem.length&&($=m.length);W<$;W++)yield m[W]}z.slice=g;function j(m,W=Number.POSITIVE_INFINITY){const $=[];if(W===0)return[$,m];const G=m[Symbol.iterator]();for(let N=0;NG===N){const G=m[Symbol.iterator](),N=W[Symbol.iterator]();for(;;){const J=G.next(),S=N.next();if(J.done!==S.done)return!1;if(J.done)return!0;if(!$(J.value,S.value))return!1}}z.equals=v})(Y||(Y={}))},LdHM:function(Ge,Q,o){"use strict";o.d(Q,"b",function(){return m}),o.d(Q,"a",function(){return $});var Y=o("1OyB"),z=o("vuIU"),ce=o("Ji7U"),ee=o("LK+K"),y=o("q1tI"),A=o("rePB"),oe=o("Ff2n"),re=o("ODXe"),e=o("4IlW"),T=o("bX4T"),E=o("YrtM"),p=o("TSYQ"),l=o.n(p),r=o("+nKL"),i=o("8OUc"),c=function(t,R){var U=t.prefixCls,ae=t.id,_e=t.flattenOptions,ne=t.childrenAsData,me=t.values,Oe=t.searchValue,we=t.multiple,ue=t.defaultActiveFirstOption,Ee=t.height,C=t.itemHeight,q=t.notFoundContent,B=t.open,le=t.menuItemSelectedIcon,ye=t.virtual,Ae=t.onSelect,Fe=t.onToggleOpen,Xe=t.onActiveValue,V=t.onScroll,se=t.onMouseEnter,ge="".concat(U,"-item"),Te=Object(E.a)(function(){return _e},[B,_e],function(Se,ke){return ke[0]&&Se[1]!==ke[1]}),qe=y.useRef(null),ut=function(ke){ke.preventDefault()},At=function(ke){qe.current&&qe.current.scrollTo({index:ke})},Et=function(ke){for(var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Be=Te.length,Re=0;Re1&&arguments[1]!==void 0?arguments[1]:!1;return Object(N.a)(a).map(function(R,U){if(!y.isValidElement(R)||!R.type)return null;var ae=R.type.isSelectOptGroup,_e=R.key,ne=R.props,me=ne.children,Oe=Object(oe.a)(ne,["children"]);return t||!ae?J(R):Object(G.a)(Object(G.a)({key:"__RC_SELECT_GRP__".concat(_e===null?U:_e,"__"),label:_e},Oe),{},{options:S(me)})}).filter(function(R){return R})}var X=o("2Qr1"),M=o("qNPg"),D=o("U8pU"),P=o("Kwbf"),w=o("WKfj");function h(a){var t=a.mode,R=a.options,U=a.children,ae=a.backfill,_e=a.allowClear,ne=a.placeholder,me=a.getInputElement,Oe=a.showSearch,we=a.onSearch,ue=a.defaultOpen,Ee=a.autoFocus,C=a.labelInValue,q=a.value,B=a.inputValue,le=a.optionLabelProp,ye=t==="multiple"||t==="tags",Ae=Oe!==void 0?Oe:ye||t==="combobox",Fe=R||S(U);if(Object(P.a)(t!=="tags"||Fe.every(function(ge){return!ge.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var Xe=Fe.some(function(ge){return ge.options?ge.options.some(function(Te){return typeof("value"in Te?Te.value:Te.key)=="number"}):typeof("value"in ge?ge.value:ge.key)=="number"});Object(P.a)(!Xe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(P.a)(t!=="combobox"||!le,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(P.a)(t==="combobox"||!ae,"`backfill` only works with `combobox` mode."),Object(P.a)(t==="combobox"||!me,"`getInputElement` only work with `combobox` mode."),Object(P.b)(t!=="combobox"||!me||!_e||!ne,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),we&&!Ae&&t!=="combobox"&&t!=="tags"&&Object(P.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(P.b)(!ue||Ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),q!=null){var V=Object(w.d)(q);Object(P.a)(!C||V.every(function(ge){return Object(D.a)(ge)==="object"&&("key"in ge||"value"in ge)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(P.a)(!ye||Array.isArray(q),"`value` should be array when `mode` is `multiple` or `tags`")}if(U){var se=null;Object(N.a)(U).some(function(ge){if(!y.isValidElement(ge)||!ge.type)return!1;var Te=ge.type;if(Te.isSelectOption)return!1;if(Te.isSelectOptGroup){var qe=Object(N.a)(ge.props.children).every(function(ut){return!y.isValidElement(ut)||!ge.type||ut.type.isSelectOption?!0:(se=ut.type,!1)});return!qe}return se=Te,!0}),se&&Object(P.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(se.displayName||se.name||se,"`.")),Object(P.a)(B===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var k=h,b=Object(M.a)({prefixCls:"rc-select",components:{optionList:j},convertChildrenToData:S,flattenOptions:X.d,getLabeledValue:X.e,filterOptions:X.b,isValueDisabled:X.g,findValueOption:X.c,warningProps:k,fillOptionsWithMissingValue:X.a}),n=function(a){Object(ce.a)(R,a);var t=Object(ee.a)(R);function R(){var U;return Object(Y.a)(this,R),U=t.apply(this,arguments),U.selectRef=y.createRef(),U.focus=function(){U.selectRef.current.focus()},U.blur=function(){U.selectRef.current.blur()},U}return Object(z.a)(R,[{key:"render",value:function(){return y.createElement(b,Object.assign({ref:this.selectRef},this.props))}}]),R}(y.Component);n.Option=m,n.OptGroup=$;var u=n,s=Q.c=u},MI8n:function(Ge,Q,o){"use strict";o.d(Q,"c",function(){return y}),o.d(Q,"b",function(){return e}),o.d(Q,"e",function(){return T}),o.d(Q,"a",function(){return E}),o.d(Q,"d",function(){return p}),o.d(Q,"f",function(){return l});var Y=o("/cxE"),z=o("pmY6"),ce=o("24hK"),ee=o("5Y4S"),y;(function(r){r.None=()=>z.a.None;function i(h){return(k,b=null,n)=>{let u=!1,s;return s=h(a=>u?void 0:(s?s.dispose():u=!0,k.call(b,a)),null,n),u&&s.dispose(),s}}r.once=i;function c(h,k){return $((b,n=null,u)=>h(s=>b.call(n,k(s)),null,u))}r.map=c;function g(h,k){return $((b,n=null,u)=>h(s=>{k(s),b.call(n,s)},null,u))}r.forEach=g;function j(h,k){return $((b,n=null,u)=>h(s=>k(s)&&b.call(n,s),null,u))}r.filter=j;function v(h){return h}r.signal=v;function m(...h){return(k,b=null,n)=>Object(z.e)(...h.map(u=>u(s=>k.call(b,s),null,n)))}r.any=m;function W(h,k,b){let n=b;return c(h,u=>(n=k(n,u),n))}r.reduce=W;function $(h){let k;const b=new e({onFirstListenerAdd(){k=h(b.fire,b)},onLastListenerRemove(){k.dispose()}});return b.event}function G(h,k,b=100,n=!1,u){let s,a,t,R=0;const U=new e({leakWarningThreshold:u,onFirstListenerAdd(){s=h(ae=>{R++,a=k(a,ae),n&&!t&&(U.fire(a),a=void 0),clearTimeout(t),t=setTimeout(()=>{const _e=a;a=void 0,t=void 0,(!n||R>1)&&U.fire(_e),R=0},b)})},onLastListenerRemove(){s.dispose()}});return U.event}r.debounce=G;function N(h,k=(b,n)=>b===n){let b=!0,n;return j(h,u=>{const s=b||!k(u,n);return b=!1,n=u,s})}r.latch=N;function J(h,k){return[r.filter(h,k),r.filter(h,b=>!k(b))]}r.split=J;function S(h,k=!1,b=[]){let n=b.slice(),u=h(t=>{n?n.push(t):a.fire(t)});const s=()=>{n&&n.forEach(t=>a.fire(t)),n=null},a=new e({onFirstListenerAdd(){u||(u=h(t=>a.fire(t)))},onFirstListenerDidAdd(){n&&(k?setTimeout(s):s())},onLastListenerRemove(){u&&u.dispose(),u=null}});return a.event}r.buffer=S;class X{constructor(h){this.event=h}map(h){return new X(c(this.event,h))}forEach(h){return new X(g(this.event,h))}filter(h){return new X(j(this.event,h))}reduce(h,k){return new X(W(this.event,h,k))}latch(){return new X(N(this.event))}debounce(h,k=100,b=!1,n){return new X(G(this.event,h,k,b,n))}on(h,k,b){return this.event(h,k,b)}once(h,k,b){return i(this.event)(h,k,b)}}function M(h){return new X(h)}r.chain=M;function D(h,k,b=n=>n){const n=(...t)=>a.fire(b(...t)),u=()=>h.on(k,n),s=()=>h.removeListener(k,n),a=new e({onFirstListenerAdd:u,onLastListenerRemove:s});return a.event}r.fromNodeEventEmitter=D;function P(h,k,b=n=>n){const n=(...t)=>a.fire(b(...t)),u=()=>h.addEventListener(k,n),s=()=>h.removeEventListener(k,n),a=new e({onFirstListenerAdd:u,onLastListenerRemove:s});return a.event}r.fromDOMEventEmitter=P;function w(h){return new Promise(k=>i(h)(k))}r.toPromise=w})(y||(y={}));class A{constructor(r){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${r}_${A._idPool++}`}start(r){this._stopWatch=new ee.a(!0),this._listenerCount=r}stop(){if(this._stopWatch){const r=this._stopWatch.elapsed();this._elapsedOverall+=r,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${r.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}A._idPool=0;let oe=-1;class re{constructor(r,i=Math.random().toString(18).slice(2,5)){this.customThreshold=r,this.name=i,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(r){let i=oe;if(typeof this.customThreshold=="number"&&(i=this.customThreshold),i<=0||r{const j=this._stacks.get(c)||0;this._stacks.set(c,j-1)}}}class e{constructor(r){var i;this._disposed=!1,this._options=r,this._leakageMon=oe>0?new re(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((i=this._options)===null||i===void 0?void 0:i._profName)?new A(this._options._profName):void 0}get event(){return this._event||(this._event=(r,i,c)=>{var g;this._listeners||(this._listeners=new ce.a);const j=this._listeners.isEmpty();j&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const v=this._listeners.push(i?[r,i]:r);j&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,r,i);const m=(g=this._leakageMon)===null||g===void 0?void 0:g.check(this._listeners.size),W=Object(z.i)(()=>{if(m&&m(),!this._disposed&&(v(),this._options&&this._options.onLastListenerRemove)){const $=this._listeners&&!this._listeners.isEmpty();$||this._options.onLastListenerRemove(this)}});return c instanceof z.b?c.add(W):Array.isArray(c)&&c.push(W),W}),this._event}fire(r){var i,c;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ce.a);for(let g of this._listeners)this._deliveryQueue.push([g,r]);for((i=this._perfMon)===null||i===void 0||i.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[g,j]=this._deliveryQueue.shift();try{typeof g=="function"?g.call(void 0,j):g[0].call(g[1],j)}catch(v){Object(Y.f)(v)}}(c=this._perfMon)===null||c===void 0||c.stop()}}dispose(){var r,i,c,g,j;this._disposed||(this._disposed=!0,(r=this._listeners)===null||r===void 0||r.clear(),(i=this._deliveryQueue)===null||i===void 0||i.clear(),(g=(c=this._options)===null||c===void 0?void 0:c.onLastListenerRemove)===null||g===void 0||g.call(c),(j=this._leakageMon)===null||j===void 0||j.dispose())}}class T extends e{constructor(r){super(r);this._isPaused=0,this._eventQueue=new ce.a,this._mergeFn=r==null?void 0:r.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const r=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(r))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(r){this._listeners&&(this._isPaused!==0?this._eventQueue.push(r):super.fire(r))}}class E extends T{constructor(r){var i;super(r);this._delay=(i=r.delay)!==null&&i!==void 0?i:100}fire(r){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(r)}}class p{constructor(){this.buffers=[]}wrapEvent(r){return(i,c,g)=>r(j=>{const v=this.buffers[this.buffers.length-1];v?v.push(()=>i.call(c,j)):i.call(c,j)},void 0,g)}bufferEvents(r){const i=[];this.buffers.push(i);const c=r();return this.buffers.pop(),i.forEach(g=>g()),c}}class l{constructor(){this.listening=!1,this.inputEvent=y.None,this.inputEventListener=z.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(r){this.inputEvent=r,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=r(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(Ge,Q,o){"use strict";(function(Y,z){o.d(Q,"b",function(){return c}),o.d(Q,"i",function(){return m}),o.d(Q,"f",function(){return W}),o.d(Q,"d",function(){return $}),o.d(Q,"g",function(){return G}),o.d(Q,"h",function(){return N}),o.d(Q,"c",function(){return J}),o.d(Q,"k",function(){return S}),o.d(Q,"j",function(){return X}),o.d(Q,"a",function(){return M}),o.d(Q,"e",function(){return w});var ce;const ee="en";let y=!1,A=!1,oe=!1,re=!1,e=!1,T=!1,E=!1,p,l=ee,r,i;const c=typeof self=="object"?self:typeof Y=="object"?Y:{};let g;typeof c.vscode!="undefined"&&typeof c.vscode.process!="undefined"?g=c.vscode.process:typeof z!="undefined"&&(g=z);const j=typeof((ce=g==null?void 0:g.versions)===null||ce===void 0?void 0:ce.electron)=="string"&&g.type==="renderer";if(typeof navigator=="object"&&!j)i=navigator.userAgent,y=i.indexOf("Windows")>=0,A=i.indexOf("Macintosh")>=0,E=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,oe=i.indexOf("Linux")>=0,T=!0,p=navigator.language,l=p;else if(typeof g=="object"){y=g.platform==="win32",A=g.platform==="darwin",oe=g.platform==="linux",re=oe&&!!g.env.SNAP&&!!g.env.SNAP_REVISION,p=ee,l=ee;const f=g.env.VSCODE_NLS_CONFIG;if(f)try{const k=JSON.parse(f),b=k.availableLanguages["*"];p=k.locale,l=b||ee,r=k._translationsConfigFile}catch(k){}e=!0}else console.error("Unable to resolve platform.");let v=0;A?v=1:y?v=3:oe&&(v=2);const m=y,W=A,$=oe,G=e,N=T,J=E,S=i,X=function(){if(c.setImmediate)return c.setImmediate.bind(c);if(typeof c.postMessage=="function"&&!c.importScripts){let b=[];c.addEventListener("message",u=>{if(u.data&&u.data.vscodeSetImmediateId)for(let s=0,a=b.length;s{const s=++n;b.push({id:s,callback:u}),c.postMessage({vscodeSetImmediateId:s},"*")}}if(typeof(g==null?void 0:g.nextTick)=="function")return g.nextTick.bind(g);const k=Promise.resolve();return b=>k.then(b)}(),M=A||E?2:y?1:3;let D=!0,P=!1;function w(){if(!P){P=!0;const f=new Uint8Array(2);f[0]=1,f[1]=2;const k=new Uint16Array(f.buffer);D=k[0]===(2<<8)+1}return D}}).call(this,o("IyRk"),o("Q2Ig"))},N0LK:function(Ge,Q,o){"use strict";o.d(Q,"C",function(){return Y}),o.d(Q,"v",function(){return ce}),o.d(Q,"s",function(){return ee}),o.d(Q,"t",function(){return y}),o.d(Q,"U",function(){return A}),o.d(Q,"J",function(){return oe}),o.d(Q,"O",function(){return re}),o.d(Q,"p",function(){return e}),o.d(Q,"T",function(){return T}),o.d(Q,"q",function(){return E}),o.d(Q,"N",function(){return p}),o.d(Q,"M",function(){return l}),o.d(Q,"Q",function(){return r}),o.d(Q,"u",function(){return i}),o.d(Q,"x",function(){return c}),o.d(Q,"I",function(){return g}),o.d(Q,"f",function(){return j}),o.d(Q,"h",function(){return v}),o.d(Q,"g",function(){return m}),o.d(Q,"i",function(){return W}),o.d(Q,"G",function(){return $}),o.d(Q,"H",function(){return G}),o.d(Q,"r",function(){return N}),o.d(Q,"R",function(){return J}),o.d(Q,"d",function(){return S}),o.d(Q,"e",function(){return X}),o.d(Q,"E",function(){return M}),o.d(Q,"F",function(){return D}),o.d(Q,"j",function(){return P}),o.d(Q,"z",function(){return w}),o.d(Q,"K",function(){return k}),o.d(Q,"L",function(){return b}),o.d(Q,"m",function(){return u}),o.d(Q,"k",function(){return a}),o.d(Q,"A",function(){return R}),o.d(Q,"a",function(){return U}),o.d(Q,"n",function(){return ae}),o.d(Q,"l",function(){return _e}),o.d(Q,"D",function(){return ne}),o.d(Q,"B",function(){return me}),o.d(Q,"b",function(){return Oe}),o.d(Q,"S",function(){return we}),o.d(Q,"o",function(){return ue}),o.d(Q,"P",function(){return Ee}),o.d(Q,"w",function(){return C}),o.d(Q,"c",function(){return q}),o.d(Q,"y",function(){return ye});function Y(V){return!V||typeof V!="string"?!0:V.trim().length===0}const z=/{(\d+)}/g;function ce(V,...se){return se.length===0?V:V.replace(z,function(ge,Te){const qe=parseInt(Te,10);return isNaN(qe)||qe<0||qe>=se.length?ge:se[qe]})}function ee(V){return V.replace(/[<>&]/g,function(se){switch(se){case"<":return"<";case">":return">";case"&":return"&";default:return se}})}function y(V){return V.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function A(V,se=" "){const ge=oe(V,se);return re(ge,se)}function oe(V,se){if(!V||!se)return V;const ge=se.length;if(ge===0||V.length===0)return V;let Te=0;for(;V.indexOf(se,Te)===Te;)Te=Te+ge;return V.substring(Te)}function re(V,se){if(!V||!se)return V;const ge=se.length,Te=V.length;if(ge===0||Te===0)return V;let qe=Te,ut=-1;for(;!(ut=V.lastIndexOf(se,qe-1),ut===-1||ut+ge!==qe);){if(ut===0)return"";qe=ut}return V.substring(0,qe)}function e(V){return V.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function T(V){return V.replace(/\*/g,"")}function E(V,se,ge={}){if(!V)throw new Error("Cannot create regex from empty string");se||(V=y(V)),ge.wholeWord&&(/\B/.test(V.charAt(0))||(V="\\b"+V),/\B/.test(V.charAt(V.length-1))||(V=V+"\\b"));let Te="";return ge.global&&(Te+="g"),ge.matchCase||(Te+="i"),ge.multiline&&(Te+="m"),ge.unicode&&(Te+="u"),new RegExp(V,Te)}function p(V){if(V.source==="^"||V.source==="^$"||V.source==="$"||V.source==="^\\s*$")return!1;const se=V.exec("");return!!(se&&V.lastIndex===0)}function l(V){return(V.global?"g":"")+(V.ignoreCase?"i":"")+(V.multiline?"m":"")+(V.unicode?"u":"")}function r(V){return V.split(/\r\n|\r|\n/)}function i(V){for(let se=0,ge=V.length;se=0;ge--){const Te=V.charCodeAt(ge);if(Te!==32&&Te!==9)return ge}return-1}function j(V,se){return Vse?1:0}function v(V,se,ge=0,Te=V.length,qe=0,ut=se.length){for(;geRt)return 1}const At=Te-ge,Et=ut-qe;return AtEt?1:0}function m(V,se){return W(V,se,0,V.length,0,se.length)}function W(V,se,ge=0,Te=V.length,qe=0,ut=se.length){for(;ge=128||Rt>=128)return v(V.toLowerCase(),se.toLowerCase(),ge,Te,qe,ut);$(tt)&&(tt-=32),$(Rt)&&(Rt-=32);const de=tt-Rt;if(de===0)continue;return de}const At=Te-ge,Et=ut-qe;return AtEt?1:0}function $(V){return V>=97&&V<=122}function G(V){return V>=65&&V<=90}function N(V,se){return V.length===se.length&&W(V,se)===0}function J(V,se){const ge=se.length;return se.length>V.length?!1:W(V,se,0,ge)===0}function S(V,se){let ge,Te=Math.min(V.length,se.length);for(ge=0;ge1){const Te=V.charCodeAt(se-2);if(M(Te))return P(Te,ge)}return ge}function k(V,se){const ge=B.getInstance(),Te=se,qe=V.length,ut=w(V,qe,se);se+=ut>=65536?2:1;let At=ge.getGraphemeBreakType(ut);for(;se=65536?2:1,At=tt}return se-Te}function b(V,se){const ge=B.getInstance(),Te=se,qe=f(V,se);se-=qe>=65536?2:1;let ut=ge.getGraphemeBreakType(qe);for(;se>0;){const At=f(V,se),Et=ge.getGraphemeBreakType(At);if(q(Et,ut))break;se-=At>=65536?2:1,ut=Et}return Te-se}const n=/(?:[\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 u(V){return n.test(V)}const s=/(?:[\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(V){return s.test(V)}const t=/^[\t\n\r\x20-\x7E]*$/;function R(V){return t.test(V)}const U=/[\u2028\u2029]/;function ae(V){return U.test(V)}function _e(V){for(let se=0,ge=V.length;se=11904&&V<=55215||V>=63744&&V<=64255||V>=65281&&V<=65374}function me(V){return V>=127462&&V<=127487||V===8986||V===8987||V===9200||V===9203||V>=9728&&V<=10175||V===11088||V===11093||V>=127744&&V<=128591||V>=128640&&V<=128764||V>=128992&&V<=129003||V>=129280&&V<=129535||V>=129648&&V<=129750}const Oe=String.fromCharCode(65279);function we(V){return!!(V&&V.length>0&&V.charCodeAt(0)===65279)}function ue(V,se=!1){return V?(se&&(V=V.replace(/\\./g,"")),V.toLowerCase()!==V):!1}function Ee(V){const se=90-65+1;return V=V%(2*se),Vse[3*Te+1])Te=2*Te+1;else return se[3*Te+2];return 0}}B._INSTANCE=null;function le(){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 ye(V,se){if(V===0)return 0;const ge=Ae(V,se);if(ge!==void 0)return ge;const Te=f(se,V);return V-=Fe(Te),V}function Ae(V,se){let ge=f(se,V);for(V-=Fe(ge);Xe(ge)||ge===65039||ge===8419;){if(V===0)return;ge=f(se,V),V-=Fe(ge)}if(!me(ge))return;if(V>=0){const Te=f(se,V);Te===8205&&(V-=Fe(Te))}return V}function Fe(V){return V>=65536?2:1}function Xe(V){return 127995<=V&&V<=127999}},NvD2:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return A});var Y=o("Kwbf");function z(oe,re){var e=new Set;return oe.forEach(function(T){re.has(T)||e.add(T)}),e}function ce(oe){var re=oe||{},e=re.disabled,T=re.disableCheckbox,E=re.checkable;return!!(e||T)||E===!1}function ee(oe,re,e,T){for(var E=new Set(oe),p=new Set,l=0;l<=e;l+=1){var r=re.get(l)||new Set;r.forEach(function(j){var v=j.key,m=j.node,W=j.children,$=W===void 0?[]:W;E.has(v)&&!T(m)&&$.filter(function(G){return!T(G.node)}).forEach(function(G){E.add(G.key)})})}for(var i=new Set,c=e;c>=0;c-=1){var g=re.get(c)||new Set;g.forEach(function(j){var v=j.parent,m=j.node;if(T(m)||!j.parent||i.has(j.parent.key))return;if(T(j.parent.node)){i.add(v.key);return}var W=!0,$=!1;(v.children||[]).filter(function(G){return!T(G.node)}).forEach(function(G){var N=G.key,J=E.has(N);W&&!J&&(W=!1),!$&&(J||p.has(N))&&($=!0)}),W&&E.add(v.key),$&&p.add(v.key),i.add(v.key)})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(z(p,E))}}function y(oe,re,e,T,E){for(var p=new Set(oe),l=new Set(re),r=0;r<=T;r+=1){var i=e.get(r)||new Set;i.forEach(function(v){var m=v.key,W=v.node,$=v.children,G=$===void 0?[]:$;!p.has(m)&&!l.has(m)&&!E(W)&&G.filter(function(N){return!E(N.node)}).forEach(function(N){p.delete(N.key)})})}l=new Set;for(var c=new Set,g=T;g>=0;g-=1){var j=e.get(g)||new Set;j.forEach(function(v){var m=v.parent,W=v.node;if(E(W)||!v.parent||c.has(v.parent.key))return;if(E(v.parent.node)){c.add(m.key);return}var $=!0,G=!1;(m.children||[]).filter(function(N){return!E(N.node)}).forEach(function(N){var J=N.key,S=p.has(J);$&&!S&&($=!1),!G&&(S||l.has(J))&&(G=!0)}),$||p.delete(m.key),G&&l.add(m.key),c.add(m.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(z(l,p))}}function A(oe,re,e,T){var E=[],p;T?p=T:p=ce;var l=new Set(oe.filter(function(g){var j=!!e[g];return j||E.push(g),j})),r=new Map,i=0;Object.keys(e).forEach(function(g){var j=e[g],v=j.level,m=r.get(v);m||(m=new Set,r.set(v,m)),m.add(j),i=Math.max(i,v)}),Object(Y.a)(!E.length,"Tree missing follow keys: ".concat(E.slice(0,100).map(function(g){return"'".concat(g,"'")}).join(", ")));var c;return re===!0?c=ee(l,r,i,p):c=y(l,re.halfCheckedKeys,r,i,p),c}},OZM5:function(Ge,Q,o){"use strict";o.d(Q,"b",function(){return T}),o.d(Q,"a",function(){return E}),o.d(Q,"k",function(){return p}),o.d(Q,"h",function(){return l}),o.d(Q,"i",function(){return r}),o.d(Q,"g",function(){return i}),o.d(Q,"c",function(){return c}),o.d(Q,"d",function(){return g}),o.d(Q,"j",function(){return m}),o.d(Q,"e",function(){return W}),o.d(Q,"f",function(){return $});var Y=o("KQm4"),z=o("U8pU"),ce=o("Ff2n"),ee=o("q1tI"),y=o.n(ee),A=o("Kwbf"),oe=o("WaYH"),re=.25,e=2;function T(G,N){var J=G.slice(),S=J.indexOf(N);return S>=0&&J.splice(S,1),J}function E(G,N){var J=G.slice();return J.indexOf(N)===-1&&J.push(N),J}function p(G){return G.split("-")}function l(G,N){return"".concat(G,"-").concat(N)}function r(G){return G&&G.type&&G.type.isTreeNode}function i(G,N){var J=[G],S=N[G];function X(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];M.forEach(function(D){var P=D.key,w=D.children;J.push(P),X(w)})}return X(S.children),J}function c(G,N){var J=G.clientY,S=N.selectHandle.getBoundingClientRect(),X=S.top,M=S.bottom,D=S.height,P=Math.max(D*re,e);return J<=X+P?-1:J>=M-P?1:0}function g(G,N){if(!G)return;var J=N.multiple;return J?G.slice():G.length?[G[0]]:G}var j=function(N){return N};function v(G,N){if(!G)return[];var J=N||{},S=J.processProps,X=S===void 0?j:S,M=Array.isArray(G)?G:[G];return M.map(function(D){var P=D.children,w=Object(ce.a)(D,["children"]),f=v(P,N);return y.a.createElement(oe.a,Object.assign({},X(w)),f)})}function m(G){if(!G)return null;var N;if(Array.isArray(G))N={checkedKeys:G,halfCheckedKeys:void 0};else if(Object(z.a)(G)==="object")N={checkedKeys:G.checked||void 0,halfCheckedKeys:G.halfChecked||void 0};else return Object(A.a)(!1,"`checkedKeys` is not an array or an object"),null;return N}function W(G,N){var J=new Set;function S(X){if(J.has(X))return;var M=N[X];if(!M)return;J.add(X);var D=M.parent,P=M.node;if(P.disabled)return;D&&S(D.key)}return(G||[]).forEach(function(X){S(X)}),Object(Y.a)(J)}function $(G){var N={};return Object.keys(G).forEach(function(J){(J.startsWith("data-")||J.startsWith("aria-"))&&(N[J]=G[J])}),N}},Qfqc:function(Ge,Q,o){Ge.exports={flex_box_center:"flex_box_center___15S-q",flex_space_between:"flex_space_between___23kwU",flex_box_vertical_center:"flex_box_vertical_center___2l8VY",flex_box_center_end:"flex_box_center_end___VYSS9",flex_box_column:"flex_box_column___3s3TT",wrap:"wrap___2KYjo",title:"title___2f4-2",standardTableWrap:"standardTableWrap___3LLAr",targetTableWrap:"targetTableWrap___cvI3A",waysTableWrap:"waysTableWrap___2j0v-",green:"green___2L8AY",box:"box___22ae3",padding:"padding___2PpV_",control:"control___1HoTk",label:"label___2GboG",customTable:"customTable___3ah1R",tagWrap:"tagWrap___pnb_0",tag:"tag____fSY6",line:"line___3sZe3",textwidth:"textwidth___3QXnN",modalWrapContainer:"modalWrapContainer___o_fOQ",inputWrap:"inputWrap___AsC3W",addCourseTabsContainer:"addCourseTabsContainer___3oEeV",textone:"textone___2YzXy"}},"SA+Z":function(Ge,Q,o){var Y=o("wTVA"),z=o("EbDI"),ce=o("ZhPi"),ee=o("wkBT");function y(A){return Y(A)||z(A)||ce(A)||ee()}Ge.exports=y,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},T8No:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return oe}),o.d(Q,"e",function(){return re}),o.d(Q,"c",function(){return M}),o.d(Q,"b",function(){return D}),o.d(Q,"d",function(){return P}),o.d(Q,"f",function(){return k});var Y=o("MNsG"),z=o("N0LK"),ce=o("Cg/j");let ee=Y.k||"";const y=new Map;y.set("false",!1),y.set("true",!0),y.set("isMac",Y.f),y.set("isLinux",Y.d),y.set("isWindows",Y.i),y.set("isWeb",Y.h),y.set("isMacNative",Y.f&&!Y.h),y.set("isEdge",ee.indexOf("Edg/")>=0),y.set("isFirefox",ee.indexOf("Firefox")>=0),y.set("isChrome",ee.indexOf("Chrome")>=0),y.set("isSafari",ee.indexOf("Safari")>=0);const A=Object.prototype.hasOwnProperty;class oe{static has(n){return p.create(n)}static equals(n,u){return l.create(n,u)}static regex(n,u){return G.create(n,u)}static not(n){return g.create(n)}static and(...n){return S.create(n,null)}static or(...n){return X.create(n,null,!0)}static deserialize(n,u=!1){return n?this._deserializeOrExpression(n,u):void 0}static _deserializeOrExpression(n,u){let s=n.split("||");return X.create(s.map(a=>this._deserializeAndExpression(a,u)),null,!0)}static _deserializeAndExpression(n,u){let s=n.split("&&");return S.create(s.map(a=>this._deserializeOne(a,u)),null)}static _deserializeOne(n,u){if(n=n.trim(),n.indexOf("!=")>=0){let s=n.split("!=");return c.create(s[0].trim(),this._deserializeValue(s[1],u))}if(n.indexOf("==")>=0){let s=n.split("==");return l.create(s[0].trim(),this._deserializeValue(s[1],u))}if(n.indexOf("=~")>=0){let s=n.split("=~");return G.create(s[0].trim(),this._deserializeRegexValue(s[1],u))}if(n.indexOf(" in ")>=0){let s=n.split(" in ");return r.create(s[0].trim(),s[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(n)){const s=n.split(">=");return m.create(s[0].trim(),s[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(n)){const s=n.split(">");return v.create(s[0].trim(),s[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(n)){const s=n.split("<=");return $.create(s[0].trim(),s[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(n)){const s=n.split("<");return W.create(s[0].trim(),s[1].trim())}return/^\!\s*/.test(n)?g.create(n.substr(1).trim()):p.create(n)}static _deserializeValue(n,u){if(n=n.trim(),n==="true")return!0;if(n==="false")return!1;let s=/^'([^']*)'$/.exec(n);return s?s[1].trim():n}static _deserializeRegexValue(n,u){if(Object(z.C)(n)){if(u)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let s=n.indexOf("/"),a=n.lastIndexOf("/");if(s===a||s<0){if(u)throw new Error(`bad regexp-value '${n}', missing /-enclosure`);return console.warn(`bad regexp-value '${n}', missing /-enclosure`),null}let t=n.slice(s+1,a),R=n[a+1]==="i"?"i":"";try{return new RegExp(t,R)}catch(U){if(u)throw new Error(`bad regexp-value '${n}', parse error: ${U}`);return console.warn(`bad regexp-value '${n}', parse error: ${U}`),null}}}function re(n,u){const s=n?n.substituteConstants():void 0,a=u?u.substituteConstants():void 0;return!s&&!a?!0:!s||!a?!1:s.equals(a)}function e(n,u){return n.cmp(u)}class T{constructor(){this.type=0}cmp(n){return this.type-n.type}equals(n){return n.type===this.type}substituteConstants(){return this}evaluate(n){return!1}serialize(){return"false"}keys(){return[]}negate(){return E.INSTANCE}}T.INSTANCE=new T;class E{constructor(){this.type=1}cmp(n){return this.type-n.type}equals(n){return n.type===this.type}substituteConstants(){return this}evaluate(n){return!0}serialize(){return"true"}keys(){return[]}negate(){return T.INSTANCE}}E.INSTANCE=new E;class p{constructor(n,u){this.key=n,this.negated=u,this.type=2}static create(n,u=null){const s=y.get(n);return typeof s=="boolean"?s?E.INSTANCE:T.INSTANCE:new p(n,u)}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,n.key)}equals(n){return n.type===this.type?this.key===n.key:!1}substituteConstants(){const n=y.get(this.key);return typeof n=="boolean"?n?E.INSTANCE:T.INSTANCE:this}evaluate(n){return!!n.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this)),this.negated}}class l{constructor(n,u,s){this.key=n,this.value=u,this.negated=s,this.type=4}static create(n,u,s=null){if(typeof u=="boolean")return u?p.create(n,s):g.create(n,s);const a=y.get(n);if(typeof a=="boolean"){const t=a?"true":"false";return u===t?E.INSTANCE:T.INSTANCE}return new l(n,u,s)}cmp(n){return n.type!==this.type?this.type-n.type:f(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){const n=y.get(this.key);if(typeof n=="boolean"){const u=n?"true":"false";return this.value===u?E.INSTANCE:T.INSTANCE}return this}evaluate(n){return n.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class r{constructor(n,u){this.key=n,this.valueKey=u,this.type=10,this.negated=null}static create(n,u){return new r(n,u)}cmp(n){return n.type!==this.type?this.type-n.type:f(this.key,this.valueKey,n.key,n.valueKey)}equals(n){return n.type===this.type?this.key===n.key&&this.valueKey===n.valueKey:!1}substituteConstants(){return this}evaluate(n){const u=n.getValue(this.valueKey),s=n.getValue(this.key);return Array.isArray(u)?u.indexOf(s)>=0:typeof s=="string"&&typeof u=="object"&&u!==null?A.call(u,s):!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(n){this._actual=n,this.type=11}static create(n){return new i(n)}cmp(n){return n.type!==this.type?this.type-n.type:this._actual.cmp(n._actual)}equals(n){return n.type===this.type?this._actual.equals(n._actual):!1}substituteConstants(){return this}evaluate(n){return!this._actual.evaluate(n)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class c{constructor(n,u,s){this.key=n,this.value=u,this.negated=s,this.type=5}static create(n,u,s=null){if(typeof u=="boolean")return u?g.create(n,s):p.create(n,s);const a=y.get(n);if(typeof a=="boolean"){const t=a?"true":"false";return u===t?T.INSTANCE:E.INSTANCE}return new c(n,u,s)}cmp(n){return n.type!==this.type?this.type-n.type:f(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){const n=y.get(this.key);if(typeof n=="boolean"){const u=n?"true":"false";return this.value===u?T.INSTANCE:E.INSTANCE}return this}evaluate(n){return n.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 g{constructor(n,u){this.key=n,this.negated=u,this.type=3}static create(n,u=null){const s=y.get(n);return typeof s=="boolean"?s?T.INSTANCE:E.INSTANCE:new g(n,u)}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,n.key)}equals(n){return n.type===this.type?this.key===n.key:!1}substituteConstants(){const n=y.get(this.key);return typeof n=="boolean"?n?T.INSTANCE:E.INSTANCE:this}evaluate(n){return!n.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function j(n,u){if(typeof n=="string"){const s=parseFloat(n);isNaN(s)||(n=s)}return typeof n=="string"||typeof n=="number"?u(n):T.INSTANCE}class v{constructor(n,u,s){this.key=n,this.value=u,this.negated=s,this.type=12}static create(n,u,s=null){return j(u,a=>new v(n,a,s))}cmp(n){return n.type!==this.type?this.type-n.type:f(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=$.create(this.key,this.value,this)),this.negated}}class m{constructor(n,u,s){this.key=n,this.value=u,this.negated=s,this.type=13}static create(n,u,s=null){return j(u,a=>new m(n,a,s))}cmp(n){return n.type!==this.type?this.type-n.type:f(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.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(n,u,s){this.key=n,this.value=u,this.negated=s,this.type=14}static create(n,u,s=null){return j(u,a=>new W(n,a,s))}cmp(n){return n.type!==this.type?this.type-n.type:f(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))new $(n,a,s))}cmp(n){return n.type!==this.type?this.type-n.type:f(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this.value,this)),this.negated}}class G{constructor(n,u){this.key=n,this.regexp=u,this.type=7,this.negated=null}static create(n,u){return new G(n,u)}cmp(n){if(n.type!==this.type)return this.type-n.type;if(this.keyn.key)return 1;const u=this.regexp?this.regexp.source:"",s=n.regexp?n.regexp.source:"";return us?1:0}equals(n){if(n.type===this.type){const u=this.regexp?this.regexp.source:"",s=n.regexp?n.regexp.source:"";return this.key===n.key&&u===s}return!1}substituteConstants(){return this}evaluate(n){let u=n.getValue(this.key);return this.regexp?this.regexp.test(u):!1}serialize(){const n=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${n}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this)),this.negated}}class N{constructor(n){this._actual=n,this.type=8}static create(n){return new N(n)}cmp(n){return n.type!==this.type?this.type-n.type:this._actual.cmp(n._actual)}equals(n){return n.type===this.type?this._actual.equals(n._actual):!1}substituteConstants(){return this}evaluate(n){return!this._actual.evaluate(n)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function J(n){let u=null;for(let s=0,a=n.length;sn.expr.length)return 1;for(let u=0,s=this.expr.length;u1;){const t=s[s.length-1];if(t.type!==9)break;s.pop();const R=s.pop(),U=s.length===0,ae=X.create(t.expr.map(_e=>S.create([_e,R],null)),null,U);ae&&(s.push(ae),s.sort(e))}return s.length===1?s[0]:new S(s,u)}serialize(){return this.expr.map(n=>n.serialize()).join(" && ")}keys(){const n=[];for(let u of this.expr)n.push(...u.keys());return n}negate(){if(!this.negated){const n=[];for(let u of this.expr)n.push(u.negate());this.negated=X.create(n,this,!0)}return this.negated}}class X{constructor(n,u){this.expr=n,this.negated=u,this.type=9}static create(n,u,s){return X._normalizeArr(n,u,s)}cmp(n){if(n.type!==this.type)return this.type-n.type;if(this.expr.lengthn.expr.length)return 1;for(let u=0,s=this.expr.length;un.serialize()).join(" || ")}keys(){const n=[];for(let u of this.expr)n.push(...u.keys());return n}negate(){if(!this.negated){let n=[];for(let u of this.expr)n.push(u.negate());for(;n.length>1;){const u=n.shift(),s=n.shift(),a=[];for(const R of b(u))for(const U of b(s))a.push(S.create([R,U],null));const t=n.length===0;n.unshift(X.create(a,null,t))}this.negated=n[0]}return this.negated}}class M extends p{constructor(n,u,s){super(n,null);this._defaultValue=u,typeof s=="object"?M._info.push(Object.assign(Object.assign({},s),{key:n})):s!==!0&&M._info.push({key:n,description:s,type:u!=null?typeof u:void 0})}static all(){return M._info.values()}bindTo(n){return n.createKey(this.key,this._defaultValue)}getValue(n){return n.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(n){return l.create(this.key,n)}}M._info=[];const D=Object(ce.c)("contextKeyService"),P="setContext";function w(n,u){return nu?1:0}function f(n,u,s,a){return ns?1:ua?1:0}function k(n,u){if(u.type===6&&n.type!==9&&n.type!==6){for(const t of u.expr)if(n.equals(t))return!0}const s=n.negate(),a=b(s).concat(b(u));a.sort(e);for(let t=0;t=0;r--)if(this.__items[r].match(l))return!0;return!1},T.prototype.set_indent=function(l,r){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=r||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},T.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)},T.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},T.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},T.prototype.is_empty=function(){return this.__items.length===0},T.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},T.prototype.push=function(l){this.__items.push(l);var r=l.lastIndexOf(` +`),g=this._stacks.get(c)||0;if(this._stacks.set(c,g+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let j,v=0;for(const[m,W]of this._stacks)(!j||v{const j=this._stacks.get(c)||0;this._stacks.set(c,j-1)}}}class e{constructor(r){var i;this._disposed=!1,this._options=r,this._leakageMon=oe>0?new re(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((i=this._options)===null||i===void 0?void 0:i._profName)?new A(this._options._profName):void 0}get event(){return this._event||(this._event=(r,i,c)=>{var g;this._listeners||(this._listeners=new ce.a);const j=this._listeners.isEmpty();j&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const v=this._listeners.push(i?[r,i]:r);j&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,r,i);const m=(g=this._leakageMon)===null||g===void 0?void 0:g.check(this._listeners.size),W=Object(z.i)(()=>{if(m&&m(),!this._disposed&&(v(),this._options&&this._options.onLastListenerRemove)){const $=this._listeners&&!this._listeners.isEmpty();$||this._options.onLastListenerRemove(this)}});return c instanceof z.b?c.add(W):Array.isArray(c)&&c.push(W),W}),this._event}fire(r){var i,c;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ce.a);for(let g of this._listeners)this._deliveryQueue.push([g,r]);for((i=this._perfMon)===null||i===void 0||i.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[g,j]=this._deliveryQueue.shift();try{typeof g=="function"?g.call(void 0,j):g[0].call(g[1],j)}catch(v){Object(Y.f)(v)}}(c=this._perfMon)===null||c===void 0||c.stop()}}dispose(){var r,i,c,g,j;this._disposed||(this._disposed=!0,(r=this._listeners)===null||r===void 0||r.clear(),(i=this._deliveryQueue)===null||i===void 0||i.clear(),(g=(c=this._options)===null||c===void 0?void 0:c.onLastListenerRemove)===null||g===void 0||g.call(c),(j=this._leakageMon)===null||j===void 0||j.dispose())}}class T extends e{constructor(r){super(r);this._isPaused=0,this._eventQueue=new ce.a,this._mergeFn=r==null?void 0:r.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const r=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(r))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(r){this._listeners&&(this._isPaused!==0?this._eventQueue.push(r):super.fire(r))}}class E extends T{constructor(r){var i;super(r);this._delay=(i=r.delay)!==null&&i!==void 0?i:100}fire(r){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(r)}}class p{constructor(){this.buffers=[]}wrapEvent(r){return(i,c,g)=>r(j=>{const v=this.buffers[this.buffers.length-1];v?v.push(()=>i.call(c,j)):i.call(c,j)},void 0,g)}bufferEvents(r){const i=[];this.buffers.push(i);const c=r();return this.buffers.pop(),i.forEach(g=>g()),c}}class l{constructor(){this.listening=!1,this.inputEvent=y.None,this.inputEventListener=z.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(r){this.inputEvent=r,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=r(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(Ge,Q,o){"use strict";(function(Y,z){o.d(Q,"b",function(){return c}),o.d(Q,"i",function(){return m}),o.d(Q,"f",function(){return W}),o.d(Q,"d",function(){return $}),o.d(Q,"g",function(){return G}),o.d(Q,"h",function(){return N}),o.d(Q,"c",function(){return J}),o.d(Q,"k",function(){return S}),o.d(Q,"j",function(){return X}),o.d(Q,"a",function(){return M}),o.d(Q,"e",function(){return w});var ce;const ee="en";let y=!1,A=!1,oe=!1,re=!1,e=!1,T=!1,E=!1,p,l=ee,r,i;const c=typeof self=="object"?self:typeof Y=="object"?Y:{};let g;typeof c.vscode!="undefined"&&typeof c.vscode.process!="undefined"?g=c.vscode.process:typeof z!="undefined"&&(g=z);const j=typeof((ce=g==null?void 0:g.versions)===null||ce===void 0?void 0:ce.electron)=="string"&&g.type==="renderer";if(typeof navigator=="object"&&!j)i=navigator.userAgent,y=i.indexOf("Windows")>=0,A=i.indexOf("Macintosh")>=0,E=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,oe=i.indexOf("Linux")>=0,T=!0,p=navigator.language,l=p;else if(typeof g=="object"){y=g.platform==="win32",A=g.platform==="darwin",oe=g.platform==="linux",re=oe&&!!g.env.SNAP&&!!g.env.SNAP_REVISION,p=ee,l=ee;const h=g.env.VSCODE_NLS_CONFIG;if(h)try{const k=JSON.parse(h),b=k.availableLanguages["*"];p=k.locale,l=b||ee,r=k._translationsConfigFile}catch(k){}e=!0}else console.error("Unable to resolve platform.");let v=0;A?v=1:y?v=3:oe&&(v=2);const m=y,W=A,$=oe,G=e,N=T,J=E,S=i,X=function(){if(c.setImmediate)return c.setImmediate.bind(c);if(typeof c.postMessage=="function"&&!c.importScripts){let b=[];c.addEventListener("message",u=>{if(u.data&&u.data.vscodeSetImmediateId)for(let s=0,a=b.length;s{const s=++n;b.push({id:s,callback:u}),c.postMessage({vscodeSetImmediateId:s},"*")}}if(typeof(g==null?void 0:g.nextTick)=="function")return g.nextTick.bind(g);const k=Promise.resolve();return b=>k.then(b)}(),M=A||E?2:y?1:3;let D=!0,P=!1;function w(){if(!P){P=!0;const h=new Uint8Array(2);h[0]=1,h[1]=2;const k=new Uint16Array(h.buffer);D=k[0]===(2<<8)+1}return D}}).call(this,o("IyRk"),o("Q2Ig"))},N0LK:function(Ge,Q,o){"use strict";o.d(Q,"C",function(){return Y}),o.d(Q,"v",function(){return ce}),o.d(Q,"s",function(){return ee}),o.d(Q,"t",function(){return y}),o.d(Q,"U",function(){return A}),o.d(Q,"J",function(){return oe}),o.d(Q,"O",function(){return re}),o.d(Q,"p",function(){return e}),o.d(Q,"T",function(){return T}),o.d(Q,"q",function(){return E}),o.d(Q,"N",function(){return p}),o.d(Q,"M",function(){return l}),o.d(Q,"Q",function(){return r}),o.d(Q,"u",function(){return i}),o.d(Q,"x",function(){return c}),o.d(Q,"I",function(){return g}),o.d(Q,"f",function(){return j}),o.d(Q,"h",function(){return v}),o.d(Q,"g",function(){return m}),o.d(Q,"i",function(){return W}),o.d(Q,"G",function(){return $}),o.d(Q,"H",function(){return G}),o.d(Q,"r",function(){return N}),o.d(Q,"R",function(){return J}),o.d(Q,"d",function(){return S}),o.d(Q,"e",function(){return X}),o.d(Q,"E",function(){return M}),o.d(Q,"F",function(){return D}),o.d(Q,"j",function(){return P}),o.d(Q,"z",function(){return w}),o.d(Q,"K",function(){return k}),o.d(Q,"L",function(){return b}),o.d(Q,"m",function(){return u}),o.d(Q,"k",function(){return a}),o.d(Q,"A",function(){return R}),o.d(Q,"a",function(){return U}),o.d(Q,"n",function(){return ae}),o.d(Q,"l",function(){return _e}),o.d(Q,"D",function(){return ne}),o.d(Q,"B",function(){return me}),o.d(Q,"b",function(){return Oe}),o.d(Q,"S",function(){return we}),o.d(Q,"o",function(){return ue}),o.d(Q,"P",function(){return Ee}),o.d(Q,"w",function(){return C}),o.d(Q,"c",function(){return q}),o.d(Q,"y",function(){return ye});function Y(V){return!V||typeof V!="string"?!0:V.trim().length===0}const z=/{(\d+)}/g;function ce(V,...se){return se.length===0?V:V.replace(z,function(ge,Te){const qe=parseInt(Te,10);return isNaN(qe)||qe<0||qe>=se.length?ge:se[qe]})}function ee(V){return V.replace(/[<>&]/g,function(se){switch(se){case"<":return"<";case">":return">";case"&":return"&";default:return se}})}function y(V){return V.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function A(V,se=" "){const ge=oe(V,se);return re(ge,se)}function oe(V,se){if(!V||!se)return V;const ge=se.length;if(ge===0||V.length===0)return V;let Te=0;for(;V.indexOf(se,Te)===Te;)Te=Te+ge;return V.substring(Te)}function re(V,se){if(!V||!se)return V;const ge=se.length,Te=V.length;if(ge===0||Te===0)return V;let qe=Te,ut=-1;for(;!(ut=V.lastIndexOf(se,qe-1),ut===-1||ut+ge!==qe);){if(ut===0)return"";qe=ut}return V.substring(0,qe)}function e(V){return V.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function T(V){return V.replace(/\*/g,"")}function E(V,se,ge={}){if(!V)throw new Error("Cannot create regex from empty string");se||(V=y(V)),ge.wholeWord&&(/\B/.test(V.charAt(0))||(V="\\b"+V),/\B/.test(V.charAt(V.length-1))||(V=V+"\\b"));let Te="";return ge.global&&(Te+="g"),ge.matchCase||(Te+="i"),ge.multiline&&(Te+="m"),ge.unicode&&(Te+="u"),new RegExp(V,Te)}function p(V){if(V.source==="^"||V.source==="^$"||V.source==="$"||V.source==="^\\s*$")return!1;const se=V.exec("");return!!(se&&V.lastIndex===0)}function l(V){return(V.global?"g":"")+(V.ignoreCase?"i":"")+(V.multiline?"m":"")+(V.unicode?"u":"")}function r(V){return V.split(/\r\n|\r|\n/)}function i(V){for(let se=0,ge=V.length;se=0;ge--){const Te=V.charCodeAt(ge);if(Te!==32&&Te!==9)return ge}return-1}function j(V,se){return Vse?1:0}function v(V,se,ge=0,Te=V.length,qe=0,ut=se.length){for(;geRt)return 1}const At=Te-ge,Et=ut-qe;return AtEt?1:0}function m(V,se){return W(V,se,0,V.length,0,se.length)}function W(V,se,ge=0,Te=V.length,qe=0,ut=se.length){for(;ge=128||Rt>=128)return v(V.toLowerCase(),se.toLowerCase(),ge,Te,qe,ut);$(tt)&&(tt-=32),$(Rt)&&(Rt-=32);const de=tt-Rt;if(de===0)continue;return de}const At=Te-ge,Et=ut-qe;return AtEt?1:0}function $(V){return V>=97&&V<=122}function G(V){return V>=65&&V<=90}function N(V,se){return V.length===se.length&&W(V,se)===0}function J(V,se){const ge=se.length;return se.length>V.length?!1:W(V,se,0,ge)===0}function S(V,se){let ge,Te=Math.min(V.length,se.length);for(ge=0;ge1){const Te=V.charCodeAt(se-2);if(M(Te))return P(Te,ge)}return ge}function k(V,se){const ge=B.getInstance(),Te=se,qe=V.length,ut=w(V,qe,se);se+=ut>=65536?2:1;let At=ge.getGraphemeBreakType(ut);for(;se=65536?2:1,At=tt}return se-Te}function b(V,se){const ge=B.getInstance(),Te=se,qe=h(V,se);se-=qe>=65536?2:1;let ut=ge.getGraphemeBreakType(qe);for(;se>0;){const At=h(V,se),Et=ge.getGraphemeBreakType(At);if(q(Et,ut))break;se-=At>=65536?2:1,ut=Et}return Te-se}const n=/(?:[\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 u(V){return n.test(V)}const s=/(?:[\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(V){return s.test(V)}const t=/^[\t\n\r\x20-\x7E]*$/;function R(V){return t.test(V)}const U=/[\u2028\u2029]/;function ae(V){return U.test(V)}function _e(V){for(let se=0,ge=V.length;se=11904&&V<=55215||V>=63744&&V<=64255||V>=65281&&V<=65374}function me(V){return V>=127462&&V<=127487||V===8986||V===8987||V===9200||V===9203||V>=9728&&V<=10175||V===11088||V===11093||V>=127744&&V<=128591||V>=128640&&V<=128764||V>=128992&&V<=129003||V>=129280&&V<=129535||V>=129648&&V<=129750}const Oe=String.fromCharCode(65279);function we(V){return!!(V&&V.length>0&&V.charCodeAt(0)===65279)}function ue(V,se=!1){return V?(se&&(V=V.replace(/\\./g,"")),V.toLowerCase()!==V):!1}function Ee(V){const se=90-65+1;return V=V%(2*se),Vse[3*Te+1])Te=2*Te+1;else return se[3*Te+2];return 0}}B._INSTANCE=null;function le(){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 ye(V,se){if(V===0)return 0;const ge=Ae(V,se);if(ge!==void 0)return ge;const Te=h(se,V);return V-=Fe(Te),V}function Ae(V,se){let ge=h(se,V);for(V-=Fe(ge);Xe(ge)||ge===65039||ge===8419;){if(V===0)return;ge=h(se,V),V-=Fe(ge)}if(!me(ge))return;if(V>=0){const Te=h(se,V);Te===8205&&(V-=Fe(Te))}return V}function Fe(V){return V>=65536?2:1}function Xe(V){return 127995<=V&&V<=127999}},NvD2:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return A});var Y=o("Kwbf");function z(oe,re){var e=new Set;return oe.forEach(function(T){re.has(T)||e.add(T)}),e}function ce(oe){var re=oe||{},e=re.disabled,T=re.disableCheckbox,E=re.checkable;return!!(e||T)||E===!1}function ee(oe,re,e,T){for(var E=new Set(oe),p=new Set,l=0;l<=e;l+=1){var r=re.get(l)||new Set;r.forEach(function(j){var v=j.key,m=j.node,W=j.children,$=W===void 0?[]:W;E.has(v)&&!T(m)&&$.filter(function(G){return!T(G.node)}).forEach(function(G){E.add(G.key)})})}for(var i=new Set,c=e;c>=0;c-=1){var g=re.get(c)||new Set;g.forEach(function(j){var v=j.parent,m=j.node;if(T(m)||!j.parent||i.has(j.parent.key))return;if(T(j.parent.node)){i.add(v.key);return}var W=!0,$=!1;(v.children||[]).filter(function(G){return!T(G.node)}).forEach(function(G){var N=G.key,J=E.has(N);W&&!J&&(W=!1),!$&&(J||p.has(N))&&($=!0)}),W&&E.add(v.key),$&&p.add(v.key),i.add(v.key)})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(z(p,E))}}function y(oe,re,e,T,E){for(var p=new Set(oe),l=new Set(re),r=0;r<=T;r+=1){var i=e.get(r)||new Set;i.forEach(function(v){var m=v.key,W=v.node,$=v.children,G=$===void 0?[]:$;!p.has(m)&&!l.has(m)&&!E(W)&&G.filter(function(N){return!E(N.node)}).forEach(function(N){p.delete(N.key)})})}l=new Set;for(var c=new Set,g=T;g>=0;g-=1){var j=e.get(g)||new Set;j.forEach(function(v){var m=v.parent,W=v.node;if(E(W)||!v.parent||c.has(v.parent.key))return;if(E(v.parent.node)){c.add(m.key);return}var $=!0,G=!1;(m.children||[]).filter(function(N){return!E(N.node)}).forEach(function(N){var J=N.key,S=p.has(J);$&&!S&&($=!1),!G&&(S||l.has(J))&&(G=!0)}),$||p.delete(m.key),G&&l.add(m.key),c.add(m.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(z(l,p))}}function A(oe,re,e,T){var E=[],p;T?p=T:p=ce;var l=new Set(oe.filter(function(g){var j=!!e[g];return j||E.push(g),j})),r=new Map,i=0;Object.keys(e).forEach(function(g){var j=e[g],v=j.level,m=r.get(v);m||(m=new Set,r.set(v,m)),m.add(j),i=Math.max(i,v)}),Object(Y.a)(!E.length,"Tree missing follow keys: ".concat(E.slice(0,100).map(function(g){return"'".concat(g,"'")}).join(", ")));var c;return re===!0?c=ee(l,r,i,p):c=y(l,re.halfCheckedKeys,r,i,p),c}},OZM5:function(Ge,Q,o){"use strict";o.d(Q,"b",function(){return T}),o.d(Q,"a",function(){return E}),o.d(Q,"k",function(){return p}),o.d(Q,"h",function(){return l}),o.d(Q,"i",function(){return r}),o.d(Q,"g",function(){return i}),o.d(Q,"c",function(){return c}),o.d(Q,"d",function(){return g}),o.d(Q,"j",function(){return m}),o.d(Q,"e",function(){return W}),o.d(Q,"f",function(){return $});var Y=o("KQm4"),z=o("U8pU"),ce=o("Ff2n"),ee=o("q1tI"),y=o.n(ee),A=o("Kwbf"),oe=o("WaYH"),re=.25,e=2;function T(G,N){var J=G.slice(),S=J.indexOf(N);return S>=0&&J.splice(S,1),J}function E(G,N){var J=G.slice();return J.indexOf(N)===-1&&J.push(N),J}function p(G){return G.split("-")}function l(G,N){return"".concat(G,"-").concat(N)}function r(G){return G&&G.type&&G.type.isTreeNode}function i(G,N){var J=[G],S=N[G];function X(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];M.forEach(function(D){var P=D.key,w=D.children;J.push(P),X(w)})}return X(S.children),J}function c(G,N){var J=G.clientY,S=N.selectHandle.getBoundingClientRect(),X=S.top,M=S.bottom,D=S.height,P=Math.max(D*re,e);return J<=X+P?-1:J>=M-P?1:0}function g(G,N){if(!G)return;var J=N.multiple;return J?G.slice():G.length?[G[0]]:G}var j=function(N){return N};function v(G,N){if(!G)return[];var J=N||{},S=J.processProps,X=S===void 0?j:S,M=Array.isArray(G)?G:[G];return M.map(function(D){var P=D.children,w=Object(ce.a)(D,["children"]),h=v(P,N);return y.a.createElement(oe.a,Object.assign({},X(w)),h)})}function m(G){if(!G)return null;var N;if(Array.isArray(G))N={checkedKeys:G,halfCheckedKeys:void 0};else if(Object(z.a)(G)==="object")N={checkedKeys:G.checked||void 0,halfCheckedKeys:G.halfChecked||void 0};else return Object(A.a)(!1,"`checkedKeys` is not an array or an object"),null;return N}function W(G,N){var J=new Set;function S(X){if(J.has(X))return;var M=N[X];if(!M)return;J.add(X);var D=M.parent,P=M.node;if(P.disabled)return;D&&S(D.key)}return(G||[]).forEach(function(X){S(X)}),Object(Y.a)(J)}function $(G){var N={};return Object.keys(G).forEach(function(J){(J.startsWith("data-")||J.startsWith("aria-"))&&(N[J]=G[J])}),N}},Qfqc:function(Ge,Q,o){Ge.exports={flex_box_center:"flex_box_center___15S-q",flex_space_between:"flex_space_between___23kwU",flex_box_vertical_center:"flex_box_vertical_center___2l8VY",flex_box_center_end:"flex_box_center_end___VYSS9",flex_box_column:"flex_box_column___3s3TT",wrap:"wrap___2KYjo",title:"title___2f4-2",standardTableWrap:"standardTableWrap___3LLAr",targetTableWrap:"targetTableWrap___cvI3A",waysTableWrap:"waysTableWrap___2j0v-",green:"green___2L8AY",box:"box___22ae3",padding:"padding___2PpV_",control:"control___1HoTk",label:"label___2GboG",customTable:"customTable___3ah1R",tagWrap:"tagWrap___pnb_0",tag:"tag____fSY6",line:"line___3sZe3",textwidth:"textwidth___3QXnN",modalWrapContainer:"modalWrapContainer___o_fOQ",inputWrap:"inputWrap___AsC3W",addCourseTabsContainer:"addCourseTabsContainer___3oEeV",textone:"textone___2YzXy"}},"SA+Z":function(Ge,Q,o){var Y=o("wTVA"),z=o("EbDI"),ce=o("ZhPi"),ee=o("wkBT");function y(A){return Y(A)||z(A)||ce(A)||ee()}Ge.exports=y,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},T8No:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return oe}),o.d(Q,"e",function(){return re}),o.d(Q,"c",function(){return M}),o.d(Q,"b",function(){return D}),o.d(Q,"d",function(){return P}),o.d(Q,"f",function(){return k});var Y=o("MNsG"),z=o("N0LK"),ce=o("Cg/j");let ee=Y.k||"";const y=new Map;y.set("false",!1),y.set("true",!0),y.set("isMac",Y.f),y.set("isLinux",Y.d),y.set("isWindows",Y.i),y.set("isWeb",Y.h),y.set("isMacNative",Y.f&&!Y.h),y.set("isEdge",ee.indexOf("Edg/")>=0),y.set("isFirefox",ee.indexOf("Firefox")>=0),y.set("isChrome",ee.indexOf("Chrome")>=0),y.set("isSafari",ee.indexOf("Safari")>=0);const A=Object.prototype.hasOwnProperty;class oe{static has(n){return p.create(n)}static equals(n,u){return l.create(n,u)}static regex(n,u){return G.create(n,u)}static not(n){return g.create(n)}static and(...n){return S.create(n,null)}static or(...n){return X.create(n,null,!0)}static deserialize(n,u=!1){return n?this._deserializeOrExpression(n,u):void 0}static _deserializeOrExpression(n,u){let s=n.split("||");return X.create(s.map(a=>this._deserializeAndExpression(a,u)),null,!0)}static _deserializeAndExpression(n,u){let s=n.split("&&");return S.create(s.map(a=>this._deserializeOne(a,u)),null)}static _deserializeOne(n,u){if(n=n.trim(),n.indexOf("!=")>=0){let s=n.split("!=");return c.create(s[0].trim(),this._deserializeValue(s[1],u))}if(n.indexOf("==")>=0){let s=n.split("==");return l.create(s[0].trim(),this._deserializeValue(s[1],u))}if(n.indexOf("=~")>=0){let s=n.split("=~");return G.create(s[0].trim(),this._deserializeRegexValue(s[1],u))}if(n.indexOf(" in ")>=0){let s=n.split(" in ");return r.create(s[0].trim(),s[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(n)){const s=n.split(">=");return m.create(s[0].trim(),s[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(n)){const s=n.split(">");return v.create(s[0].trim(),s[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(n)){const s=n.split("<=");return $.create(s[0].trim(),s[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(n)){const s=n.split("<");return W.create(s[0].trim(),s[1].trim())}return/^\!\s*/.test(n)?g.create(n.substr(1).trim()):p.create(n)}static _deserializeValue(n,u){if(n=n.trim(),n==="true")return!0;if(n==="false")return!1;let s=/^'([^']*)'$/.exec(n);return s?s[1].trim():n}static _deserializeRegexValue(n,u){if(Object(z.C)(n)){if(u)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let s=n.indexOf("/"),a=n.lastIndexOf("/");if(s===a||s<0){if(u)throw new Error(`bad regexp-value '${n}', missing /-enclosure`);return console.warn(`bad regexp-value '${n}', missing /-enclosure`),null}let t=n.slice(s+1,a),R=n[a+1]==="i"?"i":"";try{return new RegExp(t,R)}catch(U){if(u)throw new Error(`bad regexp-value '${n}', parse error: ${U}`);return console.warn(`bad regexp-value '${n}', parse error: ${U}`),null}}}function re(n,u){const s=n?n.substituteConstants():void 0,a=u?u.substituteConstants():void 0;return!s&&!a?!0:!s||!a?!1:s.equals(a)}function e(n,u){return n.cmp(u)}class T{constructor(){this.type=0}cmp(n){return this.type-n.type}equals(n){return n.type===this.type}substituteConstants(){return this}evaluate(n){return!1}serialize(){return"false"}keys(){return[]}negate(){return E.INSTANCE}}T.INSTANCE=new T;class E{constructor(){this.type=1}cmp(n){return this.type-n.type}equals(n){return n.type===this.type}substituteConstants(){return this}evaluate(n){return!0}serialize(){return"true"}keys(){return[]}negate(){return T.INSTANCE}}E.INSTANCE=new E;class p{constructor(n,u){this.key=n,this.negated=u,this.type=2}static create(n,u=null){const s=y.get(n);return typeof s=="boolean"?s?E.INSTANCE:T.INSTANCE:new p(n,u)}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,n.key)}equals(n){return n.type===this.type?this.key===n.key:!1}substituteConstants(){const n=y.get(this.key);return typeof n=="boolean"?n?E.INSTANCE:T.INSTANCE:this}evaluate(n){return!!n.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this)),this.negated}}class l{constructor(n,u,s){this.key=n,this.value=u,this.negated=s,this.type=4}static create(n,u,s=null){if(typeof u=="boolean")return u?p.create(n,s):g.create(n,s);const a=y.get(n);if(typeof a=="boolean"){const t=a?"true":"false";return u===t?E.INSTANCE:T.INSTANCE}return new l(n,u,s)}cmp(n){return n.type!==this.type?this.type-n.type:h(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){const n=y.get(this.key);if(typeof n=="boolean"){const u=n?"true":"false";return this.value===u?E.INSTANCE:T.INSTANCE}return this}evaluate(n){return n.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class r{constructor(n,u){this.key=n,this.valueKey=u,this.type=10,this.negated=null}static create(n,u){return new r(n,u)}cmp(n){return n.type!==this.type?this.type-n.type:h(this.key,this.valueKey,n.key,n.valueKey)}equals(n){return n.type===this.type?this.key===n.key&&this.valueKey===n.valueKey:!1}substituteConstants(){return this}evaluate(n){const u=n.getValue(this.valueKey),s=n.getValue(this.key);return Array.isArray(u)?u.indexOf(s)>=0:typeof s=="string"&&typeof u=="object"&&u!==null?A.call(u,s):!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(n){this._actual=n,this.type=11}static create(n){return new i(n)}cmp(n){return n.type!==this.type?this.type-n.type:this._actual.cmp(n._actual)}equals(n){return n.type===this.type?this._actual.equals(n._actual):!1}substituteConstants(){return this}evaluate(n){return!this._actual.evaluate(n)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class c{constructor(n,u,s){this.key=n,this.value=u,this.negated=s,this.type=5}static create(n,u,s=null){if(typeof u=="boolean")return u?g.create(n,s):p.create(n,s);const a=y.get(n);if(typeof a=="boolean"){const t=a?"true":"false";return u===t?T.INSTANCE:E.INSTANCE}return new c(n,u,s)}cmp(n){return n.type!==this.type?this.type-n.type:h(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){const n=y.get(this.key);if(typeof n=="boolean"){const u=n?"true":"false";return this.value===u?T.INSTANCE:E.INSTANCE}return this}evaluate(n){return n.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 g{constructor(n,u){this.key=n,this.negated=u,this.type=3}static create(n,u=null){const s=y.get(n);return typeof s=="boolean"?s?T.INSTANCE:E.INSTANCE:new g(n,u)}cmp(n){return n.type!==this.type?this.type-n.type:w(this.key,n.key)}equals(n){return n.type===this.type?this.key===n.key:!1}substituteConstants(){const n=y.get(this.key);return typeof n=="boolean"?n?T.INSTANCE:E.INSTANCE:this}evaluate(n){return!n.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function j(n,u){if(typeof n=="string"){const s=parseFloat(n);isNaN(s)||(n=s)}return typeof n=="string"||typeof n=="number"?u(n):T.INSTANCE}class v{constructor(n,u,s){this.key=n,this.value=u,this.negated=s,this.type=12}static create(n,u,s=null){return j(u,a=>new v(n,a,s))}cmp(n){return n.type!==this.type?this.type-n.type:h(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=$.create(this.key,this.value,this)),this.negated}}class m{constructor(n,u,s){this.key=n,this.value=u,this.negated=s,this.type=13}static create(n,u,s=null){return j(u,a=>new m(n,a,s))}cmp(n){return n.type!==this.type?this.type-n.type:h(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.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(n,u,s){this.key=n,this.value=u,this.negated=s,this.type=14}static create(n,u,s=null){return j(u,a=>new W(n,a,s))}cmp(n){return n.type!==this.type?this.type-n.type:h(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))new $(n,a,s))}cmp(n){return n.type!==this.type?this.type-n.type:h(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this.value,this)),this.negated}}class G{constructor(n,u){this.key=n,this.regexp=u,this.type=7,this.negated=null}static create(n,u){return new G(n,u)}cmp(n){if(n.type!==this.type)return this.type-n.type;if(this.keyn.key)return 1;const u=this.regexp?this.regexp.source:"",s=n.regexp?n.regexp.source:"";return us?1:0}equals(n){if(n.type===this.type){const u=this.regexp?this.regexp.source:"",s=n.regexp?n.regexp.source:"";return this.key===n.key&&u===s}return!1}substituteConstants(){return this}evaluate(n){let u=n.getValue(this.key);return this.regexp?this.regexp.test(u):!1}serialize(){const n=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${n}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this)),this.negated}}class N{constructor(n){this._actual=n,this.type=8}static create(n){return new N(n)}cmp(n){return n.type!==this.type?this.type-n.type:this._actual.cmp(n._actual)}equals(n){return n.type===this.type?this._actual.equals(n._actual):!1}substituteConstants(){return this}evaluate(n){return!this._actual.evaluate(n)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function J(n){let u=null;for(let s=0,a=n.length;sn.expr.length)return 1;for(let u=0,s=this.expr.length;u1;){const t=s[s.length-1];if(t.type!==9)break;s.pop();const R=s.pop(),U=s.length===0,ae=X.create(t.expr.map(_e=>S.create([_e,R],null)),null,U);ae&&(s.push(ae),s.sort(e))}return s.length===1?s[0]:new S(s,u)}serialize(){return this.expr.map(n=>n.serialize()).join(" && ")}keys(){const n=[];for(let u of this.expr)n.push(...u.keys());return n}negate(){if(!this.negated){const n=[];for(let u of this.expr)n.push(u.negate());this.negated=X.create(n,this,!0)}return this.negated}}class X{constructor(n,u){this.expr=n,this.negated=u,this.type=9}static create(n,u,s){return X._normalizeArr(n,u,s)}cmp(n){if(n.type!==this.type)return this.type-n.type;if(this.expr.lengthn.expr.length)return 1;for(let u=0,s=this.expr.length;un.serialize()).join(" || ")}keys(){const n=[];for(let u of this.expr)n.push(...u.keys());return n}negate(){if(!this.negated){let n=[];for(let u of this.expr)n.push(u.negate());for(;n.length>1;){const u=n.shift(),s=n.shift(),a=[];for(const R of b(u))for(const U of b(s))a.push(S.create([R,U],null));const t=n.length===0;n.unshift(X.create(a,null,t))}this.negated=n[0]}return this.negated}}class M extends p{constructor(n,u,s){super(n,null);this._defaultValue=u,typeof s=="object"?M._info.push(Object.assign(Object.assign({},s),{key:n})):s!==!0&&M._info.push({key:n,description:s,type:u!=null?typeof u:void 0})}static all(){return M._info.values()}bindTo(n){return n.createKey(this.key,this._defaultValue)}getValue(n){return n.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(n){return l.create(this.key,n)}}M._info=[];const D=Object(ce.c)("contextKeyService"),P="setContext";function w(n,u){return nu?1:0}function h(n,u,s,a){return ns?1:ua?1:0}function k(n,u){if(u.type===6&&n.type!==9&&n.type!==6){for(const t of u.expr)if(n.equals(t))return!0}const s=n.negate(),a=b(s).concat(b(u));a.sort(e);for(let t=0;t=0;r--)if(this.__items[r].match(l))return!0;return!1},T.prototype.set_indent=function(l,r){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=r||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},T.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)},T.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},T.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},T.prototype.is_empty=function(){return this.__items.length===0},T.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},T.prototype.push=function(l){this.__items.push(l);var r=l.lastIndexOf(` `);r!==-1?this.__character_count=l.length-r:this.__character_count+=l.length},T.prototype.pop=function(){var l=null;return this.is_empty()||(l=this.__items.pop(),this.__character_count-=l.length),l},T.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},T.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},T.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},T.prototype.toString=function(){var l="";return this.is_empty()?this.__parent.indent_empty_lines&&(l=this.__parent.get_indent_string(this.__indent_count)):(l=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),l+=this.__items.join("")),l};function E(l,r){this.__cache=[""],this.__indent_size=l.indent_size,this.__indent_string=l.indent_char,l.indent_with_tabs||(this.__indent_string=new Array(l.indent_size+1).join(l.indent_char)),r=r||"",l.indent_level>0&&(r=new Array(l.indent_level+1).join(this.__indent_string)),this.__base_string=r,this.__base_string_length=r.length}E.prototype.get_indent_size=function(l,r){var i=this.__base_string_length;return r=r||0,l<0&&(i=0),i+=l*this.__indent_size,i+=r,i},E.prototype.get_indent_string=function(l,r){var i=this.__base_string;return r=r||0,l<0&&(l=0,i=""),r+=l*this.__indent_size,this.__ensure_cache(r),i+=this.__cache[r],i},E.prototype.__ensure_cache=function(l){for(;l>=this.__cache.length;)this.__add_column()},E.prototype.__add_column=function(){var l=this.__cache.length,r=0,i="";this.__indent_size&&l>=this.__indent_size&&(r=Math.floor(l/this.__indent_size),l-=r*this.__indent_size,i=new Array(r+1).join(this.__indent_string)),l&&(i+=new Array(l+1).join(" ")),this.__cache.push(i)};function p(l,r){this.__indent_cache=new E(l,r),this.raw=!1,this._end_with_newline=l.end_with_newline,this.indent_size=l.indent_size,this.wrap_line_length=l.wrap_line_length,this.indent_empty_lines=l.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new T(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}p.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},p.prototype.get_line_number=function(){return this.__lines.length},p.prototype.get_indent_string=function(l,r){return this.__indent_cache.get_indent_string(l,r)},p.prototype.get_indent_size=function(l,r){return this.__indent_cache.get_indent_size(l,r)},p.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},p.prototype.add_new_line=function(l){return this.is_empty()||!l&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},p.prototype.get_code=function(l){this.trim(!0);var r=this.current_line.pop();r&&(r[r.length-1]===` `&&(r=r.replace(/\n+$/g,"")),this.current_line.push(r)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(` `);return l!==` @@ -37,8 +37,8 @@ You passed in: '`+this.raw_options[l]+"'");return c},T.prototype._is_valid_selec `)break;this._ch=this._input.next()}return J},G.prototype.eatWhitespace=function(N){for(var J=v.test(this._input.peek()),S=0;v.test(this._input.peek());)this._ch=this._input.next(),N&&this._ch===` `&&((S===0||S0&&this._indentLevel--},G.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var N=this._source_text,J=this._options.eol;J==="auto"&&(J=` `,N&&g.test(N||"")&&(J=N.match(g)[0])),N=N.replace(j,` -`);var S=N.match(/^[\t ]*/)[0];this._output=new l(this._options,S),this._input=new r(N),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var X=0,M=!1,D=!1,P=!1,w=!1,f=!1,k=!1,b=this._ch,n=!1,u,s,a;u=this._input.read(m),s=u!=="",a=b,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),b=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var t=this._input.read(W),R=c.get_directives(t);R&&R.ignore==="start"&&(t+=c.readIgnored(this._input)),this.print_string(t),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read($)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(s),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var U=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);U.match(/[ :]$/)&&(U=this.eatString(": ").replace(/\s$/,""),this.print_string(U),this._output.space_before_token=!0),U=U.replace(/\s$/,""),U==="extend"?w=!0:U==="import"&&(f=!0),U in this.NESTED_AT_RULE?(this._nestedLevel+=1,U in this.CONDITIONAL_GROUP_RULE&&(P=!0)):!M&&X===0&&U.indexOf(":")!==-1&&(D=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(s),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")D&&(D=!1,this.outdent()),P?(P=!1,M=this._indentLevel>=this._nestedLevel):M=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&M&&(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),f=!1,w=!1,D&&(this.outdent(),D=!1),this.print_string(this._ch),M=!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 ae=0;ae"||this._ch==="+"||this._ch==="~")&&!D&&X===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&&v.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(s),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),v.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 me=a==='"'||a==="'";this.preserveSingleSpace(me||s),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` -`&&n&&this._output.add_new_line()}var Oe=this._output.get_code(J);return Oe},e.exports.Beautifier=G},function(e,T,E){var p=E(6).Options;function l(r){p.call(this,r,"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 c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var g=0;g` ${E} `).trim():""}class oe{constructor(e,T,E){this.id=e,this.definition=T,this.description=E,ce.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var re;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const T=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function E(r){if(r instanceof oe)return["codicon","codicon-"+r.id];const i=T.exec(r.id);if(!i)return E(oe.error);let[,c,g]=i;const j=["codicon","codicon-"+c];return g&&j.push("codicon-modifier-"+g.substr(1)),j}e.asClassNameArray=E;function p(r){return E(r).join(" ")}e.asClassName=p;function l(r){return"."+E(r).join(".")}e.asCSSSelector=l})(re||(re={})),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"})}(oe||(oe={}))},WaYH:function(Ge,Q,o){"use strict";var Y=o("rePB"),z=o("Ff2n"),ce=o("VTBJ"),ee=o("1OyB"),y=o("vuIU"),A=o("JX7q"),oe=o("Ji7U"),re=o("LK+K"),e=o("q1tI"),T=o("TSYQ"),E=o.n(T),p=o("sboe"),l=o("OZM5"),r=function(N){var J=N.prefixCls,S=N.level,X=N.isStart,M=N.isEnd;if(!S)return null;for(var D="".concat(J,"-indent-unit"),P=[],w=0;w=this._nestedLevel):M=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&M&&(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),h=!1,w=!1,D&&(this.outdent(),D=!1),this.print_string(this._ch),M=!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 ae=0;ae"||this._ch==="+"||this._ch==="~")&&!D&&X===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&&v.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(s),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),v.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 me=a==='"'||a==="'";this.preserveSingleSpace(me||s),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` +`&&n&&this._output.add_new_line()}var Oe=this._output.get_code(J);return Oe},e.exports.Beautifier=G},function(e,T,E){var p=E(6).Options;function l(r){p.call(this,r,"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 c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var g=0;g` ${E} `).trim():""}class oe{constructor(e,T,E){this.id=e,this.definition=T,this.description=E,ce.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var re;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const T=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function E(r){if(r instanceof oe)return["codicon","codicon-"+r.id];const i=T.exec(r.id);if(!i)return E(oe.error);let[,c,g]=i;const j=["codicon","codicon-"+c];return g&&j.push("codicon-modifier-"+g.substr(1)),j}e.asClassNameArray=E;function p(r){return E(r).join(" ")}e.asClassName=p;function l(r){return"."+E(r).join(".")}e.asCSSSelector=l})(re||(re={})),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"})}(oe||(oe={}))},WaYH:function(Ge,Q,o){"use strict";var Y=o("rePB"),z=o("Ff2n"),ce=o("VTBJ"),ee=o("1OyB"),y=o("vuIU"),A=o("JX7q"),oe=o("Ji7U"),re=o("LK+K"),e=o("q1tI"),T=o("TSYQ"),E=o.n(T),p=o("sboe"),l=o("OZM5"),r=function(N){var J=N.prefixCls,S=N.level,X=N.isStart,M=N.isEnd;if(!S)return null;for(var D="".concat(J,"-indent-unit"),P=[],w=0;w1&&arguments[1]!==void 0?arguments[1]:!1,Oe=ne.getAttribute("id")||ne.getAttribute("data-reactid")||ne.getAttribute("name");if(me&&k[Oe])return k[Oe];var we=window.getComputedStyle(ne),ue=we.getPropertyValue("box-sizing")||we.getPropertyValue("-moz-box-sizing")||we.getPropertyValue("-webkit-box-sizing"),Ee=parseFloat(we.getPropertyValue("padding-bottom"))+parseFloat(we.getPropertyValue("padding-top")),C=parseFloat(we.getPropertyValue("border-bottom-width"))+parseFloat(we.getPropertyValue("border-top-width")),q=f.map(function(le){return"".concat(le,":").concat(we.getPropertyValue(le))}).join(";"),B={sizingStyle:q,paddingSize:Ee,borderSize:C,boxSizing:ue};return me&&Oe&&(k[Oe]=B),B}function u(ne){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,we=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;b||(b=document.createElement("textarea"),b.setAttribute("tab-index","-1"),b.setAttribute("aria-hidden","true"),document.body.appendChild(b)),ne.getAttribute("wrap")?b.setAttribute("wrap",ne.getAttribute("wrap")):b.removeAttribute("wrap");var ue=n(ne,me),Ee=ue.paddingSize,C=ue.borderSize,q=ue.boxSizing,B=ue.sizingStyle;b.setAttribute("style","".concat(B,";").concat(w)),b.value=ne.value||ne.placeholder||"";var le=Number.MIN_SAFE_INTEGER,ye=Number.MAX_SAFE_INTEGER,Ae=b.scrollHeight,Fe;if(q==="border-box"?Ae+=C:q==="content-box"&&(Ae-=Ee),Oe!==null||we!==null){b.value=" ";var Xe=b.scrollHeight-Ee;Oe!==null&&(le=Xe*Oe,q==="border-box"&&(le=le+Ee+C),Ae=Math.max(le,Ae)),we!==null&&(ye=Xe*we,q==="border-box"&&(ye=ye+Ee+C),Fe=Ae>ye?"":"hidden",Ae=Math.min(ye,Ae))}return{height:Ae,minHeight:le,maxHeight:ye,overflowY:Fe,resize:"none"}}var s=o("Gytx"),a=o.n(s),t;(function(ne){ne[ne.NONE=0]="NONE",ne[ne.RESIZING=1]="RESIZING",ne[ne.RESIZED=2]="RESIZED"})(t||(t={}));var R=function(ne){Object(ee.a)(Oe,ne);var me=Object(y.a)(Oe);function Oe(we){var ue;return Object(z.a)(this,Oe),ue=me.call(this,we),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(Ee){ue.textArea=Ee},ue.handleResize=function(Ee){var C=ue.state.resizeStatus,q=ue.props,B=q.autoSize,le=q.onResize;if(C!==t.NONE)return;typeof le=="function"&&le(Ee),B&&ue.resizeOnNextFrame()},ue.resizeOnNextFrame=function(){cancelAnimationFrame(ue.nextFrameActionId),ue.nextFrameActionId=requestAnimationFrame(ue.resizeTextarea)},ue.resizeTextarea=function(){var Ee=ue.props.autoSize;if(!Ee||!ue.textArea)return;var C=Ee.minRows,q=Ee.maxRows,B=u(ue.textArea,!1,C,q);ue.setState({textareaStyles:B,resizeStatus:t.RESIZING},function(){cancelAnimationFrame(ue.resizeFrameId),ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:t.RESIZED},function(){ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:t.NONE}),ue.fixFirefoxAutoScroll()})})})})},ue.renderTextArea=function(){var Ee=ue.props,C=Ee.prefixCls,q=C===void 0?"rc-textarea":C,B=Ee.autoSize,le=Ee.onResize,ye=Ee.className,Ae=Ee.disabled,Fe=ue.state,Xe=Fe.textareaStyles,V=Fe.resizeStatus,se=Object(M.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ge=P()(q,ye,Object(re.a)({},"".concat(q,"-disabled"),Ae));"value"in se&&(se.value=se.value||"");var Te=Object(oe.a)(Object(oe.a)(Object(oe.a)({},ue.props.style),Xe),V===t.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return A.createElement(X,{onResize:ue.handleResize,disabled:!(B||le)},A.createElement("textarea",Object(Y.a)({},se,{className:ge,style:Te,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:t.NONE},ue}return Object(ce.a)(Oe,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!a()(ue.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 ue=this.textArea.selectionStart,Ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(ue,Ee)}}catch(C){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Oe}(A.Component),U=R,ae=function(ne){Object(ee.a)(Oe,ne);var me=Object(y.a)(Oe);function Oe(we){var ue;Object(z.a)(this,Oe),ue=me.call(this,we),ue.resizableTextArea=void 0,ue.focus=function(){ue.resizableTextArea.textArea.focus()},ue.saveTextArea=function(C){ue.resizableTextArea=C},ue.handleChange=function(C){var q=ue.props.onChange;ue.setValue(C.target.value,function(){ue.resizableTextArea.resizeTextarea()}),q&&q(C)},ue.handleKeyDown=function(C){var q=ue.props,B=q.onPressEnter,le=q.onKeyDown;C.keyCode===13&&B&&B(C),le&&le(C)};var Ee=typeof we.value=="undefined"||we.value===null?we.defaultValue:we.value;return ue.state={value:Ee},ue}return Object(ce.a)(Oe,[{key:"setValue",value:function(ue,Ee){"value"in this.props||this.setState({value:ue},Ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return A.createElement(U,Object(Y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ue){return"value"in ue?{value:ue.value}:null}}]),Oe}(A.Component),_e=Q.default=ae},ZW9T:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return s});var Y=o("k1fw"),z=o("oBTY"),ce=o("miYZ"),ee=o("tsqr"),y=o("rAM+"),A=o("tJVT"),oe=o("PpiC"),re=o("q1tI"),e=o.n(re),T=o("bdgK"),E=o("9og8"),p=o("WmNS"),l=o.n(p),r={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(` +`,h=["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"],k={},b;function n(ne){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe=ne.getAttribute("id")||ne.getAttribute("data-reactid")||ne.getAttribute("name");if(me&&k[Oe])return k[Oe];var we=window.getComputedStyle(ne),ue=we.getPropertyValue("box-sizing")||we.getPropertyValue("-moz-box-sizing")||we.getPropertyValue("-webkit-box-sizing"),Ee=parseFloat(we.getPropertyValue("padding-bottom"))+parseFloat(we.getPropertyValue("padding-top")),C=parseFloat(we.getPropertyValue("border-bottom-width"))+parseFloat(we.getPropertyValue("border-top-width")),q=h.map(function(le){return"".concat(le,":").concat(we.getPropertyValue(le))}).join(";"),B={sizingStyle:q,paddingSize:Ee,borderSize:C,boxSizing:ue};return me&&Oe&&(k[Oe]=B),B}function u(ne){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,we=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;b||(b=document.createElement("textarea"),b.setAttribute("tab-index","-1"),b.setAttribute("aria-hidden","true"),document.body.appendChild(b)),ne.getAttribute("wrap")?b.setAttribute("wrap",ne.getAttribute("wrap")):b.removeAttribute("wrap");var ue=n(ne,me),Ee=ue.paddingSize,C=ue.borderSize,q=ue.boxSizing,B=ue.sizingStyle;b.setAttribute("style","".concat(B,";").concat(w)),b.value=ne.value||ne.placeholder||"";var le=Number.MIN_SAFE_INTEGER,ye=Number.MAX_SAFE_INTEGER,Ae=b.scrollHeight,Fe;if(q==="border-box"?Ae+=C:q==="content-box"&&(Ae-=Ee),Oe!==null||we!==null){b.value=" ";var Xe=b.scrollHeight-Ee;Oe!==null&&(le=Xe*Oe,q==="border-box"&&(le=le+Ee+C),Ae=Math.max(le,Ae)),we!==null&&(ye=Xe*we,q==="border-box"&&(ye=ye+Ee+C),Fe=Ae>ye?"":"hidden",Ae=Math.min(ye,Ae))}return{height:Ae,minHeight:le,maxHeight:ye,overflowY:Fe,resize:"none"}}var s=o("Gytx"),a=o.n(s),t;(function(ne){ne[ne.NONE=0]="NONE",ne[ne.RESIZING=1]="RESIZING",ne[ne.RESIZED=2]="RESIZED"})(t||(t={}));var R=function(ne){Object(ee.a)(Oe,ne);var me=Object(y.a)(Oe);function Oe(we){var ue;return Object(z.a)(this,Oe),ue=me.call(this,we),ue.nextFrameActionId=void 0,ue.resizeFrameId=void 0,ue.textArea=void 0,ue.saveTextArea=function(Ee){ue.textArea=Ee},ue.handleResize=function(Ee){var C=ue.state.resizeStatus,q=ue.props,B=q.autoSize,le=q.onResize;if(C!==t.NONE)return;typeof le=="function"&&le(Ee),B&&ue.resizeOnNextFrame()},ue.resizeOnNextFrame=function(){cancelAnimationFrame(ue.nextFrameActionId),ue.nextFrameActionId=requestAnimationFrame(ue.resizeTextarea)},ue.resizeTextarea=function(){var Ee=ue.props.autoSize;if(!Ee||!ue.textArea)return;var C=Ee.minRows,q=Ee.maxRows,B=u(ue.textArea,!1,C,q);ue.setState({textareaStyles:B,resizeStatus:t.RESIZING},function(){cancelAnimationFrame(ue.resizeFrameId),ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:t.RESIZED},function(){ue.resizeFrameId=requestAnimationFrame(function(){ue.setState({resizeStatus:t.NONE}),ue.fixFirefoxAutoScroll()})})})})},ue.renderTextArea=function(){var Ee=ue.props,C=Ee.prefixCls,q=C===void 0?"rc-textarea":C,B=Ee.autoSize,le=Ee.onResize,ye=Ee.className,Ae=Ee.disabled,Fe=ue.state,Xe=Fe.textareaStyles,V=Fe.resizeStatus,se=Object(M.a)(ue.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ge=P()(q,ye,Object(re.a)({},"".concat(q,"-disabled"),Ae));"value"in se&&(se.value=se.value||"");var Te=Object(oe.a)(Object(oe.a)(Object(oe.a)({},ue.props.style),Xe),V===t.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return A.createElement(X,{onResize:ue.handleResize,disabled:!(B||le)},A.createElement("textarea",Object(Y.a)({},se,{className:ge,style:Te,ref:ue.saveTextArea})))},ue.state={textareaStyles:{},resizeStatus:t.NONE},ue}return Object(ce.a)(Oe,[{key:"componentDidUpdate",value:function(ue){(ue.value!==this.props.value||!a()(ue.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 ue=this.textArea.selectionStart,Ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(ue,Ee)}}catch(C){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Oe}(A.Component),U=R,ae=function(ne){Object(ee.a)(Oe,ne);var me=Object(y.a)(Oe);function Oe(we){var ue;Object(z.a)(this,Oe),ue=me.call(this,we),ue.resizableTextArea=void 0,ue.focus=function(){ue.resizableTextArea.textArea.focus()},ue.saveTextArea=function(C){ue.resizableTextArea=C},ue.handleChange=function(C){var q=ue.props.onChange;ue.setValue(C.target.value,function(){ue.resizableTextArea.resizeTextarea()}),q&&q(C)},ue.handleKeyDown=function(C){var q=ue.props,B=q.onPressEnter,le=q.onKeyDown;C.keyCode===13&&B&&B(C),le&&le(C)};var Ee=typeof we.value=="undefined"||we.value===null?we.defaultValue:we.value;return ue.state={value:Ee},ue}return Object(ce.a)(Oe,[{key:"setValue",value:function(ue,Ee){"value"in this.props||this.setState({value:ue},Ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return A.createElement(U,Object(Y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ue){return"value"in ue?{value:ue.value}:null}}]),Oe}(A.Component),_e=Q.default=ae},ZW9T:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return s});var Y=o("k1fw"),z=o("oBTY"),ce=o("miYZ"),ee=o("tsqr"),y=o("rAM+"),A=o("tJVT"),oe=o("PpiC"),re=o("q1tI"),e=o.n(re),T=o("bdgK"),E=o("9og8"),p=o("WmNS"),l=o.n(p),r={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"]},c={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(` @@ -67,12 +67,12 @@ You passed in: '`+this.raw_options[l]+"'");return c},T.prototype._is_valid_selec `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},g={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(` -`)}]},j=o("5VLF"),v=o.n(j),m={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(t,R){return R.map(function(U){return{label:U,kind:t.languages.CompletionItemKind.Keyword,insertText:U}})},$=function(t){return Object.keys(m.tables).map(function(R){return{label:R,kind:t.languages.CompletionItemKind.Variable,insertText:R}})},G=function(t,R){var U=m.tables[t];return U?U.map(function(ae){return{label:ae,kind:R.languages.CompletionItemKind.Field,insertText:ae}}):[]};function N(a,t,R,U,ae){var _e=t.getWordUntilPosition(R),ne={startLineNumber:R.lineNumber,endLineNumber:R.lineNumber,startColumn:_e.startColumn,endColumn:_e.endColumn},me=U.map(function(Oe){return{label:Oe,kind:a.languages.CompletionItemKind.Keyword,insertText:Oe,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ne}});return ae.map(function(Oe){me.push(Object(Y.a)(Object(Y.a)({},Oe),{},{range:ne}))}),me}var J=function(a){m.languages.map(function(ae){return a.languages.registerDocumentFormattingEditProvider(ae,{provideDocumentFormattingEdits:function(ne,me,Oe){return Object(E.a)(l.a.mark(function we(){var ue;return l.a.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return ue=v()(ne.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}),C.abrupt("return",[{range:ne.getFullModelRange(),text:ue}]);case 2:case"end":return C.stop()}},we)}))()}}),ae});var t=c.quickKey.map(function(ae){return{label:ae.label,kind:a.languages.CompletionItemKind.Method,insertText:ae.content,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),R=g.quickKey.map(function(ae){return{label:ae.label,kind:a.languages.CompletionItemKind.Method,insertText:ae.content,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),U=i.quickKey.map(function(ae){return{label:ae.label,kind:a.languages.CompletionItemKind.Method,insertText:ae.content,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet}});a.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(_e,ne){var me=_e.getWordUntilPosition(ne),Oe={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:me.startColumn,endColumn:me.endColumn},we=_e.getLineContent(ne.lineNumber).substring(me.startColumn-2,me.endColumn);return{suggestions:[].concat(Object(z.a)(c.keywords.map(function(ue){return{label:ue,kind:a.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Oe}})),Object(z.a)(c.quickKey.map(function(ue){return{label:ue.label,kind:a.languages.CompletionItemKind.Function,documentation:ue.content,insertText:we.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Oe}})))}}}),a.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(_e,ne){var me=_e.getWordUntilPosition(ne),Oe={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:me.startColumn,endColumn:me.endColumn};return{suggestions:Object(z.a)(r.keywords.map(function(we){return{label:we,kind:a.languages.CompletionItemKind.Function,documentation:we,insertText:we,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Oe}}))}}}),a.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(_e,ne){var me=_e.getWordUntilPosition(ne),Oe={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:me.startColumn,endColumn:me.endColumn},we=_e.getLineContent(ne.lineNumber).substring(me.startColumn-2,me.endColumn);return{suggestions:[].concat(Object(z.a)(i.keywords.map(function(ue){return{label:ue,kind:a.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Oe}})),Object(z.a)(i.quickKey.map(function(ue){return{label:ue.label,kind:a.languages.CompletionItemKind.Function,documentation:ue.content,insertText:we.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Oe}})))}}}),a.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(_e,ne){var me=_e.getWordUntilPosition(ne),Oe={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:me.startColumn,endColumn:me.endColumn},we=_e.getLineContent(ne.lineNumber).substring(me.startColumn-2,me.endColumn);return{suggestions:[].concat(Object(z.a)(g.keywords.map(function(ue){return{label:ue,kind:a.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Oe}})),Object(z.a)(g.quickKey.map(function(ue){return{label:ue.label,kind:a.languages.CompletionItemKind.Function,documentation:ue.content,insertText:we.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Oe}})))}}})},S="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",X=o("fjLI"),M=o("LvDl"),D=o("+ua5");function P(a){return/^\d+$/.test(a)?"".concat(a,"px"):a}function w(){}var f=!1,k={"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 b(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=a;if(Array.isArray(a)){for(var R=0;R0||on.target.offsetWidth>0)&&Se.current.instance.layout()}}catch(bn){et.e(bn)}finally{et.f()}}),$e.observe(He.current)),$e}function ht(){ee.b.warn(decodeURIComponent(S))}var Tt=function(){var Ye=Se.current.instance;if(_e!=null&&Ye&&Ve){var et=Ye.getModel();et&&_e!==et.getValue()&&(f=!0,et.setValue(_e),Ye.layout(),f=!1)}};Object(re.useEffect)(function(){Le.current&&clearTimeout(Le.current),Le.current=setTimeout(function(){Tt()},500)},[_e,Ve,Se.current]),Object(re.useEffect)(function(){if(de&&Se.current&&Se.current.instance){var $e=Se.current.instance;$e.changeViewZones(function(et){var Lt=document.createElement("div");Lt.style.padding="10px 20px",Lt.style.width="calc(100% - 20px)",Lt.className="my-error-line-wrp",Lt.innerHTML=Ne,et.addZone({afterLineNumber:de||11,heightInLines:3,domNode:Lt})});var Ye={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}};$e.addOverlayWidget(Ye),$e.revealPositionInCenter({lineNumber:20,column:1})}},[de,Se.current,Ve]);function Nt(){var $e=Se.current.instance;if($e){var Ye=$e.getSelection(),et=Se.current.pastePos||{},Lt=new n.Range(et.startLineNumber||Ye.endLineNumber,et.startColumn||Ye.endColumn,et.endLineNumber||Ye.endLineNumber,et.endColumn||Ye.endColumn);setTimeout(function(){$e.executeEdits("",[{range:Lt,text:""}])},300)}}function _t($e){(window.navigator.platform.match("Mac")?$e.metaKey:$e.ctrlKey)&&$e.keyCode==83&&($e.preventDefault(),Ae())}var nn=function(){if(Xe&&Se.current.instance){var Ye=Se.current.instance.getContentHeight();it(Ye0||qe.target.offsetWidth>0)&&Xe.layout()}}catch(ut){ge.e(ut)}finally{ge.f()}}),V.observe(ue.current)),V}Object(re.useEffect)(function(){ue.current&&Promise.all([o.e(16),o.e(28)]).then(o.t.bind(null,"M/lh",7)).then(function(Xe){n=Xe;var V=n.editor.createDiffEditor(ue.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},we),{},{wordWrap:!0}));B(V);var se=le(V);return function(){V.dispose();var ge=V.getModel();ge&&ge.dispose(),se.unobserve(ue.current)}})},[]),Object(re.useEffect)(function(){q&&q.setModel({original:n.editor.createModel(_e,me),modified:n.editor.createModel(ne,me)})},[_e,ne,me,q]);var ye=P(R),Ae=P(ae),Fe={width:ye,height:Ae};return e.a.createElement("div",{className:"my-diff-editor",ref:ue,style:Fe})}},ZpRC:function(Ge,Q,o){"use strict";function Y(E){return typeof E=="object"&&E!=null&&E.nodeType===1}function z(E,p){return(!p||E!=="hidden")&&E!=="visible"&&E!=="clip"}function ce(E,p){if(E.clientHeightp||c>E&&g=p&&j>=l?c-E-r:g>p&&jl?g-p+i:0}var y=function(E,p){var l=window,r=p.scrollMode,i=p.block,c=p.inline,g=p.boundary,j=p.skipOverflowHiddenElements,v=typeof g=="function"?g:function(Xe){return Xe!==g};if(!Y(E))throw new TypeError("Invalid target");for(var m=document.scrollingElement||document.documentElement,W=[],$=E;Y($)&&v($);){if(($=$.parentElement)===m){W.push($);break}$!=null&&$===document.body&&ce($)&&!ce(document.documentElement)||$!=null&&ce($,j)&&W.push($)}for(var G=l.visualViewport?l.visualViewport.width:innerWidth,N=l.visualViewport?l.visualViewport.height:innerHeight,J=window.scrollX||pageXOffset,S=window.scrollY||pageYOffset,X=E.getBoundingClientRect(),M=X.height,D=X.width,P=X.top,w=X.right,f=X.bottom,k=X.left,b=i==="start"||i==="nearest"?P:i==="end"?f:P+M/2,n=c==="center"?k+D/2:c==="end"?w:k,u=[],s=0;s=0&&k>=0&&f<=N&&w<=G&&P>=ae&&f<=ne&&k>=me&&w<=_e)return u;var Oe=getComputedStyle(a),we=parseInt(Oe.borderLeftWidth,10),ue=parseInt(Oe.borderTopWidth,10),Ee=parseInt(Oe.borderRightWidth,10),C=parseInt(Oe.borderBottomWidth,10),q=0,B=0,le="offsetWidth"in a?a.offsetWidth-a.clientWidth-we-Ee:0,ye="offsetHeight"in a?a.offsetHeight-a.clientHeight-ue-C:0;if(m===a)q=i==="start"?b:i==="end"?b-N:i==="nearest"?ee(S,S+N,N,ue,C,S+b,S+b+M,M):b-N/2,B=c==="start"?n:c==="center"?n-G/2:c==="end"?n-G:ee(J,J+G,G,we,Ee,J+n,J+n+D,D),q=Math.max(0,q+S),B=Math.max(0,B+J);else{q=i==="start"?b-ae-ue:i==="end"?b-ne+C+ye:i==="nearest"?ee(ae,ne,R,ue,C+ye,b,b+M,M):b-(ae+R/2)+ye/2,B=c==="start"?n-me-we:c==="center"?n-(me+U/2)+le/2:c==="end"?n-_e+Ee+le:ee(me,_e,U,we,Ee+le,n,n+D,D);var Ae=a.scrollLeft,Fe=a.scrollTop;b+=Fe-(q=Math.max(0,Math.min(Fe+q,a.scrollHeight-R+ye))),n+=Ae-(B=Math.max(0,Math.min(Ae+B,a.scrollWidth-U+le)))}u.push({el:a,top:q,left:B})}return u};function A(E){return E===Object(E)&&Object.keys(E).length!==0}function oe(E,p){p===void 0&&(p="auto");var l="scrollBehavior"in document.body.style;E.forEach(function(r){var i=r.el,c=r.top,g=r.left;i.scroll&&l?i.scroll({top:c,left:g,behavior:p}):(i.scrollTop=c,i.scrollLeft=g)})}function re(E){return E===!1?{block:"end",inline:"nearest"}:A(E)?E:{block:"start",inline:"nearest"}}function e(E,p){var l=!E.ownerDocument.documentElement.contains(E);if(A(p)&&typeof p.behavior=="function")return p.behavior(l?[]:y(E,p));if(l)return;var r=re(p);return oe(y(E,r),r.behavior)}var T=Q.a=e},Zss7:function(Ge,Q,o){var Y;(function(z){var ce=/^\s+/,ee=/\s+$/,y=0,A=z.round,oe=z.min,re=z.max,e=z.random;function T(C,q){if(C=C||"",q=q||{},C instanceof T)return C;if(!(this instanceof T))return new T(C,q);var B=E(C);this._originalInput=C,this._r=B.r,this._g=B.g,this._b=B.b,this._a=B.a,this._roundA=A(100*this._a)/100,this._format=q.format||B.format,this._gradientType=q.gradientType,this._r<1&&(this._r=A(this._r)),this._g<1&&(this._g=A(this._g)),this._b<1&&(this._b=A(this._b)),this._ok=B.ok,this._tc_id=y++}T.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 C=this.toRgb();return(C.r*299+C.g*587+C.b*114)/1e3},getLuminance:function(){var C=this.toRgb(),q,B,le,ye,Ae,Fe;return q=C.r/255,B=C.g/255,le=C.b/255,q<=.03928?ye=q/12.92:ye=z.pow((q+.055)/1.055,2.4),B<=.03928?Ae=B/12.92:Ae=z.pow((B+.055)/1.055,2.4),le<=.03928?Fe=le/12.92:Fe=z.pow((le+.055)/1.055,2.4),.2126*ye+.7152*Ae+.0722*Fe},setAlpha:function(C){return this._a=u(C),this._roundA=A(100*this._a)/100,this},toHsv:function(){var C=i(this._r,this._g,this._b);return{h:C.h*360,s:C.s,v:C.v,a:this._a}},toHsvString:function(){var C=i(this._r,this._g,this._b),q=A(C.h*360),B=A(C.s*100),le=A(C.v*100);return this._a==1?"hsv("+q+", "+B+"%, "+le+"%)":"hsva("+q+", "+B+"%, "+le+"%, "+this._roundA+")"},toHsl:function(){var C=l(this._r,this._g,this._b);return{h:C.h*360,s:C.s,l:C.l,a:this._a}},toHslString:function(){var C=l(this._r,this._g,this._b),q=A(C.h*360),B=A(C.s*100),le=A(C.l*100);return this._a==1?"hsl("+q+", "+B+"%, "+le+"%)":"hsla("+q+", "+B+"%, "+le+"%, "+this._roundA+")"},toHex:function(C){return g(this._r,this._g,this._b,C)},toHexString:function(C){return"#"+this.toHex(C)},toHex8:function(C){return j(this._r,this._g,this._b,this._a,C)},toHex8String:function(C){return"#"+this.toHex8(C)},toRgb:function(){return{r:A(this._r),g:A(this._g),b:A(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+A(this._r)+", "+A(this._g)+", "+A(this._b)+")":"rgba("+A(this._r)+", "+A(this._g)+", "+A(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:A(s(this._r,255)*100)+"%",g:A(s(this._g,255)*100)+"%",b:A(s(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+A(s(this._r,255)*100)+"%, "+A(s(this._g,255)*100)+"%, "+A(s(this._b,255)*100)+"%)":"rgba("+A(s(this._r,255)*100)+"%, "+A(s(this._g,255)*100)+"%, "+A(s(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:b[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(C){var q="#"+v(this._r,this._g,this._b,this._a),B=q,le=this._gradientType?"GradientType = 1, ":"";if(C){var ye=T(C);B="#"+v(ye._r,ye._g,ye._b,ye._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+q+",endColorstr="+B+")"},toString:function(C){var q=!!C;C=C||this._format;var B=!1,le=this._a<1&&this._a>=0,ye=!q&&le&&(C==="hex"||C==="hex6"||C==="hex3"||C==="hex4"||C==="hex8"||C==="name");return ye?C==="name"&&this._a===0?this.toName():this.toRgbString():(C==="rgb"&&(B=this.toRgbString()),C==="prgb"&&(B=this.toPercentageRgbString()),(C==="hex"||C==="hex6")&&(B=this.toHexString()),C==="hex3"&&(B=this.toHexString(!0)),C==="hex4"&&(B=this.toHex8String(!0)),C==="hex8"&&(B=this.toHex8String()),C==="name"&&(B=this.toName()),C==="hsl"&&(B=this.toHslString()),C==="hsv"&&(B=this.toHsvString()),B||this.toHexString())},clone:function(){return T(this.toString())},_applyModification:function(C,q){var B=C.apply(null,[this].concat([].slice.call(q)));return this._r=B._r,this._g=B._g,this._b=B._b,this.setAlpha(B._a),this},lighten:function(){return this._applyModification(G,arguments)},brighten:function(){return this._applyModification(N,arguments)},darken:function(){return this._applyModification(J,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(W,arguments)},greyscale:function(){return this._applyModification($,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(C,q){return C.apply(null,[this].concat([].slice.call(q)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(X,arguments)},monochromatic:function(){return this._applyCombination(f,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(M,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},T.fromRatio=function(C,q){if(typeof C=="object"){var B={};for(var le in C)C.hasOwnProperty(le)&&(le==="a"?B[le]=C[le]:B[le]=_e(C[le]));C=B}return T(C,q)};function E(C){var q={r:0,g:0,b:0},B=1,le=null,ye=null,Ae=null,Fe=!1,Xe=!1;return typeof C=="string"&&(C=ue(C)),typeof C=="object"&&(we(C.r)&&we(C.g)&&we(C.b)?(q=p(C.r,C.g,C.b),Fe=!0,Xe=String(C.r).substr(-1)==="%"?"prgb":"rgb"):we(C.h)&&we(C.s)&&we(C.v)?(le=_e(C.s),ye=_e(C.v),q=c(C.h,le,ye),Fe=!0,Xe="hsv"):we(C.h)&&we(C.s)&&we(C.l)&&(le=_e(C.s),Ae=_e(C.l),q=r(C.h,le,Ae),Fe=!0,Xe="hsl"),C.hasOwnProperty("a")&&(B=C.a)),B=u(B),{ok:Fe,format:C.format||Xe,r:oe(255,re(q.r,0)),g:oe(255,re(q.g,0)),b:oe(255,re(q.b,0)),a:B}}function p(C,q,B){return{r:s(C,255)*255,g:s(q,255)*255,b:s(B,255)*255}}function l(C,q,B){C=s(C,255),q=s(q,255),B=s(B,255);var le=re(C,q,B),ye=oe(C,q,B),Ae,Fe,Xe=(le+ye)/2;if(le==ye)Ae=Fe=0;else{var V=le-ye;Fe=Xe>.5?V/(2-le-ye):V/(le+ye);switch(le){case C:Ae=(q-B)/V+(q1&&(Te-=1),Te<1/6?se+(ge-se)*6*Te:Te<1/2?ge:Te<2/3?se+(ge-se)*(2/3-Te)*6:se}if(q===0)le=ye=Ae=B;else{var Xe=B<.5?B*(1+q):B+q-B*q,V=2*B-Xe;le=Fe(V,Xe,C+1/3),ye=Fe(V,Xe,C),Ae=Fe(V,Xe,C-1/3)}return{r:le*255,g:ye*255,b:Ae*255}}function i(C,q,B){C=s(C,255),q=s(q,255),B=s(B,255);var le=re(C,q,B),ye=oe(C,q,B),Ae,Fe,Xe=le,V=le-ye;if(Fe=le===0?0:V/le,le==ye)Ae=0;else{switch(le){case C:Ae=(q-B)/V+(q>1)+720)%360;--q;)le.h=(le.h+ye)%360,Ae.push(T(le));return Ae}function f(C,q){q=q||6;for(var B=T(C).toHsv(),le=B.h,ye=B.s,Ae=B.v,Fe=[],Xe=1/q;q--;)Fe.push(T({h:le,s:ye,v:Ae})),Ae=(Ae+Xe)%1;return Fe}T.mix=function(C,q,B){B=B===0?0:B||50;var le=T(C).toRgb(),ye=T(q).toRgb(),Ae=B/100,Fe={r:(ye.r-le.r)*Ae+le.r,g:(ye.g-le.g)*Ae+le.g,b:(ye.b-le.b)*Ae+le.b,a:(ye.a-le.a)*Ae+le.a};return T(Fe)},T.readability=function(C,q){var B=T(C),le=T(q);return(z.max(B.getLuminance(),le.getLuminance())+.05)/(z.min(B.getLuminance(),le.getLuminance())+.05)},T.isReadable=function(C,q,B){var le=T.readability(C,q),ye,Ae;Ae=!1,ye=Ee(B);switch(ye.level+ye.size){case"AAsmall":case"AAAlarge":Ae=le>=4.5;break;case"AAlarge":Ae=le>=3;break;case"AAAsmall":Ae=le>=7;break}return Ae},T.mostReadable=function(C,q,B){var le=null,ye=0,Ae,Fe,Xe,V;B=B||{},Fe=B.includeFallbackColors,Xe=B.level,V=B.size;for(var se=0;seye&&(ye=Ae,le=T(q[se]));return T.isReadable(C,le,{level:Xe,size:V})||!Fe?le:(B.includeFallbackColors=!1,T.mostReadable(C,["#fff","#000"],B))};var k=T.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"},b=T.hexNames=n(k);function n(C){var q={};for(var B in C)C.hasOwnProperty(B)&&(q[C[B]]=B);return q}function u(C){return C=parseFloat(C),(isNaN(C)||C<0||C>1)&&(C=1),C}function s(C,q){R(C)&&(C="100%");var B=U(C);return C=oe(q,re(0,parseFloat(C))),B&&(C=parseInt(C*q,10)/100),z.abs(C-q)<1e-6?1:C%q/parseFloat(q)}function a(C){return oe(1,re(0,C))}function t(C){return parseInt(C,16)}function R(C){return typeof C=="string"&&C.indexOf(".")!=-1&&parseFloat(C)===1}function U(C){return typeof C=="string"&&C.indexOf("%")!=-1}function ae(C){return C.length==1?"0"+C:""+C}function _e(C){return C<=1&&(C=C*100+"%"),C}function ne(C){return z.round(parseFloat(C)*255).toString(16)}function me(C){return t(C)/255}var Oe=function(){var C="[-\\+]?\\d+%?",q="[-\\+]?\\d*\\.\\d+%?",B="(?:"+q+")|(?:"+C+")",le="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",ye="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?";return{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+ye),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+ye),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+ye),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 we(C){return!!Oe.CSS_UNIT.exec(C)}function ue(C){C=C.replace(ce,"").replace(ee,"").toLowerCase();var q=!1;if(k[C])C=k[C],q=!0;else if(C=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var B;return(B=Oe.rgb.exec(C))?{r:B[1],g:B[2],b:B[3]}:(B=Oe.rgba.exec(C))?{r:B[1],g:B[2],b:B[3],a:B[4]}:(B=Oe.hsl.exec(C))?{h:B[1],s:B[2],l:B[3]}:(B=Oe.hsla.exec(C))?{h:B[1],s:B[2],l:B[3],a:B[4]}:(B=Oe.hsv.exec(C))?{h:B[1],s:B[2],v:B[3]}:(B=Oe.hsva.exec(C))?{h:B[1],s:B[2],v:B[3],a:B[4]}:(B=Oe.hex8.exec(C))?{r:t(B[1]),g:t(B[2]),b:t(B[3]),a:me(B[4]),format:q?"name":"hex8"}:(B=Oe.hex6.exec(C))?{r:t(B[1]),g:t(B[2]),b:t(B[3]),format:q?"name":"hex"}:(B=Oe.hex4.exec(C))?{r:t(B[1]+""+B[1]),g:t(B[2]+""+B[2]),b:t(B[3]+""+B[3]),a:me(B[4]+""+B[4]),format:q?"name":"hex8"}:(B=Oe.hex3.exec(C))?{r:t(B[1]+""+B[1]),g:t(B[2]+""+B[2]),b:t(B[3]+""+B[3]),format:q?"name":"hex"}:!1}function Ee(C){var q,B;return C=C||{level:"AA",size:"small"},q=(C.level||"AA").toUpperCase(),B=(C.size||"small").toLowerCase(),q!=="AA"&&q!=="AAA"&&(q="AA"),B!=="small"&&B!=="large"&&(B="small"),{level:q,size:B}}Ge.exports?Ge.exports=T:!(Y=function(){return T}.call(Q,o,Q,Ge),Y!==void 0&&(Ge.exports=Y))})(Math)},bT9E:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return z});var Y=o("VTBJ");function z(ce,ee){var y=Object(Y.a)({},ce);return Array.isArray(ee)&&ee.forEach(function(A){delete y[A]}),y}},biw7:function(Ge,Q,o){"use strict";var Y=o("q1tI"),z=o.n(Y),ce=Y.createContext(null);Q.a=ce},dmUQ:function(Ge,Q,o){"use strict";var Y=o("Ff2n"),z=o("rePB"),ce=o("1OyB"),ee=o("vuIU"),y=o("Ji7U"),A=o("md7G"),oe=o("foSv"),re=o("q1tI"),e=o.n(re),T=o("TSYQ"),E=o.n(T),p=o("4IlW");function l(M,D){var P=Object.keys(M);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(M);D&&(w=w.filter(function(f){return Object.getOwnPropertyDescriptor(M,f).enumerable})),P.push.apply(P,w)}return P}function r(M){for(var D=1;D1?U-1:0),_e=1;_e1?s-1:0),t=1;t=0)return parseInt(u.slice(u.indexOf("e-")+2),10);var s=0;return u.indexOf(".")>=0&&(s=u.length-u.indexOf(".")-1),s},f.getInputDisplayValue=function(n){var u=n||f.state,s=u.focused,a=u.inputValue,t=u.value,R;s?R=a:R=f.toPrecisionAsStep(t),R==null&&(R="");var U=f.formatWrapper(R);return G(f.props.decimalSeparator)&&(U=U.toString().replace(".",f.props.decimalSeparator)),U},f.recordCursorPosition=function(){try{f.cursorStart=f.input.selectionStart,f.cursorEnd=f.input.selectionEnd,f.currentValue=f.input.value,f.cursorBefore=f.input.value.substring(0,f.cursorStart),f.cursorAfter=f.input.value.substring(f.cursorEnd)}catch(n){}},f.restoreByAfter=function(n){if(n===void 0)return!1;var u=f.input.value,s=u.lastIndexOf(n);if(s===-1)return!1;var a=f.cursorBefore.length;return f.lastKeyCode===p.a.DELETE&&f.cursorBefore.charAt(a-1)===n[0]?(f.fixCaret(a,a),!0):s+n.length===u.length?(f.fixCaret(s,s),!0):!1},f.partRestoreByAfter=function(n){return n===void 0?!1:Array.prototype.some.call(n,function(u,s){var a=n.substring(s);return f.restoreByAfter(a)})},f.isNotCompleteNumber=function(n){return isNaN(n)||n===""||n===null||n&&n.toString().indexOf(".")===n.toString().length-1},f.stop=function(){f.autoStepTimer&&clearTimeout(f.autoStepTimer)},f.down=function(n,u,s){f.pressingUpOrDown=!0,f.step("down",n,u,s)},f.up=function(n,u,s){f.pressingUpOrDown=!0,f.step("up",n,u,s)},f.saveInput=function(n){f.input=n};var k=w.value;k===void 0&&(k=w.defaultValue),f.state={focused:w.autoFocus};var b=f.getValidValue(f.toNumber(k));return f.state=r(r({},f.state),{},{inputValue:f.toPrecisionAsStep(b),value:b}),f}return Object(ee.a)(P,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(f){var k=this.props,b=k.value,n=k.onChange,u=k.max,s=k.min,a=this.state.focused;if(f){if(!N(f.value,b)||!N(f.max,u)||!N(f.min,s)){var t=a?b:this.getValidValue(b),R;this.pressingUpOrDown?R=t:this.inputting?R=this.rawInput:R=this.toPrecisionAsStep(t),this.setState({value:t,inputValue:R})}var U="value"in this.props?b:this.state.value;"max"in this.props&&f.max!==u&&typeof U=="number"&&U>u&&n&&n(u),"min"in this.props&&f.min!==s&&typeof U=="number"&&U1&&arguments[1]!==void 0?arguments[1]:this.props.min,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,n=parseFloat(f);return isNaN(n)?f:(nb&&(n=b),n)}},{key:"setValue",value:function(f,k){var b=this.props.precision,n=this.isNotCompleteNumber(parseFloat(f))?null:parseFloat(f),u=this.state.value,s=u===void 0?null:u,a=this.state.inputValue,t=a===void 0?null:a,R=typeof n=="number"?n.toFixed(b):"".concat(n),U=n!==s||R!=="".concat(t);return"value"in this.props?(t=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:t},k)):this.setState({value:n,inputValue:this.toPrecisionAsStep(f)},k),U&&this.props.onChange(n),n}},{key:"getMaxPrecision",value:function(f){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,b=this.props,n=b.precision,u=b.step;if(G(n))return n;var s=this.getPrecision(k),a=this.getPrecision(u),t=this.getPrecision(f);return f?Math.max(t,s+a):s+a}},{key:"getPrecisionFactor",value:function(f){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,b=this.getMaxPrecision(f,k);return Math.pow(10,b)}},{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(f){return this.props.formatter?this.props.formatter(f):f}},{key:"toPrecisionAsStep",value:function(f){if(this.isNotCompleteNumber(f)||f==="")return f;var k=Math.abs(this.getMaxPrecision(f));return isNaN(k)?f.toString():Number(f).toFixed(k)}},{key:"toNumber",value:function(f){var k=this.props.precision,b=this.state.focused,n=f&&f.length>16&&b;return this.isNotCompleteNumber(f)||n?f:G(k)?Math.round(f*Math.pow(10,k))/Math.pow(10,k):Number(f)}},{key:"upStep",value:function(f,k){var b=this.props.step,n=this.getPrecisionFactor(f,k),u=Math.abs(this.getMaxPrecision(f,k)),s=((n*f+n*b*k)/n).toFixed(u);return this.toNumber(s)}},{key:"downStep",value:function(f,k){var b=this.props.step,n=this.getPrecisionFactor(f,k),u=Math.abs(this.getMaxPrecision(f,k)),s=((n*f-n*b*k)/n).toFixed(u);return this.toNumber(s)}},{key:"step",value:function(f,k){var b=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3?arguments[3]:void 0;this.stop(),k&&(k.persist(),k.preventDefault());var s=this.props;if(s.disabled)return;var a=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(a))return;var t=this["".concat(f,"Step")](a,n),R=t>s.max||ts.max?t=s.max:t=ae),Se=(tt||tt===0)&&(isNaN(tt)||Number(tt)<=_e),ke=He||n||u,Le=Se||n||u,Be=E()("".concat(b,"-handler"),"".concat(b,"-handler-up"),Object(z.a)({},"".concat(b,"-handler-up-disabled"),ke)),Re=E()("".concat(b,"-handler"),"".concat(b,"-handler-down"),Object(z.a)({},"".concat(b,"-handler-down-disabled"),Le)),We=s?{onTouchStart:ke?g:this.up,onTouchEnd:this.stop}:{onMouseDown:ke?g:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Qe=s?{onTouchStart:Le?g:this.down,onTouchEnd:this.stop}:{onMouseDown:Le?g:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:de,style:ne,title:me,onMouseEnter:Oe,onMouseLeave:we,onMouseOver:ue,onMouseOut:Ee,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(b,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},We,{role:"button","aria-label":"Increase Value","aria-disabled":ke,className:Be}),t||e.a.createElement("span",{unselectable:"on",className:"".concat(b,"-handler-up-inner"),onClick:j})),e.a.createElement("span",Object.assign({unselectable:"on"},Qe,{role:"button","aria-label":"Decrease Value","aria-disabled":Le,className:Re}),R||e.a.createElement("span",{unselectable:"on",className:"".concat(b,"-handler-down-inner"),onClick:j}))),e.a.createElement("div",{className:"".concat(b,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":_e,"aria-valuemax":ae,"aria-valuenow":tt,required:C,type:le,placeholder:ye,onPaste:qe,onClick:q,onMouseUp:this.onMouseUp,className:"".concat(b,"-input"),tabIndex:B,autoComplete:a,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ne?this.onKeyDown:g,onKeyUp:Ne?this.onKeyUp:g,autoFocus:ge,maxLength:se,readOnly:u,disabled:n,max:ae,min:_e,step:V,name:Te,title:me,id:Ae,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Ke),pattern:Xe,inputMode:Fe,onInput:ut},Me))))}}]),P}(e.a.Component);J.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:$,min:-$,step:1,style:{},onChange:g,onKeyDown:g,onPressEnter:g,onFocus:g,onBlur:g,parser:v,required:!1,autoComplete:"off"};var S=J,X=Q.a=S},fjLI:function(Ge,Q,o){"use strict";o.d(Q,"f",function(){return l}),o.d(Q,"b",function(){return r}),o.d(Q,"a",function(){return i}),o.d(Q,"d",function(){return c}),o.d(Q,"e",function(){return g}),o.d(Q,"c",function(){return j});var Y=o("8HAY"),z=o("Vhoy"),ce=o("MI8n"),ee=o("JYp7"),y=o("pmY6"),A=o("24hK"),oe=o("nnTU"),re=o("T8No"),e=o("Cg/j"),T=o("t9D7"),E=function(v,m,W,$){var G=arguments.length,N=G<3?m:$===null?$=Object.getOwnPropertyDescriptor(m,W):$,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(v,m,W,$);else for(var S=v.length-1;S>=0;S--)(J=v[S])&&(N=(G<3?J(N):G>3?J(m,W,N):J(m,W))||N);return G>3&&N&&Object.defineProperty(m,W,N),N},p=function(v,m){return function(W,$){m(W,$,v)}};function l(v){return v.command!==void 0}class r{constructor(v){this.id=r._idPool++,this._debugName=v}}r._idPool=0,r.CommandPalette=new r("CommandPalette"),r.EditorContext=new r("EditorContext"),r.SimpleEditorContext=new r("SimpleEditorContext"),r.EditorContextCopy=new r("EditorContextCopy"),r.EditorContextPeek=new r("EditorContextPeek"),r.MenubarEditMenu=new r("MenubarEditMenu"),r.MenubarCopy=new r("MenubarCopy"),r.MenubarGoMenu=new r("MenubarGoMenu"),r.MenubarSelectionMenu=new r("MenubarSelectionMenu"),r.InlineCompletionsActions=new r("InlineCompletionsActions");const i=Object(e.c)("menuService"),c=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ce.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:v=>v===r.CommandPalette}}addCommand(v){return this.addCommands(ee.a.single(v))}addCommands(v){for(const m of v)this._commands.set(m.id,m);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let m=!1;for(const W of v)m=this._commands.delete(W.id)||m;m&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(v){return this._commands.get(v)}getCommands(){const v=new Map;return this._commands.forEach((m,W)=>v.set(W,m)),v}appendMenuItem(v,m){return this.appendMenuItems(ee.a.single({id:v,item:m}))}appendMenuItems(v){const m=new Set,W=new A.a;for(const{id:$,item:G}of v){let N=this._menuItems.get($);N||(N=new A.a,this._menuItems.set($,N)),W.push(N.push(G)),m.add($)}return this._onDidChangeMenu.fire(m),Object(y.i)(()=>{if(W.size>0){for(let $ of W)$();this._onDidChangeMenu.fire(m),W.clear()}})}getMenuItems(v){let m;return this._menuItems.has(v)?m=[...this._menuItems.get(v)]:m=[],v===r.CommandPalette&&this._appendImplicitItems(m),m}_appendImplicitItems(v){const m=new Set;for(const W of v)l(W)&&(m.add(W.command.id),W.alt&&m.add(W.alt.id));this._commands.forEach((W,$)=>{m.has($)||v.push({command:W})})}};class g extends Y.e{constructor(v,m,W,$){super(`submenuitem.${v.submenu.id}`,typeof v.title=="string"?v.title:v.title.value,[],"submenu");this.item=v,this._menuService=m,this._contextKeyService=W,this._options=$}get actions(){const v=[],m=this._menuService.createMenu(this.item.submenu,this._contextKeyService),W=m.getActions(this._options);m.dispose();for(const[,$]of W)$.length>0&&(v.push(...$),v.push(new Y.d));return v.length&&v.pop(),v}}let j=class v{constructor(m,W,$,G,N){var J,S;if(this._commandService=N,this.id=m.id,this.label=($==null?void 0:$.renderShortTitle)&&m.shortTitle?typeof m.shortTitle=="string"?m.shortTitle:m.shortTitle.value:typeof m.title=="string"?m.title:m.title.value,this.tooltip=(S=typeof m.tooltip=="string"?m.tooltip:(J=m.tooltip)===null||J===void 0?void 0:J.value)!==null&&S!==void 0?S:"",this.enabled=!m.precondition||G.contextMatchesRules(m.precondition),this.checked=void 0,m.toggled){const X=m.toggled.condition?m.toggled:{condition:m.toggled};this.checked=G.contextMatchesRules(X.condition),this.checked&&X.tooltip&&(this.tooltip=typeof X.tooltip=="string"?X.tooltip:X.tooltip.value),X.title&&(this.label=typeof X.title=="string"?X.title:X.title.value)}this.item=m,this.alt=W?new v(W,void 0,$,G,N):void 0,this._options=$,T.d.isThemeIcon(m.icon)&&(this.class=z.a.asClassName(m.icon))}dispose(){}run(...m){var W,$;let G=[];return((W=this._options)===null||W===void 0?void 0:W.arg)&&(G=[...G,this._options.arg]),(($=this._options)===null||$===void 0?void 0:$.shouldForwardArgs)&&(G=[...G,...m]),this._commandService.executeCommand(this.id,...G)}};j=E([p(3,re.b),p(4,oe.b)],j)},fyJ8:function(Ge,Q,o){"use strict";var Y=o("rePB"),z=o("VTBJ"),ce=o("Ff2n"),ee=o("U8pU"),y=o("q1tI"),A=o.n(y),oe=o("TSYQ"),re=o.n(oe),e=o("c+Xe"),T=o("sR1s");function E(c){return c&&Object(ee.a)(c)==="object"&&!Array.isArray(c)&&!y.isValidElement(c)}function p(c){return typeof c=="string"?!0:Object(e.c)(c)}function l(c,g){var j,v=c.prefixCls,m=c.className,W=c.record,$=c.index,G=c.dataIndex,N=c.render,J=c.children,S=c.component,X=S===void 0?"td":S,M=c.colSpan,D=c.rowSpan,P=c.fixLeft,w=c.fixRight,f=c.firstFixLeft,k=c.lastFixLeft,b=c.firstFixRight,n=c.lastFixRight,u=c.appendNode,s=c.additionalProps,a=s===void 0?{}:s,t=c.ellipsis,R=c.align,U=c.rowType,ae=c.isSticky,_e="".concat(v,"-cell"),ne,me;if(J)me=J;else{var Oe=Object(T.b)(W,G);if(me=Oe,N){var we=N(Oe,W,$);E(we)?(me=we.children,ne=we.props):me=we}}Object(ee.a)(me)==="object"&&!Array.isArray(me)&&!y.isValidElement(me)&&(me=null),t&&(k||b)&&(me=y.createElement("span",{className:"".concat(_e,"-content")},me));var ue=ne||{},Ee=ue.colSpan,C=ue.rowSpan,q=ue.style,B=ue.className,le=Object(ce.a)(ue,["colSpan","rowSpan","style","className"]),ye=Ee!==void 0?Ee:M,Ae=C!==void 0?C:D;if(ye===0||Ae===0)return null;var Fe={},Xe=typeof P=="number",V=typeof w=="number";Xe&&(Fe.position="sticky",Fe.left=P),V&&(Fe.position="sticky",Fe.right=w);var se={};R&&(se.textAlign=R);var ge,Te=t===!0?{showTitle:!0}:t;Te&&(Te.showTitle||U==="header")&&(typeof me=="string"||typeof me=="number"?ge=me.toString():y.isValidElement(me)&&typeof me.props.children=="string"&&(ge=me.props.children));var qe=Object(z.a)(Object(z.a)(Object(z.a)({title:ge},le),a),{},{colSpan:ye&&ye!==1?ye:null,rowSpan:Ae&&Ae!==1?Ae:null,className:re()(_e,m,(j={},Object(Y.a)(j,"".concat(_e,"-fix-left"),Xe),Object(Y.a)(j,"".concat(_e,"-fix-left-first"),f),Object(Y.a)(j,"".concat(_e,"-fix-left-last"),k),Object(Y.a)(j,"".concat(_e,"-fix-right"),V),Object(Y.a)(j,"".concat(_e,"-fix-right-first"),b),Object(Y.a)(j,"".concat(_e,"-fix-right-last"),n),Object(Y.a)(j,"".concat(_e,"-ellipsis"),t),Object(Y.a)(j,"".concat(_e,"-with-append"),u),Object(Y.a)(j,"".concat(_e,"-fix-sticky"),(Xe||V)&&ae),j),a.className,B),style:Object(z.a)(Object(z.a)(Object(z.a)(Object(z.a)({},a.style),se),Fe),q),ref:p(X)?g:null});return y.createElement(X,Object.assign({},qe),u,me)}var r=y.forwardRef(l);r.displayName="Cell";var i=y.memo(r,function(c,g){return g.shouldCellUpdate?!g.shouldCellUpdate(g.record,c.record):!1});Q.a=i},h78n:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return f});var Y=o("q1tI"),z=o.n(Y),ce=o("TSYQ"),ee=o.n(ce),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},A=function(n){var u=n.map(function(){return Object(Y.useRef)()}),s=Object(Y.useRef)();return Object(Y.useEffect)(function(){var a=Date.now(),t=!1;Object.keys(u).forEach(function(R){var U=u[R].current;if(!U)return;t=!0;var ae=U.style;ae.transitionDuration=".3s, .3s, .3s, .06s",s.current&&a-s.current<100&&(ae.transitionDuration="0s, 0s")}),t&&(s.current=Date.now())}),[u]};function oe(){return oe=Object.assign||function(b){for(var n=1;n0&&arguments[0]!==void 0?arguments[0]:[],t=a;if(Array.isArray(a)){for(var R=0;R0||on.target.offsetWidth>0)&&Se.current.instance.layout()}}catch(bn){et.e(bn)}finally{et.f()}}),$e.observe(He.current)),$e}function ft(){ee.b.warn(decodeURIComponent(S))}var Tt=function(){var Ye=Se.current.instance;if(_e!=null&&Ye&&Ve){var et=Ye.getModel();et&&_e!==et.getValue()&&(h=!0,et.setValue(_e),Ye.layout(),h=!1)}};Object(re.useEffect)(function(){Le.current&&clearTimeout(Le.current),Le.current=setTimeout(function(){Tt()},500)},[_e,Ve,Se.current]),Object(re.useEffect)(function(){if(de&&Se.current&&Se.current.instance){var $e=Se.current.instance;$e.changeViewZones(function(et){var Lt=document.createElement("div");Lt.style.padding="10px 20px",Lt.style.width="calc(100% - 20px)",Lt.className="my-error-line-wrp",Lt.innerHTML=Ne,et.addZone({afterLineNumber:de||11,heightInLines:3,domNode:Lt})});var Ye={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}};$e.addOverlayWidget(Ye),$e.revealPositionInCenter({lineNumber:20,column:1})}},[de,Se.current,Ve]);function Nt(){var $e=Se.current.instance;if($e){var Ye=$e.getSelection(),et=Se.current.pastePos||{},Lt=new n.Range(et.startLineNumber||Ye.endLineNumber,et.startColumn||Ye.endColumn,et.endLineNumber||Ye.endLineNumber,et.endColumn||Ye.endColumn);setTimeout(function(){$e.executeEdits("",[{range:Lt,text:""}])},300)}}function _t($e){(window.navigator.platform.match("Mac")?$e.metaKey:$e.ctrlKey)&&$e.keyCode==83&&($e.preventDefault(),Ae())}var nn=function(){if(Xe&&Se.current.instance){var Ye=Se.current.instance.getContentHeight();it(Ye0||qe.target.offsetWidth>0)&&Xe.layout()}}catch(ut){ge.e(ut)}finally{ge.f()}}),V.observe(ue.current)),V}Object(re.useEffect)(function(){ue.current&&Promise.all([o.e(16),o.e(28)]).then(o.t.bind(null,"M/lh",7)).then(function(Xe){n=Xe;var V=n.editor.createDiffEditor(ue.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},we),{},{wordWrap:!0}));B(V);var se=le(V);return function(){V.dispose();var ge=V.getModel();ge&&ge.dispose(),se.unobserve(ue.current)}})},[]),Object(re.useEffect)(function(){q&&q.setModel({original:n.editor.createModel(_e,me),modified:n.editor.createModel(ne,me)})},[_e,ne,me,q]);var ye=P(R),Ae=P(ae),Fe={width:ye,height:Ae};return e.a.createElement("div",{className:"my-diff-editor",ref:ue,style:Fe})}},ZpRC:function(Ge,Q,o){"use strict";function Y(E){return typeof E=="object"&&E!=null&&E.nodeType===1}function z(E,p){return(!p||E!=="hidden")&&E!=="visible"&&E!=="clip"}function ce(E,p){if(E.clientHeightp||c>E&&g=p&&j>=l?c-E-r:g>p&&jl?g-p+i:0}var y=function(E,p){var l=window,r=p.scrollMode,i=p.block,c=p.inline,g=p.boundary,j=p.skipOverflowHiddenElements,v=typeof g=="function"?g:function(Xe){return Xe!==g};if(!Y(E))throw new TypeError("Invalid target");for(var m=document.scrollingElement||document.documentElement,W=[],$=E;Y($)&&v($);){if(($=$.parentElement)===m){W.push($);break}$!=null&&$===document.body&&ce($)&&!ce(document.documentElement)||$!=null&&ce($,j)&&W.push($)}for(var G=l.visualViewport?l.visualViewport.width:innerWidth,N=l.visualViewport?l.visualViewport.height:innerHeight,J=window.scrollX||pageXOffset,S=window.scrollY||pageYOffset,X=E.getBoundingClientRect(),M=X.height,D=X.width,P=X.top,w=X.right,h=X.bottom,k=X.left,b=i==="start"||i==="nearest"?P:i==="end"?h:P+M/2,n=c==="center"?k+D/2:c==="end"?w:k,u=[],s=0;s=0&&k>=0&&h<=N&&w<=G&&P>=ae&&h<=ne&&k>=me&&w<=_e)return u;var Oe=getComputedStyle(a),we=parseInt(Oe.borderLeftWidth,10),ue=parseInt(Oe.borderTopWidth,10),Ee=parseInt(Oe.borderRightWidth,10),C=parseInt(Oe.borderBottomWidth,10),q=0,B=0,le="offsetWidth"in a?a.offsetWidth-a.clientWidth-we-Ee:0,ye="offsetHeight"in a?a.offsetHeight-a.clientHeight-ue-C:0;if(m===a)q=i==="start"?b:i==="end"?b-N:i==="nearest"?ee(S,S+N,N,ue,C,S+b,S+b+M,M):b-N/2,B=c==="start"?n:c==="center"?n-G/2:c==="end"?n-G:ee(J,J+G,G,we,Ee,J+n,J+n+D,D),q=Math.max(0,q+S),B=Math.max(0,B+J);else{q=i==="start"?b-ae-ue:i==="end"?b-ne+C+ye:i==="nearest"?ee(ae,ne,R,ue,C+ye,b,b+M,M):b-(ae+R/2)+ye/2,B=c==="start"?n-me-we:c==="center"?n-(me+U/2)+le/2:c==="end"?n-_e+Ee+le:ee(me,_e,U,we,Ee+le,n,n+D,D);var Ae=a.scrollLeft,Fe=a.scrollTop;b+=Fe-(q=Math.max(0,Math.min(Fe+q,a.scrollHeight-R+ye))),n+=Ae-(B=Math.max(0,Math.min(Ae+B,a.scrollWidth-U+le)))}u.push({el:a,top:q,left:B})}return u};function A(E){return E===Object(E)&&Object.keys(E).length!==0}function oe(E,p){p===void 0&&(p="auto");var l="scrollBehavior"in document.body.style;E.forEach(function(r){var i=r.el,c=r.top,g=r.left;i.scroll&&l?i.scroll({top:c,left:g,behavior:p}):(i.scrollTop=c,i.scrollLeft=g)})}function re(E){return E===!1?{block:"end",inline:"nearest"}:A(E)?E:{block:"start",inline:"nearest"}}function e(E,p){var l=!E.ownerDocument.documentElement.contains(E);if(A(p)&&typeof p.behavior=="function")return p.behavior(l?[]:y(E,p));if(l)return;var r=re(p);return oe(y(E,r),r.behavior)}var T=Q.a=e},Zss7:function(Ge,Q,o){var Y;(function(z){var ce=/^\s+/,ee=/\s+$/,y=0,A=z.round,oe=z.min,re=z.max,e=z.random;function T(C,q){if(C=C||"",q=q||{},C instanceof T)return C;if(!(this instanceof T))return new T(C,q);var B=E(C);this._originalInput=C,this._r=B.r,this._g=B.g,this._b=B.b,this._a=B.a,this._roundA=A(100*this._a)/100,this._format=q.format||B.format,this._gradientType=q.gradientType,this._r<1&&(this._r=A(this._r)),this._g<1&&(this._g=A(this._g)),this._b<1&&(this._b=A(this._b)),this._ok=B.ok,this._tc_id=y++}T.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 C=this.toRgb();return(C.r*299+C.g*587+C.b*114)/1e3},getLuminance:function(){var C=this.toRgb(),q,B,le,ye,Ae,Fe;return q=C.r/255,B=C.g/255,le=C.b/255,q<=.03928?ye=q/12.92:ye=z.pow((q+.055)/1.055,2.4),B<=.03928?Ae=B/12.92:Ae=z.pow((B+.055)/1.055,2.4),le<=.03928?Fe=le/12.92:Fe=z.pow((le+.055)/1.055,2.4),.2126*ye+.7152*Ae+.0722*Fe},setAlpha:function(C){return this._a=u(C),this._roundA=A(100*this._a)/100,this},toHsv:function(){var C=i(this._r,this._g,this._b);return{h:C.h*360,s:C.s,v:C.v,a:this._a}},toHsvString:function(){var C=i(this._r,this._g,this._b),q=A(C.h*360),B=A(C.s*100),le=A(C.v*100);return this._a==1?"hsv("+q+", "+B+"%, "+le+"%)":"hsva("+q+", "+B+"%, "+le+"%, "+this._roundA+")"},toHsl:function(){var C=l(this._r,this._g,this._b);return{h:C.h*360,s:C.s,l:C.l,a:this._a}},toHslString:function(){var C=l(this._r,this._g,this._b),q=A(C.h*360),B=A(C.s*100),le=A(C.l*100);return this._a==1?"hsl("+q+", "+B+"%, "+le+"%)":"hsla("+q+", "+B+"%, "+le+"%, "+this._roundA+")"},toHex:function(C){return g(this._r,this._g,this._b,C)},toHexString:function(C){return"#"+this.toHex(C)},toHex8:function(C){return j(this._r,this._g,this._b,this._a,C)},toHex8String:function(C){return"#"+this.toHex8(C)},toRgb:function(){return{r:A(this._r),g:A(this._g),b:A(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+A(this._r)+", "+A(this._g)+", "+A(this._b)+")":"rgba("+A(this._r)+", "+A(this._g)+", "+A(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:A(s(this._r,255)*100)+"%",g:A(s(this._g,255)*100)+"%",b:A(s(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+A(s(this._r,255)*100)+"%, "+A(s(this._g,255)*100)+"%, "+A(s(this._b,255)*100)+"%)":"rgba("+A(s(this._r,255)*100)+"%, "+A(s(this._g,255)*100)+"%, "+A(s(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:b[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(C){var q="#"+v(this._r,this._g,this._b,this._a),B=q,le=this._gradientType?"GradientType = 1, ":"";if(C){var ye=T(C);B="#"+v(ye._r,ye._g,ye._b,ye._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+q+",endColorstr="+B+")"},toString:function(C){var q=!!C;C=C||this._format;var B=!1,le=this._a<1&&this._a>=0,ye=!q&&le&&(C==="hex"||C==="hex6"||C==="hex3"||C==="hex4"||C==="hex8"||C==="name");return ye?C==="name"&&this._a===0?this.toName():this.toRgbString():(C==="rgb"&&(B=this.toRgbString()),C==="prgb"&&(B=this.toPercentageRgbString()),(C==="hex"||C==="hex6")&&(B=this.toHexString()),C==="hex3"&&(B=this.toHexString(!0)),C==="hex4"&&(B=this.toHex8String(!0)),C==="hex8"&&(B=this.toHex8String()),C==="name"&&(B=this.toName()),C==="hsl"&&(B=this.toHslString()),C==="hsv"&&(B=this.toHsvString()),B||this.toHexString())},clone:function(){return T(this.toString())},_applyModification:function(C,q){var B=C.apply(null,[this].concat([].slice.call(q)));return this._r=B._r,this._g=B._g,this._b=B._b,this.setAlpha(B._a),this},lighten:function(){return this._applyModification(G,arguments)},brighten:function(){return this._applyModification(N,arguments)},darken:function(){return this._applyModification(J,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(W,arguments)},greyscale:function(){return this._applyModification($,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(C,q){return C.apply(null,[this].concat([].slice.call(q)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(X,arguments)},monochromatic:function(){return this._applyCombination(h,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(M,arguments)},tetrad:function(){return this._applyCombination(D,arguments)}},T.fromRatio=function(C,q){if(typeof C=="object"){var B={};for(var le in C)C.hasOwnProperty(le)&&(le==="a"?B[le]=C[le]:B[le]=_e(C[le]));C=B}return T(C,q)};function E(C){var q={r:0,g:0,b:0},B=1,le=null,ye=null,Ae=null,Fe=!1,Xe=!1;return typeof C=="string"&&(C=ue(C)),typeof C=="object"&&(we(C.r)&&we(C.g)&&we(C.b)?(q=p(C.r,C.g,C.b),Fe=!0,Xe=String(C.r).substr(-1)==="%"?"prgb":"rgb"):we(C.h)&&we(C.s)&&we(C.v)?(le=_e(C.s),ye=_e(C.v),q=c(C.h,le,ye),Fe=!0,Xe="hsv"):we(C.h)&&we(C.s)&&we(C.l)&&(le=_e(C.s),Ae=_e(C.l),q=r(C.h,le,Ae),Fe=!0,Xe="hsl"),C.hasOwnProperty("a")&&(B=C.a)),B=u(B),{ok:Fe,format:C.format||Xe,r:oe(255,re(q.r,0)),g:oe(255,re(q.g,0)),b:oe(255,re(q.b,0)),a:B}}function p(C,q,B){return{r:s(C,255)*255,g:s(q,255)*255,b:s(B,255)*255}}function l(C,q,B){C=s(C,255),q=s(q,255),B=s(B,255);var le=re(C,q,B),ye=oe(C,q,B),Ae,Fe,Xe=(le+ye)/2;if(le==ye)Ae=Fe=0;else{var V=le-ye;Fe=Xe>.5?V/(2-le-ye):V/(le+ye);switch(le){case C:Ae=(q-B)/V+(q1&&(Te-=1),Te<1/6?se+(ge-se)*6*Te:Te<1/2?ge:Te<2/3?se+(ge-se)*(2/3-Te)*6:se}if(q===0)le=ye=Ae=B;else{var Xe=B<.5?B*(1+q):B+q-B*q,V=2*B-Xe;le=Fe(V,Xe,C+1/3),ye=Fe(V,Xe,C),Ae=Fe(V,Xe,C-1/3)}return{r:le*255,g:ye*255,b:Ae*255}}function i(C,q,B){C=s(C,255),q=s(q,255),B=s(B,255);var le=re(C,q,B),ye=oe(C,q,B),Ae,Fe,Xe=le,V=le-ye;if(Fe=le===0?0:V/le,le==ye)Ae=0;else{switch(le){case C:Ae=(q-B)/V+(q>1)+720)%360;--q;)le.h=(le.h+ye)%360,Ae.push(T(le));return Ae}function h(C,q){q=q||6;for(var B=T(C).toHsv(),le=B.h,ye=B.s,Ae=B.v,Fe=[],Xe=1/q;q--;)Fe.push(T({h:le,s:ye,v:Ae})),Ae=(Ae+Xe)%1;return Fe}T.mix=function(C,q,B){B=B===0?0:B||50;var le=T(C).toRgb(),ye=T(q).toRgb(),Ae=B/100,Fe={r:(ye.r-le.r)*Ae+le.r,g:(ye.g-le.g)*Ae+le.g,b:(ye.b-le.b)*Ae+le.b,a:(ye.a-le.a)*Ae+le.a};return T(Fe)},T.readability=function(C,q){var B=T(C),le=T(q);return(z.max(B.getLuminance(),le.getLuminance())+.05)/(z.min(B.getLuminance(),le.getLuminance())+.05)},T.isReadable=function(C,q,B){var le=T.readability(C,q),ye,Ae;Ae=!1,ye=Ee(B);switch(ye.level+ye.size){case"AAsmall":case"AAAlarge":Ae=le>=4.5;break;case"AAlarge":Ae=le>=3;break;case"AAAsmall":Ae=le>=7;break}return Ae},T.mostReadable=function(C,q,B){var le=null,ye=0,Ae,Fe,Xe,V;B=B||{},Fe=B.includeFallbackColors,Xe=B.level,V=B.size;for(var se=0;seye&&(ye=Ae,le=T(q[se]));return T.isReadable(C,le,{level:Xe,size:V})||!Fe?le:(B.includeFallbackColors=!1,T.mostReadable(C,["#fff","#000"],B))};var k=T.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"},b=T.hexNames=n(k);function n(C){var q={};for(var B in C)C.hasOwnProperty(B)&&(q[C[B]]=B);return q}function u(C){return C=parseFloat(C),(isNaN(C)||C<0||C>1)&&(C=1),C}function s(C,q){R(C)&&(C="100%");var B=U(C);return C=oe(q,re(0,parseFloat(C))),B&&(C=parseInt(C*q,10)/100),z.abs(C-q)<1e-6?1:C%q/parseFloat(q)}function a(C){return oe(1,re(0,C))}function t(C){return parseInt(C,16)}function R(C){return typeof C=="string"&&C.indexOf(".")!=-1&&parseFloat(C)===1}function U(C){return typeof C=="string"&&C.indexOf("%")!=-1}function ae(C){return C.length==1?"0"+C:""+C}function _e(C){return C<=1&&(C=C*100+"%"),C}function ne(C){return z.round(parseFloat(C)*255).toString(16)}function me(C){return t(C)/255}var Oe=function(){var C="[-\\+]?\\d+%?",q="[-\\+]?\\d*\\.\\d+%?",B="(?:"+q+")|(?:"+C+")",le="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",ye="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?";return{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+ye),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+ye),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+ye),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 we(C){return!!Oe.CSS_UNIT.exec(C)}function ue(C){C=C.replace(ce,"").replace(ee,"").toLowerCase();var q=!1;if(k[C])C=k[C],q=!0;else if(C=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var B;return(B=Oe.rgb.exec(C))?{r:B[1],g:B[2],b:B[3]}:(B=Oe.rgba.exec(C))?{r:B[1],g:B[2],b:B[3],a:B[4]}:(B=Oe.hsl.exec(C))?{h:B[1],s:B[2],l:B[3]}:(B=Oe.hsla.exec(C))?{h:B[1],s:B[2],l:B[3],a:B[4]}:(B=Oe.hsv.exec(C))?{h:B[1],s:B[2],v:B[3]}:(B=Oe.hsva.exec(C))?{h:B[1],s:B[2],v:B[3],a:B[4]}:(B=Oe.hex8.exec(C))?{r:t(B[1]),g:t(B[2]),b:t(B[3]),a:me(B[4]),format:q?"name":"hex8"}:(B=Oe.hex6.exec(C))?{r:t(B[1]),g:t(B[2]),b:t(B[3]),format:q?"name":"hex"}:(B=Oe.hex4.exec(C))?{r:t(B[1]+""+B[1]),g:t(B[2]+""+B[2]),b:t(B[3]+""+B[3]),a:me(B[4]+""+B[4]),format:q?"name":"hex8"}:(B=Oe.hex3.exec(C))?{r:t(B[1]+""+B[1]),g:t(B[2]+""+B[2]),b:t(B[3]+""+B[3]),format:q?"name":"hex"}:!1}function Ee(C){var q,B;return C=C||{level:"AA",size:"small"},q=(C.level||"AA").toUpperCase(),B=(C.size||"small").toLowerCase(),q!=="AA"&&q!=="AAA"&&(q="AA"),B!=="small"&&B!=="large"&&(B="small"),{level:q,size:B}}Ge.exports?Ge.exports=T:!(Y=function(){return T}.call(Q,o,Q,Ge),Y!==void 0&&(Ge.exports=Y))})(Math)},bT9E:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return z});var Y=o("VTBJ");function z(ce,ee){var y=Object(Y.a)({},ce);return Array.isArray(ee)&&ee.forEach(function(A){delete y[A]}),y}},biw7:function(Ge,Q,o){"use strict";var Y=o("q1tI"),z=o.n(Y),ce=Y.createContext(null);Q.a=ce},dmUQ:function(Ge,Q,o){"use strict";var Y=o("Ff2n"),z=o("rePB"),ce=o("1OyB"),ee=o("vuIU"),y=o("Ji7U"),A=o("md7G"),oe=o("foSv"),re=o("q1tI"),e=o.n(re),T=o("TSYQ"),E=o.n(T),p=o("4IlW");function l(M,D){var P=Object.keys(M);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(M);D&&(w=w.filter(function(h){return Object.getOwnPropertyDescriptor(M,h).enumerable})),P.push.apply(P,w)}return P}function r(M){for(var D=1;D1?U-1:0),_e=1;_e1?s-1:0),t=1;t=0)return parseInt(u.slice(u.indexOf("e-")+2),10);var s=0;return u.indexOf(".")>=0&&(s=u.length-u.indexOf(".")-1),s},h.getInputDisplayValue=function(n){var u=n||h.state,s=u.focused,a=u.inputValue,t=u.value,R;s?R=a:R=h.toPrecisionAsStep(t),R==null&&(R="");var U=h.formatWrapper(R);return G(h.props.decimalSeparator)&&(U=U.toString().replace(".",h.props.decimalSeparator)),U},h.recordCursorPosition=function(){try{h.cursorStart=h.input.selectionStart,h.cursorEnd=h.input.selectionEnd,h.currentValue=h.input.value,h.cursorBefore=h.input.value.substring(0,h.cursorStart),h.cursorAfter=h.input.value.substring(h.cursorEnd)}catch(n){}},h.restoreByAfter=function(n){if(n===void 0)return!1;var u=h.input.value,s=u.lastIndexOf(n);if(s===-1)return!1;var a=h.cursorBefore.length;return h.lastKeyCode===p.a.DELETE&&h.cursorBefore.charAt(a-1)===n[0]?(h.fixCaret(a,a),!0):s+n.length===u.length?(h.fixCaret(s,s),!0):!1},h.partRestoreByAfter=function(n){return n===void 0?!1:Array.prototype.some.call(n,function(u,s){var a=n.substring(s);return h.restoreByAfter(a)})},h.isNotCompleteNumber=function(n){return isNaN(n)||n===""||n===null||n&&n.toString().indexOf(".")===n.toString().length-1},h.stop=function(){h.autoStepTimer&&clearTimeout(h.autoStepTimer)},h.down=function(n,u,s){h.pressingUpOrDown=!0,h.step("down",n,u,s)},h.up=function(n,u,s){h.pressingUpOrDown=!0,h.step("up",n,u,s)},h.saveInput=function(n){h.input=n};var k=w.value;k===void 0&&(k=w.defaultValue),h.state={focused:w.autoFocus};var b=h.getValidValue(h.toNumber(k));return h.state=r(r({},h.state),{},{inputValue:h.toPrecisionAsStep(b),value:b}),h}return Object(ee.a)(P,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(h){var k=this.props,b=k.value,n=k.onChange,u=k.max,s=k.min,a=this.state.focused;if(h){if(!N(h.value,b)||!N(h.max,u)||!N(h.min,s)){var t=a?b:this.getValidValue(b),R;this.pressingUpOrDown?R=t:this.inputting?R=this.rawInput:R=this.toPrecisionAsStep(t),this.setState({value:t,inputValue:R})}var U="value"in this.props?b:this.state.value;"max"in this.props&&h.max!==u&&typeof U=="number"&&U>u&&n&&n(u),"min"in this.props&&h.min!==s&&typeof U=="number"&&U1&&arguments[1]!==void 0?arguments[1]:this.props.min,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,n=parseFloat(h);return isNaN(n)?h:(nb&&(n=b),n)}},{key:"setValue",value:function(h,k){var b=this.props.precision,n=this.isNotCompleteNumber(parseFloat(h))?null:parseFloat(h),u=this.state.value,s=u===void 0?null:u,a=this.state.inputValue,t=a===void 0?null:a,R=typeof n=="number"?n.toFixed(b):"".concat(n),U=n!==s||R!=="".concat(t);return"value"in this.props?(t=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:t},k)):this.setState({value:n,inputValue:this.toPrecisionAsStep(h)},k),U&&this.props.onChange(n),n}},{key:"getMaxPrecision",value:function(h){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,b=this.props,n=b.precision,u=b.step;if(G(n))return n;var s=this.getPrecision(k),a=this.getPrecision(u),t=this.getPrecision(h);return h?Math.max(t,s+a):s+a}},{key:"getPrecisionFactor",value:function(h){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,b=this.getMaxPrecision(h,k);return Math.pow(10,b)}},{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(h){return this.props.formatter?this.props.formatter(h):h}},{key:"toPrecisionAsStep",value:function(h){if(this.isNotCompleteNumber(h)||h==="")return h;var k=Math.abs(this.getMaxPrecision(h));return isNaN(k)?h.toString():Number(h).toFixed(k)}},{key:"toNumber",value:function(h){var k=this.props.precision,b=this.state.focused,n=h&&h.length>16&&b;return this.isNotCompleteNumber(h)||n?h:G(k)?Math.round(h*Math.pow(10,k))/Math.pow(10,k):Number(h)}},{key:"upStep",value:function(h,k){var b=this.props.step,n=this.getPrecisionFactor(h,k),u=Math.abs(this.getMaxPrecision(h,k)),s=((n*h+n*b*k)/n).toFixed(u);return this.toNumber(s)}},{key:"downStep",value:function(h,k){var b=this.props.step,n=this.getPrecisionFactor(h,k),u=Math.abs(this.getMaxPrecision(h,k)),s=((n*h-n*b*k)/n).toFixed(u);return this.toNumber(s)}},{key:"step",value:function(h,k){var b=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3?arguments[3]:void 0;this.stop(),k&&(k.persist(),k.preventDefault());var s=this.props;if(s.disabled)return;var a=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(a))return;var t=this["".concat(h,"Step")](a,n),R=t>s.max||ts.max?t=s.max:t=ae),Se=(tt||tt===0)&&(isNaN(tt)||Number(tt)<=_e),ke=He||n||u,Le=Se||n||u,Be=E()("".concat(b,"-handler"),"".concat(b,"-handler-up"),Object(z.a)({},"".concat(b,"-handler-up-disabled"),ke)),Re=E()("".concat(b,"-handler"),"".concat(b,"-handler-down"),Object(z.a)({},"".concat(b,"-handler-down-disabled"),Le)),We=s?{onTouchStart:ke?g:this.up,onTouchEnd:this.stop}:{onMouseDown:ke?g:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Qe=s?{onTouchStart:Le?g:this.down,onTouchEnd:this.stop}:{onMouseDown:Le?g:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:de,style:ne,title:me,onMouseEnter:Oe,onMouseLeave:we,onMouseOver:ue,onMouseOut:Ee,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(b,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},We,{role:"button","aria-label":"Increase Value","aria-disabled":ke,className:Be}),t||e.a.createElement("span",{unselectable:"on",className:"".concat(b,"-handler-up-inner"),onClick:j})),e.a.createElement("span",Object.assign({unselectable:"on"},Qe,{role:"button","aria-label":"Decrease Value","aria-disabled":Le,className:Re}),R||e.a.createElement("span",{unselectable:"on",className:"".concat(b,"-handler-down-inner"),onClick:j}))),e.a.createElement("div",{className:"".concat(b,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":_e,"aria-valuemax":ae,"aria-valuenow":tt,required:C,type:le,placeholder:ye,onPaste:qe,onClick:q,onMouseUp:this.onMouseUp,className:"".concat(b,"-input"),tabIndex:B,autoComplete:a,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ne?this.onKeyDown:g,onKeyUp:Ne?this.onKeyUp:g,autoFocus:ge,maxLength:se,readOnly:u,disabled:n,max:ae,min:_e,step:V,name:Te,title:me,id:Ae,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Ke),pattern:Xe,inputMode:Fe,onInput:ut},Me))))}}]),P}(e.a.Component);J.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:$,min:-$,step:1,style:{},onChange:g,onKeyDown:g,onPressEnter:g,onFocus:g,onBlur:g,parser:v,required:!1,autoComplete:"off"};var S=J,X=Q.a=S},fjLI:function(Ge,Q,o){"use strict";o.d(Q,"f",function(){return l}),o.d(Q,"b",function(){return r}),o.d(Q,"a",function(){return i}),o.d(Q,"d",function(){return c}),o.d(Q,"e",function(){return g}),o.d(Q,"c",function(){return j});var Y=o("8HAY"),z=o("Vhoy"),ce=o("MI8n"),ee=o("JYp7"),y=o("pmY6"),A=o("24hK"),oe=o("nnTU"),re=o("T8No"),e=o("Cg/j"),T=o("t9D7"),E=function(v,m,W,$){var G=arguments.length,N=G<3?m:$===null?$=Object.getOwnPropertyDescriptor(m,W):$,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(v,m,W,$);else for(var S=v.length-1;S>=0;S--)(J=v[S])&&(N=(G<3?J(N):G>3?J(m,W,N):J(m,W))||N);return G>3&&N&&Object.defineProperty(m,W,N),N},p=function(v,m){return function(W,$){m(W,$,v)}};function l(v){return v.command!==void 0}class r{constructor(v){this.id=r._idPool++,this._debugName=v}}r._idPool=0,r.CommandPalette=new r("CommandPalette"),r.EditorContext=new r("EditorContext"),r.SimpleEditorContext=new r("SimpleEditorContext"),r.EditorContextCopy=new r("EditorContextCopy"),r.EditorContextPeek=new r("EditorContextPeek"),r.MenubarEditMenu=new r("MenubarEditMenu"),r.MenubarCopy=new r("MenubarCopy"),r.MenubarGoMenu=new r("MenubarGoMenu"),r.MenubarSelectionMenu=new r("MenubarSelectionMenu"),r.InlineCompletionsActions=new r("InlineCompletionsActions");const i=Object(e.c)("menuService"),c=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ce.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:v=>v===r.CommandPalette}}addCommand(v){return this.addCommands(ee.a.single(v))}addCommands(v){for(const m of v)this._commands.set(m.id,m);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let m=!1;for(const W of v)m=this._commands.delete(W.id)||m;m&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(v){return this._commands.get(v)}getCommands(){const v=new Map;return this._commands.forEach((m,W)=>v.set(W,m)),v}appendMenuItem(v,m){return this.appendMenuItems(ee.a.single({id:v,item:m}))}appendMenuItems(v){const m=new Set,W=new A.a;for(const{id:$,item:G}of v){let N=this._menuItems.get($);N||(N=new A.a,this._menuItems.set($,N)),W.push(N.push(G)),m.add($)}return this._onDidChangeMenu.fire(m),Object(y.i)(()=>{if(W.size>0){for(let $ of W)$();this._onDidChangeMenu.fire(m),W.clear()}})}getMenuItems(v){let m;return this._menuItems.has(v)?m=[...this._menuItems.get(v)]:m=[],v===r.CommandPalette&&this._appendImplicitItems(m),m}_appendImplicitItems(v){const m=new Set;for(const W of v)l(W)&&(m.add(W.command.id),W.alt&&m.add(W.alt.id));this._commands.forEach((W,$)=>{m.has($)||v.push({command:W})})}};class g extends Y.e{constructor(v,m,W,$){super(`submenuitem.${v.submenu.id}`,typeof v.title=="string"?v.title:v.title.value,[],"submenu");this.item=v,this._menuService=m,this._contextKeyService=W,this._options=$}get actions(){const v=[],m=this._menuService.createMenu(this.item.submenu,this._contextKeyService),W=m.getActions(this._options);m.dispose();for(const[,$]of W)$.length>0&&(v.push(...$),v.push(new Y.d));return v.length&&v.pop(),v}}let j=class v{constructor(m,W,$,G,N){var J,S;if(this._commandService=N,this.id=m.id,this.label=($==null?void 0:$.renderShortTitle)&&m.shortTitle?typeof m.shortTitle=="string"?m.shortTitle:m.shortTitle.value:typeof m.title=="string"?m.title:m.title.value,this.tooltip=(S=typeof m.tooltip=="string"?m.tooltip:(J=m.tooltip)===null||J===void 0?void 0:J.value)!==null&&S!==void 0?S:"",this.enabled=!m.precondition||G.contextMatchesRules(m.precondition),this.checked=void 0,m.toggled){const X=m.toggled.condition?m.toggled:{condition:m.toggled};this.checked=G.contextMatchesRules(X.condition),this.checked&&X.tooltip&&(this.tooltip=typeof X.tooltip=="string"?X.tooltip:X.tooltip.value),X.title&&(this.label=typeof X.title=="string"?X.title:X.title.value)}this.item=m,this.alt=W?new v(W,void 0,$,G,N):void 0,this._options=$,T.d.isThemeIcon(m.icon)&&(this.class=z.a.asClassName(m.icon))}dispose(){}run(...m){var W,$;let G=[];return((W=this._options)===null||W===void 0?void 0:W.arg)&&(G=[...G,this._options.arg]),(($=this._options)===null||$===void 0?void 0:$.shouldForwardArgs)&&(G=[...G,...m]),this._commandService.executeCommand(this.id,...G)}};j=E([p(3,re.b),p(4,oe.b)],j)},fyJ8:function(Ge,Q,o){"use strict";var Y=o("rePB"),z=o("VTBJ"),ce=o("Ff2n"),ee=o("U8pU"),y=o("q1tI"),A=o.n(y),oe=o("TSYQ"),re=o.n(oe),e=o("c+Xe"),T=o("sR1s");function E(c){return c&&Object(ee.a)(c)==="object"&&!Array.isArray(c)&&!y.isValidElement(c)}function p(c){return typeof c=="string"?!0:Object(e.c)(c)}function l(c,g){var j,v=c.prefixCls,m=c.className,W=c.record,$=c.index,G=c.dataIndex,N=c.render,J=c.children,S=c.component,X=S===void 0?"td":S,M=c.colSpan,D=c.rowSpan,P=c.fixLeft,w=c.fixRight,h=c.firstFixLeft,k=c.lastFixLeft,b=c.firstFixRight,n=c.lastFixRight,u=c.appendNode,s=c.additionalProps,a=s===void 0?{}:s,t=c.ellipsis,R=c.align,U=c.rowType,ae=c.isSticky,_e="".concat(v,"-cell"),ne,me;if(J)me=J;else{var Oe=Object(T.b)(W,G);if(me=Oe,N){var we=N(Oe,W,$);E(we)?(me=we.children,ne=we.props):me=we}}Object(ee.a)(me)==="object"&&!Array.isArray(me)&&!y.isValidElement(me)&&(me=null),t&&(k||b)&&(me=y.createElement("span",{className:"".concat(_e,"-content")},me));var ue=ne||{},Ee=ue.colSpan,C=ue.rowSpan,q=ue.style,B=ue.className,le=Object(ce.a)(ue,["colSpan","rowSpan","style","className"]),ye=Ee!==void 0?Ee:M,Ae=C!==void 0?C:D;if(ye===0||Ae===0)return null;var Fe={},Xe=typeof P=="number",V=typeof w=="number";Xe&&(Fe.position="sticky",Fe.left=P),V&&(Fe.position="sticky",Fe.right=w);var se={};R&&(se.textAlign=R);var ge,Te=t===!0?{showTitle:!0}:t;Te&&(Te.showTitle||U==="header")&&(typeof me=="string"||typeof me=="number"?ge=me.toString():y.isValidElement(me)&&typeof me.props.children=="string"&&(ge=me.props.children));var qe=Object(z.a)(Object(z.a)(Object(z.a)({title:ge},le),a),{},{colSpan:ye&&ye!==1?ye:null,rowSpan:Ae&&Ae!==1?Ae:null,className:re()(_e,m,(j={},Object(Y.a)(j,"".concat(_e,"-fix-left"),Xe),Object(Y.a)(j,"".concat(_e,"-fix-left-first"),h),Object(Y.a)(j,"".concat(_e,"-fix-left-last"),k),Object(Y.a)(j,"".concat(_e,"-fix-right"),V),Object(Y.a)(j,"".concat(_e,"-fix-right-first"),b),Object(Y.a)(j,"".concat(_e,"-fix-right-last"),n),Object(Y.a)(j,"".concat(_e,"-ellipsis"),t),Object(Y.a)(j,"".concat(_e,"-with-append"),u),Object(Y.a)(j,"".concat(_e,"-fix-sticky"),(Xe||V)&&ae),j),a.className,B),style:Object(z.a)(Object(z.a)(Object(z.a)(Object(z.a)({},a.style),se),Fe),q),ref:p(X)?g:null});return y.createElement(X,Object.assign({},qe),u,me)}var r=y.forwardRef(l);r.displayName="Cell";var i=y.memo(r,function(c,g){return g.shouldCellUpdate?!g.shouldCellUpdate(g.record,c.record):!1});Q.a=i},h78n:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return h});var Y=o("q1tI"),z=o.n(Y),ce=o("TSYQ"),ee=o.n(ce),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},A=function(n){var u=n.map(function(){return Object(Y.useRef)()}),s=Object(Y.useRef)();return Object(Y.useEffect)(function(){var a=Date.now(),t=!1;Object.keys(u).forEach(function(R){var U=u[R].current;if(!U)return;t=!0;var ae=U.style;ae.transitionDuration=".3s, .3s, .3s, .06s",s.current&&a-s.current<100&&(ae.transitionDuration="0s, 0s")}),t&&(s.current=Date.now())}),[u]};function oe(){return oe=Object.assign||function(b){for(var n=1;nb.length)&&(n=b.length);for(var u=0,s=new Array(n);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(b,s))continue;u[s]=b[s]}}return u}function i(b,n){if(b==null)return{};var u={},s=Object.keys(b),a,t;for(t=0;t=0)continue;u[a]=b[a]}return u}var c=function(n){var u=n.className,s=n.percent,a=n.prefixCls,t=n.strokeColor,R=n.strokeLinecap,U=n.strokeWidth,ae=n.style,_e=n.trailColor,ne=n.trailWidth,me=n.transition,Oe=r(n,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Oe.gapPosition;var we=Array.isArray(s)?s:[s],ue=Array.isArray(t)?t:[t],Ee=A(we),C=re(Ee,1),q=C[0],B=U/2,le=100-U/2,ye="M ".concat(R==="round"?B:0,",").concat(B,` L `).concat(R==="round"?le:100,",").concat(B),Ae="0 0 100 ".concat(U),Fe=0;return z.a.createElement("svg",oe({className:ee()("".concat(a,"-line"),u),viewBox:Ae,preserveAspectRatio:"none",style:ae},Oe),z.a.createElement("path",{className:"".concat(a,"-line-trail"),d:ye,strokeLinecap:R,stroke:_e,strokeWidth:ne||U,fillOpacity:"0"}),we.map(function(Xe,V){var se={strokeDasharray:"".concat(Xe,"px, 100px"),strokeDashoffset:"-".concat(Fe,"px"),transition:me||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ge=ue[V]||ue[ue.length-1];return Fe+=Xe,z.a.createElement("path",{key:V,className:"".concat(a,"-line-path"),d:ye,strokeLinecap:R,stroke:ge,strokeWidth:U,fillOpacity:"0",ref:q[V],style:se})}))};c.defaultProps=y;var g=c;function j(){return j=Object.assign||function(b){for(var n=1;nb.length)&&(n=b.length);for(var u=0,s=new Array(n);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(b,s))continue;u[s]=b[s]}}return u}function S(b,n){if(b==null)return{};var u={},s=Object.keys(b),a,t;for(t=0;t=0)continue;u[a]=b[a]}return u}var X=0;function M(b){return+b.replace("%","")}function D(b){return Array.isArray(b)?b:[b]}function P(b,n,u,s){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,t=arguments.length>5?arguments[5]:void 0,R=50-s/2,U=0,ae=-R,_e=0,ne=-2*R;switch(t){case"left":U=-R,ae=0,_e=2*R,ne=0;break;case"right":U=R,ae=0,_e=-2*R,ne=0;break;case"bottom":ae=R,ne=2*R;break;default:}var me="M 50,50 m ".concat(U,",").concat(ae,` a `).concat(R,",").concat(R," 0 1 1 ").concat(_e,",").concat(-ne,` - a `).concat(R,",").concat(R," 0 1 1 ").concat(-_e,",").concat(ne),Oe=Math.PI*2*R,we={stroke:u,strokeDasharray:"".concat(n/100*(Oe-a),"px ").concat(Oe,"px"),strokeDashoffset:"-".concat(a/2+b/100*(Oe-a),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:me,pathStyle:we}}var w=function(n){var u=n.prefixCls,s=n.strokeWidth,a=n.trailWidth,t=n.gapDegree,R=n.gapPosition,U=n.trailColor,ae=n.strokeLinecap,_e=n.style,ne=n.className,me=n.strokeColor,Oe=n.percent,we=J(n,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(Y.useMemo)(function(){return X+=1,X},[]),Ee=P(0,100,U,s,t,R),C=Ee.pathString,q=Ee.pathStyle,B=D(Oe),le=D(me),ye=le.find(function(se){return Object.prototype.toString.call(se)==="[object Object]"}),Ae=A(B),Fe=v(Ae,1),Xe=Fe[0],V=function(){var ge=0;return B.map(function(Te,qe){var ut=le[qe]||le[le.length-1],At=Object.prototype.toString.call(ut)==="[object Object]"?"url(#".concat(u,"-gradient-").concat(ue,")"):"",Et=P(ge,Te,ut,s,t,R);return ge+=Te,z.a.createElement("path",{key:qe,className:"".concat(u,"-circle-path"),d:Et.pathString,stroke:At,strokeLinecap:ae,strokeWidth:s,opacity:Te===0?0:1,fillOpacity:"0",style:Et.pathStyle,ref:Xe[qe]})})};return z.a.createElement("svg",j({className:ee()("".concat(u,"-circle"),ne),viewBox:"0 0 100 100",style:_e},we),ye&&z.a.createElement("defs",null,z.a.createElement("linearGradient",{id:"".concat(u,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ye).sort(function(se,ge){return M(se)-M(ge)}).map(function(se,ge){return z.a.createElement("stop",{key:ge,offset:se,stopColor:ye[se]})}))),z.a.createElement("path",{className:"".concat(u,"-circle-trail"),d:C,stroke:U,strokeLinecap:ae,strokeWidth:a||s,fillOpacity:"0",style:q}),V().reverse())};w.defaultProps=y;var f=w,k={Line:g,Circle:f}},hW8S:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return ee}),o.d(Q,"c",function(){return y}),o.d(Q,"b",function(){return A});var Y=o("VTBJ"),z=o("Ff2n"),ce=o("Kwbf"),ee="RC_TABLE_INTERNAL_COL_DEFINE";function y(oe){var re=oe.expandable,e=Object(z.a)(oe,["expandable"]);return"expandable"in oe?Object(Y.a)(Object(Y.a)({},e),re):e}function A(oe){return Object.keys(oe).reduce(function(re,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(re[e]=oe[e]),re},{})}},ic2d:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return ee});var Y=o("FWmy"),z=o("746U");class ce{constructor(){this.data=new Map}add(y,A){Y.a(z.l(y)),Y.a(z.k(A)),Y.a(!this.data.has(y),"There is already an extension with this id"),this.data.set(y,A)}as(y){return this.data.get(y)||null}}const ee=new ce},k3GJ:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return ca});var Y=o("rePB"),z=o("ODXe"),ce=o("Ff2n"),ee=o("VTBJ"),y=o("q1tI"),A=o("TSYQ"),oe=o.n(A),re=o("Zm9Q"),e=o("6cGi"),T=o("KQm4"),E=o("xEkU"),p=o.n(E),l=o("t23M");function r(K){var _=Object(y.useRef)(),L=Object(y.useRef)(!1);function O(){for(var d=arguments.length,x=new Array(d),h=0;hie&&(Pe=ie-je),Object(y.useMemo)(function(){if(!x.length)return[0,0];for(var De=x.length,lt=De,xt=0;xtte+Pe){lt=xt-1;break}}for(var wt=0,dt=De-1;dt>=0;dt-=1){var bt=K.get(x[dt].key)||W;if(bt[H]1&&arguments[1]!==void 0?arguments[1]:!1,O=_&&typeof _.getBoundingClientRect=="function"&&_.getBoundingClientRect().width;if(O){if(L){var d=getComputedStyle(_),x=d.marginLeft,h=d.marginRight;O+=+x.replace("px","")+ +h.replace("px","")}O=+O.toFixed(6)}return O||0},ge=function(_,L,O){_&&Object(b.a)(_.style)==="object"&&(_.style[L]=O)},Te=function(){return B.any},qe=o("bdgK"),ut=o("i8i4"),At=o.n(ut),Et=o("wgJM"),tt=o("l4aY"),Rt=o("m+aA"),de=o("c+Xe"),Me=o("zT1h"),Ne=o("QC+M");function Ke(K,_,L){return L?K[0]===_[0]:K[0]===_[0]&&K[1]===_[1]}function He(K,_,L){var O=K[_]||{};return Object(ee.a)(Object(ee.a)({},O),L)}function Se(K,_,L,O){for(var d=L.points,x=Object.keys(K),h=0;h1&&arguments[1]!==void 0?arguments[1]:2;_();var x=Object(Et.a)(function(){d<=1?O({isCanceled:function(){return x!==K.current}}):L(O,d-1)});K.current=x}return y.useEffect(function(){return function(){_()}},[]),[L,_]},Lt=[Ft,ze,ct,it],on=!1,bn=!0;function hn(K){return K===ct||K===it}var vn=function(K,_){var L=y.useState(ln),O=Object(z.a)(L,2),d=O[0],x=O[1],h=et(),I=Object(z.a)(h,2),F=I[0],H=I[1];function te(){x(Ft)}return Ye(function(){if(d!==ln&&d!==it){var ie=Lt.indexOf(d),ve=Lt[ie+1],je=_(d);je===on?x(ve):F(function(Pe){function De(){if(Pe.isCanceled())return;x(ve)}je===!0?De():Promise.resolve(je).then(De)})}},[K,d]),y.useEffect(function(){return function(){H()}},[]),[te,d]},Jt=function(K){var _=Object(y.useRef)(),L=Object(y.useRef)(K);L.current=K;var O=y.useCallback(function(h){L.current(h)},[]);function d(h){h&&(h.removeEventListener(nn,O),h.removeEventListener(_t,O))}function x(h){_.current&&_.current!==h&&d(_.current),h&&h!==_.current&&(h.addEventListener(nn,O),h.addEventListener(_t,O),_.current=h)}return y.useEffect(function(){return function(){d(_.current)}},[]),[x,d]};function an(K,_,L,O){var d=O.motionEnter,x=d===void 0?!0:d,h=O.motionAppear,I=h===void 0?!0:h,F=O.motionLeave,H=F===void 0?!0:F,te=O.motionDeadline,ie=O.motionLeaveImmediately,ve=O.onAppearPrepare,je=O.onEnterPrepare,Pe=O.onLeavePrepare,De=O.onAppearStart,lt=O.onEnterStart,xt=O.onLeaveStart,Ze=O.onAppearActive,wt=O.onEnterActive,dt=O.onLeaveActive,bt=O.onAppearEnd,St=O.onEnterEnd,It=O.onLeaveEnd,Mt=O.onVisibleChanged,pn=zt(),Ct=Object(z.a)(pn,2),pt=Ct[0],ft=Ct[1],Ht=zt(Ut),Kt=Object(z.a)(Ht,2),rt=Kt[0],Xt=Kt[1],cn=zt(null),Yt=Object(z.a)(cn,2),tn=Yt[0],mn=Yt[1],Un=Object(y.useRef)(!1),Gn=Object(y.useRef)(null),gn=Object(y.useRef)(!1),Vn=Object(y.useRef)(null);function ra(){var dn=L();return dn||Vn.current}var Yn=Object(y.useRef)(!1);function Jn(dn){var qt=ra();if(dn&&!dn.deadline&&dn.target!==qt)return;var Fn;rt===Qt&&Yn.current?Fn=bt==null?void 0:bt(qt,dn):rt===Vt&&Yn.current?Fn=St==null?void 0:St(qt,dn):rt===jt&&Yn.current&&(Fn=It==null?void 0:It(qt,dn)),Fn!==!1&&!gn.current&&(Xt(Ut),mn(null))}var On=Jt(Jn),Wn=Object(z.a)(On,1),kn=Wn[0],Pn=y.useMemo(function(){var dn,qt,Fn;switch(rt){case"appear":return dn={},Object(Y.a)(dn,Ft,ve),Object(Y.a)(dn,ze,De),Object(Y.a)(dn,ct,Ze),dn;case"enter":return qt={},Object(Y.a)(qt,Ft,je),Object(Y.a)(qt,ze,lt),Object(Y.a)(qt,ct,wt),qt;case"leave":return Fn={},Object(Y.a)(Fn,Ft,Pe),Object(Y.a)(Fn,ze,xt),Object(Y.a)(Fn,ct,dt),Fn;default:return{}}},[rt]),ga=vn(rt,function(dn){if(dn===Ft){var qt=Pn[Ft];return qt?qt(ra()):on}if(sn in Pn){var Fn;mn(((Fn=Pn[sn])===null||Fn===void 0?void 0:Fn.call(Pn,ra(),null))||null)}return sn===ct&&(kn(ra()),te>0&&(clearTimeout(Gn.current),Gn.current=setTimeout(function(){Jn({deadline:!0})},te))),bn}),ba=Object(z.a)(ga,2),ja=ba[0],sn=ba[1],da=hn(sn);Yn.current=da,Ye(function(){ft(_);var dn=Un.current;if(Un.current=!0,!K)return;var qt;!dn&&_&&I&&(qt=Qt),dn&&_&&x&&(qt=Vt),(dn&&!_&&H||!dn&&ie&&!_&&H)&&(qt=jt),qt&&(Xt(qt),ja())},[_]),Object(y.useEffect)(function(){(rt===Qt&&!I||rt===Vt&&!x||rt===jt&&!H)&&Xt(Ut)},[I,x,H]),Object(y.useEffect)(function(){return function(){clearTimeout(Gn.current),gn.current=!0}},[]),Object(y.useEffect)(function(){pt!==void 0&&rt===Ut&&(Mt==null||Mt(pt))},[pt,rt]);var Pa=tn;return Pn[Ft]&&sn===ze&&(Pa=Object(ee.a)({transition:"none"},Pa)),[rt,sn,Pa,pt!=null?pt:_]}var En=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(){return Object(N.a)(this,L),_.apply(this,arguments)}return Object(J.a)(L,[{key:"render",value:function(){return this.props.children}}]),L}(y.Component),Zt=En;function Sn(K){var _=K;Object(b.a)(K)==="object"&&(_=K.transitionSupport);function L(d){return!!(d.motionName&&_)}var O=y.forwardRef(function(d,x){var h=d.visible,I=h===void 0?!0:h,F=d.removeOnLeave,H=F===void 0?!0:F,te=d.forceRender,ie=d.children,ve=d.motionName,je=d.leavedClassName,Pe=d.eventProps,De=L(d),lt=Object(y.useRef)(),xt=Object(y.useRef)();function Ze(){try{return Object(Rt.a)(lt.current||xt.current)}catch(Xt){return null}}var wt=an(De,I,Ze,d),dt=Object(z.a)(wt,4),bt=dt[0],St=dt[1],It=dt[2],Mt=dt[3],pn=y.useRef(Mt);Mt&&(pn.current=!0);var Ct=Object(y.useRef)(x);Ct.current=x;var pt=y.useCallback(function(Xt){lt.current=Xt,Object(de.b)(Ct.current,Xt)},[]),ft,Ht=Object(ee.a)(Object(ee.a)({},Pe),{},{visible:I});if(!ie)ft=null;else if(bt===Ut||!L(d))Mt?ft=ie(Object(ee.a)({},Ht),pt):!H&&pn.current?ft=ie(Object(ee.a)(Object(ee.a)({},Ht),{},{className:je}),pt):te?ft=ie(Object(ee.a)(Object(ee.a)({},Ht),{},{style:{display:"none"}}),pt):ft=null;else{var Kt,rt;St===Ft?rt="prepare":hn(St)?rt="active":St===ze&&(rt="start"),ft=ie(Object(ee.a)(Object(ee.a)({},Ht),{},{className:oe()(Gt(ve,bt),(Kt={},Object(Y.a)(Kt,Gt(ve,"".concat(bt,"-").concat(rt)),rt),Object(Y.a)(Kt,ve,typeof ve=="string"),Kt)),style:It}),pt)}return y.createElement(Zt,{ref:xt},ft)});return O.displayName="CSSMotion",O}var yn=Sn(Nt),wn="add",xn="keep",An="remove",Rn="removed";function Nn(K){var _;return K&&Object(b.a)(K)==="object"&&"key"in K?_=K:_={key:K},Object(ee.a)(Object(ee.a)({},_),{},{key:String(_.key)})}function Dn(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return K.map(Nn)}function vt(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=[],O=0,d=_.length,x=Dn(K),h=Dn(_);x.forEach(function(H){for(var te=!1,ie=O;ie1});return F.forEach(function(H){L=L.filter(function(te){var ie=te.key,ve=te.status;return ie!==H||ve!==An}),L.forEach(function(te){te.key===H&&(te.status=xn)})}),L}var pe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Je(K){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yn,L=function(O){Object(X.a)(x,O);var d=Object(M.a)(x);function x(){var h;return Object(N.a)(this,x),h=d.apply(this,arguments),h.state={keyEntities:[]},h.removeKey=function(I){h.setState(function(F){var H=F.keyEntities;return{keyEntities:H.map(function(te){return te.key!==I?te:Object(ee.a)(Object(ee.a)({},te),{},{status:Rn})})}})},h}return Object(J.a)(x,[{key:"render",value:function(){var I=this,F=this.state.keyEntities,H=this.props,te=H.component,ie=H.children,ve=H.onVisibleChanged,je=Object(ce.a)(H,["component","children","onVisibleChanged"]),Pe=te||y.Fragment,De={};return pe.forEach(function(lt){De[lt]=je[lt],delete je[lt]}),delete je.keys,y.createElement(Pe,je,F.map(function(lt){var xt=lt.status,Ze=Object(ce.a)(lt,["status"]),wt=xt===wn||xt===xn;return y.createElement(_,Object(G.a)({},De,{key:Ze.key,visible:wt,eventProps:Ze,onVisibleChanged:function(bt){ve==null||ve(bt,{key:Ze.key}),bt||I.removeKey(Ze.key)}}),ie)}))}}],[{key:"getDerivedStateFromProps",value:function(I,F){var H=I.keys,te=F.keyEntities,ie=Dn(H),ve=vt(te,ie);return{keyEntities:ve.filter(function(je){var Pe=te.find(function(De){var lt=De.key;return je.key===lt});return!(Pe&&Pe.status===Rn&&je.status===An)})}}}]),x}(y.Component);return L.defaultProps={component:"div"},L}var ot=Je(Nt),st=yn;function Pt(K){var _=K.prefixCls,L=K.motion,O=K.animation,d=K.transitionName;return L||(O?{motionName:"".concat(_,"-").concat(O)}:d?{motionName:d}:null)}function Ot(K){var _=K.prefixCls,L=K.visible,O=K.zIndex,d=K.mask,x=K.maskMotion,h=K.maskAnimation,I=K.maskTransitionName;if(!d)return null;var F={};return(x||I||h)&&(F=Object(ee.a)({motionAppear:!0},Pt({motion:x,prefixCls:_,transitionName:I,animation:h}))),y.createElement(st,Object(G.a)({},F,{visible:L,removeOnLeave:!0}),function(H){var te=H.className;return y.createElement("div",{style:{zIndex:O},className:oe()("".concat(_,"-mask"),te)})})}var gt=o("9mu1"),Z=o("o0o1"),xe=o.n(Z),he=o("HaE+"),be=["measure","align",null,"motion"],Ce=function(K,_){var L=Object(y.useState)(null),O=Object(z.a)(L,2),d=O[0],x=O[1],h=Object(y.useRef)(),I=Object(y.useRef)(!1);function F(ie){I.current||x(ie)}function H(){Et.a.cancel(h.current)}function te(ie){H(),h.current=Object(Et.a)(function(){F(function(ve){switch(d){case"align":return"motion";case"motion":return"stable";default:}return ve}),ie==null||ie()})}return Object(y.useEffect)(function(){F("measure")},[K]),Object(y.useEffect)(function(){switch(d){case"measure":_();break;default:}d&&(h.current=Object(Et.a)(Object(he.a)(xe.a.mark(function ie(){var ve,je;return xe.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:ve=be.indexOf(d),je=be[ve+1],je&&ve!==-1&&F(je);case 3:case"end":return De.stop()}},ie)}))))},[d]),Object(y.useEffect)(function(){return function(){I.current=!0,H()}},[]),[d,te]},Ue=function(K){var _=y.useState({width:0,height:0}),L=Object(z.a)(_,2),O=L[0],d=L[1];function x(I){d({width:I.offsetWidth,height:I.offsetHeight})}var h=y.useMemo(function(){var I={};if(K){var F=O.width,H=O.height;K.indexOf("height")!==-1&&H?I.height=H:K.indexOf("minHeight")!==-1&&H&&(I.minHeight=H),K.indexOf("width")!==-1&&F?I.width=F:K.indexOf("minWidth")!==-1&&F&&(I.minWidth=F)}return I},[K,O]);return[h,x]},fe=y.forwardRef(function(K,_){var L=K.visible,O=K.prefixCls,d=K.className,x=K.style,h=K.children,I=K.zIndex,F=K.stretch,H=K.destroyPopupOnHide,te=K.forceRender,ie=K.align,ve=K.point,je=K.getRootDomNode,Pe=K.getClassNameFromAlign,De=K.onAlign,lt=K.onMouseEnter,xt=K.onMouseLeave,Ze=K.onMouseDown,wt=K.onTouchStart,dt=Object(y.useRef)(),bt=Object(y.useRef)(),St=Object(y.useState)(),It=Object(z.a)(St,2),Mt=It[0],pn=It[1],Ct=Ue(F),pt=Object(z.a)(Ct,2),ft=pt[0],Ht=pt[1];function Kt(){F&&Ht(je())}var rt=Ce(L,Kt),Xt=Object(z.a)(rt,2),cn=Xt[0],Yt=Xt[1],tn=Object(y.useRef)();function mn(){return ve||je}function Un(){var On;(On=dt.current)===null||On===void 0||On.forceAlign()}function Gn(On,Wn){var kn=Pe(Wn);Mt!==kn&&pn(kn),cn==="align"&&(Mt!==kn?Promise.resolve().then(function(){Un()}):Yt(function(){var Pn;(Pn=tn.current)===null||Pn===void 0||Pn.call(tn)}),De==null||De(On,Wn))}var gn=Object(ee.a)({},Pt(K));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(On){var Wn=gn[On];gn[On]=function(kn,Pn){return Yt(),Wn==null?void 0:Wn(kn,Pn)}});function Vn(){return new Promise(function(On){tn.current=On})}y.useEffect(function(){!gn.motionName&&cn==="motion"&&Yt()},[gn.motionName,cn]),y.useImperativeHandle(_,function(){return{forceAlign:Un,getElement:function(){return bt.current}}});var ra=Object(ee.a)(Object(ee.a)({},ft),{},{zIndex:I,opacity:cn==="motion"||cn==="stable"||!L?void 0:0,pointerEvents:cn==="stable"?void 0:"none"},x),Yn=!0;(ie==null?void 0:ie.points)&&(cn==="align"||cn==="stable")&&(Yn=!1);var Jn=h;return y.Children.count(h)>1&&(Jn=y.createElement("div",{className:"".concat(O,"-content")},h)),y.createElement(st,Object(G.a)({visible:L,ref:bt,leavedClassName:"".concat(O,"-hidden")},gn,{onAppearPrepare:Vn,onEnterPrepare:Vn,removeOnLeave:H,forceRender:te}),function(On,Wn){var kn=On.className,Pn=On.style,ga=oe()(O,d,Mt,kn);return y.createElement(gt.a,{target:mn(),key:"popup",ref:dt,monitorWindowResize:!0,disabled:Yn,align:ie,onAlign:Gn},y.createElement("div",{ref:Wn,className:ga,onMouseEnter:lt,onMouseLeave:xt,onMouseDownCapture:Ze,onTouchStartCapture:wt,style:Object(ee.a)(Object(ee.a)({},Pn),ra)},Jn))})});fe.displayName="PopupInner";var Ie=fe,nt=y.forwardRef(function(K,_){var L=K.prefixCls,O=K.visible,d=K.zIndex,x=K.children,h=K.mobile;h=h===void 0?{}:h;var I=h.popupClassName,F=h.popupStyle,H=h.popupMotion,te=H===void 0?{}:H,ie=h.popupRender,ve=y.useRef();y.useImperativeHandle(_,function(){return{forceAlign:function(){},getElement:function(){return ve.current}}});var je=Object(ee.a)({zIndex:d},F),Pe=x;return y.Children.count(x)>1&&(Pe=y.createElement("div",{className:"".concat(L,"-content")},x)),ie&&(Pe=ie(Pe)),y.createElement(st,Object(G.a)({visible:O,ref:ve,removeOnLeave:!0},te),function(De,lt){var xt=De.className,Ze=De.style,wt=oe()(L,I,xt);return y.createElement("div",{ref:lt,className:wt,style:Object(ee.a)(Object(ee.a)({},Ze),je)},Pe)})});nt.displayName="MobilePopupInner";var Tn=nt,fn=["visible","mobile"],Ln=y.forwardRef(function(K,_){var L=K.visible,O=K.mobile,d=Object(ce.a)(K,fn),x=Object(y.useState)(L),h=Object(z.a)(x,2),I=h[0],F=h[1],H=Object(y.useState)(!1),te=Object(z.a)(H,2),ie=te[0],ve=te[1],je=Object(ee.a)(Object(ee.a)({},d),{},{visible:I});Object(y.useEffect)(function(){F(L),L&&O&&ve(ke())},[L,O]);var Pe=ie?y.createElement(Tn,Object(G.a)({},je,{mobile:O,ref:_})):y.createElement(Ie,Object(G.a)({},je,{ref:_}));return y.createElement("div",null,y.createElement(Ot,je),Pe)});Ln.displayName="Popup";var $t=Ln,mt=y.createContext(null),Dt=mt;function _n(){}function Zn(){return""}function Ma(K){return K?K.ownerDocument:window.document}var $n=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Da(K){var _=function(L){Object(X.a)(d,L);var O=Object(M.a)(d);function d(x){var h;Object(N.a)(this,d),h=O.call(this,x),h.popupRef=y.createRef(),h.triggerRef=y.createRef(),h.attachId=void 0,h.clickOutsideHandler=void 0,h.touchOutsideHandler=void 0,h.contextMenuOutsideHandler1=void 0,h.contextMenuOutsideHandler2=void 0,h.mouseDownTimeout=void 0,h.focusTime=void 0,h.preClickTime=void 0,h.preTouchTime=void 0,h.delayTimer=void 0,h.hasPopupMouseDown=void 0,h.onMouseEnter=function(F){var H=h.props.mouseEnterDelay;h.fireEvents("onMouseEnter",F),h.delaySetPopupVisible(!0,H,H?null:F)},h.onMouseMove=function(F){h.fireEvents("onMouseMove",F),h.setPoint(F)},h.onMouseLeave=function(F){h.fireEvents("onMouseLeave",F),h.delaySetPopupVisible(!1,h.props.mouseLeaveDelay)},h.onPopupMouseEnter=function(){h.clearDelayTimer()},h.onPopupMouseLeave=function(F){var H;if(F.relatedTarget&&!F.relatedTarget.setTimeout&&Object(tt.a)((H=h.popupRef.current)===null||H===void 0?void 0:H.getElement(),F.relatedTarget))return;h.delaySetPopupVisible(!1,h.props.mouseLeaveDelay)},h.onFocus=function(F){h.fireEvents("onFocus",F),h.clearDelayTimer(),h.isFocusToShow()&&(h.focusTime=Date.now(),h.delaySetPopupVisible(!0,h.props.focusDelay))},h.onMouseDown=function(F){h.fireEvents("onMouseDown",F),h.preClickTime=Date.now()},h.onTouchStart=function(F){h.fireEvents("onTouchStart",F),h.preTouchTime=Date.now()},h.onBlur=function(F){h.fireEvents("onBlur",F),h.clearDelayTimer(),h.isBlurToHide()&&h.delaySetPopupVisible(!1,h.props.blurDelay)},h.onContextMenu=function(F){F.preventDefault(),h.fireEvents("onContextMenu",F),h.setPopupVisible(!0,F)},h.onContextMenuClose=function(){h.isContextMenuToShow()&&h.close()},h.onClick=function(F){if(h.fireEvents("onClick",F),h.focusTime){var H;if(h.preClickTime&&h.preTouchTime?H=Math.min(h.preClickTime,h.preTouchTime):h.preClickTime?H=h.preClickTime:h.preTouchTime&&(H=h.preTouchTime),Math.abs(H-h.focusTime)<20)return;h.focusTime=0}h.preClickTime=0,h.preTouchTime=0,h.isClickToShow()&&(h.isClickToHide()||h.isBlurToHide())&&F&&F.preventDefault&&F.preventDefault();var te=!h.state.popupVisible;(h.isClickToHide()&&!te||te&&h.isClickToShow())&&h.setPopupVisible(!h.state.popupVisible,F)},h.onPopupMouseDown=function(){if(h.hasPopupMouseDown=!0,clearTimeout(h.mouseDownTimeout),h.mouseDownTimeout=window.setTimeout(function(){h.hasPopupMouseDown=!1},0),h.context){var F;(F=h.context).onPopupMouseDown.apply(F,arguments)}},h.onDocumentClick=function(F){if(h.props.mask&&!h.props.maskClosable)return;var H=F.target,te=h.getRootDomNode(),ie=h.getPopupDomNode();(!Object(tt.a)(te,H)||h.isContextMenuOnly())&&!Object(tt.a)(ie,H)&&!h.hasPopupMouseDown&&h.close()},h.getRootDomNode=function(){var F=h.props.getTriggerDOMNode;if(F)return F(h.triggerRef.current);try{var H=Object(Rt.a)(h.triggerRef.current);if(H)return H}catch(te){}return At.a.findDOMNode(Object(S.a)(h))},h.getPopupClassNameFromAlign=function(F){var H=[],te=h.props,ie=te.popupPlacement,ve=te.builtinPlacements,je=te.prefixCls,Pe=te.alignPoint,De=te.getPopupClassNameFromAlign;return ie&&ve&&H.push(Se(ve,je,F,Pe)),De&&H.push(De(F)),H.join(" ")},h.getComponent=function(){var F=h.props,H=F.prefixCls,te=F.destroyPopupOnHide,ie=F.popupClassName,ve=F.onPopupAlign,je=F.popupMotion,Pe=F.popupAnimation,De=F.popupTransitionName,lt=F.popupStyle,xt=F.mask,Ze=F.maskAnimation,wt=F.maskTransitionName,dt=F.maskMotion,bt=F.zIndex,St=F.popup,It=F.stretch,Mt=F.alignPoint,pn=F.mobile,Ct=F.forceRender,pt=h.state,ft=pt.popupVisible,Ht=pt.point,Kt=h.getPopupAlign(),rt={};return h.isMouseEnterToShow()&&(rt.onMouseEnter=h.onPopupMouseEnter),h.isMouseLeaveToHide()&&(rt.onMouseLeave=h.onPopupMouseLeave),rt.onMouseDown=h.onPopupMouseDown,rt.onTouchStart=h.onPopupMouseDown,y.createElement($t,Object(G.a)({prefixCls:H,destroyPopupOnHide:te,visible:ft,point:Mt&&Ht,className:ie,align:Kt,onAlign:ve,animation:Pe,getClassNameFromAlign:h.getPopupClassNameFromAlign},rt,{stretch:It,getRootDomNode:h.getRootDomNode,style:lt,mask:xt,zIndex:bt,transitionName:De,maskAnimation:Ze,maskTransitionName:wt,maskMotion:dt,ref:h.popupRef,motion:je,mobile:pn,forceRender:Ct}),typeof St=="function"?St():St)},h.attachParent=function(F){Et.a.cancel(h.attachId);var H=h.props,te=H.getPopupContainer,ie=H.getDocument,ve=h.getRootDomNode(),je;te?(ve||te.length===0)&&(je=te(ve)):je=ie(h.getRootDomNode()).body,je?je.appendChild(F):h.attachId=Object(Et.a)(function(){h.attachParent(F)})},h.getContainer=function(){var F=h.props.getDocument,H=F(h.getRootDomNode()).createElement("div");return H.style.position="absolute",H.style.top="0",H.style.left="0",H.style.width="100%",h.attachParent(H),H},h.setPoint=function(F){var H=h.props.alignPoint;if(!H||!F)return;h.setState({point:{pageX:F.pageX,pageY:F.pageY}})},h.handlePortalUpdate=function(){h.state.prevPopupVisible!==h.state.popupVisible&&h.props.afterPopupVisibleChange(h.state.popupVisible)},h.triggerContextValue={onPopupMouseDown:h.onPopupMouseDown};var I;return"popupVisible"in x?I=!!x.popupVisible:I=!!x.defaultPopupVisible,h.state={prevPopupVisible:I,popupVisible:I},$n.forEach(function(F){h["fire".concat(F)]=function(H){h.fireEvents(F,H)}}),h}return Object(J.a)(d,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var h=this.props,I=this.state;if(I.popupVisible){var F;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(F=h.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Me.a)(F,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(F=F||h.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Me.a)(F,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(F=F||h.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Me.a)(F,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Me.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Et.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var h;return((h=this.popupRef.current)===null||h===void 0?void 0:h.getElement())||null}},{key:"getPopupAlign",value:function(){var h=this.props,I=h.popupPlacement,F=h.popupAlign,H=h.builtinPlacements;return I&&H?He(H,I,F):F}},{key:"setPopupVisible",value:function(h,I){var F=this.props.alignPoint,H=this.state.popupVisible;this.clearDelayTimer(),H!==h&&("popupVisible"in this.props||this.setState({popupVisible:h,prevPopupVisible:H}),this.props.onPopupVisibleChange(h)),F&&I&&h&&this.setPoint(I)}},{key:"delaySetPopupVisible",value:function(h,I,F){var H=this,te=I*1e3;if(this.clearDelayTimer(),te){var ie=F?{pageX:F.pageX,pageY:F.pageY}:null;this.delayTimer=window.setTimeout(function(){H.setPopupVisible(h,ie),H.clearDelayTimer()},te)}else this.setPopupVisible(h,F)}},{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(h){var I=this.props.children.props,F=this.props;return I[h]&&F[h]?this["fire".concat(h)]:I[h]||F[h]}},{key:"isClickToShow",value:function(){var h=this.props,I=h.action,F=h.showAction;return I.indexOf("click")!==-1||F.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var h=this.props.action;return h==="contextMenu"||h.length===1&&h[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var h=this.props,I=h.action,F=h.showAction;return I.indexOf("contextMenu")!==-1||F.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var h=this.props,I=h.action,F=h.hideAction;return I.indexOf("click")!==-1||F.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var h=this.props,I=h.action,F=h.showAction;return I.indexOf("hover")!==-1||F.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var h=this.props,I=h.action,F=h.hideAction;return I.indexOf("hover")!==-1||F.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var h=this.props,I=h.action,F=h.showAction;return I.indexOf("focus")!==-1||F.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var h=this.props,I=h.action,F=h.hideAction;return I.indexOf("focus")!==-1||F.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var h;(h=this.popupRef.current)===null||h===void 0||h.forceAlign()}}},{key:"fireEvents",value:function(h,I){var F=this.props.children.props[h];F&&F(I);var H=this.props[h];H&&H(I)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var h=this.state.popupVisible,I=this.props,F=I.children,H=I.forceRender,te=I.alignPoint,ie=I.className,ve=I.autoDestroy,je=y.Children.only(F),Pe={key:"trigger"};this.isContextMenuToShow()?Pe.onContextMenu=this.onContextMenu:Pe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Pe.onClick=this.onClick,Pe.onMouseDown=this.onMouseDown,Pe.onTouchStart=this.onTouchStart):(Pe.onClick=this.createTwoChains("onClick"),Pe.onMouseDown=this.createTwoChains("onMouseDown"),Pe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Pe.onMouseEnter=this.onMouseEnter,te&&(Pe.onMouseMove=this.onMouseMove)):Pe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Pe.onMouseLeave=this.onMouseLeave:Pe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Pe.onFocus=this.onFocus,Pe.onBlur=this.onBlur):(Pe.onFocus=this.createTwoChains("onFocus"),Pe.onBlur=this.createTwoChains("onBlur"));var De=oe()(je&&je.props&&je.props.className,ie);De&&(Pe.className=De);var lt=Object(ee.a)({},Pe);Object(de.c)(je)&&(lt.ref=Object(de.a)(this.triggerRef,je.ref));var xt=y.cloneElement(je,lt),Ze;return(h||this.popupRef.current||H)&&(Ze=y.createElement(K,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!h&&ve&&(Ze=null),y.createElement(Dt.Provider,{value:this.triggerContextValue},xt,Ze)}}],[{key:"getDerivedStateFromProps",value:function(h,I){var F=h.popupVisible,H={};return F!==void 0&&I.popupVisible!==F&&(H.popupVisible=F,H.prevPopupVisible=I.popupVisible),H}}]),d}(y.Component);return _.contextType=Dt,_.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Zn,getDocument:Ma,onPopupVisibleChange:_n,afterPopupVisibleChange:_n,onPopupAlign:_n,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},_}var oa=Da(Ne.a),Kn={adjustX:1,adjustY:1},ya={topLeft:{points:["bl","tl"],overflow:Kn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Kn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Kn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Kn,offset:[4,0]}},Oa={topLeft:{points:["bl","tl"],overflow:Kn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Kn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Kn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Kn,offset:[4,0]}},wa=ya,In=0,zn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Bn=function(_,L,O){var d=Ae(L),x=_.getState();_.setState({defaultActiveFirst:Object(ee.a)(Object(ee.a)({},x.defaultActiveFirst),{},Object(Y.a)({},d,O))})},rn=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(O){var d;Object(N.a)(this,L),d=_.call(this,O),d.onDestroy=function(te){d.props.onDestroy(te)},d.onKeyDown=function(te){var ie=te.keyCode,ve=d.menuInstance,je=d.props.store,Pe=d.getVisible();if(ie===c.a.ENTER)return d.onTitleClick(te),Bn(je,d.props.eventKey,!0),!0;if(ie===c.a.RIGHT)return Pe?ve.onKeyDown(te):(d.triggerOpenChange(!0),Bn(je,d.props.eventKey,!0)),!0;if(ie===c.a.LEFT){var De;if(Pe)De=ve.onKeyDown(te);else return;return De||(d.triggerOpenChange(!1),De=!0),De}return Pe&&(ie===c.a.UP||ie===c.a.DOWN)?ve.onKeyDown(te):void 0},d.onOpenChange=function(te){d.props.onOpenChange(te)},d.onPopupVisibleChange=function(te){d.triggerOpenChange(te,te?"mouseenter":"mouseleave")},d.onMouseEnter=function(te){var ie=d.props,ve=ie.eventKey,je=ie.onMouseEnter,Pe=ie.store;Bn(Pe,d.props.eventKey,!1),je({key:ve,domEvent:te})},d.onMouseLeave=function(te){var ie=d.props,ve=ie.parentMenu,je=ie.eventKey,Pe=ie.onMouseLeave;ve.subMenuInstance=Object(S.a)(d),Pe({key:je,domEvent:te})},d.onTitleMouseEnter=function(te){var ie=d.props,ve=ie.eventKey,je=ie.onItemHover,Pe=ie.onTitleMouseEnter;je({key:ve,hover:!0}),Pe({key:ve,domEvent:te})},d.onTitleMouseLeave=function(te){var ie=d.props,ve=ie.parentMenu,je=ie.eventKey,Pe=ie.onItemHover,De=ie.onTitleMouseLeave;ve.subMenuInstance=Object(S.a)(d),Pe({key:je,hover:!1}),De({key:je,domEvent:te})},d.onTitleClick=function(te){var ie=Object(S.a)(d),ve=ie.props;if(ve.onTitleClick({key:ve.eventKey,domEvent:te}),ve.triggerSubMenuAction==="hover")return;d.triggerOpenChange(!d.getVisible(),"click"),Bn(ve.store,d.props.eventKey,!1)},d.onSubMenuClick=function(te){typeof d.props.onClick=="function"&&d.props.onClick(d.addKeyPath(te))},d.onSelect=function(te){d.props.onSelect(te)},d.onDeselect=function(te){d.props.onDeselect(te)},d.getPrefixCls=function(){return"".concat(d.props.rootPrefixCls,"-submenu")},d.getActiveClassName=function(){return"".concat(d.getPrefixCls(),"-active")},d.getDisabledClassName=function(){return"".concat(d.getPrefixCls(),"-disabled")},d.getSelectedClassName=function(){return"".concat(d.getPrefixCls(),"-selected")},d.getOpenClassName=function(){return"".concat(d.props.rootPrefixCls,"-submenu-open")},d.getVisible=function(){return d.state.isOpen},d.getMode=function(){return d.state.mode},d.saveMenuInstance=function(te){d.menuInstance=te},d.addKeyPath=function(te){return Object(ee.a)(Object(ee.a)({},te),{},{keyPath:(te.keyPath||[]).concat(d.props.eventKey)})},d.triggerOpenChange=function(te,ie){var ve=d.props.eventKey,je=function(){d.onOpenChange({key:ve,item:Object(S.a)(d),trigger:ie,open:te})};ie==="mouseenter"?d.mouseenterTimeout=setTimeout(function(){je()},0):je()},d.isChildrenSelected=function(){var te={find:!1};return Xe(d.props.children,d.props.selectedKeys,te),te.find},d.isInlineMode=function(){return d.getMode()==="inline"},d.adjustWidth=function(){if(!d.subMenuTitle||!d.menuInstance)return;var te=ut.findDOMNode(d.menuInstance);if(te.offsetWidth>=d.subMenuTitle.offsetWidth)return;te.style.minWidth="".concat(d.subMenuTitle.offsetWidth,"px")},d.saveSubMenuTitle=function(te){d.subMenuTitle=te},d.getBaseProps=function(){var te=Object(S.a)(d),ie=te.props,ve=d.getMode();return{mode:ve==="horizontal"?"vertical":ve,visible:d.getVisible(),level:ie.level+1,inlineIndent:ie.inlineIndent,focusable:!1,onClick:d.onSubMenuClick,onSelect:d.onSelect,onDeselect:d.onDeselect,onDestroy:d.onDestroy,selectedKeys:ie.selectedKeys,eventKey:"".concat(ie.eventKey,"-menu-"),openKeys:ie.openKeys,motion:ie.motion,onOpenChange:d.onOpenChange,subMenuOpenDelay:ie.subMenuOpenDelay,parentMenu:Object(S.a)(d),subMenuCloseDelay:ie.subMenuCloseDelay,forceSubMenuRender:ie.forceSubMenuRender,triggerSubMenuAction:ie.triggerSubMenuAction,builtinPlacements:ie.builtinPlacements,defaultActiveFirst:ie.store.getState().defaultActiveFirst[Ae(ie.eventKey)],multiple:ie.multiple,prefixCls:ie.rootPrefixCls,id:d.internalMenuId,manualRef:d.saveMenuInstance,itemIcon:ie.itemIcon,expandIcon:ie.expandIcon,direction:ie.direction}},d.getMotion=function(te,ie){var ve=Object(S.a)(d),je=ve.haveRendered,Pe=d.props,De=Pe.motion,lt=Pe.rootPrefixCls,xt=Object(ee.a)(Object(ee.a)({},De),{},{leavedClassName:"".concat(lt,"-hidden"),removeOnLeave:!1,motionAppear:je||!ie||te!=="inline"});return xt};var x=O.store,h=O.eventKey,I=x.getState(),F=I.defaultActiveFirst;d.isRootMenu=!1;var H=!1;return F&&(H=F[h]),Bn(x,h,H),d.state={mode:O.mode,isOpen:O.isOpen},d}return Object(J.a)(L,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var d=this,x=this.props,h=x.mode,I=x.parentMenu,F=x.manualRef,H=x.isOpen,te=function(){d.setState({mode:h,isOpen:H})},ie=H!==this.state.isOpen,ve=h!==this.state.mode;if((ve||ie)&&(Et.a.cancel(this.updateStateRaf),ve?this.updateStateRaf=Object(Et.a)(te):te()),F&&F(this),h!=="horizontal"||!(I==null?void 0:I.isRootMenu)||!H)return;this.minWidthTimeout=setTimeout(function(){return d.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var d=this.props,x=d.onDestroy,h=d.eventKey;x&&x(h),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Et.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(d,x){var h=this.getBaseProps();return y.createElement(pa,Object(G.a)({},h,{id:this.internalMenuId,className:d,style:x}),this.props.children)}},{key:"renderChildren",value:function(){var d=this,x=this.getBaseProps(),h=x.mode,I=x.visible,F=x.forceSubMenuRender,H=x.direction,te=this.getMotion(h,I);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||I||F,!this.haveOpened)return y.createElement("div",null);var ie=oe()("".concat(x.prefixCls,"-sub"),Object(Y.a)({},"".concat(x.prefixCls,"-rtl"),H==="rtl"));return this.isInlineMode()?y.createElement(st,Object(G.a)({visible:x.visible,forceRender:F},te),function(ve){var je=ve.className,Pe=ve.style,De=oe()(ie,je);return d.renderPopupMenu(De,Pe)}):this.renderPopupMenu(ie)}},{key:"render",value:function(){var d,x,h,I=Object(ee.a)({},this.props),F=this.getVisible(),H=this.getPrefixCls(),te=this.isInlineMode(),ie=this.getMode(),ve=oe()(H,"".concat(H,"-").concat(ie),(d={},Object(Y.a)(d,I.className,!!I.className),Object(Y.a)(d,this.getOpenClassName(),F),Object(Y.a)(d,this.getActiveClassName(),I.active||F&&!te),Object(Y.a)(d,this.getDisabledClassName(),I.disabled),Object(Y.a)(d,this.getSelectedClassName(),this.isChildrenSelected()),d));this.internalMenuId||(I.eventKey?this.internalMenuId="".concat(I.eventKey,"$Menu"):(In+=1,this.internalMenuId="$__$".concat(In,"$Menu")));var je={},Pe={},De={};I.disabled||(je={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Pe={onClick:this.onTitleClick},De={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var lt={},xt=I.direction,Ze=xt==="rtl";te&&(Ze?lt.paddingRight=I.inlineIndent*I.level:lt.paddingLeft=I.inlineIndent*I.level);var wt={};this.getVisible()&&(wt={"aria-owns":this.internalMenuId});var dt=null;ie!=="horizontal"&&(dt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(dt=y.createElement(this.props.expandIcon,Object(ee.a)({},this.props))));var bt=y.createElement("div",Object(G.a)({ref:this.saveSubMenuTitle,style:lt,className:"".concat(H,"-title"),role:"button"},De,Pe,{"aria-expanded":F},wt,{"aria-haspopup":"true",title:typeof I.title=="string"?I.title:void 0}),I.title,dt||y.createElement("i",{className:"".concat(H,"-arrow")})),St=this.renderChildren(),It=((x=I.parentMenu)===null||x===void 0?void 0:x.isRootMenu)?I.parentMenu.props.getPopupContainer:function(mn){return mn.parentNode},Mt=zn[ie],pn=I.popupOffset?{offset:I.popupOffset}:{},Ct=oe()((h={},Object(Y.a)(h,I.popupClassName,I.popupClassName&&!te),Object(Y.a)(h,"".concat(H,"-rtl"),Ze),h)),pt=I.disabled,ft=I.triggerSubMenuAction,Ht=I.subMenuOpenDelay,Kt=I.forceSubMenuRender,rt=I.subMenuCloseDelay,Xt=I.builtinPlacements;V.forEach(function(mn){return delete I[mn]}),delete I.onClick;var cn=Ze?Object(ee.a)(Object(ee.a)({},Oa),Xt):Object(ee.a)(Object(ee.a)({},ya),Xt);delete I.direction;var Yt=this.getBaseProps(),tn=te?null:this.getMotion(Yt.mode,Yt.visible);return y.createElement("li",Object(G.a)({},I,je,{className:ve,role:"menuitem"}),y.createElement(oa,{prefixCls:H,popupClassName:oe()("".concat(H,"-popup"),Ct),getPopupContainer:It,builtinPlacements:cn,popupPlacement:Mt,popupVisible:te?!1:F,popupAlign:pn,popup:te?null:St,action:pt||te?[]:[ft],mouseEnterDelay:Ht,mouseLeaveDelay:rt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Kt,popupMotion:tn},bt),te?St:null)}}]),L}(y.Component);rn.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var qn=Object(D.b)(function(K,_){var L=K.openKeys,O=K.activeKey,d=K.selectedKeys,x=_.eventKey,h=_.subMenuKey;return{isOpen:L.indexOf(x)>-1,active:O[h]===x,selectedKeys:d}})(rn);qn.isSubMenu=!0;var sa=qn,xa="menuitem-overflowed",Xa=.5,La=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(){var O;return Object(N.a)(this,L),O=_.apply(this,arguments),O.resizeObserver=null,O.mutationObserver=null,O.originalTotalWidth=0,O.overflowedItems=[],O.menuItemSizes=[],O.cancelFrameId=null,O.state={lastVisibleIndex:void 0},O.childRef=y.createRef(),O.getMenuItemNodes=function(){var d=O.props.prefixCls,x=O.childRef.current;return x?[].slice.call(x.children).filter(function(h){return h.className.split(" ").indexOf("".concat(d,"-overflowed-submenu"))<0}):[]},O.getOverflowedSubMenuItem=function(d,x,h){var I=O.props,F=I.overflowedIndicator,H=I.level,te=I.mode,ie=I.prefixCls,ve=I.theme;if(H!==1||te!=="horizontal")return null;var je=O.props.children[0],Pe=je.props,De=Pe.children,lt=Pe.title,xt=Pe.style,Ze=Object(ce.a)(Pe,["children","title","style"]),wt=Object(ee.a)({},xt),dt="".concat(d,"-overflowed-indicator"),bt="".concat(d,"-overflowed-indicator");x.length===0&&h!==!0?wt=Object(ee.a)(Object(ee.a)({},wt),{},{display:"none"}):h&&(wt=Object(ee.a)(Object(ee.a)({},wt),{},{visibility:"hidden",position:"absolute"}),dt="".concat(dt,"-placeholder"),bt="".concat(bt,"-placeholder"));var St=ve?"".concat(ie,"-").concat(ve):"",It={};return V.forEach(function(Mt){Ze[Mt]!==void 0&&(It[Mt]=Ze[Mt])}),y.createElement(sa,Object(G.a)({title:F,className:"".concat(ie,"-overflowed-submenu"),popupClassName:St},It,{key:dt,eventKey:bt,disabled:!1,style:wt}),x)},O.setChildrenWidthAndResize=function(){if(O.props.mode!=="horizontal")return;var d=O.childRef.current;if(!d)return;var x=d.children;if(!x||x.length===0)return;var h=d.children[x.length-1];ge(h,"display","inline-block");var I=O.getMenuItemNodes(),F=I.filter(function(H){return H.className.split(" ").indexOf(xa)>=0});F.forEach(function(H){ge(H,"display","inline-block")}),O.menuItemSizes=I.map(function(H){return se(H,!0)}),F.forEach(function(H){ge(H,"display","none")}),O.overflowedIndicatorWidth=se(d.children[d.children.length-1],!0),O.originalTotalWidth=O.menuItemSizes.reduce(function(H,te){return H+te},0),O.handleResize(),ge(h,"display","none")},O.handleResize=function(){if(O.props.mode!=="horizontal")return;var d=O.childRef.current;if(!d)return;var x=se(d);O.overflowedItems=[];var h=0,I;O.originalTotalWidth>x+Xa&&(I=-1,O.menuItemSizes.forEach(function(F){h+=F,h+O.overflowedIndicatorWidth<=x&&(I+=1)})),O.setState({lastVisibleIndex:I})},O}return Object(J.a)(L,[{key:"componentDidMount",value:function(){var d=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var x=this.childRef.current;if(!x)return;this.resizeObserver=new qe.default(function(h){h.forEach(function(){var I=d.cancelFrameId;cancelAnimationFrame(I),d.cancelFrameId=requestAnimationFrame(d.setChildrenWidthAndResize)})}),[].slice.call(x.children).concat(x).forEach(function(h){d.resizeObserver.observe(h)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){d.resizeObserver.disconnect(),[].slice.call(x.children).concat(x).forEach(function(h){d.resizeObserver.observe(h)}),d.setChildrenWidthAndResize()}),this.mutationObserver.observe(x,{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(d){var x=this,h=this.state.lastVisibleIndex;return(d||[]).reduce(function(I,F,H){var te=F;if(x.props.mode==="horizontal"){var ie=x.getOverflowedSubMenuItem(F.props.eventKey,[]);h!==void 0&&x.props.className.indexOf("".concat(x.props.prefixCls,"-root"))!==-1&&(H>h&&(te=y.cloneElement(F,{style:{display:"none"},eventKey:"".concat(F.props.eventKey,"-hidden"),className:"".concat(xa)})),H===h+1&&(x.overflowedItems=d.slice(h+1).map(function(je){return y.cloneElement(je,{key:je.props.eventKey,mode:"vertical-left"})}),ie=x.getOverflowedSubMenuItem(F.props.eventKey,x.overflowedItems)));var ve=[].concat(Object(T.a)(I),[ie,te]);return H===d.length-1&&ve.push(x.getOverflowedSubMenuItem(F.props.eventKey,[],!0)),ve}return[].concat(Object(T.a)(I),[te])},[])}},{key:"render",value:function(){var d=this.props,x=d.visible,h=d.prefixCls,I=d.overflowedIndicator,F=d.mode,H=d.level,te=d.tag,ie=d.children,ve=d.theme,je=Object(ce.a)(d,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Pe=te;return y.createElement(Pe,Object(G.a)({ref:this.childRef},je),this.renderChildren(ie))}}]),L}(y.Component);La.defaultProps={tag:"div",className:""};var Ra=La;function la(K){return K.length?K.every(function(_){return!!_.props.disabled}):!0}function Xn(K,_,L){var O=K.getState();K.setState({activeKey:Object(ee.a)(Object(ee.a)({},O.activeKey),{},Object(Y.a)({},_,L))})}function ea(K){return K.eventKey||"0-menu-"}function ha(K,_){var L=_,O=K.children,d=K.eventKey;if(L){var x;if(Fe(O,function(h,I){h&&h.props&&!h.props.disabled&&L===ye(h,d,I)&&(x=!0)}),x)return L}return L=null,K.defaultActiveFirst&&Fe(O,function(h,I){!L&&h&&!h.props.disabled&&(L=ye(h,d,I))}),L}function Ta(K){if(!K)return;var _=this.instanceArray.indexOf(K);_!==-1?this.instanceArray[_]=K:this.instanceArray.push(K)}var ta=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(O){var d;return Object(N.a)(this,L),d=_.call(this,O),d.onKeyDown=function(x,h){var I=x.keyCode,F;if(d.getFlatInstanceArray().forEach(function(te){te&&te.props.active&&te.onKeyDown&&(F=te.onKeyDown(x))}),F)return 1;var H=null;return(I===c.a.UP||I===c.a.DOWN)&&(H=d.step(I===c.a.UP?-1:1)),H?(x.preventDefault(),Xn(d.props.store,ea(d.props),H.props.eventKey),typeof h=="function"&&h(H),1):void 0},d.onItemHover=function(x){var h=x.key,I=x.hover;Xn(d.props.store,ea(d.props),I?h:null)},d.onDeselect=function(x){d.props.onDeselect(x)},d.onSelect=function(x){d.props.onSelect(x)},d.onClick=function(x){d.props.onClick(x)},d.onOpenChange=function(x){d.props.onOpenChange(x)},d.onDestroy=function(x){d.props.onDestroy(x)},d.getFlatInstanceArray=function(){return d.instanceArray},d.step=function(x){var h=d.getFlatInstanceArray(),I=d.props.store.getState().activeKey[ea(d.props)],F=h.length;if(!F)return null;x<0&&(h=h.concat().reverse());var H=-1;if(h.every(function(je,Pe){return je&&je.props.eventKey===I?(H=Pe,!1):!0}),!d.props.defaultActiveFirst&&H!==-1&&la(h.slice(H,F-1)))return;var te=(H+1)%F,ie=te;do{var ve=h[ie];if(!ve||ve.props.disabled)ie=(ie+1)%F;else return ve}while(ie!==te);return null},d.renderCommonMenuItem=function(x,h,I){var F=d.props.store.getState(),H=Object(S.a)(d),te=H.props,ie=ye(x,te.eventKey,h),ve=x.props;if(!ve||typeof x.type=="string")return x;var je=ie===F.activeKey,Pe=Object(ee.a)(Object(ee.a)({mode:ve.mode||te.mode,level:te.level,inlineIndent:te.inlineIndent,renderMenuItem:d.renderMenuItem,rootPrefixCls:te.prefixCls,index:h,parentMenu:te.parentMenu,manualRef:ve.disabled?void 0:Object(w.a)(x.ref,Ta.bind(Object(S.a)(d))),eventKey:ie,active:!ve.disabled&&je,multiple:te.multiple,onClick:function(lt){(ve.onClick||le)(lt),d.onClick(lt)},onItemHover:d.onItemHover,motion:te.motion,subMenuOpenDelay:te.subMenuOpenDelay,subMenuCloseDelay:te.subMenuCloseDelay,forceSubMenuRender:te.forceSubMenuRender,onOpenChange:d.onOpenChange,onDeselect:d.onDeselect,onSelect:d.onSelect,builtinPlacements:te.builtinPlacements,itemIcon:ve.itemIcon||d.props.itemIcon,expandIcon:ve.expandIcon||d.props.expandIcon},I),{},{direction:te.direction});return(te.mode==="inline"||Te())&&(Pe.triggerSubMenuAction="click"),y.cloneElement(x,Object(ee.a)(Object(ee.a)({},Pe),{},{key:ie||h}))},d.renderMenuItem=function(x,h,I){if(!x)return null;var F=d.props.store.getState(),H={openKeys:F.openKeys,selectedKeys:F.selectedKeys,triggerSubMenuAction:d.props.triggerSubMenuAction,subMenuKey:I};return d.renderCommonMenuItem(x,h,H)},O.store.setState({activeKey:Object(ee.a)(Object(ee.a)({},O.store.getState().activeKey),{},Object(Y.a)({},O.eventKey,ha(O,O.activeKey)))}),d.instanceArray=[],d}return Object(J.a)(L,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(d){return this.props.visible||d.visible||this.props.className!==d.className||!k()(this.props.style,d.style)}},{key:"componentDidUpdate",value:function(d){var x=this.props,h="activeKey"in x?x.activeKey:x.store.getState().activeKey[ea(x)],I=ha(x,h);if(I!==h)Xn(x.store,ea(x),I);else if("activeKey"in d){var F=ha(d,d.activeKey);I!==F&&Xn(x.store,ea(x),I)}}},{key:"render",value:function(){var d=this,x=Object(G.a)({},this.props);this.instanceArray=[];var h=oe()(x.prefixCls,x.className,"".concat(x.prefixCls,"-").concat(x.mode)),I={className:h,role:x.role||"menu"};x.id&&(I.id=x.id),x.focusable&&(I.tabIndex=0,I.onKeyDown=this.onKeyDown);var F=x.prefixCls,H=x.eventKey,te=x.visible,ie=x.level,ve=x.mode,je=x.overflowedIndicator,Pe=x.theme;return V.forEach(function(De){return delete x[De]}),delete x.onClick,y.createElement(Ra,Object(G.a)({},x,{prefixCls:F,mode:ve,tag:"ul",level:ie,theme:Pe,visible:te,overflowedIndicator:je},I),Object(re.a)(x.children).map(function(De,lt){return d.renderMenuItem(De,lt,H||"0-menu-")}))}}]),L}(y.Component);ta.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var fa=Object(D.b)()(ta),pa=fa,na=o("Kwbf");function ma(K,_,L){var O=K.prefixCls,d=K.motion,x=K.defaultMotions,h=x===void 0?{}:x,I=K.openAnimation,F=K.openTransitionName,H=_.switchingModeFromInline;if(d)return d;if(Object(b.a)(I)==="object"&&I)Object(na.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof I=="string")return{motionName:"".concat(O,"-open-").concat(I)};if(F)return{motionName:F};var te=h[L];return te||(H?null:h.other)}var Ua=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(O){var d;Object(N.a)(this,L),d=_.call(this,O),d.onSelect=function(I){var F=Object(S.a)(d),H=F.props;if(H.selectable){var te=d.store.getState(),ie=te.selectedKeys,ve=I.key;H.multiple?ie=ie.concat([ve]):ie=[ve],"selectedKeys"in H||d.store.setState({selectedKeys:ie}),H.onSelect(Object(ee.a)(Object(ee.a)({},I),{},{selectedKeys:ie}))}},d.onClick=function(I){var F=d.getRealMenuMode(),H=Object(S.a)(d),te=H.store,ie=H.props.onOpenChange;F!=="inline"&&!("openKeys"in d.props)&&(te.setState({openKeys:[]}),ie([])),d.props.onClick(I)},d.onKeyDown=function(I,F){d.innerMenu.getWrappedInstance().onKeyDown(I,F)},d.onOpenChange=function(I){var F=Object(S.a)(d),H=F.props,te=d.store.getState().openKeys.concat(),ie=!1,ve=function(Pe){var De=!1;if(Pe.open)De=te.indexOf(Pe.key)===-1,De&&te.push(Pe.key);else{var lt=te.indexOf(Pe.key);De=lt!==-1,De&&te.splice(lt,1)}ie=ie||De};Array.isArray(I)?I.forEach(ve):ve(I),ie&&("openKeys"in d.props||d.store.setState({openKeys:te}),H.onOpenChange(te))},d.onDeselect=function(I){var F=Object(S.a)(d),H=F.props;if(H.selectable){var te=d.store.getState().selectedKeys.concat(),ie=I.key,ve=te.indexOf(ie);ve!==-1&&te.splice(ve,1),"selectedKeys"in H||d.store.setState({selectedKeys:te}),H.onDeselect(Object(ee.a)(Object(ee.a)({},I),{},{selectedKeys:te}))}},d.onMouseEnter=function(I){d.restoreModeVerticalFromInline();var F=d.props.onMouseEnter;F&&F(I)},d.onTransitionEnd=function(I){var F=I.propertyName==="width"&&I.target===I.currentTarget,H=I.target.className,te=Object.prototype.toString.call(H)==="[object SVGAnimatedString]"?H.animVal:H,ie=I.propertyName==="font-size"&&te.indexOf("anticon")>=0;(F||ie)&&d.restoreModeVerticalFromInline()},d.setInnerMenu=function(I){d.innerMenu=I},d.isRootMenu=!0;var x=O.defaultSelectedKeys,h=O.defaultOpenKeys;return"selectedKeys"in O&&(x=O.selectedKeys||[]),"openKeys"in O&&(h=O.openKeys||[]),d.store=Object(D.c)({selectedKeys:x,openKeys:h,activeKey:{"0-menu-":ha(O,O.activeKey)}}),d.state={switchingModeFromInline:!1,prevProps:O,inlineOpenKeys:[],store:d.store},d}return Object(J.a)(L,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(d){var x=this.props,h=x.siderCollapsed,I=x.inlineCollapsed,F=x.onOpenChange;(!d.inlineCollapsed&&I||!d.siderCollapsed&&h)&&F([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var d=this.props.collapsedWidth,x=this.store,h=this.prevOpenKeys,I=this.getInlineCollapsed()&&(d===0||d==="0"||d==="0px");I?(this.prevOpenKeys=x.getState().openKeys.concat(),this.store.setState({openKeys:[]})):h&&(this.store.setState({openKeys:h}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var d=this.props.mode,x=this.state.switchingModeFromInline,h=this.getInlineCollapsed();return x&&h?"inline":h?"vertical":d}},{key:"getInlineCollapsed",value:function(){var d=this.props,x=d.inlineCollapsed,h=d.siderCollapsed;return h!==void 0?h:x}},{key:"restoreModeVerticalFromInline",value:function(){var d=this.state.switchingModeFromInline;d&&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 d=Object(ee.a)({},Object(P.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),x=this.getRealMenuMode();return d.className+=" ".concat(d.prefixCls,"-root"),d.direction==="rtl"&&(d.className+=" ".concat(d.prefixCls,"-rtl")),d=Object(ee.a)(Object(ee.a)({},d),{},{mode:x,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ma(this.props,this.state,x)}),delete d.openAnimation,delete d.openTransitionName,y.createElement(D.a,{store:this.store},y.createElement(pa,Object(G.a)({},d,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(d,x){var h=x.prevProps,I=x.store,F=I.getState(),H={},te={prevProps:d};return h.mode==="inline"&&d.mode!=="inline"&&(te.switchingModeFromInline=!0),"openKeys"in d?H.openKeys=d.openKeys||[]:((d.inlineCollapsed&&!h.inlineCollapsed||d.siderCollapsed&&!h.siderCollapsed)&&(te.switchingModeFromInline=!0,te.inlineOpenKeys=F.openKeys,H.openKeys=[]),(!d.inlineCollapsed&&h.inlineCollapsed||!d.siderCollapsed&&h.siderCollapsed)&&(H.openKeys=x.inlineOpenKeys,te.inlineOpenKeys=[])),Object.keys(H).length&&I.setState(H),te}}]),L}(y.Component);Ua.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,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 ka=Ua,aa=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(){var O;return Object(N.a)(this,L),O=_.apply(this,arguments),O.onKeyDown=function(d){var x=d.keyCode;return x===c.a.ENTER?(O.onClick(d),!0):void 0},O.onMouseLeave=function(d){var x=O.props,h=x.eventKey,I=x.onItemHover,F=x.onMouseLeave;I({key:h,hover:!1}),F({key:h,domEvent:d})},O.onMouseEnter=function(d){var x=O.props,h=x.eventKey,I=x.onItemHover,F=x.onMouseEnter;I({key:h,hover:!0}),F({key:h,domEvent:d})},O.onClick=function(d){var x=O.props,h=x.eventKey,I=x.multiple,F=x.onClick,H=x.onSelect,te=x.onDeselect,ie=x.isSelected,ve={key:h,keyPath:[h],item:Object(S.a)(O),domEvent:d};F(ve),I?ie?te(ve):H(ve):ie||H(ve)},O.saveNode=function(d){O.node=d},O}return Object(J.a)(L,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var d=this.props;d.onDestroy&&d.onDestroy(d.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 d,x=Object(ee.a)({},this.props),h=oe()(this.getPrefixCls(),x.className,(d={},Object(Y.a)(d,this.getActiveClassName(),!x.disabled&&x.active),Object(Y.a)(d,this.getSelectedClassName(),x.isSelected),Object(Y.a)(d,this.getDisabledClassName(),x.disabled),d)),I=Object(ee.a)(Object(ee.a)({},x.attribute),{},{title:typeof x.title=="string"?x.title:void 0,className:h,role:x.role||"menuitem","aria-disabled":x.disabled});x.role==="option"?I=Object(ee.a)(Object(ee.a)({},I),{},{role:"option","aria-selected":x.isSelected}):(x.role===null||x.role==="none")&&(I.role="none");var F={onClick:x.disabled?null:this.onClick,onMouseLeave:x.disabled?null:this.onMouseLeave,onMouseEnter:x.disabled?null:this.onMouseEnter},H=Object(ee.a)({},x.style);x.mode==="inline"&&(x.direction==="rtl"?H.paddingRight=x.inlineIndent*x.level:H.paddingLeft=x.inlineIndent*x.level),V.forEach(function(ie){return delete x[ie]}),delete x.direction;var te=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(te=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(G.a)({},Object(P.a)(x,["onClick","onMouseEnter","onMouseLeave","onSelect"]),I,F,{style:H,ref:this.saveNode}),x.children,te)}}]),L}(y.Component);aa.isMenuItem=!0,aa.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var Ca=Object(D.b)(function(K,_){var L=K.activeKey,O=K.selectedKeys,d=_.eventKey,x=_.subMenuKey;return{active:L[x]===d,isSelected:Array.isArray(O)?O.indexOf(d)!==-1:O===d}})(aa),_a=Ca,Sa=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(){var O;return Object(N.a)(this,L),O=_.apply(this,arguments),O.renderInnerMenuItem=function(d){var x=O.props,h=x.renderMenuItem,I=x.index;return h(d,I,O.props.subMenuKey)},O}return Object(J.a)(L,[{key:"render",value:function(){var d=Object(G.a)({},this.props),x=d.className,h=x===void 0?"":x,I=d.rootPrefixCls,F="".concat(I,"-item-group-title"),H="".concat(I,"-item-group-list"),te=d.title,ie=d.children;return V.forEach(function(ve){return delete d[ve]}),delete d.direction,y.createElement("li",Object(G.a)({},d,{onClick:function(je){return je.stopPropagation()},className:"".concat(h," ").concat(I,"-item-group")}),y.createElement("div",{className:F,title:typeof te=="string"?te:void 0},te),y.createElement("ul",{className:H},y.Children.map(ie,this.renderInnerMenuItem)))}}]),L}(y.Component);Sa.isMenuItemGroup=!0,Sa.defaultProps={disabled:!0};var Fa=Sa,jn=function(_){var L=_.className,O=_.rootPrefixCls,d=_.style;return y.createElement("li",{className:"".concat(L," ").concat(O,"-item-divider"),style:d})};jn.defaultProps={disabled:!0,className:"",style:{}};var Ba=jn,Ha=ka,Aa=o("eDIo");function ua(K,_){var L=K.prefixCls,O=K.editable,d=K.locale,x=K.style;return!O||O.showAdd===!1?null:y.createElement("button",{ref:_,type:"button",className:"".concat(L,"-nav-add"),style:x,"aria-label":(d==null?void 0:d.addAriaLabel)||"Add tab",onClick:function(I){O.onEdit("add",{event:I})}},O.addIcon||"+")}var va=y.forwardRef(ua);function Wa(K,_){var L=K.prefixCls,O=K.id,d=K.tabs,x=K.locale,h=K.mobile,I=K.moreIcon,F=I===void 0?"More":I,H=K.moreTransitionName,te=K.style,ie=K.className,ve=K.editable,je=K.tabBarGutter,Pe=K.rtl,De=K.onTabClick,lt=Object(y.useState)(!1),xt=Object(z.a)(lt,2),Ze=xt[0],wt=xt[1],dt=Object(y.useState)(null),bt=Object(z.a)(dt,2),St=bt[0],It=bt[1],Mt="".concat(O,"-more-popup"),pn="".concat(L,"-dropdown"),Ct=St!==null?"".concat(Mt,"-").concat(St):null,pt=x==null?void 0:x.dropdownAriaLabel,ft=y.createElement(Ha,{onClick:function(tn){var mn=tn.key,Un=tn.domEvent;De(mn,Un),wt(!1)},id:Mt,tabIndex:-1,role:"listbox","aria-activedescendant":Ct,selectedKeys:[St],"aria-label":pt!==void 0?pt:"expanded dropdown"},d.map(function(Yt){return y.createElement(_a,{key:Yt.key,id:"".concat(Mt,"-").concat(Yt.key),role:"option","aria-controls":O&&"".concat(O,"-panel-").concat(Yt.key),disabled:Yt.disabled},Yt.tab)}));function Ht(Yt){for(var tn=d.filter(function(Vn){return!Vn.disabled}),mn=tn.findIndex(function(Vn){return Vn.key===St})||0,Un=tn.length,Gn=0;GnXt?(Kt=ft,Mt.current="x"):(Kt=Ht,Mt.current="y");var cn=Date.now();cn-St.current>100&&(It.current=!1),(_(-Kt,-Kt)||It.current)&&(pt.preventDefault(),It.current=!0),St.current=cn}var Ct=Object(y.useRef)(null);Ct.current={onTouchStart:wt,onTouchMove:dt,onTouchEnd:bt,onWheel:pn},y.useEffect(function(){function pt(rt){Ct.current.onTouchStart(rt)}function ft(rt){Ct.current.onTouchMove(rt)}function Ht(rt){Ct.current.onTouchEnd(rt)}function Kt(rt){Ct.current.onWheel(rt)}return document.addEventListener("touchmove",ft,{passive:!1}),document.addEventListener("touchend",Ht,{passive:!1}),K.current.addEventListener("touchstart",pt,{passive:!1}),K.current.addEventListener("wheel",Kt),function(){document.removeEventListener("touchmove",ft),document.removeEventListener("touchend",Ht)}},[])}function Na(){var K=Object(y.useRef)(new Map);function _(O){return K.current.has(O)||K.current.set(O,y.createRef()),K.current.get(O)}function L(O){K.current.delete(O)}return[_,L]}function za(K,_){var L=y.useRef(K),O=y.useState({}),d=Object(z.a)(O,2),x=d[1];function h(I){var F=typeof I=="function"?I(L.current):I;F!==L.current&&_(F,L.current),L.current=F,x({})}return[L.current,h]}var Ia=function(_){var L=_.position,O=_.prefixCls,d=_.extra;if(!d)return null;var x,h=d;return L==="right"&&(x=h.right||!h.left&&h||null),L==="left"&&(x=h.left||null),x?y.createElement("div",{className:"".concat(O,"-extra-content")},x):null};function Ga(K,_){var L,O=y.useContext(ia),d=O.prefixCls,x=O.tabs,h=K.className,I=K.style,F=K.id,H=K.animated,te=K.activeKey,ie=K.rtl,ve=K.extra,je=K.editable,Pe=K.locale,De=K.tabPosition,lt=K.tabBarGutter,xt=K.children,Ze=K.onTabClick,wt=K.onTabScroll,dt=Object(y.useRef)(),bt=Object(y.useRef)(),St=Object(y.useRef)(),It=Object(y.useRef)(),Mt=Na(),pn=Object(z.a)(Mt,2),Ct=pn[0],pt=pn[1],ft=De==="top"||De==="bottom",Ht=za(0,function(en,Wt){ft&&wt&&wt({direction:en>Wt?"left":"right"})}),Kt=Object(z.a)(Ht,2),rt=Kt[0],Xt=Kt[1],cn=za(0,function(en,Wt){!ft&&wt&&wt({direction:en>Wt?"top":"bottom"})}),Yt=Object(z.a)(cn,2),tn=Yt[0],mn=Yt[1],Un=Object(y.useState)(0),Gn=Object(z.a)(Un,2),gn=Gn[0],Vn=Gn[1],ra=Object(y.useState)(0),Yn=Object(z.a)(ra,2),Jn=Yn[0],On=Yn[1],Wn=Object(y.useState)(0),kn=Object(z.a)(Wn,2),Pn=kn[0],ga=kn[1],ba=Object(y.useState)(0),ja=Object(z.a)(ba,2),sn=ja[0],da=ja[1],Pa=Object(y.useState)(null),dn=Object(z.a)(Pa,2),qt=dn[0],Fn=dn[1],Vi=Object(y.useState)(null),Oi=Object(z.a)(Vi,2),Va=Oi[0],$i=Oi[1],Xi=Object(y.useState)(0),wi=Object(z.a)(Xi,2),Yi=wi[0],Ji=wi[1],Qi=Object(y.useState)(0),xi=Object(z.a)(Qi,2),Zi=xi[0],qi=xi[1],er=i(new Map),Ri=Object(z.a)(er,2),tr=Ri[0],nr=Ri[1],di=m(x,tr,gn),Ti="".concat(d,"-nav-operations-hidden"),qa=0,ei=0;ft?ie?(qa=0,ei=Math.max(0,gn-qt)):(qa=Math.min(0,qt-gn),ei=0):(qa=Math.min(0,Va-Jn),ei=0);function fi(en){return enei?[ei,!1]:[en,!0]}var Ci=Object(y.useRef)(),ar=Object(y.useState)(),Si=Object(z.a)(ar,2),pi=Si[0],Ai=Si[1];function mi(){Ai(Date.now())}function _i(){window.clearTimeout(Ci.current)}Ka(dt,function(en,Wt){var Mn=!1;function Qn(ni,ai){ni(function(ii){var ri=fi(ii+ai),$a=Object(z.a)(ri,2),Ei=$a[0],yi=$a[1];return Mn=yi,Ei})}if(ft){if(qt>=gn)return Mn;Qn(Xt,en)}else{if(Va>=Jn)return Mn;Qn(mn,Wt)}return _i(),mi(),Mn}),Object(y.useEffect)(function(){return _i(),pi&&(Ci.current=window.setTimeout(function(){Ai(0)},100)),_i},[pi]);function Ni(){var en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:te,Wt=di.get(en);if(!Wt)return;if(ft){var Mn=rt;ie?Wt.rightrt+qt&&(Mn=Wt.right+Wt.width-qt):Wt.left<-rt?Mn=-Wt.left:Wt.left+Wt.width>-rt+qt&&(Mn=-(Wt.left+Wt.width-qt)),mn(0),Xt(fi(Mn)[0])}else{var Qn=tn;Wt.top<-tn?Qn=-Wt.top:Wt.top+Wt.height>-tn+Va&&(Qn=-(Wt.top+Wt.height-Va)),Xt(0),mn(fi(Qn)[0])}}var ir=$(di,{width:qt,height:Va,left:rt,top:tn},{width:Pn,height:sn},{width:Yi,height:Zi},Object(ee.a)(Object(ee.a)({},K),{},{tabs:x})),Ii=Object(z.a)(ir,2),rr=Ii[0],or=Ii[1],sr=x.map(function(en){var Wt=en.key;return y.createElement(j,{id:F,prefixCls:d,key:Wt,rtl:ie,tab:en,closable:en.closable,editable:je,active:Wt===te,tabPosition:De,tabBarGutter:lt,renderWrapper:xt,removeAriaLabel:Pe==null?void 0:Pe.removeAriaLabel,ref:Ct(Wt),onClick:function(Qn){Ze(Wt,Qn)},onRemove:function(){pt(Wt)},onFocus:function(){Ni(Wt),mi(),ie||(dt.current.scrollLeft=0),dt.current.scrollTop=0}})}),vi=r(function(){var en,Wt,Mn,Qn,ni,ai,ii,ri,$a,Ei=((en=dt.current)===null||en===void 0?void 0:en.offsetWidth)||0,yi=((Wt=dt.current)===null||Wt===void 0?void 0:Wt.offsetHeight)||0,Fi=((Mn=It.current)===null||Mn===void 0?void 0:Mn.offsetWidth)||0,Bi=((Qn=It.current)===null||Qn===void 0?void 0:Qn.offsetHeight)||0,fr=((ni=St.current)===null||ni===void 0?void 0:ni.offsetWidth)||0,pr=((ai=St.current)===null||ai===void 0?void 0:ai.offsetHeight)||0;Fn(Ei),$i(yi),Ji(Fi),qi(Bi);var Hi=(((ii=bt.current)===null||ii===void 0?void 0:ii.offsetWidth)||0)-Fi,Wi=(((ri=bt.current)===null||ri===void 0?void 0:ri.offsetHeight)||0)-Bi;Vn(Hi),On(Wi);var Ki=($a=St.current)===null||$a===void 0?void 0:$a.className.includes(Ti);ga(Hi-(Ki?0:fr)),da(Wi-(Ki?0:pr)),nr(function(){var zi=new Map;return x.forEach(function(mr){var Gi=mr.key,oi=Ct(Gi).current;oi&&zi.set(Gi,{width:oi.offsetWidth,height:oi.offsetHeight,left:oi.offsetLeft,top:oi.offsetTop})}),zi})}),lr=x.slice(0,rr),ur=x.slice(or+1),ji=[].concat(Object(T.a)(lr),Object(T.a)(ur)),cr=Object(y.useState)(),Pi=Object(z.a)(cr,2),dr=Pi[0],hr=Pi[1],Ea=di.get(te),Mi=Object(y.useRef)();function Di(){p.a.cancel(Mi.current)}Object(y.useEffect)(function(){var en={};return Ea&&(ft?(ie?en.right=Ea.right:en.left=Ea.left,en.width=Ea.width):(en.top=Ea.top,en.height=Ea.height)),Di(),Mi.current=p()(function(){hr(en)}),Di},[Ea,ft,ie]),Object(y.useEffect)(function(){Ni()},[te,Ea,di,ft]),Object(y.useEffect)(function(){vi()},[ie,lt,te,x.map(function(en){return en.key}).join("_")]);var Li=!!ji.length,ti="".concat(d,"-nav-wrap"),gi,bi,Ui,ki;return ft?ie?(bi=rt>0,gi=rt+qt{l();const i=this._commands.get(E);(i==null?void 0:i.isEmpty())&&this._commands.delete(E)});return this._onDidRegisterCommand.fire(E),r}registerCommandAlias(e,T){return re.registerCommand(e,(E,...p)=>E.get(oe).executeCommand(T,...p))}getCommand(e){const T=this._commands.get(e);return!T||T.isEmpty()?void 0:z.a.first(T)}getCommands(){const e=new Map;for(const T of this._commands.keys()){const E=this.getCommand(T);E&&e.set(T,E)}return e}};re.registerCommand("noop",()=>{})},p5ED:function(Ge,Q,o){"use strict";var Y=o("+L6B"),z=o("2/Rp"),ce=o("5Dmo"),ee=o("3S7+"),y=o("k1fw"),A=o("9og8"),oe=o("tJVT"),re=o("WmNS"),e=o.n(re),T=o("q1tI"),E=o.n(T),p=o("vHTk"),l=o.n(p),r=o("yEEn"),i=o("ZW9T"),c=o("1vsH"),g=o("V0Rq"),j=o("m3rI");Q.a=function(v){var m,W,$,G,N,J,S,X=v.editOffice,M=X===void 0?"view":X,D=v.data,P=v.theme,w=v.type,f=v.filename,k=v.monacoEditor,b=v.className,n=v.style,u=v.close,s=v.onClose,a=v.hasMask,t=v.disabledDownload,R=Object(T.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),U=Object(oe.a)(R,2),ae=U[0],_e=U[1],ne=Object(T.useState)(""),me=Object(oe.a)(ne,2),Oe=me[0],we=me[1],ue=Object(T.useState)(),Ee=Object(oe.a)(ue,2),C=Ee[0],q=Ee[1],B=window.ENV==="build"?"/react/build":"",le=j.a.PROXY_SERVER||location.origin,ye,Ae=1024*1024,Fe=10*Ae,Xe=Object(T.useRef)();(m=D)!==null&&m!==void 0&&m.startsWith("/api")&&w!=="txt"&&(D=j.a.API_SERVER+D),w==="office"&&(ye=Object(c.T)(D).filesize,ye>Fe&&(w="other")),f&&k&&(k.filename=f),Object(T.useEffect)(function(){var Te,qe,ut=(Te=document.cookie)===null||Te===void 0||((qe=Te.replace(/\s/g,""))===null||qe===void 0)?void 0:qe.split(";");ut==null||ut.map(function(At){var Et=At.split("=");Et[0]==="_educoder_session"&&we(Et[1])})},[]),Object(T.useEffect)(function(){w==="office"&&V()},[w,D]);var V=function(){var Te=Object(A.a)(e.a.mark(function qe(){var ut,At,Et;return e.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return console.log("data:",D),ut=D,D.startsWith("http")||(ut=location.origin+ut),At=new URL(ut).pathname.split("/").pop(),Rt.next=6,Object(g.V)({attachment_id:At});case 6:Et=Rt.sent,q(Et);case 8:case"end":return Rt.stop()}},qe)}));return function(){return Te.apply(this,arguments)}}(),se=function(){if(D.startsWith("http")||D.startsWith("blob:")){ge();return}Object(c.z)(f||"educoder",D,f)},ge=function(){Object(c.x)(f||"educoder",decodeURIComponent(D))};return E.a.createElement("div",{style:Object(y.a)({},n||{}),className:"".concat(a&&l.a.bgBlack," ").concat(w?l.a.wrp:"hide")},u&&E.a.createElement("div",{className:l.a.close,ref:Xe},!t&&E.a.createElement(ee.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Xe.current}},E.a.createElement("span",{onClick:ge},E.a.createElement("i",{className:"icon-quxiaozhiding"}))),E.a.createElement(ee.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Xe.current}},E.a.createElement("span",{className:"",onClick:s},E.a.createElement("i",{className:"icon-guanbi1"})))),E.a.createElement("div",{className:"".concat(l.a[b]," ").concat(b," ").concat(l.a.monaco," ").concat(w==="txt"?"show":"hide")},w==="txt"&&E.a.createElement(i.b,k)),w==="audio"&&E.a.createElement("audio",{src:"".concat(((W=D)===null||W===void 0?void 0:W.indexOf("http://"))>-1||(($=D)===null||$===void 0?void 0:$.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(D),autoPlay:!0}),w==="video"&&E.a.createElement(E.a.Fragment,null,((G=D)===null||G===void 0?void 0:G.indexOf("http"))>-1?E.a.createElement("video",{controls:!0,src:"".concat(D),autoPlay:!0}):E.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(D),autoPlay:!0})),w==="office"&&C&&E.a.createElement("iframe",{src:"".concat(B,"/office.html?key=").concat(C.key,"&url=").concat(le+C.url,"&callbackUrl=").concat(le+C.callbackUrl,"&fileType=").concat(C.fileType,"&title=").concat(C.title,"&model=").concat(M,"&officeServer=").concat(j.a.OFFICE_SERVER,"&disabledDownload=").concat(!!t)}),w==="html"&&E.a.createElement("iframe",{src:D+"&disposition=inline"}),w==="pdf"&&E.a.createElement("iframe",{src:"".concat(B,"/js/pdfview/index.html?url=").concat(D,"&disabledDownload=").concat(!!t)}),w==="image"&&E.a.createElement("img",{src:"".concat(((N=D)===null||N===void 0?void 0:N.indexOf("http://"))>-1||((J=D)===null||J===void 0?void 0:J.indexOf("https://"))>-1||(S=D)!==null&&S!==void 0&&S.startsWith("/api")?"":"data:image/png;base64,").concat(D)}),w==="other"&&E.a.createElement("div",null,E.a.createElement(z.a,{type:"primary",size:"large",onClick:se},E.a.createElement(r.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),w==="download"&&E.a.createElement(z.a,{type:"primary",size:"large",onClick:se},E.a.createElement(r.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pmY6:function(Ge,Q,o){"use strict";o.d(Q,"h",function(){return T}),o.d(Q,"g",function(){return p}),o.d(Q,"f",function(){return l}),o.d(Q,"e",function(){return r}),o.d(Q,"i",function(){return i}),o.d(Q,"b",function(){return c}),o.d(Q,"a",function(){return g}),o.d(Q,"d",function(){return j}),o.d(Q,"c",function(){return v});var Y=o("C/vA"),z=o("JYp7");const ce=!1;let ee=null;function y(m){ee=m}if(ce){const m="__is_disposable_tracked__";y(new class{trackDisposable(W){const $=new Error("Potentially leaked disposable").stack;setTimeout(()=>{W[m]||console.log($)},3e3)}setParent(W,$){if(W&&W!==g.None)try{W[m]=!0}catch(G){}}markAsDisposed(W){if(W&&W!==g.None)try{W[m]=!0}catch($){}}markAsSingleton(W){}})}function A(m){return ee==null||ee.trackDisposable(m),m}function oe(m){ee==null||ee.markAsDisposed(m)}function re(m,W){ee==null||ee.setParent(m,W)}function e(m,W){if(!ee)return;for(const $ of m)ee.setParent($,W)}function T(m){return ee==null||ee.markAsSingleton(m),m}class E extends Error{constructor(m){super(`Encountered errors while disposing of store. Errors: [${m.join(", ")}]`);this.errors=m}}function p(m){return typeof m.dispose=="function"&&m.dispose.length===0}function l(m){if(z.a.is(m)){let W=[];for(const $ of m)if($)try{$.dispose()}catch(G){W.push(G)}if(W.length===1)throw W[0];if(W.length>1)throw new E(W);return Array.isArray(m)?[]:m}else if(m)return m.dispose(),m}function r(...m){const W=i(()=>l(m));return e(m,W),W}function i(m){const W=A({dispose:Object(Y.a)(()=>{oe(W),m()})});return W}class c{constructor(){this._toDispose=new Set,this._isDisposed=!1,A(this)}dispose(){if(this._isDisposed)return;oe(this),this._isDisposed=!0,this.clear()}clear(){try{l(this._toDispose.values())}finally{this._toDispose.clear()}}add(m){if(!m)return m;if(m===this)throw new Error("Cannot register a disposable on itself!");return re(m,this),this._isDisposed?c.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(m),m}}c.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new c,A(this),re(this._store,this)}dispose(){oe(this),this._store.dispose()}_register(m){if(m===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(m)}}g.None=Object.freeze({dispose(){}});class j{constructor(){this._isDisposed=!1,A(this)}get value(){return this._isDisposed?void 0:this._value}set value(m){var W;if(this._isDisposed||m===this._value)return;(W=this._value)===null||W===void 0||W.dispose(),m&&re(m,this),this._value=m}clear(){this.value=void 0}dispose(){var m;this._isDisposed=!0,oe(this),(m=this._value)===null||m===void 0||m.dispose(),this._value=void 0}clearAndLeak(){const m=this._value;return this._value=void 0,m&&re(m,null),m}}class v{constructor(m){this.object=m}dispose(){}}},psGv:function(Ge,Q,o){var Y,z;(function(){var ce;(function(){"use strict";var oe=[,,function(E){function p(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=[]}p.prototype.clone_empty=function(){var i=new p(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},p.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},p.prototype.has_match=function(i){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(i))return!0;return!1},p.prototype.set_indent=function(i,c){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.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)},p.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},p.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},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(i){this.__items.push(i);var c=i.lastIndexOf(` + a `).concat(R,",").concat(R," 0 1 1 ").concat(-_e,",").concat(ne),Oe=Math.PI*2*R,we={stroke:u,strokeDasharray:"".concat(n/100*(Oe-a),"px ").concat(Oe,"px"),strokeDashoffset:"-".concat(a/2+b/100*(Oe-a),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:me,pathStyle:we}}var w=function(n){var u=n.prefixCls,s=n.strokeWidth,a=n.trailWidth,t=n.gapDegree,R=n.gapPosition,U=n.trailColor,ae=n.strokeLinecap,_e=n.style,ne=n.className,me=n.strokeColor,Oe=n.percent,we=J(n,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(Y.useMemo)(function(){return X+=1,X},[]),Ee=P(0,100,U,s,t,R),C=Ee.pathString,q=Ee.pathStyle,B=D(Oe),le=D(me),ye=le.find(function(se){return Object.prototype.toString.call(se)==="[object Object]"}),Ae=A(B),Fe=v(Ae,1),Xe=Fe[0],V=function(){var ge=0;return B.map(function(Te,qe){var ut=le[qe]||le[le.length-1],At=Object.prototype.toString.call(ut)==="[object Object]"?"url(#".concat(u,"-gradient-").concat(ue,")"):"",Et=P(ge,Te,ut,s,t,R);return ge+=Te,z.a.createElement("path",{key:qe,className:"".concat(u,"-circle-path"),d:Et.pathString,stroke:At,strokeLinecap:ae,strokeWidth:s,opacity:Te===0?0:1,fillOpacity:"0",style:Et.pathStyle,ref:Xe[qe]})})};return z.a.createElement("svg",j({className:ee()("".concat(u,"-circle"),ne),viewBox:"0 0 100 100",style:_e},we),ye&&z.a.createElement("defs",null,z.a.createElement("linearGradient",{id:"".concat(u,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ye).sort(function(se,ge){return M(se)-M(ge)}).map(function(se,ge){return z.a.createElement("stop",{key:ge,offset:se,stopColor:ye[se]})}))),z.a.createElement("path",{className:"".concat(u,"-circle-trail"),d:C,stroke:U,strokeLinecap:ae,strokeWidth:a||s,fillOpacity:"0",style:q}),V().reverse())};w.defaultProps=y;var h=w,k={Line:g,Circle:h}},hW8S:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return ee}),o.d(Q,"c",function(){return y}),o.d(Q,"b",function(){return A});var Y=o("VTBJ"),z=o("Ff2n"),ce=o("Kwbf"),ee="RC_TABLE_INTERNAL_COL_DEFINE";function y(oe){var re=oe.expandable,e=Object(z.a)(oe,["expandable"]);return"expandable"in oe?Object(Y.a)(Object(Y.a)({},e),re):e}function A(oe){return Object.keys(oe).reduce(function(re,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(re[e]=oe[e]),re},{})}},ic2d:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return ee});var Y=o("FWmy"),z=o("746U");class ce{constructor(){this.data=new Map}add(y,A){Y.a(z.l(y)),Y.a(z.k(A)),Y.a(!this.data.has(y),"There is already an extension with this id"),this.data.set(y,A)}as(y){return this.data.get(y)||null}}const ee=new ce},k3GJ:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return ca});var Y=o("rePB"),z=o("ODXe"),ce=o("Ff2n"),ee=o("VTBJ"),y=o("q1tI"),A=o("TSYQ"),oe=o.n(A),re=o("Zm9Q"),e=o("6cGi"),T=o("KQm4"),E=o("xEkU"),p=o.n(E),l=o("t23M");function r(K){var _=Object(y.useRef)(),L=Object(y.useRef)(!1);function O(){for(var d=arguments.length,x=new Array(d),f=0;fie&&(Pe=ie-je),Object(y.useMemo)(function(){if(!x.length)return[0,0];for(var De=x.length,lt=De,xt=0;xtte+Pe){lt=xt-1;break}}for(var wt=0,dt=De-1;dt>=0;dt-=1){var bt=K.get(x[dt].key)||W;if(bt[H]1&&arguments[1]!==void 0?arguments[1]:!1,O=_&&typeof _.getBoundingClientRect=="function"&&_.getBoundingClientRect().width;if(O){if(L){var d=getComputedStyle(_),x=d.marginLeft,f=d.marginRight;O+=+x.replace("px","")+ +f.replace("px","")}O=+O.toFixed(6)}return O||0},ge=function(_,L,O){_&&Object(b.a)(_.style)==="object"&&(_.style[L]=O)},Te=function(){return B.any},qe=o("bdgK"),ut=o("i8i4"),At=o.n(ut),Et=o("wgJM"),tt=o("l4aY"),Rt=o("m+aA"),de=o("c+Xe"),Me=o("zT1h"),Ne=o("QC+M");function Ke(K,_,L){return L?K[0]===_[0]:K[0]===_[0]&&K[1]===_[1]}function He(K,_,L){var O=K[_]||{};return Object(ee.a)(Object(ee.a)({},O),L)}function Se(K,_,L,O){for(var d=L.points,x=Object.keys(K),f=0;f1&&arguments[1]!==void 0?arguments[1]:2;_();var x=Object(Et.a)(function(){d<=1?O({isCanceled:function(){return x!==K.current}}):L(O,d-1)});K.current=x}return y.useEffect(function(){return function(){_()}},[]),[L,_]},Lt=[Ft,ze,ct,it],on=!1,bn=!0;function fn(K){return K===ct||K===it}var vn=function(K,_){var L=y.useState(ln),O=Object(z.a)(L,2),d=O[0],x=O[1],f=et(),I=Object(z.a)(f,2),F=I[0],H=I[1];function te(){x(Ft)}return Ye(function(){if(d!==ln&&d!==it){var ie=Lt.indexOf(d),ve=Lt[ie+1],je=_(d);je===on?x(ve):F(function(Pe){function De(){if(Pe.isCanceled())return;x(ve)}je===!0?De():Promise.resolve(je).then(De)})}},[K,d]),y.useEffect(function(){return function(){H()}},[]),[te,d]},Jt=function(K){var _=Object(y.useRef)(),L=Object(y.useRef)(K);L.current=K;var O=y.useCallback(function(f){L.current(f)},[]);function d(f){f&&(f.removeEventListener(nn,O),f.removeEventListener(_t,O))}function x(f){_.current&&_.current!==f&&d(_.current),f&&f!==_.current&&(f.addEventListener(nn,O),f.addEventListener(_t,O),_.current=f)}return y.useEffect(function(){return function(){d(_.current)}},[]),[x,d]};function an(K,_,L,O){var d=O.motionEnter,x=d===void 0?!0:d,f=O.motionAppear,I=f===void 0?!0:f,F=O.motionLeave,H=F===void 0?!0:F,te=O.motionDeadline,ie=O.motionLeaveImmediately,ve=O.onAppearPrepare,je=O.onEnterPrepare,Pe=O.onLeavePrepare,De=O.onAppearStart,lt=O.onEnterStart,xt=O.onLeaveStart,Ze=O.onAppearActive,wt=O.onEnterActive,dt=O.onLeaveActive,bt=O.onAppearEnd,St=O.onEnterEnd,It=O.onLeaveEnd,Mt=O.onVisibleChanged,pn=zt(),Ct=Object(z.a)(pn,2),pt=Ct[0],ht=Ct[1],Ht=zt(Ut),Kt=Object(z.a)(Ht,2),rt=Kt[0],Xt=Kt[1],cn=zt(null),Yt=Object(z.a)(cn,2),tn=Yt[0],mn=Yt[1],Un=Object(y.useRef)(!1),Gn=Object(y.useRef)(null),gn=Object(y.useRef)(!1),Vn=Object(y.useRef)(null);function ra(){var dn=L();return dn||Vn.current}var Yn=Object(y.useRef)(!1);function Jn(dn){var qt=ra();if(dn&&!dn.deadline&&dn.target!==qt)return;var Fn;rt===Qt&&Yn.current?Fn=bt==null?void 0:bt(qt,dn):rt===Vt&&Yn.current?Fn=St==null?void 0:St(qt,dn):rt===jt&&Yn.current&&(Fn=It==null?void 0:It(qt,dn)),Fn!==!1&&!gn.current&&(Xt(Ut),mn(null))}var On=Jt(Jn),Wn=Object(z.a)(On,1),kn=Wn[0],Pn=y.useMemo(function(){var dn,qt,Fn;switch(rt){case"appear":return dn={},Object(Y.a)(dn,Ft,ve),Object(Y.a)(dn,ze,De),Object(Y.a)(dn,ct,Ze),dn;case"enter":return qt={},Object(Y.a)(qt,Ft,je),Object(Y.a)(qt,ze,lt),Object(Y.a)(qt,ct,wt),qt;case"leave":return Fn={},Object(Y.a)(Fn,Ft,Pe),Object(Y.a)(Fn,ze,xt),Object(Y.a)(Fn,ct,dt),Fn;default:return{}}},[rt]),ga=vn(rt,function(dn){if(dn===Ft){var qt=Pn[Ft];return qt?qt(ra()):on}if(sn in Pn){var Fn;mn(((Fn=Pn[sn])===null||Fn===void 0?void 0:Fn.call(Pn,ra(),null))||null)}return sn===ct&&(kn(ra()),te>0&&(clearTimeout(Gn.current),Gn.current=setTimeout(function(){Jn({deadline:!0})},te))),bn}),ba=Object(z.a)(ga,2),ja=ba[0],sn=ba[1],da=fn(sn);Yn.current=da,Ye(function(){ht(_);var dn=Un.current;if(Un.current=!0,!K)return;var qt;!dn&&_&&I&&(qt=Qt),dn&&_&&x&&(qt=Vt),(dn&&!_&&H||!dn&&ie&&!_&&H)&&(qt=jt),qt&&(Xt(qt),ja())},[_]),Object(y.useEffect)(function(){(rt===Qt&&!I||rt===Vt&&!x||rt===jt&&!H)&&Xt(Ut)},[I,x,H]),Object(y.useEffect)(function(){return function(){clearTimeout(Gn.current),gn.current=!0}},[]),Object(y.useEffect)(function(){pt!==void 0&&rt===Ut&&(Mt==null||Mt(pt))},[pt,rt]);var Pa=tn;return Pn[Ft]&&sn===ze&&(Pa=Object(ee.a)({transition:"none"},Pa)),[rt,sn,Pa,pt!=null?pt:_]}var En=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(){return Object(N.a)(this,L),_.apply(this,arguments)}return Object(J.a)(L,[{key:"render",value:function(){return this.props.children}}]),L}(y.Component),Zt=En;function Sn(K){var _=K;Object(b.a)(K)==="object"&&(_=K.transitionSupport);function L(d){return!!(d.motionName&&_)}var O=y.forwardRef(function(d,x){var f=d.visible,I=f===void 0?!0:f,F=d.removeOnLeave,H=F===void 0?!0:F,te=d.forceRender,ie=d.children,ve=d.motionName,je=d.leavedClassName,Pe=d.eventProps,De=L(d),lt=Object(y.useRef)(),xt=Object(y.useRef)();function Ze(){try{return Object(Rt.a)(lt.current||xt.current)}catch(Xt){return null}}var wt=an(De,I,Ze,d),dt=Object(z.a)(wt,4),bt=dt[0],St=dt[1],It=dt[2],Mt=dt[3],pn=y.useRef(Mt);Mt&&(pn.current=!0);var Ct=Object(y.useRef)(x);Ct.current=x;var pt=y.useCallback(function(Xt){lt.current=Xt,Object(de.b)(Ct.current,Xt)},[]),ht,Ht=Object(ee.a)(Object(ee.a)({},Pe),{},{visible:I});if(!ie)ht=null;else if(bt===Ut||!L(d))Mt?ht=ie(Object(ee.a)({},Ht),pt):!H&&pn.current?ht=ie(Object(ee.a)(Object(ee.a)({},Ht),{},{className:je}),pt):te?ht=ie(Object(ee.a)(Object(ee.a)({},Ht),{},{style:{display:"none"}}),pt):ht=null;else{var Kt,rt;St===Ft?rt="prepare":fn(St)?rt="active":St===ze&&(rt="start"),ht=ie(Object(ee.a)(Object(ee.a)({},Ht),{},{className:oe()(Gt(ve,bt),(Kt={},Object(Y.a)(Kt,Gt(ve,"".concat(bt,"-").concat(rt)),rt),Object(Y.a)(Kt,ve,typeof ve=="string"),Kt)),style:It}),pt)}return y.createElement(Zt,{ref:xt},ht)});return O.displayName="CSSMotion",O}var yn=Sn(Nt),wn="add",xn="keep",An="remove",Rn="removed";function Nn(K){var _;return K&&Object(b.a)(K)==="object"&&"key"in K?_=K:_={key:K},Object(ee.a)(Object(ee.a)({},_),{},{key:String(_.key)})}function Dn(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return K.map(Nn)}function vt(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=[],O=0,d=_.length,x=Dn(K),f=Dn(_);x.forEach(function(H){for(var te=!1,ie=O;ie1});return F.forEach(function(H){L=L.filter(function(te){var ie=te.key,ve=te.status;return ie!==H||ve!==An}),L.forEach(function(te){te.key===H&&(te.status=xn)})}),L}var pe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Je(K){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yn,L=function(O){Object(X.a)(x,O);var d=Object(M.a)(x);function x(){var f;return Object(N.a)(this,x),f=d.apply(this,arguments),f.state={keyEntities:[]},f.removeKey=function(I){f.setState(function(F){var H=F.keyEntities;return{keyEntities:H.map(function(te){return te.key!==I?te:Object(ee.a)(Object(ee.a)({},te),{},{status:Rn})})}})},f}return Object(J.a)(x,[{key:"render",value:function(){var I=this,F=this.state.keyEntities,H=this.props,te=H.component,ie=H.children,ve=H.onVisibleChanged,je=Object(ce.a)(H,["component","children","onVisibleChanged"]),Pe=te||y.Fragment,De={};return pe.forEach(function(lt){De[lt]=je[lt],delete je[lt]}),delete je.keys,y.createElement(Pe,je,F.map(function(lt){var xt=lt.status,Ze=Object(ce.a)(lt,["status"]),wt=xt===wn||xt===xn;return y.createElement(_,Object(G.a)({},De,{key:Ze.key,visible:wt,eventProps:Ze,onVisibleChanged:function(bt){ve==null||ve(bt,{key:Ze.key}),bt||I.removeKey(Ze.key)}}),ie)}))}}],[{key:"getDerivedStateFromProps",value:function(I,F){var H=I.keys,te=F.keyEntities,ie=Dn(H),ve=vt(te,ie);return{keyEntities:ve.filter(function(je){var Pe=te.find(function(De){var lt=De.key;return je.key===lt});return!(Pe&&Pe.status===Rn&&je.status===An)})}}}]),x}(y.Component);return L.defaultProps={component:"div"},L}var ot=Je(Nt),st=yn;function Pt(K){var _=K.prefixCls,L=K.motion,O=K.animation,d=K.transitionName;return L||(O?{motionName:"".concat(_,"-").concat(O)}:d?{motionName:d}:null)}function Ot(K){var _=K.prefixCls,L=K.visible,O=K.zIndex,d=K.mask,x=K.maskMotion,f=K.maskAnimation,I=K.maskTransitionName;if(!d)return null;var F={};return(x||I||f)&&(F=Object(ee.a)({motionAppear:!0},Pt({motion:x,prefixCls:_,transitionName:I,animation:f}))),y.createElement(st,Object(G.a)({},F,{visible:L,removeOnLeave:!0}),function(H){var te=H.className;return y.createElement("div",{style:{zIndex:O},className:oe()("".concat(_,"-mask"),te)})})}var gt=o("9mu1"),Z=o("o0o1"),xe=o.n(Z),fe=o("HaE+"),be=["measure","align",null,"motion"],Ce=function(K,_){var L=Object(y.useState)(null),O=Object(z.a)(L,2),d=O[0],x=O[1],f=Object(y.useRef)(),I=Object(y.useRef)(!1);function F(ie){I.current||x(ie)}function H(){Et.a.cancel(f.current)}function te(ie){H(),f.current=Object(Et.a)(function(){F(function(ve){switch(d){case"align":return"motion";case"motion":return"stable";default:}return ve}),ie==null||ie()})}return Object(y.useEffect)(function(){F("measure")},[K]),Object(y.useEffect)(function(){switch(d){case"measure":_();break;default:}d&&(f.current=Object(Et.a)(Object(fe.a)(xe.a.mark(function ie(){var ve,je;return xe.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:ve=be.indexOf(d),je=be[ve+1],je&&ve!==-1&&F(je);case 3:case"end":return De.stop()}},ie)}))))},[d]),Object(y.useEffect)(function(){return function(){I.current=!0,H()}},[]),[d,te]},Ue=function(K){var _=y.useState({width:0,height:0}),L=Object(z.a)(_,2),O=L[0],d=L[1];function x(I){d({width:I.offsetWidth,height:I.offsetHeight})}var f=y.useMemo(function(){var I={};if(K){var F=O.width,H=O.height;K.indexOf("height")!==-1&&H?I.height=H:K.indexOf("minHeight")!==-1&&H&&(I.minHeight=H),K.indexOf("width")!==-1&&F?I.width=F:K.indexOf("minWidth")!==-1&&F&&(I.minWidth=F)}return I},[K,O]);return[f,x]},he=y.forwardRef(function(K,_){var L=K.visible,O=K.prefixCls,d=K.className,x=K.style,f=K.children,I=K.zIndex,F=K.stretch,H=K.destroyPopupOnHide,te=K.forceRender,ie=K.align,ve=K.point,je=K.getRootDomNode,Pe=K.getClassNameFromAlign,De=K.onAlign,lt=K.onMouseEnter,xt=K.onMouseLeave,Ze=K.onMouseDown,wt=K.onTouchStart,dt=Object(y.useRef)(),bt=Object(y.useRef)(),St=Object(y.useState)(),It=Object(z.a)(St,2),Mt=It[0],pn=It[1],Ct=Ue(F),pt=Object(z.a)(Ct,2),ht=pt[0],Ht=pt[1];function Kt(){F&&Ht(je())}var rt=Ce(L,Kt),Xt=Object(z.a)(rt,2),cn=Xt[0],Yt=Xt[1],tn=Object(y.useRef)();function mn(){return ve||je}function Un(){var On;(On=dt.current)===null||On===void 0||On.forceAlign()}function Gn(On,Wn){var kn=Pe(Wn);Mt!==kn&&pn(kn),cn==="align"&&(Mt!==kn?Promise.resolve().then(function(){Un()}):Yt(function(){var Pn;(Pn=tn.current)===null||Pn===void 0||Pn.call(tn)}),De==null||De(On,Wn))}var gn=Object(ee.a)({},Pt(K));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(On){var Wn=gn[On];gn[On]=function(kn,Pn){return Yt(),Wn==null?void 0:Wn(kn,Pn)}});function Vn(){return new Promise(function(On){tn.current=On})}y.useEffect(function(){!gn.motionName&&cn==="motion"&&Yt()},[gn.motionName,cn]),y.useImperativeHandle(_,function(){return{forceAlign:Un,getElement:function(){return bt.current}}});var ra=Object(ee.a)(Object(ee.a)({},ht),{},{zIndex:I,opacity:cn==="motion"||cn==="stable"||!L?void 0:0,pointerEvents:cn==="stable"?void 0:"none"},x),Yn=!0;(ie==null?void 0:ie.points)&&(cn==="align"||cn==="stable")&&(Yn=!1);var Jn=f;return y.Children.count(f)>1&&(Jn=y.createElement("div",{className:"".concat(O,"-content")},f)),y.createElement(st,Object(G.a)({visible:L,ref:bt,leavedClassName:"".concat(O,"-hidden")},gn,{onAppearPrepare:Vn,onEnterPrepare:Vn,removeOnLeave:H,forceRender:te}),function(On,Wn){var kn=On.className,Pn=On.style,ga=oe()(O,d,Mt,kn);return y.createElement(gt.a,{target:mn(),key:"popup",ref:dt,monitorWindowResize:!0,disabled:Yn,align:ie,onAlign:Gn},y.createElement("div",{ref:Wn,className:ga,onMouseEnter:lt,onMouseLeave:xt,onMouseDownCapture:Ze,onTouchStartCapture:wt,style:Object(ee.a)(Object(ee.a)({},Pn),ra)},Jn))})});he.displayName="PopupInner";var Ie=he,nt=y.forwardRef(function(K,_){var L=K.prefixCls,O=K.visible,d=K.zIndex,x=K.children,f=K.mobile;f=f===void 0?{}:f;var I=f.popupClassName,F=f.popupStyle,H=f.popupMotion,te=H===void 0?{}:H,ie=f.popupRender,ve=y.useRef();y.useImperativeHandle(_,function(){return{forceAlign:function(){},getElement:function(){return ve.current}}});var je=Object(ee.a)({zIndex:d},F),Pe=x;return y.Children.count(x)>1&&(Pe=y.createElement("div",{className:"".concat(L,"-content")},x)),ie&&(Pe=ie(Pe)),y.createElement(st,Object(G.a)({visible:O,ref:ve,removeOnLeave:!0},te),function(De,lt){var xt=De.className,Ze=De.style,wt=oe()(L,I,xt);return y.createElement("div",{ref:lt,className:wt,style:Object(ee.a)(Object(ee.a)({},Ze),je)},Pe)})});nt.displayName="MobilePopupInner";var Tn=nt,hn=["visible","mobile"],Ln=y.forwardRef(function(K,_){var L=K.visible,O=K.mobile,d=Object(ce.a)(K,hn),x=Object(y.useState)(L),f=Object(z.a)(x,2),I=f[0],F=f[1],H=Object(y.useState)(!1),te=Object(z.a)(H,2),ie=te[0],ve=te[1],je=Object(ee.a)(Object(ee.a)({},d),{},{visible:I});Object(y.useEffect)(function(){F(L),L&&O&&ve(ke())},[L,O]);var Pe=ie?y.createElement(Tn,Object(G.a)({},je,{mobile:O,ref:_})):y.createElement(Ie,Object(G.a)({},je,{ref:_}));return y.createElement("div",null,y.createElement(Ot,je),Pe)});Ln.displayName="Popup";var $t=Ln,mt=y.createContext(null),Dt=mt;function _n(){}function Zn(){return""}function Ma(K){return K?K.ownerDocument:window.document}var $n=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Da(K){var _=function(L){Object(X.a)(d,L);var O=Object(M.a)(d);function d(x){var f;Object(N.a)(this,d),f=O.call(this,x),f.popupRef=y.createRef(),f.triggerRef=y.createRef(),f.attachId=void 0,f.clickOutsideHandler=void 0,f.touchOutsideHandler=void 0,f.contextMenuOutsideHandler1=void 0,f.contextMenuOutsideHandler2=void 0,f.mouseDownTimeout=void 0,f.focusTime=void 0,f.preClickTime=void 0,f.preTouchTime=void 0,f.delayTimer=void 0,f.hasPopupMouseDown=void 0,f.onMouseEnter=function(F){var H=f.props.mouseEnterDelay;f.fireEvents("onMouseEnter",F),f.delaySetPopupVisible(!0,H,H?null:F)},f.onMouseMove=function(F){f.fireEvents("onMouseMove",F),f.setPoint(F)},f.onMouseLeave=function(F){f.fireEvents("onMouseLeave",F),f.delaySetPopupVisible(!1,f.props.mouseLeaveDelay)},f.onPopupMouseEnter=function(){f.clearDelayTimer()},f.onPopupMouseLeave=function(F){var H;if(F.relatedTarget&&!F.relatedTarget.setTimeout&&Object(tt.a)((H=f.popupRef.current)===null||H===void 0?void 0:H.getElement(),F.relatedTarget))return;f.delaySetPopupVisible(!1,f.props.mouseLeaveDelay)},f.onFocus=function(F){f.fireEvents("onFocus",F),f.clearDelayTimer(),f.isFocusToShow()&&(f.focusTime=Date.now(),f.delaySetPopupVisible(!0,f.props.focusDelay))},f.onMouseDown=function(F){f.fireEvents("onMouseDown",F),f.preClickTime=Date.now()},f.onTouchStart=function(F){f.fireEvents("onTouchStart",F),f.preTouchTime=Date.now()},f.onBlur=function(F){f.fireEvents("onBlur",F),f.clearDelayTimer(),f.isBlurToHide()&&f.delaySetPopupVisible(!1,f.props.blurDelay)},f.onContextMenu=function(F){F.preventDefault(),f.fireEvents("onContextMenu",F),f.setPopupVisible(!0,F)},f.onContextMenuClose=function(){f.isContextMenuToShow()&&f.close()},f.onClick=function(F){if(f.fireEvents("onClick",F),f.focusTime){var H;if(f.preClickTime&&f.preTouchTime?H=Math.min(f.preClickTime,f.preTouchTime):f.preClickTime?H=f.preClickTime:f.preTouchTime&&(H=f.preTouchTime),Math.abs(H-f.focusTime)<20)return;f.focusTime=0}f.preClickTime=0,f.preTouchTime=0,f.isClickToShow()&&(f.isClickToHide()||f.isBlurToHide())&&F&&F.preventDefault&&F.preventDefault();var te=!f.state.popupVisible;(f.isClickToHide()&&!te||te&&f.isClickToShow())&&f.setPopupVisible(!f.state.popupVisible,F)},f.onPopupMouseDown=function(){if(f.hasPopupMouseDown=!0,clearTimeout(f.mouseDownTimeout),f.mouseDownTimeout=window.setTimeout(function(){f.hasPopupMouseDown=!1},0),f.context){var F;(F=f.context).onPopupMouseDown.apply(F,arguments)}},f.onDocumentClick=function(F){if(f.props.mask&&!f.props.maskClosable)return;var H=F.target,te=f.getRootDomNode(),ie=f.getPopupDomNode();(!Object(tt.a)(te,H)||f.isContextMenuOnly())&&!Object(tt.a)(ie,H)&&!f.hasPopupMouseDown&&f.close()},f.getRootDomNode=function(){var F=f.props.getTriggerDOMNode;if(F)return F(f.triggerRef.current);try{var H=Object(Rt.a)(f.triggerRef.current);if(H)return H}catch(te){}return At.a.findDOMNode(Object(S.a)(f))},f.getPopupClassNameFromAlign=function(F){var H=[],te=f.props,ie=te.popupPlacement,ve=te.builtinPlacements,je=te.prefixCls,Pe=te.alignPoint,De=te.getPopupClassNameFromAlign;return ie&&ve&&H.push(Se(ve,je,F,Pe)),De&&H.push(De(F)),H.join(" ")},f.getComponent=function(){var F=f.props,H=F.prefixCls,te=F.destroyPopupOnHide,ie=F.popupClassName,ve=F.onPopupAlign,je=F.popupMotion,Pe=F.popupAnimation,De=F.popupTransitionName,lt=F.popupStyle,xt=F.mask,Ze=F.maskAnimation,wt=F.maskTransitionName,dt=F.maskMotion,bt=F.zIndex,St=F.popup,It=F.stretch,Mt=F.alignPoint,pn=F.mobile,Ct=F.forceRender,pt=f.state,ht=pt.popupVisible,Ht=pt.point,Kt=f.getPopupAlign(),rt={};return f.isMouseEnterToShow()&&(rt.onMouseEnter=f.onPopupMouseEnter),f.isMouseLeaveToHide()&&(rt.onMouseLeave=f.onPopupMouseLeave),rt.onMouseDown=f.onPopupMouseDown,rt.onTouchStart=f.onPopupMouseDown,y.createElement($t,Object(G.a)({prefixCls:H,destroyPopupOnHide:te,visible:ht,point:Mt&&Ht,className:ie,align:Kt,onAlign:ve,animation:Pe,getClassNameFromAlign:f.getPopupClassNameFromAlign},rt,{stretch:It,getRootDomNode:f.getRootDomNode,style:lt,mask:xt,zIndex:bt,transitionName:De,maskAnimation:Ze,maskTransitionName:wt,maskMotion:dt,ref:f.popupRef,motion:je,mobile:pn,forceRender:Ct}),typeof St=="function"?St():St)},f.attachParent=function(F){Et.a.cancel(f.attachId);var H=f.props,te=H.getPopupContainer,ie=H.getDocument,ve=f.getRootDomNode(),je;te?(ve||te.length===0)&&(je=te(ve)):je=ie(f.getRootDomNode()).body,je?je.appendChild(F):f.attachId=Object(Et.a)(function(){f.attachParent(F)})},f.getContainer=function(){var F=f.props.getDocument,H=F(f.getRootDomNode()).createElement("div");return H.style.position="absolute",H.style.top="0",H.style.left="0",H.style.width="100%",f.attachParent(H),H},f.setPoint=function(F){var H=f.props.alignPoint;if(!H||!F)return;f.setState({point:{pageX:F.pageX,pageY:F.pageY}})},f.handlePortalUpdate=function(){f.state.prevPopupVisible!==f.state.popupVisible&&f.props.afterPopupVisibleChange(f.state.popupVisible)},f.triggerContextValue={onPopupMouseDown:f.onPopupMouseDown};var I;return"popupVisible"in x?I=!!x.popupVisible:I=!!x.defaultPopupVisible,f.state={prevPopupVisible:I,popupVisible:I},$n.forEach(function(F){f["fire".concat(F)]=function(H){f.fireEvents(F,H)}}),f}return Object(J.a)(d,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var f=this.props,I=this.state;if(I.popupVisible){var F;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(F=f.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Me.a)(F,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(F=F||f.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Me.a)(F,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(F=F||f.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Me.a)(F,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Me.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Et.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var f;return((f=this.popupRef.current)===null||f===void 0?void 0:f.getElement())||null}},{key:"getPopupAlign",value:function(){var f=this.props,I=f.popupPlacement,F=f.popupAlign,H=f.builtinPlacements;return I&&H?He(H,I,F):F}},{key:"setPopupVisible",value:function(f,I){var F=this.props.alignPoint,H=this.state.popupVisible;this.clearDelayTimer(),H!==f&&("popupVisible"in this.props||this.setState({popupVisible:f,prevPopupVisible:H}),this.props.onPopupVisibleChange(f)),F&&I&&f&&this.setPoint(I)}},{key:"delaySetPopupVisible",value:function(f,I,F){var H=this,te=I*1e3;if(this.clearDelayTimer(),te){var ie=F?{pageX:F.pageX,pageY:F.pageY}:null;this.delayTimer=window.setTimeout(function(){H.setPopupVisible(f,ie),H.clearDelayTimer()},te)}else this.setPopupVisible(f,F)}},{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(f){var I=this.props.children.props,F=this.props;return I[f]&&F[f]?this["fire".concat(f)]:I[f]||F[f]}},{key:"isClickToShow",value:function(){var f=this.props,I=f.action,F=f.showAction;return I.indexOf("click")!==-1||F.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var f=this.props.action;return f==="contextMenu"||f.length===1&&f[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var f=this.props,I=f.action,F=f.showAction;return I.indexOf("contextMenu")!==-1||F.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var f=this.props,I=f.action,F=f.hideAction;return I.indexOf("click")!==-1||F.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var f=this.props,I=f.action,F=f.showAction;return I.indexOf("hover")!==-1||F.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var f=this.props,I=f.action,F=f.hideAction;return I.indexOf("hover")!==-1||F.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var f=this.props,I=f.action,F=f.showAction;return I.indexOf("focus")!==-1||F.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var f=this.props,I=f.action,F=f.hideAction;return I.indexOf("focus")!==-1||F.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var f;(f=this.popupRef.current)===null||f===void 0||f.forceAlign()}}},{key:"fireEvents",value:function(f,I){var F=this.props.children.props[f];F&&F(I);var H=this.props[f];H&&H(I)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var f=this.state.popupVisible,I=this.props,F=I.children,H=I.forceRender,te=I.alignPoint,ie=I.className,ve=I.autoDestroy,je=y.Children.only(F),Pe={key:"trigger"};this.isContextMenuToShow()?Pe.onContextMenu=this.onContextMenu:Pe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Pe.onClick=this.onClick,Pe.onMouseDown=this.onMouseDown,Pe.onTouchStart=this.onTouchStart):(Pe.onClick=this.createTwoChains("onClick"),Pe.onMouseDown=this.createTwoChains("onMouseDown"),Pe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Pe.onMouseEnter=this.onMouseEnter,te&&(Pe.onMouseMove=this.onMouseMove)):Pe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Pe.onMouseLeave=this.onMouseLeave:Pe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Pe.onFocus=this.onFocus,Pe.onBlur=this.onBlur):(Pe.onFocus=this.createTwoChains("onFocus"),Pe.onBlur=this.createTwoChains("onBlur"));var De=oe()(je&&je.props&&je.props.className,ie);De&&(Pe.className=De);var lt=Object(ee.a)({},Pe);Object(de.c)(je)&&(lt.ref=Object(de.a)(this.triggerRef,je.ref));var xt=y.cloneElement(je,lt),Ze;return(f||this.popupRef.current||H)&&(Ze=y.createElement(K,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!f&&ve&&(Ze=null),y.createElement(Dt.Provider,{value:this.triggerContextValue},xt,Ze)}}],[{key:"getDerivedStateFromProps",value:function(f,I){var F=f.popupVisible,H={};return F!==void 0&&I.popupVisible!==F&&(H.popupVisible=F,H.prevPopupVisible=I.popupVisible),H}}]),d}(y.Component);return _.contextType=Dt,_.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Zn,getDocument:Ma,onPopupVisibleChange:_n,afterPopupVisibleChange:_n,onPopupAlign:_n,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},_}var oa=Da(Ne.a),Kn={adjustX:1,adjustY:1},ya={topLeft:{points:["bl","tl"],overflow:Kn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Kn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Kn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Kn,offset:[4,0]}},Oa={topLeft:{points:["bl","tl"],overflow:Kn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Kn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Kn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Kn,offset:[4,0]}},wa=ya,In=0,zn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Bn=function(_,L,O){var d=Ae(L),x=_.getState();_.setState({defaultActiveFirst:Object(ee.a)(Object(ee.a)({},x.defaultActiveFirst),{},Object(Y.a)({},d,O))})},rn=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(O){var d;Object(N.a)(this,L),d=_.call(this,O),d.onDestroy=function(te){d.props.onDestroy(te)},d.onKeyDown=function(te){var ie=te.keyCode,ve=d.menuInstance,je=d.props.store,Pe=d.getVisible();if(ie===c.a.ENTER)return d.onTitleClick(te),Bn(je,d.props.eventKey,!0),!0;if(ie===c.a.RIGHT)return Pe?ve.onKeyDown(te):(d.triggerOpenChange(!0),Bn(je,d.props.eventKey,!0)),!0;if(ie===c.a.LEFT){var De;if(Pe)De=ve.onKeyDown(te);else return;return De||(d.triggerOpenChange(!1),De=!0),De}return Pe&&(ie===c.a.UP||ie===c.a.DOWN)?ve.onKeyDown(te):void 0},d.onOpenChange=function(te){d.props.onOpenChange(te)},d.onPopupVisibleChange=function(te){d.triggerOpenChange(te,te?"mouseenter":"mouseleave")},d.onMouseEnter=function(te){var ie=d.props,ve=ie.eventKey,je=ie.onMouseEnter,Pe=ie.store;Bn(Pe,d.props.eventKey,!1),je({key:ve,domEvent:te})},d.onMouseLeave=function(te){var ie=d.props,ve=ie.parentMenu,je=ie.eventKey,Pe=ie.onMouseLeave;ve.subMenuInstance=Object(S.a)(d),Pe({key:je,domEvent:te})},d.onTitleMouseEnter=function(te){var ie=d.props,ve=ie.eventKey,je=ie.onItemHover,Pe=ie.onTitleMouseEnter;je({key:ve,hover:!0}),Pe({key:ve,domEvent:te})},d.onTitleMouseLeave=function(te){var ie=d.props,ve=ie.parentMenu,je=ie.eventKey,Pe=ie.onItemHover,De=ie.onTitleMouseLeave;ve.subMenuInstance=Object(S.a)(d),Pe({key:je,hover:!1}),De({key:je,domEvent:te})},d.onTitleClick=function(te){var ie=Object(S.a)(d),ve=ie.props;if(ve.onTitleClick({key:ve.eventKey,domEvent:te}),ve.triggerSubMenuAction==="hover")return;d.triggerOpenChange(!d.getVisible(),"click"),Bn(ve.store,d.props.eventKey,!1)},d.onSubMenuClick=function(te){typeof d.props.onClick=="function"&&d.props.onClick(d.addKeyPath(te))},d.onSelect=function(te){d.props.onSelect(te)},d.onDeselect=function(te){d.props.onDeselect(te)},d.getPrefixCls=function(){return"".concat(d.props.rootPrefixCls,"-submenu")},d.getActiveClassName=function(){return"".concat(d.getPrefixCls(),"-active")},d.getDisabledClassName=function(){return"".concat(d.getPrefixCls(),"-disabled")},d.getSelectedClassName=function(){return"".concat(d.getPrefixCls(),"-selected")},d.getOpenClassName=function(){return"".concat(d.props.rootPrefixCls,"-submenu-open")},d.getVisible=function(){return d.state.isOpen},d.getMode=function(){return d.state.mode},d.saveMenuInstance=function(te){d.menuInstance=te},d.addKeyPath=function(te){return Object(ee.a)(Object(ee.a)({},te),{},{keyPath:(te.keyPath||[]).concat(d.props.eventKey)})},d.triggerOpenChange=function(te,ie){var ve=d.props.eventKey,je=function(){d.onOpenChange({key:ve,item:Object(S.a)(d),trigger:ie,open:te})};ie==="mouseenter"?d.mouseenterTimeout=setTimeout(function(){je()},0):je()},d.isChildrenSelected=function(){var te={find:!1};return Xe(d.props.children,d.props.selectedKeys,te),te.find},d.isInlineMode=function(){return d.getMode()==="inline"},d.adjustWidth=function(){if(!d.subMenuTitle||!d.menuInstance)return;var te=ut.findDOMNode(d.menuInstance);if(te.offsetWidth>=d.subMenuTitle.offsetWidth)return;te.style.minWidth="".concat(d.subMenuTitle.offsetWidth,"px")},d.saveSubMenuTitle=function(te){d.subMenuTitle=te},d.getBaseProps=function(){var te=Object(S.a)(d),ie=te.props,ve=d.getMode();return{mode:ve==="horizontal"?"vertical":ve,visible:d.getVisible(),level:ie.level+1,inlineIndent:ie.inlineIndent,focusable:!1,onClick:d.onSubMenuClick,onSelect:d.onSelect,onDeselect:d.onDeselect,onDestroy:d.onDestroy,selectedKeys:ie.selectedKeys,eventKey:"".concat(ie.eventKey,"-menu-"),openKeys:ie.openKeys,motion:ie.motion,onOpenChange:d.onOpenChange,subMenuOpenDelay:ie.subMenuOpenDelay,parentMenu:Object(S.a)(d),subMenuCloseDelay:ie.subMenuCloseDelay,forceSubMenuRender:ie.forceSubMenuRender,triggerSubMenuAction:ie.triggerSubMenuAction,builtinPlacements:ie.builtinPlacements,defaultActiveFirst:ie.store.getState().defaultActiveFirst[Ae(ie.eventKey)],multiple:ie.multiple,prefixCls:ie.rootPrefixCls,id:d.internalMenuId,manualRef:d.saveMenuInstance,itemIcon:ie.itemIcon,expandIcon:ie.expandIcon,direction:ie.direction}},d.getMotion=function(te,ie){var ve=Object(S.a)(d),je=ve.haveRendered,Pe=d.props,De=Pe.motion,lt=Pe.rootPrefixCls,xt=Object(ee.a)(Object(ee.a)({},De),{},{leavedClassName:"".concat(lt,"-hidden"),removeOnLeave:!1,motionAppear:je||!ie||te!=="inline"});return xt};var x=O.store,f=O.eventKey,I=x.getState(),F=I.defaultActiveFirst;d.isRootMenu=!1;var H=!1;return F&&(H=F[f]),Bn(x,f,H),d.state={mode:O.mode,isOpen:O.isOpen},d}return Object(J.a)(L,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var d=this,x=this.props,f=x.mode,I=x.parentMenu,F=x.manualRef,H=x.isOpen,te=function(){d.setState({mode:f,isOpen:H})},ie=H!==this.state.isOpen,ve=f!==this.state.mode;if((ve||ie)&&(Et.a.cancel(this.updateStateRaf),ve?this.updateStateRaf=Object(Et.a)(te):te()),F&&F(this),f!=="horizontal"||!(I==null?void 0:I.isRootMenu)||!H)return;this.minWidthTimeout=setTimeout(function(){return d.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var d=this.props,x=d.onDestroy,f=d.eventKey;x&&x(f),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Et.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(d,x){var f=this.getBaseProps();return y.createElement(pa,Object(G.a)({},f,{id:this.internalMenuId,className:d,style:x}),this.props.children)}},{key:"renderChildren",value:function(){var d=this,x=this.getBaseProps(),f=x.mode,I=x.visible,F=x.forceSubMenuRender,H=x.direction,te=this.getMotion(f,I);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||I||F,!this.haveOpened)return y.createElement("div",null);var ie=oe()("".concat(x.prefixCls,"-sub"),Object(Y.a)({},"".concat(x.prefixCls,"-rtl"),H==="rtl"));return this.isInlineMode()?y.createElement(st,Object(G.a)({visible:x.visible,forceRender:F},te),function(ve){var je=ve.className,Pe=ve.style,De=oe()(ie,je);return d.renderPopupMenu(De,Pe)}):this.renderPopupMenu(ie)}},{key:"render",value:function(){var d,x,f,I=Object(ee.a)({},this.props),F=this.getVisible(),H=this.getPrefixCls(),te=this.isInlineMode(),ie=this.getMode(),ve=oe()(H,"".concat(H,"-").concat(ie),(d={},Object(Y.a)(d,I.className,!!I.className),Object(Y.a)(d,this.getOpenClassName(),F),Object(Y.a)(d,this.getActiveClassName(),I.active||F&&!te),Object(Y.a)(d,this.getDisabledClassName(),I.disabled),Object(Y.a)(d,this.getSelectedClassName(),this.isChildrenSelected()),d));this.internalMenuId||(I.eventKey?this.internalMenuId="".concat(I.eventKey,"$Menu"):(In+=1,this.internalMenuId="$__$".concat(In,"$Menu")));var je={},Pe={},De={};I.disabled||(je={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Pe={onClick:this.onTitleClick},De={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var lt={},xt=I.direction,Ze=xt==="rtl";te&&(Ze?lt.paddingRight=I.inlineIndent*I.level:lt.paddingLeft=I.inlineIndent*I.level);var wt={};this.getVisible()&&(wt={"aria-owns":this.internalMenuId});var dt=null;ie!=="horizontal"&&(dt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(dt=y.createElement(this.props.expandIcon,Object(ee.a)({},this.props))));var bt=y.createElement("div",Object(G.a)({ref:this.saveSubMenuTitle,style:lt,className:"".concat(H,"-title"),role:"button"},De,Pe,{"aria-expanded":F},wt,{"aria-haspopup":"true",title:typeof I.title=="string"?I.title:void 0}),I.title,dt||y.createElement("i",{className:"".concat(H,"-arrow")})),St=this.renderChildren(),It=((x=I.parentMenu)===null||x===void 0?void 0:x.isRootMenu)?I.parentMenu.props.getPopupContainer:function(mn){return mn.parentNode},Mt=zn[ie],pn=I.popupOffset?{offset:I.popupOffset}:{},Ct=oe()((f={},Object(Y.a)(f,I.popupClassName,I.popupClassName&&!te),Object(Y.a)(f,"".concat(H,"-rtl"),Ze),f)),pt=I.disabled,ht=I.triggerSubMenuAction,Ht=I.subMenuOpenDelay,Kt=I.forceSubMenuRender,rt=I.subMenuCloseDelay,Xt=I.builtinPlacements;V.forEach(function(mn){return delete I[mn]}),delete I.onClick;var cn=Ze?Object(ee.a)(Object(ee.a)({},Oa),Xt):Object(ee.a)(Object(ee.a)({},ya),Xt);delete I.direction;var Yt=this.getBaseProps(),tn=te?null:this.getMotion(Yt.mode,Yt.visible);return y.createElement("li",Object(G.a)({},I,je,{className:ve,role:"menuitem"}),y.createElement(oa,{prefixCls:H,popupClassName:oe()("".concat(H,"-popup"),Ct),getPopupContainer:It,builtinPlacements:cn,popupPlacement:Mt,popupVisible:te?!1:F,popupAlign:pn,popup:te?null:St,action:pt||te?[]:[ht],mouseEnterDelay:Ht,mouseLeaveDelay:rt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Kt,popupMotion:tn},bt),te?St:null)}}]),L}(y.Component);rn.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var qn=Object(D.b)(function(K,_){var L=K.openKeys,O=K.activeKey,d=K.selectedKeys,x=_.eventKey,f=_.subMenuKey;return{isOpen:L.indexOf(x)>-1,active:O[f]===x,selectedKeys:d}})(rn);qn.isSubMenu=!0;var sa=qn,xa="menuitem-overflowed",Xa=.5,La=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(){var O;return Object(N.a)(this,L),O=_.apply(this,arguments),O.resizeObserver=null,O.mutationObserver=null,O.originalTotalWidth=0,O.overflowedItems=[],O.menuItemSizes=[],O.cancelFrameId=null,O.state={lastVisibleIndex:void 0},O.childRef=y.createRef(),O.getMenuItemNodes=function(){var d=O.props.prefixCls,x=O.childRef.current;return x?[].slice.call(x.children).filter(function(f){return f.className.split(" ").indexOf("".concat(d,"-overflowed-submenu"))<0}):[]},O.getOverflowedSubMenuItem=function(d,x,f){var I=O.props,F=I.overflowedIndicator,H=I.level,te=I.mode,ie=I.prefixCls,ve=I.theme;if(H!==1||te!=="horizontal")return null;var je=O.props.children[0],Pe=je.props,De=Pe.children,lt=Pe.title,xt=Pe.style,Ze=Object(ce.a)(Pe,["children","title","style"]),wt=Object(ee.a)({},xt),dt="".concat(d,"-overflowed-indicator"),bt="".concat(d,"-overflowed-indicator");x.length===0&&f!==!0?wt=Object(ee.a)(Object(ee.a)({},wt),{},{display:"none"}):f&&(wt=Object(ee.a)(Object(ee.a)({},wt),{},{visibility:"hidden",position:"absolute"}),dt="".concat(dt,"-placeholder"),bt="".concat(bt,"-placeholder"));var St=ve?"".concat(ie,"-").concat(ve):"",It={};return V.forEach(function(Mt){Ze[Mt]!==void 0&&(It[Mt]=Ze[Mt])}),y.createElement(sa,Object(G.a)({title:F,className:"".concat(ie,"-overflowed-submenu"),popupClassName:St},It,{key:dt,eventKey:bt,disabled:!1,style:wt}),x)},O.setChildrenWidthAndResize=function(){if(O.props.mode!=="horizontal")return;var d=O.childRef.current;if(!d)return;var x=d.children;if(!x||x.length===0)return;var f=d.children[x.length-1];ge(f,"display","inline-block");var I=O.getMenuItemNodes(),F=I.filter(function(H){return H.className.split(" ").indexOf(xa)>=0});F.forEach(function(H){ge(H,"display","inline-block")}),O.menuItemSizes=I.map(function(H){return se(H,!0)}),F.forEach(function(H){ge(H,"display","none")}),O.overflowedIndicatorWidth=se(d.children[d.children.length-1],!0),O.originalTotalWidth=O.menuItemSizes.reduce(function(H,te){return H+te},0),O.handleResize(),ge(f,"display","none")},O.handleResize=function(){if(O.props.mode!=="horizontal")return;var d=O.childRef.current;if(!d)return;var x=se(d);O.overflowedItems=[];var f=0,I;O.originalTotalWidth>x+Xa&&(I=-1,O.menuItemSizes.forEach(function(F){f+=F,f+O.overflowedIndicatorWidth<=x&&(I+=1)})),O.setState({lastVisibleIndex:I})},O}return Object(J.a)(L,[{key:"componentDidMount",value:function(){var d=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var x=this.childRef.current;if(!x)return;this.resizeObserver=new qe.default(function(f){f.forEach(function(){var I=d.cancelFrameId;cancelAnimationFrame(I),d.cancelFrameId=requestAnimationFrame(d.setChildrenWidthAndResize)})}),[].slice.call(x.children).concat(x).forEach(function(f){d.resizeObserver.observe(f)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){d.resizeObserver.disconnect(),[].slice.call(x.children).concat(x).forEach(function(f){d.resizeObserver.observe(f)}),d.setChildrenWidthAndResize()}),this.mutationObserver.observe(x,{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(d){var x=this,f=this.state.lastVisibleIndex;return(d||[]).reduce(function(I,F,H){var te=F;if(x.props.mode==="horizontal"){var ie=x.getOverflowedSubMenuItem(F.props.eventKey,[]);f!==void 0&&x.props.className.indexOf("".concat(x.props.prefixCls,"-root"))!==-1&&(H>f&&(te=y.cloneElement(F,{style:{display:"none"},eventKey:"".concat(F.props.eventKey,"-hidden"),className:"".concat(xa)})),H===f+1&&(x.overflowedItems=d.slice(f+1).map(function(je){return y.cloneElement(je,{key:je.props.eventKey,mode:"vertical-left"})}),ie=x.getOverflowedSubMenuItem(F.props.eventKey,x.overflowedItems)));var ve=[].concat(Object(T.a)(I),[ie,te]);return H===d.length-1&&ve.push(x.getOverflowedSubMenuItem(F.props.eventKey,[],!0)),ve}return[].concat(Object(T.a)(I),[te])},[])}},{key:"render",value:function(){var d=this.props,x=d.visible,f=d.prefixCls,I=d.overflowedIndicator,F=d.mode,H=d.level,te=d.tag,ie=d.children,ve=d.theme,je=Object(ce.a)(d,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Pe=te;return y.createElement(Pe,Object(G.a)({ref:this.childRef},je),this.renderChildren(ie))}}]),L}(y.Component);La.defaultProps={tag:"div",className:""};var Ra=La;function la(K){return K.length?K.every(function(_){return!!_.props.disabled}):!0}function Xn(K,_,L){var O=K.getState();K.setState({activeKey:Object(ee.a)(Object(ee.a)({},O.activeKey),{},Object(Y.a)({},_,L))})}function ea(K){return K.eventKey||"0-menu-"}function fa(K,_){var L=_,O=K.children,d=K.eventKey;if(L){var x;if(Fe(O,function(f,I){f&&f.props&&!f.props.disabled&&L===ye(f,d,I)&&(x=!0)}),x)return L}return L=null,K.defaultActiveFirst&&Fe(O,function(f,I){!L&&f&&!f.props.disabled&&(L=ye(f,d,I))}),L}function Ta(K){if(!K)return;var _=this.instanceArray.indexOf(K);_!==-1?this.instanceArray[_]=K:this.instanceArray.push(K)}var ta=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(O){var d;return Object(N.a)(this,L),d=_.call(this,O),d.onKeyDown=function(x,f){var I=x.keyCode,F;if(d.getFlatInstanceArray().forEach(function(te){te&&te.props.active&&te.onKeyDown&&(F=te.onKeyDown(x))}),F)return 1;var H=null;return(I===c.a.UP||I===c.a.DOWN)&&(H=d.step(I===c.a.UP?-1:1)),H?(x.preventDefault(),Xn(d.props.store,ea(d.props),H.props.eventKey),typeof f=="function"&&f(H),1):void 0},d.onItemHover=function(x){var f=x.key,I=x.hover;Xn(d.props.store,ea(d.props),I?f:null)},d.onDeselect=function(x){d.props.onDeselect(x)},d.onSelect=function(x){d.props.onSelect(x)},d.onClick=function(x){d.props.onClick(x)},d.onOpenChange=function(x){d.props.onOpenChange(x)},d.onDestroy=function(x){d.props.onDestroy(x)},d.getFlatInstanceArray=function(){return d.instanceArray},d.step=function(x){var f=d.getFlatInstanceArray(),I=d.props.store.getState().activeKey[ea(d.props)],F=f.length;if(!F)return null;x<0&&(f=f.concat().reverse());var H=-1;if(f.every(function(je,Pe){return je&&je.props.eventKey===I?(H=Pe,!1):!0}),!d.props.defaultActiveFirst&&H!==-1&&la(f.slice(H,F-1)))return;var te=(H+1)%F,ie=te;do{var ve=f[ie];if(!ve||ve.props.disabled)ie=(ie+1)%F;else return ve}while(ie!==te);return null},d.renderCommonMenuItem=function(x,f,I){var F=d.props.store.getState(),H=Object(S.a)(d),te=H.props,ie=ye(x,te.eventKey,f),ve=x.props;if(!ve||typeof x.type=="string")return x;var je=ie===F.activeKey,Pe=Object(ee.a)(Object(ee.a)({mode:ve.mode||te.mode,level:te.level,inlineIndent:te.inlineIndent,renderMenuItem:d.renderMenuItem,rootPrefixCls:te.prefixCls,index:f,parentMenu:te.parentMenu,manualRef:ve.disabled?void 0:Object(w.a)(x.ref,Ta.bind(Object(S.a)(d))),eventKey:ie,active:!ve.disabled&&je,multiple:te.multiple,onClick:function(lt){(ve.onClick||le)(lt),d.onClick(lt)},onItemHover:d.onItemHover,motion:te.motion,subMenuOpenDelay:te.subMenuOpenDelay,subMenuCloseDelay:te.subMenuCloseDelay,forceSubMenuRender:te.forceSubMenuRender,onOpenChange:d.onOpenChange,onDeselect:d.onDeselect,onSelect:d.onSelect,builtinPlacements:te.builtinPlacements,itemIcon:ve.itemIcon||d.props.itemIcon,expandIcon:ve.expandIcon||d.props.expandIcon},I),{},{direction:te.direction});return(te.mode==="inline"||Te())&&(Pe.triggerSubMenuAction="click"),y.cloneElement(x,Object(ee.a)(Object(ee.a)({},Pe),{},{key:ie||f}))},d.renderMenuItem=function(x,f,I){if(!x)return null;var F=d.props.store.getState(),H={openKeys:F.openKeys,selectedKeys:F.selectedKeys,triggerSubMenuAction:d.props.triggerSubMenuAction,subMenuKey:I};return d.renderCommonMenuItem(x,f,H)},O.store.setState({activeKey:Object(ee.a)(Object(ee.a)({},O.store.getState().activeKey),{},Object(Y.a)({},O.eventKey,fa(O,O.activeKey)))}),d.instanceArray=[],d}return Object(J.a)(L,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(d){return this.props.visible||d.visible||this.props.className!==d.className||!k()(this.props.style,d.style)}},{key:"componentDidUpdate",value:function(d){var x=this.props,f="activeKey"in x?x.activeKey:x.store.getState().activeKey[ea(x)],I=fa(x,f);if(I!==f)Xn(x.store,ea(x),I);else if("activeKey"in d){var F=fa(d,d.activeKey);I!==F&&Xn(x.store,ea(x),I)}}},{key:"render",value:function(){var d=this,x=Object(G.a)({},this.props);this.instanceArray=[];var f=oe()(x.prefixCls,x.className,"".concat(x.prefixCls,"-").concat(x.mode)),I={className:f,role:x.role||"menu"};x.id&&(I.id=x.id),x.focusable&&(I.tabIndex=0,I.onKeyDown=this.onKeyDown);var F=x.prefixCls,H=x.eventKey,te=x.visible,ie=x.level,ve=x.mode,je=x.overflowedIndicator,Pe=x.theme;return V.forEach(function(De){return delete x[De]}),delete x.onClick,y.createElement(Ra,Object(G.a)({},x,{prefixCls:F,mode:ve,tag:"ul",level:ie,theme:Pe,visible:te,overflowedIndicator:je},I),Object(re.a)(x.children).map(function(De,lt){return d.renderMenuItem(De,lt,H||"0-menu-")}))}}]),L}(y.Component);ta.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var ha=Object(D.b)()(ta),pa=ha,na=o("Kwbf");function ma(K,_,L){var O=K.prefixCls,d=K.motion,x=K.defaultMotions,f=x===void 0?{}:x,I=K.openAnimation,F=K.openTransitionName,H=_.switchingModeFromInline;if(d)return d;if(Object(b.a)(I)==="object"&&I)Object(na.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof I=="string")return{motionName:"".concat(O,"-open-").concat(I)};if(F)return{motionName:F};var te=f[L];return te||(H?null:f.other)}var Ua=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(O){var d;Object(N.a)(this,L),d=_.call(this,O),d.onSelect=function(I){var F=Object(S.a)(d),H=F.props;if(H.selectable){var te=d.store.getState(),ie=te.selectedKeys,ve=I.key;H.multiple?ie=ie.concat([ve]):ie=[ve],"selectedKeys"in H||d.store.setState({selectedKeys:ie}),H.onSelect(Object(ee.a)(Object(ee.a)({},I),{},{selectedKeys:ie}))}},d.onClick=function(I){var F=d.getRealMenuMode(),H=Object(S.a)(d),te=H.store,ie=H.props.onOpenChange;F!=="inline"&&!("openKeys"in d.props)&&(te.setState({openKeys:[]}),ie([])),d.props.onClick(I)},d.onKeyDown=function(I,F){d.innerMenu.getWrappedInstance().onKeyDown(I,F)},d.onOpenChange=function(I){var F=Object(S.a)(d),H=F.props,te=d.store.getState().openKeys.concat(),ie=!1,ve=function(Pe){var De=!1;if(Pe.open)De=te.indexOf(Pe.key)===-1,De&&te.push(Pe.key);else{var lt=te.indexOf(Pe.key);De=lt!==-1,De&&te.splice(lt,1)}ie=ie||De};Array.isArray(I)?I.forEach(ve):ve(I),ie&&("openKeys"in d.props||d.store.setState({openKeys:te}),H.onOpenChange(te))},d.onDeselect=function(I){var F=Object(S.a)(d),H=F.props;if(H.selectable){var te=d.store.getState().selectedKeys.concat(),ie=I.key,ve=te.indexOf(ie);ve!==-1&&te.splice(ve,1),"selectedKeys"in H||d.store.setState({selectedKeys:te}),H.onDeselect(Object(ee.a)(Object(ee.a)({},I),{},{selectedKeys:te}))}},d.onMouseEnter=function(I){d.restoreModeVerticalFromInline();var F=d.props.onMouseEnter;F&&F(I)},d.onTransitionEnd=function(I){var F=I.propertyName==="width"&&I.target===I.currentTarget,H=I.target.className,te=Object.prototype.toString.call(H)==="[object SVGAnimatedString]"?H.animVal:H,ie=I.propertyName==="font-size"&&te.indexOf("anticon")>=0;(F||ie)&&d.restoreModeVerticalFromInline()},d.setInnerMenu=function(I){d.innerMenu=I},d.isRootMenu=!0;var x=O.defaultSelectedKeys,f=O.defaultOpenKeys;return"selectedKeys"in O&&(x=O.selectedKeys||[]),"openKeys"in O&&(f=O.openKeys||[]),d.store=Object(D.c)({selectedKeys:x,openKeys:f,activeKey:{"0-menu-":fa(O,O.activeKey)}}),d.state={switchingModeFromInline:!1,prevProps:O,inlineOpenKeys:[],store:d.store},d}return Object(J.a)(L,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(d){var x=this.props,f=x.siderCollapsed,I=x.inlineCollapsed,F=x.onOpenChange;(!d.inlineCollapsed&&I||!d.siderCollapsed&&f)&&F([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var d=this.props.collapsedWidth,x=this.store,f=this.prevOpenKeys,I=this.getInlineCollapsed()&&(d===0||d==="0"||d==="0px");I?(this.prevOpenKeys=x.getState().openKeys.concat(),this.store.setState({openKeys:[]})):f&&(this.store.setState({openKeys:f}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var d=this.props.mode,x=this.state.switchingModeFromInline,f=this.getInlineCollapsed();return x&&f?"inline":f?"vertical":d}},{key:"getInlineCollapsed",value:function(){var d=this.props,x=d.inlineCollapsed,f=d.siderCollapsed;return f!==void 0?f:x}},{key:"restoreModeVerticalFromInline",value:function(){var d=this.state.switchingModeFromInline;d&&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 d=Object(ee.a)({},Object(P.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),x=this.getRealMenuMode();return d.className+=" ".concat(d.prefixCls,"-root"),d.direction==="rtl"&&(d.className+=" ".concat(d.prefixCls,"-rtl")),d=Object(ee.a)(Object(ee.a)({},d),{},{mode:x,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ma(this.props,this.state,x)}),delete d.openAnimation,delete d.openTransitionName,y.createElement(D.a,{store:this.store},y.createElement(pa,Object(G.a)({},d,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(d,x){var f=x.prevProps,I=x.store,F=I.getState(),H={},te={prevProps:d};return f.mode==="inline"&&d.mode!=="inline"&&(te.switchingModeFromInline=!0),"openKeys"in d?H.openKeys=d.openKeys||[]:((d.inlineCollapsed&&!f.inlineCollapsed||d.siderCollapsed&&!f.siderCollapsed)&&(te.switchingModeFromInline=!0,te.inlineOpenKeys=F.openKeys,H.openKeys=[]),(!d.inlineCollapsed&&f.inlineCollapsed||!d.siderCollapsed&&f.siderCollapsed)&&(H.openKeys=x.inlineOpenKeys,te.inlineOpenKeys=[])),Object.keys(H).length&&I.setState(H),te}}]),L}(y.Component);Ua.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,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 ka=Ua,aa=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(){var O;return Object(N.a)(this,L),O=_.apply(this,arguments),O.onKeyDown=function(d){var x=d.keyCode;return x===c.a.ENTER?(O.onClick(d),!0):void 0},O.onMouseLeave=function(d){var x=O.props,f=x.eventKey,I=x.onItemHover,F=x.onMouseLeave;I({key:f,hover:!1}),F({key:f,domEvent:d})},O.onMouseEnter=function(d){var x=O.props,f=x.eventKey,I=x.onItemHover,F=x.onMouseEnter;I({key:f,hover:!0}),F({key:f,domEvent:d})},O.onClick=function(d){var x=O.props,f=x.eventKey,I=x.multiple,F=x.onClick,H=x.onSelect,te=x.onDeselect,ie=x.isSelected,ve={key:f,keyPath:[f],item:Object(S.a)(O),domEvent:d};F(ve),I?ie?te(ve):H(ve):ie||H(ve)},O.saveNode=function(d){O.node=d},O}return Object(J.a)(L,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var d=this.props;d.onDestroy&&d.onDestroy(d.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 d,x=Object(ee.a)({},this.props),f=oe()(this.getPrefixCls(),x.className,(d={},Object(Y.a)(d,this.getActiveClassName(),!x.disabled&&x.active),Object(Y.a)(d,this.getSelectedClassName(),x.isSelected),Object(Y.a)(d,this.getDisabledClassName(),x.disabled),d)),I=Object(ee.a)(Object(ee.a)({},x.attribute),{},{title:typeof x.title=="string"?x.title:void 0,className:f,role:x.role||"menuitem","aria-disabled":x.disabled});x.role==="option"?I=Object(ee.a)(Object(ee.a)({},I),{},{role:"option","aria-selected":x.isSelected}):(x.role===null||x.role==="none")&&(I.role="none");var F={onClick:x.disabled?null:this.onClick,onMouseLeave:x.disabled?null:this.onMouseLeave,onMouseEnter:x.disabled?null:this.onMouseEnter},H=Object(ee.a)({},x.style);x.mode==="inline"&&(x.direction==="rtl"?H.paddingRight=x.inlineIndent*x.level:H.paddingLeft=x.inlineIndent*x.level),V.forEach(function(ie){return delete x[ie]}),delete x.direction;var te=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(te=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(G.a)({},Object(P.a)(x,["onClick","onMouseEnter","onMouseLeave","onSelect"]),I,F,{style:H,ref:this.saveNode}),x.children,te)}}]),L}(y.Component);aa.isMenuItem=!0,aa.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var Ca=Object(D.b)(function(K,_){var L=K.activeKey,O=K.selectedKeys,d=_.eventKey,x=_.subMenuKey;return{active:L[x]===d,isSelected:Array.isArray(O)?O.indexOf(d)!==-1:O===d}})(aa),_a=Ca,Sa=function(K){Object(X.a)(L,K);var _=Object(M.a)(L);function L(){var O;return Object(N.a)(this,L),O=_.apply(this,arguments),O.renderInnerMenuItem=function(d){var x=O.props,f=x.renderMenuItem,I=x.index;return f(d,I,O.props.subMenuKey)},O}return Object(J.a)(L,[{key:"render",value:function(){var d=Object(G.a)({},this.props),x=d.className,f=x===void 0?"":x,I=d.rootPrefixCls,F="".concat(I,"-item-group-title"),H="".concat(I,"-item-group-list"),te=d.title,ie=d.children;return V.forEach(function(ve){return delete d[ve]}),delete d.direction,y.createElement("li",Object(G.a)({},d,{onClick:function(je){return je.stopPropagation()},className:"".concat(f," ").concat(I,"-item-group")}),y.createElement("div",{className:F,title:typeof te=="string"?te:void 0},te),y.createElement("ul",{className:H},y.Children.map(ie,this.renderInnerMenuItem)))}}]),L}(y.Component);Sa.isMenuItemGroup=!0,Sa.defaultProps={disabled:!0};var Fa=Sa,jn=function(_){var L=_.className,O=_.rootPrefixCls,d=_.style;return y.createElement("li",{className:"".concat(L," ").concat(O,"-item-divider"),style:d})};jn.defaultProps={disabled:!0,className:"",style:{}};var Ba=jn,Ha=ka,Aa=o("eDIo");function ua(K,_){var L=K.prefixCls,O=K.editable,d=K.locale,x=K.style;return!O||O.showAdd===!1?null:y.createElement("button",{ref:_,type:"button",className:"".concat(L,"-nav-add"),style:x,"aria-label":(d==null?void 0:d.addAriaLabel)||"Add tab",onClick:function(I){O.onEdit("add",{event:I})}},O.addIcon||"+")}var va=y.forwardRef(ua);function Wa(K,_){var L=K.prefixCls,O=K.id,d=K.tabs,x=K.locale,f=K.mobile,I=K.moreIcon,F=I===void 0?"More":I,H=K.moreTransitionName,te=K.style,ie=K.className,ve=K.editable,je=K.tabBarGutter,Pe=K.rtl,De=K.onTabClick,lt=Object(y.useState)(!1),xt=Object(z.a)(lt,2),Ze=xt[0],wt=xt[1],dt=Object(y.useState)(null),bt=Object(z.a)(dt,2),St=bt[0],It=bt[1],Mt="".concat(O,"-more-popup"),pn="".concat(L,"-dropdown"),Ct=St!==null?"".concat(Mt,"-").concat(St):null,pt=x==null?void 0:x.dropdownAriaLabel,ht=y.createElement(Ha,{onClick:function(tn){var mn=tn.key,Un=tn.domEvent;De(mn,Un),wt(!1)},id:Mt,tabIndex:-1,role:"listbox","aria-activedescendant":Ct,selectedKeys:[St],"aria-label":pt!==void 0?pt:"expanded dropdown"},d.map(function(Yt){return y.createElement(_a,{key:Yt.key,id:"".concat(Mt,"-").concat(Yt.key),role:"option","aria-controls":O&&"".concat(O,"-panel-").concat(Yt.key),disabled:Yt.disabled},Yt.tab)}));function Ht(Yt){for(var tn=d.filter(function(Vn){return!Vn.disabled}),mn=tn.findIndex(function(Vn){return Vn.key===St})||0,Un=tn.length,Gn=0;GnXt?(Kt=ht,Mt.current="x"):(Kt=Ht,Mt.current="y");var cn=Date.now();cn-St.current>100&&(It.current=!1),(_(-Kt,-Kt)||It.current)&&(pt.preventDefault(),It.current=!0),St.current=cn}var Ct=Object(y.useRef)(null);Ct.current={onTouchStart:wt,onTouchMove:dt,onTouchEnd:bt,onWheel:pn},y.useEffect(function(){function pt(rt){Ct.current.onTouchStart(rt)}function ht(rt){Ct.current.onTouchMove(rt)}function Ht(rt){Ct.current.onTouchEnd(rt)}function Kt(rt){Ct.current.onWheel(rt)}return document.addEventListener("touchmove",ht,{passive:!1}),document.addEventListener("touchend",Ht,{passive:!1}),K.current.addEventListener("touchstart",pt,{passive:!1}),K.current.addEventListener("wheel",Kt),function(){document.removeEventListener("touchmove",ht),document.removeEventListener("touchend",Ht)}},[])}function Na(){var K=Object(y.useRef)(new Map);function _(O){return K.current.has(O)||K.current.set(O,y.createRef()),K.current.get(O)}function L(O){K.current.delete(O)}return[_,L]}function za(K,_){var L=y.useRef(K),O=y.useState({}),d=Object(z.a)(O,2),x=d[1];function f(I){var F=typeof I=="function"?I(L.current):I;F!==L.current&&_(F,L.current),L.current=F,x({})}return[L.current,f]}var Ia=function(_){var L=_.position,O=_.prefixCls,d=_.extra;if(!d)return null;var x,f=d;return L==="right"&&(x=f.right||!f.left&&f||null),L==="left"&&(x=f.left||null),x?y.createElement("div",{className:"".concat(O,"-extra-content")},x):null};function Ga(K,_){var L,O=y.useContext(ia),d=O.prefixCls,x=O.tabs,f=K.className,I=K.style,F=K.id,H=K.animated,te=K.activeKey,ie=K.rtl,ve=K.extra,je=K.editable,Pe=K.locale,De=K.tabPosition,lt=K.tabBarGutter,xt=K.children,Ze=K.onTabClick,wt=K.onTabScroll,dt=Object(y.useRef)(),bt=Object(y.useRef)(),St=Object(y.useRef)(),It=Object(y.useRef)(),Mt=Na(),pn=Object(z.a)(Mt,2),Ct=pn[0],pt=pn[1],ht=De==="top"||De==="bottom",Ht=za(0,function(en,Wt){ht&&wt&&wt({direction:en>Wt?"left":"right"})}),Kt=Object(z.a)(Ht,2),rt=Kt[0],Xt=Kt[1],cn=za(0,function(en,Wt){!ht&&wt&&wt({direction:en>Wt?"top":"bottom"})}),Yt=Object(z.a)(cn,2),tn=Yt[0],mn=Yt[1],Un=Object(y.useState)(0),Gn=Object(z.a)(Un,2),gn=Gn[0],Vn=Gn[1],ra=Object(y.useState)(0),Yn=Object(z.a)(ra,2),Jn=Yn[0],On=Yn[1],Wn=Object(y.useState)(0),kn=Object(z.a)(Wn,2),Pn=kn[0],ga=kn[1],ba=Object(y.useState)(0),ja=Object(z.a)(ba,2),sn=ja[0],da=ja[1],Pa=Object(y.useState)(null),dn=Object(z.a)(Pa,2),qt=dn[0],Fn=dn[1],Vi=Object(y.useState)(null),Oi=Object(z.a)(Vi,2),Va=Oi[0],$i=Oi[1],Xi=Object(y.useState)(0),wi=Object(z.a)(Xi,2),Yi=wi[0],Ji=wi[1],Qi=Object(y.useState)(0),xi=Object(z.a)(Qi,2),Zi=xi[0],qi=xi[1],er=i(new Map),Ri=Object(z.a)(er,2),tr=Ri[0],nr=Ri[1],di=m(x,tr,gn),Ti="".concat(d,"-nav-operations-hidden"),qa=0,ei=0;ht?ie?(qa=0,ei=Math.max(0,gn-qt)):(qa=Math.min(0,qt-gn),ei=0):(qa=Math.min(0,Va-Jn),ei=0);function hi(en){return enei?[ei,!1]:[en,!0]}var Ci=Object(y.useRef)(),ar=Object(y.useState)(),Si=Object(z.a)(ar,2),pi=Si[0],Ai=Si[1];function mi(){Ai(Date.now())}function _i(){window.clearTimeout(Ci.current)}Ka(dt,function(en,Wt){var Mn=!1;function Qn(ni,ai){ni(function(ii){var ri=hi(ii+ai),$a=Object(z.a)(ri,2),Ei=$a[0],yi=$a[1];return Mn=yi,Ei})}if(ht){if(qt>=gn)return Mn;Qn(Xt,en)}else{if(Va>=Jn)return Mn;Qn(mn,Wt)}return _i(),mi(),Mn}),Object(y.useEffect)(function(){return _i(),pi&&(Ci.current=window.setTimeout(function(){Ai(0)},100)),_i},[pi]);function Ni(){var en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:te,Wt=di.get(en);if(!Wt)return;if(ht){var Mn=rt;ie?Wt.rightrt+qt&&(Mn=Wt.right+Wt.width-qt):Wt.left<-rt?Mn=-Wt.left:Wt.left+Wt.width>-rt+qt&&(Mn=-(Wt.left+Wt.width-qt)),mn(0),Xt(hi(Mn)[0])}else{var Qn=tn;Wt.top<-tn?Qn=-Wt.top:Wt.top+Wt.height>-tn+Va&&(Qn=-(Wt.top+Wt.height-Va)),Xt(0),mn(hi(Qn)[0])}}var ir=$(di,{width:qt,height:Va,left:rt,top:tn},{width:Pn,height:sn},{width:Yi,height:Zi},Object(ee.a)(Object(ee.a)({},K),{},{tabs:x})),Ii=Object(z.a)(ir,2),rr=Ii[0],or=Ii[1],sr=x.map(function(en){var Wt=en.key;return y.createElement(j,{id:F,prefixCls:d,key:Wt,rtl:ie,tab:en,closable:en.closable,editable:je,active:Wt===te,tabPosition:De,tabBarGutter:lt,renderWrapper:xt,removeAriaLabel:Pe==null?void 0:Pe.removeAriaLabel,ref:Ct(Wt),onClick:function(Qn){Ze(Wt,Qn)},onRemove:function(){pt(Wt)},onFocus:function(){Ni(Wt),mi(),ie||(dt.current.scrollLeft=0),dt.current.scrollTop=0}})}),vi=r(function(){var en,Wt,Mn,Qn,ni,ai,ii,ri,$a,Ei=((en=dt.current)===null||en===void 0?void 0:en.offsetWidth)||0,yi=((Wt=dt.current)===null||Wt===void 0?void 0:Wt.offsetHeight)||0,Fi=((Mn=It.current)===null||Mn===void 0?void 0:Mn.offsetWidth)||0,Bi=((Qn=It.current)===null||Qn===void 0?void 0:Qn.offsetHeight)||0,hr=((ni=St.current)===null||ni===void 0?void 0:ni.offsetWidth)||0,pr=((ai=St.current)===null||ai===void 0?void 0:ai.offsetHeight)||0;Fn(Ei),$i(yi),Ji(Fi),qi(Bi);var Hi=(((ii=bt.current)===null||ii===void 0?void 0:ii.offsetWidth)||0)-Fi,Wi=(((ri=bt.current)===null||ri===void 0?void 0:ri.offsetHeight)||0)-Bi;Vn(Hi),On(Wi);var Ki=($a=St.current)===null||$a===void 0?void 0:$a.className.includes(Ti);ga(Hi-(Ki?0:hr)),da(Wi-(Ki?0:pr)),nr(function(){var zi=new Map;return x.forEach(function(mr){var Gi=mr.key,oi=Ct(Gi).current;oi&&zi.set(Gi,{width:oi.offsetWidth,height:oi.offsetHeight,left:oi.offsetLeft,top:oi.offsetTop})}),zi})}),lr=x.slice(0,rr),ur=x.slice(or+1),ji=[].concat(Object(T.a)(lr),Object(T.a)(ur)),cr=Object(y.useState)(),Pi=Object(z.a)(cr,2),dr=Pi[0],fr=Pi[1],Ea=di.get(te),Mi=Object(y.useRef)();function Di(){p.a.cancel(Mi.current)}Object(y.useEffect)(function(){var en={};return Ea&&(ht?(ie?en.right=Ea.right:en.left=Ea.left,en.width=Ea.width):(en.top=Ea.top,en.height=Ea.height)),Di(),Mi.current=p()(function(){fr(en)}),Di},[Ea,ht,ie]),Object(y.useEffect)(function(){Ni()},[te,Ea,di,ht]),Object(y.useEffect)(function(){vi()},[ie,lt,te,x.map(function(en){return en.key}).join("_")]);var Li=!!ji.length,ti="".concat(d,"-nav-wrap"),gi,bi,Ui,ki;return ht?ie?(bi=rt>0,gi=rt+qt{l();const i=this._commands.get(E);(i==null?void 0:i.isEmpty())&&this._commands.delete(E)});return this._onDidRegisterCommand.fire(E),r}registerCommandAlias(e,T){return re.registerCommand(e,(E,...p)=>E.get(oe).executeCommand(T,...p))}getCommand(e){const T=this._commands.get(e);return!T||T.isEmpty()?void 0:z.a.first(T)}getCommands(){const e=new Map;for(const T of this._commands.keys()){const E=this.getCommand(T);E&&e.set(T,E)}return e}};re.registerCommand("noop",()=>{})},p5ED:function(Ge,Q,o){"use strict";var Y=o("+L6B"),z=o("2/Rp"),ce=o("5Dmo"),ee=o("3S7+"),y=o("k1fw"),A=o("9og8"),oe=o("tJVT"),re=o("WmNS"),e=o.n(re),T=o("q1tI"),E=o.n(T),p=o("vHTk"),l=o.n(p),r=o("yEEn"),i=o("ZW9T"),c=o("1vsH"),g=o("V0Rq"),j=o("m3rI");Q.a=function(v){var m,W,$,G,N,J,S,X=v.editOffice,M=X===void 0?"view":X,D=v.data,P=v.theme,w=v.type,h=v.filename,k=v.monacoEditor,b=v.className,n=v.style,u=v.close,s=v.onClose,a=v.hasMask,t=v.disabledDownload,R=Object(T.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),U=Object(oe.a)(R,2),ae=U[0],_e=U[1],ne=Object(T.useState)(""),me=Object(oe.a)(ne,2),Oe=me[0],we=me[1],ue=Object(T.useState)(),Ee=Object(oe.a)(ue,2),C=Ee[0],q=Ee[1],B=window.ENV==="build"?"/react/build":"",le=j.a.PROXY_SERVER||location.origin,ye,Ae=1024*1024,Fe=10*Ae,Xe=Object(T.useRef)();(m=D)!==null&&m!==void 0&&m.startsWith("/api")&&w!=="txt"&&(D=j.a.API_SERVER+D),w==="office"&&(ye=Object(c.T)(D).filesize,ye>Fe&&(w="other")),h&&k&&(k.filename=h),Object(T.useEffect)(function(){var Te,qe,ut=(Te=document.cookie)===null||Te===void 0||((qe=Te.replace(/\s/g,""))===null||qe===void 0)?void 0:qe.split(";");ut==null||ut.map(function(At){var Et=At.split("=");Et[0]==="_educoder_session"&&we(Et[1])})},[]),Object(T.useEffect)(function(){w==="office"&&V()},[w,D]);var V=function(){var Te=Object(A.a)(e.a.mark(function qe(){var ut,At,Et;return e.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return console.log("data:",D),ut=D,D.startsWith("http")||(ut=location.origin+ut),At=new URL(ut).pathname.split("/").pop(),Rt.next=6,Object(g.V)({attachment_id:At});case 6:Et=Rt.sent,q(Et);case 8:case"end":return Rt.stop()}},qe)}));return function(){return Te.apply(this,arguments)}}(),se=function(){if(D.startsWith("http")||D.startsWith("blob:")){ge();return}Object(c.z)(h||"educoder",D,h)},ge=function(){Object(c.x)(h||"educoder",decodeURIComponent(D))};return E.a.createElement("div",{style:Object(y.a)({},n||{}),className:"".concat(a&&l.a.bgBlack," ").concat(w?l.a.wrp:"hide")},u&&E.a.createElement("div",{className:l.a.close,ref:Xe},!t&&E.a.createElement(ee.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Xe.current}},E.a.createElement("span",{onClick:ge},E.a.createElement("i",{className:"icon-quxiaozhiding"}))),E.a.createElement(ee.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Xe.current}},E.a.createElement("span",{className:"",onClick:s},E.a.createElement("i",{className:"icon-guanbi1"})))),E.a.createElement("div",{className:"".concat(l.a[b]," ").concat(b," ").concat(l.a.monaco," ").concat(w==="txt"?"show":"hide")},w==="txt"&&E.a.createElement(i.b,k)),w==="audio"&&E.a.createElement("audio",{src:"".concat(((W=D)===null||W===void 0?void 0:W.indexOf("http://"))>-1||(($=D)===null||$===void 0?void 0:$.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(D),autoPlay:!0}),w==="video"&&E.a.createElement(E.a.Fragment,null,((G=D)===null||G===void 0?void 0:G.indexOf("http"))>-1?E.a.createElement("video",{controls:!0,src:"".concat(D),autoPlay:!0}):E.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(D),autoPlay:!0})),w==="office"&&C&&E.a.createElement("iframe",{src:"".concat(B,"/office.html?key=").concat(C.key,"&url=").concat(le+C.url,"&callbackUrl=").concat(le+C.callbackUrl,"&fileType=").concat(C.fileType,"&title=").concat(C.title,"&model=").concat(M,"&officeServer=").concat(j.a.OFFICE_SERVER,"&disabledDownload=").concat(!!t)}),w==="html"&&E.a.createElement("iframe",{src:D+"&disposition=inline"}),w==="pdf"&&E.a.createElement("iframe",{src:"".concat(B,"/js/pdfview/index.html?url=").concat(D,"&disabledDownload=").concat(!!t)}),w==="image"&&E.a.createElement("img",{src:"".concat(((N=D)===null||N===void 0?void 0:N.indexOf("http://"))>-1||((J=D)===null||J===void 0?void 0:J.indexOf("https://"))>-1||(S=D)!==null&&S!==void 0&&S.startsWith("/api")?"":"data:image/png;base64,").concat(D)}),w==="other"&&E.a.createElement("div",null,E.a.createElement(z.a,{type:"primary",size:"large",onClick:se},E.a.createElement(r.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),w==="download"&&E.a.createElement(z.a,{type:"primary",size:"large",onClick:se},E.a.createElement(r.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pmY6:function(Ge,Q,o){"use strict";o.d(Q,"h",function(){return T}),o.d(Q,"g",function(){return p}),o.d(Q,"f",function(){return l}),o.d(Q,"e",function(){return r}),o.d(Q,"i",function(){return i}),o.d(Q,"b",function(){return c}),o.d(Q,"a",function(){return g}),o.d(Q,"d",function(){return j}),o.d(Q,"c",function(){return v});var Y=o("C/vA"),z=o("JYp7");const ce=!1;let ee=null;function y(m){ee=m}if(ce){const m="__is_disposable_tracked__";y(new class{trackDisposable(W){const $=new Error("Potentially leaked disposable").stack;setTimeout(()=>{W[m]||console.log($)},3e3)}setParent(W,$){if(W&&W!==g.None)try{W[m]=!0}catch(G){}}markAsDisposed(W){if(W&&W!==g.None)try{W[m]=!0}catch($){}}markAsSingleton(W){}})}function A(m){return ee==null||ee.trackDisposable(m),m}function oe(m){ee==null||ee.markAsDisposed(m)}function re(m,W){ee==null||ee.setParent(m,W)}function e(m,W){if(!ee)return;for(const $ of m)ee.setParent($,W)}function T(m){return ee==null||ee.markAsSingleton(m),m}class E extends Error{constructor(m){super(`Encountered errors while disposing of store. Errors: [${m.join(", ")}]`);this.errors=m}}function p(m){return typeof m.dispose=="function"&&m.dispose.length===0}function l(m){if(z.a.is(m)){let W=[];for(const $ of m)if($)try{$.dispose()}catch(G){W.push(G)}if(W.length===1)throw W[0];if(W.length>1)throw new E(W);return Array.isArray(m)?[]:m}else if(m)return m.dispose(),m}function r(...m){const W=i(()=>l(m));return e(m,W),W}function i(m){const W=A({dispose:Object(Y.a)(()=>{oe(W),m()})});return W}class c{constructor(){this._toDispose=new Set,this._isDisposed=!1,A(this)}dispose(){if(this._isDisposed)return;oe(this),this._isDisposed=!0,this.clear()}clear(){try{l(this._toDispose.values())}finally{this._toDispose.clear()}}add(m){if(!m)return m;if(m===this)throw new Error("Cannot register a disposable on itself!");return re(m,this),this._isDisposed?c.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(m),m}}c.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new c,A(this),re(this._store,this)}dispose(){oe(this),this._store.dispose()}_register(m){if(m===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(m)}}g.None=Object.freeze({dispose(){}});class j{constructor(){this._isDisposed=!1,A(this)}get value(){return this._isDisposed?void 0:this._value}set value(m){var W;if(this._isDisposed||m===this._value)return;(W=this._value)===null||W===void 0||W.dispose(),m&&re(m,this),this._value=m}clear(){this.value=void 0}dispose(){var m;this._isDisposed=!0,oe(this),(m=this._value)===null||m===void 0||m.dispose(),this._value=void 0}clearAndLeak(){const m=this._value;return this._value=void 0,m&&re(m,null),m}}class v{constructor(m){this.object=m}dispose(){}}},psGv:function(Ge,Q,o){var Y,z;(function(){var ce;(function(){"use strict";var oe=[,,function(E){function p(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=[]}p.prototype.clone_empty=function(){var i=new p(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},p.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},p.prototype.has_match=function(i){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(i))return!0;return!1},p.prototype.set_indent=function(i,c){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.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)},p.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},p.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},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(i){this.__items.push(i);var c=i.lastIndexOf(` `);c!==-1?this.__character_count=i.length-c:this.__character_count+=i.length},p.prototype.pop=function(){var i=null;return this.is_empty()||(i=this.__items.pop(),this.__character_count-=i.length),i},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.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 l(i,c){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)),c=c||"",i.indent_level>0&&(c=new Array(i.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}l.prototype.get_indent_size=function(i,c){var g=this.__base_string_length;return c=c||0,i<0&&(g=0),g+=i*this.__indent_size,g+=c,g},l.prototype.get_indent_string=function(i,c){var g=this.__base_string;return c=c||0,i<0&&(i=0,g=""),c+=i*this.__indent_size,this.__ensure_cache(c),g+=this.__cache[c],g},l.prototype.__ensure_cache=function(i){for(;i>=this.__cache.length;)this.__add_column()},l.prototype.__add_column=function(){var i=this.__cache.length,c=0,g="";this.__indent_size&&i>=this.__indent_size&&(c=Math.floor(i/this.__indent_size),i-=c*this.__indent_size,g=new Array(c+1).join(this.__indent_string)),i&&(g+=new Array(i+1).join(" ")),this.__cache.push(g)};function r(i,c){this.__indent_cache=new l(i,c),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 p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(i,c){return this.__indent_cache.get_indent_string(i,c)},r.prototype.get_indent_size=function(i,c){return this.__indent_cache.get_indent_size(i,c)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(i){return this.is_empty()||!i&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(i){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===` `&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var g=this.__lines.join(` `);return i!==` @@ -81,15 +81,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `+c+` You passed in: '`+this.raw_options[i]+"'");return j[0]},p.prototype._get_selection_list=function(i,c,g){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(g=g||[c[0]],!this._is_valid_selection(g,c))throw new Error("Invalid Default Value!");var j=this._get_array(i,g);if(!this._is_valid_selection(j,c))throw new Error("Invalid Option Value: The option '"+i+`' can contain only the following values: `+c+` -You passed in: '`+this.raw_options[i]+"'");return j},p.prototype._is_valid_selection=function(i,c){return i.length&&c.length&&!i.some(function(g){return c.indexOf(g)===-1})};function l(i,c){var g={};i=r(i);var j;for(j in i)j!==c&&(g[j]=i[j]);if(c&&i[c])for(j in i[c])g[j]=i[c][j];return g}function r(i){var c={},g;for(g in i){var j=g.replace(/-/g,"_");c[j]=i[g]}return c}E.exports.Options=p,E.exports.normalizeOpts=r,E.exports.mergeOpts=l},,function(E){var p=RegExp.prototype.hasOwnProperty("sticky");function l(r){this.__input=r||"",this.__input_length=this.__input.length,this.__position=0}l.prototype.restart=function(){this.__position=0},l.prototype.back=function(){this.__position>0&&(this.__position-=1)},l.prototype.hasNext=function(){return this.__position=0&&r=0&&i=r.length&&this.__input.substring(i-r.length,i).toLowerCase()===r},E.exports.InputScanner=l},function(E,p,l){var r=l(8).InputScanner,i=l(3).Token,c=l(10).TokenStream,g=l(11).WhitespacePattern,j={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},v=function(m,W){this._input=new r(m),this._options=W||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new g(this._input)};v.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var m,W=new i(j.START,""),$=null,G=[],N=new c;W.type!==j.EOF;){for(m=this._get_next_token(W,$);this._is_comment(m);)N.add(m),m=this._get_next_token(W,$);N.isEmpty()||(m.comments_before=N,N=new c),m.parent=$,this._is_opening(m)?(G.push($),$=m):$&&this._is_closing(m,$)&&(m.opened=$,$.closed=m,$=G.pop(),m.parent=$),m.previous=W,W.next=m,this.__tokens.add(m),W=m}return this.__tokens},v.prototype._is_first_token=function(){return this.__tokens.isEmpty()},v.prototype._reset=function(){},v.prototype._get_next_token=function(m,W){this._readWhitespace();var $=this._input.read(/.+/g);return $?this._create_token(j.RAW,$):this._create_token(j.EOF,"")},v.prototype._is_comment=function(m){return!1},v.prototype._is_opening=function(m){return!1},v.prototype._is_closing=function(m,W){return!1},v.prototype._create_token=function(m,W){var $=new i(m,W,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return $},v.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},E.exports.Tokenizer=v,E.exports.TOKEN=j},function(E){function p(l){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=l}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position=0&&l/),erb:v.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:v.starting_with(/{%/).until_after(/%}/),django_value:v.starting_with(/{{/).until_after(/}}/),django_comment:v.starting_with(/{#/).until_after(/#}/),smarty:v.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:v.starting_with(/{\*/).until_after(/\*}/),smarty_literal:v.starting_with(/{literal}/).until_after(/{\/literal}/)}}c.prototype=new r,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(g){var j=this._create();return j._disabled[g]=!0,j._update(),j},c.prototype.read_options=function(g){var j=this._create();for(var v in i)j._disabled[v]=g.templating.indexOf(v)===-1;return j._update(),j},c.prototype.exclude=function(g){var j=this._create();return j._excluded[g]=!0,j._update(),j},c.prototype.read=function(){var g="";this._match_pattern?g=this._input.read(this._starting_pattern):g=this._input.read(this._starting_pattern,this.__template_pattern);for(var j=this._read_template();j;)this._match_pattern?j+=this._input.read(this._match_pattern):j+=this._input.readUntil(this.__template_pattern),g+=j,j=this._read_template();return this._until_after&&(g+=this._input.readUntilAfter(this._until_pattern)),g},c.prototype.__set_templated_pattern=function(){var g=[];this._disabled.php||g.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||g.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||g.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(g.push(this.__patterns.django._starting_pattern.source),g.push(this.__patterns.django_value._starting_pattern.source),g.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||g.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&g.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+g.join("|")+")")},c.prototype._read_template=function(){var g="",j=this._input.peek();if(j==="<"){var v=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&v==="?"&&(g=g||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&v==="%"&&(g=g||this.__patterns.erb.read())}else j==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(g=g||this.__patterns.handlebars_comment.read(),g=g||this.__patterns.handlebars_unescaped.read(),g=g||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(g=g||this.__patterns.django_value.read()),this._excluded.django||(g=g||this.__patterns.django_comment.read(),g=g||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(g=g||this.__patterns.smarty_comment.read(),g=g||this.__patterns.smarty_literal.read(),g=g||this.__patterns.smarty.read()));return g},E.exports.TemplatablePattern=c},,,,function(E,p,l){var r=l(19).Beautifier,i=l(20).Options;function c(g,j,v,m){var W=new r(g,j,v,m);return W.beautify()}E.exports=c,E.exports.defaultOptions=function(){return new i}},function(E,p,l){var r=l(20).Options,i=l(2).Output,c=l(21).Tokenizer,g=l(21).TOKEN,j=/\r\n|[\r\n]/,v=/\r\n|[\r\n]/g,m=function(P,w){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=P.max_preserve_newlines,this.preserve_newlines=P.preserve_newlines,this._output=new i(P,w)};m.prototype.current_line_has_match=function(P){return this._output.current_line.has_match(P)},m.prototype.set_space_before_token=function(P,w){this._output.space_before_token=P,this._output.non_breaking_space=w},m.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},m.prototype.add_raw_token=function(P){this._output.add_raw_token(P)},m.prototype.print_preserved_newlines=function(P){var w=0;P.type!==g.TEXT&&P.previous.type!==g.TEXT&&(w=P.newlines?1:0),this.preserve_newlines&&(w=P.newlines0);return w!==0},m.prototype.traverse_whitespace=function(P){return P.whitespace_before||P.newlines?(this.print_preserved_newlines(P)||(this._output.space_before_token=!0),!0):!1},m.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},m.prototype.print_newline=function(P){this._output.add_new_line(P)},m.prototype.print_token=function(P){P.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(P.text))},m.prototype.indent=function(){this.indent_level++},m.prototype.get_full_indent=function(P){return P=this.indent_level+(P||0),P<1?"":this._output.get_indent_string(P)};var W=function(P){for(var w=null,f=P.next;f.type!==g.EOF&&P.closed!==f;){if(f.type===g.ATTRIBUTE&&f.text==="type"){f.next&&f.next.type===g.EQUALS&&f.next.next&&f.next.next.type===g.VALUE&&(w=f.next.next.text);break}f=f.next}return w},$=function(P,w){var f=null,k=null;return w.closed?(P==="script"?f="text/javascript":P==="style"&&(f="text/css"),f=W(w)||f,f.search("text/css")>-1?k="css":f.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?k="javascript":f.search(/(text|application|dojo)\/(x-)?(html)/)>-1?k="html":f.search(/test\/null/)>-1&&(k="null"),k):null};function G(P,w){return w.indexOf(P)!==-1}function N(P,w,f){this.parent=P||null,this.tag=w?w.tag_name:"",this.indent_level=f||0,this.parser_token=w||null}function J(P){this._printer=P,this._current_frame=null}J.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},J.prototype.record_tag=function(P){var w=new N(this._current_frame,P,this._printer.indent_level);this._current_frame=w},J.prototype._try_pop_frame=function(P){var w=null;return P&&(w=P.parser_token,this._printer.indent_level=P.indent_level,this._current_frame=P.parent),w},J.prototype._get_frame=function(P,w){for(var f=this._current_frame;f&&!(P.indexOf(f.tag)!==-1);){if(w&&w.indexOf(f.tag)!==-1){f=null;break}f=f.parent}return f},J.prototype.try_pop=function(P,w){var f=this._get_frame([P],w);return this._try_pop_frame(f)},J.prototype.indent_to_tag=function(P){var w=this._get_frame(P);w&&(this._printer.indent_level=w.indent_level)};function S(P,w,f,k){this._source_text=P||"",w=w||{},this._js_beautify=f,this._css_beautify=k,this._tag_stack=null;var b=new r(w,"html");this._options=b,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,w=this._options.eol;this._options.eol==="auto"&&(w=` +You passed in: '`+this.raw_options[i]+"'");return j},p.prototype._is_valid_selection=function(i,c){return i.length&&c.length&&!i.some(function(g){return c.indexOf(g)===-1})};function l(i,c){var g={};i=r(i);var j;for(j in i)j!==c&&(g[j]=i[j]);if(c&&i[c])for(j in i[c])g[j]=i[c][j];return g}function r(i){var c={},g;for(g in i){var j=g.replace(/-/g,"_");c[j]=i[g]}return c}E.exports.Options=p,E.exports.normalizeOpts=r,E.exports.mergeOpts=l},,function(E){var p=RegExp.prototype.hasOwnProperty("sticky");function l(r){this.__input=r||"",this.__input_length=this.__input.length,this.__position=0}l.prototype.restart=function(){this.__position=0},l.prototype.back=function(){this.__position>0&&(this.__position-=1)},l.prototype.hasNext=function(){return this.__position=0&&r=0&&i=r.length&&this.__input.substring(i-r.length,i).toLowerCase()===r},E.exports.InputScanner=l},function(E,p,l){var r=l(8).InputScanner,i=l(3).Token,c=l(10).TokenStream,g=l(11).WhitespacePattern,j={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},v=function(m,W){this._input=new r(m),this._options=W||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new g(this._input)};v.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var m,W=new i(j.START,""),$=null,G=[],N=new c;W.type!==j.EOF;){for(m=this._get_next_token(W,$);this._is_comment(m);)N.add(m),m=this._get_next_token(W,$);N.isEmpty()||(m.comments_before=N,N=new c),m.parent=$,this._is_opening(m)?(G.push($),$=m):$&&this._is_closing(m,$)&&(m.opened=$,$.closed=m,$=G.pop(),m.parent=$),m.previous=W,W.next=m,this.__tokens.add(m),W=m}return this.__tokens},v.prototype._is_first_token=function(){return this.__tokens.isEmpty()},v.prototype._reset=function(){},v.prototype._get_next_token=function(m,W){this._readWhitespace();var $=this._input.read(/.+/g);return $?this._create_token(j.RAW,$):this._create_token(j.EOF,"")},v.prototype._is_comment=function(m){return!1},v.prototype._is_opening=function(m){return!1},v.prototype._is_closing=function(m,W){return!1},v.prototype._create_token=function(m,W){var $=new i(m,W,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return $},v.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},E.exports.Tokenizer=v,E.exports.TOKEN=j},function(E){function p(l){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=l}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position=0&&l/),erb:v.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:v.starting_with(/{%/).until_after(/%}/),django_value:v.starting_with(/{{/).until_after(/}}/),django_comment:v.starting_with(/{#/).until_after(/#}/),smarty:v.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:v.starting_with(/{\*/).until_after(/\*}/),smarty_literal:v.starting_with(/{literal}/).until_after(/{\/literal}/)}}c.prototype=new r,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(g){var j=this._create();return j._disabled[g]=!0,j._update(),j},c.prototype.read_options=function(g){var j=this._create();for(var v in i)j._disabled[v]=g.templating.indexOf(v)===-1;return j._update(),j},c.prototype.exclude=function(g){var j=this._create();return j._excluded[g]=!0,j._update(),j},c.prototype.read=function(){var g="";this._match_pattern?g=this._input.read(this._starting_pattern):g=this._input.read(this._starting_pattern,this.__template_pattern);for(var j=this._read_template();j;)this._match_pattern?j+=this._input.read(this._match_pattern):j+=this._input.readUntil(this.__template_pattern),g+=j,j=this._read_template();return this._until_after&&(g+=this._input.readUntilAfter(this._until_pattern)),g},c.prototype.__set_templated_pattern=function(){var g=[];this._disabled.php||g.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||g.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||g.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(g.push(this.__patterns.django._starting_pattern.source),g.push(this.__patterns.django_value._starting_pattern.source),g.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||g.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&g.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+g.join("|")+")")},c.prototype._read_template=function(){var g="",j=this._input.peek();if(j==="<"){var v=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&v==="?"&&(g=g||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&v==="%"&&(g=g||this.__patterns.erb.read())}else j==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(g=g||this.__patterns.handlebars_comment.read(),g=g||this.__patterns.handlebars_unescaped.read(),g=g||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(g=g||this.__patterns.django_value.read()),this._excluded.django||(g=g||this.__patterns.django_comment.read(),g=g||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(g=g||this.__patterns.smarty_comment.read(),g=g||this.__patterns.smarty_literal.read(),g=g||this.__patterns.smarty.read()));return g},E.exports.TemplatablePattern=c},,,,function(E,p,l){var r=l(19).Beautifier,i=l(20).Options;function c(g,j,v,m){var W=new r(g,j,v,m);return W.beautify()}E.exports=c,E.exports.defaultOptions=function(){return new i}},function(E,p,l){var r=l(20).Options,i=l(2).Output,c=l(21).Tokenizer,g=l(21).TOKEN,j=/\r\n|[\r\n]/,v=/\r\n|[\r\n]/g,m=function(P,w){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=P.max_preserve_newlines,this.preserve_newlines=P.preserve_newlines,this._output=new i(P,w)};m.prototype.current_line_has_match=function(P){return this._output.current_line.has_match(P)},m.prototype.set_space_before_token=function(P,w){this._output.space_before_token=P,this._output.non_breaking_space=w},m.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},m.prototype.add_raw_token=function(P){this._output.add_raw_token(P)},m.prototype.print_preserved_newlines=function(P){var w=0;P.type!==g.TEXT&&P.previous.type!==g.TEXT&&(w=P.newlines?1:0),this.preserve_newlines&&(w=P.newlines0);return w!==0},m.prototype.traverse_whitespace=function(P){return P.whitespace_before||P.newlines?(this.print_preserved_newlines(P)||(this._output.space_before_token=!0),!0):!1},m.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},m.prototype.print_newline=function(P){this._output.add_new_line(P)},m.prototype.print_token=function(P){P.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(P.text))},m.prototype.indent=function(){this.indent_level++},m.prototype.get_full_indent=function(P){return P=this.indent_level+(P||0),P<1?"":this._output.get_indent_string(P)};var W=function(P){for(var w=null,h=P.next;h.type!==g.EOF&&P.closed!==h;){if(h.type===g.ATTRIBUTE&&h.text==="type"){h.next&&h.next.type===g.EQUALS&&h.next.next&&h.next.next.type===g.VALUE&&(w=h.next.next.text);break}h=h.next}return w},$=function(P,w){var h=null,k=null;return w.closed?(P==="script"?h="text/javascript":P==="style"&&(h="text/css"),h=W(w)||h,h.search("text/css")>-1?k="css":h.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?k="javascript":h.search(/(text|application|dojo)\/(x-)?(html)/)>-1?k="html":h.search(/test\/null/)>-1&&(k="null"),k):null};function G(P,w){return w.indexOf(P)!==-1}function N(P,w,h){this.parent=P||null,this.tag=w?w.tag_name:"",this.indent_level=h||0,this.parser_token=w||null}function J(P){this._printer=P,this._current_frame=null}J.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},J.prototype.record_tag=function(P){var w=new N(this._current_frame,P,this._printer.indent_level);this._current_frame=w},J.prototype._try_pop_frame=function(P){var w=null;return P&&(w=P.parser_token,this._printer.indent_level=P.indent_level,this._current_frame=P.parent),w},J.prototype._get_frame=function(P,w){for(var h=this._current_frame;h&&!(P.indexOf(h.tag)!==-1);){if(w&&w.indexOf(h.tag)!==-1){h=null;break}h=h.parent}return h},J.prototype.try_pop=function(P,w){var h=this._get_frame([P],w);return this._try_pop_frame(h)},J.prototype.indent_to_tag=function(P){var w=this._get_frame(P);w&&(this._printer.indent_level=w.indent_level)};function S(P,w,h,k){this._source_text=P||"",w=w||{},this._js_beautify=h,this._css_beautify=k,this._tag_stack=null;var b=new r(w,"html");this._options=b,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,w=this._options.eol;this._options.eol==="auto"&&(w=` `,P&&j.test(P)&&(w=P.match(j)[0])),P=P.replace(v,` -`);var f=P.match(/^[\t ]*/)[0],k={text:"",type:""},b=new X,n=new m(this._options,f),u=new c(P,this._options).tokenize();this._tag_stack=new J(n);for(var s=null,a=u.next();a.type!==g.EOF;)a.type===g.TAG_OPEN||a.type===g.COMMENT?(s=this._handle_tag_open(n,a,b,k),b=s):a.type===g.ATTRIBUTE||a.type===g.EQUALS||a.type===g.VALUE||a.type===g.TEXT&&!b.tag_complete?s=this._handle_inside_tag(n,a,b,u):a.type===g.TAG_CLOSE?s=this._handle_tag_close(n,a,b):a.type===g.TEXT?s=this._handle_text(n,a,b):n.add_raw_token(a),k=s,a=u.next();var t=n._output.get_code(w);return t},S.prototype._handle_tag_close=function(P,w,f){var k={text:w.text,type:w.type};return P.alignment_size=0,f.tag_complete=!0,P.set_space_before_token(w.newlines||w.whitespace_before!=="",!0),f.is_unformatted?P.add_raw_token(w):(f.tag_start_char==="<"&&(P.set_space_before_token(w.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&f.has_wrapped_attrs&&P.print_newline(!1)),P.print_token(w)),f.indent_content&&!(f.is_unformatted||f.is_content_unformatted)&&(P.indent(),f.indent_content=!1),!f.is_inline_element&&!(f.is_unformatted||f.is_content_unformatted)&&P.set_wrap_point(),k},S.prototype._handle_inside_tag=function(P,w,f,k){var b=f.has_wrapped_attrs,n={text:w.text,type:w.type};if(P.set_space_before_token(w.newlines||w.whitespace_before!=="",!0),f.is_unformatted)P.add_raw_token(w);else if(f.tag_start_char==="{"&&w.type===g.TEXT)P.print_preserved_newlines(w)?(w.newlines=0,P.add_raw_token(w)):P.print_token(w);else{if(w.type===g.ATTRIBUTE?(P.set_space_before_token(!0),f.attr_count+=1):(w.type===g.EQUALS||w.type===g.VALUE&&w.previous.type===g.EQUALS)&&P.set_space_before_token(!1),w.type===g.ATTRIBUTE&&f.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(P.traverse_whitespace(w),b=b||w.newlines!==0),this._is_wrap_attributes_force)){var u=f.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&f.attr_count===1){var s=!0,a=0,t;do{if(t=k.peek(a),t.type===g.ATTRIBUTE){s=!1;break}a+=1}while(a<4&&t.type!==g.EOF&&t.type!==g.TAG_CLOSE);u=!s}u&&(P.print_newline(!1),b=!0)}P.print_token(w),b=b||P.previous_token_wrapped(),f.has_wrapped_attrs=b}return n},S.prototype._handle_text=function(P,w,f){var k={text:w.text,type:"TK_CONTENT"};return f.custom_beautifier_name?this._print_custom_beatifier_text(P,w,f):f.is_unformatted||f.is_content_unformatted?P.add_raw_token(w):(P.traverse_whitespace(w),P.print_token(w)),k},S.prototype._print_custom_beatifier_text=function(P,w,f){var k=this;if(w.text!==""){var b=w.text,n,u=1,s="",a="";f.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?n=this._js_beautify:f.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?n=this._css_beautify:f.custom_beautifier_name==="html"&&(n=function(ne,me){var Oe=new S(ne,me,k._js_beautify,k._css_beautify);return Oe.beautify()}),this._options.indent_scripts==="keep"?u=0:this._options.indent_scripts==="separate"&&(u=-P.indent_level);var t=P.get_full_indent(u);if(b=b.replace(/\n[ \t]*$/,""),f.custom_beautifier_name!=="html"&&b[0]==="<"&&b.match(/^(|]]>)$/.exec(b);if(!R){P.add_raw_token(w);return}s=t+R[1]+` +`);var h=P.match(/^[\t ]*/)[0],k={text:"",type:""},b=new X,n=new m(this._options,h),u=new c(P,this._options).tokenize();this._tag_stack=new J(n);for(var s=null,a=u.next();a.type!==g.EOF;)a.type===g.TAG_OPEN||a.type===g.COMMENT?(s=this._handle_tag_open(n,a,b,k),b=s):a.type===g.ATTRIBUTE||a.type===g.EQUALS||a.type===g.VALUE||a.type===g.TEXT&&!b.tag_complete?s=this._handle_inside_tag(n,a,b,u):a.type===g.TAG_CLOSE?s=this._handle_tag_close(n,a,b):a.type===g.TEXT?s=this._handle_text(n,a,b):n.add_raw_token(a),k=s,a=u.next();var t=n._output.get_code(w);return t},S.prototype._handle_tag_close=function(P,w,h){var k={text:w.text,type:w.type};return P.alignment_size=0,h.tag_complete=!0,P.set_space_before_token(w.newlines||w.whitespace_before!=="",!0),h.is_unformatted?P.add_raw_token(w):(h.tag_start_char==="<"&&(P.set_space_before_token(w.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&h.has_wrapped_attrs&&P.print_newline(!1)),P.print_token(w)),h.indent_content&&!(h.is_unformatted||h.is_content_unformatted)&&(P.indent(),h.indent_content=!1),!h.is_inline_element&&!(h.is_unformatted||h.is_content_unformatted)&&P.set_wrap_point(),k},S.prototype._handle_inside_tag=function(P,w,h,k){var b=h.has_wrapped_attrs,n={text:w.text,type:w.type};if(P.set_space_before_token(w.newlines||w.whitespace_before!=="",!0),h.is_unformatted)P.add_raw_token(w);else if(h.tag_start_char==="{"&&w.type===g.TEXT)P.print_preserved_newlines(w)?(w.newlines=0,P.add_raw_token(w)):P.print_token(w);else{if(w.type===g.ATTRIBUTE?(P.set_space_before_token(!0),h.attr_count+=1):(w.type===g.EQUALS||w.type===g.VALUE&&w.previous.type===g.EQUALS)&&P.set_space_before_token(!1),w.type===g.ATTRIBUTE&&h.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(P.traverse_whitespace(w),b=b||w.newlines!==0),this._is_wrap_attributes_force)){var u=h.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&h.attr_count===1){var s=!0,a=0,t;do{if(t=k.peek(a),t.type===g.ATTRIBUTE){s=!1;break}a+=1}while(a<4&&t.type!==g.EOF&&t.type!==g.TAG_CLOSE);u=!s}u&&(P.print_newline(!1),b=!0)}P.print_token(w),b=b||P.previous_token_wrapped(),h.has_wrapped_attrs=b}return n},S.prototype._handle_text=function(P,w,h){var k={text:w.text,type:"TK_CONTENT"};return h.custom_beautifier_name?this._print_custom_beatifier_text(P,w,h):h.is_unformatted||h.is_content_unformatted?P.add_raw_token(w):(P.traverse_whitespace(w),P.print_token(w)),k},S.prototype._print_custom_beatifier_text=function(P,w,h){var k=this;if(w.text!==""){var b=w.text,n,u=1,s="",a="";h.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?n=this._js_beautify:h.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?n=this._css_beautify:h.custom_beautifier_name==="html"&&(n=function(ne,me){var Oe=new S(ne,me,k._js_beautify,k._css_beautify);return Oe.beautify()}),this._options.indent_scripts==="keep"?u=0:this._options.indent_scripts==="separate"&&(u=-P.indent_level);var t=P.get_full_indent(u);if(b=b.replace(/\n[ \t]*$/,""),h.custom_beautifier_name!=="html"&&b[0]==="<"&&b.match(/^(|]]>)$/.exec(b);if(!R){P.add_raw_token(w);return}s=t+R[1]+` `,b=R[4],R[5]&&(a=t+R[5]),b=b.replace(/\n[ \t]*$/,""),(R[2]||R[3].indexOf(` `)!==-1)&&(R=R[3].match(/[ \t]+$/),R&&(w.whitespace_before=R[0]))}if(b)if(n){var U=function(){this.eol=` `};U.prototype=this._options.raw_options;var ae=new U;b=n(t+b,ae)}else{var _e=w.whitespace_before;_e&&(b=b.replace(new RegExp(` (`+_e+")?","g"),` `)),b=t+b.replace(/\n/g,` `+t)}s&&(b?b=s+b+` -`+a:b=s+a),P.print_newline(!1),b&&(w.text=b,w.whitespace_before="",w.newlines=0,P.add_raw_token(w),P.print_newline(!0))}},S.prototype._handle_tag_open=function(P,w,f,k){var b=this._get_tag_open_token(w);return(f.is_unformatted||f.is_content_unformatted)&&!f.is_empty_element&&w.type===g.TAG_OPEN&&w.text.indexOf("]*)/),this.tag_check=f?f[1]:""):(f=w.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=f?f[1]:"",(w.text.startsWith("{{#>")||w.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&w.next!==null?this.tag_check=w.next.text.split(" ")[0]:this.tag_check=w.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),w.type===g.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||w.closed&&w.closed.text==="/>";var k=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(k=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(k)))}};S.prototype._get_tag_open_token=function(P){var w=new X(this._tag_stack.get_parser_token(),P);return w.alignment_size=this._options.wrap_attributes_indent_size,w.is_end_tag=w.is_end_tag||G(w.tag_check,this._options.void_elements),w.is_empty_element=w.tag_complete||w.is_start_tag&&w.is_end_tag,w.is_unformatted=!w.tag_complete&&G(w.tag_check,this._options.unformatted),w.is_content_unformatted=!w.is_empty_element&&G(w.tag_check,this._options.content_unformatted),w.is_inline_element=G(w.tag_name,this._options.inline)||w.tag_name.includes("-")||w.tag_start_char==="{",w},S.prototype._set_tag_position=function(P,w,f,k,b){if(f.is_empty_element||(f.is_end_tag?f.start_tag_token=this._tag_stack.try_pop(f.tag_name):(this._do_optional_end_element(f)&&(f.is_inline_element||P.print_newline(!1)),this._tag_stack.record_tag(f),(f.tag_name==="script"||f.tag_name==="style")&&!(f.is_unformatted||f.is_content_unformatted)&&(f.custom_beautifier_name=$(f.tag_check,w)))),G(f.tag_check,this._options.extra_liners)&&(P.print_newline(!1),P._output.just_added_blankline()||P.print_newline(!0)),f.is_empty_element){if(f.tag_start_char==="{"&&f.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),f.indent_content=!0;var n=P.current_line_has_match(/{{#if/);n||P.print_newline(!1)}f.tag_name==="!--"&&b.type===g.TAG_CLOSE&&k.is_end_tag&&f.text.indexOf(` -`)===-1||(f.is_inline_element||f.is_unformatted||P.print_newline(!1),this._calcluate_parent_multiline(P,f))}else if(f.is_end_tag){var u=!1;u=f.start_tag_token&&f.start_tag_token.multiline_content,u=u||!f.is_inline_element&&!(k.is_inline_element||k.is_unformatted)&&!(b.type===g.TAG_CLOSE&&f.start_tag_token===k)&&b.type!=="TK_CONTENT",(f.is_content_unformatted||f.is_unformatted)&&(u=!1),u&&P.print_newline(!1)}else f.indent_content=!f.custom_beautifier_name,f.tag_start_char==="<"&&(f.tag_name==="html"?f.indent_content=this._options.indent_inner_html:f.tag_name==="head"?f.indent_content=this._options.indent_head_inner_html:f.tag_name==="body"&&(f.indent_content=this._options.indent_body_inner_html)),!(f.is_inline_element||f.is_unformatted)&&(b.type!=="TK_CONTENT"||f.is_content_unformatted)&&P.print_newline(!1),this._calcluate_parent_multiline(P,f)},S.prototype._calcluate_parent_multiline=function(P,w){w.parent&&P._output.just_added_newline()&&!((w.is_inline_element||w.is_unformatted)&&w.parent.is_inline_element)&&(w.parent.multiline_content=!0)};var M=["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"],D=["a","audio","del","ins","map","noscript","video"];S.prototype._do_optional_end_element=function(P){var w=null;if(P.is_empty_element||!P.is_start_tag||!P.parent)return;if(P.tag_name==="body")w=w||this._tag_stack.try_pop("head");else if(P.tag_name==="li")w=w||this._tag_stack.try_pop("li",["ol","ul"]);else if(P.tag_name==="dd"||P.tag_name==="dt")w=w||this._tag_stack.try_pop("dt",["dl"]),w=w||this._tag_stack.try_pop("dd",["dl"]);else if(P.parent.tag_name==="p"&&M.indexOf(P.tag_name)!==-1){var f=P.parent.parent;(!f||D.indexOf(f.tag_name)===-1)&&(w=w||this._tag_stack.try_pop("p"))}else P.tag_name==="rp"||P.tag_name==="rt"?(w=w||this._tag_stack.try_pop("rt",["ruby","rtc"]),w=w||this._tag_stack.try_pop("rp",["ruby","rtc"])):P.tag_name==="optgroup"?w=w||this._tag_stack.try_pop("optgroup",["select"]):P.tag_name==="option"?w=w||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):P.tag_name==="colgroup"?w=w||this._tag_stack.try_pop("caption",["table"]):P.tag_name==="thead"?(w=w||this._tag_stack.try_pop("caption",["table"]),w=w||this._tag_stack.try_pop("colgroup",["table"])):P.tag_name==="tbody"||P.tag_name==="tfoot"?(w=w||this._tag_stack.try_pop("caption",["table"]),w=w||this._tag_stack.try_pop("colgroup",["table"]),w=w||this._tag_stack.try_pop("thead",["table"]),w=w||this._tag_stack.try_pop("tbody",["table"])):P.tag_name==="tr"?(w=w||this._tag_stack.try_pop("caption",["table"]),w=w||this._tag_stack.try_pop("colgroup",["table"]),w=w||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(P.tag_name==="th"||P.tag_name==="td")&&(w=w||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),w=w||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return P.parent=this._tag_stack.get_parser_token(),w},E.exports.Beautifier=S},function(E,p,l){var r=l(6).Options;function i(c){r.call(this,c,"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 r,E.exports.Options=i},function(E,p,l){var r=l(9).Tokenizer,i=l(9).TOKEN,c=l(13).Directives,g=l(14).TemplatablePattern,j=l(12).Pattern,v={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},m=new c(/<\!--/,/-->/),W=function($,G){r.call(this,$,G),this._current_tag_name="";var N=new g(this._input).read_options(this._options),J=new j(this._input);if(this.__patterns={word:N.until(/[\n\r\t <]/),single_quote:N.until_after(/'/),double_quote:N.until_after(/"/),attribute:N.until(/[\n\r\t =>]|\/>/),element_name:N.until(/[\n\r\t >\/]/),handlebars_comment:J.starting_with(/{{!--/).until_after(/--}}/),handlebars:J.starting_with(/{{/).until_after(/}}/),handlebars_open:J.until(/[\n\r\t }]/),handlebars_raw_close:J.until(/}}/),comment:J.starting_with(//),cdata:J.starting_with(//),conditional_comment:J.starting_with(//),processing:J.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 S=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=J.matching(S).until_after(S)}};W.prototype=new r,W.prototype._is_comment=function($){return!1},W.prototype._is_opening=function($){return $.type===v.TAG_OPEN},W.prototype._is_closing=function($,G){return $.type===v.TAG_CLOSE&&G&&(($.text===">"||$.text==="/>")&&G.text[0]==="<"||$.text==="}}"&&G.text[0]==="{"&&G.text[1]==="{")},W.prototype._reset=function(){this._current_tag_name=""},W.prototype._get_next_token=function($,G){var N=null;this._readWhitespace();var J=this._input.peek();return J===null?this._create_token(v.EOF,""):(N=N||this._read_open_handlebars(J,G),N=N||this._read_attribute(J,$,G),N=N||this._read_close(J,G),N=N||this._read_raw_content(J,$,G),N=N||this._read_content_word(J),N=N||this._read_comment_or_cdata(J),N=N||this._read_processing(J),N=N||this._read_open(J,G),N=N||this._create_token(v.UNKNOWN,this._input.next()),N)},W.prototype._read_comment_or_cdata=function($){var G=null,N=null,J=null;if($==="<"){var S=this._input.peek(1);S==="!"&&(N=this.__patterns.comment.read(),N?(J=m.get_directives(N),J&&J.ignore==="start"&&(N+=m.readIgnored(this._input))):N=this.__patterns.cdata.read()),N&&(G=this._create_token(v.COMMENT,N),G.directives=J)}return G},W.prototype._read_processing=function($){var G=null,N=null,J=null;if($==="<"){var S=this._input.peek(1);(S==="!"||S==="?")&&(N=this.__patterns.conditional_comment.read(),N=N||this.__patterns.processing.read()),N&&(G=this._create_token(v.COMMENT,N),G.directives=J)}return G},W.prototype._read_open=function($,G){var N=null,J=null;return G||$==="<"&&(N=this._input.next(),this._input.peek()==="/"&&(N+=this._input.next()),N+=this.__patterns.element_name.read(),J=this._create_token(v.TAG_OPEN,N)),J},W.prototype._read_open_handlebars=function($,G){var N=null,J=null;return G||this._options.indent_handlebars&&$==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(N=this.__patterns.handlebars_comment.read(),N=N||this.__patterns.handlebars.read(),J=this._create_token(v.COMMENT,N)):(N=this.__patterns.handlebars_open.read(),J=this._create_token(v.TAG_OPEN,N))),J},W.prototype._read_close=function($,G){var N=null,J=null;return G&&(G.text[0]==="<"&&($===">"||$==="/"&&this._input.peek(1)===">")?(N=this._input.next(),$==="/"&&(N+=this._input.next()),J=this._create_token(v.TAG_CLOSE,N)):G.text[0]==="{"&&$==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),J=this._create_token(v.TAG_CLOSE,"}}"))),J},W.prototype._read_attribute=function($,G,N){var J=null,S="";if(N&&N.text[0]==="<")if($==="=")J=this._create_token(v.EQUALS,this._input.next());else if($==='"'||$==="'"){var X=this._input.next();$==='"'?X+=this.__patterns.double_quote.read():X+=this.__patterns.single_quote.read(),J=this._create_token(v.VALUE,X)}else S=this.__patterns.attribute.read(),S&&(G.type===v.EQUALS?J=this._create_token(v.VALUE,S):J=this._create_token(v.ATTRIBUTE,S));return J},W.prototype._is_content_unformatted=function($){return this._options.void_elements.indexOf($)===-1&&(this._options.content_unformatted.indexOf($)!==-1||this._options.unformatted.indexOf($)!==-1)},W.prototype._read_raw_content=function($,G,N){var J="";if(N&&N.text[0]==="{")J=this.__patterns.handlebars_raw_close.read();else if(G.type===v.TAG_CLOSE&&G.opened.text[0]==="<"&&G.text[0]!=="/"){var S=G.opened.text.substr(1).toLowerCase();if(S==="script"||S==="style"){var X=this._read_comment_or_cdata($);if(X)return X.type=v.TEXT,X;J=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(S)&&(J=this._input.readUntil(new RegExp("","ig")))}return J?this._create_token(v.TEXT,J):null},W.prototype._read_content_word=function($){var G="";if(this._options.unformatted_content_delimiter&&($===this._options.unformatted_content_delimiter[0]&&(G=this.__patterns.unformatted_content_delimiter.read())),G||(G=this.__patterns.word.read()),G)return this._create_token(v.TEXT,G)},E.exports.Tokenizer=W,E.exports.TOKEN=v}],re={};function e(E){var p=re[E];if(p!==void 0)return p.exports;var l=re[E]={exports:{}};return oe[E](l,l.exports,e),l.exports}var T=e(18);ce=T})();var ee=ce;if(!0)!(Y=[o,o("6UM0"),o("TXwP")],z=function(oe){var re=o("6UM0"),e=o("TXwP");return{html_beautify:function(T,E){return ee(T,E,re.js_beautify,e.css_beautify)}}}.apply(Q,Y),z!==void 0&&(Ge.exports=z));else var y,A})()},"rAM+":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return z});var Y=o("Qw5x");function z(ce,ee){var y;if(typeof Symbol=="undefined"||ce[Symbol.iterator]==null){if(Array.isArray(ce)||(y=Object(Y.a)(ce))||ee&&ce&&typeof ce.length=="number"){y&&(ce=y);var A=0,oe=function(){};return{s:oe,n:function(){return A>=ce.length?{done:!0}:{done:!1,value:ce[A++]}},e:function(p){throw p},f:oe}}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 re=!0,e=!1,T;return{s:function(){y=ce[Symbol.iterator]()},n:function(){var p=y.next();return re=p.done,p},e:function(p){e=!0,T=p},f:function(){try{!re&&y.return!=null&&y.return()}finally{if(e)throw T}}}}},sR1s:function(Ge,Q,o){"use strict";o.d(Q,"b",function(){return ee}),o.d(Q,"a",function(){return y}),o.d(Q,"c",function(){return A}),o.d(Q,"d",function(){return oe});var Y=o("U8pU"),z="RC_TABLE_KEY";function ce(re){return re==null?[]:Array.isArray(re)?re:[re]}function ee(re,e){if(!e&&typeof e!="number")return re;for(var T=ce(e),E=re,p=0;p1)Object(T.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(m.length===0)return Object(T.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var W=m[0];if(A.isValidElement(W)&&Object(E.c)(W)){var $=W.ref;m[0]=A.cloneElement(W,{ref:Object(E.a)($,this.setChildNode)})}return m.length===1?m[0]:m.map(function(G,N){return!A.isValidElement(G)||"key"in G&&G.key!==null?G:A.cloneElement(G,{key:"".concat(l,"-").concat(N)})})}}]),g}(A.Component);r.displayName="ResizeObserver",Q.a=r},t9D7:function(Ge,Q,o){"use strict";o.d(Q,"b",function(){return oe}),o.d(Q,"g",function(){return e}),o.d(Q,"d",function(){return T}),o.d(Q,"e",function(){return E}),o.d(Q,"a",function(){return p}),o.d(Q,"f",function(){return i}),o.d(Q,"c",function(){return c});var Y=o("Vhoy"),z=o("MI8n"),ce=o("pmY6"),ee=o("Cg/j"),y=o("ic2d"),A=o("nEHx");const oe=Object(ee.c)("themeService");var re;(function(g){function j(v){return v&&typeof v=="object"&&typeof v.id=="string"}g.isThemeColor=j})(re||(re={}));function e(g){return{id:g}}var T;(function(g){function j(N){return N&&typeof N=="object"&&typeof N.id=="string"&&(typeof N.color=="undefined"||re.isThemeColor(N.color))}g.isThemeIcon=j;const v=new RegExp(`^\\$\\((${Y.a.iconNameExpression}(?:${Y.a.iconModifierExpression})?)\\)$`);function m(N){const J=v.exec(N);if(!J)return;let[,S]=J;return{id:S}}g.fromString=m;function W(N,J){let S=N.id;const X=S.lastIndexOf("~");return X!==-1&&(S=S.substring(0,X)),J&&(S=`${S}~${J}`),{id:S}}g.modify=W;function $(N,J){var S,X;return N.id===J.id&&((S=N.color)===null||S===void 0?void 0:S.id)===((X=J.color)===null||X===void 0?void 0:X.id)}g.isEqual=$;function G(N,J){return{id:N.id,color:J?e(J):void 0}}g.asThemeIcon=G,g.asClassNameArray=Y.a.asClassNameArray,g.asClassName=Y.a.asClassName,g.asCSSSelector=Y.a.asCSSSelector})(T||(T={}));function E(g){switch(g){case A.a.DARK:return"vs-dark";case A.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const p={ThemingContribution:"base.contributions.theming"};class l{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new z.b}onColorThemeChange(g){return this.themingParticipants.push(g),this.onThemingParticipantAddedEmitter.fire(g),Object(ce.i)(()=>{const j=this.themingParticipants.indexOf(g);this.themingParticipants.splice(j,1)})}getThemingParticipants(){return this.themingParticipants}}let r=new l;y.a.add(p.ThemingContribution,r);function i(g){return r.onColorThemeChange(g)}class c extends ce.a{constructor(g){super();this.themeService=g,this.theme=g.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(j=>this.onThemeChange(j)))}onThemeChange(g){this.theme=g,this.updateStyles()}updateStyles(){}}},vHTk:function(Ge,Q,o){Ge.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return At});var Y=o("rePB"),z=o("VTBJ"),ce=o("KQm4"),ee=o("U8pU"),y=o("ODXe"),A=o("q1tI"),oe=o("TSYQ"),re=o.n(oe),e=o("Gytx"),T=o.n(e),E=o("Kwbf"),p=o("t23M"),l=o("qx4F"),r=o("6eGT"),i=o("IBYe"),c=o("Ff2n"),g=o("c+Xe"),j=o("fyJ8"),v=o("biw7");function m(de,Me,Ne,Ke,He){var Se=Ne[de]||{},ke=Ne[Me]||{},Le,Be;Se.fixed==="left"?Le=Ke.left[de]:ke.fixed==="right"&&(Be=Ke.right[Me]);var Re=!1,We=!1,Qe=!1,Ve=!1,at=Ne[Me+1],yt=Ne[de-1];if(He==="rtl"){if(Le!==void 0){var ht=yt&&yt.fixed==="left";Ve=!ht}else if(Be!==void 0){var Tt=at&&at.fixed==="right";Qe=!Tt}}else if(Le!==void 0){var Nt=at&&at.fixed==="left";Re=!Nt}else if(Be!==void 0){var _t=yt&&yt.fixed==="right";We=!_t}return{fixLeft:Le,fixRight:Be,lastFixLeft:Re,firstFixRight:We,lastFixRight:Qe,firstFixLeft:Ve,isSticky:Ke.isSticky}}var W=o("sR1s");function $(de){var Me=de.cells,Ne=de.stickyOffsets,Ke=de.flattenColumns,He=de.rowComponent,Se=de.cellComponent,ke=de.onHeaderRow,Le=de.index,Be=A.useContext(v.a),Re=Be.prefixCls,We=Be.direction,Qe;ke&&(Qe=ke(Me.map(function(at){return at.column}),Le));var Ve=Object(W.a)(Me.map(function(at){return at.column}));return A.createElement(He,Object.assign({},Qe),Me.map(function(at,yt){var ht=at.column,Tt=m(at.colStart,at.colEnd,Ke,Ne,We),Nt;return ht&&ht.onHeaderCell&&(Nt=at.column.onHeaderCell(ht)),A.createElement(j.a,Object.assign({},at,{ellipsis:ht.ellipsis,align:ht.align,component:Se,prefixCls:Re,key:Ve[yt]},Tt,{additionalProps:Nt,rowType:"header"}))}))}$.displayName="HeaderRow";var G=$;function N(de){var Me=[];function Ne(ke,Le){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Me[Be]=Me[Be]||[];var Re=Le,We=ke.filter(Boolean).map(function(Qe){var Ve={key:Qe.key,className:Qe.className||"",children:Qe.title,column:Qe,colStart:Re},at=1,yt=Qe.children;return yt&&yt.length>0&&(at=Ne(yt,Re,Be+1).reduce(function(ht,Tt){return ht+Tt},0),Ve.hasSubColumns=!0),"colSpan"in Qe&&(at=Qe.colSpan),"rowSpan"in Qe&&(Ve.rowSpan=Qe.rowSpan),Ve.colSpan=at,Ve.colEnd=Ve.colStart+at-1,Me[Be].push(Ve),Re+=at,at});return We}Ne(de,0);for(var Ke=Me.length,He=function(Le){Me[Le].forEach(function(Be){!("rowSpan"in Be)&&!Be.hasSubColumns&&(Be.rowSpan=Ke-Le)})},Se=0;Se=0;Le-=1){var Be=Me[Le],Re=Ne&&Ne[Le],We=Re&&Re[X.a];(Be||We||ke)&&(He.unshift(A.createElement("col",Object.assign({key:Le,style:{width:Be,minWidth:Be}},We))),ke=!0)}return A.createElement("colgroup",null,He)}var D=M;function P(de,Me){return Object(A.useMemo)(function(){for(var Ne=[],Ke=0;Ke1?ot-1:0),Pt=1;Pt=Qe&&(et=Qe-Ve),ke({scrollLeft:et/Qe*(We+2)}),_t.current.x=it.pageX},Ft=function(){var it=Object(V.b)(Se.current).top,zt=it+Se.current.offsetHeight,$e=document.documentElement.scrollTop+window.innerHeight;zt-Object(l.a)()<=$e||it>=$e-Le?Nt(function(Ye){return Object(z.a)(Object(z.a)({},Ye),{},{isHiddenScrollBar:!0})}):Nt(function(Ye){return Object(z.a)(Object(z.a)({},Ye),{},{isHiddenScrollBar:!1})})},ze=function(it){Nt(function(zt){return Object(z.a)(Object(z.a)({},zt),{},{scrollLeft:it/We*Qe||0})})};return A.useImperativeHandle(Ne,function(){return{setScrollLeft:ze}}),A.useEffect(function(){var ct=Object(Xe.a)(document.body,"mouseup",Vt,!1),it=Object(Xe.a)(document.body,"mousemove",ln,!1);return Ft(),function(){ct.remove(),it.remove()}},[Ve,Ut]),A.useEffect(function(){var ct=Object(Xe.a)(window,"scroll",Ft,!1),it=Object(Xe.a)(window,"resize",Ft,!1);return function(){ct.remove(),it.remove()}},[]),A.useEffect(function(){Tt.isHiddenScrollBar||Nt(function(ct){var it,zt;return Object(z.a)(Object(z.a)({},ct),{},{scrollLeft:Se.current.scrollLeft/((it=Se.current)===null||it===void 0?void 0:it.scrollWidth)*((zt=Se.current)===null||zt===void 0?void 0:zt.clientWidth)})})},[Tt.isHiddenScrollBar]),We<=Qe||!Ve||Tt.isHiddenScrollBar?null:A.createElement("div",{style:{height:Object(l.a)(),width:Qe,bottom:Le},className:"".concat(Re,"-sticky-scroll")},A.createElement("div",{onMouseDown:jt,ref:at,className:re()("".concat(Re,"-sticky-scroll-bar"),Object(Y.a)({},"".concat(Re,"-sticky-scroll-bar-active"),Ut)),style:{width:"".concat(Ve,"px"),transform:"translate3d(".concat(Tt.scrollLeft,"px, 0, 0)")}}))},ge=A.forwardRef(se);function Te(de,Me){return A.useMemo(function(){var Ne=!!de;return{isSticky:Ne,stickyClassName:Ne?"".concat(Me,"-sticky-header"):"",offsetHeader:Object(ee.a)(de)==="object"&&de.offsetHeader||0,offsetScroll:Object(ee.a)(de)==="object"&&de.offsetScroll||0}},[de,Me])}var qe=[],ut={},At="rc-table-internal-hook",Et=A.memo(function(de){var Me=de.children;return Me},function(de,Me){return T()(de.props,Me.props)?de.pingLeft!==Me.pingLeft||de.pingRight!==Me.pingRight:!1});function tt(de){var Me,Ne=de.prefixCls,Ke=de.className,He=de.rowClassName,Se=de.style,ke=de.data,Le=de.rowKey,Be=de.scroll,Re=de.tableLayout,We=de.direction,Qe=de.title,Ve=de.footer,at=de.summary,yt=de.id,ht=de.showHeader,Tt=de.components,Nt=de.emptyText,_t=de.onRow,nn=de.onHeaderRow,Gt=de.internalHooks,Ut=de.transformColumns,Qt=de.internalRefs,Vt=de.sticky,jt=ke||qe,ln=!!jt.length,Ft=A.useState(0),ze=Object(y.a)(Ft,2),ct=ze[0],it=ze[1];A.useEffect(function(){it(Object(l.a)())});var zt=A.useMemo(function(){return Object(W.c)(Tt,{})},[Tt]),$e=A.useCallback(function(Bt,kt){return Object(W.b)(zt,Bt)||kt},[zt]),Ye=A.useMemo(function(){return typeof Le=="function"?Le:function(Bt){var kt=Bt&&Bt[Le];return kt}},[Le]),et=Object(X.c)(de),Lt=et.expandIcon,on=et.expandedRowKeys,bn=et.defaultExpandedRowKeys,hn=et.defaultExpandAllRows,vn=et.expandedRowRender,Jt=et.onExpand,an=et.onExpandedRowsChange,En=et.expandRowByClick,Zt=et.rowExpandable,Sn=et.expandIconColumnIndex,yn=et.expandedRowClassName,wn=et.childrenColumnName,xn=et.indentSize,An=Lt||Ae,Rn=wn||"children",Nn=A.useMemo(function(){return vn?"row":de.expandable&&Gt===At&&de.expandable.__PARENT_RENDER_ICON__||jt.some(function(Bt){return Bt&&Object(ee.a)(Bt)==="object"&&Bt[Rn]})?"nest":!1},[!!vn,jt]),Dn=A.useState(function(){return bn||(hn?Fe(jt,Ye,Rn):[])}),vt=Object(y.a)(Dn,2),pe=vt[0],Je=vt[1],ot=A.useMemo(function(){return new Set(on||pe||[])},[on,pe]),st=A.useCallback(function(Bt){var kt=Ye(Bt,jt.indexOf(Bt)),un,Cn=ot.has(kt);Cn?(ot.delete(kt),un=Object(ce.a)(ot)):un=[].concat(Object(ce.a)(ot),[kt]),Je(un),Jt&&Jt(!Cn,Bt),an&&an(un)},[Ye,ot,jt,Jt,an]),Pt=A.useState(0),Ot=Object(y.a)(Pt,2),gt=Ot[0],Z=Ot[1],xe=Object(me.b)(Object(z.a)(Object(z.a)(Object(z.a)({},de),et),{},{expandable:!!vn,expandedKeys:ot,getRowKey:Ye,onTriggerExpand:st,expandIcon:An,expandIconColumnIndex:Sn,direction:We}),Gt===At?Ut:null),he=Object(y.a)(xe,2),be=he[0],Ce=he[1],Ue=A.useMemo(function(){return{columns:be,flattenColumns:Ce}},[be,Ce]),fe=A.useRef(),Ie=A.useRef(),nt=A.useRef(),Tn=A.useState(!1),fn=Object(y.a)(Tn,2),Ln=fn[0],$t=fn[1],mt=A.useState(!1),Dt=Object(y.a)(mt,2),_n=Dt[0],Zn=Dt[1],Ma=ue(new Map),$n=Object(y.a)(Ma,2),Da=$n[0],oa=$n[1],Kn=Object(W.a)(Ce),ya=Kn.map(function(Bt){return Da.get(Bt)}),Oa=A.useMemo(function(){return ya},[ya.join("_")]),wa=q(Oa,Ce.length,We),In=Be&&Object(W.d)(Be.y),zn=Be&&Object(W.d)(Be.x),Bn=zn&&Ce.some(function(Bt){var kt=Bt.fixed;return kt}),rn=A.useRef(),qn=Te(Vt,Ne),sa=qn.isSticky,xa=qn.offsetHeader,Xa=qn.offsetScroll,La=qn.stickyClassName,Ra,la,Xn;In&&(la={overflowY:"scroll",maxHeight:Be.y}),zn&&(Ra={overflowX:"auto"},In||(la={overflowY:"hidden"}),Xn={width:Be.x===!0?"auto":Be.x,minWidth:"100%"});var ea=A.useCallback(function(Bt,kt){oa(function(un){var Cn=new Map(un);return Cn.set(Bt,kt),Cn})},[]),ha=Ee(null),Ta=Object(y.a)(ha,2),ta=Ta[0],fa=Ta[1];function pa(Bt,kt){if(!kt)return;typeof kt=="function"?kt(Bt):kt.scrollLeft!==Bt&&(kt.scrollLeft=Bt)}var na=function(kt){var un=kt.currentTarget,Cn=kt.scrollLeft,Hn=typeof Cn=="number"?Cn:un.scrollLeft,Ka=un||ut;if(!fa()||fa()===Ka){var Na;ta(Ka),pa(Hn,Ie.current),pa(Hn,nt.current),pa(Hn,(Na=rn.current)===null||Na===void 0?void 0:Na.setScrollLeft)}if(un){var za=un.scrollWidth,Ia=un.clientWidth;$t(Hn>0),Zn(Hn0?[].concat(Object(z.a)(c),Object(z.a)(E(m).map(function(W){return Object(ce.a)({fixed:v},W)}))):[].concat(Object(z.a)(c),[Object(ce.a)(Object(ce.a)({},g),{},{fixed:v})])},[])}function p(i){for(var c=!0,g=0;g=0;m-=1){var W=i[m];if(v&&W.fixed!=="right")v=!1;else if(!v&&W.fixed==="right"){Object(oe.a)(!1,"Index ".concat(m+1," of `columns` missing `fixed='right'` prop."));break}}}function l(i){return i.map(function(c){var g=c.fixed,j=Object(ee.a)(c,["fixed"]),v=g;return g==="left"?v="right":g==="right"&&(v="left"),Object(ce.a)({fixed:v},j)})}function r(i,c){var g=i.prefixCls,j=i.columns,v=i.children,m=i.expandable,W=i.expandedKeys,$=i.getRowKey,G=i.onTriggerExpand,N=i.expandIcon,J=i.rowExpandable,S=i.expandIconColumnIndex,X=i.direction,M=i.expandRowByClick,D=y.useMemo(function(){return j||T(v)},[j,v]),P=y.useMemo(function(){if(m){var k,b=S||0,n=D[b],u=(k={},Object(Y.a)(k,e.a,{className:"".concat(g,"-expand-icon-col")}),Object(Y.a)(k,"title",""),Object(Y.a)(k,"fixed",n?n.fixed:null),Object(Y.a)(k,"className","".concat(g,"-row-expand-icon-cell")),Object(Y.a)(k,"render",function(t,R,U){var ae=$(R,U),_e=W.has(ae),ne=J?J(R):!0,me=N({prefixCls:g,expanded:_e,expandable:ne,record:R,onExpand:G});return M?y.createElement("span",{onClick:function(we){return we.stopPropagation()}},me):me}),k),s=D.slice();return b>=0&&s.splice(b,0,u),s}return D},[m,D,$,W,N,X]),w=y.useMemo(function(){var k=P;return c&&(k=c(k)),k.length||(k=[{render:function(){return null}}]),k},[c,P,X]),f=y.useMemo(function(){return X==="rtl"?l(E(w)):E(w)},[w,X]);return[w,f]}Q.b=r},"y0+3":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return E}),o.d(Q,"b",function(){return l});var Y=/margin|padding|width|height|max|min|offset/,z={left:!0,top:!0},ce={cssFloat:1,styleFloat:1,float:1};function ee(r){return r.nodeType===1?r.ownerDocument.defaultView.getComputedStyle(r,null):{}}function y(r,i,c){if(i=i.toLowerCase(),c==="auto"){if(i==="height")return r.offsetHeight;if(i==="width")return r.offsetWidth}return i in z||(z[i]=Y.test(i)),z[i]?parseFloat(c)||0:c}function A(r,i){var c=arguments.length,g=ee(r);return i=ce[i]?"cssFloat"in r.style?"cssFloat":"styleFloat":i,c===1?g:y(r,i,g[i]||r.style[i])}function oe(r,i,c){var g=arguments.length;if(i=ce[i]?"cssFloat"in r.style?"cssFloat":"styleFloat":i,g===3)return typeof c=="number"&&Y.test(i)&&(c="".concat(c,"px")),r.style[i]=c,c;for(var j in i)i.hasOwnProperty(j)&&oe(r,j,i[j]);return ee(r)}function re(r){return r===document.body?document.documentElement.clientWidth:r.offsetWidth}function e(r){return r===document.body?window.innerHeight||document.documentElement.clientHeight:r.offsetHeight}function T(){var r=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:r,height:i}}function E(){var r=document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return{width:r,height:i}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function l(r){var i=r.getBoundingClientRect(),c=document.documentElement;return{left:i.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||document.body.clientTop||0)}}},zmGA:function(Ge,Q){Ge.exports="data:image/png;base64,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"}}]); +`+a:b=s+a),P.print_newline(!1),b&&(w.text=b,w.whitespace_before="",w.newlines=0,P.add_raw_token(w),P.print_newline(!0))}},S.prototype._handle_tag_open=function(P,w,h,k){var b=this._get_tag_open_token(w);return(h.is_unformatted||h.is_content_unformatted)&&!h.is_empty_element&&w.type===g.TAG_OPEN&&w.text.indexOf("]*)/),this.tag_check=h?h[1]:""):(h=w.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=h?h[1]:"",(w.text.startsWith("{{#>")||w.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&w.next!==null?this.tag_check=w.next.text.split(" ")[0]:this.tag_check=w.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),w.type===g.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||w.closed&&w.closed.text==="/>";var k=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(k=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(k)))}};S.prototype._get_tag_open_token=function(P){var w=new X(this._tag_stack.get_parser_token(),P);return w.alignment_size=this._options.wrap_attributes_indent_size,w.is_end_tag=w.is_end_tag||G(w.tag_check,this._options.void_elements),w.is_empty_element=w.tag_complete||w.is_start_tag&&w.is_end_tag,w.is_unformatted=!w.tag_complete&&G(w.tag_check,this._options.unformatted),w.is_content_unformatted=!w.is_empty_element&&G(w.tag_check,this._options.content_unformatted),w.is_inline_element=G(w.tag_name,this._options.inline)||w.tag_name.includes("-")||w.tag_start_char==="{",w},S.prototype._set_tag_position=function(P,w,h,k,b){if(h.is_empty_element||(h.is_end_tag?h.start_tag_token=this._tag_stack.try_pop(h.tag_name):(this._do_optional_end_element(h)&&(h.is_inline_element||P.print_newline(!1)),this._tag_stack.record_tag(h),(h.tag_name==="script"||h.tag_name==="style")&&!(h.is_unformatted||h.is_content_unformatted)&&(h.custom_beautifier_name=$(h.tag_check,w)))),G(h.tag_check,this._options.extra_liners)&&(P.print_newline(!1),P._output.just_added_blankline()||P.print_newline(!0)),h.is_empty_element){if(h.tag_start_char==="{"&&h.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),h.indent_content=!0;var n=P.current_line_has_match(/{{#if/);n||P.print_newline(!1)}h.tag_name==="!--"&&b.type===g.TAG_CLOSE&&k.is_end_tag&&h.text.indexOf(` +`)===-1||(h.is_inline_element||h.is_unformatted||P.print_newline(!1),this._calcluate_parent_multiline(P,h))}else if(h.is_end_tag){var u=!1;u=h.start_tag_token&&h.start_tag_token.multiline_content,u=u||!h.is_inline_element&&!(k.is_inline_element||k.is_unformatted)&&!(b.type===g.TAG_CLOSE&&h.start_tag_token===k)&&b.type!=="TK_CONTENT",(h.is_content_unformatted||h.is_unformatted)&&(u=!1),u&&P.print_newline(!1)}else h.indent_content=!h.custom_beautifier_name,h.tag_start_char==="<"&&(h.tag_name==="html"?h.indent_content=this._options.indent_inner_html:h.tag_name==="head"?h.indent_content=this._options.indent_head_inner_html:h.tag_name==="body"&&(h.indent_content=this._options.indent_body_inner_html)),!(h.is_inline_element||h.is_unformatted)&&(b.type!=="TK_CONTENT"||h.is_content_unformatted)&&P.print_newline(!1),this._calcluate_parent_multiline(P,h)},S.prototype._calcluate_parent_multiline=function(P,w){w.parent&&P._output.just_added_newline()&&!((w.is_inline_element||w.is_unformatted)&&w.parent.is_inline_element)&&(w.parent.multiline_content=!0)};var M=["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"],D=["a","audio","del","ins","map","noscript","video"];S.prototype._do_optional_end_element=function(P){var w=null;if(P.is_empty_element||!P.is_start_tag||!P.parent)return;if(P.tag_name==="body")w=w||this._tag_stack.try_pop("head");else if(P.tag_name==="li")w=w||this._tag_stack.try_pop("li",["ol","ul"]);else if(P.tag_name==="dd"||P.tag_name==="dt")w=w||this._tag_stack.try_pop("dt",["dl"]),w=w||this._tag_stack.try_pop("dd",["dl"]);else if(P.parent.tag_name==="p"&&M.indexOf(P.tag_name)!==-1){var h=P.parent.parent;(!h||D.indexOf(h.tag_name)===-1)&&(w=w||this._tag_stack.try_pop("p"))}else P.tag_name==="rp"||P.tag_name==="rt"?(w=w||this._tag_stack.try_pop("rt",["ruby","rtc"]),w=w||this._tag_stack.try_pop("rp",["ruby","rtc"])):P.tag_name==="optgroup"?w=w||this._tag_stack.try_pop("optgroup",["select"]):P.tag_name==="option"?w=w||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):P.tag_name==="colgroup"?w=w||this._tag_stack.try_pop("caption",["table"]):P.tag_name==="thead"?(w=w||this._tag_stack.try_pop("caption",["table"]),w=w||this._tag_stack.try_pop("colgroup",["table"])):P.tag_name==="tbody"||P.tag_name==="tfoot"?(w=w||this._tag_stack.try_pop("caption",["table"]),w=w||this._tag_stack.try_pop("colgroup",["table"]),w=w||this._tag_stack.try_pop("thead",["table"]),w=w||this._tag_stack.try_pop("tbody",["table"])):P.tag_name==="tr"?(w=w||this._tag_stack.try_pop("caption",["table"]),w=w||this._tag_stack.try_pop("colgroup",["table"]),w=w||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(P.tag_name==="th"||P.tag_name==="td")&&(w=w||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),w=w||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return P.parent=this._tag_stack.get_parser_token(),w},E.exports.Beautifier=S},function(E,p,l){var r=l(6).Options;function i(c){r.call(this,c,"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 r,E.exports.Options=i},function(E,p,l){var r=l(9).Tokenizer,i=l(9).TOKEN,c=l(13).Directives,g=l(14).TemplatablePattern,j=l(12).Pattern,v={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},m=new c(/<\!--/,/-->/),W=function($,G){r.call(this,$,G),this._current_tag_name="";var N=new g(this._input).read_options(this._options),J=new j(this._input);if(this.__patterns={word:N.until(/[\n\r\t <]/),single_quote:N.until_after(/'/),double_quote:N.until_after(/"/),attribute:N.until(/[\n\r\t =>]|\/>/),element_name:N.until(/[\n\r\t >\/]/),handlebars_comment:J.starting_with(/{{!--/).until_after(/--}}/),handlebars:J.starting_with(/{{/).until_after(/}}/),handlebars_open:J.until(/[\n\r\t }]/),handlebars_raw_close:J.until(/}}/),comment:J.starting_with(//),cdata:J.starting_with(//),conditional_comment:J.starting_with(//),processing:J.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 S=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=J.matching(S).until_after(S)}};W.prototype=new r,W.prototype._is_comment=function($){return!1},W.prototype._is_opening=function($){return $.type===v.TAG_OPEN},W.prototype._is_closing=function($,G){return $.type===v.TAG_CLOSE&&G&&(($.text===">"||$.text==="/>")&&G.text[0]==="<"||$.text==="}}"&&G.text[0]==="{"&&G.text[1]==="{")},W.prototype._reset=function(){this._current_tag_name=""},W.prototype._get_next_token=function($,G){var N=null;this._readWhitespace();var J=this._input.peek();return J===null?this._create_token(v.EOF,""):(N=N||this._read_open_handlebars(J,G),N=N||this._read_attribute(J,$,G),N=N||this._read_close(J,G),N=N||this._read_raw_content(J,$,G),N=N||this._read_content_word(J),N=N||this._read_comment_or_cdata(J),N=N||this._read_processing(J),N=N||this._read_open(J,G),N=N||this._create_token(v.UNKNOWN,this._input.next()),N)},W.prototype._read_comment_or_cdata=function($){var G=null,N=null,J=null;if($==="<"){var S=this._input.peek(1);S==="!"&&(N=this.__patterns.comment.read(),N?(J=m.get_directives(N),J&&J.ignore==="start"&&(N+=m.readIgnored(this._input))):N=this.__patterns.cdata.read()),N&&(G=this._create_token(v.COMMENT,N),G.directives=J)}return G},W.prototype._read_processing=function($){var G=null,N=null,J=null;if($==="<"){var S=this._input.peek(1);(S==="!"||S==="?")&&(N=this.__patterns.conditional_comment.read(),N=N||this.__patterns.processing.read()),N&&(G=this._create_token(v.COMMENT,N),G.directives=J)}return G},W.prototype._read_open=function($,G){var N=null,J=null;return G||$==="<"&&(N=this._input.next(),this._input.peek()==="/"&&(N+=this._input.next()),N+=this.__patterns.element_name.read(),J=this._create_token(v.TAG_OPEN,N)),J},W.prototype._read_open_handlebars=function($,G){var N=null,J=null;return G||this._options.indent_handlebars&&$==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(N=this.__patterns.handlebars_comment.read(),N=N||this.__patterns.handlebars.read(),J=this._create_token(v.COMMENT,N)):(N=this.__patterns.handlebars_open.read(),J=this._create_token(v.TAG_OPEN,N))),J},W.prototype._read_close=function($,G){var N=null,J=null;return G&&(G.text[0]==="<"&&($===">"||$==="/"&&this._input.peek(1)===">")?(N=this._input.next(),$==="/"&&(N+=this._input.next()),J=this._create_token(v.TAG_CLOSE,N)):G.text[0]==="{"&&$==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),J=this._create_token(v.TAG_CLOSE,"}}"))),J},W.prototype._read_attribute=function($,G,N){var J=null,S="";if(N&&N.text[0]==="<")if($==="=")J=this._create_token(v.EQUALS,this._input.next());else if($==='"'||$==="'"){var X=this._input.next();$==='"'?X+=this.__patterns.double_quote.read():X+=this.__patterns.single_quote.read(),J=this._create_token(v.VALUE,X)}else S=this.__patterns.attribute.read(),S&&(G.type===v.EQUALS?J=this._create_token(v.VALUE,S):J=this._create_token(v.ATTRIBUTE,S));return J},W.prototype._is_content_unformatted=function($){return this._options.void_elements.indexOf($)===-1&&(this._options.content_unformatted.indexOf($)!==-1||this._options.unformatted.indexOf($)!==-1)},W.prototype._read_raw_content=function($,G,N){var J="";if(N&&N.text[0]==="{")J=this.__patterns.handlebars_raw_close.read();else if(G.type===v.TAG_CLOSE&&G.opened.text[0]==="<"&&G.text[0]!=="/"){var S=G.opened.text.substr(1).toLowerCase();if(S==="script"||S==="style"){var X=this._read_comment_or_cdata($);if(X)return X.type=v.TEXT,X;J=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(S)&&(J=this._input.readUntil(new RegExp("","ig")))}return J?this._create_token(v.TEXT,J):null},W.prototype._read_content_word=function($){var G="";if(this._options.unformatted_content_delimiter&&($===this._options.unformatted_content_delimiter[0]&&(G=this.__patterns.unformatted_content_delimiter.read())),G||(G=this.__patterns.word.read()),G)return this._create_token(v.TEXT,G)},E.exports.Tokenizer=W,E.exports.TOKEN=v}],re={};function e(E){var p=re[E];if(p!==void 0)return p.exports;var l=re[E]={exports:{}};return oe[E](l,l.exports,e),l.exports}var T=e(18);ce=T})();var ee=ce;if(!0)!(Y=[o,o("6UM0"),o("TXwP")],z=function(oe){var re=o("6UM0"),e=o("TXwP");return{html_beautify:function(T,E){return ee(T,E,re.js_beautify,e.css_beautify)}}}.apply(Q,Y),z!==void 0&&(Ge.exports=z));else var y,A})()},"rAM+":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return z});var Y=o("Qw5x");function z(ce,ee){var y;if(typeof Symbol=="undefined"||ce[Symbol.iterator]==null){if(Array.isArray(ce)||(y=Object(Y.a)(ce))||ee&&ce&&typeof ce.length=="number"){y&&(ce=y);var A=0,oe=function(){};return{s:oe,n:function(){return A>=ce.length?{done:!0}:{done:!1,value:ce[A++]}},e:function(p){throw p},f:oe}}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 re=!0,e=!1,T;return{s:function(){y=ce[Symbol.iterator]()},n:function(){var p=y.next();return re=p.done,p},e:function(p){e=!0,T=p},f:function(){try{!re&&y.return!=null&&y.return()}finally{if(e)throw T}}}}},sR1s:function(Ge,Q,o){"use strict";o.d(Q,"b",function(){return ee}),o.d(Q,"a",function(){return y}),o.d(Q,"c",function(){return A}),o.d(Q,"d",function(){return oe});var Y=o("U8pU"),z="RC_TABLE_KEY";function ce(re){return re==null?[]:Array.isArray(re)?re:[re]}function ee(re,e){if(!e&&typeof e!="number")return re;for(var T=ce(e),E=re,p=0;p1)Object(T.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(m.length===0)return Object(T.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var W=m[0];if(A.isValidElement(W)&&Object(E.c)(W)){var $=W.ref;m[0]=A.cloneElement(W,{ref:Object(E.a)($,this.setChildNode)})}return m.length===1?m[0]:m.map(function(G,N){return!A.isValidElement(G)||"key"in G&&G.key!==null?G:A.cloneElement(G,{key:"".concat(l,"-").concat(N)})})}}]),g}(A.Component);r.displayName="ResizeObserver",Q.a=r},t9D7:function(Ge,Q,o){"use strict";o.d(Q,"b",function(){return oe}),o.d(Q,"g",function(){return e}),o.d(Q,"d",function(){return T}),o.d(Q,"e",function(){return E}),o.d(Q,"a",function(){return p}),o.d(Q,"f",function(){return i}),o.d(Q,"c",function(){return c});var Y=o("Vhoy"),z=o("MI8n"),ce=o("pmY6"),ee=o("Cg/j"),y=o("ic2d"),A=o("nEHx");const oe=Object(ee.c)("themeService");var re;(function(g){function j(v){return v&&typeof v=="object"&&typeof v.id=="string"}g.isThemeColor=j})(re||(re={}));function e(g){return{id:g}}var T;(function(g){function j(N){return N&&typeof N=="object"&&typeof N.id=="string"&&(typeof N.color=="undefined"||re.isThemeColor(N.color))}g.isThemeIcon=j;const v=new RegExp(`^\\$\\((${Y.a.iconNameExpression}(?:${Y.a.iconModifierExpression})?)\\)$`);function m(N){const J=v.exec(N);if(!J)return;let[,S]=J;return{id:S}}g.fromString=m;function W(N,J){let S=N.id;const X=S.lastIndexOf("~");return X!==-1&&(S=S.substring(0,X)),J&&(S=`${S}~${J}`),{id:S}}g.modify=W;function $(N,J){var S,X;return N.id===J.id&&((S=N.color)===null||S===void 0?void 0:S.id)===((X=J.color)===null||X===void 0?void 0:X.id)}g.isEqual=$;function G(N,J){return{id:N.id,color:J?e(J):void 0}}g.asThemeIcon=G,g.asClassNameArray=Y.a.asClassNameArray,g.asClassName=Y.a.asClassName,g.asCSSSelector=Y.a.asCSSSelector})(T||(T={}));function E(g){switch(g){case A.a.DARK:return"vs-dark";case A.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const p={ThemingContribution:"base.contributions.theming"};class l{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new z.b}onColorThemeChange(g){return this.themingParticipants.push(g),this.onThemingParticipantAddedEmitter.fire(g),Object(ce.i)(()=>{const j=this.themingParticipants.indexOf(g);this.themingParticipants.splice(j,1)})}getThemingParticipants(){return this.themingParticipants}}let r=new l;y.a.add(p.ThemingContribution,r);function i(g){return r.onColorThemeChange(g)}class c extends ce.a{constructor(g){super();this.themeService=g,this.theme=g.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(j=>this.onThemeChange(j)))}onThemeChange(g){this.theme=g,this.updateStyles()}updateStyles(){}}},vHTk:function(Ge,Q,o){Ge.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return At});var Y=o("rePB"),z=o("VTBJ"),ce=o("KQm4"),ee=o("U8pU"),y=o("ODXe"),A=o("q1tI"),oe=o("TSYQ"),re=o.n(oe),e=o("Gytx"),T=o.n(e),E=o("Kwbf"),p=o("t23M"),l=o("qx4F"),r=o("6eGT"),i=o("IBYe"),c=o("Ff2n"),g=o("c+Xe"),j=o("fyJ8"),v=o("biw7");function m(de,Me,Ne,Ke,He){var Se=Ne[de]||{},ke=Ne[Me]||{},Le,Be;Se.fixed==="left"?Le=Ke.left[de]:ke.fixed==="right"&&(Be=Ke.right[Me]);var Re=!1,We=!1,Qe=!1,Ve=!1,at=Ne[Me+1],yt=Ne[de-1];if(He==="rtl"){if(Le!==void 0){var ft=yt&&yt.fixed==="left";Ve=!ft}else if(Be!==void 0){var Tt=at&&at.fixed==="right";Qe=!Tt}}else if(Le!==void 0){var Nt=at&&at.fixed==="left";Re=!Nt}else if(Be!==void 0){var _t=yt&&yt.fixed==="right";We=!_t}return{fixLeft:Le,fixRight:Be,lastFixLeft:Re,firstFixRight:We,lastFixRight:Qe,firstFixLeft:Ve,isSticky:Ke.isSticky}}var W=o("sR1s");function $(de){var Me=de.cells,Ne=de.stickyOffsets,Ke=de.flattenColumns,He=de.rowComponent,Se=de.cellComponent,ke=de.onHeaderRow,Le=de.index,Be=A.useContext(v.a),Re=Be.prefixCls,We=Be.direction,Qe;ke&&(Qe=ke(Me.map(function(at){return at.column}),Le));var Ve=Object(W.a)(Me.map(function(at){return at.column}));return A.createElement(He,Object.assign({},Qe),Me.map(function(at,yt){var ft=at.column,Tt=m(at.colStart,at.colEnd,Ke,Ne,We),Nt;return ft&&ft.onHeaderCell&&(Nt=at.column.onHeaderCell(ft)),A.createElement(j.a,Object.assign({},at,{ellipsis:ft.ellipsis,align:ft.align,component:Se,prefixCls:Re,key:Ve[yt]},Tt,{additionalProps:Nt,rowType:"header"}))}))}$.displayName="HeaderRow";var G=$;function N(de){var Me=[];function Ne(ke,Le){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Me[Be]=Me[Be]||[];var Re=Le,We=ke.filter(Boolean).map(function(Qe){var Ve={key:Qe.key,className:Qe.className||"",children:Qe.title,column:Qe,colStart:Re},at=1,yt=Qe.children;return yt&&yt.length>0&&(at=Ne(yt,Re,Be+1).reduce(function(ft,Tt){return ft+Tt},0),Ve.hasSubColumns=!0),"colSpan"in Qe&&(at=Qe.colSpan),"rowSpan"in Qe&&(Ve.rowSpan=Qe.rowSpan),Ve.colSpan=at,Ve.colEnd=Ve.colStart+at-1,Me[Be].push(Ve),Re+=at,at});return We}Ne(de,0);for(var Ke=Me.length,He=function(Le){Me[Le].forEach(function(Be){!("rowSpan"in Be)&&!Be.hasSubColumns&&(Be.rowSpan=Ke-Le)})},Se=0;Se=0;Le-=1){var Be=Me[Le],Re=Ne&&Ne[Le],We=Re&&Re[X.a];(Be||We||ke)&&(He.unshift(A.createElement("col",Object.assign({key:Le,style:{width:Be,minWidth:Be}},We))),ke=!0)}return A.createElement("colgroup",null,He)}var D=M;function P(de,Me){return Object(A.useMemo)(function(){for(var Ne=[],Ke=0;Ke1?ot-1:0),Pt=1;Pt=Qe&&(et=Qe-Ve),ke({scrollLeft:et/Qe*(We+2)}),_t.current.x=it.pageX},Ft=function(){var it=Object(V.b)(Se.current).top,zt=it+Se.current.offsetHeight,$e=document.documentElement.scrollTop+window.innerHeight;zt-Object(l.a)()<=$e||it>=$e-Le?Nt(function(Ye){return Object(z.a)(Object(z.a)({},Ye),{},{isHiddenScrollBar:!0})}):Nt(function(Ye){return Object(z.a)(Object(z.a)({},Ye),{},{isHiddenScrollBar:!1})})},ze=function(it){Nt(function(zt){return Object(z.a)(Object(z.a)({},zt),{},{scrollLeft:it/We*Qe||0})})};return A.useImperativeHandle(Ne,function(){return{setScrollLeft:ze}}),A.useEffect(function(){var ct=Object(Xe.a)(document.body,"mouseup",Vt,!1),it=Object(Xe.a)(document.body,"mousemove",ln,!1);return Ft(),function(){ct.remove(),it.remove()}},[Ve,Ut]),A.useEffect(function(){var ct=Object(Xe.a)(window,"scroll",Ft,!1),it=Object(Xe.a)(window,"resize",Ft,!1);return function(){ct.remove(),it.remove()}},[]),A.useEffect(function(){Tt.isHiddenScrollBar||Nt(function(ct){var it,zt;return Object(z.a)(Object(z.a)({},ct),{},{scrollLeft:Se.current.scrollLeft/((it=Se.current)===null||it===void 0?void 0:it.scrollWidth)*((zt=Se.current)===null||zt===void 0?void 0:zt.clientWidth)})})},[Tt.isHiddenScrollBar]),We<=Qe||!Ve||Tt.isHiddenScrollBar?null:A.createElement("div",{style:{height:Object(l.a)(),width:Qe,bottom:Le},className:"".concat(Re,"-sticky-scroll")},A.createElement("div",{onMouseDown:jt,ref:at,className:re()("".concat(Re,"-sticky-scroll-bar"),Object(Y.a)({},"".concat(Re,"-sticky-scroll-bar-active"),Ut)),style:{width:"".concat(Ve,"px"),transform:"translate3d(".concat(Tt.scrollLeft,"px, 0, 0)")}}))},ge=A.forwardRef(se);function Te(de,Me){return A.useMemo(function(){var Ne=!!de;return{isSticky:Ne,stickyClassName:Ne?"".concat(Me,"-sticky-header"):"",offsetHeader:Object(ee.a)(de)==="object"&&de.offsetHeader||0,offsetScroll:Object(ee.a)(de)==="object"&&de.offsetScroll||0}},[de,Me])}var qe=[],ut={},At="rc-table-internal-hook",Et=A.memo(function(de){var Me=de.children;return Me},function(de,Me){return T()(de.props,Me.props)?de.pingLeft!==Me.pingLeft||de.pingRight!==Me.pingRight:!1});function tt(de){var Me,Ne=de.prefixCls,Ke=de.className,He=de.rowClassName,Se=de.style,ke=de.data,Le=de.rowKey,Be=de.scroll,Re=de.tableLayout,We=de.direction,Qe=de.title,Ve=de.footer,at=de.summary,yt=de.id,ft=de.showHeader,Tt=de.components,Nt=de.emptyText,_t=de.onRow,nn=de.onHeaderRow,Gt=de.internalHooks,Ut=de.transformColumns,Qt=de.internalRefs,Vt=de.sticky,jt=ke||qe,ln=!!jt.length,Ft=A.useState(0),ze=Object(y.a)(Ft,2),ct=ze[0],it=ze[1];A.useEffect(function(){it(Object(l.a)())});var zt=A.useMemo(function(){return Object(W.c)(Tt,{})},[Tt]),$e=A.useCallback(function(Bt,kt){return Object(W.b)(zt,Bt)||kt},[zt]),Ye=A.useMemo(function(){return typeof Le=="function"?Le:function(Bt){var kt=Bt&&Bt[Le];return kt}},[Le]),et=Object(X.c)(de),Lt=et.expandIcon,on=et.expandedRowKeys,bn=et.defaultExpandedRowKeys,fn=et.defaultExpandAllRows,vn=et.expandedRowRender,Jt=et.onExpand,an=et.onExpandedRowsChange,En=et.expandRowByClick,Zt=et.rowExpandable,Sn=et.expandIconColumnIndex,yn=et.expandedRowClassName,wn=et.childrenColumnName,xn=et.indentSize,An=Lt||Ae,Rn=wn||"children",Nn=A.useMemo(function(){return vn?"row":de.expandable&&Gt===At&&de.expandable.__PARENT_RENDER_ICON__||jt.some(function(Bt){return Bt&&Object(ee.a)(Bt)==="object"&&Bt[Rn]})?"nest":!1},[!!vn,jt]),Dn=A.useState(function(){return bn||(fn?Fe(jt,Ye,Rn):[])}),vt=Object(y.a)(Dn,2),pe=vt[0],Je=vt[1],ot=A.useMemo(function(){return new Set(on||pe||[])},[on,pe]),st=A.useCallback(function(Bt){var kt=Ye(Bt,jt.indexOf(Bt)),un,Cn=ot.has(kt);Cn?(ot.delete(kt),un=Object(ce.a)(ot)):un=[].concat(Object(ce.a)(ot),[kt]),Je(un),Jt&&Jt(!Cn,Bt),an&&an(un)},[Ye,ot,jt,Jt,an]),Pt=A.useState(0),Ot=Object(y.a)(Pt,2),gt=Ot[0],Z=Ot[1],xe=Object(me.b)(Object(z.a)(Object(z.a)(Object(z.a)({},de),et),{},{expandable:!!vn,expandedKeys:ot,getRowKey:Ye,onTriggerExpand:st,expandIcon:An,expandIconColumnIndex:Sn,direction:We}),Gt===At?Ut:null),fe=Object(y.a)(xe,2),be=fe[0],Ce=fe[1],Ue=A.useMemo(function(){return{columns:be,flattenColumns:Ce}},[be,Ce]),he=A.useRef(),Ie=A.useRef(),nt=A.useRef(),Tn=A.useState(!1),hn=Object(y.a)(Tn,2),Ln=hn[0],$t=hn[1],mt=A.useState(!1),Dt=Object(y.a)(mt,2),_n=Dt[0],Zn=Dt[1],Ma=ue(new Map),$n=Object(y.a)(Ma,2),Da=$n[0],oa=$n[1],Kn=Object(W.a)(Ce),ya=Kn.map(function(Bt){return Da.get(Bt)}),Oa=A.useMemo(function(){return ya},[ya.join("_")]),wa=q(Oa,Ce.length,We),In=Be&&Object(W.d)(Be.y),zn=Be&&Object(W.d)(Be.x),Bn=zn&&Ce.some(function(Bt){var kt=Bt.fixed;return kt}),rn=A.useRef(),qn=Te(Vt,Ne),sa=qn.isSticky,xa=qn.offsetHeader,Xa=qn.offsetScroll,La=qn.stickyClassName,Ra,la,Xn;In&&(la={overflowY:"scroll",maxHeight:Be.y}),zn&&(Ra={overflowX:"auto"},In||(la={overflowY:"hidden"}),Xn={width:Be.x===!0?"auto":Be.x,minWidth:"100%"});var ea=A.useCallback(function(Bt,kt){oa(function(un){var Cn=new Map(un);return Cn.set(Bt,kt),Cn})},[]),fa=Ee(null),Ta=Object(y.a)(fa,2),ta=Ta[0],ha=Ta[1];function pa(Bt,kt){if(!kt)return;typeof kt=="function"?kt(Bt):kt.scrollLeft!==Bt&&(kt.scrollLeft=Bt)}var na=function(kt){var un=kt.currentTarget,Cn=kt.scrollLeft,Hn=typeof Cn=="number"?Cn:un.scrollLeft,Ka=un||ut;if(!ha()||ha()===Ka){var Na;ta(Ka),pa(Hn,Ie.current),pa(Hn,nt.current),pa(Hn,(Na=rn.current)===null||Na===void 0?void 0:Na.setScrollLeft)}if(un){var za=un.scrollWidth,Ia=un.clientWidth;$t(Hn>0),Zn(Hn0?[].concat(Object(z.a)(c),Object(z.a)(E(m).map(function(W){return Object(ce.a)({fixed:v},W)}))):[].concat(Object(z.a)(c),[Object(ce.a)(Object(ce.a)({},g),{},{fixed:v})])},[])}function p(i){for(var c=!0,g=0;g=0;m-=1){var W=i[m];if(v&&W.fixed!=="right")v=!1;else if(!v&&W.fixed==="right"){Object(oe.a)(!1,"Index ".concat(m+1," of `columns` missing `fixed='right'` prop."));break}}}function l(i){return i.map(function(c){var g=c.fixed,j=Object(ee.a)(c,["fixed"]),v=g;return g==="left"?v="right":g==="right"&&(v="left"),Object(ce.a)({fixed:v},j)})}function r(i,c){var g=i.prefixCls,j=i.columns,v=i.children,m=i.expandable,W=i.expandedKeys,$=i.getRowKey,G=i.onTriggerExpand,N=i.expandIcon,J=i.rowExpandable,S=i.expandIconColumnIndex,X=i.direction,M=i.expandRowByClick,D=y.useMemo(function(){return j||T(v)},[j,v]),P=y.useMemo(function(){if(m){var k,b=S||0,n=D[b],u=(k={},Object(Y.a)(k,e.a,{className:"".concat(g,"-expand-icon-col")}),Object(Y.a)(k,"title",""),Object(Y.a)(k,"fixed",n?n.fixed:null),Object(Y.a)(k,"className","".concat(g,"-row-expand-icon-cell")),Object(Y.a)(k,"render",function(t,R,U){var ae=$(R,U),_e=W.has(ae),ne=J?J(R):!0,me=N({prefixCls:g,expanded:_e,expandable:ne,record:R,onExpand:G});return M?y.createElement("span",{onClick:function(we){return we.stopPropagation()}},me):me}),k),s=D.slice();return b>=0&&s.splice(b,0,u),s}return D},[m,D,$,W,N,X]),w=y.useMemo(function(){var k=P;return c&&(k=c(k)),k.length||(k=[{render:function(){return null}}]),k},[c,P,X]),h=y.useMemo(function(){return X==="rtl"?l(E(w)):E(w)},[w,X]);return[w,h]}Q.b=r},"y0+3":function(Ge,Q,o){"use strict";o.d(Q,"a",function(){return E}),o.d(Q,"b",function(){return l});var Y=/margin|padding|width|height|max|min|offset/,z={left:!0,top:!0},ce={cssFloat:1,styleFloat:1,float:1};function ee(r){return r.nodeType===1?r.ownerDocument.defaultView.getComputedStyle(r,null):{}}function y(r,i,c){if(i=i.toLowerCase(),c==="auto"){if(i==="height")return r.offsetHeight;if(i==="width")return r.offsetWidth}return i in z||(z[i]=Y.test(i)),z[i]?parseFloat(c)||0:c}function A(r,i){var c=arguments.length,g=ee(r);return i=ce[i]?"cssFloat"in r.style?"cssFloat":"styleFloat":i,c===1?g:y(r,i,g[i]||r.style[i])}function oe(r,i,c){var g=arguments.length;if(i=ce[i]?"cssFloat"in r.style?"cssFloat":"styleFloat":i,g===3)return typeof c=="number"&&Y.test(i)&&(c="".concat(c,"px")),r.style[i]=c,c;for(var j in i)i.hasOwnProperty(j)&&oe(r,j,i[j]);return ee(r)}function re(r){return r===document.body?document.documentElement.clientWidth:r.offsetWidth}function e(r){return r===document.body?window.innerHeight||document.documentElement.clientHeight:r.offsetHeight}function T(){var r=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:r,height:i}}function E(){var r=document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return{width:r,height:i}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function l(r){var i=r.getBoundingClientRect(),c=document.documentElement;return{left:i.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||document.body.clientTop||0)}}},zmGA:function(Ge,Q){Ge.exports="data:image/png;base64,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"}}]); diff --git a/p__Engineering__Lists__StudentList.98e6fe86.async.js b/p__Engineering__Lists__StudentList.98e6fe86.async.js index 8239c2747a..cc75540049 100644 --- a/p__Engineering__Lists__StudentList.98e6fe86.async.js +++ b/p__Engineering__Lists__StudentList.98e6fe86.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[152,6,8,14],{"0ntK":function(Xe,ve,a){Xe.exports={flex_box_center:"flex_box_center___wiNIz",flex_space_between:"flex_space_between___W6VyH",flex_box_vertical_center:"flex_box_vertical_center___2wI53",flex_box_center_end:"flex_box_center_end___1xc94",flex_box_column:"flex_box_column___t1uPg",wrap:"wrap___3SdnL",title:"title___5aDvb",control:"control___2cHNi",label:"label___2P1PV",button:"button___Fi9NA",form:"form___1mrGy",customModal:"customModal___1uZJy",customTable:"customTable___3xqky"}},"6+eU":function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return R});var w=a("wx14"),j=a("rePB"),je=a("VTBJ"),U=a("1OyB"),r=a("vuIU"),f=a("Ji7U"),ce=a("LK+K"),se=a("q1tI"),K=a.n(se),k=a("TSYQ"),X=a.n(k),le=function($){var g,O="".concat($.rootPrefixCls,"-item"),d=X()(O,"".concat(O,"-").concat($.page),(g={},Object(j.a)(g,"".concat(O,"-active"),$.active),Object(j.a)(g,$.className,!!$.className),Object(j.a)(g,"".concat(O,"-disabled"),!$.page),g)),I=function(){$.onClick($.page)},z=function(Ce){$.onKeyPress(Ce,$.onClick,$.page)};return K.a.createElement("li",{title:$.showTitle?$.page:null,className:d,onClick:I,onKeyPress:z,tabIndex:"0"},$.itemRender($.page,"page",K.a.createElement("a",{rel:"nofollow"},$.page)))},pe=le,Z={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},_=function(J){Object(f.a)(g,J);var $=Object(ce.a)(g);function g(){var O;Object(U.a)(this,g);for(var d=arguments.length,I=new Array(d),z=0;z=0||Q.relatedTarget.className.indexOf("".concat(L,"-next"))>=0))return;O.setState({goInputText:""}),P(O.getValidValue())},O.go=function(Q){var Ce=O.state.goInputText;if(Ce==="")return;(Q.keyCode===Z.ENTER||Q.type==="click")&&(O.setState({goInputText:""}),O.props.quickGo(O.getValidValue()))},O}return Object(r.a)(g,[{key:"getValidValue",value:function(){var d=this.state,I=d.goInputText,z=d.current;return!I||isNaN(I)?z:Number(I)}},{key:"getPageSizeOptions",value:function(){var d=this.props,I=d.pageSize,z=d.pageSizeOptions;return z.some(function(Q){return Q.toString()===I.toString()})?z:z.concat([I.toString()]).sort(function(Q,Ce){var te=isNaN(Number(Q))?0:Number(Q),P=isNaN(Number(Ce))?0:Number(Ce);return te-P})}},{key:"render",value:function(){var d=this,I=this.props,z=I.pageSize,Q=I.locale,Ce=I.rootPrefixCls,te=I.changeSize,P=I.quickGo,L=I.goButton,y=I.selectComponentClass,p=I.buildOptionText,A=I.selectPrefixCls,h=I.disabled,M=this.state.goInputText,G="".concat(Ce,"-options"),oe=y,D=null,B=null,ne=null;if(!te&&!P)return null;var ie=this.getPageSizeOptions();if(te&&oe){var ee=ie.map(function(F,q){return K.a.createElement(oe.Option,{key:q,value:F.toString()},(p||d.buildOptionText)(F))});D=K.a.createElement(oe,{disabled:h,prefixCls:A,showSearch:!1,className:"".concat(G,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(z||ie[0]).toString(),onChange:this.changeSize,getPopupContainer:function(q){return q.parentNode}},ee)}return P&&(L&&(ne=typeof L=="boolean"?K.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(G,"-quick-jumper-button")},Q.jump_to_confirm):K.a.createElement("span",{onClick:this.go,onKeyUp:this.go},L)),B=K.a.createElement("div",{className:"".concat(G,"-quick-jumper")},Q.jump_to,K.a.createElement("input",{disabled:h,type:"text",value:M,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Q.page,ne)),K.a.createElement("li",{className:"".concat(G)},D,B)}}]),g}(K.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var x=_,ue=a("N2Kk");function V(){}function ae(J){return typeof J=="number"&&isFinite(J)&&Math.floor(J)===J}function fe(J,$,g){return g}function Y(J,$,g){var O=typeof J=="undefined"?$.pageSize:J;return Math.floor((g.total-1)/O)+1}var he=function(J){Object(f.a)(g,J);var $=Object(ce.a)(g);function g(O){var d;Object(U.a)(this,g),d=$.call(this,O),d.getJumpPrevPage=function(){return Math.max(1,d.state.current-(d.props.showLessItems?3:5))},d.getJumpNextPage=function(){return Math.min(Y(void 0,d.state,d.props),d.state.current+(d.props.showLessItems?3:5))},d.getItemIcon=function(te,P){var L=d.props.prefixCls,y=te||K.a.createElement("button",{type:"button","aria-label":P,className:"".concat(L,"-item-link")});return typeof te=="function"&&(y=K.a.createElement(te,Object(je.a)({},d.props))),y},d.savePaginationNode=function(te){d.paginationNode=te},d.isValid=function(te){return ae(te)&&te!==d.state.current},d.shouldDisplayQuickJumper=function(){var te=d.props,P=te.showQuickJumper,L=te.pageSize,y=te.total;return y<=L?!1:P},d.handleKeyDown=function(te){(te.keyCode===Z.ARROW_UP||te.keyCode===Z.ARROW_DOWN)&&te.preventDefault()},d.handleKeyUp=function(te){var P=d.getValidValue(te),L=d.state.currentInputValue;P!==L&&d.setState({currentInputValue:P}),te.keyCode===Z.ENTER?d.handleChange(P):te.keyCode===Z.ARROW_UP?d.handleChange(P-1):te.keyCode===Z.ARROW_DOWN&&d.handleChange(P+1)},d.changePageSize=function(te){var P=d.state.current,L=Y(te,d.state,d.props);P=P>L?L:P,L===0&&(P=d.state.current),typeof te=="number"&&("pageSize"in d.props||d.setState({pageSize:te}),"current"in d.props||d.setState({current:P,currentInputValue:P})),d.props.onShowSizeChange(P,te),"onChange"in d.props&&d.props.onChange&&d.props.onChange(P,te)},d.handleChange=function(te){var P=d.props.disabled,L=te;if(d.isValid(L)&&!P){var y=Y(void 0,d.state,d.props);L>y?L=y:L<1&&(L=1),"current"in d.props||d.setState({current:L,currentInputValue:L});var p=d.state.pageSize;return d.props.onChange(L,p),L}return d.state.current},d.prev=function(){d.hasPrev()&&d.handleChange(d.state.current-1)},d.next=function(){d.hasNext()&&d.handleChange(d.state.current+1)},d.jumpPrev=function(){d.handleChange(d.getJumpPrevPage())},d.jumpNext=function(){d.handleChange(d.getJumpNextPage())},d.hasPrev=function(){return d.state.current>1},d.hasNext=function(){return d.state.current2?L-2:0),p=2;p=z?Ce=z:Ce=Number(I),Ce}},{key:"getShowSizeChanger",value:function(){var d=this.props,I=d.showSizeChanger,z=d.total,Q=d.totalBoundaryShowSizeChanger;return typeof I!="undefined"?I:z>Q}},{key:"renderPrev",value:function(d){var I=this.props,z=I.prevIcon,Q=I.itemRender,Ce=Q(d,"prev",this.getItemIcon(z,"prev page")),te=!this.hasPrev();return Object(se.isValidElement)(Ce)?Object(se.cloneElement)(Ce,{disabled:te}):Ce}},{key:"renderNext",value:function(d){var I=this.props,z=I.nextIcon,Q=I.itemRender,Ce=Q(d,"next",this.getItemIcon(z,"next page")),te=!this.hasNext();return Object(se.isValidElement)(Ce)?Object(se.cloneElement)(Ce,{disabled:te}):Ce}},{key:"render",value:function(){var d=this,I=this.props,z=I.prefixCls,Q=I.className,Ce=I.style,te=I.disabled,P=I.hideOnSinglePage,L=I.total,y=I.locale,p=I.showQuickJumper,A=I.showLessItems,h=I.showTitle,M=I.showTotal,G=I.simple,oe=I.itemRender,D=I.showPrevNextJumpers,B=I.jumpPrevIcon,ne=I.jumpNextIcon,ie=I.selectComponentClass,ee=I.selectPrefixCls,F=I.pageSizeOptions,q=this.state,n=q.current,m=q.pageSize,s=q.currentInputValue;if(P===!0&&L<=m)return null;var S=Y(void 0,this.state,this.props),H=[],re=null,Ee=null,Pe=null,ke=null,Ie=null,Ne=p&&p.goButton,Le=A?1:2,Nt=n-1>0?n-1:0,It=n+1=Le*2&&n!==1+2&&(H[0]=Object(se.cloneElement)(H[0],{className:"".concat(z,"-item-after-jump-prev")}),H.unshift(re)),S-n>=Le*2&&n!==S-2&&(H[H.length-1]=Object(se.cloneElement)(H[H.length-1],{className:"".concat(z,"-item-before-jump-next")}),H.push(Ee)),ge!==1&&H.unshift(Pe),Me!==S&&H.push(ke)}var xe=null;M&&(xe=K.a.createElement("li",{className:"".concat(z,"-total-text")},M(L,[L===0?0:(n-1)*m+1,n*m>L?L:n*m])));var ye=!this.hasPrev()||!S,_e=!this.hasNext()||!S;return K.a.createElement("ul",Object(w.a)({className:X()(z,Q,Object(j.a)({},"".concat(z,"-disabled"),te)),style:Ce,unselectable:"unselectable",ref:this.savePaginationNode},At),xe,K.a.createElement("li",{title:h?y.prev_page:null,onClick:this.prev,tabIndex:ye?null:0,onKeyPress:this.runIfEnterPrev,className:X()("".concat(z,"-prev"),Object(j.a)({},"".concat(z,"-disabled"),ye)),"aria-disabled":ye},this.renderPrev(Nt)),H,K.a.createElement("li",{title:h?y.next_page:null,onClick:this.next,tabIndex:_e?null:0,onKeyPress:this.runIfEnterNext,className:X()("".concat(z,"-next"),Object(j.a)({},"".concat(z,"-disabled"),_e)),"aria-disabled":_e},this.renderNext(It)),K.a.createElement(x,{disabled:te,locale:y,rootPrefixCls:z,selectComponentClass:ie,selectPrefixCls:ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:n,pageSize:m,pageSizeOptions:F,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ne}))}}],[{key:"getDerivedStateFromProps",value:function(d,I){var z={};if("current"in d&&(z.current=d.current,d.current!==I.current&&(z.currentInputValue=z.current)),"pageSize"in d&&d.pageSize!==I.pageSize){var Q=I.current,Ce=Y(d.pageSize,I,d);Q=Q>Ce?Ce:Q,"current"in d||(z.current=Q,z.currentInputValue=Q),z.pageSize=d.pageSize}return z}}]),g}(K.a.Component);he.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:V,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:V,locale:ue.a,style:{},itemRender:fe,totalBoundaryShowSizeChanger:50};var R=he},"6RRn":function(Xe,ve,a){"use strict";var w=a("wCXF"),j=a("n6Qo");a.d(ve,"b",function(){return j.a});var je=a("IBYe"),U=a("6eGT"),r=a("hW8S");a.d(ve,"a",function(){return r.a}),ve.c=w.b},"6eGT":function(Xe,ve,a){"use strict";function w(j){return null}ve.a=w},"815F":function(Xe,ve,a){"use strict";a.d(ve,"e",function(){return ce}),a.d(ve,"c",function(){return K}),a.d(ve,"d",function(){return k}),a.d(ve,"a",function(){return le}),a.d(ve,"f",function(){return pe}),a.d(ve,"b",function(){return Z});var w=a("KQm4"),j=a("VTBJ"),je=a("Ff2n"),U=a("Zm9Q"),r=a("Kwbf"),f=a("OZM5");function ce(_,x){return _!=null?_:x}function se(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=new Map;function ue(V){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(V||[]).forEach(function(fe){var Y=fe.key,he=fe.children;Object(r.a)(Y!=null,"Tree node must have a certain key: [".concat(ae).concat(Y,"]"));var R=String(Y);Object(r.a)(!x.has(R)||Y===null||Y===void 0,"Same 'key' exist in the Tree: ".concat(R)),x.set(R,!0),ue(he,"".concat(ae).concat(R," > "))})}ue(_)}function K(_){function x(ue){var V=Object(U.a)(ue);return V.map(function(ae){if(!Object(f.i)(ae))return Object(r.a)(!ae,"Tree/TreeNode can only accept TreeNode as children."),null;var fe=ae.key,Y=ae.props,he=Y.children,R=Object(je.a)(Y,["children"]),J=Object(j.a)({key:fe},R),$=x(he);return $.length&&(J.children=$),J}).filter(function(ae){return ae})}return x(_)}function k(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ue=new Set(x===!0?[]:x),V=[];function ae(fe){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return fe.map(function(he,R){var J=Object(f.h)(Y?Y.pos:"0",R),$=ce(he.key,J),g=Object(j.a)(Object(j.a)({},he),{},{parent:Y,pos:J,children:null,data:he,isStart:[].concat(Object(w.a)(Y?Y.isStart:[]),[R===0]),isEnd:[].concat(Object(w.a)(Y?Y.isEnd:[]),[R===fe.length-1])});return V.push(g),x===!0||ue.has($)?g.children=ae(he.children||[],g):g.children=[],g})}return ae(_),V}function X(_,x,ue){var V;ue?typeof ue=="string"?V=function(Y){return Y[ue]}:typeof ue=="function"&&(V=function(Y){return ue(Y)}):V=function(Y,he){return ce(Y.key,he)};function ae(fe,Y,he){var R=fe?fe.children:_,J=fe?Object(f.h)(he.pos,Y):"0";if(fe){var $=V(fe,J),g={node:fe,index:Y,pos:J,key:$,parentPos:he.node?he.pos:null,level:he.level+1};x(g)}R&&R.forEach(function(O,d){ae(O,d,{node:fe,pos:J,level:he?he.level+1:-1})})}ae(null)}function le(_){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=x.initWrapper,V=x.processEntity,ae=x.onProcessFinished,fe=arguments.length>2?arguments[2]:void 0,Y={},he={},R={posEntities:Y,keyEntities:he};return ue&&(R=ue(R)||R),X(_,function(J){var $=J.node,g=J.index,O=J.pos,d=J.key,I=J.parentPos,z=J.level,Q={node:$,index:g,key:d,pos:O,level:z},Ce=ce(d,O);Y[O]=Q,he[Ce]=Q,Q.parent=Y[I],Q.parent&&(Q.parent.children=Q.parent.children||[],Q.parent.children.push(Q)),V&&V(Q,R)},fe),ae&&ae(R),R}function pe(_,x){var ue=x.expandedKeys,V=x.selectedKeys,ae=x.loadedKeys,fe=x.loadingKeys,Y=x.checkedKeys,he=x.halfCheckedKeys,R=x.dragOverNodeKey,J=x.dropPosition,$=x.keyEntities,g=$[_],O={eventKey:_,expanded:ue.indexOf(_)!==-1,selected:V.indexOf(_)!==-1,loaded:ae.indexOf(_)!==-1,loading:fe.indexOf(_)!==-1,checked:Y.indexOf(_)!==-1,halfChecked:he.indexOf(_)!==-1,pos:String(g?g.pos:""),dragOver:R===_&&J===0,dragOverGapTop:R===_&&J===-1,dragOverGapBottom:R===_&&J===1};return O}function Z(_){var x=_.data,ue=_.expanded,V=_.selected,ae=_.checked,fe=_.loaded,Y=_.loading,he=_.halfChecked,R=_.dragOver,J=_.dragOverGapTop,$=_.dragOverGapBottom,g=_.pos,O=_.active,d=Object(j.a)(Object(j.a)({},x),{},{expanded:ue,selected:V,checked:ae,loaded:fe,loading:Y,halfChecked:he,dragOver:R,dragOverGapTop:J,dragOverGapBottom:$,pos:g,active:O});return"props"in d||Object.defineProperty(d,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),d}},"9ZfG":function(Xe,ve,a){"use strict";var w=a("2qtc"),j=a("kLXV"),je=a("DYRE"),U=a("zeV3"),r=a("DZo9"),f=a("8z0m"),ce=a("+L6B"),se=a("2/Rp"),K=a("Znn+"),k=a("ZTPi"),X=a("miYZ"),le=a("tsqr"),pe=a("tJVT"),Z=a("q1tI"),_=a.n(Z),x=a("xvlK"),ue=a("1vsH"),V=a("Ty5D"),ae=a("NdNG"),fe=a.n(ae),Y=function(R){var J=R.visible,$=R.onOk,g=R.onCancel,O=R.templateFileName,d=R.templateFileUrl,I=R.otherTemplateText,z=R.formNode,Q=R.title,Ce=Object(Z.useState)([]),te=Object(pe.a)(Ce,2),P=te[0],L=te[1],y=Object(Z.useState)(!1),p=Object(pe.a)(y,2),A=p[0],h=p[1],M=Object(Z.useState)("1"),G=Object(pe.a)(M,2),oe=G[0],D=G[1],B=Object(V.i)();Object(Z.useEffect)(function(){J||(L([]),h(!1),D("1"))},[J]);var ne=function(){h(!0),$(P,function(){h(!1)})},ie=function(){g()},ee=function(){var m=d;Object(ue.x)(null,m)},F=function(m){var s,S,H,re,Ee=m==null||((s=m.name)===null||s===void 0)?void 0:s.substring(m==null||((S=m.name)===null||S===void 0)?void 0:S.lastIndexOf("."),m==null||((H=m.name)===null||H===void 0)?void 0:H.length);if(Ee=(re=Ee)===null||re===void 0?void 0:re.toLowerCase(),Ee!==".xls"&&Ee!==".xlsx")return le.b.error("\u53EA\u80FD\u4E0A\u4F20.xls,.xlsx\u683C\u5F0F\u7684\u6587\u6863"),Promise.reject();var Pe={name:m.name,uid:m.uid,file:m};return L([Pe]),!1},q=function(){L([])};return _.a.createElement(j.a,{title:Q,visible:J,centered:!0,wrapClassName:fe.a.customModal,onCancel:ie,width:"740px",confirmLoading:A,footer:null},_.a.createElement(k.a,{className:fe.a.tabWarp,onChange:function(m){return D(m)},activeKey:oe},_.a.createElement(k.a.TabPane,{tab:"\u624B\u52A8\u65B0\u589E",key:"1"},z),_.a.createElement(k.a.TabPane,{tab:"\u6279\u91CF\u5BFC\u5165",key:"2"},_.a.createElement("div",{className:fe.a.content},_.a.createElement("div",{style:{marginLeft:41,paddingBottom:50}},_.a.createElement("div",{style:{marginTop:36}},_.a.createElement("span",null,"\u6B65\u9AA41\uFF1A"),_.a.createElement("span",null,"\u4E0B\u8F7D\xA0",_.a.createElement("span",{style:{color:"#0152D9",cursor:"pointer"},onClick:ee},_.a.createElement("i",{className:"iconfont icon-moban1 font14"}),O),"\uFF0C\xA0",I),_.a.createElement("span",{style:{color:"#FA6400"},className:"mt10"},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\u3002")),_.a.createElement("aside",{style:{marginTop:30}},_.a.createElement("div",{className:"mr20"},"\u6B65\u9AA42\uFF1A\u4E0A\u4F20\u586B\u5199\u5B8C\u6210\u7684\u6A21\u677F\u3002"),_.a.createElement("div",null,J&&_.a.createElement(f.a,{action:"/api/attachments.json",fileList:P,beforeUpload:F,onRemove:q,withCredentials:!0,accept:".xls,.xlsx"},_.a.createElement(se.a,{type:"primary",icon:_.a.createElement(x.a,null)},"\u9009\u62E9\u6587\u4EF6"))))),_.a.createElement(U.a,{className:"mr40 pb20",size:10,style:{float:"right"}},_.a.createElement(se.a,{onClick:function(){return ie()}},"\u53D6\u6D88"),_.a.createElement(se.a,{onClick:function(){return ne()},type:"primary"},"\u786E\u8BA4"))))))};ve.a=Y},BU3w:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f});var w=a("MNnm"),j="rc-util-key";function je(ce){if(ce.attachTo)return ce.attachTo;var se=document.querySelector("head");return se||document.body}function U(ce){var se,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(w.a)())return null;var k=document.createElement("style");if((se=K.csp)===null||se===void 0?void 0:se.nonce){var X;k.nonce=(X=K.csp)===null||X===void 0?void 0:X.nonce}k.innerHTML=ce;var le=je(K),pe=le.firstChild;return K.prepend&&le.prepend?le.prepend(k):K.prepend&&pe?le.insertBefore(k,pe):le.appendChild(k),k}var r=new Map;function f(ce,se){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=je(K);if(!r.has(k)){var X=U("",K),le=X.parentNode;r.set(k,le),le.removeChild(X)}var pe=Array.from(r.get(k).children).find(function(V){return V.tagName==="STYLE"&&V[j]===se});if(pe){var Z,_;if(((Z=K.csp)===null||Z===void 0?void 0:Z.nonce)&&pe.nonce!==((_=K.csp)===null||_===void 0?void 0:_.nonce)){var x;pe.nonce=(x=K.csp)===null||x===void 0?void 0:x.nonce}return pe.innerHTML!==ce&&(pe.innerHTML=ce),pe}var ue=U(ce,K);return ue[j]=se,ue}},FAcQ:function(Xe,ve,a){"use strict";a.r(ve);var w=a("g9YV"),j=a("wCAj"),je=a("OaEy"),U=a("2fM7"),r=a("DYRE"),f=a("zeV3"),ce=a("+L6B"),se=a("2/Rp"),K=a("5NDa"),k=a("5rEg"),X=a("2qtc"),le=a("kLXV"),pe=a("miYZ"),Z=a("tsqr"),_=a("k1fw"),x=a("9og8"),ue=a("y8nQ"),V=a("Vl3Y"),ae=a("tJVT"),fe=a("WmNS"),Y=a.n(fe),he=a("q1tI"),R=a.n(he),J=a("0ntK"),$=a.n(J),g=a("9kvl"),O=a("9ZfG"),d=a("ErOA"),I=a("LvDl"),z=a.n(I),Q=a("1vsH"),Ce=a("m3rI"),te=a("fj85"),P=a("g+eg"),L=function(p){var A,h=p.user,M={page:1,per_page:20,total:0,search:"",save_search:"",ec_major_school_id:null,ec_year_id:null,category:"name",sort_by:null,direction:null},G=Object(he.useState)(M),oe=Object(ae.a)(G,2),D=oe[0],B=oe[1],ne=Object(he.useState)(!0),ie=Object(ae.a)(ne,2),ee=ie[0],F=ie[1],q=Object(he.useState)(!1),n=Object(ae.a)(q,2),m=n[0],s=n[1],S=Object(he.useState)(!1),H=Object(ae.a)(S,2),re=H[0],Ee=H[1],Pe=Object(he.useState)(!1),ke=Object(ae.a)(Pe,2),Ie=ke[0],Ne=ke[1],Le=Object(he.useState)(!1),Nt=Object(ae.a)(Le,2),It=Nt[0],At=Nt[1],jt=Object(he.useState)([]),Ft=Object(ae.a)(jt,2),un=Ft[0],N=Ft[1],be=Object(he.useState)([]),ge=Object(ae.a)(be,2),Me=ge[0],Ae=ge[1],Re=Object(he.useState)([]),xe=Object(ae.a)(Re,2),ye=xe[0],_e=xe[1],Ue=Object(he.useState)([]),Se=Object(ae.a)(Ue,2),we=Se[0],$e=Se[1],Ke=Object(he.useState)(!1),Qe=Object(ae.a)(Ke,2),Et=Qe[0],ot=Qe[1],yt=V.a.useForm(),Ye=Object(ae.a)(yt,1),wt=Ye[0],Mt=Object(he.useRef)(null);Object(he.useEffect)(function(){var ze;h!=null&&(ze=h.userInfo)!==null&&ze!==void 0&&ze.school_id&&Jt()},[h==null||((A=h.userInfo)===null||A===void 0)?void 0:A.school_id]);var lt=function(){var ze=Object(x.a)(Y.a.mark(function Te(Be){var Ve,it,Ge;return Y.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return it=Object(I.cloneDeep)(Be),P.a.setItem(h==null||((Ve=h.userInfo)===null||Ve===void 0)?void 0:Ve.login,[it==null?void 0:it.ec_major_school_id,it==null?void 0:it.ec_year_id]),it[Be==null?void 0:Be.category]=Be==null?void 0:Be.search,F(!0),Ut.next=6,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"get",params:it});case 6:Ge=Ut.sent,Ge!=null&&Ge.students&&($e((Ge==null?void 0:Ge.students)||[]),D.total=Ge==null?void 0:Ge.count,D.save_search=D.search,B(Object(_.a)({},D))),F(!1);case 9:case"end":return Ut.stop()}},Te)}));return function(Be){return ze.apply(this,arguments)}}(),zt=function(){var Te=Object(I.cloneDeep)(D);Te[D==null?void 0:D.category]=D==null?void 0:D.search,Object(Q.v)("",Object(Q.Y)({url:Ce.a.API_SERVER+"/api/ec_years/".concat(D.ec_year_id,"/students.xlsx"),query:Te}))},Jt=function(){var ze=Object(x.a)(Y.a.mark(function Te(){var Be,Ve,it,Ge,st,Ut,St,_n,Qt,cn,gn,dn;return Y.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(d.a)("/api/schools/".concat(h==null||((Be=h.userInfo)===null||Be===void 0)?void 0:Be.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(Qt=Pt.sent,Qt!=null&&(Ve=Qt.data)!==null&&Ve!==void 0&&(it=Ve[0])!==null&&it!==void 0&&it.ec_major_school_id){Pt.next=7;break}return F(!1),s(!0),Pt.abrupt("return");case 7:return cn=P.a.getItem(h==null||((Ge=h.userInfo)===null||Ge===void 0)?void 0:Ge.login),gn=cn[0]||(Qt==null||((st=Qt.data)===null||st===void 0||((Ut=st[0])===null||Ut===void 0))?void 0:Ut.ec_major_school_id),Pt.next=11,Object(d.a)("/api/ec_major_schools/".concat(gn,"/ec_years/get_year_list.json"),{method:"get"});case 11:dn=Pt.sent,D.ec_major_school_id=gn,D.ec_year_id=cn[1]||(dn==null||((St=dn.data)===null||St===void 0||((_n=St[0])===null||_n===void 0))?void 0:_n.ec_year_id),Ae((Qt==null?void 0:Qt.data)||[]),_e((dn==null?void 0:dn.data)||[]),B(D),lt(D);case 18:case"end":return Pt.stop()}},Te)}));return function(){return ze.apply(this,arguments)}}(),ft=function(){var ze=Object(x.a)(Y.a.mark(function Te(Be){var Ve,it,Ge;return Y.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,Object(d.a)("/api/ec_major_schools/".concat(Be,"/ec_years/get_year_list.json"),{method:"get"});case 2:Ge=Ut.sent,D.ec_major_school_id=Be,D.ec_year_id=Ge==null||((Ve=Ge.data)===null||Ve===void 0||((it=Ve[0])===null||it===void 0))?void 0:it.ec_year_id,_e((Ge==null?void 0:Ge.data)||[]),B(D),lt(D);case 8:case"end":return Ut.stop()}},Te)}));return function(Be){return ze.apply(this,arguments)}}(),Gt=function(Te,Be){if(D.page=1,D[Be]=Te,Be==="category"){D.search="",D.save_search="",B(Object(_.a)({},D));return}if(Be==="ec_major_school_id"){ft(Te);return}Be==="ec_year_id"&&(B(Object(_.a)({},D)),lt(D))},Rt=function(Te){D.page=1,D.save_search=Te,B(Object(_.a)({},D))},Ct=function(Te){if(Te.length===0){Z.b.warn("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u5B66\u751F");return}le.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Be=Object(x.a)(Y.a.mark(function it(){var Ge,st;return Y.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"delete",body:{ids:Te}});case 2:Ge=St.sent,(Ge==null?void 0:Ge.status)===0&&(st=Te.length===we.length&&D.page>1?D.page-1:D.page,D.page=st,N([]),B(Object(_.a)({},D)),lt(D));case 4:case"end":return St.stop()}},it)}));function Ve(){return Be.apply(this,arguments)}return Ve}()})},ht=function(Te,Be,Ve){if(D.page=Te==null?void 0:Te.current,D.per_page=Te==null?void 0:Te.pageSize,Ve!=null&&Ve.order?(D.sort_by=Ve==null?void 0:Ve.field,D.direction=(Ve==null?void 0:Ve.order)==="ascend"?"asc":"desc"):(D.sort_by=null,D.direction=null),B(Object(_.a)({},D)),nn)return;lt(D)},Ze={selectedRowKeys:un,columnWidth:54,onChange:function(Te){return N(Te)}},Lt=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:function(Te,Be,Ve){return D.per_page*(D.page-1)+Ve+1}},{title:"\u59D3\u540D",dataIndex:"name",sorter:!0,ellipsis:!0,render:function(Te){return Te||"-"}},{title:"\u5B66\u53F7",dataIndex:"student_id",ellipsis:!0,sorter:!0,render:function(Te){return Te||"-"}},{title:"\u73ED\u7EA7",dataIndex:"clazz",ellipsis:!0,sorter:!0,render:function(Te){return Te||"-"}},{title:"\u6240\u5C5E\u5B66\u9662",dataIndex:"department",ellipsis:!0,sorter:!0,render:function(Te){return Te||"-"}},{title:"\u64CD\u4F5C",width:90,dataIndex:"action",render:function(Te,Be){return R.a.createElement("span",null,R.a.createElement("i",{onClick:function(){return qt(Be.id)},className:"iconfont icon-bianji7 c-gcrz-primary mr10 current"}),R.a.createElement("i",{onClick:function(){return Ct([Be.id])},className:"iconfont icon-piliangshanchubeifen c-gcrz-primary current"}))}}],Zt=function(){var ze=Object(x.a)(Y.a.mark(function Te(Be,Ve){var it,Ge,st;return Y.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(!(Be.length===0)){St.next=4;break}return Z.b.warn("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Ve(),St.abrupt("return");case 4:return Ge=new FormData,Ge.append("file",(it=Be[0])===null||it===void 0?void 0:it.file),St.next=8,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students/import.json"),{method:"post",body:Ge},!0);case 8:st=St.sent,(st==null?void 0:st.status)===0&&(lt(D),At(!1)),Ve();case 11:case"end":return St.stop()}},Te)}));return function(Be,Ve){return ze.apply(this,arguments)}}(),qt=function(){var ze=Object(x.a)(Y.a.mark(function Te(Be){var Ve;return Y.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return ot(Be),Ge.next=3,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students/student_detail.json"),{method:"get",params:{id:Be}});case 3:Ve=Ge.sent,Ve!=null&&Ve.students&&wt.setFieldsValue((Ve==null?void 0:Ve.students)||{});case 5:case"end":return Ge.stop()}},Te)}));return function(Be){return ze.apply(this,arguments)}}(),Dt=function(){var ze=Object(x.a)(Y.a.mark(function Te(Be){var Ve,it;return Y.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(Mt.current?Ee(!0):Ne(!0),!Et){st.next=7;break}return st.next=4,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"put",body:Object(_.a)(Object(_.a)({},Be),{},{id:Et})});case 4:it=st.sent,st.next=10;break;case 7:return st.next=9,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"post",body:Be});case 9:it=st.sent;case 10:((Ve=it)===null||Ve===void 0?void 0:Ve.status)===0&&(Mt.current&&(At(!1),ot(!1)),wt.resetFields(),Z.b.success("\u4FDD\u5B58\u6210\u529F"),lt(D)),Ee(!1),Ne(!1);case 13:case"end":return st.stop()}},Te)}));return function(Be){return ze.apply(this,arguments)}}(),Tn=function(Te){return R.a.createElement("div",null,R.a.createElement(V.a,{form:wt,className:$.a.form,colon:!1,onFinish:Dt,labelCol:{span:4},wrapperCol:{span:19}},R.a.createElement(V.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"})),R.a.createElement(V.a.Item,{label:"\u5B66\u53F7",name:"student_id",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u53F7"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u5B66\u53F7"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"})),R.a.createElement(V.a.Item,{label:"\u73ED\u7EA7",name:"clazz",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u73ED\u7EA7"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u73ED\u7EA7"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u73ED\u7EA7"})),R.a.createElement(V.a.Item,{label:"\u6240\u5C5E\u5B66\u9662",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"}]},R.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"}))),R.a.createElement(f.a,{size:10,className:$.a.button,style:{margin:"0 40px 20px 0"}},R.a.createElement(se.a,{onClick:function(){ot(!1),At(!1)}},"\u53D6\u6D88"),R.a.createElement(se.a,{disabled:Ie,type:Te?"primary":"default",loading:re,onClick:function(){Mt.current=!0,wt.submit()}},"\u4FDD\u5B58"),!Te&&R.a.createElement(se.a,{disabled:re,loading:Ie,type:"primary",onClick:function(){Mt.current=!1,wt.submit()}},"\u7EE7\u7EED\u65B0\u589E")),R.a.createElement("div",{style:{clear:"both"}}))},nn=ee||m;return R.a.createElement("div",{className:$.a.wrap},R.a.createElement(te.a,{title:"\u5B66\u751F\u4FE1\u606F",style:{padding:"12px 0 0 20px"}}),R.a.createElement(f.a,{className:$.a.button,size:10},R.a.createElement(se.a,{disabled:nn,onClick:function(){wt.resetFields(),At(!0)},type:"primary"},R.a.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u65B0\u589E\u5B66\u751F"),R.a.createElement(se.a,{disabled:nn,onClick:function(){return Ct(un)}},R.a.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"\u6279\u91CF\u5220\u9664"),R.a.createElement(se.a,{disabled:nn,onClick:function(){return zt()}},R.a.createElement("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"\u5BFC\u51FA")),R.a.createElement("div",{style:{clear:"both"}}),R.a.createElement("div",{className:$.a.control},R.a.createElement("div",{className:$.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),R.a.createElement(U.a,{disabled:nn,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:D==null?void 0:D.ec_major_school_id,onChange:function(Te){return Gt(Te,"ec_major_school_id")}},Me==null?void 0:Me.map(function(ze){return R.a.createElement(U.a.Option,{key:ze.ec_major_school_id,value:ze.ec_major_school_id},ze.name)})),R.a.createElement("div",{className:$.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),R.a.createElement(U.a,{disabled:nn,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:D==null?void 0:D.ec_year_id,onChange:function(Te){return Gt(Te,"ec_year_id")}},ye==null?void 0:ye.map(function(ze){return R.a.createElement(U.a.Option,{key:ze.ec_year_id,value:ze.ec_year_id},ze.year)})),R.a.createElement("div",{className:$.a.label,style:{width:100,background:"#fff"}},R.a.createElement(U.a,{disabled:nn,style:{width:100,transform:"translate(-1px, -1px)"},bordered:!1,value:D==null?void 0:D.category,onChange:function(Te){return Gt(Te,"category")}},R.a.createElement(U.a.Option,{value:"student_id"},"\u5B66\u751F\u5B66\u53F7"),R.a.createElement(U.a.Option,{value:"name"},"\u5B66\u751F\u59D3\u540D"),R.a.createElement(U.a.Option,{value:"clazz"},"\u5B66\u751F\u73ED\u7EA7"))),R.a.createElement(k.a.Search,{placeholder:"\u8BF7\u8F93\u5165".concat((D==null?void 0:D.category)==="student_id"?"\u5B66\u751F\u5B66\u53F7":(D==null?void 0:D.category)==="name"?"\u5B66\u751F\u59D3\u540D":"\u5B66\u751F\u73ED\u7EA7"),value:D==null?void 0:D.save_search,disabled:nn,onChange:function(Te){return Rt(Te.target.value)},onSearch:function(){D.page=1,D.search=D.save_search,B(Object(_.a)({},D)),lt(D)}})),R.a.createElement(j.a,{rowSelection:Ze,className:$.a.customTable,dataSource:we,bordered:!1,rowKey:"id",columns:Lt,rowClassName:$.a.row,loading:ee,onChange:ht,pagination:{pageSize:D.per_page,total:D.total,current:D.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(Te){return R.a.createElement("span",{className:"mr10"},"\u5171",R.a.createElement("span",{className:"c-orange"},Te),"\u6761\u6570\u636E")}}}),R.a.createElement(O.a,{title:"\u65B0\u589E\u5B66\u751F",visible:It,onCancel:function(){return At(!1)},onOk:Zt,templateFileName:"\u5B66\u751F\u5BFC\u5165\u6A21\u677F",templateFileUrl:Ce.a.API_SERVER+"/api/ec_years/".concat(D.ec_year_id,"/students/down_template.xlsx"),otherTemplateText:"\u6279\u91CF\u5BFC\u5165\u5B66\u751F\u4FE1\u606F\u3002",formNode:Tn()}),R.a.createElement(le.a,{title:"\u4FEE\u6539\u5B66\u751F\u4FE1\u606F",className:$.a.customModal,width:740,visible:!!Et,centered:!0,onCancel:function(){ot(!1),wt.resetFields()},footer:null},Tn(!0)))};ve.default=Object(g.a)(function(y){var p=y.user;return{user:p}})(L)},GfqC:function(Xe,ve,a){"use strict";var w=a("q1tI"),j=a.n(w),je=a("TSYQ"),U=a.n(je);function r(y,p){var A="cannot "+y.method+" "+y.action+" "+p.status+"'",h=new Error(A);return h.status=p.status,h.method=y.method,h.url=y.action,h}function f(y){var p=y.responseText||y.response;if(!p)return p;try{return JSON.parse(p)}catch(A){return p}}function ce(y){var p=new XMLHttpRequest;y.onProgress&&p.upload&&(p.upload.onprogress=function(G){G.total>0&&(G.percent=G.loaded/G.total*100),y.onProgress(G)});var A=new FormData;y.data&&Object.keys(y.data).forEach(function(M){var G=y.data[M];if(Array.isArray(G)){G.forEach(function(oe){A.append(M+"[]",oe)});return}A.append(M,y.data[M])}),y.file instanceof Blob?A.append(y.filename,y.file,y.file.name):A.append(y.filename,y.file),p.onerror=function(G){y.onError(G)},p.onload=function(){return p.status<200||p.status>=300?y.onError(r(y,p),f(p)):y.onSuccess(f(p),p)},p.open(y.method,y.action,!0),y.withCredentials&&"withCredentials"in p&&(p.withCredentials=!0);var h=y.headers||{};return h["X-Requested-With"]!==null&&p.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(h).forEach(function(M){h[M]!==null&&p.setRequestHeader(M,h[M])}),p.send(A),{abort:function(){p.abort()}}}var se=+new Date,K=0;function k(){return"rc-upload-"+se+"-"+ ++K}function X(y,p){return y.indexOf(p,y.length-p.length)!==-1}var le=function(y,p){if(y&&p){var A=Array.isArray(p)?p:p.split(","),h=y.name||"",M=y.type||"",G=M.replace(/\/.*$/,"");return A.some(function(oe){var D=oe.trim();return D.charAt(0)==="."?X(h.toLowerCase(),D.toLowerCase()):/\/\*$/.test(D)?G===D.replace(/\/.*$/,""):M===D})}return!0};function pe(y,p){var A=y.createReader(),h=[];function M(){A.readEntries(function(G){var oe=Array.prototype.slice.apply(G);h=h.concat(oe);var D=!oe.length;D?p(h):M()})}M()}var Z=function(p,A,h){var M=function G(oe,D){D=D||"",oe.isFile?oe.file(function(B){h(B)&&(oe.fullPath&&!B.webkitRelativePath&&(Object.defineProperties(B,{webkitRelativePath:{writable:!0}}),B.webkitRelativePath=oe.fullPath.replace(/^\//,""),Object.defineProperties(B,{webkitRelativePath:{writable:!1}})),A([B]))}):oe.isDirectory&&pe(oe,function(B){B.forEach(function(ne){G(ne,""+D+oe.name+"/")})})};p.forEach(function(G){M(G.webkitGetAsEntry())})},_=Z,x=Object.assign||function(y){for(var p=1;p=0)continue;if(!Object.prototype.hasOwnProperty.call(y,h))continue;A[h]=y[h]}return A}function Y(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function he(y,p){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:y}function R(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);y.prototype=Object.create(p&&p.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(y,p):y.__proto__=p)}var J=function(p){return Object.keys(p).reduce(function(A,h){return(h.substr(0,5)==="data-"||h.substr(0,5)==="aria-"||h==="role")&&(A[h]=p[h]),A},{})},$=function(y){R(p,y);function p(){var A,h,M,G;Y(this,p);for(var oe=arguments.length,D=Array(oe),B=0;B1&&arguments[1]!==void 0?arguments[1]:1,_e=Le.length,Ue=0;Ue<_e;Ue+=1){var Se=(xe+Ue*ye+_e)%_e,we=Le[Se],$e=we.group,Ke=we.data;if(!$e&&!Ke.disabled)return Se}return-1},Ft=r.useState(function(){return jt(0)}),un=Object(se.a)(Ft,2),N=un[0],be=un[1],ge=function(xe){be(xe);var ye=Le[xe];if(!ye){Pe(null,-1);return}Pe(ye.data.value,xe)};r.useEffect(function(){ge(F!==!1?jt(0):-1)},[Le.length,ie]),r.useEffect(function(){var Re=setTimeout(function(){if(!ee&&s&&ne.size===1){var xe=Array.from(ne)[0],ye=Le.findIndex(function(_e){var Ue=_e.data;return Ue.value===xe});ge(ye),At(ye)}});return function(){return clearTimeout(Re)}},[s]);var Me=function(xe){xe!==void 0&&re(xe,{selected:!ne.has(xe)}),ee||Ee(!1)};if(r.useImperativeHandle(M,function(){return{onKeyDown:function(xe){var ye=xe.which;switch(ye){case K.a.UP:case K.a.DOWN:{var _e=0;if(ye===K.a.UP?_e=-1:ye===K.a.DOWN&&(_e=1),_e!==0){var Ue=jt(N+_e,_e);At(Ue),ge(Ue)}break}case K.a.ENTER:{var Se=Le[N];Se&&!Se.data.disabled?Me(Se.data.value):Me(void 0),s&&xe.preventDefault();break}case K.a.ESC:Ee(!1)}},onKeyUp:function(){},scrollTo:function(xe){At(xe)}}}),Le.length===0)return r.createElement("div",{role:"listbox",id:"".concat(oe,"_list"),className:"".concat(Ne,"-empty"),onMouseDown:It},m);function Ae(Re){var xe=Le[Re];if(!xe)return null;var ye=xe.data||{},_e=ye.value,Ue=ye.label,Se=ye.children,we=Object(k.a)(ye,!0),$e=B?Se:Ue;return xe?r.createElement("div",Object.assign({"aria-label":typeof $e=="string"?$e:null},we,{key:Re,role:"option",id:"".concat(oe,"_list_").concat(Re),"aria-selected":ne.has(_e)}),_e):null}return r.createElement(r.Fragment,null,r.createElement("div",{role:"listbox",id:"".concat(oe,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ae(N-1),Ae(N),Ae(N+1)),r.createElement(Z.a,{itemKey:"key",ref:Nt,data:Le,height:q,itemHeight:n,fullHeight:!1,onMouseDown:It,onScroll:ke,virtual:H,onMouseEnter:Ie},function(Re,xe){var ye,_e=Re.group,Ue=Re.groupOption,Se=Re.data,we=Se.label,$e=Se.key;if(_e)return r.createElement("div",{className:pe()(Ne,"".concat(Ne,"-group"))},we!==void 0?we:$e);var Ke=Se.disabled,Qe=Se.value,Et=Se.title,ot=Se.children,yt=Se.style,Ye=Se.className,wt=Object(ce.a)(Se,["disabled","value","title","children","style","className"]),Mt=ne.has(Qe),lt="".concat(Ne,"-option"),zt=pe()(Ne,lt,Ye,(ye={},Object(f.a)(ye,"".concat(lt,"-grouped"),Ue),Object(f.a)(ye,"".concat(lt,"-active"),N===xe&&!Ke),Object(f.a)(ye,"".concat(lt,"-disabled"),Ke),Object(f.a)(ye,"".concat(lt,"-selected"),Mt),ye)),Jt=B?ot:we,ft=!S||typeof S=="function"||Mt;return r.createElement("div",Object.assign({},wt,{"aria-selected":Mt,className:zt,title:Et,onMouseMove:function(){if(N===xe||Ke)return;ge(xe)},onClick:function(){Ke||Me(Qe)},style:yt}),r.createElement("div",{className:"".concat(lt,"-content")},Jt||Qe),r.isValidElement(S)||Mt,ft&&r.createElement(_.a,{className:"".concat(Ne,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:Mt}},Mt?"\u2713":null))}))},ue=r.forwardRef(x);ue.displayName="OptionList";var V=ue,ae=function(){return null};ae.isSelectOption=!0;var fe=ae,Y=function(){return null};Y.isSelectOptGroup=!0;var he=Y,R=a("VTBJ"),J=a("Zm9Q");function $(A){var h=A.key,M=A.props,G=M.children,oe=M.value,D=Object(ce.a)(M,["children","value"]);return Object(R.a)({key:h,value:oe!==void 0?oe:h,children:G},D)}function g(A){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(J.a)(A).map(function(M,G){if(!r.isValidElement(M)||!M.type)return null;var oe=M.type.isSelectOptGroup,D=M.key,B=M.props,ne=B.children,ie=Object(ce.a)(B,["children"]);return h||!oe?$(M):Object(R.a)(Object(R.a)({key:"__RC_SELECT_GRP__".concat(D===null?G:D,"__"),label:D},ie),{},{options:g(ne)})}).filter(function(M){return M})}var O=a("2Qr1"),d=a("qNPg"),I=a("U8pU"),z=a("Kwbf"),Q=a("WKfj");function Ce(A){var h=A.mode,M=A.options,G=A.children,oe=A.backfill,D=A.allowClear,B=A.placeholder,ne=A.getInputElement,ie=A.showSearch,ee=A.onSearch,F=A.defaultOpen,q=A.autoFocus,n=A.labelInValue,m=A.value,s=A.inputValue,S=A.optionLabelProp,H=h==="multiple"||h==="tags",re=ie!==void 0?ie:H||h==="combobox",Ee=M||g(G);if(Object(z.a)(h!=="tags"||Ee.every(function(Ne){return!Ne.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),h==="tags"||h==="combobox"){var Pe=Ee.some(function(Ne){return Ne.options?Ne.options.some(function(Le){return typeof("value"in Le?Le.value:Le.key)=="number"}):typeof("value"in Ne?Ne.value:Ne.key)=="number"});Object(z.a)(!Pe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(z.a)(h!=="combobox"||!S,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(z.a)(h==="combobox"||!oe,"`backfill` only works with `combobox` mode."),Object(z.a)(h==="combobox"||!ne,"`getInputElement` only work with `combobox` mode."),Object(z.b)(h!=="combobox"||!ne||!D||!B,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ee&&!re&&h!=="combobox"&&h!=="tags"&&Object(z.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(z.b)(!F||q,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),m!=null){var ke=Object(Q.d)(m);Object(z.a)(!n||ke.every(function(Ne){return Object(I.a)(Ne)==="object"&&("key"in Ne||"value"in Ne)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(z.a)(!H||Array.isArray(m),"`value` should be array when `mode` is `multiple` or `tags`")}if(G){var Ie=null;Object(J.a)(G).some(function(Ne){if(!r.isValidElement(Ne)||!Ne.type)return!1;var Le=Ne.type;if(Le.isSelectOption)return!1;if(Le.isSelectOptGroup){var Nt=Object(J.a)(Ne.props.children).every(function(It){return!r.isValidElement(It)||!Ne.type||It.type.isSelectOption?!0:(Ie=It.type,!1)});return!Nt}return Ie=Le,!0}),Ie&&Object(z.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ie.displayName||Ie.name||Ie,"`.")),Object(z.a)(s===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var te=Ce,P=Object(d.a)({prefixCls:"rc-select",components:{optionList:V},convertChildrenToData:g,flattenOptions:O.d,getLabeledValue:O.e,filterOptions:O.b,isValueDisabled:O.g,findValueOption:O.c,warningProps:te,fillOptionsWithMissingValue:O.a}),L=function(A){Object(je.a)(M,A);var h=Object(U.a)(M);function M(){var G;return Object(w.a)(this,M),G=h.apply(this,arguments),G.selectRef=r.createRef(),G.focus=function(){G.selectRef.current.focus()},G.blur=function(){G.selectRef.current.blur()},G}return Object(j.a)(M,[{key:"render",value:function(){return r.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),M}(r.Component);L.Option=fe,L.OptGroup=he;var y=L,p=ve.c=y},NdNG:function(Xe,ve,a){Xe.exports={flex_box_center:"flex_box_center___14pl3",flex_space_between:"flex_space_between___3BrPp",flex_box_vertical_center:"flex_box_vertical_center___3uNta",flex_box_center_end:"flex_box_center_end___2OAdL",flex_box_column:"flex_box_column___1Nwh3",customModal:"customModal___20MJx",content:"content___3jy8C",tabWarp:"tabWarp___cpvG0"}},NvD2:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f});var w=a("Kwbf");function j(ce,se){var K=new Set;return ce.forEach(function(k){se.has(k)||K.add(k)}),K}function je(ce){var se=ce||{},K=se.disabled,k=se.disableCheckbox,X=se.checkable;return!!(K||k)||X===!1}function U(ce,se,K,k){for(var X=new Set(ce),le=new Set,pe=0;pe<=K;pe+=1){var Z=se.get(pe)||new Set;Z.forEach(function(V){var ae=V.key,fe=V.node,Y=V.children,he=Y===void 0?[]:Y;X.has(ae)&&!k(fe)&&he.filter(function(R){return!k(R.node)}).forEach(function(R){X.add(R.key)})})}for(var _=new Set,x=K;x>=0;x-=1){var ue=se.get(x)||new Set;ue.forEach(function(V){var ae=V.parent,fe=V.node;if(k(fe)||!V.parent||_.has(V.parent.key))return;if(k(V.parent.node)){_.add(ae.key);return}var Y=!0,he=!1;(ae.children||[]).filter(function(R){return!k(R.node)}).forEach(function(R){var J=R.key,$=X.has(J);Y&&!$&&(Y=!1),!he&&($||le.has(J))&&(he=!0)}),Y&&X.add(ae.key),he&&le.add(ae.key),_.add(ae.key)})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(j(le,X))}}function r(ce,se,K,k,X){for(var le=new Set(ce),pe=new Set(se),Z=0;Z<=k;Z+=1){var _=K.get(Z)||new Set;_.forEach(function(ae){var fe=ae.key,Y=ae.node,he=ae.children,R=he===void 0?[]:he;!le.has(fe)&&!pe.has(fe)&&!X(Y)&&R.filter(function(J){return!X(J.node)}).forEach(function(J){le.delete(J.key)})})}pe=new Set;for(var x=new Set,ue=k;ue>=0;ue-=1){var V=K.get(ue)||new Set;V.forEach(function(ae){var fe=ae.parent,Y=ae.node;if(X(Y)||!ae.parent||x.has(ae.parent.key))return;if(X(ae.parent.node)){x.add(fe.key);return}var he=!0,R=!1;(fe.children||[]).filter(function(J){return!X(J.node)}).forEach(function(J){var $=J.key,g=le.has($);he&&!g&&(he=!1),!R&&(g||pe.has($))&&(R=!0)}),he||le.delete(fe.key),R&&pe.add(fe.key),x.add(fe.key)})}return{checkedKeys:Array.from(le),halfCheckedKeys:Array.from(j(pe,le))}}function f(ce,se,K,k){var X=[],le;k?le=k:le=je;var pe=new Set(ce.filter(function(ue){var V=!!K[ue];return V||X.push(ue),V})),Z=new Map,_=0;Object.keys(K).forEach(function(ue){var V=K[ue],ae=V.level,fe=Z.get(ae);fe||(fe=new Set,Z.set(ae,fe)),fe.add(V),_=Math.max(_,ae)}),Object(w.a)(!X.length,"Tree missing follow keys: ".concat(X.slice(0,100).map(function(ue){return"'".concat(ue,"'")}).join(", ")));var x;return se===!0?x=U(pe,Z,_,le):x=r(pe,se.halfCheckedKeys,Z,_,le),x}},OZM5:function(Xe,ve,a){"use strict";a.d(ve,"b",function(){return k}),a.d(ve,"a",function(){return X}),a.d(ve,"k",function(){return le}),a.d(ve,"h",function(){return pe}),a.d(ve,"i",function(){return Z}),a.d(ve,"g",function(){return _}),a.d(ve,"c",function(){return x}),a.d(ve,"d",function(){return ue}),a.d(ve,"j",function(){return fe}),a.d(ve,"e",function(){return Y}),a.d(ve,"f",function(){return he});var w=a("KQm4"),j=a("U8pU"),je=a("Ff2n"),U=a("q1tI"),r=a.n(U),f=a("Kwbf"),ce=a("WaYH"),se=.25,K=2;function k(R,J){var $=R.slice(),g=$.indexOf(J);return g>=0&&$.splice(g,1),$}function X(R,J){var $=R.slice();return $.indexOf(J)===-1&&$.push(J),$}function le(R){return R.split("-")}function pe(R,J){return"".concat(R,"-").concat(J)}function Z(R){return R&&R.type&&R.type.isTreeNode}function _(R,J){var $=[R],g=J[R];function O(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];d.forEach(function(I){var z=I.key,Q=I.children;$.push(z),O(Q)})}return O(g.children),$}function x(R,J){var $=R.clientY,g=J.selectHandle.getBoundingClientRect(),O=g.top,d=g.bottom,I=g.height,z=Math.max(I*se,K);return $<=O+z?-1:$>=d-z?1:0}function ue(R,J){if(!R)return;var $=J.multiple;return $?R.slice():R.length?[R[0]]:R}var V=function(J){return J};function ae(R,J){if(!R)return[];var $=J||{},g=$.processProps,O=g===void 0?V:g,d=Array.isArray(R)?R:[R];return d.map(function(I){var z=I.children,Q=Object(je.a)(I,["children"]),Ce=ae(z,J);return r.a.createElement(ce.a,Object.assign({},O(Q)),Ce)})}function fe(R){if(!R)return null;var J;if(Array.isArray(R))J={checkedKeys:R,halfCheckedKeys:void 0};else if(Object(j.a)(R)==="object")J={checkedKeys:R.checked||void 0,halfCheckedKeys:R.halfChecked||void 0};else return Object(f.a)(!1,"`checkedKeys` is not an array or an object"),null;return J}function Y(R,J){var $=new Set;function g(O){if($.has(O))return;var d=J[O];if(!d)return;$.add(O);var I=d.parent,z=d.node;if(z.disabled)return;I&&g(I.key)}return(R||[]).forEach(function(O){g(O)}),Object(w.a)($)}function he(R){var J={};return Object.keys(R).forEach(function($){($.startsWith("data-")||$.startsWith("aria-"))&&(J[$]=R[$])}),J}},PsNh:function(Xe,ve,a){Xe.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(Xe,ve,a){var w=a("wTVA"),j=a("EbDI"),je=a("ZhPi"),U=a("wkBT");function r(f){return w(f)||j(f)||je(f)||U()}Xe.exports=r,Xe.exports.__esModule=!0,Xe.exports.default=Xe.exports},WaYH:function(Xe,ve,a){"use strict";var w=a("rePB"),j=a("Ff2n"),je=a("VTBJ"),U=a("1OyB"),r=a("vuIU"),f=a("JX7q"),ce=a("Ji7U"),se=a("LK+K"),K=a("q1tI"),k=a("TSYQ"),X=a.n(k),le=a("sboe"),pe=a("OZM5"),Z=function(J){var $=J.prefixCls,g=J.level,O=J.isStart,d=J.isEnd;if(!g)return null;for(var I="".concat($,"-indent-unit"),z=[],Q=0;Q=0||Q.relatedTarget.className.indexOf("".concat(L,"-next"))>=0))return;O.setState({goInputText:""}),P(O.getValidValue())},O.go=function(Q){var Ce=O.state.goInputText;if(Ce==="")return;(Q.keyCode===Z.ENTER||Q.type==="click")&&(O.setState({goInputText:""}),O.props.quickGo(O.getValidValue()))},O}return Object(r.a)(g,[{key:"getValidValue",value:function(){var d=this.state,I=d.goInputText,z=d.current;return!I||isNaN(I)?z:Number(I)}},{key:"getPageSizeOptions",value:function(){var d=this.props,I=d.pageSize,z=d.pageSizeOptions;return z.some(function(Q){return Q.toString()===I.toString()})?z:z.concat([I.toString()]).sort(function(Q,Ce){var te=isNaN(Number(Q))?0:Number(Q),P=isNaN(Number(Ce))?0:Number(Ce);return te-P})}},{key:"render",value:function(){var d=this,I=this.props,z=I.pageSize,Q=I.locale,Ce=I.rootPrefixCls,te=I.changeSize,P=I.quickGo,L=I.goButton,y=I.selectComponentClass,p=I.buildOptionText,A=I.selectPrefixCls,h=I.disabled,M=this.state.goInputText,G="".concat(Ce,"-options"),oe=y,D=null,B=null,ne=null;if(!te&&!P)return null;var ie=this.getPageSizeOptions();if(te&&oe){var ee=ie.map(function(F,q){return K.a.createElement(oe.Option,{key:q,value:F.toString()},(p||d.buildOptionText)(F))});D=K.a.createElement(oe,{disabled:h,prefixCls:A,showSearch:!1,className:"".concat(G,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(z||ie[0]).toString(),onChange:this.changeSize,getPopupContainer:function(q){return q.parentNode}},ee)}return P&&(L&&(ne=typeof L=="boolean"?K.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(G,"-quick-jumper-button")},Q.jump_to_confirm):K.a.createElement("span",{onClick:this.go,onKeyUp:this.go},L)),B=K.a.createElement("div",{className:"".concat(G,"-quick-jumper")},Q.jump_to,K.a.createElement("input",{disabled:h,type:"text",value:M,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Q.page,ne)),K.a.createElement("li",{className:"".concat(G)},D,B)}}]),g}(K.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var x=_,ue=a("N2Kk");function V(){}function ae(J){return typeof J=="number"&&isFinite(J)&&Math.floor(J)===J}function fe(J,$,g){return g}function Y(J,$,g){var O=typeof J=="undefined"?$.pageSize:J;return Math.floor((g.total-1)/O)+1}var he=function(J){Object(f.a)(g,J);var $=Object(ce.a)(g);function g(O){var d;Object(U.a)(this,g),d=$.call(this,O),d.getJumpPrevPage=function(){return Math.max(1,d.state.current-(d.props.showLessItems?3:5))},d.getJumpNextPage=function(){return Math.min(Y(void 0,d.state,d.props),d.state.current+(d.props.showLessItems?3:5))},d.getItemIcon=function(te,P){var L=d.props.prefixCls,y=te||K.a.createElement("button",{type:"button","aria-label":P,className:"".concat(L,"-item-link")});return typeof te=="function"&&(y=K.a.createElement(te,Object(je.a)({},d.props))),y},d.savePaginationNode=function(te){d.paginationNode=te},d.isValid=function(te){return ae(te)&&te!==d.state.current},d.shouldDisplayQuickJumper=function(){var te=d.props,P=te.showQuickJumper,L=te.pageSize,y=te.total;return y<=L?!1:P},d.handleKeyDown=function(te){(te.keyCode===Z.ARROW_UP||te.keyCode===Z.ARROW_DOWN)&&te.preventDefault()},d.handleKeyUp=function(te){var P=d.getValidValue(te),L=d.state.currentInputValue;P!==L&&d.setState({currentInputValue:P}),te.keyCode===Z.ENTER?d.handleChange(P):te.keyCode===Z.ARROW_UP?d.handleChange(P-1):te.keyCode===Z.ARROW_DOWN&&d.handleChange(P+1)},d.changePageSize=function(te){var P=d.state.current,L=Y(te,d.state,d.props);P=P>L?L:P,L===0&&(P=d.state.current),typeof te=="number"&&("pageSize"in d.props||d.setState({pageSize:te}),"current"in d.props||d.setState({current:P,currentInputValue:P})),d.props.onShowSizeChange(P,te),"onChange"in d.props&&d.props.onChange&&d.props.onChange(P,te)},d.handleChange=function(te){var P=d.props.disabled,L=te;if(d.isValid(L)&&!P){var y=Y(void 0,d.state,d.props);L>y?L=y:L<1&&(L=1),"current"in d.props||d.setState({current:L,currentInputValue:L});var p=d.state.pageSize;return d.props.onChange(L,p),L}return d.state.current},d.prev=function(){d.hasPrev()&&d.handleChange(d.state.current-1)},d.next=function(){d.hasNext()&&d.handleChange(d.state.current+1)},d.jumpPrev=function(){d.handleChange(d.getJumpPrevPage())},d.jumpNext=function(){d.handleChange(d.getJumpNextPage())},d.hasPrev=function(){return d.state.current>1},d.hasNext=function(){return d.state.current2?L-2:0),p=2;p=z?Ce=z:Ce=Number(I),Ce}},{key:"getShowSizeChanger",value:function(){var d=this.props,I=d.showSizeChanger,z=d.total,Q=d.totalBoundaryShowSizeChanger;return typeof I!="undefined"?I:z>Q}},{key:"renderPrev",value:function(d){var I=this.props,z=I.prevIcon,Q=I.itemRender,Ce=Q(d,"prev",this.getItemIcon(z,"prev page")),te=!this.hasPrev();return Object(se.isValidElement)(Ce)?Object(se.cloneElement)(Ce,{disabled:te}):Ce}},{key:"renderNext",value:function(d){var I=this.props,z=I.nextIcon,Q=I.itemRender,Ce=Q(d,"next",this.getItemIcon(z,"next page")),te=!this.hasNext();return Object(se.isValidElement)(Ce)?Object(se.cloneElement)(Ce,{disabled:te}):Ce}},{key:"render",value:function(){var d=this,I=this.props,z=I.prefixCls,Q=I.className,Ce=I.style,te=I.disabled,P=I.hideOnSinglePage,L=I.total,y=I.locale,p=I.showQuickJumper,A=I.showLessItems,h=I.showTitle,M=I.showTotal,G=I.simple,oe=I.itemRender,D=I.showPrevNextJumpers,B=I.jumpPrevIcon,ne=I.jumpNextIcon,ie=I.selectComponentClass,ee=I.selectPrefixCls,F=I.pageSizeOptions,q=this.state,n=q.current,m=q.pageSize,s=q.currentInputValue;if(P===!0&&L<=m)return null;var S=Y(void 0,this.state,this.props),H=[],re=null,Ee=null,Pe=null,ke=null,Ie=null,Ne=p&&p.goButton,Le=A?1:2,Nt=n-1>0?n-1:0,It=n+1=Le*2&&n!==1+2&&(H[0]=Object(se.cloneElement)(H[0],{className:"".concat(z,"-item-after-jump-prev")}),H.unshift(re)),S-n>=Le*2&&n!==S-2&&(H[H.length-1]=Object(se.cloneElement)(H[H.length-1],{className:"".concat(z,"-item-before-jump-next")}),H.push(Ee)),ge!==1&&H.unshift(Pe),Me!==S&&H.push(ke)}var xe=null;M&&(xe=K.a.createElement("li",{className:"".concat(z,"-total-text")},M(L,[L===0?0:(n-1)*m+1,n*m>L?L:n*m])));var ye=!this.hasPrev()||!S,_e=!this.hasNext()||!S;return K.a.createElement("ul",Object(w.a)({className:X()(z,Q,Object(j.a)({},"".concat(z,"-disabled"),te)),style:Ce,unselectable:"unselectable",ref:this.savePaginationNode},At),xe,K.a.createElement("li",{title:h?y.prev_page:null,onClick:this.prev,tabIndex:ye?null:0,onKeyPress:this.runIfEnterPrev,className:X()("".concat(z,"-prev"),Object(j.a)({},"".concat(z,"-disabled"),ye)),"aria-disabled":ye},this.renderPrev(Nt)),H,K.a.createElement("li",{title:h?y.next_page:null,onClick:this.next,tabIndex:_e?null:0,onKeyPress:this.runIfEnterNext,className:X()("".concat(z,"-next"),Object(j.a)({},"".concat(z,"-disabled"),_e)),"aria-disabled":_e},this.renderNext(It)),K.a.createElement(x,{disabled:te,locale:y,rootPrefixCls:z,selectComponentClass:ie,selectPrefixCls:ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:n,pageSize:m,pageSizeOptions:F,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ne}))}}],[{key:"getDerivedStateFromProps",value:function(d,I){var z={};if("current"in d&&(z.current=d.current,d.current!==I.current&&(z.currentInputValue=z.current)),"pageSize"in d&&d.pageSize!==I.pageSize){var Q=I.current,Ce=Y(d.pageSize,I,d);Q=Q>Ce?Ce:Q,"current"in d||(z.current=Q,z.currentInputValue=Q),z.pageSize=d.pageSize}return z}}]),g}(K.a.Component);he.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:V,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:V,locale:ue.a,style:{},itemRender:fe,totalBoundaryShowSizeChanger:50};var T=he},"6RRn":function(Xe,ve,a){"use strict";var w=a("wCXF"),j=a("n6Qo");a.d(ve,"b",function(){return j.a});var je=a("IBYe"),U=a("6eGT"),r=a("hW8S");a.d(ve,"a",function(){return r.a}),ve.c=w.b},"6eGT":function(Xe,ve,a){"use strict";function w(j){return null}ve.a=w},"815F":function(Xe,ve,a){"use strict";a.d(ve,"e",function(){return ce}),a.d(ve,"c",function(){return K}),a.d(ve,"d",function(){return k}),a.d(ve,"a",function(){return le}),a.d(ve,"f",function(){return pe}),a.d(ve,"b",function(){return Z});var w=a("KQm4"),j=a("VTBJ"),je=a("Ff2n"),U=a("Zm9Q"),r=a("Kwbf"),f=a("OZM5");function ce(_,x){return _!=null?_:x}function se(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=new Map;function ue(V){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(V||[]).forEach(function(fe){var Y=fe.key,he=fe.children;Object(r.a)(Y!=null,"Tree node must have a certain key: [".concat(ae).concat(Y,"]"));var T=String(Y);Object(r.a)(!x.has(T)||Y===null||Y===void 0,"Same 'key' exist in the Tree: ".concat(T)),x.set(T,!0),ue(he,"".concat(ae).concat(T," > "))})}ue(_)}function K(_){function x(ue){var V=Object(U.a)(ue);return V.map(function(ae){if(!Object(f.i)(ae))return Object(r.a)(!ae,"Tree/TreeNode can only accept TreeNode as children."),null;var fe=ae.key,Y=ae.props,he=Y.children,T=Object(je.a)(Y,["children"]),J=Object(j.a)({key:fe},T),$=x(he);return $.length&&(J.children=$),J}).filter(function(ae){return ae})}return x(_)}function k(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ue=new Set(x===!0?[]:x),V=[];function ae(fe){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return fe.map(function(he,T){var J=Object(f.h)(Y?Y.pos:"0",T),$=ce(he.key,J),g=Object(j.a)(Object(j.a)({},he),{},{parent:Y,pos:J,children:null,data:he,isStart:[].concat(Object(w.a)(Y?Y.isStart:[]),[T===0]),isEnd:[].concat(Object(w.a)(Y?Y.isEnd:[]),[T===fe.length-1])});return V.push(g),x===!0||ue.has($)?g.children=ae(he.children||[],g):g.children=[],g})}return ae(_),V}function X(_,x,ue){var V;ue?typeof ue=="string"?V=function(Y){return Y[ue]}:typeof ue=="function"&&(V=function(Y){return ue(Y)}):V=function(Y,he){return ce(Y.key,he)};function ae(fe,Y,he){var T=fe?fe.children:_,J=fe?Object(f.h)(he.pos,Y):"0";if(fe){var $=V(fe,J),g={node:fe,index:Y,pos:J,key:$,parentPos:he.node?he.pos:null,level:he.level+1};x(g)}T&&T.forEach(function(O,d){ae(O,d,{node:fe,pos:J,level:he?he.level+1:-1})})}ae(null)}function le(_){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=x.initWrapper,V=x.processEntity,ae=x.onProcessFinished,fe=arguments.length>2?arguments[2]:void 0,Y={},he={},T={posEntities:Y,keyEntities:he};return ue&&(T=ue(T)||T),X(_,function(J){var $=J.node,g=J.index,O=J.pos,d=J.key,I=J.parentPos,z=J.level,Q={node:$,index:g,key:d,pos:O,level:z},Ce=ce(d,O);Y[O]=Q,he[Ce]=Q,Q.parent=Y[I],Q.parent&&(Q.parent.children=Q.parent.children||[],Q.parent.children.push(Q)),V&&V(Q,T)},fe),ae&&ae(T),T}function pe(_,x){var ue=x.expandedKeys,V=x.selectedKeys,ae=x.loadedKeys,fe=x.loadingKeys,Y=x.checkedKeys,he=x.halfCheckedKeys,T=x.dragOverNodeKey,J=x.dropPosition,$=x.keyEntities,g=$[_],O={eventKey:_,expanded:ue.indexOf(_)!==-1,selected:V.indexOf(_)!==-1,loaded:ae.indexOf(_)!==-1,loading:fe.indexOf(_)!==-1,checked:Y.indexOf(_)!==-1,halfChecked:he.indexOf(_)!==-1,pos:String(g?g.pos:""),dragOver:T===_&&J===0,dragOverGapTop:T===_&&J===-1,dragOverGapBottom:T===_&&J===1};return O}function Z(_){var x=_.data,ue=_.expanded,V=_.selected,ae=_.checked,fe=_.loaded,Y=_.loading,he=_.halfChecked,T=_.dragOver,J=_.dragOverGapTop,$=_.dragOverGapBottom,g=_.pos,O=_.active,d=Object(j.a)(Object(j.a)({},x),{},{expanded:ue,selected:V,checked:ae,loaded:fe,loading:Y,halfChecked:he,dragOver:T,dragOverGapTop:J,dragOverGapBottom:$,pos:g,active:O});return"props"in d||Object.defineProperty(d,"props",{get:function(){return Object(r.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),_}}),d}},"9ZfG":function(Xe,ve,a){"use strict";var w=a("2qtc"),j=a("kLXV"),je=a("DYRE"),U=a("zeV3"),r=a("DZo9"),f=a("8z0m"),ce=a("+L6B"),se=a("2/Rp"),K=a("Znn+"),k=a("ZTPi"),X=a("miYZ"),le=a("tsqr"),pe=a("tJVT"),Z=a("q1tI"),_=a.n(Z),x=a("xvlK"),ue=a("1vsH"),V=a("Ty5D"),ae=a("NdNG"),fe=a.n(ae),Y=function(T){var J=T.visible,$=T.onOk,g=T.onCancel,O=T.templateFileName,d=T.templateFileUrl,I=T.otherTemplateText,z=T.formNode,Q=T.title,Ce=Object(Z.useState)([]),te=Object(pe.a)(Ce,2),P=te[0],L=te[1],y=Object(Z.useState)(!1),p=Object(pe.a)(y,2),A=p[0],h=p[1],M=Object(Z.useState)("1"),G=Object(pe.a)(M,2),oe=G[0],D=G[1],B=Object(V.i)();Object(Z.useEffect)(function(){J||(L([]),h(!1),D("1"))},[J]);var ne=function(){h(!0),$(P,function(){h(!1)})},ie=function(){g()},ee=function(){var m=d;Object(ue.x)(null,m)},F=function(m){var s,S,H,re,Ee=m==null||((s=m.name)===null||s===void 0)?void 0:s.substring(m==null||((S=m.name)===null||S===void 0)?void 0:S.lastIndexOf("."),m==null||((H=m.name)===null||H===void 0)?void 0:H.length);if(Ee=(re=Ee)===null||re===void 0?void 0:re.toLowerCase(),Ee!==".xls"&&Ee!==".xlsx")return le.b.error("\u53EA\u80FD\u4E0A\u4F20.xls,.xlsx\u683C\u5F0F\u7684\u6587\u6863"),Promise.reject();var Pe={name:m.name,uid:m.uid,file:m};return L([Pe]),!1},q=function(){L([])};return _.a.createElement(j.a,{title:Q,visible:J,centered:!0,wrapClassName:fe.a.customModal,onCancel:ie,width:"740px",confirmLoading:A,footer:null},_.a.createElement(k.a,{className:fe.a.tabWarp,onChange:function(m){return D(m)},activeKey:oe},_.a.createElement(k.a.TabPane,{tab:"\u624B\u52A8\u65B0\u589E",key:"1"},z),_.a.createElement(k.a.TabPane,{tab:"\u6279\u91CF\u5BFC\u5165",key:"2"},_.a.createElement("div",{className:fe.a.content},_.a.createElement("div",{style:{marginLeft:41,paddingBottom:50}},_.a.createElement("div",{style:{marginTop:36}},_.a.createElement("span",null,"\u6B65\u9AA41\uFF1A"),_.a.createElement("span",null,"\u4E0B\u8F7D\xA0",_.a.createElement("span",{style:{color:"#0152D9",cursor:"pointer"},onClick:ee},_.a.createElement("i",{className:"iconfont icon-moban1 font14"}),O),"\uFF0C\xA0",I),_.a.createElement("span",{style:{color:"#FA6400"},className:"mt10"},"\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\u3002")),_.a.createElement("aside",{style:{marginTop:30}},_.a.createElement("div",{className:"mr20"},"\u6B65\u9AA42\uFF1A\u4E0A\u4F20\u586B\u5199\u5B8C\u6210\u7684\u6A21\u677F\u3002"),_.a.createElement("div",null,J&&_.a.createElement(f.a,{action:"/api/attachments.json",fileList:P,beforeUpload:F,onRemove:q,withCredentials:!0,accept:".xls,.xlsx"},_.a.createElement(se.a,{type:"primary",icon:_.a.createElement(x.a,null)},"\u9009\u62E9\u6587\u4EF6"))))),_.a.createElement(U.a,{className:"mr40 pb20",size:10,style:{float:"right"}},_.a.createElement(se.a,{onClick:function(){return ie()}},"\u53D6\u6D88"),_.a.createElement(se.a,{onClick:function(){return ne()},type:"primary"},"\u786E\u8BA4"))))))};ve.a=Y},BU3w:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f});var w=a("MNnm"),j="rc-util-key";function je(ce){if(ce.attachTo)return ce.attachTo;var se=document.querySelector("head");return se||document.body}function U(ce){var se,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(w.a)())return null;var k=document.createElement("style");if((se=K.csp)===null||se===void 0?void 0:se.nonce){var X;k.nonce=(X=K.csp)===null||X===void 0?void 0:X.nonce}k.innerHTML=ce;var le=je(K),pe=le.firstChild;return K.prepend&&le.prepend?le.prepend(k):K.prepend&&pe?le.insertBefore(k,pe):le.appendChild(k),k}var r=new Map;function f(ce,se){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=je(K);if(!r.has(k)){var X=U("",K),le=X.parentNode;r.set(k,le),le.removeChild(X)}var pe=Array.from(r.get(k).children).find(function(V){return V.tagName==="STYLE"&&V[j]===se});if(pe){var Z,_;if(((Z=K.csp)===null||Z===void 0?void 0:Z.nonce)&&pe.nonce!==((_=K.csp)===null||_===void 0?void 0:_.nonce)){var x;pe.nonce=(x=K.csp)===null||x===void 0?void 0:x.nonce}return pe.innerHTML!==ce&&(pe.innerHTML=ce),pe}var ue=U(ce,K);return ue[j]=se,ue}},FAcQ:function(Xe,ve,a){"use strict";a.r(ve);var w=a("g9YV"),j=a("wCAj"),je=a("OaEy"),U=a("2fM7"),r=a("DYRE"),f=a("zeV3"),ce=a("+L6B"),se=a("2/Rp"),K=a("5NDa"),k=a("5rEg"),X=a("2qtc"),le=a("kLXV"),pe=a("miYZ"),Z=a("tsqr"),_=a("k1fw"),x=a("9og8"),ue=a("y8nQ"),V=a("Vl3Y"),ae=a("tJVT"),fe=a("WmNS"),Y=a.n(fe),he=a("q1tI"),T=a.n(he),J=a("0ntK"),$=a.n(J),g=a("9kvl"),O=a("9ZfG"),d=a("ErOA"),I=a("LvDl"),z=a.n(I),Q=a("1vsH"),Ce=a("m3rI"),te=a("fj85"),P=a("g+eg"),L=function(p){var A,h=p.user,M={page:1,per_page:20,total:0,search:"",save_search:"",ec_major_school_id:null,ec_year_id:null,category:"name",sort_by:null,direction:null},G=Object(he.useState)(M),oe=Object(ae.a)(G,2),D=oe[0],B=oe[1],ne=Object(he.useState)(!0),ie=Object(ae.a)(ne,2),ee=ie[0],F=ie[1],q=Object(he.useState)(!1),n=Object(ae.a)(q,2),m=n[0],s=n[1],S=Object(he.useState)(!1),H=Object(ae.a)(S,2),re=H[0],Ee=H[1],Pe=Object(he.useState)(!1),ke=Object(ae.a)(Pe,2),Ie=ke[0],Ne=ke[1],Le=Object(he.useState)(!1),Nt=Object(ae.a)(Le,2),It=Nt[0],At=Nt[1],jt=Object(he.useState)([]),Ft=Object(ae.a)(jt,2),un=Ft[0],N=Ft[1],be=Object(he.useState)([]),ge=Object(ae.a)(be,2),Me=ge[0],Ae=ge[1],Te=Object(he.useState)([]),xe=Object(ae.a)(Te,2),ye=xe[0],_e=xe[1],Ue=Object(he.useState)([]),Se=Object(ae.a)(Ue,2),we=Se[0],$e=Se[1],Ke=Object(he.useState)(!1),Qe=Object(ae.a)(Ke,2),Et=Qe[0],ot=Qe[1],yt=V.a.useForm(),Ye=Object(ae.a)(yt,1),wt=Ye[0],Mt=Object(he.useRef)(null);Object(he.useEffect)(function(){var ze;h!=null&&(ze=h.userInfo)!==null&&ze!==void 0&&ze.school_id&&Jt()},[h==null||((A=h.userInfo)===null||A===void 0)?void 0:A.school_id]);var lt=function(){var ze=Object(x.a)(Y.a.mark(function Re(Be){var Ve,it,Ge;return Y.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return it=Object(I.cloneDeep)(Be),P.a.setItem(h==null||((Ve=h.userInfo)===null||Ve===void 0)?void 0:Ve.login,[it==null?void 0:it.ec_major_school_id,it==null?void 0:it.ec_year_id]),it[Be==null?void 0:Be.category]=Be==null?void 0:Be.search,F(!0),Ut.next=6,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"get",params:it});case 6:Ge=Ut.sent,Ge!=null&&Ge.students&&($e((Ge==null?void 0:Ge.students)||[]),D.total=Ge==null?void 0:Ge.count,D.save_search=D.search,B(Object(_.a)({},D))),F(!1);case 9:case"end":return Ut.stop()}},Re)}));return function(Be){return ze.apply(this,arguments)}}(),zt=function(){var Re=Object(I.cloneDeep)(D);Re[D==null?void 0:D.category]=D==null?void 0:D.search,Object(Q.v)("",Object(Q.Y)({url:Ce.a.API_SERVER+"/api/ec_years/".concat(D.ec_year_id,"/students.xlsx"),query:Re}))},Jt=function(){var ze=Object(x.a)(Y.a.mark(function Re(){var Be,Ve,it,Ge,st,Ut,St,_n,Qt,cn,gn,dn;return Y.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(d.a)("/api/schools/".concat(h==null||((Be=h.userInfo)===null||Be===void 0)?void 0:Be.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(Qt=Pt.sent,Qt!=null&&(Ve=Qt.data)!==null&&Ve!==void 0&&(it=Ve[0])!==null&&it!==void 0&&it.ec_major_school_id){Pt.next=7;break}return F(!1),s(!0),Pt.abrupt("return");case 7:return cn=P.a.getItem(h==null||((Ge=h.userInfo)===null||Ge===void 0)?void 0:Ge.login),gn=cn[0]||(Qt==null||((st=Qt.data)===null||st===void 0||((Ut=st[0])===null||Ut===void 0))?void 0:Ut.ec_major_school_id),Pt.next=11,Object(d.a)("/api/ec_major_schools/".concat(gn,"/ec_years/get_year_list.json"),{method:"get"});case 11:dn=Pt.sent,D.ec_major_school_id=gn,D.ec_year_id=cn[1]||(dn==null||((St=dn.data)===null||St===void 0||((_n=St[0])===null||_n===void 0))?void 0:_n.ec_year_id),Ae((Qt==null?void 0:Qt.data)||[]),_e((dn==null?void 0:dn.data)||[]),B(D),lt(D);case 18:case"end":return Pt.stop()}},Re)}));return function(){return ze.apply(this,arguments)}}(),ft=function(){var ze=Object(x.a)(Y.a.mark(function Re(Be){var Ve,it,Ge;return Y.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,Object(d.a)("/api/ec_major_schools/".concat(Be,"/ec_years/get_year_list.json"),{method:"get"});case 2:Ge=Ut.sent,D.ec_major_school_id=Be,D.ec_year_id=Ge==null||((Ve=Ge.data)===null||Ve===void 0||((it=Ve[0])===null||it===void 0))?void 0:it.ec_year_id,_e((Ge==null?void 0:Ge.data)||[]),B(D),lt(D);case 8:case"end":return Ut.stop()}},Re)}));return function(Be){return ze.apply(this,arguments)}}(),Gt=function(Re,Be){if(D.page=1,D[Be]=Re,Be==="category"){D.search="",D.save_search="",B(Object(_.a)({},D));return}if(Be==="ec_major_school_id"){ft(Re);return}Be==="ec_year_id"&&(B(Object(_.a)({},D)),lt(D))},Tt=function(Re){D.page=1,D.save_search=Re,B(Object(_.a)({},D))},Ct=function(Re){if(Re.length===0){Z.b.warn("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u5B66\u751F");return}le.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var Be=Object(x.a)(Y.a.mark(function it(){var Ge,st;return Y.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"delete",body:{ids:Re}});case 2:Ge=St.sent,(Ge==null?void 0:Ge.status)===0&&(st=Re.length===we.length&&D.page>1?D.page-1:D.page,D.page=st,N([]),B(Object(_.a)({},D)),lt(D));case 4:case"end":return St.stop()}},it)}));function Ve(){return Be.apply(this,arguments)}return Ve}()})},ht=function(Re,Be,Ve){if(D.page=Re==null?void 0:Re.current,D.per_page=Re==null?void 0:Re.pageSize,Ve!=null&&Ve.order?(D.sort_by=Ve==null?void 0:Ve.field,D.direction=(Ve==null?void 0:Ve.order)==="ascend"?"asc":"desc"):(D.sort_by=null,D.direction=null),B(Object(_.a)({},D)),nn)return;lt(D)},Ze={selectedRowKeys:un,columnWidth:54,onChange:function(Re){return N(Re)}},Lt=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:function(Re,Be,Ve){return D.per_page*(D.page-1)+Ve+1}},{title:"\u59D3\u540D",dataIndex:"name",sorter:!0,ellipsis:!0,render:function(Re){return Re||"-"}},{title:"\u5B66\u53F7",dataIndex:"student_id",ellipsis:!0,sorter:!0,render:function(Re){return Re||"-"}},{title:"\u73ED\u7EA7",dataIndex:"clazz",ellipsis:!0,sorter:!0,render:function(Re){return Re||"-"}},{title:"\u6240\u5C5E\u5B66\u9662",dataIndex:"department",ellipsis:!0,sorter:!0,render:function(Re){return Re||"-"}},{title:"\u64CD\u4F5C",width:90,dataIndex:"action",render:function(Re,Be){return T.a.createElement("span",null,T.a.createElement("i",{onClick:function(){return qt(Be.id)},className:"iconfont icon-bianji7 c-gcrz-primary mr10 current"}),T.a.createElement("i",{onClick:function(){return Ct([Be.id])},className:"iconfont icon-piliangshanchubeifen c-gcrz-primary current"}))}}],Zt=function(){var ze=Object(x.a)(Y.a.mark(function Re(Be,Ve){var it,Ge,st;return Y.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(!(Be.length===0)){St.next=4;break}return Z.b.warn("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Ve(),St.abrupt("return");case 4:return Ge=new FormData,Ge.append("file",(it=Be[0])===null||it===void 0?void 0:it.file),St.next=8,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students/import.json"),{method:"post",body:Ge},!0);case 8:st=St.sent,(st==null?void 0:st.status)===0&&(lt(D),At(!1)),Ve();case 11:case"end":return St.stop()}},Re)}));return function(Be,Ve){return ze.apply(this,arguments)}}(),qt=function(){var ze=Object(x.a)(Y.a.mark(function Re(Be){var Ve;return Y.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return ot(Be),Ge.next=3,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students/student_detail.json"),{method:"get",params:{id:Be}});case 3:Ve=Ge.sent,Ve!=null&&Ve.students&&wt.setFieldsValue((Ve==null?void 0:Ve.students)||{});case 5:case"end":return Ge.stop()}},Re)}));return function(Be){return ze.apply(this,arguments)}}(),Dt=function(){var ze=Object(x.a)(Y.a.mark(function Re(Be){var Ve,it;return Y.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(Mt.current?Ee(!0):Ne(!0),!Et){st.next=7;break}return st.next=4,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"put",body:Object(_.a)(Object(_.a)({},Be),{},{id:Et})});case 4:it=st.sent,st.next=10;break;case 7:return st.next=9,Object(d.a)("/api/ec_years/".concat(D.ec_year_id,"/students.json"),{method:"post",body:Be});case 9:it=st.sent;case 10:((Ve=it)===null||Ve===void 0?void 0:Ve.status)===0&&(Mt.current&&(At(!1),ot(!1)),wt.resetFields(),Z.b.success("\u4FDD\u5B58\u6210\u529F"),lt(D)),Ee(!1),Ne(!1);case 13:case"end":return st.stop()}},Re)}));return function(Be){return ze.apply(this,arguments)}}(),Rn=function(Re){return T.a.createElement("div",null,T.a.createElement(V.a,{form:wt,className:$.a.form,colon:!1,onFinish:Dt,labelCol:{span:4},wrapperCol:{span:19}},T.a.createElement(V.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},T.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D"})),T.a.createElement(V.a.Item,{label:"\u5B66\u53F7",name:"student_id",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u53F7"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u5B66\u53F7"}]},T.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"})),T.a.createElement(V.a.Item,{label:"\u73ED\u7EA7",name:"clazz",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u73ED\u7EA7"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u73ED\u7EA7"}]},T.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u73ED\u7EA7"})),T.a.createElement(V.a.Item,{label:"\u6240\u5C5E\u5B66\u9662",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"}]},T.a.createElement(k.a,{placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u5B66\u9662"}))),T.a.createElement(f.a,{size:10,className:$.a.button,style:{margin:"0 40px 20px 0"}},T.a.createElement(se.a,{onClick:function(){ot(!1),At(!1)}},"\u53D6\u6D88"),T.a.createElement(se.a,{disabled:Ie,type:Re?"primary":"default",loading:re,onClick:function(){Mt.current=!0,wt.submit()}},"\u4FDD\u5B58"),!Re&&T.a.createElement(se.a,{disabled:re,loading:Ie,type:"primary",onClick:function(){Mt.current=!1,wt.submit()}},"\u7EE7\u7EED\u65B0\u589E")),T.a.createElement("div",{style:{clear:"both"}}))},nn=ee||m;return T.a.createElement("div",{className:$.a.wrap},T.a.createElement(te.a,{title:"\u5B66\u751F\u4FE1\u606F",style:{padding:"12px 0 0 20px"}}),T.a.createElement(f.a,{className:$.a.button,size:10},T.a.createElement(se.a,{disabled:nn,onClick:function(){wt.resetFields(),At(!0)},type:"primary"},T.a.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u65B0\u589E\u5B66\u751F"),T.a.createElement(se.a,{disabled:nn,onClick:function(){return Ct(un)}},T.a.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"\u6279\u91CF\u5220\u9664"),T.a.createElement(se.a,{disabled:nn,onClick:function(){return zt()}},T.a.createElement("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"\u5BFC\u51FA")),T.a.createElement("div",{style:{clear:"both"}}),T.a.createElement("div",{className:$.a.control},T.a.createElement("div",{className:$.a.label},"\u8BA4\u8BC1\u4E13\u4E1A"),T.a.createElement(U.a,{disabled:nn,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:D==null?void 0:D.ec_major_school_id,onChange:function(Re){return Gt(Re,"ec_major_school_id")}},Me==null?void 0:Me.map(function(ze){return T.a.createElement(U.a.Option,{key:ze.ec_major_school_id,value:ze.ec_major_school_id},ze.name)})),T.a.createElement("div",{className:$.a.label},"\u8BA4\u8BC1\u5C4A\u522B"),T.a.createElement(U.a,{disabled:nn,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:D==null?void 0:D.ec_year_id,onChange:function(Re){return Gt(Re,"ec_year_id")}},ye==null?void 0:ye.map(function(ze){return T.a.createElement(U.a.Option,{key:ze.ec_year_id,value:ze.ec_year_id},ze.year)})),T.a.createElement("div",{className:$.a.label,style:{width:100,background:"#fff"}},T.a.createElement(U.a,{disabled:nn,style:{width:100,transform:"translate(-1px, -1px)"},bordered:!1,value:D==null?void 0:D.category,onChange:function(Re){return Gt(Re,"category")}},T.a.createElement(U.a.Option,{value:"student_id"},"\u5B66\u751F\u5B66\u53F7"),T.a.createElement(U.a.Option,{value:"name"},"\u5B66\u751F\u59D3\u540D"),T.a.createElement(U.a.Option,{value:"clazz"},"\u5B66\u751F\u73ED\u7EA7"))),T.a.createElement(k.a.Search,{placeholder:"\u8BF7\u8F93\u5165".concat((D==null?void 0:D.category)==="student_id"?"\u5B66\u751F\u5B66\u53F7":(D==null?void 0:D.category)==="name"?"\u5B66\u751F\u59D3\u540D":"\u5B66\u751F\u73ED\u7EA7"),value:D==null?void 0:D.save_search,disabled:nn,onChange:function(Re){return Tt(Re.target.value)},onSearch:function(){D.page=1,D.search=D.save_search,B(Object(_.a)({},D)),lt(D)}})),T.a.createElement(j.a,{rowSelection:Ze,className:$.a.customTable,dataSource:we,bordered:!1,rowKey:"id",columns:Lt,rowClassName:$.a.row,loading:ee,onChange:ht,pagination:{pageSize:D.per_page,total:D.total,current:D.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],showTotal:function(Re){return T.a.createElement("span",{className:"mr10"},"\u5171",T.a.createElement("span",{className:"c-orange"},Re),"\u6761\u6570\u636E")}}}),T.a.createElement(O.a,{title:"\u65B0\u589E\u5B66\u751F",visible:It,onCancel:function(){return At(!1)},onOk:Zt,templateFileName:"\u5B66\u751F\u5BFC\u5165\u6A21\u677F",templateFileUrl:Ce.a.API_SERVER+"/api/ec_years/".concat(D.ec_year_id,"/students/down_template.xlsx"),otherTemplateText:"\u6279\u91CF\u5BFC\u5165\u5B66\u751F\u4FE1\u606F\u3002",formNode:Rn()}),T.a.createElement(le.a,{title:"\u4FEE\u6539\u5B66\u751F\u4FE1\u606F",className:$.a.customModal,width:740,visible:!!Et,centered:!0,onCancel:function(){ot(!1),wt.resetFields()},footer:null},Rn(!0)))};ve.default=Object(g.a)(function(y){var p=y.user;return{user:p}})(L)},GfqC:function(Xe,ve,a){"use strict";var w=a("q1tI"),j=a.n(w),je=a("TSYQ"),U=a.n(je);function r(y,p){var A="cannot "+y.method+" "+y.action+" "+p.status+"'",h=new Error(A);return h.status=p.status,h.method=y.method,h.url=y.action,h}function f(y){var p=y.responseText||y.response;if(!p)return p;try{return JSON.parse(p)}catch(A){return p}}function ce(y){var p=new XMLHttpRequest;y.onProgress&&p.upload&&(p.upload.onprogress=function(G){G.total>0&&(G.percent=G.loaded/G.total*100),y.onProgress(G)});var A=new FormData;y.data&&Object.keys(y.data).forEach(function(M){var G=y.data[M];if(Array.isArray(G)){G.forEach(function(oe){A.append(M+"[]",oe)});return}A.append(M,y.data[M])}),y.file instanceof Blob?A.append(y.filename,y.file,y.file.name):A.append(y.filename,y.file),p.onerror=function(G){y.onError(G)},p.onload=function(){return p.status<200||p.status>=300?y.onError(r(y,p),f(p)):y.onSuccess(f(p),p)},p.open(y.method,y.action,!0),y.withCredentials&&"withCredentials"in p&&(p.withCredentials=!0);var h=y.headers||{};return h["X-Requested-With"]!==null&&p.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(h).forEach(function(M){h[M]!==null&&p.setRequestHeader(M,h[M])}),p.send(A),{abort:function(){p.abort()}}}var se=+new Date,K=0;function k(){return"rc-upload-"+se+"-"+ ++K}function X(y,p){return y.indexOf(p,y.length-p.length)!==-1}var le=function(y,p){if(y&&p){var A=Array.isArray(p)?p:p.split(","),h=y.name||"",M=y.type||"",G=M.replace(/\/.*$/,"");return A.some(function(oe){var D=oe.trim();return D.charAt(0)==="."?X(h.toLowerCase(),D.toLowerCase()):/\/\*$/.test(D)?G===D.replace(/\/.*$/,""):M===D})}return!0};function pe(y,p){var A=y.createReader(),h=[];function M(){A.readEntries(function(G){var oe=Array.prototype.slice.apply(G);h=h.concat(oe);var D=!oe.length;D?p(h):M()})}M()}var Z=function(p,A,h){var M=function G(oe,D){D=D||"",oe.isFile?oe.file(function(B){h(B)&&(oe.fullPath&&!B.webkitRelativePath&&(Object.defineProperties(B,{webkitRelativePath:{writable:!0}}),B.webkitRelativePath=oe.fullPath.replace(/^\//,""),Object.defineProperties(B,{webkitRelativePath:{writable:!1}})),A([B]))}):oe.isDirectory&&pe(oe,function(B){B.forEach(function(ne){G(ne,""+D+oe.name+"/")})})};p.forEach(function(G){M(G.webkitGetAsEntry())})},_=Z,x=Object.assign||function(y){for(var p=1;p=0)continue;if(!Object.prototype.hasOwnProperty.call(y,h))continue;A[h]=y[h]}return A}function Y(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function he(y,p){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:y}function T(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);y.prototype=Object.create(p&&p.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(y,p):y.__proto__=p)}var J=function(p){return Object.keys(p).reduce(function(A,h){return(h.substr(0,5)==="data-"||h.substr(0,5)==="aria-"||h==="role")&&(A[h]=p[h]),A},{})},$=function(y){T(p,y);function p(){var A,h,M,G;Y(this,p);for(var oe=arguments.length,D=Array(oe),B=0;B1&&arguments[1]!==void 0?arguments[1]:1,_e=Le.length,Ue=0;Ue<_e;Ue+=1){var Se=(xe+Ue*ye+_e)%_e,we=Le[Se],$e=we.group,Ke=we.data;if(!$e&&!Ke.disabled)return Se}return-1},Ft=r.useState(function(){return jt(0)}),un=Object(se.a)(Ft,2),N=un[0],be=un[1],ge=function(xe){be(xe);var ye=Le[xe];if(!ye){Pe(null,-1);return}Pe(ye.data.value,xe)};r.useEffect(function(){ge(F!==!1?jt(0):-1)},[Le.length,ie]),r.useEffect(function(){var Te=setTimeout(function(){if(!ee&&s&&ne.size===1){var xe=Array.from(ne)[0],ye=Le.findIndex(function(_e){var Ue=_e.data;return Ue.value===xe});ge(ye),At(ye)}});return function(){return clearTimeout(Te)}},[s]);var Me=function(xe){xe!==void 0&&re(xe,{selected:!ne.has(xe)}),ee||Ee(!1)};if(r.useImperativeHandle(M,function(){return{onKeyDown:function(xe){var ye=xe.which;switch(ye){case K.a.UP:case K.a.DOWN:{var _e=0;if(ye===K.a.UP?_e=-1:ye===K.a.DOWN&&(_e=1),_e!==0){var Ue=jt(N+_e,_e);At(Ue),ge(Ue)}break}case K.a.ENTER:{var Se=Le[N];Se&&!Se.data.disabled?Me(Se.data.value):Me(void 0),s&&xe.preventDefault();break}case K.a.ESC:Ee(!1)}},onKeyUp:function(){},scrollTo:function(xe){At(xe)}}}),Le.length===0)return r.createElement("div",{role:"listbox",id:"".concat(oe,"_list"),className:"".concat(Ne,"-empty"),onMouseDown:It},m);function Ae(Te){var xe=Le[Te];if(!xe)return null;var ye=xe.data||{},_e=ye.value,Ue=ye.label,Se=ye.children,we=Object(k.a)(ye,!0),$e=B?Se:Ue;return xe?r.createElement("div",Object.assign({"aria-label":typeof $e=="string"?$e:null},we,{key:Te,role:"option",id:"".concat(oe,"_list_").concat(Te),"aria-selected":ne.has(_e)}),_e):null}return r.createElement(r.Fragment,null,r.createElement("div",{role:"listbox",id:"".concat(oe,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ae(N-1),Ae(N),Ae(N+1)),r.createElement(Z.a,{itemKey:"key",ref:Nt,data:Le,height:q,itemHeight:n,fullHeight:!1,onMouseDown:It,onScroll:ke,virtual:H,onMouseEnter:Ie},function(Te,xe){var ye,_e=Te.group,Ue=Te.groupOption,Se=Te.data,we=Se.label,$e=Se.key;if(_e)return r.createElement("div",{className:pe()(Ne,"".concat(Ne,"-group"))},we!==void 0?we:$e);var Ke=Se.disabled,Qe=Se.value,Et=Se.title,ot=Se.children,yt=Se.style,Ye=Se.className,wt=Object(ce.a)(Se,["disabled","value","title","children","style","className"]),Mt=ne.has(Qe),lt="".concat(Ne,"-option"),zt=pe()(Ne,lt,Ye,(ye={},Object(f.a)(ye,"".concat(lt,"-grouped"),Ue),Object(f.a)(ye,"".concat(lt,"-active"),N===xe&&!Ke),Object(f.a)(ye,"".concat(lt,"-disabled"),Ke),Object(f.a)(ye,"".concat(lt,"-selected"),Mt),ye)),Jt=B?ot:we,ft=!S||typeof S=="function"||Mt;return r.createElement("div",Object.assign({},wt,{"aria-selected":Mt,className:zt,title:Et,onMouseMove:function(){if(N===xe||Ke)return;ge(xe)},onClick:function(){Ke||Me(Qe)},style:yt}),r.createElement("div",{className:"".concat(lt,"-content")},Jt||Qe),r.isValidElement(S)||Mt,ft&&r.createElement(_.a,{className:"".concat(Ne,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:Mt}},Mt?"\u2713":null))}))},ue=r.forwardRef(x);ue.displayName="OptionList";var V=ue,ae=function(){return null};ae.isSelectOption=!0;var fe=ae,Y=function(){return null};Y.isSelectOptGroup=!0;var he=Y,T=a("VTBJ"),J=a("Zm9Q");function $(A){var h=A.key,M=A.props,G=M.children,oe=M.value,D=Object(ce.a)(M,["children","value"]);return Object(T.a)({key:h,value:oe!==void 0?oe:h,children:G},D)}function g(A){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(J.a)(A).map(function(M,G){if(!r.isValidElement(M)||!M.type)return null;var oe=M.type.isSelectOptGroup,D=M.key,B=M.props,ne=B.children,ie=Object(ce.a)(B,["children"]);return h||!oe?$(M):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(D===null?G:D,"__"),label:D},ie),{},{options:g(ne)})}).filter(function(M){return M})}var O=a("2Qr1"),d=a("qNPg"),I=a("U8pU"),z=a("Kwbf"),Q=a("WKfj");function Ce(A){var h=A.mode,M=A.options,G=A.children,oe=A.backfill,D=A.allowClear,B=A.placeholder,ne=A.getInputElement,ie=A.showSearch,ee=A.onSearch,F=A.defaultOpen,q=A.autoFocus,n=A.labelInValue,m=A.value,s=A.inputValue,S=A.optionLabelProp,H=h==="multiple"||h==="tags",re=ie!==void 0?ie:H||h==="combobox",Ee=M||g(G);if(Object(z.a)(h!=="tags"||Ee.every(function(Ne){return!Ne.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),h==="tags"||h==="combobox"){var Pe=Ee.some(function(Ne){return Ne.options?Ne.options.some(function(Le){return typeof("value"in Le?Le.value:Le.key)=="number"}):typeof("value"in Ne?Ne.value:Ne.key)=="number"});Object(z.a)(!Pe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(z.a)(h!=="combobox"||!S,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(z.a)(h==="combobox"||!oe,"`backfill` only works with `combobox` mode."),Object(z.a)(h==="combobox"||!ne,"`getInputElement` only work with `combobox` mode."),Object(z.b)(h!=="combobox"||!ne||!D||!B,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ee&&!re&&h!=="combobox"&&h!=="tags"&&Object(z.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(z.b)(!F||q,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),m!=null){var ke=Object(Q.d)(m);Object(z.a)(!n||ke.every(function(Ne){return Object(I.a)(Ne)==="object"&&("key"in Ne||"value"in Ne)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(z.a)(!H||Array.isArray(m),"`value` should be array when `mode` is `multiple` or `tags`")}if(G){var Ie=null;Object(J.a)(G).some(function(Ne){if(!r.isValidElement(Ne)||!Ne.type)return!1;var Le=Ne.type;if(Le.isSelectOption)return!1;if(Le.isSelectOptGroup){var Nt=Object(J.a)(Ne.props.children).every(function(It){return!r.isValidElement(It)||!Ne.type||It.type.isSelectOption?!0:(Ie=It.type,!1)});return!Nt}return Ie=Le,!0}),Ie&&Object(z.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ie.displayName||Ie.name||Ie,"`.")),Object(z.a)(s===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var te=Ce,P=Object(d.a)({prefixCls:"rc-select",components:{optionList:V},convertChildrenToData:g,flattenOptions:O.d,getLabeledValue:O.e,filterOptions:O.b,isValueDisabled:O.g,findValueOption:O.c,warningProps:te,fillOptionsWithMissingValue:O.a}),L=function(A){Object(je.a)(M,A);var h=Object(U.a)(M);function M(){var G;return Object(w.a)(this,M),G=h.apply(this,arguments),G.selectRef=r.createRef(),G.focus=function(){G.selectRef.current.focus()},G.blur=function(){G.selectRef.current.blur()},G}return Object(j.a)(M,[{key:"render",value:function(){return r.createElement(P,Object.assign({ref:this.selectRef},this.props))}}]),M}(r.Component);L.Option=fe,L.OptGroup=he;var y=L,p=ve.c=y},NdNG:function(Xe,ve,a){Xe.exports={flex_box_center:"flex_box_center___14pl3",flex_space_between:"flex_space_between___3BrPp",flex_box_vertical_center:"flex_box_vertical_center___3uNta",flex_box_center_end:"flex_box_center_end___2OAdL",flex_box_column:"flex_box_column___1Nwh3",customModal:"customModal___20MJx",content:"content___3jy8C",tabWarp:"tabWarp___cpvG0"}},NvD2:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f});var w=a("Kwbf");function j(ce,se){var K=new Set;return ce.forEach(function(k){se.has(k)||K.add(k)}),K}function je(ce){var se=ce||{},K=se.disabled,k=se.disableCheckbox,X=se.checkable;return!!(K||k)||X===!1}function U(ce,se,K,k){for(var X=new Set(ce),le=new Set,pe=0;pe<=K;pe+=1){var Z=se.get(pe)||new Set;Z.forEach(function(V){var ae=V.key,fe=V.node,Y=V.children,he=Y===void 0?[]:Y;X.has(ae)&&!k(fe)&&he.filter(function(T){return!k(T.node)}).forEach(function(T){X.add(T.key)})})}for(var _=new Set,x=K;x>=0;x-=1){var ue=se.get(x)||new Set;ue.forEach(function(V){var ae=V.parent,fe=V.node;if(k(fe)||!V.parent||_.has(V.parent.key))return;if(k(V.parent.node)){_.add(ae.key);return}var Y=!0,he=!1;(ae.children||[]).filter(function(T){return!k(T.node)}).forEach(function(T){var J=T.key,$=X.has(J);Y&&!$&&(Y=!1),!he&&($||le.has(J))&&(he=!0)}),Y&&X.add(ae.key),he&&le.add(ae.key),_.add(ae.key)})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(j(le,X))}}function r(ce,se,K,k,X){for(var le=new Set(ce),pe=new Set(se),Z=0;Z<=k;Z+=1){var _=K.get(Z)||new Set;_.forEach(function(ae){var fe=ae.key,Y=ae.node,he=ae.children,T=he===void 0?[]:he;!le.has(fe)&&!pe.has(fe)&&!X(Y)&&T.filter(function(J){return!X(J.node)}).forEach(function(J){le.delete(J.key)})})}pe=new Set;for(var x=new Set,ue=k;ue>=0;ue-=1){var V=K.get(ue)||new Set;V.forEach(function(ae){var fe=ae.parent,Y=ae.node;if(X(Y)||!ae.parent||x.has(ae.parent.key))return;if(X(ae.parent.node)){x.add(fe.key);return}var he=!0,T=!1;(fe.children||[]).filter(function(J){return!X(J.node)}).forEach(function(J){var $=J.key,g=le.has($);he&&!g&&(he=!1),!T&&(g||pe.has($))&&(T=!0)}),he||le.delete(fe.key),T&&pe.add(fe.key),x.add(fe.key)})}return{checkedKeys:Array.from(le),halfCheckedKeys:Array.from(j(pe,le))}}function f(ce,se,K,k){var X=[],le;k?le=k:le=je;var pe=new Set(ce.filter(function(ue){var V=!!K[ue];return V||X.push(ue),V})),Z=new Map,_=0;Object.keys(K).forEach(function(ue){var V=K[ue],ae=V.level,fe=Z.get(ae);fe||(fe=new Set,Z.set(ae,fe)),fe.add(V),_=Math.max(_,ae)}),Object(w.a)(!X.length,"Tree missing follow keys: ".concat(X.slice(0,100).map(function(ue){return"'".concat(ue,"'")}).join(", ")));var x;return se===!0?x=U(pe,Z,_,le):x=r(pe,se.halfCheckedKeys,Z,_,le),x}},OZM5:function(Xe,ve,a){"use strict";a.d(ve,"b",function(){return k}),a.d(ve,"a",function(){return X}),a.d(ve,"k",function(){return le}),a.d(ve,"h",function(){return pe}),a.d(ve,"i",function(){return Z}),a.d(ve,"g",function(){return _}),a.d(ve,"c",function(){return x}),a.d(ve,"d",function(){return ue}),a.d(ve,"j",function(){return fe}),a.d(ve,"e",function(){return Y}),a.d(ve,"f",function(){return he});var w=a("KQm4"),j=a("U8pU"),je=a("Ff2n"),U=a("q1tI"),r=a.n(U),f=a("Kwbf"),ce=a("WaYH"),se=.25,K=2;function k(T,J){var $=T.slice(),g=$.indexOf(J);return g>=0&&$.splice(g,1),$}function X(T,J){var $=T.slice();return $.indexOf(J)===-1&&$.push(J),$}function le(T){return T.split("-")}function pe(T,J){return"".concat(T,"-").concat(J)}function Z(T){return T&&T.type&&T.type.isTreeNode}function _(T,J){var $=[T],g=J[T];function O(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];d.forEach(function(I){var z=I.key,Q=I.children;$.push(z),O(Q)})}return O(g.children),$}function x(T,J){var $=T.clientY,g=J.selectHandle.getBoundingClientRect(),O=g.top,d=g.bottom,I=g.height,z=Math.max(I*se,K);return $<=O+z?-1:$>=d-z?1:0}function ue(T,J){if(!T)return;var $=J.multiple;return $?T.slice():T.length?[T[0]]:T}var V=function(J){return J};function ae(T,J){if(!T)return[];var $=J||{},g=$.processProps,O=g===void 0?V:g,d=Array.isArray(T)?T:[T];return d.map(function(I){var z=I.children,Q=Object(je.a)(I,["children"]),Ce=ae(z,J);return r.a.createElement(ce.a,Object.assign({},O(Q)),Ce)})}function fe(T){if(!T)return null;var J;if(Array.isArray(T))J={checkedKeys:T,halfCheckedKeys:void 0};else if(Object(j.a)(T)==="object")J={checkedKeys:T.checked||void 0,halfCheckedKeys:T.halfChecked||void 0};else return Object(f.a)(!1,"`checkedKeys` is not an array or an object"),null;return J}function Y(T,J){var $=new Set;function g(O){if($.has(O))return;var d=J[O];if(!d)return;$.add(O);var I=d.parent,z=d.node;if(z.disabled)return;I&&g(I.key)}return(T||[]).forEach(function(O){g(O)}),Object(w.a)($)}function he(T){var J={};return Object.keys(T).forEach(function($){($.startsWith("data-")||$.startsWith("aria-"))&&(J[$]=T[$])}),J}},PsNh:function(Xe,ve,a){Xe.exports={selectWrapContainer:"selectWrapContainer___M4-WR"}},"SA+Z":function(Xe,ve,a){var w=a("wTVA"),j=a("EbDI"),je=a("ZhPi"),U=a("wkBT");function r(f){return w(f)||j(f)||je(f)||U()}Xe.exports=r,Xe.exports.__esModule=!0,Xe.exports.default=Xe.exports},WaYH:function(Xe,ve,a){"use strict";var w=a("rePB"),j=a("Ff2n"),je=a("VTBJ"),U=a("1OyB"),r=a("vuIU"),f=a("JX7q"),ce=a("Ji7U"),se=a("LK+K"),K=a("q1tI"),k=a("TSYQ"),X=a.n(k),le=a("sboe"),pe=a("OZM5"),Z=function(J){var $=J.prefixCls,g=J.level,O=J.isStart,d=J.isEnd;if(!g)return null;for(var I="".concat($,"-indent-unit"),z=[],Q=0;Q1&&arguments[1]!==void 0?arguments[1]:!1,ie=B.getAttribute("id")||B.getAttribute("data-reactid")||B.getAttribute("name");if(ne&&te[ie])return te[ie];var ee=window.getComputedStyle(B),F=ee.getPropertyValue("box-sizing")||ee.getPropertyValue("-moz-box-sizing")||ee.getPropertyValue("-webkit-box-sizing"),q=parseFloat(ee.getPropertyValue("padding-bottom"))+parseFloat(ee.getPropertyValue("padding-top")),n=parseFloat(ee.getPropertyValue("border-bottom-width"))+parseFloat(ee.getPropertyValue("border-top-width")),m=Ce.map(function(S){return"".concat(S,":").concat(ee.getPropertyValue(S))}).join(";"),s={sizingStyle:m,paddingSize:q,borderSize:n,boxSizing:F};return ne&&ie&&(te[ie]=s),s}function y(B){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),B.getAttribute("wrap")?P.setAttribute("wrap",B.getAttribute("wrap")):P.removeAttribute("wrap");var F=L(B,ne),q=F.paddingSize,n=F.borderSize,m=F.boxSizing,s=F.sizingStyle;P.setAttribute("style","".concat(s,";").concat(Q)),P.value=B.value||B.placeholder||"";var S=Number.MIN_SAFE_INTEGER,H=Number.MAX_SAFE_INTEGER,re=P.scrollHeight,Ee;if(m==="border-box"?re+=n:m==="content-box"&&(re-=q),ie!==null||ee!==null){P.value=" ";var Pe=P.scrollHeight-q;ie!==null&&(S=Pe*ie,m==="border-box"&&(S=S+q+n),re=Math.max(S,re)),ee!==null&&(H=Pe*ee,m==="border-box"&&(H=H+q+n),Ee=re>H?"":"hidden",re=Math.min(H,re))}return{height:re,minHeight:S,maxHeight:H,overflowY:Ee,resize:"none"}}var p=a("Gytx"),A=a.n(p),h;(function(B){B[B.NONE=0]="NONE",B[B.RESIZING=1]="RESIZING",B[B.RESIZED=2]="RESIZED"})(h||(h={}));var M=function(B){Object(U.a)(ie,B);var ne=Object(r.a)(ie);function ie(ee){var F;return Object(j.a)(this,ie),F=ne.call(this,ee),F.nextFrameActionId=void 0,F.resizeFrameId=void 0,F.textArea=void 0,F.saveTextArea=function(q){F.textArea=q},F.handleResize=function(q){var n=F.state.resizeStatus,m=F.props,s=m.autoSize,S=m.onResize;if(n!==h.NONE)return;typeof S=="function"&&S(q),s&&F.resizeOnNextFrame()},F.resizeOnNextFrame=function(){cancelAnimationFrame(F.nextFrameActionId),F.nextFrameActionId=requestAnimationFrame(F.resizeTextarea)},F.resizeTextarea=function(){var q=F.props.autoSize;if(!q||!F.textArea)return;var n=q.minRows,m=q.maxRows,s=y(F.textArea,!1,n,m);F.setState({textareaStyles:s,resizeStatus:h.RESIZING},function(){cancelAnimationFrame(F.resizeFrameId),F.resizeFrameId=requestAnimationFrame(function(){F.setState({resizeStatus:h.RESIZED},function(){F.resizeFrameId=requestAnimationFrame(function(){F.setState({resizeStatus:h.NONE}),F.fixFirefoxAutoScroll()})})})})},F.renderTextArea=function(){var q=F.props,n=q.prefixCls,m=n===void 0?"rc-textarea":n,s=q.autoSize,S=q.onResize,H=q.className,re=q.disabled,Ee=F.state,Pe=Ee.textareaStyles,ke=Ee.resizeStatus,Ie=Object(d.a)(F.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ne=z()(m,H,Object(se.a)({},"".concat(m,"-disabled"),re));"value"in Ie&&(Ie.value=Ie.value||"");var Le=Object(ce.a)(Object(ce.a)(Object(ce.a)({},F.props.style),Pe),ke===h.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return f.createElement(O,{onResize:F.handleResize,disabled:!(s||S)},f.createElement("textarea",Object(w.a)({},Ie,{className:Ne,style:Le,ref:F.saveTextArea})))},F.state={textareaStyles:{},resizeStatus:h.NONE},F}return Object(je.a)(ie,[{key:"componentDidUpdate",value:function(F){(F.value!==this.props.value||!A()(F.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 F=this.textArea.selectionStart,q=this.textArea.selectionEnd;this.textArea.setSelectionRange(F,q)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ie}(f.Component),G=M,oe=function(B){Object(U.a)(ie,B);var ne=Object(r.a)(ie);function ie(ee){var F;Object(j.a)(this,ie),F=ne.call(this,ee),F.resizableTextArea=void 0,F.focus=function(){F.resizableTextArea.textArea.focus()},F.saveTextArea=function(n){F.resizableTextArea=n},F.handleChange=function(n){var m=F.props.onChange;F.setValue(n.target.value,function(){F.resizableTextArea.resizeTextarea()}),m&&m(n)},F.handleKeyDown=function(n){var m=F.props,s=m.onPressEnter,S=m.onKeyDown;n.keyCode===13&&s&&s(n),S&&S(n)};var q=typeof ee.value=="undefined"||ee.value===null?ee.defaultValue:ee.value;return F.state={value:q},F}return Object(je.a)(ie,[{key:"setValue",value:function(F,q){"value"in this.props||this.setState({value:F},q)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(G,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(F){return"value"in F?{value:F.value}:null}}]),ie}(f.Component),D=ve.default=oe},ZW5e:function(Xe,ve,a){Xe.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(Xe,ve,a){"use strict";function w(X){return typeof X=="object"&&X!=null&&X.nodeType===1}function j(X,le){return(!le||X!=="hidden")&&X!=="visible"&&X!=="clip"}function je(X,le){if(X.clientHeightle||x>X&&ue=le&&V>=pe?x-X-Z:ue>le&&Vpe?ue-le+_:0}var r=function(X,le){var pe=window,Z=le.scrollMode,_=le.block,x=le.inline,ue=le.boundary,V=le.skipOverflowHiddenElements,ae=typeof ue=="function"?ue:function(Pe){return Pe!==ue};if(!w(X))throw new TypeError("Invalid target");for(var fe=document.scrollingElement||document.documentElement,Y=[],he=X;w(he)&&ae(he);){if((he=he.parentElement)===fe){Y.push(he);break}he!=null&&he===document.body&&je(he)&&!je(document.documentElement)||he!=null&&je(he,V)&&Y.push(he)}for(var R=pe.visualViewport?pe.visualViewport.width:innerWidth,J=pe.visualViewport?pe.visualViewport.height:innerHeight,$=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,O=X.getBoundingClientRect(),d=O.height,I=O.width,z=O.top,Q=O.right,Ce=O.bottom,te=O.left,P=_==="start"||_==="nearest"?z:_==="end"?Ce:z+d/2,L=x==="center"?te+I/2:x==="end"?Q:te,y=[],p=0;p=0&&te>=0&&Ce<=J&&Q<=R&&z>=oe&&Ce<=B&&te>=ne&&Q<=D)return y;var ie=getComputedStyle(A),ee=parseInt(ie.borderLeftWidth,10),F=parseInt(ie.borderTopWidth,10),q=parseInt(ie.borderRightWidth,10),n=parseInt(ie.borderBottomWidth,10),m=0,s=0,S="offsetWidth"in A?A.offsetWidth-A.clientWidth-ee-q:0,H="offsetHeight"in A?A.offsetHeight-A.clientHeight-F-n:0;if(fe===A)m=_==="start"?P:_==="end"?P-J:_==="nearest"?U(g,g+J,J,F,n,g+P,g+P+d,d):P-J/2,s=x==="start"?L:x==="center"?L-R/2:x==="end"?L-R:U($,$+R,R,ee,q,$+L,$+L+I,I),m=Math.max(0,m+g),s=Math.max(0,s+$);else{m=_==="start"?P-oe-F:_==="end"?P-B+n+H:_==="nearest"?U(oe,B,M,F,n+H,P,P+d,d):P-(oe+M/2)+H/2,s=x==="start"?L-ne-ee:x==="center"?L-(ne+G/2)+S/2:x==="end"?L-D+q+S:U(ne,D,G,ee,q+S,L,L+I,I);var re=A.scrollLeft,Ee=A.scrollTop;P+=Ee-(m=Math.max(0,Math.min(Ee+m,A.scrollHeight-M+H))),L+=re-(s=Math.max(0,Math.min(re+s,A.scrollWidth-G+S)))}y.push({el:A,top:m,left:s})}return y};function f(X){return X===Object(X)&&Object.keys(X).length!==0}function ce(X,le){le===void 0&&(le="auto");var pe="scrollBehavior"in document.body.style;X.forEach(function(Z){var _=Z.el,x=Z.top,ue=Z.left;_.scroll&&pe?_.scroll({top:x,left:ue,behavior:le}):(_.scrollTop=x,_.scrollLeft=ue)})}function se(X){return X===!1?{block:"end",inline:"nearest"}:f(X)?X:{block:"start",inline:"nearest"}}function K(X,le){var pe=!X.ownerDocument.documentElement.contains(X);if(f(le)&&typeof le.behavior=="function")return le.behavior(pe?[]:r(X,le));if(pe)return;var Z=se(le);return ce(r(X,Z),Z.behavior)}var k=ve.a=K},Zss7:function(Xe,ve,a){var w;(function(j){var je=/^\s+/,U=/\s+$/,r=0,f=j.round,ce=j.min,se=j.max,K=j.random;function k(n,m){if(n=n||"",m=m||{},n instanceof k)return n;if(!(this instanceof k))return new k(n,m);var s=X(n);this._originalInput=n,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=f(100*this._a)/100,this._format=m.format||s.format,this._gradientType=m.gradientType,this._r<1&&(this._r=f(this._r)),this._g<1&&(this._g=f(this._g)),this._b<1&&(this._b=f(this._b)),this._ok=s.ok,this._tc_id=r++}k.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 n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),m,s,S,H,re,Ee;return m=n.r/255,s=n.g/255,S=n.b/255,m<=.03928?H=m/12.92:H=j.pow((m+.055)/1.055,2.4),s<=.03928?re=s/12.92:re=j.pow((s+.055)/1.055,2.4),S<=.03928?Ee=S/12.92:Ee=j.pow((S+.055)/1.055,2.4),.2126*H+.7152*re+.0722*Ee},setAlpha:function(n){return this._a=y(n),this._roundA=f(100*this._a)/100,this},toHsv:function(){var n=_(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=_(this._r,this._g,this._b),m=f(n.h*360),s=f(n.s*100),S=f(n.v*100);return this._a==1?"hsv("+m+", "+s+"%, "+S+"%)":"hsva("+m+", "+s+"%, "+S+"%, "+this._roundA+")"},toHsl:function(){var n=pe(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=pe(this._r,this._g,this._b),m=f(n.h*360),s=f(n.s*100),S=f(n.l*100);return this._a==1?"hsl("+m+", "+s+"%, "+S+"%)":"hsla("+m+", "+s+"%, "+S+"%, "+this._roundA+")"},toHex:function(n){return ue(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return V(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:f(this._r),g:f(this._g),b:f(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+f(this._r)+", "+f(this._g)+", "+f(this._b)+")":"rgba("+f(this._r)+", "+f(this._g)+", "+f(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:f(p(this._r,255)*100)+"%",g:f(p(this._g,255)*100)+"%",b:f(p(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+f(p(this._r,255)*100)+"%, "+f(p(this._g,255)*100)+"%, "+f(p(this._b,255)*100)+"%)":"rgba("+f(p(this._r,255)*100)+"%, "+f(p(this._g,255)*100)+"%, "+f(p(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[ue(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var m="#"+ae(this._r,this._g,this._b,this._a),s=m,S=this._gradientType?"GradientType = 1, ":"";if(n){var H=k(n);s="#"+ae(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+S+"startColorstr="+m+",endColorstr="+s+")"},toString:function(n){var m=!!n;n=n||this._format;var s=!1,S=this._a<1&&this._a>=0,H=!m&&S&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return H?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(n,m){var s=n.apply(null,[this].concat([].slice.call(m)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(J,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(fe,arguments)},saturate:function(){return this._applyModification(Y,arguments)},greyscale:function(){return this._applyModification(he,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(n,m){return n.apply(null,[this].concat([].slice.call(m)))},analogous:function(){return this._applyCombination(Q,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(Ce,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(d,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},k.fromRatio=function(n,m){if(typeof n=="object"){var s={};for(var S in n)n.hasOwnProperty(S)&&(S==="a"?s[S]=n[S]:s[S]=D(n[S]));n=s}return k(n,m)};function X(n){var m={r:0,g:0,b:0},s=1,S=null,H=null,re=null,Ee=!1,Pe=!1;return typeof n=="string"&&(n=F(n)),typeof n=="object"&&(ee(n.r)&&ee(n.g)&&ee(n.b)?(m=le(n.r,n.g,n.b),Ee=!0,Pe=String(n.r).substr(-1)==="%"?"prgb":"rgb"):ee(n.h)&&ee(n.s)&&ee(n.v)?(S=D(n.s),H=D(n.v),m=x(n.h,S,H),Ee=!0,Pe="hsv"):ee(n.h)&&ee(n.s)&&ee(n.l)&&(S=D(n.s),re=D(n.l),m=Z(n.h,S,re),Ee=!0,Pe="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=y(s),{ok:Ee,format:n.format||Pe,r:ce(255,se(m.r,0)),g:ce(255,se(m.g,0)),b:ce(255,se(m.b,0)),a:s}}function le(n,m,s){return{r:p(n,255)*255,g:p(m,255)*255,b:p(s,255)*255}}function pe(n,m,s){n=p(n,255),m=p(m,255),s=p(s,255);var S=se(n,m,s),H=ce(n,m,s),re,Ee,Pe=(S+H)/2;if(S==H)re=Ee=0;else{var ke=S-H;Ee=Pe>.5?ke/(2-S-H):ke/(S+H);switch(S){case n:re=(m-s)/ke+(m1&&(Le-=1),Le<1/6?Ie+(Ne-Ie)*6*Le:Le<1/2?Ne:Le<2/3?Ie+(Ne-Ie)*(2/3-Le)*6:Ie}if(m===0)S=H=re=s;else{var Pe=s<.5?s*(1+m):s+m-s*m,ke=2*s-Pe;S=Ee(ke,Pe,n+1/3),H=Ee(ke,Pe,n),re=Ee(ke,Pe,n-1/3)}return{r:S*255,g:H*255,b:re*255}}function _(n,m,s){n=p(n,255),m=p(m,255),s=p(s,255);var S=se(n,m,s),H=ce(n,m,s),re,Ee,Pe=S,ke=S-H;if(Ee=S===0?0:ke/S,S==H)re=0;else{switch(S){case n:re=(m-s)/ke+(m>1)+720)%360;--m;)S.h=(S.h+H)%360,re.push(k(S));return re}function Ce(n,m){m=m||6;for(var s=k(n).toHsv(),S=s.h,H=s.s,re=s.v,Ee=[],Pe=1/m;m--;)Ee.push(k({h:S,s:H,v:re})),re=(re+Pe)%1;return Ee}k.mix=function(n,m,s){s=s===0?0:s||50;var S=k(n).toRgb(),H=k(m).toRgb(),re=s/100,Ee={r:(H.r-S.r)*re+S.r,g:(H.g-S.g)*re+S.g,b:(H.b-S.b)*re+S.b,a:(H.a-S.a)*re+S.a};return k(Ee)},k.readability=function(n,m){var s=k(n),S=k(m);return(j.max(s.getLuminance(),S.getLuminance())+.05)/(j.min(s.getLuminance(),S.getLuminance())+.05)},k.isReadable=function(n,m,s){var S=k.readability(n,m),H,re;re=!1,H=q(s);switch(H.level+H.size){case"AAsmall":case"AAAlarge":re=S>=4.5;break;case"AAlarge":re=S>=3;break;case"AAAsmall":re=S>=7;break}return re},k.mostReadable=function(n,m,s){var S=null,H=0,re,Ee,Pe,ke;s=s||{},Ee=s.includeFallbackColors,Pe=s.level,ke=s.size;for(var Ie=0;IeH&&(H=re,S=k(m[Ie]));return k.isReadable(n,S,{level:Pe,size:ke})||!Ee?S:(s.includeFallbackColors=!1,k.mostReadable(n,["#fff","#000"],s))};var te=k.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"},P=k.hexNames=L(te);function L(n){var m={};for(var s in n)n.hasOwnProperty(s)&&(m[n[s]]=s);return m}function y(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function p(n,m){M(n)&&(n="100%");var s=G(n);return n=ce(m,se(0,parseFloat(n))),s&&(n=parseInt(n*m,10)/100),j.abs(n-m)<1e-6?1:n%m/parseFloat(m)}function A(n){return ce(1,se(0,n))}function h(n){return parseInt(n,16)}function M(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function G(n){return typeof n=="string"&&n.indexOf("%")!=-1}function oe(n){return n.length==1?"0"+n:""+n}function D(n){return n<=1&&(n=n*100+"%"),n}function B(n){return j.round(parseFloat(n)*255).toString(16)}function ne(n){return h(n)/255}var ie=function(){var n="[-\\+]?\\d+%?",m="[-\\+]?\\d*\\.\\d+%?",s="(?:"+m+")|(?:"+n+")",S="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?",H="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?";return{CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+H),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(n){return!!ie.CSS_UNIT.exec(n)}function F(n){n=n.replace(je,"").replace(U,"").toLowerCase();var m=!1;if(te[n])n=te[n],m=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var s;return(s=ie.rgb.exec(n))?{r:s[1],g:s[2],b:s[3]}:(s=ie.rgba.exec(n))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=ie.hsl.exec(n))?{h:s[1],s:s[2],l:s[3]}:(s=ie.hsla.exec(n))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=ie.hsv.exec(n))?{h:s[1],s:s[2],v:s[3]}:(s=ie.hsva.exec(n))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=ie.hex8.exec(n))?{r:h(s[1]),g:h(s[2]),b:h(s[3]),a:ne(s[4]),format:m?"name":"hex8"}:(s=ie.hex6.exec(n))?{r:h(s[1]),g:h(s[2]),b:h(s[3]),format:m?"name":"hex"}:(s=ie.hex4.exec(n))?{r:h(s[1]+""+s[1]),g:h(s[2]+""+s[2]),b:h(s[3]+""+s[3]),a:ne(s[4]+""+s[4]),format:m?"name":"hex8"}:(s=ie.hex3.exec(n))?{r:h(s[1]+""+s[1]),g:h(s[2]+""+s[2]),b:h(s[3]+""+s[3]),format:m?"name":"hex"}:!1}function q(n){var m,s;return n=n||{level:"AA",size:"small"},m=(n.level||"AA").toUpperCase(),s=(n.size||"small").toLowerCase(),m!=="AA"&&m!=="AAA"&&(m="AA"),s!=="small"&&s!=="large"&&(s="small"),{level:m,size:s}}Xe.exports?Xe.exports=k:!(w=function(){return k}.call(ve,a,ve,Xe),w!==void 0&&(Xe.exports=w))})(Math)},bT9E:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return j});var w=a("VTBJ");function j(je,U){var r=Object(w.a)({},je);return Array.isArray(U)&&U.forEach(function(f){delete r[f]}),r}},biw7:function(Xe,ve,a){"use strict";var w=a("q1tI"),j=a.n(w),je=w.createContext(null);ve.a=je},fj85:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f}),a.d(ve,"b",function(){return k});var w=a("q1tI"),j=a.n(w),je=a("ZW5e"),U=a.n(je),r=function(le){var pe=le.title,Z=le.style,_=Z===void 0?{}:Z;return j.a.createElement("div",{className:U.a.panelTitleContainer,style:_},j.a.createElement("div",null,pe))},f=r,ce=a("PsNh"),se=a.n(ce),K=function(le){var pe=le.title,Z=le.children;return j.a.createElement("div",{className:se.a.selectWrapContainer},j.a.createElement("span",null,pe),Z)},k=K},fyJ8:function(Xe,ve,a){"use strict";var w=a("rePB"),j=a("VTBJ"),je=a("Ff2n"),U=a("U8pU"),r=a("q1tI"),f=a.n(r),ce=a("TSYQ"),se=a.n(ce),K=a("c+Xe"),k=a("sR1s");function X(x){return x&&Object(U.a)(x)==="object"&&!Array.isArray(x)&&!r.isValidElement(x)}function le(x){return typeof x=="string"?!0:Object(K.c)(x)}function pe(x,ue){var V,ae=x.prefixCls,fe=x.className,Y=x.record,he=x.index,R=x.dataIndex,J=x.render,$=x.children,g=x.component,O=g===void 0?"td":g,d=x.colSpan,I=x.rowSpan,z=x.fixLeft,Q=x.fixRight,Ce=x.firstFixLeft,te=x.lastFixLeft,P=x.firstFixRight,L=x.lastFixRight,y=x.appendNode,p=x.additionalProps,A=p===void 0?{}:p,h=x.ellipsis,M=x.align,G=x.rowType,oe=x.isSticky,D="".concat(ae,"-cell"),B,ne;if($)ne=$;else{var ie=Object(k.b)(Y,R);if(ne=ie,J){var ee=J(ie,Y,he);X(ee)?(ne=ee.children,B=ee.props):ne=ee}}Object(U.a)(ne)==="object"&&!Array.isArray(ne)&&!r.isValidElement(ne)&&(ne=null),h&&(te||P)&&(ne=r.createElement("span",{className:"".concat(D,"-content")},ne));var F=B||{},q=F.colSpan,n=F.rowSpan,m=F.style,s=F.className,S=Object(je.a)(F,["colSpan","rowSpan","style","className"]),H=q!==void 0?q:d,re=n!==void 0?n:I;if(H===0||re===0)return null;var Ee={},Pe=typeof z=="number",ke=typeof Q=="number";Pe&&(Ee.position="sticky",Ee.left=z),ke&&(Ee.position="sticky",Ee.right=Q);var Ie={};M&&(Ie.textAlign=M);var Ne,Le=h===!0?{showTitle:!0}:h;Le&&(Le.showTitle||G==="header")&&(typeof ne=="string"||typeof ne=="number"?Ne=ne.toString():r.isValidElement(ne)&&typeof ne.props.children=="string"&&(Ne=ne.props.children));var Nt=Object(j.a)(Object(j.a)(Object(j.a)({title:Ne},S),A),{},{colSpan:H&&H!==1?H:null,rowSpan:re&&re!==1?re:null,className:se()(D,fe,(V={},Object(w.a)(V,"".concat(D,"-fix-left"),Pe),Object(w.a)(V,"".concat(D,"-fix-left-first"),Ce),Object(w.a)(V,"".concat(D,"-fix-left-last"),te),Object(w.a)(V,"".concat(D,"-fix-right"),ke),Object(w.a)(V,"".concat(D,"-fix-right-first"),P),Object(w.a)(V,"".concat(D,"-fix-right-last"),L),Object(w.a)(V,"".concat(D,"-ellipsis"),h),Object(w.a)(V,"".concat(D,"-with-append"),y),Object(w.a)(V,"".concat(D,"-fix-sticky"),(Pe||ke)&&oe),V),A.className,s),style:Object(j.a)(Object(j.a)(Object(j.a)(Object(j.a)({},A.style),Ie),Ee),m),ref:le(O)?ue:null});return r.createElement(O,Object.assign({},Nt),y,ne)}var Z=r.forwardRef(pe);Z.displayName="Cell";var _=r.memo(Z,function(x,ue){return ue.shouldCellUpdate?!ue.shouldCellUpdate(ue.record,x.record):!1});ve.a=_},h78n:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return Ce});var w=a("q1tI"),j=a.n(w),je=a("TSYQ"),U=a.n(je),r={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},f=function(L){var y=L.map(function(){return Object(w.useRef)()}),p=Object(w.useRef)();return Object(w.useEffect)(function(){var A=Date.now(),h=!1;Object.keys(y).forEach(function(M){var G=y[M].current;if(!G)return;h=!0;var oe=G.style;oe.transitionDuration=".3s, .3s, .3s, .06s",p.current&&A-p.current<100&&(oe.transitionDuration="0s, 0s")}),h&&(p.current=Date.now())}),[y]};function ce(){return ce=Object.assign||function(P){for(var L=1;L1&&arguments[1]!==void 0?arguments[1]:!1,ie=B.getAttribute("id")||B.getAttribute("data-reactid")||B.getAttribute("name");if(ne&&te[ie])return te[ie];var ee=window.getComputedStyle(B),F=ee.getPropertyValue("box-sizing")||ee.getPropertyValue("-moz-box-sizing")||ee.getPropertyValue("-webkit-box-sizing"),q=parseFloat(ee.getPropertyValue("padding-bottom"))+parseFloat(ee.getPropertyValue("padding-top")),n=parseFloat(ee.getPropertyValue("border-bottom-width"))+parseFloat(ee.getPropertyValue("border-top-width")),m=Ce.map(function(S){return"".concat(S,":").concat(ee.getPropertyValue(S))}).join(";"),s={sizingStyle:m,paddingSize:q,borderSize:n,boxSizing:F};return ne&&ie&&(te[ie]=s),s}function y(B){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;P||(P=document.createElement("textarea"),P.setAttribute("tab-index","-1"),P.setAttribute("aria-hidden","true"),document.body.appendChild(P)),B.getAttribute("wrap")?P.setAttribute("wrap",B.getAttribute("wrap")):P.removeAttribute("wrap");var F=L(B,ne),q=F.paddingSize,n=F.borderSize,m=F.boxSizing,s=F.sizingStyle;P.setAttribute("style","".concat(s,";").concat(Q)),P.value=B.value||B.placeholder||"";var S=Number.MIN_SAFE_INTEGER,H=Number.MAX_SAFE_INTEGER,re=P.scrollHeight,Ee;if(m==="border-box"?re+=n:m==="content-box"&&(re-=q),ie!==null||ee!==null){P.value=" ";var Pe=P.scrollHeight-q;ie!==null&&(S=Pe*ie,m==="border-box"&&(S=S+q+n),re=Math.max(S,re)),ee!==null&&(H=Pe*ee,m==="border-box"&&(H=H+q+n),Ee=re>H?"":"hidden",re=Math.min(H,re))}return{height:re,minHeight:S,maxHeight:H,overflowY:Ee,resize:"none"}}var p=a("Gytx"),A=a.n(p),h;(function(B){B[B.NONE=0]="NONE",B[B.RESIZING=1]="RESIZING",B[B.RESIZED=2]="RESIZED"})(h||(h={}));var M=function(B){Object(U.a)(ie,B);var ne=Object(r.a)(ie);function ie(ee){var F;return Object(j.a)(this,ie),F=ne.call(this,ee),F.nextFrameActionId=void 0,F.resizeFrameId=void 0,F.textArea=void 0,F.saveTextArea=function(q){F.textArea=q},F.handleResize=function(q){var n=F.state.resizeStatus,m=F.props,s=m.autoSize,S=m.onResize;if(n!==h.NONE)return;typeof S=="function"&&S(q),s&&F.resizeOnNextFrame()},F.resizeOnNextFrame=function(){cancelAnimationFrame(F.nextFrameActionId),F.nextFrameActionId=requestAnimationFrame(F.resizeTextarea)},F.resizeTextarea=function(){var q=F.props.autoSize;if(!q||!F.textArea)return;var n=q.minRows,m=q.maxRows,s=y(F.textArea,!1,n,m);F.setState({textareaStyles:s,resizeStatus:h.RESIZING},function(){cancelAnimationFrame(F.resizeFrameId),F.resizeFrameId=requestAnimationFrame(function(){F.setState({resizeStatus:h.RESIZED},function(){F.resizeFrameId=requestAnimationFrame(function(){F.setState({resizeStatus:h.NONE}),F.fixFirefoxAutoScroll()})})})})},F.renderTextArea=function(){var q=F.props,n=q.prefixCls,m=n===void 0?"rc-textarea":n,s=q.autoSize,S=q.onResize,H=q.className,re=q.disabled,Ee=F.state,Pe=Ee.textareaStyles,ke=Ee.resizeStatus,Ie=Object(d.a)(F.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ne=z()(m,H,Object(se.a)({},"".concat(m,"-disabled"),re));"value"in Ie&&(Ie.value=Ie.value||"");var Le=Object(ce.a)(Object(ce.a)(Object(ce.a)({},F.props.style),Pe),ke===h.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return f.createElement(O,{onResize:F.handleResize,disabled:!(s||S)},f.createElement("textarea",Object(w.a)({},Ie,{className:Ne,style:Le,ref:F.saveTextArea})))},F.state={textareaStyles:{},resizeStatus:h.NONE},F}return Object(je.a)(ie,[{key:"componentDidUpdate",value:function(F){(F.value!==this.props.value||!A()(F.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 F=this.textArea.selectionStart,q=this.textArea.selectionEnd;this.textArea.setSelectionRange(F,q)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ie}(f.Component),G=M,oe=function(B){Object(U.a)(ie,B);var ne=Object(r.a)(ie);function ie(ee){var F;Object(j.a)(this,ie),F=ne.call(this,ee),F.resizableTextArea=void 0,F.focus=function(){F.resizableTextArea.textArea.focus()},F.saveTextArea=function(n){F.resizableTextArea=n},F.handleChange=function(n){var m=F.props.onChange;F.setValue(n.target.value,function(){F.resizableTextArea.resizeTextarea()}),m&&m(n)},F.handleKeyDown=function(n){var m=F.props,s=m.onPressEnter,S=m.onKeyDown;n.keyCode===13&&s&&s(n),S&&S(n)};var q=typeof ee.value=="undefined"||ee.value===null?ee.defaultValue:ee.value;return F.state={value:q},F}return Object(je.a)(ie,[{key:"setValue",value:function(F,q){"value"in this.props||this.setState({value:F},q)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(G,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(F){return"value"in F?{value:F.value}:null}}]),ie}(f.Component),D=ve.default=oe},ZW5e:function(Xe,ve,a){Xe.exports={panelTitleContainer:"panelTitleContainer___tHoLi"}},ZpRC:function(Xe,ve,a){"use strict";function w(X){return typeof X=="object"&&X!=null&&X.nodeType===1}function j(X,le){return(!le||X!=="hidden")&&X!=="visible"&&X!=="clip"}function je(X,le){if(X.clientHeightle||x>X&&ue=le&&V>=pe?x-X-Z:ue>le&&Vpe?ue-le+_:0}var r=function(X,le){var pe=window,Z=le.scrollMode,_=le.block,x=le.inline,ue=le.boundary,V=le.skipOverflowHiddenElements,ae=typeof ue=="function"?ue:function(Pe){return Pe!==ue};if(!w(X))throw new TypeError("Invalid target");for(var fe=document.scrollingElement||document.documentElement,Y=[],he=X;w(he)&&ae(he);){if((he=he.parentElement)===fe){Y.push(he);break}he!=null&&he===document.body&&je(he)&&!je(document.documentElement)||he!=null&&je(he,V)&&Y.push(he)}for(var T=pe.visualViewport?pe.visualViewport.width:innerWidth,J=pe.visualViewport?pe.visualViewport.height:innerHeight,$=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,O=X.getBoundingClientRect(),d=O.height,I=O.width,z=O.top,Q=O.right,Ce=O.bottom,te=O.left,P=_==="start"||_==="nearest"?z:_==="end"?Ce:z+d/2,L=x==="center"?te+I/2:x==="end"?Q:te,y=[],p=0;p=0&&te>=0&&Ce<=J&&Q<=T&&z>=oe&&Ce<=B&&te>=ne&&Q<=D)return y;var ie=getComputedStyle(A),ee=parseInt(ie.borderLeftWidth,10),F=parseInt(ie.borderTopWidth,10),q=parseInt(ie.borderRightWidth,10),n=parseInt(ie.borderBottomWidth,10),m=0,s=0,S="offsetWidth"in A?A.offsetWidth-A.clientWidth-ee-q:0,H="offsetHeight"in A?A.offsetHeight-A.clientHeight-F-n:0;if(fe===A)m=_==="start"?P:_==="end"?P-J:_==="nearest"?U(g,g+J,J,F,n,g+P,g+P+d,d):P-J/2,s=x==="start"?L:x==="center"?L-T/2:x==="end"?L-T:U($,$+T,T,ee,q,$+L,$+L+I,I),m=Math.max(0,m+g),s=Math.max(0,s+$);else{m=_==="start"?P-oe-F:_==="end"?P-B+n+H:_==="nearest"?U(oe,B,M,F,n+H,P,P+d,d):P-(oe+M/2)+H/2,s=x==="start"?L-ne-ee:x==="center"?L-(ne+G/2)+S/2:x==="end"?L-D+q+S:U(ne,D,G,ee,q+S,L,L+I,I);var re=A.scrollLeft,Ee=A.scrollTop;P+=Ee-(m=Math.max(0,Math.min(Ee+m,A.scrollHeight-M+H))),L+=re-(s=Math.max(0,Math.min(re+s,A.scrollWidth-G+S)))}y.push({el:A,top:m,left:s})}return y};function f(X){return X===Object(X)&&Object.keys(X).length!==0}function ce(X,le){le===void 0&&(le="auto");var pe="scrollBehavior"in document.body.style;X.forEach(function(Z){var _=Z.el,x=Z.top,ue=Z.left;_.scroll&&pe?_.scroll({top:x,left:ue,behavior:le}):(_.scrollTop=x,_.scrollLeft=ue)})}function se(X){return X===!1?{block:"end",inline:"nearest"}:f(X)?X:{block:"start",inline:"nearest"}}function K(X,le){var pe=!X.ownerDocument.documentElement.contains(X);if(f(le)&&typeof le.behavior=="function")return le.behavior(pe?[]:r(X,le));if(pe)return;var Z=se(le);return ce(r(X,Z),Z.behavior)}var k=ve.a=K},Zss7:function(Xe,ve,a){var w;(function(j){var je=/^\s+/,U=/\s+$/,r=0,f=j.round,ce=j.min,se=j.max,K=j.random;function k(n,m){if(n=n||"",m=m||{},n instanceof k)return n;if(!(this instanceof k))return new k(n,m);var s=X(n);this._originalInput=n,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=f(100*this._a)/100,this._format=m.format||s.format,this._gradientType=m.gradientType,this._r<1&&(this._r=f(this._r)),this._g<1&&(this._g=f(this._g)),this._b<1&&(this._b=f(this._b)),this._ok=s.ok,this._tc_id=r++}k.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 n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),m,s,S,H,re,Ee;return m=n.r/255,s=n.g/255,S=n.b/255,m<=.03928?H=m/12.92:H=j.pow((m+.055)/1.055,2.4),s<=.03928?re=s/12.92:re=j.pow((s+.055)/1.055,2.4),S<=.03928?Ee=S/12.92:Ee=j.pow((S+.055)/1.055,2.4),.2126*H+.7152*re+.0722*Ee},setAlpha:function(n){return this._a=y(n),this._roundA=f(100*this._a)/100,this},toHsv:function(){var n=_(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=_(this._r,this._g,this._b),m=f(n.h*360),s=f(n.s*100),S=f(n.v*100);return this._a==1?"hsv("+m+", "+s+"%, "+S+"%)":"hsva("+m+", "+s+"%, "+S+"%, "+this._roundA+")"},toHsl:function(){var n=pe(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=pe(this._r,this._g,this._b),m=f(n.h*360),s=f(n.s*100),S=f(n.l*100);return this._a==1?"hsl("+m+", "+s+"%, "+S+"%)":"hsla("+m+", "+s+"%, "+S+"%, "+this._roundA+")"},toHex:function(n){return ue(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return V(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:f(this._r),g:f(this._g),b:f(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+f(this._r)+", "+f(this._g)+", "+f(this._b)+")":"rgba("+f(this._r)+", "+f(this._g)+", "+f(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:f(p(this._r,255)*100)+"%",g:f(p(this._g,255)*100)+"%",b:f(p(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+f(p(this._r,255)*100)+"%, "+f(p(this._g,255)*100)+"%, "+f(p(this._b,255)*100)+"%)":"rgba("+f(p(this._r,255)*100)+"%, "+f(p(this._g,255)*100)+"%, "+f(p(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:P[ue(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var m="#"+ae(this._r,this._g,this._b,this._a),s=m,S=this._gradientType?"GradientType = 1, ":"";if(n){var H=k(n);s="#"+ae(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+S+"startColorstr="+m+",endColorstr="+s+")"},toString:function(n){var m=!!n;n=n||this._format;var s=!1,S=this._a<1&&this._a>=0,H=!m&&S&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return H?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return k(this.toString())},_applyModification:function(n,m){var s=n.apply(null,[this].concat([].slice.call(m)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(J,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(fe,arguments)},saturate:function(){return this._applyModification(Y,arguments)},greyscale:function(){return this._applyModification(he,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(n,m){return n.apply(null,[this].concat([].slice.call(m)))},analogous:function(){return this._applyCombination(Q,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(Ce,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(d,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},k.fromRatio=function(n,m){if(typeof n=="object"){var s={};for(var S in n)n.hasOwnProperty(S)&&(S==="a"?s[S]=n[S]:s[S]=D(n[S]));n=s}return k(n,m)};function X(n){var m={r:0,g:0,b:0},s=1,S=null,H=null,re=null,Ee=!1,Pe=!1;return typeof n=="string"&&(n=F(n)),typeof n=="object"&&(ee(n.r)&&ee(n.g)&&ee(n.b)?(m=le(n.r,n.g,n.b),Ee=!0,Pe=String(n.r).substr(-1)==="%"?"prgb":"rgb"):ee(n.h)&&ee(n.s)&&ee(n.v)?(S=D(n.s),H=D(n.v),m=x(n.h,S,H),Ee=!0,Pe="hsv"):ee(n.h)&&ee(n.s)&&ee(n.l)&&(S=D(n.s),re=D(n.l),m=Z(n.h,S,re),Ee=!0,Pe="hsl"),n.hasOwnProperty("a")&&(s=n.a)),s=y(s),{ok:Ee,format:n.format||Pe,r:ce(255,se(m.r,0)),g:ce(255,se(m.g,0)),b:ce(255,se(m.b,0)),a:s}}function le(n,m,s){return{r:p(n,255)*255,g:p(m,255)*255,b:p(s,255)*255}}function pe(n,m,s){n=p(n,255),m=p(m,255),s=p(s,255);var S=se(n,m,s),H=ce(n,m,s),re,Ee,Pe=(S+H)/2;if(S==H)re=Ee=0;else{var ke=S-H;Ee=Pe>.5?ke/(2-S-H):ke/(S+H);switch(S){case n:re=(m-s)/ke+(m1&&(Le-=1),Le<1/6?Ie+(Ne-Ie)*6*Le:Le<1/2?Ne:Le<2/3?Ie+(Ne-Ie)*(2/3-Le)*6:Ie}if(m===0)S=H=re=s;else{var Pe=s<.5?s*(1+m):s+m-s*m,ke=2*s-Pe;S=Ee(ke,Pe,n+1/3),H=Ee(ke,Pe,n),re=Ee(ke,Pe,n-1/3)}return{r:S*255,g:H*255,b:re*255}}function _(n,m,s){n=p(n,255),m=p(m,255),s=p(s,255);var S=se(n,m,s),H=ce(n,m,s),re,Ee,Pe=S,ke=S-H;if(Ee=S===0?0:ke/S,S==H)re=0;else{switch(S){case n:re=(m-s)/ke+(m>1)+720)%360;--m;)S.h=(S.h+H)%360,re.push(k(S));return re}function Ce(n,m){m=m||6;for(var s=k(n).toHsv(),S=s.h,H=s.s,re=s.v,Ee=[],Pe=1/m;m--;)Ee.push(k({h:S,s:H,v:re})),re=(re+Pe)%1;return Ee}k.mix=function(n,m,s){s=s===0?0:s||50;var S=k(n).toRgb(),H=k(m).toRgb(),re=s/100,Ee={r:(H.r-S.r)*re+S.r,g:(H.g-S.g)*re+S.g,b:(H.b-S.b)*re+S.b,a:(H.a-S.a)*re+S.a};return k(Ee)},k.readability=function(n,m){var s=k(n),S=k(m);return(j.max(s.getLuminance(),S.getLuminance())+.05)/(j.min(s.getLuminance(),S.getLuminance())+.05)},k.isReadable=function(n,m,s){var S=k.readability(n,m),H,re;re=!1,H=q(s);switch(H.level+H.size){case"AAsmall":case"AAAlarge":re=S>=4.5;break;case"AAlarge":re=S>=3;break;case"AAAsmall":re=S>=7;break}return re},k.mostReadable=function(n,m,s){var S=null,H=0,re,Ee,Pe,ke;s=s||{},Ee=s.includeFallbackColors,Pe=s.level,ke=s.size;for(var Ie=0;IeH&&(H=re,S=k(m[Ie]));return k.isReadable(n,S,{level:Pe,size:ke})||!Ee?S:(s.includeFallbackColors=!1,k.mostReadable(n,["#fff","#000"],s))};var te=k.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"},P=k.hexNames=L(te);function L(n){var m={};for(var s in n)n.hasOwnProperty(s)&&(m[n[s]]=s);return m}function y(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function p(n,m){M(n)&&(n="100%");var s=G(n);return n=ce(m,se(0,parseFloat(n))),s&&(n=parseInt(n*m,10)/100),j.abs(n-m)<1e-6?1:n%m/parseFloat(m)}function A(n){return ce(1,se(0,n))}function h(n){return parseInt(n,16)}function M(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1}function G(n){return typeof n=="string"&&n.indexOf("%")!=-1}function oe(n){return n.length==1?"0"+n:""+n}function D(n){return n<=1&&(n=n*100+"%"),n}function B(n){return j.round(parseFloat(n)*255).toString(16)}function ne(n){return h(n)/255}var ie=function(){var n="[-\\+]?\\d+%?",m="[-\\+]?\\d*\\.\\d+%?",s="(?:"+m+")|(?:"+n+")",S="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?",H="[\\s|\\(]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")[,|\\s]+("+s+")\\s*\\)?";return{CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+H),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(n){return!!ie.CSS_UNIT.exec(n)}function F(n){n=n.replace(je,"").replace(U,"").toLowerCase();var m=!1;if(te[n])n=te[n],m=!0;else if(n=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var s;return(s=ie.rgb.exec(n))?{r:s[1],g:s[2],b:s[3]}:(s=ie.rgba.exec(n))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=ie.hsl.exec(n))?{h:s[1],s:s[2],l:s[3]}:(s=ie.hsla.exec(n))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=ie.hsv.exec(n))?{h:s[1],s:s[2],v:s[3]}:(s=ie.hsva.exec(n))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=ie.hex8.exec(n))?{r:h(s[1]),g:h(s[2]),b:h(s[3]),a:ne(s[4]),format:m?"name":"hex8"}:(s=ie.hex6.exec(n))?{r:h(s[1]),g:h(s[2]),b:h(s[3]),format:m?"name":"hex"}:(s=ie.hex4.exec(n))?{r:h(s[1]+""+s[1]),g:h(s[2]+""+s[2]),b:h(s[3]+""+s[3]),a:ne(s[4]+""+s[4]),format:m?"name":"hex8"}:(s=ie.hex3.exec(n))?{r:h(s[1]+""+s[1]),g:h(s[2]+""+s[2]),b:h(s[3]+""+s[3]),format:m?"name":"hex"}:!1}function q(n){var m,s;return n=n||{level:"AA",size:"small"},m=(n.level||"AA").toUpperCase(),s=(n.size||"small").toLowerCase(),m!=="AA"&&m!=="AAA"&&(m="AA"),s!=="small"&&s!=="large"&&(s="small"),{level:m,size:s}}Xe.exports?Xe.exports=k:!(w=function(){return k}.call(ve,a,ve,Xe),w!==void 0&&(Xe.exports=w))})(Math)},bT9E:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return j});var w=a("VTBJ");function j(je,U){var r=Object(w.a)({},je);return Array.isArray(U)&&U.forEach(function(f){delete r[f]}),r}},biw7:function(Xe,ve,a){"use strict";var w=a("q1tI"),j=a.n(w),je=w.createContext(null);ve.a=je},fj85:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return f}),a.d(ve,"b",function(){return k});var w=a("q1tI"),j=a.n(w),je=a("ZW5e"),U=a.n(je),r=function(le){var pe=le.title,Z=le.style,_=Z===void 0?{}:Z;return j.a.createElement("div",{className:U.a.panelTitleContainer,style:_},j.a.createElement("div",null,pe))},f=r,ce=a("PsNh"),se=a.n(ce),K=function(le){var pe=le.title,Z=le.children;return j.a.createElement("div",{className:se.a.selectWrapContainer},j.a.createElement("span",null,pe),Z)},k=K},fyJ8:function(Xe,ve,a){"use strict";var w=a("rePB"),j=a("VTBJ"),je=a("Ff2n"),U=a("U8pU"),r=a("q1tI"),f=a.n(r),ce=a("TSYQ"),se=a.n(ce),K=a("c+Xe"),k=a("sR1s");function X(x){return x&&Object(U.a)(x)==="object"&&!Array.isArray(x)&&!r.isValidElement(x)}function le(x){return typeof x=="string"?!0:Object(K.c)(x)}function pe(x,ue){var V,ae=x.prefixCls,fe=x.className,Y=x.record,he=x.index,T=x.dataIndex,J=x.render,$=x.children,g=x.component,O=g===void 0?"td":g,d=x.colSpan,I=x.rowSpan,z=x.fixLeft,Q=x.fixRight,Ce=x.firstFixLeft,te=x.lastFixLeft,P=x.firstFixRight,L=x.lastFixRight,y=x.appendNode,p=x.additionalProps,A=p===void 0?{}:p,h=x.ellipsis,M=x.align,G=x.rowType,oe=x.isSticky,D="".concat(ae,"-cell"),B,ne;if($)ne=$;else{var ie=Object(k.b)(Y,T);if(ne=ie,J){var ee=J(ie,Y,he);X(ee)?(ne=ee.children,B=ee.props):ne=ee}}Object(U.a)(ne)==="object"&&!Array.isArray(ne)&&!r.isValidElement(ne)&&(ne=null),h&&(te||P)&&(ne=r.createElement("span",{className:"".concat(D,"-content")},ne));var F=B||{},q=F.colSpan,n=F.rowSpan,m=F.style,s=F.className,S=Object(je.a)(F,["colSpan","rowSpan","style","className"]),H=q!==void 0?q:d,re=n!==void 0?n:I;if(H===0||re===0)return null;var Ee={},Pe=typeof z=="number",ke=typeof Q=="number";Pe&&(Ee.position="sticky",Ee.left=z),ke&&(Ee.position="sticky",Ee.right=Q);var Ie={};M&&(Ie.textAlign=M);var Ne,Le=h===!0?{showTitle:!0}:h;Le&&(Le.showTitle||G==="header")&&(typeof ne=="string"||typeof ne=="number"?Ne=ne.toString():r.isValidElement(ne)&&typeof ne.props.children=="string"&&(Ne=ne.props.children));var Nt=Object(j.a)(Object(j.a)(Object(j.a)({title:Ne},S),A),{},{colSpan:H&&H!==1?H:null,rowSpan:re&&re!==1?re:null,className:se()(D,fe,(V={},Object(w.a)(V,"".concat(D,"-fix-left"),Pe),Object(w.a)(V,"".concat(D,"-fix-left-first"),Ce),Object(w.a)(V,"".concat(D,"-fix-left-last"),te),Object(w.a)(V,"".concat(D,"-fix-right"),ke),Object(w.a)(V,"".concat(D,"-fix-right-first"),P),Object(w.a)(V,"".concat(D,"-fix-right-last"),L),Object(w.a)(V,"".concat(D,"-ellipsis"),h),Object(w.a)(V,"".concat(D,"-with-append"),y),Object(w.a)(V,"".concat(D,"-fix-sticky"),(Pe||ke)&&oe),V),A.className,s),style:Object(j.a)(Object(j.a)(Object(j.a)(Object(j.a)({},A.style),Ie),Ee),m),ref:le(O)?ue:null});return r.createElement(O,Object.assign({},Nt),y,ne)}var Z=r.forwardRef(pe);Z.displayName="Cell";var _=r.memo(Z,function(x,ue){return ue.shouldCellUpdate?!ue.shouldCellUpdate(ue.record,x.record):!1});ve.a=_},h78n:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return Ce});var w=a("q1tI"),j=a.n(w),je=a("TSYQ"),U=a.n(je),r={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},f=function(L){var y=L.map(function(){return Object(w.useRef)()}),p=Object(w.useRef)();return Object(w.useEffect)(function(){var A=Date.now(),h=!1;Object.keys(y).forEach(function(M){var G=y[M].current;if(!G)return;h=!0;var oe=G.style;oe.transitionDuration=".3s, .3s, .3s, .06s",p.current&&A-p.current<100&&(oe.transitionDuration="0s, 0s")}),h&&(p.current=Date.now())}),[y]};function ce(){return ce=Object.assign||function(P){for(var L=1;LP.length)&&(L=P.length);for(var y=0,p=new Array(L);y=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,p))continue;y[p]=P[p]}}return y}function _(P,L){if(P==null)return{};var y={},p=Object.keys(P),A,h;for(h=0;h=0)continue;y[A]=P[A]}return y}var x=function(L){var y=L.className,p=L.percent,A=L.prefixCls,h=L.strokeColor,M=L.strokeLinecap,G=L.strokeWidth,oe=L.style,D=L.trailColor,B=L.trailWidth,ne=L.transition,ie=Z(L,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ie.gapPosition;var ee=Array.isArray(p)?p:[p],F=Array.isArray(h)?h:[h],q=f(ee),n=se(q,1),m=n[0],s=G/2,S=100-G/2,H="M ".concat(M==="round"?s:0,",").concat(s,` - L `).concat(M==="round"?S:100,",").concat(s),re="0 0 100 ".concat(G),Ee=0;return j.a.createElement("svg",ce({className:U()("".concat(A,"-line"),y),viewBox:re,preserveAspectRatio:"none",style:oe},ie),j.a.createElement("path",{className:"".concat(A,"-line-trail"),d:H,strokeLinecap:M,stroke:D,strokeWidth:B||G,fillOpacity:"0"}),ee.map(function(Pe,ke){var Ie={strokeDasharray:"".concat(Pe,"px, 100px"),strokeDashoffset:"-".concat(Ee,"px"),transition:ne||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ne=F[ke]||F[F.length-1];return Ee+=Pe,j.a.createElement("path",{key:ke,className:"".concat(A,"-line-path"),d:H,strokeLinecap:M,stroke:Ne,strokeWidth:G,fillOpacity:"0",ref:m[ke],style:Ie})}))};x.defaultProps=r;var ue=x;function V(){return V=Object.assign||function(P){for(var L=1;LP.length)&&(L=P.length);for(var y=0,p=new Array(L);y=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,p))continue;y[p]=P[p]}}return y}function g(P,L){if(P==null)return{};var y={},p=Object.keys(P),A,h;for(h=0;h=0)continue;y[A]=P[A]}return y}var O=0;function d(P){return+P.replace("%","")}function I(P){return Array.isArray(P)?P:[P]}function z(P,L,y,p){var A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,h=arguments.length>5?arguments[5]:void 0,M=50-p/2,G=0,oe=-M,D=0,B=-2*M;switch(h){case"left":G=-M,oe=0,D=2*M,B=0;break;case"right":G=M,oe=0,D=-2*M,B=0;break;case"bottom":oe=M,B=2*M;break;default:}var ne="M 50,50 m ".concat(G,",").concat(oe,` + L `).concat(M==="round"?S:100,",").concat(s),re="0 0 100 ".concat(G),Ee=0;return j.a.createElement("svg",ce({className:U()("".concat(A,"-line"),y),viewBox:re,preserveAspectRatio:"none",style:oe},ie),j.a.createElement("path",{className:"".concat(A,"-line-trail"),d:H,strokeLinecap:M,stroke:D,strokeWidth:B||G,fillOpacity:"0"}),ee.map(function(Pe,ke){var Ie={strokeDasharray:"".concat(Pe,"px, 100px"),strokeDashoffset:"-".concat(Ee,"px"),transition:ne||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ne=F[ke]||F[F.length-1];return Ee+=Pe,j.a.createElement("path",{key:ke,className:"".concat(A,"-line-path"),d:H,strokeLinecap:M,stroke:Ne,strokeWidth:G,fillOpacity:"0",ref:m[ke],style:Ie})}))};x.defaultProps=r;var ue=x;function V(){return V=Object.assign||function(P){for(var L=1;LP.length)&&(L=P.length);for(var y=0,p=new Array(L);y=0)continue;if(!Object.prototype.propertyIsEnumerable.call(P,p))continue;y[p]=P[p]}}return y}function g(P,L){if(P==null)return{};var y={},p=Object.keys(P),A,h;for(h=0;h=0)continue;y[A]=P[A]}return y}var O=0;function d(P){return+P.replace("%","")}function I(P){return Array.isArray(P)?P:[P]}function z(P,L,y,p){var A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,h=arguments.length>5?arguments[5]:void 0,M=50-p/2,G=0,oe=-M,D=0,B=-2*M;switch(h){case"left":G=-M,oe=0,D=2*M,B=0;break;case"right":G=M,oe=0,D=-2*M,B=0;break;case"bottom":oe=M,B=2*M;break;default:}var ne="M 50,50 m ".concat(G,",").concat(oe,` a `).concat(M,",").concat(M," 0 1 1 ").concat(D,",").concat(-B,` - a `).concat(M,",").concat(M," 0 1 1 ").concat(-D,",").concat(B),ie=Math.PI*2*M,ee={stroke:y,strokeDasharray:"".concat(L/100*(ie-A),"px ").concat(ie,"px"),strokeDashoffset:"-".concat(A/2+P/100*(ie-A),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ne,pathStyle:ee}}var Q=function(L){var y=L.prefixCls,p=L.strokeWidth,A=L.trailWidth,h=L.gapDegree,M=L.gapPosition,G=L.trailColor,oe=L.strokeLinecap,D=L.style,B=L.className,ne=L.strokeColor,ie=L.percent,ee=$(L,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),F=Object(w.useMemo)(function(){return O+=1,O},[]),q=z(0,100,G,p,h,M),n=q.pathString,m=q.pathStyle,s=I(ie),S=I(ne),H=S.find(function(Ie){return Object.prototype.toString.call(Ie)==="[object Object]"}),re=f(s),Ee=ae(re,1),Pe=Ee[0],ke=function(){var Ne=0;return s.map(function(Le,Nt){var It=S[Nt]||S[S.length-1],At=Object.prototype.toString.call(It)==="[object Object]"?"url(#".concat(y,"-gradient-").concat(F,")"):"",jt=z(Ne,Le,It,p,h,M);return Ne+=Le,j.a.createElement("path",{key:Nt,className:"".concat(y,"-circle-path"),d:jt.pathString,stroke:At,strokeLinecap:oe,strokeWidth:p,opacity:Le===0?0:1,fillOpacity:"0",style:jt.pathStyle,ref:Pe[Nt]})})};return j.a.createElement("svg",V({className:U()("".concat(y,"-circle"),B),viewBox:"0 0 100 100",style:D},ee),H&&j.a.createElement("defs",null,j.a.createElement("linearGradient",{id:"".concat(y,"-gradient-").concat(F),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(H).sort(function(Ie,Ne){return d(Ie)-d(Ne)}).map(function(Ie,Ne){return j.a.createElement("stop",{key:Ne,offset:Ie,stopColor:H[Ie]})}))),j.a.createElement("path",{className:"".concat(y,"-circle-trail"),d:n,stroke:G,strokeLinecap:oe,strokeWidth:A||p,fillOpacity:"0",style:m}),ke().reverse())};Q.defaultProps=r;var Ce=Q,te={Line:ue,Circle:Ce}},hW8S:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return U}),a.d(ve,"c",function(){return r}),a.d(ve,"b",function(){return f});var w=a("VTBJ"),j=a("Ff2n"),je=a("Kwbf"),U="RC_TABLE_INTERNAL_COL_DEFINE";function r(ce){var se=ce.expandable,K=Object(j.a)(ce,["expandable"]);return"expandable"in ce?Object(w.a)(Object(w.a)({},K),se):K}function f(ce){return Object.keys(ce).reduce(function(se,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-")&&(se[K]=ce[K]),se},{})}},k3GJ:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return po});var w=a("rePB"),j=a("ODXe"),je=a("Ff2n"),U=a("VTBJ"),r=a("q1tI"),f=a("TSYQ"),ce=a.n(f),se=a("Zm9Q"),K=a("6cGi"),k=a("KQm4"),X=a("xEkU"),le=a.n(X),pe=a("t23M");function Z(i){var v=Object(r.useRef)(),E=Object(r.useRef)(!1);function u(){for(var e=arguments.length,o=new Array(e),t=0;tT&&(de=T-me),Object(r.useMemo)(function(){if(!o.length)return[0,0];for(var Oe=o.length,He=Oe,tt=0;ttb+de){He=tt-1;break}}for(var at=0,nt=Oe-1;nt>=0;nt-=1){var qe=i.get(o[nt].key)||Y;if(qe[C]1&&arguments[1]!==void 0?arguments[1]:!1,u=v&&typeof v.getBoundingClientRect=="function"&&v.getBoundingClientRect().width;if(u){if(E){var e=getComputedStyle(v),o=e.marginLeft,t=e.marginRight;u+=+o.replace("px","")+ +t.replace("px","")}u=+u.toFixed(6)}return u||0},Ne=function(v,E,u){v&&Object(P.a)(v.style)==="object"&&(v.style[E]=u)},Le=function(){return s.any},Nt=a("bdgK"),It=a("i8i4"),At=a.n(It),jt=a("wgJM"),Ft=a("l4aY"),un=a("m+aA"),N=a("c+Xe"),be=a("zT1h"),ge=a("QC+M");function Me(i,v,E){return E?i[0]===v[0]:i[0]===v[0]&&i[1]===v[1]}function Ae(i,v,E){var u=i[v]||{};return Object(U.a)(Object(U.a)({},u),E)}function Re(i,v,E,u){for(var e=E.points,o=Object.keys(i),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;v();var o=Object(jt.a)(function(){e<=1?u({isCanceled:function(){return o!==i.current}}):E(u,e-1)});i.current=o}return r.useEffect(function(){return function(){v()}},[]),[E,v]},Tn=[Rt,Ct,ht,Ze],nn=!1,ze=!0;function Te(i){return i===ht||i===Ze}var Be=function(i,v){var E=r.useState(Gt),u=Object(j.a)(E,2),e=u[0],o=u[1],t=Dt(),l=Object(j.a)(t,2),c=l[0],C=l[1];function b(){o(Rt)}return qt(function(){if(e!==Gt&&e!==Ze){var T=Tn.indexOf(e),W=Tn[T+1],me=v(e);me===nn?o(W):c(function(de){function Oe(){if(de.isCanceled())return;o(W)}me===!0?Oe():Promise.resolve(me).then(Oe)})}},[i,e]),r.useEffect(function(){return function(){C()}},[]),[b,e]},Ve=function(i){var v=Object(r.useRef)(),E=Object(r.useRef)(i);E.current=i;var u=r.useCallback(function(t){E.current(t)},[]);function e(t){t&&(t.removeEventListener(wt,u),t.removeEventListener(Ye,u))}function o(t){v.current&&v.current!==t&&e(v.current),t&&t!==v.current&&(t.addEventListener(wt,u),t.addEventListener(Ye,u),v.current=t)}return r.useEffect(function(){return function(){e(v.current)}},[]),[o,e]};function it(i,v,E,u){var e=u.motionEnter,o=e===void 0?!0:e,t=u.motionAppear,l=t===void 0?!0:t,c=u.motionLeave,C=c===void 0?!0:c,b=u.motionDeadline,T=u.motionLeaveImmediately,W=u.onAppearPrepare,me=u.onEnterPrepare,de=u.onLeavePrepare,Oe=u.onAppearStart,He=u.onEnterStart,tt=u.onLeaveStart,Je=u.onAppearActive,at=u.onEnterActive,nt=u.onLeaveActive,qe=u.onAppearEnd,et=u.onEnterEnd,vt=u.onLeaveEnd,rt=u.onVisibleChanged,Xt=Lt(),_t=Object(j.a)(Xt,2),Fe=_t[0],We=_t[1],ut=Lt(lt),dt=Object(j.a)(ut,2),De=dt[0],bt=dt[1],Kt=Lt(null),gt=Object(j.a)(Kt,2),Tt=gt[0],Bt=gt[1],an=Object(r.useRef)(!1),vn=Object(r.useRef)(null),$t=Object(r.useRef)(!1),bn=Object(r.useRef)(null);function Pn(){var Wt=E();return Wt||bn.current}var yn=Object(r.useRef)(!1);function Cn(Wt){var Ot=Pn();if(Wt&&!Wt.deadline&&Wt.target!==Ot)return;var rn;De===zt&&yn.current?rn=qe==null?void 0:qe(Ot,Wt):De===Jt&&yn.current?rn=et==null?void 0:et(Ot,Wt):De===ft&&yn.current&&(rn=vt==null?void 0:vt(Ot,Wt)),rn!==!1&&!$t.current&&(bt(lt),Bt(null))}var Yt=Ve(Cn),mn=Object(j.a)(Yt,1),on=mn[0],en=r.useMemo(function(){var Wt,Ot,rn;switch(De){case"appear":return Wt={},Object(w.a)(Wt,Rt,W),Object(w.a)(Wt,Ct,Oe),Object(w.a)(Wt,ht,Je),Wt;case"enter":return Ot={},Object(w.a)(Ot,Rt,me),Object(w.a)(Ot,Ct,He),Object(w.a)(Ot,ht,at),Ot;case"leave":return rn={},Object(w.a)(rn,Rt,de),Object(w.a)(rn,Ct,tt),Object(w.a)(rn,ht,nt),rn;default:return{}}},[De]),kn=Be(De,function(Wt){if(Wt===Rt){var Ot=en[Rt];return Ot?Ot(Pn()):nn}if(kt in en){var rn;Bt(((rn=en[kt])===null||rn===void 0?void 0:rn.call(en,Pn(),null))||null)}return kt===ht&&(on(Pn()),b>0&&(clearTimeout(vn.current),vn.current=setTimeout(function(){Cn({deadline:!0})},b))),ze}),In=Object(j.a)(kn,2),Hn=In[0],kt=In[1],Nn=Te(kt);yn.current=Nn,qt(function(){We(v);var Wt=an.current;if(an.current=!0,!i)return;var Ot;!Wt&&v&&l&&(Ot=zt),Wt&&v&&o&&(Ot=Jt),(Wt&&!v&&C||!Wt&&T&&!v&&C)&&(Ot=ft),Ot&&(bt(Ot),Hn())},[v]),Object(r.useEffect)(function(){(De===zt&&!l||De===Jt&&!o||De===ft&&!C)&&bt(lt)},[l,o,C]),Object(r.useEffect)(function(){return function(){clearTimeout(vn.current),$t.current=!0}},[]),Object(r.useEffect)(function(){Fe!==void 0&&De===lt&&(rt==null||rt(Fe))},[Fe,De]);var Vn=Tt;return en[Rt]&&kt===Ct&&(Vn=Object(U.a)({transition:"none"},Vn)),[De,kt,Vn,Fe!=null?Fe:v]}var Ge=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){return Object(J.a)(this,E),v.apply(this,arguments)}return Object($.a)(E,[{key:"render",value:function(){return this.props.children}}]),E}(r.Component),st=Ge;function Ut(i){var v=i;Object(P.a)(i)==="object"&&(v=i.transitionSupport);function E(e){return!!(e.motionName&&v)}var u=r.forwardRef(function(e,o){var t=e.visible,l=t===void 0?!0:t,c=e.removeOnLeave,C=c===void 0?!0:c,b=e.forceRender,T=e.children,W=e.motionName,me=e.leavedClassName,de=e.eventProps,Oe=E(e),He=Object(r.useRef)(),tt=Object(r.useRef)();function Je(){try{return Object(un.a)(He.current||tt.current)}catch(bt){return null}}var at=it(Oe,l,Je,e),nt=Object(j.a)(at,4),qe=nt[0],et=nt[1],vt=nt[2],rt=nt[3],Xt=r.useRef(rt);rt&&(Xt.current=!0);var _t=Object(r.useRef)(o);_t.current=o;var Fe=r.useCallback(function(bt){He.current=bt,Object(N.b)(_t.current,bt)},[]),We,ut=Object(U.a)(Object(U.a)({},de),{},{visible:l});if(!T)We=null;else if(qe===lt||!E(e))rt?We=T(Object(U.a)({},ut),Fe):!C&&Xt.current?We=T(Object(U.a)(Object(U.a)({},ut),{},{className:me}),Fe):b?We=T(Object(U.a)(Object(U.a)({},ut),{},{style:{display:"none"}}),Fe):We=null;else{var dt,De;et===Rt?De="prepare":Te(et)?De="active":et===Ct&&(De="start"),We=T(Object(U.a)(Object(U.a)({},ut),{},{className:ce()(Mt(W,qe),(dt={},Object(w.a)(dt,Mt(W,"".concat(qe,"-").concat(De)),De),Object(w.a)(dt,W,typeof W=="string"),dt)),style:vt}),Fe)}return r.createElement(st,{ref:tt},We)});return u.displayName="CSSMotion",u}var St=Ut(yt),_n="add",Qt="keep",cn="remove",gn="removed";function dn(i){var v;return i&&Object(P.a)(i)==="object"&&"key"in i?v=i:v={key:i},Object(U.a)(Object(U.a)({},v),{},{key:String(v.key)})}function An(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return i.map(dn)}function Pt(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],E=[],u=0,e=v.length,o=An(i),t=An(v);o.forEach(function(C){for(var b=!1,T=u;T1});return c.forEach(function(C){E=E.filter(function(b){var T=b.key,W=b.status;return T!==C||W!==cn}),E.forEach(function(b){b.key===C&&(b.status=Qt)})}),E}var fn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function En(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St,E=function(u){Object(O.a)(o,u);var e=Object(d.a)(o);function o(){var t;return Object(J.a)(this,o),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(l){t.setState(function(c){var C=c.keyEntities;return{keyEntities:C.map(function(b){return b.key!==l?b:Object(U.a)(Object(U.a)({},b),{},{status:gn})})}})},t}return Object($.a)(o,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,C=this.props,b=C.component,T=C.children,W=C.onVisibleChanged,me=Object(je.a)(C,["component","children","onVisibleChanged"]),de=b||r.Fragment,Oe={};return fn.forEach(function(He){Oe[He]=me[He],delete me[He]}),delete me.keys,r.createElement(de,me,c.map(function(He){var tt=He.status,Je=Object(je.a)(He,["status"]),at=tt===_n||tt===Qt;return r.createElement(v,Object(R.a)({},Oe,{key:Je.key,visible:at,eventProps:Je,onVisibleChanged:function(qe){W==null||W(qe,{key:Je.key}),qe||l.removeKey(Je.key)}}),T)}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var C=l.keys,b=c.keyEntities,T=An(C),W=Pt(b,T);return{keyEntities:W.filter(function(me){var de=b.find(function(Oe){var He=Oe.key;return me.key===He});return!(de&&de.status===gn&&me.status===cn)})}}}]),o}(r.Component);return E.defaultProps={component:"div"},E}var sn=En(yt),pn=St;function xn(i){var v=i.prefixCls,E=i.motion,u=i.animation,e=i.transitionName;return E||(u?{motionName:"".concat(v,"-").concat(u)}:e?{motionName:e}:null)}function Xn(i){var v=i.prefixCls,E=i.visible,u=i.zIndex,e=i.mask,o=i.maskMotion,t=i.maskAnimation,l=i.maskTransitionName;if(!e)return null;var c={};return(o||l||t)&&(c=Object(U.a)({motionAppear:!0},xn({motion:o,prefixCls:v,transitionName:l,animation:t}))),r.createElement(pn,Object(R.a)({},c,{visible:E,removeOnLeave:!0}),function(C){var b=C.className;return r.createElement("div",{style:{zIndex:u},className:ce()("".concat(v,"-mask"),b)})})}var Wn=a("9mu1"),$n=a("o0o1"),Ma=a.n($n),Ra=a("HaE+"),Gn=["measure","align",null,"motion"],Ht=function(i,v){var E=Object(r.useState)(null),u=Object(j.a)(E,2),e=u[0],o=u[1],t=Object(r.useRef)(),l=Object(r.useRef)(!1);function c(T){l.current||o(T)}function C(){jt.a.cancel(t.current)}function b(T){C(),t.current=Object(jt.a)(function(){c(function(W){switch(e){case"align":return"motion";case"motion":return"stable";default:}return W}),T==null||T()})}return Object(r.useEffect)(function(){c("measure")},[i]),Object(r.useEffect)(function(){switch(e){case"measure":v();break;default:}e&&(t.current=Object(jt.a)(Object(Ra.a)(Ma.a.mark(function T(){var W,me;return Ma.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:W=Gn.indexOf(e),me=Gn[W+1],me&&W!==-1&&c(me);case 3:case"end":return Oe.stop()}},T)}))))},[e]),Object(r.useEffect)(function(){return function(){l.current=!0,C()}},[]),[e,b]},Yn=function(i){var v=r.useState({width:0,height:0}),E=Object(j.a)(v,2),u=E[0],e=E[1];function o(l){e({width:l.offsetWidth,height:l.offsetHeight})}var t=r.useMemo(function(){var l={};if(i){var c=u.width,C=u.height;i.indexOf("height")!==-1&&C?l.height=C:i.indexOf("minHeight")!==-1&&C&&(l.minHeight=C),i.indexOf("width")!==-1&&c?l.width=c:i.indexOf("minWidth")!==-1&&c&&(l.minWidth=c)}return l},[i,u]);return[t,o]},Jn=r.forwardRef(function(i,v){var E=i.visible,u=i.prefixCls,e=i.className,o=i.style,t=i.children,l=i.zIndex,c=i.stretch,C=i.destroyPopupOnHide,b=i.forceRender,T=i.align,W=i.point,me=i.getRootDomNode,de=i.getClassNameFromAlign,Oe=i.onAlign,He=i.onMouseEnter,tt=i.onMouseLeave,Je=i.onMouseDown,at=i.onTouchStart,nt=Object(r.useRef)(),qe=Object(r.useRef)(),et=Object(r.useState)(),vt=Object(j.a)(et,2),rt=vt[0],Xt=vt[1],_t=Yn(c),Fe=Object(j.a)(_t,2),We=Fe[0],ut=Fe[1];function dt(){c&&ut(me())}var De=Ht(E,dt),bt=Object(j.a)(De,2),Kt=bt[0],gt=bt[1],Tt=Object(r.useRef)();function Bt(){return W||me}function an(){var Yt;(Yt=nt.current)===null||Yt===void 0||Yt.forceAlign()}function vn(Yt,mn){var on=de(mn);rt!==on&&Xt(on),Kt==="align"&&(rt!==on?Promise.resolve().then(function(){an()}):gt(function(){var en;(en=Tt.current)===null||en===void 0||en.call(Tt)}),Oe==null||Oe(Yt,mn))}var $t=Object(U.a)({},xn(i));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Yt){var mn=$t[Yt];$t[Yt]=function(on,en){return gt(),mn==null?void 0:mn(on,en)}});function bn(){return new Promise(function(Yt){Tt.current=Yt})}r.useEffect(function(){!$t.motionName&&Kt==="motion"&>()},[$t.motionName,Kt]),r.useImperativeHandle(v,function(){return{forceAlign:an,getElement:function(){return qe.current}}});var Pn=Object(U.a)(Object(U.a)({},We),{},{zIndex:l,opacity:Kt==="motion"||Kt==="stable"||!E?void 0:0,pointerEvents:Kt==="stable"?void 0:"none"},o),yn=!0;(T==null?void 0:T.points)&&(Kt==="align"||Kt==="stable")&&(yn=!1);var Cn=t;return r.Children.count(t)>1&&(Cn=r.createElement("div",{className:"".concat(u,"-content")},t)),r.createElement(pn,Object(R.a)({visible:E,ref:qe,leavedClassName:"".concat(u,"-hidden")},$t,{onAppearPrepare:bn,onEnterPrepare:bn,removeOnLeave:C,forceRender:b}),function(Yt,mn){var on=Yt.className,en=Yt.style,kn=ce()(u,e,rt,on);return r.createElement(Wn.a,{target:Bt(),key:"popup",ref:nt,monitorWindowResize:!0,disabled:yn,align:T,onAlign:vn},r.createElement("div",{ref:mn,className:kn,onMouseEnter:He,onMouseLeave:tt,onMouseDownCapture:Je,onTouchStartCapture:at,style:Object(U.a)(Object(U.a)({},en),Pn)},Cn))})});Jn.displayName="PopupInner";var Ta=Jn,jn=r.forwardRef(function(i,v){var E=i.prefixCls,u=i.visible,e=i.zIndex,o=i.children,t=i.mobile;t=t===void 0?{}:t;var l=t.popupClassName,c=t.popupStyle,C=t.popupMotion,b=C===void 0?{}:C,T=t.popupRender,W=r.useRef();r.useImperativeHandle(v,function(){return{forceAlign:function(){},getElement:function(){return W.current}}});var me=Object(U.a)({zIndex:e},c),de=o;return r.Children.count(o)>1&&(de=r.createElement("div",{className:"".concat(E,"-content")},o)),T&&(de=T(de)),r.createElement(pn,Object(R.a)({visible:u,ref:W,removeOnLeave:!0},b),function(Oe,He){var tt=Oe.className,Je=Oe.style,at=ce()(E,l,tt);return r.createElement("div",{ref:He,className:at,style:Object(U.a)(Object(U.a)({},Je),me)},de)})});jn.displayName="MobilePopupInner";var Ha=jn,Sa=["visible","mobile"],oa=r.forwardRef(function(i,v){var E=i.visible,u=i.mobile,e=Object(je.a)(i,Sa),o=Object(r.useState)(E),t=Object(j.a)(o,2),l=t[0],c=t[1],C=Object(r.useState)(!1),b=Object(j.a)(C,2),T=b[0],W=b[1],me=Object(U.a)(Object(U.a)({},e),{},{visible:l});Object(r.useEffect)(function(){c(E),E&&u&&W(xe())},[E,u]);var de=T?r.createElement(Ha,Object(R.a)({},me,{mobile:u,ref:v})):r.createElement(Ta,Object(R.a)({},me,{ref:v}));return r.createElement("div",null,r.createElement(Xn,me),de)});oa.displayName="Popup";var Va=oa,Xa=r.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(i){return i?i.ownerDocument:window.document}var Pa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(i){var v=function(E){Object(O.a)(e,E);var u=Object(d.a)(e);function e(o){var t;Object(J.a)(this,e),t=u.call(this,o),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(c){var C=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",c),t.delaySetPopupVisible(!0,C,C?null:c)},t.onMouseMove=function(c){t.fireEvents("onMouseMove",c),t.setPoint(c)},t.onMouseLeave=function(c){t.fireEvents("onMouseLeave",c),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(c){var C;if(c.relatedTarget&&!c.relatedTarget.setTimeout&&Object(Ft.a)((C=t.popupRef.current)===null||C===void 0?void 0:C.getElement(),c.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(c){t.fireEvents("onFocus",c),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(c){t.fireEvents("onMouseDown",c),t.preClickTime=Date.now()},t.onTouchStart=function(c){t.fireEvents("onTouchStart",c),t.preTouchTime=Date.now()},t.onBlur=function(c){t.fireEvents("onBlur",c),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(c){c.preventDefault(),t.fireEvents("onContextMenu",c),t.setPopupVisible(!0,c)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(c){if(t.fireEvents("onClick",c),t.focusTime){var C;if(t.preClickTime&&t.preTouchTime?C=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?C=t.preClickTime:t.preTouchTime&&(C=t.preTouchTime),Math.abs(C-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var b=!t.state.popupVisible;(t.isClickToHide()&&!b||b&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,c)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var c;(c=t.context).onPopupMouseDown.apply(c,arguments)}},t.onDocumentClick=function(c){if(t.props.mask&&!t.props.maskClosable)return;var C=c.target,b=t.getRootDomNode(),T=t.getPopupDomNode();(!Object(Ft.a)(b,C)||t.isContextMenuOnly())&&!Object(Ft.a)(T,C)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var c=t.props.getTriggerDOMNode;if(c)return c(t.triggerRef.current);try{var C=Object(un.a)(t.triggerRef.current);if(C)return C}catch(b){}return At.a.findDOMNode(Object(g.a)(t))},t.getPopupClassNameFromAlign=function(c){var C=[],b=t.props,T=b.popupPlacement,W=b.builtinPlacements,me=b.prefixCls,de=b.alignPoint,Oe=b.getPopupClassNameFromAlign;return T&&W&&C.push(Re(W,me,c,de)),Oe&&C.push(Oe(c)),C.join(" ")},t.getComponent=function(){var c=t.props,C=c.prefixCls,b=c.destroyPopupOnHide,T=c.popupClassName,W=c.onPopupAlign,me=c.popupMotion,de=c.popupAnimation,Oe=c.popupTransitionName,He=c.popupStyle,tt=c.mask,Je=c.maskAnimation,at=c.maskTransitionName,nt=c.maskMotion,qe=c.zIndex,et=c.popup,vt=c.stretch,rt=c.alignPoint,Xt=c.mobile,_t=c.forceRender,Fe=t.state,We=Fe.popupVisible,ut=Fe.point,dt=t.getPopupAlign(),De={};return t.isMouseEnterToShow()&&(De.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(De.onMouseLeave=t.onPopupMouseLeave),De.onMouseDown=t.onPopupMouseDown,De.onTouchStart=t.onPopupMouseDown,r.createElement(Va,Object(R.a)({prefixCls:C,destroyPopupOnHide:b,visible:We,point:rt&&ut,className:T,align:dt,onAlign:W,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},De,{stretch:vt,getRootDomNode:t.getRootDomNode,style:He,mask:tt,zIndex:qe,transitionName:Oe,maskAnimation:Je,maskTransitionName:at,maskMotion:nt,ref:t.popupRef,motion:me,mobile:Xt,forceRender:_t}),typeof et=="function"?et():et)},t.attachParent=function(c){jt.a.cancel(t.attachId);var C=t.props,b=C.getPopupContainer,T=C.getDocument,W=t.getRootDomNode(),me;b?(W||b.length===0)&&(me=b(W)):me=T(t.getRootDomNode()).body,me?me.appendChild(c):t.attachId=Object(jt.a)(function(){t.attachParent(c)})},t.getContainer=function(){var c=t.props.getDocument,C=c(t.getRootDomNode()).createElement("div");return C.style.position="absolute",C.style.top="0",C.style.left="0",C.style.width="100%",t.attachParent(C),C},t.setPoint=function(c){var C=t.props.alignPoint;if(!C||!c)return;t.setState({point:{pageX:c.pageX,pageY:c.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var l;return"popupVisible"in o?l=!!o.popupVisible:l=!!o.defaultPopupVisible,t.state={prevPopupVisible:l,popupVisible:l},Pa.forEach(function(c){t["fire".concat(c)]=function(C){t.fireEvents(c,C)}}),t}return Object($.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,l=this.state;if(l.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(be.a)(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(be.a)(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(be.a)(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(be.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),jt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,l=t.popupPlacement,c=t.popupAlign,C=t.builtinPlacements;return l&&C?Ae(C,l,c):c}},{key:"setPopupVisible",value:function(t,l){var c=this.props.alignPoint,C=this.state.popupVisible;this.clearDelayTimer(),C!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:C}),this.props.onPopupVisibleChange(t)),c&&l&&t&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(t,l,c){var C=this,b=l*1e3;if(this.clearDelayTimer(),b){var T=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){C.setPopupVisible(t,T),C.clearDelayTimer()},b)}else this.setPopupVisible(t,c)}},{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(t){var l=this.props.children.props,c=this.props;return l[t]&&c[t]?this["fire".concat(t)]:l[t]||c[t]}},{key:"isClickToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,l){var c=this.props.children.props[t];c&&c(l);var C=this.props[t];C&&C(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,l=this.props,c=l.children,C=l.forceRender,b=l.alignPoint,T=l.className,W=l.autoDestroy,me=r.Children.only(c),de={key:"trigger"};this.isContextMenuToShow()?de.onContextMenu=this.onContextMenu:de.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(de.onClick=this.onClick,de.onMouseDown=this.onMouseDown,de.onTouchStart=this.onTouchStart):(de.onClick=this.createTwoChains("onClick"),de.onMouseDown=this.createTwoChains("onMouseDown"),de.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(de.onMouseEnter=this.onMouseEnter,b&&(de.onMouseMove=this.onMouseMove)):de.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?de.onMouseLeave=this.onMouseLeave:de.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(de.onFocus=this.onFocus,de.onBlur=this.onBlur):(de.onFocus=this.createTwoChains("onFocus"),de.onBlur=this.createTwoChains("onBlur"));var Oe=ce()(me&&me.props&&me.props.className,T);Oe&&(de.className=Oe);var He=Object(U.a)({},de);Object(N.c)(me)&&(He.ref=Object(N.a)(this.triggerRef,me.ref));var tt=r.cloneElement(me,He),Je;return(t||this.popupRef.current||C)&&(Je=r.createElement(i,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&W&&(Je=null),r.createElement(ra.Provider,{value:this.triggerContextValue},tt,Je)}}],[{key:"getDerivedStateFromProps",value:function(t,l){var c=t.popupVisible,C={};return c!==void 0&&l.popupVisible!==c&&(C.popupVisible=c,C.prevPopupVisible=l.popupVisible),C}}]),e}(r.Component);return v.contextType=ra,v.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},v}var Ja=Ya(ge.a),Sn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:Sn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Sn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Sn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Sn,offset:[4,0]}},Aa={topLeft:{points:["bl","tl"],overflow:Sn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Sn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Sn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Sn,offset:[4,0]}},sa=ia,hn=0,Mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Rn=function(v,E,u){var e=re(E),o=v.getState();v.setState({defaultActiveFirst:Object(U.a)(Object(U.a)({},o.defaultActiveFirst),{},Object(w.a)({},e,u))})},la=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;Object(J.a)(this,E),e=v.call(this,u),e.onDestroy=function(b){e.props.onDestroy(b)},e.onKeyDown=function(b){var T=b.keyCode,W=e.menuInstance,me=e.props.store,de=e.getVisible();if(T===x.a.ENTER)return e.onTitleClick(b),Rn(me,e.props.eventKey,!0),!0;if(T===x.a.RIGHT)return de?W.onKeyDown(b):(e.triggerOpenChange(!0),Rn(me,e.props.eventKey,!0)),!0;if(T===x.a.LEFT){var Oe;if(de)Oe=W.onKeyDown(b);else return;return Oe||(e.triggerOpenChange(!1),Oe=!0),Oe}return de&&(T===x.a.UP||T===x.a.DOWN)?W.onKeyDown(b):void 0},e.onOpenChange=function(b){e.props.onOpenChange(b)},e.onPopupVisibleChange=function(b){e.triggerOpenChange(b,b?"mouseenter":"mouseleave")},e.onMouseEnter=function(b){var T=e.props,W=T.eventKey,me=T.onMouseEnter,de=T.store;Rn(de,e.props.eventKey,!1),me({key:W,domEvent:b})},e.onMouseLeave=function(b){var T=e.props,W=T.parentMenu,me=T.eventKey,de=T.onMouseLeave;W.subMenuInstance=Object(g.a)(e),de({key:me,domEvent:b})},e.onTitleMouseEnter=function(b){var T=e.props,W=T.eventKey,me=T.onItemHover,de=T.onTitleMouseEnter;me({key:W,hover:!0}),de({key:W,domEvent:b})},e.onTitleMouseLeave=function(b){var T=e.props,W=T.parentMenu,me=T.eventKey,de=T.onItemHover,Oe=T.onTitleMouseLeave;W.subMenuInstance=Object(g.a)(e),de({key:me,hover:!1}),Oe({key:me,domEvent:b})},e.onTitleClick=function(b){var T=Object(g.a)(e),W=T.props;if(W.onTitleClick({key:W.eventKey,domEvent:b}),W.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),Rn(W.store,e.props.eventKey,!1)},e.onSubMenuClick=function(b){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(b))},e.onSelect=function(b){e.props.onSelect(b)},e.onDeselect=function(b){e.props.onDeselect(b)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(b){e.menuInstance=b},e.addKeyPath=function(b){return Object(U.a)(Object(U.a)({},b),{},{keyPath:(b.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(b,T){var W=e.props.eventKey,me=function(){e.onOpenChange({key:W,item:Object(g.a)(e),trigger:T,open:b})};T==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){me()},0):me()},e.isChildrenSelected=function(){var b={find:!1};return Pe(e.props.children,e.props.selectedKeys,b),b.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var b=It.findDOMNode(e.menuInstance);if(b.offsetWidth>=e.subMenuTitle.offsetWidth)return;b.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(b){e.subMenuTitle=b},e.getBaseProps=function(){var b=Object(g.a)(e),T=b.props,W=e.getMode();return{mode:W==="horizontal"?"vertical":W,visible:e.getVisible(),level:T.level+1,inlineIndent:T.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:T.selectedKeys,eventKey:"".concat(T.eventKey,"-menu-"),openKeys:T.openKeys,motion:T.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:T.subMenuOpenDelay,parentMenu:Object(g.a)(e),subMenuCloseDelay:T.subMenuCloseDelay,forceSubMenuRender:T.forceSubMenuRender,triggerSubMenuAction:T.triggerSubMenuAction,builtinPlacements:T.builtinPlacements,defaultActiveFirst:T.store.getState().defaultActiveFirst[re(T.eventKey)],multiple:T.multiple,prefixCls:T.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:T.itemIcon,expandIcon:T.expandIcon,direction:T.direction}},e.getMotion=function(b,T){var W=Object(g.a)(e),me=W.haveRendered,de=e.props,Oe=de.motion,He=de.rootPrefixCls,tt=Object(U.a)(Object(U.a)({},Oe),{},{leavedClassName:"".concat(He,"-hidden"),removeOnLeave:!1,motionAppear:me||!T||b!=="inline"});return tt};var o=u.store,t=u.eventKey,l=o.getState(),c=l.defaultActiveFirst;e.isRootMenu=!1;var C=!1;return c&&(C=c[t]),Rn(o,t,C),e.state={mode:u.mode,isOpen:u.isOpen},e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,o=this.props,t=o.mode,l=o.parentMenu,c=o.manualRef,C=o.isOpen,b=function(){e.setState({mode:t,isOpen:C})},T=C!==this.state.isOpen,W=t!==this.state.mode;if((W||T)&&(jt.a.cancel(this.updateStateRaf),W?this.updateStateRaf=Object(jt.a)(b):b()),c&&c(this),t!=="horizontal"||!(l==null?void 0:l.isRootMenu)||!C)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,o=e.onDestroy,t=e.eventKey;o&&o(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),jt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,o){var t=this.getBaseProps();return r.createElement(ea,Object(R.a)({},t,{id:this.internalMenuId,className:e,style:o}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,o=this.getBaseProps(),t=o.mode,l=o.visible,c=o.forceSubMenuRender,C=o.direction,b=this.getMotion(t,l);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||l||c,!this.haveOpened)return r.createElement("div",null);var T=ce()("".concat(o.prefixCls,"-sub"),Object(w.a)({},"".concat(o.prefixCls,"-rtl"),C==="rtl"));return this.isInlineMode()?r.createElement(pn,Object(R.a)({visible:o.visible,forceRender:c},b),function(W){var me=W.className,de=W.style,Oe=ce()(T,me);return e.renderPopupMenu(Oe,de)}):this.renderPopupMenu(T)}},{key:"render",value:function(){var e,o,t,l=Object(U.a)({},this.props),c=this.getVisible(),C=this.getPrefixCls(),b=this.isInlineMode(),T=this.getMode(),W=ce()(C,"".concat(C,"-").concat(T),(e={},Object(w.a)(e,l.className,!!l.className),Object(w.a)(e,this.getOpenClassName(),c),Object(w.a)(e,this.getActiveClassName(),l.active||c&&!b),Object(w.a)(e,this.getDisabledClassName(),l.disabled),Object(w.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(l.eventKey?this.internalMenuId="".concat(l.eventKey,"$Menu"):(hn+=1,this.internalMenuId="$__$".concat(hn,"$Menu")));var me={},de={},Oe={};l.disabled||(me={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Oe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var He={},tt=l.direction,Je=tt==="rtl";b&&(Je?He.paddingRight=l.inlineIndent*l.level:He.paddingLeft=l.inlineIndent*l.level);var at={};this.getVisible()&&(at={"aria-owns":this.internalMenuId});var nt=null;T!=="horizontal"&&(nt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(nt=r.createElement(this.props.expandIcon,Object(U.a)({},this.props))));var qe=r.createElement("div",Object(R.a)({ref:this.saveSubMenuTitle,style:He,className:"".concat(C,"-title"),role:"button"},Oe,de,{"aria-expanded":c},at,{"aria-haspopup":"true",title:typeof l.title=="string"?l.title:void 0}),l.title,nt||r.createElement("i",{className:"".concat(C,"-arrow")})),et=this.renderChildren(),vt=((o=l.parentMenu)===null||o===void 0?void 0:o.isRootMenu)?l.parentMenu.props.getPopupContainer:function(Bt){return Bt.parentNode},rt=Mn[T],Xt=l.popupOffset?{offset:l.popupOffset}:{},_t=ce()((t={},Object(w.a)(t,l.popupClassName,l.popupClassName&&!b),Object(w.a)(t,"".concat(C,"-rtl"),Je),t)),Fe=l.disabled,We=l.triggerSubMenuAction,ut=l.subMenuOpenDelay,dt=l.forceSubMenuRender,De=l.subMenuCloseDelay,bt=l.builtinPlacements;ke.forEach(function(Bt){return delete l[Bt]}),delete l.onClick;var Kt=Je?Object(U.a)(Object(U.a)({},Aa),bt):Object(U.a)(Object(U.a)({},ia),bt);delete l.direction;var gt=this.getBaseProps(),Tt=b?null:this.getMotion(gt.mode,gt.visible);return r.createElement("li",Object(R.a)({},l,me,{className:W,role:"menuitem"}),r.createElement(Ja,{prefixCls:C,popupClassName:ce()("".concat(C,"-popup"),_t),getPopupContainer:vt,builtinPlacements:Kt,popupPlacement:rt,popupVisible:b?!1:c,popupAlign:Xt,popup:b?null:et,action:Fe||b?[]:[We],mouseEnterDelay:ut,mouseLeaveDelay:De,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:dt,popupMotion:Tt},qe),b?et:null)}}]),E}(r.Component);la.defaultProps={onMouseEnter:S,onMouseLeave:S,onTitleMouseEnter:S,onTitleMouseLeave:S,onTitleClick:S,manualRef:S,mode:"vertical",title:""};var Fn=Object(I.b)(function(i,v){var E=i.openKeys,u=i.activeKey,e=i.selectedKeys,o=v.eventKey,t=v.subMenuKey;return{isOpen:E.indexOf(o)>-1,active:u[t]===o,selectedKeys:e}})(la);Fn.isSubMenu=!0;var zn=Fn,Da="menuitem-overflowed",Qa=.5,Na=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.resizeObserver=null,u.mutationObserver=null,u.originalTotalWidth=0,u.overflowedItems=[],u.menuItemSizes=[],u.cancelFrameId=null,u.state={lastVisibleIndex:void 0},u.childRef=r.createRef(),u.getMenuItemNodes=function(){var e=u.props.prefixCls,o=u.childRef.current;return o?[].slice.call(o.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},u.getOverflowedSubMenuItem=function(e,o,t){var l=u.props,c=l.overflowedIndicator,C=l.level,b=l.mode,T=l.prefixCls,W=l.theme;if(C!==1||b!=="horizontal")return null;var me=u.props.children[0],de=me.props,Oe=de.children,He=de.title,tt=de.style,Je=Object(je.a)(de,["children","title","style"]),at=Object(U.a)({},tt),nt="".concat(e,"-overflowed-indicator"),qe="".concat(e,"-overflowed-indicator");o.length===0&&t!==!0?at=Object(U.a)(Object(U.a)({},at),{},{display:"none"}):t&&(at=Object(U.a)(Object(U.a)({},at),{},{visibility:"hidden",position:"absolute"}),nt="".concat(nt,"-placeholder"),qe="".concat(qe,"-placeholder"));var et=W?"".concat(T,"-").concat(W):"",vt={};return ke.forEach(function(rt){Je[rt]!==void 0&&(vt[rt]=Je[rt])}),r.createElement(zn,Object(R.a)({title:c,className:"".concat(T,"-overflowed-submenu"),popupClassName:et},vt,{key:nt,eventKey:qe,disabled:!1,style:at}),o)},u.setChildrenWidthAndResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var o=e.children;if(!o||o.length===0)return;var t=e.children[o.length-1];Ne(t,"display","inline-block");var l=u.getMenuItemNodes(),c=l.filter(function(C){return C.className.split(" ").indexOf(Da)>=0});c.forEach(function(C){Ne(C,"display","inline-block")}),u.menuItemSizes=l.map(function(C){return Ie(C,!0)}),c.forEach(function(C){Ne(C,"display","none")}),u.overflowedIndicatorWidth=Ie(e.children[e.children.length-1],!0),u.originalTotalWidth=u.menuItemSizes.reduce(function(C,b){return C+b},0),u.handleResize(),Ne(t,"display","none")},u.handleResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var o=Ie(e);u.overflowedItems=[];var t=0,l;u.originalTotalWidth>o+Qa&&(l=-1,u.menuItemSizes.forEach(function(c){t+=c,t+u.overflowedIndicatorWidth<=o&&(l+=1)})),u.setState({lastVisibleIndex:l})},u}return Object($.a)(E,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var o=this.childRef.current;if(!o)return;this.resizeObserver=new Nt.default(function(t){t.forEach(function(){var l=e.cancelFrameId;cancelAnimationFrame(l),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(o,{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(e){var o=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(l,c,C){var b=c;if(o.props.mode==="horizontal"){var T=o.getOverflowedSubMenuItem(c.props.eventKey,[]);t!==void 0&&o.props.className.indexOf("".concat(o.props.prefixCls,"-root"))!==-1&&(C>t&&(b=r.cloneElement(c,{style:{display:"none"},eventKey:"".concat(c.props.eventKey,"-hidden"),className:"".concat(Da)})),C===t+1&&(o.overflowedItems=e.slice(t+1).map(function(me){return r.cloneElement(me,{key:me.props.eventKey,mode:"vertical-left"})}),T=o.getOverflowedSubMenuItem(c.props.eventKey,o.overflowedItems)));var W=[].concat(Object(k.a)(l),[T,b]);return C===e.length-1&&W.push(o.getOverflowedSubMenuItem(c.props.eventKey,[],!0)),W}return[].concat(Object(k.a)(l),[b])},[])}},{key:"render",value:function(){var e=this.props,o=e.visible,t=e.prefixCls,l=e.overflowedIndicator,c=e.mode,C=e.level,b=e.tag,T=e.children,W=e.theme,me=Object(je.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=b;return r.createElement(de,Object(R.a)({ref:this.childRef},me),this.renderChildren(T))}}]),E}(r.Component);Na.defaultProps={tag:"div",className:""};var ua=Na;function Zn(i){return i.length?i.every(function(v){return!!v.props.disabled}):!0}function wn(i,v,E){var u=i.getState();i.setState({activeKey:Object(U.a)(Object(U.a)({},u.activeKey),{},Object(w.a)({},v,E))})}function Dn(i){return i.eventKey||"0-menu-"}function qn(i,v){var E=v,u=i.children,e=i.eventKey;if(E){var o;if(Ee(u,function(t,l){t&&t.props&&!t.props.disabled&&E===H(t,e,l)&&(o=!0)}),o)return E}return E=null,i.defaultActiveFirst&&Ee(u,function(t,l){!E&&t&&!t.props.disabled&&(E=H(t,e,l))}),E}function wa(i){if(!i)return;var v=this.instanceArray.indexOf(i);v!==-1?this.instanceArray[v]=i:this.instanceArray.push(i)}var La=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;return Object(J.a)(this,E),e=v.call(this,u),e.onKeyDown=function(o,t){var l=o.keyCode,c;if(e.getFlatInstanceArray().forEach(function(b){b&&b.props.active&&b.onKeyDown&&(c=b.onKeyDown(o))}),c)return 1;var C=null;return(l===x.a.UP||l===x.a.DOWN)&&(C=e.step(l===x.a.UP?-1:1)),C?(o.preventDefault(),wn(e.props.store,Dn(e.props),C.props.eventKey),typeof t=="function"&&t(C),1):void 0},e.onItemHover=function(o){var t=o.key,l=o.hover;wn(e.props.store,Dn(e.props),l?t:null)},e.onDeselect=function(o){e.props.onDeselect(o)},e.onSelect=function(o){e.props.onSelect(o)},e.onClick=function(o){e.props.onClick(o)},e.onOpenChange=function(o){e.props.onOpenChange(o)},e.onDestroy=function(o){e.props.onDestroy(o)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(o){var t=e.getFlatInstanceArray(),l=e.props.store.getState().activeKey[Dn(e.props)],c=t.length;if(!c)return null;o<0&&(t=t.concat().reverse());var C=-1;if(t.every(function(me,de){return me&&me.props.eventKey===l?(C=de,!1):!0}),!e.props.defaultActiveFirst&&C!==-1&&Zn(t.slice(C,c-1)))return;var b=(C+1)%c,T=b;do{var W=t[T];if(!W||W.props.disabled)T=(T+1)%c;else return W}while(T!==b);return null},e.renderCommonMenuItem=function(o,t,l){var c=e.props.store.getState(),C=Object(g.a)(e),b=C.props,T=H(o,b.eventKey,t),W=o.props;if(!W||typeof o.type=="string")return o;var me=T===c.activeKey,de=Object(U.a)(Object(U.a)({mode:W.mode||b.mode,level:b.level,inlineIndent:b.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:b.prefixCls,index:t,parentMenu:b.parentMenu,manualRef:W.disabled?void 0:Object(Q.a)(o.ref,wa.bind(Object(g.a)(e))),eventKey:T,active:!W.disabled&&me,multiple:b.multiple,onClick:function(He){(W.onClick||S)(He),e.onClick(He)},onItemHover:e.onItemHover,motion:b.motion,subMenuOpenDelay:b.subMenuOpenDelay,subMenuCloseDelay:b.subMenuCloseDelay,forceSubMenuRender:b.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:b.builtinPlacements,itemIcon:W.itemIcon||e.props.itemIcon,expandIcon:W.expandIcon||e.props.expandIcon},l),{},{direction:b.direction});return(b.mode==="inline"||Le())&&(de.triggerSubMenuAction="click"),r.cloneElement(o,Object(U.a)(Object(U.a)({},de),{},{key:T||t}))},e.renderMenuItem=function(o,t,l){if(!o)return null;var c=e.props.store.getState(),C={openKeys:c.openKeys,selectedKeys:c.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:l};return e.renderCommonMenuItem(o,t,C)},u.store.setState({activeKey:Object(U.a)(Object(U.a)({},u.store.getState().activeKey),{},Object(w.a)({},u.eventKey,qn(u,u.activeKey)))}),e.instanceArray=[],e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!te()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var o=this.props,t="activeKey"in o?o.activeKey:o.store.getState().activeKey[Dn(o)],l=qn(o,t);if(l!==t)wn(o.store,Dn(o),l);else if("activeKey"in e){var c=qn(e,e.activeKey);l!==c&&wn(o.store,Dn(o),l)}}},{key:"render",value:function(){var e=this,o=Object(R.a)({},this.props);this.instanceArray=[];var t=ce()(o.prefixCls,o.className,"".concat(o.prefixCls,"-").concat(o.mode)),l={className:t,role:o.role||"menu"};o.id&&(l.id=o.id),o.focusable&&(l.tabIndex=0,l.onKeyDown=this.onKeyDown);var c=o.prefixCls,C=o.eventKey,b=o.visible,T=o.level,W=o.mode,me=o.overflowedIndicator,de=o.theme;return ke.forEach(function(Oe){return delete o[Oe]}),delete o.onClick,r.createElement(ua,Object(R.a)({},o,{prefixCls:c,mode:W,tag:"ul",level:T,theme:de,visible:b,overflowedIndicator:me},l),Object(se.a)(o.children).map(function(Oe,He){return e.renderMenuItem(Oe,He,C||"0-menu-")}))}}]),E}(r.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:S};var Ua=Object(I.b)()(La),ea=Ua,Ln=a("Kwbf");function ca(i,v,E){var u=i.prefixCls,e=i.motion,o=i.defaultMotions,t=o===void 0?{}:o,l=i.openAnimation,c=i.openTransitionName,C=v.switchingModeFromInline;if(e)return e;if(Object(P.a)(l)==="object"&&l)Object(Ln.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof l=="string")return{motionName:"".concat(u,"-open-").concat(l)};if(c)return{motionName:c};var b=t[E];return b||(C?null:t.other)}var ka=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;Object(J.a)(this,E),e=v.call(this,u),e.onSelect=function(l){var c=Object(g.a)(e),C=c.props;if(C.selectable){var b=e.store.getState(),T=b.selectedKeys,W=l.key;C.multiple?T=T.concat([W]):T=[W],"selectedKeys"in C||e.store.setState({selectedKeys:T}),C.onSelect(Object(U.a)(Object(U.a)({},l),{},{selectedKeys:T}))}},e.onClick=function(l){var c=e.getRealMenuMode(),C=Object(g.a)(e),b=C.store,T=C.props.onOpenChange;c!=="inline"&&!("openKeys"in e.props)&&(b.setState({openKeys:[]}),T([])),e.props.onClick(l)},e.onKeyDown=function(l,c){e.innerMenu.getWrappedInstance().onKeyDown(l,c)},e.onOpenChange=function(l){var c=Object(g.a)(e),C=c.props,b=e.store.getState().openKeys.concat(),T=!1,W=function(de){var Oe=!1;if(de.open)Oe=b.indexOf(de.key)===-1,Oe&&b.push(de.key);else{var He=b.indexOf(de.key);Oe=He!==-1,Oe&&b.splice(He,1)}T=T||Oe};Array.isArray(l)?l.forEach(W):W(l),T&&("openKeys"in e.props||e.store.setState({openKeys:b}),C.onOpenChange(b))},e.onDeselect=function(l){var c=Object(g.a)(e),C=c.props;if(C.selectable){var b=e.store.getState().selectedKeys.concat(),T=l.key,W=b.indexOf(T);W!==-1&&b.splice(W,1),"selectedKeys"in C||e.store.setState({selectedKeys:b}),C.onDeselect(Object(U.a)(Object(U.a)({},l),{},{selectedKeys:b}))}},e.onMouseEnter=function(l){e.restoreModeVerticalFromInline();var c=e.props.onMouseEnter;c&&c(l)},e.onTransitionEnd=function(l){var c=l.propertyName==="width"&&l.target===l.currentTarget,C=l.target.className,b=Object.prototype.toString.call(C)==="[object SVGAnimatedString]"?C.animVal:C,T=l.propertyName==="font-size"&&b.indexOf("anticon")>=0;(c||T)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(l){e.innerMenu=l},e.isRootMenu=!0;var o=u.defaultSelectedKeys,t=u.defaultOpenKeys;return"selectedKeys"in u&&(o=u.selectedKeys||[]),"openKeys"in u&&(t=u.openKeys||[]),e.store=Object(I.c)({selectedKeys:o,openKeys:t,activeKey:{"0-menu-":qn(u,u.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:u,inlineOpenKeys:[],store:e.store},e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var o=this.props,t=o.siderCollapsed,l=o.inlineCollapsed,c=o.onOpenChange;(!e.inlineCollapsed&&l||!e.siderCollapsed&&t)&&c([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,o=this.store,t=this.prevOpenKeys,l=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");l?(this.prevOpenKeys=o.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,o=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return o&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,o=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:o}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(U.a)({},Object(z.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),o=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(U.a)(Object(U.a)({},e),{},{mode:o,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,o)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(I.a,{store:this.store},r.createElement(ea,Object(R.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var t=o.prevProps,l=o.store,c=l.getState(),C={},b={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(b.switchingModeFromInline=!0),"openKeys"in e?C.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(b.switchingModeFromInline=!0,b.inlineOpenKeys=c.openKeys,C.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(C.openKeys=o.inlineOpenKeys,b.inlineOpenKeys=[])),Object.keys(C).length&&l.setState(C),b}}]),E}(r.Component);ka.defaultProps={selectable:!0,onClick:S,onSelect:S,onOpenChange:S,onDeselect:S,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Ia=ka,Un=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.onKeyDown=function(e){var o=e.keyCode;return o===x.a.ENTER?(u.onClick(e),!0):void 0},u.onMouseLeave=function(e){var o=u.props,t=o.eventKey,l=o.onItemHover,c=o.onMouseLeave;l({key:t,hover:!1}),c({key:t,domEvent:e})},u.onMouseEnter=function(e){var o=u.props,t=o.eventKey,l=o.onItemHover,c=o.onMouseEnter;l({key:t,hover:!0}),c({key:t,domEvent:e})},u.onClick=function(e){var o=u.props,t=o.eventKey,l=o.multiple,c=o.onClick,C=o.onSelect,b=o.onDeselect,T=o.isSelected,W={key:t,keyPath:[t],item:Object(g.a)(u),domEvent:e};c(W),l?T?b(W):C(W):T||C(W)},u.saveNode=function(e){u.node=e},u}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,o=Object(U.a)({},this.props),t=ce()(this.getPrefixCls(),o.className,(e={},Object(w.a)(e,this.getActiveClassName(),!o.disabled&&o.active),Object(w.a)(e,this.getSelectedClassName(),o.isSelected),Object(w.a)(e,this.getDisabledClassName(),o.disabled),e)),l=Object(U.a)(Object(U.a)({},o.attribute),{},{title:typeof o.title=="string"?o.title:void 0,className:t,role:o.role||"menuitem","aria-disabled":o.disabled});o.role==="option"?l=Object(U.a)(Object(U.a)({},l),{},{role:"option","aria-selected":o.isSelected}):(o.role===null||o.role==="none")&&(l.role="none");var c={onClick:o.disabled?null:this.onClick,onMouseLeave:o.disabled?null:this.onMouseLeave,onMouseEnter:o.disabled?null:this.onMouseEnter},C=Object(U.a)({},o.style);o.mode==="inline"&&(o.direction==="rtl"?C.paddingRight=o.inlineIndent*o.level:C.paddingLeft=o.inlineIndent*o.level),ke.forEach(function(T){return delete o[T]}),delete o.direction;var b=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(b=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(R.a)({},Object(z.a)(o,["onClick","onMouseEnter","onMouseLeave","onSelect"]),l,c,{style:C,ref:this.saveNode}),o.children,b)}}]),E}(r.Component);Un.isMenuItem=!0,Un.defaultProps={onSelect:S,onMouseEnter:S,onMouseLeave:S,manualRef:S};var da=Object(I.b)(function(i,v){var E=i.activeKey,u=i.selectedKeys,e=v.eventKey,o=v.subMenuKey;return{active:E[o]===e,isSelected:Array.isArray(u)?u.indexOf(e)!==-1:u===e}})(Un),fa=da,ma=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.renderInnerMenuItem=function(e){var o=u.props,t=o.renderMenuItem,l=o.index;return t(e,l,u.props.subMenuKey)},u}return Object($.a)(E,[{key:"render",value:function(){var e=Object(R.a)({},this.props),o=e.className,t=o===void 0?"":o,l=e.rootPrefixCls,c="".concat(l,"-item-group-title"),C="".concat(l,"-item-group-list"),b=e.title,T=e.children;return ke.forEach(function(W){return delete e[W]}),delete e.direction,r.createElement("li",Object(R.a)({},e,{onClick:function(me){return me.stopPropagation()},className:"".concat(t," ").concat(l,"-item-group")}),r.createElement("div",{className:c,title:typeof b=="string"?b:void 0},b),r.createElement("ul",{className:C},r.Children.map(T,this.renderInnerMenuItem)))}}]),E}(r.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(v){var E=v.className,u=v.rootPrefixCls,e=v.style;return r.createElement("li",{className:"".concat(E," ").concat(u,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ia,ha=a("eDIo");function eo(i,v){var E=i.prefixCls,u=i.editable,e=i.locale,o=i.style;return!u||u.showAdd===!1?null:r.createElement("button",{ref:v,type:"button",className:"".concat(E,"-nav-add"),style:o,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(l){u.onEdit("add",{event:l})}},u.addIcon||"+")}var ta=r.forwardRef(eo);function to(i,v){var E=i.prefixCls,u=i.id,e=i.tabs,o=i.locale,t=i.mobile,l=i.moreIcon,c=l===void 0?"More":l,C=i.moreTransitionName,b=i.style,T=i.className,W=i.editable,me=i.tabBarGutter,de=i.rtl,Oe=i.onTabClick,He=Object(r.useState)(!1),tt=Object(j.a)(He,2),Je=tt[0],at=tt[1],nt=Object(r.useState)(null),qe=Object(j.a)(nt,2),et=qe[0],vt=qe[1],rt="".concat(u,"-more-popup"),Xt="".concat(E,"-dropdown"),_t=et!==null?"".concat(rt,"-").concat(et):null,Fe=o==null?void 0:o.dropdownAriaLabel,We=r.createElement(Ka,{onClick:function(Tt){var Bt=Tt.key,an=Tt.domEvent;Oe(Bt,an),at(!1)},id:rt,tabIndex:-1,role:"listbox","aria-activedescendant":_t,selectedKeys:[et],"aria-label":Fe!==void 0?Fe:"expanded dropdown"},e.map(function(gt){return r.createElement(fa,{key:gt.key,id:"".concat(rt,"-").concat(gt.key),role:"option","aria-controls":u&&"".concat(u,"-panel-").concat(gt.key),disabled:gt.disabled},gt.tab)}));function ut(gt){for(var Tt=e.filter(function(bn){return!bn.disabled}),Bt=Tt.findIndex(function(bn){return bn.key===et})||0,an=Tt.length,vn=0;vnbt?(dt=We,rt.current="x"):(dt=ut,rt.current="y");var Kt=Date.now();Kt-et.current>100&&(vt.current=!1),(v(-dt,-dt)||vt.current)&&(Fe.preventDefault(),vt.current=!0),et.current=Kt}var _t=Object(r.useRef)(null);_t.current={onTouchStart:at,onTouchMove:nt,onTouchEnd:qe,onWheel:Xt},r.useEffect(function(){function Fe(De){_t.current.onTouchStart(De)}function We(De){_t.current.onTouchMove(De)}function ut(De){_t.current.onTouchEnd(De)}function dt(De){_t.current.onWheel(De)}return document.addEventListener("touchmove",We,{passive:!1}),document.addEventListener("touchend",ut,{passive:!1}),i.current.addEventListener("touchstart",Fe,{passive:!1}),i.current.addEventListener("wheel",dt),function(){document.removeEventListener("touchmove",We),document.removeEventListener("touchend",ut)}},[])}function ba(){var i=Object(r.useRef)(new Map);function v(u){return i.current.has(u)||i.current.set(u,r.createRef()),i.current.get(u)}function E(u){i.current.delete(u)}return[v,E]}function Fa(i,v){var E=r.useRef(i),u=r.useState({}),e=Object(j.a)(u,2),o=e[1];function t(l){var c=typeof l=="function"?l(E.current):l;c!==E.current&&v(c,E.current),E.current=c,o({})}return[E.current,t]}var za=function(v){var E=v.position,u=v.prefixCls,e=v.extra;if(!e)return null;var o,t=e;return E==="right"&&(o=t.right||!t.left&&t||null),E==="left"&&(o=t.left||null),o?r.createElement("div",{className:"".concat(u,"-extra-content")},o):null};function Fo(i,v){var E,u=r.useContext(va),e=u.prefixCls,o=u.tabs,t=i.className,l=i.style,c=i.id,C=i.animated,b=i.activeKey,T=i.rtl,W=i.extra,me=i.editable,de=i.locale,Oe=i.tabPosition,He=i.tabBarGutter,tt=i.children,Je=i.onTabClick,at=i.onTabScroll,nt=Object(r.useRef)(),qe=Object(r.useRef)(),et=Object(r.useRef)(),vt=Object(r.useRef)(),rt=ba(),Xt=Object(j.a)(rt,2),_t=Xt[0],Fe=Xt[1],We=Oe==="top"||Oe==="bottom",ut=Fa(0,function(xt,ct){We&&at&&at({direction:xt>ct?"left":"right"})}),dt=Object(j.a)(ut,2),De=dt[0],bt=dt[1],Kt=Fa(0,function(xt,ct){!We&&at&&at({direction:xt>ct?"top":"bottom"})}),gt=Object(j.a)(Kt,2),Tt=gt[0],Bt=gt[1],an=Object(r.useState)(0),vn=Object(j.a)(an,2),$t=vn[0],bn=vn[1],Pn=Object(r.useState)(0),yn=Object(j.a)(Pn,2),Cn=yn[0],Yt=yn[1],mn=Object(r.useState)(0),on=Object(j.a)(mn,2),en=on[0],kn=on[1],In=Object(r.useState)(0),Hn=Object(j.a)(In,2),kt=Hn[0],Nn=Hn[1],Vn=Object(r.useState)(null),Wt=Object(j.a)(Vn,2),Ot=Wt[0],rn=Wt[1],Xo=Object(r.useState)(null),bo=Object(j.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(j.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(r.useState)(0),Eo=Object(j.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=_(new Map),yo=Object(j.a)(er,2),tr=yo[0],nr=yo[1],Ba=fe(o,tr,$t),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;We?T?(ga=0,Ea=Math.max(0,$t-Ot)):(ga=Math.min(0,Ot-$t),Ea=0):(ga=Math.min(0,na-Cn),Ea=0);function ao(xt){return xtEa?[Ea,!1]:[xt,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),_o=Object(j.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Wa(nt,function(xt,ct){var tn=!1;function On(Ca,Oa){Ca(function(_a){var xa=ao(_a+Oa),aa=Object(j.a)(xa,2),co=aa[0],fo=aa[1];return tn=fo,co})}if(We){if(Ot>=$t)return tn;On(bt,xt)}else{if(na>=Cn)return tn;On(Bt,ct)}return io(),ro(),tn}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b,ct=Ba.get(xt);if(!ct)return;if(We){var tn=De;T?ct.rightDe+Ot&&(tn=ct.right+ct.width-Ot):ct.left<-De?tn=-ct.left:ct.left+ct.width>-De+Ot&&(tn=-(ct.left+ct.width-Ot)),Bt(0),bt(ao(tn)[0])}else{var On=Tt;ct.top<-Tt?On=-ct.top:ct.top+ct.height>-Tt+na&&(On=-(ct.top+ct.height-na)),bt(0),Bt(ao(On)[0])}}var or=he(Ba,{width:Ot,height:na,left:De,top:Tt},{width:en,height:kt},{width:Yo,height:Zo},Object(U.a)(Object(U.a)({},i),{},{tabs:o})),Mo=Object(j.a)(or,2),rr=Mo[0],ir=Mo[1],sr=o.map(function(xt){var ct=xt.key;return r.createElement(V,{id:c,prefixCls:e,key:ct,rtl:T,tab:xt,closable:xt.closable,editable:me,active:ct===b,tabPosition:Oe,tabBarGutter:He,renderWrapper:tt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:_t(ct),onClick:function(On){Je(ct,On)},onRemove:function(){Fe(ct)},onFocus:function(){jo(ct),ro(),T||(nt.current.scrollLeft=0),nt.current.scrollTop=0}})}),so=Z(function(){var xt,ct,tn,On,Ca,Oa,_a,xa,aa,co=((xt=nt.current)===null||xt===void 0?void 0:xt.offsetWidth)||0,fo=((ct=nt.current)===null||ct===void 0?void 0:ct.offsetHeight)||0,wo=((tn=vt.current)===null||tn===void 0?void 0:tn.offsetWidth)||0,Lo=((On=vt.current)===null||On===void 0?void 0:On.offsetHeight)||0,mr=((Ca=et.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=et.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;rn(co),$o(fo),Jo(wo),qo(Lo);var Uo=(((_a=qe.current)===null||_a===void 0?void 0:_a.offsetWidth)||0)-wo,ko=(((xa=qe.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-Lo;bn(Uo),Yt(ko);var Io=(aa=et.current)===null||aa===void 0?void 0:aa.className.includes(Co);kn(Uo-(Io?0:mr)),Nn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return o.forEach(function(hr){var Wo=hr.key,ja=_t(Wo).current;ja&&Ko.set(Wo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=o.slice(0,rr),ur=o.slice(ir+1),Ro=[].concat(Object(k.a)(lr),Object(k.a)(ur)),cr=Object(r.useState)(),To=Object(j.a)(cr,2),dr=To[0],fr=To[1],Kn=Ba.get(b),So=Object(r.useRef)();function Po(){le.a.cancel(So.current)}Object(r.useEffect)(function(){var xt={};return Kn&&(We?(T?xt.right=Kn.right:xt.left=Kn.left,xt.width=Kn.width):(xt.top=Kn.top,xt.height=Kn.height)),Po(),So.current=le()(function(){fr(xt)}),Po},[Kn,We,T]),Object(r.useEffect)(function(){jo()},[b,Kn,Ba,We]),Object(r.useEffect)(function(){so()},[T,He,b,o.map(function(xt){return xt.key}).join("_")]);var Ao=!!Ro.length,ya="".concat(e,"-nav-wrap"),lo,uo,Do,No;return We?T?(uo=De>0,lo=De+Ot<$t):(lo=De<0,uo=-De+Ot<$t):(Do=Tt<0,No=-Tt+na1)Object(k.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(fe.length===0)return Object(k.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Y=fe[0];if(f.isValidElement(Y)&&Object(X.c)(Y)){var he=Y.ref;fe[0]=f.cloneElement(Y,{ref:Object(X.a)(he,this.setChildNode)})}return fe.length===1?fe[0]:fe.map(function(R,J){return!f.isValidElement(R)||"key"in R&&R.key!==null?R:f.cloneElement(R,{key:"".concat(pe,"-").concat(J)})})}}]),ue}(f.Component);Z.displayName="ResizeObserver",ve.a=Z},wCXF:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return At});var w=a("rePB"),j=a("VTBJ"),je=a("KQm4"),U=a("U8pU"),r=a("ODXe"),f=a("q1tI"),ce=a("TSYQ"),se=a.n(ce),K=a("Gytx"),k=a.n(K),X=a("Kwbf"),le=a("t23M"),pe=a("qx4F"),Z=a("6eGT"),_=a("IBYe"),x=a("Ff2n"),ue=a("c+Xe"),V=a("fyJ8"),ae=a("biw7");function fe(N,be,ge,Me,Ae){var Re=ge[N]||{},xe=ge[be]||{},ye,_e;Re.fixed==="left"?ye=Me.left[N]:xe.fixed==="right"&&(_e=Me.right[be]);var Ue=!1,Se=!1,we=!1,$e=!1,Ke=ge[be+1],Qe=ge[N-1];if(Ae==="rtl"){if(ye!==void 0){var Et=Qe&&Qe.fixed==="left";$e=!Et}else if(_e!==void 0){var ot=Ke&&Ke.fixed==="right";we=!ot}}else if(ye!==void 0){var yt=Ke&&Ke.fixed==="left";Ue=!yt}else if(_e!==void 0){var Ye=Qe&&Qe.fixed==="right";Se=!Ye}return{fixLeft:ye,fixRight:_e,lastFixLeft:Ue,firstFixRight:Se,lastFixRight:we,firstFixLeft:$e,isSticky:Me.isSticky}}var Y=a("sR1s");function he(N){var be=N.cells,ge=N.stickyOffsets,Me=N.flattenColumns,Ae=N.rowComponent,Re=N.cellComponent,xe=N.onHeaderRow,ye=N.index,_e=f.useContext(ae.a),Ue=_e.prefixCls,Se=_e.direction,we;xe&&(we=xe(be.map(function(Ke){return Ke.column}),ye));var $e=Object(Y.a)(be.map(function(Ke){return Ke.column}));return f.createElement(Ae,Object.assign({},we),be.map(function(Ke,Qe){var Et=Ke.column,ot=fe(Ke.colStart,Ke.colEnd,Me,ge,Se),yt;return Et&&Et.onHeaderCell&&(yt=Ke.column.onHeaderCell(Et)),f.createElement(V.a,Object.assign({},Ke,{ellipsis:Et.ellipsis,align:Et.align,component:Re,prefixCls:Ue,key:$e[Qe]},ot,{additionalProps:yt,rowType:"header"}))}))}he.displayName="HeaderRow";var R=he;function J(N){var be=[];function ge(xe,ye){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;be[_e]=be[_e]||[];var Ue=ye,Se=xe.filter(Boolean).map(function(we){var $e={key:we.key,className:we.className||"",children:we.title,column:we,colStart:Ue},Ke=1,Qe=we.children;return Qe&&Qe.length>0&&(Ke=ge(Qe,Ue,_e+1).reduce(function(Et,ot){return Et+ot},0),$e.hasSubColumns=!0),"colSpan"in we&&(Ke=we.colSpan),"rowSpan"in we&&($e.rowSpan=we.rowSpan),$e.colSpan=Ke,$e.colEnd=$e.colStart+Ke-1,be[_e].push($e),Ue+=Ke,Ke});return Se}ge(N,0);for(var Me=be.length,Ae=function(ye){be[ye].forEach(function(_e){!("rowSpan"in _e)&&!_e.hasSubColumns&&(_e.rowSpan=Me-ye)})},Re=0;Re=0;ye-=1){var _e=be[ye],Ue=ge&&ge[ye],Se=Ue&&Ue[O.a];(_e||Se||xe)&&(Ae.unshift(f.createElement("col",Object.assign({key:ye,style:{width:_e,minWidth:_e}},Se))),xe=!0)}return f.createElement("colgroup",null,Ae)}var I=d;function z(N,be){return Object(f.useMemo)(function(){for(var ge=[],Me=0;Me1?sn-1:0),xn=1;xn=we&&(Dt=we-$e),xe({scrollLeft:Dt/we*(Se+2)}),Ye.current.x=Ze.pageX},Rt=function(){var Ze=Object(ke.b)(Re.current).top,Lt=Ze+Re.current.offsetHeight,Zt=document.documentElement.scrollTop+window.innerHeight;Lt-Object(pe.a)()<=Zt||Ze>=Zt-ye?yt(function(qt){return Object(j.a)(Object(j.a)({},qt),{},{isHiddenScrollBar:!0})}):yt(function(qt){return Object(j.a)(Object(j.a)({},qt),{},{isHiddenScrollBar:!1})})},Ct=function(Ze){yt(function(Lt){return Object(j.a)(Object(j.a)({},Lt),{},{scrollLeft:Ze/Se*we||0})})};return f.useImperativeHandle(ge,function(){return{setScrollLeft:Ct}}),f.useEffect(function(){var ht=Object(Pe.a)(document.body,"mouseup",Jt,!1),Ze=Object(Pe.a)(document.body,"mousemove",Gt,!1);return Rt(),function(){ht.remove(),Ze.remove()}},[$e,lt]),f.useEffect(function(){var ht=Object(Pe.a)(window,"scroll",Rt,!1),Ze=Object(Pe.a)(window,"resize",Rt,!1);return function(){ht.remove(),Ze.remove()}},[]),f.useEffect(function(){ot.isHiddenScrollBar||yt(function(ht){var Ze,Lt;return Object(j.a)(Object(j.a)({},ht),{},{scrollLeft:Re.current.scrollLeft/((Ze=Re.current)===null||Ze===void 0?void 0:Ze.scrollWidth)*((Lt=Re.current)===null||Lt===void 0?void 0:Lt.clientWidth)})})},[ot.isHiddenScrollBar]),Se<=we||!$e||ot.isHiddenScrollBar?null:f.createElement("div",{style:{height:Object(pe.a)(),width:we,bottom:ye},className:"".concat(Ue,"-sticky-scroll")},f.createElement("div",{onMouseDown:ft,ref:Ke,className:se()("".concat(Ue,"-sticky-scroll-bar"),Object(w.a)({},"".concat(Ue,"-sticky-scroll-bar-active"),lt)),style:{width:"".concat($e,"px"),transform:"translate3d(".concat(ot.scrollLeft,"px, 0, 0)")}}))},Ne=f.forwardRef(Ie);function Le(N,be){return f.useMemo(function(){var ge=!!N;return{isSticky:ge,stickyClassName:ge?"".concat(be,"-sticky-header"):"",offsetHeader:Object(U.a)(N)==="object"&&N.offsetHeader||0,offsetScroll:Object(U.a)(N)==="object"&&N.offsetScroll||0}},[N,be])}var Nt=[],It={},At="rc-table-internal-hook",jt=f.memo(function(N){var be=N.children;return be},function(N,be){return k()(N.props,be.props)?N.pingLeft!==be.pingLeft||N.pingRight!==be.pingRight:!1});function Ft(N){var be,ge=N.prefixCls,Me=N.className,Ae=N.rowClassName,Re=N.style,xe=N.data,ye=N.rowKey,_e=N.scroll,Ue=N.tableLayout,Se=N.direction,we=N.title,$e=N.footer,Ke=N.summary,Qe=N.id,Et=N.showHeader,ot=N.components,yt=N.emptyText,Ye=N.onRow,wt=N.onHeaderRow,Mt=N.internalHooks,lt=N.transformColumns,zt=N.internalRefs,Jt=N.sticky,ft=xe||Nt,Gt=!!ft.length,Rt=f.useState(0),Ct=Object(r.a)(Rt,2),ht=Ct[0],Ze=Ct[1];f.useEffect(function(){Ze(Object(pe.a)())});var Lt=f.useMemo(function(){return Object(Y.c)(ot,{})},[ot]),Zt=f.useCallback(function(mt,pt){return Object(Y.b)(Lt,mt)||pt},[Lt]),qt=f.useMemo(function(){return typeof ye=="function"?ye:function(mt){var pt=mt&&mt[ye];return pt}},[ye]),Dt=Object(O.c)(N),Tn=Dt.expandIcon,nn=Dt.expandedRowKeys,ze=Dt.defaultExpandedRowKeys,Te=Dt.defaultExpandAllRows,Be=Dt.expandedRowRender,Ve=Dt.onExpand,it=Dt.onExpandedRowsChange,Ge=Dt.expandRowByClick,st=Dt.rowExpandable,Ut=Dt.expandIconColumnIndex,St=Dt.expandedRowClassName,_n=Dt.childrenColumnName,Qt=Dt.indentSize,cn=Tn||re,gn=_n||"children",dn=f.useMemo(function(){return Be?"row":N.expandable&&Mt===At&&N.expandable.__PARENT_RENDER_ICON__||ft.some(function(mt){return mt&&Object(U.a)(mt)==="object"&&mt[gn]})?"nest":!1},[!!Be,ft]),An=f.useState(function(){return ze||(Te?Ee(ft,qt,gn):[])}),Pt=Object(r.a)(An,2),fn=Pt[0],En=Pt[1],sn=f.useMemo(function(){return new Set(nn||fn||[])},[nn,fn]),pn=f.useCallback(function(mt){var pt=qt(mt,ft.indexOf(mt)),Vt,ln=sn.has(pt);ln?(sn.delete(pt),Vt=Object(je.a)(sn)):Vt=[].concat(Object(je.a)(sn),[pt]),En(Vt),Ve&&Ve(!ln,mt),it&&it(Vt)},[qt,sn,ft,Ve,it]),xn=f.useState(0),Xn=Object(r.a)(xn,2),Wn=Xn[0],$n=Xn[1],Ma=Object(ne.b)(Object(j.a)(Object(j.a)(Object(j.a)({},N),Dt),{},{expandable:!!Be,expandedKeys:sn,getRowKey:qt,onTriggerExpand:pn,expandIcon:cn,expandIconColumnIndex:Ut,direction:Se}),Mt===At?lt:null),Ra=Object(r.a)(Ma,2),Gn=Ra[0],Ht=Ra[1],Yn=f.useMemo(function(){return{columns:Gn,flattenColumns:Ht}},[Gn,Ht]),Jn=f.useRef(),Ta=f.useRef(),jn=f.useRef(),Ha=f.useState(!1),Sa=Object(r.a)(Ha,2),oa=Sa[0],Va=Sa[1],Xa=f.useState(!1),ra=Object(r.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=F(new Map),Pa=Object(r.a)(Ga,2),Ya=Pa[0],Ja=Pa[1],Sn=Object(Y.a)(Ht),ia=Sn.map(function(mt){return Ya.get(mt)}),Aa=f.useMemo(function(){return ia},[ia.join("_")]),sa=m(Aa,Ht.length,Se),hn=_e&&Object(Y.d)(_e.y),Mn=_e&&Object(Y.d)(_e.x),Rn=Mn&&Ht.some(function(mt){var pt=mt.fixed;return pt}),la=f.useRef(),Fn=Le(Jt,ge),zn=Fn.isSticky,Da=Fn.offsetHeader,Qa=Fn.offsetScroll,Na=Fn.stickyClassName,ua,Zn,wn;hn&&(Zn={overflowY:"scroll",maxHeight:_e.y}),Mn&&(ua={overflowX:"auto"},hn||(Zn={overflowY:"hidden"}),wn={width:_e.x===!0?"auto":_e.x,minWidth:"100%"});var Dn=f.useCallback(function(mt,pt){Ja(function(Vt){var ln=new Map(Vt);return ln.set(mt,pt),ln})},[]),qn=q(null),wa=Object(r.a)(qn,2),La=wa[0],Ua=wa[1];function ea(mt,pt){if(!pt)return;typeof pt=="function"?pt(mt):pt.scrollLeft!==mt&&(pt.scrollLeft=mt)}var Ln=function(pt){var Vt=pt.currentTarget,ln=pt.scrollLeft,Bn=typeof ln=="number"?ln:Vt.scrollLeft,Wa=Vt||It;if(!Ua()||Ua()===Wa){var ba;La(Wa),ea(Bn,Ta.current),ea(Bn,jn.current),ea(Bn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Vt){var Fa=Vt.scrollWidth,za=Vt.clientWidth;Va(Bn>0),$a(Bn0?[].concat(Object(j.a)(x),Object(j.a)(X(fe).map(function(Y){return Object(je.a)({fixed:ae},Y)}))):[].concat(Object(j.a)(x),[Object(je.a)(Object(je.a)({},ue),{},{fixed:ae})])},[])}function le(_){for(var x=!0,ue=0;ue<_.length;ue+=1){var V=_[ue];if(x&&V.fixed!=="left")x=!1;else if(!x&&V.fixed==="left"){Object(ce.a)(!1,"Index ".concat(ue-1," of `columns` missing `fixed='left'` prop."));break}}for(var ae=!0,fe=_.length-1;fe>=0;fe-=1){var Y=_[fe];if(ae&&Y.fixed!=="right")ae=!1;else if(!ae&&Y.fixed==="right"){Object(ce.a)(!1,"Index ".concat(fe+1," of `columns` missing `fixed='right'` prop."));break}}}function pe(_){return _.map(function(x){var ue=x.fixed,V=Object(U.a)(x,["fixed"]),ae=ue;return ue==="left"?ae="right":ue==="right"&&(ae="left"),Object(je.a)({fixed:ae},V)})}function Z(_,x){var ue=_.prefixCls,V=_.columns,ae=_.children,fe=_.expandable,Y=_.expandedKeys,he=_.getRowKey,R=_.onTriggerExpand,J=_.expandIcon,$=_.rowExpandable,g=_.expandIconColumnIndex,O=_.direction,d=_.expandRowByClick,I=r.useMemo(function(){return V||k(ae)},[V,ae]),z=r.useMemo(function(){if(fe){var te,P=g||0,L=I[P],y=(te={},Object(w.a)(te,K.a,{className:"".concat(ue,"-expand-icon-col")}),Object(w.a)(te,"title",""),Object(w.a)(te,"fixed",L?L.fixed:null),Object(w.a)(te,"className","".concat(ue,"-row-expand-icon-cell")),Object(w.a)(te,"render",function(h,M,G){var oe=he(M,G),D=Y.has(oe),B=$?$(M):!0,ne=J({prefixCls:ue,expanded:D,expandable:B,record:M,onExpand:R});return d?r.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},ne):ne}),te),p=I.slice();return P>=0&&p.splice(P,0,y),p}return I},[fe,I,he,Y,J,O]),Q=r.useMemo(function(){var te=z;return x&&(te=x(te)),te.length||(te=[{render:function(){return null}}]),te},[x,z,O]),Ce=r.useMemo(function(){return O==="rtl"?pe(X(Q)):X(Q)},[Q,O]);return[Q,Ce]}ve.b=Z},"y0+3":function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return X}),a.d(ve,"b",function(){return pe});var w=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},je={cssFloat:1,styleFloat:1,float:1};function U(Z){return Z.nodeType===1?Z.ownerDocument.defaultView.getComputedStyle(Z,null):{}}function r(Z,_,x){if(_=_.toLowerCase(),x==="auto"){if(_==="height")return Z.offsetHeight;if(_==="width")return Z.offsetWidth}return _ in j||(j[_]=w.test(_)),j[_]?parseFloat(x)||0:x}function f(Z,_){var x=arguments.length,ue=U(Z);return _=je[_]?"cssFloat"in Z.style?"cssFloat":"styleFloat":_,x===1?ue:r(Z,_,ue[_]||Z.style[_])}function ce(Z,_,x){var ue=arguments.length;if(_=je[_]?"cssFloat"in Z.style?"cssFloat":"styleFloat":_,ue===3)return typeof x=="number"&&w.test(_)&&(x="".concat(x,"px")),Z.style[_]=x,x;for(var V in _)_.hasOwnProperty(V)&&ce(Z,V,_[V]);return U(Z)}function se(Z){return Z===document.body?document.documentElement.clientWidth:Z.offsetWidth}function K(Z){return Z===document.body?window.innerHeight||document.documentElement.clientHeight:Z.offsetHeight}function k(){var Z=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Z,height:_}}function X(){var Z=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:Z,height:_}}function le(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function pe(Z){var _=Z.getBoundingClientRect(),x=document.documentElement;return{left:_.left+(window.pageXOffset||x.scrollLeft)-(x.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||x.scrollTop)-(x.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(M,",").concat(M," 0 1 1 ").concat(-D,",").concat(B),ie=Math.PI*2*M,ee={stroke:y,strokeDasharray:"".concat(L/100*(ie-A),"px ").concat(ie,"px"),strokeDashoffset:"-".concat(A/2+P/100*(ie-A),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ne,pathStyle:ee}}var Q=function(L){var y=L.prefixCls,p=L.strokeWidth,A=L.trailWidth,h=L.gapDegree,M=L.gapPosition,G=L.trailColor,oe=L.strokeLinecap,D=L.style,B=L.className,ne=L.strokeColor,ie=L.percent,ee=$(L,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),F=Object(w.useMemo)(function(){return O+=1,O},[]),q=z(0,100,G,p,h,M),n=q.pathString,m=q.pathStyle,s=I(ie),S=I(ne),H=S.find(function(Ie){return Object.prototype.toString.call(Ie)==="[object Object]"}),re=f(s),Ee=ae(re,1),Pe=Ee[0],ke=function(){var Ne=0;return s.map(function(Le,Nt){var It=S[Nt]||S[S.length-1],At=Object.prototype.toString.call(It)==="[object Object]"?"url(#".concat(y,"-gradient-").concat(F,")"):"",jt=z(Ne,Le,It,p,h,M);return Ne+=Le,j.a.createElement("path",{key:Nt,className:"".concat(y,"-circle-path"),d:jt.pathString,stroke:At,strokeLinecap:oe,strokeWidth:p,opacity:Le===0?0:1,fillOpacity:"0",style:jt.pathStyle,ref:Pe[Nt]})})};return j.a.createElement("svg",V({className:U()("".concat(y,"-circle"),B),viewBox:"0 0 100 100",style:D},ee),H&&j.a.createElement("defs",null,j.a.createElement("linearGradient",{id:"".concat(y,"-gradient-").concat(F),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(H).sort(function(Ie,Ne){return d(Ie)-d(Ne)}).map(function(Ie,Ne){return j.a.createElement("stop",{key:Ne,offset:Ie,stopColor:H[Ie]})}))),j.a.createElement("path",{className:"".concat(y,"-circle-trail"),d:n,stroke:G,strokeLinecap:oe,strokeWidth:A||p,fillOpacity:"0",style:m}),ke().reverse())};Q.defaultProps=r;var Ce=Q,te={Line:ue,Circle:Ce}},hW8S:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return U}),a.d(ve,"c",function(){return r}),a.d(ve,"b",function(){return f});var w=a("VTBJ"),j=a("Ff2n"),je=a("Kwbf"),U="RC_TABLE_INTERNAL_COL_DEFINE";function r(ce){var se=ce.expandable,K=Object(j.a)(ce,["expandable"]);return"expandable"in ce?Object(w.a)(Object(w.a)({},K),se):K}function f(ce){return Object.keys(ce).reduce(function(se,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-")&&(se[K]=ce[K]),se},{})}},k3GJ:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return po});var w=a("rePB"),j=a("ODXe"),je=a("Ff2n"),U=a("VTBJ"),r=a("q1tI"),f=a("TSYQ"),ce=a.n(f),se=a("Zm9Q"),K=a("6cGi"),k=a("KQm4"),X=a("xEkU"),le=a.n(X),pe=a("t23M");function Z(i){var v=Object(r.useRef)(),E=Object(r.useRef)(!1);function u(){for(var e=arguments.length,o=new Array(e),t=0;tR&&(de=R-me),Object(r.useMemo)(function(){if(!o.length)return[0,0];for(var Oe=o.length,He=Oe,tt=0;ttb+de){He=tt-1;break}}for(var at=0,nt=Oe-1;nt>=0;nt-=1){var qe=i.get(o[nt].key)||Y;if(qe[C]1&&arguments[1]!==void 0?arguments[1]:!1,u=v&&typeof v.getBoundingClientRect=="function"&&v.getBoundingClientRect().width;if(u){if(E){var e=getComputedStyle(v),o=e.marginLeft,t=e.marginRight;u+=+o.replace("px","")+ +t.replace("px","")}u=+u.toFixed(6)}return u||0},Ne=function(v,E,u){v&&Object(P.a)(v.style)==="object"&&(v.style[E]=u)},Le=function(){return s.any},Nt=a("bdgK"),It=a("i8i4"),At=a.n(It),jt=a("wgJM"),Ft=a("l4aY"),un=a("m+aA"),N=a("c+Xe"),be=a("zT1h"),ge=a("QC+M");function Me(i,v,E){return E?i[0]===v[0]:i[0]===v[0]&&i[1]===v[1]}function Ae(i,v,E){var u=i[v]||{};return Object(U.a)(Object(U.a)({},u),E)}function Te(i,v,E,u){for(var e=E.points,o=Object.keys(i),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;v();var o=Object(jt.a)(function(){e<=1?u({isCanceled:function(){return o!==i.current}}):E(u,e-1)});i.current=o}return r.useEffect(function(){return function(){v()}},[]),[E,v]},Rn=[Tt,Ct,ht,Ze],nn=!1,ze=!0;function Re(i){return i===ht||i===Ze}var Be=function(i,v){var E=r.useState(Gt),u=Object(j.a)(E,2),e=u[0],o=u[1],t=Dt(),l=Object(j.a)(t,2),c=l[0],C=l[1];function b(){o(Tt)}return qt(function(){if(e!==Gt&&e!==Ze){var R=Rn.indexOf(e),W=Rn[R+1],me=v(e);me===nn?o(W):c(function(de){function Oe(){if(de.isCanceled())return;o(W)}me===!0?Oe():Promise.resolve(me).then(Oe)})}},[i,e]),r.useEffect(function(){return function(){C()}},[]),[b,e]},Ve=function(i){var v=Object(r.useRef)(),E=Object(r.useRef)(i);E.current=i;var u=r.useCallback(function(t){E.current(t)},[]);function e(t){t&&(t.removeEventListener(wt,u),t.removeEventListener(Ye,u))}function o(t){v.current&&v.current!==t&&e(v.current),t&&t!==v.current&&(t.addEventListener(wt,u),t.addEventListener(Ye,u),v.current=t)}return r.useEffect(function(){return function(){e(v.current)}},[]),[o,e]};function it(i,v,E,u){var e=u.motionEnter,o=e===void 0?!0:e,t=u.motionAppear,l=t===void 0?!0:t,c=u.motionLeave,C=c===void 0?!0:c,b=u.motionDeadline,R=u.motionLeaveImmediately,W=u.onAppearPrepare,me=u.onEnterPrepare,de=u.onLeavePrepare,Oe=u.onAppearStart,He=u.onEnterStart,tt=u.onLeaveStart,Je=u.onAppearActive,at=u.onEnterActive,nt=u.onLeaveActive,qe=u.onAppearEnd,et=u.onEnterEnd,vt=u.onLeaveEnd,rt=u.onVisibleChanged,Xt=Lt(),_t=Object(j.a)(Xt,2),Fe=_t[0],We=_t[1],ut=Lt(lt),dt=Object(j.a)(ut,2),De=dt[0],bt=dt[1],Kt=Lt(null),gt=Object(j.a)(Kt,2),Rt=gt[0],Bt=gt[1],an=Object(r.useRef)(!1),vn=Object(r.useRef)(null),$t=Object(r.useRef)(!1),bn=Object(r.useRef)(null);function Pn(){var Wt=E();return Wt||bn.current}var yn=Object(r.useRef)(!1);function Cn(Wt){var Ot=Pn();if(Wt&&!Wt.deadline&&Wt.target!==Ot)return;var rn;De===zt&&yn.current?rn=qe==null?void 0:qe(Ot,Wt):De===Jt&&yn.current?rn=et==null?void 0:et(Ot,Wt):De===ft&&yn.current&&(rn=vt==null?void 0:vt(Ot,Wt)),rn!==!1&&!$t.current&&(bt(lt),Bt(null))}var Yt=Ve(Cn),mn=Object(j.a)(Yt,1),on=mn[0],en=r.useMemo(function(){var Wt,Ot,rn;switch(De){case"appear":return Wt={},Object(w.a)(Wt,Tt,W),Object(w.a)(Wt,Ct,Oe),Object(w.a)(Wt,ht,Je),Wt;case"enter":return Ot={},Object(w.a)(Ot,Tt,me),Object(w.a)(Ot,Ct,He),Object(w.a)(Ot,ht,at),Ot;case"leave":return rn={},Object(w.a)(rn,Tt,de),Object(w.a)(rn,Ct,tt),Object(w.a)(rn,ht,nt),rn;default:return{}}},[De]),kn=Be(De,function(Wt){if(Wt===Tt){var Ot=en[Tt];return Ot?Ot(Pn()):nn}if(kt in en){var rn;Bt(((rn=en[kt])===null||rn===void 0?void 0:rn.call(en,Pn(),null))||null)}return kt===ht&&(on(Pn()),b>0&&(clearTimeout(vn.current),vn.current=setTimeout(function(){Cn({deadline:!0})},b))),ze}),In=Object(j.a)(kn,2),Hn=In[0],kt=In[1],Nn=Re(kt);yn.current=Nn,qt(function(){We(v);var Wt=an.current;if(an.current=!0,!i)return;var Ot;!Wt&&v&&l&&(Ot=zt),Wt&&v&&o&&(Ot=Jt),(Wt&&!v&&C||!Wt&&R&&!v&&C)&&(Ot=ft),Ot&&(bt(Ot),Hn())},[v]),Object(r.useEffect)(function(){(De===zt&&!l||De===Jt&&!o||De===ft&&!C)&&bt(lt)},[l,o,C]),Object(r.useEffect)(function(){return function(){clearTimeout(vn.current),$t.current=!0}},[]),Object(r.useEffect)(function(){Fe!==void 0&&De===lt&&(rt==null||rt(Fe))},[Fe,De]);var Vn=Rt;return en[Tt]&&kt===Ct&&(Vn=Object(U.a)({transition:"none"},Vn)),[De,kt,Vn,Fe!=null?Fe:v]}var Ge=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){return Object(J.a)(this,E),v.apply(this,arguments)}return Object($.a)(E,[{key:"render",value:function(){return this.props.children}}]),E}(r.Component),st=Ge;function Ut(i){var v=i;Object(P.a)(i)==="object"&&(v=i.transitionSupport);function E(e){return!!(e.motionName&&v)}var u=r.forwardRef(function(e,o){var t=e.visible,l=t===void 0?!0:t,c=e.removeOnLeave,C=c===void 0?!0:c,b=e.forceRender,R=e.children,W=e.motionName,me=e.leavedClassName,de=e.eventProps,Oe=E(e),He=Object(r.useRef)(),tt=Object(r.useRef)();function Je(){try{return Object(un.a)(He.current||tt.current)}catch(bt){return null}}var at=it(Oe,l,Je,e),nt=Object(j.a)(at,4),qe=nt[0],et=nt[1],vt=nt[2],rt=nt[3],Xt=r.useRef(rt);rt&&(Xt.current=!0);var _t=Object(r.useRef)(o);_t.current=o;var Fe=r.useCallback(function(bt){He.current=bt,Object(N.b)(_t.current,bt)},[]),We,ut=Object(U.a)(Object(U.a)({},de),{},{visible:l});if(!R)We=null;else if(qe===lt||!E(e))rt?We=R(Object(U.a)({},ut),Fe):!C&&Xt.current?We=R(Object(U.a)(Object(U.a)({},ut),{},{className:me}),Fe):b?We=R(Object(U.a)(Object(U.a)({},ut),{},{style:{display:"none"}}),Fe):We=null;else{var dt,De;et===Tt?De="prepare":Re(et)?De="active":et===Ct&&(De="start"),We=R(Object(U.a)(Object(U.a)({},ut),{},{className:ce()(Mt(W,qe),(dt={},Object(w.a)(dt,Mt(W,"".concat(qe,"-").concat(De)),De),Object(w.a)(dt,W,typeof W=="string"),dt)),style:vt}),Fe)}return r.createElement(st,{ref:tt},We)});return u.displayName="CSSMotion",u}var St=Ut(yt),_n="add",Qt="keep",cn="remove",gn="removed";function dn(i){var v;return i&&Object(P.a)(i)==="object"&&"key"in i?v=i:v={key:i},Object(U.a)(Object(U.a)({},v),{},{key:String(v.key)})}function An(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return i.map(dn)}function Pt(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],E=[],u=0,e=v.length,o=An(i),t=An(v);o.forEach(function(C){for(var b=!1,R=u;R1});return c.forEach(function(C){E=E.filter(function(b){var R=b.key,W=b.status;return R!==C||W!==cn}),E.forEach(function(b){b.key===C&&(b.status=Qt)})}),E}var fn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function En(i){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St,E=function(u){Object(O.a)(o,u);var e=Object(d.a)(o);function o(){var t;return Object(J.a)(this,o),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(l){t.setState(function(c){var C=c.keyEntities;return{keyEntities:C.map(function(b){return b.key!==l?b:Object(U.a)(Object(U.a)({},b),{},{status:gn})})}})},t}return Object($.a)(o,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,C=this.props,b=C.component,R=C.children,W=C.onVisibleChanged,me=Object(je.a)(C,["component","children","onVisibleChanged"]),de=b||r.Fragment,Oe={};return fn.forEach(function(He){Oe[He]=me[He],delete me[He]}),delete me.keys,r.createElement(de,me,c.map(function(He){var tt=He.status,Je=Object(je.a)(He,["status"]),at=tt===_n||tt===Qt;return r.createElement(v,Object(T.a)({},Oe,{key:Je.key,visible:at,eventProps:Je,onVisibleChanged:function(qe){W==null||W(qe,{key:Je.key}),qe||l.removeKey(Je.key)}}),R)}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var C=l.keys,b=c.keyEntities,R=An(C),W=Pt(b,R);return{keyEntities:W.filter(function(me){var de=b.find(function(Oe){var He=Oe.key;return me.key===He});return!(de&&de.status===gn&&me.status===cn)})}}}]),o}(r.Component);return E.defaultProps={component:"div"},E}var sn=En(yt),pn=St;function xn(i){var v=i.prefixCls,E=i.motion,u=i.animation,e=i.transitionName;return E||(u?{motionName:"".concat(v,"-").concat(u)}:e?{motionName:e}:null)}function Xn(i){var v=i.prefixCls,E=i.visible,u=i.zIndex,e=i.mask,o=i.maskMotion,t=i.maskAnimation,l=i.maskTransitionName;if(!e)return null;var c={};return(o||l||t)&&(c=Object(U.a)({motionAppear:!0},xn({motion:o,prefixCls:v,transitionName:l,animation:t}))),r.createElement(pn,Object(T.a)({},c,{visible:E,removeOnLeave:!0}),function(C){var b=C.className;return r.createElement("div",{style:{zIndex:u},className:ce()("".concat(v,"-mask"),b)})})}var Wn=a("9mu1"),$n=a("o0o1"),Ma=a.n($n),Ta=a("HaE+"),Gn=["measure","align",null,"motion"],Ht=function(i,v){var E=Object(r.useState)(null),u=Object(j.a)(E,2),e=u[0],o=u[1],t=Object(r.useRef)(),l=Object(r.useRef)(!1);function c(R){l.current||o(R)}function C(){jt.a.cancel(t.current)}function b(R){C(),t.current=Object(jt.a)(function(){c(function(W){switch(e){case"align":return"motion";case"motion":return"stable";default:}return W}),R==null||R()})}return Object(r.useEffect)(function(){c("measure")},[i]),Object(r.useEffect)(function(){switch(e){case"measure":v();break;default:}e&&(t.current=Object(jt.a)(Object(Ta.a)(Ma.a.mark(function R(){var W,me;return Ma.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:W=Gn.indexOf(e),me=Gn[W+1],me&&W!==-1&&c(me);case 3:case"end":return Oe.stop()}},R)}))))},[e]),Object(r.useEffect)(function(){return function(){l.current=!0,C()}},[]),[e,b]},Yn=function(i){var v=r.useState({width:0,height:0}),E=Object(j.a)(v,2),u=E[0],e=E[1];function o(l){e({width:l.offsetWidth,height:l.offsetHeight})}var t=r.useMemo(function(){var l={};if(i){var c=u.width,C=u.height;i.indexOf("height")!==-1&&C?l.height=C:i.indexOf("minHeight")!==-1&&C&&(l.minHeight=C),i.indexOf("width")!==-1&&c?l.width=c:i.indexOf("minWidth")!==-1&&c&&(l.minWidth=c)}return l},[i,u]);return[t,o]},Jn=r.forwardRef(function(i,v){var E=i.visible,u=i.prefixCls,e=i.className,o=i.style,t=i.children,l=i.zIndex,c=i.stretch,C=i.destroyPopupOnHide,b=i.forceRender,R=i.align,W=i.point,me=i.getRootDomNode,de=i.getClassNameFromAlign,Oe=i.onAlign,He=i.onMouseEnter,tt=i.onMouseLeave,Je=i.onMouseDown,at=i.onTouchStart,nt=Object(r.useRef)(),qe=Object(r.useRef)(),et=Object(r.useState)(),vt=Object(j.a)(et,2),rt=vt[0],Xt=vt[1],_t=Yn(c),Fe=Object(j.a)(_t,2),We=Fe[0],ut=Fe[1];function dt(){c&&ut(me())}var De=Ht(E,dt),bt=Object(j.a)(De,2),Kt=bt[0],gt=bt[1],Rt=Object(r.useRef)();function Bt(){return W||me}function an(){var Yt;(Yt=nt.current)===null||Yt===void 0||Yt.forceAlign()}function vn(Yt,mn){var on=de(mn);rt!==on&&Xt(on),Kt==="align"&&(rt!==on?Promise.resolve().then(function(){an()}):gt(function(){var en;(en=Rt.current)===null||en===void 0||en.call(Rt)}),Oe==null||Oe(Yt,mn))}var $t=Object(U.a)({},xn(i));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Yt){var mn=$t[Yt];$t[Yt]=function(on,en){return gt(),mn==null?void 0:mn(on,en)}});function bn(){return new Promise(function(Yt){Rt.current=Yt})}r.useEffect(function(){!$t.motionName&&Kt==="motion"&>()},[$t.motionName,Kt]),r.useImperativeHandle(v,function(){return{forceAlign:an,getElement:function(){return qe.current}}});var Pn=Object(U.a)(Object(U.a)({},We),{},{zIndex:l,opacity:Kt==="motion"||Kt==="stable"||!E?void 0:0,pointerEvents:Kt==="stable"?void 0:"none"},o),yn=!0;(R==null?void 0:R.points)&&(Kt==="align"||Kt==="stable")&&(yn=!1);var Cn=t;return r.Children.count(t)>1&&(Cn=r.createElement("div",{className:"".concat(u,"-content")},t)),r.createElement(pn,Object(T.a)({visible:E,ref:qe,leavedClassName:"".concat(u,"-hidden")},$t,{onAppearPrepare:bn,onEnterPrepare:bn,removeOnLeave:C,forceRender:b}),function(Yt,mn){var on=Yt.className,en=Yt.style,kn=ce()(u,e,rt,on);return r.createElement(Wn.a,{target:Bt(),key:"popup",ref:nt,monitorWindowResize:!0,disabled:yn,align:R,onAlign:vn},r.createElement("div",{ref:mn,className:kn,onMouseEnter:He,onMouseLeave:tt,onMouseDownCapture:Je,onTouchStartCapture:at,style:Object(U.a)(Object(U.a)({},en),Pn)},Cn))})});Jn.displayName="PopupInner";var Ra=Jn,jn=r.forwardRef(function(i,v){var E=i.prefixCls,u=i.visible,e=i.zIndex,o=i.children,t=i.mobile;t=t===void 0?{}:t;var l=t.popupClassName,c=t.popupStyle,C=t.popupMotion,b=C===void 0?{}:C,R=t.popupRender,W=r.useRef();r.useImperativeHandle(v,function(){return{forceAlign:function(){},getElement:function(){return W.current}}});var me=Object(U.a)({zIndex:e},c),de=o;return r.Children.count(o)>1&&(de=r.createElement("div",{className:"".concat(E,"-content")},o)),R&&(de=R(de)),r.createElement(pn,Object(T.a)({visible:u,ref:W,removeOnLeave:!0},b),function(Oe,He){var tt=Oe.className,Je=Oe.style,at=ce()(E,l,tt);return r.createElement("div",{ref:He,className:at,style:Object(U.a)(Object(U.a)({},Je),me)},de)})});jn.displayName="MobilePopupInner";var Ha=jn,Sa=["visible","mobile"],oa=r.forwardRef(function(i,v){var E=i.visible,u=i.mobile,e=Object(je.a)(i,Sa),o=Object(r.useState)(E),t=Object(j.a)(o,2),l=t[0],c=t[1],C=Object(r.useState)(!1),b=Object(j.a)(C,2),R=b[0],W=b[1],me=Object(U.a)(Object(U.a)({},e),{},{visible:l});Object(r.useEffect)(function(){c(E),E&&u&&W(xe())},[E,u]);var de=R?r.createElement(Ha,Object(T.a)({},me,{mobile:u,ref:v})):r.createElement(Ra,Object(T.a)({},me,{ref:v}));return r.createElement("div",null,r.createElement(Xn,me),de)});oa.displayName="Popup";var Va=oa,Xa=r.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(i){return i?i.ownerDocument:window.document}var Pa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(i){var v=function(E){Object(O.a)(e,E);var u=Object(d.a)(e);function e(o){var t;Object(J.a)(this,e),t=u.call(this,o),t.popupRef=r.createRef(),t.triggerRef=r.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(c){var C=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",c),t.delaySetPopupVisible(!0,C,C?null:c)},t.onMouseMove=function(c){t.fireEvents("onMouseMove",c),t.setPoint(c)},t.onMouseLeave=function(c){t.fireEvents("onMouseLeave",c),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(c){var C;if(c.relatedTarget&&!c.relatedTarget.setTimeout&&Object(Ft.a)((C=t.popupRef.current)===null||C===void 0?void 0:C.getElement(),c.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(c){t.fireEvents("onFocus",c),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(c){t.fireEvents("onMouseDown",c),t.preClickTime=Date.now()},t.onTouchStart=function(c){t.fireEvents("onTouchStart",c),t.preTouchTime=Date.now()},t.onBlur=function(c){t.fireEvents("onBlur",c),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(c){c.preventDefault(),t.fireEvents("onContextMenu",c),t.setPopupVisible(!0,c)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(c){if(t.fireEvents("onClick",c),t.focusTime){var C;if(t.preClickTime&&t.preTouchTime?C=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?C=t.preClickTime:t.preTouchTime&&(C=t.preTouchTime),Math.abs(C-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var b=!t.state.popupVisible;(t.isClickToHide()&&!b||b&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,c)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var c;(c=t.context).onPopupMouseDown.apply(c,arguments)}},t.onDocumentClick=function(c){if(t.props.mask&&!t.props.maskClosable)return;var C=c.target,b=t.getRootDomNode(),R=t.getPopupDomNode();(!Object(Ft.a)(b,C)||t.isContextMenuOnly())&&!Object(Ft.a)(R,C)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var c=t.props.getTriggerDOMNode;if(c)return c(t.triggerRef.current);try{var C=Object(un.a)(t.triggerRef.current);if(C)return C}catch(b){}return At.a.findDOMNode(Object(g.a)(t))},t.getPopupClassNameFromAlign=function(c){var C=[],b=t.props,R=b.popupPlacement,W=b.builtinPlacements,me=b.prefixCls,de=b.alignPoint,Oe=b.getPopupClassNameFromAlign;return R&&W&&C.push(Te(W,me,c,de)),Oe&&C.push(Oe(c)),C.join(" ")},t.getComponent=function(){var c=t.props,C=c.prefixCls,b=c.destroyPopupOnHide,R=c.popupClassName,W=c.onPopupAlign,me=c.popupMotion,de=c.popupAnimation,Oe=c.popupTransitionName,He=c.popupStyle,tt=c.mask,Je=c.maskAnimation,at=c.maskTransitionName,nt=c.maskMotion,qe=c.zIndex,et=c.popup,vt=c.stretch,rt=c.alignPoint,Xt=c.mobile,_t=c.forceRender,Fe=t.state,We=Fe.popupVisible,ut=Fe.point,dt=t.getPopupAlign(),De={};return t.isMouseEnterToShow()&&(De.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(De.onMouseLeave=t.onPopupMouseLeave),De.onMouseDown=t.onPopupMouseDown,De.onTouchStart=t.onPopupMouseDown,r.createElement(Va,Object(T.a)({prefixCls:C,destroyPopupOnHide:b,visible:We,point:rt&&ut,className:R,align:dt,onAlign:W,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},De,{stretch:vt,getRootDomNode:t.getRootDomNode,style:He,mask:tt,zIndex:qe,transitionName:Oe,maskAnimation:Je,maskTransitionName:at,maskMotion:nt,ref:t.popupRef,motion:me,mobile:Xt,forceRender:_t}),typeof et=="function"?et():et)},t.attachParent=function(c){jt.a.cancel(t.attachId);var C=t.props,b=C.getPopupContainer,R=C.getDocument,W=t.getRootDomNode(),me;b?(W||b.length===0)&&(me=b(W)):me=R(t.getRootDomNode()).body,me?me.appendChild(c):t.attachId=Object(jt.a)(function(){t.attachParent(c)})},t.getContainer=function(){var c=t.props.getDocument,C=c(t.getRootDomNode()).createElement("div");return C.style.position="absolute",C.style.top="0",C.style.left="0",C.style.width="100%",t.attachParent(C),C},t.setPoint=function(c){var C=t.props.alignPoint;if(!C||!c)return;t.setState({point:{pageX:c.pageX,pageY:c.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var l;return"popupVisible"in o?l=!!o.popupVisible:l=!!o.defaultPopupVisible,t.state={prevPopupVisible:l,popupVisible:l},Pa.forEach(function(c){t["fire".concat(c)]=function(C){t.fireEvents(c,C)}}),t}return Object($.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,l=this.state;if(l.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(be.a)(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(be.a)(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(be.a)(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(be.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),jt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,l=t.popupPlacement,c=t.popupAlign,C=t.builtinPlacements;return l&&C?Ae(C,l,c):c}},{key:"setPopupVisible",value:function(t,l){var c=this.props.alignPoint,C=this.state.popupVisible;this.clearDelayTimer(),C!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:C}),this.props.onPopupVisibleChange(t)),c&&l&&t&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(t,l,c){var C=this,b=l*1e3;if(this.clearDelayTimer(),b){var R=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){C.setPopupVisible(t,R),C.clearDelayTimer()},b)}else this.setPopupVisible(t,c)}},{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(t){var l=this.props.children.props,c=this.props;return l[t]&&c[t]?this["fire".concat(t)]:l[t]||c[t]}},{key:"isClickToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,l=t.action,c=t.showAction;return l.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,l=t.action,c=t.hideAction;return l.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,l){var c=this.props.children.props[t];c&&c(l);var C=this.props[t];C&&C(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,l=this.props,c=l.children,C=l.forceRender,b=l.alignPoint,R=l.className,W=l.autoDestroy,me=r.Children.only(c),de={key:"trigger"};this.isContextMenuToShow()?de.onContextMenu=this.onContextMenu:de.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(de.onClick=this.onClick,de.onMouseDown=this.onMouseDown,de.onTouchStart=this.onTouchStart):(de.onClick=this.createTwoChains("onClick"),de.onMouseDown=this.createTwoChains("onMouseDown"),de.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(de.onMouseEnter=this.onMouseEnter,b&&(de.onMouseMove=this.onMouseMove)):de.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?de.onMouseLeave=this.onMouseLeave:de.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(de.onFocus=this.onFocus,de.onBlur=this.onBlur):(de.onFocus=this.createTwoChains("onFocus"),de.onBlur=this.createTwoChains("onBlur"));var Oe=ce()(me&&me.props&&me.props.className,R);Oe&&(de.className=Oe);var He=Object(U.a)({},de);Object(N.c)(me)&&(He.ref=Object(N.a)(this.triggerRef,me.ref));var tt=r.cloneElement(me,He),Je;return(t||this.popupRef.current||C)&&(Je=r.createElement(i,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&W&&(Je=null),r.createElement(ra.Provider,{value:this.triggerContextValue},tt,Je)}}],[{key:"getDerivedStateFromProps",value:function(t,l){var c=t.popupVisible,C={};return c!==void 0&&l.popupVisible!==c&&(C.popupVisible=c,C.prevPopupVisible=l.popupVisible),C}}]),e}(r.Component);return v.contextType=ra,v.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},v}var Ja=Ya(ge.a),Sn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:Sn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Sn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Sn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Sn,offset:[4,0]}},Aa={topLeft:{points:["bl","tl"],overflow:Sn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Sn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Sn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Sn,offset:[4,0]}},sa=ia,hn=0,Mn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Tn=function(v,E,u){var e=re(E),o=v.getState();v.setState({defaultActiveFirst:Object(U.a)(Object(U.a)({},o.defaultActiveFirst),{},Object(w.a)({},e,u))})},la=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;Object(J.a)(this,E),e=v.call(this,u),e.onDestroy=function(b){e.props.onDestroy(b)},e.onKeyDown=function(b){var R=b.keyCode,W=e.menuInstance,me=e.props.store,de=e.getVisible();if(R===x.a.ENTER)return e.onTitleClick(b),Tn(me,e.props.eventKey,!0),!0;if(R===x.a.RIGHT)return de?W.onKeyDown(b):(e.triggerOpenChange(!0),Tn(me,e.props.eventKey,!0)),!0;if(R===x.a.LEFT){var Oe;if(de)Oe=W.onKeyDown(b);else return;return Oe||(e.triggerOpenChange(!1),Oe=!0),Oe}return de&&(R===x.a.UP||R===x.a.DOWN)?W.onKeyDown(b):void 0},e.onOpenChange=function(b){e.props.onOpenChange(b)},e.onPopupVisibleChange=function(b){e.triggerOpenChange(b,b?"mouseenter":"mouseleave")},e.onMouseEnter=function(b){var R=e.props,W=R.eventKey,me=R.onMouseEnter,de=R.store;Tn(de,e.props.eventKey,!1),me({key:W,domEvent:b})},e.onMouseLeave=function(b){var R=e.props,W=R.parentMenu,me=R.eventKey,de=R.onMouseLeave;W.subMenuInstance=Object(g.a)(e),de({key:me,domEvent:b})},e.onTitleMouseEnter=function(b){var R=e.props,W=R.eventKey,me=R.onItemHover,de=R.onTitleMouseEnter;me({key:W,hover:!0}),de({key:W,domEvent:b})},e.onTitleMouseLeave=function(b){var R=e.props,W=R.parentMenu,me=R.eventKey,de=R.onItemHover,Oe=R.onTitleMouseLeave;W.subMenuInstance=Object(g.a)(e),de({key:me,hover:!1}),Oe({key:me,domEvent:b})},e.onTitleClick=function(b){var R=Object(g.a)(e),W=R.props;if(W.onTitleClick({key:W.eventKey,domEvent:b}),W.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),Tn(W.store,e.props.eventKey,!1)},e.onSubMenuClick=function(b){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(b))},e.onSelect=function(b){e.props.onSelect(b)},e.onDeselect=function(b){e.props.onDeselect(b)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(b){e.menuInstance=b},e.addKeyPath=function(b){return Object(U.a)(Object(U.a)({},b),{},{keyPath:(b.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(b,R){var W=e.props.eventKey,me=function(){e.onOpenChange({key:W,item:Object(g.a)(e),trigger:R,open:b})};R==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){me()},0):me()},e.isChildrenSelected=function(){var b={find:!1};return Pe(e.props.children,e.props.selectedKeys,b),b.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var b=It.findDOMNode(e.menuInstance);if(b.offsetWidth>=e.subMenuTitle.offsetWidth)return;b.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(b){e.subMenuTitle=b},e.getBaseProps=function(){var b=Object(g.a)(e),R=b.props,W=e.getMode();return{mode:W==="horizontal"?"vertical":W,visible:e.getVisible(),level:R.level+1,inlineIndent:R.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:R.selectedKeys,eventKey:"".concat(R.eventKey,"-menu-"),openKeys:R.openKeys,motion:R.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:R.subMenuOpenDelay,parentMenu:Object(g.a)(e),subMenuCloseDelay:R.subMenuCloseDelay,forceSubMenuRender:R.forceSubMenuRender,triggerSubMenuAction:R.triggerSubMenuAction,builtinPlacements:R.builtinPlacements,defaultActiveFirst:R.store.getState().defaultActiveFirst[re(R.eventKey)],multiple:R.multiple,prefixCls:R.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:R.itemIcon,expandIcon:R.expandIcon,direction:R.direction}},e.getMotion=function(b,R){var W=Object(g.a)(e),me=W.haveRendered,de=e.props,Oe=de.motion,He=de.rootPrefixCls,tt=Object(U.a)(Object(U.a)({},Oe),{},{leavedClassName:"".concat(He,"-hidden"),removeOnLeave:!1,motionAppear:me||!R||b!=="inline"});return tt};var o=u.store,t=u.eventKey,l=o.getState(),c=l.defaultActiveFirst;e.isRootMenu=!1;var C=!1;return c&&(C=c[t]),Tn(o,t,C),e.state={mode:u.mode,isOpen:u.isOpen},e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,o=this.props,t=o.mode,l=o.parentMenu,c=o.manualRef,C=o.isOpen,b=function(){e.setState({mode:t,isOpen:C})},R=C!==this.state.isOpen,W=t!==this.state.mode;if((W||R)&&(jt.a.cancel(this.updateStateRaf),W?this.updateStateRaf=Object(jt.a)(b):b()),c&&c(this),t!=="horizontal"||!(l==null?void 0:l.isRootMenu)||!C)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,o=e.onDestroy,t=e.eventKey;o&&o(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),jt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,o){var t=this.getBaseProps();return r.createElement(ea,Object(T.a)({},t,{id:this.internalMenuId,className:e,style:o}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,o=this.getBaseProps(),t=o.mode,l=o.visible,c=o.forceSubMenuRender,C=o.direction,b=this.getMotion(t,l);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||l||c,!this.haveOpened)return r.createElement("div",null);var R=ce()("".concat(o.prefixCls,"-sub"),Object(w.a)({},"".concat(o.prefixCls,"-rtl"),C==="rtl"));return this.isInlineMode()?r.createElement(pn,Object(T.a)({visible:o.visible,forceRender:c},b),function(W){var me=W.className,de=W.style,Oe=ce()(R,me);return e.renderPopupMenu(Oe,de)}):this.renderPopupMenu(R)}},{key:"render",value:function(){var e,o,t,l=Object(U.a)({},this.props),c=this.getVisible(),C=this.getPrefixCls(),b=this.isInlineMode(),R=this.getMode(),W=ce()(C,"".concat(C,"-").concat(R),(e={},Object(w.a)(e,l.className,!!l.className),Object(w.a)(e,this.getOpenClassName(),c),Object(w.a)(e,this.getActiveClassName(),l.active||c&&!b),Object(w.a)(e,this.getDisabledClassName(),l.disabled),Object(w.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(l.eventKey?this.internalMenuId="".concat(l.eventKey,"$Menu"):(hn+=1,this.internalMenuId="$__$".concat(hn,"$Menu")));var me={},de={},Oe={};l.disabled||(me={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Oe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var He={},tt=l.direction,Je=tt==="rtl";b&&(Je?He.paddingRight=l.inlineIndent*l.level:He.paddingLeft=l.inlineIndent*l.level);var at={};this.getVisible()&&(at={"aria-owns":this.internalMenuId});var nt=null;R!=="horizontal"&&(nt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(nt=r.createElement(this.props.expandIcon,Object(U.a)({},this.props))));var qe=r.createElement("div",Object(T.a)({ref:this.saveSubMenuTitle,style:He,className:"".concat(C,"-title"),role:"button"},Oe,de,{"aria-expanded":c},at,{"aria-haspopup":"true",title:typeof l.title=="string"?l.title:void 0}),l.title,nt||r.createElement("i",{className:"".concat(C,"-arrow")})),et=this.renderChildren(),vt=((o=l.parentMenu)===null||o===void 0?void 0:o.isRootMenu)?l.parentMenu.props.getPopupContainer:function(Bt){return Bt.parentNode},rt=Mn[R],Xt=l.popupOffset?{offset:l.popupOffset}:{},_t=ce()((t={},Object(w.a)(t,l.popupClassName,l.popupClassName&&!b),Object(w.a)(t,"".concat(C,"-rtl"),Je),t)),Fe=l.disabled,We=l.triggerSubMenuAction,ut=l.subMenuOpenDelay,dt=l.forceSubMenuRender,De=l.subMenuCloseDelay,bt=l.builtinPlacements;ke.forEach(function(Bt){return delete l[Bt]}),delete l.onClick;var Kt=Je?Object(U.a)(Object(U.a)({},Aa),bt):Object(U.a)(Object(U.a)({},ia),bt);delete l.direction;var gt=this.getBaseProps(),Rt=b?null:this.getMotion(gt.mode,gt.visible);return r.createElement("li",Object(T.a)({},l,me,{className:W,role:"menuitem"}),r.createElement(Ja,{prefixCls:C,popupClassName:ce()("".concat(C,"-popup"),_t),getPopupContainer:vt,builtinPlacements:Kt,popupPlacement:rt,popupVisible:b?!1:c,popupAlign:Xt,popup:b?null:et,action:Fe||b?[]:[We],mouseEnterDelay:ut,mouseLeaveDelay:De,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:dt,popupMotion:Rt},qe),b?et:null)}}]),E}(r.Component);la.defaultProps={onMouseEnter:S,onMouseLeave:S,onTitleMouseEnter:S,onTitleMouseLeave:S,onTitleClick:S,manualRef:S,mode:"vertical",title:""};var Fn=Object(I.b)(function(i,v){var E=i.openKeys,u=i.activeKey,e=i.selectedKeys,o=v.eventKey,t=v.subMenuKey;return{isOpen:E.indexOf(o)>-1,active:u[t]===o,selectedKeys:e}})(la);Fn.isSubMenu=!0;var zn=Fn,Da="menuitem-overflowed",Qa=.5,Na=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.resizeObserver=null,u.mutationObserver=null,u.originalTotalWidth=0,u.overflowedItems=[],u.menuItemSizes=[],u.cancelFrameId=null,u.state={lastVisibleIndex:void 0},u.childRef=r.createRef(),u.getMenuItemNodes=function(){var e=u.props.prefixCls,o=u.childRef.current;return o?[].slice.call(o.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},u.getOverflowedSubMenuItem=function(e,o,t){var l=u.props,c=l.overflowedIndicator,C=l.level,b=l.mode,R=l.prefixCls,W=l.theme;if(C!==1||b!=="horizontal")return null;var me=u.props.children[0],de=me.props,Oe=de.children,He=de.title,tt=de.style,Je=Object(je.a)(de,["children","title","style"]),at=Object(U.a)({},tt),nt="".concat(e,"-overflowed-indicator"),qe="".concat(e,"-overflowed-indicator");o.length===0&&t!==!0?at=Object(U.a)(Object(U.a)({},at),{},{display:"none"}):t&&(at=Object(U.a)(Object(U.a)({},at),{},{visibility:"hidden",position:"absolute"}),nt="".concat(nt,"-placeholder"),qe="".concat(qe,"-placeholder"));var et=W?"".concat(R,"-").concat(W):"",vt={};return ke.forEach(function(rt){Je[rt]!==void 0&&(vt[rt]=Je[rt])}),r.createElement(zn,Object(T.a)({title:c,className:"".concat(R,"-overflowed-submenu"),popupClassName:et},vt,{key:nt,eventKey:qe,disabled:!1,style:at}),o)},u.setChildrenWidthAndResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var o=e.children;if(!o||o.length===0)return;var t=e.children[o.length-1];Ne(t,"display","inline-block");var l=u.getMenuItemNodes(),c=l.filter(function(C){return C.className.split(" ").indexOf(Da)>=0});c.forEach(function(C){Ne(C,"display","inline-block")}),u.menuItemSizes=l.map(function(C){return Ie(C,!0)}),c.forEach(function(C){Ne(C,"display","none")}),u.overflowedIndicatorWidth=Ie(e.children[e.children.length-1],!0),u.originalTotalWidth=u.menuItemSizes.reduce(function(C,b){return C+b},0),u.handleResize(),Ne(t,"display","none")},u.handleResize=function(){if(u.props.mode!=="horizontal")return;var e=u.childRef.current;if(!e)return;var o=Ie(e);u.overflowedItems=[];var t=0,l;u.originalTotalWidth>o+Qa&&(l=-1,u.menuItemSizes.forEach(function(c){t+=c,t+u.overflowedIndicatorWidth<=o&&(l+=1)})),u.setState({lastVisibleIndex:l})},u}return Object($.a)(E,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var o=this.childRef.current;if(!o)return;this.resizeObserver=new Nt.default(function(t){t.forEach(function(){var l=e.cancelFrameId;cancelAnimationFrame(l),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(o.children).concat(o).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(o,{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(e){var o=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(l,c,C){var b=c;if(o.props.mode==="horizontal"){var R=o.getOverflowedSubMenuItem(c.props.eventKey,[]);t!==void 0&&o.props.className.indexOf("".concat(o.props.prefixCls,"-root"))!==-1&&(C>t&&(b=r.cloneElement(c,{style:{display:"none"},eventKey:"".concat(c.props.eventKey,"-hidden"),className:"".concat(Da)})),C===t+1&&(o.overflowedItems=e.slice(t+1).map(function(me){return r.cloneElement(me,{key:me.props.eventKey,mode:"vertical-left"})}),R=o.getOverflowedSubMenuItem(c.props.eventKey,o.overflowedItems)));var W=[].concat(Object(k.a)(l),[R,b]);return C===e.length-1&&W.push(o.getOverflowedSubMenuItem(c.props.eventKey,[],!0)),W}return[].concat(Object(k.a)(l),[b])},[])}},{key:"render",value:function(){var e=this.props,o=e.visible,t=e.prefixCls,l=e.overflowedIndicator,c=e.mode,C=e.level,b=e.tag,R=e.children,W=e.theme,me=Object(je.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=b;return r.createElement(de,Object(T.a)({ref:this.childRef},me),this.renderChildren(R))}}]),E}(r.Component);Na.defaultProps={tag:"div",className:""};var ua=Na;function Zn(i){return i.length?i.every(function(v){return!!v.props.disabled}):!0}function wn(i,v,E){var u=i.getState();i.setState({activeKey:Object(U.a)(Object(U.a)({},u.activeKey),{},Object(w.a)({},v,E))})}function Dn(i){return i.eventKey||"0-menu-"}function qn(i,v){var E=v,u=i.children,e=i.eventKey;if(E){var o;if(Ee(u,function(t,l){t&&t.props&&!t.props.disabled&&E===H(t,e,l)&&(o=!0)}),o)return E}return E=null,i.defaultActiveFirst&&Ee(u,function(t,l){!E&&t&&!t.props.disabled&&(E=H(t,e,l))}),E}function wa(i){if(!i)return;var v=this.instanceArray.indexOf(i);v!==-1?this.instanceArray[v]=i:this.instanceArray.push(i)}var La=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;return Object(J.a)(this,E),e=v.call(this,u),e.onKeyDown=function(o,t){var l=o.keyCode,c;if(e.getFlatInstanceArray().forEach(function(b){b&&b.props.active&&b.onKeyDown&&(c=b.onKeyDown(o))}),c)return 1;var C=null;return(l===x.a.UP||l===x.a.DOWN)&&(C=e.step(l===x.a.UP?-1:1)),C?(o.preventDefault(),wn(e.props.store,Dn(e.props),C.props.eventKey),typeof t=="function"&&t(C),1):void 0},e.onItemHover=function(o){var t=o.key,l=o.hover;wn(e.props.store,Dn(e.props),l?t:null)},e.onDeselect=function(o){e.props.onDeselect(o)},e.onSelect=function(o){e.props.onSelect(o)},e.onClick=function(o){e.props.onClick(o)},e.onOpenChange=function(o){e.props.onOpenChange(o)},e.onDestroy=function(o){e.props.onDestroy(o)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(o){var t=e.getFlatInstanceArray(),l=e.props.store.getState().activeKey[Dn(e.props)],c=t.length;if(!c)return null;o<0&&(t=t.concat().reverse());var C=-1;if(t.every(function(me,de){return me&&me.props.eventKey===l?(C=de,!1):!0}),!e.props.defaultActiveFirst&&C!==-1&&Zn(t.slice(C,c-1)))return;var b=(C+1)%c,R=b;do{var W=t[R];if(!W||W.props.disabled)R=(R+1)%c;else return W}while(R!==b);return null},e.renderCommonMenuItem=function(o,t,l){var c=e.props.store.getState(),C=Object(g.a)(e),b=C.props,R=H(o,b.eventKey,t),W=o.props;if(!W||typeof o.type=="string")return o;var me=R===c.activeKey,de=Object(U.a)(Object(U.a)({mode:W.mode||b.mode,level:b.level,inlineIndent:b.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:b.prefixCls,index:t,parentMenu:b.parentMenu,manualRef:W.disabled?void 0:Object(Q.a)(o.ref,wa.bind(Object(g.a)(e))),eventKey:R,active:!W.disabled&&me,multiple:b.multiple,onClick:function(He){(W.onClick||S)(He),e.onClick(He)},onItemHover:e.onItemHover,motion:b.motion,subMenuOpenDelay:b.subMenuOpenDelay,subMenuCloseDelay:b.subMenuCloseDelay,forceSubMenuRender:b.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:b.builtinPlacements,itemIcon:W.itemIcon||e.props.itemIcon,expandIcon:W.expandIcon||e.props.expandIcon},l),{},{direction:b.direction});return(b.mode==="inline"||Le())&&(de.triggerSubMenuAction="click"),r.cloneElement(o,Object(U.a)(Object(U.a)({},de),{},{key:R||t}))},e.renderMenuItem=function(o,t,l){if(!o)return null;var c=e.props.store.getState(),C={openKeys:c.openKeys,selectedKeys:c.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:l};return e.renderCommonMenuItem(o,t,C)},u.store.setState({activeKey:Object(U.a)(Object(U.a)({},u.store.getState().activeKey),{},Object(w.a)({},u.eventKey,qn(u,u.activeKey)))}),e.instanceArray=[],e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!te()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var o=this.props,t="activeKey"in o?o.activeKey:o.store.getState().activeKey[Dn(o)],l=qn(o,t);if(l!==t)wn(o.store,Dn(o),l);else if("activeKey"in e){var c=qn(e,e.activeKey);l!==c&&wn(o.store,Dn(o),l)}}},{key:"render",value:function(){var e=this,o=Object(T.a)({},this.props);this.instanceArray=[];var t=ce()(o.prefixCls,o.className,"".concat(o.prefixCls,"-").concat(o.mode)),l={className:t,role:o.role||"menu"};o.id&&(l.id=o.id),o.focusable&&(l.tabIndex=0,l.onKeyDown=this.onKeyDown);var c=o.prefixCls,C=o.eventKey,b=o.visible,R=o.level,W=o.mode,me=o.overflowedIndicator,de=o.theme;return ke.forEach(function(Oe){return delete o[Oe]}),delete o.onClick,r.createElement(ua,Object(T.a)({},o,{prefixCls:c,mode:W,tag:"ul",level:R,theme:de,visible:b,overflowedIndicator:me},l),Object(se.a)(o.children).map(function(Oe,He){return e.renderMenuItem(Oe,He,C||"0-menu-")}))}}]),E}(r.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:S};var Ua=Object(I.b)()(La),ea=Ua,Ln=a("Kwbf");function ca(i,v,E){var u=i.prefixCls,e=i.motion,o=i.defaultMotions,t=o===void 0?{}:o,l=i.openAnimation,c=i.openTransitionName,C=v.switchingModeFromInline;if(e)return e;if(Object(P.a)(l)==="object"&&l)Object(Ln.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof l=="string")return{motionName:"".concat(u,"-open-").concat(l)};if(c)return{motionName:c};var b=t[E];return b||(C?null:t.other)}var ka=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(u){var e;Object(J.a)(this,E),e=v.call(this,u),e.onSelect=function(l){var c=Object(g.a)(e),C=c.props;if(C.selectable){var b=e.store.getState(),R=b.selectedKeys,W=l.key;C.multiple?R=R.concat([W]):R=[W],"selectedKeys"in C||e.store.setState({selectedKeys:R}),C.onSelect(Object(U.a)(Object(U.a)({},l),{},{selectedKeys:R}))}},e.onClick=function(l){var c=e.getRealMenuMode(),C=Object(g.a)(e),b=C.store,R=C.props.onOpenChange;c!=="inline"&&!("openKeys"in e.props)&&(b.setState({openKeys:[]}),R([])),e.props.onClick(l)},e.onKeyDown=function(l,c){e.innerMenu.getWrappedInstance().onKeyDown(l,c)},e.onOpenChange=function(l){var c=Object(g.a)(e),C=c.props,b=e.store.getState().openKeys.concat(),R=!1,W=function(de){var Oe=!1;if(de.open)Oe=b.indexOf(de.key)===-1,Oe&&b.push(de.key);else{var He=b.indexOf(de.key);Oe=He!==-1,Oe&&b.splice(He,1)}R=R||Oe};Array.isArray(l)?l.forEach(W):W(l),R&&("openKeys"in e.props||e.store.setState({openKeys:b}),C.onOpenChange(b))},e.onDeselect=function(l){var c=Object(g.a)(e),C=c.props;if(C.selectable){var b=e.store.getState().selectedKeys.concat(),R=l.key,W=b.indexOf(R);W!==-1&&b.splice(W,1),"selectedKeys"in C||e.store.setState({selectedKeys:b}),C.onDeselect(Object(U.a)(Object(U.a)({},l),{},{selectedKeys:b}))}},e.onMouseEnter=function(l){e.restoreModeVerticalFromInline();var c=e.props.onMouseEnter;c&&c(l)},e.onTransitionEnd=function(l){var c=l.propertyName==="width"&&l.target===l.currentTarget,C=l.target.className,b=Object.prototype.toString.call(C)==="[object SVGAnimatedString]"?C.animVal:C,R=l.propertyName==="font-size"&&b.indexOf("anticon")>=0;(c||R)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(l){e.innerMenu=l},e.isRootMenu=!0;var o=u.defaultSelectedKeys,t=u.defaultOpenKeys;return"selectedKeys"in u&&(o=u.selectedKeys||[]),"openKeys"in u&&(t=u.openKeys||[]),e.store=Object(I.c)({selectedKeys:o,openKeys:t,activeKey:{"0-menu-":qn(u,u.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:u,inlineOpenKeys:[],store:e.store},e}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var o=this.props,t=o.siderCollapsed,l=o.inlineCollapsed,c=o.onOpenChange;(!e.inlineCollapsed&&l||!e.siderCollapsed&&t)&&c([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,o=this.store,t=this.prevOpenKeys,l=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");l?(this.prevOpenKeys=o.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,o=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return o&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,o=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:o}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(U.a)({},Object(z.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),o=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(U.a)(Object(U.a)({},e),{},{mode:o,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,o)}),delete e.openAnimation,delete e.openTransitionName,r.createElement(I.a,{store:this.store},r.createElement(ea,Object(T.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var t=o.prevProps,l=o.store,c=l.getState(),C={},b={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(b.switchingModeFromInline=!0),"openKeys"in e?C.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(b.switchingModeFromInline=!0,b.inlineOpenKeys=c.openKeys,C.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(C.openKeys=o.inlineOpenKeys,b.inlineOpenKeys=[])),Object.keys(C).length&&l.setState(C),b}}]),E}(r.Component);ka.defaultProps={selectable:!0,onClick:S,onSelect:S,onOpenChange:S,onDeselect:S,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:r.createElement("span",null,"\xB7\xB7\xB7")};var Ia=ka,Un=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.onKeyDown=function(e){var o=e.keyCode;return o===x.a.ENTER?(u.onClick(e),!0):void 0},u.onMouseLeave=function(e){var o=u.props,t=o.eventKey,l=o.onItemHover,c=o.onMouseLeave;l({key:t,hover:!1}),c({key:t,domEvent:e})},u.onMouseEnter=function(e){var o=u.props,t=o.eventKey,l=o.onItemHover,c=o.onMouseEnter;l({key:t,hover:!0}),c({key:t,domEvent:e})},u.onClick=function(e){var o=u.props,t=o.eventKey,l=o.multiple,c=o.onClick,C=o.onSelect,b=o.onDeselect,R=o.isSelected,W={key:t,keyPath:[t],item:Object(g.a)(u),domEvent:e};c(W),l?R?b(W):C(W):R||C(W)},u.saveNode=function(e){u.node=e},u}return Object($.a)(E,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,o=Object(U.a)({},this.props),t=ce()(this.getPrefixCls(),o.className,(e={},Object(w.a)(e,this.getActiveClassName(),!o.disabled&&o.active),Object(w.a)(e,this.getSelectedClassName(),o.isSelected),Object(w.a)(e,this.getDisabledClassName(),o.disabled),e)),l=Object(U.a)(Object(U.a)({},o.attribute),{},{title:typeof o.title=="string"?o.title:void 0,className:t,role:o.role||"menuitem","aria-disabled":o.disabled});o.role==="option"?l=Object(U.a)(Object(U.a)({},l),{},{role:"option","aria-selected":o.isSelected}):(o.role===null||o.role==="none")&&(l.role="none");var c={onClick:o.disabled?null:this.onClick,onMouseLeave:o.disabled?null:this.onMouseLeave,onMouseEnter:o.disabled?null:this.onMouseEnter},C=Object(U.a)({},o.style);o.mode==="inline"&&(o.direction==="rtl"?C.paddingRight=o.inlineIndent*o.level:C.paddingLeft=o.inlineIndent*o.level),ke.forEach(function(R){return delete o[R]}),delete o.direction;var b=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(b=r.createElement(this.props.itemIcon,this.props)),r.createElement("li",Object(T.a)({},Object(z.a)(o,["onClick","onMouseEnter","onMouseLeave","onSelect"]),l,c,{style:C,ref:this.saveNode}),o.children,b)}}]),E}(r.Component);Un.isMenuItem=!0,Un.defaultProps={onSelect:S,onMouseEnter:S,onMouseLeave:S,manualRef:S};var da=Object(I.b)(function(i,v){var E=i.activeKey,u=i.selectedKeys,e=v.eventKey,o=v.subMenuKey;return{active:E[o]===e,isSelected:Array.isArray(u)?u.indexOf(e)!==-1:u===e}})(Un),fa=da,ma=function(i){Object(O.a)(E,i);var v=Object(d.a)(E);function E(){var u;return Object(J.a)(this,E),u=v.apply(this,arguments),u.renderInnerMenuItem=function(e){var o=u.props,t=o.renderMenuItem,l=o.index;return t(e,l,u.props.subMenuKey)},u}return Object($.a)(E,[{key:"render",value:function(){var e=Object(T.a)({},this.props),o=e.className,t=o===void 0?"":o,l=e.rootPrefixCls,c="".concat(l,"-item-group-title"),C="".concat(l,"-item-group-list"),b=e.title,R=e.children;return ke.forEach(function(W){return delete e[W]}),delete e.direction,r.createElement("li",Object(T.a)({},e,{onClick:function(me){return me.stopPropagation()},className:"".concat(t," ").concat(l,"-item-group")}),r.createElement("div",{className:c,title:typeof b=="string"?b:void 0},b),r.createElement("ul",{className:C},r.Children.map(R,this.renderInnerMenuItem)))}}]),E}(r.Component);ma.isMenuItemGroup=!0,ma.defaultProps={disabled:!0};var Za=ma,pa=function(v){var E=v.className,u=v.rootPrefixCls,e=v.style;return r.createElement("li",{className:"".concat(E," ").concat(u,"-item-divider"),style:e})};pa.defaultProps={disabled:!0,className:"",style:{}};var qa=pa,Ka=Ia,ha=a("eDIo");function eo(i,v){var E=i.prefixCls,u=i.editable,e=i.locale,o=i.style;return!u||u.showAdd===!1?null:r.createElement("button",{ref:v,type:"button",className:"".concat(E,"-nav-add"),style:o,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(l){u.onEdit("add",{event:l})}},u.addIcon||"+")}var ta=r.forwardRef(eo);function to(i,v){var E=i.prefixCls,u=i.id,e=i.tabs,o=i.locale,t=i.mobile,l=i.moreIcon,c=l===void 0?"More":l,C=i.moreTransitionName,b=i.style,R=i.className,W=i.editable,me=i.tabBarGutter,de=i.rtl,Oe=i.onTabClick,He=Object(r.useState)(!1),tt=Object(j.a)(He,2),Je=tt[0],at=tt[1],nt=Object(r.useState)(null),qe=Object(j.a)(nt,2),et=qe[0],vt=qe[1],rt="".concat(u,"-more-popup"),Xt="".concat(E,"-dropdown"),_t=et!==null?"".concat(rt,"-").concat(et):null,Fe=o==null?void 0:o.dropdownAriaLabel,We=r.createElement(Ka,{onClick:function(Rt){var Bt=Rt.key,an=Rt.domEvent;Oe(Bt,an),at(!1)},id:rt,tabIndex:-1,role:"listbox","aria-activedescendant":_t,selectedKeys:[et],"aria-label":Fe!==void 0?Fe:"expanded dropdown"},e.map(function(gt){return r.createElement(fa,{key:gt.key,id:"".concat(rt,"-").concat(gt.key),role:"option","aria-controls":u&&"".concat(u,"-panel-").concat(gt.key),disabled:gt.disabled},gt.tab)}));function ut(gt){for(var Rt=e.filter(function(bn){return!bn.disabled}),Bt=Rt.findIndex(function(bn){return bn.key===et})||0,an=Rt.length,vn=0;vnbt?(dt=We,rt.current="x"):(dt=ut,rt.current="y");var Kt=Date.now();Kt-et.current>100&&(vt.current=!1),(v(-dt,-dt)||vt.current)&&(Fe.preventDefault(),vt.current=!0),et.current=Kt}var _t=Object(r.useRef)(null);_t.current={onTouchStart:at,onTouchMove:nt,onTouchEnd:qe,onWheel:Xt},r.useEffect(function(){function Fe(De){_t.current.onTouchStart(De)}function We(De){_t.current.onTouchMove(De)}function ut(De){_t.current.onTouchEnd(De)}function dt(De){_t.current.onWheel(De)}return document.addEventListener("touchmove",We,{passive:!1}),document.addEventListener("touchend",ut,{passive:!1}),i.current.addEventListener("touchstart",Fe,{passive:!1}),i.current.addEventListener("wheel",dt),function(){document.removeEventListener("touchmove",We),document.removeEventListener("touchend",ut)}},[])}function ba(){var i=Object(r.useRef)(new Map);function v(u){return i.current.has(u)||i.current.set(u,r.createRef()),i.current.get(u)}function E(u){i.current.delete(u)}return[v,E]}function Fa(i,v){var E=r.useRef(i),u=r.useState({}),e=Object(j.a)(u,2),o=e[1];function t(l){var c=typeof l=="function"?l(E.current):l;c!==E.current&&v(c,E.current),E.current=c,o({})}return[E.current,t]}var za=function(v){var E=v.position,u=v.prefixCls,e=v.extra;if(!e)return null;var o,t=e;return E==="right"&&(o=t.right||!t.left&&t||null),E==="left"&&(o=t.left||null),o?r.createElement("div",{className:"".concat(u,"-extra-content")},o):null};function Fo(i,v){var E,u=r.useContext(va),e=u.prefixCls,o=u.tabs,t=i.className,l=i.style,c=i.id,C=i.animated,b=i.activeKey,R=i.rtl,W=i.extra,me=i.editable,de=i.locale,Oe=i.tabPosition,He=i.tabBarGutter,tt=i.children,Je=i.onTabClick,at=i.onTabScroll,nt=Object(r.useRef)(),qe=Object(r.useRef)(),et=Object(r.useRef)(),vt=Object(r.useRef)(),rt=ba(),Xt=Object(j.a)(rt,2),_t=Xt[0],Fe=Xt[1],We=Oe==="top"||Oe==="bottom",ut=Fa(0,function(xt,ct){We&&at&&at({direction:xt>ct?"left":"right"})}),dt=Object(j.a)(ut,2),De=dt[0],bt=dt[1],Kt=Fa(0,function(xt,ct){!We&&at&&at({direction:xt>ct?"top":"bottom"})}),gt=Object(j.a)(Kt,2),Rt=gt[0],Bt=gt[1],an=Object(r.useState)(0),vn=Object(j.a)(an,2),$t=vn[0],bn=vn[1],Pn=Object(r.useState)(0),yn=Object(j.a)(Pn,2),Cn=yn[0],Yt=yn[1],mn=Object(r.useState)(0),on=Object(j.a)(mn,2),en=on[0],kn=on[1],In=Object(r.useState)(0),Hn=Object(j.a)(In,2),kt=Hn[0],Nn=Hn[1],Vn=Object(r.useState)(null),Wt=Object(j.a)(Vn,2),Ot=Wt[0],rn=Wt[1],Xo=Object(r.useState)(null),bo=Object(j.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(r.useState)(0),go=Object(j.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(r.useState)(0),Eo=Object(j.a)(Qo,2),Zo=Eo[0],qo=Eo[1],er=_(new Map),yo=Object(j.a)(er,2),tr=yo[0],nr=yo[1],Ba=fe(o,tr,$t),Co="".concat(e,"-nav-operations-hidden"),ga=0,Ea=0;We?R?(ga=0,Ea=Math.max(0,$t-Ot)):(ga=Math.min(0,Ot-$t),Ea=0):(ga=Math.min(0,na-Cn),Ea=0);function ao(xt){return xtEa?[Ea,!1]:[xt,!0]}var Oo=Object(r.useRef)(),ar=Object(r.useState)(),_o=Object(j.a)(ar,2),oo=_o[0],xo=_o[1];function ro(){xo(Date.now())}function io(){window.clearTimeout(Oo.current)}Wa(nt,function(xt,ct){var tn=!1;function On(Ca,Oa){Ca(function(_a){var xa=ao(_a+Oa),aa=Object(j.a)(xa,2),co=aa[0],fo=aa[1];return tn=fo,co})}if(We){if(Ot>=$t)return tn;On(bt,xt)}else{if(na>=Cn)return tn;On(Bt,ct)}return io(),ro(),tn}),Object(r.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){xo(0)},100)),io},[oo]);function jo(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b,ct=Ba.get(xt);if(!ct)return;if(We){var tn=De;R?ct.rightDe+Ot&&(tn=ct.right+ct.width-Ot):ct.left<-De?tn=-ct.left:ct.left+ct.width>-De+Ot&&(tn=-(ct.left+ct.width-Ot)),Bt(0),bt(ao(tn)[0])}else{var On=Rt;ct.top<-Rt?On=-ct.top:ct.top+ct.height>-Rt+na&&(On=-(ct.top+ct.height-na)),bt(0),Bt(ao(On)[0])}}var or=he(Ba,{width:Ot,height:na,left:De,top:Rt},{width:en,height:kt},{width:Yo,height:Zo},Object(U.a)(Object(U.a)({},i),{},{tabs:o})),Mo=Object(j.a)(or,2),rr=Mo[0],ir=Mo[1],sr=o.map(function(xt){var ct=xt.key;return r.createElement(V,{id:c,prefixCls:e,key:ct,rtl:R,tab:xt,closable:xt.closable,editable:me,active:ct===b,tabPosition:Oe,tabBarGutter:He,renderWrapper:tt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:_t(ct),onClick:function(On){Je(ct,On)},onRemove:function(){Fe(ct)},onFocus:function(){jo(ct),ro(),R||(nt.current.scrollLeft=0),nt.current.scrollTop=0}})}),so=Z(function(){var xt,ct,tn,On,Ca,Oa,_a,xa,aa,co=((xt=nt.current)===null||xt===void 0?void 0:xt.offsetWidth)||0,fo=((ct=nt.current)===null||ct===void 0?void 0:ct.offsetHeight)||0,wo=((tn=vt.current)===null||tn===void 0?void 0:tn.offsetWidth)||0,Lo=((On=vt.current)===null||On===void 0?void 0:On.offsetHeight)||0,mr=((Ca=et.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,pr=((Oa=et.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;rn(co),$o(fo),Jo(wo),qo(Lo);var Uo=(((_a=qe.current)===null||_a===void 0?void 0:_a.offsetWidth)||0)-wo,ko=(((xa=qe.current)===null||xa===void 0?void 0:xa.offsetHeight)||0)-Lo;bn(Uo),Yt(ko);var Io=(aa=et.current)===null||aa===void 0?void 0:aa.className.includes(Co);kn(Uo-(Io?0:mr)),Nn(ko-(Io?0:pr)),nr(function(){var Ko=new Map;return o.forEach(function(hr){var Wo=hr.key,ja=_t(Wo).current;ja&&Ko.set(Wo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=o.slice(0,rr),ur=o.slice(ir+1),To=[].concat(Object(k.a)(lr),Object(k.a)(ur)),cr=Object(r.useState)(),Ro=Object(j.a)(cr,2),dr=Ro[0],fr=Ro[1],Kn=Ba.get(b),So=Object(r.useRef)();function Po(){le.a.cancel(So.current)}Object(r.useEffect)(function(){var xt={};return Kn&&(We?(R?xt.right=Kn.right:xt.left=Kn.left,xt.width=Kn.width):(xt.top=Kn.top,xt.height=Kn.height)),Po(),So.current=le()(function(){fr(xt)}),Po},[Kn,We,R]),Object(r.useEffect)(function(){jo()},[b,Kn,Ba,We]),Object(r.useEffect)(function(){so()},[R,He,b,o.map(function(xt){return xt.key}).join("_")]);var Ao=!!To.length,ya="".concat(e,"-nav-wrap"),lo,uo,Do,No;return We?R?(uo=De>0,lo=De+Ot<$t):(lo=De<0,uo=-De+Ot<$t):(Do=Rt<0,No=-Rt+na1)Object(k.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(fe.length===0)return Object(k.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Y=fe[0];if(f.isValidElement(Y)&&Object(X.c)(Y)){var he=Y.ref;fe[0]=f.cloneElement(Y,{ref:Object(X.a)(he,this.setChildNode)})}return fe.length===1?fe[0]:fe.map(function(T,J){return!f.isValidElement(T)||"key"in T&&T.key!==null?T:f.cloneElement(T,{key:"".concat(pe,"-").concat(J)})})}}]),ue}(f.Component);Z.displayName="ResizeObserver",ve.a=Z},wCXF:function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return At});var w=a("rePB"),j=a("VTBJ"),je=a("KQm4"),U=a("U8pU"),r=a("ODXe"),f=a("q1tI"),ce=a("TSYQ"),se=a.n(ce),K=a("Gytx"),k=a.n(K),X=a("Kwbf"),le=a("t23M"),pe=a("qx4F"),Z=a("6eGT"),_=a("IBYe"),x=a("Ff2n"),ue=a("c+Xe"),V=a("fyJ8"),ae=a("biw7");function fe(N,be,ge,Me,Ae){var Te=ge[N]||{},xe=ge[be]||{},ye,_e;Te.fixed==="left"?ye=Me.left[N]:xe.fixed==="right"&&(_e=Me.right[be]);var Ue=!1,Se=!1,we=!1,$e=!1,Ke=ge[be+1],Qe=ge[N-1];if(Ae==="rtl"){if(ye!==void 0){var Et=Qe&&Qe.fixed==="left";$e=!Et}else if(_e!==void 0){var ot=Ke&&Ke.fixed==="right";we=!ot}}else if(ye!==void 0){var yt=Ke&&Ke.fixed==="left";Ue=!yt}else if(_e!==void 0){var Ye=Qe&&Qe.fixed==="right";Se=!Ye}return{fixLeft:ye,fixRight:_e,lastFixLeft:Ue,firstFixRight:Se,lastFixRight:we,firstFixLeft:$e,isSticky:Me.isSticky}}var Y=a("sR1s");function he(N){var be=N.cells,ge=N.stickyOffsets,Me=N.flattenColumns,Ae=N.rowComponent,Te=N.cellComponent,xe=N.onHeaderRow,ye=N.index,_e=f.useContext(ae.a),Ue=_e.prefixCls,Se=_e.direction,we;xe&&(we=xe(be.map(function(Ke){return Ke.column}),ye));var $e=Object(Y.a)(be.map(function(Ke){return Ke.column}));return f.createElement(Ae,Object.assign({},we),be.map(function(Ke,Qe){var Et=Ke.column,ot=fe(Ke.colStart,Ke.colEnd,Me,ge,Se),yt;return Et&&Et.onHeaderCell&&(yt=Ke.column.onHeaderCell(Et)),f.createElement(V.a,Object.assign({},Ke,{ellipsis:Et.ellipsis,align:Et.align,component:Te,prefixCls:Ue,key:$e[Qe]},ot,{additionalProps:yt,rowType:"header"}))}))}he.displayName="HeaderRow";var T=he;function J(N){var be=[];function ge(xe,ye){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;be[_e]=be[_e]||[];var Ue=ye,Se=xe.filter(Boolean).map(function(we){var $e={key:we.key,className:we.className||"",children:we.title,column:we,colStart:Ue},Ke=1,Qe=we.children;return Qe&&Qe.length>0&&(Ke=ge(Qe,Ue,_e+1).reduce(function(Et,ot){return Et+ot},0),$e.hasSubColumns=!0),"colSpan"in we&&(Ke=we.colSpan),"rowSpan"in we&&($e.rowSpan=we.rowSpan),$e.colSpan=Ke,$e.colEnd=$e.colStart+Ke-1,be[_e].push($e),Ue+=Ke,Ke});return Se}ge(N,0);for(var Me=be.length,Ae=function(ye){be[ye].forEach(function(_e){!("rowSpan"in _e)&&!_e.hasSubColumns&&(_e.rowSpan=Me-ye)})},Te=0;Te=0;ye-=1){var _e=be[ye],Ue=ge&&ge[ye],Se=Ue&&Ue[O.a];(_e||Se||xe)&&(Ae.unshift(f.createElement("col",Object.assign({key:ye,style:{width:_e,minWidth:_e}},Se))),xe=!0)}return f.createElement("colgroup",null,Ae)}var I=d;function z(N,be){return Object(f.useMemo)(function(){for(var ge=[],Me=0;Me1?sn-1:0),xn=1;xn=we&&(Dt=we-$e),xe({scrollLeft:Dt/we*(Se+2)}),Ye.current.x=Ze.pageX},Tt=function(){var Ze=Object(ke.b)(Te.current).top,Lt=Ze+Te.current.offsetHeight,Zt=document.documentElement.scrollTop+window.innerHeight;Lt-Object(pe.a)()<=Zt||Ze>=Zt-ye?yt(function(qt){return Object(j.a)(Object(j.a)({},qt),{},{isHiddenScrollBar:!0})}):yt(function(qt){return Object(j.a)(Object(j.a)({},qt),{},{isHiddenScrollBar:!1})})},Ct=function(Ze){yt(function(Lt){return Object(j.a)(Object(j.a)({},Lt),{},{scrollLeft:Ze/Se*we||0})})};return f.useImperativeHandle(ge,function(){return{setScrollLeft:Ct}}),f.useEffect(function(){var ht=Object(Pe.a)(document.body,"mouseup",Jt,!1),Ze=Object(Pe.a)(document.body,"mousemove",Gt,!1);return Tt(),function(){ht.remove(),Ze.remove()}},[$e,lt]),f.useEffect(function(){var ht=Object(Pe.a)(window,"scroll",Tt,!1),Ze=Object(Pe.a)(window,"resize",Tt,!1);return function(){ht.remove(),Ze.remove()}},[]),f.useEffect(function(){ot.isHiddenScrollBar||yt(function(ht){var Ze,Lt;return Object(j.a)(Object(j.a)({},ht),{},{scrollLeft:Te.current.scrollLeft/((Ze=Te.current)===null||Ze===void 0?void 0:Ze.scrollWidth)*((Lt=Te.current)===null||Lt===void 0?void 0:Lt.clientWidth)})})},[ot.isHiddenScrollBar]),Se<=we||!$e||ot.isHiddenScrollBar?null:f.createElement("div",{style:{height:Object(pe.a)(),width:we,bottom:ye},className:"".concat(Ue,"-sticky-scroll")},f.createElement("div",{onMouseDown:ft,ref:Ke,className:se()("".concat(Ue,"-sticky-scroll-bar"),Object(w.a)({},"".concat(Ue,"-sticky-scroll-bar-active"),lt)),style:{width:"".concat($e,"px"),transform:"translate3d(".concat(ot.scrollLeft,"px, 0, 0)")}}))},Ne=f.forwardRef(Ie);function Le(N,be){return f.useMemo(function(){var ge=!!N;return{isSticky:ge,stickyClassName:ge?"".concat(be,"-sticky-header"):"",offsetHeader:Object(U.a)(N)==="object"&&N.offsetHeader||0,offsetScroll:Object(U.a)(N)==="object"&&N.offsetScroll||0}},[N,be])}var Nt=[],It={},At="rc-table-internal-hook",jt=f.memo(function(N){var be=N.children;return be},function(N,be){return k()(N.props,be.props)?N.pingLeft!==be.pingLeft||N.pingRight!==be.pingRight:!1});function Ft(N){var be,ge=N.prefixCls,Me=N.className,Ae=N.rowClassName,Te=N.style,xe=N.data,ye=N.rowKey,_e=N.scroll,Ue=N.tableLayout,Se=N.direction,we=N.title,$e=N.footer,Ke=N.summary,Qe=N.id,Et=N.showHeader,ot=N.components,yt=N.emptyText,Ye=N.onRow,wt=N.onHeaderRow,Mt=N.internalHooks,lt=N.transformColumns,zt=N.internalRefs,Jt=N.sticky,ft=xe||Nt,Gt=!!ft.length,Tt=f.useState(0),Ct=Object(r.a)(Tt,2),ht=Ct[0],Ze=Ct[1];f.useEffect(function(){Ze(Object(pe.a)())});var Lt=f.useMemo(function(){return Object(Y.c)(ot,{})},[ot]),Zt=f.useCallback(function(mt,pt){return Object(Y.b)(Lt,mt)||pt},[Lt]),qt=f.useMemo(function(){return typeof ye=="function"?ye:function(mt){var pt=mt&&mt[ye];return pt}},[ye]),Dt=Object(O.c)(N),Rn=Dt.expandIcon,nn=Dt.expandedRowKeys,ze=Dt.defaultExpandedRowKeys,Re=Dt.defaultExpandAllRows,Be=Dt.expandedRowRender,Ve=Dt.onExpand,it=Dt.onExpandedRowsChange,Ge=Dt.expandRowByClick,st=Dt.rowExpandable,Ut=Dt.expandIconColumnIndex,St=Dt.expandedRowClassName,_n=Dt.childrenColumnName,Qt=Dt.indentSize,cn=Rn||re,gn=_n||"children",dn=f.useMemo(function(){return Be?"row":N.expandable&&Mt===At&&N.expandable.__PARENT_RENDER_ICON__||ft.some(function(mt){return mt&&Object(U.a)(mt)==="object"&&mt[gn]})?"nest":!1},[!!Be,ft]),An=f.useState(function(){return ze||(Re?Ee(ft,qt,gn):[])}),Pt=Object(r.a)(An,2),fn=Pt[0],En=Pt[1],sn=f.useMemo(function(){return new Set(nn||fn||[])},[nn,fn]),pn=f.useCallback(function(mt){var pt=qt(mt,ft.indexOf(mt)),Vt,ln=sn.has(pt);ln?(sn.delete(pt),Vt=Object(je.a)(sn)):Vt=[].concat(Object(je.a)(sn),[pt]),En(Vt),Ve&&Ve(!ln,mt),it&&it(Vt)},[qt,sn,ft,Ve,it]),xn=f.useState(0),Xn=Object(r.a)(xn,2),Wn=Xn[0],$n=Xn[1],Ma=Object(ne.b)(Object(j.a)(Object(j.a)(Object(j.a)({},N),Dt),{},{expandable:!!Be,expandedKeys:sn,getRowKey:qt,onTriggerExpand:pn,expandIcon:cn,expandIconColumnIndex:Ut,direction:Se}),Mt===At?lt:null),Ta=Object(r.a)(Ma,2),Gn=Ta[0],Ht=Ta[1],Yn=f.useMemo(function(){return{columns:Gn,flattenColumns:Ht}},[Gn,Ht]),Jn=f.useRef(),Ra=f.useRef(),jn=f.useRef(),Ha=f.useState(!1),Sa=Object(r.a)(Ha,2),oa=Sa[0],Va=Sa[1],Xa=f.useState(!1),ra=Object(r.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=F(new Map),Pa=Object(r.a)(Ga,2),Ya=Pa[0],Ja=Pa[1],Sn=Object(Y.a)(Ht),ia=Sn.map(function(mt){return Ya.get(mt)}),Aa=f.useMemo(function(){return ia},[ia.join("_")]),sa=m(Aa,Ht.length,Se),hn=_e&&Object(Y.d)(_e.y),Mn=_e&&Object(Y.d)(_e.x),Tn=Mn&&Ht.some(function(mt){var pt=mt.fixed;return pt}),la=f.useRef(),Fn=Le(Jt,ge),zn=Fn.isSticky,Da=Fn.offsetHeader,Qa=Fn.offsetScroll,Na=Fn.stickyClassName,ua,Zn,wn;hn&&(Zn={overflowY:"scroll",maxHeight:_e.y}),Mn&&(ua={overflowX:"auto"},hn||(Zn={overflowY:"hidden"}),wn={width:_e.x===!0?"auto":_e.x,minWidth:"100%"});var Dn=f.useCallback(function(mt,pt){Ja(function(Vt){var ln=new Map(Vt);return ln.set(mt,pt),ln})},[]),qn=q(null),wa=Object(r.a)(qn,2),La=wa[0],Ua=wa[1];function ea(mt,pt){if(!pt)return;typeof pt=="function"?pt(mt):pt.scrollLeft!==mt&&(pt.scrollLeft=mt)}var Ln=function(pt){var Vt=pt.currentTarget,ln=pt.scrollLeft,Bn=typeof ln=="number"?ln:Vt.scrollLeft,Wa=Vt||It;if(!Ua()||Ua()===Wa){var ba;La(Wa),ea(Bn,Ra.current),ea(Bn,jn.current),ea(Bn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Vt){var Fa=Vt.scrollWidth,za=Vt.clientWidth;Va(Bn>0),$a(Bn0?[].concat(Object(j.a)(x),Object(j.a)(X(fe).map(function(Y){return Object(je.a)({fixed:ae},Y)}))):[].concat(Object(j.a)(x),[Object(je.a)(Object(je.a)({},ue),{},{fixed:ae})])},[])}function le(_){for(var x=!0,ue=0;ue<_.length;ue+=1){var V=_[ue];if(x&&V.fixed!=="left")x=!1;else if(!x&&V.fixed==="left"){Object(ce.a)(!1,"Index ".concat(ue-1," of `columns` missing `fixed='left'` prop."));break}}for(var ae=!0,fe=_.length-1;fe>=0;fe-=1){var Y=_[fe];if(ae&&Y.fixed!=="right")ae=!1;else if(!ae&&Y.fixed==="right"){Object(ce.a)(!1,"Index ".concat(fe+1," of `columns` missing `fixed='right'` prop."));break}}}function pe(_){return _.map(function(x){var ue=x.fixed,V=Object(U.a)(x,["fixed"]),ae=ue;return ue==="left"?ae="right":ue==="right"&&(ae="left"),Object(je.a)({fixed:ae},V)})}function Z(_,x){var ue=_.prefixCls,V=_.columns,ae=_.children,fe=_.expandable,Y=_.expandedKeys,he=_.getRowKey,T=_.onTriggerExpand,J=_.expandIcon,$=_.rowExpandable,g=_.expandIconColumnIndex,O=_.direction,d=_.expandRowByClick,I=r.useMemo(function(){return V||k(ae)},[V,ae]),z=r.useMemo(function(){if(fe){var te,P=g||0,L=I[P],y=(te={},Object(w.a)(te,K.a,{className:"".concat(ue,"-expand-icon-col")}),Object(w.a)(te,"title",""),Object(w.a)(te,"fixed",L?L.fixed:null),Object(w.a)(te,"className","".concat(ue,"-row-expand-icon-cell")),Object(w.a)(te,"render",function(h,M,G){var oe=he(M,G),D=Y.has(oe),B=$?$(M):!0,ne=J({prefixCls:ue,expanded:D,expandable:B,record:M,onExpand:T});return d?r.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},ne):ne}),te),p=I.slice();return P>=0&&p.splice(P,0,y),p}return I},[fe,I,he,Y,J,O]),Q=r.useMemo(function(){var te=z;return x&&(te=x(te)),te.length||(te=[{render:function(){return null}}]),te},[x,z,O]),Ce=r.useMemo(function(){return O==="rtl"?pe(X(Q)):X(Q)},[Q,O]);return[Q,Ce]}ve.b=Z},"y0+3":function(Xe,ve,a){"use strict";a.d(ve,"a",function(){return X}),a.d(ve,"b",function(){return pe});var w=/margin|padding|width|height|max|min|offset/,j={left:!0,top:!0},je={cssFloat:1,styleFloat:1,float:1};function U(Z){return Z.nodeType===1?Z.ownerDocument.defaultView.getComputedStyle(Z,null):{}}function r(Z,_,x){if(_=_.toLowerCase(),x==="auto"){if(_==="height")return Z.offsetHeight;if(_==="width")return Z.offsetWidth}return _ in j||(j[_]=w.test(_)),j[_]?parseFloat(x)||0:x}function f(Z,_){var x=arguments.length,ue=U(Z);return _=je[_]?"cssFloat"in Z.style?"cssFloat":"styleFloat":_,x===1?ue:r(Z,_,ue[_]||Z.style[_])}function ce(Z,_,x){var ue=arguments.length;if(_=je[_]?"cssFloat"in Z.style?"cssFloat":"styleFloat":_,ue===3)return typeof x=="number"&&w.test(_)&&(x="".concat(x,"px")),Z.style[_]=x,x;for(var V in _)_.hasOwnProperty(V)&&ce(Z,V,_[V]);return U(Z)}function se(Z){return Z===document.body?document.documentElement.clientWidth:Z.offsetWidth}function K(Z){return Z===document.body?window.innerHeight||document.documentElement.clientHeight:Z.offsetHeight}function k(){var Z=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Z,height:_}}function X(){var Z=document.documentElement.clientWidth,_=window.innerHeight||document.documentElement.clientHeight;return{width:Z,height:_}}function le(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function pe(Z){var _=Z.getBoundingClientRect(),x=document.documentElement;return{left:_.left+(window.pageXOffset||x.scrollLeft)-(x.clientLeft||document.body.clientLeft||0),top:_.top+(window.pageYOffset||x.scrollTop)-(x.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Engineering__Lists__TrainingProgram__Add.bfcd0a93.async.js b/p__Engineering__Lists__TrainingProgram__Add.bfcd0a93.async.js index 82b4a4591a..c59d93b509 100644 --- a/p__Engineering__Lists__TrainingProgram__Add.bfcd0a93.async.js +++ b/p__Engineering__Lists__TrainingProgram__Add.bfcd0a93.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[156,6,8],{"55Ip":function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return F});var w=n("Ty5D"),x=n("dI71"),fe=n("q1tI"),ce=n.n(fe),H=n("YS25"),o=n("17x9"),le=n.n(o),Y=n("wx14"),R=n("zLVn"),T=n("9R94"),S=function(r){Object(x.a)(a,r);function a(){for(var g,v=arguments.length,$=new Array(v),j=0;j=0||v.relatedTarget.className.indexOf("".concat(y,"-next"))>=0))return;r.setState({goInputText:""}),f(r.getValidValue())},r.go=function(v){var $=r.state.goInputText;if($==="")return;(v.keyCode===X.ENTER||v.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))},r}return Object(H.a)(c,[{key:"getValidValue",value:function(){var a=this.state,b=a.goInputText,g=a.current;return!b||isNaN(b)?g:Number(b)}},{key:"getPageSizeOptions",value:function(){var a=this.props,b=a.pageSize,g=a.pageSizeOptions;return g.some(function(v){return v.toString()===b.toString()})?g:g.concat([b.toString()]).sort(function(v,$){var j=isNaN(Number(v))?0:Number(v),f=isNaN(Number($))?0:Number($);return j-f})}},{key:"render",value:function(){var a=this,b=this.props,g=b.pageSize,v=b.locale,$=b.rootPrefixCls,j=b.changeSize,f=b.quickGo,y=b.goButton,u=b.selectComponentClass,s=b.buildOptionText,h=b.selectPrefixCls,l=b.disabled,d=this.state.goInputText,O="".concat($,"-options"),k=u,G=null,P=null,M=null;if(!j&&!f)return null;var K=this.getPageSizeOptions();if(j&&k){var L=K.map(function(_,oe){return R.a.createElement(k.Option,{key:oe,value:_.toString()},(s||a.buildOptionText)(_))});G=R.a.createElement(k,{disabled:l,prefixCls:h,showSearch:!1,className:"".concat(O,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(g||K[0]).toString(),onChange:this.changeSize,getPopupContainer:function(oe){return oe.parentNode}},L)}return f&&(y&&(M=typeof y=="boolean"?R.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:l,className:"".concat(O,"-quick-jumper-button")},v.jump_to_confirm):R.a.createElement("span",{onClick:this.go,onKeyUp:this.go},y)),P=R.a.createElement("div",{className:"".concat(O,"-quick-jumper")},v.jump_to,R.a.createElement("input",{disabled:l,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),v.page,M)),R.a.createElement("li",{className:"".concat(O)},G,P)}}]),c}(R.a.Component);p.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=p,z=n("N2Kk");function N(){}function F(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function V(U,B,c){return c}function I(U,B,c){var r=typeof U=="undefined"?B.pageSize:U;return Math.floor((c.total-1)/r)+1}var te=function(U){Object(o.a)(c,U);var B=Object(le.a)(c);function c(r){var a;Object(ce.a)(this,c),a=B.call(this,r),a.getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(I(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(j,f){var y=a.props.prefixCls,u=j||R.a.createElement("button",{type:"button","aria-label":f,className:"".concat(y,"-item-link")});return typeof j=="function"&&(u=R.a.createElement(j,Object(fe.a)({},a.props))),u},a.savePaginationNode=function(j){a.paginationNode=j},a.isValid=function(j){return F(j)&&j!==a.state.current},a.shouldDisplayQuickJumper=function(){var j=a.props,f=j.showQuickJumper,y=j.pageSize,u=j.total;return u<=y?!1:f},a.handleKeyDown=function(j){(j.keyCode===X.ARROW_UP||j.keyCode===X.ARROW_DOWN)&&j.preventDefault()},a.handleKeyUp=function(j){var f=a.getValidValue(j),y=a.state.currentInputValue;f!==y&&a.setState({currentInputValue:f}),j.keyCode===X.ENTER?a.handleChange(f):j.keyCode===X.ARROW_UP?a.handleChange(f-1):j.keyCode===X.ARROW_DOWN&&a.handleChange(f+1)},a.changePageSize=function(j){var f=a.state.current,y=I(j,a.state,a.props);f=f>y?y:f,y===0&&(f=a.state.current),typeof j=="number"&&("pageSize"in a.props||a.setState({pageSize:j}),"current"in a.props||a.setState({current:f,currentInputValue:f})),a.props.onShowSizeChange(f,j),"onChange"in a.props&&a.props.onChange&&a.props.onChange(f,j)},a.handleChange=function(j){var f=a.props.disabled,y=j;if(a.isValid(y)&&!f){var u=I(void 0,a.state,a.props);y>u?y=u:y<1&&(y=1),"current"in a.props||a.setState({current:y,currentInputValue:y});var s=a.state.pageSize;return a.props.onChange(y,s),y}return a.state.current},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?y-2:0),s=2;s=g?$=g:$=Number(b),$}},{key:"getShowSizeChanger",value:function(){var a=this.props,b=a.showSizeChanger,g=a.total,v=a.totalBoundaryShowSizeChanger;return typeof b!="undefined"?b:g>v}},{key:"renderPrev",value:function(a){var b=this.props,g=b.prevIcon,v=b.itemRender,$=v(a,"prev",this.getItemIcon(g,"prev page")),j=!this.hasPrev();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:j}):$}},{key:"renderNext",value:function(a){var b=this.props,g=b.nextIcon,v=b.itemRender,$=v(a,"next",this.getItemIcon(g,"next page")),j=!this.hasNext();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:j}):$}},{key:"render",value:function(){var a=this,b=this.props,g=b.prefixCls,v=b.className,$=b.style,j=b.disabled,f=b.hideOnSinglePage,y=b.total,u=b.locale,s=b.showQuickJumper,h=b.showLessItems,l=b.showTitle,d=b.showTotal,O=b.simple,k=b.itemRender,G=b.showPrevNextJumpers,P=b.jumpPrevIcon,M=b.jumpNextIcon,K=b.selectComponentClass,L=b.selectPrefixCls,_=b.pageSizeOptions,oe=this.state,e=oe.current,i=oe.pageSize,t=oe.currentInputValue;if(f===!0&&y<=i)return null;var E=I(void 0,this.state,this.props),D=[],W=null,ae=null,me=null,xe=null,Ee=null,be=s&&s.goButton,ge=h?1:2,Ke=e-1>0?e-1:0,ze=e+1=ge*2&&e!==1+2&&(D[0]=Object(Y.cloneElement)(D[0],{className:"".concat(g,"-item-after-jump-prev")}),D.unshift(W)),E-e>=ge*2&&e!==E-2&&(D[D.length-1]=Object(Y.cloneElement)(D[D.length-1],{className:"".concat(g,"-item-before-jump-next")}),D.push(ae)),Z!==1&&D.unshift(me),ue!==E&&D.push(xe)}var re=null;d&&(re=R.a.createElement("li",{className:"".concat(g,"-total-text")},d(y,[y===0?0:(e-1)*i+1,e*i>y?y:e*i])));var ne=!this.hasPrev()||!E,ie=!this.hasNext()||!E;return R.a.createElement("ul",Object(w.a)({className:S()(g,v,Object(x.a)({},"".concat(g,"-disabled"),j)),style:$,unselectable:"unselectable",ref:this.savePaginationNode},Fe),re,R.a.createElement("li",{title:l?u.prev_page:null,onClick:this.prev,tabIndex:ne?null:0,onKeyPress:this.runIfEnterPrev,className:S()("".concat(g,"-prev"),Object(x.a)({},"".concat(g,"-disabled"),ne)),"aria-disabled":ne},this.renderPrev(Ke)),D,R.a.createElement("li",{title:l?u.next_page:null,onClick:this.next,tabIndex:ie?null:0,onKeyPress:this.runIfEnterNext,className:S()("".concat(g,"-next"),Object(x.a)({},"".concat(g,"-disabled"),ie)),"aria-disabled":ie},this.renderNext(ze)),R.a.createElement(m,{disabled:j,locale:u,rootPrefixCls:g,selectComponentClass:K,selectPrefixCls:L,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:e,pageSize:i,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:be}))}}],[{key:"getDerivedStateFromProps",value:function(a,b){var g={};if("current"in a&&(g.current=a.current,a.current!==b.current&&(g.currentInputValue=g.current)),"pageSize"in a&&a.pageSize!==b.pageSize){var v=b.current,$=I(a.pageSize,b,a);v=v>$?$:v,"current"in a||(g.current=v,g.currentInputValue=v),g.pageSize=a.pageSize}return g}}]),c}(R.a.Component);te.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:z.a,style:{},itemRender:V,totalBoundaryShowSizeChanger:50};var A=te},"6RRn":function(Ae,ee,n){"use strict";var w=n("wCXF"),x=n("n6Qo");n.d(ee,"b",function(){return x.a});var fe=n("IBYe"),ce=n("6eGT"),H=n("hW8S");n.d(ee,"a",function(){return H.a}),ee.c=w.b},"6eGT":function(Ae,ee,n){"use strict";function w(x){return null}ee.a=w},"815F":function(Ae,ee,n){"use strict";n.d(ee,"e",function(){return le}),n.d(ee,"c",function(){return R}),n.d(ee,"d",function(){return T}),n.d(ee,"a",function(){return Q}),n.d(ee,"f",function(){return q}),n.d(ee,"b",function(){return X});var w=n("KQm4"),x=n("VTBJ"),fe=n("Ff2n"),ce=n("Zm9Q"),H=n("Kwbf"),o=n("OZM5");function le(p,m){return p!=null?p:m}function Y(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function z(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(N||[]).forEach(function(V){var I=V.key,te=V.children;Object(H.a)(I!=null,"Tree node must have a certain key: [".concat(F).concat(I,"]"));var A=String(I);Object(H.a)(!m.has(A)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(A)),m.set(A,!0),z(te,"".concat(F).concat(A," > "))})}z(p)}function R(p){function m(z){var N=Object(ce.a)(z);return N.map(function(F){if(!Object(o.i)(F))return Object(H.a)(!F,"Tree/TreeNode can only accept TreeNode as children."),null;var V=F.key,I=F.props,te=I.children,A=Object(fe.a)(I,["children"]),U=Object(x.a)({key:V},A),B=m(te);return B.length&&(U.children=B),U}).filter(function(F){return F})}return m(p)}function T(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(m===!0?[]:m),N=[];function F(V){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return V.map(function(te,A){var U=Object(o.h)(I?I.pos:"0",A),B=le(te.key,U),c=Object(x.a)(Object(x.a)({},te),{},{parent:I,pos:U,children:null,data:te,isStart:[].concat(Object(w.a)(I?I.isStart:[]),[A===0]),isEnd:[].concat(Object(w.a)(I?I.isEnd:[]),[A===V.length-1])});return N.push(c),m===!0||z.has(B)?c.children=F(te.children||[],c):c.children=[],c})}return F(p),N}function S(p,m,z){var N;z?typeof z=="string"?N=function(I){return I[z]}:typeof z=="function"&&(N=function(I){return z(I)}):N=function(I,te){return le(I.key,te)};function F(V,I,te){var A=V?V.children:p,U=V?Object(o.h)(te.pos,I):"0";if(V){var B=N(V,U),c={node:V,index:I,pos:U,key:B,parentPos:te.node?te.pos:null,level:te.level+1};m(c)}A&&A.forEach(function(r,a){F(r,a,{node:V,pos:U,level:te?te.level+1:-1})})}F(null)}function Q(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=m.initWrapper,N=m.processEntity,F=m.onProcessFinished,V=arguments.length>2?arguments[2]:void 0,I={},te={},A={posEntities:I,keyEntities:te};return z&&(A=z(A)||A),S(p,function(U){var B=U.node,c=U.index,r=U.pos,a=U.key,b=U.parentPos,g=U.level,v={node:B,index:c,key:a,pos:r,level:g},$=le(a,r);I[r]=v,te[$]=v,v.parent=I[b],v.parent&&(v.parent.children=v.parent.children||[],v.parent.children.push(v)),N&&N(v,A)},V),F&&F(A),A}function q(p,m){var z=m.expandedKeys,N=m.selectedKeys,F=m.loadedKeys,V=m.loadingKeys,I=m.checkedKeys,te=m.halfCheckedKeys,A=m.dragOverNodeKey,U=m.dropPosition,B=m.keyEntities,c=B[p],r={eventKey:p,expanded:z.indexOf(p)!==-1,selected:N.indexOf(p)!==-1,loaded:F.indexOf(p)!==-1,loading:V.indexOf(p)!==-1,checked:I.indexOf(p)!==-1,halfChecked:te.indexOf(p)!==-1,pos:String(c?c.pos:""),dragOver:A===p&&U===0,dragOverGapTop:A===p&&U===-1,dragOverGapBottom:A===p&&U===1};return r}function X(p){var m=p.data,z=p.expanded,N=p.selected,F=p.checked,V=p.loaded,I=p.loading,te=p.halfChecked,A=p.dragOver,U=p.dragOverGapTop,B=p.dragOverGapBottom,c=p.pos,r=p.active,a=Object(x.a)(Object(x.a)({},m),{},{expanded:z,selected:N,checked:F,loaded:V,loading:I,halfChecked:te,dragOver:A,dragOverGapTop:U,dragOverGapBottom:B,pos:c,active:r});return"props"in a||Object.defineProperty(a,"props",{get:function(){return Object(H.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),p}}),a}},BfvP:function(Ae,ee,n){"use strict";n.r(ee);var w=n("2qtc"),x=n("kLXV"),fe=n("g9YV"),ce=n("wCAj"),H=n("k1fw"),o=n("DZo9"),le=n("8z0m"),Y=n("14J3"),R=n("BMrR"),T=n("+L6B"),S=n("2/Rp"),Q=n("jCWc"),q=n("kPKH"),X=n("5NDa"),p=n("5rEg"),m=n("OaEy"),z=n("2fM7"),N=n("/zsF"),F=n("PArb"),V=n("sPJy"),I=n("bE4q"),te=n("miYZ"),A=n("tsqr"),U=n("9og8"),B=n("y8nQ"),c=n("Vl3Y"),r=n("tJVT"),a=n("WmNS"),b=n.n(a),g=n("q1tI"),v=n.n(g),$=n("gvAy"),j=n.n($),f=n("55Ip"),y=n("9kvl"),u=n("ErOA"),s=function(l){var d,O=l.user,k={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,category:1,sort_by:null,sort_direction:null,school_id:null},G=Object(g.useState)(k),P=Object(r.a)(G,2),M=P[0],K=P[1],L=Object(g.useState)(!0),_=Object(r.a)(L,2),oe=_[0],e=_[1],i=Object(g.useState)([]),t=Object(r.a)(i,2),E=t[0],D=t[1],W=Object(g.useState)([]),ae=Object(r.a)(W,2),me=ae[0],xe=ae[1],Ee=Object(g.useState)([]),be=Object(r.a)(Ee,2),ge=be[0],Ke=be[1],ze=Object(g.useState)(!1),Fe=Object(r.a)(ze,2),Ye=Fe[0],He=Fe[1],rt=Object(g.useState)(),C=Object(r.a)(rt,2),J=C[0],Z=C[1],ue=Object(g.useState)(),he=Object(r.a)(ue,2),se=he[0],re=he[1],ne=c.a.useForm(),ie=Object(r.a)(ne,1),pe=ie[0],de=Object(g.useState)(),ve=Object(r.a)(de,2),Oe=ve[0],ye=ve[1],Te=Object(g.useState)([]),Ie=Object(r.a)(Te,2),De=Ie[0],we=Ie[1];Object(g.useEffect)(function(){var Ce;(Ce=O.userInfo)!==null&&Ce!==void 0&&Ce.school_id&&(je(),We())},[O==null||((d=O.userInfo)===null||d===void 0)?void 0:d.school_id]);function je(Ce){return $e.apply(this,arguments)}function $e(){return $e=Object(U.a)(b.a.mark(function Ce(Re){var Se,Pe;return b.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ye(Object(H.a)({},Re)),_e.next=3,Object(u.a)("/api/schools/".concat(O==null||((Se=O.userInfo)===null||Se===void 0)?void 0:Se.school_id,"/ec_majors.json"),{method:"get",params:Object(H.a)({per_page:1e4},Re)});case 3:Pe=_e.sent,xe(Pe==null?void 0:Pe.ec_majors);case 5:case"end":return _e.stop()}},Ce)})),$e.apply(this,arguments)}function We(){return ke.apply(this,arguments)}function ke(){return ke=Object(U.a)(b.a.mark(function Ce(){var Re;return b.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,Object(u.a)("/api/ec_major_schools/1/ec_years/select_year.json",{method:"get"});case 2:Re=Pe.sent,Ke(Re==null?void 0:Re.year_arr);case 4:case"end":return Pe.stop()}},Ce)})),ke.apply(this,arguments)}var Ve=[{title:"\u4E13\u4E1A\u4EE3\u7801",dataIndex:"code",key:"code"},{title:"\u4E13\u4E1A\u540D\u79F0",dataIndex:"name",key:"name"}],Je={onRemove:function(){we([])},beforeUpload:function(Re){if(console.log(Re),(Re==null?void 0:Re.size)>1024*1024*50)return A.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var Se=[];return Se.push(Re),we([].concat(Se)),!1},fileList:De};return v.a.createElement("div",{className:j.a.wrap},v.a.createElement(I.a,{separator:"",style:{padding:"20px"}},v.a.createElement(I.a.Item,null,v.a.createElement(f.a,{to:"/engineering/trainingProgram"},"\u57F9\u517B\u65B9\u6848")),v.a.createElement(I.a.Separator,null,">>"),v.a.createElement(I.a.Item,null,"\u65B0\u589E\u57F9\u517B\u65B9\u6848")),v.a.createElement("div",{className:j.a.title},"\u57F9\u517B\u65B9\u6848\u4FE1\u606F"),v.a.createElement(F.a,{style:{padding:"0px 20px"}}),v.a.createElement("div",{style:{paddingTop:"50px"}},v.a.createElement(c.a,{form:pe,labelCol:{span:8},wrapperCol:{span:8}},v.a.createElement(c.a.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"year",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5C4A\u522B"}]},v.a.createElement(z.a,null,ge==null?void 0:ge.map(function(Ce,Re){return v.a.createElement(z.a.Option,{value:Ce},Ce,"\u5C4A")}))),v.a.createElement(c.a.Item,{label:v.a.createElement("div",null,v.a.createElement("span",{style:{marginRight:"4px",color:"#ff4d4f"}},"*"),v.a.createElement("label",null,"\u8BA4\u8BC1\u4E13\u4E1A"))},v.a.createElement(R.a,{gutter:12,style:{flexFlow:"initial",flexDirection:"row-reverse"},className:j.a.rowFrom},v.a.createElement(q.a,{span:16},v.a.createElement(c.a.Item,{name:"major_id"},v.a.createElement(p.a,{style:{color:"#000"},disabled:!0,bordered:!1}))),v.a.createElement(q.a,{span:8},v.a.createElement(S.a,{onClick:function(){He(!0),re(J||"")}},"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A")))),v.a.createElement(c.a.Item,{label:"\u57F9\u517B\u65B9\u6848\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{max:60,message:"\u57F9\u517B\u65B9\u6848\u540D\u79F0\u4E0D\u80FD\u8D85\u8FC760\u4E2A\u5B57"}]},v.a.createElement(p.a,{placeholder:"\u4F8B\u5982\uFF1A2021\u7EA7\u8BA1\u7B97\u673A\u79D1\u5B66\u4E0E\u6280\u672F\u4E13\u4E1A\u672C\u79D1\u6280\u672F\u4EBA\u624D\u57F9\u517B\u65B9\u6848"})),v.a.createElement(R.a,null,v.a.createElement(q.a,{span:8,style:{justifyContent:"end",display:"flex",marginTop:"2px"}},v.a.createElement("label",null,"\u57F9\u517B\u65B9\u6848\u6587\u4EF6\uFF1A")),v.a.createElement(q.a,{span:8},v.a.createElement(le.a,Je,v.a.createElement(S.a,null,"\u4E0A\u4F20\u6587\u4EF6")))))),v.a.createElement("div",{style:{textAlign:"end",paddingRight:"30px"}},v.a.createElement(S.a,{onClick:function(){y.d.push("/engineering/trainingProgram")}},"\u8FD4\u56DE"),v.a.createElement(S.a,{onClick:Object(U.a)(b.a.mark(function Ce(){var Re,Se,Pe,Le;return b.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return pe.submit(),Ue.next=3,pe.validateFields();case 3:if(Se=pe.getFieldsValue(),J){Ue.next=7;break}return A.b.info("\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"),Ue.abrupt("return");case 7:if(!(!Se.name||!Se.year)){Ue.next=9;break}return Ue.abrupt("return");case 9:return Pe=new FormData,De.length>0&&Pe.append("file",De[0]),Pe.append("school_id",O==null||((Re=O.userInfo)===null||Re===void 0)?void 0:Re.school_id),Pe.append("major_id",J),Pe.append("name",Se.name),Pe.append("year",Se.year),Ue.next=17,Object(u.a)("/api/ec_major_schools/1/ec_years.json",{method:"post",body:Pe},!0);case 17:Le=Ue.sent,(Le==null?void 0:Le.status)===0&&(A.b.info("\u6DFB\u52A0\u6210\u529F"),y.d.push("/engineering/trainingProgram"));case 19:case"end":return Ue.stop()}},Ce)})),style:{marginLeft:"10px"},type:"primary"},"\u4FDD\u5B58")),v.a.createElement(x.a,{title:"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",centered:!0,visible:Ye,onCancel:function(){He(!1),re("")},onOk:function(){var Re,Se;He(!1),Z(se),pe.setFieldsValue({major_id:me==null||((Re=me.filter(function(Pe){return Pe.id===parseInt(se)}))===null||Re===void 0||((Se=Re[0])===null||Se===void 0))?void 0:Se.name})}},v.a.createElement("div",{style:{display:"flex",marginBottom:"10px",alignItems:"center",justifyContent:"space-between"}},v.a.createElement(p.a.Search,{style:{width:"300px"},onSearch:function(Re){je(Object(H.a)(Object(H.a)({},Oe),{},{search:Re}))},placeholder:"\u8BF7\u8F93\u5165\u4E13\u4E1A\u4EE3\u7801\u6216\u540D\u79F0"})),v.a.createElement(ce.a,{dataSource:me,columns:Ve,pagination:!1,rowKey:function(Re){return Re.id},scroll:{y:300},rowSelection:{type:"radio",onChange:function(Re,Se){re(Re)},selectedRowKeys:se}})))};ee.default=Object(y.a)(function(h){var l=h.user;return{user:l}})(s)},GfqC:function(Ae,ee,n){"use strict";var w=n("q1tI"),x=n.n(w),fe=n("TSYQ"),ce=n.n(fe);function H(u,s){var h="cannot "+u.method+" "+u.action+" "+s.status+"'",l=new Error(h);return l.status=s.status,l.method=u.method,l.url=u.action,l}function o(u){var s=u.responseText||u.response;if(!s)return s;try{return JSON.parse(s)}catch(h){return s}}function le(u){var s=new XMLHttpRequest;u.onProgress&&s.upload&&(s.upload.onprogress=function(O){O.total>0&&(O.percent=O.loaded/O.total*100),u.onProgress(O)});var h=new FormData;u.data&&Object.keys(u.data).forEach(function(d){var O=u.data[d];if(Array.isArray(O)){O.forEach(function(k){h.append(d+"[]",k)});return}h.append(d,u.data[d])}),u.file instanceof Blob?h.append(u.filename,u.file,u.file.name):h.append(u.filename,u.file),s.onerror=function(O){u.onError(O)},s.onload=function(){return s.status<200||s.status>=300?u.onError(H(u,s),o(s)):u.onSuccess(o(s),s)},s.open(u.method,u.action,!0),u.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var l=u.headers||{};return l["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(l).forEach(function(d){l[d]!==null&&s.setRequestHeader(d,l[d])}),s.send(h),{abort:function(){s.abort()}}}var Y=+new Date,R=0;function T(){return"rc-upload-"+Y+"-"+ ++R}function S(u,s){return u.indexOf(s,u.length-s.length)!==-1}var Q=function(u,s){if(u&&s){var h=Array.isArray(s)?s:s.split(","),l=u.name||"",d=u.type||"",O=d.replace(/\/.*$/,"");return h.some(function(k){var G=k.trim();return G.charAt(0)==="."?S(l.toLowerCase(),G.toLowerCase()):/\/\*$/.test(G)?O===G.replace(/\/.*$/,""):d===G})}return!0};function q(u,s){var h=u.createReader(),l=[];function d(){h.readEntries(function(O){var k=Array.prototype.slice.apply(O);l=l.concat(k);var G=!k.length;G?s(l):d()})}d()}var X=function(s,h,l){var d=function O(k,G){G=G||"",k.isFile?k.file(function(P){l(P)&&(k.fullPath&&!P.webkitRelativePath&&(Object.defineProperties(P,{webkitRelativePath:{writable:!0}}),P.webkitRelativePath=k.fullPath.replace(/^\//,""),Object.defineProperties(P,{webkitRelativePath:{writable:!1}})),h([P]))}):k.isDirectory&&q(k,function(P){P.forEach(function(M){O(M,""+G+k.name+"/")})})};s.forEach(function(O){d(O.webkitGetAsEntry())})},p=X,m=Object.assign||function(u){for(var s=1;s=0)continue;if(!Object.prototype.hasOwnProperty.call(u,l))continue;h[l]=u[l]}return h}function I(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function te(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function A(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var U=function(s){return Object.keys(s).reduce(function(h,l){return(l.substr(0,5)==="data-"||l.substr(0,5)==="aria-"||l==="role")&&(h[l]=s[l]),h},{})},B=function(u){A(s,u);function s(){var h,l,d,O;I(this,s);for(var k=arguments.length,G=Array(k),P=0;P1&&arguments[1]!==void 0?arguments[1]:1,ie=ge.length,pe=0;pe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(h).map(function(d,O){if(!H.isValidElement(d)||!d.type)return null;var k=d.type.isSelectOptGroup,G=d.key,P=d.props,M=P.children,K=Object(le.a)(P,["children"]);return l||!k?B(d):Object(A.a)(Object(A.a)({key:"__RC_SELECT_GRP__".concat(G===null?O:G,"__"),label:G},K),{},{options:c(M)})}).filter(function(d){return d})}var r=n("2Qr1"),a=n("qNPg"),b=n("U8pU"),g=n("Kwbf"),v=n("WKfj");function $(h){var l=h.mode,d=h.options,O=h.children,k=h.backfill,G=h.allowClear,P=h.placeholder,M=h.getInputElement,K=h.showSearch,L=h.onSearch,_=h.defaultOpen,oe=h.autoFocus,e=h.labelInValue,i=h.value,t=h.inputValue,E=h.optionLabelProp,D=l==="multiple"||l==="tags",W=K!==void 0?K:D||l==="combobox",ae=d||c(O);if(Object(g.a)(l!=="tags"||ae.every(function(be){return!be.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),l==="tags"||l==="combobox"){var me=ae.some(function(be){return be.options?be.options.some(function(ge){return typeof("value"in ge?ge.value:ge.key)=="number"}):typeof("value"in be?be.value:be.key)=="number"});Object(g.a)(!me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(g.a)(l!=="combobox"||!E,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(g.a)(l==="combobox"||!k,"`backfill` only works with `combobox` mode."),Object(g.a)(l==="combobox"||!M,"`getInputElement` only work with `combobox` mode."),Object(g.b)(l!=="combobox"||!M||!G||!P,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),L&&!W&&l!=="combobox"&&l!=="tags"&&Object(g.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(g.b)(!_||oe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),i!=null){var xe=Object(v.d)(i);Object(g.a)(!e||xe.every(function(be){return Object(b.a)(be)==="object"&&("key"in be||"value"in be)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(g.a)(!D||Array.isArray(i),"`value` should be array when `mode` is `multiple` or `tags`")}if(O){var Ee=null;Object(U.a)(O).some(function(be){if(!H.isValidElement(be)||!be.type)return!1;var ge=be.type;if(ge.isSelectOption)return!1;if(ge.isSelectOptGroup){var Ke=Object(U.a)(be.props.children).every(function(ze){return!H.isValidElement(ze)||!be.type||ze.type.isSelectOption?!0:(Ee=ze.type,!1)});return!Ke}return Ee=ge,!0}),Ee&&Object(g.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ee.displayName||Ee.name||Ee,"`.")),Object(g.a)(t===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var j=$,f=Object(a.a)({prefixCls:"rc-select",components:{optionList:N},convertChildrenToData:c,flattenOptions:r.d,getLabeledValue:r.e,filterOptions:r.b,isValueDisabled:r.g,findValueOption:r.c,warningProps:j,fillOptionsWithMissingValue:r.a}),y=function(h){Object(fe.a)(d,h);var l=Object(ce.a)(d);function d(){var O;return Object(w.a)(this,d),O=l.apply(this,arguments),O.selectRef=H.createRef(),O.focus=function(){O.selectRef.current.focus()},O.blur=function(){O.selectRef.current.blur()},O}return Object(x.a)(d,[{key:"render",value:function(){return H.createElement(f,Object.assign({ref:this.selectRef},this.props))}}]),d}(H.Component);y.Option=V,y.OptGroup=te;var u=y,s=ee.c=u},NvD2:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return o});var w=n("Kwbf");function x(le,Y){var R=new Set;return le.forEach(function(T){Y.has(T)||R.add(T)}),R}function fe(le){var Y=le||{},R=Y.disabled,T=Y.disableCheckbox,S=Y.checkable;return!!(R||T)||S===!1}function ce(le,Y,R,T){for(var S=new Set(le),Q=new Set,q=0;q<=R;q+=1){var X=Y.get(q)||new Set;X.forEach(function(N){var F=N.key,V=N.node,I=N.children,te=I===void 0?[]:I;S.has(F)&&!T(V)&&te.filter(function(A){return!T(A.node)}).forEach(function(A){S.add(A.key)})})}for(var p=new Set,m=R;m>=0;m-=1){var z=Y.get(m)||new Set;z.forEach(function(N){var F=N.parent,V=N.node;if(T(V)||!N.parent||p.has(N.parent.key))return;if(T(N.parent.node)){p.add(F.key);return}var I=!0,te=!1;(F.children||[]).filter(function(A){return!T(A.node)}).forEach(function(A){var U=A.key,B=S.has(U);I&&!B&&(I=!1),!te&&(B||Q.has(U))&&(te=!0)}),I&&S.add(F.key),te&&Q.add(F.key),p.add(F.key)})}return{checkedKeys:Array.from(S),halfCheckedKeys:Array.from(x(Q,S))}}function H(le,Y,R,T,S){for(var Q=new Set(le),q=new Set(Y),X=0;X<=T;X+=1){var p=R.get(X)||new Set;p.forEach(function(F){var V=F.key,I=F.node,te=F.children,A=te===void 0?[]:te;!Q.has(V)&&!q.has(V)&&!S(I)&&A.filter(function(U){return!S(U.node)}).forEach(function(U){Q.delete(U.key)})})}q=new Set;for(var m=new Set,z=T;z>=0;z-=1){var N=R.get(z)||new Set;N.forEach(function(F){var V=F.parent,I=F.node;if(S(I)||!F.parent||m.has(F.parent.key))return;if(S(F.parent.node)){m.add(V.key);return}var te=!0,A=!1;(V.children||[]).filter(function(U){return!S(U.node)}).forEach(function(U){var B=U.key,c=Q.has(B);te&&!c&&(te=!1),!A&&(c||q.has(B))&&(A=!0)}),te||Q.delete(V.key),A&&q.add(V.key),m.add(V.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(x(q,Q))}}function o(le,Y,R,T){var S=[],Q;T?Q=T:Q=fe;var q=new Set(le.filter(function(z){var N=!!R[z];return N||S.push(z),N})),X=new Map,p=0;Object.keys(R).forEach(function(z){var N=R[z],F=N.level,V=X.get(F);V||(V=new Set,X.set(F,V)),V.add(N),p=Math.max(p,F)}),Object(w.a)(!S.length,"Tree missing follow keys: ".concat(S.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var m;return Y===!0?m=ce(q,X,p,Q):m=H(q,Y.halfCheckedKeys,X,p,Q),m}},OZM5:function(Ae,ee,n){"use strict";n.d(ee,"b",function(){return T}),n.d(ee,"a",function(){return S}),n.d(ee,"k",function(){return Q}),n.d(ee,"h",function(){return q}),n.d(ee,"i",function(){return X}),n.d(ee,"g",function(){return p}),n.d(ee,"c",function(){return m}),n.d(ee,"d",function(){return z}),n.d(ee,"j",function(){return V}),n.d(ee,"e",function(){return I}),n.d(ee,"f",function(){return te});var w=n("KQm4"),x=n("U8pU"),fe=n("Ff2n"),ce=n("q1tI"),H=n.n(ce),o=n("Kwbf"),le=n("WaYH"),Y=.25,R=2;function T(A,U){var B=A.slice(),c=B.indexOf(U);return c>=0&&B.splice(c,1),B}function S(A,U){var B=A.slice();return B.indexOf(U)===-1&&B.push(U),B}function Q(A){return A.split("-")}function q(A,U){return"".concat(A,"-").concat(U)}function X(A){return A&&A.type&&A.type.isTreeNode}function p(A,U){var B=[A],c=U[A];function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(b){var g=b.key,v=b.children;B.push(g),r(v)})}return r(c.children),B}function m(A,U){var B=A.clientY,c=U.selectHandle.getBoundingClientRect(),r=c.top,a=c.bottom,b=c.height,g=Math.max(b*Y,R);return B<=r+g?-1:B>=a-g?1:0}function z(A,U){if(!A)return;var B=U.multiple;return B?A.slice():A.length?[A[0]]:A}var N=function(U){return U};function F(A,U){if(!A)return[];var B=U||{},c=B.processProps,r=c===void 0?N:c,a=Array.isArray(A)?A:[A];return a.map(function(b){var g=b.children,v=Object(fe.a)(b,["children"]),$=F(g,U);return H.a.createElement(le.a,Object.assign({},r(v)),$)})}function V(A){if(!A)return null;var U;if(Array.isArray(A))U={checkedKeys:A,halfCheckedKeys:void 0};else if(Object(x.a)(A)==="object")U={checkedKeys:A.checked||void 0,halfCheckedKeys:A.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function I(A,U){var B=new Set;function c(r){if(B.has(r))return;var a=U[r];if(!a)return;B.add(r);var b=a.parent,g=a.node;if(g.disabled)return;b&&c(b.key)}return(A||[]).forEach(function(r){c(r)}),Object(w.a)(B)}function te(A){var U={};return Object.keys(A).forEach(function(B){(B.startsWith("data-")||B.startsWith("aria-"))&&(U[B]=A[B])}),U}},"SA+Z":function(Ae,ee,n){var w=n("wTVA"),x=n("EbDI"),fe=n("ZhPi"),ce=n("wkBT");function H(o){return w(o)||x(o)||fe(o)||ce()}Ae.exports=H,Ae.exports.__esModule=!0,Ae.exports.default=Ae.exports},WaYH:function(Ae,ee,n){"use strict";var w=n("rePB"),x=n("Ff2n"),fe=n("VTBJ"),ce=n("1OyB"),H=n("vuIU"),o=n("JX7q"),le=n("Ji7U"),Y=n("LK+K"),R=n("q1tI"),T=n("TSYQ"),S=n.n(T),Q=n("sboe"),q=n("OZM5"),X=function(U){var B=U.prefixCls,c=U.level,r=U.isStart,a=U.isEnd;if(!c)return null;for(var b="".concat(B,"-indent-unit"),g=[],v=0;v=0||v.relatedTarget.className.indexOf("".concat(y,"-next"))>=0))return;r.setState({goInputText:""}),f(r.getValidValue())},r.go=function(v){var $=r.state.goInputText;if($==="")return;(v.keyCode===X.ENTER||v.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()))},r}return Object(H.a)(c,[{key:"getValidValue",value:function(){var a=this.state,b=a.goInputText,g=a.current;return!b||isNaN(b)?g:Number(b)}},{key:"getPageSizeOptions",value:function(){var a=this.props,b=a.pageSize,g=a.pageSizeOptions;return g.some(function(v){return v.toString()===b.toString()})?g:g.concat([b.toString()]).sort(function(v,$){var j=isNaN(Number(v))?0:Number(v),f=isNaN(Number($))?0:Number($);return j-f})}},{key:"render",value:function(){var a=this,b=this.props,g=b.pageSize,v=b.locale,$=b.rootPrefixCls,j=b.changeSize,f=b.quickGo,y=b.goButton,u=b.selectComponentClass,s=b.buildOptionText,h=b.selectPrefixCls,l=b.disabled,d=this.state.goInputText,O="".concat($,"-options"),k=u,G=null,T=null,M=null;if(!j&&!f)return null;var K=this.getPageSizeOptions();if(j&&k){var L=K.map(function(_,oe){return R.a.createElement(k.Option,{key:oe,value:_.toString()},(s||a.buildOptionText)(_))});G=R.a.createElement(k,{disabled:l,prefixCls:h,showSearch:!1,className:"".concat(O,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(g||K[0]).toString(),onChange:this.changeSize,getPopupContainer:function(oe){return oe.parentNode}},L)}return f&&(y&&(M=typeof y=="boolean"?R.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:l,className:"".concat(O,"-quick-jumper-button")},v.jump_to_confirm):R.a.createElement("span",{onClick:this.go,onKeyUp:this.go},y)),T=R.a.createElement("div",{className:"".concat(O,"-quick-jumper")},v.jump_to,R.a.createElement("input",{disabled:l,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),v.page,M)),R.a.createElement("li",{className:"".concat(O)},G,T)}}]),c}(R.a.Component);p.defaultProps={pageSizeOptions:["10","20","50","100"]};var m=p,z=n("N2Kk");function N(){}function F(U){return typeof U=="number"&&isFinite(U)&&Math.floor(U)===U}function V(U,B,c){return c}function I(U,B,c){var r=typeof U=="undefined"?B.pageSize:U;return Math.floor((c.total-1)/r)+1}var te=function(U){Object(o.a)(c,U);var B=Object(le.a)(c);function c(r){var a;Object(ce.a)(this,c),a=B.call(this,r),a.getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(I(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(j,f){var y=a.props.prefixCls,u=j||R.a.createElement("button",{type:"button","aria-label":f,className:"".concat(y,"-item-link")});return typeof j=="function"&&(u=R.a.createElement(j,Object(fe.a)({},a.props))),u},a.savePaginationNode=function(j){a.paginationNode=j},a.isValid=function(j){return F(j)&&j!==a.state.current},a.shouldDisplayQuickJumper=function(){var j=a.props,f=j.showQuickJumper,y=j.pageSize,u=j.total;return u<=y?!1:f},a.handleKeyDown=function(j){(j.keyCode===X.ARROW_UP||j.keyCode===X.ARROW_DOWN)&&j.preventDefault()},a.handleKeyUp=function(j){var f=a.getValidValue(j),y=a.state.currentInputValue;f!==y&&a.setState({currentInputValue:f}),j.keyCode===X.ENTER?a.handleChange(f):j.keyCode===X.ARROW_UP?a.handleChange(f-1):j.keyCode===X.ARROW_DOWN&&a.handleChange(f+1)},a.changePageSize=function(j){var f=a.state.current,y=I(j,a.state,a.props);f=f>y?y:f,y===0&&(f=a.state.current),typeof j=="number"&&("pageSize"in a.props||a.setState({pageSize:j}),"current"in a.props||a.setState({current:f,currentInputValue:f})),a.props.onShowSizeChange(f,j),"onChange"in a.props&&a.props.onChange&&a.props.onChange(f,j)},a.handleChange=function(j){var f=a.props.disabled,y=j;if(a.isValid(y)&&!f){var u=I(void 0,a.state,a.props);y>u?y=u:y<1&&(y=1),"current"in a.props||a.setState({current:y,currentInputValue:y});var s=a.state.pageSize;return a.props.onChange(y,s),y}return a.state.current},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current2?y-2:0),s=2;s=g?$=g:$=Number(b),$}},{key:"getShowSizeChanger",value:function(){var a=this.props,b=a.showSizeChanger,g=a.total,v=a.totalBoundaryShowSizeChanger;return typeof b!="undefined"?b:g>v}},{key:"renderPrev",value:function(a){var b=this.props,g=b.prevIcon,v=b.itemRender,$=v(a,"prev",this.getItemIcon(g,"prev page")),j=!this.hasPrev();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:j}):$}},{key:"renderNext",value:function(a){var b=this.props,g=b.nextIcon,v=b.itemRender,$=v(a,"next",this.getItemIcon(g,"next page")),j=!this.hasNext();return Object(Y.isValidElement)($)?Object(Y.cloneElement)($,{disabled:j}):$}},{key:"render",value:function(){var a=this,b=this.props,g=b.prefixCls,v=b.className,$=b.style,j=b.disabled,f=b.hideOnSinglePage,y=b.total,u=b.locale,s=b.showQuickJumper,h=b.showLessItems,l=b.showTitle,d=b.showTotal,O=b.simple,k=b.itemRender,G=b.showPrevNextJumpers,T=b.jumpPrevIcon,M=b.jumpNextIcon,K=b.selectComponentClass,L=b.selectPrefixCls,_=b.pageSizeOptions,oe=this.state,e=oe.current,i=oe.pageSize,t=oe.currentInputValue;if(f===!0&&y<=i)return null;var E=I(void 0,this.state,this.props),D=[],W=null,ae=null,me=null,xe=null,Ee=null,be=s&&s.goButton,ge=h?1:2,Ke=e-1>0?e-1:0,ze=e+1=ge*2&&e!==1+2&&(D[0]=Object(Y.cloneElement)(D[0],{className:"".concat(g,"-item-after-jump-prev")}),D.unshift(W)),E-e>=ge*2&&e!==E-2&&(D[D.length-1]=Object(Y.cloneElement)(D[D.length-1],{className:"".concat(g,"-item-before-jump-next")}),D.push(ae)),Z!==1&&D.unshift(me),ue!==E&&D.push(xe)}var re=null;d&&(re=R.a.createElement("li",{className:"".concat(g,"-total-text")},d(y,[y===0?0:(e-1)*i+1,e*i>y?y:e*i])));var ne=!this.hasPrev()||!E,ie=!this.hasNext()||!E;return R.a.createElement("ul",Object(w.a)({className:S()(g,v,Object(x.a)({},"".concat(g,"-disabled"),j)),style:$,unselectable:"unselectable",ref:this.savePaginationNode},Fe),re,R.a.createElement("li",{title:l?u.prev_page:null,onClick:this.prev,tabIndex:ne?null:0,onKeyPress:this.runIfEnterPrev,className:S()("".concat(g,"-prev"),Object(x.a)({},"".concat(g,"-disabled"),ne)),"aria-disabled":ne},this.renderPrev(Ke)),D,R.a.createElement("li",{title:l?u.next_page:null,onClick:this.next,tabIndex:ie?null:0,onKeyPress:this.runIfEnterNext,className:S()("".concat(g,"-next"),Object(x.a)({},"".concat(g,"-disabled"),ie)),"aria-disabled":ie},this.renderNext(ze)),R.a.createElement(m,{disabled:j,locale:u,rootPrefixCls:g,selectComponentClass:K,selectPrefixCls:L,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:e,pageSize:i,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:be}))}}],[{key:"getDerivedStateFromProps",value:function(a,b){var g={};if("current"in a&&(g.current=a.current,a.current!==b.current&&(g.currentInputValue=g.current)),"pageSize"in a&&a.pageSize!==b.pageSize){var v=b.current,$=I(a.pageSize,b,a);v=v>$?$:v,"current"in a||(g.current=v,g.currentInputValue=v),g.pageSize=a.pageSize}return g}}]),c}(R.a.Component);te.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:z.a,style:{},itemRender:V,totalBoundaryShowSizeChanger:50};var A=te},"6RRn":function(Ae,ee,n){"use strict";var w=n("wCXF"),x=n("n6Qo");n.d(ee,"b",function(){return x.a});var fe=n("IBYe"),ce=n("6eGT"),H=n("hW8S");n.d(ee,"a",function(){return H.a}),ee.c=w.b},"6eGT":function(Ae,ee,n){"use strict";function w(x){return null}ee.a=w},"815F":function(Ae,ee,n){"use strict";n.d(ee,"e",function(){return le}),n.d(ee,"c",function(){return R}),n.d(ee,"d",function(){return P}),n.d(ee,"a",function(){return Q}),n.d(ee,"f",function(){return q}),n.d(ee,"b",function(){return X});var w=n("KQm4"),x=n("VTBJ"),fe=n("Ff2n"),ce=n("Zm9Q"),H=n("Kwbf"),o=n("OZM5");function le(p,m){return p!=null?p:m}function Y(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=new Map;function z(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(N||[]).forEach(function(V){var I=V.key,te=V.children;Object(H.a)(I!=null,"Tree node must have a certain key: [".concat(F).concat(I,"]"));var A=String(I);Object(H.a)(!m.has(A)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(A)),m.set(A,!0),z(te,"".concat(F).concat(A," > "))})}z(p)}function R(p){function m(z){var N=Object(ce.a)(z);return N.map(function(F){if(!Object(o.i)(F))return Object(H.a)(!F,"Tree/TreeNode can only accept TreeNode as children."),null;var V=F.key,I=F.props,te=I.children,A=Object(fe.a)(I,["children"]),U=Object(x.a)({key:V},A),B=m(te);return B.length&&(U.children=B),U}).filter(function(F){return F})}return m(p)}function P(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=new Set(m===!0?[]:m),N=[];function F(V){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return V.map(function(te,A){var U=Object(o.h)(I?I.pos:"0",A),B=le(te.key,U),c=Object(x.a)(Object(x.a)({},te),{},{parent:I,pos:U,children:null,data:te,isStart:[].concat(Object(w.a)(I?I.isStart:[]),[A===0]),isEnd:[].concat(Object(w.a)(I?I.isEnd:[]),[A===V.length-1])});return N.push(c),m===!0||z.has(B)?c.children=F(te.children||[],c):c.children=[],c})}return F(p),N}function S(p,m,z){var N;z?typeof z=="string"?N=function(I){return I[z]}:typeof z=="function"&&(N=function(I){return z(I)}):N=function(I,te){return le(I.key,te)};function F(V,I,te){var A=V?V.children:p,U=V?Object(o.h)(te.pos,I):"0";if(V){var B=N(V,U),c={node:V,index:I,pos:U,key:B,parentPos:te.node?te.pos:null,level:te.level+1};m(c)}A&&A.forEach(function(r,a){F(r,a,{node:V,pos:U,level:te?te.level+1:-1})})}F(null)}function Q(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=m.initWrapper,N=m.processEntity,F=m.onProcessFinished,V=arguments.length>2?arguments[2]:void 0,I={},te={},A={posEntities:I,keyEntities:te};return z&&(A=z(A)||A),S(p,function(U){var B=U.node,c=U.index,r=U.pos,a=U.key,b=U.parentPos,g=U.level,v={node:B,index:c,key:a,pos:r,level:g},$=le(a,r);I[r]=v,te[$]=v,v.parent=I[b],v.parent&&(v.parent.children=v.parent.children||[],v.parent.children.push(v)),N&&N(v,A)},V),F&&F(A),A}function q(p,m){var z=m.expandedKeys,N=m.selectedKeys,F=m.loadedKeys,V=m.loadingKeys,I=m.checkedKeys,te=m.halfCheckedKeys,A=m.dragOverNodeKey,U=m.dropPosition,B=m.keyEntities,c=B[p],r={eventKey:p,expanded:z.indexOf(p)!==-1,selected:N.indexOf(p)!==-1,loaded:F.indexOf(p)!==-1,loading:V.indexOf(p)!==-1,checked:I.indexOf(p)!==-1,halfChecked:te.indexOf(p)!==-1,pos:String(c?c.pos:""),dragOver:A===p&&U===0,dragOverGapTop:A===p&&U===-1,dragOverGapBottom:A===p&&U===1};return r}function X(p){var m=p.data,z=p.expanded,N=p.selected,F=p.checked,V=p.loaded,I=p.loading,te=p.halfChecked,A=p.dragOver,U=p.dragOverGapTop,B=p.dragOverGapBottom,c=p.pos,r=p.active,a=Object(x.a)(Object(x.a)({},m),{},{expanded:z,selected:N,checked:F,loaded:V,loading:I,halfChecked:te,dragOver:A,dragOverGapTop:U,dragOverGapBottom:B,pos:c,active:r});return"props"in a||Object.defineProperty(a,"props",{get:function(){return Object(H.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),p}}),a}},BfvP:function(Ae,ee,n){"use strict";n.r(ee);var w=n("2qtc"),x=n("kLXV"),fe=n("g9YV"),ce=n("wCAj"),H=n("k1fw"),o=n("DZo9"),le=n("8z0m"),Y=n("14J3"),R=n("BMrR"),P=n("+L6B"),S=n("2/Rp"),Q=n("jCWc"),q=n("kPKH"),X=n("5NDa"),p=n("5rEg"),m=n("OaEy"),z=n("2fM7"),N=n("/zsF"),F=n("PArb"),V=n("sPJy"),I=n("bE4q"),te=n("miYZ"),A=n("tsqr"),U=n("9og8"),B=n("y8nQ"),c=n("Vl3Y"),r=n("tJVT"),a=n("WmNS"),b=n.n(a),g=n("q1tI"),v=n.n(g),$=n("gvAy"),j=n.n($),f=n("55Ip"),y=n("9kvl"),u=n("ErOA"),s=function(l){var d,O=l.user,k={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,category:1,sort_by:null,sort_direction:null,school_id:null},G=Object(g.useState)(k),T=Object(r.a)(G,2),M=T[0],K=T[1],L=Object(g.useState)(!0),_=Object(r.a)(L,2),oe=_[0],e=_[1],i=Object(g.useState)([]),t=Object(r.a)(i,2),E=t[0],D=t[1],W=Object(g.useState)([]),ae=Object(r.a)(W,2),me=ae[0],xe=ae[1],Ee=Object(g.useState)([]),be=Object(r.a)(Ee,2),ge=be[0],Ke=be[1],ze=Object(g.useState)(!1),Fe=Object(r.a)(ze,2),Ye=Fe[0],He=Fe[1],rt=Object(g.useState)(),C=Object(r.a)(rt,2),J=C[0],Z=C[1],ue=Object(g.useState)(),he=Object(r.a)(ue,2),se=he[0],re=he[1],ne=c.a.useForm(),ie=Object(r.a)(ne,1),pe=ie[0],de=Object(g.useState)(),ve=Object(r.a)(de,2),Oe=ve[0],ye=ve[1],Pe=Object(g.useState)([]),Ie=Object(r.a)(Pe,2),De=Ie[0],we=Ie[1];Object(g.useEffect)(function(){var Ce;(Ce=O.userInfo)!==null&&Ce!==void 0&&Ce.school_id&&(je(),We())},[O==null||((d=O.userInfo)===null||d===void 0)?void 0:d.school_id]);function je(Ce){return $e.apply(this,arguments)}function $e(){return $e=Object(U.a)(b.a.mark(function Ce(Re){var Se,Te;return b.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ye(Object(H.a)({},Re)),_e.next=3,Object(u.a)("/api/schools/".concat(O==null||((Se=O.userInfo)===null||Se===void 0)?void 0:Se.school_id,"/ec_majors.json"),{method:"get",params:Object(H.a)({per_page:1e4},Re)});case 3:Te=_e.sent,xe(Te==null?void 0:Te.ec_majors);case 5:case"end":return _e.stop()}},Ce)})),$e.apply(this,arguments)}function We(){return ke.apply(this,arguments)}function ke(){return ke=Object(U.a)(b.a.mark(function Ce(){var Re;return b.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.next=2,Object(u.a)("/api/ec_major_schools/1/ec_years/select_year.json",{method:"get"});case 2:Re=Te.sent,Ke(Re==null?void 0:Re.year_arr);case 4:case"end":return Te.stop()}},Ce)})),ke.apply(this,arguments)}var Ve=[{title:"\u4E13\u4E1A\u4EE3\u7801",dataIndex:"code",key:"code"},{title:"\u4E13\u4E1A\u540D\u79F0",dataIndex:"name",key:"name"}],Je={onRemove:function(){we([])},beforeUpload:function(Re){if(console.log(Re),(Re==null?void 0:Re.size)>1024*1024*50)return A.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var Se=[];return Se.push(Re),we([].concat(Se)),!1},fileList:De};return v.a.createElement("div",{className:j.a.wrap},v.a.createElement(I.a,{separator:"",style:{padding:"20px"}},v.a.createElement(I.a.Item,null,v.a.createElement(f.a,{to:"/engineering/trainingProgram"},"\u57F9\u517B\u65B9\u6848")),v.a.createElement(I.a.Separator,null,">>"),v.a.createElement(I.a.Item,null,"\u65B0\u589E\u57F9\u517B\u65B9\u6848")),v.a.createElement("div",{className:j.a.title},"\u57F9\u517B\u65B9\u6848\u4FE1\u606F"),v.a.createElement(F.a,{style:{padding:"0px 20px"}}),v.a.createElement("div",{style:{paddingTop:"50px"}},v.a.createElement(c.a,{form:pe,labelCol:{span:8},wrapperCol:{span:8}},v.a.createElement(c.a.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"year",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5C4A\u522B"}]},v.a.createElement(z.a,null,ge==null?void 0:ge.map(function(Ce,Re){return v.a.createElement(z.a.Option,{value:Ce},Ce,"\u5C4A")}))),v.a.createElement(c.a.Item,{label:v.a.createElement("div",null,v.a.createElement("span",{style:{marginRight:"4px",color:"#ff4d4f"}},"*"),v.a.createElement("label",null,"\u8BA4\u8BC1\u4E13\u4E1A"))},v.a.createElement(R.a,{gutter:12,style:{flexFlow:"initial",flexDirection:"row-reverse"},className:j.a.rowFrom},v.a.createElement(q.a,{span:16},v.a.createElement(c.a.Item,{name:"major_id"},v.a.createElement(p.a,{style:{color:"#000"},disabled:!0,bordered:!1}))),v.a.createElement(q.a,{span:8},v.a.createElement(S.a,{onClick:function(){He(!0),re(J||"")}},"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A")))),v.a.createElement(c.a.Item,{label:"\u57F9\u517B\u65B9\u6848\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u57F9\u517B\u65B9\u6848\u540D\u79F0"},{max:60,message:"\u57F9\u517B\u65B9\u6848\u540D\u79F0\u4E0D\u80FD\u8D85\u8FC760\u4E2A\u5B57"}]},v.a.createElement(p.a,{placeholder:"\u4F8B\u5982\uFF1A2021\u7EA7\u8BA1\u7B97\u673A\u79D1\u5B66\u4E0E\u6280\u672F\u4E13\u4E1A\u672C\u79D1\u6280\u672F\u4EBA\u624D\u57F9\u517B\u65B9\u6848"})),v.a.createElement(R.a,null,v.a.createElement(q.a,{span:8,style:{justifyContent:"end",display:"flex",marginTop:"2px"}},v.a.createElement("label",null,"\u57F9\u517B\u65B9\u6848\u6587\u4EF6\uFF1A")),v.a.createElement(q.a,{span:8},v.a.createElement(le.a,Je,v.a.createElement(S.a,null,"\u4E0A\u4F20\u6587\u4EF6")))))),v.a.createElement("div",{style:{textAlign:"end",paddingRight:"30px"}},v.a.createElement(S.a,{onClick:function(){y.d.push("/engineering/trainingProgram")}},"\u8FD4\u56DE"),v.a.createElement(S.a,{onClick:Object(U.a)(b.a.mark(function Ce(){var Re,Se,Te,Le;return b.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return pe.submit(),Ue.next=3,pe.validateFields();case 3:if(Se=pe.getFieldsValue(),J){Ue.next=7;break}return A.b.info("\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"),Ue.abrupt("return");case 7:if(!(!Se.name||!Se.year)){Ue.next=9;break}return Ue.abrupt("return");case 9:return Te=new FormData,De.length>0&&Te.append("file",De[0]),Te.append("school_id",O==null||((Re=O.userInfo)===null||Re===void 0)?void 0:Re.school_id),Te.append("major_id",J),Te.append("name",Se.name),Te.append("year",Se.year),Ue.next=17,Object(u.a)("/api/ec_major_schools/1/ec_years.json",{method:"post",body:Te},!0);case 17:Le=Ue.sent,(Le==null?void 0:Le.status)===0&&(A.b.info("\u6DFB\u52A0\u6210\u529F"),y.d.push("/engineering/trainingProgram"));case 19:case"end":return Ue.stop()}},Ce)})),style:{marginLeft:"10px"},type:"primary"},"\u4FDD\u5B58")),v.a.createElement(x.a,{title:"\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",centered:!0,visible:Ye,onCancel:function(){He(!1),re("")},onOk:function(){var Re,Se;He(!1),Z(se),pe.setFieldsValue({major_id:me==null||((Re=me.filter(function(Te){return Te.id===parseInt(se)}))===null||Re===void 0||((Se=Re[0])===null||Se===void 0))?void 0:Se.name})}},v.a.createElement("div",{style:{display:"flex",marginBottom:"10px",alignItems:"center",justifyContent:"space-between"}},v.a.createElement(p.a.Search,{style:{width:"300px"},onSearch:function(Re){je(Object(H.a)(Object(H.a)({},Oe),{},{search:Re}))},placeholder:"\u8BF7\u8F93\u5165\u4E13\u4E1A\u4EE3\u7801\u6216\u540D\u79F0"})),v.a.createElement(ce.a,{dataSource:me,columns:Ve,pagination:!1,rowKey:function(Re){return Re.id},scroll:{y:300},rowSelection:{type:"radio",onChange:function(Re,Se){re(Re)},selectedRowKeys:se}})))};ee.default=Object(y.a)(function(h){var l=h.user;return{user:l}})(s)},GfqC:function(Ae,ee,n){"use strict";var w=n("q1tI"),x=n.n(w),fe=n("TSYQ"),ce=n.n(fe);function H(u,s){var h="cannot "+u.method+" "+u.action+" "+s.status+"'",l=new Error(h);return l.status=s.status,l.method=u.method,l.url=u.action,l}function o(u){var s=u.responseText||u.response;if(!s)return s;try{return JSON.parse(s)}catch(h){return s}}function le(u){var s=new XMLHttpRequest;u.onProgress&&s.upload&&(s.upload.onprogress=function(O){O.total>0&&(O.percent=O.loaded/O.total*100),u.onProgress(O)});var h=new FormData;u.data&&Object.keys(u.data).forEach(function(d){var O=u.data[d];if(Array.isArray(O)){O.forEach(function(k){h.append(d+"[]",k)});return}h.append(d,u.data[d])}),u.file instanceof Blob?h.append(u.filename,u.file,u.file.name):h.append(u.filename,u.file),s.onerror=function(O){u.onError(O)},s.onload=function(){return s.status<200||s.status>=300?u.onError(H(u,s),o(s)):u.onSuccess(o(s),s)},s.open(u.method,u.action,!0),u.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);var l=u.headers||{};return l["X-Requested-With"]!==null&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(l).forEach(function(d){l[d]!==null&&s.setRequestHeader(d,l[d])}),s.send(h),{abort:function(){s.abort()}}}var Y=+new Date,R=0;function P(){return"rc-upload-"+Y+"-"+ ++R}function S(u,s){return u.indexOf(s,u.length-s.length)!==-1}var Q=function(u,s){if(u&&s){var h=Array.isArray(s)?s:s.split(","),l=u.name||"",d=u.type||"",O=d.replace(/\/.*$/,"");return h.some(function(k){var G=k.trim();return G.charAt(0)==="."?S(l.toLowerCase(),G.toLowerCase()):/\/\*$/.test(G)?O===G.replace(/\/.*$/,""):d===G})}return!0};function q(u,s){var h=u.createReader(),l=[];function d(){h.readEntries(function(O){var k=Array.prototype.slice.apply(O);l=l.concat(k);var G=!k.length;G?s(l):d()})}d()}var X=function(s,h,l){var d=function O(k,G){G=G||"",k.isFile?k.file(function(T){l(T)&&(k.fullPath&&!T.webkitRelativePath&&(Object.defineProperties(T,{webkitRelativePath:{writable:!0}}),T.webkitRelativePath=k.fullPath.replace(/^\//,""),Object.defineProperties(T,{webkitRelativePath:{writable:!1}})),h([T]))}):k.isDirectory&&q(k,function(T){T.forEach(function(M){O(M,""+G+k.name+"/")})})};s.forEach(function(O){d(O.webkitGetAsEntry())})},p=X,m=Object.assign||function(u){for(var s=1;s=0)continue;if(!Object.prototype.hasOwnProperty.call(u,l))continue;h[l]=u[l]}return h}function I(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function te(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function A(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var U=function(s){return Object.keys(s).reduce(function(h,l){return(l.substr(0,5)==="data-"||l.substr(0,5)==="aria-"||l==="role")&&(h[l]=s[l]),h},{})},B=function(u){A(s,u);function s(){var h,l,d,O;I(this,s);for(var k=arguments.length,G=Array(k),T=0;T1&&arguments[1]!==void 0?arguments[1]:1,ie=ge.length,pe=0;pe1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(h).map(function(d,O){if(!H.isValidElement(d)||!d.type)return null;var k=d.type.isSelectOptGroup,G=d.key,T=d.props,M=T.children,K=Object(le.a)(T,["children"]);return l||!k?B(d):Object(A.a)(Object(A.a)({key:"__RC_SELECT_GRP__".concat(G===null?O:G,"__"),label:G},K),{},{options:c(M)})}).filter(function(d){return d})}var r=n("2Qr1"),a=n("qNPg"),b=n("U8pU"),g=n("Kwbf"),v=n("WKfj");function $(h){var l=h.mode,d=h.options,O=h.children,k=h.backfill,G=h.allowClear,T=h.placeholder,M=h.getInputElement,K=h.showSearch,L=h.onSearch,_=h.defaultOpen,oe=h.autoFocus,e=h.labelInValue,i=h.value,t=h.inputValue,E=h.optionLabelProp,D=l==="multiple"||l==="tags",W=K!==void 0?K:D||l==="combobox",ae=d||c(O);if(Object(g.a)(l!=="tags"||ae.every(function(be){return!be.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),l==="tags"||l==="combobox"){var me=ae.some(function(be){return be.options?be.options.some(function(ge){return typeof("value"in ge?ge.value:ge.key)=="number"}):typeof("value"in be?be.value:be.key)=="number"});Object(g.a)(!me,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(g.a)(l!=="combobox"||!E,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(g.a)(l==="combobox"||!k,"`backfill` only works with `combobox` mode."),Object(g.a)(l==="combobox"||!M,"`getInputElement` only work with `combobox` mode."),Object(g.b)(l!=="combobox"||!M||!G||!T,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),L&&!W&&l!=="combobox"&&l!=="tags"&&Object(g.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(g.b)(!_||oe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),i!=null){var xe=Object(v.d)(i);Object(g.a)(!e||xe.every(function(be){return Object(b.a)(be)==="object"&&("key"in be||"value"in be)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(g.a)(!D||Array.isArray(i),"`value` should be array when `mode` is `multiple` or `tags`")}if(O){var Ee=null;Object(U.a)(O).some(function(be){if(!H.isValidElement(be)||!be.type)return!1;var ge=be.type;if(ge.isSelectOption)return!1;if(ge.isSelectOptGroup){var Ke=Object(U.a)(be.props.children).every(function(ze){return!H.isValidElement(ze)||!be.type||ze.type.isSelectOption?!0:(Ee=ze.type,!1)});return!Ke}return Ee=ge,!0}),Ee&&Object(g.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ee.displayName||Ee.name||Ee,"`.")),Object(g.a)(t===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var j=$,f=Object(a.a)({prefixCls:"rc-select",components:{optionList:N},convertChildrenToData:c,flattenOptions:r.d,getLabeledValue:r.e,filterOptions:r.b,isValueDisabled:r.g,findValueOption:r.c,warningProps:j,fillOptionsWithMissingValue:r.a}),y=function(h){Object(fe.a)(d,h);var l=Object(ce.a)(d);function d(){var O;return Object(w.a)(this,d),O=l.apply(this,arguments),O.selectRef=H.createRef(),O.focus=function(){O.selectRef.current.focus()},O.blur=function(){O.selectRef.current.blur()},O}return Object(x.a)(d,[{key:"render",value:function(){return H.createElement(f,Object.assign({ref:this.selectRef},this.props))}}]),d}(H.Component);y.Option=V,y.OptGroup=te;var u=y,s=ee.c=u},NvD2:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return o});var w=n("Kwbf");function x(le,Y){var R=new Set;return le.forEach(function(P){Y.has(P)||R.add(P)}),R}function fe(le){var Y=le||{},R=Y.disabled,P=Y.disableCheckbox,S=Y.checkable;return!!(R||P)||S===!1}function ce(le,Y,R,P){for(var S=new Set(le),Q=new Set,q=0;q<=R;q+=1){var X=Y.get(q)||new Set;X.forEach(function(N){var F=N.key,V=N.node,I=N.children,te=I===void 0?[]:I;S.has(F)&&!P(V)&&te.filter(function(A){return!P(A.node)}).forEach(function(A){S.add(A.key)})})}for(var p=new Set,m=R;m>=0;m-=1){var z=Y.get(m)||new Set;z.forEach(function(N){var F=N.parent,V=N.node;if(P(V)||!N.parent||p.has(N.parent.key))return;if(P(N.parent.node)){p.add(F.key);return}var I=!0,te=!1;(F.children||[]).filter(function(A){return!P(A.node)}).forEach(function(A){var U=A.key,B=S.has(U);I&&!B&&(I=!1),!te&&(B||Q.has(U))&&(te=!0)}),I&&S.add(F.key),te&&Q.add(F.key),p.add(F.key)})}return{checkedKeys:Array.from(S),halfCheckedKeys:Array.from(x(Q,S))}}function H(le,Y,R,P,S){for(var Q=new Set(le),q=new Set(Y),X=0;X<=P;X+=1){var p=R.get(X)||new Set;p.forEach(function(F){var V=F.key,I=F.node,te=F.children,A=te===void 0?[]:te;!Q.has(V)&&!q.has(V)&&!S(I)&&A.filter(function(U){return!S(U.node)}).forEach(function(U){Q.delete(U.key)})})}q=new Set;for(var m=new Set,z=P;z>=0;z-=1){var N=R.get(z)||new Set;N.forEach(function(F){var V=F.parent,I=F.node;if(S(I)||!F.parent||m.has(F.parent.key))return;if(S(F.parent.node)){m.add(V.key);return}var te=!0,A=!1;(V.children||[]).filter(function(U){return!S(U.node)}).forEach(function(U){var B=U.key,c=Q.has(B);te&&!c&&(te=!1),!A&&(c||q.has(B))&&(A=!0)}),te||Q.delete(V.key),A&&q.add(V.key),m.add(V.key)})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(x(q,Q))}}function o(le,Y,R,P){var S=[],Q;P?Q=P:Q=fe;var q=new Set(le.filter(function(z){var N=!!R[z];return N||S.push(z),N})),X=new Map,p=0;Object.keys(R).forEach(function(z){var N=R[z],F=N.level,V=X.get(F);V||(V=new Set,X.set(F,V)),V.add(N),p=Math.max(p,F)}),Object(w.a)(!S.length,"Tree missing follow keys: ".concat(S.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var m;return Y===!0?m=ce(q,X,p,Q):m=H(q,Y.halfCheckedKeys,X,p,Q),m}},OZM5:function(Ae,ee,n){"use strict";n.d(ee,"b",function(){return P}),n.d(ee,"a",function(){return S}),n.d(ee,"k",function(){return Q}),n.d(ee,"h",function(){return q}),n.d(ee,"i",function(){return X}),n.d(ee,"g",function(){return p}),n.d(ee,"c",function(){return m}),n.d(ee,"d",function(){return z}),n.d(ee,"j",function(){return V}),n.d(ee,"e",function(){return I}),n.d(ee,"f",function(){return te});var w=n("KQm4"),x=n("U8pU"),fe=n("Ff2n"),ce=n("q1tI"),H=n.n(ce),o=n("Kwbf"),le=n("WaYH"),Y=.25,R=2;function P(A,U){var B=A.slice(),c=B.indexOf(U);return c>=0&&B.splice(c,1),B}function S(A,U){var B=A.slice();return B.indexOf(U)===-1&&B.push(U),B}function Q(A){return A.split("-")}function q(A,U){return"".concat(A,"-").concat(U)}function X(A){return A&&A.type&&A.type.isTreeNode}function p(A,U){var B=[A],c=U[A];function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(b){var g=b.key,v=b.children;B.push(g),r(v)})}return r(c.children),B}function m(A,U){var B=A.clientY,c=U.selectHandle.getBoundingClientRect(),r=c.top,a=c.bottom,b=c.height,g=Math.max(b*Y,R);return B<=r+g?-1:B>=a-g?1:0}function z(A,U){if(!A)return;var B=U.multiple;return B?A.slice():A.length?[A[0]]:A}var N=function(U){return U};function F(A,U){if(!A)return[];var B=U||{},c=B.processProps,r=c===void 0?N:c,a=Array.isArray(A)?A:[A];return a.map(function(b){var g=b.children,v=Object(fe.a)(b,["children"]),$=F(g,U);return H.a.createElement(le.a,Object.assign({},r(v)),$)})}function V(A){if(!A)return null;var U;if(Array.isArray(A))U={checkedKeys:A,halfCheckedKeys:void 0};else if(Object(x.a)(A)==="object")U={checkedKeys:A.checked||void 0,halfCheckedKeys:A.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return U}function I(A,U){var B=new Set;function c(r){if(B.has(r))return;var a=U[r];if(!a)return;B.add(r);var b=a.parent,g=a.node;if(g.disabled)return;b&&c(b.key)}return(A||[]).forEach(function(r){c(r)}),Object(w.a)(B)}function te(A){var U={};return Object.keys(A).forEach(function(B){(B.startsWith("data-")||B.startsWith("aria-"))&&(U[B]=A[B])}),U}},"SA+Z":function(Ae,ee,n){var w=n("wTVA"),x=n("EbDI"),fe=n("ZhPi"),ce=n("wkBT");function H(o){return w(o)||x(o)||fe(o)||ce()}Ae.exports=H,Ae.exports.__esModule=!0,Ae.exports.default=Ae.exports},WaYH:function(Ae,ee,n){"use strict";var w=n("rePB"),x=n("Ff2n"),fe=n("VTBJ"),ce=n("1OyB"),H=n("vuIU"),o=n("JX7q"),le=n("Ji7U"),Y=n("LK+K"),R=n("q1tI"),P=n("TSYQ"),S=n.n(P),Q=n("sboe"),q=n("OZM5"),X=function(U){var B=U.prefixCls,c=U.level,r=U.isStart,a=U.isEnd;if(!c)return null;for(var b="".concat(B,"-indent-unit"),g=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:!1,K=P.getAttribute("id")||P.getAttribute("data-reactid")||P.getAttribute("name");if(M&&j[K])return j[K];var L=window.getComputedStyle(P),_=L.getPropertyValue("box-sizing")||L.getPropertyValue("-moz-box-sizing")||L.getPropertyValue("-webkit-box-sizing"),oe=parseFloat(L.getPropertyValue("padding-bottom"))+parseFloat(L.getPropertyValue("padding-top")),e=parseFloat(L.getPropertyValue("border-bottom-width"))+parseFloat(L.getPropertyValue("border-top-width")),i=$.map(function(E){return"".concat(E,":").concat(L.getPropertyValue(E))}).join(";"),t={sizingStyle:i,paddingSize:oe,borderSize:e,boxSizing:_};return M&&K&&(j[K]=t),t}function u(P){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;f||(f=document.createElement("textarea"),f.setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f)),P.getAttribute("wrap")?f.setAttribute("wrap",P.getAttribute("wrap")):f.removeAttribute("wrap");var _=y(P,M),oe=_.paddingSize,e=_.borderSize,i=_.boxSizing,t=_.sizingStyle;f.setAttribute("style","".concat(t,";").concat(v)),f.value=P.value||P.placeholder||"";var E=Number.MIN_SAFE_INTEGER,D=Number.MAX_SAFE_INTEGER,W=f.scrollHeight,ae;if(i==="border-box"?W+=e:i==="content-box"&&(W-=oe),K!==null||L!==null){f.value=" ";var me=f.scrollHeight-oe;K!==null&&(E=me*K,i==="border-box"&&(E=E+oe+e),W=Math.max(E,W)),L!==null&&(D=me*L,i==="border-box"&&(D=D+oe+e),ae=W>D?"":"hidden",W=Math.min(D,W))}return{height:W,minHeight:E,maxHeight:D,overflowY:ae,resize:"none"}}var s=n("Gytx"),h=n.n(s),l;(function(P){P[P.NONE=0]="NONE",P[P.RESIZING=1]="RESIZING",P[P.RESIZED=2]="RESIZED"})(l||(l={}));var d=function(P){Object(ce.a)(K,P);var M=Object(H.a)(K);function K(L){var _;return Object(x.a)(this,K),_=M.call(this,L),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(oe){_.textArea=oe},_.handleResize=function(oe){var e=_.state.resizeStatus,i=_.props,t=i.autoSize,E=i.onResize;if(e!==l.NONE)return;typeof E=="function"&&E(oe),t&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var oe=_.props.autoSize;if(!oe||!_.textArea)return;var e=oe.minRows,i=oe.maxRows,t=u(_.textArea,!1,e,i);_.setState({textareaStyles:t,resizeStatus:l.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var oe=_.props,e=oe.prefixCls,i=e===void 0?"rc-textarea":e,t=oe.autoSize,E=oe.onResize,D=oe.className,W=oe.disabled,ae=_.state,me=ae.textareaStyles,xe=ae.resizeStatus,Ee=Object(a.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),be=g()(i,D,Object(Y.a)({},"".concat(i,"-disabled"),W));"value"in Ee&&(Ee.value=Ee.value||"");var ge=Object(le.a)(Object(le.a)(Object(le.a)({},_.props.style),me),xe===l.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return o.createElement(r,{onResize:_.handleResize,disabled:!(t||E)},o.createElement("textarea",Object(w.a)({},Ee,{className:be,style:ge,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:l.NONE},_}return Object(fe.a)(K,[{key:"componentDidUpdate",value:function(_){(_.value!==this.props.value||!h()(_.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 _=this.textArea.selectionStart,oe=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,oe)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),K}(o.Component),O=d,k=function(P){Object(ce.a)(K,P);var M=Object(H.a)(K);function K(L){var _;Object(x.a)(this,K),_=M.call(this,L),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(e){_.resizableTextArea=e},_.handleChange=function(e){var i=_.props.onChange;_.setValue(e.target.value,function(){_.resizableTextArea.resizeTextarea()}),i&&i(e)},_.handleKeyDown=function(e){var i=_.props,t=i.onPressEnter,E=i.onKeyDown;e.keyCode===13&&t&&t(e),E&&E(e)};var oe=typeof L.value=="undefined"||L.value===null?L.defaultValue:L.value;return _.state={value:oe},_}return Object(fe.a)(K,[{key:"setValue",value:function(_,oe){"value"in this.props||this.setState({value:_},oe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return o.createElement(O,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),K}(o.Component),G=ee.default=k},ZpRC:function(Ae,ee,n){"use strict";function w(S){return typeof S=="object"&&S!=null&&S.nodeType===1}function x(S,Q){return(!Q||S!=="hidden")&&S!=="visible"&&S!=="clip"}function fe(S,Q){if(S.clientHeightQ||m>S&&z=Q&&N>=q?m-S-X:z>Q&&Nq?z-Q+p:0}var H=function(S,Q){var q=window,X=Q.scrollMode,p=Q.block,m=Q.inline,z=Q.boundary,N=Q.skipOverflowHiddenElements,F=typeof z=="function"?z:function(me){return me!==z};if(!w(S))throw new TypeError("Invalid target");for(var V=document.scrollingElement||document.documentElement,I=[],te=S;w(te)&&F(te);){if((te=te.parentElement)===V){I.push(te);break}te!=null&&te===document.body&&fe(te)&&!fe(document.documentElement)||te!=null&&fe(te,N)&&I.push(te)}for(var A=q.visualViewport?q.visualViewport.width:innerWidth,U=q.visualViewport?q.visualViewport.height:innerHeight,B=window.scrollX||pageXOffset,c=window.scrollY||pageYOffset,r=S.getBoundingClientRect(),a=r.height,b=r.width,g=r.top,v=r.right,$=r.bottom,j=r.left,f=p==="start"||p==="nearest"?g:p==="end"?$:g+a/2,y=m==="center"?j+b/2:m==="end"?v:j,u=[],s=0;s=0&&j>=0&&$<=U&&v<=A&&g>=k&&$<=P&&j>=M&&v<=G)return u;var K=getComputedStyle(h),L=parseInt(K.borderLeftWidth,10),_=parseInt(K.borderTopWidth,10),oe=parseInt(K.borderRightWidth,10),e=parseInt(K.borderBottomWidth,10),i=0,t=0,E="offsetWidth"in h?h.offsetWidth-h.clientWidth-L-oe:0,D="offsetHeight"in h?h.offsetHeight-h.clientHeight-_-e:0;if(V===h)i=p==="start"?f:p==="end"?f-U:p==="nearest"?ce(c,c+U,U,_,e,c+f,c+f+a,a):f-U/2,t=m==="start"?y:m==="center"?y-A/2:m==="end"?y-A:ce(B,B+A,A,L,oe,B+y,B+y+b,b),i=Math.max(0,i+c),t=Math.max(0,t+B);else{i=p==="start"?f-k-_:p==="end"?f-P+e+D:p==="nearest"?ce(k,P,d,_,e+D,f,f+a,a):f-(k+d/2)+D/2,t=m==="start"?y-M-L:m==="center"?y-(M+O/2)+E/2:m==="end"?y-G+oe+E:ce(M,G,O,L,oe+E,y,y+b,b);var W=h.scrollLeft,ae=h.scrollTop;f+=ae-(i=Math.max(0,Math.min(ae+i,h.scrollHeight-d+D))),y+=W-(t=Math.max(0,Math.min(W+t,h.scrollWidth-O+E)))}u.push({el:h,top:i,left:t})}return u};function o(S){return S===Object(S)&&Object.keys(S).length!==0}function le(S,Q){Q===void 0&&(Q="auto");var q="scrollBehavior"in document.body.style;S.forEach(function(X){var p=X.el,m=X.top,z=X.left;p.scroll&&q?p.scroll({top:m,left:z,behavior:Q}):(p.scrollTop=m,p.scrollLeft=z)})}function Y(S){return S===!1?{block:"end",inline:"nearest"}:o(S)?S:{block:"start",inline:"nearest"}}function R(S,Q){var q=!S.ownerDocument.documentElement.contains(S);if(o(Q)&&typeof Q.behavior=="function")return Q.behavior(q?[]:H(S,Q));if(q)return;var X=Y(Q);return le(H(S,X),X.behavior)}var T=ee.a=R},Zss7:function(Ae,ee,n){var w;(function(x){var fe=/^\s+/,ce=/\s+$/,H=0,o=x.round,le=x.min,Y=x.max,R=x.random;function T(e,i){if(e=e||"",i=i||{},e instanceof T)return e;if(!(this instanceof T))return new T(e,i);var t=S(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=o(100*this._a)/100,this._format=i.format||t.format,this._gradientType=i.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=t.ok,this._tc_id=H++}T.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 e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),i,t,E,D,W,ae;return i=e.r/255,t=e.g/255,E=e.b/255,i<=.03928?D=i/12.92:D=x.pow((i+.055)/1.055,2.4),t<=.03928?W=t/12.92:W=x.pow((t+.055)/1.055,2.4),E<=.03928?ae=E/12.92:ae=x.pow((E+.055)/1.055,2.4),.2126*D+.7152*W+.0722*ae},setAlpha:function(e){return this._a=u(e),this._roundA=o(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),E=o(e.v*100);return this._a==1?"hsv("+i+", "+t+"%, "+E+"%)":"hsva("+i+", "+t+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var e=q(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=q(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),E=o(e.l*100);return this._a==1?"hsl("+i+", "+t+"%, "+E+"%)":"hsla("+i+", "+t+"%, "+E+"%, "+this._roundA+")"},toHex:function(e){return z(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return N(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(s(this._r,255)*100)+"%",g:o(s(this._g,255)*100)+"%",b:o(s(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%)":"rgba("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:f[z(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var i="#"+F(this._r,this._g,this._b,this._a),t=i,E=this._gradientType?"GradientType = 1, ":"";if(e){var D=T(e);t="#"+F(D._r,D._g,D._b,D._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+i+",endColorstr="+t+")"},toString:function(e){var i=!!e;e=e||this._format;var t=!1,E=this._a<1&&this._a>=0,D=!i&&E&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return D?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(t=this.toRgbString()),e==="prgb"&&(t=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(t=this.toHexString()),e==="hex3"&&(t=this.toHexString(!0)),e==="hex4"&&(t=this.toHex8String(!0)),e==="hex8"&&(t=this.toHex8String()),e==="name"&&(t=this.toName()),e==="hsl"&&(t=this.toHslString()),e==="hsv"&&(t=this.toHsvString()),t||this.toHexString())},clone:function(){return T(this.toString())},_applyModification:function(e,i){var t=e.apply(null,[this].concat([].slice.call(i)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(U,arguments)},darken:function(){return this._applyModification(B,arguments)},desaturate:function(){return this._applyModification(V,arguments)},saturate:function(){return this._applyModification(I,arguments)},greyscale:function(){return this._applyModification(te,arguments)},spin:function(){return this._applyModification(c,arguments)},_applyCombination:function(e,i){return e.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(r,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(g,arguments)},triad:function(){return this._applyCombination(a,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},T.fromRatio=function(e,i){if(typeof e=="object"){var t={};for(var E in e)e.hasOwnProperty(E)&&(E==="a"?t[E]=e[E]:t[E]=G(e[E]));e=t}return T(e,i)};function S(e){var i={r:0,g:0,b:0},t=1,E=null,D=null,W=null,ae=!1,me=!1;return typeof e=="string"&&(e=_(e)),typeof e=="object"&&(L(e.r)&&L(e.g)&&L(e.b)?(i=Q(e.r,e.g,e.b),ae=!0,me=String(e.r).substr(-1)==="%"?"prgb":"rgb"):L(e.h)&&L(e.s)&&L(e.v)?(E=G(e.s),D=G(e.v),i=m(e.h,E,D),ae=!0,me="hsv"):L(e.h)&&L(e.s)&&L(e.l)&&(E=G(e.s),W=G(e.l),i=X(e.h,E,W),ae=!0,me="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=u(t),{ok:ae,format:e.format||me,r:le(255,Y(i.r,0)),g:le(255,Y(i.g,0)),b:le(255,Y(i.b,0)),a:t}}function Q(e,i,t){return{r:s(e,255)*255,g:s(i,255)*255,b:s(t,255)*255}}function q(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var E=Y(e,i,t),D=le(e,i,t),W,ae,me=(E+D)/2;if(E==D)W=ae=0;else{var xe=E-D;ae=me>.5?xe/(2-E-D):xe/(E+D);switch(E){case e:W=(i-t)/xe+(i1&&(ge-=1),ge<1/6?Ee+(be-Ee)*6*ge:ge<1/2?be:ge<2/3?Ee+(be-Ee)*(2/3-ge)*6:Ee}if(i===0)E=D=W=t;else{var me=t<.5?t*(1+i):t+i-t*i,xe=2*t-me;E=ae(xe,me,e+1/3),D=ae(xe,me,e),W=ae(xe,me,e-1/3)}return{r:E*255,g:D*255,b:W*255}}function p(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var E=Y(e,i,t),D=le(e,i,t),W,ae,me=E,xe=E-D;if(ae=E===0?0:xe/E,E==D)W=0;else{switch(E){case e:W=(i-t)/xe+(i>1)+720)%360;--i;)E.h=(E.h+D)%360,W.push(T(E));return W}function $(e,i){i=i||6;for(var t=T(e).toHsv(),E=t.h,D=t.s,W=t.v,ae=[],me=1/i;i--;)ae.push(T({h:E,s:D,v:W})),W=(W+me)%1;return ae}T.mix=function(e,i,t){t=t===0?0:t||50;var E=T(e).toRgb(),D=T(i).toRgb(),W=t/100,ae={r:(D.r-E.r)*W+E.r,g:(D.g-E.g)*W+E.g,b:(D.b-E.b)*W+E.b,a:(D.a-E.a)*W+E.a};return T(ae)},T.readability=function(e,i){var t=T(e),E=T(i);return(x.max(t.getLuminance(),E.getLuminance())+.05)/(x.min(t.getLuminance(),E.getLuminance())+.05)},T.isReadable=function(e,i,t){var E=T.readability(e,i),D,W;W=!1,D=oe(t);switch(D.level+D.size){case"AAsmall":case"AAAlarge":W=E>=4.5;break;case"AAlarge":W=E>=3;break;case"AAAsmall":W=E>=7;break}return W},T.mostReadable=function(e,i,t){var E=null,D=0,W,ae,me,xe;t=t||{},ae=t.includeFallbackColors,me=t.level,xe=t.size;for(var Ee=0;EeD&&(D=W,E=T(i[Ee]));return T.isReadable(e,E,{level:me,size:xe})||!ae?E:(t.includeFallbackColors=!1,T.mostReadable(e,["#fff","#000"],t))};var j=T.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=T.hexNames=y(j);function y(e){var i={};for(var t in e)e.hasOwnProperty(t)&&(i[e[t]]=t);return i}function u(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function s(e,i){d(e)&&(e="100%");var t=O(e);return e=le(i,Y(0,parseFloat(e))),t&&(e=parseInt(e*i,10)/100),x.abs(e-i)<1e-6?1:e%i/parseFloat(i)}function h(e){return le(1,Y(0,e))}function l(e){return parseInt(e,16)}function d(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function O(e){return typeof e=="string"&&e.indexOf("%")!=-1}function k(e){return e.length==1?"0"+e:""+e}function G(e){return e<=1&&(e=e*100+"%"),e}function P(e){return x.round(parseFloat(e)*255).toString(16)}function M(e){return l(e)/255}var K=function(){var e="[-\\+]?\\d+%?",i="[-\\+]?\\d*\\.\\d+%?",t="(?:"+i+")|(?:"+e+")",E="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",D="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+D),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 L(e){return!!K.CSS_UNIT.exec(e)}function _(e){e=e.replace(fe,"").replace(ce,"").toLowerCase();var i=!1;if(j[e])e=j[e],i=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=K.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=K.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=K.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=K.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=K.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=K.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=K.hex8.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),a:M(t[4]),format:i?"name":"hex8"}:(t=K.hex6.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),format:i?"name":"hex"}:(t=K.hex4.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:i?"name":"hex8"}:(t=K.hex3.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),format:i?"name":"hex"}:!1}function oe(e){var i,t;return e=e||{level:"AA",size:"small"},i=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),i!=="AA"&&i!=="AAA"&&(i="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:i,size:t}}Ae.exports?Ae.exports=T:!(w=function(){return T}.call(ee,n,ee,Ae),w!==void 0&&(Ae.exports=w))})(Math)},bT9E:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return x});var w=n("VTBJ");function x(fe,ce){var H=Object(w.a)({},fe);return Array.isArray(ce)&&ce.forEach(function(o){delete H[o]}),H}},biw7:function(Ae,ee,n){"use strict";var w=n("q1tI"),x=n.n(w),fe=w.createContext(null);ee.a=fe},fyJ8:function(Ae,ee,n){"use strict";var w=n("rePB"),x=n("VTBJ"),fe=n("Ff2n"),ce=n("U8pU"),H=n("q1tI"),o=n.n(H),le=n("TSYQ"),Y=n.n(le),R=n("c+Xe"),T=n("sR1s");function S(m){return m&&Object(ce.a)(m)==="object"&&!Array.isArray(m)&&!H.isValidElement(m)}function Q(m){return typeof m=="string"?!0:Object(R.c)(m)}function q(m,z){var N,F=m.prefixCls,V=m.className,I=m.record,te=m.index,A=m.dataIndex,U=m.render,B=m.children,c=m.component,r=c===void 0?"td":c,a=m.colSpan,b=m.rowSpan,g=m.fixLeft,v=m.fixRight,$=m.firstFixLeft,j=m.lastFixLeft,f=m.firstFixRight,y=m.lastFixRight,u=m.appendNode,s=m.additionalProps,h=s===void 0?{}:s,l=m.ellipsis,d=m.align,O=m.rowType,k=m.isSticky,G="".concat(F,"-cell"),P,M;if(B)M=B;else{var K=Object(T.b)(I,A);if(M=K,U){var L=U(K,I,te);S(L)?(M=L.children,P=L.props):M=L}}Object(ce.a)(M)==="object"&&!Array.isArray(M)&&!H.isValidElement(M)&&(M=null),l&&(j||f)&&(M=H.createElement("span",{className:"".concat(G,"-content")},M));var _=P||{},oe=_.colSpan,e=_.rowSpan,i=_.style,t=_.className,E=Object(fe.a)(_,["colSpan","rowSpan","style","className"]),D=oe!==void 0?oe:a,W=e!==void 0?e:b;if(D===0||W===0)return null;var ae={},me=typeof g=="number",xe=typeof v=="number";me&&(ae.position="sticky",ae.left=g),xe&&(ae.position="sticky",ae.right=v);var Ee={};d&&(Ee.textAlign=d);var be,ge=l===!0?{showTitle:!0}:l;ge&&(ge.showTitle||O==="header")&&(typeof M=="string"||typeof M=="number"?be=M.toString():H.isValidElement(M)&&typeof M.props.children=="string"&&(be=M.props.children));var Ke=Object(x.a)(Object(x.a)(Object(x.a)({title:be},E),h),{},{colSpan:D&&D!==1?D:null,rowSpan:W&&W!==1?W:null,className:Y()(G,V,(N={},Object(w.a)(N,"".concat(G,"-fix-left"),me),Object(w.a)(N,"".concat(G,"-fix-left-first"),$),Object(w.a)(N,"".concat(G,"-fix-left-last"),j),Object(w.a)(N,"".concat(G,"-fix-right"),xe),Object(w.a)(N,"".concat(G,"-fix-right-first"),f),Object(w.a)(N,"".concat(G,"-fix-right-last"),y),Object(w.a)(N,"".concat(G,"-ellipsis"),l),Object(w.a)(N,"".concat(G,"-with-append"),u),Object(w.a)(N,"".concat(G,"-fix-sticky"),(me||xe)&&k),N),h.className,t),style:Object(x.a)(Object(x.a)(Object(x.a)(Object(x.a)({},h.style),Ee),ae),i),ref:Q(r)?z:null});return H.createElement(r,Object.assign({},Ke),u,M)}var X=H.forwardRef(q);X.displayName="Cell";var p=H.memo(X,function(m,z){return z.shouldCellUpdate?!z.shouldCellUpdate(z.record,m.record):!1});ee.a=p},gvAy:function(Ae,ee,n){Ae.exports={flex_box_center:"flex_box_center___1prm7",flex_space_between:"flex_space_between___16qSu",flex_box_vertical_center:"flex_box_vertical_center___1nirN",flex_box_center_end:"flex_box_center_end___WeMYY",flex_box_column:"flex_box_column___2-M3x",wrap:"wrap___3TjEW",title:"title___CPqX6",control:"control___1AAwX",label:"label___1ueIb",rowFrom:"rowFrom___2XL75",customTable:"customTable___y7317"}},h78n:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return $});var w=n("q1tI"),x=n.n(w),fe=n("TSYQ"),ce=n.n(fe),H={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},o=function(y){var u=y.map(function(){return Object(w.useRef)()}),s=Object(w.useRef)();return Object(w.useEffect)(function(){var h=Date.now(),l=!1;Object.keys(u).forEach(function(d){var O=u[d].current;if(!O)return;l=!0;var k=O.style;k.transitionDuration=".3s, .3s, .3s, .06s",s.current&&h-s.current<100&&(k.transitionDuration="0s, 0s")}),l&&(s.current=Date.now())}),[u]};function le(){return le=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function p(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var m=function(y){var u=y.className,s=y.percent,h=y.prefixCls,l=y.strokeColor,d=y.strokeLinecap,O=y.strokeWidth,k=y.style,G=y.trailColor,P=y.trailWidth,M=y.transition,K=X(y,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete K.gapPosition;var L=Array.isArray(s)?s:[s],_=Array.isArray(l)?l:[l],oe=o(L),e=Y(oe,1),i=e[0],t=O/2,E=100-O/2,D="M ".concat(d==="round"?t:0,",").concat(t,` - L `).concat(d==="round"?E:100,",").concat(t),W="0 0 100 ".concat(O),ae=0;return x.a.createElement("svg",le({className:ce()("".concat(h,"-line"),u),viewBox:W,preserveAspectRatio:"none",style:k},K),x.a.createElement("path",{className:"".concat(h,"-line-trail"),d:D,strokeLinecap:d,stroke:G,strokeWidth:P||O,fillOpacity:"0"}),L.map(function(me,xe){var Ee={strokeDasharray:"".concat(me,"px, 100px"),strokeDashoffset:"-".concat(ae,"px"),transition:M||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},be=_[xe]||_[_.length-1];return ae+=me,x.a.createElement("path",{key:xe,className:"".concat(h,"-line-path"),d:D,strokeLinecap:d,stroke:be,strokeWidth:O,fillOpacity:"0",ref:i[xe],style:Ee})}))};m.defaultProps=H;var z=m;function N(){return N=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function c(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var r=0;function a(f){return+f.replace("%","")}function b(f){return Array.isArray(f)?f:[f]}function g(f,y,u,s){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0,d=50-s/2,O=0,k=-d,G=0,P=-2*d;switch(l){case"left":O=-d,k=0,G=2*d,P=0;break;case"right":O=d,k=0,G=-2*d,P=0;break;case"bottom":k=d,P=2*d;break;default:}var M="M 50,50 m ".concat(O,",").concat(k,` - a `).concat(d,",").concat(d," 0 1 1 ").concat(G,",").concat(-P,` - a `).concat(d,",").concat(d," 0 1 1 ").concat(-G,",").concat(P),K=Math.PI*2*d,L={stroke:u,strokeDasharray:"".concat(y/100*(K-h),"px ").concat(K,"px"),strokeDashoffset:"-".concat(h/2+f/100*(K-h),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:M,pathStyle:L}}var v=function(y){var u=y.prefixCls,s=y.strokeWidth,h=y.trailWidth,l=y.gapDegree,d=y.gapPosition,O=y.trailColor,k=y.strokeLinecap,G=y.style,P=y.className,M=y.strokeColor,K=y.percent,L=B(y,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),_=Object(w.useMemo)(function(){return r+=1,r},[]),oe=g(0,100,O,s,l,d),e=oe.pathString,i=oe.pathStyle,t=b(K),E=b(M),D=E.find(function(Ee){return Object.prototype.toString.call(Ee)==="[object Object]"}),W=o(t),ae=F(W,1),me=ae[0],xe=function(){var be=0;return t.map(function(ge,Ke){var ze=E[Ke]||E[E.length-1],Fe=Object.prototype.toString.call(ze)==="[object Object]"?"url(#".concat(u,"-gradient-").concat(_,")"):"",Ye=g(be,ge,ze,s,l,d);return be+=ge,x.a.createElement("path",{key:Ke,className:"".concat(u,"-circle-path"),d:Ye.pathString,stroke:Fe,strokeLinecap:k,strokeWidth:s,opacity:ge===0?0:1,fillOpacity:"0",style:Ye.pathStyle,ref:me[Ke]})})};return x.a.createElement("svg",N({className:ce()("".concat(u,"-circle"),P),viewBox:"0 0 100 100",style:G},L),D&&x.a.createElement("defs",null,x.a.createElement("linearGradient",{id:"".concat(u,"-gradient-").concat(_),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(D).sort(function(Ee,be){return a(Ee)-a(be)}).map(function(Ee,be){return x.a.createElement("stop",{key:be,offset:Ee,stopColor:D[Ee]})}))),x.a.createElement("path",{className:"".concat(u,"-circle-trail"),d:e,stroke:O,strokeLinecap:k,strokeWidth:h||s,fillOpacity:"0",style:i}),xe().reverse())};v.defaultProps=H;var $=v,j={Line:z,Circle:$}},hW8S:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return ce}),n.d(ee,"c",function(){return H}),n.d(ee,"b",function(){return o});var w=n("VTBJ"),x=n("Ff2n"),fe=n("Kwbf"),ce="RC_TABLE_INTERNAL_COL_DEFINE";function H(le){var Y=le.expandable,R=Object(x.a)(le,["expandable"]);return"expandable"in le?Object(w.a)(Object(w.a)({},R),Y):R}function o(le){return Object.keys(le).reduce(function(Y,R){return(R.substr(0,5)==="data-"||R.substr(0,5)==="aria-")&&(Y[R]=le[R]),Y},{})}},n6Qo:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return Y});var w=n("q1tI"),x=n("biw7"),fe=n("fyJ8");function ce(R){var T=R.className,S=R.index,Q=R.children,q=R.colSpan,X=R.rowSpan,p=w.useContext(x.a),m=p.prefixCls,z=p.fixedInfoList,N=z[S];return w.createElement(fe.a,Object.assign({className:T,index:S,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:Q,props:{colSpan:q,rowSpan:X}}}},N))}function H(R){return w.createElement("tr",Object.assign({},R))}function o(R){var T=R.children,S=w.useContext(x.a),Q=S.prefixCls;return w.createElement("tfoot",{className:"".concat(Q,"-summary")},T)}var le=ee.b=o,Y={Cell:ce,Row:H}},sR1s:function(Ae,ee,n){"use strict";n.d(ee,"b",function(){return ce}),n.d(ee,"a",function(){return H}),n.d(ee,"c",function(){return o}),n.d(ee,"d",function(){return le});var w=n("U8pU"),x="RC_TABLE_KEY";function fe(Y){return Y==null?[]:Array.isArray(Y)?Y:[Y]}function ce(Y,R){if(!R&&typeof R!="number")return Y;for(var T=fe(R),S=Y,Q=0;Q1)Object(T.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(V.length===0)return Object(T.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var I=V[0];if(o.isValidElement(I)&&Object(S.c)(I)){var te=I.ref;V[0]=o.cloneElement(I,{ref:Object(S.a)(te,this.setChildNode)})}return V.length===1?V[0]:V.map(function(A,U){return!o.isValidElement(A)||"key"in A&&A.key!==null?A:o.cloneElement(A,{key:"".concat(q,"-").concat(U)})})}}]),z}(o.Component);X.displayName="ResizeObserver",ee.a=X},wCXF:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return Fe});var w=n("rePB"),x=n("VTBJ"),fe=n("KQm4"),ce=n("U8pU"),H=n("ODXe"),o=n("q1tI"),le=n("TSYQ"),Y=n.n(le),R=n("Gytx"),T=n.n(R),S=n("Kwbf"),Q=n("t23M"),q=n("qx4F"),X=n("6eGT"),p=n("IBYe"),m=n("Ff2n"),z=n("c+Xe"),N=n("fyJ8"),F=n("biw7");function V(C,J,Z,ue,he){var se=Z[C]||{},re=Z[J]||{},ne,ie;se.fixed==="left"?ne=ue.left[C]:re.fixed==="right"&&(ie=ue.right[J]);var pe=!1,de=!1,ve=!1,Oe=!1,ye=Z[J+1],Te=Z[C-1];if(he==="rtl"){if(ne!==void 0){var Ie=Te&&Te.fixed==="left";Oe=!Ie}else if(ie!==void 0){var De=ye&&ye.fixed==="right";ve=!De}}else if(ne!==void 0){var we=ye&&ye.fixed==="left";pe=!we}else if(ie!==void 0){var je=Te&&Te.fixed==="right";de=!je}return{fixLeft:ne,fixRight:ie,lastFixLeft:pe,firstFixRight:de,lastFixRight:ve,firstFixLeft:Oe,isSticky:ue.isSticky}}var I=n("sR1s");function te(C){var J=C.cells,Z=C.stickyOffsets,ue=C.flattenColumns,he=C.rowComponent,se=C.cellComponent,re=C.onHeaderRow,ne=C.index,ie=o.useContext(F.a),pe=ie.prefixCls,de=ie.direction,ve;re&&(ve=re(J.map(function(ye){return ye.column}),ne));var Oe=Object(I.a)(J.map(function(ye){return ye.column}));return o.createElement(he,Object.assign({},ve),J.map(function(ye,Te){var Ie=ye.column,De=V(ye.colStart,ye.colEnd,ue,Z,de),we;return Ie&&Ie.onHeaderCell&&(we=ye.column.onHeaderCell(Ie)),o.createElement(N.a,Object.assign({},ye,{ellipsis:Ie.ellipsis,align:Ie.align,component:se,prefixCls:pe,key:Oe[Te]},De,{additionalProps:we,rowType:"header"}))}))}te.displayName="HeaderRow";var A=te;function U(C){var J=[];function Z(re,ne){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;J[ie]=J[ie]||[];var pe=ne,de=re.filter(Boolean).map(function(ve){var Oe={key:ve.key,className:ve.className||"",children:ve.title,column:ve,colStart:pe},ye=1,Te=ve.children;return Te&&Te.length>0&&(ye=Z(Te,pe,ie+1).reduce(function(Ie,De){return Ie+De},0),Oe.hasSubColumns=!0),"colSpan"in ve&&(ye=ve.colSpan),"rowSpan"in ve&&(Oe.rowSpan=ve.rowSpan),Oe.colSpan=ye,Oe.colEnd=Oe.colStart+ye-1,J[ie].push(Oe),pe+=ye,ye});return de}Z(C,0);for(var ue=J.length,he=function(ne){J[ne].forEach(function(ie){!("rowSpan"in ie)&&!ie.hasSubColumns&&(ie.rowSpan=ue-ne)})},se=0;se=0;ne-=1){var ie=J[ne],pe=Z&&Z[ne],de=pe&&pe[r.a];(ie||de||re)&&(he.unshift(o.createElement("col",Object.assign({key:ne,style:{width:ie,minWidth:ie}},de))),re=!0)}return o.createElement("colgroup",null,he)}var b=a;function g(C,J){return Object(o.useMemo)(function(){for(var Z=[],ue=0;ue1?qe-1:0),dt=1;dt=ve&&(Be=ve-Oe),re({scrollLeft:Be/ve*(de+2)}),je.current.x=_e.pageX},Se=function(){var _e=Object(xe.b)(se.current).top,Ue=_e+se.current.offsetHeight,Ze=document.documentElement.scrollTop+window.innerHeight;Ue-Object(q.a)()<=Ze||_e>=Ze-ne?we(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!0})}):we(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!1})})},Pe=function(_e){we(function(Ue){return Object(x.a)(Object(x.a)({},Ue),{},{scrollLeft:_e/de*ve||0})})};return o.useImperativeHandle(Z,function(){return{setScrollLeft:Pe}}),o.useEffect(function(){var Le=Object(me.a)(document.body,"mouseup",Je,!1),_e=Object(me.a)(document.body,"mousemove",Re,!1);return Se(),function(){Le.remove(),_e.remove()}},[Oe,ke]),o.useEffect(function(){var Le=Object(me.a)(window,"scroll",Se,!1),_e=Object(me.a)(window,"resize",Se,!1);return function(){Le.remove(),_e.remove()}},[]),o.useEffect(function(){De.isHiddenScrollBar||we(function(Le){var _e,Ue;return Object(x.a)(Object(x.a)({},Le),{},{scrollLeft:se.current.scrollLeft/((_e=se.current)===null||_e===void 0?void 0:_e.scrollWidth)*((Ue=se.current)===null||Ue===void 0?void 0:Ue.clientWidth)})})},[De.isHiddenScrollBar]),de<=ve||!Oe||De.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(q.a)(),width:ve,bottom:ne},className:"".concat(pe,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ce,ref:ye,className:Y()("".concat(pe,"-sticky-scroll-bar"),Object(w.a)({},"".concat(pe,"-sticky-scroll-bar-active"),ke)),style:{width:"".concat(Oe,"px"),transform:"translate3d(".concat(De.scrollLeft,"px, 0, 0)")}}))},be=o.forwardRef(Ee);function ge(C,J){return o.useMemo(function(){var Z=!!C;return{isSticky:Z,stickyClassName:Z?"".concat(J,"-sticky-header"):"",offsetHeader:Object(ce.a)(C)==="object"&&C.offsetHeader||0,offsetScroll:Object(ce.a)(C)==="object"&&C.offsetScroll||0}},[C,J])}var Ke=[],ze={},Fe="rc-table-internal-hook",Ye=o.memo(function(C){var J=C.children;return J},function(C,J){return T()(C.props,J.props)?C.pingLeft!==J.pingLeft||C.pingRight!==J.pingRight:!1});function He(C){var J,Z=C.prefixCls,ue=C.className,he=C.rowClassName,se=C.style,re=C.data,ne=C.rowKey,ie=C.scroll,pe=C.tableLayout,de=C.direction,ve=C.title,Oe=C.footer,ye=C.summary,Te=C.id,Ie=C.showHeader,De=C.components,we=C.emptyText,je=C.onRow,$e=C.onHeaderRow,We=C.internalHooks,ke=C.transformColumns,Ve=C.internalRefs,Je=C.sticky,Ce=re||Ke,Re=!!Ce.length,Se=o.useState(0),Pe=Object(H.a)(Se,2),Le=Pe[0],_e=Pe[1];o.useEffect(function(){_e(Object(q.a)())});var Ue=o.useMemo(function(){return Object(I.c)(De,{})},[De]),Ze=o.useCallback(function(Ne,Me){return Object(I.b)(Ue,Ne)||Me},[Ue]),et=o.useMemo(function(){return typeof ne=="function"?ne:function(Ne){var Me=Ne&&Ne[ne];return Me}},[ne]),Be=Object(r.c)(C),_t=Be.expandIcon,jt=Be.expandedRowKeys,Rt=Be.defaultExpandedRowKeys,st=Be.defaultExpandAllRows,ut=Be.expandedRowRender,mt=Be.onExpand,ht=Be.onExpandedRowsChange,Pt=Be.expandRowByClick,at=Be.rowExpandable,gt=Be.expandIconColumnIndex,pt=Be.expandedRowClassName,kt=Be.childrenColumnName,Tt=Be.indentSize,vt=_t||W,Et=kt||"children",At=o.useMemo(function(){return ut?"row":C.expandable&&We===Fe&&C.expandable.__PARENT_RENDER_ICON__||Ce.some(function(Ne){return Ne&&Object(ce.a)(Ne)==="object"&&Ne[Et]})?"nest":!1},[!!ut,Ce]),St=o.useState(function(){return Rt||(st?ae(Ce,et,Et):[])}),Qe=Object(H.a)(St,2),tt=Qe[0],ot=Qe[1],qe=o.useMemo(function(){return new Set(jt||tt||[])},[jt,tt]),ct=o.useCallback(function(Ne){var Me=et(Ne,Ce.indexOf(Ne)),Ge,nt=qe.has(Me);nt?(qe.delete(Me),Ge=Object(fe.a)(qe)):Ge=[].concat(Object(fe.a)(qe),[Me]),ot(Ge),mt&&mt(!nt,Ne),ht&&ht(Ge)},[et,qe,Ce,mt,ht]),dt=o.useState(0),Dt=Object(H.a)(dt,2),yt=Dt[0],Nt=Dt[1],vn=Object(M.b)(Object(x.a)(Object(x.a)(Object(x.a)({},C),Be),{},{expandable:!!ut,expandedKeys:qe,getRowKey:et,onTriggerExpand:ct,expandIcon:vt,expandIconColumnIndex:gt,direction:de}),We===Fe?ke:null),Jt=Object(H.a)(vn,2),Kt=Jt[0],Xe=Jt[1],Mt=o.useMemo(function(){return{columns:Kt,flattenColumns:Xe}},[Kt,Xe]),Wt=o.useRef(),Qt=o.useRef(),ft=o.useRef(),bn=o.useState(!1),Zt=Object(H.a)(bn,2),qt=Zt[0],gn=Zt[1],En=o.useState(!1),en=Object(H.a)(En,2),tn=en[0],yn=en[1],Cn=_(new Map),nn=Object(H.a)(Cn,2),xn=nn[0],On=nn[1],_n=Object(I.a)(Xe),an=_n.map(function(Ne){return xn.get(Ne)}),rn=o.useMemo(function(){return an},[an.join("_")]),wt=i(rn,Xe.length,de),it=ie&&Object(I.d)(ie.y),lt=ie&&Object(I.d)(ie.x),Ct=lt&&Xe.some(function(Ne){var Me=Ne.fixed;return Me}),on=o.useRef(),Lt=ge(Je,Z),xt=Lt.isSticky,jn=Lt.offsetHeader,Rn=Lt.offsetScroll,Pn=Lt.stickyClassName,Bt,Ut,zt;it&&(Ut={overflowY:"scroll",maxHeight:ie.y}),lt&&(Bt={overflowX:"auto"},it||(Ut={overflowY:"hidden"}),zt={width:ie.x===!0?"auto":ie.x,minWidth:"100%"});var sn=o.useCallback(function(Ne,Me){On(function(Ge){var nt=new Map(Ge);return nt.set(Ne,Me),nt})},[]),Tn=oe(null),ln=Object(H.a)(Tn,2),An=ln[0],un=ln[1];function Ft(Ne,Me){if(!Me)return;typeof Me=="function"?Me(Ne):Me.scrollLeft!==Ne&&(Me.scrollLeft=Ne)}var bt=function(Me){var Ge=Me.currentTarget,nt=Me.scrollLeft,Ot=typeof nt=="number"?nt:Ge.scrollLeft,pn=Ge||ze;if(!un()||un()===pn){var Yt;An(pn),Ft(Ot,Qt.current),Ft(Ot,ft.current),Ft(Ot,(Yt=on.current)===null||Yt===void 0?void 0:Yt.setScrollLeft)}if(Ge){var Un=Ge.scrollWidth,In=Ge.clientWidth;gn(Ot>0),yn(Ot0?[].concat(Object(x.a)(m),Object(x.a)(S(V).map(function(I){return Object(fe.a)({fixed:F},I)}))):[].concat(Object(x.a)(m),[Object(fe.a)(Object(fe.a)({},z),{},{fixed:F})])},[])}function Q(p){for(var m=!0,z=0;z=0;V-=1){var I=p[V];if(F&&I.fixed!=="right")F=!1;else if(!F&&I.fixed==="right"){Object(le.a)(!1,"Index ".concat(V+1," of `columns` missing `fixed='right'` prop."));break}}}function q(p){return p.map(function(m){var z=m.fixed,N=Object(ce.a)(m,["fixed"]),F=z;return z==="left"?F="right":z==="right"&&(F="left"),Object(fe.a)({fixed:F},N)})}function X(p,m){var z=p.prefixCls,N=p.columns,F=p.children,V=p.expandable,I=p.expandedKeys,te=p.getRowKey,A=p.onTriggerExpand,U=p.expandIcon,B=p.rowExpandable,c=p.expandIconColumnIndex,r=p.direction,a=p.expandRowByClick,b=H.useMemo(function(){return N||T(F)},[N,F]),g=H.useMemo(function(){if(V){var j,f=c||0,y=b[f],u=(j={},Object(w.a)(j,R.a,{className:"".concat(z,"-expand-icon-col")}),Object(w.a)(j,"title",""),Object(w.a)(j,"fixed",y?y.fixed:null),Object(w.a)(j,"className","".concat(z,"-row-expand-icon-cell")),Object(w.a)(j,"render",function(l,d,O){var k=te(d,O),G=I.has(k),P=B?B(d):!0,M=U({prefixCls:z,expanded:G,expandable:P,record:d,onExpand:A});return a?H.createElement("span",{onClick:function(L){return L.stopPropagation()}},M):M}),j),s=b.slice();return f>=0&&s.splice(f,0,u),s}return b},[V,b,te,I,U,r]),v=H.useMemo(function(){var j=g;return m&&(j=m(j)),j.length||(j=[{render:function(){return null}}]),j},[m,g,r]),$=H.useMemo(function(){return r==="rtl"?q(S(v)):S(v)},[v,r]);return[v,$]}ee.b=X},"y0+3":function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return S}),n.d(ee,"b",function(){return q});var w=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},fe={cssFloat:1,styleFloat:1,float:1};function ce(X){return X.nodeType===1?X.ownerDocument.defaultView.getComputedStyle(X,null):{}}function H(X,p,m){if(p=p.toLowerCase(),m==="auto"){if(p==="height")return X.offsetHeight;if(p==="width")return X.offsetWidth}return p in x||(x[p]=w.test(p)),x[p]?parseFloat(m)||0:m}function o(X,p){var m=arguments.length,z=ce(X);return p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,m===1?z:H(X,p,z[p]||X.style[p])}function le(X,p,m){var z=arguments.length;if(p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,z===3)return typeof m=="number"&&w.test(p)&&(m="".concat(m,"px")),X.style[p]=m,m;for(var N in p)p.hasOwnProperty(N)&&le(X,N,p[N]);return ce(X)}function Y(X){return X===document.body?document.documentElement.clientWidth:X.offsetWidth}function R(X){return X===document.body?window.innerHeight||document.documentElement.clientHeight:X.offsetHeight}function T(){var X=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),p=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:X,height:p}}function S(){var X=document.documentElement.clientWidth,p=window.innerHeight||document.documentElement.clientHeight;return{width:X,height:p}}function Q(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function q(X){var p=X.getBoundingClientRect(),m=document.documentElement;return{left:p.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:p.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}}}]); +`,$=["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={},f;function y(T){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=T.getAttribute("id")||T.getAttribute("data-reactid")||T.getAttribute("name");if(M&&j[K])return j[K];var L=window.getComputedStyle(T),_=L.getPropertyValue("box-sizing")||L.getPropertyValue("-moz-box-sizing")||L.getPropertyValue("-webkit-box-sizing"),oe=parseFloat(L.getPropertyValue("padding-bottom"))+parseFloat(L.getPropertyValue("padding-top")),e=parseFloat(L.getPropertyValue("border-bottom-width"))+parseFloat(L.getPropertyValue("border-top-width")),i=$.map(function(E){return"".concat(E,":").concat(L.getPropertyValue(E))}).join(";"),t={sizingStyle:i,paddingSize:oe,borderSize:e,boxSizing:_};return M&&K&&(j[K]=t),t}function u(T){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;f||(f=document.createElement("textarea"),f.setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f)),T.getAttribute("wrap")?f.setAttribute("wrap",T.getAttribute("wrap")):f.removeAttribute("wrap");var _=y(T,M),oe=_.paddingSize,e=_.borderSize,i=_.boxSizing,t=_.sizingStyle;f.setAttribute("style","".concat(t,";").concat(v)),f.value=T.value||T.placeholder||"";var E=Number.MIN_SAFE_INTEGER,D=Number.MAX_SAFE_INTEGER,W=f.scrollHeight,ae;if(i==="border-box"?W+=e:i==="content-box"&&(W-=oe),K!==null||L!==null){f.value=" ";var me=f.scrollHeight-oe;K!==null&&(E=me*K,i==="border-box"&&(E=E+oe+e),W=Math.max(E,W)),L!==null&&(D=me*L,i==="border-box"&&(D=D+oe+e),ae=W>D?"":"hidden",W=Math.min(D,W))}return{height:W,minHeight:E,maxHeight:D,overflowY:ae,resize:"none"}}var s=n("Gytx"),h=n.n(s),l;(function(T){T[T.NONE=0]="NONE",T[T.RESIZING=1]="RESIZING",T[T.RESIZED=2]="RESIZED"})(l||(l={}));var d=function(T){Object(ce.a)(K,T);var M=Object(H.a)(K);function K(L){var _;return Object(x.a)(this,K),_=M.call(this,L),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(oe){_.textArea=oe},_.handleResize=function(oe){var e=_.state.resizeStatus,i=_.props,t=i.autoSize,E=i.onResize;if(e!==l.NONE)return;typeof E=="function"&&E(oe),t&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var oe=_.props.autoSize;if(!oe||!_.textArea)return;var e=oe.minRows,i=oe.maxRows,t=u(_.textArea,!1,e,i);_.setState({textareaStyles:t,resizeStatus:l.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:l.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var oe=_.props,e=oe.prefixCls,i=e===void 0?"rc-textarea":e,t=oe.autoSize,E=oe.onResize,D=oe.className,W=oe.disabled,ae=_.state,me=ae.textareaStyles,xe=ae.resizeStatus,Ee=Object(a.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),be=g()(i,D,Object(Y.a)({},"".concat(i,"-disabled"),W));"value"in Ee&&(Ee.value=Ee.value||"");var ge=Object(le.a)(Object(le.a)(Object(le.a)({},_.props.style),me),xe===l.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return o.createElement(r,{onResize:_.handleResize,disabled:!(t||E)},o.createElement("textarea",Object(w.a)({},Ee,{className:be,style:ge,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:l.NONE},_}return Object(fe.a)(K,[{key:"componentDidUpdate",value:function(_){(_.value!==this.props.value||!h()(_.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 _=this.textArea.selectionStart,oe=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,oe)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),K}(o.Component),O=d,k=function(T){Object(ce.a)(K,T);var M=Object(H.a)(K);function K(L){var _;Object(x.a)(this,K),_=M.call(this,L),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(e){_.resizableTextArea=e},_.handleChange=function(e){var i=_.props.onChange;_.setValue(e.target.value,function(){_.resizableTextArea.resizeTextarea()}),i&&i(e)},_.handleKeyDown=function(e){var i=_.props,t=i.onPressEnter,E=i.onKeyDown;e.keyCode===13&&t&&t(e),E&&E(e)};var oe=typeof L.value=="undefined"||L.value===null?L.defaultValue:L.value;return _.state={value:oe},_}return Object(fe.a)(K,[{key:"setValue",value:function(_,oe){"value"in this.props||this.setState({value:_},oe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return o.createElement(O,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),K}(o.Component),G=ee.default=k},ZpRC:function(Ae,ee,n){"use strict";function w(S){return typeof S=="object"&&S!=null&&S.nodeType===1}function x(S,Q){return(!Q||S!=="hidden")&&S!=="visible"&&S!=="clip"}function fe(S,Q){if(S.clientHeightQ||m>S&&z=Q&&N>=q?m-S-X:z>Q&&Nq?z-Q+p:0}var H=function(S,Q){var q=window,X=Q.scrollMode,p=Q.block,m=Q.inline,z=Q.boundary,N=Q.skipOverflowHiddenElements,F=typeof z=="function"?z:function(me){return me!==z};if(!w(S))throw new TypeError("Invalid target");for(var V=document.scrollingElement||document.documentElement,I=[],te=S;w(te)&&F(te);){if((te=te.parentElement)===V){I.push(te);break}te!=null&&te===document.body&&fe(te)&&!fe(document.documentElement)||te!=null&&fe(te,N)&&I.push(te)}for(var A=q.visualViewport?q.visualViewport.width:innerWidth,U=q.visualViewport?q.visualViewport.height:innerHeight,B=window.scrollX||pageXOffset,c=window.scrollY||pageYOffset,r=S.getBoundingClientRect(),a=r.height,b=r.width,g=r.top,v=r.right,$=r.bottom,j=r.left,f=p==="start"||p==="nearest"?g:p==="end"?$:g+a/2,y=m==="center"?j+b/2:m==="end"?v:j,u=[],s=0;s=0&&j>=0&&$<=U&&v<=A&&g>=k&&$<=T&&j>=M&&v<=G)return u;var K=getComputedStyle(h),L=parseInt(K.borderLeftWidth,10),_=parseInt(K.borderTopWidth,10),oe=parseInt(K.borderRightWidth,10),e=parseInt(K.borderBottomWidth,10),i=0,t=0,E="offsetWidth"in h?h.offsetWidth-h.clientWidth-L-oe:0,D="offsetHeight"in h?h.offsetHeight-h.clientHeight-_-e:0;if(V===h)i=p==="start"?f:p==="end"?f-U:p==="nearest"?ce(c,c+U,U,_,e,c+f,c+f+a,a):f-U/2,t=m==="start"?y:m==="center"?y-A/2:m==="end"?y-A:ce(B,B+A,A,L,oe,B+y,B+y+b,b),i=Math.max(0,i+c),t=Math.max(0,t+B);else{i=p==="start"?f-k-_:p==="end"?f-T+e+D:p==="nearest"?ce(k,T,d,_,e+D,f,f+a,a):f-(k+d/2)+D/2,t=m==="start"?y-M-L:m==="center"?y-(M+O/2)+E/2:m==="end"?y-G+oe+E:ce(M,G,O,L,oe+E,y,y+b,b);var W=h.scrollLeft,ae=h.scrollTop;f+=ae-(i=Math.max(0,Math.min(ae+i,h.scrollHeight-d+D))),y+=W-(t=Math.max(0,Math.min(W+t,h.scrollWidth-O+E)))}u.push({el:h,top:i,left:t})}return u};function o(S){return S===Object(S)&&Object.keys(S).length!==0}function le(S,Q){Q===void 0&&(Q="auto");var q="scrollBehavior"in document.body.style;S.forEach(function(X){var p=X.el,m=X.top,z=X.left;p.scroll&&q?p.scroll({top:m,left:z,behavior:Q}):(p.scrollTop=m,p.scrollLeft=z)})}function Y(S){return S===!1?{block:"end",inline:"nearest"}:o(S)?S:{block:"start",inline:"nearest"}}function R(S,Q){var q=!S.ownerDocument.documentElement.contains(S);if(o(Q)&&typeof Q.behavior=="function")return Q.behavior(q?[]:H(S,Q));if(q)return;var X=Y(Q);return le(H(S,X),X.behavior)}var P=ee.a=R},Zss7:function(Ae,ee,n){var w;(function(x){var fe=/^\s+/,ce=/\s+$/,H=0,o=x.round,le=x.min,Y=x.max,R=x.random;function P(e,i){if(e=e||"",i=i||{},e instanceof P)return e;if(!(this instanceof P))return new P(e,i);var t=S(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=o(100*this._a)/100,this._format=i.format||t.format,this._gradientType=i.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=t.ok,this._tc_id=H++}P.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 e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),i,t,E,D,W,ae;return i=e.r/255,t=e.g/255,E=e.b/255,i<=.03928?D=i/12.92:D=x.pow((i+.055)/1.055,2.4),t<=.03928?W=t/12.92:W=x.pow((t+.055)/1.055,2.4),E<=.03928?ae=E/12.92:ae=x.pow((E+.055)/1.055,2.4),.2126*D+.7152*W+.0722*ae},setAlpha:function(e){return this._a=u(e),this._roundA=o(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),E=o(e.v*100);return this._a==1?"hsv("+i+", "+t+"%, "+E+"%)":"hsva("+i+", "+t+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var e=q(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=q(this._r,this._g,this._b),i=o(e.h*360),t=o(e.s*100),E=o(e.l*100);return this._a==1?"hsl("+i+", "+t+"%, "+E+"%)":"hsla("+i+", "+t+"%, "+E+"%, "+this._roundA+")"},toHex:function(e){return z(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return N(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(s(this._r,255)*100)+"%",g:o(s(this._g,255)*100)+"%",b:o(s(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%)":"rgba("+o(s(this._r,255)*100)+"%, "+o(s(this._g,255)*100)+"%, "+o(s(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:f[z(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var i="#"+F(this._r,this._g,this._b,this._a),t=i,E=this._gradientType?"GradientType = 1, ":"";if(e){var D=P(e);t="#"+F(D._r,D._g,D._b,D._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+i+",endColorstr="+t+")"},toString:function(e){var i=!!e;e=e||this._format;var t=!1,E=this._a<1&&this._a>=0,D=!i&&E&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return D?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(t=this.toRgbString()),e==="prgb"&&(t=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(t=this.toHexString()),e==="hex3"&&(t=this.toHexString(!0)),e==="hex4"&&(t=this.toHex8String(!0)),e==="hex8"&&(t=this.toHex8String()),e==="name"&&(t=this.toName()),e==="hsl"&&(t=this.toHslString()),e==="hsv"&&(t=this.toHsvString()),t||this.toHexString())},clone:function(){return P(this.toString())},_applyModification:function(e,i){var t=e.apply(null,[this].concat([].slice.call(i)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(U,arguments)},darken:function(){return this._applyModification(B,arguments)},desaturate:function(){return this._applyModification(V,arguments)},saturate:function(){return this._applyModification(I,arguments)},greyscale:function(){return this._applyModification(te,arguments)},spin:function(){return this._applyModification(c,arguments)},_applyCombination:function(e,i){return e.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(r,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(g,arguments)},triad:function(){return this._applyCombination(a,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},P.fromRatio=function(e,i){if(typeof e=="object"){var t={};for(var E in e)e.hasOwnProperty(E)&&(E==="a"?t[E]=e[E]:t[E]=G(e[E]));e=t}return P(e,i)};function S(e){var i={r:0,g:0,b:0},t=1,E=null,D=null,W=null,ae=!1,me=!1;return typeof e=="string"&&(e=_(e)),typeof e=="object"&&(L(e.r)&&L(e.g)&&L(e.b)?(i=Q(e.r,e.g,e.b),ae=!0,me=String(e.r).substr(-1)==="%"?"prgb":"rgb"):L(e.h)&&L(e.s)&&L(e.v)?(E=G(e.s),D=G(e.v),i=m(e.h,E,D),ae=!0,me="hsv"):L(e.h)&&L(e.s)&&L(e.l)&&(E=G(e.s),W=G(e.l),i=X(e.h,E,W),ae=!0,me="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=u(t),{ok:ae,format:e.format||me,r:le(255,Y(i.r,0)),g:le(255,Y(i.g,0)),b:le(255,Y(i.b,0)),a:t}}function Q(e,i,t){return{r:s(e,255)*255,g:s(i,255)*255,b:s(t,255)*255}}function q(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var E=Y(e,i,t),D=le(e,i,t),W,ae,me=(E+D)/2;if(E==D)W=ae=0;else{var xe=E-D;ae=me>.5?xe/(2-E-D):xe/(E+D);switch(E){case e:W=(i-t)/xe+(i1&&(ge-=1),ge<1/6?Ee+(be-Ee)*6*ge:ge<1/2?be:ge<2/3?Ee+(be-Ee)*(2/3-ge)*6:Ee}if(i===0)E=D=W=t;else{var me=t<.5?t*(1+i):t+i-t*i,xe=2*t-me;E=ae(xe,me,e+1/3),D=ae(xe,me,e),W=ae(xe,me,e-1/3)}return{r:E*255,g:D*255,b:W*255}}function p(e,i,t){e=s(e,255),i=s(i,255),t=s(t,255);var E=Y(e,i,t),D=le(e,i,t),W,ae,me=E,xe=E-D;if(ae=E===0?0:xe/E,E==D)W=0;else{switch(E){case e:W=(i-t)/xe+(i>1)+720)%360;--i;)E.h=(E.h+D)%360,W.push(P(E));return W}function $(e,i){i=i||6;for(var t=P(e).toHsv(),E=t.h,D=t.s,W=t.v,ae=[],me=1/i;i--;)ae.push(P({h:E,s:D,v:W})),W=(W+me)%1;return ae}P.mix=function(e,i,t){t=t===0?0:t||50;var E=P(e).toRgb(),D=P(i).toRgb(),W=t/100,ae={r:(D.r-E.r)*W+E.r,g:(D.g-E.g)*W+E.g,b:(D.b-E.b)*W+E.b,a:(D.a-E.a)*W+E.a};return P(ae)},P.readability=function(e,i){var t=P(e),E=P(i);return(x.max(t.getLuminance(),E.getLuminance())+.05)/(x.min(t.getLuminance(),E.getLuminance())+.05)},P.isReadable=function(e,i,t){var E=P.readability(e,i),D,W;W=!1,D=oe(t);switch(D.level+D.size){case"AAsmall":case"AAAlarge":W=E>=4.5;break;case"AAlarge":W=E>=3;break;case"AAAsmall":W=E>=7;break}return W},P.mostReadable=function(e,i,t){var E=null,D=0,W,ae,me,xe;t=t||{},ae=t.includeFallbackColors,me=t.level,xe=t.size;for(var Ee=0;EeD&&(D=W,E=P(i[Ee]));return P.isReadable(e,E,{level:me,size:xe})||!ae?E:(t.includeFallbackColors=!1,P.mostReadable(e,["#fff","#000"],t))};var j=P.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=P.hexNames=y(j);function y(e){var i={};for(var t in e)e.hasOwnProperty(t)&&(i[e[t]]=t);return i}function u(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function s(e,i){d(e)&&(e="100%");var t=O(e);return e=le(i,Y(0,parseFloat(e))),t&&(e=parseInt(e*i,10)/100),x.abs(e-i)<1e-6?1:e%i/parseFloat(i)}function h(e){return le(1,Y(0,e))}function l(e){return parseInt(e,16)}function d(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function O(e){return typeof e=="string"&&e.indexOf("%")!=-1}function k(e){return e.length==1?"0"+e:""+e}function G(e){return e<=1&&(e=e*100+"%"),e}function T(e){return x.round(parseFloat(e)*255).toString(16)}function M(e){return l(e)/255}var K=function(){var e="[-\\+]?\\d+%?",i="[-\\+]?\\d*\\.\\d+%?",t="(?:"+i+")|(?:"+e+")",E="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",D="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+D),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 L(e){return!!K.CSS_UNIT.exec(e)}function _(e){e=e.replace(fe,"").replace(ce,"").toLowerCase();var i=!1;if(j[e])e=j[e],i=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=K.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=K.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=K.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=K.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=K.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=K.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=K.hex8.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),a:M(t[4]),format:i?"name":"hex8"}:(t=K.hex6.exec(e))?{r:l(t[1]),g:l(t[2]),b:l(t[3]),format:i?"name":"hex"}:(t=K.hex4.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:i?"name":"hex8"}:(t=K.hex3.exec(e))?{r:l(t[1]+""+t[1]),g:l(t[2]+""+t[2]),b:l(t[3]+""+t[3]),format:i?"name":"hex"}:!1}function oe(e){var i,t;return e=e||{level:"AA",size:"small"},i=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),i!=="AA"&&i!=="AAA"&&(i="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:i,size:t}}Ae.exports?Ae.exports=P:!(w=function(){return P}.call(ee,n,ee,Ae),w!==void 0&&(Ae.exports=w))})(Math)},bT9E:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return x});var w=n("VTBJ");function x(fe,ce){var H=Object(w.a)({},fe);return Array.isArray(ce)&&ce.forEach(function(o){delete H[o]}),H}},biw7:function(Ae,ee,n){"use strict";var w=n("q1tI"),x=n.n(w),fe=w.createContext(null);ee.a=fe},fyJ8:function(Ae,ee,n){"use strict";var w=n("rePB"),x=n("VTBJ"),fe=n("Ff2n"),ce=n("U8pU"),H=n("q1tI"),o=n.n(H),le=n("TSYQ"),Y=n.n(le),R=n("c+Xe"),P=n("sR1s");function S(m){return m&&Object(ce.a)(m)==="object"&&!Array.isArray(m)&&!H.isValidElement(m)}function Q(m){return typeof m=="string"?!0:Object(R.c)(m)}function q(m,z){var N,F=m.prefixCls,V=m.className,I=m.record,te=m.index,A=m.dataIndex,U=m.render,B=m.children,c=m.component,r=c===void 0?"td":c,a=m.colSpan,b=m.rowSpan,g=m.fixLeft,v=m.fixRight,$=m.firstFixLeft,j=m.lastFixLeft,f=m.firstFixRight,y=m.lastFixRight,u=m.appendNode,s=m.additionalProps,h=s===void 0?{}:s,l=m.ellipsis,d=m.align,O=m.rowType,k=m.isSticky,G="".concat(F,"-cell"),T,M;if(B)M=B;else{var K=Object(P.b)(I,A);if(M=K,U){var L=U(K,I,te);S(L)?(M=L.children,T=L.props):M=L}}Object(ce.a)(M)==="object"&&!Array.isArray(M)&&!H.isValidElement(M)&&(M=null),l&&(j||f)&&(M=H.createElement("span",{className:"".concat(G,"-content")},M));var _=T||{},oe=_.colSpan,e=_.rowSpan,i=_.style,t=_.className,E=Object(fe.a)(_,["colSpan","rowSpan","style","className"]),D=oe!==void 0?oe:a,W=e!==void 0?e:b;if(D===0||W===0)return null;var ae={},me=typeof g=="number",xe=typeof v=="number";me&&(ae.position="sticky",ae.left=g),xe&&(ae.position="sticky",ae.right=v);var Ee={};d&&(Ee.textAlign=d);var be,ge=l===!0?{showTitle:!0}:l;ge&&(ge.showTitle||O==="header")&&(typeof M=="string"||typeof M=="number"?be=M.toString():H.isValidElement(M)&&typeof M.props.children=="string"&&(be=M.props.children));var Ke=Object(x.a)(Object(x.a)(Object(x.a)({title:be},E),h),{},{colSpan:D&&D!==1?D:null,rowSpan:W&&W!==1?W:null,className:Y()(G,V,(N={},Object(w.a)(N,"".concat(G,"-fix-left"),me),Object(w.a)(N,"".concat(G,"-fix-left-first"),$),Object(w.a)(N,"".concat(G,"-fix-left-last"),j),Object(w.a)(N,"".concat(G,"-fix-right"),xe),Object(w.a)(N,"".concat(G,"-fix-right-first"),f),Object(w.a)(N,"".concat(G,"-fix-right-last"),y),Object(w.a)(N,"".concat(G,"-ellipsis"),l),Object(w.a)(N,"".concat(G,"-with-append"),u),Object(w.a)(N,"".concat(G,"-fix-sticky"),(me||xe)&&k),N),h.className,t),style:Object(x.a)(Object(x.a)(Object(x.a)(Object(x.a)({},h.style),Ee),ae),i),ref:Q(r)?z:null});return H.createElement(r,Object.assign({},Ke),u,M)}var X=H.forwardRef(q);X.displayName="Cell";var p=H.memo(X,function(m,z){return z.shouldCellUpdate?!z.shouldCellUpdate(z.record,m.record):!1});ee.a=p},gvAy:function(Ae,ee,n){Ae.exports={flex_box_center:"flex_box_center___1prm7",flex_space_between:"flex_space_between___16qSu",flex_box_vertical_center:"flex_box_vertical_center___1nirN",flex_box_center_end:"flex_box_center_end___WeMYY",flex_box_column:"flex_box_column___2-M3x",wrap:"wrap___3TjEW",title:"title___CPqX6",control:"control___1AAwX",label:"label___1ueIb",rowFrom:"rowFrom___2XL75",customTable:"customTable___y7317"}},h78n:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return $});var w=n("q1tI"),x=n.n(w),fe=n("TSYQ"),ce=n.n(fe),H={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},o=function(y){var u=y.map(function(){return Object(w.useRef)()}),s=Object(w.useRef)();return Object(w.useEffect)(function(){var h=Date.now(),l=!1;Object.keys(u).forEach(function(d){var O=u[d].current;if(!O)return;l=!0;var k=O.style;k.transitionDuration=".3s, .3s, .3s, .06s",s.current&&h-s.current<100&&(k.transitionDuration="0s, 0s")}),l&&(s.current=Date.now())}),[u]};function le(){return le=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function p(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var m=function(y){var u=y.className,s=y.percent,h=y.prefixCls,l=y.strokeColor,d=y.strokeLinecap,O=y.strokeWidth,k=y.style,G=y.trailColor,T=y.trailWidth,M=y.transition,K=X(y,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete K.gapPosition;var L=Array.isArray(s)?s:[s],_=Array.isArray(l)?l:[l],oe=o(L),e=Y(oe,1),i=e[0],t=O/2,E=100-O/2,D="M ".concat(d==="round"?t:0,",").concat(t,` + L `).concat(d==="round"?E:100,",").concat(t),W="0 0 100 ".concat(O),ae=0;return x.a.createElement("svg",le({className:ce()("".concat(h,"-line"),u),viewBox:W,preserveAspectRatio:"none",style:k},K),x.a.createElement("path",{className:"".concat(h,"-line-trail"),d:D,strokeLinecap:d,stroke:G,strokeWidth:T||O,fillOpacity:"0"}),L.map(function(me,xe){var Ee={strokeDasharray:"".concat(me,"px, 100px"),strokeDashoffset:"-".concat(ae,"px"),transition:M||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},be=_[xe]||_[_.length-1];return ae+=me,x.a.createElement("path",{key:xe,className:"".concat(h,"-line-path"),d:D,strokeLinecap:d,stroke:be,strokeWidth:O,fillOpacity:"0",ref:i[xe],style:Ee})}))};m.defaultProps=H;var z=m;function N(){return N=Object.assign||function(f){for(var y=1;yf.length)&&(y=f.length);for(var u=0,s=new Array(y);u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,s))continue;u[s]=f[s]}}return u}function c(f,y){if(f==null)return{};var u={},s=Object.keys(f),h,l;for(l=0;l=0)continue;u[h]=f[h]}return u}var r=0;function a(f){return+f.replace("%","")}function b(f){return Array.isArray(f)?f:[f]}function g(f,y,u,s){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0,d=50-s/2,O=0,k=-d,G=0,T=-2*d;switch(l){case"left":O=-d,k=0,G=2*d,T=0;break;case"right":O=d,k=0,G=-2*d,T=0;break;case"bottom":k=d,T=2*d;break;default:}var M="M 50,50 m ".concat(O,",").concat(k,` + a `).concat(d,",").concat(d," 0 1 1 ").concat(G,",").concat(-T,` + a `).concat(d,",").concat(d," 0 1 1 ").concat(-G,",").concat(T),K=Math.PI*2*d,L={stroke:u,strokeDasharray:"".concat(y/100*(K-h),"px ").concat(K,"px"),strokeDashoffset:"-".concat(h/2+f/100*(K-h),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:M,pathStyle:L}}var v=function(y){var u=y.prefixCls,s=y.strokeWidth,h=y.trailWidth,l=y.gapDegree,d=y.gapPosition,O=y.trailColor,k=y.strokeLinecap,G=y.style,T=y.className,M=y.strokeColor,K=y.percent,L=B(y,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),_=Object(w.useMemo)(function(){return r+=1,r},[]),oe=g(0,100,O,s,l,d),e=oe.pathString,i=oe.pathStyle,t=b(K),E=b(M),D=E.find(function(Ee){return Object.prototype.toString.call(Ee)==="[object Object]"}),W=o(t),ae=F(W,1),me=ae[0],xe=function(){var be=0;return t.map(function(ge,Ke){var ze=E[Ke]||E[E.length-1],Fe=Object.prototype.toString.call(ze)==="[object Object]"?"url(#".concat(u,"-gradient-").concat(_,")"):"",Ye=g(be,ge,ze,s,l,d);return be+=ge,x.a.createElement("path",{key:Ke,className:"".concat(u,"-circle-path"),d:Ye.pathString,stroke:Fe,strokeLinecap:k,strokeWidth:s,opacity:ge===0?0:1,fillOpacity:"0",style:Ye.pathStyle,ref:me[Ke]})})};return x.a.createElement("svg",N({className:ce()("".concat(u,"-circle"),T),viewBox:"0 0 100 100",style:G},L),D&&x.a.createElement("defs",null,x.a.createElement("linearGradient",{id:"".concat(u,"-gradient-").concat(_),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(D).sort(function(Ee,be){return a(Ee)-a(be)}).map(function(Ee,be){return x.a.createElement("stop",{key:be,offset:Ee,stopColor:D[Ee]})}))),x.a.createElement("path",{className:"".concat(u,"-circle-trail"),d:e,stroke:O,strokeLinecap:k,strokeWidth:h||s,fillOpacity:"0",style:i}),xe().reverse())};v.defaultProps=H;var $=v,j={Line:z,Circle:$}},hW8S:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return ce}),n.d(ee,"c",function(){return H}),n.d(ee,"b",function(){return o});var w=n("VTBJ"),x=n("Ff2n"),fe=n("Kwbf"),ce="RC_TABLE_INTERNAL_COL_DEFINE";function H(le){var Y=le.expandable,R=Object(x.a)(le,["expandable"]);return"expandable"in le?Object(w.a)(Object(w.a)({},R),Y):R}function o(le){return Object.keys(le).reduce(function(Y,R){return(R.substr(0,5)==="data-"||R.substr(0,5)==="aria-")&&(Y[R]=le[R]),Y},{})}},n6Qo:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return Y});var w=n("q1tI"),x=n("biw7"),fe=n("fyJ8");function ce(R){var P=R.className,S=R.index,Q=R.children,q=R.colSpan,X=R.rowSpan,p=w.useContext(x.a),m=p.prefixCls,z=p.fixedInfoList,N=z[S];return w.createElement(fe.a,Object.assign({className:P,index:S,component:"td",prefixCls:m,record:null,dataIndex:null,render:function(){return{children:Q,props:{colSpan:q,rowSpan:X}}}},N))}function H(R){return w.createElement("tr",Object.assign({},R))}function o(R){var P=R.children,S=w.useContext(x.a),Q=S.prefixCls;return w.createElement("tfoot",{className:"".concat(Q,"-summary")},P)}var le=ee.b=o,Y={Cell:ce,Row:H}},sR1s:function(Ae,ee,n){"use strict";n.d(ee,"b",function(){return ce}),n.d(ee,"a",function(){return H}),n.d(ee,"c",function(){return o}),n.d(ee,"d",function(){return le});var w=n("U8pU"),x="RC_TABLE_KEY";function fe(Y){return Y==null?[]:Array.isArray(Y)?Y:[Y]}function ce(Y,R){if(!R&&typeof R!="number")return Y;for(var P=fe(R),S=Y,Q=0;Q1)Object(P.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(V.length===0)return Object(P.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var I=V[0];if(o.isValidElement(I)&&Object(S.c)(I)){var te=I.ref;V[0]=o.cloneElement(I,{ref:Object(S.a)(te,this.setChildNode)})}return V.length===1?V[0]:V.map(function(A,U){return!o.isValidElement(A)||"key"in A&&A.key!==null?A:o.cloneElement(A,{key:"".concat(q,"-").concat(U)})})}}]),z}(o.Component);X.displayName="ResizeObserver",ee.a=X},wCXF:function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return Fe});var w=n("rePB"),x=n("VTBJ"),fe=n("KQm4"),ce=n("U8pU"),H=n("ODXe"),o=n("q1tI"),le=n("TSYQ"),Y=n.n(le),R=n("Gytx"),P=n.n(R),S=n("Kwbf"),Q=n("t23M"),q=n("qx4F"),X=n("6eGT"),p=n("IBYe"),m=n("Ff2n"),z=n("c+Xe"),N=n("fyJ8"),F=n("biw7");function V(C,J,Z,ue,he){var se=Z[C]||{},re=Z[J]||{},ne,ie;se.fixed==="left"?ne=ue.left[C]:re.fixed==="right"&&(ie=ue.right[J]);var pe=!1,de=!1,ve=!1,Oe=!1,ye=Z[J+1],Pe=Z[C-1];if(he==="rtl"){if(ne!==void 0){var Ie=Pe&&Pe.fixed==="left";Oe=!Ie}else if(ie!==void 0){var De=ye&&ye.fixed==="right";ve=!De}}else if(ne!==void 0){var we=ye&&ye.fixed==="left";pe=!we}else if(ie!==void 0){var je=Pe&&Pe.fixed==="right";de=!je}return{fixLeft:ne,fixRight:ie,lastFixLeft:pe,firstFixRight:de,lastFixRight:ve,firstFixLeft:Oe,isSticky:ue.isSticky}}var I=n("sR1s");function te(C){var J=C.cells,Z=C.stickyOffsets,ue=C.flattenColumns,he=C.rowComponent,se=C.cellComponent,re=C.onHeaderRow,ne=C.index,ie=o.useContext(F.a),pe=ie.prefixCls,de=ie.direction,ve;re&&(ve=re(J.map(function(ye){return ye.column}),ne));var Oe=Object(I.a)(J.map(function(ye){return ye.column}));return o.createElement(he,Object.assign({},ve),J.map(function(ye,Pe){var Ie=ye.column,De=V(ye.colStart,ye.colEnd,ue,Z,de),we;return Ie&&Ie.onHeaderCell&&(we=ye.column.onHeaderCell(Ie)),o.createElement(N.a,Object.assign({},ye,{ellipsis:Ie.ellipsis,align:Ie.align,component:se,prefixCls:pe,key:Oe[Pe]},De,{additionalProps:we,rowType:"header"}))}))}te.displayName="HeaderRow";var A=te;function U(C){var J=[];function Z(re,ne){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;J[ie]=J[ie]||[];var pe=ne,de=re.filter(Boolean).map(function(ve){var Oe={key:ve.key,className:ve.className||"",children:ve.title,column:ve,colStart:pe},ye=1,Pe=ve.children;return Pe&&Pe.length>0&&(ye=Z(Pe,pe,ie+1).reduce(function(Ie,De){return Ie+De},0),Oe.hasSubColumns=!0),"colSpan"in ve&&(ye=ve.colSpan),"rowSpan"in ve&&(Oe.rowSpan=ve.rowSpan),Oe.colSpan=ye,Oe.colEnd=Oe.colStart+ye-1,J[ie].push(Oe),pe+=ye,ye});return de}Z(C,0);for(var ue=J.length,he=function(ne){J[ne].forEach(function(ie){!("rowSpan"in ie)&&!ie.hasSubColumns&&(ie.rowSpan=ue-ne)})},se=0;se=0;ne-=1){var ie=J[ne],pe=Z&&Z[ne],de=pe&&pe[r.a];(ie||de||re)&&(he.unshift(o.createElement("col",Object.assign({key:ne,style:{width:ie,minWidth:ie}},de))),re=!0)}return o.createElement("colgroup",null,he)}var b=a;function g(C,J){return Object(o.useMemo)(function(){for(var Z=[],ue=0;ue1?qe-1:0),dt=1;dt=ve&&(Be=ve-Oe),re({scrollLeft:Be/ve*(de+2)}),je.current.x=_e.pageX},Se=function(){var _e=Object(xe.b)(se.current).top,Ue=_e+se.current.offsetHeight,Ze=document.documentElement.scrollTop+window.innerHeight;Ue-Object(q.a)()<=Ze||_e>=Ze-ne?we(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!0})}):we(function(et){return Object(x.a)(Object(x.a)({},et),{},{isHiddenScrollBar:!1})})},Te=function(_e){we(function(Ue){return Object(x.a)(Object(x.a)({},Ue),{},{scrollLeft:_e/de*ve||0})})};return o.useImperativeHandle(Z,function(){return{setScrollLeft:Te}}),o.useEffect(function(){var Le=Object(me.a)(document.body,"mouseup",Je,!1),_e=Object(me.a)(document.body,"mousemove",Re,!1);return Se(),function(){Le.remove(),_e.remove()}},[Oe,ke]),o.useEffect(function(){var Le=Object(me.a)(window,"scroll",Se,!1),_e=Object(me.a)(window,"resize",Se,!1);return function(){Le.remove(),_e.remove()}},[]),o.useEffect(function(){De.isHiddenScrollBar||we(function(Le){var _e,Ue;return Object(x.a)(Object(x.a)({},Le),{},{scrollLeft:se.current.scrollLeft/((_e=se.current)===null||_e===void 0?void 0:_e.scrollWidth)*((Ue=se.current)===null||Ue===void 0?void 0:Ue.clientWidth)})})},[De.isHiddenScrollBar]),de<=ve||!Oe||De.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(q.a)(),width:ve,bottom:ne},className:"".concat(pe,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ce,ref:ye,className:Y()("".concat(pe,"-sticky-scroll-bar"),Object(w.a)({},"".concat(pe,"-sticky-scroll-bar-active"),ke)),style:{width:"".concat(Oe,"px"),transform:"translate3d(".concat(De.scrollLeft,"px, 0, 0)")}}))},be=o.forwardRef(Ee);function ge(C,J){return o.useMemo(function(){var Z=!!C;return{isSticky:Z,stickyClassName:Z?"".concat(J,"-sticky-header"):"",offsetHeader:Object(ce.a)(C)==="object"&&C.offsetHeader||0,offsetScroll:Object(ce.a)(C)==="object"&&C.offsetScroll||0}},[C,J])}var Ke=[],ze={},Fe="rc-table-internal-hook",Ye=o.memo(function(C){var J=C.children;return J},function(C,J){return P()(C.props,J.props)?C.pingLeft!==J.pingLeft||C.pingRight!==J.pingRight:!1});function He(C){var J,Z=C.prefixCls,ue=C.className,he=C.rowClassName,se=C.style,re=C.data,ne=C.rowKey,ie=C.scroll,pe=C.tableLayout,de=C.direction,ve=C.title,Oe=C.footer,ye=C.summary,Pe=C.id,Ie=C.showHeader,De=C.components,we=C.emptyText,je=C.onRow,$e=C.onHeaderRow,We=C.internalHooks,ke=C.transformColumns,Ve=C.internalRefs,Je=C.sticky,Ce=re||Ke,Re=!!Ce.length,Se=o.useState(0),Te=Object(H.a)(Se,2),Le=Te[0],_e=Te[1];o.useEffect(function(){_e(Object(q.a)())});var Ue=o.useMemo(function(){return Object(I.c)(De,{})},[De]),Ze=o.useCallback(function(Ne,Me){return Object(I.b)(Ue,Ne)||Me},[Ue]),et=o.useMemo(function(){return typeof ne=="function"?ne:function(Ne){var Me=Ne&&Ne[ne];return Me}},[ne]),Be=Object(r.c)(C),_t=Be.expandIcon,jt=Be.expandedRowKeys,Rt=Be.defaultExpandedRowKeys,st=Be.defaultExpandAllRows,ut=Be.expandedRowRender,mt=Be.onExpand,ht=Be.onExpandedRowsChange,Tt=Be.expandRowByClick,at=Be.rowExpandable,gt=Be.expandIconColumnIndex,pt=Be.expandedRowClassName,kt=Be.childrenColumnName,Pt=Be.indentSize,vt=_t||W,Et=kt||"children",At=o.useMemo(function(){return ut?"row":C.expandable&&We===Fe&&C.expandable.__PARENT_RENDER_ICON__||Ce.some(function(Ne){return Ne&&Object(ce.a)(Ne)==="object"&&Ne[Et]})?"nest":!1},[!!ut,Ce]),St=o.useState(function(){return Rt||(st?ae(Ce,et,Et):[])}),Qe=Object(H.a)(St,2),tt=Qe[0],ot=Qe[1],qe=o.useMemo(function(){return new Set(jt||tt||[])},[jt,tt]),ct=o.useCallback(function(Ne){var Me=et(Ne,Ce.indexOf(Ne)),Ge,nt=qe.has(Me);nt?(qe.delete(Me),Ge=Object(fe.a)(qe)):Ge=[].concat(Object(fe.a)(qe),[Me]),ot(Ge),mt&&mt(!nt,Ne),ht&&ht(Ge)},[et,qe,Ce,mt,ht]),dt=o.useState(0),Dt=Object(H.a)(dt,2),yt=Dt[0],Nt=Dt[1],vn=Object(M.b)(Object(x.a)(Object(x.a)(Object(x.a)({},C),Be),{},{expandable:!!ut,expandedKeys:qe,getRowKey:et,onTriggerExpand:ct,expandIcon:vt,expandIconColumnIndex:gt,direction:de}),We===Fe?ke:null),Jt=Object(H.a)(vn,2),Kt=Jt[0],Xe=Jt[1],Mt=o.useMemo(function(){return{columns:Kt,flattenColumns:Xe}},[Kt,Xe]),Wt=o.useRef(),Qt=o.useRef(),ft=o.useRef(),bn=o.useState(!1),Zt=Object(H.a)(bn,2),qt=Zt[0],gn=Zt[1],En=o.useState(!1),en=Object(H.a)(En,2),tn=en[0],yn=en[1],Cn=_(new Map),nn=Object(H.a)(Cn,2),xn=nn[0],On=nn[1],_n=Object(I.a)(Xe),an=_n.map(function(Ne){return xn.get(Ne)}),rn=o.useMemo(function(){return an},[an.join("_")]),wt=i(rn,Xe.length,de),it=ie&&Object(I.d)(ie.y),lt=ie&&Object(I.d)(ie.x),Ct=lt&&Xe.some(function(Ne){var Me=Ne.fixed;return Me}),on=o.useRef(),Lt=ge(Je,Z),xt=Lt.isSticky,jn=Lt.offsetHeader,Rn=Lt.offsetScroll,Tn=Lt.stickyClassName,Bt,Ut,zt;it&&(Ut={overflowY:"scroll",maxHeight:ie.y}),lt&&(Bt={overflowX:"auto"},it||(Ut={overflowY:"hidden"}),zt={width:ie.x===!0?"auto":ie.x,minWidth:"100%"});var sn=o.useCallback(function(Ne,Me){On(function(Ge){var nt=new Map(Ge);return nt.set(Ne,Me),nt})},[]),Pn=oe(null),ln=Object(H.a)(Pn,2),An=ln[0],un=ln[1];function Ft(Ne,Me){if(!Me)return;typeof Me=="function"?Me(Ne):Me.scrollLeft!==Ne&&(Me.scrollLeft=Ne)}var bt=function(Me){var Ge=Me.currentTarget,nt=Me.scrollLeft,Ot=typeof nt=="number"?nt:Ge.scrollLeft,pn=Ge||ze;if(!un()||un()===pn){var Yt;An(pn),Ft(Ot,Qt.current),Ft(Ot,ft.current),Ft(Ot,(Yt=on.current)===null||Yt===void 0?void 0:Yt.setScrollLeft)}if(Ge){var Un=Ge.scrollWidth,In=Ge.clientWidth;gn(Ot>0),yn(Ot0?[].concat(Object(x.a)(m),Object(x.a)(S(V).map(function(I){return Object(fe.a)({fixed:F},I)}))):[].concat(Object(x.a)(m),[Object(fe.a)(Object(fe.a)({},z),{},{fixed:F})])},[])}function Q(p){for(var m=!0,z=0;z=0;V-=1){var I=p[V];if(F&&I.fixed!=="right")F=!1;else if(!F&&I.fixed==="right"){Object(le.a)(!1,"Index ".concat(V+1," of `columns` missing `fixed='right'` prop."));break}}}function q(p){return p.map(function(m){var z=m.fixed,N=Object(ce.a)(m,["fixed"]),F=z;return z==="left"?F="right":z==="right"&&(F="left"),Object(fe.a)({fixed:F},N)})}function X(p,m){var z=p.prefixCls,N=p.columns,F=p.children,V=p.expandable,I=p.expandedKeys,te=p.getRowKey,A=p.onTriggerExpand,U=p.expandIcon,B=p.rowExpandable,c=p.expandIconColumnIndex,r=p.direction,a=p.expandRowByClick,b=H.useMemo(function(){return N||P(F)},[N,F]),g=H.useMemo(function(){if(V){var j,f=c||0,y=b[f],u=(j={},Object(w.a)(j,R.a,{className:"".concat(z,"-expand-icon-col")}),Object(w.a)(j,"title",""),Object(w.a)(j,"fixed",y?y.fixed:null),Object(w.a)(j,"className","".concat(z,"-row-expand-icon-cell")),Object(w.a)(j,"render",function(l,d,O){var k=te(d,O),G=I.has(k),T=B?B(d):!0,M=U({prefixCls:z,expanded:G,expandable:T,record:d,onExpand:A});return a?H.createElement("span",{onClick:function(L){return L.stopPropagation()}},M):M}),j),s=b.slice();return f>=0&&s.splice(f,0,u),s}return b},[V,b,te,I,U,r]),v=H.useMemo(function(){var j=g;return m&&(j=m(j)),j.length||(j=[{render:function(){return null}}]),j},[m,g,r]),$=H.useMemo(function(){return r==="rtl"?q(S(v)):S(v)},[v,r]);return[v,$]}ee.b=X},"y0+3":function(Ae,ee,n){"use strict";n.d(ee,"a",function(){return S}),n.d(ee,"b",function(){return q});var w=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},fe={cssFloat:1,styleFloat:1,float:1};function ce(X){return X.nodeType===1?X.ownerDocument.defaultView.getComputedStyle(X,null):{}}function H(X,p,m){if(p=p.toLowerCase(),m==="auto"){if(p==="height")return X.offsetHeight;if(p==="width")return X.offsetWidth}return p in x||(x[p]=w.test(p)),x[p]?parseFloat(m)||0:m}function o(X,p){var m=arguments.length,z=ce(X);return p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,m===1?z:H(X,p,z[p]||X.style[p])}function le(X,p,m){var z=arguments.length;if(p=fe[p]?"cssFloat"in X.style?"cssFloat":"styleFloat":p,z===3)return typeof m=="number"&&w.test(p)&&(m="".concat(m,"px")),X.style[p]=m,m;for(var N in p)p.hasOwnProperty(N)&&le(X,N,p[N]);return ce(X)}function Y(X){return X===document.body?document.documentElement.clientWidth:X.offsetWidth}function R(X){return X===document.body?window.innerHeight||document.documentElement.clientHeight:X.offsetHeight}function P(){var X=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),p=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:X,height:p}}function S(){var X=document.documentElement.clientWidth,p=window.innerHeight||document.documentElement.clientHeight;return{width:X,height:p}}function Q(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function q(X){var p=X.getBoundingClientRect(),m=document.documentElement;return{left:p.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:p.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Innovation__PublicDataSet.de2dd1e5.async.js b/p__Innovation__PublicDataSet.de2dd1e5.async.js index 9cd9da6d47..cc0c693bd8 100644 --- a/p__Innovation__PublicDataSet.de2dd1e5.async.js +++ b/p__Innovation__PublicDataSet.de2dd1e5.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[180,6,8,14],{"+QRC":function($e,Oe,n){"use strict";var L=n("E9nw"),R={"text/plain":"Text","text/html":"Url",default:"Text"},Ae="Copy to clipboard: #{key}, Enter";function K(p){var q=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,q)}function i(p,q){var le,W,B,ae,xe,he,ce=!1;q||(q={}),le=q.debug||!1;try{B=L(),ae=document.createRange(),xe=document.getSelection(),he=document.createElement("span"),he.textContent=p,he.style.all="unset",he.style.position="fixed",he.style.top=0,he.style.clip="rect(0, 0, 0, 0)",he.style.whiteSpace="pre",he.style.webkitUserSelect="text",he.style.MozUserSelect="text",he.style.msUserSelect="text",he.style.userSelect="text",he.addEventListener("copy",function(w){if(w.stopPropagation(),q.format)if(w.preventDefault(),typeof w.clipboardData=="undefined"){le&&console.warn("unable to use e.clipboardData"),le&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var Y=R[q.format]||R.default;window.clipboardData.setData(Y,p)}else w.clipboardData.clearData(),w.clipboardData.setData(q.format,p);q.onCopy&&(w.preventDefault(),q.onCopy(w.clipboardData))}),document.body.appendChild(he),ae.selectNodeContents(he),xe.addRange(ae);var U=document.execCommand("copy");if(!U)throw new Error("copy command was unsuccessful");ce=!0}catch(w){le&&console.error("unable to copy using execCommand: ",w),le&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(q.format||"text",p),q.onCopy&&q.onCopy(window.clipboardData),ce=!0}catch(Y){le&&console.error("unable to copy using clipboardData: ",Y),le&&console.error("falling back to prompt"),W=K("message"in q?q.message:Ae),window.prompt(W,p)}}finally{xe&&(typeof xe.removeRange=="function"?xe.removeRange(ae):xe.removeAllRanges()),he&&document.body.removeChild(he),B()}return ce}$e.exports=i},"/W/m":function($e,Oe,n){$e.exports={wrap:"wrap___2hbGX",colorBlue:"colorBlue___3-yNu",repeatedName:"repeatedName___TKF1j",header:"header___RnkHw",title:"title___2ZWhM"}},"/jad":function($e,Oe,n){$e.exports={colorBlue:"colorBlue___FpSkV",repeatedName:"repeatedName___2XphI"}},"6+eU":function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return s});var L=n("wx14"),R=n("rePB"),Ae=n("VTBJ"),K=n("1OyB"),i=n("vuIU"),p=n("Ji7U"),q=n("LK+K"),le=n("q1tI"),W=n.n(le),B=n("TSYQ"),ae=n.n(B),xe=function(H){var x,S="".concat(H.rootPrefixCls,"-item"),h=ae()(S,"".concat(S,"-").concat(H.page),(x={},Object(R.a)(x,"".concat(S,"-active"),H.active),Object(R.a)(x,H.className,!!H.className),Object(R.a)(x,"".concat(S,"-disabled"),!H.page),x)),V=function(){H.onClick(H.page)},G=function(ge){H.onKeyPress(ge,H.onClick,H.page)};return W.a.createElement("li",{title:H.showTitle?H.page:null,className:h,onClick:V,onKeyPress:G,tabIndex:"0"},H.itemRender(H.page,"page",W.a.createElement("a",{rel:"nofollow"},H.page)))},he=xe,ce={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},U=function(z){Object(p.a)(x,z);var H=Object(q.a)(x);function x(){var S;Object(K.a)(this,x);for(var h=arguments.length,V=new Array(h),G=0;G=0||ee.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;S.setState({goInputText:""}),k(S.getValidValue())},S.go=function(ee){var ge=S.state.goInputText;if(ge==="")return;(ee.keyCode===ce.ENTER||ee.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(i.a)(x,[{key:"getValidValue",value:function(){var h=this.state,V=h.goInputText,G=h.current;return!V||isNaN(V)?G:Number(V)}},{key:"getPageSizeOptions",value:function(){var h=this.props,V=h.pageSize,G=h.pageSizeOptions;return G.some(function(ee){return ee.toString()===V.toString()})?G:G.concat([V.toString()]).sort(function(ee,ge){var ie=isNaN(Number(ee))?0:Number(ee),k=isNaN(Number(ge))?0:Number(ge);return ie-k})}},{key:"render",value:function(){var h=this,V=this.props,G=V.pageSize,ee=V.locale,ge=V.rootPrefixCls,ie=V.changeSize,k=V.quickGo,F=V.goButton,C=V.selectComponentClass,b=V.buildOptionText,I=V.selectPrefixCls,j=V.disabled,A=this.state.goInputText,J="".concat(ge,"-options"),se=C,ye=null,Z=null,oe=null;if(!ie&&!k)return null;var ue=this.getPageSizeOptions();if(ie&&se){var te=ue.map(function($,ne){return W.a.createElement(se.Option,{key:ne,value:$.toString()},(b||h.buildOptionText)($))});ye=W.a.createElement(se,{disabled:j,prefixCls:I,showSearch:!1,className:"".concat(J,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(G||ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ne){return ne.parentNode}},te)}return k&&(F&&(oe=typeof F=="boolean"?W.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:j,className:"".concat(J,"-quick-jumper-button")},ee.jump_to_confirm):W.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),Z=W.a.createElement("div",{className:"".concat(J,"-quick-jumper")},ee.jump_to,W.a.createElement("input",{disabled:j,type:"text",value:A,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),ee.page,oe)),W.a.createElement("li",{className:"".concat(J)},ye,Z)}}]),x}(W.a.Component);U.defaultProps={pageSizeOptions:["10","20","50","100"]};var w=U,Y=n("N2Kk");function O(){}function y(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function l(z,H,x){return x}function a(z,H,x){var S=typeof z=="undefined"?H.pageSize:z;return Math.floor((x.total-1)/S)+1}var v=function(z){Object(p.a)(x,z);var H=Object(q.a)(x);function x(S){var h;Object(K.a)(this,x),h=H.call(this,S),h.getJumpPrevPage=function(){return Math.max(1,h.state.current-(h.props.showLessItems?3:5))},h.getJumpNextPage=function(){return Math.min(a(void 0,h.state,h.props),h.state.current+(h.props.showLessItems?3:5))},h.getItemIcon=function(ie,k){var F=h.props.prefixCls,C=ie||W.a.createElement("button",{type:"button","aria-label":k,className:"".concat(F,"-item-link")});return typeof ie=="function"&&(C=W.a.createElement(ie,Object(Ae.a)({},h.props))),C},h.savePaginationNode=function(ie){h.paginationNode=ie},h.isValid=function(ie){return y(ie)&&ie!==h.state.current},h.shouldDisplayQuickJumper=function(){var ie=h.props,k=ie.showQuickJumper,F=ie.pageSize,C=ie.total;return C<=F?!1:k},h.handleKeyDown=function(ie){(ie.keyCode===ce.ARROW_UP||ie.keyCode===ce.ARROW_DOWN)&&ie.preventDefault()},h.handleKeyUp=function(ie){var k=h.getValidValue(ie),F=h.state.currentInputValue;k!==F&&h.setState({currentInputValue:k}),ie.keyCode===ce.ENTER?h.handleChange(k):ie.keyCode===ce.ARROW_UP?h.handleChange(k-1):ie.keyCode===ce.ARROW_DOWN&&h.handleChange(k+1)},h.changePageSize=function(ie){var k=h.state.current,F=a(ie,h.state,h.props);k=k>F?F:k,F===0&&(k=h.state.current),typeof ie=="number"&&("pageSize"in h.props||h.setState({pageSize:ie}),"current"in h.props||h.setState({current:k,currentInputValue:k})),h.props.onShowSizeChange(k,ie),"onChange"in h.props&&h.props.onChange&&h.props.onChange(k,ie)},h.handleChange=function(ie){var k=h.props.disabled,F=ie;if(h.isValid(F)&&!k){var C=a(void 0,h.state,h.props);F>C?F=C:F<1&&(F=1),"current"in h.props||h.setState({current:F,currentInputValue:F});var b=h.state.pageSize;return h.props.onChange(F,b),F}return h.state.current},h.prev=function(){h.hasPrev()&&h.handleChange(h.state.current-1)},h.next=function(){h.hasNext()&&h.handleChange(h.state.current+1)},h.jumpPrev=function(){h.handleChange(h.getJumpPrevPage())},h.jumpNext=function(){h.handleChange(h.getJumpNextPage())},h.hasPrev=function(){return h.state.current>1},h.hasNext=function(){return h.state.current2?F-2:0),b=2;b=G?ge=G:ge=Number(V),ge}},{key:"getShowSizeChanger",value:function(){var h=this.props,V=h.showSizeChanger,G=h.total,ee=h.totalBoundaryShowSizeChanger;return typeof V!="undefined"?V:G>ee}},{key:"renderPrev",value:function(h){var V=this.props,G=V.prevIcon,ee=V.itemRender,ge=ee(h,"prev",this.getItemIcon(G,"prev page")),ie=!this.hasPrev();return Object(le.isValidElement)(ge)?Object(le.cloneElement)(ge,{disabled:ie}):ge}},{key:"renderNext",value:function(h){var V=this.props,G=V.nextIcon,ee=V.itemRender,ge=ee(h,"next",this.getItemIcon(G,"next page")),ie=!this.hasNext();return Object(le.isValidElement)(ge)?Object(le.cloneElement)(ge,{disabled:ie}):ge}},{key:"render",value:function(){var h=this,V=this.props,G=V.prefixCls,ee=V.className,ge=V.style,ie=V.disabled,k=V.hideOnSinglePage,F=V.total,C=V.locale,b=V.showQuickJumper,I=V.showLessItems,j=V.showTitle,A=V.showTotal,J=V.simple,se=V.itemRender,ye=V.showPrevNextJumpers,Z=V.jumpPrevIcon,oe=V.jumpNextIcon,ue=V.selectComponentClass,te=V.selectPrefixCls,$=V.pageSizeOptions,ne=this.state,o=ne.current,g=ne.pageSize,c=ne.currentInputValue;if(k===!0&&F<=g)return null;var N=a(void 0,this.state,this.props),Q=[],re=null,Me=null,fe=null,_e=null,je=null,me=b&&b.goButton,Ee=I?1:2,Be=o-1>0?o-1:0,Ue=o+1=Ee*2&&o!==1+2&&(Q[0]=Object(le.cloneElement)(Q[0],{className:"".concat(G,"-item-after-jump-prev")}),Q.unshift(re)),N-o>=Ee*2&&o!==N-2&&(Q[Q.length-1]=Object(le.cloneElement)(Q[Q.length-1],{className:"".concat(G,"-item-before-jump-next")}),Q.push(Me)),Ce!==1&&Q.unshift(fe),De!==N&&Q.push(_e)}var Re=null;A&&(Re=W.a.createElement("li",{className:"".concat(G,"-total-text")},A(F,[F===0?0:(o-1)*g+1,o*g>F?F:o*g])));var be=!this.hasPrev()||!N,we=!this.hasNext()||!N;return W.a.createElement("ul",Object(L.a)({className:ae()(G,ee,Object(R.a)({},"".concat(G,"-disabled"),ie)),style:ge,unselectable:"unselectable",ref:this.savePaginationNode},Fe),Re,W.a.createElement("li",{title:j?C.prev_page:null,onClick:this.prev,tabIndex:be?null:0,onKeyPress:this.runIfEnterPrev,className:ae()("".concat(G,"-prev"),Object(R.a)({},"".concat(G,"-disabled"),be)),"aria-disabled":be},this.renderPrev(Be)),Q,W.a.createElement("li",{title:j?C.next_page:null,onClick:this.next,tabIndex:we?null:0,onKeyPress:this.runIfEnterNext,className:ae()("".concat(G,"-next"),Object(R.a)({},"".concat(G,"-disabled"),we)),"aria-disabled":we},this.renderNext(Ue)),W.a.createElement(w,{disabled:ie,locale:C,rootPrefixCls:G,selectComponentClass:ue,selectPrefixCls:te,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:g,pageSizeOptions:$,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(h,V){var G={};if("current"in h&&(G.current=h.current,h.current!==V.current&&(G.currentInputValue=G.current)),"pageSize"in h&&h.pageSize!==V.pageSize){var ee=V.current,ge=a(h.pageSize,V,h);ee=ee>ge?ge:ee,"current"in h||(G.current=ee,G.currentInputValue=ee),G.pageSize=h.pageSize}return G}}]),x}(W.a.Component);v.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:O,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:O,locale:Y.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var s=v},"6RRn":function($e,Oe,n){"use strict";var L=n("wCXF"),R=n("n6Qo");n.d(Oe,"b",function(){return R.a});var Ae=n("IBYe"),K=n("6eGT"),i=n("hW8S");n.d(Oe,"a",function(){return i.a}),Oe.c=L.b},"6eGT":function($e,Oe,n){"use strict";function L(R){return null}Oe.a=L},"815F":function($e,Oe,n){"use strict";n.d(Oe,"e",function(){return q}),n.d(Oe,"c",function(){return W}),n.d(Oe,"d",function(){return B}),n.d(Oe,"a",function(){return xe}),n.d(Oe,"f",function(){return he}),n.d(Oe,"b",function(){return ce});var L=n("KQm4"),R=n("VTBJ"),Ae=n("Ff2n"),K=n("Zm9Q"),i=n("Kwbf"),p=n("OZM5");function q(U,w){return U!=null?U:w}function le(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=new Map;function Y(O){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(O||[]).forEach(function(l){var a=l.key,v=l.children;Object(i.a)(a!=null,"Tree node must have a certain key: [".concat(y).concat(a,"]"));var s=String(a);Object(i.a)(!w.has(s)||a===null||a===void 0,"Same 'key' exist in the Tree: ".concat(s)),w.set(s,!0),Y(v,"".concat(y).concat(s," > "))})}Y(U)}function W(U){function w(Y){var O=Object(K.a)(Y);return O.map(function(y){if(!Object(p.i)(y))return Object(i.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var l=y.key,a=y.props,v=a.children,s=Object(Ae.a)(a,["children"]),z=Object(R.a)({key:l},s),H=w(v);return H.length&&(z.children=H),z}).filter(function(y){return y})}return w(U)}function B(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Y=new Set(w===!0?[]:w),O=[];function y(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(v,s){var z=Object(p.h)(a?a.pos:"0",s),H=q(v.key,z),x=Object(R.a)(Object(R.a)({},v),{},{parent:a,pos:z,children:null,data:v,isStart:[].concat(Object(L.a)(a?a.isStart:[]),[s===0]),isEnd:[].concat(Object(L.a)(a?a.isEnd:[]),[s===l.length-1])});return O.push(x),w===!0||Y.has(H)?x.children=y(v.children||[],x):x.children=[],x})}return y(U),O}function ae(U,w,Y){var O;Y?typeof Y=="string"?O=function(a){return a[Y]}:typeof Y=="function"&&(O=function(a){return Y(a)}):O=function(a,v){return q(a.key,v)};function y(l,a,v){var s=l?l.children:U,z=l?Object(p.h)(v.pos,a):"0";if(l){var H=O(l,z),x={node:l,index:a,pos:z,key:H,parentPos:v.node?v.pos:null,level:v.level+1};w(x)}s&&s.forEach(function(S,h){y(S,h,{node:l,pos:z,level:v?v.level+1:-1})})}y(null)}function xe(U){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=w.initWrapper,O=w.processEntity,y=w.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,a={},v={},s={posEntities:a,keyEntities:v};return Y&&(s=Y(s)||s),ae(U,function(z){var H=z.node,x=z.index,S=z.pos,h=z.key,V=z.parentPos,G=z.level,ee={node:H,index:x,key:h,pos:S,level:G},ge=q(h,S);a[S]=ee,v[ge]=ee,ee.parent=a[V],ee.parent&&(ee.parent.children=ee.parent.children||[],ee.parent.children.push(ee)),O&&O(ee,s)},l),y&&y(s),s}function he(U,w){var Y=w.expandedKeys,O=w.selectedKeys,y=w.loadedKeys,l=w.loadingKeys,a=w.checkedKeys,v=w.halfCheckedKeys,s=w.dragOverNodeKey,z=w.dropPosition,H=w.keyEntities,x=H[U],S={eventKey:U,expanded:Y.indexOf(U)!==-1,selected:O.indexOf(U)!==-1,loaded:y.indexOf(U)!==-1,loading:l.indexOf(U)!==-1,checked:a.indexOf(U)!==-1,halfChecked:v.indexOf(U)!==-1,pos:String(x?x.pos:""),dragOver:s===U&&z===0,dragOverGapTop:s===U&&z===-1,dragOverGapBottom:s===U&&z===1};return S}function ce(U){var w=U.data,Y=U.expanded,O=U.selected,y=U.checked,l=U.loaded,a=U.loading,v=U.halfChecked,s=U.dragOver,z=U.dragOverGapTop,H=U.dragOverGapBottom,x=U.pos,S=U.active,h=Object(R.a)(Object(R.a)({},w),{},{expanded:Y,selected:O,checked:y,loaded:l,loading:a,halfChecked:v,dragOver:s,dragOverGapTop:z,dragOverGapBottom:H,pos:x,active:S});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Object(i.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),U}}),h}},BU3w:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return p});var L=n("MNnm"),R="rc-util-key";function Ae(q){if(q.attachTo)return q.attachTo;var le=document.querySelector("head");return le||document.body}function K(q){var le,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var B=document.createElement("style");if((le=W.csp)===null||le===void 0?void 0:le.nonce){var ae;B.nonce=(ae=W.csp)===null||ae===void 0?void 0:ae.nonce}B.innerHTML=q;var xe=Ae(W),he=xe.firstChild;return W.prepend&&xe.prepend?xe.prepend(B):W.prepend&&he?xe.insertBefore(B,he):xe.appendChild(B),B}var i=new Map;function p(q,le){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=Ae(W);if(!i.has(B)){var ae=K("",W),xe=ae.parentNode;i.set(B,xe),xe.removeChild(ae)}var he=Array.from(i.get(B).children).find(function(O){return O.tagName==="STYLE"&&O[R]===le});if(he){var ce,U;if(((ce=W.csp)===null||ce===void 0?void 0:ce.nonce)&&he.nonce!==((U=W.csp)===null||U===void 0?void 0:U.nonce)){var w;he.nonce=(w=W.csp)===null||w===void 0?void 0:w.nonce}return he.innerHTML!==q&&(he.innerHTML=q),he}var Y=K(q,W);return Y[R]=le,Y}},E9nw:function($e,Oe){$e.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var L=document.activeElement,R=[],Ae=0;Ae0&&(J.percent=J.loaded/J.total*100),C.onProgress(J)});var I=new FormData;C.data&&Object.keys(C.data).forEach(function(A){var J=C.data[A];if(Array.isArray(J)){J.forEach(function(se){I.append(A+"[]",se)});return}I.append(A,C.data[A])}),C.file instanceof Blob?I.append(C.filename,C.file,C.file.name):I.append(C.filename,C.file),b.onerror=function(J){C.onError(J)},b.onload=function(){return b.status<200||b.status>=300?C.onError(i(C,b),p(b)):C.onSuccess(p(b),b)},b.open(C.method,C.action,!0),C.withCredentials&&"withCredentials"in b&&(b.withCredentials=!0);var j=C.headers||{};return j["X-Requested-With"]!==null&&b.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(j).forEach(function(A){j[A]!==null&&b.setRequestHeader(A,j[A])}),b.send(I),{abort:function(){b.abort()}}}var le=+new Date,W=0;function B(){return"rc-upload-"+le+"-"+ ++W}function ae(C,b){return C.indexOf(b,C.length-b.length)!==-1}var xe=function(C,b){if(C&&b){var I=Array.isArray(b)?b:b.split(","),j=C.name||"",A=C.type||"",J=A.replace(/\/.*$/,"");return I.some(function(se){var ye=se.trim();return ye.charAt(0)==="."?ae(j.toLowerCase(),ye.toLowerCase()):/\/\*$/.test(ye)?J===ye.replace(/\/.*$/,""):A===ye})}return!0};function he(C,b){var I=C.createReader(),j=[];function A(){I.readEntries(function(J){var se=Array.prototype.slice.apply(J);j=j.concat(se);var ye=!se.length;ye?b(j):A()})}A()}var ce=function(b,I,j){var A=function J(se,ye){ye=ye||"",se.isFile?se.file(function(Z){j(Z)&&(se.fullPath&&!Z.webkitRelativePath&&(Object.defineProperties(Z,{webkitRelativePath:{writable:!0}}),Z.webkitRelativePath=se.fullPath.replace(/^\//,""),Object.defineProperties(Z,{webkitRelativePath:{writable:!1}})),I([Z]))}):se.isDirectory&&he(se,function(Z){Z.forEach(function(oe){J(oe,""+ye+se.name+"/")})})};b.forEach(function(J){A(J.webkitGetAsEntry())})},U=ce,w=Object.assign||function(C){for(var b=1;b=0)continue;if(!Object.prototype.hasOwnProperty.call(C,j))continue;I[j]=C[j]}return I}function a(C,b){if(!(C instanceof b))throw new TypeError("Cannot call a class as a function")}function v(C,b){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:C}function s(C,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);C.prototype=Object.create(b&&b.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(C,b):C.__proto__=b)}var z=function(b){return Object.keys(b).reduce(function(I,j){return(j.substr(0,5)==="data-"||j.substr(0,5)==="aria-"||j==="role")&&(I[j]=b[j]),I},{})},H=function(C){s(b,C);function b(){var I,j,A,J;a(this,b);for(var se=arguments.length,ye=Array(se),Z=0;Z1&&arguments[1]!==void 0?arguments[1]:1,we=Ee.length,Ke=0;Ke1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(I).map(function(A,J){if(!i.isValidElement(A)||!A.type)return null;var se=A.type.isSelectOptGroup,ye=A.key,Z=A.props,oe=Z.children,ue=Object(q.a)(Z,["children"]);return j||!se?H(A):Object(s.a)(Object(s.a)({key:"__RC_SELECT_GRP__".concat(ye===null?J:ye,"__"),label:ye},ue),{},{options:x(oe)})}).filter(function(A){return A})}var S=n("2Qr1"),h=n("qNPg"),V=n("U8pU"),G=n("Kwbf"),ee=n("WKfj");function ge(I){var j=I.mode,A=I.options,J=I.children,se=I.backfill,ye=I.allowClear,Z=I.placeholder,oe=I.getInputElement,ue=I.showSearch,te=I.onSearch,$=I.defaultOpen,ne=I.autoFocus,o=I.labelInValue,g=I.value,c=I.inputValue,N=I.optionLabelProp,Q=j==="multiple"||j==="tags",re=ue!==void 0?ue:Q||j==="combobox",Me=A||x(J);if(Object(G.a)(j!=="tags"||Me.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),j==="tags"||j==="combobox"){var fe=Me.some(function(me){return me.options?me.options.some(function(Ee){return typeof("value"in Ee?Ee.value:Ee.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(G.a)(!fe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(G.a)(j!=="combobox"||!N,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(G.a)(j==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object(G.a)(j==="combobox"||!oe,"`getInputElement` only work with `combobox` mode."),Object(G.b)(j!=="combobox"||!oe||!ye||!Z,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),te&&!re&&j!=="combobox"&&j!=="tags"&&Object(G.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(G.b)(!$||ne,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var _e=Object(ee.d)(g);Object(G.a)(!o||_e.every(function(me){return Object(V.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(G.a)(!Q||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var je=null;Object(z.a)(J).some(function(me){if(!i.isValidElement(me)||!me.type)return!1;var Ee=me.type;if(Ee.isSelectOption)return!1;if(Ee.isSelectOptGroup){var Be=Object(z.a)(me.props.children).every(function(Ue){return!i.isValidElement(Ue)||!me.type||Ue.type.isSelectOption?!0:(je=Ue.type,!1)});return!Be}return je=Ee,!0}),je&&Object(G.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(je.displayName||je.name||je,"`.")),Object(G.a)(c===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ie=ge,k=Object(h.a)({prefixCls:"rc-select",components:{optionList:O},convertChildrenToData:x,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:ie,fillOptionsWithMissingValue:S.a}),F=function(I){Object(Ae.a)(A,I);var j=Object(K.a)(A);function A(){var J;return Object(L.a)(this,A),J=j.apply(this,arguments),J.selectRef=i.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(R.a)(A,[{key:"render",value:function(){return i.createElement(k,Object.assign({ref:this.selectRef},this.props))}}]),A}(i.Component);F.Option=l,F.OptGroup=v;var C=F,b=Oe.c=C},NvD2:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return p});var L=n("Kwbf");function R(q,le){var W=new Set;return q.forEach(function(B){le.has(B)||W.add(B)}),W}function Ae(q){var le=q||{},W=le.disabled,B=le.disableCheckbox,ae=le.checkable;return!!(W||B)||ae===!1}function K(q,le,W,B){for(var ae=new Set(q),xe=new Set,he=0;he<=W;he+=1){var ce=le.get(he)||new Set;ce.forEach(function(O){var y=O.key,l=O.node,a=O.children,v=a===void 0?[]:a;ae.has(y)&&!B(l)&&v.filter(function(s){return!B(s.node)}).forEach(function(s){ae.add(s.key)})})}for(var U=new Set,w=W;w>=0;w-=1){var Y=le.get(w)||new Set;Y.forEach(function(O){var y=O.parent,l=O.node;if(B(l)||!O.parent||U.has(O.parent.key))return;if(B(O.parent.node)){U.add(y.key);return}var a=!0,v=!1;(y.children||[]).filter(function(s){return!B(s.node)}).forEach(function(s){var z=s.key,H=ae.has(z);a&&!H&&(a=!1),!v&&(H||xe.has(z))&&(v=!0)}),a&&ae.add(y.key),v&&xe.add(y.key),U.add(y.key)})}return{checkedKeys:Array.from(ae),halfCheckedKeys:Array.from(R(xe,ae))}}function i(q,le,W,B,ae){for(var xe=new Set(q),he=new Set(le),ce=0;ce<=B;ce+=1){var U=W.get(ce)||new Set;U.forEach(function(y){var l=y.key,a=y.node,v=y.children,s=v===void 0?[]:v;!xe.has(l)&&!he.has(l)&&!ae(a)&&s.filter(function(z){return!ae(z.node)}).forEach(function(z){xe.delete(z.key)})})}he=new Set;for(var w=new Set,Y=B;Y>=0;Y-=1){var O=W.get(Y)||new Set;O.forEach(function(y){var l=y.parent,a=y.node;if(ae(a)||!y.parent||w.has(y.parent.key))return;if(ae(y.parent.node)){w.add(l.key);return}var v=!0,s=!1;(l.children||[]).filter(function(z){return!ae(z.node)}).forEach(function(z){var H=z.key,x=xe.has(H);v&&!x&&(v=!1),!s&&(x||he.has(H))&&(s=!0)}),v||xe.delete(l.key),s&&he.add(l.key),w.add(l.key)})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(R(he,xe))}}function p(q,le,W,B){var ae=[],xe;B?xe=B:xe=Ae;var he=new Set(q.filter(function(Y){var O=!!W[Y];return O||ae.push(Y),O})),ce=new Map,U=0;Object.keys(W).forEach(function(Y){var O=W[Y],y=O.level,l=ce.get(y);l||(l=new Set,ce.set(y,l)),l.add(O),U=Math.max(U,y)}),Object(L.a)(!ae.length,"Tree missing follow keys: ".concat(ae.slice(0,100).map(function(Y){return"'".concat(Y,"'")}).join(", ")));var w;return le===!0?w=K(he,ce,U,xe):w=i(he,le.halfCheckedKeys,ce,U,xe),w}},OZM5:function($e,Oe,n){"use strict";n.d(Oe,"b",function(){return B}),n.d(Oe,"a",function(){return ae}),n.d(Oe,"k",function(){return xe}),n.d(Oe,"h",function(){return he}),n.d(Oe,"i",function(){return ce}),n.d(Oe,"g",function(){return U}),n.d(Oe,"c",function(){return w}),n.d(Oe,"d",function(){return Y}),n.d(Oe,"j",function(){return l}),n.d(Oe,"e",function(){return a}),n.d(Oe,"f",function(){return v});var L=n("KQm4"),R=n("U8pU"),Ae=n("Ff2n"),K=n("q1tI"),i=n.n(K),p=n("Kwbf"),q=n("WaYH"),le=.25,W=2;function B(s,z){var H=s.slice(),x=H.indexOf(z);return x>=0&&H.splice(x,1),H}function ae(s,z){var H=s.slice();return H.indexOf(z)===-1&&H.push(z),H}function xe(s){return s.split("-")}function he(s,z){return"".concat(s,"-").concat(z)}function ce(s){return s&&s.type&&s.type.isTreeNode}function U(s,z){var H=[s],x=z[s];function S(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(V){var G=V.key,ee=V.children;H.push(G),S(ee)})}return S(x.children),H}function w(s,z){var H=s.clientY,x=z.selectHandle.getBoundingClientRect(),S=x.top,h=x.bottom,V=x.height,G=Math.max(V*le,W);return H<=S+G?-1:H>=h-G?1:0}function Y(s,z){if(!s)return;var H=z.multiple;return H?s.slice():s.length?[s[0]]:s}var O=function(z){return z};function y(s,z){if(!s)return[];var H=z||{},x=H.processProps,S=x===void 0?O:x,h=Array.isArray(s)?s:[s];return h.map(function(V){var G=V.children,ee=Object(Ae.a)(V,["children"]),ge=y(G,z);return i.a.createElement(q.a,Object.assign({},S(ee)),ge)})}function l(s){if(!s)return null;var z;if(Array.isArray(s))z={checkedKeys:s,halfCheckedKeys:void 0};else if(Object(R.a)(s)==="object")z={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return z}function a(s,z){var H=new Set;function x(S){if(H.has(S))return;var h=z[S];if(!h)return;H.add(S);var V=h.parent,G=h.node;if(G.disabled)return;V&&x(V.key)}return(s||[]).forEach(function(S){x(S)}),Object(L.a)(H)}function v(s){var z={};return Object.keys(s).forEach(function(H){(H.startsWith("data-")||H.startsWith("aria-"))&&(z[H]=s[H])}),z}},"SA+Z":function($e,Oe,n){var L=n("wTVA"),R=n("EbDI"),Ae=n("ZhPi"),K=n("wkBT");function i(p){return L(p)||R(p)||Ae(p)||K()}$e.exports=i,$e.exports.__esModule=!0,$e.exports.default=$e.exports},WaYH:function($e,Oe,n){"use strict";var L=n("rePB"),R=n("Ff2n"),Ae=n("VTBJ"),K=n("1OyB"),i=n("vuIU"),p=n("JX7q"),q=n("Ji7U"),le=n("LK+K"),W=n("q1tI"),B=n("TSYQ"),ae=n.n(B),xe=n("sboe"),he=n("OZM5"),ce=function(z){var H=z.prefixCls,x=z.level,S=z.isStart,h=z.isEnd;if(!x)return null;for(var V="".concat(H,"-indent-unit"),G=[],ee=0;ee=0||ee.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;S.setState({goInputText:""}),k(S.getValidValue())},S.go=function(ee){var ge=S.state.goInputText;if(ge==="")return;(ee.keyCode===ce.ENTER||ee.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(i.a)(x,[{key:"getValidValue",value:function(){var h=this.state,V=h.goInputText,G=h.current;return!V||isNaN(V)?G:Number(V)}},{key:"getPageSizeOptions",value:function(){var h=this.props,V=h.pageSize,G=h.pageSizeOptions;return G.some(function(ee){return ee.toString()===V.toString()})?G:G.concat([V.toString()]).sort(function(ee,ge){var ie=isNaN(Number(ee))?0:Number(ee),k=isNaN(Number(ge))?0:Number(ge);return ie-k})}},{key:"render",value:function(){var h=this,V=this.props,G=V.pageSize,ee=V.locale,ge=V.rootPrefixCls,ie=V.changeSize,k=V.quickGo,F=V.goButton,C=V.selectComponentClass,b=V.buildOptionText,I=V.selectPrefixCls,j=V.disabled,A=this.state.goInputText,J="".concat(ge,"-options"),se=C,ye=null,Z=null,oe=null;if(!ie&&!k)return null;var ue=this.getPageSizeOptions();if(ie&&se){var te=ue.map(function($,ne){return W.a.createElement(se.Option,{key:ne,value:$.toString()},(b||h.buildOptionText)($))});ye=W.a.createElement(se,{disabled:j,prefixCls:I,showSearch:!1,className:"".concat(J,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(G||ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ne){return ne.parentNode}},te)}return k&&(F&&(oe=typeof F=="boolean"?W.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:j,className:"".concat(J,"-quick-jumper-button")},ee.jump_to_confirm):W.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),Z=W.a.createElement("div",{className:"".concat(J,"-quick-jumper")},ee.jump_to,W.a.createElement("input",{disabled:j,type:"text",value:A,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),ee.page,oe)),W.a.createElement("li",{className:"".concat(J)},ye,Z)}}]),x}(W.a.Component);U.defaultProps={pageSizeOptions:["10","20","50","100"]};var D=U,Y=n("N2Kk");function O(){}function y(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function l(z,H,x){return x}function a(z,H,x){var S=typeof z=="undefined"?H.pageSize:z;return Math.floor((x.total-1)/S)+1}var v=function(z){Object(p.a)(x,z);var H=Object(q.a)(x);function x(S){var h;Object(K.a)(this,x),h=H.call(this,S),h.getJumpPrevPage=function(){return Math.max(1,h.state.current-(h.props.showLessItems?3:5))},h.getJumpNextPage=function(){return Math.min(a(void 0,h.state,h.props),h.state.current+(h.props.showLessItems?3:5))},h.getItemIcon=function(ie,k){var F=h.props.prefixCls,C=ie||W.a.createElement("button",{type:"button","aria-label":k,className:"".concat(F,"-item-link")});return typeof ie=="function"&&(C=W.a.createElement(ie,Object(Ae.a)({},h.props))),C},h.savePaginationNode=function(ie){h.paginationNode=ie},h.isValid=function(ie){return y(ie)&&ie!==h.state.current},h.shouldDisplayQuickJumper=function(){var ie=h.props,k=ie.showQuickJumper,F=ie.pageSize,C=ie.total;return C<=F?!1:k},h.handleKeyDown=function(ie){(ie.keyCode===ce.ARROW_UP||ie.keyCode===ce.ARROW_DOWN)&&ie.preventDefault()},h.handleKeyUp=function(ie){var k=h.getValidValue(ie),F=h.state.currentInputValue;k!==F&&h.setState({currentInputValue:k}),ie.keyCode===ce.ENTER?h.handleChange(k):ie.keyCode===ce.ARROW_UP?h.handleChange(k-1):ie.keyCode===ce.ARROW_DOWN&&h.handleChange(k+1)},h.changePageSize=function(ie){var k=h.state.current,F=a(ie,h.state,h.props);k=k>F?F:k,F===0&&(k=h.state.current),typeof ie=="number"&&("pageSize"in h.props||h.setState({pageSize:ie}),"current"in h.props||h.setState({current:k,currentInputValue:k})),h.props.onShowSizeChange(k,ie),"onChange"in h.props&&h.props.onChange&&h.props.onChange(k,ie)},h.handleChange=function(ie){var k=h.props.disabled,F=ie;if(h.isValid(F)&&!k){var C=a(void 0,h.state,h.props);F>C?F=C:F<1&&(F=1),"current"in h.props||h.setState({current:F,currentInputValue:F});var b=h.state.pageSize;return h.props.onChange(F,b),F}return h.state.current},h.prev=function(){h.hasPrev()&&h.handleChange(h.state.current-1)},h.next=function(){h.hasNext()&&h.handleChange(h.state.current+1)},h.jumpPrev=function(){h.handleChange(h.getJumpPrevPage())},h.jumpNext=function(){h.handleChange(h.getJumpNextPage())},h.hasPrev=function(){return h.state.current>1},h.hasNext=function(){return h.state.current2?F-2:0),b=2;b=G?ge=G:ge=Number(V),ge}},{key:"getShowSizeChanger",value:function(){var h=this.props,V=h.showSizeChanger,G=h.total,ee=h.totalBoundaryShowSizeChanger;return typeof V!="undefined"?V:G>ee}},{key:"renderPrev",value:function(h){var V=this.props,G=V.prevIcon,ee=V.itemRender,ge=ee(h,"prev",this.getItemIcon(G,"prev page")),ie=!this.hasPrev();return Object(le.isValidElement)(ge)?Object(le.cloneElement)(ge,{disabled:ie}):ge}},{key:"renderNext",value:function(h){var V=this.props,G=V.nextIcon,ee=V.itemRender,ge=ee(h,"next",this.getItemIcon(G,"next page")),ie=!this.hasNext();return Object(le.isValidElement)(ge)?Object(le.cloneElement)(ge,{disabled:ie}):ge}},{key:"render",value:function(){var h=this,V=this.props,G=V.prefixCls,ee=V.className,ge=V.style,ie=V.disabled,k=V.hideOnSinglePage,F=V.total,C=V.locale,b=V.showQuickJumper,I=V.showLessItems,j=V.showTitle,A=V.showTotal,J=V.simple,se=V.itemRender,ye=V.showPrevNextJumpers,Z=V.jumpPrevIcon,oe=V.jumpNextIcon,ue=V.selectComponentClass,te=V.selectPrefixCls,$=V.pageSizeOptions,ne=this.state,o=ne.current,g=ne.pageSize,c=ne.currentInputValue;if(k===!0&&F<=g)return null;var N=a(void 0,this.state,this.props),Q=[],re=null,Me=null,fe=null,_e=null,je=null,me=b&&b.goButton,Ee=I?1:2,Be=o-1>0?o-1:0,Ue=o+1=Ee*2&&o!==1+2&&(Q[0]=Object(le.cloneElement)(Q[0],{className:"".concat(G,"-item-after-jump-prev")}),Q.unshift(re)),N-o>=Ee*2&&o!==N-2&&(Q[Q.length-1]=Object(le.cloneElement)(Q[Q.length-1],{className:"".concat(G,"-item-before-jump-next")}),Q.push(Me)),Ce!==1&&Q.unshift(fe),we!==N&&Q.push(_e)}var Re=null;A&&(Re=W.a.createElement("li",{className:"".concat(G,"-total-text")},A(F,[F===0?0:(o-1)*g+1,o*g>F?F:o*g])));var be=!this.hasPrev()||!N,De=!this.hasNext()||!N;return W.a.createElement("ul",Object(L.a)({className:ae()(G,ee,Object(R.a)({},"".concat(G,"-disabled"),ie)),style:ge,unselectable:"unselectable",ref:this.savePaginationNode},Fe),Re,W.a.createElement("li",{title:j?C.prev_page:null,onClick:this.prev,tabIndex:be?null:0,onKeyPress:this.runIfEnterPrev,className:ae()("".concat(G,"-prev"),Object(R.a)({},"".concat(G,"-disabled"),be)),"aria-disabled":be},this.renderPrev(Be)),Q,W.a.createElement("li",{title:j?C.next_page:null,onClick:this.next,tabIndex:De?null:0,onKeyPress:this.runIfEnterNext,className:ae()("".concat(G,"-next"),Object(R.a)({},"".concat(G,"-disabled"),De)),"aria-disabled":De},this.renderNext(Ue)),W.a.createElement(D,{disabled:ie,locale:C,rootPrefixCls:G,selectComponentClass:ue,selectPrefixCls:te,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:g,pageSizeOptions:$,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(h,V){var G={};if("current"in h&&(G.current=h.current,h.current!==V.current&&(G.currentInputValue=G.current)),"pageSize"in h&&h.pageSize!==V.pageSize){var ee=V.current,ge=a(h.pageSize,V,h);ee=ee>ge?ge:ee,"current"in h||(G.current=ee,G.currentInputValue=ee),G.pageSize=h.pageSize}return G}}]),x}(W.a.Component);v.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:O,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:O,locale:Y.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var s=v},"6RRn":function($e,Oe,n){"use strict";var L=n("wCXF"),R=n("n6Qo");n.d(Oe,"b",function(){return R.a});var Ae=n("IBYe"),K=n("6eGT"),i=n("hW8S");n.d(Oe,"a",function(){return i.a}),Oe.c=L.b},"6eGT":function($e,Oe,n){"use strict";function L(R){return null}Oe.a=L},"815F":function($e,Oe,n){"use strict";n.d(Oe,"e",function(){return q}),n.d(Oe,"c",function(){return W}),n.d(Oe,"d",function(){return B}),n.d(Oe,"a",function(){return xe}),n.d(Oe,"f",function(){return he}),n.d(Oe,"b",function(){return ce});var L=n("KQm4"),R=n("VTBJ"),Ae=n("Ff2n"),K=n("Zm9Q"),i=n("Kwbf"),p=n("OZM5");function q(U,D){return U!=null?U:D}function le(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=new Map;function Y(O){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(O||[]).forEach(function(l){var a=l.key,v=l.children;Object(i.a)(a!=null,"Tree node must have a certain key: [".concat(y).concat(a,"]"));var s=String(a);Object(i.a)(!D.has(s)||a===null||a===void 0,"Same 'key' exist in the Tree: ".concat(s)),D.set(s,!0),Y(v,"".concat(y).concat(s," > "))})}Y(U)}function W(U){function D(Y){var O=Object(K.a)(Y);return O.map(function(y){if(!Object(p.i)(y))return Object(i.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var l=y.key,a=y.props,v=a.children,s=Object(Ae.a)(a,["children"]),z=Object(R.a)({key:l},s),H=D(v);return H.length&&(z.children=H),z}).filter(function(y){return y})}return D(U)}function B(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Y=new Set(D===!0?[]:D),O=[];function y(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(v,s){var z=Object(p.h)(a?a.pos:"0",s),H=q(v.key,z),x=Object(R.a)(Object(R.a)({},v),{},{parent:a,pos:z,children:null,data:v,isStart:[].concat(Object(L.a)(a?a.isStart:[]),[s===0]),isEnd:[].concat(Object(L.a)(a?a.isEnd:[]),[s===l.length-1])});return O.push(x),D===!0||Y.has(H)?x.children=y(v.children||[],x):x.children=[],x})}return y(U),O}function ae(U,D,Y){var O;Y?typeof Y=="string"?O=function(a){return a[Y]}:typeof Y=="function"&&(O=function(a){return Y(a)}):O=function(a,v){return q(a.key,v)};function y(l,a,v){var s=l?l.children:U,z=l?Object(p.h)(v.pos,a):"0";if(l){var H=O(l,z),x={node:l,index:a,pos:z,key:H,parentPos:v.node?v.pos:null,level:v.level+1};D(x)}s&&s.forEach(function(S,h){y(S,h,{node:l,pos:z,level:v?v.level+1:-1})})}y(null)}function xe(U){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=D.initWrapper,O=D.processEntity,y=D.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,a={},v={},s={posEntities:a,keyEntities:v};return Y&&(s=Y(s)||s),ae(U,function(z){var H=z.node,x=z.index,S=z.pos,h=z.key,V=z.parentPos,G=z.level,ee={node:H,index:x,key:h,pos:S,level:G},ge=q(h,S);a[S]=ee,v[ge]=ee,ee.parent=a[V],ee.parent&&(ee.parent.children=ee.parent.children||[],ee.parent.children.push(ee)),O&&O(ee,s)},l),y&&y(s),s}function he(U,D){var Y=D.expandedKeys,O=D.selectedKeys,y=D.loadedKeys,l=D.loadingKeys,a=D.checkedKeys,v=D.halfCheckedKeys,s=D.dragOverNodeKey,z=D.dropPosition,H=D.keyEntities,x=H[U],S={eventKey:U,expanded:Y.indexOf(U)!==-1,selected:O.indexOf(U)!==-1,loaded:y.indexOf(U)!==-1,loading:l.indexOf(U)!==-1,checked:a.indexOf(U)!==-1,halfChecked:v.indexOf(U)!==-1,pos:String(x?x.pos:""),dragOver:s===U&&z===0,dragOverGapTop:s===U&&z===-1,dragOverGapBottom:s===U&&z===1};return S}function ce(U){var D=U.data,Y=U.expanded,O=U.selected,y=U.checked,l=U.loaded,a=U.loading,v=U.halfChecked,s=U.dragOver,z=U.dragOverGapTop,H=U.dragOverGapBottom,x=U.pos,S=U.active,h=Object(R.a)(Object(R.a)({},D),{},{expanded:Y,selected:O,checked:y,loaded:l,loading:a,halfChecked:v,dragOver:s,dragOverGapTop:z,dragOverGapBottom:H,pos:x,active:S});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Object(i.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),U}}),h}},BU3w:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return p});var L=n("MNnm"),R="rc-util-key";function Ae(q){if(q.attachTo)return q.attachTo;var le=document.querySelector("head");return le||document.body}function K(q){var le,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var B=document.createElement("style");if((le=W.csp)===null||le===void 0?void 0:le.nonce){var ae;B.nonce=(ae=W.csp)===null||ae===void 0?void 0:ae.nonce}B.innerHTML=q;var xe=Ae(W),he=xe.firstChild;return W.prepend&&xe.prepend?xe.prepend(B):W.prepend&&he?xe.insertBefore(B,he):xe.appendChild(B),B}var i=new Map;function p(q,le){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=Ae(W);if(!i.has(B)){var ae=K("",W),xe=ae.parentNode;i.set(B,xe),xe.removeChild(ae)}var he=Array.from(i.get(B).children).find(function(O){return O.tagName==="STYLE"&&O[R]===le});if(he){var ce,U;if(((ce=W.csp)===null||ce===void 0?void 0:ce.nonce)&&he.nonce!==((U=W.csp)===null||U===void 0?void 0:U.nonce)){var D;he.nonce=(D=W.csp)===null||D===void 0?void 0:D.nonce}return he.innerHTML!==q&&(he.innerHTML=q),he}var Y=K(q,W);return Y[R]=le,Y}},E9nw:function($e,Oe){$e.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var L=document.activeElement,R=[],Ae=0;Ae0&&(J.percent=J.loaded/J.total*100),C.onProgress(J)});var I=new FormData;C.data&&Object.keys(C.data).forEach(function(A){var J=C.data[A];if(Array.isArray(J)){J.forEach(function(se){I.append(A+"[]",se)});return}I.append(A,C.data[A])}),C.file instanceof Blob?I.append(C.filename,C.file,C.file.name):I.append(C.filename,C.file),b.onerror=function(J){C.onError(J)},b.onload=function(){return b.status<200||b.status>=300?C.onError(i(C,b),p(b)):C.onSuccess(p(b),b)},b.open(C.method,C.action,!0),C.withCredentials&&"withCredentials"in b&&(b.withCredentials=!0);var j=C.headers||{};return j["X-Requested-With"]!==null&&b.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(j).forEach(function(A){j[A]!==null&&b.setRequestHeader(A,j[A])}),b.send(I),{abort:function(){b.abort()}}}var le=+new Date,W=0;function B(){return"rc-upload-"+le+"-"+ ++W}function ae(C,b){return C.indexOf(b,C.length-b.length)!==-1}var xe=function(C,b){if(C&&b){var I=Array.isArray(b)?b:b.split(","),j=C.name||"",A=C.type||"",J=A.replace(/\/.*$/,"");return I.some(function(se){var ye=se.trim();return ye.charAt(0)==="."?ae(j.toLowerCase(),ye.toLowerCase()):/\/\*$/.test(ye)?J===ye.replace(/\/.*$/,""):A===ye})}return!0};function he(C,b){var I=C.createReader(),j=[];function A(){I.readEntries(function(J){var se=Array.prototype.slice.apply(J);j=j.concat(se);var ye=!se.length;ye?b(j):A()})}A()}var ce=function(b,I,j){var A=function J(se,ye){ye=ye||"",se.isFile?se.file(function(Z){j(Z)&&(se.fullPath&&!Z.webkitRelativePath&&(Object.defineProperties(Z,{webkitRelativePath:{writable:!0}}),Z.webkitRelativePath=se.fullPath.replace(/^\//,""),Object.defineProperties(Z,{webkitRelativePath:{writable:!1}})),I([Z]))}):se.isDirectory&&he(se,function(Z){Z.forEach(function(oe){J(oe,""+ye+se.name+"/")})})};b.forEach(function(J){A(J.webkitGetAsEntry())})},U=ce,D=Object.assign||function(C){for(var b=1;b=0)continue;if(!Object.prototype.hasOwnProperty.call(C,j))continue;I[j]=C[j]}return I}function a(C,b){if(!(C instanceof b))throw new TypeError("Cannot call a class as a function")}function v(C,b){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:C}function s(C,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);C.prototype=Object.create(b&&b.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(C,b):C.__proto__=b)}var z=function(b){return Object.keys(b).reduce(function(I,j){return(j.substr(0,5)==="data-"||j.substr(0,5)==="aria-"||j==="role")&&(I[j]=b[j]),I},{})},H=function(C){s(b,C);function b(){var I,j,A,J;a(this,b);for(var se=arguments.length,ye=Array(se),Z=0;Z1&&arguments[1]!==void 0?arguments[1]:1,De=Ee.length,Ke=0;Ke1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(I).map(function(A,J){if(!i.isValidElement(A)||!A.type)return null;var se=A.type.isSelectOptGroup,ye=A.key,Z=A.props,oe=Z.children,ue=Object(q.a)(Z,["children"]);return j||!se?H(A):Object(s.a)(Object(s.a)({key:"__RC_SELECT_GRP__".concat(ye===null?J:ye,"__"),label:ye},ue),{},{options:x(oe)})}).filter(function(A){return A})}var S=n("2Qr1"),h=n("qNPg"),V=n("U8pU"),G=n("Kwbf"),ee=n("WKfj");function ge(I){var j=I.mode,A=I.options,J=I.children,se=I.backfill,ye=I.allowClear,Z=I.placeholder,oe=I.getInputElement,ue=I.showSearch,te=I.onSearch,$=I.defaultOpen,ne=I.autoFocus,o=I.labelInValue,g=I.value,c=I.inputValue,N=I.optionLabelProp,Q=j==="multiple"||j==="tags",re=ue!==void 0?ue:Q||j==="combobox",Me=A||x(J);if(Object(G.a)(j!=="tags"||Me.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),j==="tags"||j==="combobox"){var fe=Me.some(function(me){return me.options?me.options.some(function(Ee){return typeof("value"in Ee?Ee.value:Ee.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object(G.a)(!fe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(G.a)(j!=="combobox"||!N,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(G.a)(j==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object(G.a)(j==="combobox"||!oe,"`getInputElement` only work with `combobox` mode."),Object(G.b)(j!=="combobox"||!oe||!ye||!Z,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),te&&!re&&j!=="combobox"&&j!=="tags"&&Object(G.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(G.b)(!$||ne,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var _e=Object(ee.d)(g);Object(G.a)(!o||_e.every(function(me){return Object(V.a)(me)==="object"&&("key"in me||"value"in me)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(G.a)(!Q||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var je=null;Object(z.a)(J).some(function(me){if(!i.isValidElement(me)||!me.type)return!1;var Ee=me.type;if(Ee.isSelectOption)return!1;if(Ee.isSelectOptGroup){var Be=Object(z.a)(me.props.children).every(function(Ue){return!i.isValidElement(Ue)||!me.type||Ue.type.isSelectOption?!0:(je=Ue.type,!1)});return!Be}return je=Ee,!0}),je&&Object(G.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(je.displayName||je.name||je,"`.")),Object(G.a)(c===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ie=ge,k=Object(h.a)({prefixCls:"rc-select",components:{optionList:O},convertChildrenToData:x,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:ie,fillOptionsWithMissingValue:S.a}),F=function(I){Object(Ae.a)(A,I);var j=Object(K.a)(A);function A(){var J;return Object(L.a)(this,A),J=j.apply(this,arguments),J.selectRef=i.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(R.a)(A,[{key:"render",value:function(){return i.createElement(k,Object.assign({ref:this.selectRef},this.props))}}]),A}(i.Component);F.Option=l,F.OptGroup=v;var C=F,b=Oe.c=C},NvD2:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return p});var L=n("Kwbf");function R(q,le){var W=new Set;return q.forEach(function(B){le.has(B)||W.add(B)}),W}function Ae(q){var le=q||{},W=le.disabled,B=le.disableCheckbox,ae=le.checkable;return!!(W||B)||ae===!1}function K(q,le,W,B){for(var ae=new Set(q),xe=new Set,he=0;he<=W;he+=1){var ce=le.get(he)||new Set;ce.forEach(function(O){var y=O.key,l=O.node,a=O.children,v=a===void 0?[]:a;ae.has(y)&&!B(l)&&v.filter(function(s){return!B(s.node)}).forEach(function(s){ae.add(s.key)})})}for(var U=new Set,D=W;D>=0;D-=1){var Y=le.get(D)||new Set;Y.forEach(function(O){var y=O.parent,l=O.node;if(B(l)||!O.parent||U.has(O.parent.key))return;if(B(O.parent.node)){U.add(y.key);return}var a=!0,v=!1;(y.children||[]).filter(function(s){return!B(s.node)}).forEach(function(s){var z=s.key,H=ae.has(z);a&&!H&&(a=!1),!v&&(H||xe.has(z))&&(v=!0)}),a&&ae.add(y.key),v&&xe.add(y.key),U.add(y.key)})}return{checkedKeys:Array.from(ae),halfCheckedKeys:Array.from(R(xe,ae))}}function i(q,le,W,B,ae){for(var xe=new Set(q),he=new Set(le),ce=0;ce<=B;ce+=1){var U=W.get(ce)||new Set;U.forEach(function(y){var l=y.key,a=y.node,v=y.children,s=v===void 0?[]:v;!xe.has(l)&&!he.has(l)&&!ae(a)&&s.filter(function(z){return!ae(z.node)}).forEach(function(z){xe.delete(z.key)})})}he=new Set;for(var D=new Set,Y=B;Y>=0;Y-=1){var O=W.get(Y)||new Set;O.forEach(function(y){var l=y.parent,a=y.node;if(ae(a)||!y.parent||D.has(y.parent.key))return;if(ae(y.parent.node)){D.add(l.key);return}var v=!0,s=!1;(l.children||[]).filter(function(z){return!ae(z.node)}).forEach(function(z){var H=z.key,x=xe.has(H);v&&!x&&(v=!1),!s&&(x||he.has(H))&&(s=!0)}),v||xe.delete(l.key),s&&he.add(l.key),D.add(l.key)})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(R(he,xe))}}function p(q,le,W,B){var ae=[],xe;B?xe=B:xe=Ae;var he=new Set(q.filter(function(Y){var O=!!W[Y];return O||ae.push(Y),O})),ce=new Map,U=0;Object.keys(W).forEach(function(Y){var O=W[Y],y=O.level,l=ce.get(y);l||(l=new Set,ce.set(y,l)),l.add(O),U=Math.max(U,y)}),Object(L.a)(!ae.length,"Tree missing follow keys: ".concat(ae.slice(0,100).map(function(Y){return"'".concat(Y,"'")}).join(", ")));var D;return le===!0?D=K(he,ce,U,xe):D=i(he,le.halfCheckedKeys,ce,U,xe),D}},OZM5:function($e,Oe,n){"use strict";n.d(Oe,"b",function(){return B}),n.d(Oe,"a",function(){return ae}),n.d(Oe,"k",function(){return xe}),n.d(Oe,"h",function(){return he}),n.d(Oe,"i",function(){return ce}),n.d(Oe,"g",function(){return U}),n.d(Oe,"c",function(){return D}),n.d(Oe,"d",function(){return Y}),n.d(Oe,"j",function(){return l}),n.d(Oe,"e",function(){return a}),n.d(Oe,"f",function(){return v});var L=n("KQm4"),R=n("U8pU"),Ae=n("Ff2n"),K=n("q1tI"),i=n.n(K),p=n("Kwbf"),q=n("WaYH"),le=.25,W=2;function B(s,z){var H=s.slice(),x=H.indexOf(z);return x>=0&&H.splice(x,1),H}function ae(s,z){var H=s.slice();return H.indexOf(z)===-1&&H.push(z),H}function xe(s){return s.split("-")}function he(s,z){return"".concat(s,"-").concat(z)}function ce(s){return s&&s.type&&s.type.isTreeNode}function U(s,z){var H=[s],x=z[s];function S(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(V){var G=V.key,ee=V.children;H.push(G),S(ee)})}return S(x.children),H}function D(s,z){var H=s.clientY,x=z.selectHandle.getBoundingClientRect(),S=x.top,h=x.bottom,V=x.height,G=Math.max(V*le,W);return H<=S+G?-1:H>=h-G?1:0}function Y(s,z){if(!s)return;var H=z.multiple;return H?s.slice():s.length?[s[0]]:s}var O=function(z){return z};function y(s,z){if(!s)return[];var H=z||{},x=H.processProps,S=x===void 0?O:x,h=Array.isArray(s)?s:[s];return h.map(function(V){var G=V.children,ee=Object(Ae.a)(V,["children"]),ge=y(G,z);return i.a.createElement(q.a,Object.assign({},S(ee)),ge)})}function l(s){if(!s)return null;var z;if(Array.isArray(s))z={checkedKeys:s,halfCheckedKeys:void 0};else if(Object(R.a)(s)==="object")z={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return z}function a(s,z){var H=new Set;function x(S){if(H.has(S))return;var h=z[S];if(!h)return;H.add(S);var V=h.parent,G=h.node;if(G.disabled)return;V&&x(V.key)}return(s||[]).forEach(function(S){x(S)}),Object(L.a)(H)}function v(s){var z={};return Object.keys(s).forEach(function(H){(H.startsWith("data-")||H.startsWith("aria-"))&&(z[H]=s[H])}),z}},"SA+Z":function($e,Oe,n){var L=n("wTVA"),R=n("EbDI"),Ae=n("ZhPi"),K=n("wkBT");function i(p){return L(p)||R(p)||Ae(p)||K()}$e.exports=i,$e.exports.__esModule=!0,$e.exports.default=$e.exports},WaYH:function($e,Oe,n){"use strict";var L=n("rePB"),R=n("Ff2n"),Ae=n("VTBJ"),K=n("1OyB"),i=n("vuIU"),p=n("JX7q"),q=n("Ji7U"),le=n("LK+K"),W=n("q1tI"),B=n("TSYQ"),ae=n.n(B),xe=n("sboe"),he=n("OZM5"),ce=function(z){var H=z.prefixCls,x=z.level,S=z.isStart,h=z.isEnd;if(!x)return null;for(var V="".concat(H,"-indent-unit"),G=[],ee=0;ee1&&arguments[1]!==void 0?arguments[1]:!1,ue=Z.getAttribute("id")||Z.getAttribute("data-reactid")||Z.getAttribute("name");if(oe&&ie[ue])return ie[ue];var te=window.getComputedStyle(Z),$=te.getPropertyValue("box-sizing")||te.getPropertyValue("-moz-box-sizing")||te.getPropertyValue("-webkit-box-sizing"),ne=parseFloat(te.getPropertyValue("padding-bottom"))+parseFloat(te.getPropertyValue("padding-top")),o=parseFloat(te.getPropertyValue("border-bottom-width"))+parseFloat(te.getPropertyValue("border-top-width")),g=ge.map(function(N){return"".concat(N,":").concat(te.getPropertyValue(N))}).join(";"),c={sizingStyle:g,paddingSize:ne,borderSize:o,boxSizing:$};return oe&&ue&&(ie[ue]=c),c}function C(Z){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;k||(k=document.createElement("textarea"),k.setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),Z.getAttribute("wrap")?k.setAttribute("wrap",Z.getAttribute("wrap")):k.removeAttribute("wrap");var $=F(Z,oe),ne=$.paddingSize,o=$.borderSize,g=$.boxSizing,c=$.sizingStyle;k.setAttribute("style","".concat(c,";").concat(ee)),k.value=Z.value||Z.placeholder||"";var N=Number.MIN_SAFE_INTEGER,Q=Number.MAX_SAFE_INTEGER,re=k.scrollHeight,Me;if(g==="border-box"?re+=o:g==="content-box"&&(re-=ne),ue!==null||te!==null){k.value=" ";var fe=k.scrollHeight-ne;ue!==null&&(N=fe*ue,g==="border-box"&&(N=N+ne+o),re=Math.max(N,re)),te!==null&&(Q=fe*te,g==="border-box"&&(Q=Q+ne+o),Me=re>Q?"":"hidden",re=Math.min(Q,re))}return{height:re,minHeight:N,maxHeight:Q,overflowY:Me,resize:"none"}}var b=n("Gytx"),I=n.n(b),j;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.RESIZING=1]="RESIZING",Z[Z.RESIZED=2]="RESIZED"})(j||(j={}));var A=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(te){var $;return Object(R.a)(this,ue),$=oe.call(this,te),$.nextFrameActionId=void 0,$.resizeFrameId=void 0,$.textArea=void 0,$.saveTextArea=function(ne){$.textArea=ne},$.handleResize=function(ne){var o=$.state.resizeStatus,g=$.props,c=g.autoSize,N=g.onResize;if(o!==j.NONE)return;typeof N=="function"&&N(ne),c&&$.resizeOnNextFrame()},$.resizeOnNextFrame=function(){cancelAnimationFrame($.nextFrameActionId),$.nextFrameActionId=requestAnimationFrame($.resizeTextarea)},$.resizeTextarea=function(){var ne=$.props.autoSize;if(!ne||!$.textArea)return;var o=ne.minRows,g=ne.maxRows,c=C($.textArea,!1,o,g);$.setState({textareaStyles:c,resizeStatus:j.RESIZING},function(){cancelAnimationFrame($.resizeFrameId),$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:j.RESIZED},function(){$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:j.NONE}),$.fixFirefoxAutoScroll()})})})})},$.renderTextArea=function(){var ne=$.props,o=ne.prefixCls,g=o===void 0?"rc-textarea":o,c=ne.autoSize,N=ne.onResize,Q=ne.className,re=ne.disabled,Me=$.state,fe=Me.textareaStyles,_e=Me.resizeStatus,je=Object(h.a)($.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),me=G()(g,Q,Object(le.a)({},"".concat(g,"-disabled"),re));"value"in je&&(je.value=je.value||"");var Ee=Object(q.a)(Object(q.a)(Object(q.a)({},$.props.style),fe),_e===j.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(S,{onResize:$.handleResize,disabled:!(c||N)},p.createElement("textarea",Object(L.a)({},je,{className:me,style:Ee,ref:$.saveTextArea})))},$.state={textareaStyles:{},resizeStatus:j.NONE},$}return Object(Ae.a)(ue,[{key:"componentDidUpdate",value:function($){($.value!==this.props.value||!I()($.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 $=this.textArea.selectionStart,ne=this.textArea.selectionEnd;this.textArea.setSelectionRange($,ne)}}catch(o){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ue}(p.Component),J=A,se=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(te){var $;Object(R.a)(this,ue),$=oe.call(this,te),$.resizableTextArea=void 0,$.focus=function(){$.resizableTextArea.textArea.focus()},$.saveTextArea=function(o){$.resizableTextArea=o},$.handleChange=function(o){var g=$.props.onChange;$.setValue(o.target.value,function(){$.resizableTextArea.resizeTextarea()}),g&&g(o)},$.handleKeyDown=function(o){var g=$.props,c=g.onPressEnter,N=g.onKeyDown;o.keyCode===13&&c&&c(o),N&&N(o)};var ne=typeof te.value=="undefined"||te.value===null?te.defaultValue:te.value;return $.state={value:ne},$}return Object(Ae.a)(ue,[{key:"setValue",value:function($,ne){"value"in this.props||this.setState({value:$},ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(J,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function($){return"value"in $?{value:$.value}:null}}]),ue}(p.Component),ye=Oe.default=se},Zss7:function($e,Oe,n){var L;(function(R){var Ae=/^\s+/,K=/\s+$/,i=0,p=R.round,q=R.min,le=R.max,W=R.random;function B(o,g){if(o=o||"",g=g||{},o instanceof B)return o;if(!(this instanceof B))return new B(o,g);var c=ae(o);this._originalInput=o,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=p(100*this._a)/100,this._format=g.format||c.format,this._gradientType=g.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=c.ok,this._tc_id=i++}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 o=this.toRgb();return(o.r*299+o.g*587+o.b*114)/1e3},getLuminance:function(){var o=this.toRgb(),g,c,N,Q,re,Me;return g=o.r/255,c=o.g/255,N=o.b/255,g<=.03928?Q=g/12.92:Q=R.pow((g+.055)/1.055,2.4),c<=.03928?re=c/12.92:re=R.pow((c+.055)/1.055,2.4),N<=.03928?Me=N/12.92:Me=R.pow((N+.055)/1.055,2.4),.2126*Q+.7152*re+.0722*Me},setAlpha:function(o){return this._a=C(o),this._roundA=p(100*this._a)/100,this},toHsv:function(){var o=U(this._r,this._g,this._b);return{h:o.h*360,s:o.s,v:o.v,a:this._a}},toHsvString:function(){var o=U(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.v*100);return this._a==1?"hsv("+g+", "+c+"%, "+N+"%)":"hsva("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHsl:function(){var o=he(this._r,this._g,this._b);return{h:o.h*360,s:o.s,l:o.l,a:this._a}},toHslString:function(){var o=he(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.l*100);return this._a==1?"hsl("+g+", "+c+"%, "+N+"%)":"hsla("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHex:function(o){return Y(this._r,this._g,this._b,o)},toHexString:function(o){return"#"+this.toHex(o)},toHex8:function(o){return O(this._r,this._g,this._b,this._a,o)},toHex8String:function(o){return"#"+this.toHex8(o)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(b(this._r,255)*100)+"%",g:p(b(this._g,255)*100)+"%",b:p(b(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%)":"rgba("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[Y(this._r,this._g,this._b,!0)]||!1},toFilter:function(o){var g="#"+y(this._r,this._g,this._b,this._a),c=g,N=this._gradientType?"GradientType = 1, ":"";if(o){var Q=B(o);c="#"+y(Q._r,Q._g,Q._b,Q._a)}return"progid:DXImageTransform.Microsoft.gradient("+N+"startColorstr="+g+",endColorstr="+c+")"},toString:function(o){var g=!!o;o=o||this._format;var c=!1,N=this._a<1&&this._a>=0,Q=!g&&N&&(o==="hex"||o==="hex6"||o==="hex3"||o==="hex4"||o==="hex8"||o==="name");return Q?o==="name"&&this._a===0?this.toName():this.toRgbString():(o==="rgb"&&(c=this.toRgbString()),o==="prgb"&&(c=this.toPercentageRgbString()),(o==="hex"||o==="hex6")&&(c=this.toHexString()),o==="hex3"&&(c=this.toHexString(!0)),o==="hex4"&&(c=this.toHex8String(!0)),o==="hex8"&&(c=this.toHex8String()),o==="name"&&(c=this.toName()),o==="hsl"&&(c=this.toHslString()),o==="hsv"&&(c=this.toHsvString()),c||this.toHexString())},clone:function(){return B(this.toString())},_applyModification:function(o,g){var c=o.apply(null,[this].concat([].slice.call(g)));return this._r=c._r,this._g=c._g,this._b=c._b,this.setAlpha(c._a),this},lighten:function(){return this._applyModification(s,arguments)},brighten:function(){return this._applyModification(z,arguments)},darken:function(){return this._applyModification(H,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(o,g){return o.apply(null,[this].concat([].slice.call(g)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(ge,arguments)},splitcomplement:function(){return this._applyCombination(G,arguments)},triad:function(){return this._applyCombination(h,arguments)},tetrad:function(){return this._applyCombination(V,arguments)}},B.fromRatio=function(o,g){if(typeof o=="object"){var c={};for(var N in o)o.hasOwnProperty(N)&&(N==="a"?c[N]=o[N]:c[N]=ye(o[N]));o=c}return B(o,g)};function ae(o){var g={r:0,g:0,b:0},c=1,N=null,Q=null,re=null,Me=!1,fe=!1;return typeof o=="string"&&(o=$(o)),typeof o=="object"&&(te(o.r)&&te(o.g)&&te(o.b)?(g=xe(o.r,o.g,o.b),Me=!0,fe=String(o.r).substr(-1)==="%"?"prgb":"rgb"):te(o.h)&&te(o.s)&&te(o.v)?(N=ye(o.s),Q=ye(o.v),g=w(o.h,N,Q),Me=!0,fe="hsv"):te(o.h)&&te(o.s)&&te(o.l)&&(N=ye(o.s),re=ye(o.l),g=ce(o.h,N,re),Me=!0,fe="hsl"),o.hasOwnProperty("a")&&(c=o.a)),c=C(c),{ok:Me,format:o.format||fe,r:q(255,le(g.r,0)),g:q(255,le(g.g,0)),b:q(255,le(g.b,0)),a:c}}function xe(o,g,c){return{r:b(o,255)*255,g:b(g,255)*255,b:b(c,255)*255}}function he(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,Me,fe=(N+Q)/2;if(N==Q)re=Me=0;else{var _e=N-Q;Me=fe>.5?_e/(2-N-Q):_e/(N+Q);switch(N){case o:re=(g-c)/_e+(g1&&(Ee-=1),Ee<1/6?je+(me-je)*6*Ee:Ee<1/2?me:Ee<2/3?je+(me-je)*(2/3-Ee)*6:je}if(g===0)N=Q=re=c;else{var fe=c<.5?c*(1+g):c+g-c*g,_e=2*c-fe;N=Me(_e,fe,o+1/3),Q=Me(_e,fe,o),re=Me(_e,fe,o-1/3)}return{r:N*255,g:Q*255,b:re*255}}function U(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,Me,fe=N,_e=N-Q;if(Me=N===0?0:_e/N,N==Q)re=0;else{switch(N){case o:re=(g-c)/_e+(g>1)+720)%360;--g;)N.h=(N.h+Q)%360,re.push(B(N));return re}function ge(o,g){g=g||6;for(var c=B(o).toHsv(),N=c.h,Q=c.s,re=c.v,Me=[],fe=1/g;g--;)Me.push(B({h:N,s:Q,v:re})),re=(re+fe)%1;return Me}B.mix=function(o,g,c){c=c===0?0:c||50;var N=B(o).toRgb(),Q=B(g).toRgb(),re=c/100,Me={r:(Q.r-N.r)*re+N.r,g:(Q.g-N.g)*re+N.g,b:(Q.b-N.b)*re+N.b,a:(Q.a-N.a)*re+N.a};return B(Me)},B.readability=function(o,g){var c=B(o),N=B(g);return(R.max(c.getLuminance(),N.getLuminance())+.05)/(R.min(c.getLuminance(),N.getLuminance())+.05)},B.isReadable=function(o,g,c){var N=B.readability(o,g),Q,re;re=!1,Q=ne(c);switch(Q.level+Q.size){case"AAsmall":case"AAAlarge":re=N>=4.5;break;case"AAlarge":re=N>=3;break;case"AAAsmall":re=N>=7;break}return re},B.mostReadable=function(o,g,c){var N=null,Q=0,re,Me,fe,_e;c=c||{},Me=c.includeFallbackColors,fe=c.level,_e=c.size;for(var je=0;jeQ&&(Q=re,N=B(g[je]));return B.isReadable(o,N,{level:fe,size:_e})||!Me?N:(c.includeFallbackColors=!1,B.mostReadable(o,["#fff","#000"],c))};var ie=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"},k=B.hexNames=F(ie);function F(o){var g={};for(var c in o)o.hasOwnProperty(c)&&(g[o[c]]=c);return g}function C(o){return o=parseFloat(o),(isNaN(o)||o<0||o>1)&&(o=1),o}function b(o,g){A(o)&&(o="100%");var c=J(o);return o=q(g,le(0,parseFloat(o))),c&&(o=parseInt(o*g,10)/100),R.abs(o-g)<1e-6?1:o%g/parseFloat(g)}function I(o){return q(1,le(0,o))}function j(o){return parseInt(o,16)}function A(o){return typeof o=="string"&&o.indexOf(".")!=-1&&parseFloat(o)===1}function J(o){return typeof o=="string"&&o.indexOf("%")!=-1}function se(o){return o.length==1?"0"+o:""+o}function ye(o){return o<=1&&(o=o*100+"%"),o}function Z(o){return R.round(parseFloat(o)*255).toString(16)}function oe(o){return j(o)/255}var ue=function(){var o="[-\\+]?\\d+%?",g="[-\\+]?\\d*\\.\\d+%?",c="(?:"+g+")|(?:"+o+")",N="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",Q="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+Q),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+Q),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+Q),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 te(o){return!!ue.CSS_UNIT.exec(o)}function $(o){o=o.replace(Ae,"").replace(K,"").toLowerCase();var g=!1;if(ie[o])o=ie[o],g=!0;else if(o=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c;return(c=ue.rgb.exec(o))?{r:c[1],g:c[2],b:c[3]}:(c=ue.rgba.exec(o))?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=ue.hsl.exec(o))?{h:c[1],s:c[2],l:c[3]}:(c=ue.hsla.exec(o))?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=ue.hsv.exec(o))?{h:c[1],s:c[2],v:c[3]}:(c=ue.hsva.exec(o))?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=ue.hex8.exec(o))?{r:j(c[1]),g:j(c[2]),b:j(c[3]),a:oe(c[4]),format:g?"name":"hex8"}:(c=ue.hex6.exec(o))?{r:j(c[1]),g:j(c[2]),b:j(c[3]),format:g?"name":"hex"}:(c=ue.hex4.exec(o))?{r:j(c[1]+""+c[1]),g:j(c[2]+""+c[2]),b:j(c[3]+""+c[3]),a:oe(c[4]+""+c[4]),format:g?"name":"hex8"}:(c=ue.hex3.exec(o))?{r:j(c[1]+""+c[1]),g:j(c[2]+""+c[2]),b:j(c[3]+""+c[3]),format:g?"name":"hex"}:!1}function ne(o){var g,c;return o=o||{level:"AA",size:"small"},g=(o.level||"AA").toUpperCase(),c=(o.size||"small").toLowerCase(),g!=="AA"&&g!=="AAA"&&(g="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:g,size:c}}$e.exports?$e.exports=B:!(L=function(){return B}.call(Oe,n,Oe,$e),L!==void 0&&($e.exports=L))})(Math)},aWJQ:function($e,Oe,n){"use strict";n.r(Oe);var L=n("5NDa"),R=n("5rEg"),Ae=n("2qtc"),K=n("kLXV"),i=n("DjyN"),p=n("NUBc"),q=n("k1fw"),le=n("g9YV"),W=n("wCAj"),B=n("/zsF"),ae=n("PArb"),xe=n("+L6B"),he=n("2/Rp"),ce=n("9og8"),U=n("tJVT"),w=n("DZo9"),Y=n("8z0m"),O=n("Znn+"),y=n("ZTPi"),l=n("tU7J"),a=n("wFql"),v=n("WmNS"),s=n.n(v),z=n("q1tI"),H=n.n(z),x=n("xvlK"),S=n("9kvl"),h=n("ErOA"),V=n("wd/R"),G=n.n(V),ee=n("/W/m"),ge=n.n(ee),ie=n("ffu0"),k=a.a.Paragraph,F=y.a.TabPane,C=Y.a.Dragger,b=function(j){var A=j.dispatch,J=Object(z.useState)({limit:10,page:1,tab:"public"}),se=Object(U.a)(J,2),ye=se[0],Z=se[1],oe=Object(z.useState)([]),ue=Object(U.a)(oe,2),te=ue[0],$=ue[1],ne=Object(z.useState)(!1),o=Object(U.a)(ne,2),g=o[0],c=o[1],N=Object(z.useState)(),Q=Object(U.a)(N,2),re=Q[0],Me=Q[1],fe=Object(z.useState)(""),_e=Object(U.a)(fe,2),je=_e[0],me=_e[1];Object(z.useEffect)(function(){Ee()},[]);function Ee(){return Be.apply(this,arguments)}function Be(){return Be=Object(ce.a)(s.a.mark(function Xe(){var Ne;return s.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(h.a)("/api/sci/projects/data_sets.json",{method:"get",params:ye});case 2:Ne=P.sent,$(Ne);case 4:case"end":return P.stop()}},Xe)})),Be.apply(this,arguments)}function Ue(Xe){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(ce.a)(s.a.mark(function Xe(Ne){var _t,P,ve,Ce,De,Pe,Te;return s.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,Object(h.a)("/api/sci/projects/update_attachment.json",{method:"PUT",body:{md5:(Ne==null||((_t=Ne[0])===null||_t===void 0||((P=_t.item)===null||P===void 0))?void 0:P.md5)||(Ne==null||((ve=Ne[0])===null||ve===void 0)?void 0:ve.md5),filesize:(Ne==null||((Ce=Ne[0])===null||Ce===void 0||((De=Ce.item)===null||De===void 0))?void 0:De.size)||(Ne==null||((Pe=Ne[0])===null||Pe===void 0)?void 0:Pe.size),description:je}});case 2:Te=be.sent,(Te==null?void 0:Te.status)===0&&(c(!1),Ee(),me(""));case 4:case"end":return be.stop()}},Xe)})),Fe.apply(this,arguments)}return H.a.createElement("div",null,H.a.createElement("div",{className:ge.a.header},H.a.createElement("span",{className:ge.a.title},"\u516C\u5F00\u6570\u636E\u96C6\u5217\u8868"),H.a.createElement(he.a,{icon:H.a.createElement(x.a,null),type:"primary",onClick:function(){return c(!0)}},"\u521B\u5EFA\u6570\u636E\u96C6")),H.a.createElement(ae.a,null),H.a.createElement(W.a,{dataSource:te==null?void 0:te.data_sets,columns:[{title:"\u6587\u4EF6\u540D",dataIndex:"filename",key:"filename",ellipsis:!0,width:"20%"},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",ellipsis:!0,width:"40%"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",render:function(Ne){return G()(Ne).format("YYYY-MM-DD HH:mm")}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author"},{title:"\u5927\u5C0F",dataIndex:"filesize",key:"filesize"}],pagination:!1}),H.a.createElement(p.a,{style:{textAlign:"center",marginTop:20},current:ye.page,total:te==null?void 0:te.data_sets_count,pageSize:10,showSizeChanger:!1,hideOnSinglePage:!0,onChange:function(Ne){ye.page=Ne,Z(Object(q.a)({},ye)),Ee()}}),g&&H.a.createElement(K.a,{title:"\u521B\u5EFA\u6570\u636E\u96C6",visible:g,onCancel:function(){if(re<100){K.a.confirm({title:"\u63D0\u793A",content:"\u8FD8\u6709\u6587\u4EF6\u6682\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u53D6\u6D88",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Me(101),c(!1)}});return}me(""),c(!1)},okButtonProps:{loading:re<100},onOk:function(){Me(0)}},H.a.createElement("div",{className:ge.a.wrap},H.a.createElement("label",{style:{color:"red"}},"*"),H.a.createElement("span",null,"\u9009\u62E9\u6587\u4EF6")," ",H.a.createElement("span",null,"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100GB)"),H.a.createElement(ie.a,{setmd5List:Ue,uploading:re,setloading:Me,showmodal:g}),H.a.createElement("label",null,"\u5907\u6CE8\uFF1A"),H.a.createElement(R.a,{maxLength:100,value:je,onChange:function(Ne){me(Ne.target.value)},placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"}))))};Oe.default=Object(S.a)(function(I){var j=I.innovation;return{innovation:j}})(b)},aaBP:function($e,Oe,n){(function(L){if(!0)$e.exports=L();else var R})(function(L){"use strict";var R=function(O,y){return O+y&4294967295},Ae=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function K(O,y,l,a,v,s){return y=R(R(y,O),R(a,s)),R(y<>>32-v,l)}function i(O,y){var l=O[0],a=O[1],v=O[2],s=O[3];l+=(a&v|~a&s)+y[0]-680876936|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[1]-389564586|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[2]+606105819|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[3]-1044525330|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[4]-176418897|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[5]+1200080426|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[6]-1473231341|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[7]-45705983|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[8]+1770035416|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[9]-1958414417|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[10]-42063|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[11]-1990404162|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[12]+1804603682|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[13]-40341101|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[14]-1502002290|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[15]+1236535329|0,a=(a<<22|a>>>10)+v|0,l+=(a&s|v&~s)+y[1]-165796510|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[6]-1069501632|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[11]+643717713|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[0]-373897302|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[5]-701558691|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[10]+38016083|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[15]-660478335|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[4]-405537848|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[9]+568446438|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[14]-1019803690|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[3]-187363961|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[8]+1163531501|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[13]-1444681467|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[2]-51403784|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[7]+1735328473|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[12]-1926607734|0,a=(a<<20|a>>>12)+v|0,l+=(a^v^s)+y[5]-378558|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[8]-2022574463|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[11]+1839030562|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[14]-35309556|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[1]-1530992060|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[4]+1272893353|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[7]-155497632|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[10]-1094730640|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[13]+681279174|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[0]-358537222|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[3]-722521979|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[6]+76029189|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[9]-640364487|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[12]-421815835|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[15]+530742520|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[2]-995338651|0,a=(a<<23|a>>>9)+v|0,l+=(v^(a|~s))+y[0]-198630844|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[7]+1126891415|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[14]-1416354905|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[5]-57434055|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[12]+1700485571|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[3]-1894986606|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[10]-1051523|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[1]-2054922799|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[8]+1873313359|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[15]-30611744|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[6]-1560198380|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[13]+1309151649|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[4]-145523070|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[11]-1120210379|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[2]+718787259|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[9]-343485551|0,a=(a<<21|a>>>11)+v|0,O[0]=l+O[0]|0,O[1]=a+O[1]|0,O[2]=v+O[2]|0,O[3]=s+O[3]|0}function p(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O.charCodeAt(l)+(O.charCodeAt(l+1)<<8)+(O.charCodeAt(l+2)<<16)+(O.charCodeAt(l+3)<<24);return y}function q(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O[l]+(O[l+1]<<8)+(O[l+2]<<16)+(O[l+3]<<24);return y}function le(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,p(O.substring(a-64,a)));for(O=O.substring(a-64),v=O.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a>2]|=O.charCodeAt(a)<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function W(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,q(O.subarray(a-64,a)));for(O=a-64>2]|=O[a]<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function B(O){var y="",l;for(l=0;l<4;l+=1)y+=Ae[O>>l*8+4&15]+Ae[O>>l*8&15];return y}function ae(O){var y;for(y=0;y>16)+(y>>16)+(l>>16);return a<<16|l&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function O(y,l){return y=y|0||0,y<0?Math.max(y+l,0):Math.min(y,l)}ArrayBuffer.prototype.slice=function(y,l){var a=this.byteLength,v=O(y,a),s=a,z,H,x,S;return l!==L&&(s=O(l,a)),v>s?new ArrayBuffer(0):(z=s-v,H=new ArrayBuffer(z),x=new Uint8Array(H),S=new Uint8Array(this,v,z),x.set(S),H)}}();function xe(O){return/[\u0080-\uFFFF]/.test(O)&&(O=unescape(encodeURIComponent(O))),O}function he(O,y){var l=O.length,a=new ArrayBuffer(l),v=new Uint8Array(a),s;for(s=0;s>2]|=y.charCodeAt(a)<<(a%4<<3);return this._finish(v,l),s=ae(this._hash),O&&(s=w(s)),this.reset(),s},Y.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Y.prototype.setState=function(O){return this._buff=O.buff,this._length=O.length,this._hash=O.hash,this},Y.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Y.prototype._finish=function(O,y){var l=y,a,v,s;if(O[l>>2]|=128<<(l%4<<3),l>55)for(i(this._hash,O),l=0;l<16;l+=1)O[l]=0;a=this._length*8,a=a.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(a[2],16),s=parseInt(a[1],16)||0,O[14]=v,O[15]=s,i(this._hash,O)},Y.hash=function(O,y){return Y.hashBinary(xe(O),y)},Y.hashBinary=function(O,y){var l=le(O),a=ae(l);return y?w(a):a},Y.ArrayBuffer=function(){this.reset()},Y.ArrayBuffer.prototype.append=function(O){var y=U(this._buff.buffer,O,!0),l=y.length,a;for(this._length+=O.byteLength,a=64;a<=l;a+=64)i(this._hash,q(y.subarray(a-64,a)));return this._buff=a-64>2]|=y[v]<<(v%4<<3);return this._finish(a,l),s=ae(this._hash),O&&(s=w(s)),this.reset(),s},Y.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.ArrayBuffer.prototype.getState=function(){var O=Y.prototype.getState.call(this);return O.buff=ce(O.buff),O},Y.ArrayBuffer.prototype.setState=function(O){return O.buff=he(O.buff,!0),Y.prototype.setState.call(this,O)},Y.ArrayBuffer.prototype.destroy=Y.prototype.destroy,Y.ArrayBuffer.prototype._finish=Y.prototype._finish,Y.ArrayBuffer.hash=function(O,y){var l=W(new Uint8Array(O)),a=ae(l);return y?w(a):a},Y})},bT9E:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return R});var L=n("VTBJ");function R(Ae,K){var i=Object(L.a)({},Ae);return Array.isArray(K)&&K.forEach(function(p){delete i[p]}),i}},biw7:function($e,Oe,n){"use strict";var L=n("q1tI"),R=n.n(L),Ae=L.createContext(null);Oe.a=Ae},ffu0:function($e,Oe,n){"use strict";var L=n("0Owb"),R=n("tJVT"),Ae=n("miYZ"),K=n("tsqr"),i=n("oBTY"),p=n("9og8"),q=n("PpiC"),le=n("DZo9"),W=n("8z0m"),B=n("WmNS"),ae=n.n(B),xe=n("q1tI"),he=n.n(xe),ce=n("ErOA"),U=n("9kvl"),w=n("/jad"),Y=n.n(w),O=n("aaBP"),y=n.n(O),l=W.a.Dragger,a=15*1024*1024,v=function(z){var H=z.dispatch,x=z.user,S=z.setloading,h=z.uploading,V=z.setmd5List,G=z.content,ee=z.shixunHomeworks,ge=z.globalSetting,ie=Object(q.a)(z,["dispatch","user","setloading","uploading","setmd5List","content","shixunHomeworks","globalSetting"]);Object(xe.useEffect)(function(){ee.actionTabs.key==="\u5206\u7247\u4E13\u7528504"&&(H({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),fe());function fe(){return _e.apply(this,arguments)}function _e(){return _e=Object(p.a)(ae.a.mark(function je(){var me,Ee;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(ce.a)((ge==null||((me=ge.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/filePatchMerge",{method:"post",body:ee.actionTabs.params},!0,!0);case 2:Ee=Ue.sent,Ee.errorCode==="000000"&&(C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),S(100),K.b.info("\u4E0A\u4F20\u6210\u529F"),V(Ee==null?void 0:Ee.data));case 4:case"end":return Ue.stop()}},je)})),_e.apply(this,arguments)}},[ee.actionTabs.key]);var k=Object(xe.useState)([]),F=Object(R.a)(k,2),C=F[0],b=F[1],I=Object(xe.useState)(0),j=Object(R.a)(I,2),A=j[0],J=j[1],se=Object(xe.useState)(!1),ye=Object(R.a)(se,2),Z=ye[0],oe=ye[1],ue={onRemove:function(_e){b(Object(i.a)(C.filter(function(je){return je.name!==_e.name})))},multiple:!0,fileList:C==null?void 0:C.map(function(fe){return fe.file}),customRequest:function(){},beforeUpload:function(){var fe=Object(p.a)(ae.a.mark(function je(me){var Ee;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(Ee=100*1024*1024*1024,!C.filter(function(Fe){return Fe.name===me.name}).length){Ue.next=4;break}return K.b.info("".concat(me.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),Ue.abrupt("return");case 4:if(!((me==null?void 0:me.size)>Ee)){Ue.next=7;break}return K.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Ee/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),Ue.abrupt("return",!1);case 7:return b([{name:me.name,file:me}]),Ue.abrupt("return",!1);case 9:case"end":return Ue.stop()}},je)}));function _e(je){return fe.apply(this,arguments)}return _e}()};Object(xe.useEffect)(function(){if(h===0){var fe;if(J(0),oe(!1),(C==null?void 0:C.length)<=0){K.b.info("\u6587\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"),S(101);return}te(C==null||((fe=C[0])===null||fe===void 0)?void 0:fe.file,x.userInfo.login)}},[h]);function te(fe,_e){return $.apply(this,arguments)}function $(){return $=Object(p.a)(ae.a.mark(function fe(_e,je){var me,Ee,Be,Ue,Fe,Xe,Ne;return ae.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return Xe=g(_e),P.next=3,Object(ce.a)((ge==null||((me=ge.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/fileExists",{method:"get",params:{md5:Xe,size:_e.size,dirName:je}},!1,!0);case 3:if(Ne=P.sent,!((Ne==null||((Ee=Ne.data)===null||Ee===void 0)?void 0:Ee.length)>0&&(Ne==null||((Be=Ne.data)===null||Be===void 0||((Ue=Be[0])===null||Ue===void 0))?void 0:Ue.type)===1)){P.next=11;break}return S(100),C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),K.b.info("\u4E0A\u4F20\u6210\u529F"),V(Ne==null?void 0:Ne.data),P.abrupt("return");case 11:if(!(Ne.data.length>0&&Ne.data[0].type===0)){P.next=14;break}return c(Ne.data[0].id,_e,je),P.abrupt("return");case 14:(Ne==null||((Fe=Ne.data)===null||Fe===void 0)?void 0:Fe.length)<=0&&ne(Xe,_e,je);case 15:case"end":return P.stop()}},fe)})),$.apply(this,arguments)}function ne(fe,_e,je){return o.apply(this,arguments)}function o(){return o=Object(p.a)(ae.a.mark(function fe(_e,je,me){var Ee,Be,Ue,Fe,Xe;return ae.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(ce.a)((ge==null||((Ee=ge.setting)===null||Ee===void 0)?void 0:Ee.bigfiles_upload)+"/file/newFile",{method:"post",body:{name:je.name,md5:_e,size:1,oldName:je.name,dirName:me}},!1,!0);case 2:Ue=_t.sent,(Ue==null||((Be=Ue.data)===null||Be===void 0)?void 0:Be.length)>0&&c(Ue==null||((Fe=Ue.data)===null||Fe===void 0||((Xe=Fe[0])===null||Xe===void 0))?void 0:Xe.id,je,me);case 4:case"end":return _t.stop()}},fe)})),o.apply(this,arguments)}function g(fe){var _e=new y.a;if(!fe.size)return _e.appendBinary(fe),_e.end();if(fe.size<2048)for(var je=Math.ceil(fe.size/2),me=0;me2048)for(var je=Math.ceil(fe.size/2e3),me=0;mek.length)&&(F=k.length);for(var C=0,b=new Array(F);C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,b))continue;C[b]=k[b]}}return C}function U(k,F){if(k==null)return{};var C={},b=Object.keys(k),I,j;for(j=0;j=0)continue;C[I]=k[I]}return C}var w=function(F){var C=F.className,b=F.percent,I=F.prefixCls,j=F.strokeColor,A=F.strokeLinecap,J=F.strokeWidth,se=F.style,ye=F.trailColor,Z=F.trailWidth,oe=F.transition,ue=ce(F,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ue.gapPosition;var te=Array.isArray(b)?b:[b],$=Array.isArray(j)?j:[j],ne=p(te),o=le(ne,1),g=o[0],c=J/2,N=100-J/2,Q="M ".concat(A==="round"?c:0,",").concat(c,` - L `).concat(A==="round"?N:100,",").concat(c),re="0 0 100 ".concat(J),Me=0;return R.a.createElement("svg",q({className:K()("".concat(I,"-line"),C),viewBox:re,preserveAspectRatio:"none",style:se},ue),R.a.createElement("path",{className:"".concat(I,"-line-trail"),d:Q,strokeLinecap:A,stroke:ye,strokeWidth:Z||J,fillOpacity:"0"}),te.map(function(fe,_e){var je={strokeDasharray:"".concat(fe,"px, 100px"),strokeDashoffset:"-".concat(Me,"px"),transition:oe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},me=$[_e]||$[$.length-1];return Me+=fe,R.a.createElement("path",{key:_e,className:"".concat(I,"-line-path"),d:Q,strokeLinecap:A,stroke:me,strokeWidth:J,fillOpacity:"0",ref:g[_e],style:je})}))};w.defaultProps=i;var Y=w;function O(){return O=Object.assign||function(k){for(var F=1;F1&&arguments[1]!==void 0?arguments[1]:!1,ue=Z.getAttribute("id")||Z.getAttribute("data-reactid")||Z.getAttribute("name");if(oe&&ie[ue])return ie[ue];var te=window.getComputedStyle(Z),$=te.getPropertyValue("box-sizing")||te.getPropertyValue("-moz-box-sizing")||te.getPropertyValue("-webkit-box-sizing"),ne=parseFloat(te.getPropertyValue("padding-bottom"))+parseFloat(te.getPropertyValue("padding-top")),o=parseFloat(te.getPropertyValue("border-bottom-width"))+parseFloat(te.getPropertyValue("border-top-width")),g=ge.map(function(N){return"".concat(N,":").concat(te.getPropertyValue(N))}).join(";"),c={sizingStyle:g,paddingSize:ne,borderSize:o,boxSizing:$};return oe&&ue&&(ie[ue]=c),c}function C(Z){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;k||(k=document.createElement("textarea"),k.setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),Z.getAttribute("wrap")?k.setAttribute("wrap",Z.getAttribute("wrap")):k.removeAttribute("wrap");var $=F(Z,oe),ne=$.paddingSize,o=$.borderSize,g=$.boxSizing,c=$.sizingStyle;k.setAttribute("style","".concat(c,";").concat(ee)),k.value=Z.value||Z.placeholder||"";var N=Number.MIN_SAFE_INTEGER,Q=Number.MAX_SAFE_INTEGER,re=k.scrollHeight,Me;if(g==="border-box"?re+=o:g==="content-box"&&(re-=ne),ue!==null||te!==null){k.value=" ";var fe=k.scrollHeight-ne;ue!==null&&(N=fe*ue,g==="border-box"&&(N=N+ne+o),re=Math.max(N,re)),te!==null&&(Q=fe*te,g==="border-box"&&(Q=Q+ne+o),Me=re>Q?"":"hidden",re=Math.min(Q,re))}return{height:re,minHeight:N,maxHeight:Q,overflowY:Me,resize:"none"}}var b=n("Gytx"),I=n.n(b),j;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.RESIZING=1]="RESIZING",Z[Z.RESIZED=2]="RESIZED"})(j||(j={}));var A=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(te){var $;return Object(R.a)(this,ue),$=oe.call(this,te),$.nextFrameActionId=void 0,$.resizeFrameId=void 0,$.textArea=void 0,$.saveTextArea=function(ne){$.textArea=ne},$.handleResize=function(ne){var o=$.state.resizeStatus,g=$.props,c=g.autoSize,N=g.onResize;if(o!==j.NONE)return;typeof N=="function"&&N(ne),c&&$.resizeOnNextFrame()},$.resizeOnNextFrame=function(){cancelAnimationFrame($.nextFrameActionId),$.nextFrameActionId=requestAnimationFrame($.resizeTextarea)},$.resizeTextarea=function(){var ne=$.props.autoSize;if(!ne||!$.textArea)return;var o=ne.minRows,g=ne.maxRows,c=C($.textArea,!1,o,g);$.setState({textareaStyles:c,resizeStatus:j.RESIZING},function(){cancelAnimationFrame($.resizeFrameId),$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:j.RESIZED},function(){$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:j.NONE}),$.fixFirefoxAutoScroll()})})})})},$.renderTextArea=function(){var ne=$.props,o=ne.prefixCls,g=o===void 0?"rc-textarea":o,c=ne.autoSize,N=ne.onResize,Q=ne.className,re=ne.disabled,Me=$.state,fe=Me.textareaStyles,_e=Me.resizeStatus,je=Object(h.a)($.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),me=G()(g,Q,Object(le.a)({},"".concat(g,"-disabled"),re));"value"in je&&(je.value=je.value||"");var Ee=Object(q.a)(Object(q.a)(Object(q.a)({},$.props.style),fe),_e===j.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(S,{onResize:$.handleResize,disabled:!(c||N)},p.createElement("textarea",Object(L.a)({},je,{className:me,style:Ee,ref:$.saveTextArea})))},$.state={textareaStyles:{},resizeStatus:j.NONE},$}return Object(Ae.a)(ue,[{key:"componentDidUpdate",value:function($){($.value!==this.props.value||!I()($.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 $=this.textArea.selectionStart,ne=this.textArea.selectionEnd;this.textArea.setSelectionRange($,ne)}}catch(o){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ue}(p.Component),J=A,se=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(te){var $;Object(R.a)(this,ue),$=oe.call(this,te),$.resizableTextArea=void 0,$.focus=function(){$.resizableTextArea.textArea.focus()},$.saveTextArea=function(o){$.resizableTextArea=o},$.handleChange=function(o){var g=$.props.onChange;$.setValue(o.target.value,function(){$.resizableTextArea.resizeTextarea()}),g&&g(o)},$.handleKeyDown=function(o){var g=$.props,c=g.onPressEnter,N=g.onKeyDown;o.keyCode===13&&c&&c(o),N&&N(o)};var ne=typeof te.value=="undefined"||te.value===null?te.defaultValue:te.value;return $.state={value:ne},$}return Object(Ae.a)(ue,[{key:"setValue",value:function($,ne){"value"in this.props||this.setState({value:$},ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(J,Object(L.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function($){return"value"in $?{value:$.value}:null}}]),ue}(p.Component),ye=Oe.default=se},Zss7:function($e,Oe,n){var L;(function(R){var Ae=/^\s+/,K=/\s+$/,i=0,p=R.round,q=R.min,le=R.max,W=R.random;function B(o,g){if(o=o||"",g=g||{},o instanceof B)return o;if(!(this instanceof B))return new B(o,g);var c=ae(o);this._originalInput=o,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=p(100*this._a)/100,this._format=g.format||c.format,this._gradientType=g.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=c.ok,this._tc_id=i++}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 o=this.toRgb();return(o.r*299+o.g*587+o.b*114)/1e3},getLuminance:function(){var o=this.toRgb(),g,c,N,Q,re,Me;return g=o.r/255,c=o.g/255,N=o.b/255,g<=.03928?Q=g/12.92:Q=R.pow((g+.055)/1.055,2.4),c<=.03928?re=c/12.92:re=R.pow((c+.055)/1.055,2.4),N<=.03928?Me=N/12.92:Me=R.pow((N+.055)/1.055,2.4),.2126*Q+.7152*re+.0722*Me},setAlpha:function(o){return this._a=C(o),this._roundA=p(100*this._a)/100,this},toHsv:function(){var o=U(this._r,this._g,this._b);return{h:o.h*360,s:o.s,v:o.v,a:this._a}},toHsvString:function(){var o=U(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.v*100);return this._a==1?"hsv("+g+", "+c+"%, "+N+"%)":"hsva("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHsl:function(){var o=he(this._r,this._g,this._b);return{h:o.h*360,s:o.s,l:o.l,a:this._a}},toHslString:function(){var o=he(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.l*100);return this._a==1?"hsl("+g+", "+c+"%, "+N+"%)":"hsla("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHex:function(o){return Y(this._r,this._g,this._b,o)},toHexString:function(o){return"#"+this.toHex(o)},toHex8:function(o){return O(this._r,this._g,this._b,this._a,o)},toHex8String:function(o){return"#"+this.toHex8(o)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(b(this._r,255)*100)+"%",g:p(b(this._g,255)*100)+"%",b:p(b(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%)":"rgba("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[Y(this._r,this._g,this._b,!0)]||!1},toFilter:function(o){var g="#"+y(this._r,this._g,this._b,this._a),c=g,N=this._gradientType?"GradientType = 1, ":"";if(o){var Q=B(o);c="#"+y(Q._r,Q._g,Q._b,Q._a)}return"progid:DXImageTransform.Microsoft.gradient("+N+"startColorstr="+g+",endColorstr="+c+")"},toString:function(o){var g=!!o;o=o||this._format;var c=!1,N=this._a<1&&this._a>=0,Q=!g&&N&&(o==="hex"||o==="hex6"||o==="hex3"||o==="hex4"||o==="hex8"||o==="name");return Q?o==="name"&&this._a===0?this.toName():this.toRgbString():(o==="rgb"&&(c=this.toRgbString()),o==="prgb"&&(c=this.toPercentageRgbString()),(o==="hex"||o==="hex6")&&(c=this.toHexString()),o==="hex3"&&(c=this.toHexString(!0)),o==="hex4"&&(c=this.toHex8String(!0)),o==="hex8"&&(c=this.toHex8String()),o==="name"&&(c=this.toName()),o==="hsl"&&(c=this.toHslString()),o==="hsv"&&(c=this.toHsvString()),c||this.toHexString())},clone:function(){return B(this.toString())},_applyModification:function(o,g){var c=o.apply(null,[this].concat([].slice.call(g)));return this._r=c._r,this._g=c._g,this._b=c._b,this.setAlpha(c._a),this},lighten:function(){return this._applyModification(s,arguments)},brighten:function(){return this._applyModification(z,arguments)},darken:function(){return this._applyModification(H,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(o,g){return o.apply(null,[this].concat([].slice.call(g)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(ge,arguments)},splitcomplement:function(){return this._applyCombination(G,arguments)},triad:function(){return this._applyCombination(h,arguments)},tetrad:function(){return this._applyCombination(V,arguments)}},B.fromRatio=function(o,g){if(typeof o=="object"){var c={};for(var N in o)o.hasOwnProperty(N)&&(N==="a"?c[N]=o[N]:c[N]=ye(o[N]));o=c}return B(o,g)};function ae(o){var g={r:0,g:0,b:0},c=1,N=null,Q=null,re=null,Me=!1,fe=!1;return typeof o=="string"&&(o=$(o)),typeof o=="object"&&(te(o.r)&&te(o.g)&&te(o.b)?(g=xe(o.r,o.g,o.b),Me=!0,fe=String(o.r).substr(-1)==="%"?"prgb":"rgb"):te(o.h)&&te(o.s)&&te(o.v)?(N=ye(o.s),Q=ye(o.v),g=D(o.h,N,Q),Me=!0,fe="hsv"):te(o.h)&&te(o.s)&&te(o.l)&&(N=ye(o.s),re=ye(o.l),g=ce(o.h,N,re),Me=!0,fe="hsl"),o.hasOwnProperty("a")&&(c=o.a)),c=C(c),{ok:Me,format:o.format||fe,r:q(255,le(g.r,0)),g:q(255,le(g.g,0)),b:q(255,le(g.b,0)),a:c}}function xe(o,g,c){return{r:b(o,255)*255,g:b(g,255)*255,b:b(c,255)*255}}function he(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,Me,fe=(N+Q)/2;if(N==Q)re=Me=0;else{var _e=N-Q;Me=fe>.5?_e/(2-N-Q):_e/(N+Q);switch(N){case o:re=(g-c)/_e+(g1&&(Ee-=1),Ee<1/6?je+(me-je)*6*Ee:Ee<1/2?me:Ee<2/3?je+(me-je)*(2/3-Ee)*6:je}if(g===0)N=Q=re=c;else{var fe=c<.5?c*(1+g):c+g-c*g,_e=2*c-fe;N=Me(_e,fe,o+1/3),Q=Me(_e,fe,o),re=Me(_e,fe,o-1/3)}return{r:N*255,g:Q*255,b:re*255}}function U(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,Me,fe=N,_e=N-Q;if(Me=N===0?0:_e/N,N==Q)re=0;else{switch(N){case o:re=(g-c)/_e+(g>1)+720)%360;--g;)N.h=(N.h+Q)%360,re.push(B(N));return re}function ge(o,g){g=g||6;for(var c=B(o).toHsv(),N=c.h,Q=c.s,re=c.v,Me=[],fe=1/g;g--;)Me.push(B({h:N,s:Q,v:re})),re=(re+fe)%1;return Me}B.mix=function(o,g,c){c=c===0?0:c||50;var N=B(o).toRgb(),Q=B(g).toRgb(),re=c/100,Me={r:(Q.r-N.r)*re+N.r,g:(Q.g-N.g)*re+N.g,b:(Q.b-N.b)*re+N.b,a:(Q.a-N.a)*re+N.a};return B(Me)},B.readability=function(o,g){var c=B(o),N=B(g);return(R.max(c.getLuminance(),N.getLuminance())+.05)/(R.min(c.getLuminance(),N.getLuminance())+.05)},B.isReadable=function(o,g,c){var N=B.readability(o,g),Q,re;re=!1,Q=ne(c);switch(Q.level+Q.size){case"AAsmall":case"AAAlarge":re=N>=4.5;break;case"AAlarge":re=N>=3;break;case"AAAsmall":re=N>=7;break}return re},B.mostReadable=function(o,g,c){var N=null,Q=0,re,Me,fe,_e;c=c||{},Me=c.includeFallbackColors,fe=c.level,_e=c.size;for(var je=0;jeQ&&(Q=re,N=B(g[je]));return B.isReadable(o,N,{level:fe,size:_e})||!Me?N:(c.includeFallbackColors=!1,B.mostReadable(o,["#fff","#000"],c))};var ie=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"},k=B.hexNames=F(ie);function F(o){var g={};for(var c in o)o.hasOwnProperty(c)&&(g[o[c]]=c);return g}function C(o){return o=parseFloat(o),(isNaN(o)||o<0||o>1)&&(o=1),o}function b(o,g){A(o)&&(o="100%");var c=J(o);return o=q(g,le(0,parseFloat(o))),c&&(o=parseInt(o*g,10)/100),R.abs(o-g)<1e-6?1:o%g/parseFloat(g)}function I(o){return q(1,le(0,o))}function j(o){return parseInt(o,16)}function A(o){return typeof o=="string"&&o.indexOf(".")!=-1&&parseFloat(o)===1}function J(o){return typeof o=="string"&&o.indexOf("%")!=-1}function se(o){return o.length==1?"0"+o:""+o}function ye(o){return o<=1&&(o=o*100+"%"),o}function Z(o){return R.round(parseFloat(o)*255).toString(16)}function oe(o){return j(o)/255}var ue=function(){var o="[-\\+]?\\d+%?",g="[-\\+]?\\d*\\.\\d+%?",c="(?:"+g+")|(?:"+o+")",N="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",Q="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+Q),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+Q),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+Q),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 te(o){return!!ue.CSS_UNIT.exec(o)}function $(o){o=o.replace(Ae,"").replace(K,"").toLowerCase();var g=!1;if(ie[o])o=ie[o],g=!0;else if(o=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c;return(c=ue.rgb.exec(o))?{r:c[1],g:c[2],b:c[3]}:(c=ue.rgba.exec(o))?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=ue.hsl.exec(o))?{h:c[1],s:c[2],l:c[3]}:(c=ue.hsla.exec(o))?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=ue.hsv.exec(o))?{h:c[1],s:c[2],v:c[3]}:(c=ue.hsva.exec(o))?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=ue.hex8.exec(o))?{r:j(c[1]),g:j(c[2]),b:j(c[3]),a:oe(c[4]),format:g?"name":"hex8"}:(c=ue.hex6.exec(o))?{r:j(c[1]),g:j(c[2]),b:j(c[3]),format:g?"name":"hex"}:(c=ue.hex4.exec(o))?{r:j(c[1]+""+c[1]),g:j(c[2]+""+c[2]),b:j(c[3]+""+c[3]),a:oe(c[4]+""+c[4]),format:g?"name":"hex8"}:(c=ue.hex3.exec(o))?{r:j(c[1]+""+c[1]),g:j(c[2]+""+c[2]),b:j(c[3]+""+c[3]),format:g?"name":"hex"}:!1}function ne(o){var g,c;return o=o||{level:"AA",size:"small"},g=(o.level||"AA").toUpperCase(),c=(o.size||"small").toLowerCase(),g!=="AA"&&g!=="AAA"&&(g="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:g,size:c}}$e.exports?$e.exports=B:!(L=function(){return B}.call(Oe,n,Oe,$e),L!==void 0&&($e.exports=L))})(Math)},aWJQ:function($e,Oe,n){"use strict";n.r(Oe);var L=n("5NDa"),R=n("5rEg"),Ae=n("2qtc"),K=n("kLXV"),i=n("DjyN"),p=n("NUBc"),q=n("k1fw"),le=n("g9YV"),W=n("wCAj"),B=n("/zsF"),ae=n("PArb"),xe=n("+L6B"),he=n("2/Rp"),ce=n("9og8"),U=n("tJVT"),D=n("DZo9"),Y=n("8z0m"),O=n("Znn+"),y=n("ZTPi"),l=n("tU7J"),a=n("wFql"),v=n("WmNS"),s=n.n(v),z=n("q1tI"),H=n.n(z),x=n("xvlK"),S=n("9kvl"),h=n("ErOA"),V=n("wd/R"),G=n.n(V),ee=n("/W/m"),ge=n.n(ee),ie=n("ffu0"),k=a.a.Paragraph,F=y.a.TabPane,C=Y.a.Dragger,b=function(j){var A=j.dispatch,J=Object(z.useState)({limit:10,page:1,tab:"public"}),se=Object(U.a)(J,2),ye=se[0],Z=se[1],oe=Object(z.useState)([]),ue=Object(U.a)(oe,2),te=ue[0],$=ue[1],ne=Object(z.useState)(!1),o=Object(U.a)(ne,2),g=o[0],c=o[1],N=Object(z.useState)(),Q=Object(U.a)(N,2),re=Q[0],Me=Q[1],fe=Object(z.useState)(""),_e=Object(U.a)(fe,2),je=_e[0],me=_e[1];Object(z.useEffect)(function(){Ee()},[]);function Ee(){return Be.apply(this,arguments)}function Be(){return Be=Object(ce.a)(s.a.mark(function Xe(){var Ne;return s.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(h.a)("/api/sci/projects/data_sets.json",{method:"get",params:ye});case 2:Ne=P.sent,$(Ne);case 4:case"end":return P.stop()}},Xe)})),Be.apply(this,arguments)}function Ue(Xe){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(ce.a)(s.a.mark(function Xe(Ne){var _t,P,ve,Ce,we,Pe,Te;return s.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,Object(h.a)("/api/sci/projects/update_attachment.json",{method:"PUT",body:{md5:(Ne==null||((_t=Ne[0])===null||_t===void 0||((P=_t.item)===null||P===void 0))?void 0:P.md5)||(Ne==null||((ve=Ne[0])===null||ve===void 0)?void 0:ve.md5),filesize:(Ne==null||((Ce=Ne[0])===null||Ce===void 0||((we=Ce.item)===null||we===void 0))?void 0:we.size)||(Ne==null||((Pe=Ne[0])===null||Pe===void 0)?void 0:Pe.size),description:je}});case 2:Te=be.sent,(Te==null?void 0:Te.status)===0&&(c(!1),Ee(),me(""));case 4:case"end":return be.stop()}},Xe)})),Fe.apply(this,arguments)}return H.a.createElement("div",null,H.a.createElement("div",{className:ge.a.header},H.a.createElement("span",{className:ge.a.title},"\u516C\u5F00\u6570\u636E\u96C6\u5217\u8868"),H.a.createElement(he.a,{icon:H.a.createElement(x.a,null),type:"primary",onClick:function(){return c(!0)}},"\u521B\u5EFA\u6570\u636E\u96C6")),H.a.createElement(ae.a,null),H.a.createElement(W.a,{dataSource:te==null?void 0:te.data_sets,columns:[{title:"\u6587\u4EF6\u540D",dataIndex:"filename",key:"filename",ellipsis:!0,width:"20%"},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",ellipsis:!0,width:"40%"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",render:function(Ne){return G()(Ne).format("YYYY-MM-DD HH:mm")}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author"},{title:"\u5927\u5C0F",dataIndex:"filesize",key:"filesize"}],pagination:!1}),H.a.createElement(p.a,{style:{textAlign:"center",marginTop:20},current:ye.page,total:te==null?void 0:te.data_sets_count,pageSize:10,showSizeChanger:!1,hideOnSinglePage:!0,onChange:function(Ne){ye.page=Ne,Z(Object(q.a)({},ye)),Ee()}}),g&&H.a.createElement(K.a,{title:"\u521B\u5EFA\u6570\u636E\u96C6",visible:g,onCancel:function(){if(re<100){K.a.confirm({title:"\u63D0\u793A",content:"\u8FD8\u6709\u6587\u4EF6\u6682\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u53D6\u6D88",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Me(101),c(!1)}});return}me(""),c(!1)},okButtonProps:{loading:re<100},onOk:function(){Me(0)}},H.a.createElement("div",{className:ge.a.wrap},H.a.createElement("label",{style:{color:"red"}},"*"),H.a.createElement("span",null,"\u9009\u62E9\u6587\u4EF6")," ",H.a.createElement("span",null,"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100GB)"),H.a.createElement(ie.a,{setmd5List:Ue,uploading:re,setloading:Me,showmodal:g}),H.a.createElement("label",null,"\u5907\u6CE8\uFF1A"),H.a.createElement(R.a,{maxLength:100,value:je,onChange:function(Ne){me(Ne.target.value)},placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"}))))};Oe.default=Object(S.a)(function(I){var j=I.innovation;return{innovation:j}})(b)},aaBP:function($e,Oe,n){(function(L){if(!0)$e.exports=L();else var R})(function(L){"use strict";var R=function(O,y){return O+y&4294967295},Ae=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function K(O,y,l,a,v,s){return y=R(R(y,O),R(a,s)),R(y<>>32-v,l)}function i(O,y){var l=O[0],a=O[1],v=O[2],s=O[3];l+=(a&v|~a&s)+y[0]-680876936|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[1]-389564586|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[2]+606105819|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[3]-1044525330|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[4]-176418897|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[5]+1200080426|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[6]-1473231341|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[7]-45705983|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[8]+1770035416|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[9]-1958414417|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[10]-42063|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[11]-1990404162|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[12]+1804603682|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[13]-40341101|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[14]-1502002290|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[15]+1236535329|0,a=(a<<22|a>>>10)+v|0,l+=(a&s|v&~s)+y[1]-165796510|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[6]-1069501632|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[11]+643717713|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[0]-373897302|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[5]-701558691|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[10]+38016083|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[15]-660478335|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[4]-405537848|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[9]+568446438|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[14]-1019803690|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[3]-187363961|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[8]+1163531501|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[13]-1444681467|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[2]-51403784|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[7]+1735328473|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[12]-1926607734|0,a=(a<<20|a>>>12)+v|0,l+=(a^v^s)+y[5]-378558|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[8]-2022574463|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[11]+1839030562|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[14]-35309556|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[1]-1530992060|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[4]+1272893353|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[7]-155497632|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[10]-1094730640|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[13]+681279174|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[0]-358537222|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[3]-722521979|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[6]+76029189|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[9]-640364487|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[12]-421815835|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[15]+530742520|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[2]-995338651|0,a=(a<<23|a>>>9)+v|0,l+=(v^(a|~s))+y[0]-198630844|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[7]+1126891415|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[14]-1416354905|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[5]-57434055|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[12]+1700485571|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[3]-1894986606|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[10]-1051523|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[1]-2054922799|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[8]+1873313359|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[15]-30611744|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[6]-1560198380|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[13]+1309151649|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[4]-145523070|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[11]-1120210379|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[2]+718787259|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[9]-343485551|0,a=(a<<21|a>>>11)+v|0,O[0]=l+O[0]|0,O[1]=a+O[1]|0,O[2]=v+O[2]|0,O[3]=s+O[3]|0}function p(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O.charCodeAt(l)+(O.charCodeAt(l+1)<<8)+(O.charCodeAt(l+2)<<16)+(O.charCodeAt(l+3)<<24);return y}function q(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O[l]+(O[l+1]<<8)+(O[l+2]<<16)+(O[l+3]<<24);return y}function le(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,p(O.substring(a-64,a)));for(O=O.substring(a-64),v=O.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a>2]|=O.charCodeAt(a)<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function W(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,q(O.subarray(a-64,a)));for(O=a-64>2]|=O[a]<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function B(O){var y="",l;for(l=0;l<4;l+=1)y+=Ae[O>>l*8+4&15]+Ae[O>>l*8&15];return y}function ae(O){var y;for(y=0;y>16)+(y>>16)+(l>>16);return a<<16|l&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function O(y,l){return y=y|0||0,y<0?Math.max(y+l,0):Math.min(y,l)}ArrayBuffer.prototype.slice=function(y,l){var a=this.byteLength,v=O(y,a),s=a,z,H,x,S;return l!==L&&(s=O(l,a)),v>s?new ArrayBuffer(0):(z=s-v,H=new ArrayBuffer(z),x=new Uint8Array(H),S=new Uint8Array(this,v,z),x.set(S),H)}}();function xe(O){return/[\u0080-\uFFFF]/.test(O)&&(O=unescape(encodeURIComponent(O))),O}function he(O,y){var l=O.length,a=new ArrayBuffer(l),v=new Uint8Array(a),s;for(s=0;s>2]|=y.charCodeAt(a)<<(a%4<<3);return this._finish(v,l),s=ae(this._hash),O&&(s=D(s)),this.reset(),s},Y.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Y.prototype.setState=function(O){return this._buff=O.buff,this._length=O.length,this._hash=O.hash,this},Y.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Y.prototype._finish=function(O,y){var l=y,a,v,s;if(O[l>>2]|=128<<(l%4<<3),l>55)for(i(this._hash,O),l=0;l<16;l+=1)O[l]=0;a=this._length*8,a=a.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(a[2],16),s=parseInt(a[1],16)||0,O[14]=v,O[15]=s,i(this._hash,O)},Y.hash=function(O,y){return Y.hashBinary(xe(O),y)},Y.hashBinary=function(O,y){var l=le(O),a=ae(l);return y?D(a):a},Y.ArrayBuffer=function(){this.reset()},Y.ArrayBuffer.prototype.append=function(O){var y=U(this._buff.buffer,O,!0),l=y.length,a;for(this._length+=O.byteLength,a=64;a<=l;a+=64)i(this._hash,q(y.subarray(a-64,a)));return this._buff=a-64>2]|=y[v]<<(v%4<<3);return this._finish(a,l),s=ae(this._hash),O&&(s=D(s)),this.reset(),s},Y.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.ArrayBuffer.prototype.getState=function(){var O=Y.prototype.getState.call(this);return O.buff=ce(O.buff),O},Y.ArrayBuffer.prototype.setState=function(O){return O.buff=he(O.buff,!0),Y.prototype.setState.call(this,O)},Y.ArrayBuffer.prototype.destroy=Y.prototype.destroy,Y.ArrayBuffer.prototype._finish=Y.prototype._finish,Y.ArrayBuffer.hash=function(O,y){var l=W(new Uint8Array(O)),a=ae(l);return y?D(a):a},Y})},bT9E:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return R});var L=n("VTBJ");function R(Ae,K){var i=Object(L.a)({},Ae);return Array.isArray(K)&&K.forEach(function(p){delete i[p]}),i}},biw7:function($e,Oe,n){"use strict";var L=n("q1tI"),R=n.n(L),Ae=L.createContext(null);Oe.a=Ae},ffu0:function($e,Oe,n){"use strict";var L=n("0Owb"),R=n("tJVT"),Ae=n("miYZ"),K=n("tsqr"),i=n("oBTY"),p=n("9og8"),q=n("PpiC"),le=n("DZo9"),W=n("8z0m"),B=n("WmNS"),ae=n.n(B),xe=n("q1tI"),he=n.n(xe),ce=n("ErOA"),U=n("9kvl"),D=n("/jad"),Y=n.n(D),O=n("aaBP"),y=n.n(O),l=W.a.Dragger,a=15*1024*1024,v=function(z){var H=z.dispatch,x=z.user,S=z.setloading,h=z.uploading,V=z.setmd5List,G=z.content,ee=z.shixunHomeworks,ge=z.globalSetting,ie=Object(q.a)(z,["dispatch","user","setloading","uploading","setmd5List","content","shixunHomeworks","globalSetting"]);Object(xe.useEffect)(function(){ee.actionTabs.key==="\u5206\u7247\u4E13\u7528504"&&(H({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),fe());function fe(){return _e.apply(this,arguments)}function _e(){return _e=Object(p.a)(ae.a.mark(function je(){var me,Ee;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(ce.a)((ge==null||((me=ge.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/filePatchMerge",{method:"post",body:ee.actionTabs.params},!0,!0);case 2:Ee=Ue.sent,Ee.errorCode==="000000"&&(C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),S(100),K.b.info("\u4E0A\u4F20\u6210\u529F"),V(Ee==null?void 0:Ee.data));case 4:case"end":return Ue.stop()}},je)})),_e.apply(this,arguments)}},[ee.actionTabs.key]);var k=Object(xe.useState)([]),F=Object(R.a)(k,2),C=F[0],b=F[1],I=Object(xe.useState)(0),j=Object(R.a)(I,2),A=j[0],J=j[1],se=Object(xe.useState)(!1),ye=Object(R.a)(se,2),Z=ye[0],oe=ye[1],ue={onRemove:function(_e){b(Object(i.a)(C.filter(function(je){return je.name!==_e.name})))},multiple:!0,fileList:C==null?void 0:C.map(function(fe){return fe.file}),customRequest:function(){},beforeUpload:function(){var fe=Object(p.a)(ae.a.mark(function je(me){var Ee;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(Ee=100*1024*1024*1024,!C.filter(function(Fe){return Fe.name===me.name}).length){Ue.next=4;break}return K.b.info("".concat(me.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),Ue.abrupt("return");case 4:if(!((me==null?void 0:me.size)>Ee)){Ue.next=7;break}return K.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Ee/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),Ue.abrupt("return",!1);case 7:return b([{name:me.name,file:me}]),Ue.abrupt("return",!1);case 9:case"end":return Ue.stop()}},je)}));function _e(je){return fe.apply(this,arguments)}return _e}()};Object(xe.useEffect)(function(){if(h===0){var fe;if(J(0),oe(!1),(C==null?void 0:C.length)<=0){K.b.info("\u6587\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"),S(101);return}te(C==null||((fe=C[0])===null||fe===void 0)?void 0:fe.file,x.userInfo.login)}},[h]);function te(fe,_e){return $.apply(this,arguments)}function $(){return $=Object(p.a)(ae.a.mark(function fe(_e,je){var me,Ee,Be,Ue,Fe,Xe,Ne;return ae.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return Xe=g(_e),P.next=3,Object(ce.a)((ge==null||((me=ge.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/fileExists",{method:"get",params:{md5:Xe,size:_e.size,dirName:je}},!1,!0);case 3:if(Ne=P.sent,!((Ne==null||((Ee=Ne.data)===null||Ee===void 0)?void 0:Ee.length)>0&&(Ne==null||((Be=Ne.data)===null||Be===void 0||((Ue=Be[0])===null||Ue===void 0))?void 0:Ue.type)===1)){P.next=11;break}return S(100),C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),K.b.info("\u4E0A\u4F20\u6210\u529F"),V(Ne==null?void 0:Ne.data),P.abrupt("return");case 11:if(!(Ne.data.length>0&&Ne.data[0].type===0)){P.next=14;break}return c(Ne.data[0].id,_e,je),P.abrupt("return");case 14:(Ne==null||((Fe=Ne.data)===null||Fe===void 0)?void 0:Fe.length)<=0&&ne(Xe,_e,je);case 15:case"end":return P.stop()}},fe)})),$.apply(this,arguments)}function ne(fe,_e,je){return o.apply(this,arguments)}function o(){return o=Object(p.a)(ae.a.mark(function fe(_e,je,me){var Ee,Be,Ue,Fe,Xe;return ae.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(ce.a)((ge==null||((Ee=ge.setting)===null||Ee===void 0)?void 0:Ee.bigfiles_upload)+"/file/newFile",{method:"post",body:{name:je.name,md5:_e,size:1,oldName:je.name,dirName:me}},!1,!0);case 2:Ue=_t.sent,(Ue==null||((Be=Ue.data)===null||Be===void 0)?void 0:Be.length)>0&&c(Ue==null||((Fe=Ue.data)===null||Fe===void 0||((Xe=Fe[0])===null||Xe===void 0))?void 0:Xe.id,je,me);case 4:case"end":return _t.stop()}},fe)})),o.apply(this,arguments)}function g(fe){var _e=new y.a;if(!fe.size)return _e.appendBinary(fe),_e.end();if(fe.size<2048)for(var je=Math.ceil(fe.size/2),me=0;me2048)for(var je=Math.ceil(fe.size/2e3),me=0;mek.length)&&(F=k.length);for(var C=0,b=new Array(F);C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,b))continue;C[b]=k[b]}}return C}function U(k,F){if(k==null)return{};var C={},b=Object.keys(k),I,j;for(j=0;j=0)continue;C[I]=k[I]}return C}var D=function(F){var C=F.className,b=F.percent,I=F.prefixCls,j=F.strokeColor,A=F.strokeLinecap,J=F.strokeWidth,se=F.style,ye=F.trailColor,Z=F.trailWidth,oe=F.transition,ue=ce(F,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ue.gapPosition;var te=Array.isArray(b)?b:[b],$=Array.isArray(j)?j:[j],ne=p(te),o=le(ne,1),g=o[0],c=J/2,N=100-J/2,Q="M ".concat(A==="round"?c:0,",").concat(c,` + L `).concat(A==="round"?N:100,",").concat(c),re="0 0 100 ".concat(J),Me=0;return R.a.createElement("svg",q({className:K()("".concat(I,"-line"),C),viewBox:re,preserveAspectRatio:"none",style:se},ue),R.a.createElement("path",{className:"".concat(I,"-line-trail"),d:Q,strokeLinecap:A,stroke:ye,strokeWidth:Z||J,fillOpacity:"0"}),te.map(function(fe,_e){var je={strokeDasharray:"".concat(fe,"px, 100px"),strokeDashoffset:"-".concat(Me,"px"),transition:oe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},me=$[_e]||$[$.length-1];return Me+=fe,R.a.createElement("path",{key:_e,className:"".concat(I,"-line-path"),d:Q,strokeLinecap:A,stroke:me,strokeWidth:J,fillOpacity:"0",ref:g[_e],style:je})}))};D.defaultProps=i;var Y=D;function O(){return O=Object.assign||function(k){for(var F=1;Fk.length)&&(F=k.length);for(var C=0,b=new Array(F);C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,b))continue;C[b]=k[b]}}return C}function x(k,F){if(k==null)return{};var C={},b=Object.keys(k),I,j;for(j=0;j=0)continue;C[I]=k[I]}return C}var S=0;function h(k){return+k.replace("%","")}function V(k){return Array.isArray(k)?k:[k]}function G(k,F,C,b){var I=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,j=arguments.length>5?arguments[5]:void 0,A=50-b/2,J=0,se=-A,ye=0,Z=-2*A;switch(j){case"left":J=-A,se=0,ye=2*A,Z=0;break;case"right":J=A,se=0,ye=-2*A,Z=0;break;case"bottom":se=A,Z=2*A;break;default:}var oe="M 50,50 m ".concat(J,",").concat(se,` a `).concat(A,",").concat(A," 0 1 1 ").concat(ye,",").concat(-Z,` - a `).concat(A,",").concat(A," 0 1 1 ").concat(-ye,",").concat(Z),ue=Math.PI*2*A,te={stroke:C,strokeDasharray:"".concat(F/100*(ue-I),"px ").concat(ue,"px"),strokeDashoffset:"-".concat(I/2+k/100*(ue-I),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:oe,pathStyle:te}}var ee=function(F){var C=F.prefixCls,b=F.strokeWidth,I=F.trailWidth,j=F.gapDegree,A=F.gapPosition,J=F.trailColor,se=F.strokeLinecap,ye=F.style,Z=F.className,oe=F.strokeColor,ue=F.percent,te=H(F,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),$=Object(L.useMemo)(function(){return S+=1,S},[]),ne=G(0,100,J,b,j,A),o=ne.pathString,g=ne.pathStyle,c=V(ue),N=V(oe),Q=N.find(function(je){return Object.prototype.toString.call(je)==="[object Object]"}),re=p(c),Me=y(re,1),fe=Me[0],_e=function(){var me=0;return c.map(function(Ee,Be){var Ue=N[Be]||N[N.length-1],Fe=Object.prototype.toString.call(Ue)==="[object Object]"?"url(#".concat(C,"-gradient-").concat($,")"):"",Xe=G(me,Ee,Ue,b,j,A);return me+=Ee,R.a.createElement("path",{key:Be,className:"".concat(C,"-circle-path"),d:Xe.pathString,stroke:Fe,strokeLinecap:se,strokeWidth:b,opacity:Ee===0?0:1,fillOpacity:"0",style:Xe.pathStyle,ref:fe[Be]})})};return R.a.createElement("svg",O({className:K()("".concat(C,"-circle"),Z),viewBox:"0 0 100 100",style:ye},te),Q&&R.a.createElement("defs",null,R.a.createElement("linearGradient",{id:"".concat(C,"-gradient-").concat($),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Q).sort(function(je,me){return h(je)-h(me)}).map(function(je,me){return R.a.createElement("stop",{key:me,offset:je,stopColor:Q[je]})}))),R.a.createElement("path",{className:"".concat(C,"-circle-trail"),d:o,stroke:J,strokeLinecap:se,strokeWidth:I||b,fillOpacity:"0",style:g}),_e().reverse())};ee.defaultProps=i;var ge=ee,ie={Line:Y,Circle:ge}},hW8S:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return K}),n.d(Oe,"c",function(){return i}),n.d(Oe,"b",function(){return p});var L=n("VTBJ"),R=n("Ff2n"),Ae=n("Kwbf"),K="RC_TABLE_INTERNAL_COL_DEFINE";function i(q){var le=q.expandable,W=Object(R.a)(q,["expandable"]);return"expandable"in q?Object(L.a)(Object(L.a)({},W),le):W}function p(q){return Object.keys(q).reduce(function(le,W){return(W.substr(0,5)==="data-"||W.substr(0,5)==="aria-")&&(le[W]=q[W]),le},{})}},k3GJ:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return mo});var L=n("rePB"),R=n("ODXe"),Ae=n("Ff2n"),K=n("VTBJ"),i=n("q1tI"),p=n("TSYQ"),q=n.n(p),le=n("Zm9Q"),W=n("6cGi"),B=n("KQm4"),ae=n("xEkU"),xe=n.n(ae),he=n("t23M");function ce(u){var E=Object(i.useRef)(),M=Object(i.useRef)(!1);function f(){for(var e=arguments.length,r=new Array(e),t=0;tD&&(de=D-pe),Object(i.useMemo)(function(){if(!r.length)return[0,0];for(var Se=r.length,Ve=Se,tt=0;tt_+de){Ve=tt-1;break}}for(var at=0,nt=Se-1;nt>=0;nt-=1){var Qe=u.get(r[nt].key)||a;if(Qe[T]<_){at=nt+1;break}}return[at,Ve]},[u,_,de,t,r.map(function(Se){return Se.key}).join("_"),d])}var s=n("wx14"),z=n("1OyB"),H=n("vuIU"),x=n("JX7q"),S=n("Ji7U"),h=n("LK+K"),V=n("I8Z2"),G=n("bT9E"),ee=n("2GS6"),ge=n("Gytx"),ie=n.n(ge),k=n("U8pU"),F=/iPhone/i,C=/iPod/i,b=/iPad/i,I=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,J=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,se=/Windows Phone/i,ye=/\bWindows(?:.+)ARM\b/i,Z=/BlackBerry/i,oe=/BB10/i,ue=/Opera Mini/i,te=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function ne(u,E){return u.test(E)}function o(u){var E=u||(typeof navigator!="undefined"?navigator.userAgent:""),M=(E||"").split("[FBAN");if(typeof M[1]!="undefined"){var f=M,e=Object(R.a)(f,1);E=e[0]}if(M=E.split("Twitter"),typeof M[1]!="undefined"){var r=M,t=Object(R.a)(r,1);E=t[0]}var d={apple:{phone:ne(F,E)&&!ne(se,E),ipod:ne(C,E),tablet:!ne(F,E)&&ne(b,E)&&!ne(se,E),device:(ne(F,E)||ne(C,E)||ne(b,E))&&!ne(se,E)},amazon:{phone:ne(A,E),tablet:!ne(A,E)&&ne(J,E),device:ne(A,E)||ne(J,E)},android:{phone:!ne(se,E)&&ne(A,E)||!ne(se,E)&&ne(I,E),tablet:!ne(se,E)&&!ne(A,E)&&!ne(I,E)&&(ne(J,E)||ne(j,E)),device:!ne(se,E)&&(ne(A,E)||ne(J,E)||ne(I,E)||ne(j,E))||ne(/\bokhttp\b/i,E)},windows:{phone:ne(se,E),tablet:ne(ye,E),device:ne(se,E)||ne(ye,E)},other:{blackberry:ne(Z,E),blackberry10:ne(oe,E),opera:ne(ue,E),firefox:ne($,E),chrome:ne(te,E),device:ne(Z,E)||ne(oe,E)||ne(ue,E)||ne($,E)||ne(te,E)},any:null,phone:null,tablet:null};return d.any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet,d}var g=Object(K.a)(Object(K.a)({},o()),{},{isMobile:o}),c=g;function N(){}function Q(u,E,M){var f=E||"";return u.key||"".concat(f,"item_").concat(M)}function re(u){return"".concat(u,"-menu-")}function Me(u,E){var M=-1;i.Children.forEach(u,function(f){M+=1,f&&f.type&&f.type.isMenuItemGroup?i.Children.forEach(f.props.children,function(e){M+=1,E(e,M)}):E(f,M)})}function fe(u,E,M){if(!u||M.find)return;i.Children.forEach(u,function(f){if(f){var e=f.type;if(!e||!(e.isSubMenu||e.isMenuItem||e.isMenuItemGroup))return;E.indexOf(f.key)!==-1?M.find=!0:f.props.children&&fe(f.props.children,E,M)}})}var _e=["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"],je=function(E){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=E&&typeof E.getBoundingClientRect=="function"&&E.getBoundingClientRect().width;if(f){if(M){var e=getComputedStyle(E),r=e.marginLeft,t=e.marginRight;f+=+r.replace("px","")+ +t.replace("px","")}f=+f.toFixed(6)}return f||0},me=function(E,M,f){E&&Object(k.a)(E.style)==="object"&&(E.style[M]=f)},Ee=function(){return c.any},Be=n("bdgK"),Ue=n("i8i4"),Fe=n.n(Ue),Xe=n("wgJM"),Ne=n("l4aY"),_t=n("m+aA"),P=n("c+Xe"),ve=n("zT1h"),Ce=n("QC+M");function De(u,E,M){return M?u[0]===E[0]:u[0]===E[0]&&u[1]===E[1]}function Pe(u,E,M){var f=u[E]||{};return Object(K.a)(Object(K.a)({},f),M)}function Te(u,E,M,f){for(var e=M.points,r=Object.keys(u),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;E();var r=Object(Xe.a)(function(){e<=1?f({isCanceled:function(){return r!==u.current}}):M(f,e-1)});u.current=r}return i.useEffect(function(){return function(){E()}},[]),[M,E]},Pn=[jt,xt,ht,et],Nn=!1,Fn=!0;function rn(u){return u===ht||u===et}var hn=function(u,E){var M=i.useState(Ht),f=Object(R.a)(M,2),e=f[0],r=f[1],t=St(),d=Object(R.a)(t,2),m=d[0],T=d[1];function _(){r(jt)}return Xt(function(){if(e!==Ht&&e!==et){var D=Pn.indexOf(e),X=Pn[D+1],pe=E(e);pe===Nn?r(X):m(function(de){function Se(){if(de.isCanceled())return;r(X)}pe===!0?Se():Promise.resolve(pe).then(Se)})}},[u,e]),i.useEffect(function(){return function(){T()}},[]),[_,e]},On=function(u){var E=Object(i.useRef)(),M=Object(i.useRef)(u);M.current=u;var f=i.useCallback(function(t){M.current(t)},[]);function e(t){t&&(t.removeEventListener(Ft,f),t.removeEventListener(Je,f))}function r(t){E.current&&E.current!==t&&e(E.current),t&&t!==E.current&&(t.addEventListener(Ft,f),t.addEventListener(Je,f),E.current=t)}return i.useEffect(function(){return function(){e(E.current)}},[]),[r,e]};function xn(u,E,M,f){var e=f.motionEnter,r=e===void 0?!0:e,t=f.motionAppear,d=t===void 0?!0:t,m=f.motionLeave,T=m===void 0?!0:m,_=f.motionDeadline,D=f.motionLeaveImmediately,X=f.onAppearPrepare,pe=f.onEnterPrepare,de=f.onLeavePrepare,Se=f.onAppearStart,Ve=f.onEnterStart,tt=f.onLeaveStart,Ye=f.onAppearActive,at=f.onEnterActive,nt=f.onLeaveActive,Qe=f.onAppearEnd,Ze=f.onEnterEnd,dt=f.onLeaveEnd,ot=f.onVisibleChanged,Lt=wt(),gt=Object(R.a)(Lt,2),We=gt[0],ze=gt[1],rt=wt(Ot),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=wt(null),pt=Object(R.a)(Tt,2),Ct=pt[0],Dt=pt[1],$t=Object(i.useRef)(!1),an=Object(i.useRef)(null),Ut=Object(i.useRef)(!1),on=Object(i.useRef)(null);function gn(){var Rt=M();return Rt||on.current}var ln=Object(i.useRef)(!1);function un(Rt){var bt=gn();if(Rt&&!Rt.deadline&&Rt.target!==bt)return;var Yt;ke===kt&&ln.current?Yt=Qe==null?void 0:Qe(bt,Rt):ke===Kt&&ln.current?Yt=Ze==null?void 0:Ze(bt,Rt):ke===mt&&ln.current&&(Yt=dt==null?void 0:dt(bt,Rt)),Yt!==!1&&!Ut.current&&(ft(Ot),Dt(null))}var It=On(un),qt=Object(R.a)(It,1),Gt=qt[0],Wt=i.useMemo(function(){var Rt,bt,Yt;switch(ke){case"appear":return Rt={},Object(L.a)(Rt,jt,X),Object(L.a)(Rt,xt,Se),Object(L.a)(Rt,ht,Ye),Rt;case"enter":return bt={},Object(L.a)(bt,jt,pe),Object(L.a)(bt,xt,Ve),Object(L.a)(bt,ht,at),bt;case"leave":return Yt={},Object(L.a)(Yt,jt,de),Object(L.a)(Yt,xt,tt),Object(L.a)(Yt,ht,nt),Yt;default:return{}}},[ke]),An=hn(ke,function(Rt){if(Rt===jt){var bt=Wt[jt];return bt?bt(gn()):Nn}if(Mt in Wt){var Yt;Dt(((Yt=Wt[Mt])===null||Yt===void 0?void 0:Yt.call(Wt,gn(),null))||null)}return Mt===ht&&(Gt(gn()),_>0&&(clearTimeout(an.current),an.current=setTimeout(function(){un({deadline:!0})},_))),Fn}),wn=Object(R.a)(An,2),Wn=wn[0],Mt=wn[1],Cn=rn(Mt);ln.current=Cn,Xt(function(){ze(E);var Rt=$t.current;if($t.current=!0,!u)return;var bt;!Rt&&E&&d&&(bt=kt),Rt&&E&&r&&(bt=Kt),(Rt&&!E&&T||!Rt&&D&&!E&&T)&&(bt=mt),bt&&(ft(bt),Wn())},[E]),Object(i.useEffect)(function(){(ke===kt&&!d||ke===Kt&&!r||ke===mt&&!T)&&ft(Ot)},[d,r,T]),Object(i.useEffect)(function(){return function(){clearTimeout(an.current),Ut.current=!0}},[]),Object(i.useEffect)(function(){We!==void 0&&ke===Ot&&(ot==null||ot(We))},[We,ke]);var Bn=Ct;return Wt[jt]&&Mt===xt&&(Bn=Object(K.a)({transition:"none"},Bn)),[ke,Mt,Bn,We!=null?We:E]}var Hn=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){return Object(z.a)(this,M),E.apply(this,arguments)}return Object(H.a)(M,[{key:"render",value:function(){return this.props.children}}]),M}(i.Component),en=Hn;function Ln(u){var E=u;Object(k.a)(u)==="object"&&(E=u.transitionSupport);function M(e){return!!(e.motionName&&E)}var f=i.forwardRef(function(e,r){var t=e.visible,d=t===void 0?!0:t,m=e.removeOnLeave,T=m===void 0?!0:m,_=e.forceRender,D=e.children,X=e.motionName,pe=e.leavedClassName,de=e.eventProps,Se=M(e),Ve=Object(i.useRef)(),tt=Object(i.useRef)();function Ye(){try{return Object(_t.a)(Ve.current||tt.current)}catch(ft){return null}}var at=xn(Se,d,Ye,e),nt=Object(R.a)(at,4),Qe=nt[0],Ze=nt[1],dt=nt[2],ot=nt[3],Lt=i.useRef(ot);ot&&(Lt.current=!0);var gt=Object(i.useRef)(r);gt.current=r;var We=i.useCallback(function(ft){Ve.current=ft,Object(P.b)(gt.current,ft)},[]),ze,rt=Object(K.a)(Object(K.a)({},de),{},{visible:d});if(!D)ze=null;else if(Qe===Ot||!M(e))ot?ze=D(Object(K.a)({},rt),We):!T&&Lt.current?ze=D(Object(K.a)(Object(K.a)({},rt),{},{className:pe}),We):_?ze=D(Object(K.a)(Object(K.a)({},rt),{},{style:{display:"none"}}),We):ze=null;else{var st,ke;Ze===jt?ke="prepare":rn(Ze)?ke="active":Ze===xt&&(ke="start"),ze=D(Object(K.a)(Object(K.a)({},rt),{},{className:q()(At(X,Qe),(st={},Object(L.a)(st,At(X,"".concat(Qe,"-").concat(ke)),ke),Object(L.a)(st,X,typeof X=="string"),st)),style:dt}),We)}return i.createElement(en,{ref:tt},ze)});return f.displayName="CSSMotion",f}var yn=Ln(vt),kn="add",_n="keep",vn="remove",jn="removed";function Vn(u){var E;return u&&Object(k.a)(u)==="object"&&"key"in u?E=u:E={key:u},Object(K.a)(Object(K.a)({},E),{},{key:String(E.key)})}function Mn(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return u.map(Vn)}function zt(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=[],f=0,e=E.length,r=Mn(u),t=Mn(E);r.forEach(function(T){for(var _=!1,D=f;D1});return m.forEach(function(T){M=M.filter(function(_){var D=_.key,X=_.status;return D!==T||X!==vn}),M.forEach(function(_){_.key===T&&(_.status=_n)})}),M}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(u){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yn,M=function(f){Object(S.a)(r,f);var e=Object(h.a)(r);function r(){var t;return Object(z.a)(this,r),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(d){t.setState(function(m){var T=m.keyEntities;return{keyEntities:T.map(function(_){return _.key!==d?_:Object(K.a)(Object(K.a)({},_),{},{status:jn})})}})},t}return Object(H.a)(r,[{key:"render",value:function(){var d=this,m=this.state.keyEntities,T=this.props,_=T.component,D=T.children,X=T.onVisibleChanged,pe=Object(Ae.a)(T,["component","children","onVisibleChanged"]),de=_||i.Fragment,Se={};return Zt.forEach(function(Ve){Se[Ve]=pe[Ve],delete pe[Ve]}),delete pe.keys,i.createElement(de,pe,m.map(function(Ve){var tt=Ve.status,Ye=Object(Ae.a)(Ve,["status"]),at=tt===kn||tt===_n;return i.createElement(E,Object(s.a)({},Se,{key:Ye.key,visible:at,eventProps:Ye,onVisibleChanged:function(Qe){X==null||X(Qe,{key:Ye.key}),Qe||d.removeKey(Ye.key)}}),D)}))}}],[{key:"getDerivedStateFromProps",value:function(d,m){var T=d.keys,_=m.keyEntities,D=Mn(T),X=zt(_,D);return{keyEntities:X.filter(function(pe){var de=_.find(function(Se){var Ve=Se.key;return pe.key===Ve});return!(de&&de.status===jn&&pe.status===vn)})}}}]),r}(i.Component);return M.defaultProps={component:"div"},M}var Jt=sn(vt),tn=yn;function dn(u){var E=u.prefixCls,M=u.motion,f=u.animation,e=u.transitionName;return M||(f?{motionName:"".concat(E,"-").concat(f)}:e?{motionName:e}:null)}function Xn(u){var E=u.prefixCls,M=u.visible,f=u.zIndex,e=u.mask,r=u.maskMotion,t=u.maskAnimation,d=u.maskTransitionName;if(!e)return null;var m={};return(r||d||t)&&(m=Object(K.a)({motionAppear:!0},dn({motion:r,prefixCls:E,transitionName:d,animation:t}))),i.createElement(tn,Object(s.a)({},m,{visible:M,removeOnLeave:!0}),function(T){var _=T.className;return i.createElement("div",{style:{zIndex:f},className:q()("".concat(E,"-mask"),_)})})}var Un=n("9mu1"),$n=n("o0o1"),Ma=n.n($n),Sa=n("HaE+"),Gn=["measure","align",null,"motion"],Pt=function(u,E){var M=Object(i.useState)(null),f=Object(R.a)(M,2),e=f[0],r=f[1],t=Object(i.useRef)(),d=Object(i.useRef)(!1);function m(D){d.current||r(D)}function T(){Xe.a.cancel(t.current)}function _(D){T(),t.current=Object(Xe.a)(function(){m(function(X){switch(e){case"align":return"motion";case"motion":return"stable";default:}return X}),D==null||D()})}return Object(i.useEffect)(function(){m("measure")},[u]),Object(i.useEffect)(function(){switch(e){case"measure":E();break;default:}e&&(t.current=Object(Xe.a)(Object(Sa.a)(Ma.a.mark(function D(){var X,pe;return Ma.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:X=Gn.indexOf(e),pe=Gn[X+1],pe&&X!==-1&&m(pe);case 3:case"end":return Se.stop()}},D)}))))},[e]),Object(i.useEffect)(function(){return function(){d.current=!0,T()}},[]),[e,_]},Yn=function(u){var E=i.useState({width:0,height:0}),M=Object(R.a)(E,2),f=M[0],e=M[1];function r(d){e({width:d.offsetWidth,height:d.offsetHeight})}var t=i.useMemo(function(){var d={};if(u){var m=f.width,T=f.height;u.indexOf("height")!==-1&&T?d.height=T:u.indexOf("minHeight")!==-1&&T&&(d.minHeight=T),u.indexOf("width")!==-1&&m?d.width=m:u.indexOf("minWidth")!==-1&&m&&(d.minWidth=m)}return d},[u,f]);return[t,r]},Jn=i.forwardRef(function(u,E){var M=u.visible,f=u.prefixCls,e=u.className,r=u.style,t=u.children,d=u.zIndex,m=u.stretch,T=u.destroyPopupOnHide,_=u.forceRender,D=u.align,X=u.point,pe=u.getRootDomNode,de=u.getClassNameFromAlign,Se=u.onAlign,Ve=u.onMouseEnter,tt=u.onMouseLeave,Ye=u.onMouseDown,at=u.onTouchStart,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useState)(),dt=Object(R.a)(Ze,2),ot=dt[0],Lt=dt[1],gt=Yn(m),We=Object(R.a)(gt,2),ze=We[0],rt=We[1];function st(){m&&rt(pe())}var ke=Pt(M,st),ft=Object(R.a)(ke,2),Tt=ft[0],pt=ft[1],Ct=Object(i.useRef)();function Dt(){return X||pe}function $t(){var It;(It=nt.current)===null||It===void 0||It.forceAlign()}function an(It,qt){var Gt=de(qt);ot!==Gt&&Lt(Gt),Tt==="align"&&(ot!==Gt?Promise.resolve().then(function(){$t()}):pt(function(){var Wt;(Wt=Ct.current)===null||Wt===void 0||Wt.call(Ct)}),Se==null||Se(It,qt))}var Ut=Object(K.a)({},dn(u));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(It){var qt=Ut[It];Ut[It]=function(Gt,Wt){return pt(),qt==null?void 0:qt(Gt,Wt)}});function on(){return new Promise(function(It){Ct.current=It})}i.useEffect(function(){!Ut.motionName&&Tt==="motion"&&pt()},[Ut.motionName,Tt]),i.useImperativeHandle(E,function(){return{forceAlign:$t,getElement:function(){return Qe.current}}});var gn=Object(K.a)(Object(K.a)({},ze),{},{zIndex:d,opacity:Tt==="motion"||Tt==="stable"||!M?void 0:0,pointerEvents:Tt==="stable"?void 0:"none"},r),ln=!0;(D==null?void 0:D.points)&&(Tt==="align"||Tt==="stable")&&(ln=!1);var un=t;return i.Children.count(t)>1&&(un=i.createElement("div",{className:"".concat(f,"-content")},t)),i.createElement(tn,Object(s.a)({visible:M,ref:Qe,leavedClassName:"".concat(f,"-hidden")},Ut,{onAppearPrepare:on,onEnterPrepare:on,removeOnLeave:T,forceRender:_}),function(It,qt){var Gt=It.className,Wt=It.style,An=q()(f,e,ot,Gt);return i.createElement(Un.a,{target:Dt(),key:"popup",ref:nt,monitorWindowResize:!0,disabled:ln,align:D,onAlign:an},i.createElement("div",{ref:qt,className:An,onMouseEnter:Ve,onMouseLeave:tt,onMouseDownCapture:Ye,onTouchStartCapture:at,style:Object(K.a)(Object(K.a)({},Wt),gn)},un))})});Jn.displayName="PopupInner";var Ta=Jn,fn=i.forwardRef(function(u,E){var M=u.prefixCls,f=u.visible,e=u.zIndex,r=u.children,t=u.mobile;t=t===void 0?{}:t;var d=t.popupClassName,m=t.popupStyle,T=t.popupMotion,_=T===void 0?{}:T,D=t.popupRender,X=i.useRef();i.useImperativeHandle(E,function(){return{forceAlign:function(){},getElement:function(){return X.current}}});var pe=Object(K.a)({zIndex:e},m),de=r;return i.Children.count(r)>1&&(de=i.createElement("div",{className:"".concat(M,"-content")},r)),D&&(de=D(de)),i.createElement(tn,Object(s.a)({visible:f,ref:X,removeOnLeave:!0},_),function(Se,Ve){var tt=Se.className,Ye=Se.style,at=q()(M,d,tt);return i.createElement("div",{ref:Ve,className:at,style:Object(K.a)(Object(K.a)({},Ye),pe)},de)})});fn.displayName="MobilePopupInner";var Ha=fn,Ra=["visible","mobile"],oa=i.forwardRef(function(u,E){var M=u.visible,f=u.mobile,e=Object(Ae.a)(u,Ra),r=Object(i.useState)(M),t=Object(R.a)(r,2),d=t[0],m=t[1],T=Object(i.useState)(!1),_=Object(R.a)(T,2),D=_[0],X=_[1],pe=Object(K.a)(Object(K.a)({},e),{},{visible:d});Object(i.useEffect)(function(){m(M),M&&f&&X(Re())},[M,f]);var de=D?i.createElement(Ha,Object(s.a)({},pe,{mobile:f,ref:E})):i.createElement(Ta,Object(s.a)({},pe,{ref:E}));return i.createElement("div",null,i.createElement(Xn,pe),de)});oa.displayName="Popup";var Va=oa,Xa=i.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(u){return u?u.ownerDocument:window.document}var Aa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(u){var E=function(M){Object(S.a)(e,M);var f=Object(h.a)(e);function e(r){var t;Object(z.a)(this,e),t=f.call(this,r),t.popupRef=i.createRef(),t.triggerRef=i.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(m){var T=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",m),t.delaySetPopupVisible(!0,T,T?null:m)},t.onMouseMove=function(m){t.fireEvents("onMouseMove",m),t.setPoint(m)},t.onMouseLeave=function(m){t.fireEvents("onMouseLeave",m),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(m){var T;if(m.relatedTarget&&!m.relatedTarget.setTimeout&&Object(Ne.a)((T=t.popupRef.current)===null||T===void 0?void 0:T.getElement(),m.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(m){t.fireEvents("onFocus",m),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(m){t.fireEvents("onMouseDown",m),t.preClickTime=Date.now()},t.onTouchStart=function(m){t.fireEvents("onTouchStart",m),t.preTouchTime=Date.now()},t.onBlur=function(m){t.fireEvents("onBlur",m),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(m){m.preventDefault(),t.fireEvents("onContextMenu",m),t.setPopupVisible(!0,m)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(m){if(t.fireEvents("onClick",m),t.focusTime){var T;if(t.preClickTime&&t.preTouchTime?T=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?T=t.preClickTime:t.preTouchTime&&(T=t.preTouchTime),Math.abs(T-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&m&&m.preventDefault&&m.preventDefault();var _=!t.state.popupVisible;(t.isClickToHide()&&!_||_&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,m)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var m;(m=t.context).onPopupMouseDown.apply(m,arguments)}},t.onDocumentClick=function(m){if(t.props.mask&&!t.props.maskClosable)return;var T=m.target,_=t.getRootDomNode(),D=t.getPopupDomNode();(!Object(Ne.a)(_,T)||t.isContextMenuOnly())&&!Object(Ne.a)(D,T)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var m=t.props.getTriggerDOMNode;if(m)return m(t.triggerRef.current);try{var T=Object(_t.a)(t.triggerRef.current);if(T)return T}catch(_){}return Fe.a.findDOMNode(Object(x.a)(t))},t.getPopupClassNameFromAlign=function(m){var T=[],_=t.props,D=_.popupPlacement,X=_.builtinPlacements,pe=_.prefixCls,de=_.alignPoint,Se=_.getPopupClassNameFromAlign;return D&&X&&T.push(Te(X,pe,m,de)),Se&&T.push(Se(m)),T.join(" ")},t.getComponent=function(){var m=t.props,T=m.prefixCls,_=m.destroyPopupOnHide,D=m.popupClassName,X=m.onPopupAlign,pe=m.popupMotion,de=m.popupAnimation,Se=m.popupTransitionName,Ve=m.popupStyle,tt=m.mask,Ye=m.maskAnimation,at=m.maskTransitionName,nt=m.maskMotion,Qe=m.zIndex,Ze=m.popup,dt=m.stretch,ot=m.alignPoint,Lt=m.mobile,gt=m.forceRender,We=t.state,ze=We.popupVisible,rt=We.point,st=t.getPopupAlign(),ke={};return t.isMouseEnterToShow()&&(ke.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ke.onMouseLeave=t.onPopupMouseLeave),ke.onMouseDown=t.onPopupMouseDown,ke.onTouchStart=t.onPopupMouseDown,i.createElement(Va,Object(s.a)({prefixCls:T,destroyPopupOnHide:_,visible:ze,point:ot&&rt,className:D,align:st,onAlign:X,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},ke,{stretch:dt,getRootDomNode:t.getRootDomNode,style:Ve,mask:tt,zIndex:Qe,transitionName:Se,maskAnimation:Ye,maskTransitionName:at,maskMotion:nt,ref:t.popupRef,motion:pe,mobile:Lt,forceRender:gt}),typeof Ze=="function"?Ze():Ze)},t.attachParent=function(m){Xe.a.cancel(t.attachId);var T=t.props,_=T.getPopupContainer,D=T.getDocument,X=t.getRootDomNode(),pe;_?(X||_.length===0)&&(pe=_(X)):pe=D(t.getRootDomNode()).body,pe?pe.appendChild(m):t.attachId=Object(Xe.a)(function(){t.attachParent(m)})},t.getContainer=function(){var m=t.props.getDocument,T=m(t.getRootDomNode()).createElement("div");return T.style.position="absolute",T.style.top="0",T.style.left="0",T.style.width="100%",t.attachParent(T),T},t.setPoint=function(m){var T=t.props.alignPoint;if(!T||!m)return;t.setState({point:{pageX:m.pageX,pageY:m.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var d;return"popupVisible"in r?d=!!r.popupVisible:d=!!r.defaultPopupVisible,t.state={prevPopupVisible:d,popupVisible:d},Aa.forEach(function(m){t["fire".concat(m)]=function(T){t.fireEvents(m,T)}}),t}return Object(H.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,d=this.state;if(d.popupVisible){var m;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(m=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ve.a)(m,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(m=m||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ve.a)(m,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(m=m||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ve.a)(m,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ve.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Xe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,d=t.popupPlacement,m=t.popupAlign,T=t.builtinPlacements;return d&&T?Pe(T,d,m):m}},{key:"setPopupVisible",value:function(t,d){var m=this.props.alignPoint,T=this.state.popupVisible;this.clearDelayTimer(),T!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:T}),this.props.onPopupVisibleChange(t)),m&&d&&t&&this.setPoint(d)}},{key:"delaySetPopupVisible",value:function(t,d,m){var T=this,_=d*1e3;if(this.clearDelayTimer(),_){var D=m?{pageX:m.pageX,pageY:m.pageY}:null;this.delayTimer=window.setTimeout(function(){T.setPopupVisible(t,D),T.clearDelayTimer()},_)}else this.setPopupVisible(t,m)}},{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(t){var d=this.props.children.props,m=this.props;return d[t]&&m[t]?this["fire".concat(t)]:d[t]||m[t]}},{key:"isClickToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("contextMenu")!==-1||m.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("hover")!==-1||m.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("hover")!==-1||m.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("focus")!==-1||m.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("focus")!==-1||m.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,d){var m=this.props.children.props[t];m&&m(d);var T=this.props[t];T&&T(d)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,d=this.props,m=d.children,T=d.forceRender,_=d.alignPoint,D=d.className,X=d.autoDestroy,pe=i.Children.only(m),de={key:"trigger"};this.isContextMenuToShow()?de.onContextMenu=this.onContextMenu:de.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(de.onClick=this.onClick,de.onMouseDown=this.onMouseDown,de.onTouchStart=this.onTouchStart):(de.onClick=this.createTwoChains("onClick"),de.onMouseDown=this.createTwoChains("onMouseDown"),de.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(de.onMouseEnter=this.onMouseEnter,_&&(de.onMouseMove=this.onMouseMove)):de.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?de.onMouseLeave=this.onMouseLeave:de.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(de.onFocus=this.onFocus,de.onBlur=this.onBlur):(de.onFocus=this.createTwoChains("onFocus"),de.onBlur=this.createTwoChains("onBlur"));var Se=q()(pe&&pe.props&&pe.props.className,D);Se&&(de.className=Se);var Ve=Object(K.a)({},de);Object(P.c)(pe)&&(Ve.ref=Object(P.a)(this.triggerRef,pe.ref));var tt=i.cloneElement(pe,Ve),Ye;return(t||this.popupRef.current||T)&&(Ye=i.createElement(u,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&X&&(Ye=null),i.createElement(ra.Provider,{value:this.triggerContextValue},tt,Ye)}}],[{key:"getDerivedStateFromProps",value:function(t,d){var m=t.popupVisible,T={};return m!==void 0&&d.popupVisible!==m&&(T.popupVisible=m,T.prevPopupVisible=d.popupVisible),T}}]),e}(i.Component);return E.contextType=ra,E.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},E}var Ja=Ya(Ce.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},wa={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,nn=0,pn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},mn=function(E,M,f){var e=re(M),r=E.getState();E.setState({defaultActiveFirst:Object(K.a)(Object(K.a)({},r.defaultActiveFirst),{},Object(L.a)({},e,f))})},la=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;Object(z.a)(this,M),e=E.call(this,f),e.onDestroy=function(_){e.props.onDestroy(_)},e.onKeyDown=function(_){var D=_.keyCode,X=e.menuInstance,pe=e.props.store,de=e.getVisible();if(D===w.a.ENTER)return e.onTitleClick(_),mn(pe,e.props.eventKey,!0),!0;if(D===w.a.RIGHT)return de?X.onKeyDown(_):(e.triggerOpenChange(!0),mn(pe,e.props.eventKey,!0)),!0;if(D===w.a.LEFT){var Se;if(de)Se=X.onKeyDown(_);else return;return Se||(e.triggerOpenChange(!1),Se=!0),Se}return de&&(D===w.a.UP||D===w.a.DOWN)?X.onKeyDown(_):void 0},e.onOpenChange=function(_){e.props.onOpenChange(_)},e.onPopupVisibleChange=function(_){e.triggerOpenChange(_,_?"mouseenter":"mouseleave")},e.onMouseEnter=function(_){var D=e.props,X=D.eventKey,pe=D.onMouseEnter,de=D.store;mn(de,e.props.eventKey,!1),pe({key:X,domEvent:_})},e.onMouseLeave=function(_){var D=e.props,X=D.parentMenu,pe=D.eventKey,de=D.onMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,domEvent:_})},e.onTitleMouseEnter=function(_){var D=e.props,X=D.eventKey,pe=D.onItemHover,de=D.onTitleMouseEnter;pe({key:X,hover:!0}),de({key:X,domEvent:_})},e.onTitleMouseLeave=function(_){var D=e.props,X=D.parentMenu,pe=D.eventKey,de=D.onItemHover,Se=D.onTitleMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,hover:!1}),Se({key:pe,domEvent:_})},e.onTitleClick=function(_){var D=Object(x.a)(e),X=D.props;if(X.onTitleClick({key:X.eventKey,domEvent:_}),X.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),mn(X.store,e.props.eventKey,!1)},e.onSubMenuClick=function(_){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(_))},e.onSelect=function(_){e.props.onSelect(_)},e.onDeselect=function(_){e.props.onDeselect(_)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(_){e.menuInstance=_},e.addKeyPath=function(_){return Object(K.a)(Object(K.a)({},_),{},{keyPath:(_.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(_,D){var X=e.props.eventKey,pe=function(){e.onOpenChange({key:X,item:Object(x.a)(e),trigger:D,open:_})};D==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){pe()},0):pe()},e.isChildrenSelected=function(){var _={find:!1};return fe(e.props.children,e.props.selectedKeys,_),_.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var _=Ue.findDOMNode(e.menuInstance);if(_.offsetWidth>=e.subMenuTitle.offsetWidth)return;_.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(_){e.subMenuTitle=_},e.getBaseProps=function(){var _=Object(x.a)(e),D=_.props,X=e.getMode();return{mode:X==="horizontal"?"vertical":X,visible:e.getVisible(),level:D.level+1,inlineIndent:D.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:D.selectedKeys,eventKey:"".concat(D.eventKey,"-menu-"),openKeys:D.openKeys,motion:D.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:D.subMenuOpenDelay,parentMenu:Object(x.a)(e),subMenuCloseDelay:D.subMenuCloseDelay,forceSubMenuRender:D.forceSubMenuRender,triggerSubMenuAction:D.triggerSubMenuAction,builtinPlacements:D.builtinPlacements,defaultActiveFirst:D.store.getState().defaultActiveFirst[re(D.eventKey)],multiple:D.multiple,prefixCls:D.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:D.itemIcon,expandIcon:D.expandIcon,direction:D.direction}},e.getMotion=function(_,D){var X=Object(x.a)(e),pe=X.haveRendered,de=e.props,Se=de.motion,Ve=de.rootPrefixCls,tt=Object(K.a)(Object(K.a)({},Se),{},{leavedClassName:"".concat(Ve,"-hidden"),removeOnLeave:!1,motionAppear:pe||!D||_!=="inline"});return tt};var r=f.store,t=f.eventKey,d=r.getState(),m=d.defaultActiveFirst;e.isRootMenu=!1;var T=!1;return m&&(T=m[t]),mn(r,t,T),e.state={mode:f.mode,isOpen:f.isOpen},e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,r=this.props,t=r.mode,d=r.parentMenu,m=r.manualRef,T=r.isOpen,_=function(){e.setState({mode:t,isOpen:T})},D=T!==this.state.isOpen,X=t!==this.state.mode;if((X||D)&&(Xe.a.cancel(this.updateStateRaf),X?this.updateStateRaf=Object(Xe.a)(_):_()),m&&m(this),t!=="horizontal"||!(d==null?void 0:d.isRootMenu)||!T)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,r=e.onDestroy,t=e.eventKey;r&&r(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Xe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,r){var t=this.getBaseProps();return i.createElement(ea,Object(s.a)({},t,{id:this.internalMenuId,className:e,style:r}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,r=this.getBaseProps(),t=r.mode,d=r.visible,m=r.forceSubMenuRender,T=r.direction,_=this.getMotion(t,d);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||d||m,!this.haveOpened)return i.createElement("div",null);var D=q()("".concat(r.prefixCls,"-sub"),Object(L.a)({},"".concat(r.prefixCls,"-rtl"),T==="rtl"));return this.isInlineMode()?i.createElement(tn,Object(s.a)({visible:r.visible,forceRender:m},_),function(X){var pe=X.className,de=X.style,Se=q()(D,pe);return e.renderPopupMenu(Se,de)}):this.renderPopupMenu(D)}},{key:"render",value:function(){var e,r,t,d=Object(K.a)({},this.props),m=this.getVisible(),T=this.getPrefixCls(),_=this.isInlineMode(),D=this.getMode(),X=q()(T,"".concat(T,"-").concat(D),(e={},Object(L.a)(e,d.className,!!d.className),Object(L.a)(e,this.getOpenClassName(),m),Object(L.a)(e,this.getActiveClassName(),d.active||m&&!_),Object(L.a)(e,this.getDisabledClassName(),d.disabled),Object(L.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(d.eventKey?this.internalMenuId="".concat(d.eventKey,"$Menu"):(nn+=1,this.internalMenuId="$__$".concat(nn,"$Menu")));var pe={},de={},Se={};d.disabled||(pe={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Se={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ve={},tt=d.direction,Ye=tt==="rtl";_&&(Ye?Ve.paddingRight=d.inlineIndent*d.level:Ve.paddingLeft=d.inlineIndent*d.level);var at={};this.getVisible()&&(at={"aria-owns":this.internalMenuId});var nt=null;D!=="horizontal"&&(nt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(nt=i.createElement(this.props.expandIcon,Object(K.a)({},this.props))));var Qe=i.createElement("div",Object(s.a)({ref:this.saveSubMenuTitle,style:Ve,className:"".concat(T,"-title"),role:"button"},Se,de,{"aria-expanded":m},at,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,nt||i.createElement("i",{className:"".concat(T,"-arrow")})),Ze=this.renderChildren(),dt=((r=d.parentMenu)===null||r===void 0?void 0:r.isRootMenu)?d.parentMenu.props.getPopupContainer:function(Dt){return Dt.parentNode},ot=pn[D],Lt=d.popupOffset?{offset:d.popupOffset}:{},gt=q()((t={},Object(L.a)(t,d.popupClassName,d.popupClassName&&!_),Object(L.a)(t,"".concat(T,"-rtl"),Ye),t)),We=d.disabled,ze=d.triggerSubMenuAction,rt=d.subMenuOpenDelay,st=d.forceSubMenuRender,ke=d.subMenuCloseDelay,ft=d.builtinPlacements;_e.forEach(function(Dt){return delete d[Dt]}),delete d.onClick;var Tt=Ye?Object(K.a)(Object(K.a)({},wa),ft):Object(K.a)(Object(K.a)({},ia),ft);delete d.direction;var pt=this.getBaseProps(),Ct=_?null:this.getMotion(pt.mode,pt.visible);return i.createElement("li",Object(s.a)({},d,pe,{className:X,role:"menuitem"}),i.createElement(Ja,{prefixCls:T,popupClassName:q()("".concat(T,"-popup"),gt),getPopupContainer:dt,builtinPlacements:Tt,popupPlacement:ot,popupVisible:_?!1:m,popupAlign:Lt,popup:_?null:Ze,action:We||_?[]:[ze],mouseEnterDelay:rt,mouseLeaveDelay:ke,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:st,popupMotion:Ct},Qe),_?Ze:null)}}]),M}(i.Component);la.defaultProps={onMouseEnter:N,onMouseLeave:N,onTitleMouseEnter:N,onTitleMouseLeave:N,onTitleClick:N,manualRef:N,mode:"vertical",title:""};var In=Object(V.b)(function(u,E){var M=u.openKeys,f=u.activeKey,e=u.selectedKeys,r=E.eventKey,t=E.subMenuKey;return{isOpen:M.indexOf(r)>-1,active:f[t]===r,selectedKeys:e}})(la);In.isSubMenu=!0;var Kn=In,Da="menuitem-overflowed",Qa=.5,Pa=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.resizeObserver=null,f.mutationObserver=null,f.originalTotalWidth=0,f.overflowedItems=[],f.menuItemSizes=[],f.cancelFrameId=null,f.state={lastVisibleIndex:void 0},f.childRef=i.createRef(),f.getMenuItemNodes=function(){var e=f.props.prefixCls,r=f.childRef.current;return r?[].slice.call(r.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},f.getOverflowedSubMenuItem=function(e,r,t){var d=f.props,m=d.overflowedIndicator,T=d.level,_=d.mode,D=d.prefixCls,X=d.theme;if(T!==1||_!=="horizontal")return null;var pe=f.props.children[0],de=pe.props,Se=de.children,Ve=de.title,tt=de.style,Ye=Object(Ae.a)(de,["children","title","style"]),at=Object(K.a)({},tt),nt="".concat(e,"-overflowed-indicator"),Qe="".concat(e,"-overflowed-indicator");r.length===0&&t!==!0?at=Object(K.a)(Object(K.a)({},at),{},{display:"none"}):t&&(at=Object(K.a)(Object(K.a)({},at),{},{visibility:"hidden",position:"absolute"}),nt="".concat(nt,"-placeholder"),Qe="".concat(Qe,"-placeholder"));var Ze=X?"".concat(D,"-").concat(X):"",dt={};return _e.forEach(function(ot){Ye[ot]!==void 0&&(dt[ot]=Ye[ot])}),i.createElement(Kn,Object(s.a)({title:m,className:"".concat(D,"-overflowed-submenu"),popupClassName:Ze},dt,{key:nt,eventKey:Qe,disabled:!1,style:at}),r)},f.setChildrenWidthAndResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=e.children;if(!r||r.length===0)return;var t=e.children[r.length-1];me(t,"display","inline-block");var d=f.getMenuItemNodes(),m=d.filter(function(T){return T.className.split(" ").indexOf(Da)>=0});m.forEach(function(T){me(T,"display","inline-block")}),f.menuItemSizes=d.map(function(T){return je(T,!0)}),m.forEach(function(T){me(T,"display","none")}),f.overflowedIndicatorWidth=je(e.children[e.children.length-1],!0),f.originalTotalWidth=f.menuItemSizes.reduce(function(T,_){return T+_},0),f.handleResize(),me(t,"display","none")},f.handleResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=je(e);f.overflowedItems=[];var t=0,d;f.originalTotalWidth>r+Qa&&(d=-1,f.menuItemSizes.forEach(function(m){t+=m,t+f.overflowedIndicatorWidth<=r&&(d+=1)})),f.setState({lastVisibleIndex:d})},f}return Object(H.a)(M,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var r=this.childRef.current;if(!r)return;this.resizeObserver=new Be.default(function(t){t.forEach(function(){var d=e.cancelFrameId;cancelAnimationFrame(d),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(r,{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(e){var r=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(d,m,T){var _=m;if(r.props.mode==="horizontal"){var D=r.getOverflowedSubMenuItem(m.props.eventKey,[]);t!==void 0&&r.props.className.indexOf("".concat(r.props.prefixCls,"-root"))!==-1&&(T>t&&(_=i.cloneElement(m,{style:{display:"none"},eventKey:"".concat(m.props.eventKey,"-hidden"),className:"".concat(Da)})),T===t+1&&(r.overflowedItems=e.slice(t+1).map(function(pe){return i.cloneElement(pe,{key:pe.props.eventKey,mode:"vertical-left"})}),D=r.getOverflowedSubMenuItem(m.props.eventKey,r.overflowedItems)));var X=[].concat(Object(B.a)(d),[D,_]);return T===e.length-1&&X.push(r.getOverflowedSubMenuItem(m.props.eventKey,[],!0)),X}return[].concat(Object(B.a)(d),[_])},[])}},{key:"render",value:function(){var e=this.props,r=e.visible,t=e.prefixCls,d=e.overflowedIndicator,m=e.mode,T=e.level,_=e.tag,D=e.children,X=e.theme,pe=Object(Ae.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=_;return i.createElement(de,Object(s.a)({ref:this.childRef},pe),this.renderChildren(D))}}]),M}(i.Component);Pa.defaultProps={tag:"div",className:""};var ua=Pa;function Zn(u){return u.length?u.every(function(E){return!!E.props.disabled}):!0}function Sn(u,E,M){var f=u.getState();u.setState({activeKey:Object(K.a)(Object(K.a)({},f.activeKey),{},Object(L.a)({},E,M))})}function En(u){return u.eventKey||"0-menu-"}function qn(u,E){var M=E,f=u.children,e=u.eventKey;if(M){var r;if(Me(f,function(t,d){t&&t.props&&!t.props.disabled&&M===Q(t,e,d)&&(r=!0)}),r)return M}return M=null,u.defaultActiveFirst&&Me(f,function(t,d){!M&&t&&!t.props.disabled&&(M=Q(t,e,d))}),M}function Na(u){if(!u)return;var E=this.instanceArray.indexOf(u);E!==-1?this.instanceArray[E]=u:this.instanceArray.push(u)}var La=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;return Object(z.a)(this,M),e=E.call(this,f),e.onKeyDown=function(r,t){var d=r.keyCode,m;if(e.getFlatInstanceArray().forEach(function(_){_&&_.props.active&&_.onKeyDown&&(m=_.onKeyDown(r))}),m)return 1;var T=null;return(d===w.a.UP||d===w.a.DOWN)&&(T=e.step(d===w.a.UP?-1:1)),T?(r.preventDefault(),Sn(e.props.store,En(e.props),T.props.eventKey),typeof t=="function"&&t(T),1):void 0},e.onItemHover=function(r){var t=r.key,d=r.hover;Sn(e.props.store,En(e.props),d?t:null)},e.onDeselect=function(r){e.props.onDeselect(r)},e.onSelect=function(r){e.props.onSelect(r)},e.onClick=function(r){e.props.onClick(r)},e.onOpenChange=function(r){e.props.onOpenChange(r)},e.onDestroy=function(r){e.props.onDestroy(r)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(r){var t=e.getFlatInstanceArray(),d=e.props.store.getState().activeKey[En(e.props)],m=t.length;if(!m)return null;r<0&&(t=t.concat().reverse());var T=-1;if(t.every(function(pe,de){return pe&&pe.props.eventKey===d?(T=de,!1):!0}),!e.props.defaultActiveFirst&&T!==-1&&Zn(t.slice(T,m-1)))return;var _=(T+1)%m,D=_;do{var X=t[D];if(!X||X.props.disabled)D=(D+1)%m;else return X}while(D!==_);return null},e.renderCommonMenuItem=function(r,t,d){var m=e.props.store.getState(),T=Object(x.a)(e),_=T.props,D=Q(r,_.eventKey,t),X=r.props;if(!X||typeof r.type=="string")return r;var pe=D===m.activeKey,de=Object(K.a)(Object(K.a)({mode:X.mode||_.mode,level:_.level,inlineIndent:_.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:_.prefixCls,index:t,parentMenu:_.parentMenu,manualRef:X.disabled?void 0:Object(ee.a)(r.ref,Na.bind(Object(x.a)(e))),eventKey:D,active:!X.disabled&&pe,multiple:_.multiple,onClick:function(Ve){(X.onClick||N)(Ve),e.onClick(Ve)},onItemHover:e.onItemHover,motion:_.motion,subMenuOpenDelay:_.subMenuOpenDelay,subMenuCloseDelay:_.subMenuCloseDelay,forceSubMenuRender:_.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:_.builtinPlacements,itemIcon:X.itemIcon||e.props.itemIcon,expandIcon:X.expandIcon||e.props.expandIcon},d),{},{direction:_.direction});return(_.mode==="inline"||Ee())&&(de.triggerSubMenuAction="click"),i.cloneElement(r,Object(K.a)(Object(K.a)({},de),{},{key:D||t}))},e.renderMenuItem=function(r,t,d){if(!r)return null;var m=e.props.store.getState(),T={openKeys:m.openKeys,selectedKeys:m.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:d};return e.renderCommonMenuItem(r,t,T)},f.store.setState({activeKey:Object(K.a)(Object(K.a)({},f.store.getState().activeKey),{},Object(L.a)({},f.eventKey,qn(f,f.activeKey)))}),e.instanceArray=[],e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!ie()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var r=this.props,t="activeKey"in r?r.activeKey:r.store.getState().activeKey[En(r)],d=qn(r,t);if(d!==t)Sn(r.store,En(r),d);else if("activeKey"in e){var m=qn(e,e.activeKey);d!==m&&Sn(r.store,En(r),d)}}},{key:"render",value:function(){var e=this,r=Object(s.a)({},this.props);this.instanceArray=[];var t=q()(r.prefixCls,r.className,"".concat(r.prefixCls,"-").concat(r.mode)),d={className:t,role:r.role||"menu"};r.id&&(d.id=r.id),r.focusable&&(d.tabIndex=0,d.onKeyDown=this.onKeyDown);var m=r.prefixCls,T=r.eventKey,_=r.visible,D=r.level,X=r.mode,pe=r.overflowedIndicator,de=r.theme;return _e.forEach(function(Se){return delete r[Se]}),delete r.onClick,i.createElement(ua,Object(s.a)({},r,{prefixCls:m,mode:X,tag:"ul",level:D,theme:de,visible:_,overflowedIndicator:pe},d),Object(le.a)(r.children).map(function(Se,Ve){return e.renderMenuItem(Se,Ve,T||"0-menu-")}))}}]),M}(i.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:N};var ka=Object(V.b)()(La),ea=ka,Tn=n("Kwbf");function ca(u,E,M){var f=u.prefixCls,e=u.motion,r=u.defaultMotions,t=r===void 0?{}:r,d=u.openAnimation,m=u.openTransitionName,T=E.switchingModeFromInline;if(e)return e;if(Object(k.a)(d)==="object"&&d)Object(Tn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof d=="string")return{motionName:"".concat(f,"-open-").concat(d)};if(m)return{motionName:m};var _=t[M];return _||(T?null:t.other)}var Ua=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;Object(z.a)(this,M),e=E.call(this,f),e.onSelect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState(),D=_.selectedKeys,X=d.key;T.multiple?D=D.concat([X]):D=[X],"selectedKeys"in T||e.store.setState({selectedKeys:D}),T.onSelect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:D}))}},e.onClick=function(d){var m=e.getRealMenuMode(),T=Object(x.a)(e),_=T.store,D=T.props.onOpenChange;m!=="inline"&&!("openKeys"in e.props)&&(_.setState({openKeys:[]}),D([])),e.props.onClick(d)},e.onKeyDown=function(d,m){e.innerMenu.getWrappedInstance().onKeyDown(d,m)},e.onOpenChange=function(d){var m=Object(x.a)(e),T=m.props,_=e.store.getState().openKeys.concat(),D=!1,X=function(de){var Se=!1;if(de.open)Se=_.indexOf(de.key)===-1,Se&&_.push(de.key);else{var Ve=_.indexOf(de.key);Se=Ve!==-1,Se&&_.splice(Ve,1)}D=D||Se};Array.isArray(d)?d.forEach(X):X(d),D&&("openKeys"in e.props||e.store.setState({openKeys:_}),T.onOpenChange(_))},e.onDeselect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState().selectedKeys.concat(),D=d.key,X=_.indexOf(D);X!==-1&&_.splice(X,1),"selectedKeys"in T||e.store.setState({selectedKeys:_}),T.onDeselect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:_}))}},e.onMouseEnter=function(d){e.restoreModeVerticalFromInline();var m=e.props.onMouseEnter;m&&m(d)},e.onTransitionEnd=function(d){var m=d.propertyName==="width"&&d.target===d.currentTarget,T=d.target.className,_=Object.prototype.toString.call(T)==="[object SVGAnimatedString]"?T.animVal:T,D=d.propertyName==="font-size"&&_.indexOf("anticon")>=0;(m||D)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(d){e.innerMenu=d},e.isRootMenu=!0;var r=f.defaultSelectedKeys,t=f.defaultOpenKeys;return"selectedKeys"in f&&(r=f.selectedKeys||[]),"openKeys"in f&&(t=f.openKeys||[]),e.store=Object(V.c)({selectedKeys:r,openKeys:t,activeKey:{"0-menu-":qn(f,f.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:f,inlineOpenKeys:[],store:e.store},e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var r=this.props,t=r.siderCollapsed,d=r.inlineCollapsed,m=r.onOpenChange;(!e.inlineCollapsed&&d||!e.siderCollapsed&&t)&&m([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,r=this.store,t=this.prevOpenKeys,d=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");d?(this.prevOpenKeys=r.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,r=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return r&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,r=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:r}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(K.a)({},Object(G.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),r=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(K.a)(Object(K.a)({},e),{},{mode:r,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,r)}),delete e.openAnimation,delete e.openTransitionName,i.createElement(V.a,{store:this.store},i.createElement(ea,Object(s.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var t=r.prevProps,d=r.store,m=d.getState(),T={},_={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(_.switchingModeFromInline=!0),"openKeys"in e?T.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(_.switchingModeFromInline=!0,_.inlineOpenKeys=m.openKeys,T.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(T.openKeys=r.inlineOpenKeys,_.inlineOpenKeys=[])),Object.keys(T).length&&d.setState(T),_}}]),M}(i.Component);Ua.defaultProps={selectable:!0,onClick:N,onSelect:N,onOpenChange:N,onDeselect:N,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:i.createElement("span",null,"\xB7\xB7\xB7")};var Ia=Ua,Rn=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.onKeyDown=function(e){var r=e.keyCode;return r===w.a.ENTER?(f.onClick(e),!0):void 0},f.onMouseLeave=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseLeave;d({key:t,hover:!1}),m({key:t,domEvent:e})},f.onMouseEnter=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseEnter;d({key:t,hover:!0}),m({key:t,domEvent:e})},f.onClick=function(e){var r=f.props,t=r.eventKey,d=r.multiple,m=r.onClick,T=r.onSelect,_=r.onDeselect,D=r.isSelected,X={key:t,keyPath:[t],item:Object(x.a)(f),domEvent:e};m(X),d?D?_(X):T(X):D||T(X)},f.saveNode=function(e){f.node=e},f}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,r=Object(K.a)({},this.props),t=q()(this.getPrefixCls(),r.className,(e={},Object(L.a)(e,this.getActiveClassName(),!r.disabled&&r.active),Object(L.a)(e,this.getSelectedClassName(),r.isSelected),Object(L.a)(e,this.getDisabledClassName(),r.disabled),e)),d=Object(K.a)(Object(K.a)({},r.attribute),{},{title:typeof r.title=="string"?r.title:void 0,className:t,role:r.role||"menuitem","aria-disabled":r.disabled});r.role==="option"?d=Object(K.a)(Object(K.a)({},d),{},{role:"option","aria-selected":r.isSelected}):(r.role===null||r.role==="none")&&(d.role="none");var m={onClick:r.disabled?null:this.onClick,onMouseLeave:r.disabled?null:this.onMouseLeave,onMouseEnter:r.disabled?null:this.onMouseEnter},T=Object(K.a)({},r.style);r.mode==="inline"&&(r.direction==="rtl"?T.paddingRight=r.inlineIndent*r.level:T.paddingLeft=r.inlineIndent*r.level),_e.forEach(function(D){return delete r[D]}),delete r.direction;var _=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(_=i.createElement(this.props.itemIcon,this.props)),i.createElement("li",Object(s.a)({},Object(G.a)(r,["onClick","onMouseEnter","onMouseLeave","onSelect"]),d,m,{style:T,ref:this.saveNode}),r.children,_)}}]),M}(i.Component);Rn.isMenuItem=!0,Rn.defaultProps={onSelect:N,onMouseEnter:N,onMouseLeave:N,manualRef:N};var da=Object(V.b)(function(u,E){var M=u.activeKey,f=u.selectedKeys,e=E.eventKey,r=E.subMenuKey;return{active:M[r]===e,isSelected:Array.isArray(f)?f.indexOf(e)!==-1:f===e}})(Rn),fa=da,pa=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.renderInnerMenuItem=function(e){var r=f.props,t=r.renderMenuItem,d=r.index;return t(e,d,f.props.subMenuKey)},f}return Object(H.a)(M,[{key:"render",value:function(){var e=Object(s.a)({},this.props),r=e.className,t=r===void 0?"":r,d=e.rootPrefixCls,m="".concat(d,"-item-group-title"),T="".concat(d,"-item-group-list"),_=e.title,D=e.children;return _e.forEach(function(X){return delete e[X]}),delete e.direction,i.createElement("li",Object(s.a)({},e,{onClick:function(pe){return pe.stopPropagation()},className:"".concat(t," ").concat(d,"-item-group")}),i.createElement("div",{className:m,title:typeof _=="string"?_:void 0},_),i.createElement("ul",{className:T},i.Children.map(D,this.renderInnerMenuItem)))}}]),M}(i.Component);pa.isMenuItemGroup=!0,pa.defaultProps={disabled:!0};var Za=pa,ma=function(E){var M=E.className,f=E.rootPrefixCls,e=E.style;return i.createElement("li",{className:"".concat(M," ").concat(f,"-item-divider"),style:e})};ma.defaultProps={disabled:!0,className:"",style:{}};var qa=ma,Ka=Ia,ha=n("eDIo");function eo(u,E){var M=u.prefixCls,f=u.editable,e=u.locale,r=u.style;return!f||f.showAdd===!1?null:i.createElement("button",{ref:E,type:"button",className:"".concat(M,"-nav-add"),style:r,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(d){f.onEdit("add",{event:d})}},f.addIcon||"+")}var ta=i.forwardRef(eo);function to(u,E){var M=u.prefixCls,f=u.id,e=u.tabs,r=u.locale,t=u.mobile,d=u.moreIcon,m=d===void 0?"More":d,T=u.moreTransitionName,_=u.style,D=u.className,X=u.editable,pe=u.tabBarGutter,de=u.rtl,Se=u.onTabClick,Ve=Object(i.useState)(!1),tt=Object(R.a)(Ve,2),Ye=tt[0],at=tt[1],nt=Object(i.useState)(null),Qe=Object(R.a)(nt,2),Ze=Qe[0],dt=Qe[1],ot="".concat(f,"-more-popup"),Lt="".concat(M,"-dropdown"),gt=Ze!==null?"".concat(ot,"-").concat(Ze):null,We=r==null?void 0:r.dropdownAriaLabel,ze=i.createElement(Ka,{onClick:function(Ct){var Dt=Ct.key,$t=Ct.domEvent;Se(Dt,$t),at(!1)},id:ot,tabIndex:-1,role:"listbox","aria-activedescendant":gt,selectedKeys:[Ze],"aria-label":We!==void 0?We:"expanded dropdown"},e.map(function(pt){return i.createElement(fa,{key:pt.key,id:"".concat(ot,"-").concat(pt.key),role:"option","aria-controls":f&&"".concat(f,"-panel-").concat(pt.key),disabled:pt.disabled},pt.tab)}));function rt(pt){for(var Ct=e.filter(function(on){return!on.disabled}),Dt=Ct.findIndex(function(on){return on.key===Ze})||0,$t=Ct.length,an=0;an<$t;an+=1){Dt=(Dt+pt+$t)%$t;var Ut=Ct[Dt];if(!Ut.disabled){dt(Ut.key);return}}}function st(pt){var Ct=pt.which;if(!Ye){[w.a.DOWN,w.a.SPACE,w.a.ENTER].includes(Ct)&&(at(!0),pt.preventDefault());return}switch(Ct){case w.a.UP:rt(-1),pt.preventDefault();break;case w.a.DOWN:rt(1),pt.preventDefault();break;case w.a.ESC:at(!1);break;case w.a.SPACE:case w.a.ENTER:Ze!==null&&Se(Ze,pt);break}}Object(i.useEffect)(function(){var pt=document.getElementById(gt);pt&&pt.scrollIntoView&&pt.scrollIntoView(!1)},[Ze]),Object(i.useEffect)(function(){Ye||dt(null)},[Ye]);var ke=Object(L.a)({},de?"marginLeft":"marginRight",pe);e.length||(ke.visibility="hidden",ke.order=1);var ft=q()(Object(L.a)({},"".concat(Lt,"-rtl"),de)),Tt=t?null:i.createElement(ha.a,{prefixCls:Lt,overlay:ze,trigger:["hover"],visible:Ye,transitionName:T,onVisibleChange:at,overlayClassName:ft,mouseEnterDelay:.1,mouseLeaveDelay:.1},i.createElement("button",{type:"button",className:"".concat(M,"-nav-more"),style:ke,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":ot,id:"".concat(f,"-more"),"aria-expanded":Ye,onKeyDown:st},m));return i.createElement("div",{className:q()("".concat(M,"-nav-operations"),D),style:_,ref:E},Tt,i.createElement(ta,{prefixCls:M,locale:r,editable:X}))}var no=i.forwardRef(to),va=Object(i.createContext)(null),lt=.1,ut=.01,Nt=20,Qt=Math.pow(.995,Nt);function zn(){var u=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(u)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(u.substr(0,4)))}function za(u,E){var M=Object(i.useState)(),f=Object(R.a)(M,2),e=f[0],r=f[1],t=Object(i.useState)(0),d=Object(R.a)(t,2),m=d[0],T=d[1],_=Object(i.useState)(0),D=Object(R.a)(_,2),X=D[0],pe=D[1],de=Object(i.useState)(),Se=Object(R.a)(de,2),Ve=Se[0],tt=Se[1],Ye=Object(i.useRef)();function at(We){var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st}),window.clearInterval(Ye.current)}function nt(We){if(!e)return;We.preventDefault();var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st});var ke=rt-e.x,ft=st-e.y;E(ke,ft);var Tt=Date.now();T(Tt),pe(Tt-m),tt({x:ke,y:ft})}function Qe(){if(!e)return;if(r(null),tt(null),Ve){var We=Ve.x/X,ze=Ve.y/X,rt=Math.abs(We),st=Math.abs(ze);if(Math.max(rt,st)ft?(st=ze,ot.current="x"):(st=rt,ot.current="y");var Tt=Date.now();Tt-Ze.current>100&&(dt.current=!1),(E(-st,-st)||dt.current)&&(We.preventDefault(),dt.current=!0),Ze.current=Tt}var gt=Object(i.useRef)(null);gt.current={onTouchStart:at,onTouchMove:nt,onTouchEnd:Qe,onWheel:Lt},i.useEffect(function(){function We(ke){gt.current.onTouchStart(ke)}function ze(ke){gt.current.onTouchMove(ke)}function rt(ke){gt.current.onTouchEnd(ke)}function st(ke){gt.current.onWheel(ke)}return document.addEventListener("touchmove",ze,{passive:!1}),document.addEventListener("touchend",rt,{passive:!1}),u.current.addEventListener("touchstart",We,{passive:!1}),u.current.addEventListener("wheel",st),function(){document.removeEventListener("touchmove",ze),document.removeEventListener("touchend",rt)}},[])}function ba(){var u=Object(i.useRef)(new Map);function E(f){return u.current.has(f)||u.current.set(f,i.createRef()),u.current.get(f)}function M(f){u.current.delete(f)}return[E,M]}function Wa(u,E){var M=i.useRef(u),f=i.useState({}),e=Object(R.a)(f,2),r=e[1];function t(d){var m=typeof d=="function"?d(M.current):d;m!==M.current&&E(m,M.current),M.current=m,r({})}return[M.current,t]}var Ba=function(E){var M=E.position,f=E.prefixCls,e=E.extra;if(!e)return null;var r,t=e;return M==="right"&&(r=t.right||!t.left&&t||null),M==="left"&&(r=t.left||null),r?i.createElement("div",{className:"".concat(f,"-extra-content")},r):null};function Wo(u,E){var M,f=i.useContext(va),e=f.prefixCls,r=f.tabs,t=u.className,d=u.style,m=u.id,T=u.animated,_=u.activeKey,D=u.rtl,X=u.extra,pe=u.editable,de=u.locale,Se=u.tabPosition,Ve=u.tabBarGutter,tt=u.children,Ye=u.onTabClick,at=u.onTabScroll,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useRef)(),dt=Object(i.useRef)(),ot=ba(),Lt=Object(R.a)(ot,2),gt=Lt[0],We=Lt[1],ze=Se==="top"||Se==="bottom",rt=Wa(0,function(yt,it){ze&&at&&at({direction:yt>it?"left":"right"})}),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=Wa(0,function(yt,it){!ze&&at&&at({direction:yt>it?"top":"bottom"})}),pt=Object(R.a)(Tt,2),Ct=pt[0],Dt=pt[1],$t=Object(i.useState)(0),an=Object(R.a)($t,2),Ut=an[0],on=an[1],gn=Object(i.useState)(0),ln=Object(R.a)(gn,2),un=ln[0],It=ln[1],qt=Object(i.useState)(0),Gt=Object(R.a)(qt,2),Wt=Gt[0],An=Gt[1],wn=Object(i.useState)(0),Wn=Object(R.a)(wn,2),Mt=Wn[0],Cn=Wn[1],Bn=Object(i.useState)(null),Rt=Object(R.a)(Bn,2),bt=Rt[0],Yt=Rt[1],Xo=Object(i.useState)(null),bo=Object(R.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(i.useState)(0),go=Object(R.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(i.useState)(0),yo=Object(R.a)(Qo,2),Zo=yo[0],qo=yo[1],er=U(new Map),Eo=Object(R.a)(er,2),tr=Eo[0],nr=Eo[1],Fa=l(r,tr,Ut),Co="".concat(e,"-nav-operations-hidden"),ga=0,ya=0;ze?D?(ga=0,ya=Math.max(0,Ut-bt)):(ga=Math.min(0,bt-Ut),ya=0):(ga=Math.min(0,na-un),ya=0);function ao(yt){return ytya?[ya,!1]:[yt,!0]}var Oo=Object(i.useRef)(),ar=Object(i.useState)(),xo=Object(R.a)(ar,2),oo=xo[0],_o=xo[1];function ro(){_o(Date.now())}function io(){window.clearTimeout(Oo.current)}za(nt,function(yt,it){var Bt=!1;function cn(Ca,Oa){Ca(function(xa){var _a=ao(xa+Oa),aa=Object(R.a)(_a,2),co=aa[0],fo=aa[1];return Bt=fo,co})}if(ze){if(bt>=Ut)return Bt;cn(ft,yt)}else{if(na>=un)return Bt;cn(Dt,it)}return io(),ro(),Bt}),Object(i.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){_o(0)},100)),io},[oo]);function jo(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,it=Fa.get(yt);if(!it)return;if(ze){var Bt=ke;D?it.rightke+bt&&(Bt=it.right+it.width-bt):it.left<-ke?Bt=-it.left:it.left+it.width>-ke+bt&&(Bt=-(it.left+it.width-bt)),Dt(0),ft(ao(Bt)[0])}else{var cn=Ct;it.top<-Ct?cn=-it.top:it.top+it.height>-Ct+na&&(cn=-(it.top+it.height-na)),ft(0),Dt(ao(cn)[0])}}var or=v(Fa,{width:bt,height:na,left:ke,top:Ct},{width:Wt,height:Mt},{width:Yo,height:Zo},Object(K.a)(Object(K.a)({},u),{},{tabs:r})),Mo=Object(R.a)(or,2),rr=Mo[0],ir=Mo[1],sr=r.map(function(yt){var it=yt.key;return i.createElement(O,{id:m,prefixCls:e,key:it,rtl:D,tab:yt,closable:yt.closable,editable:pe,active:it===_,tabPosition:Se,tabBarGutter:Ve,renderWrapper:tt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:gt(it),onClick:function(cn){Ye(it,cn)},onRemove:function(){We(it)},onFocus:function(){jo(it),ro(),D||(nt.current.scrollLeft=0),nt.current.scrollTop=0}})}),so=ce(function(){var yt,it,Bt,cn,Ca,Oa,xa,_a,aa,co=((yt=nt.current)===null||yt===void 0?void 0:yt.offsetWidth)||0,fo=((it=nt.current)===null||it===void 0?void 0:it.offsetHeight)||0,No=((Bt=dt.current)===null||Bt===void 0?void 0:Bt.offsetWidth)||0,Lo=((cn=dt.current)===null||cn===void 0?void 0:cn.offsetHeight)||0,pr=((Ca=Ze.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,mr=((Oa=Ze.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),$o(fo),Jo(No),qo(Lo);var ko=(((xa=Qe.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-No,Uo=(((_a=Qe.current)===null||_a===void 0?void 0:_a.offsetHeight)||0)-Lo;on(ko),It(Uo);var Io=(aa=Ze.current)===null||aa===void 0?void 0:aa.className.includes(Co);An(ko-(Io?0:pr)),Cn(Uo-(Io?0:mr)),nr(function(){var Ko=new Map;return r.forEach(function(hr){var zo=hr.key,ja=gt(zo).current;ja&&Ko.set(zo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=r.slice(0,rr),ur=r.slice(ir+1),So=[].concat(Object(B.a)(lr),Object(B.a)(ur)),cr=Object(i.useState)(),To=Object(R.a)(cr,2),dr=To[0],fr=To[1],Dn=Fa.get(_),Ro=Object(i.useRef)();function Ao(){xe.a.cancel(Ro.current)}Object(i.useEffect)(function(){var yt={};return Dn&&(ze?(D?yt.right=Dn.right:yt.left=Dn.left,yt.width=Dn.width):(yt.top=Dn.top,yt.height=Dn.height)),Ao(),Ro.current=xe()(function(){fr(yt)}),Ao},[Dn,ze,D]),Object(i.useEffect)(function(){jo()},[_,Dn,Fa,ze]),Object(i.useEffect)(function(){so()},[D,Ve,_,r.map(function(yt){return yt.key}).join("_")]);var wo=!!So.length,Ea="".concat(e,"-nav-wrap"),lo,uo,Do,Po;return ze?D?(uo=ke>0,lo=ke+bt1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var a=l[0];if(p.isValidElement(a)&&Object(ae.c)(a)){var v=a.ref;l[0]=p.cloneElement(a,{ref:Object(ae.a)(v,this.setChildNode)})}return l.length===1?l[0]:l.map(function(s,z){return!p.isValidElement(s)||"key"in s&&s.key!==null?s:p.cloneElement(s,{key:"".concat(he,"-").concat(z)})})}}]),Y}(p.Component);ce.displayName="ResizeObserver",Oe.a=ce},wCXF:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return Fe});var L=n("rePB"),R=n("VTBJ"),Ae=n("KQm4"),K=n("U8pU"),i=n("ODXe"),p=n("q1tI"),q=n("TSYQ"),le=n.n(q),W=n("Gytx"),B=n.n(W),ae=n("Kwbf"),xe=n("t23M"),he=n("qx4F"),ce=n("6eGT"),U=n("IBYe"),w=n("Ff2n"),Y=n("c+Xe"),O=n("fyJ8"),y=n("biw7");function l(P,ve,Ce,De,Pe){var Te=Ce[P]||{},Re=Ce[ve]||{},be,we;Te.fixed==="left"?be=De.left[P]:Re.fixed==="right"&&(we=De.right[ve]);var Ke=!1,Le=!1,Ie=!1,Ge=!1,He=Ce[ve+1],qe=Ce[P-1];if(Pe==="rtl"){if(be!==void 0){var Et=qe&&qe.fixed==="left";Ge=!Et}else if(we!==void 0){var ct=He&&He.fixed==="right";Ie=!ct}}else if(be!==void 0){var vt=He&&He.fixed==="left";Ke=!vt}else if(we!==void 0){var Je=qe&&qe.fixed==="right";Le=!Je}return{fixLeft:be,fixRight:we,lastFixLeft:Ke,firstFixRight:Le,lastFixRight:Ie,firstFixLeft:Ge,isSticky:De.isSticky}}var a=n("sR1s");function v(P){var ve=P.cells,Ce=P.stickyOffsets,De=P.flattenColumns,Pe=P.rowComponent,Te=P.cellComponent,Re=P.onHeaderRow,be=P.index,we=p.useContext(y.a),Ke=we.prefixCls,Le=we.direction,Ie;Re&&(Ie=Re(ve.map(function(He){return He.column}),be));var Ge=Object(a.a)(ve.map(function(He){return He.column}));return p.createElement(Pe,Object.assign({},Ie),ve.map(function(He,qe){var Et=He.column,ct=l(He.colStart,He.colEnd,De,Ce,Le),vt;return Et&&Et.onHeaderCell&&(vt=He.column.onHeaderCell(Et)),p.createElement(O.a,Object.assign({},He,{ellipsis:Et.ellipsis,align:Et.align,component:Te,prefixCls:Ke,key:Ge[qe]},ct,{additionalProps:vt,rowType:"header"}))}))}v.displayName="HeaderRow";var s=v;function z(P){var ve=[];function Ce(Re,be){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[we]=ve[we]||[];var Ke=be,Le=Re.filter(Boolean).map(function(Ie){var Ge={key:Ie.key,className:Ie.className||"",children:Ie.title,column:Ie,colStart:Ke},He=1,qe=Ie.children;return qe&&qe.length>0&&(He=Ce(qe,Ke,we+1).reduce(function(Et,ct){return Et+ct},0),Ge.hasSubColumns=!0),"colSpan"in Ie&&(He=Ie.colSpan),"rowSpan"in Ie&&(Ge.rowSpan=Ie.rowSpan),Ge.colSpan=He,Ge.colEnd=Ge.colStart+He-1,ve[we].push(Ge),Ke+=He,He});return Le}Ce(P,0);for(var De=ve.length,Pe=function(be){ve[be].forEach(function(we){!("rowSpan"in we)&&!we.hasSubColumns&&(we.rowSpan=De-be)})},Te=0;Te=0;be-=1){var we=ve[be],Ke=Ce&&Ce[be],Le=Ke&&Ke[S.a];(we||Le||Re)&&(Pe.unshift(p.createElement("col",Object.assign({key:be,style:{width:we,minWidth:we}},Le))),Re=!0)}return p.createElement("colgroup",null,Pe)}var V=h;function G(P,ve){return Object(p.useMemo)(function(){for(var Ce=[],De=0;De1?Jt-1:0),dn=1;dn=Ie&&(St=Ie-Ge),Re({scrollLeft:St/Ie*(Le+2)}),Je.current.x=et.pageX},jt=function(){var et=Object(_e.b)(Te.current).top,wt=et+Te.current.offsetHeight,Vt=document.documentElement.scrollTop+window.innerHeight;wt-Object(he.a)()<=Vt||et>=Vt-be?vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!0})}):vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!1})})},xt=function(et){vt(function(wt){return Object(R.a)(Object(R.a)({},wt),{},{scrollLeft:et/Le*Ie||0})})};return p.useImperativeHandle(Ce,function(){return{setScrollLeft:xt}}),p.useEffect(function(){var ht=Object(fe.a)(document.body,"mouseup",Kt,!1),et=Object(fe.a)(document.body,"mousemove",Ht,!1);return jt(),function(){ht.remove(),et.remove()}},[Ge,Ot]),p.useEffect(function(){var ht=Object(fe.a)(window,"scroll",jt,!1),et=Object(fe.a)(window,"resize",jt,!1);return function(){ht.remove(),et.remove()}},[]),p.useEffect(function(){ct.isHiddenScrollBar||vt(function(ht){var et,wt;return Object(R.a)(Object(R.a)({},ht),{},{scrollLeft:Te.current.scrollLeft/((et=Te.current)===null||et===void 0?void 0:et.scrollWidth)*((wt=Te.current)===null||wt===void 0?void 0:wt.clientWidth)})})},[ct.isHiddenScrollBar]),Le<=Ie||!Ge||ct.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(he.a)(),width:Ie,bottom:be},className:"".concat(Ke,"-sticky-scroll")},p.createElement("div",{onMouseDown:mt,ref:He,className:le()("".concat(Ke,"-sticky-scroll-bar"),Object(L.a)({},"".concat(Ke,"-sticky-scroll-bar-active"),Ot)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(ct.scrollLeft,"px, 0, 0)")}}))},me=p.forwardRef(je);function Ee(P,ve){return p.useMemo(function(){var Ce=!!P;return{isSticky:Ce,stickyClassName:Ce?"".concat(ve,"-sticky-header"):"",offsetHeader:Object(K.a)(P)==="object"&&P.offsetHeader||0,offsetScroll:Object(K.a)(P)==="object"&&P.offsetScroll||0}},[P,ve])}var Be=[],Ue={},Fe="rc-table-internal-hook",Xe=p.memo(function(P){var ve=P.children;return ve},function(P,ve){return B()(P.props,ve.props)?P.pingLeft!==ve.pingLeft||P.pingRight!==ve.pingRight:!1});function Ne(P){var ve,Ce=P.prefixCls,De=P.className,Pe=P.rowClassName,Te=P.style,Re=P.data,be=P.rowKey,we=P.scroll,Ke=P.tableLayout,Le=P.direction,Ie=P.title,Ge=P.footer,He=P.summary,qe=P.id,Et=P.showHeader,ct=P.components,vt=P.emptyText,Je=P.onRow,Ft=P.onHeaderRow,At=P.internalHooks,Ot=P.transformColumns,kt=P.internalRefs,Kt=P.sticky,mt=Re||Be,Ht=!!mt.length,jt=p.useState(0),xt=Object(i.a)(jt,2),ht=xt[0],et=xt[1];p.useEffect(function(){et(Object(he.a)())});var wt=p.useMemo(function(){return Object(a.c)(ct,{})},[ct]),Vt=p.useCallback(function(lt,ut){return Object(a.b)(wt,lt)||ut},[wt]),Xt=p.useMemo(function(){return typeof be=="function"?be:function(lt){var ut=lt&<[be];return ut}},[be]),St=Object(S.c)(P),Pn=St.expandIcon,Nn=St.expandedRowKeys,Fn=St.defaultExpandedRowKeys,rn=St.defaultExpandAllRows,hn=St.expandedRowRender,On=St.onExpand,xn=St.onExpandedRowsChange,Hn=St.expandRowByClick,en=St.rowExpandable,Ln=St.expandIconColumnIndex,yn=St.expandedRowClassName,kn=St.childrenColumnName,_n=St.indentSize,vn=Pn||re,jn=kn||"children",Vn=p.useMemo(function(){return hn?"row":P.expandable&&At===Fe&&P.expandable.__PARENT_RENDER_ICON__||mt.some(function(lt){return lt&&Object(K.a)(lt)==="object"&<[jn]})?"nest":!1},[!!hn,mt]),Mn=p.useState(function(){return Fn||(rn?Me(mt,Xt,jn):[])}),zt=Object(i.a)(Mn,2),Zt=zt[0],sn=zt[1],Jt=p.useMemo(function(){return new Set(Nn||Zt||[])},[Nn,Zt]),tn=p.useCallback(function(lt){var ut=Xt(lt,mt.indexOf(lt)),Nt,Qt=Jt.has(ut);Qt?(Jt.delete(ut),Nt=Object(Ae.a)(Jt)):Nt=[].concat(Object(Ae.a)(Jt),[ut]),sn(Nt),On&&On(!Qt,lt),xn&&xn(Nt)},[Xt,Jt,mt,On,xn]),dn=p.useState(0),Xn=Object(i.a)(dn,2),Un=Xn[0],$n=Xn[1],Ma=Object(oe.b)(Object(R.a)(Object(R.a)(Object(R.a)({},P),St),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Xt,onTriggerExpand:tn,expandIcon:vn,expandIconColumnIndex:Ln,direction:Le}),At===Fe?Ot:null),Sa=Object(i.a)(Ma,2),Gn=Sa[0],Pt=Sa[1],Yn=p.useMemo(function(){return{columns:Gn,flattenColumns:Pt}},[Gn,Pt]),Jn=p.useRef(),Ta=p.useRef(),fn=p.useRef(),Ha=p.useState(!1),Ra=Object(i.a)(Ha,2),oa=Ra[0],Va=Ra[1],Xa=p.useState(!1),ra=Object(i.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=$(new Map),Aa=Object(i.a)(Ga,2),Ya=Aa[0],Ja=Aa[1],bn=Object(a.a)(Pt),ia=bn.map(function(lt){return Ya.get(lt)}),wa=p.useMemo(function(){return ia},[ia.join("_")]),sa=g(wa,Pt.length,Le),nn=we&&Object(a.d)(we.y),pn=we&&Object(a.d)(we.x),mn=pn&&Pt.some(function(lt){var ut=lt.fixed;return ut}),la=p.useRef(),In=Ee(Kt,Ce),Kn=In.isSticky,Da=In.offsetHeader,Qa=In.offsetScroll,Pa=In.stickyClassName,ua,Zn,Sn;nn&&(Zn={overflowY:"scroll",maxHeight:we.y}),pn&&(ua={overflowX:"auto"},nn||(Zn={overflowY:"hidden"}),Sn={width:we.x===!0?"auto":we.x,minWidth:"100%"});var En=p.useCallback(function(lt,ut){Ja(function(Nt){var Qt=new Map(Nt);return Qt.set(lt,ut),Qt})},[]),qn=ne(null),Na=Object(i.a)(qn,2),La=Na[0],ka=Na[1];function ea(lt,ut){if(!ut)return;typeof ut=="function"?ut(lt):ut.scrollLeft!==lt&&(ut.scrollLeft=lt)}var Tn=function(ut){var Nt=ut.currentTarget,Qt=ut.scrollLeft,zn=typeof Qt=="number"?Qt:Nt.scrollLeft,za=Nt||Ue;if(!ka()||ka()===za){var ba;La(za),ea(zn,Ta.current),ea(zn,fn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Nt){var Wa=Nt.scrollWidth,Ba=Nt.clientWidth;Va(zn>0),$a(zn0?[].concat(Object(R.a)(w),Object(R.a)(ae(l).map(function(a){return Object(Ae.a)({fixed:y},a)}))):[].concat(Object(R.a)(w),[Object(Ae.a)(Object(Ae.a)({},Y),{},{fixed:y})])},[])}function xe(U){for(var w=!0,Y=0;Y=0;l-=1){var a=U[l];if(y&&a.fixed!=="right")y=!1;else if(!y&&a.fixed==="right"){Object(q.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function he(U){return U.map(function(w){var Y=w.fixed,O=Object(K.a)(w,["fixed"]),y=Y;return Y==="left"?y="right":Y==="right"&&(y="left"),Object(Ae.a)({fixed:y},O)})}function ce(U,w){var Y=U.prefixCls,O=U.columns,y=U.children,l=U.expandable,a=U.expandedKeys,v=U.getRowKey,s=U.onTriggerExpand,z=U.expandIcon,H=U.rowExpandable,x=U.expandIconColumnIndex,S=U.direction,h=U.expandRowByClick,V=i.useMemo(function(){return O||B(y)},[O,y]),G=i.useMemo(function(){if(l){var ie,k=x||0,F=V[k],C=(ie={},Object(L.a)(ie,W.a,{className:"".concat(Y,"-expand-icon-col")}),Object(L.a)(ie,"title",""),Object(L.a)(ie,"fixed",F?F.fixed:null),Object(L.a)(ie,"className","".concat(Y,"-row-expand-icon-cell")),Object(L.a)(ie,"render",function(j,A,J){var se=v(A,J),ye=a.has(se),Z=H?H(A):!0,oe=z({prefixCls:Y,expanded:ye,expandable:Z,record:A,onExpand:s});return h?i.createElement("span",{onClick:function(te){return te.stopPropagation()}},oe):oe}),ie),b=V.slice();return k>=0&&b.splice(k,0,C),b}return V},[l,V,v,a,z,S]),ee=i.useMemo(function(){var ie=G;return w&&(ie=w(ie)),ie.length||(ie=[{render:function(){return null}}]),ie},[w,G,S]),ge=i.useMemo(function(){return S==="rtl"?he(ae(ee)):ae(ee)},[ee,S]);return[ee,ge]}Oe.b=ce},"y0+3":function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return ae}),n.d(Oe,"b",function(){return he});var L=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Ae={cssFloat:1,styleFloat:1,float:1};function K(ce){return ce.nodeType===1?ce.ownerDocument.defaultView.getComputedStyle(ce,null):{}}function i(ce,U,w){if(U=U.toLowerCase(),w==="auto"){if(U==="height")return ce.offsetHeight;if(U==="width")return ce.offsetWidth}return U in R||(R[U]=L.test(U)),R[U]?parseFloat(w)||0:w}function p(ce,U){var w=arguments.length,Y=K(ce);return U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,w===1?Y:i(ce,U,Y[U]||ce.style[U])}function q(ce,U,w){var Y=arguments.length;if(U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,Y===3)return typeof w=="number"&&L.test(U)&&(w="".concat(w,"px")),ce.style[U]=w,w;for(var O in U)U.hasOwnProperty(O)&&q(ce,O,U[O]);return K(ce)}function le(ce){return ce===document.body?document.documentElement.clientWidth:ce.offsetWidth}function W(ce){return ce===document.body?window.innerHeight||document.documentElement.clientHeight:ce.offsetHeight}function B(){var ce=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),U=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ce,height:U}}function ae(){var ce=document.documentElement.clientWidth,U=window.innerHeight||document.documentElement.clientHeight;return{width:ce,height:U}}function xe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function he(ce){var U=ce.getBoundingClientRect(),w=document.documentElement;return{left:U.left+(window.pageXOffset||w.scrollLeft)-(w.clientLeft||document.body.clientLeft||0),top:U.top+(window.pageYOffset||w.scrollTop)-(w.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(A,",").concat(A," 0 1 1 ").concat(-ye,",").concat(Z),ue=Math.PI*2*A,te={stroke:C,strokeDasharray:"".concat(F/100*(ue-I),"px ").concat(ue,"px"),strokeDashoffset:"-".concat(I/2+k/100*(ue-I),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:oe,pathStyle:te}}var ee=function(F){var C=F.prefixCls,b=F.strokeWidth,I=F.trailWidth,j=F.gapDegree,A=F.gapPosition,J=F.trailColor,se=F.strokeLinecap,ye=F.style,Z=F.className,oe=F.strokeColor,ue=F.percent,te=H(F,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),$=Object(L.useMemo)(function(){return S+=1,S},[]),ne=G(0,100,J,b,j,A),o=ne.pathString,g=ne.pathStyle,c=V(ue),N=V(oe),Q=N.find(function(je){return Object.prototype.toString.call(je)==="[object Object]"}),re=p(c),Me=y(re,1),fe=Me[0],_e=function(){var me=0;return c.map(function(Ee,Be){var Ue=N[Be]||N[N.length-1],Fe=Object.prototype.toString.call(Ue)==="[object Object]"?"url(#".concat(C,"-gradient-").concat($,")"):"",Xe=G(me,Ee,Ue,b,j,A);return me+=Ee,R.a.createElement("path",{key:Be,className:"".concat(C,"-circle-path"),d:Xe.pathString,stroke:Fe,strokeLinecap:se,strokeWidth:b,opacity:Ee===0?0:1,fillOpacity:"0",style:Xe.pathStyle,ref:fe[Be]})})};return R.a.createElement("svg",O({className:K()("".concat(C,"-circle"),Z),viewBox:"0 0 100 100",style:ye},te),Q&&R.a.createElement("defs",null,R.a.createElement("linearGradient",{id:"".concat(C,"-gradient-").concat($),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Q).sort(function(je,me){return h(je)-h(me)}).map(function(je,me){return R.a.createElement("stop",{key:me,offset:je,stopColor:Q[je]})}))),R.a.createElement("path",{className:"".concat(C,"-circle-trail"),d:o,stroke:J,strokeLinecap:se,strokeWidth:I||b,fillOpacity:"0",style:g}),_e().reverse())};ee.defaultProps=i;var ge=ee,ie={Line:Y,Circle:ge}},hW8S:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return K}),n.d(Oe,"c",function(){return i}),n.d(Oe,"b",function(){return p});var L=n("VTBJ"),R=n("Ff2n"),Ae=n("Kwbf"),K="RC_TABLE_INTERNAL_COL_DEFINE";function i(q){var le=q.expandable,W=Object(R.a)(q,["expandable"]);return"expandable"in q?Object(L.a)(Object(L.a)({},W),le):W}function p(q){return Object.keys(q).reduce(function(le,W){return(W.substr(0,5)==="data-"||W.substr(0,5)==="aria-")&&(le[W]=q[W]),le},{})}},k3GJ:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return mo});var L=n("rePB"),R=n("ODXe"),Ae=n("Ff2n"),K=n("VTBJ"),i=n("q1tI"),p=n("TSYQ"),q=n.n(p),le=n("Zm9Q"),W=n("6cGi"),B=n("KQm4"),ae=n("xEkU"),xe=n.n(ae),he=n("t23M");function ce(u){var E=Object(i.useRef)(),M=Object(i.useRef)(!1);function f(){for(var e=arguments.length,r=new Array(e),t=0;tw&&(de=w-pe),Object(i.useMemo)(function(){if(!r.length)return[0,0];for(var Se=r.length,Ve=Se,tt=0;tt_+de){Ve=tt-1;break}}for(var at=0,nt=Se-1;nt>=0;nt-=1){var Qe=u.get(r[nt].key)||a;if(Qe[T]<_){at=nt+1;break}}return[at,Ve]},[u,_,de,t,r.map(function(Se){return Se.key}).join("_"),d])}var s=n("wx14"),z=n("1OyB"),H=n("vuIU"),x=n("JX7q"),S=n("Ji7U"),h=n("LK+K"),V=n("I8Z2"),G=n("bT9E"),ee=n("2GS6"),ge=n("Gytx"),ie=n.n(ge),k=n("U8pU"),F=/iPhone/i,C=/iPod/i,b=/iPad/i,I=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,J=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,se=/Windows Phone/i,ye=/\bWindows(?:.+)ARM\b/i,Z=/BlackBerry/i,oe=/BB10/i,ue=/Opera Mini/i,te=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function ne(u,E){return u.test(E)}function o(u){var E=u||(typeof navigator!="undefined"?navigator.userAgent:""),M=(E||"").split("[FBAN");if(typeof M[1]!="undefined"){var f=M,e=Object(R.a)(f,1);E=e[0]}if(M=E.split("Twitter"),typeof M[1]!="undefined"){var r=M,t=Object(R.a)(r,1);E=t[0]}var d={apple:{phone:ne(F,E)&&!ne(se,E),ipod:ne(C,E),tablet:!ne(F,E)&&ne(b,E)&&!ne(se,E),device:(ne(F,E)||ne(C,E)||ne(b,E))&&!ne(se,E)},amazon:{phone:ne(A,E),tablet:!ne(A,E)&&ne(J,E),device:ne(A,E)||ne(J,E)},android:{phone:!ne(se,E)&&ne(A,E)||!ne(se,E)&&ne(I,E),tablet:!ne(se,E)&&!ne(A,E)&&!ne(I,E)&&(ne(J,E)||ne(j,E)),device:!ne(se,E)&&(ne(A,E)||ne(J,E)||ne(I,E)||ne(j,E))||ne(/\bokhttp\b/i,E)},windows:{phone:ne(se,E),tablet:ne(ye,E),device:ne(se,E)||ne(ye,E)},other:{blackberry:ne(Z,E),blackberry10:ne(oe,E),opera:ne(ue,E),firefox:ne($,E),chrome:ne(te,E),device:ne(Z,E)||ne(oe,E)||ne(ue,E)||ne($,E)||ne(te,E)},any:null,phone:null,tablet:null};return d.any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet,d}var g=Object(K.a)(Object(K.a)({},o()),{},{isMobile:o}),c=g;function N(){}function Q(u,E,M){var f=E||"";return u.key||"".concat(f,"item_").concat(M)}function re(u){return"".concat(u,"-menu-")}function Me(u,E){var M=-1;i.Children.forEach(u,function(f){M+=1,f&&f.type&&f.type.isMenuItemGroup?i.Children.forEach(f.props.children,function(e){M+=1,E(e,M)}):E(f,M)})}function fe(u,E,M){if(!u||M.find)return;i.Children.forEach(u,function(f){if(f){var e=f.type;if(!e||!(e.isSubMenu||e.isMenuItem||e.isMenuItemGroup))return;E.indexOf(f.key)!==-1?M.find=!0:f.props.children&&fe(f.props.children,E,M)}})}var _e=["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"],je=function(E){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=E&&typeof E.getBoundingClientRect=="function"&&E.getBoundingClientRect().width;if(f){if(M){var e=getComputedStyle(E),r=e.marginLeft,t=e.marginRight;f+=+r.replace("px","")+ +t.replace("px","")}f=+f.toFixed(6)}return f||0},me=function(E,M,f){E&&Object(k.a)(E.style)==="object"&&(E.style[M]=f)},Ee=function(){return c.any},Be=n("bdgK"),Ue=n("i8i4"),Fe=n.n(Ue),Xe=n("wgJM"),Ne=n("l4aY"),_t=n("m+aA"),P=n("c+Xe"),ve=n("zT1h"),Ce=n("QC+M");function we(u,E,M){return M?u[0]===E[0]:u[0]===E[0]&&u[1]===E[1]}function Pe(u,E,M){var f=u[E]||{};return Object(K.a)(Object(K.a)({},f),M)}function Te(u,E,M,f){for(var e=M.points,r=Object.keys(u),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;E();var r=Object(Xe.a)(function(){e<=1?f({isCanceled:function(){return r!==u.current}}):M(f,e-1)});u.current=r}return i.useEffect(function(){return function(){E()}},[]),[M,E]},Pn=[jt,xt,ht,et],Nn=!1,Fn=!0;function rn(u){return u===ht||u===et}var hn=function(u,E){var M=i.useState(Ht),f=Object(R.a)(M,2),e=f[0],r=f[1],t=St(),d=Object(R.a)(t,2),m=d[0],T=d[1];function _(){r(jt)}return Xt(function(){if(e!==Ht&&e!==et){var w=Pn.indexOf(e),X=Pn[w+1],pe=E(e);pe===Nn?r(X):m(function(de){function Se(){if(de.isCanceled())return;r(X)}pe===!0?Se():Promise.resolve(pe).then(Se)})}},[u,e]),i.useEffect(function(){return function(){T()}},[]),[_,e]},On=function(u){var E=Object(i.useRef)(),M=Object(i.useRef)(u);M.current=u;var f=i.useCallback(function(t){M.current(t)},[]);function e(t){t&&(t.removeEventListener(Ft,f),t.removeEventListener(Je,f))}function r(t){E.current&&E.current!==t&&e(E.current),t&&t!==E.current&&(t.addEventListener(Ft,f),t.addEventListener(Je,f),E.current=t)}return i.useEffect(function(){return function(){e(E.current)}},[]),[r,e]};function xn(u,E,M,f){var e=f.motionEnter,r=e===void 0?!0:e,t=f.motionAppear,d=t===void 0?!0:t,m=f.motionLeave,T=m===void 0?!0:m,_=f.motionDeadline,w=f.motionLeaveImmediately,X=f.onAppearPrepare,pe=f.onEnterPrepare,de=f.onLeavePrepare,Se=f.onAppearStart,Ve=f.onEnterStart,tt=f.onLeaveStart,Ye=f.onAppearActive,at=f.onEnterActive,nt=f.onLeaveActive,Qe=f.onAppearEnd,Ze=f.onEnterEnd,dt=f.onLeaveEnd,ot=f.onVisibleChanged,Lt=Dt(),gt=Object(R.a)(Lt,2),We=gt[0],ze=gt[1],rt=Dt(Ot),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=Dt(null),pt=Object(R.a)(Tt,2),Ct=pt[0],wt=pt[1],$t=Object(i.useRef)(!1),an=Object(i.useRef)(null),Ut=Object(i.useRef)(!1),on=Object(i.useRef)(null);function gn(){var Rt=M();return Rt||on.current}var ln=Object(i.useRef)(!1);function un(Rt){var bt=gn();if(Rt&&!Rt.deadline&&Rt.target!==bt)return;var Yt;ke===kt&&ln.current?Yt=Qe==null?void 0:Qe(bt,Rt):ke===Kt&&ln.current?Yt=Ze==null?void 0:Ze(bt,Rt):ke===mt&&ln.current&&(Yt=dt==null?void 0:dt(bt,Rt)),Yt!==!1&&!Ut.current&&(ft(Ot),wt(null))}var It=On(un),qt=Object(R.a)(It,1),Gt=qt[0],Wt=i.useMemo(function(){var Rt,bt,Yt;switch(ke){case"appear":return Rt={},Object(L.a)(Rt,jt,X),Object(L.a)(Rt,xt,Se),Object(L.a)(Rt,ht,Ye),Rt;case"enter":return bt={},Object(L.a)(bt,jt,pe),Object(L.a)(bt,xt,Ve),Object(L.a)(bt,ht,at),bt;case"leave":return Yt={},Object(L.a)(Yt,jt,de),Object(L.a)(Yt,xt,tt),Object(L.a)(Yt,ht,nt),Yt;default:return{}}},[ke]),An=hn(ke,function(Rt){if(Rt===jt){var bt=Wt[jt];return bt?bt(gn()):Nn}if(Mt in Wt){var Yt;wt(((Yt=Wt[Mt])===null||Yt===void 0?void 0:Yt.call(Wt,gn(),null))||null)}return Mt===ht&&(Gt(gn()),_>0&&(clearTimeout(an.current),an.current=setTimeout(function(){un({deadline:!0})},_))),Fn}),Dn=Object(R.a)(An,2),Wn=Dn[0],Mt=Dn[1],Cn=rn(Mt);ln.current=Cn,Xt(function(){ze(E);var Rt=$t.current;if($t.current=!0,!u)return;var bt;!Rt&&E&&d&&(bt=kt),Rt&&E&&r&&(bt=Kt),(Rt&&!E&&T||!Rt&&w&&!E&&T)&&(bt=mt),bt&&(ft(bt),Wn())},[E]),Object(i.useEffect)(function(){(ke===kt&&!d||ke===Kt&&!r||ke===mt&&!T)&&ft(Ot)},[d,r,T]),Object(i.useEffect)(function(){return function(){clearTimeout(an.current),Ut.current=!0}},[]),Object(i.useEffect)(function(){We!==void 0&&ke===Ot&&(ot==null||ot(We))},[We,ke]);var Bn=Ct;return Wt[jt]&&Mt===xt&&(Bn=Object(K.a)({transition:"none"},Bn)),[ke,Mt,Bn,We!=null?We:E]}var Hn=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){return Object(z.a)(this,M),E.apply(this,arguments)}return Object(H.a)(M,[{key:"render",value:function(){return this.props.children}}]),M}(i.Component),en=Hn;function Ln(u){var E=u;Object(k.a)(u)==="object"&&(E=u.transitionSupport);function M(e){return!!(e.motionName&&E)}var f=i.forwardRef(function(e,r){var t=e.visible,d=t===void 0?!0:t,m=e.removeOnLeave,T=m===void 0?!0:m,_=e.forceRender,w=e.children,X=e.motionName,pe=e.leavedClassName,de=e.eventProps,Se=M(e),Ve=Object(i.useRef)(),tt=Object(i.useRef)();function Ye(){try{return Object(_t.a)(Ve.current||tt.current)}catch(ft){return null}}var at=xn(Se,d,Ye,e),nt=Object(R.a)(at,4),Qe=nt[0],Ze=nt[1],dt=nt[2],ot=nt[3],Lt=i.useRef(ot);ot&&(Lt.current=!0);var gt=Object(i.useRef)(r);gt.current=r;var We=i.useCallback(function(ft){Ve.current=ft,Object(P.b)(gt.current,ft)},[]),ze,rt=Object(K.a)(Object(K.a)({},de),{},{visible:d});if(!w)ze=null;else if(Qe===Ot||!M(e))ot?ze=w(Object(K.a)({},rt),We):!T&&Lt.current?ze=w(Object(K.a)(Object(K.a)({},rt),{},{className:pe}),We):_?ze=w(Object(K.a)(Object(K.a)({},rt),{},{style:{display:"none"}}),We):ze=null;else{var st,ke;Ze===jt?ke="prepare":rn(Ze)?ke="active":Ze===xt&&(ke="start"),ze=w(Object(K.a)(Object(K.a)({},rt),{},{className:q()(At(X,Qe),(st={},Object(L.a)(st,At(X,"".concat(Qe,"-").concat(ke)),ke),Object(L.a)(st,X,typeof X=="string"),st)),style:dt}),We)}return i.createElement(en,{ref:tt},ze)});return f.displayName="CSSMotion",f}var yn=Ln(vt),kn="add",_n="keep",vn="remove",jn="removed";function Vn(u){var E;return u&&Object(k.a)(u)==="object"&&"key"in u?E=u:E={key:u},Object(K.a)(Object(K.a)({},E),{},{key:String(E.key)})}function Mn(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return u.map(Vn)}function zt(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=[],f=0,e=E.length,r=Mn(u),t=Mn(E);r.forEach(function(T){for(var _=!1,w=f;w1});return m.forEach(function(T){M=M.filter(function(_){var w=_.key,X=_.status;return w!==T||X!==vn}),M.forEach(function(_){_.key===T&&(_.status=_n)})}),M}var Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sn(u){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yn,M=function(f){Object(S.a)(r,f);var e=Object(h.a)(r);function r(){var t;return Object(z.a)(this,r),t=e.apply(this,arguments),t.state={keyEntities:[]},t.removeKey=function(d){t.setState(function(m){var T=m.keyEntities;return{keyEntities:T.map(function(_){return _.key!==d?_:Object(K.a)(Object(K.a)({},_),{},{status:jn})})}})},t}return Object(H.a)(r,[{key:"render",value:function(){var d=this,m=this.state.keyEntities,T=this.props,_=T.component,w=T.children,X=T.onVisibleChanged,pe=Object(Ae.a)(T,["component","children","onVisibleChanged"]),de=_||i.Fragment,Se={};return Zt.forEach(function(Ve){Se[Ve]=pe[Ve],delete pe[Ve]}),delete pe.keys,i.createElement(de,pe,m.map(function(Ve){var tt=Ve.status,Ye=Object(Ae.a)(Ve,["status"]),at=tt===kn||tt===_n;return i.createElement(E,Object(s.a)({},Se,{key:Ye.key,visible:at,eventProps:Ye,onVisibleChanged:function(Qe){X==null||X(Qe,{key:Ye.key}),Qe||d.removeKey(Ye.key)}}),w)}))}}],[{key:"getDerivedStateFromProps",value:function(d,m){var T=d.keys,_=m.keyEntities,w=Mn(T),X=zt(_,w);return{keyEntities:X.filter(function(pe){var de=_.find(function(Se){var Ve=Se.key;return pe.key===Ve});return!(de&&de.status===jn&&pe.status===vn)})}}}]),r}(i.Component);return M.defaultProps={component:"div"},M}var Jt=sn(vt),tn=yn;function dn(u){var E=u.prefixCls,M=u.motion,f=u.animation,e=u.transitionName;return M||(f?{motionName:"".concat(E,"-").concat(f)}:e?{motionName:e}:null)}function Xn(u){var E=u.prefixCls,M=u.visible,f=u.zIndex,e=u.mask,r=u.maskMotion,t=u.maskAnimation,d=u.maskTransitionName;if(!e)return null;var m={};return(r||d||t)&&(m=Object(K.a)({motionAppear:!0},dn({motion:r,prefixCls:E,transitionName:d,animation:t}))),i.createElement(tn,Object(s.a)({},m,{visible:M,removeOnLeave:!0}),function(T){var _=T.className;return i.createElement("div",{style:{zIndex:f},className:q()("".concat(E,"-mask"),_)})})}var Un=n("9mu1"),$n=n("o0o1"),Ma=n.n($n),Sa=n("HaE+"),Gn=["measure","align",null,"motion"],Pt=function(u,E){var M=Object(i.useState)(null),f=Object(R.a)(M,2),e=f[0],r=f[1],t=Object(i.useRef)(),d=Object(i.useRef)(!1);function m(w){d.current||r(w)}function T(){Xe.a.cancel(t.current)}function _(w){T(),t.current=Object(Xe.a)(function(){m(function(X){switch(e){case"align":return"motion";case"motion":return"stable";default:}return X}),w==null||w()})}return Object(i.useEffect)(function(){m("measure")},[u]),Object(i.useEffect)(function(){switch(e){case"measure":E();break;default:}e&&(t.current=Object(Xe.a)(Object(Sa.a)(Ma.a.mark(function w(){var X,pe;return Ma.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:X=Gn.indexOf(e),pe=Gn[X+1],pe&&X!==-1&&m(pe);case 3:case"end":return Se.stop()}},w)}))))},[e]),Object(i.useEffect)(function(){return function(){d.current=!0,T()}},[]),[e,_]},Yn=function(u){var E=i.useState({width:0,height:0}),M=Object(R.a)(E,2),f=M[0],e=M[1];function r(d){e({width:d.offsetWidth,height:d.offsetHeight})}var t=i.useMemo(function(){var d={};if(u){var m=f.width,T=f.height;u.indexOf("height")!==-1&&T?d.height=T:u.indexOf("minHeight")!==-1&&T&&(d.minHeight=T),u.indexOf("width")!==-1&&m?d.width=m:u.indexOf("minWidth")!==-1&&m&&(d.minWidth=m)}return d},[u,f]);return[t,r]},Jn=i.forwardRef(function(u,E){var M=u.visible,f=u.prefixCls,e=u.className,r=u.style,t=u.children,d=u.zIndex,m=u.stretch,T=u.destroyPopupOnHide,_=u.forceRender,w=u.align,X=u.point,pe=u.getRootDomNode,de=u.getClassNameFromAlign,Se=u.onAlign,Ve=u.onMouseEnter,tt=u.onMouseLeave,Ye=u.onMouseDown,at=u.onTouchStart,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useState)(),dt=Object(R.a)(Ze,2),ot=dt[0],Lt=dt[1],gt=Yn(m),We=Object(R.a)(gt,2),ze=We[0],rt=We[1];function st(){m&&rt(pe())}var ke=Pt(M,st),ft=Object(R.a)(ke,2),Tt=ft[0],pt=ft[1],Ct=Object(i.useRef)();function wt(){return X||pe}function $t(){var It;(It=nt.current)===null||It===void 0||It.forceAlign()}function an(It,qt){var Gt=de(qt);ot!==Gt&&Lt(Gt),Tt==="align"&&(ot!==Gt?Promise.resolve().then(function(){$t()}):pt(function(){var Wt;(Wt=Ct.current)===null||Wt===void 0||Wt.call(Ct)}),Se==null||Se(It,qt))}var Ut=Object(K.a)({},dn(u));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(It){var qt=Ut[It];Ut[It]=function(Gt,Wt){return pt(),qt==null?void 0:qt(Gt,Wt)}});function on(){return new Promise(function(It){Ct.current=It})}i.useEffect(function(){!Ut.motionName&&Tt==="motion"&&pt()},[Ut.motionName,Tt]),i.useImperativeHandle(E,function(){return{forceAlign:$t,getElement:function(){return Qe.current}}});var gn=Object(K.a)(Object(K.a)({},ze),{},{zIndex:d,opacity:Tt==="motion"||Tt==="stable"||!M?void 0:0,pointerEvents:Tt==="stable"?void 0:"none"},r),ln=!0;(w==null?void 0:w.points)&&(Tt==="align"||Tt==="stable")&&(ln=!1);var un=t;return i.Children.count(t)>1&&(un=i.createElement("div",{className:"".concat(f,"-content")},t)),i.createElement(tn,Object(s.a)({visible:M,ref:Qe,leavedClassName:"".concat(f,"-hidden")},Ut,{onAppearPrepare:on,onEnterPrepare:on,removeOnLeave:T,forceRender:_}),function(It,qt){var Gt=It.className,Wt=It.style,An=q()(f,e,ot,Gt);return i.createElement(Un.a,{target:wt(),key:"popup",ref:nt,monitorWindowResize:!0,disabled:ln,align:w,onAlign:an},i.createElement("div",{ref:qt,className:An,onMouseEnter:Ve,onMouseLeave:tt,onMouseDownCapture:Ye,onTouchStartCapture:at,style:Object(K.a)(Object(K.a)({},Wt),gn)},un))})});Jn.displayName="PopupInner";var Ta=Jn,fn=i.forwardRef(function(u,E){var M=u.prefixCls,f=u.visible,e=u.zIndex,r=u.children,t=u.mobile;t=t===void 0?{}:t;var d=t.popupClassName,m=t.popupStyle,T=t.popupMotion,_=T===void 0?{}:T,w=t.popupRender,X=i.useRef();i.useImperativeHandle(E,function(){return{forceAlign:function(){},getElement:function(){return X.current}}});var pe=Object(K.a)({zIndex:e},m),de=r;return i.Children.count(r)>1&&(de=i.createElement("div",{className:"".concat(M,"-content")},r)),w&&(de=w(de)),i.createElement(tn,Object(s.a)({visible:f,ref:X,removeOnLeave:!0},_),function(Se,Ve){var tt=Se.className,Ye=Se.style,at=q()(M,d,tt);return i.createElement("div",{ref:Ve,className:at,style:Object(K.a)(Object(K.a)({},Ye),pe)},de)})});fn.displayName="MobilePopupInner";var Ha=fn,Ra=["visible","mobile"],oa=i.forwardRef(function(u,E){var M=u.visible,f=u.mobile,e=Object(Ae.a)(u,Ra),r=Object(i.useState)(M),t=Object(R.a)(r,2),d=t[0],m=t[1],T=Object(i.useState)(!1),_=Object(R.a)(T,2),w=_[0],X=_[1],pe=Object(K.a)(Object(K.a)({},e),{},{visible:d});Object(i.useEffect)(function(){m(M),M&&f&&X(Re())},[M,f]);var de=w?i.createElement(Ha,Object(s.a)({},pe,{mobile:f,ref:E})):i.createElement(Ta,Object(s.a)({},pe,{ref:E}));return i.createElement("div",null,i.createElement(Xn,pe),de)});oa.displayName="Popup";var Va=oa,Xa=i.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(u){return u?u.ownerDocument:window.document}var Aa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(u){var E=function(M){Object(S.a)(e,M);var f=Object(h.a)(e);function e(r){var t;Object(z.a)(this,e),t=f.call(this,r),t.popupRef=i.createRef(),t.triggerRef=i.createRef(),t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(m){var T=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",m),t.delaySetPopupVisible(!0,T,T?null:m)},t.onMouseMove=function(m){t.fireEvents("onMouseMove",m),t.setPoint(m)},t.onMouseLeave=function(m){t.fireEvents("onMouseLeave",m),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(m){var T;if(m.relatedTarget&&!m.relatedTarget.setTimeout&&Object(Ne.a)((T=t.popupRef.current)===null||T===void 0?void 0:T.getElement(),m.relatedTarget))return;t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(m){t.fireEvents("onFocus",m),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(m){t.fireEvents("onMouseDown",m),t.preClickTime=Date.now()},t.onTouchStart=function(m){t.fireEvents("onTouchStart",m),t.preTouchTime=Date.now()},t.onBlur=function(m){t.fireEvents("onBlur",m),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(m){m.preventDefault(),t.fireEvents("onContextMenu",m),t.setPopupVisible(!0,m)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(m){if(t.fireEvents("onClick",m),t.focusTime){var T;if(t.preClickTime&&t.preTouchTime?T=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?T=t.preClickTime:t.preTouchTime&&(T=t.preTouchTime),Math.abs(T-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&m&&m.preventDefault&&m.preventDefault();var _=!t.state.popupVisible;(t.isClickToHide()&&!_||_&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,m)},t.onPopupMouseDown=function(){if(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout(function(){t.hasPopupMouseDown=!1},0),t.context){var m;(m=t.context).onPopupMouseDown.apply(m,arguments)}},t.onDocumentClick=function(m){if(t.props.mask&&!t.props.maskClosable)return;var T=m.target,_=t.getRootDomNode(),w=t.getPopupDomNode();(!Object(Ne.a)(_,T)||t.isContextMenuOnly())&&!Object(Ne.a)(w,T)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var m=t.props.getTriggerDOMNode;if(m)return m(t.triggerRef.current);try{var T=Object(_t.a)(t.triggerRef.current);if(T)return T}catch(_){}return Fe.a.findDOMNode(Object(x.a)(t))},t.getPopupClassNameFromAlign=function(m){var T=[],_=t.props,w=_.popupPlacement,X=_.builtinPlacements,pe=_.prefixCls,de=_.alignPoint,Se=_.getPopupClassNameFromAlign;return w&&X&&T.push(Te(X,pe,m,de)),Se&&T.push(Se(m)),T.join(" ")},t.getComponent=function(){var m=t.props,T=m.prefixCls,_=m.destroyPopupOnHide,w=m.popupClassName,X=m.onPopupAlign,pe=m.popupMotion,de=m.popupAnimation,Se=m.popupTransitionName,Ve=m.popupStyle,tt=m.mask,Ye=m.maskAnimation,at=m.maskTransitionName,nt=m.maskMotion,Qe=m.zIndex,Ze=m.popup,dt=m.stretch,ot=m.alignPoint,Lt=m.mobile,gt=m.forceRender,We=t.state,ze=We.popupVisible,rt=We.point,st=t.getPopupAlign(),ke={};return t.isMouseEnterToShow()&&(ke.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ke.onMouseLeave=t.onPopupMouseLeave),ke.onMouseDown=t.onPopupMouseDown,ke.onTouchStart=t.onPopupMouseDown,i.createElement(Va,Object(s.a)({prefixCls:T,destroyPopupOnHide:_,visible:ze,point:ot&&rt,className:w,align:st,onAlign:X,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},ke,{stretch:dt,getRootDomNode:t.getRootDomNode,style:Ve,mask:tt,zIndex:Qe,transitionName:Se,maskAnimation:Ye,maskTransitionName:at,maskMotion:nt,ref:t.popupRef,motion:pe,mobile:Lt,forceRender:gt}),typeof Ze=="function"?Ze():Ze)},t.attachParent=function(m){Xe.a.cancel(t.attachId);var T=t.props,_=T.getPopupContainer,w=T.getDocument,X=t.getRootDomNode(),pe;_?(X||_.length===0)&&(pe=_(X)):pe=w(t.getRootDomNode()).body,pe?pe.appendChild(m):t.attachId=Object(Xe.a)(function(){t.attachParent(m)})},t.getContainer=function(){var m=t.props.getDocument,T=m(t.getRootDomNode()).createElement("div");return T.style.position="absolute",T.style.top="0",T.style.left="0",T.style.width="100%",t.attachParent(T),T},t.setPoint=function(m){var T=t.props.alignPoint;if(!T||!m)return;t.setState({point:{pageX:m.pageX,pageY:m.pageY}})},t.handlePortalUpdate=function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)},t.triggerContextValue={onPopupMouseDown:t.onPopupMouseDown};var d;return"popupVisible"in r?d=!!r.popupVisible:d=!!r.defaultPopupVisible,t.state={prevPopupVisible:d,popupVisible:d},Aa.forEach(function(m){t["fire".concat(m)]=function(T){t.fireEvents(m,T)}}),t}return Object(H.a)(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t=this.props,d=this.state;if(d.popupVisible){var m;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(m=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ve.a)(m,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(m=m||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ve.a)(m,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(m=m||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ve.a)(m,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ve.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Xe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return((t=this.popupRef.current)===null||t===void 0?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,d=t.popupPlacement,m=t.popupAlign,T=t.builtinPlacements;return d&&T?Pe(T,d,m):m}},{key:"setPopupVisible",value:function(t,d){var m=this.props.alignPoint,T=this.state.popupVisible;this.clearDelayTimer(),T!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:T}),this.props.onPopupVisibleChange(t)),m&&d&&t&&this.setPoint(d)}},{key:"delaySetPopupVisible",value:function(t,d,m){var T=this,_=d*1e3;if(this.clearDelayTimer(),_){var w=m?{pageX:m.pageX,pageY:m.pageY}:null;this.delayTimer=window.setTimeout(function(){T.setPopupVisible(t,w),T.clearDelayTimer()},_)}else this.setPopupVisible(t,m)}},{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(t){var d=this.props.children.props,m=this.props;return d[t]&&m[t]?this["fire".concat(t)]:d[t]||m[t]}},{key:"isClickToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return t==="contextMenu"||t.length===1&&t[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("contextMenu")!==-1||m.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("click")!==-1||m.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("hover")!==-1||m.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("hover")!==-1||m.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var t=this.props,d=t.action,m=t.showAction;return d.indexOf("focus")!==-1||m.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var t=this.props,d=t.action,m=t.hideAction;return d.indexOf("focus")!==-1||m.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var t;(t=this.popupRef.current)===null||t===void 0||t.forceAlign()}}},{key:"fireEvents",value:function(t,d){var m=this.props.children.props[t];m&&m(d);var T=this.props[t];T&&T(d)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,d=this.props,m=d.children,T=d.forceRender,_=d.alignPoint,w=d.className,X=d.autoDestroy,pe=i.Children.only(m),de={key:"trigger"};this.isContextMenuToShow()?de.onContextMenu=this.onContextMenu:de.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(de.onClick=this.onClick,de.onMouseDown=this.onMouseDown,de.onTouchStart=this.onTouchStart):(de.onClick=this.createTwoChains("onClick"),de.onMouseDown=this.createTwoChains("onMouseDown"),de.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(de.onMouseEnter=this.onMouseEnter,_&&(de.onMouseMove=this.onMouseMove)):de.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?de.onMouseLeave=this.onMouseLeave:de.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(de.onFocus=this.onFocus,de.onBlur=this.onBlur):(de.onFocus=this.createTwoChains("onFocus"),de.onBlur=this.createTwoChains("onBlur"));var Se=q()(pe&&pe.props&&pe.props.className,w);Se&&(de.className=Se);var Ve=Object(K.a)({},de);Object(P.c)(pe)&&(Ve.ref=Object(P.a)(this.triggerRef,pe.ref));var tt=i.cloneElement(pe,Ve),Ye;return(t||this.popupRef.current||T)&&(Ye=i.createElement(u,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&X&&(Ye=null),i.createElement(ra.Provider,{value:this.triggerContextValue},tt,Ye)}}],[{key:"getDerivedStateFromProps",value:function(t,d){var m=t.popupVisible,T={};return m!==void 0&&d.popupVisible!==m&&(T.popupVisible=m,T.prevPopupVisible=d.popupVisible),T}}]),e}(i.Component);return E.contextType=ra,E.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:$a,getDocument:Ga,onPopupVisibleChange:Qn,afterPopupVisibleChange:Qn,onPopupAlign:Qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},E}var Ja=Ya(Ce.a),bn={adjustX:1,adjustY:1},ia={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},Da={topLeft:{points:["bl","tl"],overflow:bn,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bn,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bn,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bn,offset:[4,0]}},sa=ia,nn=0,pn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},mn=function(E,M,f){var e=re(M),r=E.getState();E.setState({defaultActiveFirst:Object(K.a)(Object(K.a)({},r.defaultActiveFirst),{},Object(L.a)({},e,f))})},la=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;Object(z.a)(this,M),e=E.call(this,f),e.onDestroy=function(_){e.props.onDestroy(_)},e.onKeyDown=function(_){var w=_.keyCode,X=e.menuInstance,pe=e.props.store,de=e.getVisible();if(w===D.a.ENTER)return e.onTitleClick(_),mn(pe,e.props.eventKey,!0),!0;if(w===D.a.RIGHT)return de?X.onKeyDown(_):(e.triggerOpenChange(!0),mn(pe,e.props.eventKey,!0)),!0;if(w===D.a.LEFT){var Se;if(de)Se=X.onKeyDown(_);else return;return Se||(e.triggerOpenChange(!1),Se=!0),Se}return de&&(w===D.a.UP||w===D.a.DOWN)?X.onKeyDown(_):void 0},e.onOpenChange=function(_){e.props.onOpenChange(_)},e.onPopupVisibleChange=function(_){e.triggerOpenChange(_,_?"mouseenter":"mouseleave")},e.onMouseEnter=function(_){var w=e.props,X=w.eventKey,pe=w.onMouseEnter,de=w.store;mn(de,e.props.eventKey,!1),pe({key:X,domEvent:_})},e.onMouseLeave=function(_){var w=e.props,X=w.parentMenu,pe=w.eventKey,de=w.onMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,domEvent:_})},e.onTitleMouseEnter=function(_){var w=e.props,X=w.eventKey,pe=w.onItemHover,de=w.onTitleMouseEnter;pe({key:X,hover:!0}),de({key:X,domEvent:_})},e.onTitleMouseLeave=function(_){var w=e.props,X=w.parentMenu,pe=w.eventKey,de=w.onItemHover,Se=w.onTitleMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,hover:!1}),Se({key:pe,domEvent:_})},e.onTitleClick=function(_){var w=Object(x.a)(e),X=w.props;if(X.onTitleClick({key:X.eventKey,domEvent:_}),X.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),mn(X.store,e.props.eventKey,!1)},e.onSubMenuClick=function(_){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(_))},e.onSelect=function(_){e.props.onSelect(_)},e.onDeselect=function(_){e.props.onDeselect(_)},e.getPrefixCls=function(){return"".concat(e.props.rootPrefixCls,"-submenu")},e.getActiveClassName=function(){return"".concat(e.getPrefixCls(),"-active")},e.getDisabledClassName=function(){return"".concat(e.getPrefixCls(),"-disabled")},e.getSelectedClassName=function(){return"".concat(e.getPrefixCls(),"-selected")},e.getOpenClassName=function(){return"".concat(e.props.rootPrefixCls,"-submenu-open")},e.getVisible=function(){return e.state.isOpen},e.getMode=function(){return e.state.mode},e.saveMenuInstance=function(_){e.menuInstance=_},e.addKeyPath=function(_){return Object(K.a)(Object(K.a)({},_),{},{keyPath:(_.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(_,w){var X=e.props.eventKey,pe=function(){e.onOpenChange({key:X,item:Object(x.a)(e),trigger:w,open:_})};w==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){pe()},0):pe()},e.isChildrenSelected=function(){var _={find:!1};return fe(e.props.children,e.props.selectedKeys,_),_.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var _=Ue.findDOMNode(e.menuInstance);if(_.offsetWidth>=e.subMenuTitle.offsetWidth)return;_.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(_){e.subMenuTitle=_},e.getBaseProps=function(){var _=Object(x.a)(e),w=_.props,X=e.getMode();return{mode:X==="horizontal"?"vertical":X,visible:e.getVisible(),level:w.level+1,inlineIndent:w.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:w.selectedKeys,eventKey:"".concat(w.eventKey,"-menu-"),openKeys:w.openKeys,motion:w.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:w.subMenuOpenDelay,parentMenu:Object(x.a)(e),subMenuCloseDelay:w.subMenuCloseDelay,forceSubMenuRender:w.forceSubMenuRender,triggerSubMenuAction:w.triggerSubMenuAction,builtinPlacements:w.builtinPlacements,defaultActiveFirst:w.store.getState().defaultActiveFirst[re(w.eventKey)],multiple:w.multiple,prefixCls:w.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:w.itemIcon,expandIcon:w.expandIcon,direction:w.direction}},e.getMotion=function(_,w){var X=Object(x.a)(e),pe=X.haveRendered,de=e.props,Se=de.motion,Ve=de.rootPrefixCls,tt=Object(K.a)(Object(K.a)({},Se),{},{leavedClassName:"".concat(Ve,"-hidden"),removeOnLeave:!1,motionAppear:pe||!w||_!=="inline"});return tt};var r=f.store,t=f.eventKey,d=r.getState(),m=d.defaultActiveFirst;e.isRootMenu=!1;var T=!1;return m&&(T=m[t]),mn(r,t,T),e.state={mode:f.mode,isOpen:f.isOpen},e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,r=this.props,t=r.mode,d=r.parentMenu,m=r.manualRef,T=r.isOpen,_=function(){e.setState({mode:t,isOpen:T})},w=T!==this.state.isOpen,X=t!==this.state.mode;if((X||w)&&(Xe.a.cancel(this.updateStateRaf),X?this.updateStateRaf=Object(Xe.a)(_):_()),m&&m(this),t!=="horizontal"||!(d==null?void 0:d.isRootMenu)||!T)return;this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var e=this.props,r=e.onDestroy,t=e.eventKey;r&&r(t),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Xe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,r){var t=this.getBaseProps();return i.createElement(ea,Object(s.a)({},t,{id:this.internalMenuId,className:e,style:r}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,r=this.getBaseProps(),t=r.mode,d=r.visible,m=r.forceSubMenuRender,T=r.direction,_=this.getMotion(t,d);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||d||m,!this.haveOpened)return i.createElement("div",null);var w=q()("".concat(r.prefixCls,"-sub"),Object(L.a)({},"".concat(r.prefixCls,"-rtl"),T==="rtl"));return this.isInlineMode()?i.createElement(tn,Object(s.a)({visible:r.visible,forceRender:m},_),function(X){var pe=X.className,de=X.style,Se=q()(w,pe);return e.renderPopupMenu(Se,de)}):this.renderPopupMenu(w)}},{key:"render",value:function(){var e,r,t,d=Object(K.a)({},this.props),m=this.getVisible(),T=this.getPrefixCls(),_=this.isInlineMode(),w=this.getMode(),X=q()(T,"".concat(T,"-").concat(w),(e={},Object(L.a)(e,d.className,!!d.className),Object(L.a)(e,this.getOpenClassName(),m),Object(L.a)(e,this.getActiveClassName(),d.active||m&&!_),Object(L.a)(e,this.getDisabledClassName(),d.disabled),Object(L.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(d.eventKey?this.internalMenuId="".concat(d.eventKey,"$Menu"):(nn+=1,this.internalMenuId="$__$".concat(nn,"$Menu")));var pe={},de={},Se={};d.disabled||(pe={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Se={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ve={},tt=d.direction,Ye=tt==="rtl";_&&(Ye?Ve.paddingRight=d.inlineIndent*d.level:Ve.paddingLeft=d.inlineIndent*d.level);var at={};this.getVisible()&&(at={"aria-owns":this.internalMenuId});var nt=null;w!=="horizontal"&&(nt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(nt=i.createElement(this.props.expandIcon,Object(K.a)({},this.props))));var Qe=i.createElement("div",Object(s.a)({ref:this.saveSubMenuTitle,style:Ve,className:"".concat(T,"-title"),role:"button"},Se,de,{"aria-expanded":m},at,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,nt||i.createElement("i",{className:"".concat(T,"-arrow")})),Ze=this.renderChildren(),dt=((r=d.parentMenu)===null||r===void 0?void 0:r.isRootMenu)?d.parentMenu.props.getPopupContainer:function(wt){return wt.parentNode},ot=pn[w],Lt=d.popupOffset?{offset:d.popupOffset}:{},gt=q()((t={},Object(L.a)(t,d.popupClassName,d.popupClassName&&!_),Object(L.a)(t,"".concat(T,"-rtl"),Ye),t)),We=d.disabled,ze=d.triggerSubMenuAction,rt=d.subMenuOpenDelay,st=d.forceSubMenuRender,ke=d.subMenuCloseDelay,ft=d.builtinPlacements;_e.forEach(function(wt){return delete d[wt]}),delete d.onClick;var Tt=Ye?Object(K.a)(Object(K.a)({},Da),ft):Object(K.a)(Object(K.a)({},ia),ft);delete d.direction;var pt=this.getBaseProps(),Ct=_?null:this.getMotion(pt.mode,pt.visible);return i.createElement("li",Object(s.a)({},d,pe,{className:X,role:"menuitem"}),i.createElement(Ja,{prefixCls:T,popupClassName:q()("".concat(T,"-popup"),gt),getPopupContainer:dt,builtinPlacements:Tt,popupPlacement:ot,popupVisible:_?!1:m,popupAlign:Lt,popup:_?null:Ze,action:We||_?[]:[ze],mouseEnterDelay:rt,mouseLeaveDelay:ke,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:st,popupMotion:Ct},Qe),_?Ze:null)}}]),M}(i.Component);la.defaultProps={onMouseEnter:N,onMouseLeave:N,onTitleMouseEnter:N,onTitleMouseLeave:N,onTitleClick:N,manualRef:N,mode:"vertical",title:""};var In=Object(V.b)(function(u,E){var M=u.openKeys,f=u.activeKey,e=u.selectedKeys,r=E.eventKey,t=E.subMenuKey;return{isOpen:M.indexOf(r)>-1,active:f[t]===r,selectedKeys:e}})(la);In.isSubMenu=!0;var Kn=In,wa="menuitem-overflowed",Qa=.5,Pa=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.resizeObserver=null,f.mutationObserver=null,f.originalTotalWidth=0,f.overflowedItems=[],f.menuItemSizes=[],f.cancelFrameId=null,f.state={lastVisibleIndex:void 0},f.childRef=i.createRef(),f.getMenuItemNodes=function(){var e=f.props.prefixCls,r=f.childRef.current;return r?[].slice.call(r.children).filter(function(t){return t.className.split(" ").indexOf("".concat(e,"-overflowed-submenu"))<0}):[]},f.getOverflowedSubMenuItem=function(e,r,t){var d=f.props,m=d.overflowedIndicator,T=d.level,_=d.mode,w=d.prefixCls,X=d.theme;if(T!==1||_!=="horizontal")return null;var pe=f.props.children[0],de=pe.props,Se=de.children,Ve=de.title,tt=de.style,Ye=Object(Ae.a)(de,["children","title","style"]),at=Object(K.a)({},tt),nt="".concat(e,"-overflowed-indicator"),Qe="".concat(e,"-overflowed-indicator");r.length===0&&t!==!0?at=Object(K.a)(Object(K.a)({},at),{},{display:"none"}):t&&(at=Object(K.a)(Object(K.a)({},at),{},{visibility:"hidden",position:"absolute"}),nt="".concat(nt,"-placeholder"),Qe="".concat(Qe,"-placeholder"));var Ze=X?"".concat(w,"-").concat(X):"",dt={};return _e.forEach(function(ot){Ye[ot]!==void 0&&(dt[ot]=Ye[ot])}),i.createElement(Kn,Object(s.a)({title:m,className:"".concat(w,"-overflowed-submenu"),popupClassName:Ze},dt,{key:nt,eventKey:Qe,disabled:!1,style:at}),r)},f.setChildrenWidthAndResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=e.children;if(!r||r.length===0)return;var t=e.children[r.length-1];me(t,"display","inline-block");var d=f.getMenuItemNodes(),m=d.filter(function(T){return T.className.split(" ").indexOf(wa)>=0});m.forEach(function(T){me(T,"display","inline-block")}),f.menuItemSizes=d.map(function(T){return je(T,!0)}),m.forEach(function(T){me(T,"display","none")}),f.overflowedIndicatorWidth=je(e.children[e.children.length-1],!0),f.originalTotalWidth=f.menuItemSizes.reduce(function(T,_){return T+_},0),f.handleResize(),me(t,"display","none")},f.handleResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=je(e);f.overflowedItems=[];var t=0,d;f.originalTotalWidth>r+Qa&&(d=-1,f.menuItemSizes.forEach(function(m){t+=m,t+f.overflowedIndicatorWidth<=r&&(d+=1)})),f.setState({lastVisibleIndex:d})},f}return Object(H.a)(M,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var r=this.childRef.current;if(!r)return;this.resizeObserver=new Be.default(function(t){t.forEach(function(){var d=e.cancelFrameId;cancelAnimationFrame(d),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)})}),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(r.children).concat(r).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(r,{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(e){var r=this,t=this.state.lastVisibleIndex;return(e||[]).reduce(function(d,m,T){var _=m;if(r.props.mode==="horizontal"){var w=r.getOverflowedSubMenuItem(m.props.eventKey,[]);t!==void 0&&r.props.className.indexOf("".concat(r.props.prefixCls,"-root"))!==-1&&(T>t&&(_=i.cloneElement(m,{style:{display:"none"},eventKey:"".concat(m.props.eventKey,"-hidden"),className:"".concat(wa)})),T===t+1&&(r.overflowedItems=e.slice(t+1).map(function(pe){return i.cloneElement(pe,{key:pe.props.eventKey,mode:"vertical-left"})}),w=r.getOverflowedSubMenuItem(m.props.eventKey,r.overflowedItems)));var X=[].concat(Object(B.a)(d),[w,_]);return T===e.length-1&&X.push(r.getOverflowedSubMenuItem(m.props.eventKey,[],!0)),X}return[].concat(Object(B.a)(d),[_])},[])}},{key:"render",value:function(){var e=this.props,r=e.visible,t=e.prefixCls,d=e.overflowedIndicator,m=e.mode,T=e.level,_=e.tag,w=e.children,X=e.theme,pe=Object(Ae.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=_;return i.createElement(de,Object(s.a)({ref:this.childRef},pe),this.renderChildren(w))}}]),M}(i.Component);Pa.defaultProps={tag:"div",className:""};var ua=Pa;function Zn(u){return u.length?u.every(function(E){return!!E.props.disabled}):!0}function Sn(u,E,M){var f=u.getState();u.setState({activeKey:Object(K.a)(Object(K.a)({},f.activeKey),{},Object(L.a)({},E,M))})}function En(u){return u.eventKey||"0-menu-"}function qn(u,E){var M=E,f=u.children,e=u.eventKey;if(M){var r;if(Me(f,function(t,d){t&&t.props&&!t.props.disabled&&M===Q(t,e,d)&&(r=!0)}),r)return M}return M=null,u.defaultActiveFirst&&Me(f,function(t,d){!M&&t&&!t.props.disabled&&(M=Q(t,e,d))}),M}function Na(u){if(!u)return;var E=this.instanceArray.indexOf(u);E!==-1?this.instanceArray[E]=u:this.instanceArray.push(u)}var La=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;return Object(z.a)(this,M),e=E.call(this,f),e.onKeyDown=function(r,t){var d=r.keyCode,m;if(e.getFlatInstanceArray().forEach(function(_){_&&_.props.active&&_.onKeyDown&&(m=_.onKeyDown(r))}),m)return 1;var T=null;return(d===D.a.UP||d===D.a.DOWN)&&(T=e.step(d===D.a.UP?-1:1)),T?(r.preventDefault(),Sn(e.props.store,En(e.props),T.props.eventKey),typeof t=="function"&&t(T),1):void 0},e.onItemHover=function(r){var t=r.key,d=r.hover;Sn(e.props.store,En(e.props),d?t:null)},e.onDeselect=function(r){e.props.onDeselect(r)},e.onSelect=function(r){e.props.onSelect(r)},e.onClick=function(r){e.props.onClick(r)},e.onOpenChange=function(r){e.props.onOpenChange(r)},e.onDestroy=function(r){e.props.onDestroy(r)},e.getFlatInstanceArray=function(){return e.instanceArray},e.step=function(r){var t=e.getFlatInstanceArray(),d=e.props.store.getState().activeKey[En(e.props)],m=t.length;if(!m)return null;r<0&&(t=t.concat().reverse());var T=-1;if(t.every(function(pe,de){return pe&&pe.props.eventKey===d?(T=de,!1):!0}),!e.props.defaultActiveFirst&&T!==-1&&Zn(t.slice(T,m-1)))return;var _=(T+1)%m,w=_;do{var X=t[w];if(!X||X.props.disabled)w=(w+1)%m;else return X}while(w!==_);return null},e.renderCommonMenuItem=function(r,t,d){var m=e.props.store.getState(),T=Object(x.a)(e),_=T.props,w=Q(r,_.eventKey,t),X=r.props;if(!X||typeof r.type=="string")return r;var pe=w===m.activeKey,de=Object(K.a)(Object(K.a)({mode:X.mode||_.mode,level:_.level,inlineIndent:_.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:_.prefixCls,index:t,parentMenu:_.parentMenu,manualRef:X.disabled?void 0:Object(ee.a)(r.ref,Na.bind(Object(x.a)(e))),eventKey:w,active:!X.disabled&&pe,multiple:_.multiple,onClick:function(Ve){(X.onClick||N)(Ve),e.onClick(Ve)},onItemHover:e.onItemHover,motion:_.motion,subMenuOpenDelay:_.subMenuOpenDelay,subMenuCloseDelay:_.subMenuCloseDelay,forceSubMenuRender:_.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:_.builtinPlacements,itemIcon:X.itemIcon||e.props.itemIcon,expandIcon:X.expandIcon||e.props.expandIcon},d),{},{direction:_.direction});return(_.mode==="inline"||Ee())&&(de.triggerSubMenuAction="click"),i.cloneElement(r,Object(K.a)(Object(K.a)({},de),{},{key:w||t}))},e.renderMenuItem=function(r,t,d){if(!r)return null;var m=e.props.store.getState(),T={openKeys:m.openKeys,selectedKeys:m.selectedKeys,triggerSubMenuAction:e.props.triggerSubMenuAction,subMenuKey:d};return e.renderCommonMenuItem(r,t,T)},f.store.setState({activeKey:Object(K.a)(Object(K.a)({},f.store.getState().activeKey),{},Object(L.a)({},f.eventKey,qn(f,f.activeKey)))}),e.instanceArray=[],e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!ie()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var r=this.props,t="activeKey"in r?r.activeKey:r.store.getState().activeKey[En(r)],d=qn(r,t);if(d!==t)Sn(r.store,En(r),d);else if("activeKey"in e){var m=qn(e,e.activeKey);d!==m&&Sn(r.store,En(r),d)}}},{key:"render",value:function(){var e=this,r=Object(s.a)({},this.props);this.instanceArray=[];var t=q()(r.prefixCls,r.className,"".concat(r.prefixCls,"-").concat(r.mode)),d={className:t,role:r.role||"menu"};r.id&&(d.id=r.id),r.focusable&&(d.tabIndex=0,d.onKeyDown=this.onKeyDown);var m=r.prefixCls,T=r.eventKey,_=r.visible,w=r.level,X=r.mode,pe=r.overflowedIndicator,de=r.theme;return _e.forEach(function(Se){return delete r[Se]}),delete r.onClick,i.createElement(ua,Object(s.a)({},r,{prefixCls:m,mode:X,tag:"ul",level:w,theme:de,visible:_,overflowedIndicator:pe},d),Object(le.a)(r.children).map(function(Se,Ve){return e.renderMenuItem(Se,Ve,T||"0-menu-")}))}}]),M}(i.Component);La.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:N};var ka=Object(V.b)()(La),ea=ka,Tn=n("Kwbf");function ca(u,E,M){var f=u.prefixCls,e=u.motion,r=u.defaultMotions,t=r===void 0?{}:r,d=u.openAnimation,m=u.openTransitionName,T=E.switchingModeFromInline;if(e)return e;if(Object(k.a)(d)==="object"&&d)Object(Tn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof d=="string")return{motionName:"".concat(f,"-open-").concat(d)};if(m)return{motionName:m};var _=t[M];return _||(T?null:t.other)}var Ua=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(f){var e;Object(z.a)(this,M),e=E.call(this,f),e.onSelect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState(),w=_.selectedKeys,X=d.key;T.multiple?w=w.concat([X]):w=[X],"selectedKeys"in T||e.store.setState({selectedKeys:w}),T.onSelect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:w}))}},e.onClick=function(d){var m=e.getRealMenuMode(),T=Object(x.a)(e),_=T.store,w=T.props.onOpenChange;m!=="inline"&&!("openKeys"in e.props)&&(_.setState({openKeys:[]}),w([])),e.props.onClick(d)},e.onKeyDown=function(d,m){e.innerMenu.getWrappedInstance().onKeyDown(d,m)},e.onOpenChange=function(d){var m=Object(x.a)(e),T=m.props,_=e.store.getState().openKeys.concat(),w=!1,X=function(de){var Se=!1;if(de.open)Se=_.indexOf(de.key)===-1,Se&&_.push(de.key);else{var Ve=_.indexOf(de.key);Se=Ve!==-1,Se&&_.splice(Ve,1)}w=w||Se};Array.isArray(d)?d.forEach(X):X(d),w&&("openKeys"in e.props||e.store.setState({openKeys:_}),T.onOpenChange(_))},e.onDeselect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState().selectedKeys.concat(),w=d.key,X=_.indexOf(w);X!==-1&&_.splice(X,1),"selectedKeys"in T||e.store.setState({selectedKeys:_}),T.onDeselect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:_}))}},e.onMouseEnter=function(d){e.restoreModeVerticalFromInline();var m=e.props.onMouseEnter;m&&m(d)},e.onTransitionEnd=function(d){var m=d.propertyName==="width"&&d.target===d.currentTarget,T=d.target.className,_=Object.prototype.toString.call(T)==="[object SVGAnimatedString]"?T.animVal:T,w=d.propertyName==="font-size"&&_.indexOf("anticon")>=0;(m||w)&&e.restoreModeVerticalFromInline()},e.setInnerMenu=function(d){e.innerMenu=d},e.isRootMenu=!0;var r=f.defaultSelectedKeys,t=f.defaultOpenKeys;return"selectedKeys"in f&&(r=f.selectedKeys||[]),"openKeys"in f&&(t=f.openKeys||[]),e.store=Object(V.c)({selectedKeys:r,openKeys:t,activeKey:{"0-menu-":qn(f,f.activeKey)}}),e.state={switchingModeFromInline:!1,prevProps:f,inlineOpenKeys:[],store:e.store},e}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var r=this.props,t=r.siderCollapsed,d=r.inlineCollapsed,m=r.onOpenChange;(!e.inlineCollapsed&&d||!e.siderCollapsed&&t)&&m([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,r=this.store,t=this.prevOpenKeys,d=this.getInlineCollapsed()&&(e===0||e==="0"||e==="0px");d?(this.prevOpenKeys=r.getState().openKeys.concat(),this.store.setState({openKeys:[]})):t&&(this.store.setState({openKeys:t}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,r=this.state.switchingModeFromInline,t=this.getInlineCollapsed();return r&&t?"inline":t?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,r=e.inlineCollapsed,t=e.siderCollapsed;return t!==void 0?t:r}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&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 e=Object(K.a)({},Object(G.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),r=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),e.direction==="rtl"&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(K.a)(Object(K.a)({},e),{},{mode:r,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ca(this.props,this.state,r)}),delete e.openAnimation,delete e.openTransitionName,i.createElement(V.a,{store:this.store},i.createElement(ea,Object(s.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,r){var t=r.prevProps,d=r.store,m=d.getState(),T={},_={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(_.switchingModeFromInline=!0),"openKeys"in e?T.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(_.switchingModeFromInline=!0,_.inlineOpenKeys=m.openKeys,T.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(T.openKeys=r.inlineOpenKeys,_.inlineOpenKeys=[])),Object.keys(T).length&&d.setState(T),_}}]),M}(i.Component);Ua.defaultProps={selectable:!0,onClick:N,onSelect:N,onOpenChange:N,onDeselect:N,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:i.createElement("span",null,"\xB7\xB7\xB7")};var Ia=Ua,Rn=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.onKeyDown=function(e){var r=e.keyCode;return r===D.a.ENTER?(f.onClick(e),!0):void 0},f.onMouseLeave=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseLeave;d({key:t,hover:!1}),m({key:t,domEvent:e})},f.onMouseEnter=function(e){var r=f.props,t=r.eventKey,d=r.onItemHover,m=r.onMouseEnter;d({key:t,hover:!0}),m({key:t,domEvent:e})},f.onClick=function(e){var r=f.props,t=r.eventKey,d=r.multiple,m=r.onClick,T=r.onSelect,_=r.onDeselect,w=r.isSelected,X={key:t,keyPath:[t],item:Object(x.a)(f),domEvent:e};m(X),d?w?_(X):T(X):w||T(X)},f.saveNode=function(e){f.node=e},f}return Object(H.a)(M,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.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 e,r=Object(K.a)({},this.props),t=q()(this.getPrefixCls(),r.className,(e={},Object(L.a)(e,this.getActiveClassName(),!r.disabled&&r.active),Object(L.a)(e,this.getSelectedClassName(),r.isSelected),Object(L.a)(e,this.getDisabledClassName(),r.disabled),e)),d=Object(K.a)(Object(K.a)({},r.attribute),{},{title:typeof r.title=="string"?r.title:void 0,className:t,role:r.role||"menuitem","aria-disabled":r.disabled});r.role==="option"?d=Object(K.a)(Object(K.a)({},d),{},{role:"option","aria-selected":r.isSelected}):(r.role===null||r.role==="none")&&(d.role="none");var m={onClick:r.disabled?null:this.onClick,onMouseLeave:r.disabled?null:this.onMouseLeave,onMouseEnter:r.disabled?null:this.onMouseEnter},T=Object(K.a)({},r.style);r.mode==="inline"&&(r.direction==="rtl"?T.paddingRight=r.inlineIndent*r.level:T.paddingLeft=r.inlineIndent*r.level),_e.forEach(function(w){return delete r[w]}),delete r.direction;var _=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(_=i.createElement(this.props.itemIcon,this.props)),i.createElement("li",Object(s.a)({},Object(G.a)(r,["onClick","onMouseEnter","onMouseLeave","onSelect"]),d,m,{style:T,ref:this.saveNode}),r.children,_)}}]),M}(i.Component);Rn.isMenuItem=!0,Rn.defaultProps={onSelect:N,onMouseEnter:N,onMouseLeave:N,manualRef:N};var da=Object(V.b)(function(u,E){var M=u.activeKey,f=u.selectedKeys,e=E.eventKey,r=E.subMenuKey;return{active:M[r]===e,isSelected:Array.isArray(f)?f.indexOf(e)!==-1:f===e}})(Rn),fa=da,pa=function(u){Object(S.a)(M,u);var E=Object(h.a)(M);function M(){var f;return Object(z.a)(this,M),f=E.apply(this,arguments),f.renderInnerMenuItem=function(e){var r=f.props,t=r.renderMenuItem,d=r.index;return t(e,d,f.props.subMenuKey)},f}return Object(H.a)(M,[{key:"render",value:function(){var e=Object(s.a)({},this.props),r=e.className,t=r===void 0?"":r,d=e.rootPrefixCls,m="".concat(d,"-item-group-title"),T="".concat(d,"-item-group-list"),_=e.title,w=e.children;return _e.forEach(function(X){return delete e[X]}),delete e.direction,i.createElement("li",Object(s.a)({},e,{onClick:function(pe){return pe.stopPropagation()},className:"".concat(t," ").concat(d,"-item-group")}),i.createElement("div",{className:m,title:typeof _=="string"?_:void 0},_),i.createElement("ul",{className:T},i.Children.map(w,this.renderInnerMenuItem)))}}]),M}(i.Component);pa.isMenuItemGroup=!0,pa.defaultProps={disabled:!0};var Za=pa,ma=function(E){var M=E.className,f=E.rootPrefixCls,e=E.style;return i.createElement("li",{className:"".concat(M," ").concat(f,"-item-divider"),style:e})};ma.defaultProps={disabled:!0,className:"",style:{}};var qa=ma,Ka=Ia,ha=n("eDIo");function eo(u,E){var M=u.prefixCls,f=u.editable,e=u.locale,r=u.style;return!f||f.showAdd===!1?null:i.createElement("button",{ref:E,type:"button",className:"".concat(M,"-nav-add"),style:r,"aria-label":(e==null?void 0:e.addAriaLabel)||"Add tab",onClick:function(d){f.onEdit("add",{event:d})}},f.addIcon||"+")}var ta=i.forwardRef(eo);function to(u,E){var M=u.prefixCls,f=u.id,e=u.tabs,r=u.locale,t=u.mobile,d=u.moreIcon,m=d===void 0?"More":d,T=u.moreTransitionName,_=u.style,w=u.className,X=u.editable,pe=u.tabBarGutter,de=u.rtl,Se=u.onTabClick,Ve=Object(i.useState)(!1),tt=Object(R.a)(Ve,2),Ye=tt[0],at=tt[1],nt=Object(i.useState)(null),Qe=Object(R.a)(nt,2),Ze=Qe[0],dt=Qe[1],ot="".concat(f,"-more-popup"),Lt="".concat(M,"-dropdown"),gt=Ze!==null?"".concat(ot,"-").concat(Ze):null,We=r==null?void 0:r.dropdownAriaLabel,ze=i.createElement(Ka,{onClick:function(Ct){var wt=Ct.key,$t=Ct.domEvent;Se(wt,$t),at(!1)},id:ot,tabIndex:-1,role:"listbox","aria-activedescendant":gt,selectedKeys:[Ze],"aria-label":We!==void 0?We:"expanded dropdown"},e.map(function(pt){return i.createElement(fa,{key:pt.key,id:"".concat(ot,"-").concat(pt.key),role:"option","aria-controls":f&&"".concat(f,"-panel-").concat(pt.key),disabled:pt.disabled},pt.tab)}));function rt(pt){for(var Ct=e.filter(function(on){return!on.disabled}),wt=Ct.findIndex(function(on){return on.key===Ze})||0,$t=Ct.length,an=0;an<$t;an+=1){wt=(wt+pt+$t)%$t;var Ut=Ct[wt];if(!Ut.disabled){dt(Ut.key);return}}}function st(pt){var Ct=pt.which;if(!Ye){[D.a.DOWN,D.a.SPACE,D.a.ENTER].includes(Ct)&&(at(!0),pt.preventDefault());return}switch(Ct){case D.a.UP:rt(-1),pt.preventDefault();break;case D.a.DOWN:rt(1),pt.preventDefault();break;case D.a.ESC:at(!1);break;case D.a.SPACE:case D.a.ENTER:Ze!==null&&Se(Ze,pt);break}}Object(i.useEffect)(function(){var pt=document.getElementById(gt);pt&&pt.scrollIntoView&&pt.scrollIntoView(!1)},[Ze]),Object(i.useEffect)(function(){Ye||dt(null)},[Ye]);var ke=Object(L.a)({},de?"marginLeft":"marginRight",pe);e.length||(ke.visibility="hidden",ke.order=1);var ft=q()(Object(L.a)({},"".concat(Lt,"-rtl"),de)),Tt=t?null:i.createElement(ha.a,{prefixCls:Lt,overlay:ze,trigger:["hover"],visible:Ye,transitionName:T,onVisibleChange:at,overlayClassName:ft,mouseEnterDelay:.1,mouseLeaveDelay:.1},i.createElement("button",{type:"button",className:"".concat(M,"-nav-more"),style:ke,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":ot,id:"".concat(f,"-more"),"aria-expanded":Ye,onKeyDown:st},m));return i.createElement("div",{className:q()("".concat(M,"-nav-operations"),w),style:_,ref:E},Tt,i.createElement(ta,{prefixCls:M,locale:r,editable:X}))}var no=i.forwardRef(to),va=Object(i.createContext)(null),lt=.1,ut=.01,Nt=20,Qt=Math.pow(.995,Nt);function zn(){var u=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(u)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(u.substr(0,4)))}function za(u,E){var M=Object(i.useState)(),f=Object(R.a)(M,2),e=f[0],r=f[1],t=Object(i.useState)(0),d=Object(R.a)(t,2),m=d[0],T=d[1],_=Object(i.useState)(0),w=Object(R.a)(_,2),X=w[0],pe=w[1],de=Object(i.useState)(),Se=Object(R.a)(de,2),Ve=Se[0],tt=Se[1],Ye=Object(i.useRef)();function at(We){var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st}),window.clearInterval(Ye.current)}function nt(We){if(!e)return;We.preventDefault();var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st});var ke=rt-e.x,ft=st-e.y;E(ke,ft);var Tt=Date.now();T(Tt),pe(Tt-m),tt({x:ke,y:ft})}function Qe(){if(!e)return;if(r(null),tt(null),Ve){var We=Ve.x/X,ze=Ve.y/X,rt=Math.abs(We),st=Math.abs(ze);if(Math.max(rt,st)ft?(st=ze,ot.current="x"):(st=rt,ot.current="y");var Tt=Date.now();Tt-Ze.current>100&&(dt.current=!1),(E(-st,-st)||dt.current)&&(We.preventDefault(),dt.current=!0),Ze.current=Tt}var gt=Object(i.useRef)(null);gt.current={onTouchStart:at,onTouchMove:nt,onTouchEnd:Qe,onWheel:Lt},i.useEffect(function(){function We(ke){gt.current.onTouchStart(ke)}function ze(ke){gt.current.onTouchMove(ke)}function rt(ke){gt.current.onTouchEnd(ke)}function st(ke){gt.current.onWheel(ke)}return document.addEventListener("touchmove",ze,{passive:!1}),document.addEventListener("touchend",rt,{passive:!1}),u.current.addEventListener("touchstart",We,{passive:!1}),u.current.addEventListener("wheel",st),function(){document.removeEventListener("touchmove",ze),document.removeEventListener("touchend",rt)}},[])}function ba(){var u=Object(i.useRef)(new Map);function E(f){return u.current.has(f)||u.current.set(f,i.createRef()),u.current.get(f)}function M(f){u.current.delete(f)}return[E,M]}function Wa(u,E){var M=i.useRef(u),f=i.useState({}),e=Object(R.a)(f,2),r=e[1];function t(d){var m=typeof d=="function"?d(M.current):d;m!==M.current&&E(m,M.current),M.current=m,r({})}return[M.current,t]}var Ba=function(E){var M=E.position,f=E.prefixCls,e=E.extra;if(!e)return null;var r,t=e;return M==="right"&&(r=t.right||!t.left&&t||null),M==="left"&&(r=t.left||null),r?i.createElement("div",{className:"".concat(f,"-extra-content")},r):null};function Wo(u,E){var M,f=i.useContext(va),e=f.prefixCls,r=f.tabs,t=u.className,d=u.style,m=u.id,T=u.animated,_=u.activeKey,w=u.rtl,X=u.extra,pe=u.editable,de=u.locale,Se=u.tabPosition,Ve=u.tabBarGutter,tt=u.children,Ye=u.onTabClick,at=u.onTabScroll,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useRef)(),dt=Object(i.useRef)(),ot=ba(),Lt=Object(R.a)(ot,2),gt=Lt[0],We=Lt[1],ze=Se==="top"||Se==="bottom",rt=Wa(0,function(yt,it){ze&&at&&at({direction:yt>it?"left":"right"})}),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=Wa(0,function(yt,it){!ze&&at&&at({direction:yt>it?"top":"bottom"})}),pt=Object(R.a)(Tt,2),Ct=pt[0],wt=pt[1],$t=Object(i.useState)(0),an=Object(R.a)($t,2),Ut=an[0],on=an[1],gn=Object(i.useState)(0),ln=Object(R.a)(gn,2),un=ln[0],It=ln[1],qt=Object(i.useState)(0),Gt=Object(R.a)(qt,2),Wt=Gt[0],An=Gt[1],Dn=Object(i.useState)(0),Wn=Object(R.a)(Dn,2),Mt=Wn[0],Cn=Wn[1],Bn=Object(i.useState)(null),Rt=Object(R.a)(Bn,2),bt=Rt[0],Yt=Rt[1],Xo=Object(i.useState)(null),bo=Object(R.a)(Xo,2),na=bo[0],$o=bo[1],Go=Object(i.useState)(0),go=Object(R.a)(Go,2),Yo=go[0],Jo=go[1],Qo=Object(i.useState)(0),yo=Object(R.a)(Qo,2),Zo=yo[0],qo=yo[1],er=U(new Map),Eo=Object(R.a)(er,2),tr=Eo[0],nr=Eo[1],Fa=l(r,tr,Ut),Co="".concat(e,"-nav-operations-hidden"),ga=0,ya=0;ze?w?(ga=0,ya=Math.max(0,Ut-bt)):(ga=Math.min(0,bt-Ut),ya=0):(ga=Math.min(0,na-un),ya=0);function ao(yt){return ytya?[ya,!1]:[yt,!0]}var Oo=Object(i.useRef)(),ar=Object(i.useState)(),xo=Object(R.a)(ar,2),oo=xo[0],_o=xo[1];function ro(){_o(Date.now())}function io(){window.clearTimeout(Oo.current)}za(nt,function(yt,it){var Bt=!1;function cn(Ca,Oa){Ca(function(xa){var _a=ao(xa+Oa),aa=Object(R.a)(_a,2),co=aa[0],fo=aa[1];return Bt=fo,co})}if(ze){if(bt>=Ut)return Bt;cn(ft,yt)}else{if(na>=un)return Bt;cn(wt,it)}return io(),ro(),Bt}),Object(i.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){_o(0)},100)),io},[oo]);function jo(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,it=Fa.get(yt);if(!it)return;if(ze){var Bt=ke;w?it.rightke+bt&&(Bt=it.right+it.width-bt):it.left<-ke?Bt=-it.left:it.left+it.width>-ke+bt&&(Bt=-(it.left+it.width-bt)),wt(0),ft(ao(Bt)[0])}else{var cn=Ct;it.top<-Ct?cn=-it.top:it.top+it.height>-Ct+na&&(cn=-(it.top+it.height-na)),ft(0),wt(ao(cn)[0])}}var or=v(Fa,{width:bt,height:na,left:ke,top:Ct},{width:Wt,height:Mt},{width:Yo,height:Zo},Object(K.a)(Object(K.a)({},u),{},{tabs:r})),Mo=Object(R.a)(or,2),rr=Mo[0],ir=Mo[1],sr=r.map(function(yt){var it=yt.key;return i.createElement(O,{id:m,prefixCls:e,key:it,rtl:w,tab:yt,closable:yt.closable,editable:pe,active:it===_,tabPosition:Se,tabBarGutter:Ve,renderWrapper:tt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:gt(it),onClick:function(cn){Ye(it,cn)},onRemove:function(){We(it)},onFocus:function(){jo(it),ro(),w||(nt.current.scrollLeft=0),nt.current.scrollTop=0}})}),so=ce(function(){var yt,it,Bt,cn,Ca,Oa,xa,_a,aa,co=((yt=nt.current)===null||yt===void 0?void 0:yt.offsetWidth)||0,fo=((it=nt.current)===null||it===void 0?void 0:it.offsetHeight)||0,No=((Bt=dt.current)===null||Bt===void 0?void 0:Bt.offsetWidth)||0,Lo=((cn=dt.current)===null||cn===void 0?void 0:cn.offsetHeight)||0,pr=((Ca=Ze.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,mr=((Oa=Ze.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),$o(fo),Jo(No),qo(Lo);var ko=(((xa=Qe.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-No,Uo=(((_a=Qe.current)===null||_a===void 0?void 0:_a.offsetHeight)||0)-Lo;on(ko),It(Uo);var Io=(aa=Ze.current)===null||aa===void 0?void 0:aa.className.includes(Co);An(ko-(Io?0:pr)),Cn(Uo-(Io?0:mr)),nr(function(){var Ko=new Map;return r.forEach(function(hr){var zo=hr.key,ja=gt(zo).current;ja&&Ko.set(zo,{width:ja.offsetWidth,height:ja.offsetHeight,left:ja.offsetLeft,top:ja.offsetTop})}),Ko})}),lr=r.slice(0,rr),ur=r.slice(ir+1),So=[].concat(Object(B.a)(lr),Object(B.a)(ur)),cr=Object(i.useState)(),To=Object(R.a)(cr,2),dr=To[0],fr=To[1],wn=Fa.get(_),Ro=Object(i.useRef)();function Ao(){xe.a.cancel(Ro.current)}Object(i.useEffect)(function(){var yt={};return wn&&(ze?(w?yt.right=wn.right:yt.left=wn.left,yt.width=wn.width):(yt.top=wn.top,yt.height=wn.height)),Ao(),Ro.current=xe()(function(){fr(yt)}),Ao},[wn,ze,w]),Object(i.useEffect)(function(){jo()},[_,wn,Fa,ze]),Object(i.useEffect)(function(){so()},[w,Ve,_,r.map(function(yt){return yt.key}).join("_")]);var Do=!!So.length,Ea="".concat(e,"-nav-wrap"),lo,uo,wo,Po;return ze?w?(uo=ke>0,lo=ke+bt1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var a=l[0];if(p.isValidElement(a)&&Object(ae.c)(a)){var v=a.ref;l[0]=p.cloneElement(a,{ref:Object(ae.a)(v,this.setChildNode)})}return l.length===1?l[0]:l.map(function(s,z){return!p.isValidElement(s)||"key"in s&&s.key!==null?s:p.cloneElement(s,{key:"".concat(he,"-").concat(z)})})}}]),Y}(p.Component);ce.displayName="ResizeObserver",Oe.a=ce},wCXF:function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return Fe});var L=n("rePB"),R=n("VTBJ"),Ae=n("KQm4"),K=n("U8pU"),i=n("ODXe"),p=n("q1tI"),q=n("TSYQ"),le=n.n(q),W=n("Gytx"),B=n.n(W),ae=n("Kwbf"),xe=n("t23M"),he=n("qx4F"),ce=n("6eGT"),U=n("IBYe"),D=n("Ff2n"),Y=n("c+Xe"),O=n("fyJ8"),y=n("biw7");function l(P,ve,Ce,we,Pe){var Te=Ce[P]||{},Re=Ce[ve]||{},be,De;Te.fixed==="left"?be=we.left[P]:Re.fixed==="right"&&(De=we.right[ve]);var Ke=!1,Le=!1,Ie=!1,Ge=!1,He=Ce[ve+1],qe=Ce[P-1];if(Pe==="rtl"){if(be!==void 0){var Et=qe&&qe.fixed==="left";Ge=!Et}else if(De!==void 0){var ct=He&&He.fixed==="right";Ie=!ct}}else if(be!==void 0){var vt=He&&He.fixed==="left";Ke=!vt}else if(De!==void 0){var Je=qe&&qe.fixed==="right";Le=!Je}return{fixLeft:be,fixRight:De,lastFixLeft:Ke,firstFixRight:Le,lastFixRight:Ie,firstFixLeft:Ge,isSticky:we.isSticky}}var a=n("sR1s");function v(P){var ve=P.cells,Ce=P.stickyOffsets,we=P.flattenColumns,Pe=P.rowComponent,Te=P.cellComponent,Re=P.onHeaderRow,be=P.index,De=p.useContext(y.a),Ke=De.prefixCls,Le=De.direction,Ie;Re&&(Ie=Re(ve.map(function(He){return He.column}),be));var Ge=Object(a.a)(ve.map(function(He){return He.column}));return p.createElement(Pe,Object.assign({},Ie),ve.map(function(He,qe){var Et=He.column,ct=l(He.colStart,He.colEnd,we,Ce,Le),vt;return Et&&Et.onHeaderCell&&(vt=He.column.onHeaderCell(Et)),p.createElement(O.a,Object.assign({},He,{ellipsis:Et.ellipsis,align:Et.align,component:Te,prefixCls:Ke,key:Ge[qe]},ct,{additionalProps:vt,rowType:"header"}))}))}v.displayName="HeaderRow";var s=v;function z(P){var ve=[];function Ce(Re,be){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[De]=ve[De]||[];var Ke=be,Le=Re.filter(Boolean).map(function(Ie){var Ge={key:Ie.key,className:Ie.className||"",children:Ie.title,column:Ie,colStart:Ke},He=1,qe=Ie.children;return qe&&qe.length>0&&(He=Ce(qe,Ke,De+1).reduce(function(Et,ct){return Et+ct},0),Ge.hasSubColumns=!0),"colSpan"in Ie&&(He=Ie.colSpan),"rowSpan"in Ie&&(Ge.rowSpan=Ie.rowSpan),Ge.colSpan=He,Ge.colEnd=Ge.colStart+He-1,ve[De].push(Ge),Ke+=He,He});return Le}Ce(P,0);for(var we=ve.length,Pe=function(be){ve[be].forEach(function(De){!("rowSpan"in De)&&!De.hasSubColumns&&(De.rowSpan=we-be)})},Te=0;Te=0;be-=1){var De=ve[be],Ke=Ce&&Ce[be],Le=Ke&&Ke[S.a];(De||Le||Re)&&(Pe.unshift(p.createElement("col",Object.assign({key:be,style:{width:De,minWidth:De}},Le))),Re=!0)}return p.createElement("colgroup",null,Pe)}var V=h;function G(P,ve){return Object(p.useMemo)(function(){for(var Ce=[],we=0;we1?Jt-1:0),dn=1;dn=Ie&&(St=Ie-Ge),Re({scrollLeft:St/Ie*(Le+2)}),Je.current.x=et.pageX},jt=function(){var et=Object(_e.b)(Te.current).top,Dt=et+Te.current.offsetHeight,Vt=document.documentElement.scrollTop+window.innerHeight;Dt-Object(he.a)()<=Vt||et>=Vt-be?vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!0})}):vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!1})})},xt=function(et){vt(function(Dt){return Object(R.a)(Object(R.a)({},Dt),{},{scrollLeft:et/Le*Ie||0})})};return p.useImperativeHandle(Ce,function(){return{setScrollLeft:xt}}),p.useEffect(function(){var ht=Object(fe.a)(document.body,"mouseup",Kt,!1),et=Object(fe.a)(document.body,"mousemove",Ht,!1);return jt(),function(){ht.remove(),et.remove()}},[Ge,Ot]),p.useEffect(function(){var ht=Object(fe.a)(window,"scroll",jt,!1),et=Object(fe.a)(window,"resize",jt,!1);return function(){ht.remove(),et.remove()}},[]),p.useEffect(function(){ct.isHiddenScrollBar||vt(function(ht){var et,Dt;return Object(R.a)(Object(R.a)({},ht),{},{scrollLeft:Te.current.scrollLeft/((et=Te.current)===null||et===void 0?void 0:et.scrollWidth)*((Dt=Te.current)===null||Dt===void 0?void 0:Dt.clientWidth)})})},[ct.isHiddenScrollBar]),Le<=Ie||!Ge||ct.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(he.a)(),width:Ie,bottom:be},className:"".concat(Ke,"-sticky-scroll")},p.createElement("div",{onMouseDown:mt,ref:He,className:le()("".concat(Ke,"-sticky-scroll-bar"),Object(L.a)({},"".concat(Ke,"-sticky-scroll-bar-active"),Ot)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(ct.scrollLeft,"px, 0, 0)")}}))},me=p.forwardRef(je);function Ee(P,ve){return p.useMemo(function(){var Ce=!!P;return{isSticky:Ce,stickyClassName:Ce?"".concat(ve,"-sticky-header"):"",offsetHeader:Object(K.a)(P)==="object"&&P.offsetHeader||0,offsetScroll:Object(K.a)(P)==="object"&&P.offsetScroll||0}},[P,ve])}var Be=[],Ue={},Fe="rc-table-internal-hook",Xe=p.memo(function(P){var ve=P.children;return ve},function(P,ve){return B()(P.props,ve.props)?P.pingLeft!==ve.pingLeft||P.pingRight!==ve.pingRight:!1});function Ne(P){var ve,Ce=P.prefixCls,we=P.className,Pe=P.rowClassName,Te=P.style,Re=P.data,be=P.rowKey,De=P.scroll,Ke=P.tableLayout,Le=P.direction,Ie=P.title,Ge=P.footer,He=P.summary,qe=P.id,Et=P.showHeader,ct=P.components,vt=P.emptyText,Je=P.onRow,Ft=P.onHeaderRow,At=P.internalHooks,Ot=P.transformColumns,kt=P.internalRefs,Kt=P.sticky,mt=Re||Be,Ht=!!mt.length,jt=p.useState(0),xt=Object(i.a)(jt,2),ht=xt[0],et=xt[1];p.useEffect(function(){et(Object(he.a)())});var Dt=p.useMemo(function(){return Object(a.c)(ct,{})},[ct]),Vt=p.useCallback(function(lt,ut){return Object(a.b)(Dt,lt)||ut},[Dt]),Xt=p.useMemo(function(){return typeof be=="function"?be:function(lt){var ut=lt&<[be];return ut}},[be]),St=Object(S.c)(P),Pn=St.expandIcon,Nn=St.expandedRowKeys,Fn=St.defaultExpandedRowKeys,rn=St.defaultExpandAllRows,hn=St.expandedRowRender,On=St.onExpand,xn=St.onExpandedRowsChange,Hn=St.expandRowByClick,en=St.rowExpandable,Ln=St.expandIconColumnIndex,yn=St.expandedRowClassName,kn=St.childrenColumnName,_n=St.indentSize,vn=Pn||re,jn=kn||"children",Vn=p.useMemo(function(){return hn?"row":P.expandable&&At===Fe&&P.expandable.__PARENT_RENDER_ICON__||mt.some(function(lt){return lt&&Object(K.a)(lt)==="object"&<[jn]})?"nest":!1},[!!hn,mt]),Mn=p.useState(function(){return Fn||(rn?Me(mt,Xt,jn):[])}),zt=Object(i.a)(Mn,2),Zt=zt[0],sn=zt[1],Jt=p.useMemo(function(){return new Set(Nn||Zt||[])},[Nn,Zt]),tn=p.useCallback(function(lt){var ut=Xt(lt,mt.indexOf(lt)),Nt,Qt=Jt.has(ut);Qt?(Jt.delete(ut),Nt=Object(Ae.a)(Jt)):Nt=[].concat(Object(Ae.a)(Jt),[ut]),sn(Nt),On&&On(!Qt,lt),xn&&xn(Nt)},[Xt,Jt,mt,On,xn]),dn=p.useState(0),Xn=Object(i.a)(dn,2),Un=Xn[0],$n=Xn[1],Ma=Object(oe.b)(Object(R.a)(Object(R.a)(Object(R.a)({},P),St),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Xt,onTriggerExpand:tn,expandIcon:vn,expandIconColumnIndex:Ln,direction:Le}),At===Fe?Ot:null),Sa=Object(i.a)(Ma,2),Gn=Sa[0],Pt=Sa[1],Yn=p.useMemo(function(){return{columns:Gn,flattenColumns:Pt}},[Gn,Pt]),Jn=p.useRef(),Ta=p.useRef(),fn=p.useRef(),Ha=p.useState(!1),Ra=Object(i.a)(Ha,2),oa=Ra[0],Va=Ra[1],Xa=p.useState(!1),ra=Object(i.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=$(new Map),Aa=Object(i.a)(Ga,2),Ya=Aa[0],Ja=Aa[1],bn=Object(a.a)(Pt),ia=bn.map(function(lt){return Ya.get(lt)}),Da=p.useMemo(function(){return ia},[ia.join("_")]),sa=g(Da,Pt.length,Le),nn=De&&Object(a.d)(De.y),pn=De&&Object(a.d)(De.x),mn=pn&&Pt.some(function(lt){var ut=lt.fixed;return ut}),la=p.useRef(),In=Ee(Kt,Ce),Kn=In.isSticky,wa=In.offsetHeader,Qa=In.offsetScroll,Pa=In.stickyClassName,ua,Zn,Sn;nn&&(Zn={overflowY:"scroll",maxHeight:De.y}),pn&&(ua={overflowX:"auto"},nn||(Zn={overflowY:"hidden"}),Sn={width:De.x===!0?"auto":De.x,minWidth:"100%"});var En=p.useCallback(function(lt,ut){Ja(function(Nt){var Qt=new Map(Nt);return Qt.set(lt,ut),Qt})},[]),qn=ne(null),Na=Object(i.a)(qn,2),La=Na[0],ka=Na[1];function ea(lt,ut){if(!ut)return;typeof ut=="function"?ut(lt):ut.scrollLeft!==lt&&(ut.scrollLeft=lt)}var Tn=function(ut){var Nt=ut.currentTarget,Qt=ut.scrollLeft,zn=typeof Qt=="number"?Qt:Nt.scrollLeft,za=Nt||Ue;if(!ka()||ka()===za){var ba;La(za),ea(zn,Ta.current),ea(zn,fn.current),ea(zn,(ba=la.current)===null||ba===void 0?void 0:ba.setScrollLeft)}if(Nt){var Wa=Nt.scrollWidth,Ba=Nt.clientWidth;Va(zn>0),$a(zn0?[].concat(Object(R.a)(D),Object(R.a)(ae(l).map(function(a){return Object(Ae.a)({fixed:y},a)}))):[].concat(Object(R.a)(D),[Object(Ae.a)(Object(Ae.a)({},Y),{},{fixed:y})])},[])}function xe(U){for(var D=!0,Y=0;Y=0;l-=1){var a=U[l];if(y&&a.fixed!=="right")y=!1;else if(!y&&a.fixed==="right"){Object(q.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function he(U){return U.map(function(D){var Y=D.fixed,O=Object(K.a)(D,["fixed"]),y=Y;return Y==="left"?y="right":Y==="right"&&(y="left"),Object(Ae.a)({fixed:y},O)})}function ce(U,D){var Y=U.prefixCls,O=U.columns,y=U.children,l=U.expandable,a=U.expandedKeys,v=U.getRowKey,s=U.onTriggerExpand,z=U.expandIcon,H=U.rowExpandable,x=U.expandIconColumnIndex,S=U.direction,h=U.expandRowByClick,V=i.useMemo(function(){return O||B(y)},[O,y]),G=i.useMemo(function(){if(l){var ie,k=x||0,F=V[k],C=(ie={},Object(L.a)(ie,W.a,{className:"".concat(Y,"-expand-icon-col")}),Object(L.a)(ie,"title",""),Object(L.a)(ie,"fixed",F?F.fixed:null),Object(L.a)(ie,"className","".concat(Y,"-row-expand-icon-cell")),Object(L.a)(ie,"render",function(j,A,J){var se=v(A,J),ye=a.has(se),Z=H?H(A):!0,oe=z({prefixCls:Y,expanded:ye,expandable:Z,record:A,onExpand:s});return h?i.createElement("span",{onClick:function(te){return te.stopPropagation()}},oe):oe}),ie),b=V.slice();return k>=0&&b.splice(k,0,C),b}return V},[l,V,v,a,z,S]),ee=i.useMemo(function(){var ie=G;return D&&(ie=D(ie)),ie.length||(ie=[{render:function(){return null}}]),ie},[D,G,S]),ge=i.useMemo(function(){return S==="rtl"?he(ae(ee)):ae(ee)},[ee,S]);return[ee,ge]}Oe.b=ce},"y0+3":function($e,Oe,n){"use strict";n.d(Oe,"a",function(){return ae}),n.d(Oe,"b",function(){return he});var L=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Ae={cssFloat:1,styleFloat:1,float:1};function K(ce){return ce.nodeType===1?ce.ownerDocument.defaultView.getComputedStyle(ce,null):{}}function i(ce,U,D){if(U=U.toLowerCase(),D==="auto"){if(U==="height")return ce.offsetHeight;if(U==="width")return ce.offsetWidth}return U in R||(R[U]=L.test(U)),R[U]?parseFloat(D)||0:D}function p(ce,U){var D=arguments.length,Y=K(ce);return U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,D===1?Y:i(ce,U,Y[U]||ce.style[U])}function q(ce,U,D){var Y=arguments.length;if(U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,Y===3)return typeof D=="number"&&L.test(U)&&(D="".concat(D,"px")),ce.style[U]=D,D;for(var O in U)U.hasOwnProperty(O)&&q(ce,O,U[O]);return K(ce)}function le(ce){return ce===document.body?document.documentElement.clientWidth:ce.offsetWidth}function W(ce){return ce===document.body?window.innerHeight||document.documentElement.clientHeight:ce.offsetHeight}function B(){var ce=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),U=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ce,height:U}}function ae(){var ce=document.documentElement.clientWidth,U=window.innerHeight||document.documentElement.clientHeight;return{width:ce,height:U}}function xe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function he(ce){var U=ce.getBoundingClientRect(),D=document.documentElement;return{left:U.left+(window.pageXOffset||D.scrollLeft)-(D.clientLeft||document.body.clientLeft||0),top:U.top+(window.pageYOffset||D.scrollTop)-(D.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Shixuns__Detail__ForkList__index.7b2d61b4.async.js b/p__Shixuns__Detail__ForkList__index.7b2d61b4.async.js index 08aebc268c..ae594393bf 100644 --- a/p__Shixuns__Detail__ForkList__index.7b2d61b4.async.js +++ b/p__Shixuns__Detail__ForkList__index.7b2d61b4.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[232,8],{"6+eU":function(Oe,_,t){"use strict";t.d(_,"a",function(){return f});var g=t("wx14"),y=t("rePB"),$=t("VTBJ"),le=t("1OyB"),R=t("vuIU"),o=t("Ji7U"),Q=t("LK+K"),L=t("q1tI"),d=t.n(L),B=t("TSYQ"),j=t.n(B),X=function(b){var n,a="".concat(b.rootPrefixCls,"-item"),e=j()(a,"".concat(a,"-").concat(b.page),(n={},Object(y.a)(n,"".concat(a,"-active"),b.active),Object(y.a)(n,b.className,!!b.className),Object(y.a)(n,"".concat(a,"-disabled"),!b.page),n)),i=function(){b.onClick(b.page)},c=function(U){b.onKeyPress(U,b.onClick,b.page)};return d.a.createElement("li",{title:b.showTitle?b.page:null,className:e,onClick:i,onKeyPress:c,tabIndex:"0"},b.itemRender(b.page,"page",d.a.createElement("a",{rel:"nofollow"},b.page)))},H=X,D={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var b=Object(Q.a)(n);function n(){var a;Object(le.a)(this,n);for(var e=arguments.length,i=new Array(e),c=0;c=0||u.relatedTarget.className.indexOf("".concat(z,"-next"))>=0))return;a.setState({goInputText:""}),W(a.getValidValue())},a.go=function(u){var U=a.state.goInputText;if(U==="")return;(u.keyCode===D.ENTER||u.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(R.a)(n,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,c=e.current;return!i||isNaN(i)?c:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,c=e.pageSizeOptions;return c.some(function(u){return u.toString()===i.toString()})?c:c.concat([i.toString()]).sort(function(u,U){var h=isNaN(Number(u))?0:Number(u),W=isNaN(Number(U))?0:Number(U);return h-W})}},{key:"render",value:function(){var e=this,i=this.props,c=i.pageSize,u=i.locale,U=i.rootPrefixCls,h=i.changeSize,W=i.quickGo,z=i.goButton,q=i.selectComponentClass,he=i.buildOptionText,Z=i.selectPrefixCls,A=i.disabled,ee=this.state.goInputText,oe="".concat(U,"-options"),ne=q,re=null,be=null,J=null;if(!h&&!W)return null;var Re=this.getPageSizeOptions();if(h&&ne){var fe=Re.map(function(Y,je){return d.a.createElement(ne.Option,{key:je,value:Y.toString()},(he||e.buildOptionText)(Y))});re=d.a.createElement(ne,{disabled:A,prefixCls:Z,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||Re[0]).toString(),onChange:this.changeSize,getPopupContainer:function(je){return je.parentNode}},fe)}return W&&(z&&(J=typeof z=="boolean"?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:A,className:"".concat(oe,"-quick-jumper-button")},u.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},z)),be=d.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},u.jump_to,d.a.createElement("input",{disabled:A,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),u.page,J)),d.a.createElement("li",{className:"".concat(oe)},re,be)}}]),n}(d.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,O=t("N2Kk");function m(){}function E(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function C(v,b,n){return n}function p(v,b,n){var a=typeof v=="undefined"?b.pageSize:v;return Math.floor((n.total-1)/a)+1}var K=function(v){Object(o.a)(n,v);var b=Object(Q.a)(n);function n(a){var e;Object(le.a)(this,n),e=b.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(p(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(h,W){var z=e.props.prefixCls,q=h||d.a.createElement("button",{type:"button","aria-label":W,className:"".concat(z,"-item-link")});return typeof h=="function"&&(q=d.a.createElement(h,Object($.a)({},e.props))),q},e.savePaginationNode=function(h){e.paginationNode=h},e.isValid=function(h){return E(h)&&h!==e.state.current},e.shouldDisplayQuickJumper=function(){var h=e.props,W=h.showQuickJumper,z=h.pageSize,q=h.total;return q<=z?!1:W},e.handleKeyDown=function(h){(h.keyCode===D.ARROW_UP||h.keyCode===D.ARROW_DOWN)&&h.preventDefault()},e.handleKeyUp=function(h){var W=e.getValidValue(h),z=e.state.currentInputValue;W!==z&&e.setState({currentInputValue:W}),h.keyCode===D.ENTER?e.handleChange(W):h.keyCode===D.ARROW_UP?e.handleChange(W-1):h.keyCode===D.ARROW_DOWN&&e.handleChange(W+1)},e.changePageSize=function(h){var W=e.state.current,z=p(h,e.state,e.props);W=W>z?z:W,z===0&&(W=e.state.current),typeof h=="number"&&("pageSize"in e.props||e.setState({pageSize:h}),"current"in e.props||e.setState({current:W,currentInputValue:W})),e.props.onShowSizeChange(W,h),"onChange"in e.props&&e.props.onChange&&e.props.onChange(W,h)},e.handleChange=function(h){var W=e.props.disabled,z=h;if(e.isValid(z)&&!W){var q=p(void 0,e.state,e.props);z>q?z=q:z<1&&(z=1),"current"in e.props||e.setState({current:z,currentInputValue:z});var he=e.state.pageSize;return e.props.onChange(z,he),z}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?z-2:0),he=2;he=c?U=c:U=Number(i),U}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,c=e.total,u=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:c>u}},{key:"renderPrev",value:function(e){var i=this.props,c=i.prevIcon,u=i.itemRender,U=u(e,"prev",this.getItemIcon(c,"prev page")),h=!this.hasPrev();return Object(L.isValidElement)(U)?Object(L.cloneElement)(U,{disabled:h}):U}},{key:"renderNext",value:function(e){var i=this.props,c=i.nextIcon,u=i.itemRender,U=u(e,"next",this.getItemIcon(c,"next page")),h=!this.hasNext();return Object(L.isValidElement)(U)?Object(L.cloneElement)(U,{disabled:h}):U}},{key:"render",value:function(){var e=this,i=this.props,c=i.prefixCls,u=i.className,U=i.style,h=i.disabled,W=i.hideOnSinglePage,z=i.total,q=i.locale,he=i.showQuickJumper,Z=i.showLessItems,A=i.showTitle,ee=i.showTotal,oe=i.simple,ne=i.itemRender,re=i.showPrevNextJumpers,be=i.jumpPrevIcon,J=i.jumpNextIcon,Re=i.selectComponentClass,fe=i.selectPrefixCls,Y=i.pageSizeOptions,je=this.state,te=je.current,_e=je.pageSize,Te=je.currentInputValue;if(W===!0&&z<=_e)return null;var ue=p(void 0,this.state,this.props),ge=[],Be=null,Ue=null,ke=null,Ye=null,Ae=null,de=he&&he.goButton,me=Z?1:2,Qe=te-1>0?te-1:0,et=te+1=me*2&&te!==1+2&&(ge[0]=Object(L.cloneElement)(ge[0],{className:"".concat(c,"-item-after-jump-prev")}),ge.unshift(Be)),ue-te>=me*2&&te!==ue-2&&(ge[ge.length-1]=Object(L.cloneElement)(ge[ge.length-1],{className:"".concat(c,"-item-before-jump-next")}),ge.push(Ue)),N!==1&&ge.unshift(ke),w!==ue&&ge.push(Ye)}var P=null;ee&&(P=d.a.createElement("li",{className:"".concat(c,"-total-text")},ee(z,[z===0?0:(te-1)*_e+1,te*_e>z?z:te*_e])));var T=!this.hasPrev()||!ue,S=!this.hasNext()||!ue;return d.a.createElement("ul",Object(g.a)({className:j()(c,u,Object(y.a)({},"".concat(c,"-disabled"),h)),style:U,unselectable:"unselectable",ref:this.savePaginationNode},tt),P,d.a.createElement("li",{title:A?q.prev_page:null,onClick:this.prev,tabIndex:T?null:0,onKeyPress:this.runIfEnterPrev,className:j()("".concat(c,"-prev"),Object(y.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),ge,d.a.createElement("li",{title:A?q.next_page:null,onClick:this.next,tabIndex:S?null:0,onKeyPress:this.runIfEnterNext,className:j()("".concat(c,"-next"),Object(y.a)({},"".concat(c,"-disabled"),S)),"aria-disabled":S},this.renderNext(et)),d.a.createElement(l,{disabled:h,locale:q,rootPrefixCls:c,selectComponentClass:Re,selectPrefixCls:fe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:te,pageSize:_e,pageSizeOptions:Y,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var c={};if("current"in e&&(c.current=e.current,e.current!==i.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var u=i.current,U=p(e.pageSize,i,e);u=u>U?U:u,"current"in e||(c.current=u,c.currentInputValue=u),c.pageSize=e.pageSize}return c}}]),n}(d.a.Component);K.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:m,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:m,locale:O.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var f=K},"6RRn":function(Oe,_,t){"use strict";var g=t("wCXF"),y=t("n6Qo");t.d(_,"b",function(){return y.a});var $=t("IBYe"),le=t("6eGT"),R=t("hW8S");t.d(_,"a",function(){return R.a}),_.c=g.b},"6eGT":function(Oe,_,t){"use strict";function g(y){return null}_.a=g},"815F":function(Oe,_,t){"use strict";t.d(_,"e",function(){return Q}),t.d(_,"c",function(){return d}),t.d(_,"d",function(){return B}),t.d(_,"a",function(){return X}),t.d(_,"f",function(){return H}),t.d(_,"b",function(){return D});var g=t("KQm4"),y=t("VTBJ"),$=t("Ff2n"),le=t("Zm9Q"),R=t("Kwbf"),o=t("OZM5");function Q(s,l){return s!=null?s:l}function L(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function O(m){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(m||[]).forEach(function(C){var p=C.key,K=C.children;Object(R.a)(p!=null,"Tree node must have a certain key: [".concat(E).concat(p,"]"));var f=String(p);Object(R.a)(!l.has(f)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(f)),l.set(f,!0),O(K,"".concat(E).concat(f," > "))})}O(s)}function d(s){function l(O){var m=Object(le.a)(O);return m.map(function(E){if(!Object(o.i)(E))return Object(R.a)(!E,"Tree/TreeNode can only accept TreeNode as children."),null;var C=E.key,p=E.props,K=p.children,f=Object($.a)(p,["children"]),v=Object(y.a)({key:C},f),b=l(K);return b.length&&(v.children=b),v}).filter(function(E){return E})}return l(s)}function B(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(l===!0?[]:l),m=[];function E(C){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(K,f){var v=Object(o.h)(p?p.pos:"0",f),b=Q(K.key,v),n=Object(y.a)(Object(y.a)({},K),{},{parent:p,pos:v,children:null,data:K,isStart:[].concat(Object(g.a)(p?p.isStart:[]),[f===0]),isEnd:[].concat(Object(g.a)(p?p.isEnd:[]),[f===C.length-1])});return m.push(n),l===!0||O.has(b)?n.children=E(K.children||[],n):n.children=[],n})}return E(s),m}function j(s,l,O){var m;O?typeof O=="string"?m=function(p){return p[O]}:typeof O=="function"&&(m=function(p){return O(p)}):m=function(p,K){return Q(p.key,K)};function E(C,p,K){var f=C?C.children:s,v=C?Object(o.h)(K.pos,p):"0";if(C){var b=m(C,v),n={node:C,index:p,pos:v,key:b,parentPos:K.node?K.pos:null,level:K.level+1};l(n)}f&&f.forEach(function(a,e){E(a,e,{node:C,pos:v,level:K?K.level+1:-1})})}E(null)}function X(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=l.initWrapper,m=l.processEntity,E=l.onProcessFinished,C=arguments.length>2?arguments[2]:void 0,p={},K={},f={posEntities:p,keyEntities:K};return O&&(f=O(f)||f),j(s,function(v){var b=v.node,n=v.index,a=v.pos,e=v.key,i=v.parentPos,c=v.level,u={node:b,index:n,key:e,pos:a,level:c},U=Q(e,a);p[a]=u,K[U]=u,u.parent=p[i],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),m&&m(u,f)},C),E&&E(f),f}function H(s,l){var O=l.expandedKeys,m=l.selectedKeys,E=l.loadedKeys,C=l.loadingKeys,p=l.checkedKeys,K=l.halfCheckedKeys,f=l.dragOverNodeKey,v=l.dropPosition,b=l.keyEntities,n=b[s],a={eventKey:s,expanded:O.indexOf(s)!==-1,selected:m.indexOf(s)!==-1,loaded:E.indexOf(s)!==-1,loading:C.indexOf(s)!==-1,checked:p.indexOf(s)!==-1,halfChecked:K.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:f===s&&v===0,dragOverGapTop:f===s&&v===-1,dragOverGapBottom:f===s&&v===1};return a}function D(s){var l=s.data,O=s.expanded,m=s.selected,E=s.checked,C=s.loaded,p=s.loading,K=s.halfChecked,f=s.dragOver,v=s.dragOverGapTop,b=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(y.a)(Object(y.a)({},l),{},{expanded:O,selected:m,checked:E,loaded:C,loading:p,halfChecked:K,dragOver:f,dragOverGapTop:v,dragOverGapBottom:b,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(R.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},"9YGm":function(Oe,_,t){Oe.exports={bg:"bg___1bAP4",header:"header___1lG6Z",line:"line___2EDvV",main:"main___25tDY",row:"row___1OWn9"}},IBYe:function(Oe,_,t){"use strict";function g(y){return null}_.a=g},LdHM:function(Oe,_,t){"use strict";t.d(_,"b",function(){return C}),t.d(_,"a",function(){return K});var g=t("1OyB"),y=t("vuIU"),$=t("Ji7U"),le=t("LK+K"),R=t("q1tI"),o=t("rePB"),Q=t("Ff2n"),L=t("ODXe"),d=t("4IlW"),B=t("bX4T"),j=t("YrtM"),X=t("TSYQ"),H=t.n(X),D=t("+nKL"),s=t("8OUc"),l=function(A,ee){var oe=A.prefixCls,ne=A.id,re=A.flattenOptions,be=A.childrenAsData,J=A.values,Re=A.searchValue,fe=A.multiple,Y=A.defaultActiveFirstOption,je=A.height,te=A.itemHeight,_e=A.notFoundContent,Te=A.open,ue=A.menuItemSelectedIcon,ge=A.virtual,Be=A.onSelect,Ue=A.onToggleOpen,ke=A.onActiveValue,Ye=A.onScroll,Ae=A.onMouseEnter,de="".concat(oe,"-item"),me=Object(j.a)(function(){return re},[Te,re],function(M,P){return P[0]&&M[1]!==P[1]}),Qe=R.useRef(null),et=function(P){P.preventDefault()},tt=function(P){Qe.current&&Qe.current.scrollTo({index:P})},st=function(P){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,S=me.length,V=0;V1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Z).map(function(ee,oe){if(!R.isValidElement(ee)||!ee.type)return null;var ne=ee.type.isSelectOptGroup,re=ee.key,be=ee.props,J=be.children,Re=Object(Q.a)(be,["children"]);return A||!ne?b(ee):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(re===null?oe:re,"__"),label:re},Re),{},{options:n(J)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),i=t("U8pU"),c=t("Kwbf"),u=t("WKfj");function U(Z){var A=Z.mode,ee=Z.options,oe=Z.children,ne=Z.backfill,re=Z.allowClear,be=Z.placeholder,J=Z.getInputElement,Re=Z.showSearch,fe=Z.onSearch,Y=Z.defaultOpen,je=Z.autoFocus,te=Z.labelInValue,_e=Z.value,Te=Z.inputValue,ue=Z.optionLabelProp,ge=A==="multiple"||A==="tags",Be=Re!==void 0?Re:ge||A==="combobox",Ue=ee||n(oe);if(Object(c.a)(A!=="tags"||Ue.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),A==="tags"||A==="combobox"){var ke=Ue.some(function(de){return de.options?de.options.some(function(me){return typeof("value"in me?me.value:me.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(c.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(A!=="combobox"||!ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(A==="combobox"||!ne,"`backfill` only works with `combobox` mode."),Object(c.a)(A==="combobox"||!J,"`getInputElement` only work with `combobox` mode."),Object(c.b)(A!=="combobox"||!J||!re||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),fe&&!Be&&A!=="combobox"&&A!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!Y||je,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_e!=null){var Ye=Object(u.d)(_e);Object(c.a)(!te||Ye.every(function(de){return Object(i.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!ge||Array.isArray(_e),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var Ae=null;Object(v.a)(oe).some(function(de){if(!R.isValidElement(de)||!de.type)return!1;var me=de.type;if(me.isSelectOption)return!1;if(me.isSelectOptGroup){var Qe=Object(v.a)(de.props.children).every(function(et){return!R.isValidElement(et)||!de.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=me,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Te===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var h=U,W=Object(e.a)({prefixCls:"rc-select",components:{optionList:m},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:h,fillOptionsWithMissingValue:a.a}),z=function(Z){Object($.a)(ee,Z);var A=Object(le.a)(ee);function ee(){var oe;return Object(g.a)(this,ee),oe=A.apply(this,arguments),oe.selectRef=R.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(y.a)(ee,[{key:"render",value:function(){return R.createElement(W,Object.assign({ref:this.selectRef},this.props))}}]),ee}(R.Component);z.Option=C,z.OptGroup=K;var q=z,he=_.c=q},NvD2:function(Oe,_,t){"use strict";t.d(_,"a",function(){return o});var g=t("Kwbf");function y(Q,L){var d=new Set;return Q.forEach(function(B){L.has(B)||d.add(B)}),d}function $(Q){var L=Q||{},d=L.disabled,B=L.disableCheckbox,j=L.checkable;return!!(d||B)||j===!1}function le(Q,L,d,B){for(var j=new Set(Q),X=new Set,H=0;H<=d;H+=1){var D=L.get(H)||new Set;D.forEach(function(m){var E=m.key,C=m.node,p=m.children,K=p===void 0?[]:p;j.has(E)&&!B(C)&&K.filter(function(f){return!B(f.node)}).forEach(function(f){j.add(f.key)})})}for(var s=new Set,l=d;l>=0;l-=1){var O=L.get(l)||new Set;O.forEach(function(m){var E=m.parent,C=m.node;if(B(C)||!m.parent||s.has(m.parent.key))return;if(B(m.parent.node)){s.add(E.key);return}var p=!0,K=!1;(E.children||[]).filter(function(f){return!B(f.node)}).forEach(function(f){var v=f.key,b=j.has(v);p&&!b&&(p=!1),!K&&(b||X.has(v))&&(K=!0)}),p&&j.add(E.key),K&&X.add(E.key),s.add(E.key)})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(y(X,j))}}function R(Q,L,d,B,j){for(var X=new Set(Q),H=new Set(L),D=0;D<=B;D+=1){var s=d.get(D)||new Set;s.forEach(function(E){var C=E.key,p=E.node,K=E.children,f=K===void 0?[]:K;!X.has(C)&&!H.has(C)&&!j(p)&&f.filter(function(v){return!j(v.node)}).forEach(function(v){X.delete(v.key)})})}H=new Set;for(var l=new Set,O=B;O>=0;O-=1){var m=d.get(O)||new Set;m.forEach(function(E){var C=E.parent,p=E.node;if(j(p)||!E.parent||l.has(E.parent.key))return;if(j(E.parent.node)){l.add(C.key);return}var K=!0,f=!1;(C.children||[]).filter(function(v){return!j(v.node)}).forEach(function(v){var b=v.key,n=X.has(b);K&&!n&&(K=!1),!f&&(n||H.has(b))&&(f=!0)}),K||X.delete(C.key),f&&H.add(C.key),l.add(C.key)})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(y(H,X))}}function o(Q,L,d,B){var j=[],X;B?X=B:X=$;var H=new Set(Q.filter(function(O){var m=!!d[O];return m||j.push(O),m})),D=new Map,s=0;Object.keys(d).forEach(function(O){var m=d[O],E=m.level,C=D.get(E);C||(C=new Set,D.set(E,C)),C.add(m),s=Math.max(s,E)}),Object(g.a)(!j.length,"Tree missing follow keys: ".concat(j.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var l;return L===!0?l=le(H,D,s,X):l=R(H,L.halfCheckedKeys,D,s,X),l}},OZM5:function(Oe,_,t){"use strict";t.d(_,"b",function(){return B}),t.d(_,"a",function(){return j}),t.d(_,"k",function(){return X}),t.d(_,"h",function(){return H}),t.d(_,"i",function(){return D}),t.d(_,"g",function(){return s}),t.d(_,"c",function(){return l}),t.d(_,"d",function(){return O}),t.d(_,"j",function(){return C}),t.d(_,"e",function(){return p}),t.d(_,"f",function(){return K});var g=t("KQm4"),y=t("U8pU"),$=t("Ff2n"),le=t("q1tI"),R=t.n(le),o=t("Kwbf"),Q=t("WaYH"),L=.25,d=2;function B(f,v){var b=f.slice(),n=b.indexOf(v);return n>=0&&b.splice(n,1),b}function j(f,v){var b=f.slice();return b.indexOf(v)===-1&&b.push(v),b}function X(f){return f.split("-")}function H(f,v){return"".concat(f,"-").concat(v)}function D(f){return f&&f.type&&f.type.isTreeNode}function s(f,v){var b=[f],n=v[f];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var c=i.key,u=i.children;b.push(c),a(u)})}return a(n.children),b}function l(f,v){var b=f.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,i=n.height,c=Math.max(i*L,d);return b<=a+c?-1:b>=e-c?1:0}function O(f,v){if(!f)return;var b=v.multiple;return b?f.slice():f.length?[f[0]]:f}var m=function(v){return v};function E(f,v){if(!f)return[];var b=v||{},n=b.processProps,a=n===void 0?m:n,e=Array.isArray(f)?f:[f];return e.map(function(i){var c=i.children,u=Object($.a)(i,["children"]),U=E(c,v);return R.a.createElement(Q.a,Object.assign({},a(u)),U)})}function C(f){if(!f)return null;var v;if(Array.isArray(f))v={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(y.a)(f)==="object")v={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function p(f,v){var b=new Set;function n(a){if(b.has(a))return;var e=v[a];if(!e)return;b.add(a);var i=e.parent,c=e.node;if(c.disabled)return;i&&n(i.key)}return(f||[]).forEach(function(a){n(a)}),Object(g.a)(b)}function K(f){var v={};return Object.keys(f).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(v[b]=f[b])}),v}},"SA+Z":function(Oe,_,t){var g=t("wTVA"),y=t("EbDI"),$=t("ZhPi"),le=t("wkBT");function R(o){return g(o)||y(o)||$(o)||le()}Oe.exports=R,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports},WaYH:function(Oe,_,t){"use strict";var g=t("rePB"),y=t("Ff2n"),$=t("VTBJ"),le=t("1OyB"),R=t("vuIU"),o=t("JX7q"),Q=t("Ji7U"),L=t("LK+K"),d=t("q1tI"),B=t("TSYQ"),j=t.n(B),X=t("sboe"),H=t("OZM5"),D=function(v){var b=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var i="".concat(b,"-indent-unit"),c=[],u=0;u1)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 p=C[0];if(o.isValidElement(p)&&Object(j.c)(p)){var K=p.ref;C[0]=o.cloneElement(p,{ref:Object(j.a)(K,this.setChildNode)})}return C.length===1?C[0]:C.map(function(f,v){return!o.isValidElement(f)||"key"in f&&f.key!==null?f:o.cloneElement(f,{key:"".concat(H,"-").concat(v)})})}}]),O}(o.Component);D.displayName="ResizeObserver",_.a=D},wCXF:function(Oe,_,t){"use strict";t.d(_,"a",function(){return tt});var g=t("rePB"),y=t("VTBJ"),$=t("KQm4"),le=t("U8pU"),R=t("ODXe"),o=t("q1tI"),Q=t("TSYQ"),L=t.n(Q),d=t("Gytx"),B=t.n(d),j=t("Kwbf"),X=t("t23M"),H=t("qx4F"),D=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=t("c+Xe"),m=t("fyJ8"),E=t("biw7");function C(r,x,N,w,k){var M=N[r]||{},P=N[x]||{},T,S;M.fixed==="left"?T=w.left[r]:P.fixed==="right"&&(S=w.right[x]);var V=!1,I=!1,F=!1,ae=!1,G=N[x+1],ie=N[r-1];if(k==="rtl"){if(T!==void 0){var xe=ie&&ie.fixed==="left";ae=!xe}else if(S!==void 0){var Ee=G&&G.fixed==="right";F=!Ee}}else if(T!==void 0){var ye=G&&G.fixed==="left";V=!ye}else if(S!==void 0){var se=ie&&ie.fixed==="right";I=!se}return{fixLeft:T,fixRight:S,lastFixLeft:V,firstFixRight:I,lastFixRight:F,firstFixLeft:ae,isSticky:w.isSticky}}var p=t("sR1s");function K(r){var x=r.cells,N=r.stickyOffsets,w=r.flattenColumns,k=r.rowComponent,M=r.cellComponent,P=r.onHeaderRow,T=r.index,S=o.useContext(E.a),V=S.prefixCls,I=S.direction,F;P&&(F=P(x.map(function(G){return G.column}),T));var ae=Object(p.a)(x.map(function(G){return G.column}));return o.createElement(k,Object.assign({},F),x.map(function(G,ie){var xe=G.column,Ee=C(G.colStart,G.colEnd,w,N,I),ye;return xe&&xe.onHeaderCell&&(ye=G.column.onHeaderCell(xe)),o.createElement(m.a,Object.assign({},G,{ellipsis:xe.ellipsis,align:xe.align,component:M,prefixCls:V,key:ae[ie]},Ee,{additionalProps:ye,rowType:"header"}))}))}K.displayName="HeaderRow";var f=K;function v(r){var x=[];function N(P,T){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;x[S]=x[S]||[];var V=T,I=P.filter(Boolean).map(function(F){var ae={key:F.key,className:F.className||"",children:F.title,column:F,colStart:V},G=1,ie=F.children;return ie&&ie.length>0&&(G=N(ie,V,S+1).reduce(function(xe,Ee){return xe+Ee},0),ae.hasSubColumns=!0),"colSpan"in F&&(G=F.colSpan),"rowSpan"in F&&(ae.rowSpan=F.rowSpan),ae.colSpan=G,ae.colEnd=ae.colStart+G-1,x[S].push(ae),V+=G,G});return I}N(r,0);for(var w=x.length,k=function(T){x[T].forEach(function(S){!("rowSpan"in S)&&!S.hasSubColumns&&(S.rowSpan=w-T)})},M=0;M=0;T-=1){var S=x[T],V=N&&N[T],I=V&&V[a.a];(S||I||P)&&(k.unshift(o.createElement("col",Object.assign({key:T,style:{width:S,minWidth:S}},I))),P=!0)}return o.createElement("colgroup",null,k)}var i=e;function c(r,x){return Object(o.useMemo)(function(){for(var N=[],w=0;w1?He-1:0),dt=1;dt=F&&(Pe=F-ae),P({scrollLeft:Pe/F*(I+2)}),se.current.x=ce.pageX},We=function(){var ce=Object(Ye.b)(M.current).top,we=ce+M.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;we-Object(H.a)()<=Fe||ce>=Fe-T?ye(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!0})}):ye(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!1})})},Me=function(ce){ye(function(we){return Object(y.a)(Object(y.a)({},we),{},{scrollLeft:ce/I*F||0})})};return o.useImperativeHandle(N,function(){return{setScrollLeft:Me}}),o.useEffect(function(){var Ne=Object(ke.a)(document.body,"mouseup",$e,!1),ce=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){Ne.remove(),ce.remove()}},[ae,Se]),o.useEffect(function(){var Ne=Object(ke.a)(window,"scroll",We,!1),ce=Object(ke.a)(window,"resize",We,!1);return function(){Ne.remove(),ce.remove()}},[]),o.useEffect(function(){Ee.isHiddenScrollBar||ye(function(Ne){var ce,we;return Object(y.a)(Object(y.a)({},Ne),{},{scrollLeft:M.current.scrollLeft/((ce=M.current)===null||ce===void 0?void 0:ce.scrollWidth)*((we=M.current)===null||we===void 0?void 0:we.clientWidth)})})},[Ee.isHiddenScrollBar]),I<=F||!ae||Ee.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(H.a)(),width:F,bottom:T},className:"".concat(V,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ce,ref:G,className:L()("".concat(V,"-sticky-scroll-bar"),Object(g.a)({},"".concat(V,"-sticky-scroll-bar-active"),Se)),style:{width:"".concat(ae,"px"),transform:"translate3d(".concat(Ee.scrollLeft,"px, 0, 0)")}}))},de=o.forwardRef(Ae);function me(r,x){return o.useMemo(function(){var N=!!r;return{isSticky:N,stickyClassName:N?"".concat(x,"-sticky-header"):"",offsetHeader:Object(le.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(le.a)(r)==="object"&&r.offsetScroll||0}},[r,x])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var x=r.children;return x},function(r,x){return B()(r.props,x.props)?r.pingLeft!==x.pingLeft||r.pingRight!==x.pingRight:!1});function Ve(r){var x,N=r.prefixCls,w=r.className,k=r.rowClassName,M=r.style,P=r.data,T=r.rowKey,S=r.scroll,V=r.tableLayout,I=r.direction,F=r.title,ae=r.footer,G=r.summary,ie=r.id,xe=r.showHeader,Ee=r.components,ye=r.emptyText,se=r.onRow,Xe=r.onHeaderRow,De=r.internalHooks,Se=r.transformColumns,Ie=r.internalRefs,$e=r.sticky,Ce=P||Qe,Ge=!!Ce.length,We=o.useState(0),Me=Object(R.a)(We,2),Ne=Me[0],ce=Me[1];o.useEffect(function(){ce(Object(H.a)())});var we=o.useMemo(function(){return Object(p.c)(Ee,{})},[Ee]),Fe=o.useCallback(function(pe,ve){return Object(p.b)(we,pe)||ve},[we]),Je=o.useMemo(function(){return typeof T=="function"?T:function(pe){var ve=pe&&pe[T];return ve}},[T]),Pe=Object(a.c)(r),jt=Pe.expandIcon,Nt=Pe.expandedRowKeys,Rt=Pe.defaultExpandedRowKeys,rt=Pe.defaultExpandAllRows,it=Pe.expandedRowRender,ft=Pe.onExpand,mt=Pe.onExpandedRowsChange,Tt=Pe.expandRowByClick,nt=Pe.rowExpandable,Et=Pe.expandIconColumnIndex,pt=Pe.expandedRowClassName,Kt=Pe.childrenColumnName,Pt=Pe.indentSize,ht=jt||Be,gt=Kt||"children",St=o.useMemo(function(){return it?"row":r.expandable&&De===tt&&r.expandable.__PARENT_RENDER_ICON__||Ce.some(function(pe){return pe&&Object(le.a)(pe)==="object"&&pe[gt]})?"nest":!1},[!!it,Ce]),Dt=o.useState(function(){return Rt||(rt?Ue(Ce,Je,gt):[])}),ze=Object(R.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Nt||Ze||[])},[Nt,Ze]),ct=o.useCallback(function(pe){var ve=Je(pe,Ce.indexOf(pe)),Ke,qe=He.has(ve);qe?(He.delete(ve),Ke=Object($.a)(He)):Ke=[].concat(Object($.a)(He),[ve]),at(Ke),ft&&ft(!qe,pe),mt&&mt(Ke)},[Je,He,Ce,ft,mt]),dt=o.useState(0),Mt=Object(R.a)(dt,2),Ct=Mt[0],Lt=Mt[1],vn=Object(J.b)(Object(y.a)(Object(y.a)(Object(y.a)({},r),Pe),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:I}),De===tt?Se:null),Yt=Object(R.a)(vn,2),kt=Yt[0],Le=Yt[1],_t=o.useMemo(function(){return{columns:kt,flattenColumns:Le}},[kt,Le]),Wt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(R.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(R.a)(gn,2),tn=en[0],Cn=en[1],yn=Y(new Map),nn=Object(R.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(p.a)(Le),an=jn.map(function(pe){return On.get(pe)}),on=o.useMemo(function(){return an},[an.join("_")]),At=_e(on,Le.length,I),ot=S&&Object(p.d)(S.y),lt=S&&Object(p.d)(S.x),yt=lt&&Le.some(function(pe){var ve=pe.fixed;return ve}),rn=o.useRef(),wt=me($e,N),Ot=wt.isSticky,Nn=wt.offsetHeader,Rn=wt.offsetScroll,Tn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:S.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:S.x===!0?"auto":S.x,minWidth:"100%"});var ln=o.useCallback(function(pe,ve){xn(function(Ke){var qe=new Map(Ke);return qe.set(pe,ve),qe})},[]),Pn=je(null),sn=Object(R.a)(Pn,2),Sn=sn[0],cn=sn[1];function Ft(pe,ve){if(!ve)return;typeof ve=="function"?ve(pe):ve.scrollLeft!==pe&&(ve.scrollLeft=pe)}var vt=function(ve){var Ke=ve.currentTarget,qe=ve.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Sn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(y.a)(l),Object(y.a)(j(C).map(function(p){return Object($.a)({fixed:E},p)}))):[].concat(Object(y.a)(l),[Object($.a)(Object($.a)({},O),{},{fixed:E})])},[])}function X(s){for(var l=!0,O=0;O=0;C-=1){var p=s[C];if(E&&p.fixed!=="right")E=!1;else if(!E&&p.fixed==="right"){Object(Q.a)(!1,"Index ".concat(C+1," of `columns` missing `fixed='right'` prop."));break}}}function H(s){return s.map(function(l){var O=l.fixed,m=Object(le.a)(l,["fixed"]),E=O;return O==="left"?E="right":O==="right"&&(E="left"),Object($.a)({fixed:E},m)})}function D(s,l){var O=s.prefixCls,m=s.columns,E=s.children,C=s.expandable,p=s.expandedKeys,K=s.getRowKey,f=s.onTriggerExpand,v=s.expandIcon,b=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,i=R.useMemo(function(){return m||B(E)},[m,E]),c=R.useMemo(function(){if(C){var h,W=n||0,z=i[W],q=(h={},Object(g.a)(h,d.a,{className:"".concat(O,"-expand-icon-col")}),Object(g.a)(h,"title",""),Object(g.a)(h,"fixed",z?z.fixed:null),Object(g.a)(h,"className","".concat(O,"-row-expand-icon-cell")),Object(g.a)(h,"render",function(A,ee,oe){var ne=K(ee,oe),re=p.has(ne),be=b?b(ee):!0,J=v({prefixCls:O,expanded:re,expandable:be,record:ee,onExpand:f});return e?R.createElement("span",{onClick:function(fe){return fe.stopPropagation()}},J):J}),h),he=i.slice();return W>=0&&he.splice(W,0,q),he}return i},[C,i,K,p,v,a]),u=R.useMemo(function(){var h=c;return l&&(h=l(h)),h.length||(h=[{render:function(){return null}}]),h},[l,c,a]),U=R.useMemo(function(){return a==="rtl"?H(j(u)):j(u)},[u,a]);return[u,U]}_.b=D},"y0+3":function(Oe,_,t){"use strict";t.d(_,"a",function(){return j}),t.d(_,"b",function(){return H});var g=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},$={cssFloat:1,styleFloat:1,float:1};function le(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function R(D,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return D.offsetHeight;if(s==="width")return D.offsetWidth}return s in y||(y[s]=g.test(s)),y[s]?parseFloat(l)||0:l}function o(D,s){var l=arguments.length,O=le(D);return s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,l===1?O:R(D,s,O[s]||D.style[s])}function Q(D,s,l){var O=arguments.length;if(s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,O===3)return typeof l=="number"&&g.test(s)&&(l="".concat(l,"px")),D.style[s]=l,l;for(var m in s)s.hasOwnProperty(m)&&Q(D,m,s[m]);return le(D)}function L(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function d(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function B(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:s}}function j(){var D=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:s}}function X(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function H(D){var s=D.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[232,8],{"6+eU":function(Oe,_,t){"use strict";t.d(_,"a",function(){return f});var g=t("wx14"),y=t("rePB"),$=t("VTBJ"),le=t("1OyB"),R=t("vuIU"),o=t("Ji7U"),Q=t("LK+K"),L=t("q1tI"),d=t.n(L),B=t("TSYQ"),j=t.n(B),X=function(b){var n,a="".concat(b.rootPrefixCls,"-item"),e=j()(a,"".concat(a,"-").concat(b.page),(n={},Object(y.a)(n,"".concat(a,"-active"),b.active),Object(y.a)(n,b.className,!!b.className),Object(y.a)(n,"".concat(a,"-disabled"),!b.page),n)),i=function(){b.onClick(b.page)},c=function(U){b.onKeyPress(U,b.onClick,b.page)};return d.a.createElement("li",{title:b.showTitle?b.page:null,className:e,onClick:i,onKeyPress:c,tabIndex:"0"},b.itemRender(b.page,"page",d.a.createElement("a",{rel:"nofollow"},b.page)))},H=X,D={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},s=function(v){Object(o.a)(n,v);var b=Object(Q.a)(n);function n(){var a;Object(le.a)(this,n);for(var e=arguments.length,i=new Array(e),c=0;c=0||u.relatedTarget.className.indexOf("".concat(z,"-next"))>=0))return;a.setState({goInputText:""}),k(a.getValidValue())},a.go=function(u){var U=a.state.goInputText;if(U==="")return;(u.keyCode===D.ENTER||u.type==="click")&&(a.setState({goInputText:""}),a.props.quickGo(a.getValidValue()))},a}return Object(R.a)(n,[{key:"getValidValue",value:function(){var e=this.state,i=e.goInputText,c=e.current;return!i||isNaN(i)?c:Number(i)}},{key:"getPageSizeOptions",value:function(){var e=this.props,i=e.pageSize,c=e.pageSizeOptions;return c.some(function(u){return u.toString()===i.toString()})?c:c.concat([i.toString()]).sort(function(u,U){var h=isNaN(Number(u))?0:Number(u),k=isNaN(Number(U))?0:Number(U);return h-k})}},{key:"render",value:function(){var e=this,i=this.props,c=i.pageSize,u=i.locale,U=i.rootPrefixCls,h=i.changeSize,k=i.quickGo,z=i.goButton,q=i.selectComponentClass,he=i.buildOptionText,Z=i.selectPrefixCls,A=i.disabled,ee=this.state.goInputText,oe="".concat(U,"-options"),ne=q,re=null,be=null,J=null;if(!h&&!k)return null;var Re=this.getPageSizeOptions();if(h&&ne){var fe=Re.map(function(Y,je){return d.a.createElement(ne.Option,{key:je,value:Y.toString()},(he||e.buildOptionText)(Y))});re=d.a.createElement(ne,{disabled:A,prefixCls:Z,showSearch:!1,className:"".concat(oe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(c||Re[0]).toString(),onChange:this.changeSize,getPopupContainer:function(je){return je.parentNode}},fe)}return k&&(z&&(J=typeof z=="boolean"?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:A,className:"".concat(oe,"-quick-jumper-button")},u.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},z)),be=d.a.createElement("div",{className:"".concat(oe,"-quick-jumper")},u.jump_to,d.a.createElement("input",{disabled:A,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),u.page,J)),d.a.createElement("li",{className:"".concat(oe)},re,be)}}]),n}(d.a.Component);s.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=s,O=t("N2Kk");function m(){}function E(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function C(v,b,n){return n}function p(v,b,n){var a=typeof v=="undefined"?b.pageSize:v;return Math.floor((n.total-1)/a)+1}var K=function(v){Object(o.a)(n,v);var b=Object(Q.a)(n);function n(a){var e;Object(le.a)(this,n),e=b.call(this,a),e.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},e.getJumpNextPage=function(){return Math.min(p(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},e.getItemIcon=function(h,k){var z=e.props.prefixCls,q=h||d.a.createElement("button",{type:"button","aria-label":k,className:"".concat(z,"-item-link")});return typeof h=="function"&&(q=d.a.createElement(h,Object($.a)({},e.props))),q},e.savePaginationNode=function(h){e.paginationNode=h},e.isValid=function(h){return E(h)&&h!==e.state.current},e.shouldDisplayQuickJumper=function(){var h=e.props,k=h.showQuickJumper,z=h.pageSize,q=h.total;return q<=z?!1:k},e.handleKeyDown=function(h){(h.keyCode===D.ARROW_UP||h.keyCode===D.ARROW_DOWN)&&h.preventDefault()},e.handleKeyUp=function(h){var k=e.getValidValue(h),z=e.state.currentInputValue;k!==z&&e.setState({currentInputValue:k}),h.keyCode===D.ENTER?e.handleChange(k):h.keyCode===D.ARROW_UP?e.handleChange(k-1):h.keyCode===D.ARROW_DOWN&&e.handleChange(k+1)},e.changePageSize=function(h){var k=e.state.current,z=p(h,e.state,e.props);k=k>z?z:k,z===0&&(k=e.state.current),typeof h=="number"&&("pageSize"in e.props||e.setState({pageSize:h}),"current"in e.props||e.setState({current:k,currentInputValue:k})),e.props.onShowSizeChange(k,h),"onChange"in e.props&&e.props.onChange&&e.props.onChange(k,h)},e.handleChange=function(h){var k=e.props.disabled,z=h;if(e.isValid(z)&&!k){var q=p(void 0,e.state,e.props);z>q?z=q:z<1&&(z=1),"current"in e.props||e.setState({current:z,currentInputValue:z});var he=e.state.pageSize;return e.props.onChange(z,he),z}return e.state.current},e.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},e.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},e.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},e.jumpNext=function(){e.handleChange(e.getJumpNextPage())},e.hasPrev=function(){return e.state.current>1},e.hasNext=function(){return e.state.current2?z-2:0),he=2;he=c?U=c:U=Number(i),U}},{key:"getShowSizeChanger",value:function(){var e=this.props,i=e.showSizeChanger,c=e.total,u=e.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:c>u}},{key:"renderPrev",value:function(e){var i=this.props,c=i.prevIcon,u=i.itemRender,U=u(e,"prev",this.getItemIcon(c,"prev page")),h=!this.hasPrev();return Object(L.isValidElement)(U)?Object(L.cloneElement)(U,{disabled:h}):U}},{key:"renderNext",value:function(e){var i=this.props,c=i.nextIcon,u=i.itemRender,U=u(e,"next",this.getItemIcon(c,"next page")),h=!this.hasNext();return Object(L.isValidElement)(U)?Object(L.cloneElement)(U,{disabled:h}):U}},{key:"render",value:function(){var e=this,i=this.props,c=i.prefixCls,u=i.className,U=i.style,h=i.disabled,k=i.hideOnSinglePage,z=i.total,q=i.locale,he=i.showQuickJumper,Z=i.showLessItems,A=i.showTitle,ee=i.showTotal,oe=i.simple,ne=i.itemRender,re=i.showPrevNextJumpers,be=i.jumpPrevIcon,J=i.jumpNextIcon,Re=i.selectComponentClass,fe=i.selectPrefixCls,Y=i.pageSizeOptions,je=this.state,te=je.current,_e=je.pageSize,Te=je.currentInputValue;if(k===!0&&z<=_e)return null;var ue=p(void 0,this.state,this.props),ge=[],Be=null,Ue=null,We=null,Ye=null,Ae=null,de=he&&he.goButton,me=Z?1:2,Qe=te-1>0?te-1:0,et=te+1=me*2&&te!==1+2&&(ge[0]=Object(L.cloneElement)(ge[0],{className:"".concat(c,"-item-after-jump-prev")}),ge.unshift(Be)),ue-te>=me*2&&te!==ue-2&&(ge[ge.length-1]=Object(L.cloneElement)(ge[ge.length-1],{className:"".concat(c,"-item-before-jump-next")}),ge.push(Ue)),N!==1&&ge.unshift(We),w!==ue&&ge.push(Ye)}var P=null;ee&&(P=d.a.createElement("li",{className:"".concat(c,"-total-text")},ee(z,[z===0?0:(te-1)*_e+1,te*_e>z?z:te*_e])));var T=!this.hasPrev()||!ue,S=!this.hasNext()||!ue;return d.a.createElement("ul",Object(g.a)({className:j()(c,u,Object(y.a)({},"".concat(c,"-disabled"),h)),style:U,unselectable:"unselectable",ref:this.savePaginationNode},tt),P,d.a.createElement("li",{title:A?q.prev_page:null,onClick:this.prev,tabIndex:T?null:0,onKeyPress:this.runIfEnterPrev,className:j()("".concat(c,"-prev"),Object(y.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),ge,d.a.createElement("li",{title:A?q.next_page:null,onClick:this.next,tabIndex:S?null:0,onKeyPress:this.runIfEnterNext,className:j()("".concat(c,"-next"),Object(y.a)({},"".concat(c,"-disabled"),S)),"aria-disabled":S},this.renderNext(et)),d.a.createElement(l,{disabled:h,locale:q,rootPrefixCls:c,selectComponentClass:Re,selectPrefixCls:fe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:te,pageSize:_e,pageSizeOptions:Y,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:de}))}}],[{key:"getDerivedStateFromProps",value:function(e,i){var c={};if("current"in e&&(c.current=e.current,e.current!==i.current&&(c.currentInputValue=c.current)),"pageSize"in e&&e.pageSize!==i.pageSize){var u=i.current,U=p(e.pageSize,i,e);u=u>U?U:u,"current"in e||(c.current=u,c.currentInputValue=u),c.pageSize=e.pageSize}return c}}]),n}(d.a.Component);K.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:m,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:m,locale:O.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var f=K},"6RRn":function(Oe,_,t){"use strict";var g=t("wCXF"),y=t("n6Qo");t.d(_,"b",function(){return y.a});var $=t("IBYe"),le=t("6eGT"),R=t("hW8S");t.d(_,"a",function(){return R.a}),_.c=g.b},"6eGT":function(Oe,_,t){"use strict";function g(y){return null}_.a=g},"815F":function(Oe,_,t){"use strict";t.d(_,"e",function(){return Q}),t.d(_,"c",function(){return d}),t.d(_,"d",function(){return B}),t.d(_,"a",function(){return X}),t.d(_,"f",function(){return H}),t.d(_,"b",function(){return D});var g=t("KQm4"),y=t("VTBJ"),$=t("Ff2n"),le=t("Zm9Q"),R=t("Kwbf"),o=t("OZM5");function Q(s,l){return s!=null?s:l}function L(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function O(m){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(m||[]).forEach(function(C){var p=C.key,K=C.children;Object(R.a)(p!=null,"Tree node must have a certain key: [".concat(E).concat(p,"]"));var f=String(p);Object(R.a)(!l.has(f)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(f)),l.set(f,!0),O(K,"".concat(E).concat(f," > "))})}O(s)}function d(s){function l(O){var m=Object(le.a)(O);return m.map(function(E){if(!Object(o.i)(E))return Object(R.a)(!E,"Tree/TreeNode can only accept TreeNode as children."),null;var C=E.key,p=E.props,K=p.children,f=Object($.a)(p,["children"]),v=Object(y.a)({key:C},f),b=l(K);return b.length&&(v.children=b),v}).filter(function(E){return E})}return l(s)}function B(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(l===!0?[]:l),m=[];function E(C){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(K,f){var v=Object(o.h)(p?p.pos:"0",f),b=Q(K.key,v),n=Object(y.a)(Object(y.a)({},K),{},{parent:p,pos:v,children:null,data:K,isStart:[].concat(Object(g.a)(p?p.isStart:[]),[f===0]),isEnd:[].concat(Object(g.a)(p?p.isEnd:[]),[f===C.length-1])});return m.push(n),l===!0||O.has(b)?n.children=E(K.children||[],n):n.children=[],n})}return E(s),m}function j(s,l,O){var m;O?typeof O=="string"?m=function(p){return p[O]}:typeof O=="function"&&(m=function(p){return O(p)}):m=function(p,K){return Q(p.key,K)};function E(C,p,K){var f=C?C.children:s,v=C?Object(o.h)(K.pos,p):"0";if(C){var b=m(C,v),n={node:C,index:p,pos:v,key:b,parentPos:K.node?K.pos:null,level:K.level+1};l(n)}f&&f.forEach(function(a,e){E(a,e,{node:C,pos:v,level:K?K.level+1:-1})})}E(null)}function X(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=l.initWrapper,m=l.processEntity,E=l.onProcessFinished,C=arguments.length>2?arguments[2]:void 0,p={},K={},f={posEntities:p,keyEntities:K};return O&&(f=O(f)||f),j(s,function(v){var b=v.node,n=v.index,a=v.pos,e=v.key,i=v.parentPos,c=v.level,u={node:b,index:n,key:e,pos:a,level:c},U=Q(e,a);p[a]=u,K[U]=u,u.parent=p[i],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),m&&m(u,f)},C),E&&E(f),f}function H(s,l){var O=l.expandedKeys,m=l.selectedKeys,E=l.loadedKeys,C=l.loadingKeys,p=l.checkedKeys,K=l.halfCheckedKeys,f=l.dragOverNodeKey,v=l.dropPosition,b=l.keyEntities,n=b[s],a={eventKey:s,expanded:O.indexOf(s)!==-1,selected:m.indexOf(s)!==-1,loaded:E.indexOf(s)!==-1,loading:C.indexOf(s)!==-1,checked:p.indexOf(s)!==-1,halfChecked:K.indexOf(s)!==-1,pos:String(n?n.pos:""),dragOver:f===s&&v===0,dragOverGapTop:f===s&&v===-1,dragOverGapBottom:f===s&&v===1};return a}function D(s){var l=s.data,O=s.expanded,m=s.selected,E=s.checked,C=s.loaded,p=s.loading,K=s.halfChecked,f=s.dragOver,v=s.dragOverGapTop,b=s.dragOverGapBottom,n=s.pos,a=s.active,e=Object(y.a)(Object(y.a)({},l),{},{expanded:O,selected:m,checked:E,loaded:C,loading:p,halfChecked:K,dragOver:f,dragOverGapTop:v,dragOverGapBottom:b,pos:n,active:a});return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(R.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),e}},"9YGm":function(Oe,_,t){Oe.exports={bg:"bg___1bAP4",header:"header___1lG6Z",line:"line___2EDvV",main:"main___25tDY",row:"row___1OWn9"}},IBYe:function(Oe,_,t){"use strict";function g(y){return null}_.a=g},LdHM:function(Oe,_,t){"use strict";t.d(_,"b",function(){return C}),t.d(_,"a",function(){return K});var g=t("1OyB"),y=t("vuIU"),$=t("Ji7U"),le=t("LK+K"),R=t("q1tI"),o=t("rePB"),Q=t("Ff2n"),L=t("ODXe"),d=t("4IlW"),B=t("bX4T"),j=t("YrtM"),X=t("TSYQ"),H=t.n(X),D=t("+nKL"),s=t("8OUc"),l=function(A,ee){var oe=A.prefixCls,ne=A.id,re=A.flattenOptions,be=A.childrenAsData,J=A.values,Re=A.searchValue,fe=A.multiple,Y=A.defaultActiveFirstOption,je=A.height,te=A.itemHeight,_e=A.notFoundContent,Te=A.open,ue=A.menuItemSelectedIcon,ge=A.virtual,Be=A.onSelect,Ue=A.onToggleOpen,We=A.onActiveValue,Ye=A.onScroll,Ae=A.onMouseEnter,de="".concat(oe,"-item"),me=Object(j.a)(function(){return re},[Te,re],function(M,P){return P[0]&&M[1]!==P[1]}),Qe=R.useRef(null),et=function(P){P.preventDefault()},tt=function(P){Qe.current&&Qe.current.scrollTo({index:P})},st=function(P){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,S=me.length,V=0;V1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(Z).map(function(ee,oe){if(!R.isValidElement(ee)||!ee.type)return null;var ne=ee.type.isSelectOptGroup,re=ee.key,be=ee.props,J=be.children,Re=Object(Q.a)(be,["children"]);return A||!ne?b(ee):Object(f.a)(Object(f.a)({key:"__RC_SELECT_GRP__".concat(re===null?oe:re,"__"),label:re},Re),{},{options:n(J)})}).filter(function(ee){return ee})}var a=t("2Qr1"),e=t("qNPg"),i=t("U8pU"),c=t("Kwbf"),u=t("WKfj");function U(Z){var A=Z.mode,ee=Z.options,oe=Z.children,ne=Z.backfill,re=Z.allowClear,be=Z.placeholder,J=Z.getInputElement,Re=Z.showSearch,fe=Z.onSearch,Y=Z.defaultOpen,je=Z.autoFocus,te=Z.labelInValue,_e=Z.value,Te=Z.inputValue,ue=Z.optionLabelProp,ge=A==="multiple"||A==="tags",Be=Re!==void 0?Re:ge||A==="combobox",Ue=ee||n(oe);if(Object(c.a)(A!=="tags"||Ue.every(function(de){return!de.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),A==="tags"||A==="combobox"){var We=Ue.some(function(de){return de.options?de.options.some(function(me){return typeof("value"in me?me.value:me.key)=="number"}):typeof("value"in de?de.value:de.key)=="number"});Object(c.a)(!We,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(c.a)(A!=="combobox"||!ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(c.a)(A==="combobox"||!ne,"`backfill` only works with `combobox` mode."),Object(c.a)(A==="combobox"||!J,"`getInputElement` only work with `combobox` mode."),Object(c.b)(A!=="combobox"||!J||!re||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),fe&&!Be&&A!=="combobox"&&A!=="tags"&&Object(c.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(c.b)(!Y||je,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_e!=null){var Ye=Object(u.d)(_e);Object(c.a)(!te||Ye.every(function(de){return Object(i.a)(de)==="object"&&("key"in de||"value"in de)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(c.a)(!ge||Array.isArray(_e),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var Ae=null;Object(v.a)(oe).some(function(de){if(!R.isValidElement(de)||!de.type)return!1;var me=de.type;if(me.isSelectOption)return!1;if(me.isSelectOptGroup){var Qe=Object(v.a)(de.props.children).every(function(et){return!R.isValidElement(et)||!de.type||et.type.isSelectOption?!0:(Ae=et.type,!1)});return!Qe}return Ae=me,!0}),Ae&&Object(c.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ae.displayName||Ae.name||Ae,"`.")),Object(c.a)(Te===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var h=U,k=Object(e.a)({prefixCls:"rc-select",components:{optionList:m},convertChildrenToData:n,flattenOptions:a.d,getLabeledValue:a.e,filterOptions:a.b,isValueDisabled:a.g,findValueOption:a.c,warningProps:h,fillOptionsWithMissingValue:a.a}),z=function(Z){Object($.a)(ee,Z);var A=Object(le.a)(ee);function ee(){var oe;return Object(g.a)(this,ee),oe=A.apply(this,arguments),oe.selectRef=R.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(y.a)(ee,[{key:"render",value:function(){return R.createElement(k,Object.assign({ref:this.selectRef},this.props))}}]),ee}(R.Component);z.Option=C,z.OptGroup=K;var q=z,he=_.c=q},NvD2:function(Oe,_,t){"use strict";t.d(_,"a",function(){return o});var g=t("Kwbf");function y(Q,L){var d=new Set;return Q.forEach(function(B){L.has(B)||d.add(B)}),d}function $(Q){var L=Q||{},d=L.disabled,B=L.disableCheckbox,j=L.checkable;return!!(d||B)||j===!1}function le(Q,L,d,B){for(var j=new Set(Q),X=new Set,H=0;H<=d;H+=1){var D=L.get(H)||new Set;D.forEach(function(m){var E=m.key,C=m.node,p=m.children,K=p===void 0?[]:p;j.has(E)&&!B(C)&&K.filter(function(f){return!B(f.node)}).forEach(function(f){j.add(f.key)})})}for(var s=new Set,l=d;l>=0;l-=1){var O=L.get(l)||new Set;O.forEach(function(m){var E=m.parent,C=m.node;if(B(C)||!m.parent||s.has(m.parent.key))return;if(B(m.parent.node)){s.add(E.key);return}var p=!0,K=!1;(E.children||[]).filter(function(f){return!B(f.node)}).forEach(function(f){var v=f.key,b=j.has(v);p&&!b&&(p=!1),!K&&(b||X.has(v))&&(K=!0)}),p&&j.add(E.key),K&&X.add(E.key),s.add(E.key)})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(y(X,j))}}function R(Q,L,d,B,j){for(var X=new Set(Q),H=new Set(L),D=0;D<=B;D+=1){var s=d.get(D)||new Set;s.forEach(function(E){var C=E.key,p=E.node,K=E.children,f=K===void 0?[]:K;!X.has(C)&&!H.has(C)&&!j(p)&&f.filter(function(v){return!j(v.node)}).forEach(function(v){X.delete(v.key)})})}H=new Set;for(var l=new Set,O=B;O>=0;O-=1){var m=d.get(O)||new Set;m.forEach(function(E){var C=E.parent,p=E.node;if(j(p)||!E.parent||l.has(E.parent.key))return;if(j(E.parent.node)){l.add(C.key);return}var K=!0,f=!1;(C.children||[]).filter(function(v){return!j(v.node)}).forEach(function(v){var b=v.key,n=X.has(b);K&&!n&&(K=!1),!f&&(n||H.has(b))&&(f=!0)}),K||X.delete(C.key),f&&H.add(C.key),l.add(C.key)})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(y(H,X))}}function o(Q,L,d,B){var j=[],X;B?X=B:X=$;var H=new Set(Q.filter(function(O){var m=!!d[O];return m||j.push(O),m})),D=new Map,s=0;Object.keys(d).forEach(function(O){var m=d[O],E=m.level,C=D.get(E);C||(C=new Set,D.set(E,C)),C.add(m),s=Math.max(s,E)}),Object(g.a)(!j.length,"Tree missing follow keys: ".concat(j.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var l;return L===!0?l=le(H,D,s,X):l=R(H,L.halfCheckedKeys,D,s,X),l}},OZM5:function(Oe,_,t){"use strict";t.d(_,"b",function(){return B}),t.d(_,"a",function(){return j}),t.d(_,"k",function(){return X}),t.d(_,"h",function(){return H}),t.d(_,"i",function(){return D}),t.d(_,"g",function(){return s}),t.d(_,"c",function(){return l}),t.d(_,"d",function(){return O}),t.d(_,"j",function(){return C}),t.d(_,"e",function(){return p}),t.d(_,"f",function(){return K});var g=t("KQm4"),y=t("U8pU"),$=t("Ff2n"),le=t("q1tI"),R=t.n(le),o=t("Kwbf"),Q=t("WaYH"),L=.25,d=2;function B(f,v){var b=f.slice(),n=b.indexOf(v);return n>=0&&b.splice(n,1),b}function j(f,v){var b=f.slice();return b.indexOf(v)===-1&&b.push(v),b}function X(f){return f.split("-")}function H(f,v){return"".concat(f,"-").concat(v)}function D(f){return f&&f.type&&f.type.isTreeNode}function s(f,v){var b=[f],n=v[f];function a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];e.forEach(function(i){var c=i.key,u=i.children;b.push(c),a(u)})}return a(n.children),b}function l(f,v){var b=f.clientY,n=v.selectHandle.getBoundingClientRect(),a=n.top,e=n.bottom,i=n.height,c=Math.max(i*L,d);return b<=a+c?-1:b>=e-c?1:0}function O(f,v){if(!f)return;var b=v.multiple;return b?f.slice():f.length?[f[0]]:f}var m=function(v){return v};function E(f,v){if(!f)return[];var b=v||{},n=b.processProps,a=n===void 0?m:n,e=Array.isArray(f)?f:[f];return e.map(function(i){var c=i.children,u=Object($.a)(i,["children"]),U=E(c,v);return R.a.createElement(Q.a,Object.assign({},a(u)),U)})}function C(f){if(!f)return null;var v;if(Array.isArray(f))v={checkedKeys:f,halfCheckedKeys:void 0};else if(Object(y.a)(f)==="object")v={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function p(f,v){var b=new Set;function n(a){if(b.has(a))return;var e=v[a];if(!e)return;b.add(a);var i=e.parent,c=e.node;if(c.disabled)return;i&&n(i.key)}return(f||[]).forEach(function(a){n(a)}),Object(g.a)(b)}function K(f){var v={};return Object.keys(f).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(v[b]=f[b])}),v}},"SA+Z":function(Oe,_,t){var g=t("wTVA"),y=t("EbDI"),$=t("ZhPi"),le=t("wkBT");function R(o){return g(o)||y(o)||$(o)||le()}Oe.exports=R,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports},WaYH:function(Oe,_,t){"use strict";var g=t("rePB"),y=t("Ff2n"),$=t("VTBJ"),le=t("1OyB"),R=t("vuIU"),o=t("JX7q"),Q=t("Ji7U"),L=t("LK+K"),d=t("q1tI"),B=t("TSYQ"),j=t.n(B),X=t("sboe"),H=t("OZM5"),D=function(v){var b=v.prefixCls,n=v.level,a=v.isStart,e=v.isEnd;if(!n)return null;for(var i="".concat(b,"-indent-unit"),c=[],u=0;u1)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 p=C[0];if(o.isValidElement(p)&&Object(j.c)(p)){var K=p.ref;C[0]=o.cloneElement(p,{ref:Object(j.a)(K,this.setChildNode)})}return C.length===1?C[0]:C.map(function(f,v){return!o.isValidElement(f)||"key"in f&&f.key!==null?f:o.cloneElement(f,{key:"".concat(H,"-").concat(v)})})}}]),O}(o.Component);D.displayName="ResizeObserver",_.a=D},wCXF:function(Oe,_,t){"use strict";t.d(_,"a",function(){return tt});var g=t("rePB"),y=t("VTBJ"),$=t("KQm4"),le=t("U8pU"),R=t("ODXe"),o=t("q1tI"),Q=t("TSYQ"),L=t.n(Q),d=t("Gytx"),B=t.n(d),j=t("Kwbf"),X=t("t23M"),H=t("qx4F"),D=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=t("c+Xe"),m=t("fyJ8"),E=t("biw7");function C(r,x,N,w,W){var M=N[r]||{},P=N[x]||{},T,S;M.fixed==="left"?T=w.left[r]:P.fixed==="right"&&(S=w.right[x]);var V=!1,I=!1,F=!1,ae=!1,G=N[x+1],ie=N[r-1];if(W==="rtl"){if(T!==void 0){var xe=ie&&ie.fixed==="left";ae=!xe}else if(S!==void 0){var Ee=G&&G.fixed==="right";F=!Ee}}else if(T!==void 0){var ye=G&&G.fixed==="left";V=!ye}else if(S!==void 0){var se=ie&&ie.fixed==="right";I=!se}return{fixLeft:T,fixRight:S,lastFixLeft:V,firstFixRight:I,lastFixRight:F,firstFixLeft:ae,isSticky:w.isSticky}}var p=t("sR1s");function K(r){var x=r.cells,N=r.stickyOffsets,w=r.flattenColumns,W=r.rowComponent,M=r.cellComponent,P=r.onHeaderRow,T=r.index,S=o.useContext(E.a),V=S.prefixCls,I=S.direction,F;P&&(F=P(x.map(function(G){return G.column}),T));var ae=Object(p.a)(x.map(function(G){return G.column}));return o.createElement(W,Object.assign({},F),x.map(function(G,ie){var xe=G.column,Ee=C(G.colStart,G.colEnd,w,N,I),ye;return xe&&xe.onHeaderCell&&(ye=G.column.onHeaderCell(xe)),o.createElement(m.a,Object.assign({},G,{ellipsis:xe.ellipsis,align:xe.align,component:M,prefixCls:V,key:ae[ie]},Ee,{additionalProps:ye,rowType:"header"}))}))}K.displayName="HeaderRow";var f=K;function v(r){var x=[];function N(P,T){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;x[S]=x[S]||[];var V=T,I=P.filter(Boolean).map(function(F){var ae={key:F.key,className:F.className||"",children:F.title,column:F,colStart:V},G=1,ie=F.children;return ie&&ie.length>0&&(G=N(ie,V,S+1).reduce(function(xe,Ee){return xe+Ee},0),ae.hasSubColumns=!0),"colSpan"in F&&(G=F.colSpan),"rowSpan"in F&&(ae.rowSpan=F.rowSpan),ae.colSpan=G,ae.colEnd=ae.colStart+G-1,x[S].push(ae),V+=G,G});return I}N(r,0);for(var w=x.length,W=function(T){x[T].forEach(function(S){!("rowSpan"in S)&&!S.hasSubColumns&&(S.rowSpan=w-T)})},M=0;M=0;T-=1){var S=x[T],V=N&&N[T],I=V&&V[a.a];(S||I||P)&&(W.unshift(o.createElement("col",Object.assign({key:T,style:{width:S,minWidth:S}},I))),P=!0)}return o.createElement("colgroup",null,W)}var i=e;function c(r,x){return Object(o.useMemo)(function(){for(var N=[],w=0;w1?He-1:0),dt=1;dt=F&&(Pe=F-ae),P({scrollLeft:Pe/F*(I+2)}),se.current.x=ce.pageX},ke=function(){var ce=Object(Ye.b)(M.current).top,we=ce+M.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;we-Object(H.a)()<=Fe||ce>=Fe-T?ye(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!0})}):ye(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!1})})},Me=function(ce){ye(function(we){return Object(y.a)(Object(y.a)({},we),{},{scrollLeft:ce/I*F||0})})};return o.useImperativeHandle(N,function(){return{setScrollLeft:Me}}),o.useEffect(function(){var Ne=Object(We.a)(document.body,"mouseup",$e,!1),ce=Object(We.a)(document.body,"mousemove",Ge,!1);return ke(),function(){Ne.remove(),ce.remove()}},[ae,Se]),o.useEffect(function(){var Ne=Object(We.a)(window,"scroll",ke,!1),ce=Object(We.a)(window,"resize",ke,!1);return function(){Ne.remove(),ce.remove()}},[]),o.useEffect(function(){Ee.isHiddenScrollBar||ye(function(Ne){var ce,we;return Object(y.a)(Object(y.a)({},Ne),{},{scrollLeft:M.current.scrollLeft/((ce=M.current)===null||ce===void 0?void 0:ce.scrollWidth)*((we=M.current)===null||we===void 0?void 0:we.clientWidth)})})},[Ee.isHiddenScrollBar]),I<=F||!ae||Ee.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(H.a)(),width:F,bottom:T},className:"".concat(V,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ce,ref:G,className:L()("".concat(V,"-sticky-scroll-bar"),Object(g.a)({},"".concat(V,"-sticky-scroll-bar-active"),Se)),style:{width:"".concat(ae,"px"),transform:"translate3d(".concat(Ee.scrollLeft,"px, 0, 0)")}}))},de=o.forwardRef(Ae);function me(r,x){return o.useMemo(function(){var N=!!r;return{isSticky:N,stickyClassName:N?"".concat(x,"-sticky-header"):"",offsetHeader:Object(le.a)(r)==="object"&&r.offsetHeader||0,offsetScroll:Object(le.a)(r)==="object"&&r.offsetScroll||0}},[r,x])}var Qe=[],et={},tt="rc-table-internal-hook",st=o.memo(function(r){var x=r.children;return x},function(r,x){return B()(r.props,x.props)?r.pingLeft!==x.pingLeft||r.pingRight!==x.pingRight:!1});function Ve(r){var x,N=r.prefixCls,w=r.className,W=r.rowClassName,M=r.style,P=r.data,T=r.rowKey,S=r.scroll,V=r.tableLayout,I=r.direction,F=r.title,ae=r.footer,G=r.summary,ie=r.id,xe=r.showHeader,Ee=r.components,ye=r.emptyText,se=r.onRow,Xe=r.onHeaderRow,De=r.internalHooks,Se=r.transformColumns,Ie=r.internalRefs,$e=r.sticky,Ce=P||Qe,Ge=!!Ce.length,ke=o.useState(0),Me=Object(R.a)(ke,2),Ne=Me[0],ce=Me[1];o.useEffect(function(){ce(Object(H.a)())});var we=o.useMemo(function(){return Object(p.c)(Ee,{})},[Ee]),Fe=o.useCallback(function(pe,ve){return Object(p.b)(we,pe)||ve},[we]),Je=o.useMemo(function(){return typeof T=="function"?T:function(pe){var ve=pe&&pe[T];return ve}},[T]),Pe=Object(a.c)(r),jt=Pe.expandIcon,Nt=Pe.expandedRowKeys,Rt=Pe.defaultExpandedRowKeys,rt=Pe.defaultExpandAllRows,it=Pe.expandedRowRender,ft=Pe.onExpand,mt=Pe.onExpandedRowsChange,Tt=Pe.expandRowByClick,nt=Pe.rowExpandable,Et=Pe.expandIconColumnIndex,pt=Pe.expandedRowClassName,Kt=Pe.childrenColumnName,Pt=Pe.indentSize,ht=jt||Be,gt=Kt||"children",St=o.useMemo(function(){return it?"row":r.expandable&&De===tt&&r.expandable.__PARENT_RENDER_ICON__||Ce.some(function(pe){return pe&&Object(le.a)(pe)==="object"&&pe[gt]})?"nest":!1},[!!it,Ce]),Dt=o.useState(function(){return Rt||(rt?Ue(Ce,Je,gt):[])}),ze=Object(R.a)(Dt,2),Ze=ze[0],at=ze[1],He=o.useMemo(function(){return new Set(Nt||Ze||[])},[Nt,Ze]),ct=o.useCallback(function(pe){var ve=Je(pe,Ce.indexOf(pe)),Ke,qe=He.has(ve);qe?(He.delete(ve),Ke=Object($.a)(He)):Ke=[].concat(Object($.a)(He),[ve]),at(Ke),ft&&ft(!qe,pe),mt&&mt(Ke)},[Je,He,Ce,ft,mt]),dt=o.useState(0),Mt=Object(R.a)(dt,2),Ct=Mt[0],Lt=Mt[1],vn=Object(J.b)(Object(y.a)(Object(y.a)(Object(y.a)({},r),Pe),{},{expandable:!!it,expandedKeys:He,getRowKey:Je,onTriggerExpand:ct,expandIcon:ht,expandIconColumnIndex:Et,direction:I}),De===tt?Se:null),Yt=Object(R.a)(vn,2),Wt=Yt[0],Le=Yt[1],_t=o.useMemo(function(){return{columns:Wt,flattenColumns:Le}},[Wt,Le]),kt=o.useRef(),Qt=o.useRef(),ut=o.useRef(),bn=o.useState(!1),Zt=Object(R.a)(bn,2),qt=Zt[0],En=Zt[1],gn=o.useState(!1),en=Object(R.a)(gn,2),tn=en[0],Cn=en[1],yn=Y(new Map),nn=Object(R.a)(yn,2),On=nn[0],xn=nn[1],jn=Object(p.a)(Le),an=jn.map(function(pe){return On.get(pe)}),on=o.useMemo(function(){return an},[an.join("_")]),At=_e(on,Le.length,I),ot=S&&Object(p.d)(S.y),lt=S&&Object(p.d)(S.x),yt=lt&&Le.some(function(pe){var ve=pe.fixed;return ve}),rn=o.useRef(),wt=me($e,N),Ot=wt.isSticky,Nn=wt.offsetHeader,Rn=wt.offsetScroll,Tn=wt.stickyClassName,Bt,Ut,zt;ot&&(Ut={overflowY:"scroll",maxHeight:S.y}),lt&&(Bt={overflowX:"auto"},ot||(Ut={overflowY:"hidden"}),zt={width:S.x===!0?"auto":S.x,minWidth:"100%"});var ln=o.useCallback(function(pe,ve){xn(function(Ke){var qe=new Map(Ke);return qe.set(pe,ve),qe})},[]),Pn=je(null),sn=Object(R.a)(Pn,2),Sn=sn[0],cn=sn[1];function Ft(pe,ve){if(!ve)return;typeof ve=="function"?ve(pe):ve.scrollLeft!==pe&&(ve.scrollLeft=pe)}var vt=function(ve){var Ke=ve.currentTarget,qe=ve.scrollLeft,xt=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Sn(hn),Ft(xt,Qt.current),Ft(xt,ut.current),Ft(xt,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(xt>0),Cn(xt0?[].concat(Object(y.a)(l),Object(y.a)(j(C).map(function(p){return Object($.a)({fixed:E},p)}))):[].concat(Object(y.a)(l),[Object($.a)(Object($.a)({},O),{},{fixed:E})])},[])}function X(s){for(var l=!0,O=0;O=0;C-=1){var p=s[C];if(E&&p.fixed!=="right")E=!1;else if(!E&&p.fixed==="right"){Object(Q.a)(!1,"Index ".concat(C+1," of `columns` missing `fixed='right'` prop."));break}}}function H(s){return s.map(function(l){var O=l.fixed,m=Object(le.a)(l,["fixed"]),E=O;return O==="left"?E="right":O==="right"&&(E="left"),Object($.a)({fixed:E},m)})}function D(s,l){var O=s.prefixCls,m=s.columns,E=s.children,C=s.expandable,p=s.expandedKeys,K=s.getRowKey,f=s.onTriggerExpand,v=s.expandIcon,b=s.rowExpandable,n=s.expandIconColumnIndex,a=s.direction,e=s.expandRowByClick,i=R.useMemo(function(){return m||B(E)},[m,E]),c=R.useMemo(function(){if(C){var h,k=n||0,z=i[k],q=(h={},Object(g.a)(h,d.a,{className:"".concat(O,"-expand-icon-col")}),Object(g.a)(h,"title",""),Object(g.a)(h,"fixed",z?z.fixed:null),Object(g.a)(h,"className","".concat(O,"-row-expand-icon-cell")),Object(g.a)(h,"render",function(A,ee,oe){var ne=K(ee,oe),re=p.has(ne),be=b?b(ee):!0,J=v({prefixCls:O,expanded:re,expandable:be,record:ee,onExpand:f});return e?R.createElement("span",{onClick:function(fe){return fe.stopPropagation()}},J):J}),h),he=i.slice();return k>=0&&he.splice(k,0,q),he}return i},[C,i,K,p,v,a]),u=R.useMemo(function(){var h=c;return l&&(h=l(h)),h.length||(h=[{render:function(){return null}}]),h},[l,c,a]),U=R.useMemo(function(){return a==="rtl"?H(j(u)):j(u)},[u,a]);return[u,U]}_.b=D},"y0+3":function(Oe,_,t){"use strict";t.d(_,"a",function(){return j}),t.d(_,"b",function(){return H});var g=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},$={cssFloat:1,styleFloat:1,float:1};function le(D){return D.nodeType===1?D.ownerDocument.defaultView.getComputedStyle(D,null):{}}function R(D,s,l){if(s=s.toLowerCase(),l==="auto"){if(s==="height")return D.offsetHeight;if(s==="width")return D.offsetWidth}return s in y||(y[s]=g.test(s)),y[s]?parseFloat(l)||0:l}function o(D,s){var l=arguments.length,O=le(D);return s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,l===1?O:R(D,s,O[s]||D.style[s])}function Q(D,s,l){var O=arguments.length;if(s=$[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,O===3)return typeof l=="number"&&g.test(s)&&(l="".concat(l,"px")),D.style[s]=l,l;for(var m in s)s.hasOwnProperty(m)&&Q(D,m,s[m]);return le(D)}function L(D){return D===document.body?document.documentElement.clientWidth:D.offsetWidth}function d(D){return D===document.body?window.innerHeight||document.documentElement.clientHeight:D.offsetHeight}function B(){var D=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),s=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:D,height:s}}function j(){var D=document.documentElement.clientWidth,s=window.innerHeight||document.documentElement.clientHeight;return{width:D,height:s}}function X(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function H(D){var s=D.getBoundingClientRect(),l=document.documentElement;return{left:s.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:s.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/p__Shixuns__Edit.a5197e8c.async.js b/p__Shixuns__Edit.a21d7914.async.js similarity index 97% rename from p__Shixuns__Edit.a5197e8c.async.js rename to p__Shixuns__Edit.a21d7914.async.js index 84b8406a49..b90a7d37f7 100644 --- a/p__Shixuns__Edit.a5197e8c.async.js +++ b/p__Shixuns__Edit.a21d7914.async.js @@ -38,7 +38,7 @@ 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 Te=function(pe,X){return(Te=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 ce(pe,X){function q(){this.constructor=pe}Te(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function be(pe,X,q,oe){return new(q||(q=Promise))(function(De,fe){function ot(Vn){try{Mn(oe.next(Vn))}catch(qt){fe(qt)}}function Zt(Vn){try{Mn(oe.throw(Vn))}catch(qt){fe(qt)}}function Mn(Vn){var qt;Vn.done?De(Vn.value):(qt=Vn.value,qt instanceof q?qt:new q(function(yn){yn(qt)})).then(ot,Zt)}Mn((oe=oe.apply(pe,X||[])).next())})}function ye(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:Zt(0),throw:Zt(1),return:Zt(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Zt(Mn){return function(Vn){return function(qt){if(q)throw new TypeError("Generator is already executing.");for(;ot;)try{if(q=1,oe&&(De=2&qt[0]?oe.return:qt[0]?oe.throw||((De=oe.return)&&De.call(oe),0):oe.next)&&!(De=De.call(oe,qt[1])).done)return De;switch(oe=0,De&&(qt=[2&qt[0],De.value]),qt[0]){case 0:case 1:De=qt;break;case 4:return ot.label++,{value:qt[1],done:!1};case 5:ot.label++,oe=qt[1],qt=[0];continue;case 7:qt=ot.ops.pop(),ot.trys.pop();continue;default:if(!(De=ot.trys,(De=De.length>0&&De[De.length-1])||qt[0]!==6&&qt[0]!==2)){ot=0;continue}if(qt[0]===3&&(!De||qt[1]>De[0]&&qt[1]0&&De[De.length-1])||qt[0]!==6&&qt[0]!==2)){ot=0;continue}if(qt[0]===3&&(!De||qt[1]>De[0]&&qt[1] `),ot.appendChild(Zt),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}(),Je=function(){function pe(){this.GRIP_SIZE=10,this.visual=se.createGroup(),this.visual.appendChild(se.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(se.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}(),ut=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(se.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=se.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=se.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=se.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=se.createGroup();var q=se.createTransform();q.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(q),this.container.appendChild(this.controlBox),this.controlRect=se.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=se.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 Je;return q.visual.transform.baseVal.appendItem(se.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,Zt=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,Zt),this.positionGrip(this.controlGrips.bottomCenter.visual,fe,Zt),this.positionGrip(this.controlGrips.bottomRight.visual,Mn,Zt),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),ft=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=se.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),se.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&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&se.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}(ut),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 Zt=document.createElement("div");Zt.style.minHeight="20px",Zt.style.flexGrow="2",Zt.style.display="flex",Zt.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",Zt.appendChild(Mn),fe.appendChild(Zt),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),_t=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 Zt=` - `;ot.innerHTML=Zt,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),Ve=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 _t("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}(ft),je=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},ht=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=se.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 Je;return q.visual.transform.baseVal.appendItem(se.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),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.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 _t("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=se.createGroup(),this.selectorLine=se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=se.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()),se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),se.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}(ht),Et=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 Zt=document.createElement("div");Zt.style.whiteSpace="nowrap",Zt.style.overflow="hidden",Zt.style.textOverflow="ellipsis",Zt.innerHTML="The quick brown fox jumps over the lazy dog",ot.appendChild(Zt),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 Et("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=se.createGroup(),this.bgRectangle=se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.textElement.transform.baseVal.appendItem(se.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(se.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&&(se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.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&&se.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&&se.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}(ut),qe=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=se.createGroup(),this.drawingImage=se.createImage(),this.visual.appendChild(this.drawingImage);var q=se.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),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.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],Zt=oe[3],Mn=!1,Vn=0;Vn0&&(Mn=!0,VnZt&&(Zt=Vn),qt>ot&&(ot=qt));if(Mn){this.left=De/this.pixelRatio,this.top=fe/this.pixelRatio,this.width=(ot-De)/this.pixelRatio,this.height=(Zt-fe)/this.pixelRatio;var yn=document.createElement("canvas");yn.width=ot-De,yn.height=Zt-fe,yn.getContext("2d").putImageData(this.canvasContext.getImageData(De,fe,ot-De,Zt-fe),0,0),this.drawingImgUrl=yn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},X.prototype.setDrawingImage=function(){se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),se.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}(ut),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(Zt){var Mn="both";switch(Zt){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 qt=document.createElement("div");qt.style.display="flex",qt.style.alignItems="center",qt.style.minHeight="20px",qt.innerHTML=` + `;ot.innerHTML=Zt,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),Ve=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 _t("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}(ft),je=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},ht=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=se.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 Je;return q.visual.transform.baseVal.appendItem(se.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),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.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 _t("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=se.createGroup(),this.selectorLine=se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=se.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()),se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),se.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}(ht),Et=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 Zt=document.createElement("div");Zt.style.whiteSpace="nowrap",Zt.style.overflow="hidden",Zt.style.textOverflow="ellipsis",Zt.innerHTML="The quick brown fox jumps over the lazy dog",ot.appendChild(Zt),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 Et("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=se.createGroup(),this.bgRectangle=se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.textElement.transform.baseVal.appendItem(se.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(se.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&&(se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.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&&se.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&&se.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}(ut),qe=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=se.createGroup(),this.drawingImage=se.createImage(),this.visual.appendChild(this.drawingImage);var q=se.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),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.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],Zt=oe[3],Mn=!1,Vn=0;Vn0&&(Mn=!0,VnZt&&(Zt=Vn),qt>ot&&(ot=qt));if(Mn){this.left=De/this.pixelRatio,this.top=fe/this.pixelRatio,this.width=(ot-De)/this.pixelRatio,this.height=(Zt-fe)/this.pixelRatio;var En=document.createElement("canvas");En.width=ot-De,En.height=Zt-fe,En.getContext("2d").putImageData(this.canvasContext.getImageData(De,fe,ot-De,Zt-fe),0,0),this.drawingImgUrl=En.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},X.prototype.setDrawingImage=function(){se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),se.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}(ut),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(Zt){var Mn="both";switch(Zt){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 qt=document.createElement("div");qt.style.display="flex",qt.style.alignItems="center",qt.style.minHeight="20px",qt.innerHTML=` - `,qt.style.marginLeft="5px",Vn.appendChild(qt)}var yn=document.createElement("div");yn.style.display="flex",yn.style.alignItems="center",yn.style.minHeight="20px",yn.style.flexGrow="2";var un=document.createElement("hr");if(un.style.minWidth="20px",un.style.border="0px",un.style.borderTop="3px solid "+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee"),un.style.flexGrow="2",yn.appendChild(un),Vn.appendChild(yn),Mn==="both"||Mn==="end"){var jr=document.createElement("div");jr.style.display="flex",jr.style.alignItems="center",jr.style.minHeight="20px",jr.innerHTML=` + `,qt.style.marginLeft="5px",Vn.appendChild(qt)}var En=document.createElement("div");En.style.display="flex",En.style.alignItems="center",En.style.minHeight="20px",En.style.flexGrow="2";var un=document.createElement("hr");if(un.style.minWidth="20px",un.style.border="0px",un.style.borderTop="3px solid "+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee"),un.style.flexGrow="2",En.appendChild(un),Vn.appendChild(En),Mn==="both"||Mn==="end"){var jr=document.createElement("div");jr.style.display="flex",jr.style.alignItems="center",jr.style.minHeight="20px",jr.innerHTML=` `,jr.style.marginRight="5px",Vn.appendChild(jr)}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),Ye=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=se.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=se.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(se.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",se.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),se.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}(Bt),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}(ft),Le=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),We=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 Le("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&&se.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),Ue='',ze=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,Ue),fe.bgColorPanel.onColorChanged=fe.setBgColor,fe.fontFamilyPanel=new Et("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe.tipGrip=new Je,fe.tipGrip.visual.transform.baseVal.appendItem(se.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(){se.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=se.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&&(se.setAttributes(this.bgRectangle,[["fill",q]]),se.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}(Bt),Wt=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),Qt=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}(),Kt=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 _t("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=se.createGroup(),this.selectorCurve=se.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=se.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()),se.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},X.prototype.setupControlBox=function(){pe.prototype.setupControlBox.call(this),this.curveControlLine1=se.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=se.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}(ht),Ot=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}(),Fe=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}(Ot),at=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}(Ot),it=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 je,this._isOpen=!1,this.undoRedoManager=new Qt,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 it,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[Ve,qe,Ye,Pt,Wt,st,We,ze,Ct,Ce,Bt,Kt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ve,qe,Ye,Pt,st,We,ze]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ve,qe,Ye,Pt,We]},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 Ot(X))})},pe.prototype.render=function(){return be(this,void 0,void 0,function(){var X;return ye(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 Ot(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 Ot(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 at(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 at(X,oe))})}}},pe.prototype.clear=function(){var X=this,q=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ot){var Zt=new at(X,void 0,!0);ot(Zt),Zt.defaultPrevented&&(q=!0)}),!q)){this.setCurrentMarker();for(var oe=function(ot){var Zt=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 at(X,Zt))})},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 Ot(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 Ot(X))}))},pe.instanceCounter=0,pe}();/* ********************************** cropro version 1.2.0 @@ -170,7 +170,7 @@ 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 Qe=function(pe,X){return(Qe=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 pt(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}Qe(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function bt(pe,X,q,oe){return new(q||(q=Promise))(function(De,fe){function ot(Vn){try{Mn(oe.next(Vn))}catch(qt){fe(qt)}}function Zt(Vn){try{Mn(oe.throw(Vn))}catch(qt){fe(qt)}}function Mn(Vn){var qt;Vn.done?De(Vn.value):(qt=Vn.value,qt instanceof q?qt:new q(function(yn){yn(qt)})).then(ot,Zt)}Mn((oe=oe.apply(pe,X||[])).next())})}function Dt(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:Zt(0),throw:Zt(1),return:Zt(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Zt(Mn){return function(Vn){return function(qt){if(q)throw new TypeError("Generator is already executing.");for(;ot;)try{if(q=1,oe&&(De=2&qt[0]?oe.return:qt[0]?oe.throw||((De=oe.return)&&De.call(oe),0):oe.next)&&!(De=De.call(oe,qt[1])).done)return De;switch(oe=0,De&&(qt=[2&qt[0],De.value]),qt[0]){case 0:case 1:De=qt;break;case 4:return ot.label++,{value:qt[1],done:!1};case 5:ot.label++,oe=qt[1],qt=[0];continue;case 7:qt=ot.ops.pop(),ot.trys.pop();continue;default:if(!(De=ot.trys,(De=De.length>0&&De[De.length-1])||qt[0]!==6&&qt[0]!==2)){ot=0;continue}if(qt[0]===3&&(!De||qt[1]>De[0]&&qt[1]0&&De[De.length-1])||qt[0]!==6&&qt[0]!==2)){ot=0;continue}if(qt[0]===3&&(!De||qt[1]>De[0]&&qt[1]0&&q>0){var oe=new lr(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 Zt=ct.createDefs();ot.appendChild(Zt);var Mn=ct.createElement("clipPath",[["id","text-bg-clip"]]);Zt.appendChild(Mn);var Vn=ct.createPath(ct.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 qt=ct.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);qt.appendChild(ct.createTSpan(X+":"+q)),ot.appendChild(qt);var yn=qt.getBBox();ct.setAttributes(qt,[["x",((24-yn.width)/2).toString()],["y",((24-yn.height)/2-yn.y).toString()]]);var un=ct.createPath(ct.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(yn.width))/2,(24-Math.ceil(yn.height))/2,Math.ceil(yn.width),Math.ceil(yn.height)));return Mn.appendChild(un),ct.setAttributes(Vn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ot),ot.outerHTML}return''},pe}(),cr=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 pt(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}(Hn),dr=function(){function pe(X,q){this.GRIP_SIZE=10,this.color=X,this.fillColor=q,this.visual=ct.createGroup(),this.visual.appendChild(ct.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ct.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 ct.setAttributes(oe,[["cx",X.toString()],["cy",q.toString()]])})},pe}(),Dr=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&&ct.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=ct.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=ct.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),ct.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 Zt=q.y+oe*(ot+1);ct.setAttributes(fe,[["x1",""+q.x],["y1",""+Zt],["x2",""+(q.x+q.width)],["y2",""+Zt]])});var De=q.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(fe,ot){var Zt=q.x+De*(ot+1);ct.setAttributes(fe,[["x1",""+Zt],["y1",""+q.y],["x2",""+Zt],["y2",""+(q.y+q.height)]])}),ct.setAttributes(this.cropShadeElement,[["d",ct.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 Zt=oe/X,Mn=De/q;return{x:(fe.x-ot)*Zt+ot,y:(fe.y-ot)*Mn+ot,width:fe.width*Zt,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}(),hr=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();ct.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=ct.createPath(q);var fe=ct.createTransform();this.scaleShape.transform.baseVal.appendItem(fe),X.appendChild(this.scaleShape),this.angleLabelElement=ct.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=ct.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ot=ct.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,Zt){var Mn=this;return new Promise(function(Vn){var qt=document.createElement("canvas");qt.width=X.width.baseVal.value-2*De,qt.height=X.height.baseVal.value-2*De;var yn=1,un=1;Mn.naturalSize===!0?(yn=q.naturalWidth/(X.width.baseVal.value-2*De)/ot,un=q.naturalHeight/(X.height.baseVal.value-2*De)/Zt,qt.width=q.naturalWidth/ot,qt.height=q.naturalHeight/Zt):Mn.width!==void 0&&Mn.height!==void 0&&(yn=Mn.width/oe.width,un=Mn.height/oe.height,qt.width*=yn,qt.height*=un);var jr=qt.getContext("2d");jr.translate(qt.width/2,qt.height/2),jr.rotate(fe*Math.PI/180),jr.scale(ot,Zt),jr.translate(-qt.width/2,-qt.height/2),jr.drawImage(q,0,0,qt.width,qt.height);var ra=document.createElement("canvas");ra.width=oe.width*yn,ra.height=oe.height*un,ra.getContext("2d").putImageData(jr.getImageData((oe.x-De)*yn,(oe.y-De)*un,oe.width*yn,oe.height*un),0,0),Vn(ra.toDataURL(Mn.imageType,Mn.imageQuality))})},pe}(),en=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 Nt(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 vn,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 Kn;q.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(q);var oe=[];this.aspectRatios.forEach(function(un){var jr=new Hn(Zn.getIcon(un.horizontal,un.vertical),un.horizontal===0&&un.vertical===0?"FREE":un.horizontal+":"+un.vertical);jr.onClick=function(){return X.ratioButtonClicked(un)},oe.push(jr)}),this.aspectRatioButton=new cr(Zn.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 Hn('',"Toggle grid");De.isActive=this.isGridVisible,De.onClick=function(){X.isGridVisible=!X.isGridVisible,De.isActive=X.isGridVisible},q.addButton(De);var fe=new Hn('',"Zoom to selection");if(fe.isActive=this.zoomToCropEnabled,fe.onClick=function(){X.zoomToCropEnabled=!X.zoomToCropEnabled,fe.isActive=X.zoomToCropEnabled},q.addButton(fe),!It.isLicensed){var ot=new fn;this.topToolbar.addElementBlock(ot);var Zt=document.createElement("div");Zt.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='',Zt.appendChild(Mn),ot.addElement(Zt)}var Vn=new Kn;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var qt=new Hn('',"OK");qt.onClick=this.startRenderAndClose,Vn.addButton(qt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(qt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var yn=new Hn('',"Close");yn.onClick=this.close,Vn.addButton(yn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(yn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var X=this;this.bottomToolbar=new vn,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 Kn;q.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(q);var oe=new Hn('',"Rotate left");oe.onClick=this.rotateLeftButtonClicked,q.addButton(oe);var De=new Hn('',"Rotate right");De.onClick=this.rotateRightButtonClicked,q.addButton(De);var fe=new fn;fe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(fe),this.straightener=new hr("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 Kn;ot.minWidth=2*this.toolbarHeight+"px",ot.contentAlign="end",this.bottomToolbar.addButtonBlock(ot);var Zt=new Hn('',"Flip horizontal");Zt.onClick=this.flipHorizontallyButtonClicked,ot.addButton(Zt);var Mn=new Hn('',"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=Zn.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 lr(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 bt(this,void 0,void 0,function(){var X,q;return Dt(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 bt(this,void 0,void 0,function(){var X;return Dt(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(),ct.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}(),jt=function(pe,X){this.selector=pe,this.style=X},on=function(pe,X){this.localName=pe,this.style=X},vn=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}(),Wn=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}(),Kn=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.buttons=[],q}return pt(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}(Wn),Hn=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}(),fn=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.elements=[],q}return pt(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}(Wn),lr=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}(),Zn=function(){function pe(){}return pe.getIcon=function(X,q){if(X>0&&q>0){var oe=new lr(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 Zt=ct.createDefs();ot.appendChild(Zt);var Mn=ct.createElement("clipPath",[["id","text-bg-clip"]]);Zt.appendChild(Mn);var Vn=ct.createPath(ct.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 qt=ct.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);qt.appendChild(ct.createTSpan(X+":"+q)),ot.appendChild(qt);var En=qt.getBBox();ct.setAttributes(qt,[["x",((24-En.width)/2).toString()],["y",((24-En.height)/2-En.y).toString()]]);var un=ct.createPath(ct.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(En.width))/2,(24-Math.ceil(En.height))/2,Math.ceil(En.width),Math.ceil(En.height)));return Mn.appendChild(un),ct.setAttributes(Vn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ot),ot.outerHTML}return''},pe}(),cr=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 pt(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}(Hn),dr=function(){function pe(X,q){this.GRIP_SIZE=10,this.color=X,this.fillColor=q,this.visual=ct.createGroup(),this.visual.appendChild(ct.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ct.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 ct.setAttributes(oe,[["cx",X.toString()],["cy",q.toString()]])})},pe}(),Dr=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&&ct.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=ct.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=ct.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),ct.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 Zt=q.y+oe*(ot+1);ct.setAttributes(fe,[["x1",""+q.x],["y1",""+Zt],["x2",""+(q.x+q.width)],["y2",""+Zt]])});var De=q.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(fe,ot){var Zt=q.x+De*(ot+1);ct.setAttributes(fe,[["x1",""+Zt],["y1",""+q.y],["x2",""+Zt],["y2",""+(q.y+q.height)]])}),ct.setAttributes(this.cropShadeElement,[["d",ct.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 Zt=oe/X,Mn=De/q;return{x:(fe.x-ot)*Zt+ot,y:(fe.y-ot)*Mn+ot,width:fe.width*Zt,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}(),hr=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();ct.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=ct.createPath(q);var fe=ct.createTransform();this.scaleShape.transform.baseVal.appendItem(fe),X.appendChild(this.scaleShape),this.angleLabelElement=ct.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=ct.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ot=ct.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,Zt){var Mn=this;return new Promise(function(Vn){var qt=document.createElement("canvas");qt.width=X.width.baseVal.value-2*De,qt.height=X.height.baseVal.value-2*De;var En=1,un=1;Mn.naturalSize===!0?(En=q.naturalWidth/(X.width.baseVal.value-2*De)/ot,un=q.naturalHeight/(X.height.baseVal.value-2*De)/Zt,qt.width=q.naturalWidth/ot,qt.height=q.naturalHeight/Zt):Mn.width!==void 0&&Mn.height!==void 0&&(En=Mn.width/oe.width,un=Mn.height/oe.height,qt.width*=En,qt.height*=un);var jr=qt.getContext("2d");jr.translate(qt.width/2,qt.height/2),jr.rotate(fe*Math.PI/180),jr.scale(ot,Zt),jr.translate(-qt.width/2,-qt.height/2),jr.drawImage(q,0,0,qt.width,qt.height);var aa=document.createElement("canvas");aa.width=oe.width*En,aa.height=oe.height*un,aa.getContext("2d").putImageData(jr.getImageData((oe.x-De)*En,(oe.y-De)*un,oe.width*En,oe.height*un),0,0),Vn(aa.toDataURL(Mn.imageType,Mn.imageQuality))})},pe}(),en=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 Nt(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 vn,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 Kn;q.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(q);var oe=[];this.aspectRatios.forEach(function(un){var jr=new Hn(Zn.getIcon(un.horizontal,un.vertical),un.horizontal===0&&un.vertical===0?"FREE":un.horizontal+":"+un.vertical);jr.onClick=function(){return X.ratioButtonClicked(un)},oe.push(jr)}),this.aspectRatioButton=new cr(Zn.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 Hn('',"Toggle grid");De.isActive=this.isGridVisible,De.onClick=function(){X.isGridVisible=!X.isGridVisible,De.isActive=X.isGridVisible},q.addButton(De);var fe=new Hn('',"Zoom to selection");if(fe.isActive=this.zoomToCropEnabled,fe.onClick=function(){X.zoomToCropEnabled=!X.zoomToCropEnabled,fe.isActive=X.zoomToCropEnabled},q.addButton(fe),!It.isLicensed){var ot=new fn;this.topToolbar.addElementBlock(ot);var Zt=document.createElement("div");Zt.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='',Zt.appendChild(Mn),ot.addElement(Zt)}var Vn=new Kn;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var qt=new Hn('',"OK");qt.onClick=this.startRenderAndClose,Vn.addButton(qt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(qt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var En=new Hn('',"Close");En.onClick=this.close,Vn.addButton(En),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(En.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var X=this;this.bottomToolbar=new vn,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 Kn;q.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(q);var oe=new Hn('',"Rotate left");oe.onClick=this.rotateLeftButtonClicked,q.addButton(oe);var De=new Hn('',"Rotate right");De.onClick=this.rotateRightButtonClicked,q.addButton(De);var fe=new fn;fe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(fe),this.straightener=new hr("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 Kn;ot.minWidth=2*this.toolbarHeight+"px",ot.contentAlign="end",this.bottomToolbar.addButtonBlock(ot);var Zt=new Hn('',"Flip horizontal");Zt.onClick=this.flipHorizontallyButtonClicked,ot.addButton(Zt);var Mn=new Hn('',"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=Zn.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 lr(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 bt(this,void 0,void 0,function(){var X,q;return Dt(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 bt(this,void 0,void 0,function(){var X;return Dt(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(),ct.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; @@ -253,8 +253,8 @@ 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 fr=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,Zt=pe.showLines,Mn=pe.replaces,Vn=pe.zoomImg,qt=pe.hasMask,yn=pe.style,un=yn===void 0?{}:yn,jr=pe.stylesPrev,ra=jr===void 0?{}:jr,oa=String(q),er=Object(f.useRef)(),Ba=Object(f.useRef)(),Ea=Object(f.useState)(""),ca=Object(A.a)(Ea,2),Ka=ca[0],Ta=ca[1],Ja=Object(f.useState)("office"),Ua=Object(A.a)(Ja,2),li=Ua[0],oi=Ua[1],fa=function(){var Lt=new en(Ba.current);Lt.displayMode="popup",Lt.addRenderEventListener(function(){var Xt=Object(C.a)(e.a.mark(function rn(En){var gn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return er.current.style.display="none",An.next=3,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:En}});case 3:gn=An.sent,gn!=null&&gn.id&&Mn(Ba.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(gn==null?void 0:gn.id,"?type=").concat(gn.content_type));case 5:case"end":return An.stop()}},rn)}));return function(rn){return Xt.apply(this,arguments)}}()),Lt.show()},ma=function(){var Lt=new Pe(Ba.current);Lt.settings.displayMode="popup",Lt.addEventListener("render",function(){var Xt=Object(C.a)(e.a.mark(function rn(En){var gn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(er.current.style.display="none",!Ba.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:En.dataUrl}});case 4:gn=An.sent,gn!=null&&gn.id&&Mn(Ba.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(gn==null?void 0:gn.id,"?type=").concat(gn.content_type));case 6:case"end":return An.stop()}},rn)}));return function(rn){return Xt.apply(this,arguments)}}()),Lt.show(),window.markerArea=Lt},la=Object(f.useMemo)(function(){er.current&&(er.current.style.zIndex=-1);try{var Ht=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Lt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;oa=oa.replace(Ht,"("+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 rn=W(oa),En=U();if(oa.match(/\[TOC\]/)&&(rn=rn.replace("

      [TOC]

      ",P()),w()),rn=rn.replace(/(__special_katext_id_\d+__)/g,function(Nn,An){var an=En[An],Pn=an.type,bn=an.expression;return Object(he.renderToString)(xr(bn)||"",{displayMode:Pn==="block",throwOnError:!1,output:"html"})}),rn=rn.replace(/▁/g,"\u2581\u2581\u2581"),L(),ot){var gn=document.createElement("div");return gn.innerHTML=rn,gn.innerText}return setTimeout(function(){return Rt()},500),rn},[oa]),xe=Object(f.useRef)();E.WebkitLineClamp=Zt,Zt&&(un=Object(y.a)(Object(y.a)({},un),E));function lt(Ht){var Lt=Ht.target;if(Lt.tagName.toUpperCase()==="IMG"){if(Vn){var Xt=Lt.getAttribute("src");Ta(Xt),oi("image")}}else if(Lt.tagName.toUpperCase()==="A"){var rn=Lt.getAttribute("href");if(rn.indexOf("office")>-1)Ht.preventDefault(),Ta(rn),oi("office");else if(rn.indexOf("application/pdf")>-1)Ht.preventDefault(),Ta(rn),oi("pdf");else if(rn.indexOf("text/html")>-1)Ht.preventDefault(),Ta(rn),oi("html");else if(rn.startsWith("#")){Ht.preventDefault();var En=document.getElementById(rn.replace("#",""));En&&En.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(rn){if(rn.oncontextmenu=function(){return!1},rn.src.indexOf(".m3u8")>-1&&!rn.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var En=new K.a;En.loadSource(rn.src),En.attachMedia(rn)}}})};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"?(er.current.style.zIndex=1,er.current.style.display="flex",er.current.style.width=Lt.target.clientWidth+"px",er.current.style.height=Lt.target.clientHeight+"px",er.current.style.top=Lt.target.offsetTop+"px",er.current.style.left=Lt.target.offsetLeft+"px",Ba.current.src=Lt.target.getAttribute("src")):er.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:xe,style:Object(y.a)({},un),className:"".concat(fe||""," markdown-body ").concat(Fr.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:la}}),a.a.createElement("div",{ref:er,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:Ba,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 Ta("")}}))}},"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(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.CTR=function(){var g=M.lib.BlockCipherMode.extend(),O=g.Encryptor=g.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,m=this._iv,e=this._counter;m&&(e=this._counter=m.slice(0),this._iv=void 0);var f=e.slice(0);C.encryptBlock(f,0),e[A-1]=e[A-1]+1|0;for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(M.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=A;var l=O(e),n=l.firstChild;return e.prepend&&l.prepend?l.prepend(f):e.prepend&&n?l.insertBefore(f,n):l.appendChild(f),f}var y=new Map;function C(A,m){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=O(e);if(!y.has(f)){var a=b("",e),l=a.parentNode;y.set(f,l),l.removeChild(a)}var n=Array.from(y.get(f).children).find(function(d){return d.tagName==="STYLE"&&d[g]===m});if(n){var i,r;if(((i=e.csp)===null||i===void 0?void 0:i.nonce)&&n.nonce!==((r=e.csp)===null||r===void 0?void 0:r.nonce)){var c;n.nonce=(c=e.csp)===null||c===void 0?void 0:c.nonce}return n.innerHTML!==A&&(n.innerHTML=A),n}var h=b(A,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(M){M(o("VrN/"),o("osHv"))})(function(M){M.defineOption("autoCloseTags",!1,function(e,f,a){if(a!=M.Init&&a&&e.removeKeyMap("autoCloseTags"),!f)return;var l={name:"autoCloseTags"};(typeof f!="object"||f.whenClosing!==!1)&&(l["'/'"]=function(n){return C(n)}),(typeof f!="object"||f.whenOpening!==!1)&&(l["'>'"]=function(n){return b(n)}),e.addKeyMap(l)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],O=["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 M.Pass;for(var f=e.listSelections(),a=[],l=e.getOption("autoCloseTags"),n=0;ni.ch&&(s=s.slice(0,s.length-r.end+i.ch));var _=s.toLowerCase();if(!s||r.type=="string"&&(r.end!=i.ch||!/[\"\']/.test(r.string.charAt(r.string.length-1))||r.string.length==1)||r.type=="tag"&&d.close||r.string.indexOf("/")==i.ch-r.start-1||w&&A(w,_)>-1||m(e,c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(h)||[],s,i,!0))return M.Pass;var P=typeof l=="object"&&l.emptyTags;if(P&&A(P,s)>-1){a[n]={text:"/>",newPos:M.Pos(i.line,i.ch+2)};continue}var R=E&&A(E,_)>-1;a[n]={indent:R,text:">"+(R?` + `))},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 fr=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,Zt=pe.showLines,Mn=pe.replaces,Vn=pe.zoomImg,qt=pe.hasMask,En=pe.style,un=En===void 0?{}:En,jr=pe.stylesPrev,aa=jr===void 0?{}:jr,oa=String(q),er=Object(f.useRef)(),Ba=Object(f.useRef)(),Ea=Object(f.useState)(""),ca=Object(A.a)(Ea,2),Ka=ca[0],Ta=ca[1],Ja=Object(f.useState)("office"),Ua=Object(A.a)(Ja,2),li=Ua[0],oi=Ua[1],fa=function(){var Lt=new en(Ba.current);Lt.displayMode="popup",Lt.addRenderEventListener(function(){var Xt=Object(C.a)(e.a.mark(function rn(xn){var gn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return er.current.style.display="none",An.next=3,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:xn}});case 3:gn=An.sent,gn!=null&&gn.id&&Mn(Ba.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(gn==null?void 0:gn.id,"?type=").concat(gn.content_type));case 5:case"end":return An.stop()}},rn)}));return function(rn){return Xt.apply(this,arguments)}}()),Lt.show()},ma=function(){var Lt=new Pe(Ba.current);Lt.settings.displayMode="popup",Lt.addEventListener("render",function(){var Xt=Object(C.a)(e.a.mark(function rn(xn){var gn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(er.current.style.display="none",!Ba.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:xn.dataUrl}});case 4:gn=An.sent,gn!=null&&gn.id&&Mn(Ba.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(gn==null?void 0:gn.id,"?type=").concat(gn.content_type));case 6:case"end":return An.stop()}},rn)}));return function(rn){return Xt.apply(this,arguments)}}()),Lt.show(),window.markerArea=Lt},la=Object(f.useMemo)(function(){er.current&&(er.current.style.zIndex=-1);try{var Ht=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Lt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;oa=oa.replace(Ht,"("+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 rn=W(oa),xn=U();if(oa.match(/\[TOC\]/)&&(rn=rn.replace("

      [TOC]

      ",P()),w()),rn=rn.replace(/(__special_katext_id_\d+__)/g,function(Nn,An){var an=xn[An],Pn=an.type,yn=an.expression;return Object(he.renderToString)(xr(yn)||"",{displayMode:Pn==="block",throwOnError:!1,output:"html"})}),rn=rn.replace(/▁/g,"\u2581\u2581\u2581"),L(),ot){var gn=document.createElement("div");return gn.innerHTML=rn,gn.innerText}return setTimeout(function(){return Rt()},500),rn},[oa]),xe=Object(f.useRef)();E.WebkitLineClamp=Zt,Zt&&(un=Object(y.a)(Object(y.a)({},un),E));function lt(Ht){var Lt=Ht.target;if(Lt.tagName.toUpperCase()==="IMG"){if(Vn){var Xt=Lt.getAttribute("src");Ta(Xt),oi("image")}}else if(Lt.tagName.toUpperCase()==="A"){var rn=Lt.getAttribute("href");if(rn.indexOf("office")>-1)Ht.preventDefault(),Ta(rn),oi("office");else if(rn.indexOf("application/pdf")>-1)Ht.preventDefault(),Ta(rn),oi("pdf");else if(rn.indexOf("text/html")>-1)Ht.preventDefault(),Ta(rn),oi("html");else if(rn.startsWith("#")){Ht.preventDefault();var xn=document.getElementById(rn.replace("#",""));xn&&xn.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(rn){if(rn.oncontextmenu=function(){return!1},rn.src.indexOf(".m3u8")>-1&&!rn.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var xn=new K.a;xn.loadSource(rn.src),xn.attachMedia(rn)}}})};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"?(er.current.style.zIndex=1,er.current.style.display="flex",er.current.style.width=Lt.target.clientWidth+"px",er.current.style.height=Lt.target.clientHeight+"px",er.current.style.top=Lt.target.offsetTop+"px",er.current.style.left=Lt.target.offsetLeft+"px",Ba.current.src=Lt.target.getAttribute("src")):er.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:xe,style:Object(y.a)({},un),className:"".concat(fe||""," markdown-body ").concat(Fr.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:la}}),a.a.createElement("div",{ref:er,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:Ba,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)({},aa),onClose:function(){return Ta("")}}))}},"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(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.CTR=function(){var g=M.lib.BlockCipherMode.extend(),O=g.Encryptor=g.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,m=this._iv,e=this._counter;m&&(e=this._counter=m.slice(0),this._iv=void 0);var f=e.slice(0);C.encryptBlock(f,0),e[A-1]=e[A-1]+1|0;for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(M.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=A;var l=O(e),n=l.firstChild;return e.prepend&&l.prepend?l.prepend(f):e.prepend&&n?l.insertBefore(f,n):l.appendChild(f),f}var y=new Map;function C(A,m){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=O(e);if(!y.has(f)){var a=b("",e),l=a.parentNode;y.set(f,l),l.removeChild(a)}var n=Array.from(y.get(f).children).find(function(d){return d.tagName==="STYLE"&&d[g]===m});if(n){var i,r;if(((i=e.csp)===null||i===void 0?void 0:i.nonce)&&n.nonce!==((r=e.csp)===null||r===void 0?void 0:r.nonce)){var c;n.nonce=(c=e.csp)===null||c===void 0?void 0:c.nonce}return n.innerHTML!==A&&(n.innerHTML=A),n}var h=b(A,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(M){M(o("VrN/"),o("osHv"))})(function(M){M.defineOption("autoCloseTags",!1,function(e,f,a){if(a!=M.Init&&a&&e.removeKeyMap("autoCloseTags"),!f)return;var l={name:"autoCloseTags"};(typeof f!="object"||f.whenClosing!==!1)&&(l["'/'"]=function(n){return C(n)}),(typeof f!="object"||f.whenOpening!==!1)&&(l["'>'"]=function(n){return b(n)}),e.addKeyMap(l)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],O=["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 M.Pass;for(var f=e.listSelections(),a=[],l=e.getOption("autoCloseTags"),n=0;ni.ch&&(s=s.slice(0,s.length-r.end+i.ch));var _=s.toLowerCase();if(!s||r.type=="string"&&(r.end!=i.ch||!/[\"\']/.test(r.string.charAt(r.string.length-1))||r.string.length==1)||r.type=="tag"&&d.close||r.string.indexOf("/")==i.ch-r.start-1||w&&A(w,_)>-1||m(e,c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(h)||[],s,i,!0))return M.Pass;var P=typeof l=="object"&&l.emptyTags;if(P&&A(P,s)>-1){a[n]={text:"/>",newPos:M.Pos(i.line,i.ch+2)};continue}var R=E&&A(E,_)>-1;a[n]={indent:R,text:">"+(R?` `:"")+"",newPos:R?M.Pos(i.line+1,0):M.Pos(i.line,i.ch+1)}}for(var x=typeof l=="object"&&l.dontIndentOnAutoClose,n=f.length-1;n>=0;n--){var S=a[n];e.replaceRange(S.text,f[n].head,f[n].anchor,"+insert");var v=e.listSelections().slice(0);v[n]={head:S.newPos,anchor:S.newPos},e.setSelections(v),!x&&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(),l=[],n=f?"/":""&&(w+=">"),l[c]=w}if(e.replaceSelections(l),a=e.listSelections(),!r)for(var c=0;c=0&&f[h]==a;h--)++c;l=r.to;for(var h=1;h0){for(var f=0;f1&&arguments[1]!==void 0?arguments[1]:"",f=[],a=0;aC,M.serviceIds.set(C,A),A}function y(C){return function(A,m,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");O(C,A,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 M=o("+L6B"),g=o("2/Rp"),O=o("y8nQ"),b=o("Vl3Y"),y=o("cWXX"),C=o("/ezw"),A=o("rAM+"),m=o("9og8"),e=o("tJVT"),f=o("7Kak"),a=o("9yH6"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),r=o.n(i),c=o("ErOA"),h=o("2qtc"),d=o("kLXV"),s=o("k1fw"),u=o("Se0u"),w=o("pUFm"),E=o.n(w);function _(){return Object(c.c)("teach_groups.json")}function P($){return Object(c.f)("teach_groups.json",$)}function R($,me){return Object(c.g)("teach_groups/".concat($,".json"),me)}function x($){return Object(c.f)("teach_group_members.json",$)}function S($){return Object(c.b)("teach_group_members/".concat($,".json"))}function v($,me){return Object(c.b)("teach_groups/".concat($,"/del_member.json?member_id=").concat(me))}function T($){return Object(c.b)("teach_groups/".concat($,".json"))}var U=o("5NDa"),L=o("5rEg"),N=function($){var me=$.callback,re=$.visible,ae=$.onCancel,Oe=$.id,le=$.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:le})},[le]),r.a.createElement(d.a,{centered:!0,title:Oe?"\u6539\u540D":"\u65B0\u5EFA",visible:re,onCancel:ae,footer:null},r.a.createElement(b.a,{layout:"vertical",form:ve,initialValues:{name:le},onFinish:te},r.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"}]},r.a.createElement(L.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),r.a.createElement(b.a.Item,null,r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(g.a,{type:"ghost",onClick:ae,style:{marginRight:20}}," ","\u53D6\u6D88"," ")," ",r.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,le=$.onPlusMember,te=$.onDelMember,Q=$.onExitGroup,J=Object(i.useState)(0),ve=Object(e.a)(J,2),_e=ve[0],Ae=ve[1],Je=Object(i.useState)(0),tt=Object(e.a)(Je,2),ut=tt[0],ft=tt[1];function vt(je){var ht=parseInt(je.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(ht)}})}function _t(je){var ht=parseInt(je.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(ht)}})}function Ve(je,ht){d.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:function(){te(je,ht)}})}return r.a.createElement("ul",{className:"teaching-list"},me.map(function(je,ht){return r.a.createElement("li",{key:je.id,onClick:function(){return Ae(ht)}},r.a.createElement("div",{className:"item-group"},r.a.createElement("span",null,je.name," \xA0"," ",ht!==_e&&r.a.createElement("i",{className:"iconfont icon-jiantou9"})," "),r.a.createElement("div",{className:"action-group"},re?r.a.createElement("a",{onClick:function(){Oe(je)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,je.is_creat?r.a.createElement("a",{id:je.id+"",className:"c-grey-c",onClick:vt},"\u89E3\u6563"):r.a.createElement("a",{id:je.id+"",className:"c-grey-c",onClick:_t},"\u9000\u51FA"))),ht===_e?r.a.createElement("ul",{className:"info"},je.memers.map(function(Bt){return r.a.createElement("li",{key:Bt.id||Bt.name,onClick:function(){ft(Bt.id)},className:ut===Bt.id?"active":""},r.a.createElement("div",null,Bt.name),je.is_creat&&Bt.id&&ut===Bt.id?r.a.createElement("a",{className:"btn-del",onClick:function(Pt){Pt.preventDefault(),Pt.stopPropagation(),Ve(je.id,ut)}},r.a.createElement(H.a,null)):null)}),re?r.a.createElement("li",null,r.a.createElement(g.a,{type:"link",disabled:je.memers.length>=50,title:je.memers.length>=50?"\u672C\u7EC4\u6210\u5458\u5DF2\u6EE1":"\u6DFB12312\u52A0\u6210\u5458",onClick:function(){le(je)}}," ",r.a.createElement(D.a,null)," \u6DFB\u52A0\u7EC4\u5458"," ")):null):null)}))},I=o("9kvl"),K=o("ju9d");function ee($){var me=$.children;return r.a.createElement("div",{className:"no-data"},r.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),le=Oe[0],te=Oe[1],Q=le.data,J=le.index,ve=le.loading,_e=le.showFormPanel,Ae=le.selectedGroup,Je=le.showMemberPanel,tt=(me=re.userInfo)===null||me===void 0?void 0:me.role,ut=Object(i.useMemo)(function(){var Ct=[],Wt=[],Qt=Object(A.a)(Q),Kt;try{for(Qt.s();!(Kt=Qt.n()).done;){var Ot=Kt.value;Ot.is_creat?Ct.push(Ot):Wt.push(Ot)}}catch(Fe){Qt.e(Fe)}finally{Qt.f()}return[Ct,Wt]},[Q]);Object(i.useEffect)(function(){tt===15&&te({type:de.SETINDEX,payload:1})},[tt]);function ft(){return vt.apply(this,arguments)}function vt(){return vt=Object(m.a)(n.a.mark(function Ct(){var Wt;return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,_();case 2:Wt=Kt.sent,te({type:de.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Wt.groups}});case 4:case"end":return Kt.stop()}},Ct)})),vt.apply(this,arguments)}Object(i.useEffect)(function(){ft()},[]);function _t(Ct){return Ve.apply(this,arguments)}function Ve(){return Ve=Object(m.a)(n.a.mark(function Ct(Wt){return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(!Ae.id){Kt.next=5;break}return Kt.next=3,R(Ae.id,Wt);case 3:Kt.next=7;break;case 5:return Kt.next=7,P(Wt);case 7:ft();case 8:case"end":return Kt.stop()}},Ct)})),Ve.apply(this,arguments)}function je(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ht(Ct){te({type:de.SELECTGROUP,payload:Ct})}function Bt(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function Et(){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function Pt(Ct){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Ct}})}function qe(Ct,Wt){return He.apply(this,arguments)}function He(){return He=Object(m.a)(n.a.mark(function Ct(Wt,Qt){return n.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,v(Wt,Qt);case 2:ft();case 3:case"end":return Ot.stop()}},Ct)})),He.apply(this,arguments)}function Ye(Ct){return Ce.apply(this,arguments)}function Ce(){return Ce=Object(m.a)(n.a.mark(function Ct(Wt){return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,T(Wt);case 2:ft();case 3:case"end":return Kt.stop()}},Ct)})),Ce.apply(this,arguments)}function Le(Ct){return We.apply(this,arguments)}function We(){return We=Object(m.a)(n.a.mark(function Ct(Wt){return n.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,S(Wt);case 2:ft();case 3:case"end":return Kt.stop()}},Ct)})),We.apply(this,arguments)}function Ue(Ct){te({type:de.SETINDEX,payload:parseInt(Ct.target.id,10)})}function ze(Ct,Wt){return st.apply(this,arguments)}function st(){return st=Object(m.a)(n.a.mark(function Ct(Wt,Qt){return n.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Et(),Ot.next=3,x({user_ids:Wt,group_id:Qt});case 3:ft();case 4:case"end":return Ot.stop()}},Ct)})),st.apply(this,arguments)}return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"teaching-circling-container"},r.a.createElement("h3",null," ","\u6559\u7814\u56E2\u961F"," ",tt<=12&&r.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:je},"\u65B0\u5EFA")," "),r.a.createElement("div",{className:"teaching-circling-body"},tt===15?null:r.a.createElement("ul",{className:"navs"},r.a.createElement("li",{className:J===0?"active":""},r.a.createElement("a",{id:"0",onClick:Ue},"\u6211\u521B\u5EFA\u7684")),r.a.createElement("li",{className:J===1?"active":""},r.a.createElement("a",{id:"1",onClick:Ue},"\u6211\u52A0\u5165\u7684"))),r.a.createElement("div",{className:ut[J].length===0?"nodata-content":"main-content"},ut[J].length===0?r.a.createElement(ee,null,tt<=12?r.a.createElement(r.a.Fragment,null," ",r.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")," ",r.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")," "):r.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 ")):r.a.createElement(F,{onExitGroup:Le,onPlusMember:Pt,onDelMember:qe,onDelGroup:Ye,isAdminOrTeacher:tt<=12,onChangeGroupName:ht,data:ut[J]}))),r.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"," ")),r.a.createElement(N,{callback:_t,visible:_e,onCancel:Bt,id:Ae.id,name:Ae.name}),r.a.createElement(d.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:Je,onCancel:Et,footer:null,width:1100,bodyStyle:{minHeight:200}},r.a.createElement(K.a,{container_id:Ae.id,container_type:4,onSelect:ze,onCancel:Et})))}var ce=Object(I.a)(function($){var me=$.user;return{user:me}})(Te),be=o("SLjR"),ye=o("55Ip"),ue=a.a.Group,se=z.a=function($){var me=$.onSelect,re=$.onCancel,ae=Object(i.useState)([]),Oe=Object(e.a)(ae,2),le=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 ut.apply(this,arguments)}function ut(){return ut=Object(m.a)(n.a.mark(function ft(){var vt,_t;return n.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=2,Object(c.c)("teach_groups/my.json");case 2:vt=je.sent,_t=vt.groups,te(_t),_e(!1);case 6:case"end":return je.stop()}},ft)})),ut.apply(this,arguments)}tt()},[]);var Ae=Object(i.useMemo)(function(){var tt=[],ut=[],ft=Object(A.a)(le),vt;try{for(ft.s();!(vt=ft.n()).done;){var _t=vt.value;_t.is_creat?tt.push(_t):ut.push(_t)}}catch(Ve){ft.e(Ve)}finally{ft.f()}return[tt,ut]},[le]);function Je(tt){me(tt)}return r.a.createElement(b.a,{className:"select-teach-group",onFinish:Je},ve?r.a.createElement(C.a,{paragraph:!0}):le.length===0?r.a.createElement(ee,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",r.a.createElement(ye.a,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):r.a.createElement(r.a.Fragment,null,r.a.createElement(b.a.Item,{name:"group_id"},r.a.createElement(ue,null,r.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),r.a.createElement("ul",{className:"groups"},Ae[0].map(function(tt){return r.a.createElement("li",{key:tt.id},r.a.createElement(a.a,{value:tt.id},tt.name))})),r.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),r.a.createElement("ul",{className:"groups"},Ae[1].map(function(tt){return r.a.createElement("li",{key:tt.id},r.a.createElement(a.a,{value:tt.id},tt.name))})))),r.a.createElement("div",{className:"btn-actions"},r.a.createElement(g.a,{type:"ghost",onClick:re,style:{marginRight:10}},"\u53D6\u6D88"),r.a.createElement(g.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(k,z,o){(function(M,g){k.exports=g()})(this,function(){"use strict";function M(qe,He){for(var Ye=0;Yeqe.length)&&(He=qe.length);for(var Ye=0,Ce=new Array(He);Ye=qe.length?{done:!0}:{done:!1,value:qe[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 Ye=qe[Symbol.iterator](),Ye.next.bind(Ye)}function C(qe,He){return He={exports:{}},qe(He,He.exports),He.exports}var A=C(function(qe){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 Ye(Ce){qe.exports.defaults=Ce}qe.exports={defaults:He(),getDefaults:He,changeDefaults:Ye}}),m=A.defaults,e=A.getDefaults,f=A.changeDefaults,a=/[&<>"']/,l=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,r={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(He){return r[He]};function h(qe,He){if(He){if(a.test(qe))return qe.replace(l,c)}else if(n.test(qe))return qe.replace(i,c);return qe}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(qe){return qe.replace(d,function(He,Ye){return Ye=Ye.toLowerCase(),Ye==="colon"?":":Ye.charAt(0)==="#"?Ye.charAt(1)==="x"?String.fromCharCode(parseInt(Ye.substring(2),16)):String.fromCharCode(+Ye.substring(1)):""})}var u=/(^|[^\[])\^/g;function w(qe,He){qe=qe.source||qe,He=He||"";var Ye={replace:function(Le,We){return We=We.source||We,We=We.replace(u,"$1"),qe=qe.replace(Le,We),Ye},getRegex:function(){return new RegExp(qe,He)}};return Ye}var E=/[^\w:]/g,_=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(qe,He,Ye){if(qe){var Ce;try{Ce=decodeURIComponent(s(Ye)).replace(E,"").toLowerCase()}catch(Le){return null}if(Ce.indexOf("javascript:")===0||Ce.indexOf("vbscript:")===0||Ce.indexOf("data:")===0)return null}He&&!_.test(Ye)&&(Ye=T(He,Ye));try{Ye=encodeURI(Ye).replace(/%25/g,"%")}catch(Le){return null}return Ye}var R={},x=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(qe,He){R[" "+qe]||(x.test(qe)?R[" "+qe]=qe+"/":R[" "+qe]=V(qe,"/",!0)),qe=R[" "+qe];var Ye=qe.indexOf(":")===-1;return He.substring(0,2)==="//"?Ye?He:qe.replace(S,"$1")+He:He.charAt(0)==="/"?Ye?He:qe.replace(v,"$1")+He:qe+He}var U={exec:function(){}};function L(qe){for(var He=1,Ye,Ce;He=0&&ze[Ct]==="\\";)st=!st;return st?"|":" |"}),Ce=Ye.split(/ \|/),Le=0;if(Ce.length>He)Ce.splice(He);else for(;Ce.lengthA `).slice(3).join(` `),h=this._stacks.get(c)||0;if(this._stacks.set(c,h+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let d,s=0;for(const[u,w]of this._stacks)(!d||s{const d=this._stacks.get(c)||0;this._stacks.set(c,d-1)}}}class e{constructor(i){var r;this._disposed=!1,this._options=i,this._leakageMon=A>0?new m(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((r=this._options)===null||r===void 0?void 0:r._profName)?new C(this._options._profName):void 0}get event(){return this._event||(this._event=(i,r,c)=>{var h;this._listeners||(this._listeners=new O.a);const d=this._listeners.isEmpty();d&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(r?[i,r]:i);d&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,i,r);const u=(h=this._leakageMon)===null||h===void 0?void 0:h.check(this._listeners.size),w=Object(g.i)(()=>{if(u&&u(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return c instanceof g.b?c.add(w):Array.isArray(c)&&c.push(w),w}),this._event}fire(i){var r,c;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new O.a);for(let h of this._listeners)this._deliveryQueue.push([h,i]);for((r=this._perfMon)===null||r===void 0||r.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(M.f)(s)}}(c=this._perfMon)===null||c===void 0||c.stop()}}dispose(){var i,r,c,h,d;this._disposed||(this._disposed=!0,(i=this._listeners)===null||i===void 0||i.clear(),(r=this._deliveryQueue)===null||r===void 0||r.clear(),(h=(c=this._options)===null||c===void 0?void 0:c.onLastListenerRemove)===null||h===void 0||h.call(c),(d=this._leakageMon)===null||d===void 0||d.dispose())}}class f extends e{constructor(i){super(i);this._isPaused=0,this._eventQueue=new O.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 r;super(i);this._delay=(r=i.delay)!==null&&r!==void 0?r:100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}}class l{constructor(){this.buffers=[]}wrapEvent(i){return(r,c,h)=>i(d=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>r.call(c,d)):r.call(c,d)},void 0,h)}bufferEvents(i){const r=[];this.buffers.push(r);const c=i();return this.buffers.pop(),r.forEach(h=>h()),c}}class n{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(M,g){o.d(z,"b",function(){return c}),o.d(z,"i",function(){return u}),o.d(z,"f",function(){return w}),o.d(z,"d",function(){return E}),o.d(z,"g",function(){return _}),o.d(z,"h",function(){return P}),o.d(z,"c",function(){return R}),o.d(z,"k",function(){return x}),o.d(z,"j",function(){return S}),o.d(z,"a",function(){return v}),o.d(z,"e",function(){return L});var O;const b="en";let y=!1,C=!1,A=!1,m=!1,e=!1,f=!1,a=!1,l,n=b,i,r;const c=typeof self=="object"?self:typeof M=="object"?M:{};let h;typeof c.vscode!="undefined"&&typeof c.vscode.process!="undefined"?h=c.vscode.process:typeof g!="undefined"&&(h=g);const d=typeof((O=h==null?void 0:h.versions)===null||O===void 0?void 0:O.electron)=="string"&&h.type==="renderer";if(typeof navigator=="object"&&!d)r=navigator.userAgent,y=r.indexOf("Windows")>=0,C=r.indexOf("Macintosh")>=0,a=(r.indexOf("Macintosh")>=0||r.indexOf("iPad")>=0||r.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,A=r.indexOf("Linux")>=0,f=!0,l=navigator.language,n=l;else if(typeof h=="object"){y=h.platform==="win32",C=h.platform==="darwin",A=h.platform==="linux",m=A&&!!h.env.SNAP&&!!h.env.SNAP_REVISION,l=b,n=b;const N=h.env.VSCODE_NLS_CONFIG;if(N)try{const V=JSON.parse(N),H=V.availableLanguages["*"];l=V.locale,n=H||b,i=V._translationsConfigFile}catch(V){}e=!0}else console.error("Unable to resolve platform.");let s=0;C?s=1:y?s=3:A&&(s=2);const u=y,w=C,E=A,_=e,P=f,R=a,x=r,S=function(){if(c.setImmediate)return c.setImmediate.bind(c);if(typeof c.postMessage=="function"&&!c.importScripts){let H=[];c.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}),c.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)}(),v=C||a?2:y?1:3;let T=!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);T=V[0]===(2<<8)+1}return T}}).call(this,o("IyRk"),o("Q2Ig"))},MlIO:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(g){var O=M,b=O.lib,y=b.Base,C=b.WordArray,A=O.x64={},m=A.Word=y.extend({init:function(f,a){this.high=f,this.low=a}}),e=A.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,l=[],n=0;n=ve.length?_e:ve[Je]})}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 C(J,ve=" "){const _e=A(J,ve);return m(_e,ve)}function A(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 Je=Ae,tt=-1;for(;!(tt=J.lastIndexOf(ve,Je-1),tt===-1||tt+_e!==Je);){if(tt===0)return"";Je=tt}return J.substring(0,Je)}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 l(J){if(J.source==="^"||J.source==="^$"||J.source==="$"||J.source==="^\\s*$")return!1;const ve=J.exec("");return!!(ve&&J.lastIndex===0)}function n(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 r(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 c(J,ve=0,_e=J.length){for(let Ae=ve;Ae<_e;Ae++){const Je=J.charCodeAt(Ae);if(Je!==32&&Je!==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,Je=0,tt=ve.length){for(;_e_t)return 1}const ut=Ae-_e,ft=tt-Je;return utft?1:0}function u(J,ve){return w(J,ve,0,J.length,0,ve.length)}function w(J,ve,_e=0,Ae=J.length,Je=0,tt=ve.length){for(;_e=128||_t>=128)return s(J.toLowerCase(),ve.toLowerCase(),_e,Ae,Je,tt);E(vt)&&(vt-=32),E(_t)&&(_t-=32);const Ve=vt-_t;if(Ve===0)continue;return Ve}const ut=Ae-_e,ft=tt-Je;return utft?1:0}function E(J){return J>=97&&J<=122}function _(J){return J>=65&&J<=90}function P(J,ve){return J.length===ve.length&&w(J,ve)===0}function R(J,ve){const _e=ve.length;return ve.length>J.length?!1:w(J,ve,0,_e)===0}function x(J,ve){let _e,Ae=Math.min(J.length,ve.length);for(_e=0;_e1){const Ae=J.charCodeAt(ve-2);if(v(Ae))return U(Ae,_e)}return _e}function V(J,ve){const _e=re.getInstance(),Ae=ve,Je=J.length,tt=L(J,Je,ve);ve+=tt>=65536?2:1;let ut=_e.getGraphemeBreakType(tt);for(;ve=65536?2:1,ut=vt}return ve-Ae}function H(J,ve){const _e=re.getInstance(),Ae=ve,Je=N(J,ve);ve-=Je>=65536?2:1;let tt=_e.getGraphemeBreakType(Je);for(;ve>0;){const ut=N(J,ve),ft=_e.getGraphemeBreakType(ut);if(me(ft,tt))break;ve-=ut>=65536?2:1,tt=ft}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 ye(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 se(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=le(J,ve);if(_e!==void 0)return _e;const Ae=N(ve,J);return J-=te(Ae),J}function le(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 M=o("2qtc"),g=o("kLXV"),O=o("tJVT"),b=o("q1tI"),y=o.n(b),C=o("9kvl"),A=o("FPkq"),m=o.n(A),e=function(a){var l,n=a.newShixuns,i=a.dispatch,r=a.user,c=Object(b.useState)(!1),h=Object(O.a)(c,2),d=h[0],s=h[1];Object(b.useEffect)(function(){n.actionTabs.key==="Create-Environment"&&w()},[n==null||((l=n.actionTabs)===null||l===void 0)?void 0:l.key]);var u=function(){i({type:"newShixuns/setActionTabs",payload:{}})},w=function(){var _,P,R;u(),((_=r.userInfo)===null||_===void 0?void 0:_.mirror_marker_status)===0?s(!0):((P=r.userInfo)===null||P===void 0?void 0:P.mirror_marker_status)===1?C.d.push("/shixuns/new/CreateImg"):((R=r.userInfo)===null||R===void 0?void 0:R.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;C.d.push("/users/".concat((S=r.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(C.a)(function(f){var a=f.newShixuns,l=f.user,n=f.globalSetting;return{newShixuns:a,globalSetting:n,user:l}})(e)},NFKh:function(k,z,o){(function(M,g,O){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(M){return M})},NLgs:function(k,z,o){"use strict";o.d(z,"e",function(){return h}),o.d(z,"f",function(){return d}),o.d(z,"d",function(){return u}),o.d(z,"c",function(){return w}),o.d(z,"a",function(){return E}),o.d(z,"b",function(){return _});var M=o("miYZ"),g=o("tsqr"),O=o("9og8"),b=o("2qtc"),y=o("kLXV"),C=o("WmNS"),A=o.n(C),m=o("q1tI"),e=o.n(m),f=o("9kvl"),a=o("xKgJ"),l=o("1vsH"),n=o("RCxd"),i=o("yTi+"),r=o.n(i),c=o("m3rI"),h=function(R){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(d(R)&&s(x))},d=function(R){return Object(a.p)()?!0:(R({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},s=function(){var R,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,S=Object(f.c)()._store.getState(),v=S.user;return(R=v.userInfo)!==null&&R!==void 0&&R.profile_completed?!0:(y.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:x?"\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)},u=function(){var R,x=Object(f.c)()._store.getState(),S=x.user;return(R=S.userInfo)!==null&&R!==void 0&&R.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(l.S)("/account/certification")}}),!1)},w=function(){var R;if(Object(a.a)())return!0;var x=Object(f.c)()._store.getState(),S=x.user,v=x.globalSetting;return 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\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),e.a.createElement("img",{src:c.a.IMG_SERVER+(v==null||((R=v.setting)===null||R===void 0)?void 0:R.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},E=function(R,x){var S;if(R)return!0;var v=Object(f.c)()._store.getState(),T=v.user,U=v.globalSetting;return y.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("p",null,x||"\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:c.a.IMG_SERVER+(U==null||((S=U.setting)===null||S===void 0)?void 0:S.authority_qrcode_url),width:200}),e.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(l.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},_=function(R){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",S=Object(f.c)()._store.getState(),v=S.shixunsDetail.detail;return(v==null?void 0:v.public)===2||(v==null?void 0:v.public)===1||(v==null?void 0:v.shixun_status)===3?(y.a.info({centered:!0,icon:e.a.createElement(n.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",(v==null?void 0:v.public)===2?"\u5DF2\u516C\u5F00":(v==null?void 0:v.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",x,"\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:r.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(v==null?void 0:v.shixun_status)===2?(y.a.confirm({centered:!0,icon:e.a.createElement(n.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",x,"\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(n.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 U=Object(O.a)(A.a.mark(function N(){var V;return A.a.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,R({type:"shixunsDetail/cancelRelease",payload:{id:v==null?void 0:v.identifier}});case 2:V=D.sent,V.status!==401&&(g.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),R({type:"shixunsDetail/getShixunsDetail",payload:{id:v==null?void 0:v.identifier}}),R({type:"practiceSetting/getCommonData",payload:{id:v==null?void 0:v.identifier}}));case 4:case"end":return D.stop()}},N)}));function L(){return U.apply(this,arguments)}return L}()})}}),!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 r}),o.d(z,"l",function(){return s}),o.d(z,"e",function(){return R}),o.d(z,"i",function(){return T}),o.d(z,"j",function(){return ue}),o.d(z,"c",function(){return se.a}),o.d(z,"b",function(){return Oe}),o.d(z,"g",function(){return J}),o.d(z,"f",function(){return Je}),o.d(z,"k",function(){return Bt}),o.d(z,"d",function(){return He});var M=o("q1tI"),g=o.n(M),O=o("NQs2"),b=o.n(O),y=o("ygoZ"),C=o.n(y),A=function(Ce){var Le=Ce.dataSource,We=Le===void 0?[]:Le,Ue=Ce.img,ze=Ce.imgWidth,st=ze===void 0?346:ze,Ct=Ce.title,Wt=Ce.sunTitle,Qt=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,Ct),g.a.createElement("span",null,Wt)),We.length>0&&g.a.createElement("div",{className:b.a.btns},We.map(function(Kt,Ot){return g.a.createElement("div",{key:Ot,onClick:Kt.click},Kt.name,Kt.sign?g.a.createElement("img",{src:C.a,width:39}):null)})),Qt),g.a.createElement("img",{style:{marginTop:33,marginRight:38},src:Ue,width:st})))},m=A,e=o("tJVT"),f=o("6nfa"),a=o.n(f),l=o("TSYQ"),n=o.n(l),i=function(Ce){var Le=Ce.dataSource,We=Le===void 0?[]:Le,Ue=Ce.value,ze=Ce.onChange,st=Ce.className,Ct=Ce.title,Wt=Ce.titleWidth,Qt=Wt===void 0?41:Wt,Kt=Ce.style,Ot=Kt===void 0?{}:Kt,Fe=Ce.fontColor,at=Fe===void 0?"#6A7283":Fe,it=Object(M.useState)(0),Pe=Object(e.a)(it,2),Qe=Pe[0],pt=Pe[1],bt=Object(M.useState)(!1),Dt=Object(e.a)(bt,2),It=Dt[0],ct=Dt[1],Nt=Object(M.useRef)(null);return Object(M.useEffect)(function(){if(We.length!==0){var jt;(Nt==null||((jt=Nt.current)===null||jt===void 0)?void 0:jt.clientHeight)>92?pt(1):pt(0)}We.length===0&&pt(0)},[We]),g.a.createElement("div",{className:n()(a.a.row,st),style:Ot},g.a.createElement("div",{style:{width:Qt,marginTop:It?12:4},className:a.a.title},Ct),g.a.createElement("div",{className:It?"".concat(a.a.tagsWrap," ").concat(a.a.tagsBorderWrap):a.a.tagsWrap},g.a.createElement("div",{className:a.a.bar,style:Qe>0?{height:Qe===1?92:"auto",overflow:Qe===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},g.a.createElement("div",{className:a.a.name,ref:Nt},We==null?void 0:We.map(function(jt){return g.a.createElement("span",{onClick:function(){return ze(jt.id)},key:jt.id,title:jt.name,style:{color:at},className:Ue===jt.id?a.a.active:""},jt.name)}))),!!Qe&&g.a.createElement(M.Fragment,null,Qe===1?g.a.createElement("div",{onClick:function(){var on;pt(2),(Nt==null||((on=Nt.current)===null||on===void 0)?void 0:on.clientHeight)>205?ct(!0):ct(!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(){pt(1),ct(!1)},className:a.a.action},"\u6536\u8D77",g.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},r=i,c=o("cz0n"),h=o.n(c),d=function(Ce){var Le=Ce.dataSource,We=Le===void 0?[]:Le,Ue=Ce.value,ze=Ce.onChange,st=Ce.className;return g.a.createElement("div",{className:n()(h.a.tabs,st)},We.map(function(Ct){return g.a.createElement("span",{onClick:function(){return ze(Ct.id)},className:Ue===Ct.id?h.a.active:"",key:Ct.id},Ct.name)}))},s=d,u=o("5NDa"),w=o("5rEg"),E=o("KOXS"),_=o.n(E),P=function(Ce){var Le,We=Ce.dataSource,Ue=We===void 0?[]:We,ze=Ce.value,st=Ce.onChange,Ct=Ce.className,Wt=Ce.style,Qt=Wt===void 0?{}:Wt,Kt=Ce.placeholder,Ot=Object(M.useState)(""),Fe=Object(e.a)(Ot,2),at=Fe[0],it=Fe[1],Pe=Object(M.useState)(""),Qe=Object(e.a)(Pe,2),pt=Qe[0],bt=Qe[1];Object(M.useEffect)(function(){var ct;(ct=JSON.stringify(ze))!==null&&ct!==void 0&&ct.includes("{")?(it(ze.id),bt(ze.value)):bt(ze)},[ze]);var Dt=function(){st(pt||null,at||"")},It=function(Nt){if(Nt===at)return;it(Nt),st(pt,Nt)};return g.a.createElement("div",{className:n()(_.a.input,Ct),style:Qt},!!Ue.length&&g.a.createElement("div",{className:_.a.dropdown},g.a.createElement("div",{className:_.a.text},(Le=Ue.find(function(ct){return ct.id===at}))===null||Le===void 0?void 0:Le.name,g.a.createElement("i",{className:"iconfont icon-zhankai4"}),g.a.createElement("b",{className:_.a.b1}),g.a.createElement("b",{className:_.a.b2})),g.a.createElement("div",{className:_.a.menu},Ue.map(function(ct,Nt){return g.a.createElement("div",{key:Nt,onClick:function(){return It(ct.id)}},ct.name)}))),g.a.createElement(w.a,{onPressEnter:Dt,value:pt,onChange:function(Nt){return bt(Nt.target.value||"")},bordered:!1,placeholder:Kt}),g.a.createElement("i",{onClick:Dt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},R=P,x=o("f9pc"),S=o.n(x),v=function(Ce){var Le=Ce.value,We=Ce.onChange,Ue=Ce.className,ze=Ce.total,st=Ce.pageSize,Ct=Ce.style,Wt=Ct===void 0?{}:Ct,Qt=Le<2,Kt=Le>=Math.ceil(ze/st);return ze<=st?g.a.createElement(g.a.Fragment,null):g.a.createElement("div",{className:n()(S.a.quickPager,Ue),style:Wt},g.a.createElement("div",{onClick:function(){Qt||We(Le-1,"prev")},className:Qt?S.a.disabled:""},"\u4E0A\u4E00\u9875"),g.a.createElement("div",{onClick:function(){Kt||We(Le+1,"next")},className:Kt?S.a.disabled:""},"\u4E0B\u4E00\u9875"))},T=v,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"),ye=function(Ce){var Le=Ce.className,We=Ce.dataSource,Ue=We===void 0?[]:We,ze=Ce.col,st=ze===void 0?4:ze,Ct=Ce.right,Wt=Ce.bottom,Qt=Wt===void 0?23:Wt,Kt=Ce.precision,Ot=Kt===void 0?0:Kt,Fe=Ce.wrapWidth,at=Fe===void 0?1200:Fe,it=Ce.trackEventItems,Pe=Ce.loading,Qe=Math.floor((at-(st-1)*Ct)/st);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:n()(F.a.list,Le)},!!Ue.length&&Ue.map(function(pt,bt){var Dt=pt.name,It=pt.id,ct=pt.identifier,Nt=pt.power,jt=pt.cover_image_id,on=pt.pic;return g.a.createElement("div",{className:F.a.wrap,key:It,style:{width:Qe,marginRight:(1+bt)%st===0?0:Ct+Ot,marginBottom:Qt}},g.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(ct,"/challenges"),className:F.a.li,onClick:function(Wn){Wn.preventDefault(),it&&Object(K.cb)([it]),Nt&&Object(K.S)("/shixuns/".concat(ct,"/challenges"))}},g.a.createElement("div",{className:F.a.img},g.a.createElement("img",{className:F.a.cover,src:jt?"".concat(I.a.API_SERVER,"/api/attachments/").concat(jt):"".concat(I.a.IMG_SERVER,"/").concat(on)}),pt.is_jupyter&&g.a.createElement("img",{className:F.a.sign,src:he.a}),pt.is_jupyter_lab&&g.a.createElement("img",{className:F.a.sign,src:Se.a}),pt.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:Dt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},g.a.createElement("span",{className:F.a.e},Dt||"\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,pt.challenges_count))),!!pt.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,pt.myshixuns_count))),g.a.createElement(D.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},g.a.createElement("span",null,g.a.createElement("span",null,pt.level))),g.a.createElement("div",{className:F.a.rate},g.a.createElement(V.a,{allowHalf:!0,disabled:!0,defaultValue:pt.score_info}),g.a.createElement("span",null,"\xA0",pt.score_info?"".concat(pt.score_info,"\u5206"):"5\u5206")))),!Nt&&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")))}),!Ue.length&&g.a.createElement(be.a,null)))},ue=ye,se=o("LicW"),$=o("iL++"),me=o.n($),re=o("xiVL"),ae=function(Ce){var Le=Ce.className,We=Ce.dataSource,Ue=We===void 0?[]:We,ze=Ce.col,st=ze===void 0?4:ze,Ct=Ce.right,Wt=Ce.bottom,Qt=Wt===void 0?23:Wt,Kt=Ce.precision,Ot=Kt===void 0?0:Kt,Fe=Ce.wrapWidth,at=Fe===void 0?1200:Fe,it=Ce.trackEventItems,Pe=Ce.loading,Qe=Math.floor((at-(st-1)*Ct)/st);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:n()(me.a.list,Le)},!!Ue.length&&Ue.map(function(pt,bt){var Dt=pt.subject_identifier,It=pt.id,ct=pt.identifier,Nt=pt.power,jt=pt.is_public!=0&&pt.is_public;return g.a.createElement("div",{className:me.a.wrap,key:It,style:{width:Qe,marginRight:(1+bt)%st===0?0:Ct+Ot,marginBottom:Qt}},g.a.createElement("a",{className:me.a.li,onClick:function(vn){vn.preventDefault()}},g.a.createElement("div",{className:me.a.top},g.a.createElement(D.a,{title:pt.name},g.a.createElement("div",{className:me.a.name},pt.name)),g.a.createElement("img",{className:me.a.img,src:I.a.IMG_SERVER+"/images/"+pt.avatar_url}),g.a.createElement("div",{className:me.a.text},pt.creator),Dt&&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")),jt&&g.a.createElement("div",{className:me.a.sign},"\u516C\u5F00")),g.a.createElement("div",{className:me.a.bottom},pt.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,pt.visits))),pt.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"}),pt.course_members_count)),pt.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"}),pt.tasks_count)),pt.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},pt.is_accessible?g.a.createElement(g.a.Fragment,null,Dt&&g.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(Dt))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),g.a.createElement("div",{onClick:function(vn){it&&Object(K.cb)([it]),Object(K.S)(pt.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"))))}),!Ue.length&&g.a.createElement(be.a,null)))},Oe=ae,le=o("f0W+"),te=o.n(le),Q=function(Ce){var Le=Ce.dataSource,We=Le===void 0?[]:Le,Ue=Ce.value,ze=Ce.onChange,st=Ce.className,Ct=Ce.style,Wt=Ct===void 0?{}:Ct,Qt=Ce.tabBarExtraContent;return g.a.createElement("div",{className:n()(te.a.tabs,st),style:Wt},g.a.createElement("div",{className:te.a.tabsWrap},We.map(function(Kt,Ot){return g.a.createElement("div",{onClick:function(){return ze(Kt.id)},className:Ue===Kt.id?te.a.active:"",key:Ot},Kt.name)})),g.a.createElement("div",{className:te.a.tabBar},Qt))},J=Q,ve=o("9JIy"),_e=o.n(ve),Ae=function(Ce){var Le=Ce.className,We=Ce.style,Ue=We===void 0?{}:We,ze=Ce.children;return g.a.createElement("div",{className:n()(_e.a.table,Le),style:Ue},ze)},Je=Ae,tt=o("qVdP"),ut=o("jsC+"),ft=o("lUTK"),vt=o("BvKs"),_t=o("8WcF"),Ve=o.n(_t),je=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],ht=function(Ce){var Le,We=Ce.sortValue,Ue=Ce.dropValue,ze=Ce.className,st=Ce.onSort,Ct=Ce.onDrop,Wt=Ce.dataSource,Qt=Wt===void 0?je:Wt;return g.a.createElement("div",{className:n()(Ve.a.orderWrap,ze)},g.a.createElement(ut.a,{overlay:g.a.createElement(vt.a,null,Qt.map(function(Kt,Ot){return g.a.createElement(vt.a.Item,{key:Ot,onClick:function(){return Ct(Kt.id)}},Kt.name)}))},g.a.createElement("span",{className:Ve.a.orderTextWrap},(Le=Qt.find(function(Kt){return Ue===Kt.id}))===null||Le===void 0?void 0:Le.name)),g.a.createElement("span",{className:Ve.a.orderIconWrap},g.a.createElement("span",{className:Ve.a.orderAsc},g.a.createElement("i",{className:We==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Ve.a.cursorPointer," ").concat(Ve.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Ve.a.cursorPointer),onClick:function(){return st(We==="asc"?"desc":"asc")}})),g.a.createElement("span",{className:Ve.a.orderDesc},g.a.createElement("i",{className:We==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Ve.a.cursorPointer," ").concat(Ve.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Ve.a.cursorPointer),onClick:function(){return st(We==="asc"?"desc":"asc")}}))))},Bt=ht,Et=o("siWv"),Pt=o.n(Et),qe=function(Ce){var Le=Ce.className,We=Ce.style,Ue=Ce.children,ze=Ce.onClick;return g.a.createElement("div",{onClick:ze,className:n()(Pt.a.btn,Le),style:We},Ue)},He=qe},Nmxd:function(k,z){k.exports="data:image/png;base64,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"},NvD2:function(k,z,o){"use strict";o.d(z,"a",function(){return C});var M=o("Kwbf");function g(A,m){var e=new Set;return A.forEach(function(f){m.has(f)||e.add(f)}),e}function O(A){var m=A||{},e=m.disabled,f=m.disableCheckbox,a=m.checkable;return!!(e||f)||a===!1}function b(A,m,e,f){for(var a=new Set(A),l=new Set,n=0;n<=e;n+=1){var i=m.get(n)||new Set;i.forEach(function(d){var s=d.key,u=d.node,w=d.children,E=w===void 0?[]:w;a.has(s)&&!f(u)&&E.filter(function(_){return!f(_.node)}).forEach(function(_){a.add(_.key)})})}for(var r=new Set,c=e;c>=0;c-=1){var h=m.get(c)||new Set;h.forEach(function(d){var s=d.parent,u=d.node;if(f(u)||!d.parent||r.has(d.parent.key))return;if(f(d.parent.node)){r.add(s.key);return}var w=!0,E=!1;(s.children||[]).filter(function(_){return!f(_.node)}).forEach(function(_){var P=_.key,R=a.has(P);w&&!R&&(w=!1),!E&&(R||l.has(P))&&(E=!0)}),w&&a.add(s.key),E&&l.add(s.key),r.add(s.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(g(l,a))}}function y(A,m,e,f,a){for(var l=new Set(A),n=new Set(m),i=0;i<=f;i+=1){var r=e.get(i)||new Set;r.forEach(function(s){var u=s.key,w=s.node,E=s.children,_=E===void 0?[]:E;!l.has(u)&&!n.has(u)&&!a(w)&&_.filter(function(P){return!a(P.node)}).forEach(function(P){l.delete(P.key)})})}n=new Set;for(var c=new Set,h=f;h>=0;h-=1){var d=e.get(h)||new Set;d.forEach(function(s){var u=s.parent,w=s.node;if(a(w)||!s.parent||c.has(s.parent.key))return;if(a(s.parent.node)){c.add(u.key);return}var E=!0,_=!1;(u.children||[]).filter(function(P){return!a(P.node)}).forEach(function(P){var R=P.key,x=l.has(R);E&&!x&&(E=!1),!_&&(x||n.has(R))&&(_=!0)}),E||l.delete(u.key),_&&n.add(u.key),c.add(u.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(g(n,l))}}function C(A,m,e,f){var a=[],l;f?l=f:l=O;var n=new Set(A.filter(function(h){var d=!!e[h];return d||a.push(h),d})),i=new Map,r=0;Object.keys(e).forEach(function(h){var d=e[h],s=d.level,u=i.get(s);u||(u=new Set,i.set(s,u)),u.add(d),r=Math.max(r,s)}),Object(M.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var c;return m===!0?c=b(n,i,r,l):c=y(n,m.halfCheckedKeys,i,r,l),c}},OLES:function(k,z,o){"use strict";var M=o("U8pU"),g=o("VTBJ"),O=o("Ff2n"),b=o("q1tI"),y=o("uciX"),C=o("7ixt"),A=function(n){var i=n.overlay,r=n.prefixCls,c=n.id,h=n.overlayInnerStyle;return b.createElement("div",{className:"".concat(r,"-inner"),id:c,role:"tooltip",style:h},typeof i=="function"?i():i)},m=A,e=function(n,i){var r=n.overlayClassName,c=n.trigger,h=c===void 0?["hover"]:c,d=n.mouseEnterDelay,s=d===void 0?0:d,u=n.mouseLeaveDelay,w=u===void 0?.1:u,E=n.overlayStyle,_=n.prefixCls,P=_===void 0?"rc-tooltip":_,R=n.children,x=n.onVisibleChange,S=n.afterVisibleChange,v=n.transitionName,T=n.animation,U=n.placement,L=U===void 0?"right":U,N=n.align,V=N===void 0?{}:N,H=n.destroyTooltipOnHide,D=H===void 0?!1:H,W=n.defaultVisible,F=n.getTooltipContainer,I=n.overlayInnerStyle,K=Object(O.a)(n,["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 n&&(he.popupVisible=n.visible);var de=function(){var ye=n.arrowContent,ue=ye===void 0?null:ye,se=n.overlay,$=n.id;return[b.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},ue),b.createElement(m,{key:"content",prefixCls:P,id:$,overlay:se,overlayInnerStyle:I})]},Se=!1,Te=!1;if(typeof D=="boolean")Se=D;else if(D&&Object(M.a)(D)==="object"){var ce=D.keepParent;Se=ce===!0,Te=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:r,prefixCls:P,popup:de,action:h,builtinPlacements:C.a,popupPlacement:L,ref:ee,popupAlign:V,getPopupContainer:F,onPopupVisibleChange:x,afterPopupVisibleChange:S,popupTransitionName:v,popupAnimation:T,defaultPopupVisible:W,destroyPopupOnHide:Se,autoDestroy:Te,mouseLeaveDelay:w,popupStyle:E,mouseEnterDelay:s},he),R)},f=Object(b.forwardRef)(e),a=z.a=f},OLod:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("K3mO"))})(this,function(M){M.lib.Cipher||function(g){var O=M,b=O.lib,y=b.Base,C=b.WordArray,A=b.BufferedBlockAlgorithm,m=O.enc,e=m.Utf8,f=m.Base64,a=O.algo,l=a.EvpKDF,n=b.Cipher=A.extend({cfg:y.extend(),createEncryptor:function(v,T){return this.create(this._ENC_XFORM_MODE,v,T)},createDecryptor:function(v,T){return this.create(this._DEC_XFORM_MODE,v,T)},init:function(v,T,U){this.cfg=this.cfg.extend(U),this._xformMode=v,this._key=T,this.reset()},reset:function(){A.reset.call(this),this._doReset()},process:function(v){return this._append(v),this._process()},finalize:function(v){v&&this._append(v);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function v(T){return typeof T=="string"?S:P}return function(T){return{encrypt:function(U,L,N){return v(L).encrypt(T,U,L,N)},decrypt:function(U,L,N){return v(L).decrypt(T,U,L,N)}}}}()}),i=b.StreamCipher=n.extend({_doFinalize:function(){var v=this._process(!0);return v},blockSize:1}),r=O.mode={},c=b.BlockCipherMode=y.extend({createEncryptor:function(v,T){return this.Encryptor.create(v,T)},createDecryptor:function(v,T){return this.Decryptor.create(v,T)},init:function(v,T){this._cipher=v,this._iv=T}}),h=r.CBC=function(){var v=c.extend();v.Encryptor=v.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize;T.call(this,U,L,V),N.encryptBlock(U,L),this._prevBlock=U.slice(L,L+V)}}),v.Decryptor=v.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize,H=U.slice(L,L+V);N.decryptBlock(U,L),T.call(this,U,L,V),this._prevBlock=H}});function T(U,L,N){var V,H=this._iv;H?(V=H,this._iv=g):V=this._prevBlock;for(var D=0;D>>2]&255;v.sigBytes-=T}},u=b.BlockCipher=n.extend({cfg:n.cfg.extend({mode:h,padding:s}),reset:function(){var v;n.reset.call(this);var T=this.cfg,U=T.iv,L=T.mode;this._xformMode==this._ENC_XFORM_MODE?v=L.createEncryptor:(v=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==v?this._mode.init(this,U&&U.words):(this._mode=v.call(L,this,U&&U.words),this._mode.__creator=v)},_doProcessBlock:function(v,T){this._mode.processBlock(v,T)},_doFinalize:function(){var v,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),v=this._process(!0)):(v=this._process(!0),T.unpad(v)),v},blockSize:128/32}),w=b.CipherParams=y.extend({init:function(v){this.mixIn(v)},toString:function(v){return(v||this.formatter).stringify(this)}}),E=O.format={},_=E.OpenSSL={stringify:function(v){var T,U=v.ciphertext,L=v.salt;return L?T=C.create([1398893684,1701076831]).concat(L).concat(U):T=U,T.toString(f)},parse:function(v){var T,U=f.parse(v),L=U.words;return L[0]==1398893684&&L[1]==1701076831&&(T=C.create(L.slice(2,4)),L.splice(0,4),U.sigBytes-=16),w.create({ciphertext:U,salt:T})}},P=b.SerializableCipher=y.extend({cfg:y.extend({format:_}),encrypt:function(v,T,U,L){L=this.cfg.extend(L);var N=v.createEncryptor(U,L),V=N.finalize(T),H=N.cfg;return w.create({ciphertext:V,key:U,iv:H.iv,algorithm:v,mode:H.mode,padding:H.padding,blockSize:v.blockSize,formatter:L.format})},decrypt:function(v,T,U,L){L=this.cfg.extend(L),T=this._parse(T,L.format);var N=v.createDecryptor(U,L).finalize(T.ciphertext);return N},_parse:function(v,T){return typeof v=="string"?T.parse(v,this):v}}),R=O.kdf={},x=R.OpenSSL={execute:function(v,T,U,L){L||(L=C.random(64/8));var N=l.create({keySize:T+U}).compute(v,L),V=C.create(N.words.slice(T),U*4);return N.sigBytes=T*4,w.create({key:N,iv:V,salt:L})}},S=b.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:x}),encrypt:function(v,T,U,L){L=this.cfg.extend(L);var N=L.kdf.execute(U,v.keySize,v.ivSize);L.iv=N.iv;var V=P.encrypt.call(this,v,T,N.key,L);return V.mixIn(N),V},decrypt:function(v,T,U,L){L=this.cfg.extend(L),T=this._parse(T,L.format);var N=L.kdf.execute(U,v.keySize,v.ivSize,T.salt);L.iv=N.iv;var V=P.decrypt.call(this,v,T,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 l}),o.d(z,"h",function(){return n}),o.d(z,"i",function(){return i}),o.d(z,"g",function(){return r}),o.d(z,"c",function(){return c}),o.d(z,"d",function(){return h}),o.d(z,"j",function(){return u}),o.d(z,"e",function(){return w}),o.d(z,"f",function(){return E});var M=o("KQm4"),g=o("U8pU"),O=o("Ff2n"),b=o("q1tI"),y=o.n(b),C=o("Kwbf"),A=o("WaYH"),m=.25,e=2;function f(_,P){var R=_.slice(),x=R.indexOf(P);return x>=0&&R.splice(x,1),R}function a(_,P){var R=_.slice();return R.indexOf(P)===-1&&R.push(P),R}function l(_){return _.split("-")}function n(_,P){return"".concat(_,"-").concat(P)}function i(_){return _&&_.type&&_.type.isTreeNode}function r(_,P){var R=[_],x=P[_];function S(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];v.forEach(function(T){var U=T.key,L=T.children;R.push(U),S(L)})}return S(x.children),R}function c(_,P){var R=_.clientY,x=P.selectHandle.getBoundingClientRect(),S=x.top,v=x.bottom,T=x.height,U=Math.max(T*m,e);return R<=S+U?-1:R>=v-U?1:0}function h(_,P){if(!_)return;var R=P.multiple;return R?_.slice():_.length?[_[0]]:_}var d=function(P){return P};function s(_,P){if(!_)return[];var R=P||{},x=R.processProps,S=x===void 0?d:x,v=Array.isArray(_)?_:[_];return v.map(function(T){var U=T.children,L=Object(O.a)(T,["children"]),N=s(U,P);return y.a.createElement(A.a,Object.assign({},S(L)),N)})}function u(_){if(!_)return null;var P;if(Array.isArray(_))P={checkedKeys:_,halfCheckedKeys:void 0};else if(Object(g.a)(_)==="object")P={checkedKeys:_.checked||void 0,halfCheckedKeys:_.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function w(_,P){var R=new Set;function x(S){if(R.has(S))return;var v=P[S];if(!v)return;R.add(S);var T=v.parent,U=v.node;if(U.disabled)return;T&&x(T.key)}return(_||[]).forEach(function(S){x(S)}),Object(M.a)(R)}function E(_){var P={};return Object.keys(_).forEach(function(R){(R.startsWith("data-")||R.startsWith("aria-"))&&(P[R]=_[R])}),P}},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 M=o("2qtc"),g=o("kLXV"),O=o("rAM+"),b=o("miYZ"),y=o("tsqr"),C=o("9og8"),A=o("tJVT"),m=o("jrin"),e=o("WmNS"),f=o.n(e),a=o("q1tI"),l=o.n(a),n=o("VrN/"),i=o.n(n),r=o("bdgK"),c=o("p77/"),h=o("Bd2K"),d=o("ELLl"),s=o("19Vz"),u=o("lZu9"),w=o("+NIl"),E=o("kSUc"),_=o("9Bee"),P=function(ze){var st=ze.value,Ct=st===void 0?"":st,Wt=ze.className,Qt=ze.showTextOnly,Kt=ze.showLines,Ot=ze.style,Fe=Ot===void 0?{}:Ot,at=Object(a.useMemo)(function(){return""},[Ct]);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{dangerouslySetInnerHTML:{__html:at}}))},R=o("0Owb"),x=o("dejd"),S=o("C+DQ"),v=o("1vsH"),T=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(ze){var st=ze.onActionCallback,Ct=ze.title,Wt=ze.icon,Qt=ze.actionName,Kt=ze.className,Ot=Kt===void 0?"":Kt,Fe=ze.children;function at(){st(Qt)}return l.a.createElement("a",{title:Ct,className:Ot,onClick:at},l.a.createElement("i",{className:"md-iconfont ".concat(Wt)}),Fe)}var N=function(ze){var st=ze.watch,Ct=ze.showNullButton,Wt=ze.onActionCallback,Qt=ze.fullScreen,Kt=ze.insertTemp,Ot=ze.hidetoolBar,Fe=ze.uuid,at=ze.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(v.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(v.F)("_educoder_session"),"&key=").concat(Fe,"&api=").concat(encodeURIComponent(T.a.PROXY_SERVER)));var it=[].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 l.a.createElement("ul",{className:"markdown-toolbar-container"},!Ot&&it.map(function(Pe,Qe){return l.a.createElement("li",{key:Qe},Pe.actionName?l.a.createElement(L,Object(R.a)({},Pe,{onActionCallback:Wt})):l.a.createElement("span",{className:"v-line"}))}),Ct?l.a.createElement("li",null,l.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Wt},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Kt&&l.a.createElement("li",null,l.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Kt),onActionCallback:Wt},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(L,{icon:"".concat(Qt?"icon-shrink":"icon-enlarge"),title:Qt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Wt})))},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(ze){var st=ze.callback,Ct=ze.onCancel;function Wt(Qt){st(Qt)}return l.a.createElement(F.a,Object(R.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Wt}),l.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},l.a.createElement(K.a,null)),l.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},l.a.createElement(K.a,null)),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(D.a,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))},de=o("7ahc"),Se=o("HmJG"),Te=o("BjJ7"),ce=F.a.useForm,be={width:280,marginRight:10},ye={labelCol:{span:5},wrapperCol:{span:19}},ue=function(ze){var st=ze.callback,Ct=ze.onCancel,Wt=ce(),Qt=Object(A.a)(Wt,1),Kt=Qt[0];function Ot(it){st(it)}function Fe(it,Pe){if(it.status===-1){y.b.error(it.message);return}Kt.setFieldsValue({src:"/api/attachments/".concat(it.id),type:Pe.type})}function at(it){var Pe=it.target.files[0];$(Pe,Fe)}return l.a.createElement(F.a,Object(R.a)({form:Kt},ye,{className:"upload-image-panel",onFinish:Ot}),l.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},l.a.createElement("div",{className:"flex-container"},l.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},l.a.createElement(K.a,{style:be})),l.a.createElement(se,{onFileChange:at}))),l.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},l.a.createElement(K.a,{style:{width:264}})),l.a.createElement(F.a.Item,{style:{textAlign:"right"}},l.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(D.a,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))};function se(ze){var st=ze.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",onChange:st}))}function $(ze,st){if(!ze)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ct=new FormData;Ct.append("editormd-image-file",ze),Ct.append("file_param_name","editormd-image-file"),Ct.append("byxhr","true");var Wt=new window.XMLHttpRequest;Wt.withCredentials=!0,Wt.addEventListener("load",function(Qt){st(JSON.parse(Qt.target.responseText),ze)},!1),Wt.addEventListener("error",function(Qt){console.error(Qt)},!1),Wt.open("POST","".concat(Te.a,"/api/attachments.json")),Wt.send(Ct)}var me=o("giR+"),re=o("fyUT"),ae=o("7Kak"),Oe=o("9yH6"),le=Oe.a.Group,te={margin:"0 8px"},Q=function(ze){var st=ze.callback,Ct=ze.onCancel;function Wt(Qt){st(Qt)}return l.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Wt},l.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},l.a.createElement("span",{style:te},"\u5355\u5143\u683C\u6570\uFF1A"),l.a.createElement("span",{style:te},"\u884C\u6570"),l.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},l.a.createElement(re.a,null)),l.a.createElement("span",{style:te},"\u5217\u6570"),l.a.createElement(F.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},l.a.createElement(re.a,null))),l.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},l.a.createElement("span",{style:te},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),l.a.createElement(F.a.Item,{name:"align"},l.a.createElement(le,null,l.a.createElement(Oe.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(Oe.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(Oe.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(Oe.a,{value:"right"},l.a.createElement("i",{className:"fa fa-align-right"}))))),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(D.a,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))},J=o("ErOA"),ve=o("7Cbv"),_e="link",Ae="upload-image",Je="code-block",tt="add-table",ut="------------",ft={default:ut,left:":".concat(ut),center:":".concat(ut,":"),right:"".concat(ut,":")},vt=o("9VGf"),_t,Ve;function je(){}var ht=0,Bt=1e4,Et="\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 qe(ze){return/^\d+$/.test(ze)?"".concat(ze,"px"):ze}var He=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ye=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"],Le=(_t={},Object(m.a)(_t,Ye+"-B","bold"),Object(m.a)(_t,Ye+"-I","italic"),_t),We=(Ve={},Object(m.a)(Ve,_e,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(Ve,Je,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(Ve,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(Ve,tt,"\u6DFB\u52A0\u8868\u683C"),Ve),Ue=z.a=function(ze){var st=ze.defaultValue,Ct=st===void 0?"":st,Wt=ze.onChange,Qt=ze.width,Kt=Qt===void 0?"100%":Qt,Ot=ze.height,Fe=Ot===void 0?400:Ot,at=ze.miniToolbar,it=at===void 0?!1:at,Pe=ze.isFocus,Qe=Pe===void 0?!1:Pe,pt=ze.watch,bt=ze.insertTemp,Dt=ze.mode,It=Dt===void 0?"markdown":Dt,ct=ze.id,Nt=ct===void 0?"markdown-editor-id":ct,jt=ze.showResizeBar,on=jt===void 0?!1:jt,vn=ze.noStorage,Wn=vn===void 0?!1:vn,Kn=ze.showNullButton,Hn=Kn===void 0?!1:Kn,fn=ze.hidetoolBar,lr=fn===void 0?!1:fn,Zn=ze.fullScreen,cr=Zn===void 0?!1:Zn,dr=ze.onBlur,Dr=ze.onCMBeforeChange,hr=ze.onFullScreen,sn=ze.className,en=sn===void 0?"":sn,On=ze.disablePaste,Fr=On===void 0?!1:On,Or=ze.placeholder,xr=Or===void 0?"":Or,fr=ze.values,pe=fr===void 0?"":fr,X=Object(a.useState)(null),q=Object(A.a)(X,2),oe=q[0],De=q[1],fe=Object(a.useState)(Ct),ot=Object(A.a)(fe,2),Zt=ot[0],Mn=ot[1],Vn=Object(a.useState)(pt),qt=Object(A.a)(Vn,2),yn=qt[0],un=qt[1],jr=Object(a.useState)(cr),ra=Object(A.a)(jr,2),oa=ra[0],er=ra[1],Ba=Object(a.useState)(""),Ea=Object(A.a)(Ba,2),ca=Ea[0],Ka=Ea[1],Ta=Object(a.useState)(0),Ja=Object(A.a)(Ta,2),Ua=Ja[0],li=Ja[1],oi=Object(a.useState)(Fe),fa=Object(A.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(a.useState)(!1),lt=Object(A.a)(xe,2),Rt=lt[0],wt=lt[1],Ht=Object(a.useRef)(Object(ve.a)()),Lt=Object(a.useRef)(!1),Xt=Object(a.useRef)(),rn=Object(a.useRef)(),En=Object(a.useRef)(),gn=Object(a.useRef)(),Nn=Object(a.useRef)(),An=function(){var tn=Object(C.a)(f.a.mark(function wn(){var _n,In;return f.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.next=2,Object(J.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ht.current}});case 2:In=ar.sent,In!=null&&(_n=In.attachments)!==null&&_n!==void 0&&_n.length&&(console.log("cm:",oe,rn),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(T.a.API_SERVER,"/api/attachments/").concat(qn.id,"?type=").concat(qn.content_type,")"))}));case 4:case"end":return ar.stop()}},wn)}));return function(){return tn.apply(this,arguments)}}();Object(a.useEffect)(function(){Mn(pe),oe==null||oe.setValue(pe)},[pe]),Object(a.useEffect)(function(){hr==null||hr(oa)},[oa]),Object(a.useEffect)(function(){if(rn.current){var tn=i.a.fromTextArea(rn.current,{mode:It,lineNumbers:!it,lineWrapping:!0,value:Ct,autoCloseTags:!0,autoCloseBrackets:!0});Qe&&tn.focus();function wn(_n,In){if(Fr){In.preventDefault();return}var Un=In.clipboardData;if(Un){var ar=Un.types.toString(),qn=Un.items;if(ar==="Files"||Un.types.indexOf("Files")>-1){if(In.preventDefault(),It=="stex")return;try{var Rr,Ir=qn[1];((Rr=qn[0])===null||Rr===void 0?void 0:Rr.kind)==="file"&&(Ir=qn[0]);var Jn=Ir.getAsFile(),Ar=Jn.name.split(".").pop();$(Jn,function(vr){if(vr.id){var zr,Lr,$r;(Jn==null||((zr=Jn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?tn.replaceSelection("![,](/api/attachments/".concat(vr.id,"?type=").concat(vr.content_type,")")):(Jn==null||((Lr=Jn.type)===null||Lr===void 0)?void 0:Lr.indexOf("video"))>-1?tn.replaceSelection('')):(Jn==null||(($r=Jn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?tn.replaceSelection('').concat(Jn.name,"")):Ce.includes(Ar)?tn.replaceSelection('').concat(Jn.name,"")):tn.replaceSelection("[".concat(Jn.name,"](").concat(T.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 tn.on("paste",wn),tn.on("dragleave",function(_n,In){En.current.classList.remove("mouse-hover-md")}),tn.on("dragover",function(_n,In){En.current.classList.add("mouse-hover-md")}),tn.on("drop",function(_n,In){En.current.classList.add("mouse-hover-md");var Un;if(Un=In.dataTransfer.files,Un.length>0){In.preventDefault(),In.stopPropagation();for(var ar=function(Ir){var Jn=Un[Ir],Ar=Jn.name.split(".").pop();$(Jn,function(vr){if(vr.id){var zr,Lr,$r;(Jn==null||((zr=Jn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?tn.replaceSelection("![,](/api/attachments/".concat(vr.id,"?type=").concat(vr.content_type,")")):(Jn==null||((Lr=Jn.type)===null||Lr===void 0)?void 0:Lr.indexOf("video"))>-1?tn.replaceSelection('')):(Jn==null||(($r=Jn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?tn.replaceSelection('').concat(Jn.name,"")):Ce.includes(Ar)?tn.replaceSelection('').concat(Jn.name,"")):tn.replaceSelection("[".concat(Jn.name,"](").concat(T.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(Rr){Un.e(Rr)}finally{Un.f()}});return _n.observe(rn.current.parentElement),_n}if(oe){var wn=tn();return function(){wn.unobserve(rn.current.parentElement)}}},[oe,an]),Object(a.useEffect)(function(){if(oe){for(var tn=[],wn=function(){var qn=In[_n];Un=Object(A.a)(qn,2);var Rr=Un[0],Ir=Un[1],Jn=Object(m.a)({},Rr,function(){Pn(Ir)});tn.push(Jn),oe.addKeyMap(Jn)},_n=0,In=Object.entries(Le);_n0){var tn=new Date().getTime(),wn=window.sessionStorage.getItem(Nt);tn>=Ua+Bt&&(!wn||wn!==Zt)&&(window.sessionStorage.setItem(Nt,Zt),wt(!0))}},Bt),Object(a.useEffect)(function(){un(pt)},[oe,pt]),Object(a.useEffect)(function(){oe&&(Qe&&oe.focus())},[oe,Qe]),Object(a.useEffect)(function(){if(yn&&oe){var tn=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 tn.addEventListener("scroll",wn),function(){tn.removeEventListener("scroll",wn)}}},[oe,yn]),Object(a.useEffect)(function(){if(oe&&Dr){function tn(wn,_n){Dr(wn,_n)}return oe.on("beforeChange",tn),function(){oe.off("beforeChange",tn)}}},[oe,Dr]),Object(a.useEffect)(function(){if(oe&&dr){function tn(){dr(oe.getValue())}return oe.on("blur",tn),function(){oe.off("blur",tn)}}},[oe,dr]),Object(a.useEffect)(function(){if(oe){function tn(wn){var _n=wn.getValue();Mn(_n),li(new Date().getTime()),wn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Wt&&Wt(_n)}return oe.on("change",tn),function(){oe.off("change",tn)}}},[oe,Wt]),Object(a.useEffect)(function(){oe&&(Ct==null?(oe.setValue(""),Mn("")):Ct!==oe.getValue()&&(oe.setValue(Ct),Mn(Ct),oe.setCursor(oe.lineCount(),0)))},[oe,Ct]);var Pn=Object(a.useCallback)(function(tn){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 qe(ze){return/^\d+$/.test(ze)?"".concat(ze,"px"):ze}var He=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ye=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"],Le=(_t={},Object(m.a)(_t,Ye+"-B","bold"),Object(m.a)(_t,Ye+"-I","italic"),_t),We=(Ve={},Object(m.a)(Ve,_e,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(Ve,Je,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(Ve,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(Ve,tt,"\u6DFB\u52A0\u8868\u683C"),Ve),Ue=z.a=function(ze){var st=ze.defaultValue,Ct=st===void 0?"":st,Wt=ze.onChange,Qt=ze.width,Kt=Qt===void 0?"100%":Qt,Ot=ze.height,Fe=Ot===void 0?400:Ot,at=ze.miniToolbar,it=at===void 0?!1:at,Pe=ze.isFocus,Qe=Pe===void 0?!1:Pe,pt=ze.watch,bt=ze.insertTemp,Dt=ze.mode,It=Dt===void 0?"markdown":Dt,ct=ze.id,Nt=ct===void 0?"markdown-editor-id":ct,jt=ze.showResizeBar,on=jt===void 0?!1:jt,vn=ze.noStorage,Wn=vn===void 0?!1:vn,Kn=ze.showNullButton,Hn=Kn===void 0?!1:Kn,fn=ze.hidetoolBar,lr=fn===void 0?!1:fn,Zn=ze.fullScreen,cr=Zn===void 0?!1:Zn,dr=ze.onBlur,Dr=ze.onCMBeforeChange,hr=ze.onFullScreen,sn=ze.className,en=sn===void 0?"":sn,On=ze.disablePaste,Fr=On===void 0?!1:On,Or=ze.placeholder,xr=Or===void 0?"":Or,fr=ze.values,pe=fr===void 0?"":fr,X=Object(a.useState)(null),q=Object(A.a)(X,2),oe=q[0],De=q[1],fe=Object(a.useState)(Ct),ot=Object(A.a)(fe,2),Zt=ot[0],Mn=ot[1],Vn=Object(a.useState)(pt),qt=Object(A.a)(Vn,2),En=qt[0],un=qt[1],jr=Object(a.useState)(cr),aa=Object(A.a)(jr,2),oa=aa[0],er=aa[1],Ba=Object(a.useState)(""),Ea=Object(A.a)(Ba,2),ca=Ea[0],Ka=Ea[1],Ta=Object(a.useState)(0),Ja=Object(A.a)(Ta,2),Ua=Ja[0],li=Ja[1],oi=Object(a.useState)(Fe),fa=Object(A.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(a.useState)(!1),lt=Object(A.a)(xe,2),Rt=lt[0],wt=lt[1],Ht=Object(a.useRef)(Object(ve.a)()),Lt=Object(a.useRef)(!1),Xt=Object(a.useRef)(),rn=Object(a.useRef)(),xn=Object(a.useRef)(),gn=Object(a.useRef)(),Nn=Object(a.useRef)(),An=function(){var tn=Object(C.a)(f.a.mark(function wn(){var _n,In;return f.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.next=2,Object(J.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ht.current}});case 2:In=ar.sent,In!=null&&(_n=In.attachments)!==null&&_n!==void 0&&_n.length&&(console.log("cm:",oe,rn),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(T.a.API_SERVER,"/api/attachments/").concat(qn.id,"?type=").concat(qn.content_type,")"))}));case 4:case"end":return ar.stop()}},wn)}));return function(){return tn.apply(this,arguments)}}();Object(a.useEffect)(function(){Mn(pe),oe==null||oe.setValue(pe)},[pe]),Object(a.useEffect)(function(){hr==null||hr(oa)},[oa]),Object(a.useEffect)(function(){if(rn.current){var tn=i.a.fromTextArea(rn.current,{mode:It,lineNumbers:!it,lineWrapping:!0,value:Ct,autoCloseTags:!0,autoCloseBrackets:!0});Qe&&tn.focus();function wn(_n,In){if(Fr){In.preventDefault();return}var Un=In.clipboardData;if(Un){var ar=Un.types.toString(),qn=Un.items;if(ar==="Files"||Un.types.indexOf("Files")>-1){if(In.preventDefault(),It=="stex")return;try{var Rr,Ir=qn[1];((Rr=qn[0])===null||Rr===void 0?void 0:Rr.kind)==="file"&&(Ir=qn[0]);var Jn=Ir.getAsFile(),Ar=Jn.name.split(".").pop();$(Jn,function(vr){if(vr.id){var zr,Lr,$r;(Jn==null||((zr=Jn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?tn.replaceSelection("![,](/api/attachments/".concat(vr.id,"?type=").concat(vr.content_type,")")):(Jn==null||((Lr=Jn.type)===null||Lr===void 0)?void 0:Lr.indexOf("video"))>-1?tn.replaceSelection('')):(Jn==null||(($r=Jn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?tn.replaceSelection('').concat(Jn.name,"")):Ce.includes(Ar)?tn.replaceSelection('').concat(Jn.name,"")):tn.replaceSelection("[".concat(Jn.name,"](").concat(T.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 tn.on("paste",wn),tn.on("dragleave",function(_n,In){xn.current.classList.remove("mouse-hover-md")}),tn.on("dragover",function(_n,In){xn.current.classList.add("mouse-hover-md")}),tn.on("drop",function(_n,In){xn.current.classList.add("mouse-hover-md");var Un;if(Un=In.dataTransfer.files,Un.length>0){In.preventDefault(),In.stopPropagation();for(var ar=function(Ir){var Jn=Un[Ir],Ar=Jn.name.split(".").pop();$(Jn,function(vr){if(vr.id){var zr,Lr,$r;(Jn==null||((zr=Jn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?tn.replaceSelection("![,](/api/attachments/".concat(vr.id,"?type=").concat(vr.content_type,")")):(Jn==null||((Lr=Jn.type)===null||Lr===void 0)?void 0:Lr.indexOf("video"))>-1?tn.replaceSelection('')):(Jn==null||(($r=Jn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?tn.replaceSelection('').concat(Jn.name,"")):Ce.includes(Ar)?tn.replaceSelection('').concat(Jn.name,"")):tn.replaceSelection("[".concat(Jn.name,"](").concat(T.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(Rr){Un.e(Rr)}finally{Un.f()}});return _n.observe(rn.current.parentElement),_n}if(oe){var wn=tn();return function(){wn.unobserve(rn.current.parentElement)}}},[oe,an]),Object(a.useEffect)(function(){if(oe){for(var tn=[],wn=function(){var qn=In[_n];Un=Object(A.a)(qn,2);var Rr=Un[0],Ir=Un[1],Jn=Object(m.a)({},Rr,function(){Pn(Ir)});tn.push(Jn),oe.addKeyMap(Jn)},_n=0,In=Object.entries(Le);_n0){var tn=new Date().getTime(),wn=window.sessionStorage.getItem(Nt);tn>=Ua+Bt&&(!wn||wn!==Zt)&&(window.sessionStorage.setItem(Nt,Zt),wt(!0))}},Bt),Object(a.useEffect)(function(){un(pt)},[oe,pt]),Object(a.useEffect)(function(){oe&&(Qe&&oe.focus())},[oe,Qe]),Object(a.useEffect)(function(){if(En&&oe){var tn=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 tn.addEventListener("scroll",wn),function(){tn.removeEventListener("scroll",wn)}}},[oe,En]),Object(a.useEffect)(function(){if(oe&&Dr){function tn(wn,_n){Dr(wn,_n)}return oe.on("beforeChange",tn),function(){oe.off("beforeChange",tn)}}},[oe,Dr]),Object(a.useEffect)(function(){if(oe&&dr){function tn(){dr(oe.getValue())}return oe.on("blur",tn),function(){oe.off("blur",tn)}}},[oe,dr]),Object(a.useEffect)(function(){if(oe){function tn(wn){var _n=wn.getValue();Mn(_n),li(new Date().getTime()),wn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Wt&&Wt(_n)}return oe.on("change",tn),function(){oe.off("change",tn)}}},[oe,Wt]),Object(a.useEffect)(function(){oe&&(Ct==null?(oe.setValue(""),Mn("")):Ct!==oe.getValue()&&(oe.setValue(Ct),Mn(Ct),oe.setCursor(oe.lineCount(),0)))},[oe,Ct]);var Pn=Object(a.useCallback)(function(tn){var wn=oe.getCursor(),_n=oe.getSelection(),In=_n.split(` `);switch(tn){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,ar){return Un===""?"":"".concat(ar+1,". ").concat(Un)}).join(` -`)),oe.focus();case"add-null-ch":return _n===""&&oe.setCursor(wn.line,wn.ch+1),oe.replaceSelection(Et),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 un(!yn),oe.focus();case"trigger-full-screen":return er(!oa),oe.focus();case _e:Ka(_e);return;case Je:Ka(Je);return;case Ae:Ka(Ae);return;case tt:Ka(tt);return;default:throw new Error}},[oe,yn,oa]),bn=Object(a.useCallback)(function(tn){Ka("");switch(ca){case _e:var wn=tn.title,_n=tn.link;return oe.replaceSelection("[".concat(wn,"](").concat(_n,")")),oe.focus();case Je:var In=tn.language,Un=tn.content;return oe.replaceSelection(["```"+In,Un,"```"].join(` +`)),oe.focus();case"add-null-ch":return _n===""&&oe.setCursor(wn.line,wn.ch+1),oe.replaceSelection(Et),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 un(!En),oe.focus();case"trigger-full-screen":return er(!oa),oe.focus();case _e:Ka(_e);return;case Je:Ka(Je);return;case Ae:Ka(Ae);return;case tt:Ka(tt);return;default:throw new Error}},[oe,En,oa]),yn=Object(a.useCallback)(function(tn){Ka("");switch(ca){case _e:var wn=tn.title,_n=tn.link;return oe.replaceSelection("[".concat(wn,"](").concat(_n,")")),oe.focus();case Je:var In=tn.language,Un=tn.content;return oe.replaceSelection(["```"+In,Un,"```"].join(` `)),oe.focus();case Ae:var ar=tn.src,qn=tn.alt;return qn?oe.replaceSelection("![ ".concat(qn," ]( ").concat(ar,' "').concat(qn,'" )')):oe.replaceSelection("![,](".concat(ar,")")),oe.focus();case tt:for(var Rr=tn.row,Ir=tn.col,Jn=tn.align,Ar=` `,vr=0;vr300&&(Rr=300);var Ir=Fe+Rr+"px";la(Ir)}}return tn.addEventListener("mousedown",In),document.addEventListener("mousemove",ar),document.addEventListener("mouseup",Un),function(){tn.removeEventListener("mousedown",In),document.removeEventListener("mousemove",ar),document.removeEventListener("mouseup",Un)}}},[oe,gn]),Object(a.useEffect)(function(){la(Fe)},[Fe]);var Yn=qe(Kt),mr=qe(ma),Br={width:Yn,height:mr},Sn=Object(a.useMemo)(function(){if(Ua){var tn=new Date(Ua),wn=tn.getHours(),_n=tn.getMinutes(),In=tn.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},[Ua]);function Yt(){window.sessionStorage.removeItem(Nt),wt(!1),li(0)}function hn(){wt(!1),li(0),oe.setValue(window.sessionStorage.getItem(Nt))}function Dn(tn,wn){var _n=oe.getValue();_n=_n.replace(tn,wn),Mn(_n),oe==null||oe.setValue(_n)}return l.a.createElement(a.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:En},l.a.createElement("div",{className:"markdown-editor-container ".concat(en," ").concat(yn?"on-preview":""," ").concat(it?"mini":""," ").concat(oa?"full-screen":""),style:Br},l.a.createElement(N,{insertTemp:bt,watch:yn,fullScreen:oa,showNullButton:Hn,onActionCallback:Pn,hidetoolBar:lr,uuid:Ht.current,setOpenPhones:function(){Lt.current=!0}}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:rn,placeholder:xr})),yn?l.a.createElement("div",{ref:Nn,className:"preview-container"},It==="stex"&&l.a.createElement(P,{value:Zt}),It!=="stex"&&l.a.createElement(_.a,{edit:!0,value:Zt,replaces:Dn})):null))),on?l.a.createElement("a",{ref:gn,className:"editor-resize"}):null,l.a.createElement(V.a,null,We[ca]?l.a.createElement(g.a,{centered:!0,title:We[ca],visible:!0,onCancel:Rn,footer:null,className:"markdown-popup-form"},kn):null))}},P5Jw:function(k,z,o){"use strict";var M=o("rHrb"),g=M.CopyToClipboard;g.CopyToClipboard=g,k.exports=g},PVpz:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.StreamCipher,y=g.algo,C=[],A=[],m=[],e=y.RabbitLegacy=b.extend({_doReset:function(){var a=this._key.words,l=this.cfg.iv,n=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 r=0;r<4;r++)f.call(this);for(var r=0;r<8;r++)i[r]^=n[r+4&7];if(l){var c=l.words,h=c[0],d=c[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,u=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|u&4294901760,E=u<<16|s&65535;i[0]^=s,i[1]^=w,i[2]^=u,i[3]^=E,i[4]^=s,i[5]^=w,i[6]^=u,i[7]^=E;for(var r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(a,l){var n=this._X;f.call(this),C[0]=n[0]^n[5]>>>16^n[3]<<16,C[1]=n[2]^n[7]>>>16^n[5]<<16,C[2]=n[4]^n[1]>>>16^n[7]<<16,C[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)C[i]=(C[i]<<8|C[i]>>>24)&16711935|(C[i]<<24|C[i]>>>8)&4278255360,a[l+i]^=C[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,l=this._C,n=0;n<8;n++)A[n]=l[n];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0>>0?1:0)|0,this._b=l[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var i=a[n]+l[n],r=i&65535,c=i>>>16,h=((r*r>>>17)+r*c>>>15)+c*c,d=((i&4294901760)*i|0)+((i&65535)*i|0);m[n]=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)}(),M.RabbitLegacy})},QNag:function(k,z,o){"use strict";var M=o("2qtc"),g=o("kLXV"),O=o("+L6B"),b=o("2/Rp"),y=o("9og8"),C=o("y8nQ"),A=o("Vl3Y"),m=o("tJVT"),e=o("PpiC"),f=o("5NDa"),a=o("5rEg"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),r=o.n(i),c=o("9kvl"),h=o("JFl9"),d=o.n(h),s=a.a.TextArea,u=function(E){var _=E.shixunsDetail,P=E.globalSetting,R=E.loading,x=E.dispatch,S=E.onFinish,v=S===void 0?function(){}:S,T=Object(e.a)(E,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),U=A.a.useForm(),L=Object(m.a)(U,1),N=L[0],V=function(){var D=Object(y.a)(n.a.mark(function W(F){var I,K;return n.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,x({type:"shixunsDetail/getCustomScript",payload:{id:(I=_.actionTabs.params)===null||I===void 0?void 0:I.id,compile:F.execute,excutive:F.compile}});case 2:K=he.sent,H(),K&&v(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(){x({type:"shixunsDetail/setActionTabs",payload:{}})};return r.a.createElement(g.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:_.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:H},r.a.createElement(A.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:V},r.a.createElement(A.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},r.a.createElement(s,{rows:4})),r.a.createElement(A.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},r.a.createElement(s,{rows:4})),r.a.createElement("div",{className:d.a.footerWrap},r.a.createElement(A.a.Item,null,r.a.createElement(b.a,{className:"mr5",size:"large",onClick:H},"\u53D6\u6D88"),r.a.createElement(b.a,{size:"large",type:"primary",htmlType:"submit",loading:R.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};z.a=Object(c.a)(function(w){var E=w.shixunsDetail,_=w.loading,P=w.globalSetting;return{shixunsDetail:E,globalSetting:P,loading:_}})(u)},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 M=o("q1tI"),g=o("uciX"),O=o("2W6z"),b=o.n(O),y=o("4IlW"),C=o("uK0f"),A=o.n(C);function m(be,ye){if(be===ye)return!0;if(!be||!ye)return!1;var ue=be.length;if(ye.length!==ue)return!1;for(var se=0;se0;(tt||me.isLeaf===!1)&&(Ae+=" ".concat(Oe,"-menu-item-expand"),me.loading||(Je=M.createElement("span",{className:"".concat(Oe,"-menu-item-expand-icon")},te))),le==="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 ut=null;me.loading&&(Ae+=" ".concat(Oe,"-menu-item-loading"),ut=Q||null);var ft="";return"title"in me?ft=me.title:typeof me[this.getFieldName("label")]=="string"&&(ft=me[this.getFieldName("label")]),M.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:Ae,title:ft},_e,{role:"menuitem",onMouseDown:function(_t){return _t.preventDefault()}}),me[this.getFieldName("label")],Je,ut)}},{key:"getActiveOptions",value:function(me){var re=this,ae=this.props.options,Oe=me||this.props.activeValue;return A()(ae,function(le,te){return le[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),le=1;le=0)continue;if(!Object.prototype.propertyIsEnumerable.call(be,se))continue;ue[se]=be[se]}}return ue}function x(be,ye){if(be==null)return{};var ue={},se=Object.keys(be),$,me;for(me=0;me=0)continue;ue[$]=be[$]}return ue}function S(be){return L(be)||U(be)||T(be)||v()}function v(){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 l.a.createElement(he,{callback:yn,onCancel:Rn});case Je:return l.a.createElement(de.b,{callback:yn,onCancel:Rn});case Ae:return l.a.createElement(ue,{callback:yn,onCancel:Rn});case tt:return l.a.createElement(Q,{callback:yn,onCancel:Rn});default:return null}},[ca]);function Rn(){Ka("")}Object(a.useEffect)(function(){if(gn.current){var tn=gn.current,wn=!1,_n=0;function In(qn){wn=!0,_n=qn.pageY}function Un(){wn=!1}function ar(qn){if(wn){var Rr=qn.pageY-_n;Rr<0&&(Rr=0),Rr>300&&(Rr=300);var Ir=Fe+Rr+"px";la(Ir)}}return tn.addEventListener("mousedown",In),document.addEventListener("mousemove",ar),document.addEventListener("mouseup",Un),function(){tn.removeEventListener("mousedown",In),document.removeEventListener("mousemove",ar),document.removeEventListener("mouseup",Un)}}},[oe,gn]),Object(a.useEffect)(function(){la(Fe)},[Fe]);var Yn=qe(Kt),mr=qe(ma),Br={width:Yn,height:mr},Sn=Object(a.useMemo)(function(){if(Ua){var tn=new Date(Ua),wn=tn.getHours(),_n=tn.getMinutes(),In=tn.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},[Ua]);function Yt(){window.sessionStorage.removeItem(Nt),wt(!1),li(0)}function hn(){wt(!1),li(0),oe.setValue(window.sessionStorage.getItem(Nt))}function Dn(tn,wn){var _n=oe.getValue();_n=_n.replace(tn,wn),Mn(_n),oe==null||oe.setValue(_n)}return l.a.createElement(a.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:xn},l.a.createElement("div",{className:"markdown-editor-container ".concat(en," ").concat(En?"on-preview":""," ").concat(it?"mini":""," ").concat(oa?"full-screen":""),style:Br},l.a.createElement(N,{insertTemp:bt,watch:En,fullScreen:oa,showNullButton:Hn,onActionCallback:Pn,hidetoolBar:lr,uuid:Ht.current,setOpenPhones:function(){Lt.current=!0}}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:rn,placeholder:xr})),En?l.a.createElement("div",{ref:Nn,className:"preview-container"},It==="stex"&&l.a.createElement(P,{value:Zt}),It!=="stex"&&l.a.createElement(_.a,{edit:!0,value:Zt,replaces:Dn})):null))),on?l.a.createElement("a",{ref:gn,className:"editor-resize"}):null,l.a.createElement(V.a,null,We[ca]?l.a.createElement(g.a,{centered:!0,title:We[ca],visible:!0,onCancel:Rn,footer:null,className:"markdown-popup-form"},kn):null))}},P5Jw:function(k,z,o){"use strict";var M=o("rHrb"),g=M.CopyToClipboard;g.CopyToClipboard=g,k.exports=g},PVpz:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.StreamCipher,y=g.algo,C=[],A=[],m=[],e=y.RabbitLegacy=b.extend({_doReset:function(){var a=this._key.words,l=this.cfg.iv,n=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 r=0;r<4;r++)f.call(this);for(var r=0;r<8;r++)i[r]^=n[r+4&7];if(l){var c=l.words,h=c[0],d=c[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,u=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|u&4294901760,E=u<<16|s&65535;i[0]^=s,i[1]^=w,i[2]^=u,i[3]^=E,i[4]^=s,i[5]^=w,i[6]^=u,i[7]^=E;for(var r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(a,l){var n=this._X;f.call(this),C[0]=n[0]^n[5]>>>16^n[3]<<16,C[1]=n[2]^n[7]>>>16^n[5]<<16,C[2]=n[4]^n[1]>>>16^n[7]<<16,C[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)C[i]=(C[i]<<8|C[i]>>>24)&16711935|(C[i]<<24|C[i]>>>8)&4278255360,a[l+i]^=C[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,l=this._C,n=0;n<8;n++)A[n]=l[n];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0>>0?1:0)|0,this._b=l[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var i=a[n]+l[n],r=i&65535,c=i>>>16,h=((r*r>>>17)+r*c>>>15)+c*c,d=((i&4294901760)*i|0)+((i&65535)*i|0);m[n]=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)}(),M.RabbitLegacy})},QNag:function(k,z,o){"use strict";var M=o("2qtc"),g=o("kLXV"),O=o("+L6B"),b=o("2/Rp"),y=o("9og8"),C=o("y8nQ"),A=o("Vl3Y"),m=o("tJVT"),e=o("PpiC"),f=o("5NDa"),a=o("5rEg"),l=o("WmNS"),n=o.n(l),i=o("q1tI"),r=o.n(i),c=o("9kvl"),h=o("JFl9"),d=o.n(h),s=a.a.TextArea,u=function(E){var _=E.shixunsDetail,P=E.globalSetting,R=E.loading,x=E.dispatch,S=E.onFinish,v=S===void 0?function(){}:S,T=Object(e.a)(E,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),U=A.a.useForm(),L=Object(m.a)(U,1),N=L[0],V=function(){var D=Object(y.a)(n.a.mark(function W(F){var I,K;return n.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,x({type:"shixunsDetail/getCustomScript",payload:{id:(I=_.actionTabs.params)===null||I===void 0?void 0:I.id,compile:F.execute,excutive:F.compile}});case 2:K=he.sent,H(),K&&v(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(){x({type:"shixunsDetail/setActionTabs",payload:{}})};return r.a.createElement(g.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:_.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:H},r.a.createElement(A.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:V},r.a.createElement(A.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},r.a.createElement(s,{rows:4})),r.a.createElement(A.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},r.a.createElement(s,{rows:4})),r.a.createElement("div",{className:d.a.footerWrap},r.a.createElement(A.a.Item,null,r.a.createElement(b.a,{className:"mr5",size:"large",onClick:H},"\u53D6\u6D88"),r.a.createElement(b.a,{size:"large",type:"primary",htmlType:"submit",loading:R.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};z.a=Object(c.a)(function(w){var E=w.shixunsDetail,_=w.loading,P=w.globalSetting;return{shixunsDetail:E,globalSetting:P,loading:_}})(u)},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 M=o("q1tI"),g=o("uciX"),O=o("2W6z"),b=o.n(O),y=o("4IlW"),C=o("uK0f"),A=o.n(C);function m(be,ye){if(be===ye)return!0;if(!be||!ye)return!1;var ue=be.length;if(ye.length!==ue)return!1;for(var se=0;se0;(tt||me.isLeaf===!1)&&(Ae+=" ".concat(Oe,"-menu-item-expand"),me.loading||(Je=M.createElement("span",{className:"".concat(Oe,"-menu-item-expand-icon")},te))),le==="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 ut=null;me.loading&&(Ae+=" ".concat(Oe,"-menu-item-loading"),ut=Q||null);var ft="";return"title"in me?ft=me.title:typeof me[this.getFieldName("label")]=="string"&&(ft=me[this.getFieldName("label")]),M.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:Ae,title:ft},_e,{role:"menuitem",onMouseDown:function(_t){return _t.preventDefault()}}),me[this.getFieldName("label")],Je,ut)}},{key:"getActiveOptions",value:function(me){var re=this,ae=this.props.options,Oe=me||this.props.activeValue;return A()(ae,function(le,te){return le[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),le=1;le=0)continue;if(!Object.prototype.propertyIsEnumerable.call(be,se))continue;ue[se]=be[se]}}return ue}function x(be,ye){if(be==null)return{};var ue={},se=Object.keys(be),$,me;for(me=0;me=0)continue;ue[$]=be[$]}return ue}function S(be){return L(be)||U(be)||T(be)||v()}function v(){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 T(be,ye){if(!be)return;if(typeof be=="string")return N(be,ye);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,ye)}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,ye){(ye==null||ye>be.length)&&(ye=be.length);for(var ue=0,se=new Array(ye);ue=Q.length?0:ve):(ve-=1,ve=ve<0?Q.length-1:ve):ve=0,le[te]=Q[ve][me.getFieldName("value")]}else if(ae.keyCode===y.a.LEFT||ae.keyCode===y.a.BACKSPACE)ae.preventDefault(),le.splice(le.length-1,1);else if(ae.keyCode===y.a.RIGHT)ae.preventDefault(),Q[J]&&Q[J][me.getFieldName("children")]&&le.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}(!le||le.length===0)&&me.setPopupVisible(!1);var _e=me.getActiveOptions(le),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(se,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(me){var re=this.defaultFieldNames,ae=this.props,Oe=ae.fieldNames,le=ae.filedNames;return"filedNames"in this.props?le[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,le=Oe===void 0?[]:Oe,te=A()(ae,function(Q,J){return Q[me.getFieldName("value")]===le[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 A()(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,le=me.options,te=le===void 0?[]:le,Q=me.disabled,J=me.builtinPlacements,ve=me.popupPlacement,_e=me.children,Ae=me.dropdownRender,Je=R(me,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),tt=M.createElement("div",null),ut="";te&&te.length>0?tt=M.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})):ut=" ".concat(re,"-menus-empty");var ft=tt;return Ae&&(ft=Ae(tt)),M.createElement(g.a,Object.assign({ref:this.saveTrigger},Je,{popupPlacement:ve,builtinPlacements:J,popupTransitionName:ae,action:Q?[]:["click"],popupVisible:Q?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(re,"-menus"),popupClassName:Oe+ut,popup:ft}),M.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,le={prevProps:me};return"value"in me&&!m(Oe.value,me.value)&&(le.value=me.value||[],"loadData"in me||(le.activeValue=me.value||[])),"popupVisible"in me&&(le.popupVisible=me.popupVisible),le}}]),se}(M.Component);return be.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:_,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},be}(),Te=Se,ce=z.a=Te},S6kV:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.OFB=function(){var g=M.lib.BlockCipherMode.extend(),O=g.Encryptor=g.extend({processBlock:function(b,y){var C=this._cipher,A=C.blockSize,m=this._iv,e=this._keystream;m&&(e=this._keystream=m.slice(0),this._iv=void 0),C.encryptBlock(e,0);for(var f=0;f` ${a} `).trim():""}class A{constructor(e,f,a){this.id=e,this.definition=f,this.description=a,O.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 A)return["codicon","codicon-"+i.id];const r=f.exec(i.id);if(!r)return a(A.error);let[,c,h]=r;const d=["codicon","codicon-"+c];return h&&d.push("codicon-modifier-"+h.substr(1)),d}e.asClassNameArray=a;function l(i){return a(i).join(" ")}e.asClassName=l;function n(i){return"."+a(i).join(".")}e.asCSSSelector=n})(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"})}(A||(A={}))},"VrN/":function(k,z,o){(function(M,g){k.exports=g()})(this,function(){"use strict";var M=navigator.userAgent,g=navigator.platform,O=/gecko\/\d/i.test(M),b=/MSIE \d/.test(M),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(M),C=/Edge\/(\d+)/.exec(M),A=b||y||C,m=A&&(b?document.documentMode||6:+(C||y)[1]),e=!C&&/WebKit\//.test(M),f=e&&/Qt\/\d+\.\d+/.test(M),a=!C&&/Chrome\//.test(M),l=/Opera\//.test(M),n=/Apple Computer/.test(navigator.vendor),i=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(M),r=/PhantomJS/.test(M),c=!C&&/AppleWebKit/.test(M)&&/Mobile\/\w+/.test(M),h=/Android/.test(M),d=c||h||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(M),s=c||/Mac/.test(g),u=/\bCrOS\b/.test(M),w=/win/i.test(g),E=l&&M.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(l=!1,e=!0);var _=s&&(f||l&&(E==null||E<12.11)),P=O||A&&m>=9;function R(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var x=function(t,p){var B=t.className,j=R(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 v(t,p){return S(t).appendChild(p)}function T(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 se(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()||le.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 ut=null;function ft(t,p,B){var j;ut=null;for(var G=0;Gp)return G;ne.to==p&&(ne.from!=ne.to&&B=="before"?j=G:ut=G),ne.from==p&&(ne.from!=ne.to&&B!="before"?j=G:ut=G)}return j!=null?j:ut}var vt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",p="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function B(Be){return Be<=247?t.charAt(Be):1424<=Be&&Be<=1524?"R":1536<=Be&&Be<=1785?p.charAt(Be-1536):1774<=Be&&Be<=2220?"r":8192<=Be&&Be<=8203?"w":Be==8204?"b":"L"}var j=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,G=/[stwN]/,ne=/[LRr]/,ge=/[Lb1n]/,we=/[1n]/;function Re(Be,gt,At){this.level=Be,this.from=gt,this.to=At}return function(Be,gt){var At=gt=="ltr"?"L":"R";if(Be.length==0||gt=="ltr"&&!j.test(Be))return!1;for(var nn=Be.length,zt=[],Tn=0;Tn-1&&(j[p]=G.slice(0,ne).concat(G.slice(ne+1)))}}}function Et(t,p){var B=ht(t,p);if(!B.length)return;for(var j=Array.prototype.slice.call(arguments,2),G=0;G0}function Ye(t){t.prototype.on=function(p,B){je(this,p,B)},t.prototype.off=function(p,B){Bt(this,p,B)}}function Ce(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Le(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function We(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Ue(t){Ce(t),Le(t)}function ze(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 Ct=function(){if(A&&m<9)return!1;var t=T("div");return"draggable"in t||"dragDrop"in t}(),Wt;function Qt(t){if(Wt==null){var p=T("span","\u200B");v(t,T("span",[p,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Wt=p.offsetWidth<=1&&p.offsetHeight>2&&!(A&&m<8))}var B=Wt?T("span","\u200B"):T("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return B.setAttribute("cm-text",""),B}var Kt;function Ot(t){if(Kt!=null)return Kt;var p=v(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:Kt=j.right-B.right<3}var Fe=` 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/)},at=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},it=function(){var t=T("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Pe=null;function Qe(t){if(Pe!=null)return Pe;var p=v(t,T("span","x")),B=p.getBoundingClientRect(),j=L(p,0,1).getBoundingClientRect();return Pe=Math.abs(B.left-j.left)>1}var pt={},bt={};function Dt(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),pt[t]=p}function It(t,p){bt[t]=p}function ct(t){if(typeof t=="string"&&bt.hasOwnProperty(t))t=bt[t];else if(t&&typeof t.name=="string"&&bt.hasOwnProperty(t.name)){var p=bt[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 ct("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return ct("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Nt(t,p){p=ct(p);var B=pt[p.name];if(!B)return Nt(t,"text/plain");var j=B(t,p);if(jt.hasOwnProperty(p.name)){var G=jt[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 jt={};function on(t,p){var B=jt.hasOwnProperty(t)?jt[t]:jt[t]={};I(p,B)}function vn(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 Wn(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 Kn(t,p,B){return t.startState?t.startState(p,B):!0}var Hn=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};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.posp},Hn.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Hn.prototype.skipToEnd=function(){this.pos=this.string.length},Hn.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},Hn.prototype.backUp=function(t){this.pos-=t},Hn.prototype.column=function(){return this.lastColumnPos0?null:(ne&&p!==!1&&(this.pos+=ne[0].length),ne)}},Hn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Hn.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},Hn.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},Hn.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function fn(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?en(B,fn(t,B).text.length):q(p,fn(t,p.line).text.length)}function q(t,p){var B=t.ch;return B==null||B>p?en(t.line,p):B<0?en(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,vn(t.mode,p.state),B,p.lookAhead):new fe(t,vn(t.mode,p),B)},fe.prototype.save=function(t){var p=t!==!1?vn(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(Be,gt){return G.push(Be,gt)},ne,j);for(var ge=B.state,we=function(Be){B.baseTokens=G;var gt=t.state.overlays[Be],At=1,nn=0;B.state=!0,oa(t,p.text,gt.mode,B,function(zt,Tn){for(var Bn=At;nnzt&&G.splice(At,1,zt,G[At+1],Qn),At+=2,nn=Math.min(zt,Qn)}if(!Tn)return;if(gt.opaque)G.splice(Bn,At-Bn,zt,"overlay "+Tn),At=Bn+2;else for(;Bnt.options.maxHighlightLength&&vn(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=er(t,p,B),ge=ne>j.first&&fn(j,ne-1).stateAfter,we=ge?fe.fromSaved(j,ge,ne):new fe(j,Kn(j.mode),ne);return j.iter(ne,p,function(Re){Vn(t,Re.text,we);var Be=we.line;Re.stateAfter=Be==p-1||Be%5==0||Be>=G.viewFrom&&Bep.start)return ne}throw new Error("Mode "+t.name+" failed to advance stream.")}var un=function(t,p,B){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=B};function jr(t,p,B,j){var G=t.doc,ne=G.mode,ge;p=X(G,p);var we=fn(G,p.line),Re=Mn(t,p.line,B),Be=new Hn(we.text,t.options.tabSize,Re),gt;for(j&&(gt=[]);(j||Be.post.options.maxHighlightLength?(we=!1,ge&&Vn(t,p,j,gt.pos),gt.pos=p.length,At=null):At=ra(yn(B,gt,j.state,nn),ne),nn){var zt=nn[0].name;zt&&(At="m-"+(At?zt+" "+At:zt))}if(!we||Be!=At){for(;Rege;--we){if(we<=ne.first)return ne.first;var Re=fn(ne,we-1),Be=Re.stateAfter;if(Be&&(!B||we+(Be instanceof De?Be.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 Ba(t,p){if(t.modeFrontier=Math.min(t.modeFrontier,p),t.highlightFrontierB;j--){var G=fn(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(Be.from,we.from),nn=On(Be.to,we.to);(At<0||!ge.inclusiveLeft&&!At)&>.push({from:Be.from,to:we.from}),(nn>0||!ge.inclusiveRight&&!nn)&>.push({from:we.to,to:Be.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=fn(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(Be.to,B)>=0:On(Be.to,B)>0)||gt>=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(Be.from,j)<=0:On(Be.from,j)<0))return!0}}function an(t){for(var p;p=En(t);)t=p.find(-1,!0).line;return t}function Pn(t){for(var p;p=gn(t);)t=p.find(1,!0).line;return t}function bn(t){for(var p,B;p=gn(t);)t=p.find(1,!0).line,(B||(B=[])).push(t);return B}function kn(t,p){var B=fn(t,p),j=an(B);return B==j?p:dr(j)}function Rn(t,p){if(p>t.lastLine())return p;var B=fn(t,p),j;if(!Yn(t,B))return p;for(;j=gn(B);)B=j.find(1,!0).line;return dr(B)+1}function Yn(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 hn=function(t,p,B){this.text=t,wt(this,p),this.height=B?B(this):1};hn.prototype.lineNo=function(){return dr(this)},Ye(hn);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&&cr(t,G)}function tn(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,Ot(t.display.measure)&&(ge=_t(ne,t.doc.direction))&&(j.addToken=Ir(j.addToken,ge)),j.map=[];var we=p!=t.display.externalMeasured&&dr(ne);Ar(ne,j,Zt(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(Qt(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 Et(t,"renderLine",t,p.line,j.pre),j.pre.className&&(j.textClass=D(j.pre.className,j.textClass||"")),j}function ar(t){var p=T("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?Rr(p,t.trailingSpace):p,Re=t.cm.state.specialChars,Be=!1,gt;if(!Re.test(p))t.col+=p.length,gt=document.createTextNode(we),t.map.push(t.pos,t.pos+p.length,gt),A&&m<9&&(Be=!0),t.pos+=p.length;else{gt=document.createDocumentFragment();for(var At=0;;){Re.lastIndex=At;var nn=Re.exec(p),zt=nn?nn.index-At:p.length-At;if(zt){var Tn=document.createTextNode(we.slice(At,At+zt));A&&m<9?gt.appendChild(T("span",[Tn])):gt.appendChild(Tn),t.map.push(t.pos,t.pos+zt,Tn),t.col+=zt,t.pos+=zt}if(!nn)break;At+=zt+1;var Bn=void 0;if(nn[0]==" "){var Qn=t.cm.options.tabSize,yr=Qn-t.col%Qn;Bn=gt.appendChild(T("span",se(yr),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),t.col+=yr}else nn[0]=="\r"||nn[0]==` -`?(Bn=gt.appendChild(T("span",nn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",nn[0]),t.col+=1):(Bn=t.cm.options.specialCharPlaceholder(nn[0]),Bn.setAttribute("cm-text",nn[0]),A&&m<9?gt.appendChild(T("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||Be||ne||ge){var kr=B||"";j&&(kr+=j),G&&(kr+=G);var Er=T("span",[gt],kr,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 Rr(t,p){if(t.length>1&&!/ /.test(t))return t;for(var B=p,j="",G=0;GBe&&At.from<=Be);nn++);if(At.to>=gt)return t(B,j,G,ne,ge,we,Re);t(B,j.slice(0,At.to-Be),G,ne,null,we,Re),ne=null,j=j.slice(At.to-Be),Be=At.to}}}function Jn(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 Ar(t,p,B){var j=t.markedSpans,G=t.text,ne=0;if(!j){for(var ge=1;geRe||wa.collapsed&&ea.to==Re&&ea.from==Re)){if(ea.to!=null&&ea.to!=Re&&zt>ea.to&&(zt=ea.to,Bn=""),wa.className&&(Tn+=" "+wa.className),wa.css&&(nn=(nn?nn+";":"")+wa.css),wa.startStyle&&ea.from==Re&&(Qn+=" "+wa.startStyle),wa.endStyle&&ea.to==zt&&(Xr||(Xr=[])).push(wa.endStyle,ea.to),wa.title&&((kr||(kr={})).title=wa.title),wa.attributes)for(var Va in wa.attributes)(kr||(kr={}))[Va]=wa.attributes[Va];wa.collapsed&&(!yr||Xt(yr.marker,wa)<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,Qn,Re+ci.length==zt?Bn:"",nn,kr)}if(Ui>=zi){gt=gt.slice(zi-Re),Re=zi;break}Re=Ui,Qn=""}gt=G.slice(ne,ne=B[Be++]),At=In(B[Be++],p.cm.options)}}}function vr(t,p,B){this.line=p,this.rest=bn(p),this.size=this.rest?dr($(this.rest))-B+1:1,this.node=this.text=null,this.hidden=Yn(t,p)}function zr(t,p,B){for(var j=[],G,ne=p;ne2&&ne.push((Re.bottom+Be.top)/2-B.top)}}ne.push(B.bottom-B.top)}}function Ie(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 et(t,p){p=an(p);var B=dr(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,v(t.display.lineMeasure,G.pre),j}function $e(t,p,B,j){return Mt(t,rt(t,p),B,j)}function mt(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[Be+2],we==Re&&B==(j.insertLeft?"left":"right")&&(ge=B),B=="left"&&G==0)for(;Be&&t[Be-2]==t[Be-3]&&t[Be-1].insertLeft;)j=t[(Be-=3)+2],ge="left";if(B=="right"&&G==Re-we)for(;Be=0&&!((B=t[G]).left!=B.right);G--);return B}function dn(t,p,B,j){var G=pn(p.map,B,j),ne=G.node,ge=G.start,we=G.end,Re=G.collapse,Be;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?Be=At[j=="right"?At.length-1:0]:Be=ne.getBoundingClientRect()}if(A&&m<9&&!ge&&(!Be||!Be.left&&!Be.right)){var nn=ne.parentNode.getClientRects()[0];nn?Be={left:nn.left,right:nn.left+Mr(t.display),top:nn.top,bottom:nn.bottom}:Be=Vt}for(var zt=Be.top-p.rect.top,Tn=Be.bottom-p.rect.top,Bn=(zt+Tn)/2,Qn=p.view.measure.heights,yr=0;yr=j.text.length?(Re=j.text.length,Be="before"):Re<=0&&(Re=0,Be="after"),!we)return ge(Be=="before"?Re-1:Re,Be=="before");function gt(Tn,Bn,Qn){var yr=we[Bn],kr=yr.level==1;return ge(Qn?Tn-1:Tn,kr!=Qn)}var At=ft(we,Re,Be),nn=ut,zt=gt(Re,At,Be=="before");return nn!=null&&(zt.other=gt(Re,nn,Be!="before")),zt}function xn(t,p){var B=0;p=X(t.doc,p),t.options.lineWrapping||(B=Mr(t.display)*p.ch);var j=fn(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=en(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=Dr(j,B),ne=j.first+j.size-1;if(G>ne)return jn(j.first+j.size-1,fn(j,ne).text.length,null,1,1);p<0&&(p=0);for(var ge=fn(j,G);;){var we=Ca(t,ge,G,p,B),Re=Nn(ge,we.ch+(we.xRel>0||we.outside>0?1:0));if(!Re)return we;var Be=Re.find(1);if(Be.line==G)return Be;ge=fn(j,G=Be.line)}}function ua(t,p,B,j){j-=Wr(p);var G=p.text.length,ne=Je(function(ge){return Mt(t,B,ge-1).bottom<=j},G,0);return G=Je(function(ge){return Mt(t,B,ge).top>j},ne,G),{begin:ne,end:G}}function pr(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 Ca(t,p,B,j,G){G-=Br(p);var ne=rt(t,p),ge=Wr(p),we=0,Re=p.text.length,Be=!0,gt=_t(p,t.doc.direction);if(gt){var At=(t.options.lineWrapping?Sa:ha)(t,p,B,ne,gt,j,G);Be=At.level!=1,we=Be?At.from:At.to-1,Re=Be?At.to:At.from-1}var nn=null,zt=null,Tn=Je(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&&(nn=ia,zt=ea),!0):!1},we,Re),Bn,Qn,yr=!1;if(zt){var kr=j-zt.left=Xr.bottom?1:0}return Tn=Ae(p.text,Tn,1),jn(B,Tn,Qn,yr,j-Bn)}function ha(t,p,B,j,G,ne,ge){var we=Je(function(At){var nn=G[At],zt=nn.level!=1;return aa(zn(t,en(B,zt?nn.to:nn.from,zt?"before":"after"),"line",p,j),ne,ge,!0)},0,G.length-1),Re=G[we];if(we>0){var Be=Re.level!=1,gt=zn(t,en(B,Be?Re.from:Re.to,Be?"after":"before"),"line",p,j);aa(gt,ne,ge,!0)&>.top>ge&&(Re=G[we-1])}return Re}function Sa(t,p,B,j,G,ne,ge){var we=ua(t,p,j,ge),Re=we.begin,Be=we.end;/\s/.test(p.text.charAt(Be-1))&&Be--;for(var gt=null,At=null,nn=0;nn=Be||zt.to<=Re)continue;var Tn=zt.level!=1,Bn=Mt(t,j,Tn?Math.min(Be,zt.to)-1:Math.max(Re,zt.from)).right,Qn=BnQn)&&(gt=zt,At=Qn)}return gt||(gt=G[G.length-1]),gt.fromBe&&(gt={from:gt.from,to:Be,level:gt.level}),gt}var Tr;function br(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Tr==null){Tr=T("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Tr.appendChild(document.createTextNode("x")),Tr.appendChild(T("br"));Tr.appendChild(document.createTextNode("x"))}v(t.measure,Tr);var B=Tr.offsetHeight/50;return B>3&&(t.cachedTextHeight=B),S(t.measure),B||1}function Mr(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var p=T("span","xxxxxxxxxx"),B=T("pre",[p],"CodeMirror-line-like");v(t.measure,B);var j=p.getBoundingClientRect(),G=(j.right-j.left)/10;return G>2&&(t.cachedCharWidth=G),G||10}function tr(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 xa(t){var p=br(t.display),B=t.options.lineWrapping,j=B&&Math.max(5,t.display.scroller.clientWidth/Mr(t.display)-3);return function(G){if(Yn(t.doc,G))return 0;var ne=0;if(G.widgets)for(var ge=0;ge0&&(Be=fn(t.doc,Re.line).text).length==Re.ch){var gt=K(Be,Be.length,t.options.tabSize)-Be.length;Re=en(Re.line,Math.max(0,Math.round((ne-dt(t.display).left)/Mr(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 Be=G.externalMeasured;Be&&(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 pt={},bt={};function Dt(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),pt[t]=p}function It(t,p){bt[t]=p}function ct(t){if(typeof t=="string"&&bt.hasOwnProperty(t))t=bt[t];else if(t&&typeof t.name=="string"&&bt.hasOwnProperty(t.name)){var p=bt[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 ct("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return ct("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Nt(t,p){p=ct(p);var B=pt[p.name];if(!B)return Nt(t,"text/plain");var j=B(t,p);if(jt.hasOwnProperty(p.name)){var G=jt[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 jt={};function on(t,p){var B=jt.hasOwnProperty(t)?jt[t]:jt[t]={};I(p,B)}function vn(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 Wn(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 Kn(t,p,B){return t.startState?t.startState(p,B):!0}var Hn=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};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.posp},Hn.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Hn.prototype.skipToEnd=function(){this.pos=this.string.length},Hn.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},Hn.prototype.backUp=function(t){this.pos-=t},Hn.prototype.column=function(){return this.lastColumnPos0?null:(ne&&p!==!1&&(this.pos+=ne[0].length),ne)}},Hn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Hn.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},Hn.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},Hn.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function fn(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?en(B,fn(t,B).text.length):q(p,fn(t,p.line).text.length)}function q(t,p){var B=t.ch;return B==null||B>p?en(t.line,p):B<0?en(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,vn(t.mode,p.state),B,p.lookAhead):new fe(t,vn(t.mode,p),B)},fe.prototype.save=function(t){var p=t!==!1?vn(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(Be,gt){return G.push(Be,gt)},ne,j);for(var ge=B.state,we=function(Be){B.baseTokens=G;var gt=t.state.overlays[Be],At=1,nn=0;B.state=!0,oa(t,p.text,gt.mode,B,function(zt,Tn){for(var Bn=At;nnzt&&G.splice(At,1,zt,G[At+1],Qn),At+=2,nn=Math.min(zt,Qn)}if(!Tn)return;if(gt.opaque)G.splice(Bn,At-Bn,zt,"overlay "+Tn),At=Bn+2;else for(;Bnt.options.maxHighlightLength&&vn(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=er(t,p,B),ge=ne>j.first&&fn(j,ne-1).stateAfter,we=ge?fe.fromSaved(j,ge,ne):new fe(j,Kn(j.mode),ne);return j.iter(ne,p,function(Re){Vn(t,Re.text,we);var Be=we.line;Re.stateAfter=Be==p-1||Be%5==0||Be>=G.viewFrom&&Bep.start)return ne}throw new Error("Mode "+t.name+" failed to advance stream.")}var un=function(t,p,B){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=B};function jr(t,p,B,j){var G=t.doc,ne=G.mode,ge;p=X(G,p);var we=fn(G,p.line),Re=Mn(t,p.line,B),Be=new Hn(we.text,t.options.tabSize,Re),gt;for(j&&(gt=[]);(j||Be.post.options.maxHighlightLength?(we=!1,ge&&Vn(t,p,j,gt.pos),gt.pos=p.length,At=null):At=aa(En(B,gt,j.state,nn),ne),nn){var zt=nn[0].name;zt&&(At="m-"+(At?zt+" "+At:zt))}if(!we||Be!=At){for(;Rege;--we){if(we<=ne.first)return ne.first;var Re=fn(ne,we-1),Be=Re.stateAfter;if(Be&&(!B||we+(Be instanceof De?Be.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 Ba(t,p){if(t.modeFrontier=Math.min(t.modeFrontier,p),t.highlightFrontierB;j--){var G=fn(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(Be.from,we.from),nn=On(Be.to,we.to);(At<0||!ge.inclusiveLeft&&!At)&>.push({from:Be.from,to:we.from}),(nn>0||!ge.inclusiveRight&&!nn)&>.push({from:we.to,to:Be.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=fn(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(Be.to,B)>=0:On(Be.to,B)>0)||gt>=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(Be.from,j)<=0:On(Be.from,j)<0))return!0}}function an(t){for(var p;p=xn(t);)t=p.find(-1,!0).line;return t}function Pn(t){for(var p;p=gn(t);)t=p.find(1,!0).line;return t}function yn(t){for(var p,B;p=gn(t);)t=p.find(1,!0).line,(B||(B=[])).push(t);return B}function kn(t,p){var B=fn(t,p),j=an(B);return B==j?p:dr(j)}function Rn(t,p){if(p>t.lastLine())return p;var B=fn(t,p),j;if(!Yn(t,B))return p;for(;j=gn(B);)B=j.find(1,!0).line;return dr(B)+1}function Yn(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 hn=function(t,p,B){this.text=t,wt(this,p),this.height=B?B(this):1};hn.prototype.lineNo=function(){return dr(this)},Ye(hn);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&&cr(t,G)}function tn(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,Ot(t.display.measure)&&(ge=_t(ne,t.doc.direction))&&(j.addToken=Ir(j.addToken,ge)),j.map=[];var we=p!=t.display.externalMeasured&&dr(ne);Ar(ne,j,Zt(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(Qt(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 Et(t,"renderLine",t,p.line,j.pre),j.pre.className&&(j.textClass=D(j.pre.className,j.textClass||"")),j}function ar(t){var p=T("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?Rr(p,t.trailingSpace):p,Re=t.cm.state.specialChars,Be=!1,gt;if(!Re.test(p))t.col+=p.length,gt=document.createTextNode(we),t.map.push(t.pos,t.pos+p.length,gt),A&&m<9&&(Be=!0),t.pos+=p.length;else{gt=document.createDocumentFragment();for(var At=0;;){Re.lastIndex=At;var nn=Re.exec(p),zt=nn?nn.index-At:p.length-At;if(zt){var Tn=document.createTextNode(we.slice(At,At+zt));A&&m<9?gt.appendChild(T("span",[Tn])):gt.appendChild(Tn),t.map.push(t.pos,t.pos+zt,Tn),t.col+=zt,t.pos+=zt}if(!nn)break;At+=zt+1;var Bn=void 0;if(nn[0]==" "){var Qn=t.cm.options.tabSize,yr=Qn-t.col%Qn;Bn=gt.appendChild(T("span",se(yr),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),t.col+=yr}else nn[0]=="\r"||nn[0]==` +`?(Bn=gt.appendChild(T("span",nn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",nn[0]),t.col+=1):(Bn=t.cm.options.specialCharPlaceholder(nn[0]),Bn.setAttribute("cm-text",nn[0]),A&&m<9?gt.appendChild(T("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||Be||ne||ge){var kr=B||"";j&&(kr+=j),G&&(kr+=G);var Er=T("span",[gt],kr,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 Rr(t,p){if(t.length>1&&!/ /.test(t))return t;for(var B=p,j="",G=0;GBe&&At.from<=Be);nn++);if(At.to>=gt)return t(B,j,G,ne,ge,we,Re);t(B,j.slice(0,At.to-Be),G,ne,null,we,Re),ne=null,j=j.slice(At.to-Be),Be=At.to}}}function Jn(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 Ar(t,p,B){var j=t.markedSpans,G=t.text,ne=0;if(!j){for(var ge=1;geRe||wa.collapsed&&ea.to==Re&&ea.from==Re)){if(ea.to!=null&&ea.to!=Re&&zt>ea.to&&(zt=ea.to,Bn=""),wa.className&&(Tn+=" "+wa.className),wa.css&&(nn=(nn?nn+";":"")+wa.css),wa.startStyle&&ea.from==Re&&(Qn+=" "+wa.startStyle),wa.endStyle&&ea.to==zt&&(Xr||(Xr=[])).push(wa.endStyle,ea.to),wa.title&&((kr||(kr={})).title=wa.title),wa.attributes)for(var Va in wa.attributes)(kr||(kr={}))[Va]=wa.attributes[Va];wa.collapsed&&(!yr||Xt(yr.marker,wa)<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,Qn,Re+ci.length==zt?Bn:"",nn,kr)}if(Ui>=zi){gt=gt.slice(zi-Re),Re=zi;break}Re=Ui,Qn=""}gt=G.slice(ne,ne=B[Be++]),At=In(B[Be++],p.cm.options)}}}function vr(t,p,B){this.line=p,this.rest=yn(p),this.size=this.rest?dr($(this.rest))-B+1:1,this.node=this.text=null,this.hidden=Yn(t,p)}function zr(t,p,B){for(var j=[],G,ne=p;ne2&&ne.push((Re.bottom+Be.top)/2-B.top)}}ne.push(B.bottom-B.top)}}function Ie(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 et(t,p){p=an(p);var B=dr(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,v(t.display.lineMeasure,G.pre),j}function $e(t,p,B,j){return Mt(t,rt(t,p),B,j)}function mt(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[Be+2],we==Re&&B==(j.insertLeft?"left":"right")&&(ge=B),B=="left"&&G==0)for(;Be&&t[Be-2]==t[Be-3]&&t[Be-1].insertLeft;)j=t[(Be-=3)+2],ge="left";if(B=="right"&&G==Re-we)for(;Be=0&&!((B=t[G]).left!=B.right);G--);return B}function dn(t,p,B,j){var G=pn(p.map,B,j),ne=G.node,ge=G.start,we=G.end,Re=G.collapse,Be;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?Be=At[j=="right"?At.length-1:0]:Be=ne.getBoundingClientRect()}if(A&&m<9&&!ge&&(!Be||!Be.left&&!Be.right)){var nn=ne.parentNode.getClientRects()[0];nn?Be={left:nn.left,right:nn.left+Mr(t.display),top:nn.top,bottom:nn.bottom}:Be=Vt}for(var zt=Be.top-p.rect.top,Tn=Be.bottom-p.rect.top,Bn=(zt+Tn)/2,Qn=p.view.measure.heights,yr=0;yr=j.text.length?(Re=j.text.length,Be="before"):Re<=0&&(Re=0,Be="after"),!we)return ge(Be=="before"?Re-1:Re,Be=="before");function gt(Tn,Bn,Qn){var yr=we[Bn],kr=yr.level==1;return ge(Qn?Tn-1:Tn,kr!=Qn)}var At=ft(we,Re,Be),nn=ut,zt=gt(Re,At,Be=="before");return nn!=null&&(zt.other=gt(Re,nn,Be!="before")),zt}function bn(t,p){var B=0;p=X(t.doc,p),t.options.lineWrapping||(B=Mr(t.display)*p.ch);var j=fn(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=en(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=Dr(j,B),ne=j.first+j.size-1;if(G>ne)return jn(j.first+j.size-1,fn(j,ne).text.length,null,1,1);p<0&&(p=0);for(var ge=fn(j,G);;){var we=Ca(t,ge,G,p,B),Re=Nn(ge,we.ch+(we.xRel>0||we.outside>0?1:0));if(!Re)return we;var Be=Re.find(1);if(Be.line==G)return Be;ge=fn(j,G=Be.line)}}function ua(t,p,B,j){j-=Wr(p);var G=p.text.length,ne=Je(function(ge){return Mt(t,B,ge-1).bottom<=j},G,0);return G=Je(function(ge){return Mt(t,B,ge).top>j},ne,G),{begin:ne,end:G}}function pr(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 na(t,p,B,j){return t.bottom<=B?!1:t.top>B?!0:(j?t.left:t.right)>p}function Ca(t,p,B,j,G){G-=Br(p);var ne=rt(t,p),ge=Wr(p),we=0,Re=p.text.length,Be=!0,gt=_t(p,t.doc.direction);if(gt){var At=(t.options.lineWrapping?Sa:ha)(t,p,B,ne,gt,j,G);Be=At.level!=1,we=Be?At.from:At.to-1,Re=Be?At.to:At.from-1}var nn=null,zt=null,Tn=Je(function(ia){var ea=Mt(t,ne,ia);return ea.top+=ge,ea.bottom+=ge,na(ea,j,G,!1)?(ea.top<=G&&ea.left<=j&&(nn=ia,zt=ea),!0):!1},we,Re),Bn,Qn,yr=!1;if(zt){var kr=j-zt.left=Xr.bottom?1:0}return Tn=Ae(p.text,Tn,1),jn(B,Tn,Qn,yr,j-Bn)}function ha(t,p,B,j,G,ne,ge){var we=Je(function(At){var nn=G[At],zt=nn.level!=1;return na(Gn(t,en(B,zt?nn.to:nn.from,zt?"before":"after"),"line",p,j),ne,ge,!0)},0,G.length-1),Re=G[we];if(we>0){var Be=Re.level!=1,gt=Gn(t,en(B,Be?Re.from:Re.to,Be?"after":"before"),"line",p,j);na(gt,ne,ge,!0)&>.top>ge&&(Re=G[we-1])}return Re}function Sa(t,p,B,j,G,ne,ge){var we=ua(t,p,j,ge),Re=we.begin,Be=we.end;/\s/.test(p.text.charAt(Be-1))&&Be--;for(var gt=null,At=null,nn=0;nn=Be||zt.to<=Re)continue;var Tn=zt.level!=1,Bn=Mt(t,j,Tn?Math.min(Be,zt.to)-1:Math.max(Re,zt.from)).right,Qn=BnQn)&&(gt=zt,At=Qn)}return gt||(gt=G[G.length-1]),gt.fromBe&&(gt={from:gt.from,to:Be,level:gt.level}),gt}var Tr;function br(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Tr==null){Tr=T("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Tr.appendChild(document.createTextNode("x")),Tr.appendChild(T("br"));Tr.appendChild(document.createTextNode("x"))}v(t.measure,Tr);var B=Tr.offsetHeight/50;return B>3&&(t.cachedTextHeight=B),S(t.measure),B||1}function Mr(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var p=T("span","xxxxxxxxxx"),B=T("pre",[p],"CodeMirror-line-like");v(t.measure,B);var j=p.getBoundingClientRect(),G=(j.right-j.left)/10;return G>2&&(t.cachedCharWidth=G),G||10}function tr(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 xa(t){var p=br(t.display),B=t.options.lineWrapping,j=B&&Math.max(5,t.display.scroller.clientWidth/Mr(t.display)-3);return function(G){if(Yn(t.doc,G))return 0;var ne=0;if(G.widgets)for(var ge=0;ge0&&(Be=fn(t.doc,Re.line).text).length==Re.ch){var gt=K(Be,Be.length,t.options.tabSize)-Be.length;Re=en(Re.line,Math.max(0,Math.round((ne-dt(t.display).left)/Mr(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 Be=G.externalMeasured;Be&&(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||(Et(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&&(Et(t,"blur",t,p),t.state.focused=!1,x(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)&&(cr(G.line,ge),mi(G.line),G.rest))for(var At=0;Att.display.sizerWidth){var nn=Math.ceil(we/Mr(t.display));nn>t.display.maxLineLength&&(t.display.maxLineLength=nn,t.display.maxLine=G.line,t.display.maxLineChanged=!0)}}}function mi(t){if(t.widgets)for(var p=0;p=ge&&(ne=Dr(p,Br(fn(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&&!r){var ne=T("div","\u200B",null,`position: absolute; top: `+(p.top-B.viewOffset-_a(t.display))+`px; height: `+(p.bottom-p.top+yt(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?en(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p,B=p.sticky=="before"?en(p.line,p.ch+1,"before"):p);for(var ne=0;ne<5;ne++){var ge=!1,we=zn(t,p),Re=!B||B==p?we:zn(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 Be=Vi(t,G),gt=t.doc.scrollTop,At=t.doc.scrollLeft;if(Be.scrollTop!=null&&(Ji(t,Be.scrollTop),Math.abs(t.doc.scrollTop-gt)>1&&(ge=!0)),Be.scrollLeft!=null&&(ei(t,Be.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,(Be?we:p.bottom)-ne);gt!=G&&(ge.scrollTop=gt)}var At=t.options.fixedGutter?0:B.gutters.offsetWidth,nn=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+nn-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=xn(t,p.from),j=xn(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;O||fo(t,{top:p}),Qi(t,p,!0),O&&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+yt(t)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:B}}var Di=function(t,p,B){this.cm=B;var j=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),G=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");j.tabIndex=G.tabIndex=-1,t(j),t(G),je(j,"scroll",function(){j.clientHeight&&p(j.scrollTop,"vertical")}),je(G,"scroll",function(){G.clientWidth&&p(G.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,A&&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&&x(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),je(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=$e(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+yt(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?vn(p.mode,j.state):null,Re=ot(t,ne,j,!0);we&&(j.state=we),ne.styles=Re.styles;var Be=ne.styleClasses,gt=Re.classes;gt?ne.styleClasses=gt:Be&&(ne.styleClasses=null);for(var At=!ge||ge.length!=ne.styles.length||Be!=gt&&(!Be||!gt||Be.bgClass!=gt.bgClass||Be.textClass!=gt.textClass),nn=0;!At&&nnB)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=tr(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(fn(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 Be=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(Be),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);La(t),Ri(t,G),Da(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);La(t),Ri(t,j),Da(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,Be=j.viewFrom,gt=0;gt-1&&(zt=!1),$n(t,At,Be,B)),zt&&(S(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(sn(t.options,Be)))),ge=At.node.nextSibling}Be+=At.size}for(;ge;)ge=we(ge)}function lo(t){var p=t.gutters.offsetWidth;t.sizer.style.marginLeft=p+"px"}function Da(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+yt(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 Be=p.target,gt=ne.view;Be!=ge;Be=Be.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 fr(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(nn,zt){return On(nn.from(),zt.from())}),B=he(p,G);for(var ne=1;ne0:Re>=0){var Be=fr(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:Be,At?Be: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?en(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),en(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||Et(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]=Be[At],delete Be[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&&(Et(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),nn=void 0;if((j<0?gt:Be)&&(At=il(t,At,-j,At&&At.line==p.line?ne:null)),At&&At.line==p.line&&(nn=On(At,B))&&(j<0?nn<0:nn>0))return Go(t,At,p,j,G)}var zt=Re.find(j<0?-1:1);return(j<0?Be: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,en(t.first,0))}function il(t,p,B,j){return B<0&&p.ch==0?p.line>t.first?X(t,en(p.line-1)):null:B>0&&p.ch==(j||fn(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,Be=0;Be=0;--zt){var Tn=nn(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(en(G.anchor.line+p,G.anchor.ch),en(G.head.line+p,G.head.ch))}),t.sel.primIndex),t.cm){Na(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:en(ne,fn(t,ne).text.length),text:[p.text[0]],origin:p.origin}),p.removed=lr(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,en(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=dr(an(fn(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&&qe(t),go(j,p,B,xa(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)),Ba(j,ne.line),ai(t,400);var Be=p.text.length-(ge.line-ne.line)-1;p.full?Na(t):ne.line==ge.line&&p.text.length==1&&!Ki(t.doc,p)?ka(t,ne.line,"text"):Na(t,ne.line,ge.line+1,Be);var gt=He(t,"changes"),At=He(t,"change");if(At||gt){var nn={from:ne,to:ge,text:p.text,removed:p.removed,origin:p.origin};At&&Jt(t,"change",t,nn),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(nn)}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=Be,t.display.maxLineLength=gt,t.display.maxLineChanged=!0)}j!=null&&t&&this.collapsed&&Na(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");Ta()}ne.addToHistory&&Qs(t,{from:p,to:B,origin:"markText"},t.sel,NaN);var we=p.line,Re=t.cm,Be;if(t.iter(we,B.line+1,function(At){Re&&ne.collapsed&&!Re.options.lineWrapping&&an(At)==Re.display.maxLine&&(Be=!0),ne.collapsed&&we!=p.line&&cr(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){Yn(t,At)&&cr(At,0)}),ne.clearOnEnter&&je(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(Be&&(Re.curOp.updateMaxLine=!0),ne.collapsed)Na(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++)ka(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,en(B,p))},indexFromPos:function(t){t=X(this,t);var p=t.ch;if(t.linep&&(p=t.from),t.to!=null&&t.to1&&(ge=!0)),Be.scrollLeft!=null&&(ei(t,Be.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,(Be?we:p.bottom)-ne);gt!=G&&(ge.scrollTop=gt)}var At=t.options.fixedGutter?0:B.gutters.offsetWidth,nn=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+nn-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=bn(t,p.from),j=bn(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;O||fo(t,{top:p}),Qi(t,p,!0),O&&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+yt(t)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:B}}var Di=function(t,p,B){this.cm=B;var j=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),G=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");j.tabIndex=G.tabIndex=-1,t(j),t(G),je(j,"scroll",function(){j.clientHeight&&p(j.scrollTop,"vertical")}),je(G,"scroll",function(){G.clientWidth&&p(G.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,A&&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&&x(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),je(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=$e(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+yt(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?vn(p.mode,j.state):null,Re=ot(t,ne,j,!0);we&&(j.state=we),ne.styles=Re.styles;var Be=ne.styleClasses,gt=Re.classes;gt?ne.styleClasses=gt:Be&&(ne.styleClasses=null);for(var At=!ge||ge.length!=ne.styles.length||Be!=gt&&(!Be||!gt||Be.bgClass!=gt.bgClass||Be.textClass!=gt.textClass),nn=0;!At&&nnB)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=tr(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(fn(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 Be=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(Be),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);La(t),Ri(t,G),Da(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);La(t),Ri(t,j),Da(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,Be=j.viewFrom,gt=0;gt-1&&(zt=!1),$n(t,At,Be,B)),zt&&(S(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(sn(t.options,Be)))),ge=At.node.nextSibling}Be+=At.size}for(;ge;)ge=we(ge)}function lo(t){var p=t.gutters.offsetWidth;t.sizer.style.marginLeft=p+"px"}function Da(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+yt(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 Be=p.target,gt=ne.view;Be!=ge;Be=Be.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 fr(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(nn,zt){return On(nn.from(),zt.from())}),B=he(p,G);for(var ne=1;ne0:Re>=0){var Be=fr(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:Be,At?Be: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?en(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),en(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||Et(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]=Be[At],delete Be[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&&(Et(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),nn=void 0;if((j<0?gt:Be)&&(At=il(t,At,-j,At&&At.line==p.line?ne:null)),At&&At.line==p.line&&(nn=On(At,B))&&(j<0?nn<0:nn>0))return Go(t,At,p,j,G)}var zt=Re.find(j<0?-1:1);return(j<0?Be: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,en(t.first,0))}function il(t,p,B,j){return B<0&&p.ch==0?p.line>t.first?X(t,en(p.line-1)):null:B>0&&p.ch==(j||fn(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,Be=0;Be=0;--zt){var Tn=nn(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(en(G.anchor.line+p,G.anchor.ch),en(G.head.line+p,G.head.ch))}),t.sel.primIndex),t.cm){Na(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:en(ne,fn(t,ne).text.length),text:[p.text[0]],origin:p.origin}),p.removed=lr(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,en(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=dr(an(fn(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&&qe(t),go(j,p,B,xa(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)),Ba(j,ne.line),ai(t,400);var Be=p.text.length-(ge.line-ne.line)-1;p.full?Na(t):ne.line==ge.line&&p.text.length==1&&!Ki(t.doc,p)?ka(t,ne.line,"text"):Na(t,ne.line,ge.line+1,Be);var gt=He(t,"changes"),At=He(t,"change");if(At||gt){var nn={from:ne,to:ge,text:p.text,removed:p.removed,origin:p.origin};At&&Jt(t,"change",t,nn),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(nn)}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=Be,t.display.maxLineLength=gt,t.display.maxLineChanged=!0)}j!=null&&t&&this.collapsed&&Na(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");Ta()}ne.addToHistory&&Qs(t,{from:p,to:B,origin:"markText"},t.sel,NaN);var we=p.line,Re=t.cm,Be;if(t.iter(we,B.line+1,function(At){Re&&ne.collapsed&&!Re.options.lineWrapping&&an(At)==Re.display.maxLine&&(Be=!0),ne.collapsed&&we!=p.line&&cr(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){Yn(t,At)&&cr(At,0)}),ne.clearOnEnter&&je(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(Be&&(Re.curOp.updateMaxLine=!0),ne.collapsed)Na(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++)ka(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,en(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 nn=0;nn=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 en(p.line,j,B<0?"after":"before")}function Bs(t,p,B,j,G){if(t){p.doc.direction=="rtl"&&(G=-G);var ne=_t(B,p.doc.direction);if(ne){var ge=G<0?$(ne):ne[0],we=G<0==(ge.level==1),Re=we?"after":"before",Be;if(ge.level>0||p.doc.direction=="rtl"){var gt=rt(p,B);Be=G<0?B.text.length-1:0;var At=Mt(p,gt,Be).top;Be=Je(function(nn){return Mt(p,gt,nn).top==At},G<0==(ge.level==1)?ge.from:ge.to-1,Be),Re=="before"&&(Be=Us(B,Be,1))}else Be=G<0?ge.to:ge.from;return new en(j,Be,Re)}}return new en(j,G<0?B.text.length:0,G<0?"before":"after")}function Fs(t,p,B,j){var G=_t(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=ft(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&&nn>=gt.begin)){var zt=At?"before":"after";return new en(B.line,nn,zt)}}var Tn=function(yr,kr,Er){for(var Xr=function(Va,vi){return vi?new en(B.line,we(Va,1),"before"):new en(B.line,Va,"after")};yr>=0&&yr0==(ia.level!=1),wa=ea?Er.begin:we(Er.end,-1);if(ia.from<=wa&&wa0?gt.end:we(gt.begin,-1);return Qn!=null&&!(j>0&&Qn==p.text.length)&&(Bn=Tn(j>0?0:G.length-1,j,Be(Qn)),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=fn(t.doc,p.head.line).text.length;return p.head.ch==B&&p.head.line0)G=new en(G.line,G.ch+1),t.replaceRange(ne.charAt(G.ch-1)+ne.charAt(G.ch-2),en(G.line,G.ch-2),G,"+transpose");else if(G.line>t.doc.first){var ge=fn(t.doc,G.line-1).text;ge&&(G=new en(G.line,1),t.replaceRange(ne.charAt(0)+t.doc.lineSeparator()+ge.charAt(ge.length-1),en(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,Oa(B,t)){e||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(Xs(p,t))return;var j=Aa(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):ze(t)==B.scroller&&Ce(t):G==2?(j&&_s(p.doc,j),setTimeout(function(){return B.input.focus()},20)):G==3&&(P?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=u?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){A?setTimeout(F(to,t),0):t.curOp.focus=V();var G=Jl(t,B,j),ne=t.doc.sel,ge;t.options.dragDrop&&Ct&&!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(Be){e&&(G.scroller.draggable=!1),t.state.draggingText=!1,Bt(G.wrapper.ownerDocument,"mouseup",ge),Bt(G.wrapper.ownerDocument,"mousemove",we),Bt(G.scroller,"dragstart",Re),Bt(G.scroller,"drop",ge),ne||(Ce(Be),j.addNew||_s(t.doc,B,null,null,j.extend),e&&!n||A&&m==9?setTimeout(function(){G.wrapper.ownerDocument.body.focus({preventScroll:!0}),G.input.focus()},20):G.input.focus())}),we=function(Be){ne=ne||Math.abs(p.clientX-Be.clientX)+Math.abs(p.clientY-Be.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(),je(G.wrapper.ownerDocument,"mouseup",ge),je(G.wrapper.ownerDocument,"mousemove",we),je(G.scroller,"dragstart",Re),je(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(en(p.line,0),X(t.doc,en(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,Be=Re.ranges;if(j.addNew&&!j.extend?(we=ne.sel.contains(B),we>-1?ge=Be[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=Aa(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=Be.length,gi(ne,sa(t,Be.concat([ge]),we),{scroll:!1,origin:"*mouse"})):Be.length>1&&Be[we].empty()&&j.unit=="char"&&!j.extend?(gi(ne,sa(t,Be.slice(0,we).concat(Be.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 nn(Er){if(On(At,Er)==0)return;if(At=Er,j.unit=="rectangle"){for(var Xr=[],ia=t.options.tabSize,ea=K(fn(ne,B.line).text,B.ch,ia),wa=K(fn(ne,Er.line).text,Er.ch,ia),Va=Math.min(ea,wa),vi=Math.max(ea,wa),ti=Math.min(B.line,Er.line),zi=Math.min(t.lastLine(),Math.max(B.line,Er.line));ti<=zi;ti++){var Ui=fn(ne,ti).text,ci=ye(Ui,Va,ia);Va==vi?Xr.push(new Pa(en(ti,ci),en(ti,ci))):Ui.length>ci&&Xr.push(new Pa(en(ti,ci),en(ti,ye(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=fr(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=Aa(t,Er,!0,j.unit=="rectangle");if(!ia)return;if(On(ia,At)!=0){t.curOp.focus=V(),nn(ia);var ea=uo(G,ne);(ia.line>=ea.to||ia.linezt.bottom?20:0;wa&&setTimeout(Ha(t,function(){if(Tn!=Xr)return;G.scroller.scrollTop+=wa,Bn(Er)}),50)}}function Qn(Er){t.state.selectingText=!1,Tn=Infinity,Er&&(Ce(Er),G.input.focus()),Bt(G.wrapper.ownerDocument,"mousemove",yr),Bt(G.wrapper.ownerDocument,"mouseup",kr),ne.history.lastSelOrigin=null}var yr=Ha(t,function(Er){Er.buttons===0||!st(Er)?Qn(Er):Bn(Er)}),kr=Ha(t,Qn);t.state.selectingText=kr,je(G.wrapper.ownerDocument,"mousemove",yr),je(G.wrapper.ownerDocument,"mouseup",kr)}function $l(t,p){var B=p.anchor,j=p.head,G=fn(t.doc,B.line);if(On(B,j)==0&&B.sticky==j.sticky)return p;var ne=_t(G);if(!ne)return p;var ge=ft(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 Be;if(j.line!=B.line)Be=(j.line-B.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var gt=ft(ne,j.ch,j.sticky),At=gt-ge||(j.ch-B.ch)*(we.level==1?-1:1);gt==Re-1||gt==Re?Be=At<0:Be=At>0}var nn=ne[Re+(Be?-1:0)],zt=Be==(nn.level==1),Tn=zt?nn.from:nn.to,Bn=zt?"after":"before";return B.ch==Tn&&B.sticky==Bn?p:new Pa(new en(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(nn){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 We(p);ne-=we.top-ge.viewOffset;for(var Re=0;Re=G){var gt=Dr(t.doc,ne),At=t.display.gutterSpecs[Re];return Et(t,B,t,gt,At.className,p),We(p)}}}function Xs(t,p){return Tl(t,p,"gutterClick",!0)}function Ol(t,p){if(Oa(t.display,p)||Al(t,p))return;if(Pt(t,p,"contextmenu"))return;P||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-"),Ur(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,Be){Be!=$o&&ne(we,Re,Be)}: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),Ur(j),Na(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 Be=0;;){var gt=Re.text.indexOf(G,Be);if(gt==-1)break;Be=gt+G.length,ne.push(en(ge,gt))}ge++});for(var we=ne.length-1;we>=0;we--)Xo(j.doc,G,ne[we],en(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",ar,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,La,!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,La,!0),B("singleCursorHeightPerLine",!0,La,!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?je:Bt;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):(x(t.display.wrapper,"CodeMirror-wrap"),Yt(t)),ba(t),Na(t),Ur(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(),A&&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}je(p.scroller,"touchstart",function(Re){if(!Pt(t,Re)&&!ne(Re)&&!Xs(t,Re)){p.input.ensurePolled(),clearTimeout(B);var Be=+new Date;p.activeTouch={start:Be,moved:!1,prev:Be-j.end<=300?j:null},Re.touches.length==1&&(p.activeTouch.left=Re.touches[0].pageX,p.activeTouch.top=Re.touches[0].pageY)}}),je(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),je(p.scroller,"touchend",function(Re){var Be=p.activeTouch;if(Be&&!Oa(p,Re)&&Be.left!=null&&!Be.moved&&new Date-Be.start<300){var gt=t.coordsChar(p.activeTouch,"page"),At;!Be.prev||ge(Be,Be.prev)?At=new Pa(gt,gt):!Be.prev.prev||ge(Be,Be.prev.prev)?At=t.findWordAt(gt):At=new Pa(en(gt.line,0),X(t.doc,en(gt.line+1,0))),t.setSelection(At.anchor,At.head),t.focus(),Ce(Re)}G()}),je(p.scroller,"touchcancel",G),je(p.scroller,"scroll",function(){p.scroller.clientHeight&&(Ji(t,p.scroller.scrollTop),ei(t,p.scroller.scrollLeft,!0),Et(t,"scroll",t))}),je(p.scroller,"mousewheel",function(Re){return mo(t,Re)}),je(p.scroller,"DOMMouseScroll",function(Re){return mo(t,Re)}),je(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(Re){Pt(t,Re)||Ue(Re)},over:function(Re){Pt(t,Re)||(Fl(t,Re),Ue(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();je(we,"keyup",function(Re){return Cl.call(t,Re)}),je(we,"keydown",Ha(t,xl)),je(we,"keypress",Ha(t,Sl)),je(we,"focus",function(Re){return Ii(t,Re)}),je(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=fn(G,p),Re=K(we.text,null,ge);we.stateAfter&&(we.stateAfter=null);var Be=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(Be.length),we.text),gt==Se||gt>150)){if(!j)return;B="prev"}B=="prev"?p>G.first?gt=K(fn(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="",nn=0;if(t.options.indentWithTabs)for(var zt=Math.floor(gt/ge);zt;--zt)nn+=ge,At+=" ";if(nnge,Re=Fe(p),Be=null;if(we&&j.ranges.length>1)if(ie&&ie.text.join(` `)==p){if(j.ranges.length%ie.text.length==0){Be=[];for(var gt=0;gt=0;nn--){var zt=j.ranges[nn],Tn=zt.from(),Bn=zt.to();zt.empty()&&(B&&B>0?Tn=en(Tn.line,Tn.ch-B):t.state.overwrite&&!we?Bn=en(Bn.line,Math.min(fn(ne,Bn.line).text.length,Bn.ch+$(Re).length)):we&&ie&&ie.lineWise&&ie.text.join(` `)==Re.join(` -`)&&(Tn=Bn=en(Tn.line,0)));var Qn={from:Tn,to:Bn,text:Be?Be[nn%Be.length]:Re,origin:G||(we?"paste":t.state.cutIncoming>ge?"cut":"+input")};zo(t.doc,Qn),Jt(t,"inputRead",t,Qn)}p&&!we&&Ke(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 Ke(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(fn(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 Ge(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(),Be=we.to(),gt=Math.max(ne,Re.line);ne=Math.min(this.lastLine(),Be.line-(Be.ch?0:1))+1;for(var At=gt;At0&&Ao(this.doc,ge,new Pa(Re,nn[ge].to()),Te)}}}),getTokenAt:function(j,G){return jr(this,j,G)},getLineTokens:function(j,G){return jr(this,en(j),G,!0)},getTokenTypeAt:function(j){j=X(this.doc,j);var G=Zt(this,fn(this.doc,j.line)),ne=0,ge=(G.length-1)/2,we=j.ch,Re;if(we==0)Re=G[2];else for(;;){var Be=ne+ge>>1;if((Be?G[Be*2-1]:0)>=we)ge=Be;else if(G[Be*2+1]Re&&(j=Re,ge=!0),we=fn(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 Mr(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=zn(this,X(this.doc,j));var Be=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")Be=j.top;else if(ge=="above"||ge=="near"){var At=Math.max(Re.wrapper.clientHeight,this.doc.height),nn=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(ge=="above"||j.bottom+G.offsetHeight>At)&&j.top>G.offsetHeight?Be=j.top-G.offsetHeight:j.bottom+G.offsetHeight<=At&&(Be=j.bottom),gt+G.offsetWidth>nn&&(gt=nn-G.offsetWidth)}G.style.top=Be+"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:Be,right:gt+G.offsetWidth,bottom:Be+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){Ke(this,j)}),findPosH:function(j,G,ne,ge){var we=1;G<0&&(we=-1,G=-G);for(var Re=X(this.doc,j),Be=0;Be0&>(ne.charAt(ge-1));)--ge;for(;we.5||this.options.lineWrapping)&&ba(this),Et(this,"refresh",this)}),swapDoc:ri(function(j){var G=this.doc;return G.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,j),Ur(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}},Ye(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=fn(t,p.line),Re=G&&t.direction=="rtl"?-B:B;function Be(){var kr=p.line+Re;return kr=t.first+t.size?!1:(p=new en(kr,p.ch,p.sticky),we=fn(t,kr))}function gt(kr){var Er;if(j=="codepoint"){var Xr=we.text.charCodeAt(p.ch+(j>0?0:-1));isNaN(Xr)?Er=null:Er=new en(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(!kr&&Be())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,nn=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=en(Tn.line,0)));var Qn={from:Tn,to:Bn,text:Be?Be[nn%Be.length]:Re,origin:G||(we?"paste":t.state.cutIncoming>ge?"cut":"+input")};zo(t.doc,Qn),Jt(t,"inputRead",t,Qn)}p&&!we&&Ke(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 Ke(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(fn(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 Ge(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(),Be=we.to(),gt=Math.max(ne,Re.line);ne=Math.min(this.lastLine(),Be.line-(Be.ch?0:1))+1;for(var At=gt;At0&&Ao(this.doc,ge,new Pa(Re,nn[ge].to()),Te)}}}),getTokenAt:function(j,G){return jr(this,j,G)},getLineTokens:function(j,G){return jr(this,en(j),G,!0)},getTokenTypeAt:function(j){j=X(this.doc,j);var G=Zt(this,fn(this.doc,j.line)),ne=0,ge=(G.length-1)/2,we=j.ch,Re;if(we==0)Re=G[2];else for(;;){var Be=ne+ge>>1;if((Be?G[Be*2-1]:0)>=we)ge=Be;else if(G[Be*2+1]Re&&(j=Re,ge=!0),we=fn(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 Mr(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 Be=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")Be=j.top;else if(ge=="above"||ge=="near"){var At=Math.max(Re.wrapper.clientHeight,this.doc.height),nn=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(ge=="above"||j.bottom+G.offsetHeight>At)&&j.top>G.offsetHeight?Be=j.top-G.offsetHeight:j.bottom+G.offsetHeight<=At&&(Be=j.bottom),gt+G.offsetWidth>nn&&(gt=nn-G.offsetWidth)}G.style.top=Be+"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:Be,right:gt+G.offsetWidth,bottom:Be+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){Ke(this,j)}),findPosH:function(j,G,ne,ge){var we=1;G<0&&(we=-1,G=-G);for(var Re=X(this.doc,j),Be=0;Be0&>(ne.charAt(ge-1));)--ge;for(;we.5||this.options.lineWrapping)&&ba(this),Et(this,"refresh",this)}),swapDoc:ri(function(j){var G=this.doc;return G.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,j),Ur(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}},Ye(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=fn(t,p.line),Re=G&&t.direction=="rtl"?-B:B;function Be(){var kr=p.line+Re;return kr=t.first+t.size?!1:(p=new en(kr,p.ch,p.sticky),we=fn(t,kr))}function gt(kr){var Er;if(j=="codepoint"){var Xr=we.text.charCodeAt(p.ch+(j>0?0:-1));isNaN(Xr)?Er=null:Er=new en(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(!kr&&Be())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,nn=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)||` `,Qn=Q(Bn,zt)?"w":nn&&Bn==` `?"n":!nn||/\s/.test(Bn)?null:"p";if(nn&&!Tn&&!Qn&&(Qn="s"),At&&At!=Qn){B<0&&(B=1,gt(),p.sticky="after");break}if(Qn&&(At=Qn),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 Be;!(Be=Vr(t,ne,ge),!Be.outside);){if(B<0?ge<=0:ge>=G.height){Be.hitSide=!0;break}ge+=B*5}return Be}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}je(G,"paste",function(we){if(!ne(we)||Pt(j,we)||ke(we,j))return;m<=11&&setTimeout(Ha(j,function(){return p.updateFromDOM()}),20)}),je(G,"compositionstart",function(we){p.composing={data:we.data,done:!1}}),je(G,"compositionupdate",function(we){p.composing||(p.composing={data:we.data,done:!1})}),je(G,"compositionend",function(we){p.composing&&(we.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),je(G,"touchstart",function(){return B.forceCompositionEnd()}),je(G,"input",function(){p.composing||p.readFromDOMSoon()});function ge(we){if(!ne(we)||Pt(j,we))return;if(j.somethingSelected())Ee({lineWise:!1,text:j.getSelections()}),we.type=="cut"&&j.replaceSelection("",null,"cut");else if(j.options.lineWiseCopyCut){var Re=Ge(j);Ee({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 Be=ie.text.join(` `);if(we.clipboardData.setData("Text",Be),we.clipboardData.getData("Text")==Be){we.preventDefault();return}}var gt=Ut(),At=gt.firstChild;j.display.lineSpace.insertBefore(gt,j.display.lineSpace.firstChild),At.value=ie.text.join(` -`);var nn=document.activeElement;W(At),setTimeout(function(){j.display.lineSpace.removeChild(gt),nn.focus(),nn==G&&B.showPrimarySelection()},50)}je(G,"copy",ge),je(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&&mn(p,j)||{node:we[0].measure.map[2],offset:0},Be=G.linet.firstLine()&&(j=en(j.line-1,fn(t.doc,j.line-1).length)),G.ch==fn(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=dr(p.view[0].line),we=p.view[0].node):(ge=dr(p.view[ne].line),we=p.view[ne-1].node.nextSibling);var Re=ga(t,G.line),Be,gt;if(Re==p.view.length-1?(Be=p.viewTo-1,gt=p.lineDiv.lastChild):(Be=dr(p.view[Re+1].line)-1,gt=p.view[Re+1].node.previousSibling),!we)return!1;for(var At=t.doc.splitLines(Nr(t,we,gt,ge,Be)),nn=lr(t.doc,en(ge,0),en(Be,fn(t.doc,Be).text.length));At.length>1&&nn.length>1;)if($(At)==$(nn))At.pop(),nn.pop(),Be--;else if(At[0]==nn[0])At.shift(),nn.shift(),ge++;else break;for(var zt=0,Tn=0,Bn=At[0],Qn=nn[0],yr=Math.min(Bn.length,Qn.length);ztj.ch&&kr.charCodeAt(kr.length-Tn-1)==Er.charCodeAt(Er.length-Tn-1);)zt--,Tn++;At[At.length-1]=kr.slice(0,kr.length-Tn).replace(/^\u200b+/,""),At[0]=At[0].slice(zt).replace(/\u200b+$/,"");var ia=en(ge,zt),ea=en(Be,nn.length?$(nn).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 Na(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 mn(t,p){var B=mt(t,p.line);if(!B||B.hidden)return null;var j=fn(t.doc,p.line),G=Ie(B,j,p.line),ne=_t(j,t.doc.direction),ge="left";if(ne){var we=ft(ne,p.ch);ge=we%2?"right":"left"}var Re=pn(G.map,p.ch,ge);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function sr(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 Nr(t,p,B,j,G){var ne="",ge=!1,we=t.doc.lineSeparator(),Re=!1;function Be(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 nn(zt){if(zt.nodeType==1){var Tn=zt.getAttribute("cm-text");if(Tn){At(Tn);return}var Bn=zt.getAttribute("cm-marker"),Qn;if(Bn){var yr=t.findMarks(en(j,0),en(G+1,0),Be(+Bn));yr.length&&(Qn=yr[0].find(0))&&At(lr(t.doc,Qn.from,Qn.to).join(we));return}if(zt.getAttribute("contenteditable")=="false")return;var kr=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;kr&>();for(var Er=0;Er=9&&p.hasSelection&&(p.hasSelection=null),B.poll()}),je(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())Ee({lineWise:!1,text:j.getSelections()});else if(j.options.lineWiseCopyCut){var we=Ge(j);Ee({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)}je(G,"cut",ne),je(G,"copy",ne),je(t.scroller,"paste",function(ge){if(Oa(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)}),je(t.lineSpace,"selectstart",function(ge){Oa(t,ge)||Ce(ge)}),je(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"})}}),je(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=zn(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;v(B.cursorDiv,t.cursors),v(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),A&&m>=9&&(this.hasSelection=B)}else t||(this.prevInput=this.textarea.value="",A&&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||at(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(A&&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(` +`);var nn=document.activeElement;W(At),setTimeout(function(){j.display.lineSpace.removeChild(gt),nn.focus(),nn==G&&B.showPrimarySelection()},50)}je(G,"copy",ge),je(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&&mn(p,j)||{node:we[0].measure.map[2],offset:0},Be=G.linet.firstLine()&&(j=en(j.line-1,fn(t.doc,j.line-1).length)),G.ch==fn(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=dr(p.view[0].line),we=p.view[0].node):(ge=dr(p.view[ne].line),we=p.view[ne-1].node.nextSibling);var Re=ga(t,G.line),Be,gt;if(Re==p.view.length-1?(Be=p.viewTo-1,gt=p.lineDiv.lastChild):(Be=dr(p.view[Re+1].line)-1,gt=p.view[Re+1].node.previousSibling),!we)return!1;for(var At=t.doc.splitLines(Nr(t,we,gt,ge,Be)),nn=lr(t.doc,en(ge,0),en(Be,fn(t.doc,Be).text.length));At.length>1&&nn.length>1;)if($(At)==$(nn))At.pop(),nn.pop(),Be--;else if(At[0]==nn[0])At.shift(),nn.shift(),ge++;else break;for(var zt=0,Tn=0,Bn=At[0],Qn=nn[0],yr=Math.min(Bn.length,Qn.length);ztj.ch&&kr.charCodeAt(kr.length-Tn-1)==Er.charCodeAt(Er.length-Tn-1);)zt--,Tn++;At[At.length-1]=kr.slice(0,kr.length-Tn).replace(/^\u200b+/,""),At[0]=At[0].slice(zt).replace(/\u200b+$/,"");var ia=en(ge,zt),ea=en(Be,nn.length?$(nn).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 Na(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 mn(t,p){var B=mt(t,p.line);if(!B||B.hidden)return null;var j=fn(t.doc,p.line),G=Ie(B,j,p.line),ne=_t(j,t.doc.direction),ge="left";if(ne){var we=ft(ne,p.ch);ge=we%2?"right":"left"}var Re=pn(G.map,p.ch,ge);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function sr(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 Nr(t,p,B,j,G){var ne="",ge=!1,we=t.doc.lineSeparator(),Re=!1;function Be(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 nn(zt){if(zt.nodeType==1){var Tn=zt.getAttribute("cm-text");if(Tn){At(Tn);return}var Bn=zt.getAttribute("cm-marker"),Qn;if(Bn){var yr=t.findMarks(en(j,0),en(G+1,0),Be(+Bn));yr.length&&(Qn=yr[0].find(0))&&At(lr(t.doc,Qn.from,Qn.to).join(we));return}if(zt.getAttribute("contenteditable")=="false")return;var kr=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;kr&>();for(var Er=0;Er=9&&p.hasSelection&&(p.hasSelection=null),B.poll()}),je(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())Ee({lineWise:!1,text:j.getSelections()});else if(j.options.lineWiseCopyCut){var we=Ge(j);Ee({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)}je(G,"cut",ne),je(G,"copy",ne),je(t.scroller,"paste",function(ge){if(Oa(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)}),je(t.lineSpace,"selectstart",function(ge){Oa(t,ge)||Ce(ge)}),je(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"})}}),je(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;v(B.cursorDiv,t.cursors),v(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),A&&m>=9&&(this.hasSelection=B)}else t||(this.prevInput=this.textarea.value="",A&&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||at(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(A&&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(){A&&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=Aa(B,t),ge=j.scroller.scrollTop;if(!ne||l)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,Be=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: `+(A?"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 nn(){if(G.selectionStart!=null){var Bn=B.somethingSelected(),Qn="\u200B"+(Bn?G.value:"");G.value="\u21DA",G.value=Qn,p.prevInput=Bn?"":"\u200B",G.selectionStart=1,G.selectionEnd=Qn.length,j.selForContextMenu=B.doc.sel}}function zt(){if(p.contextMenuPending!=zt)return;if(p.contextMenuPending=!1,p.wrapper.style.cssText=Be,G.style.cssText=Re,A&&m<9&&j.scrollbars.setScrollTop(j.scroller.scrollTop=ge),G.selectionStart!=null){(!A||A&&m<9)&&nn();var Bn=0,Qn=function(){j.selForContextMenu==B.doc.sel&&G.selectionStart==0&&G.selectionEnd>0&&p.prevInput=="\u200B"?Ha(B,ol)(B):Bn++<10?j.detectingSelectAll=setTimeout(Qn,500):(j.selForContextMenu=null,j.input.reset())};j.detectingSelectAll=setTimeout(Qn,200)}}if(A&&m>=9&&nn(),P){Ue(t);var Tn=function(){Bt(window,"mouseup",Tn),setTimeout(zt,20)};je(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&&(je(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&&(Bt(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 Ra(t){t.off=Bt,t.on=je,t.wheelEventPixels=Hi,t.Doc=Ti,t.splitLines=Fe,t.countColumn=K,t.findColumn=ye,t.isWordChar=te,t.Pass=Se,t.signal=Et,t.Line=hn,t.changeEnd=Zr,t.scrollbarModel=xo,t.Pos=en,t.cmpPos=On,t.modes=pt,t.mimeModes=bt,t.resolveMode=ct,t.getMode=Nt,t.modeExtensions=jt,t.extendMode=on,t.copyState=vn,t.startState=Kn,t.innerMode=Wn,t.commands=qo,t.keyMap=vo,t.keyName=xs,t.isModifierKey=is,t.lookupKey=_o,t.normalizeKeyMap=_l,t.StringStream=Hn,t.SharedTextMarker=Qo,t.TextMarker=Gi,t.LineWidget=ns,t.e_preventDefault=Ce,t.e_stopPropagation=Le,t.e_stop=Ue,t.addClass=H,t.contains=N,t.rmClass=x,t.keyNames=Ro}eu(Ya),Ft(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 Ye(Ti),Ya.inputStyles={textarea:Hr,contenteditable:kt},Ya.defineMode=function(t){!Ya.defaults.mode&&t!="null"&&(Ya.defaults.mode=t),Dt.apply(this,arguments)},Ya.defineMIME=It,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,Ra(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 M=o("0Owb"),g=o("PpiC"),O=o("q1tI"),b=o.n(O),y=o("EkPF"),C=o.n(y),A=o("miYZ"),m=o("tsqr"),e=o("2qtc"),f=o("kLXV"),a=o("9og8"),l=o("WmNS"),n=o.n(l),i=o("auZk"),r=o.n(i),c=o("1vsH"),h=o("Ufr+"),d=o.n(h),s=o("HBuW"),u=o("ErOA"),w=o("Ty5D"),E=o("9kvl"),_=function(Yt){var hn,Dn,tn=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.shixunsDetail,ar=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),qn=Object(w.h)(),Rr=Object(O.useRef)(""),Ir=Object(w.i)(),Jn=In.title,Ar=In.base_info_warning,vr=In.challenges_warning,zr=In.service_warning,Lr=In.repository_warning,$r=In.mirror_warning;Object(O.useEffect)(function(){var ur;Rr.current=(ur=qn.pathname.split("/"))===null||ur===void 0?void 0:ur[2],_n({type:"practiceSetting/setParams",payload:{id:Rr.current}}),_n({type:"practiceSetting/getCommonData",payload:{id:Rr.current}})},[qn.pathname]),Object(O.useEffect)(function(){return Object(c.X)(Jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(c.X)()}});var nr=function(){var ur=Object(a.a)(n.a.mark(function ir(){return n.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Gt();case 2:E.d.push("/shixuns/".concat(Rr.current,"/challenges"));case 3:case"end":return or.stop()}},ir)}));return function(){return ur.apply(this,arguments)}}(),Gt=function(){return new Promise(function(ir,qr){var or;In!=null&&(or=In.sideBar)!==null&&or!==void 0&&or.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}}),ir()},onCancel:function(){qr()}}):ir()})},$t=function(ir){var qr;if(ir===(In==null?void 0:In.sideBar.tabsActive))return;var or=function(){E.d.push("/shixuns/".concat(Rr.current,"/edit?tabId=").concat(ir)),_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:ir,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(){or()}}):or()},Jt=function ur(ir){var qr;ir=(qr=ir)!==null&&qr!==void 0&&qr.includes(".json")?ir:"".concat(ir,".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 or=Object(a.a)(n.a.mark(function Yr(){var _r,Sr;return n.a.wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:return Jr.next=2,Object(u.a)("/api"+ir,{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(c.S)("/tasks/".concat(Sr.game_identifier)),Jr.abrupt("return");case 12:(Sr==null?void 0:Sr.status)===2?ur(Sr==null?void 0:Sr.message):(Sr==null?void 0:Sr.status)===3&&Xn(Sr==null?void 0:Sr.message);case 13:case"end":return Jr.stop()}},Yr)}));function da(){return or.apply(this,arguments)}return da}()})},Xn=function(ir){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",ir,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},$n=function(){var ur=Object(a.a)(n.a.mark(function ir(qr,or){var da,Yr,_r;return n.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Kr.next=2,Gt();case 2:if(Object(c.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:Rr.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..."}}),!or){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(c.S)(or?"/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(c.q)():(_r==null?void 0:_r.status)===2?Jt(_r==null?void 0:_r.message):(_r==null?void 0:_r.status)===3&&Xn(_r==null?void 0:_r.message);case 22:case"end":return Kr.stop()}},ir)}));return function(qr,or){return ur.apply(this,arguments)}}(),Ln=function(){var ur=Object(a.a)(n.a.mark(function ir(){return n.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Gt();case 2:_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return or.stop()}},ir)}));return function(){return ur.apply(this,arguments)}}(),rr=function(ir){var qr={borderBottomColor:(In==null?void 0:In.sideBar.tabsActive)===ir?"#0152d9":"transparent"};return qr};return b.a.createElement("div",{className:r.a.header},b.a.createElement("aside",{className:r.a.title},b.a.createElement("i",{onClick:nr,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),b.a.createElement("span",{className:r.a.edit},Jn||"\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:r.a.schedule},b.a.createElement("div",null,b.a.createElement("span",{style:rr("information"),className:r.a.clickWarp,onClick:function(){return $t("information")}},Ar?b.a.createElement("span",{className:r.a.num},"1"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.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:r.a.clickWarp,onClick:function(){return $t("warehouse")}},Lr?b.a.createElement("span",{className:r.a.num},"2"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u4EE3\u7801\u4ED3\u5E93")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Un==null?void 0:Un.detail)&&!(Un!=null&&(hn=Un.detail)!==null&&hn!==void 0&&hn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:rr("level"),className:r.a.clickWarp,onClick:function(){return $t("level")}},vr?b.a.createElement("span",{className:r.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.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:r.a.clickWarp,onClick:function(){return $t("service")}},zr?b.a.createElement("span",{className:r.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.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:r.a.clickWarp,onClick:function(){return $t("environment")}},$r?b.a.createElement("span",{className:r.a.num},"4"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u5B9E\u9A8C\u73AF\u5883")))),b.a.createElement("aside",{className:r.a.btns},b.a.createElement("div",{className:r.a.simulate,onClick:function(){return $n(Rr.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},P=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.practiceSetting,tn=Sn.shixunsDetail;return{globalSetting:hn,loading:Yt,practiceSetting:Dn,shixunsDetail:tn}})(_),R=o("sRBo"),x=o("kaz8"),S=o("14J3"),v=o("BMrR"),T=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"),ye=o("+Xk9"),ue=o.n(ye),se=o("FTkQ"),$=o.n(se),me=function(Yt){var hn=Yt.InputRight,Dn=Yt.value,tn=Dn===void 0?[]:Dn,wn=Yt.onChange,_n=Object(g.a)(Yt,["InputRight","value","onChange"]),In=Object(O.useState)(),Un=Object(de.a)(In,2),ar=Un[0],qn=Un[1],Rr=function(Ar){var vr=tn.filter(function(zr,Lr){return Lr!==Ar});wn(vr)},Ir=function(Ar){if(Ar.preventDefault(),!ar)return;if(tn.findIndex(function(vr){return vr.name===ar})>-1){m.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}wn([].concat(Object(be.a)(tn),[{id:null,name:ar}])),qn(null)};return b.a.createElement("div",null,b.a.createElement(W.a,Object(M.a)({bordered:!1,style:{width:600},value:ar,onChange:function(Ar){return qn(Ar.target.value)},onPressEnter:Ir,onBlur:Ir},_n)),hn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},tn==null?void 0:tn.map(function(Jn,Ar){return b.a.createElement("div",{key:Ar,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},Jn.name),b.a.createElement("img",{src:$.a,className:ue.a.s2,onClick:function(){return Rr(Ar)}}))})))},re=me,ae=o("LvDl"),Oe=o("m3rI"),le=o("hW5Z"),te=o.n(le),Q=function(Yt){var hn=Yt.dispatch,Dn=Yt.onCancel,tn=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:tn,className:te.a.save},"\u4FDD\u5B58"))},J=Object(E.a)()(Q),ve=o("UqFu"),_e=o("z7Xi"),Ae=o("jN4g"),Je=function(Yt){var hn,Dn,tn=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.problemset,ar=Yt.shixunsDetail,qn=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Rr=he.a.useForm(),Ir=Object(de.a)(Rr,1),Jn=Ir[0],Ar=Object(O.useState)({}),vr=Object(de.a)(Ar,2),zr=vr[0],Lr=vr[1],$r=Object(O.useState)(!1),nr=Object(de.a)($r,2),Gt=nr[0],$t=nr[1],Jt=Object(O.useState)(!1),Xn=Object(de.a)(Jt,2),$n=Xn[0],Ln=Xn[1],rr=Object(O.useState)(""),ur=Object(de.a)(rr,2),ir=ur[0],qr=ur[1],or=Object(O.useState)(""),da=Object(de.a)(or,2),Yr=da[0],_r=da[1],Sr=Object(O.useRef)({}),Kr=Object(O.useRef)(""),Jr=Object(O.useRef)(null),Oa=Object(O.useRef)(Object(ae.throttle)(function(){return Me()},2e3,{leading:!0,trailing:!1})).current,_a=In.id;Object(O.useEffect)(function(){if(!_a)return;dt()},[_a]),Object(O.useEffect)(function(){return JSON.stringify(zr)!=="{}"&&Ze(),function(){clearTimeout(Jr.current)}},[zr,ir,Yr]);var Ze=function(){clearTimeout(Jr.current),Jr.current=setTimeout(function(){!Object(ae.isEqual)(zr,Sr.current)||ir!==Kr.current||Yr!==Kr.current?_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},dt=function(){var dn=Object(a.a)(n.a.mark(function cn(){var Fn,Cn,Ur,Pr,Qr,Wr,ta,Gn,wr;return n.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return _n({type:"problemset/getEditDisciplines",payload:{source:"all_shixun"}}),xn.next=3,Object(u.a)("/api/shixuns/".concat(_a,"/edit_base_info.json"),{method:"get"});case 3:Fn=xn.sent,Fn.status===0&&(Gn=Object(K.a)(Object(K.a)({},Fn.data),{},{description:Object(ve.a)(Fn.data.description)}),wr={description:Gn.description,shixun_tags:Gn.shixun_tags,name:Gn.name,course:(Gn==null||((Cn=Gn.disciplines)===null||Cn===void 0)?void 0:Cn.length)>0?[Gn==null||((Ur=Gn.disciplines)===null||Ur===void 0||((Pr=Ur[0])===null||Pr===void 0))?void 0:Pr.id,Gn==null||((Qr=Gn.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:Fn.data.jupyter_show_description},Jn.setFieldsValue(wr),Sr.current=Object(K.a)({},wr),Kr.current=Gn.attachment_id||"",Lr(Object(K.a)({},wr)),qr(Gn.attachment_id||""),_r(Gn.cover_image_id||""));case 5:case"end":return xn.stop()}},cn)}));return function(){return dn.apply(this,arguments)}}(),yt=function(cn,Fn){Lr(Object(K.a)({},Fn))},nt=function(){Ie()},Me=function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Jn.submit()},Xe=function(cn){var Fn,Cn=cn.name,Ur=cn.description,Pr=cn.shixun_tags,Qr=cn.course,Wr=cn.jupyter_show_description,ta=Wr===void 0?!1:Wr,Gn={name:Cn,description:Ur,shixun_tags:Pr,attachment_id:ir,cover_image_id:Yr,sub_discipline_ids:Qr[1]};(Fn=ar.detail)!==null&&Fn!==void 0&&Fn.is_jupyter_lab&&(Gn=Object(K.a)(Object(K.a)({},Gn),{},{jupyter_show_description:ta}));var wr=Object(u.a)("/api/shixuns/".concat(_a,"/base_info_save.json"),{method:"post",body:{shixun:Object(K.a)({},Gn)}});wr.then(function(zn){zn.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=ir)})},Ie=function(){var cn,Fn=function(){E.d.push("/shixuns/".concat(_a,"/challenges")),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};In!=null&&(cn=In.sideBar)!==null&&cn!==void 0&&cn.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(){Fn()}}):Fn()};function et(dn){var cn=dn.type==="image/jpeg"||dn.type==="image/png";return cn||m.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),cn}var $e=b.a.createElement(I.a,{loading:Gt,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),mt=b.a.createElement(I.a,{loading:$n,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function rt(dn,cn){var Fn=new FileReader;Fn.addEventListener("load",function(){return cn(Fn.result)}),Fn.readAsDataURL(dn)}var Mt=function(cn){if(cn.file.status==="uploading"){$t(!0);return}if(cn.file.status==="done"){var Fn,Cn;$t(!1),qr(cn==null||((Fn=cn.file)===null||Fn===void 0||((Cn=Fn.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/"+ir,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return qr("")},style:{fontSize:"16px",color:"red"}})))},pn=function(cn){if(cn.file.status==="uploading"){Ln(!0);return}if(cn.file.status==="done"){var Fn,Cn;Ln(!1),_r(cn==null||((Fn=cn.file)===null||Fn===void 0||((Cn=Fn.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:Jn,scrollToFirstError:!0,layout:"vertical",onValuesChange:yt,onFinish:Xe},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(((hn=zr.name)===null||hn===void 0?void 0:hn.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(v.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},ir?Vt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:et,onChange:Mt},$e))),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(v.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:et,onChange:pn},mt))),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=ar.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(x.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:Oa,onCancel:nt,loading:Gt||$n}))},tt=Object(E.a)(function(Sn){var Yt=Sn.problemset,hn=Sn.loading,Dn=Sn.globalSetting,tn=Sn.practiceSetting,wn=Sn.shixunsDetail;return{globalSetting:Dn,loading:hn,practiceSetting:tn,problemset:Yt,shixunsDetail:wn}})(Je),ut=o("ch0t"),ft=o("R9oj"),vt=o("ECub"),_t=o("T2oS"),Ve=o("W9HT"),je=o("bKvZ"),ht=o.n(je),Bt=o("KeGQ"),Et=o.n(Bt),Pt=o("NLgs"),qe=o("ngQI"),He=function(Yt){var hn=Yt.globalSetting,Dn=Yt.dispatch,tn=Yt.practiceSetting,wn=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting"]),_n=Object(O.useState)(!1),In=Object(de.a)(_n,2),Un=In[0],ar=In[1],qn=Object(O.useState)({}),Rr=Object(de.a)(qn,2),Ir=Rr[0],Jn=Rr[1],Ar=Object(O.useState)(!0),vr=Object(de.a)(Ar,2),zr=vr[0],Lr=vr[1],$r=Object(O.useState)(!1),nr=Object(de.a)($r,2),Gt=nr[0],$t=nr[1],Jt=Object(O.useState)(null),Xn=Object(de.a)(Jt,2),$n=Xn[0],Ln=Xn[1],rr=Object(O.useRef)(!1),ur=tn.id,ir=tn.updateIndex,qr=tn.is_published,or=tn.newQuestion,da=Ir.challenge_list,Yr=da===void 0?[]:da;Object(O.useEffect)(function(){return ur?(Sr(),function(){Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[ur,ir]),Object(O.useEffect)(function(){_r()},[wn.location]);var _r=function(){var et,$e=wn.location,mt=$e.pathname.split("/");(mt.includes("newquestion")||mt.includes("new")||$e!=null&&(et=$e.query)!==null&&et!==void 0&&et.tabId)&&(rr.current=!0)},Sr=function(){var Ie=Object(a.a)(n.a.mark(function et(){var $e,mt,rt,Mt,Vt,pn,ln;return n.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return Lr(!0),cn.next=3,Object(s.J)({id:ur});case 3:rt=cn.sent,rt!=null&&($e=rt.challenge_list)!==null&&$e!==void 0&&$e.length&&(Mt=wn.location.pathname.split("/"),Vt=rt.challenge_list.find(function(Fn){return String(Fn.challenge_id)===Mt[4]}),Mt.includes("newquestion")||Mt.includes("new")?(ln=rt.challenge_list[((pn=rt.challenge_list)===null||pn===void 0?void 0:pn.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&&(mt=rt.challenge_list)!==null&&mt!==void 0&&mt.length||Ln(null),Jn(rt),Lr(!1);case 8:case"end":return cn.stop()}},et)}));return function(){return Ie.apply(this,arguments)}}(),Kr=function(et){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(Ln(et.challenge_id),Ze(et),$e){var mt="/shixuns/".concat(ur,"/edit/").concat(et.challenge_id,"/").concat(et.st===1?"editquestion":"editcheckpoint");E.d.push(mt)}},Jr=function(et,$e){$e.stopPropagation();var mt=et.challenge_id,rt=function(){var Mt=Object(a.a)(n.a.mark(function Vt(){var pn,ln,dn,cn;return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.v)({id:ur,challengesId:mt});case 2:if(pn=Cn.sent,!(pn.status===1)){Cn.next=12;break}return Cn.next=6,Object(s.J)({id:ur});case 6:if(cn=Cn.sent,Jn(cn),!(mt===$n&&(ln=cn.challenge_list)!==null&&ln!==void 0&&ln.length)){Cn.next=11;break}return Kr(cn.challenge_list[0]),Cn.abrupt("return");case 11:(dn=cn.challenge_list)!==null&&dn!==void 0&&dn.length||(Ln(null),rr.current=!0,Ze({}),E.d.push("/shixuns/".concat(ur,"/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})},Oa=function(et,$e,mt){var rt=Array.from(et),Mt=rt.splice($e,1),Vt=Object(de.a)(Mt,1),pn=Vt[0];return rt.splice(mt,0,pn),rt},_a=function(et,$e){if(!et.destination)return;var mt=Oa($e,et.source.index,et.destination.index);Jn(Object(K.a)(Object(K.a)({},Ir),{},{challenge_list:mt}));var rt=mt.map(function(Mt){return Mt.challenge_id});Object(s.Kb)({id:ur,ids:rt}).then(function(Mt){Mt.status!==0&&Jn(Object(K.a)(Object(K.a)({},Ir),{},{challenge_list:$e}))})},Ze=function(et){Dn({type:"practiceSetting/setParams",payload:{selectQuestionParams:et}})},dt=function(){var Ie=Object(a.a)(n.a.mark(function et($e,mt){var rt;return n.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!($e===$n)){Vt.next=2;break}return Vt.abrupt("return");case 2:return Vt.next=4,yt();case 4:Ln($e),Ze(mt),Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),rt="/shixuns/".concat(ur,"/edit/").concat($e,"/").concat(mt.st===1?"editquestion":"editcheckpoint"),E.d.push(rt);case 9:case"end":return Vt.stop()}},et)}));return function($e,mt){return Ie.apply(this,arguments)}}(),yt=function(){return new Promise(function(et,$e){var mt;tn!=null&&(mt=tn.sideBar)!==null&&mt!==void 0&&mt.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}}),et()},onCancel:function(){$e()}}):et()})},nt=function(et){return b.a.createElement(b.a.Fragment,null,b.a.createElement(qe.a,{onDragEnd:function(mt){return _a(mt,et)}},b.a.createElement(qe.c,{droppableId:"droppable"},function($e,mt){return b.a.createElement("div",Object(M.a)({ref:$e.innerRef},$e.droppableProps,{style:{width:"100%"}}),et.map(function(rt,Mt){var Vt=rt.st,pn=rt.name,ln=rt.challenge_id;return b.a.createElement(qe.b,{key:ln,draggableId:ln.toString(),index:Mt,isDragDisabled:qr},function(dn,cn){return b.a.createElement("div",Object(M.a)({ref:dn.innerRef},dn.draggableProps,dn.dragHandleProps,{className:$n===ln?ht.a.listActive:ht.a.list,onClick:function(){return dt(ln,rt)}}),b.a.createElement("span",{className:ht.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:ht.a.s2},"\u7B2C",Mt+1,"\u5173: ",pn),!qr&&b.a.createElement("span",{className:ht.a.s3,onClick:function(Cn){return Jr(rt,Cn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),or&&b.a.createElement("div",{className:ht.a.listActive},b.a.createElement("span",{className:ht.a.s1},(or==null?void 0:or.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:ht.a.s2},"\u7B2C",et.length+1,"\u5173: ",or==null?void 0:or.name)),!qr&&b.a.createElement("div",{className:ht.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},Me=function(){var Ie=Object(a.a)(n.a.mark(function et($e){return n.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,yt();case 2:$e==="new"?E.d.push("/shixuns/".concat(ur,"/edit/new")):E.d.push("/shixuns/".concat(ur,"/edit/newquestion")),ar(!1),Ln(void 0),Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:$e==="new"?0:1,name:""}}});case 6:case"end":return rt.stop()}},et)}));return function($e){return Ie.apply(this,arguments)}}(),Xe=function(){if(Object(Pt.b)(Dn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;ar(!Un)};return b.a.createElement("div",{className:ht.a.level},b.a.createElement("aside",{className:ht.a.left,style:{width:Gt?"0":"25%"}},b.a.createElement("div",{className:ht.a.container},b.a.createElement("div",{className:ht.a.title},"\u4EFB\u52A1\u5173\u5361(",Yr.length,")"),b.a.createElement("div",{className:ht.a.listWrap},zr?b.a.createElement(Ve.a,{size:"large"}):!!Yr.length||!!or?nt(Yr):b.a.createElement(vt.a,{image:Et.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Gt&&b.a.createElement("div",{className:ht.a.btns},b.a.createElement("aside",{className:ht.a.btnsWrap},b.a.createElement("div",{style:{transform:Un?"rotate(45deg)":"rotate(0deg)"},className:ht.a.icon,onClick:Xe},"+"),b.a.createElement("div",{className:ht.a.btn,style:{left:Un?20:-154}},b.a.createElement("div",{className:ht.a.d1,onClick:function(){return Me("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),b.a.createElement("div",{className:ht.a.d2,onClick:function(){return Me("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),b.a.createElement("div",{className:Gt?ht.a.elseShrink:ht.a.shrink,onClick:function(){return $t(!Gt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:ht.a.right,id:"modal-level-question"},$n===null&&rr.current?b.a.createElement("div",{className:ht.a.addIcon},b.a.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):wn.children))},Ye=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,hn=Sn.practiceSetting;return{globalSetting:Yt,practiceSetting:hn}})(He),Ce=o("DjyN"),Le=o("NUBc"),We=o("cWXX"),Ue=o("/ezw"),ze=o("qVdP"),st=o("jsC+"),Ct=o("lUTK"),Wt=o("BvKs"),Qt=o("7Kak"),Kt=o("9yH6"),Ot=o("Qvpy"),Fe=o.n(Ot),at=function(Yt){var hn=Yt.shixunsDetail,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.onReloadData,In=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Un=Object(O.useState)(),ar=Object(de.a)(Un,2),qn=ar[0],Rr=ar[1],Ir=Object(O.useState)([]),Jn=Object(de.a)(Ir,2),Ar=Jn[0],vr=Jn[1];Object(O.useEffect)(function(){hn.actionTabs.key==="Collaborators-ChangeManager"&&zr()},[hn.actionTabs.key]);var zr=function(){var Gt=Object(a.a)(n.a.mark(function $t(){var Jt,Xn;return n.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,wn({type:"shixunsDetail/getChangeManager",payload:{id:(Jt=hn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id}});case 2:Xn=Ln.sent,vr(Xn||[]);case 4:case"end":return Ln.stop()}},$t)}));return function(){return Gt.apply(this,arguments)}}(),Lr=function(){var $t;wn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:($t=hn.actionTabs.params)===null||$t===void 0?void 0:$t.id}}})},$r=function(){var Gt=Object(a.a)(n.a.mark(function $t(){var Jt,Xn;return n.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=hn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id,user_id:qn}});case 5:Xn=Ln.sent,nr(),Xn&&(_n(),m.b.info(Xn.message));case 8:case"end":return Ln.stop()}},$t)}));return function(){return Gt.apply(this,arguments)}}(),nr=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}}),Rr(null)};return b.a.createElement(f.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:hn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:tn.effects["shixunsDetail/changeManager"],onOk:$r,onCancel:nr},b.a.createElement("div",null,b.a.createElement("div",{className:Fe.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:Fe.a.content},Ar.length?b.a.createElement(Kt.a.Group,{value:qn,onChange:function($t){return Rr($t.target.value)}},Ar.map(function(Gt,$t){return b.a.createElement(Kt.a,{className:Fe.a.radio,key:$t,value:Gt.user_id},Gt.name)})):b.a.createElement("div",{className:Fe.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:Fe.a.colorBlue,onClick:Lr},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},it=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:hn}})(at),Pe=o("Znn+"),Qe=o("ZTPi"),pt=o("ju9d"),bt=o("DDK+"),Dt=Qe.a.TabPane,It=function(Sn){var Yt=Sn.visible,hn=Sn.onCancel,Dn=Sn.onSelectGroup,tn=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:hn,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},b.a.createElement(Qe.a,{defaultActiveKey:"1"},b.a.createElement(Dt,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(pt.a,{onCancel:hn,container_type:2,container_id:tn,onSelect:wn})),b.a.createElement(Dt,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(bt.a,{onCancel:hn,onSelect:Dn}))))},ct=o("oaGz"),Nt=o.n(ct),jt=o("8Skl"),on=o("ruvs"),vn=function(Yt){var hn,Dn,tn,wn,_n,In,Un=Yt.shixunsDetail,ar=Yt.globalSetting,qn=Yt.loading,Rr=Yt.user,Ir=Yt.dispatch,Jn=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Ar=Object(O.useRef)(),vr=Object(O.useState)(0),zr=Object(de.a)(vr,2),Lr=zr[0],$r=zr[1],nr=Object(O.useState)([]),Gt=Object(de.a)(nr,2),$t=Gt[0],Jt=Gt[1],Xn=Object(O.useState)({id:null,page:1}),$n=Object(de.a)(Xn,2),Ln=$n[0],rr=$n[1],ur=(hn=Rr.userInfo)===null||hn===void 0||((Dn=hn.shixun)===null||Dn===void 0)?void 0:Dn.editable,ir=((tn=Rr.userInfo)===null||tn===void 0?void 0:tn.role)<=2||((wn=Rr.userInfo)===null||wn===void 0||((_n=wn.shixun)===null||_n===void 0)?void 0:_n.is_creator);Object(O.useEffect)(function(){Ar.current=Jn.match.params.id,Ln.id=Ar.current,rr(Ln),qr(Ln)},[]);var qr=function(){var Ze=Object(a.a)(n.a.mark(function dt(yt){var nt;return n.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,Ir({type:"shixunsDetail/getCollaboratorsData",payload:yt});case 2:nt=Xe.sent,nt&&(Jt(nt.members||[]),$r(nt.member_count));case 4:case"end":return Xe.stop()}},dt)}));return function(yt){return Ze.apply(this,arguments)}}(),or=function(){var Ze=Object(a.a)(n.a.mark(function dt(){var yt;return n.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Ln.page=1,rr(Ln),yt=Object(on.b)(),Me.next=5,Ir({type:"user/getUserInfo",payload:yt});case 5:return Me.next=7,qr(Ln);case 7:case"end":return Me.stop()}},dt)}));return function(){return Ze.apply(this,arguments)}}(),da=function(dt){Ln.page=dt,rr(Ln),qr(Ln)},Yr=function(dt){f.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Nt.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var yt=Object(a.a)(n.a.mark(function Me(){var Xe,Ie;return n.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Ir({type:"shixunsDetail/deleteCollaborators",payload:{id:Ar.current,userId:dt}});case 2:if(Ie=$e.sent,!(((Xe=Rr.userInfo)===null||Xe===void 0?void 0:Xe.user_id)===dt)){$e.next=6;break}return E.d.push("/shixuns"),$e.abrupt("return");case 6:m.b.info(Ie==null?void 0:Ie.message),Ln.page=1,rr(Ln),qr(Ln);case 10:case"end":return $e.stop()}},Me)}));function nt(){return yt.apply(this,arguments)}return nt}()})},_r=function(){Ir({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Ar.current}}})};function Sr(Ze,dt,yt,nt){return Kr.apply(this,arguments)}function Kr(){return Kr=Object(a.a)(n.a.mark(function Ze(dt,yt,nt,Me){return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,Ir({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:dt,user_id:yt,editable:nt?0:1}});case 2:qr(Ln);case 3:case"end":return Ie.stop()}},Ze)})),Kr.apply(this,arguments)}var Jr=function(){Ir({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Ar.current}}})};function Oa(){Ir({type:"shixunsDetail/setActionTabs",payload:{}})}var _a={visible:Un.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Oa,shixunId:Ar.current,onSelectCollaborator:function(){var Ze=Object(a.a)(n.a.mark(function yt(nt){var Me;return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Oa(),Ie.next=3,Ir({type:"shixunsDetail/addCollaborator",payload:{id:Ar.current,user_ids:nt}});case 3:Me=Ie.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),or());case 5:case"end":return Ie.stop()}},yt)}));function dt(yt){return Ze.apply(this,arguments)}return dt}(),onSelectGroup:function(){var Ze=Object(a.a)(n.a.mark(function yt(nt){var Me;return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Oa(),Ie.next=3,Ir({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Ar.current,group_id:nt.group_id}});case 3:Me=Ie.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),or());case 5:case"end":return Ie.stop()}},yt)}));function dt(yt){return Ze.apply(this,arguments)}return dt}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Nt.a.wrap},b.a.createElement("div",{className:Nt.a.content},((In=Un.detail)===null||In===void 0?void 0:In.identity)<5&&b.a.createElement("div",{className:Nt.a.head},b.a.createElement("span",{className:Nt.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Lr,"\u4EBA\uFF09"),b.a.createElement("div",null,ir&&b.a.createElement(I.a,{type:"primary",ghost:!0,className:Nt.a.button,style:{marginRight:"20px"},onClick:_r},"\u66F4\u6362\u7BA1\u7406\u5458"),ur&&b.a.createElement(I.a,{type:"primary",className:Nt.a.button,style:{marginRight:"40px"},onClick:Jr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Nt.a.list},b.a.createElement(Ue.a,{loading:qn.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},$t.map(function(Ze,dt){var yt,nt,Me,Xe,Ie,et,$e,mt;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Nt.a.itemWrap,key:dt},b.a.createElement("a",{href:(yt=Ze.user)===null||yt===void 0?void 0:yt.user_url,target:"_blank",className:Nt.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Nt.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:Nt.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Nt.a.itemContent},b.a.createElement("p",{className:Nt.a.nameWrap},b.a.createElement("a",{href:Ze.user.user_url,target:"_blank",className:Nt.a.name},(Xe=Ze.user)===null||Xe===void 0?void 0:Xe.name,Ze.user.user_id===((Ie=Rr.userInfo)===null||Ie===void 0?void 0:Ie.user_id)?b.a.createElement("span",null,"\u6211"):null),b.a.createElement("div",{className:Nt.a.actionGroup},ir?(et=Ze.user)!==null&&et!==void 0&&et.shixun_manager?null:b.a.createElement(st.a,{overlay:b.a.createElement(Wt.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(Wt.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(Wt.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(jt.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"),!(($e=Ze.user)!==null&&$e!==void 0&&$e.shixun_manager)&&ur?b.a.createElement("a",{className:Nt.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:Nt.a.schoolWrap},b.a.createElement("span",{className:Nt.a.school},(mt=Ze.user)===null||mt===void 0?void 0:mt.school_name)))))})))),Lr>10&&b.a.createElement("div",{className:Nt.a.countWrap},b.a.createElement(Le.a,{showQuickJumper:!1,showSizeChanger:!1,total:Lr,onChange:function(dt){return da(dt)},pageSize:10,current:Ln.page}))),b.a.createElement(it,{onReloadData:or}),b.a.createElement(It,_a))},Wn=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting,tn=Sn.user;return{shixunsDetail:Yt,globalSetting:Dn,user:tn,loading:hn}})(vn),Kn=o("11/R"),Hn=o("Q9mQ"),fn=o("diRs"),lr=o("jrin"),Zn=o("OaEy"),cr=o("2fM7"),dr=o("ZW9T"),Dr=o("RCxd"),hr=o("4SAo"),sn=o.n(hr),en=W.a.TextArea,On=function(Yt){var hn=Yt.shixunsDetail,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.onFinish,In=_n===void 0?function(){}:_n,Un=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),ar=he.a.useForm(),qn=Object(de.a)(ar,1),Rr=qn[0],Ir=function(){var Ar=Object(a.a)(n.a.mark(function vr(zr){var Lr,$r;return n.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,wn({type:"shixunsDetail/getCustomScript",payload:{id:(Lr=hn.actionTabs.params)===null||Lr===void 0?void 0:Lr.id,compile:zr.execute,excutive:zr.compile}});case 2:$r=Gt.sent,Jn(),$r&&In($r==null?void 0:$r.shixun_script);case 5:case"end":return Gt.stop()}},vr)}));return function(zr){return Ar.apply(this,arguments)}}(),Jn=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(f.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:hn.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Jn},b.a.createElement(he.a,{form:Rr,scrollToFirstError:!0,layout:"vertical",onFinish:Ir},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(en,{rows:4})),b.a.createElement(he.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement(en,{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:Jn},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",htmlType:"submit",loading:tn.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},Fr=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:hn}})(On),Or=o("Lai7"),xr=o.n(Or),fr=o("EGTK"),pe=o("UGPy"),X=o.n(pe),q=o("FrRK"),oe=o("9Bee"),De=o("N3QO"),fe=cr.a.Option,ot=function(Yt){var hn,Dn,tn=Yt.practiceSetting,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.user,Un=Object(O.useState)(null),ar=Object(de.a)(Un,2),qn=ar[0],Rr=ar[1],Ir=Object(O.useState)([]),Jn=Object(de.a)(Ir,2),Ar=Jn[0],vr=Jn[1],zr=Object(O.useState)(!0),Lr=Object(de.a)(zr,2),$r=Lr[0],nr=Lr[1],Gt=Object(O.useState)({}),$t=Object(de.a)(Gt,2),Jt=$t[0],Xn=$t[1],$n=Object(O.useState)([]),Ln=Object(de.a)($n,2),rr=Ln[0],ur=Ln[1],ir=Object(O.useState)(),qr=Object(de.a)(ir,2),or=qr[0],da=qr[1],Yr=Object(O.useState)(),_r=Object(de.a)(Yr,2),Sr=_r[0],Kr=_r[1],Jr=Object(O.useState)([]),Oa=Object(de.a)(Jr,2),_a=Oa[0],Ze=Oa[1],dt=Object(O.useState)({}),yt=Object(de.a)(dt,2),nt=yt[0],Me=yt[1],Xe=Object(O.useRef)(null),Ie=Object(O.useRef)(!0),et=Object(O.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),$e=Object(O.useRef)(null),mt=tn.id,rt=tn.is_published,Mt=nt.frequence_image,Vt=Mt===void 0?[]:Mt,pn=nt.environments,ln=pn===void 0?[]:pn,dn=nt.choice_small_type,cn=dn===void 0?[]:dn,Fn=nt.other_image,Cn=Fn===void 0?[]:Fn,Ur=Jt.name,Pr=Jt.description,Qr=Jt.authorization,Wr=Jt.small_type,ta=Wr===void 0?[]:Wr;Object(O.useEffect)(function(){if(qn===null)return;zn(),Xe.current.scrollTop=0},[qn]),Object(O.useEffect)(function(){if(!mt)return;wr()},[mt]),Object(O.useEffect)(function(){return qn===null?void 0:(Gn(),function(){clearTimeout($e.current)})},[qn,Ar,rr,or,Sr]);var Gn=function(){clearTimeout($e.current),$e.current=setTimeout(function(){!Object(ae.isEqual)(et.current.activeId,qn)||!Object(ae.isEqual)(et.current.selectId,Ar)||!Object(ae.isEqual)(et.current.serviceConfigList,rr)||!Object(ae.isEqual)(et.current.evaluateScript,or)||!Object(ae.isEqual)(et.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)(n.a.mark(function br(){var Mr,tr,pa,xa;return n.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return nr(!0),Aa.next=3,Object(u.a)("/api/shixuns/".concat(mt,"/edit_environment_info.json"),{method:"get"});case 3:Mr=Aa.sent,Mr.status===0&&(Me(Object(K.a)({},Mr.data)),nr(!1),Mr!=null&&(tr=Mr.data)!==null&&tr!==void 0&&tr.id?(et.current.activeId=Mr==null||((pa=Mr.data)===null||pa===void 0)?void 0:pa.id,Rr(Mr==null||((xa=Mr.data)===null||xa===void 0)?void 0:xa.id)):Rr(null));case 5:case"end":return Aa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),zn=function(){var Tr=Object(a.a)(n.a.mark(function br(){var Mr,tr,pa,xa,ba;return n.a.wrap(function(ga){for(;;)switch(ga.prev=ga.next){case 0:return ga.next=2,Object(u.a)("/api/shixuns/".concat(mt,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:qn}});case 2:ba=ga.sent,Xn(ba.data),et.current.selectId=(Mr=ba.data)===null||Mr===void 0?void 0:Mr.choice_small_type,vr((tr=ba.data)===null||tr===void 0?void 0:tr.choice_small_type),et.current.serviceConfigList=(pa=ba.data)===null||pa===void 0?void 0:pa.shixun_service_configs,ur((xa=ba.data)===null||xa===void 0?void 0:xa.shixun_service_configs),et.current.evaluateScript=ba.data.evaluate_script,da(ba.data.evaluate_script),et.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)}}(),xn=function(){var br,Mr=function(){E.d.push("/shixuns/".concat(mt,"/challenges")),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};tn!=null&&(br=tn.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(){Mr()}}):Mr()},jn=function(){var Tr=Object(a.a)(n.a.mark(function br(){var Mr,tr,pa,xa=arguments;return n.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:if(Mr=xa.length>0&&xa[0]!==void 0?xa[0]:!1,!Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Aa.next=3;break}return Aa.abrupt("return");case 3:return tr={sub_type:Ar,main_type:qn,shixun:{mirror_script_id:Sr},shixun_info:{evaluate_script:or},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}})},Aa.next=6,Object(u.a)("/api/shixuns/".concat(mt),{method:"put",body:tr});case 6:pa=Aa.sent,pa.status===0&&(m.b.success("\u7F16\u8F91\u6210\u529F"),et.current={activeId:qn,selectId:Ar,serviceConfigList:rr,evaluateScript:or,evaluationScript:Sr},wn({type:"practiceSetting/getCommonData",payload:{id:mt}}),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Aa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),Vr=ta.filter(function(Tr){return Ar.includes(Tr.id)}),ua=function(){xn()},pr=function(br,Mr,tr){var pa=rr.map(function(xa,ba){return ba===tr?Object(K.a)(Object(K.a)({},xa),{},Object(lr.a)({},Mr,br)):xa});ur(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:mt}}})},Ca=function(){var Tr=Object(a.a)(n.a.mark(function br(Mr){var tr;return n.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,wn({type:"shixunsDetail/getScriptContent",payload:{id:mt,script_id:Mr}});case 2:tr=xa.sent,tr&&da(tr.content);case 4:case"end":return xa.stop()}},br)}));return function(Mr){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 Mr=Object(a.a)(n.a.mark(function pa(){return n.a.wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,Ca(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 tr(){return Mr.apply(this,arguments)}return tr}()})},Sa=function(br,Mr){var tr=rr[0]?[rr[0]]:[];Mr.forEach(function(pa){var xa=rr.find(function(ga){return ga.mirror_repository_id===Number(pa.key)});if(xa)tr.push(xa);else{var ba=ta.find(function(ga){return ga.id===Number(pa.key)});if(ba.mirror_name){var Aa={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(pa.key),name:ba.mirror_name,request_limit:10};tr.push(Aa)}}}),ur(tr),vr(br)};return b.a.createElement("div",{className:X.a.practice},b.a.createElement(fr.a,{loading:$r,skin:"night",className:X.a.left,dispatch:wn,value:qn,data:ln,otherData:Cn,tags:Vt,onChange:function(br){return Rr(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":Ur)),b.a.createElement("div",{className:X.a.content,ref:Xe},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:Pr})),b.a.createElement("div",{className:X.a.title},"\u9644\u5E26\u73AF\u5883"),b.a.createElement("div",{className:X.a.selectBox},b.a.createElement(cr.a,{onChange:function(br,Mr){return Sa(br,Mr)},getPopupContainer:function(br){return br.parentNode},mode:"multiple",bordered:!1,value:Ar,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&&(hn=_n.detail)!==null&&hn!==void 0&&hn.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(cr.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(fn.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(Dr.a,null)))),b.a.createElement(dr.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:or,onChange:function(br){if(Ie.current){Ie.current=!1;return}da(br),Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Ie.current=!0,da(et.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(tr){return pr(tr.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(tr){return pr(tr.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(tr){return pr(tr.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(tr){return pr(tr.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(tr){var pa=tr.target.value,xa=/^\d*(\.\d*)?$/;pa.match(xa)&&pr(tr.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))},Zt=Object(E.a)(function(Sn){var Yt=Sn.practiceSetting,hn=Sn.globalSetting,Dn=Sn.shixunsDetail,tn=Sn.user;return{practiceSetting:Yt,globalSetting:hn,shixunsDetail:Dn,user:tn}})(ot),Mn=o("g9YV"),Vn=o("wCAj"),qt=o("5Dmo"),yn=o("3S7+"),un=o("P5Jw"),jr=o("wd/R"),ra=o.n(jr),oa=o("3d99"),er=o.n(oa),Ba=o("Lf5v"),Ea=o("xKgJ"),ca=o("lzim"),Ka=b.a.Fragment,Ta=function(Yt){var hn,Dn,tn,wn,_n=Yt.globalSetting,In=Yt.dispatch,Un=Yt.practiceSetting,ar=Yt.shixunsDetail,qn=Yt.user,Rr=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Ir=Un.id,Jn=Object(O.useState)([]),Ar=Object(de.a)(Jn,2),vr=Ar[0],zr=Ar[1],Lr=Object(O.useState)({}),$r=Object(de.a)(Lr,2),nr=$r[0],Gt=$r[1],$t=Object(O.useState)(!1),Jt=Object(de.a)($t,2),Xn=Jt[0],$n=Jt[1],Ln=Object(O.useState)(!0),rr=Object(de.a)(Ln,2),ur=rr[0],ir=rr[1],qr=Object(O.useState)(!1),or=Object(de.a)(qr,2),da=or[0],Yr=or[1],_r=Object(O.useState)(!1),Sr=Object(de.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Oa=Object(O.useState)([]),_a=Object(de.a)(Oa,2),Ze=_a[0],dt=_a[1],yt=Object(O.useState)(!1),nt=Object(de.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=Object(O.useState)({}),et=Object(de.a)(Ie,2),$e=et[0],mt=et[1],rt=Object(O.useState)({page:1,limit:10,total:0}),Mt=Object(de.a)(rt,2),Vt=Mt[0],pn=Mt[1];Object(O.useEffect)(function(){if(!Ir)return;dn()},[Ir]);var ln=function(wr){var zn=Object(K.a)(Object(K.a)({},Vt),{},{page:wr});dt([]),pn(zn),dn(zn)},dn=function(){var Gn=Object(a.a)(n.a.mark(function wr(zn){var xn,jn,Vr;return n.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return xn={page:1,limit:10,total:0},jn=zn||xn,$n(!0),pr.next=5,In({type:"shixunsDetail/getSetData",payload:Object(K.a)(Object(K.a)({},jn),{},{id:Ir})});case 5:Vr=pr.sent,Vr!=null&&Vr.data_sets&&($n(!1),zr(Object(be.a)(Vr.data_sets)),pn(Object(K.a)(Object(K.a)({},jn),{},{total:Vr==null?void 0:Vr.data_sets_count})),ir(!1),Gt(Object(K.a)({},Vr)));case 7:case"end":return pr.stop()}},wr)}));return function(zn){return Gn.apply(this,arguments)}}(),cn=function(){return b.a.createElement("div",{className:er.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~"))},Fn=function(wr){console.log("selectedRowKeys changed: ",wr),dt(wr)},Cn={selectedRowKeys:Ze,columnWidth:70,onChange:Fn},Ur=function(wr){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var zn=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 xn=Object(a.a)(n.a.mark(function Vr(){var ua,pr;return n.a.wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:return Ca.next=2,Object(u.a)("/api/shixuns/".concat(Ir,"/destroy_data_sets.json"),{method:"Delete",body:{id:zn}});case 2:ua=Ca.sent,ua.status===0&&(pr=zn.length===vr.length&&Vt.page>1?Vt.page-1:Vt.page,m.b.success("\u5220\u9664\u6210\u529F"),dn(Object(K.a)(Object(K.a)({},Vt),{},{page:pr})),dt([]));case 4:case"end":return Ca.stop()}},Vr)}));function jn(){return xn.apply(this,arguments)}return jn}()})},Pr=function(){var Gn=Object(a.a)(n.a.mark(function wr(){var zn,xn,jn,Vr,ua;return n.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(zn=$e.title,xn=null,console.log(zn,"title"),!(zn==="")){aa.next=7;break}return xn="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",mt(Object(K.a)(Object(K.a)({},$e),{},{errorDes:xn})),aa.abrupt("return");case 7:if(jn=vr.find(function(Ca){return Ca.id===($e==null?void 0:$e.id)}).title,!(zn===jn.substring(0,jn.lastIndexOf("."))||zn===jn)){aa.next=12;break}return xn="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",mt(Object(K.a)(Object(K.a)({},$e),{},{errorDes:xn})),aa.abrupt("return");case 12:return Vr=jn.includes(".")?jn.substring(jn.lastIndexOf("."),jn.length):"",aa.next=15,Object(u.a)("/api/shixuns/".concat(Ir,"/rename_data_sets.json"),{method:"post",body:{id:$e==null?void 0:$e.id,new_file_name:zn+Vr}});case 15:ua=aa.sent,ua.status===0&&(m.b.success("\u91CD\u547D\u540D\u6210\u529F"),dn(Vt),Yr(!1),mt({}));case 17:case"end":return aa.stop()}},wr)}));return function(){return Gn.apply(this,arguments)}}(),Qr=function(){var wr=$e.download_url;Wr(wr),m.b.success("\u590D\u5236\u6210\u529F"),Jr(!1),mt({})},Wr=function(wr){var zn=wr,xn=document.createElement("input");xn.value=zn,document.body.appendChild(xn),xn.select(),document.execCommand("Copy"),xn.style.display="none"},ta=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(yn.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(yn.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,zn){return ra()(zn.created_on).format("YYYY-MM-DD HH:mm")}},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:function(wr,zn){return b.a.createElement("div",{className:er.a.path},b.a.createElement(yn.a,{title:wr},b.a.createElement("span",{className:er.a.text},wr)),b.a.createElement(un.CopyToClipboard,{text:wr,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(yn.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(Ea.v)()?200:120,render:function(wr,zn){return b.a.createElement("div",{className:er.a.actionsBtns},b.a.createElement(yn.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var jn;mt(Object(ae.clone)(Object(K.a)(Object(K.a)({},zn),{},{title:zn!=null&&zn.title.includes(".")?zn==null||((jn=zn.title)===null||jn===void 0)?void 0:jn.substring(0,zn.title.lastIndexOf(".")):zn==null?void 0:zn.title}))),Yr(!0),Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(Ea.v)()&&b.a.createElement(yn.a,{title:"\u5206\u4EAB"},b.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),mt(Object(ae.clone)(zn)),Jr(!0)}})),Object(Ea.v)()&&b.a.createElement(yn.a,{title:"\u4E0B\u8F7D"},b.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(c.x)(zn.title,zn==null?void 0:zn.download_url)}})),b.a.createElement(yn.a,{title:"\u5220\u9664"},b.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),Ur(zn.id)}})))}}];return b.a.createElement("div",{className:er.a.dataset},b.a.createElement("div",{className:er.a.header},b.a.createElement("div",{className:er.a.title},"\u6570\u636E\u96C6(",Vt.total,")"),b.a.createElement("div",{className:er.a.dataPath},b.a.createElement("span",{className:er.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:nr==null?void 0:nr.folder_name,disabled:!0}),b.a.createElement(un.CopyToClipboard,{text:nr==null?void 0:nr.folder_name,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(yn.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:er.a.btns},b.a.createElement(I.a,{type:"primary",ghost:!0,onClick:function(){return Ur()},disabled:!Ze.length},"\u5220\u9664"),b.a.createElement(I.a,{type:"primary",onClick:function(){return Xe(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:er.a.content},b.a.createElement(Ue.a,{loading:ur,active:!0,paragraph:{rows:5}},Vt.total?b.a.createElement(Vn.a,{rowSelection:Cn,className:er.a.customTable,dataSource:vr,bordered:!1,rowKey:function(wr){return wr.id},rowClassName:er.a.row,columns:ta,loading:Xn,pagination:{pageSize:Vt.limit,total:Vt.total,current:Vt.page,onChange:ln,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):cn())),b.a.createElement(Ba.a,{rootIdentifier:ar==null||((hn=ar.detail)===null||hn===void 0)?void 0:hn.root_identifier,wrapClassName:er.a.uploadFileModal,id:Ir,containerId:ar==null||((Dn=ar.detail)===null||Dn===void 0)?void 0:Dn.id,local:_n==null||((tn=_n.setting)===null||tn===void 0)?void 0:tn.is_local,dispatch:In,visible:Me,onClose:function(){return Xe(!1)},onOK:dn}),b.a.createElement(f.a,{title:"\u91CD\u547D\u540D",visible:da,onOk:Pr,centered:!0,wrapClassName:er.a.renameModal,onCancel:function(){Yr(!1),mt({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:er.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(W.a,{value:$e==null?void 0:$e.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(wr){mt(Object(K.a)(Object(K.a)({},$e),{},{title:wr.target.value,errorDes:null}))},maxLength:60,suffix:"".concat(($e==null||((wn=$e.title)===null||wn===void 0)?void 0:wn.length)||0,"/60")}),($e==null?void 0:$e.errorDes)&&b.a.createElement("div",{className:er.a.errorDes},$e==null?void 0:$e.errorDes))),b.a.createElement(f.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Kr,onOk:Qr,centered:!0,wrapClassName:er.a.shareModal,onCancel:function(){Jr(!1),mt({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:er.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:$e==null?void 0:$e.download_url}))))},Ja=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,hn=Sn.shixunsDetail,Dn=Sn.practiceSetting,tn=Sn.user;return{globalSetting:Yt,shixunsDetail:hn,user:tn,practiceSetting:Dn}})(Ta),Ua=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(hn,Dn){return Dn!==0}).map(function(hn){return hn.val}).join("").substr(1):""},lt=function(Yt){var hn=Yt.shixunsDetail,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.fileType,In=Yt.path,Un=Yt.onFinish,ar=Un===void 0?function(){}:Un,qn=Object(w.i)(),Rr=Object(O.useState)(""),Ir=Object(de.a)(Rr,2),Jn=Ir[0],Ar=Ir[1],vr=Object(O.useState)([]),zr=Object(de.a)(vr,2),Lr=zr[0],$r=zr[1],nr=Object(O.useState)([]),Gt=Object(de.a)(nr,2),$t=Gt[0],Jt=Gt[1],Xn=[Xt.OriginalPicturePath,Xt.ExpectPicturePath,Xt.PicturePath],$n=Xn.includes(_n);Object(O.useEffect)(function(){if(hn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Ar(In||""),Ln()},[hn.actionTabs.key]);var Ln=function(){var Yr=Object(a.a)(n.a.mark(function _r(){var Sr,Kr,Jr,Oa,_a=arguments;return n.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return Kr=_a.length>0&&_a[0]!==void 0?_a[0]:"",dt.next=3,wn({type:"shixunsDetail/getRepository",payload:{id:qn.id,path:Kr}});case 3:Jr=dt.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&&(Oa=Jr.trees.map(function(yt){return Object(K.a)(Object(K.a)({},yt),{name:yt.name,val:yt.name})}),Jt(Oa||[]));case 6:case"end":return dt.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),rr=function(_r){var Sr=xe(Lr),Kr="".concat(Sr&&"".concat(Sr,"/")).concat(_r);_n===Xt.Path?!(Jn!=null&&Jn.includes("".concat(Kr,"\uFF1B")))&&Ar("".concat(Jn).concat(Kr,"\uFF1B")):_n===Xt.ExecPath&&Ar(Kr)},ur=function(_r){if(_r.type==="tree"){Lr.length?Lr.push({val:"/".concat(_r.val),path:_r.val}):Lr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(_r.val),path:_r.val}),$r(Lr);var Sr=xe(Lr);$n&&Ar(Sr),Ln(Sr)}},ir=function(_r,Sr){var Kr=Lr.filter(function(Oa,_a){return _a<=Sr});$r(Kr);var Jr=xe(Kr);$n&&Ar(Jr),Ln(Jr)},qr=function(){var Yr=Object(a.a)(n.a.mark(function _r(){return n.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:ar(Jn),or();case 2:case"end":return Kr.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),or=function(){Ar(""),$r([]),Jt([]),wn({type:"shixunsDetail/setActionTabs",payload:{}})},da=xe(Lr);return b.a.createElement(f.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:hn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:qr,onCancel:or},b.a.createElement("div",{className:la.a.wrap},b.a.createElement("div",{className:la.a.content},b.a.createElement("div",{className:la.a.mainPathWrap},!!(Lr!=null&&Lr.length)&&Lr.map(function(Yr,_r){return b.a.createElement("a",{key:_r,onClick:function(){return ir(Yr,_r)}},Yr.val)})),!!($t!=null&&$t.length)&&$t.map(function(Yr,_r){return Yr.type==="tree"?b.a.createElement("a",{key:_r,onClick:function(){return ur(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:Jn,onChange:function(_r){return Ar(_r.target.value)}})))},Rt=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:hn.models.index}})(lt),wt=o("dhSg"),Ht=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 rn=function(Yt){var hn=Yt.globalSetting,Dn=Yt.loading,tn=Yt.dispatch,wn=Yt.practiceSetting,_n=Yt.shixunsDetail,In=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Un=Object(O.useState)(),ar=Object(de.a)(Un,2),qn=ar[0],Rr=ar[1],Ir=Object(O.useState)(),Jn=Object(de.a)(Ir,2),Ar=Jn[0],vr=Jn[1],zr=Object(O.useRef)(),Lr=Object(O.useState)(),$r=Object(de.a)(Lr,2),nr=$r[0],Gt=$r[1],$t=Object(O.useState)(),Jt=Object(de.a)($t,2),Xn=Jt[0],$n=Jt[1],Ln=Object(O.useState)(),rr=Object(de.a)(Ln,2),ur=rr[0],ir=rr[1],qr=Object(O.useRef)(!0),or=Object(O.useState)(!0),da=Object(de.a)(or,2),Yr=da[0],_r=da[1],Sr=Object(O.useState)(700),Kr=Object(de.a)(Sr,2),Jr=Kr[0],Oa=Kr[1],_a=Object(O.useState)(""),Ze=Object(de.a)(_a,2),dt=Ze[0],yt=Ze[1],nt=Object(O.useRef)(),Me=Object(w.i)();Object(O.useEffect)(function(){Ie()},[]);var Xe=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn,Fn,Cn;return n.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,tn({type:"shixunsDetail/updateRepositoryFile",payload:{id:Me.id,path:_n==null||((cn=_n.fileContent)===null||cn===void 0||((Fn=cn.params)===null||Fn===void 0))?void 0:Fn.path,content:qn,secret_repository:Yr?null:!0}});case 2:Cn=Pr.sent,Cn!=null&&Cn.content&&(m.b.info("\u4FDD\u5B58\u6210\u529F"),tn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},wn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Pr.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),Ie=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn,Fn,Cn,Ur,Pr;return n.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&&(cn=Cn.data)!==null&&cn!==void 0&&(Fn=cn.data_list)!==null&&Fn!==void 0&&Fn.length)){Wr.next=6;break}return wt.a.publish("pod-restrict-data",{identifier:Cn==null||((Ur=Cn.data)===null||Ur===void 0)?void 0:Ur.identifier,data_list:Cn==null||((Pr=Cn.data)===null||Pr===void 0)?void 0:Pr.data_list}),Wr.abrupt("return");case 6:Cn!=null&&Cn.url&&yt(Cn==null?void 0:Cn.url);case 7:case"end":return Wr.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),et=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn;return n.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(cn=Cn.sent,!((cn==null?void 0:cn.status)!==0)){Cn.next=5;break}return Cn.abrupt("return");case 5:cn!=null&&cn.remainingSeconds?(Gt(Date.now()+cn.remainingSeconds*1e3),$n(cn.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(cn.remainingSeconds-300)*1e3)):$e();case 6:case"end":return Cn.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),$e=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 dn=Object(a.a)(n.a.mark(function Fn(){return n.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:mt();case 1:case"end":return Ur.stop()}},Fn)}));function cn(){return dn.apply(this,arguments)}return cn}()})},mt=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn;return n.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(cn=Cn.sent,!((cn==null?void 0:cn.status)!==0)){Cn.next=6;break}return Cn.abrupt("return");case 6:vr(Lt.Finish),yt(cn.url),zr.current=cn.port,m.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return Cn.stop()}},dn)}));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(Ht,{value:nr,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 dn=Object(a.a)(n.a.mark(function Fn(){var Cn;return n.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,Object(s.a)({identifier:Me.id});case 2:if(Cn=Pr.sent,!(Cn.status===0)){Pr.next=7;break}return Pr.next=6,et();case 6:m.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Pr.stop()}},Fn)}));function cn(){return dn.apply(this,arguments)}return cn}()})},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(){mt()}})},Vt=function(dn){tn({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},pn=function(){var ln=Object(a.a)(n.a.mark(function dn(cn){return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.Pb)({id:Me.id,startup_file:cn});case 2:Ie(),tn({type:"practiceSetting/getCommonData",payload:Object(K.a)({},Me)});case 4:case"end":return Cn.stop()}},dn)}));return function(cn){return ln.apply(this,arguments)}}();return b.a.createElement("div",{className:fa.a.warehouse},b.a.createElement(v.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:dt})),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(dn){},src:dt,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(dn){return pn(dn)}}))},En=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.practiceSetting,tn=Sn.shixunsDetail;return{globalSetting:hn,loading:Yt,practiceSetting:Dn,shixunsDetail:tn}})(rn),gn=function(Yt){var hn=Yt.tabsActive,Dn=Object(g.a)(Yt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,hn==="information"&&b.a.createElement(tt,null),hn==="warehouse"&&b.a.createElement(ut.default,null),hn==="level"&&b.a.createElement(Ye,Dn),hn==="collaborate"&&b.a.createElement(Wn,Dn),hn==="setting"&&b.a.createElement(Kn.a,null),hn==="environment"&&b.a.createElement(Zt,Dn),hn==="dataset"&&b.a.createElement(Ja,null),hn==="service"&&b.a.createElement(En,Dn))},Nn=gn,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 hn,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.practiceSetting,Un=Object(g.a)(Yt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),ar=In.base_info_warning,qn=In.challenges_warning,Rr=In.id,Ir=In.repository_warning,Jn=In.sideBar,Ar=In.service_warning,vr=Object(w.h)(),zr=Object(w.i)();Object(O.useEffect)(function(){var nr,Gt,$t=vr==null||((nr=vr.query)===null||nr===void 0)?void 0:nr.tabId,Jt=vr.pathname.split("/").length,Xn=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Ln){return Ln.tabId!=="dataset"}):kn,$n=Xn.map(function(Ln){return Ln.tabId}).includes($t);if($t&&$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:$t}});return}if(Jt>4){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!$t||$t&&!$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[_n==null||((hn=_n.detail)===null||hn===void 0)?void 0:hn.windows_vnc]),Object(O.useEffect)(function(){return function(){wn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},In.sideBar),{},{selectPath:""})})}},[zr.id]);var Lr=function(Gt){var $t;if(Gt===Jn.tabsActive)return;var Jt=function(){E.d.push("/shixuns/".concat(Rr,"/edit?tabId=").concat(Gt)),wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Gt,selectPath:"",confirmLeave:!1}})};In!=null&&($t=In.sideBar)!==null&&$t!==void 0&&$t.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,$t=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Jt){return Jt.tabId!=="dataset"}):kn;return $t.filter(function(Jt){var Xn;return _n!=null&&(Xn=_n.detail)!==null&&Xn!==void 0&&Xn.is_jupyter_lab?Jt.tabId!=="level":Jt.tabId!=="service"}).map(function(Jt){var Xn=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 Lr(Ln)}},$n,b.a.createElement("span",{className:an.a.name},Xn),Ln==="information"&&ar&&b.a.createElement(yn.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="level"&&qn&&b.a.createElement(yn.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="service"&&Ar&&b.a.createElement(yn.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="warehouse"&&Ir&&b.a.createElement(yn.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(yn.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:""})))))},Yn=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.shixunsDetail,tn=Sn.practiceSetting;return{globalSetting:hn,loading:Yt,practiceSetting:tn,shixunsDetail:Dn}})(Rn),mr=function(Yt){var hn=Yt.globalSetting,Dn=Yt.loading,tn=Yt.dispatch,wn=Yt.practiceSetting,_n=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting"]),In=wn.sideBar,Un=In.tabsActive,ar=Object(w.i)();return Object(O.useEffect)(function(){return tn({type:"globalSetting/headerFooterToggle",payload:!1}),tn({type:"shixunsDetail/getShixunsDetail",payload:ar}),tn({type:"shixunsDetail/getSettingsData",payload:ar}),function(){tn({type:"globalSetting/headerFooterToggle",payload:!0}),tn({type:"practiceSetting/setParams",payload:{id:""}})}},[]),b.a.createElement("div",{className:C.a.practiceSetting},b.a.createElement("div",{className:C.a.wrapHeader},b.a.createElement(P,null)),b.a.createElement("div",{className:C.a.wrapLayout},b.a.createElement("div",{className:C.a.wrapSidebar},b.a.createElement(Yn,null)),b.a.createElement("div",{className:C.a.wrapContent},b.a.createElement(Nn,Object(M.a)({},_n,{tabsActive:wn.sideBar.tabsActive})))))},Br=z.default=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.practiceSetting;return{globalSetting:hn,loading:Yt,practiceSetting:Dn}})(mr)},WYAk:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){(function(){var g=M,O=g.lib,b=O.Base,y=g.enc,C=y.Utf8,A=g.algo,m=A.HMAC=b.extend({init:function(e,f){e=this._hasher=new e.init,typeof f=="string"&&(f=C.parse(f));var a=e.blockSize,l=a*4;f.sigBytes>l&&(f=e.finalize(f)),f.clamp();for(var n=this._oKey=f.clone(),i=this._iKey=f.clone(),r=n.words,c=i.words,h=0;h0&&p.prevInput=="\u200B"?Ha(B,ol)(B):Bn++<10?j.detectingSelectAll=setTimeout(Qn,500):(j.selForContextMenu=null,j.input.reset())};j.detectingSelectAll=setTimeout(Qn,200)}}if(A&&m>=9&&nn(),P){Ue(t);var Tn=function(){Bt(window,"mouseup",Tn),setTimeout(zt,20)};je(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&&(je(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&&(Bt(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 Ra(t){t.off=Bt,t.on=je,t.wheelEventPixels=Hi,t.Doc=Ti,t.splitLines=Fe,t.countColumn=K,t.findColumn=ye,t.isWordChar=te,t.Pass=Se,t.signal=Et,t.Line=hn,t.changeEnd=Zr,t.scrollbarModel=xo,t.Pos=en,t.cmpPos=On,t.modes=pt,t.mimeModes=bt,t.resolveMode=ct,t.getMode=Nt,t.modeExtensions=jt,t.extendMode=on,t.copyState=vn,t.startState=Kn,t.innerMode=Wn,t.commands=qo,t.keyMap=vo,t.keyName=xs,t.isModifierKey=is,t.lookupKey=_o,t.normalizeKeyMap=_l,t.StringStream=Hn,t.SharedTextMarker=Qo,t.TextMarker=Gi,t.LineWidget=ns,t.e_preventDefault=Ce,t.e_stopPropagation=Le,t.e_stop=Ue,t.addClass=H,t.contains=N,t.rmClass=x,t.keyNames=Ro}eu(Ya),Ft(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 Ye(Ti),Ya.inputStyles={textarea:Hr,contenteditable:kt},Ya.defineMode=function(t){!Ya.defaults.mode&&t!="null"&&(Ya.defaults.mode=t),Dt.apply(this,arguments)},Ya.defineMIME=It,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,Ra(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 M=o("0Owb"),g=o("PpiC"),O=o("q1tI"),b=o.n(O),y=o("EkPF"),C=o.n(y),A=o("miYZ"),m=o("tsqr"),e=o("2qtc"),f=o("kLXV"),a=o("9og8"),l=o("WmNS"),n=o.n(l),i=o("auZk"),r=o.n(i),c=o("1vsH"),h=o("Ufr+"),d=o.n(h),s=o("HBuW"),u=o("ErOA"),w=o("Ty5D"),E=o("9kvl"),_=function(Yt){var hn,Dn,tn=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.shixunsDetail,ar=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),qn=Object(w.h)(),Rr=Object(O.useRef)(""),Ir=Object(w.i)(),Jn=In.title,Ar=In.base_info_warning,vr=In.challenges_warning,zr=In.service_warning,Lr=In.repository_warning,$r=In.mirror_warning;Object(O.useEffect)(function(){var ur;Rr.current=(ur=qn.pathname.split("/"))===null||ur===void 0?void 0:ur[2],_n({type:"practiceSetting/setParams",payload:{id:Rr.current}}),_n({type:"practiceSetting/getCommonData",payload:{id:Rr.current}})},[qn.pathname]),Object(O.useEffect)(function(){return Object(c.X)(Jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(c.X)()}});var nr=function(){var ur=Object(a.a)(n.a.mark(function ir(){return n.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Gt();case 2:E.d.push("/shixuns/".concat(Rr.current,"/challenges"));case 3:case"end":return or.stop()}},ir)}));return function(){return ur.apply(this,arguments)}}(),Gt=function(){return new Promise(function(ir,qr){var or;In!=null&&(or=In.sideBar)!==null&&or!==void 0&&or.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}}),ir()},onCancel:function(){qr()}}):ir()})},$t=function(ir){var qr;if(ir===(In==null?void 0:In.sideBar.tabsActive))return;var or=function(){E.d.push("/shixuns/".concat(Rr.current,"/edit?tabId=").concat(ir)),_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:ir,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(){or()}}):or()},Jt=function ur(ir){var qr;ir=(qr=ir)!==null&&qr!==void 0&&qr.includes(".json")?ir:"".concat(ir,".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 or=Object(a.a)(n.a.mark(function Yr(){var _r,Sr;return n.a.wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:return Jr.next=2,Object(u.a)("/api"+ir,{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(c.S)("/tasks/".concat(Sr.game_identifier)),Jr.abrupt("return");case 12:(Sr==null?void 0:Sr.status)===2?ur(Sr==null?void 0:Sr.message):(Sr==null?void 0:Sr.status)===3&&Xn(Sr==null?void 0:Sr.message);case 13:case"end":return Jr.stop()}},Yr)}));function da(){return or.apply(this,arguments)}return da}()})},Xn=function(ir){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",ir,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},$n=function(){var ur=Object(a.a)(n.a.mark(function ir(qr,or){var da,Yr,_r;return n.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Kr.next=2,Gt();case 2:if(Object(c.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:Rr.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..."}}),!or){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(c.S)(or?"/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(c.q)():(_r==null?void 0:_r.status)===2?Jt(_r==null?void 0:_r.message):(_r==null?void 0:_r.status)===3&&Xn(_r==null?void 0:_r.message);case 22:case"end":return Kr.stop()}},ir)}));return function(qr,or){return ur.apply(this,arguments)}}(),Ln=function(){var ur=Object(a.a)(n.a.mark(function ir(){return n.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Gt();case 2:_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return or.stop()}},ir)}));return function(){return ur.apply(this,arguments)}}(),rr=function(ir){var qr={borderBottomColor:(In==null?void 0:In.sideBar.tabsActive)===ir?"#0152d9":"transparent"};return qr};return b.a.createElement("div",{className:r.a.header},b.a.createElement("aside",{className:r.a.title},b.a.createElement("i",{onClick:nr,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),b.a.createElement("span",{className:r.a.edit},Jn||"\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:r.a.schedule},b.a.createElement("div",null,b.a.createElement("span",{style:rr("information"),className:r.a.clickWarp,onClick:function(){return $t("information")}},Ar?b.a.createElement("span",{className:r.a.num},"1"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.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:r.a.clickWarp,onClick:function(){return $t("warehouse")}},Lr?b.a.createElement("span",{className:r.a.num},"2"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u4EE3\u7801\u4ED3\u5E93")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Un==null?void 0:Un.detail)&&!(Un!=null&&(hn=Un.detail)!==null&&hn!==void 0&&hn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:rr("level"),className:r.a.clickWarp,onClick:function(){return $t("level")}},vr?b.a.createElement("span",{className:r.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.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:r.a.clickWarp,onClick:function(){return $t("service")}},zr?b.a.createElement("span",{className:r.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.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:r.a.clickWarp,onClick:function(){return $t("environment")}},$r?b.a.createElement("span",{className:r.a.num},"4"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:r.a.subject},"\u5B9E\u9A8C\u73AF\u5883")))),b.a.createElement("aside",{className:r.a.btns},b.a.createElement("div",{className:r.a.simulate,onClick:function(){return $n(Rr.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},P=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.practiceSetting,tn=Sn.shixunsDetail;return{globalSetting:hn,loading:Yt,practiceSetting:Dn,shixunsDetail:tn}})(_),R=o("sRBo"),x=o("kaz8"),S=o("14J3"),v=o("BMrR"),T=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"),ye=o("+Xk9"),ue=o.n(ye),se=o("FTkQ"),$=o.n(se),me=function(Yt){var hn=Yt.InputRight,Dn=Yt.value,tn=Dn===void 0?[]:Dn,wn=Yt.onChange,_n=Object(g.a)(Yt,["InputRight","value","onChange"]),In=Object(O.useState)(),Un=Object(de.a)(In,2),ar=Un[0],qn=Un[1],Rr=function(Ar){var vr=tn.filter(function(zr,Lr){return Lr!==Ar});wn(vr)},Ir=function(Ar){if(Ar.preventDefault(),!ar)return;if(tn.findIndex(function(vr){return vr.name===ar})>-1){m.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}wn([].concat(Object(be.a)(tn),[{id:null,name:ar}])),qn(null)};return b.a.createElement("div",null,b.a.createElement(W.a,Object(M.a)({bordered:!1,style:{width:600},value:ar,onChange:function(Ar){return qn(Ar.target.value)},onPressEnter:Ir,onBlur:Ir},_n)),hn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},tn==null?void 0:tn.map(function(Jn,Ar){return b.a.createElement("div",{key:Ar,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},Jn.name),b.a.createElement("img",{src:$.a,className:ue.a.s2,onClick:function(){return Rr(Ar)}}))})))},re=me,ae=o("LvDl"),Oe=o("m3rI"),le=o("hW5Z"),te=o.n(le),Q=function(Yt){var hn=Yt.dispatch,Dn=Yt.onCancel,tn=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:tn,className:te.a.save},"\u4FDD\u5B58"))},J=Object(E.a)()(Q),ve=o("UqFu"),_e=o("z7Xi"),Ae=o("jN4g"),Je=function(Yt){var hn,Dn,tn=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.problemset,ar=Yt.shixunsDetail,qn=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Rr=he.a.useForm(),Ir=Object(de.a)(Rr,1),Jn=Ir[0],Ar=Object(O.useState)({}),vr=Object(de.a)(Ar,2),zr=vr[0],Lr=vr[1],$r=Object(O.useState)(!1),nr=Object(de.a)($r,2),Gt=nr[0],$t=nr[1],Jt=Object(O.useState)(!1),Xn=Object(de.a)(Jt,2),$n=Xn[0],Ln=Xn[1],rr=Object(O.useState)(""),ur=Object(de.a)(rr,2),ir=ur[0],qr=ur[1],or=Object(O.useState)(""),da=Object(de.a)(or,2),Yr=da[0],_r=da[1],Sr=Object(O.useRef)({}),Kr=Object(O.useRef)(""),Jr=Object(O.useRef)(null),Oa=Object(O.useRef)(Object(ae.throttle)(function(){return Me()},2e3,{leading:!0,trailing:!1})).current,_a=In.id;Object(O.useEffect)(function(){if(!_a)return;dt()},[_a]),Object(O.useEffect)(function(){return JSON.stringify(zr)!=="{}"&&Ze(),function(){clearTimeout(Jr.current)}},[zr,ir,Yr]);var Ze=function(){clearTimeout(Jr.current),Jr.current=setTimeout(function(){!Object(ae.isEqual)(zr,Sr.current)||ir!==Kr.current||Yr!==Kr.current?_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},dt=function(){var dn=Object(a.a)(n.a.mark(function cn(){var Fn,Cn,Ur,Pr,Qr,Wr,ta,zn,wr;return n.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return _n({type:"problemset/getEditDisciplines",payload:{source:"all_shixun"}}),bn.next=3,Object(u.a)("/api/shixuns/".concat(_a,"/edit_base_info.json"),{method:"get"});case 3:Fn=bn.sent,Fn.status===0&&(zn=Object(K.a)(Object(K.a)({},Fn.data),{},{description:Object(ve.a)(Fn.data.description)}),wr={description:zn.description,shixun_tags:zn.shixun_tags,name:zn.name,course:(zn==null||((Cn=zn.disciplines)===null||Cn===void 0)?void 0:Cn.length)>0?[zn==null||((Ur=zn.disciplines)===null||Ur===void 0||((Pr=Ur[0])===null||Pr===void 0))?void 0:Pr.id,zn==null||((Qr=zn.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:Fn.data.jupyter_show_description},Jn.setFieldsValue(wr),Sr.current=Object(K.a)({},wr),Kr.current=zn.attachment_id||"",Lr(Object(K.a)({},wr)),qr(zn.attachment_id||""),_r(zn.cover_image_id||""));case 5:case"end":return bn.stop()}},cn)}));return function(){return dn.apply(this,arguments)}}(),yt=function(cn,Fn){Lr(Object(K.a)({},Fn))},nt=function(){Ie()},Me=function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Jn.submit()},Xe=function(cn){var Fn,Cn=cn.name,Ur=cn.description,Pr=cn.shixun_tags,Qr=cn.course,Wr=cn.jupyter_show_description,ta=Wr===void 0?!1:Wr,zn={name:Cn,description:Ur,shixun_tags:Pr,attachment_id:ir,cover_image_id:Yr,sub_discipline_ids:Qr[1]};(Fn=ar.detail)!==null&&Fn!==void 0&&Fn.is_jupyter_lab&&(zn=Object(K.a)(Object(K.a)({},zn),{},{jupyter_show_description:ta}));var wr=Object(u.a)("/api/shixuns/".concat(_a,"/base_info_save.json"),{method:"post",body:{shixun:Object(K.a)({},zn)}});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=ir)})},Ie=function(){var cn,Fn=function(){E.d.push("/shixuns/".concat(_a,"/challenges")),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};In!=null&&(cn=In.sideBar)!==null&&cn!==void 0&&cn.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(){Fn()}}):Fn()};function et(dn){var cn=dn.type==="image/jpeg"||dn.type==="image/png";return cn||m.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),cn}var $e=b.a.createElement(I.a,{loading:Gt,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),mt=b.a.createElement(I.a,{loading:$n,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function rt(dn,cn){var Fn=new FileReader;Fn.addEventListener("load",function(){return cn(Fn.result)}),Fn.readAsDataURL(dn)}var Mt=function(cn){if(cn.file.status==="uploading"){$t(!0);return}if(cn.file.status==="done"){var Fn,Cn;$t(!1),qr(cn==null||((Fn=cn.file)===null||Fn===void 0||((Cn=Fn.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/"+ir,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return qr("")},style:{fontSize:"16px",color:"red"}})))},pn=function(cn){if(cn.file.status==="uploading"){Ln(!0);return}if(cn.file.status==="done"){var Fn,Cn;Ln(!1),_r(cn==null||((Fn=cn.file)===null||Fn===void 0||((Cn=Fn.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:Jn,scrollToFirstError:!0,layout:"vertical",onValuesChange:yt,onFinish:Xe},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(((hn=zr.name)===null||hn===void 0?void 0:hn.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(v.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},ir?Vt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:et,onChange:Mt},$e))),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(v.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:et,onChange:pn},mt))),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=ar.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(x.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:Oa,onCancel:nt,loading:Gt||$n}))},tt=Object(E.a)(function(Sn){var Yt=Sn.problemset,hn=Sn.loading,Dn=Sn.globalSetting,tn=Sn.practiceSetting,wn=Sn.shixunsDetail;return{globalSetting:Dn,loading:hn,practiceSetting:tn,problemset:Yt,shixunsDetail:wn}})(Je),ut=o("ch0t"),ft=o("R9oj"),vt=o("ECub"),_t=o("T2oS"),Ve=o("W9HT"),je=o("bKvZ"),ht=o.n(je),Bt=o("KeGQ"),Et=o.n(Bt),Pt=o("NLgs"),qe=o("ngQI"),He=function(Yt){var hn=Yt.globalSetting,Dn=Yt.dispatch,tn=Yt.practiceSetting,wn=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting"]),_n=Object(O.useState)(!1),In=Object(de.a)(_n,2),Un=In[0],ar=In[1],qn=Object(O.useState)({}),Rr=Object(de.a)(qn,2),Ir=Rr[0],Jn=Rr[1],Ar=Object(O.useState)(!0),vr=Object(de.a)(Ar,2),zr=vr[0],Lr=vr[1],$r=Object(O.useState)(!1),nr=Object(de.a)($r,2),Gt=nr[0],$t=nr[1],Jt=Object(O.useState)(null),Xn=Object(de.a)(Jt,2),$n=Xn[0],Ln=Xn[1],rr=Object(O.useRef)(!1),ur=tn.id,ir=tn.updateIndex,qr=tn.is_published,or=tn.newQuestion,da=Ir.challenge_list,Yr=da===void 0?[]:da;Object(O.useEffect)(function(){return ur?(Sr(),function(){Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[ur,ir]),Object(O.useEffect)(function(){_r()},[wn.location]);var _r=function(){var et,$e=wn.location,mt=$e.pathname.split("/");(mt.includes("newquestion")||mt.includes("new")||$e!=null&&(et=$e.query)!==null&&et!==void 0&&et.tabId)&&(rr.current=!0)},Sr=function(){var Ie=Object(a.a)(n.a.mark(function et(){var $e,mt,rt,Mt,Vt,pn,ln;return n.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:return Lr(!0),cn.next=3,Object(s.J)({id:ur});case 3:rt=cn.sent,rt!=null&&($e=rt.challenge_list)!==null&&$e!==void 0&&$e.length&&(Mt=wn.location.pathname.split("/"),Vt=rt.challenge_list.find(function(Fn){return String(Fn.challenge_id)===Mt[4]}),Mt.includes("newquestion")||Mt.includes("new")?(ln=rt.challenge_list[((pn=rt.challenge_list)===null||pn===void 0?void 0:pn.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&&(mt=rt.challenge_list)!==null&&mt!==void 0&&mt.length||Ln(null),Jn(rt),Lr(!1);case 8:case"end":return cn.stop()}},et)}));return function(){return Ie.apply(this,arguments)}}(),Kr=function(et){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(Ln(et.challenge_id),Ze(et),$e){var mt="/shixuns/".concat(ur,"/edit/").concat(et.challenge_id,"/").concat(et.st===1?"editquestion":"editcheckpoint");E.d.push(mt)}},Jr=function(et,$e){$e.stopPropagation();var mt=et.challenge_id,rt=function(){var Mt=Object(a.a)(n.a.mark(function Vt(){var pn,ln,dn,cn;return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.v)({id:ur,challengesId:mt});case 2:if(pn=Cn.sent,!(pn.status===1)){Cn.next=12;break}return Cn.next=6,Object(s.J)({id:ur});case 6:if(cn=Cn.sent,Jn(cn),!(mt===$n&&(ln=cn.challenge_list)!==null&&ln!==void 0&&ln.length)){Cn.next=11;break}return Kr(cn.challenge_list[0]),Cn.abrupt("return");case 11:(dn=cn.challenge_list)!==null&&dn!==void 0&&dn.length||(Ln(null),rr.current=!0,Ze({}),E.d.push("/shixuns/".concat(ur,"/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})},Oa=function(et,$e,mt){var rt=Array.from(et),Mt=rt.splice($e,1),Vt=Object(de.a)(Mt,1),pn=Vt[0];return rt.splice(mt,0,pn),rt},_a=function(et,$e){if(!et.destination)return;var mt=Oa($e,et.source.index,et.destination.index);Jn(Object(K.a)(Object(K.a)({},Ir),{},{challenge_list:mt}));var rt=mt.map(function(Mt){return Mt.challenge_id});Object(s.Kb)({id:ur,ids:rt}).then(function(Mt){Mt.status!==0&&Jn(Object(K.a)(Object(K.a)({},Ir),{},{challenge_list:$e}))})},Ze=function(et){Dn({type:"practiceSetting/setParams",payload:{selectQuestionParams:et}})},dt=function(){var Ie=Object(a.a)(n.a.mark(function et($e,mt){var rt;return n.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!($e===$n)){Vt.next=2;break}return Vt.abrupt("return");case 2:return Vt.next=4,yt();case 4:Ln($e),Ze(mt),Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),rt="/shixuns/".concat(ur,"/edit/").concat($e,"/").concat(mt.st===1?"editquestion":"editcheckpoint"),E.d.push(rt);case 9:case"end":return Vt.stop()}},et)}));return function($e,mt){return Ie.apply(this,arguments)}}(),yt=function(){return new Promise(function(et,$e){var mt;tn!=null&&(mt=tn.sideBar)!==null&&mt!==void 0&&mt.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}}),et()},onCancel:function(){$e()}}):et()})},nt=function(et){return b.a.createElement(b.a.Fragment,null,b.a.createElement(qe.a,{onDragEnd:function(mt){return _a(mt,et)}},b.a.createElement(qe.c,{droppableId:"droppable"},function($e,mt){return b.a.createElement("div",Object(M.a)({ref:$e.innerRef},$e.droppableProps,{style:{width:"100%"}}),et.map(function(rt,Mt){var Vt=rt.st,pn=rt.name,ln=rt.challenge_id;return b.a.createElement(qe.b,{key:ln,draggableId:ln.toString(),index:Mt,isDragDisabled:qr},function(dn,cn){return b.a.createElement("div",Object(M.a)({ref:dn.innerRef},dn.draggableProps,dn.dragHandleProps,{className:$n===ln?ht.a.listActive:ht.a.list,onClick:function(){return dt(ln,rt)}}),b.a.createElement("span",{className:ht.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:ht.a.s2},"\u7B2C",Mt+1,"\u5173: ",pn),!qr&&b.a.createElement("span",{className:ht.a.s3,onClick:function(Cn){return Jr(rt,Cn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),or&&b.a.createElement("div",{className:ht.a.listActive},b.a.createElement("span",{className:ht.a.s1},(or==null?void 0:or.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:ht.a.s2},"\u7B2C",et.length+1,"\u5173: ",or==null?void 0:or.name)),!qr&&b.a.createElement("div",{className:ht.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},Me=function(){var Ie=Object(a.a)(n.a.mark(function et($e){return n.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,yt();case 2:$e==="new"?E.d.push("/shixuns/".concat(ur,"/edit/new")):E.d.push("/shixuns/".concat(ur,"/edit/newquestion")),ar(!1),Ln(void 0),Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:$e==="new"?0:1,name:""}}});case 6:case"end":return rt.stop()}},et)}));return function($e){return Ie.apply(this,arguments)}}(),Xe=function(){if(Object(Pt.b)(Dn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;ar(!Un)};return b.a.createElement("div",{className:ht.a.level},b.a.createElement("aside",{className:ht.a.left,style:{width:Gt?"0":"25%"}},b.a.createElement("div",{className:ht.a.container},b.a.createElement("div",{className:ht.a.title},"\u4EFB\u52A1\u5173\u5361(",Yr.length,")"),b.a.createElement("div",{className:ht.a.listWrap},zr?b.a.createElement(Ve.a,{size:"large"}):!!Yr.length||!!or?nt(Yr):b.a.createElement(vt.a,{image:Et.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Gt&&b.a.createElement("div",{className:ht.a.btns},b.a.createElement("aside",{className:ht.a.btnsWrap},b.a.createElement("div",{style:{transform:Un?"rotate(45deg)":"rotate(0deg)"},className:ht.a.icon,onClick:Xe},"+"),b.a.createElement("div",{className:ht.a.btn,style:{left:Un?20:-154}},b.a.createElement("div",{className:ht.a.d1,onClick:function(){return Me("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),b.a.createElement("div",{className:ht.a.d2,onClick:function(){return Me("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),b.a.createElement("div",{className:Gt?ht.a.elseShrink:ht.a.shrink,onClick:function(){return $t(!Gt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:ht.a.right,id:"modal-level-question"},$n===null&&rr.current?b.a.createElement("div",{className:ht.a.addIcon},b.a.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):wn.children))},Ye=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,hn=Sn.practiceSetting;return{globalSetting:Yt,practiceSetting:hn}})(He),Ce=o("DjyN"),Le=o("NUBc"),We=o("cWXX"),Ue=o("/ezw"),ze=o("qVdP"),st=o("jsC+"),Ct=o("lUTK"),Wt=o("BvKs"),Qt=o("7Kak"),Kt=o("9yH6"),Ot=o("Qvpy"),Fe=o.n(Ot),at=function(Yt){var hn=Yt.shixunsDetail,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.onReloadData,In=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Un=Object(O.useState)(),ar=Object(de.a)(Un,2),qn=ar[0],Rr=ar[1],Ir=Object(O.useState)([]),Jn=Object(de.a)(Ir,2),Ar=Jn[0],vr=Jn[1];Object(O.useEffect)(function(){hn.actionTabs.key==="Collaborators-ChangeManager"&&zr()},[hn.actionTabs.key]);var zr=function(){var Gt=Object(a.a)(n.a.mark(function $t(){var Jt,Xn;return n.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,wn({type:"shixunsDetail/getChangeManager",payload:{id:(Jt=hn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id}});case 2:Xn=Ln.sent,vr(Xn||[]);case 4:case"end":return Ln.stop()}},$t)}));return function(){return Gt.apply(this,arguments)}}(),Lr=function(){var $t;wn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:($t=hn.actionTabs.params)===null||$t===void 0?void 0:$t.id}}})},$r=function(){var Gt=Object(a.a)(n.a.mark(function $t(){var Jt,Xn;return n.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=hn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id,user_id:qn}});case 5:Xn=Ln.sent,nr(),Xn&&(_n(),m.b.info(Xn.message));case 8:case"end":return Ln.stop()}},$t)}));return function(){return Gt.apply(this,arguments)}}(),nr=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}}),Rr(null)};return b.a.createElement(f.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:hn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:tn.effects["shixunsDetail/changeManager"],onOk:$r,onCancel:nr},b.a.createElement("div",null,b.a.createElement("div",{className:Fe.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:Fe.a.content},Ar.length?b.a.createElement(Kt.a.Group,{value:qn,onChange:function($t){return Rr($t.target.value)}},Ar.map(function(Gt,$t){return b.a.createElement(Kt.a,{className:Fe.a.radio,key:$t,value:Gt.user_id},Gt.name)})):b.a.createElement("div",{className:Fe.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:Fe.a.colorBlue,onClick:Lr},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},it=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:hn}})(at),Pe=o("Znn+"),Qe=o("ZTPi"),pt=o("ju9d"),bt=o("DDK+"),Dt=Qe.a.TabPane,It=function(Sn){var Yt=Sn.visible,hn=Sn.onCancel,Dn=Sn.onSelectGroup,tn=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:hn,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},b.a.createElement(Qe.a,{defaultActiveKey:"1"},b.a.createElement(Dt,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(pt.a,{onCancel:hn,container_type:2,container_id:tn,onSelect:wn})),b.a.createElement(Dt,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(bt.a,{onCancel:hn,onSelect:Dn}))))},ct=o("oaGz"),Nt=o.n(ct),jt=o("8Skl"),on=o("ruvs"),vn=function(Yt){var hn,Dn,tn,wn,_n,In,Un=Yt.shixunsDetail,ar=Yt.globalSetting,qn=Yt.loading,Rr=Yt.user,Ir=Yt.dispatch,Jn=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Ar=Object(O.useRef)(),vr=Object(O.useState)(0),zr=Object(de.a)(vr,2),Lr=zr[0],$r=zr[1],nr=Object(O.useState)([]),Gt=Object(de.a)(nr,2),$t=Gt[0],Jt=Gt[1],Xn=Object(O.useState)({id:null,page:1}),$n=Object(de.a)(Xn,2),Ln=$n[0],rr=$n[1],ur=(hn=Rr.userInfo)===null||hn===void 0||((Dn=hn.shixun)===null||Dn===void 0)?void 0:Dn.editable,ir=((tn=Rr.userInfo)===null||tn===void 0?void 0:tn.role)<=2||((wn=Rr.userInfo)===null||wn===void 0||((_n=wn.shixun)===null||_n===void 0)?void 0:_n.is_creator);Object(O.useEffect)(function(){Ar.current=Jn.match.params.id,Ln.id=Ar.current,rr(Ln),qr(Ln)},[]);var qr=function(){var Ze=Object(a.a)(n.a.mark(function dt(yt){var nt;return n.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,Ir({type:"shixunsDetail/getCollaboratorsData",payload:yt});case 2:nt=Xe.sent,nt&&(Jt(nt.members||[]),$r(nt.member_count));case 4:case"end":return Xe.stop()}},dt)}));return function(yt){return Ze.apply(this,arguments)}}(),or=function(){var Ze=Object(a.a)(n.a.mark(function dt(){var yt;return n.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Ln.page=1,rr(Ln),yt=Object(on.b)(),Me.next=5,Ir({type:"user/getUserInfo",payload:yt});case 5:return Me.next=7,qr(Ln);case 7:case"end":return Me.stop()}},dt)}));return function(){return Ze.apply(this,arguments)}}(),da=function(dt){Ln.page=dt,rr(Ln),qr(Ln)},Yr=function(dt){f.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Nt.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var yt=Object(a.a)(n.a.mark(function Me(){var Xe,Ie;return n.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Ir({type:"shixunsDetail/deleteCollaborators",payload:{id:Ar.current,userId:dt}});case 2:if(Ie=$e.sent,!(((Xe=Rr.userInfo)===null||Xe===void 0?void 0:Xe.user_id)===dt)){$e.next=6;break}return E.d.push("/shixuns"),$e.abrupt("return");case 6:m.b.info(Ie==null?void 0:Ie.message),Ln.page=1,rr(Ln),qr(Ln);case 10:case"end":return $e.stop()}},Me)}));function nt(){return yt.apply(this,arguments)}return nt}()})},_r=function(){Ir({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Ar.current}}})};function Sr(Ze,dt,yt,nt){return Kr.apply(this,arguments)}function Kr(){return Kr=Object(a.a)(n.a.mark(function Ze(dt,yt,nt,Me){return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,Ir({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:dt,user_id:yt,editable:nt?0:1}});case 2:qr(Ln);case 3:case"end":return Ie.stop()}},Ze)})),Kr.apply(this,arguments)}var Jr=function(){Ir({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Ar.current}}})};function Oa(){Ir({type:"shixunsDetail/setActionTabs",payload:{}})}var _a={visible:Un.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Oa,shixunId:Ar.current,onSelectCollaborator:function(){var Ze=Object(a.a)(n.a.mark(function yt(nt){var Me;return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Oa(),Ie.next=3,Ir({type:"shixunsDetail/addCollaborator",payload:{id:Ar.current,user_ids:nt}});case 3:Me=Ie.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),or());case 5:case"end":return Ie.stop()}},yt)}));function dt(yt){return Ze.apply(this,arguments)}return dt}(),onSelectGroup:function(){var Ze=Object(a.a)(n.a.mark(function yt(nt){var Me;return n.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Oa(),Ie.next=3,Ir({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Ar.current,group_id:nt.group_id}});case 3:Me=Ie.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),or());case 5:case"end":return Ie.stop()}},yt)}));function dt(yt){return Ze.apply(this,arguments)}return dt}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Nt.a.wrap},b.a.createElement("div",{className:Nt.a.content},((In=Un.detail)===null||In===void 0?void 0:In.identity)<5&&b.a.createElement("div",{className:Nt.a.head},b.a.createElement("span",{className:Nt.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Lr,"\u4EBA\uFF09"),b.a.createElement("div",null,ir&&b.a.createElement(I.a,{type:"primary",ghost:!0,className:Nt.a.button,style:{marginRight:"20px"},onClick:_r},"\u66F4\u6362\u7BA1\u7406\u5458"),ur&&b.a.createElement(I.a,{type:"primary",className:Nt.a.button,style:{marginRight:"40px"},onClick:Jr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Nt.a.list},b.a.createElement(Ue.a,{loading:qn.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},$t.map(function(Ze,dt){var yt,nt,Me,Xe,Ie,et,$e,mt;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Nt.a.itemWrap,key:dt},b.a.createElement("a",{href:(yt=Ze.user)===null||yt===void 0?void 0:yt.user_url,target:"_blank",className:Nt.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Nt.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:Nt.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Nt.a.itemContent},b.a.createElement("p",{className:Nt.a.nameWrap},b.a.createElement("a",{href:Ze.user.user_url,target:"_blank",className:Nt.a.name},(Xe=Ze.user)===null||Xe===void 0?void 0:Xe.name,Ze.user.user_id===((Ie=Rr.userInfo)===null||Ie===void 0?void 0:Ie.user_id)?b.a.createElement("span",null,"\u6211"):null),b.a.createElement("div",{className:Nt.a.actionGroup},ir?(et=Ze.user)!==null&&et!==void 0&&et.shixun_manager?null:b.a.createElement(st.a,{overlay:b.a.createElement(Wt.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(Wt.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(Wt.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(jt.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"),!(($e=Ze.user)!==null&&$e!==void 0&&$e.shixun_manager)&&ur?b.a.createElement("a",{className:Nt.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:Nt.a.schoolWrap},b.a.createElement("span",{className:Nt.a.school},(mt=Ze.user)===null||mt===void 0?void 0:mt.school_name)))))})))),Lr>10&&b.a.createElement("div",{className:Nt.a.countWrap},b.a.createElement(Le.a,{showQuickJumper:!1,showSizeChanger:!1,total:Lr,onChange:function(dt){return da(dt)},pageSize:10,current:Ln.page}))),b.a.createElement(it,{onReloadData:or}),b.a.createElement(It,_a))},Wn=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting,tn=Sn.user;return{shixunsDetail:Yt,globalSetting:Dn,user:tn,loading:hn}})(vn),Kn=o("11/R"),Hn=o("Q9mQ"),fn=o("diRs"),lr=o("jrin"),Zn=o("OaEy"),cr=o("2fM7"),dr=o("ZW9T"),Dr=o("RCxd"),hr=o("4SAo"),sn=o.n(hr),en=W.a.TextArea,On=function(Yt){var hn=Yt.shixunsDetail,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.onFinish,In=_n===void 0?function(){}:_n,Un=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),ar=he.a.useForm(),qn=Object(de.a)(ar,1),Rr=qn[0],Ir=function(){var Ar=Object(a.a)(n.a.mark(function vr(zr){var Lr,$r;return n.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,wn({type:"shixunsDetail/getCustomScript",payload:{id:(Lr=hn.actionTabs.params)===null||Lr===void 0?void 0:Lr.id,compile:zr.execute,excutive:zr.compile}});case 2:$r=Gt.sent,Jn(),$r&&In($r==null?void 0:$r.shixun_script);case 5:case"end":return Gt.stop()}},vr)}));return function(zr){return Ar.apply(this,arguments)}}(),Jn=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(f.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:hn.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Jn},b.a.createElement(he.a,{form:Rr,scrollToFirstError:!0,layout:"vertical",onFinish:Ir},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(en,{rows:4})),b.a.createElement(he.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement(en,{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:Jn},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",htmlType:"submit",loading:tn.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},Fr=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:hn}})(On),Or=o("Lai7"),xr=o.n(Or),fr=o("EGTK"),pe=o("UGPy"),X=o.n(pe),q=o("FrRK"),oe=o("9Bee"),De=o("N3QO"),fe=cr.a.Option,ot=function(Yt){var hn,Dn,tn=Yt.practiceSetting,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.user,Un=Object(O.useState)(null),ar=Object(de.a)(Un,2),qn=ar[0],Rr=ar[1],Ir=Object(O.useState)([]),Jn=Object(de.a)(Ir,2),Ar=Jn[0],vr=Jn[1],zr=Object(O.useState)(!0),Lr=Object(de.a)(zr,2),$r=Lr[0],nr=Lr[1],Gt=Object(O.useState)({}),$t=Object(de.a)(Gt,2),Jt=$t[0],Xn=$t[1],$n=Object(O.useState)([]),Ln=Object(de.a)($n,2),rr=Ln[0],ur=Ln[1],ir=Object(O.useState)(),qr=Object(de.a)(ir,2),or=qr[0],da=qr[1],Yr=Object(O.useState)(),_r=Object(de.a)(Yr,2),Sr=_r[0],Kr=_r[1],Jr=Object(O.useState)([]),Oa=Object(de.a)(Jr,2),_a=Oa[0],Ze=Oa[1],dt=Object(O.useState)({}),yt=Object(de.a)(dt,2),nt=yt[0],Me=yt[1],Xe=Object(O.useRef)(null),Ie=Object(O.useRef)(!0),et=Object(O.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),$e=Object(O.useRef)(null),mt=tn.id,rt=tn.is_published,Mt=nt.frequence_image,Vt=Mt===void 0?[]:Mt,pn=nt.environments,ln=pn===void 0?[]:pn,dn=nt.choice_small_type,cn=dn===void 0?[]:dn,Fn=nt.other_image,Cn=Fn===void 0?[]:Fn,Ur=Jt.name,Pr=Jt.description,Qr=Jt.authorization,Wr=Jt.small_type,ta=Wr===void 0?[]:Wr;Object(O.useEffect)(function(){if(qn===null)return;Gn(),Xe.current.scrollTop=0},[qn]),Object(O.useEffect)(function(){if(!mt)return;wr()},[mt]),Object(O.useEffect)(function(){return qn===null?void 0:(zn(),function(){clearTimeout($e.current)})},[qn,Ar,rr,or,Sr]);var zn=function(){clearTimeout($e.current),$e.current=setTimeout(function(){!Object(ae.isEqual)(et.current.activeId,qn)||!Object(ae.isEqual)(et.current.selectId,Ar)||!Object(ae.isEqual)(et.current.serviceConfigList,rr)||!Object(ae.isEqual)(et.current.evaluateScript,or)||!Object(ae.isEqual)(et.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)(n.a.mark(function br(){var Mr,tr,pa,xa;return n.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return nr(!0),Aa.next=3,Object(u.a)("/api/shixuns/".concat(mt,"/edit_environment_info.json"),{method:"get"});case 3:Mr=Aa.sent,Mr.status===0&&(Me(Object(K.a)({},Mr.data)),nr(!1),Mr!=null&&(tr=Mr.data)!==null&&tr!==void 0&&tr.id?(et.current.activeId=Mr==null||((pa=Mr.data)===null||pa===void 0)?void 0:pa.id,Rr(Mr==null||((xa=Mr.data)===null||xa===void 0)?void 0:xa.id)):Rr(null));case 5:case"end":return Aa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),Gn=function(){var Tr=Object(a.a)(n.a.mark(function br(){var Mr,tr,pa,xa,ba;return n.a.wrap(function(ga){for(;;)switch(ga.prev=ga.next){case 0:return ga.next=2,Object(u.a)("/api/shixuns/".concat(mt,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:qn}});case 2:ba=ga.sent,Xn(ba.data),et.current.selectId=(Mr=ba.data)===null||Mr===void 0?void 0:Mr.choice_small_type,vr((tr=ba.data)===null||tr===void 0?void 0:tr.choice_small_type),et.current.serviceConfigList=(pa=ba.data)===null||pa===void 0?void 0:pa.shixun_service_configs,ur((xa=ba.data)===null||xa===void 0?void 0:xa.shixun_service_configs),et.current.evaluateScript=ba.data.evaluate_script,da(ba.data.evaluate_script),et.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)}}(),bn=function(){var br,Mr=function(){E.d.push("/shixuns/".concat(mt,"/challenges")),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};tn!=null&&(br=tn.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(){Mr()}}):Mr()},jn=function(){var Tr=Object(a.a)(n.a.mark(function br(){var Mr,tr,pa,xa=arguments;return n.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:if(Mr=xa.length>0&&xa[0]!==void 0?xa[0]:!1,!Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Aa.next=3;break}return Aa.abrupt("return");case 3:return tr={sub_type:Ar,main_type:qn,shixun:{mirror_script_id:Sr},shixun_info:{evaluate_script:or},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}})},Aa.next=6,Object(u.a)("/api/shixuns/".concat(mt),{method:"put",body:tr});case 6:pa=Aa.sent,pa.status===0&&(m.b.success("\u7F16\u8F91\u6210\u529F"),et.current={activeId:qn,selectId:Ar,serviceConfigList:rr,evaluateScript:or,evaluationScript:Sr},wn({type:"practiceSetting/getCommonData",payload:{id:mt}}),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Aa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),Vr=ta.filter(function(Tr){return Ar.includes(Tr.id)}),ua=function(){bn()},pr=function(br,Mr,tr){var pa=rr.map(function(xa,ba){return ba===tr?Object(K.a)(Object(K.a)({},xa),{},Object(lr.a)({},Mr,br)):xa});ur(pa)},na=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:mt}}})},Ca=function(){var Tr=Object(a.a)(n.a.mark(function br(Mr){var tr;return n.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,wn({type:"shixunsDetail/getScriptContent",payload:{id:mt,script_id:Mr}});case 2:tr=xa.sent,tr&&da(tr.content);case 4:case"end":return xa.stop()}},br)}));return function(Mr){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 Mr=Object(a.a)(n.a.mark(function pa(){return n.a.wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,Ca(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 tr(){return Mr.apply(this,arguments)}return tr}()})},Sa=function(br,Mr){var tr=rr[0]?[rr[0]]:[];Mr.forEach(function(pa){var xa=rr.find(function(ga){return ga.mirror_repository_id===Number(pa.key)});if(xa)tr.push(xa);else{var ba=ta.find(function(ga){return ga.id===Number(pa.key)});if(ba.mirror_name){var Aa={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(pa.key),name:ba.mirror_name,request_limit:10};tr.push(Aa)}}}),ur(tr),vr(br)};return b.a.createElement("div",{className:X.a.practice},b.a.createElement(fr.a,{loading:$r,skin:"night",className:X.a.left,dispatch:wn,value:qn,data:ln,otherData:Cn,tags:Vt,onChange:function(br){return Rr(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":Ur)),b.a.createElement("div",{className:X.a.content,ref:Xe},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:Pr})),b.a.createElement("div",{className:X.a.title},"\u9644\u5E26\u73AF\u5883"),b.a.createElement("div",{className:X.a.selectBox},b.a.createElement(cr.a,{onChange:function(br,Mr){return Sa(br,Mr)},getPopupContainer:function(br){return br.parentNode},mode:"multiple",bordered:!1,value:Ar,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&&(hn=_n.detail)!==null&&hn!==void 0&&hn.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(cr.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:na},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),b.a.createElement(fn.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(Dr.a,null)))),b.a.createElement(dr.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:or,onChange:function(br){if(Ie.current){Ie.current=!1;return}da(br),Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Ie.current=!0,da(et.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(tr){return pr(tr.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(tr){return pr(tr.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(tr){return pr(tr.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(tr){return pr(tr.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(tr){var pa=tr.target.value,xa=/^\d*(\.\d*)?$/;pa.match(xa)&&pr(tr.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))},Zt=Object(E.a)(function(Sn){var Yt=Sn.practiceSetting,hn=Sn.globalSetting,Dn=Sn.shixunsDetail,tn=Sn.user;return{practiceSetting:Yt,globalSetting:hn,shixunsDetail:Dn,user:tn}})(ot),Mn=o("g9YV"),Vn=o("wCAj"),qt=o("5Dmo"),En=o("3S7+"),un=o("P5Jw"),jr=o("wd/R"),aa=o.n(jr),oa=o("3d99"),er=o.n(oa),Ba=o("Lf5v"),Ea=o("xKgJ"),ca=o("lzim"),Ka=b.a.Fragment,Ta=function(Yt){var hn,Dn,tn,wn,_n=Yt.globalSetting,In=Yt.dispatch,Un=Yt.practiceSetting,ar=Yt.shixunsDetail,qn=Yt.user,Rr=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Ir=Un.id,Jn=Object(O.useState)([]),Ar=Object(de.a)(Jn,2),vr=Ar[0],zr=Ar[1],Lr=Object(O.useState)({}),$r=Object(de.a)(Lr,2),nr=$r[0],Gt=$r[1],$t=Object(O.useState)(!1),Jt=Object(de.a)($t,2),Xn=Jt[0],$n=Jt[1],Ln=Object(O.useState)(!0),rr=Object(de.a)(Ln,2),ur=rr[0],ir=rr[1],qr=Object(O.useState)(!1),or=Object(de.a)(qr,2),da=or[0],Yr=or[1],_r=Object(O.useState)(!1),Sr=Object(de.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Oa=Object(O.useState)([]),_a=Object(de.a)(Oa,2),Ze=_a[0],dt=_a[1],yt=Object(O.useState)(!1),nt=Object(de.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=Object(O.useState)({}),et=Object(de.a)(Ie,2),$e=et[0],mt=et[1],rt=Object(O.useState)({page:1,limit:10,total:0}),Mt=Object(de.a)(rt,2),Vt=Mt[0],pn=Mt[1];Object(O.useEffect)(function(){if(!Ir)return;dn()},[Ir]);var ln=function(wr){var Gn=Object(K.a)(Object(K.a)({},Vt),{},{page:wr});dt([]),pn(Gn),dn(Gn)},dn=function(){var zn=Object(a.a)(n.a.mark(function wr(Gn){var bn,jn,Vr;return n.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:return bn={page:1,limit:10,total:0},jn=Gn||bn,$n(!0),pr.next=5,In({type:"shixunsDetail/getSetData",payload:Object(K.a)(Object(K.a)({},jn),{},{id:Ir})});case 5:Vr=pr.sent,Vr!=null&&Vr.data_sets&&($n(!1),zr(Object(be.a)(Vr.data_sets)),pn(Object(K.a)(Object(K.a)({},jn),{},{total:Vr==null?void 0:Vr.data_sets_count})),ir(!1),Gt(Object(K.a)({},Vr)));case 7:case"end":return pr.stop()}},wr)}));return function(Gn){return zn.apply(this,arguments)}}(),cn=function(){return b.a.createElement("div",{className:er.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~"))},Fn=function(wr){console.log("selectedRowKeys changed: ",wr),dt(wr)},Cn={selectedRowKeys:Ze,columnWidth:70,onChange:Fn},Ur=function(wr){Object(c.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 bn=Object(a.a)(n.a.mark(function Vr(){var ua,pr;return n.a.wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:return Ca.next=2,Object(u.a)("/api/shixuns/".concat(Ir,"/destroy_data_sets.json"),{method:"Delete",body:{id:Gn}});case 2:ua=Ca.sent,ua.status===0&&(pr=Gn.length===vr.length&&Vt.page>1?Vt.page-1:Vt.page,m.b.success("\u5220\u9664\u6210\u529F"),dn(Object(K.a)(Object(K.a)({},Vt),{},{page:pr})),dt([]));case 4:case"end":return Ca.stop()}},Vr)}));function jn(){return bn.apply(this,arguments)}return jn}()})},Pr=function(){var zn=Object(a.a)(n.a.mark(function wr(){var Gn,bn,jn,Vr,ua;return n.a.wrap(function(na){for(;;)switch(na.prev=na.next){case 0:if(Gn=$e.title,bn=null,console.log(Gn,"title"),!(Gn==="")){na.next=7;break}return bn="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",mt(Object(K.a)(Object(K.a)({},$e),{},{errorDes:bn})),na.abrupt("return");case 7:if(!Gn.includes(" ")){na.next=11;break}return bn="\u6587\u4EF6\u540D\u4E0D\u80FD\u6709\u7A7A\u683C",mt(Object(K.a)(Object(K.a)({},$e),{},{errorDes:bn})),na.abrupt("return");case 11:if(jn=vr.find(function(Ca){return Ca.id===($e==null?void 0:$e.id)}).title,!(Gn===jn.substring(0,jn.lastIndexOf("."))||Gn===jn)){na.next=16;break}return bn="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",mt(Object(K.a)(Object(K.a)({},$e),{},{errorDes:bn})),na.abrupt("return");case 16:return Vr=jn.includes(".")?jn.substring(jn.lastIndexOf("."),jn.length):"",na.next=19,Object(u.a)("/api/shixuns/".concat(Ir,"/rename_data_sets.json"),{method:"post",body:{id:$e==null?void 0:$e.id,new_file_name:Gn+Vr}});case 19:ua=na.sent,ua.status===0&&(m.b.success("\u91CD\u547D\u540D\u6210\u529F"),dn(Vt),Yr(!1),mt({}));case 21:case"end":return na.stop()}},wr)}));return function(){return zn.apply(this,arguments)}}(),Qr=function(){var wr=$e.download_url;Wr(wr),m.b.success("\u590D\u5236\u6210\u529F"),Jr(!1),mt({})},Wr=function(wr){var Gn=wr,bn=document.createElement("input");bn.value=Gn,document.body.appendChild(bn),bn.select(),document.execCommand("Copy"),bn.style.display="none"},ta=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(En.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(En.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 aa()(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:er.a.path},b.a.createElement(En.a,{title:wr},b.a.createElement("span",{className:er.a.text},wr)),b.a.createElement(un.CopyToClipboard,{text:wr,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(En.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(Ea.v)()?200:120,render:function(wr,Gn){return b.a.createElement("div",{className:er.a.actionsBtns},b.a.createElement(En.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var jn;mt(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(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(Ea.v)()&&b.a.createElement(En.a,{title:"\u5206\u4EAB"},b.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),mt(Object(ae.clone)(Gn)),Jr(!0)}})),Object(Ea.v)()&&b.a.createElement(En.a,{title:"\u4E0B\u8F7D"},b.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(c.x)(Gn.title,Gn==null?void 0:Gn.download_url)}})),b.a.createElement(En.a,{title:"\u5220\u9664"},b.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(c.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),Ur(Gn.id)}})))}}];return b.a.createElement("div",{className:er.a.dataset},b.a.createElement("div",{className:er.a.header},b.a.createElement("div",{className:er.a.title},"\u6570\u636E\u96C6(",Vt.total,")"),b.a.createElement("div",{className:er.a.dataPath},b.a.createElement("span",{className:er.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:nr==null?void 0:nr.folder_name,disabled:!0}),b.a.createElement(un.CopyToClipboard,{text:nr==null?void 0:nr.folder_name,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(En.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:er.a.btns},b.a.createElement(I.a,{type:"primary",ghost:!0,onClick:function(){return Ur()},disabled:!Ze.length},"\u5220\u9664"),b.a.createElement(I.a,{type:"primary",onClick:function(){return Xe(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:er.a.content},b.a.createElement(Ue.a,{loading:ur,active:!0,paragraph:{rows:5}},Vt.total?b.a.createElement(Vn.a,{rowSelection:Cn,className:er.a.customTable,dataSource:vr,bordered:!1,rowKey:function(wr){return wr.id},rowClassName:er.a.row,columns:ta,loading:Xn,pagination:{pageSize:Vt.limit,total:Vt.total,current:Vt.page,onChange:ln,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):cn())),b.a.createElement(Ba.a,{rootIdentifier:ar==null||((hn=ar.detail)===null||hn===void 0)?void 0:hn.root_identifier,wrapClassName:er.a.uploadFileModal,id:Ir,containerId:ar==null||((Dn=ar.detail)===null||Dn===void 0)?void 0:Dn.id,local:_n==null||((tn=_n.setting)===null||tn===void 0)?void 0:tn.is_local,dispatch:In,visible:Me,onClose:function(){return Xe(!1)},onOK:dn}),b.a.createElement(f.a,{title:"\u91CD\u547D\u540D",visible:da,onOk:Pr,centered:!0,wrapClassName:er.a.renameModal,onCancel:function(){Yr(!1),mt({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:er.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(W.a,{value:$e==null?void 0:$e.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(wr){mt(Object(K.a)(Object(K.a)({},$e),{},{title:wr.target.value,errorDes:null}))},maxLength:60,suffix:"".concat(($e==null||((wn=$e.title)===null||wn===void 0)?void 0:wn.length)||0,"/60")}),($e==null?void 0:$e.errorDes)&&b.a.createElement("div",{className:er.a.errorDes},$e==null?void 0:$e.errorDes))),b.a.createElement(f.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Kr,onOk:Qr,centered:!0,wrapClassName:er.a.shareModal,onCancel:function(){Jr(!1),mt({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:er.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:$e==null?void 0:$e.download_url}))))},Ja=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,hn=Sn.shixunsDetail,Dn=Sn.practiceSetting,tn=Sn.user;return{globalSetting:Yt,shixunsDetail:hn,user:tn,practiceSetting:Dn}})(Ta),Ua=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(hn,Dn){return Dn!==0}).map(function(hn){return hn.val}).join("").substr(1):""},lt=function(Yt){var hn=Yt.shixunsDetail,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.fileType,In=Yt.path,Un=Yt.onFinish,ar=Un===void 0?function(){}:Un,qn=Object(w.i)(),Rr=Object(O.useState)(""),Ir=Object(de.a)(Rr,2),Jn=Ir[0],Ar=Ir[1],vr=Object(O.useState)([]),zr=Object(de.a)(vr,2),Lr=zr[0],$r=zr[1],nr=Object(O.useState)([]),Gt=Object(de.a)(nr,2),$t=Gt[0],Jt=Gt[1],Xn=[Xt.OriginalPicturePath,Xt.ExpectPicturePath,Xt.PicturePath],$n=Xn.includes(_n);Object(O.useEffect)(function(){if(hn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Ar(In||""),Ln()},[hn.actionTabs.key]);var Ln=function(){var Yr=Object(a.a)(n.a.mark(function _r(){var Sr,Kr,Jr,Oa,_a=arguments;return n.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return Kr=_a.length>0&&_a[0]!==void 0?_a[0]:"",dt.next=3,wn({type:"shixunsDetail/getRepository",payload:{id:qn.id,path:Kr}});case 3:Jr=dt.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&&(Oa=Jr.trees.map(function(yt){return Object(K.a)(Object(K.a)({},yt),{name:yt.name,val:yt.name})}),Jt(Oa||[]));case 6:case"end":return dt.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),rr=function(_r){var Sr=xe(Lr),Kr="".concat(Sr&&"".concat(Sr,"/")).concat(_r);_n===Xt.Path?!(Jn!=null&&Jn.includes("".concat(Kr,"\uFF1B")))&&Ar("".concat(Jn).concat(Kr,"\uFF1B")):_n===Xt.ExecPath&&Ar(Kr)},ur=function(_r){if(_r.type==="tree"){Lr.length?Lr.push({val:"/".concat(_r.val),path:_r.val}):Lr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(_r.val),path:_r.val}),$r(Lr);var Sr=xe(Lr);$n&&Ar(Sr),Ln(Sr)}},ir=function(_r,Sr){var Kr=Lr.filter(function(Oa,_a){return _a<=Sr});$r(Kr);var Jr=xe(Kr);$n&&Ar(Jr),Ln(Jr)},qr=function(){var Yr=Object(a.a)(n.a.mark(function _r(){return n.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:ar(Jn),or();case 2:case"end":return Kr.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),or=function(){Ar(""),$r([]),Jt([]),wn({type:"shixunsDetail/setActionTabs",payload:{}})},da=xe(Lr);return b.a.createElement(f.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:hn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:qr,onCancel:or},b.a.createElement("div",{className:la.a.wrap},b.a.createElement("div",{className:la.a.content},b.a.createElement("div",{className:la.a.mainPathWrap},!!(Lr!=null&&Lr.length)&&Lr.map(function(Yr,_r){return b.a.createElement("a",{key:_r,onClick:function(){return ir(Yr,_r)}},Yr.val)})),!!($t!=null&&$t.length)&&$t.map(function(Yr,_r){return Yr.type==="tree"?b.a.createElement("a",{key:_r,onClick:function(){return ur(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:Jn,onChange:function(_r){return Ar(_r.target.value)}})))},Rt=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,hn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:hn.models.index}})(lt),wt=o("dhSg"),Ht=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 rn=function(Yt){var hn=Yt.globalSetting,Dn=Yt.loading,tn=Yt.dispatch,wn=Yt.practiceSetting,_n=Yt.shixunsDetail,In=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Un=Object(O.useState)(),ar=Object(de.a)(Un,2),qn=ar[0],Rr=ar[1],Ir=Object(O.useState)(),Jn=Object(de.a)(Ir,2),Ar=Jn[0],vr=Jn[1],zr=Object(O.useRef)(),Lr=Object(O.useState)(),$r=Object(de.a)(Lr,2),nr=$r[0],Gt=$r[1],$t=Object(O.useState)(),Jt=Object(de.a)($t,2),Xn=Jt[0],$n=Jt[1],Ln=Object(O.useState)(),rr=Object(de.a)(Ln,2),ur=rr[0],ir=rr[1],qr=Object(O.useRef)(!0),or=Object(O.useState)(!0),da=Object(de.a)(or,2),Yr=da[0],_r=da[1],Sr=Object(O.useState)(700),Kr=Object(de.a)(Sr,2),Jr=Kr[0],Oa=Kr[1],_a=Object(O.useState)(""),Ze=Object(de.a)(_a,2),dt=Ze[0],yt=Ze[1],nt=Object(O.useRef)(),Me=Object(w.i)();Object(O.useEffect)(function(){Ie()},[]);var Xe=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn,Fn,Cn;return n.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,tn({type:"shixunsDetail/updateRepositoryFile",payload:{id:Me.id,path:_n==null||((cn=_n.fileContent)===null||cn===void 0||((Fn=cn.params)===null||Fn===void 0))?void 0:Fn.path,content:qn,secret_repository:Yr?null:!0}});case 2:Cn=Pr.sent,Cn!=null&&Cn.content&&(m.b.info("\u4FDD\u5B58\u6210\u529F"),tn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},wn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Pr.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),Ie=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn,Fn,Cn,Ur,Pr;return n.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&&(cn=Cn.data)!==null&&cn!==void 0&&(Fn=cn.data_list)!==null&&Fn!==void 0&&Fn.length)){Wr.next=6;break}return wt.a.publish("pod-restrict-data",{identifier:Cn==null||((Ur=Cn.data)===null||Ur===void 0)?void 0:Ur.identifier,data_list:Cn==null||((Pr=Cn.data)===null||Pr===void 0)?void 0:Pr.data_list}),Wr.abrupt("return");case 6:Cn!=null&&Cn.url&&yt(Cn==null?void 0:Cn.url);case 7:case"end":return Wr.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),et=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn;return n.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(cn=Cn.sent,!((cn==null?void 0:cn.status)!==0)){Cn.next=5;break}return Cn.abrupt("return");case 5:cn!=null&&cn.remainingSeconds?(Gt(Date.now()+cn.remainingSeconds*1e3),$n(cn.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(cn.remainingSeconds-300)*1e3)):$e();case 6:case"end":return Cn.stop()}},dn)}));return function(){return ln.apply(this,arguments)}}(),$e=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 dn=Object(a.a)(n.a.mark(function Fn(){return n.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:mt();case 1:case"end":return Ur.stop()}},Fn)}));function cn(){return dn.apply(this,arguments)}return cn}()})},mt=function(){var ln=Object(a.a)(n.a.mark(function dn(){var cn;return n.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(cn=Cn.sent,!((cn==null?void 0:cn.status)!==0)){Cn.next=6;break}return Cn.abrupt("return");case 6:vr(Lt.Finish),yt(cn.url),zr.current=cn.port,m.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return Cn.stop()}},dn)}));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(Ht,{value:nr,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 dn=Object(a.a)(n.a.mark(function Fn(){var Cn;return n.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Pr.next=2,Object(s.a)({identifier:Me.id});case 2:if(Cn=Pr.sent,!(Cn.status===0)){Pr.next=7;break}return Pr.next=6,et();case 6:m.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Pr.stop()}},Fn)}));function cn(){return dn.apply(this,arguments)}return cn}()})},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(){mt()}})},Vt=function(dn){tn({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},pn=function(){var ln=Object(a.a)(n.a.mark(function dn(cn){return n.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.Pb)({id:Me.id,startup_file:cn});case 2:Ie(),tn({type:"practiceSetting/getCommonData",payload:Object(K.a)({},Me)});case 4:case"end":return Cn.stop()}},dn)}));return function(cn){return ln.apply(this,arguments)}}();return b.a.createElement("div",{className:fa.a.warehouse},b.a.createElement(v.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:dt})),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(dn){},src:dt,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(dn){return pn(dn)}}))},xn=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.practiceSetting,tn=Sn.shixunsDetail;return{globalSetting:hn,loading:Yt,practiceSetting:Dn,shixunsDetail:tn}})(rn),gn=function(Yt){var hn=Yt.tabsActive,Dn=Object(g.a)(Yt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,hn==="information"&&b.a.createElement(tt,null),hn==="warehouse"&&b.a.createElement(ut.default,null),hn==="level"&&b.a.createElement(Ye,Dn),hn==="collaborate"&&b.a.createElement(Wn,Dn),hn==="setting"&&b.a.createElement(Kn.a,null),hn==="environment"&&b.a.createElement(Zt,Dn),hn==="dataset"&&b.a.createElement(Ja,null),hn==="service"&&b.a.createElement(xn,Dn))},Nn=gn,An=o("Jv0p"),an=o.n(An),Pn=o("luix"),yn=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 hn,Dn=Yt.globalSetting,tn=Yt.loading,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.practiceSetting,Un=Object(g.a)(Yt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),ar=In.base_info_warning,qn=In.challenges_warning,Rr=In.id,Ir=In.repository_warning,Jn=In.sideBar,Ar=In.service_warning,vr=Object(w.h)(),zr=Object(w.i)();Object(O.useEffect)(function(){var nr,Gt,$t=vr==null||((nr=vr.query)===null||nr===void 0)?void 0:nr.tabId,Jt=vr.pathname.split("/").length,Xn=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Ln){return Ln.tabId!=="dataset"}):kn,$n=Xn.map(function(Ln){return Ln.tabId}).includes($t);if($t&&$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:$t}});return}if(Jt>4){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!$t||$t&&!$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[_n==null||((hn=_n.detail)===null||hn===void 0)?void 0:hn.windows_vnc]),Object(O.useEffect)(function(){return function(){wn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},In.sideBar),{},{selectPath:""})})}},[zr.id]);var Lr=function(Gt){var $t;if(Gt===Jn.tabsActive)return;var Jt=function(){E.d.push("/shixuns/".concat(Rr,"/edit?tabId=").concat(Gt)),wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Gt,selectPath:"",confirmLeave:!1}})};In!=null&&($t=In.sideBar)!==null&&$t!==void 0&&$t.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,$t=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Jt){return Jt.tabId!=="dataset"}):kn;return $t.filter(function(Jt){var Xn;return _n!=null&&(Xn=_n.detail)!==null&&Xn!==void 0&&Xn.is_jupyter_lab?Jt.tabId!=="level":Jt.tabId!=="service"}).map(function(Jt){var Xn=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 Lr(Ln)}},$n,b.a.createElement("span",{className:an.a.name},Xn),Ln==="information"&&ar&&b.a.createElement(En.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:yn.a,alt:""})),Ln==="level"&&qn&&b.a.createElement(En.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:yn.a,alt:""})),Ln==="service"&&Ar&&b.a.createElement(En.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:yn.a,alt:""})),Ln==="warehouse"&&Ir&&b.a.createElement(En.a,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},b.a.createElement("img",{src:yn.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(En.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:""})))))},Yn=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.shixunsDetail,tn=Sn.practiceSetting;return{globalSetting:hn,loading:Yt,practiceSetting:tn,shixunsDetail:Dn}})(Rn),mr=function(Yt){var hn=Yt.globalSetting,Dn=Yt.loading,tn=Yt.dispatch,wn=Yt.practiceSetting,_n=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting"]),In=wn.sideBar,Un=In.tabsActive,ar=Object(w.i)();return Object(O.useEffect)(function(){return tn({type:"globalSetting/headerFooterToggle",payload:!1}),tn({type:"shixunsDetail/getShixunsDetail",payload:ar}),tn({type:"shixunsDetail/getSettingsData",payload:ar}),function(){tn({type:"globalSetting/headerFooterToggle",payload:!0}),tn({type:"practiceSetting/setParams",payload:{id:""}})}},[]),b.a.createElement("div",{className:C.a.practiceSetting},b.a.createElement("div",{className:C.a.wrapHeader},b.a.createElement(P,null)),b.a.createElement("div",{className:C.a.wrapLayout},b.a.createElement("div",{className:C.a.wrapSidebar},b.a.createElement(Yn,null)),b.a.createElement("div",{className:C.a.wrapContent},b.a.createElement(Nn,Object(M.a)({},_n,{tabsActive:wn.sideBar.tabsActive})))))},Br=z.default=Object(E.a)(function(Sn){var Yt=Sn.loading,hn=Sn.globalSetting,Dn=Sn.practiceSetting;return{globalSetting:hn,loading:Yt,practiceSetting:Dn}})(mr)},WYAk:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){(function(){var g=M,O=g.lib,b=O.Base,y=g.enc,C=y.Utf8,A=g.algo,m=A.HMAC=b.extend({init:function(e,f){e=this._hasher=new e.init,typeof f=="string"&&(f=C.parse(f));var a=e.blockSize,l=a*4;f.sigBytes>l&&(f=e.finalize(f)),f.clamp();for(var n=this._oKey=f.clone(),i=this._iKey=f.clone(),r=n.words,c=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),u={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(u.tables).map(function(ee){return{label:ee,kind:K.languages.CompletionItemKind.Variable,insertText:ee}})},_=function(K,ee){var he=u.tables[K];return he?he.map(function(de){return{label:de,kind:ee.languages.CompletionItemKind.Field,insertText:de}}):[]};function P(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(M.a)(Object(M.a)({},be),{},{range:Te}))}),ce}var R=function(I){u.languages.map(function(de){return I.languages.registerDocumentFormattingEditProvider(de,{provideDocumentFormattingEdits:function(Te,ce,be){return Object(a.a)(n.a.mark(function ye(){var ue;return n.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()}},ye)}))()}}),de});var K=c.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=r.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},ye=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(c.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)(c.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.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(ye){return{label:ye,kind:I.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,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},ye=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(r.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)(r.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:ye.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},ye=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:ye.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}})},x="\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"),v=o("LvDl"),T=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||Kn.target.offsetWidth>0)&&Pt.current.instance.layout()}}catch(Hn){vn.e(Hn)}finally{vn.f()}}),jt.observe(Et.current)),jt}function Ct(){b.b.warn(decodeURIComponent(x))}var Wt=function(){var on=Pt.current.instance;if(Se!=null&&on&&Ue){var vn=on.getModel();vn&&Se!==vn.getValue()&&(N=!0,vn.setValue(Se),on.layout(),N=!1)}};Object(m.useEffect)(function(){He.current&&clearTimeout(He.current),He.current=setTimeout(function(){Wt()},500)},[Se,Ue,Pt.current]),Object(m.useEffect)(function(){if(Ve&&Pt.current&&Pt.current.instance){var jt=Pt.current.instance;jt.changeViewZones(function(vn){var Wn=document.createElement("div");Wn.style.padding="10px 20px",Wn.style.width="calc(100% - 20px)",Wn.className="my-error-line-wrp",Wn.innerHTML=ht,vn.addZone({afterLineNumber:Ve||11,heightInLines:3,domNode:Wn})});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}};jt.addOverlayWidget(on),jt.revealPositionInCenter({lineNumber:20,column:1})}},[Ve,Pt.current,Ue]);function Qt(){var jt=Pt.current.instance;if(jt){var on=jt.getSelection(),vn=Pt.current.pastePos||{},Wn=new D.Range(vn.startLineNumber||on.endLineNumber,vn.startColumn||on.endColumn,vn.endLineNumber||on.endLineNumber,vn.endColumn||on.endColumn);setTimeout(function(){jt.executeEdits("",[{range:Wn,text:""}])},300)}}function Kt(jt){(window.navigator.platform.match("Mac")?jt.metaKey:jt.ctrlKey)&&jt.keyCode==83&&(jt.preventDefault(),le())}var Ot=function(){if(Q&&Pt.current.instance){var on=Pt.current.instance.getContentHeight();ct(on0||Je.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(16),o.e(28)]).then(o.t.bind(null,"M/lh",7)).then(function(Q){D=Q;var J=D.editor.createDiffEditor(ue.current,Object(M.a)(Object(M.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},ye),{},{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),le=U(de),te={width:Oe,height:le};return e.a.createElement("div",{className:"my-diff-editor",ref:ue,style:te})}},ZpRC:function(k,z,o){"use strict";function M(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function g(a,l){return(!l||a!=="hidden")&&a!=="visible"&&a!=="clip"}function O(a,l){if(a.clientHeightl||c>a&&h=l&&d>=n?c-a-i:h>l&&dn?h-l+r:0}var y=function(a,l){var n=window,i=l.scrollMode,r=l.block,c=l.inline,h=l.boundary,d=l.skipOverflowHiddenElements,s=typeof h=="function"?h:function(Q){return Q!==h};if(!M(a))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,w=[],E=a;M(E)&&s(E);){if((E=E.parentElement)===u){w.push(E);break}E!=null&&E===document.body&&O(E)&&!O(document.documentElement)||E!=null&&O(E,d)&&w.push(E)}for(var _=n.visualViewport?n.visualViewport.width:innerWidth,P=n.visualViewport?n.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,x=window.scrollY||pageYOffset,S=a.getBoundingClientRect(),v=S.height,T=S.width,U=S.top,L=S.right,N=S.bottom,V=S.left,H=r==="start"||r==="nearest"?U:r==="end"?N:U+v/2,D=c==="center"?V+T/2:c==="end"?L:V,W=[],F=0;F=0&&V>=0&&N<=P&&L<=_&&U>=de&&N<=Te&&V>=ce&&L<=Se)return W;var be=getComputedStyle(I),ye=parseInt(be.borderLeftWidth,10),ue=parseInt(be.borderTopWidth,10),se=parseInt(be.borderRightWidth,10),$=parseInt(be.borderBottomWidth,10),me=0,re=0,ae="offsetWidth"in I?I.offsetWidth-I.clientWidth-ye-se:0,Oe="offsetHeight"in I?I.offsetHeight-I.clientHeight-ue-$:0;if(u===I)me=r==="start"?H:r==="end"?H-P:r==="nearest"?b(x,x+P,P,ue,$,x+H,x+H+v,v):H-P/2,re=c==="start"?D:c==="center"?D-_/2:c==="end"?D-_:b(R,R+_,_,ye,se,R+D,R+D+T,T),me=Math.max(0,me+x),re=Math.max(0,re+R);else{me=r==="start"?H-de-ue:r==="end"?H-Te+$+Oe:r==="nearest"?b(de,Te,ee,ue,$+Oe,H,H+v,v):H-(de+ee/2)+Oe/2,re=c==="start"?D-ce-ye:c==="center"?D-(ce+he/2)+ae/2:c==="end"?D-Se+se+ae:b(ce,Se,he,ye,se+ae,D,D+T,T);var le=I.scrollLeft,te=I.scrollTop;H+=te-(me=Math.max(0,Math.min(te+me,I.scrollHeight-ee+Oe))),D+=le-(re=Math.max(0,Math.min(le+re,I.scrollWidth-he+ae)))}W.push({el:I,top:me,left:re})}return W};function C(a){return a===Object(a)&&Object.keys(a).length!==0}function A(a,l){l===void 0&&(l="auto");var n="scrollBehavior"in document.body.style;a.forEach(function(i){var r=i.el,c=i.top,h=i.left;r.scroll&&n?r.scroll({top:c,left:h,behavior:l}):(r.scrollTop=c,r.scrollLeft=h)})}function m(a){return a===!1?{block:"end",inline:"nearest"}:C(a)?a:{block:"start",inline:"nearest"}}function e(a,l){var n=!a.ownerDocument.documentElement.contains(a);if(C(l)&&typeof l.behavior=="function")return l.behavior(n?[]:y(a,l));if(n)return;var i=m(l);return A(y(a,i),i.behavior)}var f=z.a=e},Zss7:function(k,z,o){var M;(function(g){var O=/^\s+/,b=/\s+$/,y=0,C=g.round,A=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=C(100*this._a)/100,this._format=me.format||re.format,this._gradientType=me.gradientType,this._r<1&&(this._r=C(this._r)),this._g<1&&(this._g=C(this._g)),this._b<1&&(this._b=C(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,le,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?le=re/12.92:le=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*le+.0722*te},setAlpha:function($){return this._a=W($),this._roundA=C(100*this._a)/100,this},toHsv:function(){var $=r(this._r,this._g,this._b);return{h:$.h*360,s:$.s,v:$.v,a:this._a}},toHsvString:function(){var $=r(this._r,this._g,this._b),me=C($.h*360),re=C($.s*100),ae=C($.v*100);return this._a==1?"hsv("+me+", "+re+"%, "+ae+"%)":"hsva("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHsl:function(){var $=n(this._r,this._g,this._b);return{h:$.h*360,s:$.s,l:$.l,a:this._a}},toHslString:function(){var $=n(this._r,this._g,this._b),me=C($.h*360),re=C($.s*100),ae=C($.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:C(this._r),g:C(this._g),b:C(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+C(this._r)+", "+C(this._g)+", "+C(this._b)+")":"rgba("+C(this._r)+", "+C(this._g)+", "+C(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:C(F(this._r,255)*100)+"%",g:C(F(this._g,255)*100)+"%",b:C(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+C(F(this._r,255)*100)+"%, "+C(F(this._g,255)*100)+"%, "+C(F(this._b,255)*100)+"%)":"rgba("+C(F(this._r,255)*100)+"%, "+C(F(this._g,255)*100)+"%, "+C(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(_,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(x,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(v,arguments)},tetrad:function(){return this._applyCombination(T,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,le=null,te=!1,Q=!1;return typeof $=="string"&&($=ue($)),typeof $=="object"&&(ye($.r)&&ye($.g)&&ye($.b)?(me=l($.r,$.g,$.b),te=!0,Q=String($.r).substr(-1)==="%"?"prgb":"rgb"):ye($.h)&&ye($.s)&&ye($.v)?(ae=Se($.s),Oe=Se($.v),me=c($.h,ae,Oe),te=!0,Q="hsv"):ye($.h)&&ye($.s)&&ye($.l)&&(ae=Se($.s),le=Se($.l),me=i($.h,ae,le),te=!0,Q="hsl"),$.hasOwnProperty("a")&&(re=$.a)),re=W(re),{ok:te,format:$.format||Q,r:A(255,m(me.r,0)),g:A(255,m(me.g,0)),b:A(255,m(me.b,0)),a:re}}function l($,me,re){return{r:F($,255)*255,g:F(me,255)*255,b:F(re,255)*255}}function n($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=A($,me,re),le,te,Q=(ae+Oe)/2;if(ae==Oe)le=te=0;else{var J=ae-Oe;te=Q>.5?J/(2-ae-Oe):J/(ae+Oe);switch(ae){case $:le=(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=le=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,$),le=te(J,Q,$-1/3)}return{r:ae*255,g:Oe*255,b:le*255}}function r($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=A($,me,re),le,te,Q=ae,J=ae-Oe;if(te=ae===0?0:J/ae,ae==Oe)le=0;else{switch(ae){case $:le=(me-re)/J+(me>1)+720)%360;--me;)ae.h=(ae.h+Oe)%360,le.push(f(ae));return le}function N($,me){me=me||6;for(var re=f($).toHsv(),ae=re.h,Oe=re.s,le=re.v,te=[],Q=1/me;me--;)te.push(f({h:ae,s:Oe,v:le})),le=(le+Q)%1;return te}f.mix=function($,me,re){re=re===0?0:re||50;var ae=f($).toRgb(),Oe=f(me).toRgb(),le=re/100,te={r:(Oe.r-ae.r)*le+ae.r,g:(Oe.g-ae.g)*le+ae.g,b:(Oe.b-ae.b)*le+ae.b,a:(Oe.a-ae.a)*le+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,le;le=!1,Oe=se(re);switch(Oe.level+Oe.size){case"AAsmall":case"AAAlarge":le=ae>=4.5;break;case"AAlarge":le=ae>=3;break;case"AAAsmall":le=ae>=7;break}return le},f.mostReadable=function($,me,re){var ae=null,Oe=0,le,te,Q,J;re=re||{},te=re.includeFallbackColors,Q=re.level,J=re.size;for(var ve=0;veOe&&(Oe=le,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 $=A(me,m(0,parseFloat($))),re&&($=parseInt($*me,10)/100),g.abs($-me)<1e-6?1:$%me/parseFloat(me)}function I($){return A(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 ye($){return!!be.CSS_UNIT.exec($)}function ue($){$=$.replace(O,"").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 se($){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:!(M=function(){return f}.call(z,o,z,k),M!==void 0&&(k.exports=M))})(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(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return function(g){var O=M,b=O.lib,y=b.CipherParams,C=O.enc,A=C.Hex,m=O.format,e=m.Hex={stringify:function(f){return f.ciphertext.toString(A)},parse:function(f){var a=A.parse(f);return y.create({ciphertext:a})}}}(),M.format.Hex})},bT9E:function(k,z,o){"use strict";o.d(z,"a",function(){return g});var M=o("VTBJ");function g(O,b){var y=Object(M.a)({},O);return Array.isArray(b)&&b.forEach(function(C){delete y[C]}),y}},bUJZ:function(k,z){k.exports="data:image/png;base64,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"},biw7:function(k,z,o){"use strict";var M=o("q1tI"),g=o.n(M),O=M.createContext(null);z.a=O},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 M=o("+L6B"),g=o("2/Rp"),O=o("T2oS"),b=o("W9HT"),y=o("14J3"),C=o("BMrR"),A=o("2qtc"),m=o("kLXV"),e=o("jCWc"),f=o("kPKH"),a=o("qVdP"),l=o("jsC+"),n=o("k1fw"),i=o("lUTK"),r=o("BvKs"),c=o("9og8"),h=o("miYZ"),d=o("tsqr"),s=o("5Dmo"),u=o("3S7+"),w=o("tJVT"),E=o("PpiC"),_=o("Znn+"),P=o("ZTPi"),R=o("WmNS"),x=o.n(R),S=o("q1tI"),v=o.n(S),T=o("B6bo"),U=o.n(T),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(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)(""),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1];Object(S.useEffect)(function(){Dt.visible&&fn.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var en=sn.split(",").join("/"),On=en.indexOf("/")===0?en.substr(1):en;dr(On)}},[]),Object(S.useEffect)(function(){var sn,en;Wn.current=(sn=It.pathname)===null||sn===void 0||((en=sn.split("/"))===null||en===void 0)?void 0:en[2]},[]);var Dr=function(){var sn=Object(c.a)(x.a.mark(function en(){var On,Fr,Or=arguments;return x.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},fr.next=3,pt({type:"shixunsDetail/addRepositoryFile",payload:{id:ct.id,message:On.commitMessage,content:"",path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),secret_repository:bt?void 0:!0}});case 3:Fr=fr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),name:On.path.split("/")[On.path.split("/").length-1]}),Dt.onClose());case 5:case"end":return fr.stop()}},en)}));return function(){return sn.apply(this,arguments)}}(),hr=function(){var en,On;N.d.push("/shixuns/".concat(Wn.current,"/").concat((en=It.pathname)===null||en===void 0||((On=en.split("/"))===null||On===void 0)?void 0:On[3]).concat(cr?"/master/shixun_show/".concat(cr):""))};return v.a.createElement(m.a,{width:"60%",centered:!0,visible:Dt.visible,wrapClassName:Te.a.modal,onOk:function(){fn.submit()},onCancel:Dt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:Dr,onChange:function(){var en,On,Fr,Or,xr=Object(n.a)({},fn.getFieldsValue()),fr=xr==null||((en=xr.path)===null||en===void 0)?void 0:en.split(""),pe=xr==null||((On=xr.file)===null||On===void 0)?void 0:On.split("");fr!=null&&(Fr=fr.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)),fn.setFieldsValue(Object(n.a)({},xr)),vn(xr)}},v.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,null,v.a.createElement("span",{className:Te.a.filePath},Dt.defaultPath+"/")),v.a.createElement(f.a,{flex:"1"},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),v.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},v.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"})),v.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"}]},v.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(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})(ce),ye=o("7ahc"),ue=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)(""),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1];Object(S.useEffect)(function(){Dt.visible&&fn.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var en=sn.split(",").join("/"),On=en.indexOf("/")===0?en.substr(1):en;dr(On)}},[]),Object(S.useEffect)(function(){var sn,en;Wn.current=(sn=It.pathname)===null||sn===void 0||((en=sn.split("/"))===null||en===void 0)?void 0:en[2]},[]);var Dr=function(){var sn=Object(c.a)(x.a.mark(function en(){var On,Fr,Or=arguments;return x.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},fr.next=3,pt({type:"shixunsDetail/addRepositoryFile",payload:{id:ct.id,message:On.commitMessage,content:On.codeMirror,path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path,secret_repository:bt?void 0:!0}});case 3:Fr=fr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path,name:On.path.split("/")[On.path.split("/").length-1]}),Dt.onClose());case 5:case"end":return fr.stop()}},en)}));return function(){return sn.apply(this,arguments)}}(),hr=function(){var en,On;N.d.push("/shixuns/".concat(Wn.current,"/").concat((en=It.pathname)===null||en===void 0||((On=en.split("/"))===null||On===void 0)?void 0:On[3]).concat(cr?"/master/shixun_show/".concat(cr):""))};return v.a.createElement(m.a,{width:"60%",visible:Dt.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){fn.submit()},onCancel:Dt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:Dr,onChange:function(){var en,On,Fr=Object(n.a)({},fn.getFieldsValue()),Or=Fr==null||((en=Fr.path)===null||en===void 0)?void 0:en.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)),fn.setFieldsValue(Object(n.a)({},Fr)),vn(Fr)}},v.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,null,v.a.createElement("span",{className:Te.a.filePath},Dt.defaultPath+"/")),v.a.createElement(f.a,{flex:"1"},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),v.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"}]},v.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"})),v.a.createElement("div",{className:"mt10 mb20"},v.a.createElement(de.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},v.a.createElement(ye.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"]}})))))))},se=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})(ue),$=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)(""),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1],Dr=Object(S.useState)(""),hr=Object(w.a)(Dr,2),sn=hr[0],en=hr[1];Object(S.useEffect)(function(){Dt.visible&&fn.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var Or=Dt.defaultPath.split("/");Or.length===1?(dr(""),en(Dt.defaultPath)):(en(Or.pop()),dr(Or.join("/")+"/"))},[Dt.defaultPath]),Object(S.useEffect)(function(){var Or,xr;Wn.current=(Or=It.pathname)===null||Or===void 0||((xr=Or.split("/"))===null||xr===void 0)?void 0:xr[2]},[]);var On=function(){var Or=Object(c.a)(x.a.mark(function xr(){var fr,pe,X=arguments;return x.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return fr=X.length>0&&X[0]!==void 0?X[0]:{},oe.next=3,pt({type:"shixunsDetail/moveGitFile",payload:{id:ct.id,from:Dt.defaultPath,to:cr+fr.path,message:fr.commitMessage||"".concat(Dt.defaultPath," rename to ").concat(cr).concat(fr.path," "),secret_repository:bt}});case 3:pe=oe.sent,(pe==null?void 0:pe.status)===0&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:fr.path,name:fr.path}),Dt.onClose());case 5:case"end":return oe.stop()}},xr)}));return function(){return Or.apply(this,arguments)}}(),Fr=function(){var xr,fr;N.d.push("/shixuns/".concat(Wn.current,"/").concat((xr=It.pathname)===null||xr===void 0||((fr=xr.split("/"))===null||fr===void 0)?void 0:fr[3]).concat(cr?"/master/shixun_show/".concat(cr):""))};return v.a.createElement(m.a,{width:"40%",visible:Dt.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){fn.submit()},onCancel:Dt.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:On,onChange:function(){var xr,fr,pe=Object(n.a)({},fn.getFieldsValue()),X=pe==null||((xr=pe.path)===null||xr===void 0)?void 0:xr.split("");(X==null||((fr=X.filter(function(q){return q=="/"}))===null||fr===void 0)?void 0:fr.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),fn.setFieldsValue(Object(n.a)({},pe)),vn(pe)}},v.a.createElement(de.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,{flex:"1"},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:sn}))))),v.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},v.a.createElement(ee.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(Dt.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})($),re=o("DZo9"),ae=o("8z0m"),Oe=o("m3rI"),le=o("8j3D"),te=o("RC3E"),Q=o.n(te),J=ae.a.Dragger,ve=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)([]),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1],Dr=Object(S.useState)(),hr=Object(w.a)(Dr,2),sn=hr[0],en=hr[1],On;Object(S.useEffect)(function(){Dt.visible&&(fn.resetFields(),dr([]))},[Dt.visible]),Object(S.useEffect)(function(){Wn.current=ct.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;en(oe)}},[]);var Fr=function(q){if(On=q.file.name,q.file.status==="done"||q.file.status==="uploading"){var oe,De,fe;if(dr(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}dr(cr.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(c.a)(x.a.mark(function q(oe){var De;return x.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,pt({type:"shixunsDetail/deleteGitFile",payload:{id:ct.id,path:sn?"".concat(sn,"/").concat(oe.name):oe.name,message:fn.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(sn?"".concat(sn,"/").concat(oe.name):oe.name),secret_repository:bt?null:!0}});case 5:De=ot.sent,De.status===0&&(dr(cr.filter(function(Zt){return Zt.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(c.a)(x.a.mark(function oe(){return x.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.abrupt("return",new Promise(function(){var ot=Object(c.a)(x.a.mark(function Zt(Mn,Vn){return x.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:setTimeout(Object(c.a)(x.a.mark(function un(){var jr,ra;return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,fn.getFieldsValue();case 2:jr=er.sent,ra=Object(n.a)(Object(n.a)({},{path:Dt.defaultPath?Dt.defaultPath:"",message:on.commitMessage||"\u4E0A\u4F20\u4E86".concat(On)}),bt?{}:{secret_repository:!0}),Mn(ra);case 5:case"end":return er.stop()}},un)})),200);case 1:case"end":return yn.stop()}},Zt)}));return function(Zt,Mn){return ot.apply(this,arguments)}}()));case 1:case"end":return fe.stop()}},oe)}));function q(){return X.apply(this,arguments)}return q}(),fileList:cr,method:"post",action:"".concat(Oe.a.API_SERVER,"/api/shixuns/").concat(Wn.current,"/upload_git_file.json"),onChange:Fr,onRemove:Or,beforeUpload:function(q){On=q.name}},fr=function(){var X=Object(c.a)(x.a.mark(function q(oe){return x.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,fn.validateFields();case 2:Dt.onClose(),Dt.onOK({path:Dt.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(Wn.current,"/").concat((q=It.pathname)===null||q===void 0||((oe=q.split("/"))===null||oe===void 0)?void 0:oe[3]).concat(sn?"/master/shixun_show/".concat(sn):""))};return v.a.createElement(m.a,{visible:Dt.visible,onOk:fr,centered:!0,onCancel:Dt.onClose,width:"70%"},v.a.createElement("section",{className:Q.a.bg},v.a.createElement("div",{className:Q.a.wrap},v.a.createElement("div",{className:Q.a.title},"\u4E0A\u4F20\u6587\u4EF6"),v.a.createElement(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:fr,onValuesChange:function(){return vn(Object(n.a)({},fn.getFieldsValue()))}},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),v.a.createElement(de.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},v.a.createElement(J,xr,v.a.createElement("div",null,v.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(Q.a.colorBlue)})),v.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",v.a.createElement("span",{className:"".concat(Q.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),v.a.createElement(le.a,{onFinish:function(q){return en(q)}})))},_e=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})(ve),Ae=o("Bbdw"),Je=o.n(Ae),tt=o("HpfO"),ut=o.n(tt),ft=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.dispatch,pt=Fe.title,bt=Fe.pathList,Dt=bt===void 0?[]:bt,It=Fe.showInputPath,ct=It===void 0?!1:It,Nt=Fe.isMergeSelectFile,jt=Nt===void 0?!1:Nt,on=Fe.onFinish,vn=on===void 0?function(){}:on,Wn=de.a.useForm(),Kn=Object(w.a)(Wn,1),Hn=Kn[0],fn=Object(L.i)(),lr=Object(L.h)(),Zn=Object(S.useRef)(),cr=Object(S.useState)(""),dr=Object(w.a)(cr,2),Dr=dr[0],hr=dr[1],sn=Object(S.useState)(""),en=Object(w.a)(sn,2),On=en[0],Fr=en[1],Or=Object(S.useState)([]),xr=Object(w.a)(Or,2),fr=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 qt,yn;Zn.current=((qt=lr.pathname)===null||qt===void 0||((yn=qt.split("/"))===null||yn===void 0)?void 0:yn[3])==="repository"},[]),Object(S.useEffect)(function(){if(at.actionTabs.key!=="Repository-SelectFilePath")return;var qt=Dt.join("/"),yn=[];Dt.map(function(un,jr){jr===0?yn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(un),path:qt}):yn.push({val:"/".concat(un),path:qt})}),pe(yn),hr(qt),Fr(qt),fe(qt)},[at.actionTabs.key]);var fe=function(){var qt=Object(c.a)(x.a.mark(function yn(un){var jr;return x.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Qe({type:Zn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:fn.id,path:un}});case 2:jr=oa.sent,jr&&De(jr.trees||[]);case 4:case"end":return oa.stop()}},yn)}));return function(un){return qt.apply(this,arguments)}}(),ot=function(yn){var un=Dr;yn.type==="tree"&&(fr.length?fr.push({val:"/".concat(yn.name),path:yn.name}):fr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(yn.name),path:yn.name}),pe(fr),un=Dr?"".concat(Dr,"/").concat(yn.name):yn.name,hr(un)),fe(un)},Zt=function(yn,un){var jr=fr.filter(function(oa,er){return er<=un});pe(jr);var ra=jr.filter(function(oa,er){return er!==0}).map(function(oa){return oa.val}).join("").substr(1);hr(ra),fe(ra)},Mn=function(){var qt=Object(c.a)(x.a.mark(function yn(){var un,jr,ra;return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(un=Hn==null?void 0:Hn.getFieldsValue(),jr=Dr?"".concat(Dr).concat(un!=null&&un.name?"/".concat(un==null?void 0:un.name):""):un==null?void 0:un.name,!jt){er.next=6;break}return vn(jr),Vn(),er.abrupt("return");case 6:if(!ct){er.next=16;break}return er.next=9,Hn.validateFields();case 9:return er.next=11,Qe({type:"shixunsDetail/uploadGitFolder",payload:Object(n.a)(Object(n.a)({},{id:fn.id,path:jr}),Zn.current?{}:{secret_repository:!0})});case 11:ra=er.sent,vn(On),ra.status===0&&d.b.info("\u65B0\u5EFA\u6210\u529F"),er.next=18;break;case 16:vn(jr),d.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Vn();case 19:case"end":return er.stop()}},yn)}));return function(){return qt.apply(this,arguments)}}(),Vn=function(){Qe({type:"shixunsDetail/setActionTabs",payload:{}}),Hn.resetFields()};return v.a.createElement(m.a,{centered:!0,title:pt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:at.actionTabs.key==="Repository-SelectFilePath",onOk:Mn,onCancel:Vn},v.a.createElement("div",{className:ut.a.wrap},v.a.createElement("div",{className:ut.a.content},v.a.createElement("div",{className:ut.a.mainPathWrap},!!(fr!=null&&fr.length)&&fr.map(function(qt,yn){return v.a.createElement("a",{key:yn,onClick:function(){return Zt(qt,yn)}},qt.val)})),!!(oe!=null&&oe.length)&&oe.map(function(qt,yn){return qt.type==="tree"&&v.a.createElement("a",{key:yn,onClick:function(){return ot(qt)}},v.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(ut.a.colorBlue)}),qt.name)})),v.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),v.a.createElement("div",{className:"mt5 mb5"},Dr),ct&&v.a.createElement(de.a,{form:Hn,scrollToFirstError:!0,className:"mt20"},v.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"}]},v.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(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting;return{shixunsDetail:Fe,globalSetting:it,loading:at.models.index}})(ft),_t=o("GZ0F"),Ve=o("8Skl"),je=o("HBuW"),ht=o("1vsH"),Bt=o("NLgs"),Et=o("lzim"),Pt=F.a.DirectoryTree,qe=function(Fe){var at,it,Pe,Qe,pt,bt,Dt,It=Fe.shixunsDetail,ct=Fe.globalSetting,Nt=Fe.loading,jt=Fe.user,on=Fe.activeKey,vn=Fe.dispatch,Wn=Fe.practiceSetting,Kn=Fe.isRepository,Hn=Fe.treeData,fn=Fe.setTreeData,lr=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Zn=Object(L.i)(),cr=Object(L.h)(),dr=Object(S.useState)(),Dr=Object(w.a)(dr,2),hr=Dr[0],sn=Dr[1],en=Object(S.useState)(!1),On=Object(w.a)(en,2),Fr=On[0],Or=On[1],xr=Object(S.useState)(!1),fr=Object(w.a)(xr,2),pe=fr[0],X=fr[1],q=Object(S.useState)(!1),oe=Object(w.a)(q,2),De=oe[0],fe=oe[1],ot=Object(S.useState)(!1),Zt=Object(w.a)(ot,2),Mn=Zt[0],Vn=Zt[1],qt=Object(S.useState)(""),yn=Object(w.a)(qt,2),un=yn[0],jr=yn[1],ra=Object(S.useState)([]),oa=Object(w.a)(ra,2),er=oa[0],Ba=oa[1],Ea=Object(S.useState)([]),ca=Object(w.a)(Ea,2),Ka=ca[0],Ta=ca[1],Ja=Object(S.useState)([]),Ua=Object(w.a)(Ja,2),li=Ua[0],oi=Ua[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],Ht=Rt[1],Lt=Object(S.useState)(),Xt=Object(w.a)(Lt,2),rn=Xt[0],En=Xt[1],gn=Object(S.useState)(""),Nn=Object(w.a)(gn,2),An=Nn[0],an=Nn[1],Pn=Object(S.useState)(),bn=Object(w.a)(Pn,2),kn=bn[0],Rn=bn[1],Yn=Object(S.useState)(!1),mr=Object(w.a)(Yn,2),Br=mr[0],Sn=mr[1];Object(S.useEffect)(function(){fn([]),Un(""),localStorage.warehouseHideTip||xe(!0)},[cr.pathname,Kn]);var Yt=function(){var nr=Object(c.a)(x.a.mark(function Gt(){var $t,Jt,Xn=arguments;return x.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return $t=Xn.length>0&&Xn[0]!==void 0?Xn[0]:"",Ln.next=3,Object(je.Gb)({id:Zn.id,secret_dir_path:$t});case 3:Jt=Ln.sent,Jt&&Rn($t);case 5:case"end":return Ln.stop()}},Gt)}));return function(){return nr.apply(this,arguments)}}(),hn=function(Gt){var $t;return v.a.createElement(r.a,{className:Je.a.menu,onClick:function(Xn){jr(Gt.path||"");switch(Xn.key){case"1":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Or(!0);break;case"2":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),fe(!0);break;case"3":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Vn(!0);break;case"4":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),X(!0);break;case"5":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Rr(Gt.path,Gt.name,Gt);break;case"6":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Ir(Gt);break}}},(Gt.type==="topTree"||Gt.type==="tree")&&v.a.createElement(r.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Gt.type==="topTree"||Gt.type==="tree")&&v.a.createElement(r.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Gt.type==="topTree"||Gt.type==="tree")&&v.a.createElement(r.a.Item,{key:"3"},"\u4E0A\u4F20"),Gt.type!=="topTree"&&Gt.type!=="tree"&&(It==null||(($t=It.detail)===null||$t===void 0)?void 0:$t.public)<2&&v.a.createElement(r.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Gt.type!=="topTree"&&v.a.createElement(I.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Kn?"":"secret/").concat(Gt==null?void 0:Gt.path),onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},v.a.createElement(r.a.Item,{key:"6"},v.a.createElement(v.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Gt.type!=="topTree"&&v.a.createElement(r.a.Item,{key:"5"},"\u5220\u9664"))},Dn=function(Gt,$t){return Gt.map(function(Jt){return $t==""?Jt.path=$t+Jt.name:Jt.path=$t+"/"+Jt.name,Jt.title=v.a.createElement(C.a,{className:"font14"},v.a.createElement(f.a,{flex:"1"},v.a.createElement(C.a,null,v.a.createElement(f.a,{flex:"20px"},Jt.type==="blob"&&v.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),v.a.createElement(f.a,{flex:"1"},v.a.createElement("span",{className:" multi_ellipsis1"},Jt.name)))),v.a.createElement(f.a,null,(Jt.type==="blob"||Jt.type==="tree")&&v.a.createElement(l.a,{overlay:hn(Jt),className:Je.a.ellipsis},v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Jt.disableCheckbox=hr&&hr!==Jt.name,Jt.className=Jt.type==="tree"?Je.a.pl23:"",Jt.checkable=Jt.type!=="tree",Jt.isLeaf=Jt.type!=="tree",Jt.children=Jt.type==="tree"&&[],Jt.key=Jt.path,Jt})},tn=function(Gt){vn({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Gt}})},wn=function(){var nr=Object(c.a)(x.a.mark(function Gt($t,Jt){var Xn;return x.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Xn=$t.split("/"),Ln.next=3,Un(un);case 3:setTimeout(function(){tn($t),er=[Xn[0]||""],Ka=[$t],Ta(Object(D.a)(Ka)),Ba(Object(D.a)(er))},150);case 4:case"end":return Ln.stop()}},Gt)}));return function($t,Jt){return nr.apply(this,arguments)}}(),_n=function(Gt,$t){if($t=="")Hn=Object(D.a)(Gt),fn(Object(D.a)(Gt));else{var Jt=In(Hn,$t,Gt);Hn=Jt,fn(Object(D.a)(Jt))}};function In(nr,Gt,$t){return nr.map(function(Jt){return Jt.key===Gt?(Jt.children=Object(D.a)($t),Object(n.a)({},Jt)):Jt.children?Object(n.a)(Object(n.a)({},Jt),{},{children:In(Jt.children,Gt,$t)}):Jt})}var Un=function(){var nr=Object(c.a)(x.a.mark(function Gt(){var $t,Jt,Xn,$n,Ln,rr=arguments;return x.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return $t=rr.length>0&&rr[0]!==void 0?rr[0]:"",ir.next=3,vn({type:Kn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Zn.id,path:$t}});case 3:return Jt=ir.sent,Jt&&((Xn=Jt.trees)!==null&&Xn!==void 0&&Xn.length?(Ln=Dn(Object(D.a)(Jt.trees),$t),_n(Ln,$t),oi(Jt.trees||[]),En($t||""),console.log("handleGetRepository:",Ln,$t),setTimeout(function(){return console.log(Hn,Jt.trees,$t,999999)},2e3)):$t==""&&fn([]),Ht((($n=Jt.commits)===null||$n===void 0?void 0:$n[0])||{})),ir.abrupt("return",Jt);case 6:case"end":return ir.stop()}},Gt)}));return function(){return nr.apply(this,arguments)}}(),ar=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){return x.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.abrupt("return",new Promise(function(){var $n=Object(c.a)(x.a.mark(function Ln(rr,ur){return x.a.wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:return $t.children.length&&rr(),an($t.path),qr.next=4,Un($t.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 Xn.stop()}},Gt)}));return function($t){return nr.apply(this,arguments)}}(),qn=function(){var nr=Object(c.a)(x.a.mark(function Gt($t,Jt){var Xn,$n;return x.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(console.log("handleSelectTree",$t,Jt.nativeEvent.target.nodeName,Jt),Xn=function(){tn(Jt.node.path),$t=[Jt.node.path],Ta(Object(D.a)($t))},!(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"&&(Wn!=null&&($n=Wn.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(){Xn(),vn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):Xn());case 5:case"end":return rr.stop()}},Gt)}));return function($t,Jt){return nr.apply(this,arguments)}}(),Rr=function(Gt,$t,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 Xn=Object(c.a)(x.a.mark(function Ln(){var rr,ur,ir;return x.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,vn({type:"shixunsDetail/deleteGitFile",payload:{id:Zn.id,path:Gt,message:"\u5220\u9664".concat(Gt),secret_repository:Kn?null:!0}});case 2:if(rr=or.sent,ur=Gt.split("/"),!((rr==null?void 0:rr.status)===0)){or.next=20;break}return d.b.info("\u5220\u9664\u6210\u529F"),ur.splice(ur.length-1,1),or.next=9,Un(ur.length>1?ur.join("/"):"");case 9:if(ir=or.sent,!(ir!=null&&ir.trees)){or.next=13;break}or.next=16;break;case 13:return ur.splice(ur.length-1,1),or.next=16,Un(ur.length>1?ur.join("/"):"");case 16:return tn(""),or.abrupt("return",!0);case 20:(rr==null?void 0:rr.status)===-3&&m.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:v.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(Zn.id,"/edit/").concat(rr==null?void 0:rr.message,"/tab=2")}});case 21:case"end":return or.stop()}},Ln)}));function $n(){return Xn.apply(this,arguments)}return $n}()})},Ir=function(Gt){console.log(Gt,"item")},Jn=function(){var nr=Object(c.a)(x.a.mark(function Gt($t,Jt){return x.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,ar(Jt.node);case 7:er.includes(Jt.node.path)?er.splice(er.indexOf(Jt.node.path),1):er.push(Jt.node.path);case 8:Ba(Object(D.a)(er));case 9:case"end":return $n.stop()}},Gt)}));return function($t,Jt){return nr.apply(this,arguments)}}(),Ar=function(){xe(!1),localStorage.warehouseHideTip=!0},vr=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){var Jt,Xn,$n,Ln,rr;return x.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:$n="",ir.t0=Kn,ir.next=ir.t0===!0?4:ir.t0===!1?9:11;break;case 4:return $n="\u5F00\u542F\u7248\u672C\u5E93",Ln="\u5F00\u542F",rr="\u4E0D\u5F00\u542F",Xn=v.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"),ir.abrupt("break",11);case 9:return It!=null&&(Jt=It.detail)!==null&&Jt!==void 0&&Jt.secret_repository?($n="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u786E\u5B9A",rr="\u53D6\u6D88",Xn=v.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",Xn=v.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")),ir.abrupt("break",11);case 11:if(!(!Kn&&Object(Bt.b)(vn,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){ir.next=13;break}return ir.abrupt("return");case 13:m.a.confirm({title:$n,okText:Ln,cancelText:rr,content:Xn,onOk:function(){var or;Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",$n]),!Kn&&!(It!=null&&(or=It.detail)!==null&&or!==void 0&&or.secret_repository)||zr($t)},onCancel:function(){var or;!Kn&&!(It!=null&&(or=It.detail)!==null&&or!==void 0&&or.secret_repository)&&zr($t)}});case 14:case"end":return ir.stop()}},Gt)}));return function($t){return nr.apply(this,arguments)}}(),zr=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){return x.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(!Kn){Xn.next=6;break}return Xn.next=3,Object(je.r)(Object(n.a)({},Zn));case 3:vn({type:"practiceSetting/getCommonData",payload:Object(n.a)({},Zn)}),Xn.next=8;break;case 6:return Xn.next=8,Object(je.t)(Object(n.a)(Object(n.a)({},Zn),{},{is_secret_repository:$t}));case 8:Un(),vn({type:"shixunsDetail/getShixunsDetail",payload:{id:Zn.id}});case 10:case"end":return Xn.stop()}},Gt)}));return function($t){return nr.apply(this,arguments)}}(),Lr=function(Gt){console.log(Gt)},$r=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){var Jt,Xn,$n,Ln,rr,ur,ir,qr,or,da,Yr;return x.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(console.log($t),Jt=$t.node.key,Xn=$t.dragNode.key,$n=$t.node.pos.split("-"),Ln=$t.dropPosition-Number($n[$n.length-1]),!($t.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(!($t.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,vn({type:"shixunsDetail/moveGitFile",payload:{id:Zn.id,from:$t.dragNode.path,to:$t.node.path+"/"+$t.dragNode.name,message:"".concat($t.dragNode.path," move to ").concat($t.node.path+"/"+$t.dragNode.name," ")}});case 13:if(rr=Sr.sent,!(rr.status===0)){Sr.next=26;break}return tn(""),Sr.next=18,Un("");case 18:ur=0;case 19:if(!(ur>>24)&16711935|(d<<24|d>>>8)&4278255360}var s=this._hash.words,u=i[r+0],w=i[r+1],E=i[r+2],_=i[r+3],P=i[r+4],R=i[r+5],x=i[r+6],S=i[r+7],v=i[r+8],T=i[r+9],U=i[r+10],L=i[r+11],N=i[r+12],V=i[r+13],H=i[r+14],D=i[r+15],W=s[0],F=s[1],I=s[2],K=s[3];W=f(W,F,I,K,u,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,_,22,m[3]),W=f(W,F,I,K,P,7,m[4]),K=f(K,W,F,I,R,12,m[5]),I=f(I,K,W,F,x,17,m[6]),F=f(F,I,K,W,S,22,m[7]),W=f(W,F,I,K,v,7,m[8]),K=f(K,W,F,I,T,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,x,9,m[17]),I=a(I,K,W,F,L,14,m[18]),F=a(F,I,K,W,u,20,m[19]),W=a(W,F,I,K,R,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,P,20,m[23]),W=a(W,F,I,K,T,5,m[24]),K=a(K,W,F,I,H,9,m[25]),I=a(I,K,W,F,_,14,m[26]),F=a(F,I,K,W,v,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=l(W,F,I,K,R,4,m[32]),K=l(K,W,F,I,v,11,m[33]),I=l(I,K,W,F,L,16,m[34]),F=l(F,I,K,W,H,23,m[35]),W=l(W,F,I,K,w,4,m[36]),K=l(K,W,F,I,P,11,m[37]),I=l(I,K,W,F,S,16,m[38]),F=l(F,I,K,W,U,23,m[39]),W=l(W,F,I,K,V,4,m[40]),K=l(K,W,F,I,u,11,m[41]),I=l(I,K,W,F,_,16,m[42]),F=l(F,I,K,W,x,23,m[43]),W=l(W,F,I,K,T,4,m[44]),K=l(K,W,F,I,N,11,m[45]),I=l(I,K,W,F,D,16,m[46]),F=l(F,I,K,W,E,23,m[47]),W=n(W,F,I,K,u,6,m[48]),K=n(K,W,F,I,S,10,m[49]),I=n(I,K,W,F,H,15,m[50]),F=n(F,I,K,W,R,21,m[51]),W=n(W,F,I,K,N,6,m[52]),K=n(K,W,F,I,_,10,m[53]),I=n(I,K,W,F,U,15,m[54]),F=n(F,I,K,W,w,21,m[55]),W=n(W,F,I,K,v,6,m[56]),K=n(K,W,F,I,D,10,m[57]),I=n(I,K,W,F,x,15,m[58]),F=n(F,I,K,W,V,21,m[59]),W=n(W,F,I,K,P,6,m[60]),K=n(K,W,F,I,L,10,m[61]),I=n(I,K,W,F,E,15,m[62]),F=n(F,I,K,W,T,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,r=i.words,c=this._nDataBytes*8,h=i.sigBytes*8;r[h>>>5]|=128<<24-h%32;var d=g.floor(c/4294967296),s=c;r[(h+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,r[(h+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,i.sigBytes=(r.length+1)*4,this._process();for(var u=this._hash,w=u.words,E=0;E<4;E++){var _=w[E];w[E]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return u},clone:function(){var i=C.clone.call(this);return i._hash=this._hash.clone(),i}});function f(i,r,c,h,d,s,u){var w=i+(r&c|~r&h)+d+u;return(w<>>32-s)+r}function a(i,r,c,h,d,s,u){var w=i+(r&h|c&~h)+d+u;return(w<>>32-s)+r}function l(i,r,c,h,d,s,u){var w=i+(r^c^h)+d+u;return(w<>>32-s)+r}function n(i,r,c,h,d,s,u){var w=i+(c^(r|~h))+d+u;return(w<>>32-s)+r}O.MD5=C._createHelper(e),O.HmacMD5=C._createHmacHelper(e)}(Math),M.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 M=o("Ff2n"),g=o("rePB"),O=o("1OyB"),b=o("vuIU"),y=o("Ji7U"),C=o("md7G"),A=o("foSv"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),l=o("4IlW");function n(v,T){var U=Object.keys(v);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(v);T&&(L=L.filter(function(N){return Object.getOwnPropertyDescriptor(v,N).enumerable})),U.push.apply(U,L)}return U}function i(v){for(var T=1;T1?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 _(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===l.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(!P(N.value,H)||!P(N.max,W)||!P(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(_(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)?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),qe=Et||D||W,He=Pt||D||W,Ye=a()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(g.a)({},"".concat(H,"-handler-up-disabled"),qe)),Ce=a()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(g.a)({},"".concat(H,"-handler-down-disabled"),He)),Le=F?{onTouchStart:qe?h:this.up,onTouchEnd:this.stop}:{onMouseDown:qe?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},We=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:Ve,style:Te,title:ce,onMouseEnter:be,onMouseLeave:ye,onMouseOver:ue,onMouseOut:se,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"},Le,{role:"button","aria-label":"Increase Value","aria-disabled":qe,className:Ye}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:d})),e.a.createElement("span",Object.assign({unselectable:"on"},We,{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:Je,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:re,autoComplete:I,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ht?this.onKeyDown:h,onKeyUp:ht?this.onKeyUp:h,autoFocus:_e,maxLength:ve,readOnly:W,disabled:D,max:de,min:Se,step:J,name:Ae,title:ce,id:le,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Bt),pattern:Q,inputMode:te,onInput:tt},je))))}}]),U}(e.a.Component);R.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 x=R,S=z.a=x},e7zE:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.Base,y=O.WordArray,C=g.algo,A=C.SHA1,m=C.HMAC,e=C.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:A,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,a){for(var l=this.cfg,n=m.create(l.hasher,f),i=y.create(),r=y.create([1]),c=i.words,h=r.words,d=l.keySize,s=l.iterations;c.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(ye,ue){var se=new Map;ye.forEach(function(me){se.set(me,!0)});var $=ue.filter(function(me){return!se.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,ye=Se.selectable,ue=Se.checkable,se=Se.expandedKeys,$=Se.selectedKeys,me=Se.checkedKeys,re=Se.loadedKeys,ae=Se.loadingKeys,Oe=Se.halfCheckedKeys,le=Se.keyEntities,te=Se.disabled,Q=Se.dragging,J=Se.dragOverNodeKey,ve=Se.dropPosition,_e=Se.motion,Ae=Se.height,Je=Se.itemHeight,tt=Se.virtual,ut=Se.focusable,ft=Se.activeItem,vt=Se.focused,_t=Se.tabIndex,Ve=Se.onKeyDown,je=Se.onFocus,ht=Se.onBlur,Bt=Se.onActiveChange,Et=Se.onListChangeStart,Pt=Se.onListChangeEnd,qe=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 Ye=m.useState(se),Ce=Object(c.a)(Ye,2),Le=Ce[0],We=Ce[1],Ue=m.useState(be),ze=Object(c.a)(Ue,2),st=ze[0],Ct=ze[1],Wt=m.useState(be),Qt=Object(c.a)(Wt,2),Kt=Qt[0],Ot=Qt[1],Fe=m.useState([]),at=Object(c.a)(Fe,2),it=at[0],Pe=at[1],Qe=m.useState(null),pt=Object(c.a)(Qe,2),bt=pt[0],Dt=pt[1];function It(){Ct(be),Ot(be),Pe([]),Dt(null),Pt()}m.useEffect(function(){We(se);var jt=P(Le,se);if(jt.key!==null)if(jt.add){var on=st.findIndex(function(lr){var Zn=lr.data.key;return Zn===jt.key}),vn=N(R(st,be,jt.key),tt,Ae,Je),Wn=st.slice();Wn.splice(on+1,0,L),Ot(Wn),Pe(vn),Dt("show")}else{var Kn=be.findIndex(function(lr){var Zn=lr.data.key;return Zn===jt.key}),Hn=N(R(be,st,jt.key),tt,Ae,Je),fn=be.slice();fn.splice(Kn+1,0,L),Ot(fn),Pe(Hn),Dt("hide")}else st!==be&&(Ct(be),Ot(be))},[se,be]),m.useEffect(function(){Q||It()},[Q]);var ct=_e?Kt:be,Nt={expandedKeys:se,selectedKeys:$,loadedKeys:re,loadingKeys:ae,checkedKeys:me,halfCheckedKeys:Oe,dragOverNodeKey:J,dropPosition:ve,keyEntities:le};return m.createElement(m.Fragment,null,vt&&ft&&m.createElement("span",{style:x,"aria-live":"assertive"},H(ft)),m.createElement("div",{role:"tree"},m.createElement("input",{style:x,disabled:ut===!1||te,tabIndex:ut!==!1?_t:null,onKeyDown:Ve,onFocus:je,onBlur:ht,value:"",onChange:S})),m.createElement(d.a,Object.assign({},qe,{data:ct,itemKey:V,height:Ae,fullHeight:!1,virtual:tt,itemHeight:Je,prefixCls:"".concat(ce,"-list"),ref:He}),function(jt){var on=jt.pos,vn=jt.data,Wn=vn.key,Kn=Object(h.a)(vn,["key"]),Hn=jt.isStart,fn=jt.isEnd,lr=Object(r.e)(Wn,on);delete Kn.children;var Zn=Object(r.f)(lr,Nt);return m.createElement(_,Object.assign({},Kn,Zn,{active:ft&&Wn===ft.data.key,pos:on,data:jt.data,isStart:Hn,isEnd:fn,motion:_e,motionNodes:Wn===v?it:null,motionType:bt,onMotionStart:Et,onMotionEnd:It,treeNodeRequiredProps:Nt,onMouseMove:function(){Bt(null)}}))}))},W=m.forwardRef(D);W.displayName="NodeList";var F=W,I=o("NvD2"),K=function(de){Object(C.a)(Te,de);var Se=Object(A.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,ye){var ue=ce.state,se=ue.expandedKeys,$=ue.keyEntities,me=ce.props.onDragStart,re=ye.props.eventKey;ce.dragNode=ye;var ae=Object(i.b)(se,re);ce.setState({dragging:!0,dragNodesKeys:Object(i.g)(re,$)}),ce.setExpandedKeys(ae),me&&me({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragEnter=function(be,ye){var ue=ce.state,se=ue.expandedKeys,$=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ae=ye.props,Oe=ae.pos,le=ae.eventKey;if(!ce.dragNode||me.indexOf(le)!==-1)return;var te=Object(i.c)(be,ye);if(ce.dragNode.props.eventKey===le&&te===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:le,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(O.a)(se),J=$[le];J&&(J.children||[]).length&&(Q=Object(i.a)(se,le)),"expandedKeys"in ce.props||ce.setExpandedKeys(Q),re&&re({event:be,node:Object(r.b)(ye.props),expandedKeys:Q})},400)},0)},ce.onNodeDragOver=function(be,ye){var ue=ce.state.dragNodesKeys,se=ce.props.onDragOver,$=ye.props.eventKey;if(ue.indexOf($)!==-1)return;if(ce.dragNode&&$===ce.state.dragOverNodeKey){var me=Object(i.c)(be,ye);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}se&&se({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragLeave=function(be,ye){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragEnd=function(be,ye){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:be,node:Object(r.b)(ye.props)}),ce.dragNode=null},ce.onNodeDrop=function(be,ye){var ue=ce.state,se=ue.dragNodesKeys,$=se===void 0?[]:se,me=ue.dropPosition,re=ce.props.onDrop,ae=ye.props,Oe=ae.eventKey,le=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)(le),Q={event:be,node:Object(r.b)(ye.props),dragNode:ce.dragNode?Object(r.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,ye){var ue=ce.props.onClick;ue&&ue(be,ye)},ce.onNodeDoubleClick=function(be,ye){var ue=ce.props.onDoubleClick;ue&&ue(be,ye)},ce.onNodeSelect=function(be,ye){var ue=ce.state.selectedKeys,se=ce.state.keyEntities,$=ce.props,me=$.onSelect,re=$.multiple,ae=ye.selected,Oe=ye.key,le=!ae;le?re?ue=Object(i.a)(ue,Oe):ue=[Oe]:ue=Object(i.b)(ue,Oe);var te=ue.map(function(Q){var J=se[Q];return J?J.node:null}).filter(function(Q){return Q});ce.setUncontrolledState({selectedKeys:ue}),me&&me(ue,{event:"select",selected:le,node:ye,selectedNodes:te,nativeEvent:be.nativeEvent})},ce.onNodeCheck=function(be,ye,ue){var se=ce.state,$=se.keyEntities,me=se.checkedKeys,re=se.halfCheckedKeys,ae=ce.props,Oe=ae.checkStrictly,le=ae.onCheck,te=ye.key,Q,J={event:"check",node:ye,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(O.a)(me),[te]),!0,$),Je=Ae.checkedKeys,tt=Ae.halfCheckedKeys;if(!ue){var ut=new Set(Je);ut.delete(te);var ft=Object(I.a)(Array.from(ut),{checked:!1,halfCheckedKeys:tt},$);Je=ft.checkedKeys,tt=ft.halfCheckedKeys}Q=Je,J.checkedNodes=[],J.checkedNodesPositions=[],J.halfCheckedKeys=tt,Je.forEach(function(vt){var _t=$[vt];if(!_t)return;var Ve=_t.node,je=_t.pos;J.checkedNodes.push(Ve),J.checkedNodesPositions.push({node:Ve,pos:je})}),ce.setUncontrolledState({checkedKeys:Je},!1,{halfCheckedKeys:tt})}le&&le(Q,J)},ce.onNodeLoad=function(be){return new Promise(function(ye){ce.setState(function(ue){var se=ue.loadedKeys,$=se===void 0?[]:se,me=ue.loadingKeys,re=me===void 0?[]:me,ae=ce.props,Oe=ae.loadData,le=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),Je=Object(i.b)(_e,te);le&&le(Ae,{event:"load",node:be}),ce.setUncontrolledState({loadedKeys:Ae}),ce.setState({loadingKeys:Je}),ye()}),{loadingKeys:Object(i.a)(re,te)}})})},ce.onNodeMouseEnter=function(be,ye){var ue=ce.props.onMouseEnter;ue&&ue({event:be,node:ye})},ce.onNodeMouseLeave=function(be,ye){var ue=ce.props.onMouseLeave;ue&&ue({event:be,node:ye})},ce.onNodeContextMenu=function(be,ye){var ue=ce.props.onRightClick;ue&&(be.preventDefault(),ue({event:be,node:ye}))},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,ye=be.expandedKeys,ue=be.selectedKeys,se=be.loadedKeys,$=be.loadingKeys,me=be.checkedKeys,re=be.halfCheckedKeys,ae=be.dragOverNodeKey,Oe=be.dropPosition,le=be.keyEntities;return{expandedKeys:ye||[],selectedKeys:ue||[],loadedKeys:se||[],loadingKeys:$||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ae,dropPosition:Oe,keyEntities:le}},ce.setExpandedKeys=function(be){var ye=ce.state.treeData,ue=Object(r.d)(ye,be);ce.setUncontrolledState({expandedKeys:be,flattenNodes:ue},!0)},ce.onNodeExpand=function(be,ye){var ue=ce.state.expandedKeys,se=ce.state.listChanging,$=ce.props,me=$.onExpand,re=$.loadData,ae=ye.key,Oe=ye.expanded;if(se)return;var le=ue.indexOf(ae),te=!Oe;if(Object(f.a)(Oe&&le!==-1||!Oe&&le===-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:ye,expanded:te,nativeEvent:be.nativeEvent}),te&&re){var Q=ce.onNodeLoad(ye);Q&&Q.then(function(){var J=Object(r.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 ye=ce.state.activeKey,ue=ce.props.onActiveChange;if(ye===be)return;ce.setState({activeKey:be}),be!==null&&ce.scrollTo({key:be}),ue&&ue(be)},ce.getActiveItem=function(){var be=ce.state,ye=be.activeKey,ue=be.flattenNodes;return ye===null?null:ue.find(function(se){var $=se.data.key;return $===ye})||null},ce.offsetActiveKey=function(be){var ye=ce.state,ue=ye.flattenNodes,se=ye.activeKey,$=ue.findIndex(function(ae){var Oe=ae.data.key;return Oe===se});$===-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 ye=ce.state,ue=ye.activeKey,se=ye.expandedKeys,$=ye.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 le=ce.getActiveItem();if(le&&le.data){var te=ce.getTreeNodeRequiredProps(),Q=le.data.isLeaf===!1||!!(le.data.children||[]).length,J=Object(r.b)(Object(g.a)(Object(g.a)({},Object(r.f)(ue,te)),{},{data:le.data,active:!0}));switch(be.which){case e.a.LEFT:{Q&&se.includes(ue)?ce.onNodeExpand({},J):le.parent&&ce.onActiveChange(le.parent.data.key),be.preventDefault();break}case e.a.RIGHT:{Q&&!se.includes(ue)?ce.onNodeExpand({},J):le.children&&le.children.length&&ce.onActiveChange(le.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 ye=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 se=!1,$=!0,me={};Object.keys(be).forEach(function(re){if(re in ce.props){$=!1;return}se=!0,me[re]=be[re]}),se&&(!ye||$)&&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,ye=this.state,ue=ye.focused,se=ye.flattenNodes,$=ye.keyEntities,me=ye.dragging,re=ye.activeKey,ae=this.props,Oe=ae.prefixCls,le=ae.className,te=ae.style,Q=ae.showLine,J=ae.focusable,ve=ae.tabIndex,_e=ve===void 0?0:ve,Ae=ae.selectable,Je=ae.showIcon,tt=ae.icon,ut=ae.switcherIcon,ft=ae.draggable,vt=ae.checkable,_t=ae.checkStrictly,Ve=ae.disabled,je=ae.motion,ht=ae.loadData,Bt=ae.filterTreeNode,Et=ae.height,Pt=ae.itemHeight,qe=ae.virtual,He=ae.titleRender,Ye=ae.onContextMenu,Ce=Object(i.f)(this.props);return m.createElement(n.a.Provider,{value:{prefixCls:Oe,selectable:Ae,showIcon:Je,icon:tt,switcherIcon:ut,draggable:ft,checkable:vt,checkStrictly:_t,disabled:Ve,keyEntities:$,loadData:ht,filterTreeNode:Bt,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:l()(Oe,le,(be={},Object(M.a)(be,"".concat(Oe,"-show-line"),Q),Object(M.a)(be,"".concat(Oe,"-focused"),ue),Object(M.a)(be,"".concat(Oe,"-active-focused"),re!==null),be))},m.createElement(F,Object.assign({ref:this.listRef,prefixCls:Oe,style:te,data:se,disabled:Ve,selectable:Ae,checkable:!!vt,motion:je,dragging:me,height:Et,itemHeight:Pt,virtual:qe,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:Ye},this.getTreeNodeRequiredProps(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(be,ye){var ue=ye.prevProps,se={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(r.c)(be.children)),me){se.treeData=me;var re=Object(r.a)(me);se.keyEntities=Object(g.a)(Object(M.a)({},v,U),re.keyEntities)}var ae=se.keyEntities||ye.keyEntities;if($("expandedKeys")||ue&&$("autoExpandParent"))se.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[v],se.expandedKeys=Object.keys(Oe).map(function(tt){return Oe[tt].key})}else!ue&&be.defaultExpandedKeys&&(se.expandedKeys=be.autoExpandParent||be.defaultExpandParent?Object(i.e)(be.defaultExpandedKeys,ae):be.defaultExpandedKeys);if(se.expandedKeys||delete se.expandedKeys,me||se.expandedKeys){var le=Object(r.d)(me||ye.treeData,se.expandedKeys||ye.expandedKeys);se.flattenNodes=le}if(be.selectable&&($("selectedKeys")?se.selectedKeys=Object(i.d)(be.selectedKeys,be):!ue&&be.defaultSelectedKeys&&(se.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:ye.checkedKeys,halfCheckedKeys:ye.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 Je=Object(I.a)(ve,!0,ae);ve=Je.checkedKeys,Ae=Je.halfCheckedKeys}se.checkedKeys=ve,se.halfCheckedKeys=Ae}}return $("loadedKeys")&&(se.loadedKeys=be.loadedKeys),se}}]),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=u.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 n}),o.d(z,"b",function(){return i}),o.d(z,"a",function(){return r}),o.d(z,"d",function(){return c}),o.d(z,"e",function(){return h}),o.d(z,"c",function(){return d});var M=o("8HAY"),g=o("Vhoy"),O=o("MI8n"),b=o("JYp7"),y=o("pmY6"),C=o("24hK"),A=o("nnTU"),m=o("T8No"),e=o("Cg/j"),f=o("t9D7"),a=function(s,u,w,E){var _=arguments.length,P=_<3?u:E===null?E=Object.getOwnPropertyDescriptor(u,w):E,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(s,u,w,E);else for(var x=s.length-1;x>=0;x--)(R=s[x])&&(P=(_<3?R(P):_>3?R(u,w,P):R(u,w))||P);return _>3&&P&&Object.defineProperty(u,w,P),P},l=function(s,u){return function(w,E){u(w,E,s)}};function n(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 r=Object(e.c)("menuService"),c=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new O.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 u of s)this._commands.set(u.id,u);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let u=!1;for(const w of s)u=this._commands.delete(w.id)||u;u&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((u,w)=>s.set(w,u)),s}appendMenuItem(s,u){return this.appendMenuItems(b.a.single({id:s,item:u}))}appendMenuItems(s){const u=new Set,w=new C.a;for(const{id:E,item:_}of s){let P=this._menuItems.get(E);P||(P=new C.a,this._menuItems.set(E,P)),w.push(P.push(_)),u.add(E)}return this._onDidChangeMenu.fire(u),Object(y.i)(()=>{if(w.size>0){for(let E of w)E();this._onDidChangeMenu.fire(u),w.clear()}})}getMenuItems(s){let u;return this._menuItems.has(s)?u=[...this._menuItems.get(s)]:u=[],s===i.CommandPalette&&this._appendImplicitItems(u),u}_appendImplicitItems(s){const u=new Set;for(const w of s)n(w)&&(u.add(w.command.id),w.alt&&u.add(w.alt.id));this._commands.forEach((w,E)=>{u.has(E)||s.push({command:w})})}};class h extends M.e{constructor(s,u,w,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=u,this._contextKeyService=w,this._options=E}get actions(){const s=[],u=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=u.getActions(this._options);u.dispose();for(const[,E]of w)E.length>0&&(s.push(...E),s.push(new M.d));return s.length&&s.pop(),s}}let d=class s{constructor(u,w,E,_,P){var R,x;if(this._commandService=P,this.id=u.id,this.label=(E==null?void 0:E.renderShortTitle)&&u.shortTitle?typeof u.shortTitle=="string"?u.shortTitle:u.shortTitle.value:typeof u.title=="string"?u.title:u.title.value,this.tooltip=(x=typeof u.tooltip=="string"?u.tooltip:(R=u.tooltip)===null||R===void 0?void 0:R.value)!==null&&x!==void 0?x:"",this.enabled=!u.precondition||_.contextMatchesRules(u.precondition),this.checked=void 0,u.toggled){const S=u.toggled.condition?u.toggled:{condition:u.toggled};this.checked=_.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=u,this.alt=w?new s(w,void 0,E,_,P):void 0,this._options=E,f.d.isThemeIcon(u.icon)&&(this.class=g.a.asClassName(u.icon))}dispose(){}run(...u){var w,E;let _=[];return((w=this._options)===null||w===void 0?void 0:w.arg)&&(_=[..._,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(_=[..._,...u]),this._commandService.executeCommand(this.id,..._)}};d=a([l(3,m.b),l(4,A.b)],d)},fyJ8:function(k,z,o){"use strict";var M=o("rePB"),g=o("VTBJ"),O=o("Ff2n"),b=o("U8pU"),y=o("q1tI"),C=o.n(y),A=o("TSYQ"),m=o.n(A),e=o("c+Xe"),f=o("sR1s");function a(c){return c&&Object(b.a)(c)==="object"&&!Array.isArray(c)&&!y.isValidElement(c)}function l(c){return typeof c=="string"?!0:Object(e.c)(c)}function n(c,h){var d,s=c.prefixCls,u=c.className,w=c.record,E=c.index,_=c.dataIndex,P=c.render,R=c.children,x=c.component,S=x===void 0?"td":x,v=c.colSpan,T=c.rowSpan,U=c.fixLeft,L=c.fixRight,N=c.firstFixLeft,V=c.lastFixLeft,H=c.firstFixRight,D=c.lastFixRight,W=c.appendNode,F=c.additionalProps,I=F===void 0?{}:F,K=c.ellipsis,ee=c.align,he=c.rowType,de=c.isSticky,Se="".concat(s,"-cell"),Te,ce;if(R)ce=R;else{var be=Object(f.b)(w,_);if(ce=be,P){var ye=P(be,w,E);a(ye)?(ce=ye.children,Te=ye.props):ce=ye}}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||{},se=ue.colSpan,$=ue.rowSpan,me=ue.style,re=ue.className,ae=Object(O.a)(ue,["colSpan","rowSpan","style","className"]),Oe=se!==void 0?se:v,le=$!==void 0?$:T;if(Oe===0||le===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 Je=Object(g.a)(Object(g.a)(Object(g.a)({title:_e},ae),I),{},{colSpan:Oe&&Oe!==1?Oe:null,rowSpan:le&&le!==1?le:null,className:m()(Se,u,(d={},Object(M.a)(d,"".concat(Se,"-fix-left"),Q),Object(M.a)(d,"".concat(Se,"-fix-left-first"),N),Object(M.a)(d,"".concat(Se,"-fix-left-last"),V),Object(M.a)(d,"".concat(Se,"-fix-right"),J),Object(M.a)(d,"".concat(Se,"-fix-right-first"),H),Object(M.a)(d,"".concat(Se,"-fix-right-last"),D),Object(M.a)(d,"".concat(Se,"-ellipsis"),K),Object(M.a)(d,"".concat(Se,"-with-append"),W),Object(M.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:l(S)?h:null});return y.createElement(S,Object.assign({},Je),W,ce)}var i=y.forwardRef(n);i.displayName="Cell";var r=y.memo(i,function(c,h){return h.shouldCellUpdate?!h.shouldCellUpdate(h.record,c.record):!1});z.a=r},"gb/T":function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.ECB=function(){var g=M.lib.BlockCipherMode.extend();return g.Encryptor=g.extend({processBlock:function(O,b){this._cipher.encryptBlock(O,b)}}),g.Decryptor=g.extend({processBlock:function(O,b){this._cipher.decryptBlock(O,b)}}),g}(),M.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 M=o("q1tI"),g=o.n(M),O=o("TSYQ"),b=o.n(O),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},C=function(D){var W=D.map(function(){return Object(M.useRef)()}),F=Object(M.useRef)();return Object(M.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 A(){return A=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||Kn.target.offsetWidth>0)&&Pt.current.instance.layout()}}catch(Hn){vn.e(Hn)}finally{vn.f()}}),jt.observe(Et.current)),jt}function Ct(){b.b.warn(decodeURIComponent(x))}var Wt=function(){var on=Pt.current.instance;if(Se!=null&&on&&Ue){var vn=on.getModel();vn&&Se!==vn.getValue()&&(N=!0,vn.setValue(Se),on.layout(),N=!1)}};Object(m.useEffect)(function(){He.current&&clearTimeout(He.current),He.current=setTimeout(function(){Wt()},500)},[Se,Ue,Pt.current]),Object(m.useEffect)(function(){if(Ve&&Pt.current&&Pt.current.instance){var jt=Pt.current.instance;jt.changeViewZones(function(vn){var Wn=document.createElement("div");Wn.style.padding="10px 20px",Wn.style.width="calc(100% - 20px)",Wn.className="my-error-line-wrp",Wn.innerHTML=ht,vn.addZone({afterLineNumber:Ve||11,heightInLines:3,domNode:Wn})});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}};jt.addOverlayWidget(on),jt.revealPositionInCenter({lineNumber:20,column:1})}},[Ve,Pt.current,Ue]);function Qt(){var jt=Pt.current.instance;if(jt){var on=jt.getSelection(),vn=Pt.current.pastePos||{},Wn=new D.Range(vn.startLineNumber||on.endLineNumber,vn.startColumn||on.endColumn,vn.endLineNumber||on.endLineNumber,vn.endColumn||on.endColumn);setTimeout(function(){jt.executeEdits("",[{range:Wn,text:""}])},300)}}function Kt(jt){(window.navigator.platform.match("Mac")?jt.metaKey:jt.ctrlKey)&&jt.keyCode==83&&(jt.preventDefault(),le())}var Ot=function(){if(Q&&Pt.current.instance){var on=Pt.current.instance.getContentHeight();ct(on0||Je.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(16),o.e(28)]).then(o.t.bind(null,"M/lh",7)).then(function(Q){D=Q;var J=D.editor.createDiffEditor(ue.current,Object(M.a)(Object(M.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},ye),{},{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),le=U(de),te={width:Oe,height:le};return e.a.createElement("div",{className:"my-diff-editor",ref:ue,style:te})}},ZpRC:function(k,z,o){"use strict";function M(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function g(a,l){return(!l||a!=="hidden")&&a!=="visible"&&a!=="clip"}function O(a,l){if(a.clientHeightl||c>a&&h=l&&d>=n?c-a-i:h>l&&dn?h-l+r:0}var y=function(a,l){var n=window,i=l.scrollMode,r=l.block,c=l.inline,h=l.boundary,d=l.skipOverflowHiddenElements,s=typeof h=="function"?h:function(Q){return Q!==h};if(!M(a))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,w=[],E=a;M(E)&&s(E);){if((E=E.parentElement)===u){w.push(E);break}E!=null&&E===document.body&&O(E)&&!O(document.documentElement)||E!=null&&O(E,d)&&w.push(E)}for(var _=n.visualViewport?n.visualViewport.width:innerWidth,P=n.visualViewport?n.visualViewport.height:innerHeight,R=window.scrollX||pageXOffset,x=window.scrollY||pageYOffset,S=a.getBoundingClientRect(),v=S.height,T=S.width,U=S.top,L=S.right,N=S.bottom,V=S.left,H=r==="start"||r==="nearest"?U:r==="end"?N:U+v/2,D=c==="center"?V+T/2:c==="end"?L:V,W=[],F=0;F=0&&V>=0&&N<=P&&L<=_&&U>=de&&N<=Te&&V>=ce&&L<=Se)return W;var be=getComputedStyle(I),ye=parseInt(be.borderLeftWidth,10),ue=parseInt(be.borderTopWidth,10),se=parseInt(be.borderRightWidth,10),$=parseInt(be.borderBottomWidth,10),me=0,re=0,ae="offsetWidth"in I?I.offsetWidth-I.clientWidth-ye-se:0,Oe="offsetHeight"in I?I.offsetHeight-I.clientHeight-ue-$:0;if(u===I)me=r==="start"?H:r==="end"?H-P:r==="nearest"?b(x,x+P,P,ue,$,x+H,x+H+v,v):H-P/2,re=c==="start"?D:c==="center"?D-_/2:c==="end"?D-_:b(R,R+_,_,ye,se,R+D,R+D+T,T),me=Math.max(0,me+x),re=Math.max(0,re+R);else{me=r==="start"?H-de-ue:r==="end"?H-Te+$+Oe:r==="nearest"?b(de,Te,ee,ue,$+Oe,H,H+v,v):H-(de+ee/2)+Oe/2,re=c==="start"?D-ce-ye:c==="center"?D-(ce+he/2)+ae/2:c==="end"?D-Se+se+ae:b(ce,Se,he,ye,se+ae,D,D+T,T);var le=I.scrollLeft,te=I.scrollTop;H+=te-(me=Math.max(0,Math.min(te+me,I.scrollHeight-ee+Oe))),D+=le-(re=Math.max(0,Math.min(le+re,I.scrollWidth-he+ae)))}W.push({el:I,top:me,left:re})}return W};function C(a){return a===Object(a)&&Object.keys(a).length!==0}function A(a,l){l===void 0&&(l="auto");var n="scrollBehavior"in document.body.style;a.forEach(function(i){var r=i.el,c=i.top,h=i.left;r.scroll&&n?r.scroll({top:c,left:h,behavior:l}):(r.scrollTop=c,r.scrollLeft=h)})}function m(a){return a===!1?{block:"end",inline:"nearest"}:C(a)?a:{block:"start",inline:"nearest"}}function e(a,l){var n=!a.ownerDocument.documentElement.contains(a);if(C(l)&&typeof l.behavior=="function")return l.behavior(n?[]:y(a,l));if(n)return;var i=m(l);return A(y(a,i),i.behavior)}var f=z.a=e},Zss7:function(k,z,o){var M;(function(g){var O=/^\s+/,b=/\s+$/,y=0,C=g.round,A=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=C(100*this._a)/100,this._format=me.format||re.format,this._gradientType=me.gradientType,this._r<1&&(this._r=C(this._r)),this._g<1&&(this._g=C(this._g)),this._b<1&&(this._b=C(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,le,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?le=re/12.92:le=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*le+.0722*te},setAlpha:function($){return this._a=W($),this._roundA=C(100*this._a)/100,this},toHsv:function(){var $=r(this._r,this._g,this._b);return{h:$.h*360,s:$.s,v:$.v,a:this._a}},toHsvString:function(){var $=r(this._r,this._g,this._b),me=C($.h*360),re=C($.s*100),ae=C($.v*100);return this._a==1?"hsv("+me+", "+re+"%, "+ae+"%)":"hsva("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHsl:function(){var $=n(this._r,this._g,this._b);return{h:$.h*360,s:$.s,l:$.l,a:this._a}},toHslString:function(){var $=n(this._r,this._g,this._b),me=C($.h*360),re=C($.s*100),ae=C($.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:C(this._r),g:C(this._g),b:C(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+C(this._r)+", "+C(this._g)+", "+C(this._b)+")":"rgba("+C(this._r)+", "+C(this._g)+", "+C(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:C(F(this._r,255)*100)+"%",g:C(F(this._g,255)*100)+"%",b:C(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+C(F(this._r,255)*100)+"%, "+C(F(this._g,255)*100)+"%, "+C(F(this._b,255)*100)+"%)":"rgba("+C(F(this._r,255)*100)+"%, "+C(F(this._g,255)*100)+"%, "+C(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(_,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(x,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(v,arguments)},tetrad:function(){return this._applyCombination(T,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,le=null,te=!1,Q=!1;return typeof $=="string"&&($=ue($)),typeof $=="object"&&(ye($.r)&&ye($.g)&&ye($.b)?(me=l($.r,$.g,$.b),te=!0,Q=String($.r).substr(-1)==="%"?"prgb":"rgb"):ye($.h)&&ye($.s)&&ye($.v)?(ae=Se($.s),Oe=Se($.v),me=c($.h,ae,Oe),te=!0,Q="hsv"):ye($.h)&&ye($.s)&&ye($.l)&&(ae=Se($.s),le=Se($.l),me=i($.h,ae,le),te=!0,Q="hsl"),$.hasOwnProperty("a")&&(re=$.a)),re=W(re),{ok:te,format:$.format||Q,r:A(255,m(me.r,0)),g:A(255,m(me.g,0)),b:A(255,m(me.b,0)),a:re}}function l($,me,re){return{r:F($,255)*255,g:F(me,255)*255,b:F(re,255)*255}}function n($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=A($,me,re),le,te,Q=(ae+Oe)/2;if(ae==Oe)le=te=0;else{var J=ae-Oe;te=Q>.5?J/(2-ae-Oe):J/(ae+Oe);switch(ae){case $:le=(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=le=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,$),le=te(J,Q,$-1/3)}return{r:ae*255,g:Oe*255,b:le*255}}function r($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=A($,me,re),le,te,Q=ae,J=ae-Oe;if(te=ae===0?0:J/ae,ae==Oe)le=0;else{switch(ae){case $:le=(me-re)/J+(me>1)+720)%360;--me;)ae.h=(ae.h+Oe)%360,le.push(f(ae));return le}function N($,me){me=me||6;for(var re=f($).toHsv(),ae=re.h,Oe=re.s,le=re.v,te=[],Q=1/me;me--;)te.push(f({h:ae,s:Oe,v:le})),le=(le+Q)%1;return te}f.mix=function($,me,re){re=re===0?0:re||50;var ae=f($).toRgb(),Oe=f(me).toRgb(),le=re/100,te={r:(Oe.r-ae.r)*le+ae.r,g:(Oe.g-ae.g)*le+ae.g,b:(Oe.b-ae.b)*le+ae.b,a:(Oe.a-ae.a)*le+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,le;le=!1,Oe=se(re);switch(Oe.level+Oe.size){case"AAsmall":case"AAAlarge":le=ae>=4.5;break;case"AAlarge":le=ae>=3;break;case"AAAsmall":le=ae>=7;break}return le},f.mostReadable=function($,me,re){var ae=null,Oe=0,le,te,Q,J;re=re||{},te=re.includeFallbackColors,Q=re.level,J=re.size;for(var ve=0;veOe&&(Oe=le,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 $=A(me,m(0,parseFloat($))),re&&($=parseInt($*me,10)/100),g.abs($-me)<1e-6?1:$%me/parseFloat(me)}function I($){return A(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 ye($){return!!be.CSS_UNIT.exec($)}function ue($){$=$.replace(O,"").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 se($){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:!(M=function(){return f}.call(z,o,z,k),M!==void 0&&(k.exports=M))})(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(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return function(g){var O=M,b=O.lib,y=b.CipherParams,C=O.enc,A=C.Hex,m=O.format,e=m.Hex={stringify:function(f){return f.ciphertext.toString(A)},parse:function(f){var a=A.parse(f);return y.create({ciphertext:a})}}}(),M.format.Hex})},bT9E:function(k,z,o){"use strict";o.d(z,"a",function(){return g});var M=o("VTBJ");function g(O,b){var y=Object(M.a)({},O);return Array.isArray(b)&&b.forEach(function(C){delete y[C]}),y}},bUJZ:function(k,z){k.exports="data:image/png;base64,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"},biw7:function(k,z,o){"use strict";var M=o("q1tI"),g=o.n(M),O=M.createContext(null);z.a=O},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 M=o("+L6B"),g=o("2/Rp"),O=o("T2oS"),b=o("W9HT"),y=o("14J3"),C=o("BMrR"),A=o("2qtc"),m=o("kLXV"),e=o("jCWc"),f=o("kPKH"),a=o("qVdP"),l=o("jsC+"),n=o("k1fw"),i=o("lUTK"),r=o("BvKs"),c=o("9og8"),h=o("miYZ"),d=o("tsqr"),s=o("5Dmo"),u=o("3S7+"),w=o("tJVT"),E=o("PpiC"),_=o("Znn+"),P=o("ZTPi"),R=o("WmNS"),x=o.n(R),S=o("q1tI"),v=o.n(S),T=o("B6bo"),U=o.n(T),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(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)(""),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1];Object(S.useEffect)(function(){Dt.visible&&fn.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var en=sn.split(",").join("/"),On=en.indexOf("/")===0?en.substr(1):en;dr(On)}},[]),Object(S.useEffect)(function(){var sn,en;Wn.current=(sn=It.pathname)===null||sn===void 0||((en=sn.split("/"))===null||en===void 0)?void 0:en[2]},[]);var Dr=function(){var sn=Object(c.a)(x.a.mark(function en(){var On,Fr,Or=arguments;return x.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},fr.next=3,pt({type:"shixunsDetail/addRepositoryFile",payload:{id:ct.id,message:On.commitMessage,content:"",path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),secret_repository:bt?void 0:!0}});case 3:Fr=fr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),name:On.path.split("/")[On.path.split("/").length-1]}),Dt.onClose());case 5:case"end":return fr.stop()}},en)}));return function(){return sn.apply(this,arguments)}}(),hr=function(){var en,On;N.d.push("/shixuns/".concat(Wn.current,"/").concat((en=It.pathname)===null||en===void 0||((On=en.split("/"))===null||On===void 0)?void 0:On[3]).concat(cr?"/master/shixun_show/".concat(cr):""))};return v.a.createElement(m.a,{width:"60%",centered:!0,visible:Dt.visible,wrapClassName:Te.a.modal,onOk:function(){fn.submit()},onCancel:Dt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:Dr,onChange:function(){var en,On,Fr,Or,xr=Object(n.a)({},fn.getFieldsValue()),fr=xr==null||((en=xr.path)===null||en===void 0)?void 0:en.split(""),pe=xr==null||((On=xr.file)===null||On===void 0)?void 0:On.split("");fr!=null&&(Fr=fr.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)),fn.setFieldsValue(Object(n.a)({},xr)),vn(xr)}},v.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,null,v.a.createElement("span",{className:Te.a.filePath},Dt.defaultPath+"/")),v.a.createElement(f.a,{flex:"1"},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),v.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},v.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"})),v.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"}]},v.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(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})(ce),ye=o("7ahc"),ue=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)(""),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1];Object(S.useEffect)(function(){Dt.visible&&fn.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var en=sn.split(",").join("/"),On=en.indexOf("/")===0?en.substr(1):en;dr(On)}},[]),Object(S.useEffect)(function(){var sn,en;Wn.current=(sn=It.pathname)===null||sn===void 0||((en=sn.split("/"))===null||en===void 0)?void 0:en[2]},[]);var Dr=function(){var sn=Object(c.a)(x.a.mark(function en(){var On,Fr,Or=arguments;return x.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},fr.next=3,pt({type:"shixunsDetail/addRepositoryFile",payload:{id:ct.id,message:On.commitMessage,content:On.codeMirror,path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path,secret_repository:bt?void 0:!0}});case 3:Fr=fr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:(Dt.defaultPath?Dt.defaultPath+"/":"")+On.path,name:On.path.split("/")[On.path.split("/").length-1]}),Dt.onClose());case 5:case"end":return fr.stop()}},en)}));return function(){return sn.apply(this,arguments)}}(),hr=function(){var en,On;N.d.push("/shixuns/".concat(Wn.current,"/").concat((en=It.pathname)===null||en===void 0||((On=en.split("/"))===null||On===void 0)?void 0:On[3]).concat(cr?"/master/shixun_show/".concat(cr):""))};return v.a.createElement(m.a,{width:"60%",visible:Dt.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){fn.submit()},onCancel:Dt.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:Dr,onChange:function(){var en,On,Fr=Object(n.a)({},fn.getFieldsValue()),Or=Fr==null||((en=Fr.path)===null||en===void 0)?void 0:en.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)),fn.setFieldsValue(Object(n.a)({},Fr)),vn(Fr)}},v.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,null,v.a.createElement("span",{className:Te.a.filePath},Dt.defaultPath+"/")),v.a.createElement(f.a,{flex:"1"},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),v.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"}]},v.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"})),v.a.createElement("div",{className:"mt10 mb20"},v.a.createElement(de.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},v.a.createElement(ye.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"]}})))))))},se=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})(ue),$=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)(""),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1],Dr=Object(S.useState)(""),hr=Object(w.a)(Dr,2),sn=hr[0],en=hr[1];Object(S.useEffect)(function(){Dt.visible&&fn.resetFields()},[Dt.visible]),Object(S.useEffect)(function(){var Or=Dt.defaultPath.split("/");Or.length===1?(dr(""),en(Dt.defaultPath)):(en(Or.pop()),dr(Or.join("/")+"/"))},[Dt.defaultPath]),Object(S.useEffect)(function(){var Or,xr;Wn.current=(Or=It.pathname)===null||Or===void 0||((xr=Or.split("/"))===null||xr===void 0)?void 0:xr[2]},[]);var On=function(){var Or=Object(c.a)(x.a.mark(function xr(){var fr,pe,X=arguments;return x.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return fr=X.length>0&&X[0]!==void 0?X[0]:{},oe.next=3,pt({type:"shixunsDetail/moveGitFile",payload:{id:ct.id,from:Dt.defaultPath,to:cr+fr.path,message:fr.commitMessage||"".concat(Dt.defaultPath," rename to ").concat(cr).concat(fr.path," "),secret_repository:bt}});case 3:pe=oe.sent,(pe==null?void 0:pe.status)===0&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Dt.onOK({path:fr.path,name:fr.path}),Dt.onClose());case 5:case"end":return oe.stop()}},xr)}));return function(){return Or.apply(this,arguments)}}(),Fr=function(){var xr,fr;N.d.push("/shixuns/".concat(Wn.current,"/").concat((xr=It.pathname)===null||xr===void 0||((fr=xr.split("/"))===null||fr===void 0)?void 0:fr[3]).concat(cr?"/master/shixun_show/".concat(cr):""))};return v.a.createElement(m.a,{width:"40%",visible:Dt.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){fn.submit()},onCancel:Dt.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},v.a.createElement("section",{className:Te.a.bg},v.a.createElement("div",{className:Te.a.wrap},v.a.createElement(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:On,onChange:function(){var xr,fr,pe=Object(n.a)({},fn.getFieldsValue()),X=pe==null||((xr=pe.path)===null||xr===void 0)?void 0:xr.split("");(X==null||((fr=X.filter(function(q){return q=="/"}))===null||fr===void 0)?void 0:fr.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),fn.setFieldsValue(Object(n.a)({},pe)),vn(pe)}},v.a.createElement(de.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},v.a.createElement(C.a,null,v.a.createElement(f.a,{flex:"1"},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:sn}))))),v.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},v.a.createElement(ee.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(Dt.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})($),re=o("DZo9"),ae=o("8z0m"),Oe=o("m3rI"),le=o("8j3D"),te=o("RC3E"),Q=o.n(te),J=ae.a.Dragger,ve=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.user,pt=Fe.dispatch,bt=Fe.isRepository,Dt=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),It=Object(L.h)(),ct=Object(L.i)(),Nt=Object(S.useState)({}),jt=Object(w.a)(Nt,2),on=jt[0],vn=jt[1],Wn=Object(S.useRef)(),Kn=de.a.useForm(),Hn=Object(w.a)(Kn,1),fn=Hn[0],lr=Object(S.useState)([]),Zn=Object(w.a)(lr,2),cr=Zn[0],dr=Zn[1],Dr=Object(S.useState)(),hr=Object(w.a)(Dr,2),sn=hr[0],en=hr[1],On;Object(S.useEffect)(function(){Dt.visible&&(fn.resetFields(),dr([]))},[Dt.visible]),Object(S.useEffect)(function(){Wn.current=ct.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;en(oe)}},[]);var Fr=function(q){if(On=q.file.name,q.file.status==="done"||q.file.status==="uploading"){var oe,De,fe;if(dr(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}dr(cr.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(c.a)(x.a.mark(function q(oe){var De;return x.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,pt({type:"shixunsDetail/deleteGitFile",payload:{id:ct.id,path:sn?"".concat(sn,"/").concat(oe.name):oe.name,message:fn.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(sn?"".concat(sn,"/").concat(oe.name):oe.name),secret_repository:bt?null:!0}});case 5:De=ot.sent,De.status===0&&(dr(cr.filter(function(Zt){return Zt.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(c.a)(x.a.mark(function oe(){return x.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.abrupt("return",new Promise(function(){var ot=Object(c.a)(x.a.mark(function Zt(Mn,Vn){return x.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:setTimeout(Object(c.a)(x.a.mark(function un(){var jr,aa;return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,fn.getFieldsValue();case 2:jr=er.sent,aa=Object(n.a)(Object(n.a)({},{path:Dt.defaultPath?Dt.defaultPath:"",message:on.commitMessage||"\u4E0A\u4F20\u4E86".concat(On)}),bt?{}:{secret_repository:!0}),Mn(aa);case 5:case"end":return er.stop()}},un)})),200);case 1:case"end":return En.stop()}},Zt)}));return function(Zt,Mn){return ot.apply(this,arguments)}}()));case 1:case"end":return fe.stop()}},oe)}));function q(){return X.apply(this,arguments)}return q}(),fileList:cr,method:"post",action:"".concat(Oe.a.API_SERVER,"/api/shixuns/").concat(Wn.current,"/upload_git_file.json"),onChange:Fr,onRemove:Or,beforeUpload:function(q){On=q.name}},fr=function(){var X=Object(c.a)(x.a.mark(function q(oe){return x.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,fn.validateFields();case 2:Dt.onClose(),Dt.onOK({path:Dt.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(Wn.current,"/").concat((q=It.pathname)===null||q===void 0||((oe=q.split("/"))===null||oe===void 0)?void 0:oe[3]).concat(sn?"/master/shixun_show/".concat(sn):""))};return v.a.createElement(m.a,{visible:Dt.visible,onOk:fr,centered:!0,onCancel:Dt.onClose,width:"70%"},v.a.createElement("section",{className:Q.a.bg},v.a.createElement("div",{className:Q.a.wrap},v.a.createElement("div",{className:Q.a.title},"\u4E0A\u4F20\u6587\u4EF6"),v.a.createElement(de.a,{className:"mt10",form:fn,scrollToFirstError:!0,layout:"vertical",onFinish:fr,onValuesChange:function(){return vn(Object(n.a)({},fn.getFieldsValue()))}},v.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"}]},v.a.createElement(ee.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),v.a.createElement(de.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},v.a.createElement(J,xr,v.a.createElement("div",null,v.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(Q.a.colorBlue)})),v.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",v.a.createElement("span",{className:"".concat(Q.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),v.a.createElement(le.a,{onFinish:function(q){return en(q)}})))},_e=Object(N.a)(function(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting,Pe=Ot.user;return{shixunsDetail:Fe,globalSetting:it,user:Pe,loading:at.models.index}})(ve),Ae=o("Bbdw"),Je=o.n(Ae),tt=o("HpfO"),ut=o.n(tt),ft=function(Fe){var at=Fe.shixunsDetail,it=Fe.globalSetting,Pe=Fe.loading,Qe=Fe.dispatch,pt=Fe.title,bt=Fe.pathList,Dt=bt===void 0?[]:bt,It=Fe.showInputPath,ct=It===void 0?!1:It,Nt=Fe.isMergeSelectFile,jt=Nt===void 0?!1:Nt,on=Fe.onFinish,vn=on===void 0?function(){}:on,Wn=de.a.useForm(),Kn=Object(w.a)(Wn,1),Hn=Kn[0],fn=Object(L.i)(),lr=Object(L.h)(),Zn=Object(S.useRef)(),cr=Object(S.useState)(""),dr=Object(w.a)(cr,2),Dr=dr[0],hr=dr[1],sn=Object(S.useState)(""),en=Object(w.a)(sn,2),On=en[0],Fr=en[1],Or=Object(S.useState)([]),xr=Object(w.a)(Or,2),fr=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 qt,En;Zn.current=((qt=lr.pathname)===null||qt===void 0||((En=qt.split("/"))===null||En===void 0)?void 0:En[3])==="repository"},[]),Object(S.useEffect)(function(){if(at.actionTabs.key!=="Repository-SelectFilePath")return;var qt=Dt.join("/"),En=[];Dt.map(function(un,jr){jr===0?En.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(un),path:qt}):En.push({val:"/".concat(un),path:qt})}),pe(En),hr(qt),Fr(qt),fe(qt)},[at.actionTabs.key]);var fe=function(){var qt=Object(c.a)(x.a.mark(function En(un){var jr;return x.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Qe({type:Zn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:fn.id,path:un}});case 2:jr=oa.sent,jr&&De(jr.trees||[]);case 4:case"end":return oa.stop()}},En)}));return function(un){return qt.apply(this,arguments)}}(),ot=function(En){var un=Dr;En.type==="tree"&&(fr.length?fr.push({val:"/".concat(En.name),path:En.name}):fr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(En.name),path:En.name}),pe(fr),un=Dr?"".concat(Dr,"/").concat(En.name):En.name,hr(un)),fe(un)},Zt=function(En,un){var jr=fr.filter(function(oa,er){return er<=un});pe(jr);var aa=jr.filter(function(oa,er){return er!==0}).map(function(oa){return oa.val}).join("").substr(1);hr(aa),fe(aa)},Mn=function(){var qt=Object(c.a)(x.a.mark(function En(){var un,jr,aa;return x.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(un=Hn==null?void 0:Hn.getFieldsValue(),jr=Dr?"".concat(Dr).concat(un!=null&&un.name?"/".concat(un==null?void 0:un.name):""):un==null?void 0:un.name,!jt){er.next=6;break}return vn(jr),Vn(),er.abrupt("return");case 6:if(!ct){er.next=16;break}return er.next=9,Hn.validateFields();case 9:return er.next=11,Qe({type:"shixunsDetail/uploadGitFolder",payload:Object(n.a)(Object(n.a)({},{id:fn.id,path:jr}),Zn.current?{}:{secret_repository:!0})});case 11:aa=er.sent,vn(On),aa.status===0&&d.b.info("\u65B0\u5EFA\u6210\u529F"),er.next=18;break;case 16:vn(jr),d.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Vn();case 19:case"end":return er.stop()}},En)}));return function(){return qt.apply(this,arguments)}}(),Vn=function(){Qe({type:"shixunsDetail/setActionTabs",payload:{}}),Hn.resetFields()};return v.a.createElement(m.a,{centered:!0,title:pt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:at.actionTabs.key==="Repository-SelectFilePath",onOk:Mn,onCancel:Vn},v.a.createElement("div",{className:ut.a.wrap},v.a.createElement("div",{className:ut.a.content},v.a.createElement("div",{className:ut.a.mainPathWrap},!!(fr!=null&&fr.length)&&fr.map(function(qt,En){return v.a.createElement("a",{key:En,onClick:function(){return Zt(qt,En)}},qt.val)})),!!(oe!=null&&oe.length)&&oe.map(function(qt,En){return qt.type==="tree"&&v.a.createElement("a",{key:En,onClick:function(){return ot(qt)}},v.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(ut.a.colorBlue)}),qt.name)})),v.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),v.a.createElement("div",{className:"mt5 mb5"},Dr),ct&&v.a.createElement(de.a,{form:Hn,scrollToFirstError:!0,className:"mt20"},v.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"}]},v.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(Ot){var Fe=Ot.shixunsDetail,at=Ot.loading,it=Ot.globalSetting;return{shixunsDetail:Fe,globalSetting:it,loading:at.models.index}})(ft),_t=o("GZ0F"),Ve=o("8Skl"),je=o("HBuW"),ht=o("1vsH"),Bt=o("NLgs"),Et=o("lzim"),Pt=F.a.DirectoryTree,qe=function(Fe){var at,it,Pe,Qe,pt,bt,Dt,It=Fe.shixunsDetail,ct=Fe.globalSetting,Nt=Fe.loading,jt=Fe.user,on=Fe.activeKey,vn=Fe.dispatch,Wn=Fe.practiceSetting,Kn=Fe.isRepository,Hn=Fe.treeData,fn=Fe.setTreeData,lr=Object(E.a)(Fe,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Zn=Object(L.i)(),cr=Object(L.h)(),dr=Object(S.useState)(),Dr=Object(w.a)(dr,2),hr=Dr[0],sn=Dr[1],en=Object(S.useState)(!1),On=Object(w.a)(en,2),Fr=On[0],Or=On[1],xr=Object(S.useState)(!1),fr=Object(w.a)(xr,2),pe=fr[0],X=fr[1],q=Object(S.useState)(!1),oe=Object(w.a)(q,2),De=oe[0],fe=oe[1],ot=Object(S.useState)(!1),Zt=Object(w.a)(ot,2),Mn=Zt[0],Vn=Zt[1],qt=Object(S.useState)(""),En=Object(w.a)(qt,2),un=En[0],jr=En[1],aa=Object(S.useState)([]),oa=Object(w.a)(aa,2),er=oa[0],Ba=oa[1],Ea=Object(S.useState)([]),ca=Object(w.a)(Ea,2),Ka=ca[0],Ta=ca[1],Ja=Object(S.useState)([]),Ua=Object(w.a)(Ja,2),li=Ua[0],oi=Ua[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],Ht=Rt[1],Lt=Object(S.useState)(),Xt=Object(w.a)(Lt,2),rn=Xt[0],xn=Xt[1],gn=Object(S.useState)(""),Nn=Object(w.a)(gn,2),An=Nn[0],an=Nn[1],Pn=Object(S.useState)(),yn=Object(w.a)(Pn,2),kn=yn[0],Rn=yn[1],Yn=Object(S.useState)(!1),mr=Object(w.a)(Yn,2),Br=mr[0],Sn=mr[1];Object(S.useEffect)(function(){fn([]),Un(""),localStorage.warehouseHideTip||xe(!0)},[cr.pathname,Kn]);var Yt=function(){var nr=Object(c.a)(x.a.mark(function Gt(){var $t,Jt,Xn=arguments;return x.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return $t=Xn.length>0&&Xn[0]!==void 0?Xn[0]:"",Ln.next=3,Object(je.Gb)({id:Zn.id,secret_dir_path:$t});case 3:Jt=Ln.sent,Jt&&Rn($t);case 5:case"end":return Ln.stop()}},Gt)}));return function(){return nr.apply(this,arguments)}}(),hn=function(Gt){var $t;return v.a.createElement(r.a,{className:Je.a.menu,onClick:function(Xn){jr(Gt.path||"");switch(Xn.key){case"1":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Or(!0);break;case"2":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),fe(!0);break;case"3":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Vn(!0);break;case"4":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),X(!0);break;case"5":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Rr(Gt.path,Gt.name,Gt);break;case"6":Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Ir(Gt);break}}},(Gt.type==="topTree"||Gt.type==="tree")&&v.a.createElement(r.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Gt.type==="topTree"||Gt.type==="tree")&&v.a.createElement(r.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Gt.type==="topTree"||Gt.type==="tree")&&v.a.createElement(r.a.Item,{key:"3"},"\u4E0A\u4F20"),Gt.type!=="topTree"&&Gt.type!=="tree"&&(It==null||(($t=It.detail)===null||$t===void 0)?void 0:$t.public)<2&&v.a.createElement(r.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Gt.type!=="topTree"&&v.a.createElement(I.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Kn?"":"secret/").concat(Gt==null?void 0:Gt.path),onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},v.a.createElement(r.a.Item,{key:"6"},v.a.createElement(v.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Gt.type!=="topTree"&&v.a.createElement(r.a.Item,{key:"5"},"\u5220\u9664"))},Dn=function(Gt,$t){return Gt.map(function(Jt){return $t==""?Jt.path=$t+Jt.name:Jt.path=$t+"/"+Jt.name,Jt.title=v.a.createElement(C.a,{className:"font14"},v.a.createElement(f.a,{flex:"1"},v.a.createElement(C.a,null,v.a.createElement(f.a,{flex:"20px"},Jt.type==="blob"&&v.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),v.a.createElement(f.a,{flex:"1"},v.a.createElement("span",{className:" multi_ellipsis1"},Jt.name)))),v.a.createElement(f.a,null,(Jt.type==="blob"||Jt.type==="tree")&&v.a.createElement(l.a,{overlay:hn(Jt),className:Je.a.ellipsis},v.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Jt.disableCheckbox=hr&&hr!==Jt.name,Jt.className=Jt.type==="tree"?Je.a.pl23:"",Jt.checkable=Jt.type!=="tree",Jt.isLeaf=Jt.type!=="tree",Jt.children=Jt.type==="tree"&&[],Jt.key=Jt.path,Jt})},tn=function(Gt){vn({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Gt}})},wn=function(){var nr=Object(c.a)(x.a.mark(function Gt($t,Jt){var Xn;return x.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Xn=$t.split("/"),Ln.next=3,Un(un);case 3:setTimeout(function(){tn($t),er=[Xn[0]||""],Ka=[$t],Ta(Object(D.a)(Ka)),Ba(Object(D.a)(er))},150);case 4:case"end":return Ln.stop()}},Gt)}));return function($t,Jt){return nr.apply(this,arguments)}}(),_n=function(Gt,$t){if($t=="")Hn=Object(D.a)(Gt),fn(Object(D.a)(Gt));else{var Jt=In(Hn,$t,Gt);Hn=Jt,fn(Object(D.a)(Jt))}};function In(nr,Gt,$t){return nr.map(function(Jt){return Jt.key===Gt?(Jt.children=Object(D.a)($t),Object(n.a)({},Jt)):Jt.children?Object(n.a)(Object(n.a)({},Jt),{},{children:In(Jt.children,Gt,$t)}):Jt})}var Un=function(){var nr=Object(c.a)(x.a.mark(function Gt(){var $t,Jt,Xn,$n,Ln,rr=arguments;return x.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return $t=rr.length>0&&rr[0]!==void 0?rr[0]:"",ir.next=3,vn({type:Kn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Zn.id,path:$t}});case 3:return Jt=ir.sent,Jt&&((Xn=Jt.trees)!==null&&Xn!==void 0&&Xn.length?(Ln=Dn(Object(D.a)(Jt.trees),$t),_n(Ln,$t),oi(Jt.trees||[]),xn($t||""),console.log("handleGetRepository:",Ln,$t),setTimeout(function(){return console.log(Hn,Jt.trees,$t,999999)},2e3)):$t==""&&fn([]),Ht((($n=Jt.commits)===null||$n===void 0?void 0:$n[0])||{})),ir.abrupt("return",Jt);case 6:case"end":return ir.stop()}},Gt)}));return function(){return nr.apply(this,arguments)}}(),ar=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){return x.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.abrupt("return",new Promise(function(){var $n=Object(c.a)(x.a.mark(function Ln(rr,ur){return x.a.wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:return $t.children.length&&rr(),an($t.path),qr.next=4,Un($t.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 Xn.stop()}},Gt)}));return function($t){return nr.apply(this,arguments)}}(),qn=function(){var nr=Object(c.a)(x.a.mark(function Gt($t,Jt){var Xn,$n;return x.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(console.log("handleSelectTree",$t,Jt.nativeEvent.target.nodeName,Jt),Xn=function(){tn(Jt.node.path),$t=[Jt.node.path],Ta(Object(D.a)($t))},!(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"&&(Wn!=null&&($n=Wn.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(){Xn(),vn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):Xn());case 5:case"end":return rr.stop()}},Gt)}));return function($t,Jt){return nr.apply(this,arguments)}}(),Rr=function(Gt,$t,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 Xn=Object(c.a)(x.a.mark(function Ln(){var rr,ur,ir;return x.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,vn({type:"shixunsDetail/deleteGitFile",payload:{id:Zn.id,path:Gt,message:"\u5220\u9664".concat(Gt),secret_repository:Kn?null:!0}});case 2:if(rr=or.sent,ur=Gt.split("/"),!((rr==null?void 0:rr.status)===0)){or.next=20;break}return d.b.info("\u5220\u9664\u6210\u529F"),ur.splice(ur.length-1,1),or.next=9,Un(ur.length>1?ur.join("/"):"");case 9:if(ir=or.sent,!(ir!=null&&ir.trees)){or.next=13;break}or.next=16;break;case 13:return ur.splice(ur.length-1,1),or.next=16,Un(ur.length>1?ur.join("/"):"");case 16:return tn(""),or.abrupt("return",!0);case 20:(rr==null?void 0:rr.status)===-3&&m.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:v.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(Zn.id,"/edit/").concat(rr==null?void 0:rr.message,"/tab=2")}});case 21:case"end":return or.stop()}},Ln)}));function $n(){return Xn.apply(this,arguments)}return $n}()})},Ir=function(Gt){console.log(Gt,"item")},Jn=function(){var nr=Object(c.a)(x.a.mark(function Gt($t,Jt){return x.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,ar(Jt.node);case 7:er.includes(Jt.node.path)?er.splice(er.indexOf(Jt.node.path),1):er.push(Jt.node.path);case 8:Ba(Object(D.a)(er));case 9:case"end":return $n.stop()}},Gt)}));return function($t,Jt){return nr.apply(this,arguments)}}(),Ar=function(){xe(!1),localStorage.warehouseHideTip=!0},vr=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){var Jt,Xn,$n,Ln,rr;return x.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:$n="",ir.t0=Kn,ir.next=ir.t0===!0?4:ir.t0===!1?9:11;break;case 4:return $n="\u5F00\u542F\u7248\u672C\u5E93",Ln="\u5F00\u542F",rr="\u4E0D\u5F00\u542F",Xn=v.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"),ir.abrupt("break",11);case 9:return It!=null&&(Jt=It.detail)!==null&&Jt!==void 0&&Jt.secret_repository?($n="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u786E\u5B9A",rr="\u53D6\u6D88",Xn=v.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",Xn=v.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")),ir.abrupt("break",11);case 11:if(!(!Kn&&Object(Bt.b)(vn,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){ir.next=13;break}return ir.abrupt("return");case 13:m.a.confirm({title:$n,okText:Ln,cancelText:rr,content:Xn,onOk:function(){var or;Object(ht.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",$n]),!Kn&&!(It!=null&&(or=It.detail)!==null&&or!==void 0&&or.secret_repository)||zr($t)},onCancel:function(){var or;!Kn&&!(It!=null&&(or=It.detail)!==null&&or!==void 0&&or.secret_repository)&&zr($t)}});case 14:case"end":return ir.stop()}},Gt)}));return function($t){return nr.apply(this,arguments)}}(),zr=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){return x.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(!Kn){Xn.next=6;break}return Xn.next=3,Object(je.r)(Object(n.a)({},Zn));case 3:vn({type:"practiceSetting/getCommonData",payload:Object(n.a)({},Zn)}),Xn.next=8;break;case 6:return Xn.next=8,Object(je.t)(Object(n.a)(Object(n.a)({},Zn),{},{is_secret_repository:$t}));case 8:Un(),vn({type:"shixunsDetail/getShixunsDetail",payload:{id:Zn.id}});case 10:case"end":return Xn.stop()}},Gt)}));return function($t){return nr.apply(this,arguments)}}(),Lr=function(Gt){console.log(Gt)},$r=function(){var nr=Object(c.a)(x.a.mark(function Gt($t){var Jt,Xn,$n,Ln,rr,ur,ir,qr,or,da,Yr;return x.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(console.log($t),Jt=$t.node.key,Xn=$t.dragNode.key,$n=$t.node.pos.split("-"),Ln=$t.dropPosition-Number($n[$n.length-1]),!($t.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(!($t.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,vn({type:"shixunsDetail/moveGitFile",payload:{id:Zn.id,from:$t.dragNode.path,to:$t.node.path+"/"+$t.dragNode.name,message:"".concat($t.dragNode.path," move to ").concat($t.node.path+"/"+$t.dragNode.name," ")}});case 13:if(rr=Sr.sent,!(rr.status===0)){Sr.next=26;break}return tn(""),Sr.next=18,Un("");case 18:ur=0;case 19:if(!(ur>>24)&16711935|(d<<24|d>>>8)&4278255360}var s=this._hash.words,u=i[r+0],w=i[r+1],E=i[r+2],_=i[r+3],P=i[r+4],R=i[r+5],x=i[r+6],S=i[r+7],v=i[r+8],T=i[r+9],U=i[r+10],L=i[r+11],N=i[r+12],V=i[r+13],H=i[r+14],D=i[r+15],W=s[0],F=s[1],I=s[2],K=s[3];W=f(W,F,I,K,u,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,_,22,m[3]),W=f(W,F,I,K,P,7,m[4]),K=f(K,W,F,I,R,12,m[5]),I=f(I,K,W,F,x,17,m[6]),F=f(F,I,K,W,S,22,m[7]),W=f(W,F,I,K,v,7,m[8]),K=f(K,W,F,I,T,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,x,9,m[17]),I=a(I,K,W,F,L,14,m[18]),F=a(F,I,K,W,u,20,m[19]),W=a(W,F,I,K,R,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,P,20,m[23]),W=a(W,F,I,K,T,5,m[24]),K=a(K,W,F,I,H,9,m[25]),I=a(I,K,W,F,_,14,m[26]),F=a(F,I,K,W,v,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=l(W,F,I,K,R,4,m[32]),K=l(K,W,F,I,v,11,m[33]),I=l(I,K,W,F,L,16,m[34]),F=l(F,I,K,W,H,23,m[35]),W=l(W,F,I,K,w,4,m[36]),K=l(K,W,F,I,P,11,m[37]),I=l(I,K,W,F,S,16,m[38]),F=l(F,I,K,W,U,23,m[39]),W=l(W,F,I,K,V,4,m[40]),K=l(K,W,F,I,u,11,m[41]),I=l(I,K,W,F,_,16,m[42]),F=l(F,I,K,W,x,23,m[43]),W=l(W,F,I,K,T,4,m[44]),K=l(K,W,F,I,N,11,m[45]),I=l(I,K,W,F,D,16,m[46]),F=l(F,I,K,W,E,23,m[47]),W=n(W,F,I,K,u,6,m[48]),K=n(K,W,F,I,S,10,m[49]),I=n(I,K,W,F,H,15,m[50]),F=n(F,I,K,W,R,21,m[51]),W=n(W,F,I,K,N,6,m[52]),K=n(K,W,F,I,_,10,m[53]),I=n(I,K,W,F,U,15,m[54]),F=n(F,I,K,W,w,21,m[55]),W=n(W,F,I,K,v,6,m[56]),K=n(K,W,F,I,D,10,m[57]),I=n(I,K,W,F,x,15,m[58]),F=n(F,I,K,W,V,21,m[59]),W=n(W,F,I,K,P,6,m[60]),K=n(K,W,F,I,L,10,m[61]),I=n(I,K,W,F,E,15,m[62]),F=n(F,I,K,W,T,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,r=i.words,c=this._nDataBytes*8,h=i.sigBytes*8;r[h>>>5]|=128<<24-h%32;var d=g.floor(c/4294967296),s=c;r[(h+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,r[(h+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,i.sigBytes=(r.length+1)*4,this._process();for(var u=this._hash,w=u.words,E=0;E<4;E++){var _=w[E];w[E]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return u},clone:function(){var i=C.clone.call(this);return i._hash=this._hash.clone(),i}});function f(i,r,c,h,d,s,u){var w=i+(r&c|~r&h)+d+u;return(w<>>32-s)+r}function a(i,r,c,h,d,s,u){var w=i+(r&h|c&~h)+d+u;return(w<>>32-s)+r}function l(i,r,c,h,d,s,u){var w=i+(r^c^h)+d+u;return(w<>>32-s)+r}function n(i,r,c,h,d,s,u){var w=i+(c^(r|~h))+d+u;return(w<>>32-s)+r}O.MD5=C._createHelper(e),O.HmacMD5=C._createHmacHelper(e)}(Math),M.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 M=o("Ff2n"),g=o("rePB"),O=o("1OyB"),b=o("vuIU"),y=o("Ji7U"),C=o("md7G"),A=o("foSv"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),l=o("4IlW");function n(v,T){var U=Object.keys(v);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(v);T&&(L=L.filter(function(N){return Object.getOwnPropertyDescriptor(v,N).enumerable})),U.push.apply(U,L)}return U}function i(v){for(var T=1;T1?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 _(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===l.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(!P(N.value,H)||!P(N.max,W)||!P(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(_(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)?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),qe=Et||D||W,He=Pt||D||W,Ye=a()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(g.a)({},"".concat(H,"-handler-up-disabled"),qe)),Ce=a()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(g.a)({},"".concat(H,"-handler-down-disabled"),He)),Le=F?{onTouchStart:qe?h:this.up,onTouchEnd:this.stop}:{onMouseDown:qe?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},We=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:Ve,style:Te,title:ce,onMouseEnter:be,onMouseLeave:ye,onMouseOver:ue,onMouseOut:se,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"},Le,{role:"button","aria-label":"Increase Value","aria-disabled":qe,className:Ye}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:d})),e.a.createElement("span",Object.assign({unselectable:"on"},We,{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:Je,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:re,autoComplete:I,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ht?this.onKeyDown:h,onKeyUp:ht?this.onKeyUp:h,autoFocus:_e,maxLength:ve,readOnly:W,disabled:D,max:de,min:Se,step:J,name:Ae,title:ce,id:le,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Bt),pattern:Q,inputMode:te,onInput:tt},je))))}}]),U}(e.a.Component);R.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 x=R,S=z.a=x},e7zE:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.Base,y=O.WordArray,C=g.algo,A=C.SHA1,m=C.HMAC,e=C.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:A,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,a){for(var l=this.cfg,n=m.create(l.hasher,f),i=y.create(),r=y.create([1]),c=i.words,h=r.words,d=l.keySize,s=l.iterations;c.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(ye,ue){var se=new Map;ye.forEach(function(me){se.set(me,!0)});var $=ue.filter(function(me){return!se.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,ye=Se.selectable,ue=Se.checkable,se=Se.expandedKeys,$=Se.selectedKeys,me=Se.checkedKeys,re=Se.loadedKeys,ae=Se.loadingKeys,Oe=Se.halfCheckedKeys,le=Se.keyEntities,te=Se.disabled,Q=Se.dragging,J=Se.dragOverNodeKey,ve=Se.dropPosition,_e=Se.motion,Ae=Se.height,Je=Se.itemHeight,tt=Se.virtual,ut=Se.focusable,ft=Se.activeItem,vt=Se.focused,_t=Se.tabIndex,Ve=Se.onKeyDown,je=Se.onFocus,ht=Se.onBlur,Bt=Se.onActiveChange,Et=Se.onListChangeStart,Pt=Se.onListChangeEnd,qe=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 Ye=m.useState(se),Ce=Object(c.a)(Ye,2),Le=Ce[0],We=Ce[1],Ue=m.useState(be),ze=Object(c.a)(Ue,2),st=ze[0],Ct=ze[1],Wt=m.useState(be),Qt=Object(c.a)(Wt,2),Kt=Qt[0],Ot=Qt[1],Fe=m.useState([]),at=Object(c.a)(Fe,2),it=at[0],Pe=at[1],Qe=m.useState(null),pt=Object(c.a)(Qe,2),bt=pt[0],Dt=pt[1];function It(){Ct(be),Ot(be),Pe([]),Dt(null),Pt()}m.useEffect(function(){We(se);var jt=P(Le,se);if(jt.key!==null)if(jt.add){var on=st.findIndex(function(lr){var Zn=lr.data.key;return Zn===jt.key}),vn=N(R(st,be,jt.key),tt,Ae,Je),Wn=st.slice();Wn.splice(on+1,0,L),Ot(Wn),Pe(vn),Dt("show")}else{var Kn=be.findIndex(function(lr){var Zn=lr.data.key;return Zn===jt.key}),Hn=N(R(be,st,jt.key),tt,Ae,Je),fn=be.slice();fn.splice(Kn+1,0,L),Ot(fn),Pe(Hn),Dt("hide")}else st!==be&&(Ct(be),Ot(be))},[se,be]),m.useEffect(function(){Q||It()},[Q]);var ct=_e?Kt:be,Nt={expandedKeys:se,selectedKeys:$,loadedKeys:re,loadingKeys:ae,checkedKeys:me,halfCheckedKeys:Oe,dragOverNodeKey:J,dropPosition:ve,keyEntities:le};return m.createElement(m.Fragment,null,vt&&ft&&m.createElement("span",{style:x,"aria-live":"assertive"},H(ft)),m.createElement("div",{role:"tree"},m.createElement("input",{style:x,disabled:ut===!1||te,tabIndex:ut!==!1?_t:null,onKeyDown:Ve,onFocus:je,onBlur:ht,value:"",onChange:S})),m.createElement(d.a,Object.assign({},qe,{data:ct,itemKey:V,height:Ae,fullHeight:!1,virtual:tt,itemHeight:Je,prefixCls:"".concat(ce,"-list"),ref:He}),function(jt){var on=jt.pos,vn=jt.data,Wn=vn.key,Kn=Object(h.a)(vn,["key"]),Hn=jt.isStart,fn=jt.isEnd,lr=Object(r.e)(Wn,on);delete Kn.children;var Zn=Object(r.f)(lr,Nt);return m.createElement(_,Object.assign({},Kn,Zn,{active:ft&&Wn===ft.data.key,pos:on,data:jt.data,isStart:Hn,isEnd:fn,motion:_e,motionNodes:Wn===v?it:null,motionType:bt,onMotionStart:Et,onMotionEnd:It,treeNodeRequiredProps:Nt,onMouseMove:function(){Bt(null)}}))}))},W=m.forwardRef(D);W.displayName="NodeList";var F=W,I=o("NvD2"),K=function(de){Object(C.a)(Te,de);var Se=Object(A.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,ye){var ue=ce.state,se=ue.expandedKeys,$=ue.keyEntities,me=ce.props.onDragStart,re=ye.props.eventKey;ce.dragNode=ye;var ae=Object(i.b)(se,re);ce.setState({dragging:!0,dragNodesKeys:Object(i.g)(re,$)}),ce.setExpandedKeys(ae),me&&me({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragEnter=function(be,ye){var ue=ce.state,se=ue.expandedKeys,$=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ae=ye.props,Oe=ae.pos,le=ae.eventKey;if(!ce.dragNode||me.indexOf(le)!==-1)return;var te=Object(i.c)(be,ye);if(ce.dragNode.props.eventKey===le&&te===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:le,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(O.a)(se),J=$[le];J&&(J.children||[]).length&&(Q=Object(i.a)(se,le)),"expandedKeys"in ce.props||ce.setExpandedKeys(Q),re&&re({event:be,node:Object(r.b)(ye.props),expandedKeys:Q})},400)},0)},ce.onNodeDragOver=function(be,ye){var ue=ce.state.dragNodesKeys,se=ce.props.onDragOver,$=ye.props.eventKey;if(ue.indexOf($)!==-1)return;if(ce.dragNode&&$===ce.state.dragOverNodeKey){var me=Object(i.c)(be,ye);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}se&&se({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragLeave=function(be,ye){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:be,node:Object(r.b)(ye.props)})},ce.onNodeDragEnd=function(be,ye){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:be,node:Object(r.b)(ye.props)}),ce.dragNode=null},ce.onNodeDrop=function(be,ye){var ue=ce.state,se=ue.dragNodesKeys,$=se===void 0?[]:se,me=ue.dropPosition,re=ce.props.onDrop,ae=ye.props,Oe=ae.eventKey,le=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)(le),Q={event:be,node:Object(r.b)(ye.props),dragNode:ce.dragNode?Object(r.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,ye){var ue=ce.props.onClick;ue&&ue(be,ye)},ce.onNodeDoubleClick=function(be,ye){var ue=ce.props.onDoubleClick;ue&&ue(be,ye)},ce.onNodeSelect=function(be,ye){var ue=ce.state.selectedKeys,se=ce.state.keyEntities,$=ce.props,me=$.onSelect,re=$.multiple,ae=ye.selected,Oe=ye.key,le=!ae;le?re?ue=Object(i.a)(ue,Oe):ue=[Oe]:ue=Object(i.b)(ue,Oe);var te=ue.map(function(Q){var J=se[Q];return J?J.node:null}).filter(function(Q){return Q});ce.setUncontrolledState({selectedKeys:ue}),me&&me(ue,{event:"select",selected:le,node:ye,selectedNodes:te,nativeEvent:be.nativeEvent})},ce.onNodeCheck=function(be,ye,ue){var se=ce.state,$=se.keyEntities,me=se.checkedKeys,re=se.halfCheckedKeys,ae=ce.props,Oe=ae.checkStrictly,le=ae.onCheck,te=ye.key,Q,J={event:"check",node:ye,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(O.a)(me),[te]),!0,$),Je=Ae.checkedKeys,tt=Ae.halfCheckedKeys;if(!ue){var ut=new Set(Je);ut.delete(te);var ft=Object(I.a)(Array.from(ut),{checked:!1,halfCheckedKeys:tt},$);Je=ft.checkedKeys,tt=ft.halfCheckedKeys}Q=Je,J.checkedNodes=[],J.checkedNodesPositions=[],J.halfCheckedKeys=tt,Je.forEach(function(vt){var _t=$[vt];if(!_t)return;var Ve=_t.node,je=_t.pos;J.checkedNodes.push(Ve),J.checkedNodesPositions.push({node:Ve,pos:je})}),ce.setUncontrolledState({checkedKeys:Je},!1,{halfCheckedKeys:tt})}le&&le(Q,J)},ce.onNodeLoad=function(be){return new Promise(function(ye){ce.setState(function(ue){var se=ue.loadedKeys,$=se===void 0?[]:se,me=ue.loadingKeys,re=me===void 0?[]:me,ae=ce.props,Oe=ae.loadData,le=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),Je=Object(i.b)(_e,te);le&&le(Ae,{event:"load",node:be}),ce.setUncontrolledState({loadedKeys:Ae}),ce.setState({loadingKeys:Je}),ye()}),{loadingKeys:Object(i.a)(re,te)}})})},ce.onNodeMouseEnter=function(be,ye){var ue=ce.props.onMouseEnter;ue&&ue({event:be,node:ye})},ce.onNodeMouseLeave=function(be,ye){var ue=ce.props.onMouseLeave;ue&&ue({event:be,node:ye})},ce.onNodeContextMenu=function(be,ye){var ue=ce.props.onRightClick;ue&&(be.preventDefault(),ue({event:be,node:ye}))},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,ye=be.expandedKeys,ue=be.selectedKeys,se=be.loadedKeys,$=be.loadingKeys,me=be.checkedKeys,re=be.halfCheckedKeys,ae=be.dragOverNodeKey,Oe=be.dropPosition,le=be.keyEntities;return{expandedKeys:ye||[],selectedKeys:ue||[],loadedKeys:se||[],loadingKeys:$||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ae,dropPosition:Oe,keyEntities:le}},ce.setExpandedKeys=function(be){var ye=ce.state.treeData,ue=Object(r.d)(ye,be);ce.setUncontrolledState({expandedKeys:be,flattenNodes:ue},!0)},ce.onNodeExpand=function(be,ye){var ue=ce.state.expandedKeys,se=ce.state.listChanging,$=ce.props,me=$.onExpand,re=$.loadData,ae=ye.key,Oe=ye.expanded;if(se)return;var le=ue.indexOf(ae),te=!Oe;if(Object(f.a)(Oe&&le!==-1||!Oe&&le===-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:ye,expanded:te,nativeEvent:be.nativeEvent}),te&&re){var Q=ce.onNodeLoad(ye);Q&&Q.then(function(){var J=Object(r.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 ye=ce.state.activeKey,ue=ce.props.onActiveChange;if(ye===be)return;ce.setState({activeKey:be}),be!==null&&ce.scrollTo({key:be}),ue&&ue(be)},ce.getActiveItem=function(){var be=ce.state,ye=be.activeKey,ue=be.flattenNodes;return ye===null?null:ue.find(function(se){var $=se.data.key;return $===ye})||null},ce.offsetActiveKey=function(be){var ye=ce.state,ue=ye.flattenNodes,se=ye.activeKey,$=ue.findIndex(function(ae){var Oe=ae.data.key;return Oe===se});$===-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 ye=ce.state,ue=ye.activeKey,se=ye.expandedKeys,$=ye.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 le=ce.getActiveItem();if(le&&le.data){var te=ce.getTreeNodeRequiredProps(),Q=le.data.isLeaf===!1||!!(le.data.children||[]).length,J=Object(r.b)(Object(g.a)(Object(g.a)({},Object(r.f)(ue,te)),{},{data:le.data,active:!0}));switch(be.which){case e.a.LEFT:{Q&&se.includes(ue)?ce.onNodeExpand({},J):le.parent&&ce.onActiveChange(le.parent.data.key),be.preventDefault();break}case e.a.RIGHT:{Q&&!se.includes(ue)?ce.onNodeExpand({},J):le.children&&le.children.length&&ce.onActiveChange(le.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 ye=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 se=!1,$=!0,me={};Object.keys(be).forEach(function(re){if(re in ce.props){$=!1;return}se=!0,me[re]=be[re]}),se&&(!ye||$)&&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,ye=this.state,ue=ye.focused,se=ye.flattenNodes,$=ye.keyEntities,me=ye.dragging,re=ye.activeKey,ae=this.props,Oe=ae.prefixCls,le=ae.className,te=ae.style,Q=ae.showLine,J=ae.focusable,ve=ae.tabIndex,_e=ve===void 0?0:ve,Ae=ae.selectable,Je=ae.showIcon,tt=ae.icon,ut=ae.switcherIcon,ft=ae.draggable,vt=ae.checkable,_t=ae.checkStrictly,Ve=ae.disabled,je=ae.motion,ht=ae.loadData,Bt=ae.filterTreeNode,Et=ae.height,Pt=ae.itemHeight,qe=ae.virtual,He=ae.titleRender,Ye=ae.onContextMenu,Ce=Object(i.f)(this.props);return m.createElement(n.a.Provider,{value:{prefixCls:Oe,selectable:Ae,showIcon:Je,icon:tt,switcherIcon:ut,draggable:ft,checkable:vt,checkStrictly:_t,disabled:Ve,keyEntities:$,loadData:ht,filterTreeNode:Bt,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:l()(Oe,le,(be={},Object(M.a)(be,"".concat(Oe,"-show-line"),Q),Object(M.a)(be,"".concat(Oe,"-focused"),ue),Object(M.a)(be,"".concat(Oe,"-active-focused"),re!==null),be))},m.createElement(F,Object.assign({ref:this.listRef,prefixCls:Oe,style:te,data:se,disabled:Ve,selectable:Ae,checkable:!!vt,motion:je,dragging:me,height:Et,itemHeight:Pt,virtual:qe,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:Ye},this.getTreeNodeRequiredProps(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(be,ye){var ue=ye.prevProps,se={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(r.c)(be.children)),me){se.treeData=me;var re=Object(r.a)(me);se.keyEntities=Object(g.a)(Object(M.a)({},v,U),re.keyEntities)}var ae=se.keyEntities||ye.keyEntities;if($("expandedKeys")||ue&&$("autoExpandParent"))se.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[v],se.expandedKeys=Object.keys(Oe).map(function(tt){return Oe[tt].key})}else!ue&&be.defaultExpandedKeys&&(se.expandedKeys=be.autoExpandParent||be.defaultExpandParent?Object(i.e)(be.defaultExpandedKeys,ae):be.defaultExpandedKeys);if(se.expandedKeys||delete se.expandedKeys,me||se.expandedKeys){var le=Object(r.d)(me||ye.treeData,se.expandedKeys||ye.expandedKeys);se.flattenNodes=le}if(be.selectable&&($("selectedKeys")?se.selectedKeys=Object(i.d)(be.selectedKeys,be):!ue&&be.defaultSelectedKeys&&(se.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:ye.checkedKeys,halfCheckedKeys:ye.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 Je=Object(I.a)(ve,!0,ae);ve=Je.checkedKeys,Ae=Je.halfCheckedKeys}se.checkedKeys=ve,se.halfCheckedKeys=Ae}}return $("loadedKeys")&&(se.loadedKeys=be.loadedKeys),se}}]),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=u.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 n}),o.d(z,"b",function(){return i}),o.d(z,"a",function(){return r}),o.d(z,"d",function(){return c}),o.d(z,"e",function(){return h}),o.d(z,"c",function(){return d});var M=o("8HAY"),g=o("Vhoy"),O=o("MI8n"),b=o("JYp7"),y=o("pmY6"),C=o("24hK"),A=o("nnTU"),m=o("T8No"),e=o("Cg/j"),f=o("t9D7"),a=function(s,u,w,E){var _=arguments.length,P=_<3?u:E===null?E=Object.getOwnPropertyDescriptor(u,w):E,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(s,u,w,E);else for(var x=s.length-1;x>=0;x--)(R=s[x])&&(P=(_<3?R(P):_>3?R(u,w,P):R(u,w))||P);return _>3&&P&&Object.defineProperty(u,w,P),P},l=function(s,u){return function(w,E){u(w,E,s)}};function n(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 r=Object(e.c)("menuService"),c=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new O.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 u of s)this._commands.set(u.id,u);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let u=!1;for(const w of s)u=this._commands.delete(w.id)||u;u&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((u,w)=>s.set(w,u)),s}appendMenuItem(s,u){return this.appendMenuItems(b.a.single({id:s,item:u}))}appendMenuItems(s){const u=new Set,w=new C.a;for(const{id:E,item:_}of s){let P=this._menuItems.get(E);P||(P=new C.a,this._menuItems.set(E,P)),w.push(P.push(_)),u.add(E)}return this._onDidChangeMenu.fire(u),Object(y.i)(()=>{if(w.size>0){for(let E of w)E();this._onDidChangeMenu.fire(u),w.clear()}})}getMenuItems(s){let u;return this._menuItems.has(s)?u=[...this._menuItems.get(s)]:u=[],s===i.CommandPalette&&this._appendImplicitItems(u),u}_appendImplicitItems(s){const u=new Set;for(const w of s)n(w)&&(u.add(w.command.id),w.alt&&u.add(w.alt.id));this._commands.forEach((w,E)=>{u.has(E)||s.push({command:w})})}};class h extends M.e{constructor(s,u,w,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=u,this._contextKeyService=w,this._options=E}get actions(){const s=[],u=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=u.getActions(this._options);u.dispose();for(const[,E]of w)E.length>0&&(s.push(...E),s.push(new M.d));return s.length&&s.pop(),s}}let d=class s{constructor(u,w,E,_,P){var R,x;if(this._commandService=P,this.id=u.id,this.label=(E==null?void 0:E.renderShortTitle)&&u.shortTitle?typeof u.shortTitle=="string"?u.shortTitle:u.shortTitle.value:typeof u.title=="string"?u.title:u.title.value,this.tooltip=(x=typeof u.tooltip=="string"?u.tooltip:(R=u.tooltip)===null||R===void 0?void 0:R.value)!==null&&x!==void 0?x:"",this.enabled=!u.precondition||_.contextMatchesRules(u.precondition),this.checked=void 0,u.toggled){const S=u.toggled.condition?u.toggled:{condition:u.toggled};this.checked=_.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=u,this.alt=w?new s(w,void 0,E,_,P):void 0,this._options=E,f.d.isThemeIcon(u.icon)&&(this.class=g.a.asClassName(u.icon))}dispose(){}run(...u){var w,E;let _=[];return((w=this._options)===null||w===void 0?void 0:w.arg)&&(_=[..._,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(_=[..._,...u]),this._commandService.executeCommand(this.id,..._)}};d=a([l(3,m.b),l(4,A.b)],d)},fyJ8:function(k,z,o){"use strict";var M=o("rePB"),g=o("VTBJ"),O=o("Ff2n"),b=o("U8pU"),y=o("q1tI"),C=o.n(y),A=o("TSYQ"),m=o.n(A),e=o("c+Xe"),f=o("sR1s");function a(c){return c&&Object(b.a)(c)==="object"&&!Array.isArray(c)&&!y.isValidElement(c)}function l(c){return typeof c=="string"?!0:Object(e.c)(c)}function n(c,h){var d,s=c.prefixCls,u=c.className,w=c.record,E=c.index,_=c.dataIndex,P=c.render,R=c.children,x=c.component,S=x===void 0?"td":x,v=c.colSpan,T=c.rowSpan,U=c.fixLeft,L=c.fixRight,N=c.firstFixLeft,V=c.lastFixLeft,H=c.firstFixRight,D=c.lastFixRight,W=c.appendNode,F=c.additionalProps,I=F===void 0?{}:F,K=c.ellipsis,ee=c.align,he=c.rowType,de=c.isSticky,Se="".concat(s,"-cell"),Te,ce;if(R)ce=R;else{var be=Object(f.b)(w,_);if(ce=be,P){var ye=P(be,w,E);a(ye)?(ce=ye.children,Te=ye.props):ce=ye}}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||{},se=ue.colSpan,$=ue.rowSpan,me=ue.style,re=ue.className,ae=Object(O.a)(ue,["colSpan","rowSpan","style","className"]),Oe=se!==void 0?se:v,le=$!==void 0?$:T;if(Oe===0||le===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 Je=Object(g.a)(Object(g.a)(Object(g.a)({title:_e},ae),I),{},{colSpan:Oe&&Oe!==1?Oe:null,rowSpan:le&&le!==1?le:null,className:m()(Se,u,(d={},Object(M.a)(d,"".concat(Se,"-fix-left"),Q),Object(M.a)(d,"".concat(Se,"-fix-left-first"),N),Object(M.a)(d,"".concat(Se,"-fix-left-last"),V),Object(M.a)(d,"".concat(Se,"-fix-right"),J),Object(M.a)(d,"".concat(Se,"-fix-right-first"),H),Object(M.a)(d,"".concat(Se,"-fix-right-last"),D),Object(M.a)(d,"".concat(Se,"-ellipsis"),K),Object(M.a)(d,"".concat(Se,"-with-append"),W),Object(M.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:l(S)?h:null});return y.createElement(S,Object.assign({},Je),W,ce)}var i=y.forwardRef(n);i.displayName="Cell";var r=y.memo(i,function(c,h){return h.shouldCellUpdate?!h.shouldCellUpdate(h.record,c.record):!1});z.a=r},"gb/T":function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.mode.ECB=function(){var g=M.lib.BlockCipherMode.extend();return g.Encryptor=g.extend({processBlock:function(O,b){this._cipher.encryptBlock(O,b)}}),g.Decryptor=g.extend({processBlock:function(O,b){this._cipher.decryptBlock(O,b)}}),g}(),M.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 M=o("q1tI"),g=o.n(M),O=o("TSYQ"),b=o.n(O),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},C=function(D){var W=D.map(function(){return Object(M.useRef)()}),F=Object(M.useRef)();return Object(M.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 A(){return A=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 r(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 c=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 ye=Array.isArray(F)?F:[F],ue=Array.isArray(K)?K:[K],se=C(ye),$=m(se,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),le="0 0 100 ".concat(he),te=0;return g.a.createElement("svg",A({className:b()("".concat(I,"-line"),W),viewBox:le,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"}),ye.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})}))};c.defaultProps=y;var h=c;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 x(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 v(H){return+H.replace("%","")}function T(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,ye={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:ye}}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,ye=R(D,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(M.useMemo)(function(){return S+=1,S},[]),se=U(0,100,he,F,K,ee),$=se.pathString,me=se.pathStyle,re=T(be),ae=T(ce),Oe=ae.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),le=C(re),te=s(le,1),Q=te[0],J=function(){var _e=0;return re.map(function(Ae,Je){var tt=ae[Je]||ae[ae.length-1],ut=Object.prototype.toString.call(tt)==="[object Object]"?"url(#".concat(W,"-gradient-").concat(ue,")"):"",ft=U(_e,Ae,tt,F,K,ee);return _e+=Ae,g.a.createElement("path",{key:Je,className:"".concat(W,"-circle-path"),d:ft.pathString,stroke:ut,strokeLinecap:de,strokeWidth:F,opacity:Ae===0?0:1,fillOpacity:"0",style:ft.pathStyle,ref:Q[Je]})})};return g.a.createElement("svg",d({className:b()("".concat(W,"-circle"),Te),viewBox:"0 0 100 100",style:Se},ye),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 v(ve)-v(_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 C});var M=o("VTBJ"),g=o("Ff2n"),O=o("Kwbf"),b="RC_TABLE_INTERNAL_COL_DEFINE";function y(A){var m=A.expandable,e=Object(g.a)(A,["expandable"]);return"expandable"in A?Object(M.a)(Object(M.a)({},e),m):e}function C(A){return Object.keys(A).reduce(function(m,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(m[e]=A[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 M=o("FWmy"),g=o("746U");class O{constructor(){this.data=new Map}add(y,C){M.a(g.l(y)),M.a(g.k(C)),M.a(!this.data.has(y),"There is already an extension with this id"),this.data.set(y,C)}as(y){return this.data.get(y)||null}}const b=new O},jO9C:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso97971={pad:function(g,O){g.concat(M.lib.WordArray.create([2147483648],1)),M.pad.ZeroPadding.pad(g,O)},unpad:function(g){M.pad.ZeroPadding.unpad(g),g.sigBytes--}},M.pad.Iso97971})},ji0R:function(k,z,o){k.exports=o.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(k,z,o){"use strict";var M=o("g9YV"),g=o("wCAj"),O=o("miYZ"),b=o("tsqr"),y=o("5Dmo"),C=o("3S7+"),A=o("sRBo"),m=o("kaz8"),e=o("oBTY"),f=o("9og8"),a=o("tJVT"),l=o("k1fw"),n=o("+L6B"),i=o("2/Rp"),r=o("O3gP"),c=o("lrIw"),h=o("5NDa"),d=o("5rEg"),s=o("y8nQ"),u=o("Vl3Y"),w=o("OaEy"),E=o("2fM7"),_=o("WmNS"),P=o.n(_),R=o("q1tI"),x=o.n(R),S=o("55Ip"),v=o("wd/R"),T=o.n(v),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 x.a.createElement(u.a,{colon:!1,layout:"inline",onFinish:Te,initialValues:{keyword:"",school_name:"",search_type:"1"},className:"search-form"},x.a.createElement(u.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},x.a.createElement(E.a,{dropdownClassName:F.a.selectdown,style:{width:148}},x.a.createElement(E.a.Option,{value:"1"},"\u59D3\u540D"),x.a.createElement(E.a.Option,{value:"2"},"\u624B\u673A\u53F7"),x.a.createElement(E.a.Option,{value:"3"},"\u90AE\u7BB1"))),x.a.createElement(u.a.Item,{label:"\u641C\u7D22\u5185\u5BB9",name:"keyword",style:{marginLeft:44},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"}]},x.a.createElement(d.a,{allowClear:!0,style:{width:170},size:"large"})),x.a.createElement(u.a.Item,{label:"\u5355\u4F4D",name:"school_name",style:{marginLeft:10}},x.a.createElement(c.a,{options:ce,style:{width:383},size:"large",showSearch:!0,filterOption:function(ye,ue){return ue.value.toUpperCase().indexOf(ye.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),x.a.createElement(u.a.Item,null,x.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(l.a)(Object(l.a)({},Se),Te.payload);case ee.SETQUERY:return Object(l.a)(Object(l.a)({},Se),Te.payload);case ee.SETPAGE:return Object(l.a)(Object(l.a)({},Se),{},{page:Te.payload,reload:!1});case ee.SHOWLOADING:return Object(l.a)(Object(l.a)({},Se),{},{loading:Te.payload});case ee.INITSCHOOLS:return Object(l.a)(Object(l.a)({},Se),{},{schools:Te.payload});case ee.SELECTEDIDS:return Object(l.a)(Object(l.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,ye=Se.container_type,ue=Object(R.useReducer)(he,de),se=Object(a.a)(ue,2),$=se[0],me=se[1],re=$.data,ae=$.schools,Oe=$.loading,le=$.selectedIds,te=$.page,Q=$.count,J=$.query,ve=$.reload;Object(R.useEffect)(function(){function vt(){return _t.apply(this,arguments)}function _t(){return _t=Object(f.a)(P.a.mark(function Ve(){var je,ht,Bt;return P.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(H.Ab)(Object(l.a)(Object(l.a)({},J),{},{page:te,container_type:ye,container_id:be}));case 2:je=Pt.sent,ht=je.users,Bt=je.user_count,me({type:ee.INITDATA,payload:{data:ve?ht:[].concat(Object(e.a)(re),Object(e.a)(ht)),count:Bt}});case 6:case"end":return Pt.stop()}},Ve)})),_t.apply(this,arguments)}J&&vt()},[te,J,ve,be,ye]),Object(R.useEffect)(function(){function vt(){return _t.apply(this,arguments)}function _t(){return _t=Object(f.a)(P.a.mark(function Ve(){var je,ht;return P.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.next=2,Object(H.nb)({});case 2:je=Et.sent,ht=je.school_names,me({type:ee.INITSCHOOLS,payload:ht.map(function(Pt){return{value:Pt}})});case 5:case"end":return Et.stop()}},Ve)})),_t.apply(this,arguments)}vt()},[]);var _e=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(_t,Ve){return x.a.createElement(m.a,{value:Ve.numid,checked:le.includes(Ve.numid),disabled:!!_t})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(_t,Ve){return x.a.createElement("div",null,x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement(S.a,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(Ve.login),target:"_blank"},_t||"--")))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t},x.a.createElement("span",{style:{color:"#000000"}},_t||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(_t){return x.a.createElement("span",{style:{color:"#000000"}},_t?"\u662F":"\u5426")}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(_t){return x.a.createElement(C.a,{placement:"bottom",title:_t?T()(_t).format("YYYY-MM-DD HH:mm"):"- -"},x.a.createElement("span",{style:{color:"#000000"}},_t?T()(_t).format("YYYY-MM-DD HH:mm"):"- -"))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(_t){if(_t===1)return x.a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Ae(vt){me({type:ee.SETQUERY,payload:{page:1,reload:!0,query:vt}})}function Je(vt){me({type:ee.SETPAGE,payload:vt})}function tt(vt){var _t=le.indexOf(vt);_t>=0?le.splice(_t,1):le.push(vt),me({type:ee.SELECTEDIDS,payload:Object(e.a)(le)})}function ut(){le.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Te(le,be),me({type:ee.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var ft=Q>te*10;return x.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},x.a.createElement(K,{onSearch:Ae,schools:ae}),J?x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{className:"flexd-table-header mt20"},x.a.createElement(D.f,null,x.a.createElement(g.a,{pagination:!1,dataSource:I,columns:_e}))),x.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},x.a.createElement(L.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:Je,hasMore:ft,useWindow:!1},x.a.createElement(D.f,null,x.a.createElement(g.a,{loading:Oe,showHeader:!1,pagination:!1,dataSource:re,columns:_e,onRow:function(_t){return{onClick:function(je){_t.added!==1&&tt(_t.numid)}}}})))),x.a.createElement("div",{className:"flex-container flex-end"},x.a.createElement(i.a,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:ce},"\u53D6\u6D88"),x.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:ut},"\u786E\u5B9A"))):x.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},x.a.createElement("img",{src:V.a,width:"100",alt:""}),x.a.createElement("br",null),x.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 M=o("rePB"),g=o("ODXe"),O=o("Ff2n"),b=o("VTBJ"),y=o("q1tI"),C=o("TSYQ"),A=o.n(C),m=o("Zm9Q"),e=o("6cGi"),f=o("KQm4"),a=o("xEkU"),l=o.n(a),n=o("t23M");function i(Ze){var dt=Object(y.useRef)(),yt=Object(y.useRef)(!1);function nt(){for(var Me=arguments.length,Xe=new Array(Me),Ie=0;IeMt&&(ln=Mt-pn),Object(y.useMemo)(function(){if(!Xe.length)return[0,0];for(var dn=Xe.length,cn=dn,Fn=0;Fnrt+ln){cn=Fn-1;break}}for(var Ur=0,Pr=dn-1;Pr>=0;Pr-=1){var Qr=Ze.get(Xe[Pr].key)||w;if(Qr[mt]1&&arguments[1]!==void 0?arguments[1]:!1,nt=dt&&typeof dt.getBoundingClientRect=="function"&&dt.getBoundingClientRect().width;if(nt){if(yt){var Me=getComputedStyle(dt),Xe=Me.marginLeft,Ie=Me.marginRight;nt+=+Xe.replace("px","")+ +Ie.replace("px","")}nt=+nt.toFixed(6)}return nt||0},_e=function(dt,yt,nt){dt&&Object(H.a)(dt.style)==="object"&&(dt.style[yt]=nt)},Ae=function(){return re.any},Je=o("bdgK"),tt=o("i8i4"),ut=o.n(tt),ft=o("wgJM"),vt=o("l4aY"),_t=o("m+aA"),Ve=o("c+Xe"),je=o("zT1h"),ht=o("QC+M");function Bt(Ze,dt,yt){return yt?Ze[0]===dt[0]:Ze[0]===dt[0]&&Ze[1]===dt[1]}function Et(Ze,dt,yt){var nt=Ze[dt]||{};return Object(b.a)(Object(b.a)({},nt),yt)}function Pt(Ze,dt,yt,nt){for(var Me=yt.points,Xe=Object.keys(Ze),Ie=0;Ie1&&arguments[1]!==void 0?arguments[1]:2;dt();var Xe=Object(ft.a)(function(){Me<=1?nt({isCanceled:function(){return Xe!==Ze.current}}):yt(nt,Me-1)});Ze.current=Xe}return y.useEffect(function(){return function(){dt()}},[]),[yt,dt]},Wn=[bt,Dt,It,ct],Kn=!1,Hn=!0;function fn(Ze){return Ze===It||Ze===ct}var lr=function(Ze,dt){var yt=y.useState(pt),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=vn(),et=Object(g.a)(Ie,2),$e=et[0],mt=et[1];function rt(){Xe(bt)}return on(function(){if(Me!==pt&&Me!==ct){var Mt=Wn.indexOf(Me),Vt=Wn[Mt+1],pn=dt(Me);pn===Kn?Xe(Vt):$e(function(ln){function dn(){if(ln.isCanceled())return;Xe(Vt)}pn===!0?dn():Promise.resolve(pn).then(dn)})}},[Ze,Me]),y.useEffect(function(){return function(){mt()}},[]),[rt,Me]},Zn=function(Ze){var dt=Object(y.useRef)(),yt=Object(y.useRef)(Ze);yt.current=Ze;var nt=y.useCallback(function(Ie){yt.current(Ie)},[]);function Me(Ie){Ie&&(Ie.removeEventListener(Ot,nt),Ie.removeEventListener(Kt,nt))}function Xe(Ie){dt.current&&dt.current!==Ie&&Me(dt.current),Ie&&Ie!==dt.current&&(Ie.addEventListener(Ot,nt),Ie.addEventListener(Kt,nt),dt.current=Ie)}return y.useEffect(function(){return function(){Me(dt.current)}},[]),[Xe,Me]};function cr(Ze,dt,yt,nt){var Me=nt.motionEnter,Xe=Me===void 0?!0:Me,Ie=nt.motionAppear,et=Ie===void 0?!0:Ie,$e=nt.motionLeave,mt=$e===void 0?!0:$e,rt=nt.motionDeadline,Mt=nt.motionLeaveImmediately,Vt=nt.onAppearPrepare,pn=nt.onEnterPrepare,ln=nt.onLeavePrepare,dn=nt.onAppearStart,cn=nt.onEnterStart,Fn=nt.onLeaveStart,Cn=nt.onAppearActive,Ur=nt.onEnterActive,Pr=nt.onLeaveActive,Qr=nt.onAppearEnd,Wr=nt.onEnterEnd,ta=nt.onLeaveEnd,Gn=nt.onVisibleChanged,wr=Nt(),zn=Object(g.a)(wr,2),xn=zn[0],jn=zn[1],Vr=Nt(at),ua=Object(g.a)(Vr,2),pr=ua[0],aa=ua[1],Ca=Nt(null),ha=Object(g.a)(Ca,2),Sa=ha[0],Tr=ha[1],br=Object(y.useRef)(!1),Mr=Object(y.useRef)(null),tr=Object(y.useRef)(!1),pa=Object(y.useRef)(null);function xa(){var ja=yt();return ja||pa.current}var ba=Object(y.useRef)(!1);function Aa(ja){var Ma=xa();if(ja&&!ja.deadline&&ja.target!==Ma)return;var Za;pr===it&&ba.current?Za=Qr==null?void 0:Qr(Ma,ja):pr===Pe&&ba.current?Za=Wr==null?void 0:Wr(Ma,ja):pr===Qe&&ba.current&&(Za=ta==null?void 0:ta(Ma,ja)),Za!==!1&&!tr.current&&(aa(at),Tr(null))}var ga=Zn(Aa),Na=Object(g.a)(ga,1),ka=Na[0],Fa=y.useMemo(function(){var ja,Ma,Za;switch(pr){case"appear":return ja={},Object(M.a)(ja,bt,Vt),Object(M.a)(ja,Dt,dn),Object(M.a)(ja,It,Cn),ja;case"enter":return Ma={},Object(M.a)(Ma,bt,pn),Object(M.a)(Ma,Dt,cn),Object(M.a)(Ma,It,Ur),Ma;case"leave":return Za={},Object(M.a)(Za,bt,ln),Object(M.a)(Za,Dt,Fn),Object(M.a)(Za,It,Pr),Za;default:return{}}},[pr]),ni=lr(pr,function(ja){if(ja===bt){var Ma=Fa[bt];return Ma?Ma(xa()):Kn}if(La in Fa){var Za;Tr(((Za=Fa[La])===null||Za===void 0?void 0:Za.call(Fa,xa(),null))||null)}return La===It&&(ka(xa()),rt>0&&(clearTimeout(Mr.current),Mr.current=setTimeout(function(){Aa({deadline:!0})},rt))),Hn}),Fi=Object(g.a)(ni,2),Ai=Fi[0],La=Fi[1],bi=fn(La);ba.current=bi,on(function(){jn(dt);var ja=br.current;if(br.current=!0,!Ze)return;var Ma;!ja&&dt&&et&&(Ma=it),ja&&dt&&Xe&&(Ma=Pe),(ja&&!dt&&mt||!ja&&Mt&&!dt&&mt)&&(Ma=Qe),Ma&&(aa(Ma),Ai())},[dt]),Object(y.useEffect)(function(){(pr===it&&!et||pr===Pe&&!Xe||pr===Qe&&!mt)&&aa(at)},[et,Xe,mt]),Object(y.useEffect)(function(){return function(){clearTimeout(Mr.current),tr.current=!0}},[]),Object(y.useEffect)(function(){xn!==void 0&&pr===at&&(Gn==null||Gn(xn))},[xn,pr]);var Si=Sa;return Fa[bt]&&La===Dt&&(Si=Object(b.a)({transition:"none"},Si)),[pr,La,Si,xn!=null?xn:dt]}var dr=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){return Object(P.a)(this,yt),dt.apply(this,arguments)}return Object(R.a)(yt,[{key:"render",value:function(){return this.props.children}}]),yt}(y.Component),Dr=dr;function hr(Ze){var dt=Ze;Object(H.a)(Ze)==="object"&&(dt=Ze.transitionSupport);function yt(Me){return!!(Me.motionName&&dt)}var nt=y.forwardRef(function(Me,Xe){var Ie=Me.visible,et=Ie===void 0?!0:Ie,$e=Me.removeOnLeave,mt=$e===void 0?!0:$e,rt=Me.forceRender,Mt=Me.children,Vt=Me.motionName,pn=Me.leavedClassName,ln=Me.eventProps,dn=yt(Me),cn=Object(y.useRef)(),Fn=Object(y.useRef)();function Cn(){try{return Object(_t.a)(cn.current||Fn.current)}catch(aa){return null}}var Ur=cr(dn,et,Cn,Me),Pr=Object(g.a)(Ur,4),Qr=Pr[0],Wr=Pr[1],ta=Pr[2],Gn=Pr[3],wr=y.useRef(Gn);Gn&&(wr.current=!0);var zn=Object(y.useRef)(Xe);zn.current=Xe;var xn=y.useCallback(function(aa){cn.current=aa,Object(Ve.b)(zn.current,aa)},[]),jn,Vr=Object(b.a)(Object(b.a)({},ln),{},{visible:et});if(!Mt)jn=null;else if(Qr===at||!yt(Me))Gn?jn=Mt(Object(b.a)({},Vr),xn):!mt&&wr.current?jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{className:pn}),xn):rt?jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{style:{display:"none"}}),xn):jn=null;else{var ua,pr;Wr===bt?pr="prepare":fn(Wr)?pr="active":Wr===Dt&&(pr="start"),jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{className:A()(Fe(Vt,Qr),(ua={},Object(M.a)(ua,Fe(Vt,"".concat(Qr,"-").concat(pr)),pr),Object(M.a)(ua,Vt,typeof Vt=="string"),ua)),style:ta}),xn)}return y.createElement(Dr,{ref:Fn},jn)});return nt.displayName="CSSMotion",nt}var sn=hr(Qt),en="add",On="keep",Fr="remove",Or="removed";function xr(Ze){var dt;return Ze&&Object(H.a)(Ze)==="object"&&"key"in Ze?dt=Ze:dt={key:Ze},Object(b.a)(Object(b.a)({},dt),{},{key:String(dt.key)})}function fr(){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]:[],dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yt=[],nt=0,Me=dt.length,Xe=fr(Ze),Ie=fr(dt);Xe.forEach(function(mt){for(var rt=!1,Mt=nt;Mt1});return $e.forEach(function(mt){yt=yt.filter(function(rt){var Mt=rt.key,Vt=rt.status;return Mt!==mt||Vt!==Fr}),yt.forEach(function(rt){rt.key===mt&&(rt.status=On)})}),yt}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 dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,yt=function(nt){Object(S.a)(Xe,nt);var Me=Object(v.a)(Xe);function Xe(){var Ie;return Object(P.a)(this,Xe),Ie=Me.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function(et){Ie.setState(function($e){var mt=$e.keyEntities;return{keyEntities:mt.map(function(rt){return rt.key!==et?rt:Object(b.a)(Object(b.a)({},rt),{},{status:Or})})}})},Ie}return Object(R.a)(Xe,[{key:"render",value:function(){var et=this,$e=this.state.keyEntities,mt=this.props,rt=mt.component,Mt=mt.children,Vt=mt.onVisibleChanged,pn=Object(O.a)(mt,["component","children","onVisibleChanged"]),ln=rt||y.Fragment,dn={};return X.forEach(function(cn){dn[cn]=pn[cn],delete pn[cn]}),delete pn.keys,y.createElement(ln,pn,$e.map(function(cn){var Fn=cn.status,Cn=Object(O.a)(cn,["status"]),Ur=Fn===en||Fn===On;return y.createElement(dt,Object(_.a)({},dn,{key:Cn.key,visible:Ur,eventProps:Cn,onVisibleChanged:function(Qr){Vt==null||Vt(Qr,{key:Cn.key}),Qr||et.removeKey(Cn.key)}}),Mt)}))}}],[{key:"getDerivedStateFromProps",value:function(et,$e){var mt=et.keys,rt=$e.keyEntities,Mt=fr(mt),Vt=pe(rt,Mt);return{keyEntities:Vt.filter(function(pn){var ln=rt.find(function(dn){var cn=dn.key;return pn.key===cn});return!(ln&&ln.status===Or&&pn.status===Fr)})}}}]),Xe}(y.Component);return yt.defaultProps={component:"div"},yt}var oe=q(Qt),De=sn;function fe(Ze){var dt=Ze.prefixCls,yt=Ze.motion,nt=Ze.animation,Me=Ze.transitionName;return yt||(nt?{motionName:"".concat(dt,"-").concat(nt)}:Me?{motionName:Me}:null)}function ot(Ze){var dt=Ze.prefixCls,yt=Ze.visible,nt=Ze.zIndex,Me=Ze.mask,Xe=Ze.maskMotion,Ie=Ze.maskAnimation,et=Ze.maskTransitionName;if(!Me)return null;var $e={};return(Xe||et||Ie)&&($e=Object(b.a)({motionAppear:!0},fe({motion:Xe,prefixCls:dt,transitionName:et,animation:Ie}))),y.createElement(De,Object(_.a)({},$e,{visible:yt,removeOnLeave:!0}),function(mt){var rt=mt.className;return y.createElement("div",{style:{zIndex:nt},className:A()("".concat(dt,"-mask"),rt)})})}var Zt=o("9mu1"),Mn=o("o0o1"),Vn=o.n(Mn),qt=o("HaE+"),yn=["measure","align",null,"motion"],un=function(Ze,dt){var yt=Object(y.useState)(null),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=Object(y.useRef)(),et=Object(y.useRef)(!1);function $e(Mt){et.current||Xe(Mt)}function mt(){ft.a.cancel(Ie.current)}function rt(Mt){mt(),Ie.current=Object(ft.a)(function(){$e(function(Vt){switch(Me){case"align":return"motion";case"motion":return"stable";default:}return Vt}),Mt==null||Mt()})}return Object(y.useEffect)(function(){$e("measure")},[Ze]),Object(y.useEffect)(function(){switch(Me){case"measure":dt();break;default:}Me&&(Ie.current=Object(ft.a)(Object(qt.a)(Vn.a.mark(function Mt(){var Vt,pn;return Vn.a.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:Vt=yn.indexOf(Me),pn=yn[Vt+1],pn&&Vt!==-1&&$e(pn);case 3:case"end":return dn.stop()}},Mt)}))))},[Me]),Object(y.useEffect)(function(){return function(){et.current=!0,mt()}},[]),[Me,rt]},jr=function(Ze){var dt=y.useState({width:0,height:0}),yt=Object(g.a)(dt,2),nt=yt[0],Me=yt[1];function Xe(et){Me({width:et.offsetWidth,height:et.offsetHeight})}var Ie=y.useMemo(function(){var et={};if(Ze){var $e=nt.width,mt=nt.height;Ze.indexOf("height")!==-1&&mt?et.height=mt:Ze.indexOf("minHeight")!==-1&&mt&&(et.minHeight=mt),Ze.indexOf("width")!==-1&&$e?et.width=$e:Ze.indexOf("minWidth")!==-1&&$e&&(et.minWidth=$e)}return et},[Ze,nt]);return[Ie,Xe]},ra=y.forwardRef(function(Ze,dt){var yt=Ze.visible,nt=Ze.prefixCls,Me=Ze.className,Xe=Ze.style,Ie=Ze.children,et=Ze.zIndex,$e=Ze.stretch,mt=Ze.destroyPopupOnHide,rt=Ze.forceRender,Mt=Ze.align,Vt=Ze.point,pn=Ze.getRootDomNode,ln=Ze.getClassNameFromAlign,dn=Ze.onAlign,cn=Ze.onMouseEnter,Fn=Ze.onMouseLeave,Cn=Ze.onMouseDown,Ur=Ze.onTouchStart,Pr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useState)(),ta=Object(g.a)(Wr,2),Gn=ta[0],wr=ta[1],zn=jr($e),xn=Object(g.a)(zn,2),jn=xn[0],Vr=xn[1];function ua(){$e&&Vr(pn())}var pr=un(yt,ua),aa=Object(g.a)(pr,2),Ca=aa[0],ha=aa[1],Sa=Object(y.useRef)();function Tr(){return Vt||pn}function br(){var ga;(ga=Pr.current)===null||ga===void 0||ga.forceAlign()}function Mr(ga,Na){var ka=ln(Na);Gn!==ka&&wr(ka),Ca==="align"&&(Gn!==ka?Promise.resolve().then(function(){br()}):ha(function(){var Fa;(Fa=Sa.current)===null||Fa===void 0||Fa.call(Sa)}),dn==null||dn(ga,Na))}var tr=Object(b.a)({},fe(Ze));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ga){var Na=tr[ga];tr[ga]=function(ka,Fa){return ha(),Na==null?void 0:Na(ka,Fa)}});function pa(){return new Promise(function(ga){Sa.current=ga})}y.useEffect(function(){!tr.motionName&&Ca==="motion"&&ha()},[tr.motionName,Ca]),y.useImperativeHandle(dt,function(){return{forceAlign:br,getElement:function(){return Qr.current}}});var xa=Object(b.a)(Object(b.a)({},jn),{},{zIndex:et,opacity:Ca==="motion"||Ca==="stable"||!yt?void 0:0,pointerEvents:Ca==="stable"?void 0:"none"},Xe),ba=!0;(Mt==null?void 0:Mt.points)&&(Ca==="align"||Ca==="stable")&&(ba=!1);var Aa=Ie;return y.Children.count(Ie)>1&&(Aa=y.createElement("div",{className:"".concat(nt,"-content")},Ie)),y.createElement(De,Object(_.a)({visible:yt,ref:Qr,leavedClassName:"".concat(nt,"-hidden")},tr,{onAppearPrepare:pa,onEnterPrepare:pa,removeOnLeave:mt,forceRender:rt}),function(ga,Na){var ka=ga.className,Fa=ga.style,ni=A()(nt,Me,Gn,ka);return y.createElement(Zt.a,{target:Tr(),key:"popup",ref:Pr,monitorWindowResize:!0,disabled:ba,align:Mt,onAlign:Mr},y.createElement("div",{ref:Na,className:ni,onMouseEnter:cn,onMouseLeave:Fn,onMouseDownCapture:Cn,onTouchStartCapture:Ur,style:Object(b.a)(Object(b.a)({},Fa),xa)},Aa))})});ra.displayName="PopupInner";var oa=ra,er=y.forwardRef(function(Ze,dt){var yt=Ze.prefixCls,nt=Ze.visible,Me=Ze.zIndex,Xe=Ze.children,Ie=Ze.mobile;Ie=Ie===void 0?{}:Ie;var et=Ie.popupClassName,$e=Ie.popupStyle,mt=Ie.popupMotion,rt=mt===void 0?{}:mt,Mt=Ie.popupRender,Vt=y.useRef();y.useImperativeHandle(dt,function(){return{forceAlign:function(){},getElement:function(){return Vt.current}}});var pn=Object(b.a)({zIndex:Me},$e),ln=Xe;return y.Children.count(Xe)>1&&(ln=y.createElement("div",{className:"".concat(yt,"-content")},Xe)),Mt&&(ln=Mt(ln)),y.createElement(De,Object(_.a)({visible:nt,ref:Vt,removeOnLeave:!0},rt),function(dn,cn){var Fn=dn.className,Cn=dn.style,Ur=A()(yt,et,Fn);return y.createElement("div",{ref:cn,className:Ur,style:Object(b.a)(Object(b.a)({},Cn),pn)},ln)})});er.displayName="MobilePopupInner";var Ba=er,Ea=["visible","mobile"],ca=y.forwardRef(function(Ze,dt){var yt=Ze.visible,nt=Ze.mobile,Me=Object(O.a)(Ze,Ea),Xe=Object(y.useState)(yt),Ie=Object(g.a)(Xe,2),et=Ie[0],$e=Ie[1],mt=Object(y.useState)(!1),rt=Object(g.a)(mt,2),Mt=rt[0],Vt=rt[1],pn=Object(b.a)(Object(b.a)({},Me),{},{visible:et});Object(y.useEffect)(function(){$e(yt),yt&&nt&&Vt(qe())},[yt,nt]);var ln=Mt?y.createElement(Ba,Object(_.a)({},pn,{mobile:nt,ref:dt})):y.createElement(oa,Object(_.a)({},pn,{ref:dt}));return y.createElement("div",null,y.createElement(ot,pn),ln)});ca.displayName="Popup";var Ka=ca,Ta=y.createContext(null),Ja=Ta;function Ua(){}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 dt=function(yt){Object(S.a)(Me,yt);var nt=Object(v.a)(Me);function Me(Xe){var Ie;Object(P.a)(this,Me),Ie=nt.call(this,Xe),Ie.popupRef=y.createRef(),Ie.triggerRef=y.createRef(),Ie.attachId=void 0,Ie.clickOutsideHandler=void 0,Ie.touchOutsideHandler=void 0,Ie.contextMenuOutsideHandler1=void 0,Ie.contextMenuOutsideHandler2=void 0,Ie.mouseDownTimeout=void 0,Ie.focusTime=void 0,Ie.preClickTime=void 0,Ie.preTouchTime=void 0,Ie.delayTimer=void 0,Ie.hasPopupMouseDown=void 0,Ie.onMouseEnter=function($e){var mt=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",$e),Ie.delaySetPopupVisible(!0,mt,mt?null:$e)},Ie.onMouseMove=function($e){Ie.fireEvents("onMouseMove",$e),Ie.setPoint($e)},Ie.onMouseLeave=function($e){Ie.fireEvents("onMouseLeave",$e),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function($e){var mt;if($e.relatedTarget&&!$e.relatedTarget.setTimeout&&Object(vt.a)((mt=Ie.popupRef.current)===null||mt===void 0?void 0:mt.getElement(),$e.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function($e){Ie.fireEvents("onFocus",$e),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function($e){Ie.fireEvents("onMouseDown",$e),Ie.preClickTime=Date.now()},Ie.onTouchStart=function($e){Ie.fireEvents("onTouchStart",$e),Ie.preTouchTime=Date.now()},Ie.onBlur=function($e){Ie.fireEvents("onBlur",$e),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function($e){$e.preventDefault(),Ie.fireEvents("onContextMenu",$e),Ie.setPopupVisible(!0,$e)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function($e){if(Ie.fireEvents("onClick",$e),Ie.focusTime){var mt;if(Ie.preClickTime&&Ie.preTouchTime?mt=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?mt=Ie.preClickTime:Ie.preTouchTime&&(mt=Ie.preTouchTime),Math.abs(mt-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&$e&&$e.preventDefault&&$e.preventDefault();var rt=!Ie.state.popupVisible;(Ie.isClickToHide()&&!rt||rt&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,$e)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var $e;($e=Ie.context).onPopupMouseDown.apply($e,arguments)}},Ie.onDocumentClick=function($e){if(Ie.props.mask&&!Ie.props.maskClosable)return;var mt=$e.target,rt=Ie.getRootDomNode(),Mt=Ie.getPopupDomNode();(!Object(vt.a)(rt,mt)||Ie.isContextMenuOnly())&&!Object(vt.a)(Mt,mt)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var $e=Ie.props.getTriggerDOMNode;if($e)return $e(Ie.triggerRef.current);try{var mt=Object(_t.a)(Ie.triggerRef.current);if(mt)return mt}catch(rt){}return ut.a.findDOMNode(Object(x.a)(Ie))},Ie.getPopupClassNameFromAlign=function($e){var mt=[],rt=Ie.props,Mt=rt.popupPlacement,Vt=rt.builtinPlacements,pn=rt.prefixCls,ln=rt.alignPoint,dn=rt.getPopupClassNameFromAlign;return Mt&&Vt&&mt.push(Pt(Vt,pn,$e,ln)),dn&&mt.push(dn($e)),mt.join(" ")},Ie.getComponent=function(){var $e=Ie.props,mt=$e.prefixCls,rt=$e.destroyPopupOnHide,Mt=$e.popupClassName,Vt=$e.onPopupAlign,pn=$e.popupMotion,ln=$e.popupAnimation,dn=$e.popupTransitionName,cn=$e.popupStyle,Fn=$e.mask,Cn=$e.maskAnimation,Ur=$e.maskTransitionName,Pr=$e.maskMotion,Qr=$e.zIndex,Wr=$e.popup,ta=$e.stretch,Gn=$e.alignPoint,wr=$e.mobile,zn=$e.forceRender,xn=Ie.state,jn=xn.popupVisible,Vr=xn.point,ua=Ie.getPopupAlign(),pr={};return Ie.isMouseEnterToShow()&&(pr.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(pr.onMouseLeave=Ie.onPopupMouseLeave),pr.onMouseDown=Ie.onPopupMouseDown,pr.onTouchStart=Ie.onPopupMouseDown,y.createElement(Ka,Object(_.a)({prefixCls:mt,destroyPopupOnHide:rt,visible:jn,point:Gn&&Vr,className:Mt,align:ua,onAlign:Vt,animation:ln,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},pr,{stretch:ta,getRootDomNode:Ie.getRootDomNode,style:cn,mask:Fn,zIndex:Qr,transitionName:dn,maskAnimation:Cn,maskTransitionName:Ur,maskMotion:Pr,ref:Ie.popupRef,motion:pn,mobile:wr,forceRender:zn}),typeof Wr=="function"?Wr():Wr)},Ie.attachParent=function($e){ft.a.cancel(Ie.attachId);var mt=Ie.props,rt=mt.getPopupContainer,Mt=mt.getDocument,Vt=Ie.getRootDomNode(),pn;rt?(Vt||rt.length===0)&&(pn=rt(Vt)):pn=Mt(Ie.getRootDomNode()).body,pn?pn.appendChild($e):Ie.attachId=Object(ft.a)(function(){Ie.attachParent($e)})},Ie.getContainer=function(){var $e=Ie.props.getDocument,mt=$e(Ie.getRootDomNode()).createElement("div");return mt.style.position="absolute",mt.style.top="0",mt.style.left="0",mt.style.width="100%",Ie.attachParent(mt),mt},Ie.setPoint=function($e){var mt=Ie.props.alignPoint;if(!mt||!$e)return;Ie.setState({point:{pageX:$e.pageX,pageY:$e.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)},Ie.triggerContextValue={onPopupMouseDown:Ie.onPopupMouseDown};var et;return"popupVisible"in Xe?et=!!Xe.popupVisible:et=!!Xe.defaultPopupVisible,Ie.state={prevPopupVisible:et,popupVisible:et},fa.forEach(function($e){Ie["fire".concat($e)]=function(mt){Ie.fireEvents($e,mt)}}),Ie}return Object(R.a)(Me,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,et=this.state;if(et.popupVisible){var $e;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&($e=Ie.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(je.a)($e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||($e=$e||Ie.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(je.a)($e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&($e=$e||Ie.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(je.a)($e,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(je.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ft.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Ie;return((Ie=this.popupRef.current)===null||Ie===void 0?void 0:Ie.getElement())||null}},{key:"getPopupAlign",value:function(){var Ie=this.props,et=Ie.popupPlacement,$e=Ie.popupAlign,mt=Ie.builtinPlacements;return et&&mt?Et(mt,et,$e):$e}},{key:"setPopupVisible",value:function(Ie,et){var $e=this.props.alignPoint,mt=this.state.popupVisible;this.clearDelayTimer(),mt!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:mt}),this.props.onPopupVisibleChange(Ie)),$e&&et&&Ie&&this.setPoint(et)}},{key:"delaySetPopupVisible",value:function(Ie,et,$e){var mt=this,rt=et*1e3;if(this.clearDelayTimer(),rt){var Mt=$e?{pageX:$e.pageX,pageY:$e.pageY}:null;this.delayTimer=window.setTimeout(function(){mt.setPopupVisible(Ie,Mt),mt.clearDelayTimer()},rt)}else this.setPopupVisible(Ie,$e)}},{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(Ie){var et=this.props.children.props,$e=this.props;return et[Ie]&&$e[Ie]?this["fire".concat(Ie)]:et[Ie]||$e[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("click")!==-1||$e.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Ie=this.props.action;return Ie==="contextMenu"||Ie.length===1&&Ie[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("contextMenu")!==-1||$e.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("click")!==-1||$e.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("hover")!==-1||$e.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("hover")!==-1||$e.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("focus")!==-1||$e.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("focus")!==-1||$e.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Ie;(Ie=this.popupRef.current)===null||Ie===void 0||Ie.forceAlign()}}},{key:"fireEvents",value:function(Ie,et){var $e=this.props.children.props[Ie];$e&&$e(et);var mt=this.props[Ie];mt&&mt(et)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,et=this.props,$e=et.children,mt=et.forceRender,rt=et.alignPoint,Mt=et.className,Vt=et.autoDestroy,pn=y.Children.only($e),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 dn=A()(pn&&pn.props&&pn.props.className,Mt);dn&&(ln.className=dn);var cn=Object(b.a)({},ln);Object(Ve.c)(pn)&&(cn.ref=Object(Ve.a)(this.triggerRef,pn.ref));var Fn=y.cloneElement(pn,cn),Cn;return(Ie||this.popupRef.current||mt)&&(Cn=y.createElement(Ze,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&Vt&&(Cn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},Fn,Cn)}}],[{key:"getDerivedStateFromProps",value:function(Ie,et){var $e=Ie.popupVisible,mt={};return $e!==void 0&&et.popupVisible!==$e&&(mt.popupVisible=$e,mt.prevPopupVisible=et.popupVisible),mt}}]),Me}(y.Component);return dt.contextType=Ja,dt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:oi,onPopupVisibleChange:Ua,afterPopupVisibleChange:Ua,onPopupAlign:Ua,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},dt}var la=ma(ht.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,Ht=0,Lt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Xt=function(dt,yt,nt){var Me=le(yt),Xe=dt.getState();dt.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},Xe.defaultActiveFirst),{},Object(M.a)({},Me,nt))})},rn=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(nt){var Me;Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onDestroy=function(rt){Me.props.onDestroy(rt)},Me.onKeyDown=function(rt){var Mt=rt.keyCode,Vt=Me.menuInstance,pn=Me.props.store,ln=Me.getVisible();if(Mt===c.a.ENTER)return Me.onTitleClick(rt),Xt(pn,Me.props.eventKey,!0),!0;if(Mt===c.a.RIGHT)return ln?Vt.onKeyDown(rt):(Me.triggerOpenChange(!0),Xt(pn,Me.props.eventKey,!0)),!0;if(Mt===c.a.LEFT){var dn;if(ln)dn=Vt.onKeyDown(rt);else return;return dn||(Me.triggerOpenChange(!1),dn=!0),dn}return ln&&(Mt===c.a.UP||Mt===c.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,pn=Mt.onMouseEnter,ln=Mt.store;Xt(ln,Me.props.eventKey,!1),pn({key:Vt,domEvent:rt})},Me.onMouseLeave=function(rt){var Mt=Me.props,Vt=Mt.parentMenu,pn=Mt.eventKey,ln=Mt.onMouseLeave;Vt.subMenuInstance=Object(x.a)(Me),ln({key:pn,domEvent:rt})},Me.onTitleMouseEnter=function(rt){var Mt=Me.props,Vt=Mt.eventKey,pn=Mt.onItemHover,ln=Mt.onTitleMouseEnter;pn({key:Vt,hover:!0}),ln({key:Vt,domEvent:rt})},Me.onTitleMouseLeave=function(rt){var Mt=Me.props,Vt=Mt.parentMenu,pn=Mt.eventKey,ln=Mt.onItemHover,dn=Mt.onTitleMouseLeave;Vt.subMenuInstance=Object(x.a)(Me),ln({key:pn,hover:!1}),dn({key:pn,domEvent:rt})},Me.onTitleClick=function(rt){var Mt=Object(x.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,pn=function(){Me.onOpenChange({key:Vt,item:Object(x.a)(Me),trigger:Mt,open:rt})};Mt==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){pn()},0):pn()},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(x.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(x.a)(Me),subMenuCloseDelay:Mt.subMenuCloseDelay,forceSubMenuRender:Mt.forceSubMenuRender,triggerSubMenuAction:Mt.triggerSubMenuAction,builtinPlacements:Mt.builtinPlacements,defaultActiveFirst:Mt.store.getState().defaultActiveFirst[le(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(x.a)(Me),pn=Vt.haveRendered,ln=Me.props,dn=ln.motion,cn=ln.rootPrefixCls,Fn=Object(b.a)(Object(b.a)({},dn),{},{leavedClassName:"".concat(cn,"-hidden"),removeOnLeave:!1,motionAppear:pn||!Mt||rt!=="inline"});return Fn};var Xe=nt.store,Ie=nt.eventKey,et=Xe.getState(),$e=et.defaultActiveFirst;Me.isRootMenu=!1;var mt=!1;return $e&&(mt=$e[Ie]),Xt(Xe,Ie,mt),Me.state={mode:nt.mode,isOpen:nt.isOpen},Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Xe=this.props,Ie=Xe.mode,et=Xe.parentMenu,$e=Xe.manualRef,mt=Xe.isOpen,rt=function(){Me.setState({mode:Ie,isOpen:mt})},Mt=mt!==this.state.isOpen,Vt=Ie!==this.state.mode;if((Vt||Mt)&&(ft.a.cancel(this.updateStateRaf),Vt?this.updateStateRaf=Object(ft.a)(rt):rt()),$e&&$e(this),Ie!=="horizontal"||!(et==null?void 0:et.isRootMenu)||!mt)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Xe=Me.onDestroy,Ie=Me.eventKey;Xe&&Xe(Ie),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ft.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Me,Xe){var Ie=this.getBaseProps();return y.createElement(Yt,Object(_.a)({},Ie,{id:this.internalMenuId,className:Me,style:Xe}),this.props.children)}},{key:"renderChildren",value:function(){var Me=this,Xe=this.getBaseProps(),Ie=Xe.mode,et=Xe.visible,$e=Xe.forceSubMenuRender,mt=Xe.direction,rt=this.getMotion(Ie,et);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||et||$e,!this.haveOpened)return y.createElement("div",null);var Mt=A()("".concat(Xe.prefixCls,"-sub"),Object(M.a)({},"".concat(Xe.prefixCls,"-rtl"),mt==="rtl"));return this.isInlineMode()?y.createElement(De,Object(_.a)({visible:Xe.visible,forceRender:$e},rt),function(Vt){var pn=Vt.className,ln=Vt.style,dn=A()(Mt,pn);return Me.renderPopupMenu(dn,ln)}):this.renderPopupMenu(Mt)}},{key:"render",value:function(){var Me,Xe,Ie,et=Object(b.a)({},this.props),$e=this.getVisible(),mt=this.getPrefixCls(),rt=this.isInlineMode(),Mt=this.getMode(),Vt=A()(mt,"".concat(mt,"-").concat(Mt),(Me={},Object(M.a)(Me,et.className,!!et.className),Object(M.a)(Me,this.getOpenClassName(),$e),Object(M.a)(Me,this.getActiveClassName(),et.active||$e&&!rt),Object(M.a)(Me,this.getDisabledClassName(),et.disabled),Object(M.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||(et.eventKey?this.internalMenuId="".concat(et.eventKey,"$Menu"):(Ht+=1,this.internalMenuId="$__$".concat(Ht,"$Menu")));var pn={},ln={},dn={};et.disabled||(pn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ln={onClick:this.onTitleClick},dn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var cn={},Fn=et.direction,Cn=Fn==="rtl";rt&&(Cn?cn.paddingRight=et.inlineIndent*et.level:cn.paddingLeft=et.inlineIndent*et.level);var Ur={};this.getVisible()&&(Ur={"aria-owns":this.internalMenuId});var Pr=null;Mt!=="horizontal"&&(Pr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Pr=y.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var Qr=y.createElement("div",Object(_.a)({ref:this.saveSubMenuTitle,style:cn,className:"".concat(mt,"-title"),role:"button"},dn,ln,{"aria-expanded":$e},Ur,{"aria-haspopup":"true",title:typeof et.title=="string"?et.title:void 0}),et.title,Pr||y.createElement("i",{className:"".concat(mt,"-arrow")})),Wr=this.renderChildren(),ta=((Xe=et.parentMenu)===null||Xe===void 0?void 0:Xe.isRootMenu)?et.parentMenu.props.getPopupContainer:function(Tr){return Tr.parentNode},Gn=Lt[Mt],wr=et.popupOffset?{offset:et.popupOffset}:{},zn=A()((Ie={},Object(M.a)(Ie,et.popupClassName,et.popupClassName&&!rt),Object(M.a)(Ie,"".concat(mt,"-rtl"),Cn),Ie)),xn=et.disabled,jn=et.triggerSubMenuAction,Vr=et.subMenuOpenDelay,ua=et.forceSubMenuRender,pr=et.subMenuCloseDelay,aa=et.builtinPlacements;J.forEach(function(Tr){return delete et[Tr]}),delete et.onClick;var Ca=Cn?Object(b.a)(Object(b.a)({},Rt),aa):Object(b.a)(Object(b.a)({},lt),aa);delete et.direction;var ha=this.getBaseProps(),Sa=rt?null:this.getMotion(ha.mode,ha.visible);return y.createElement("li",Object(_.a)({},et,pn,{className:Vt,role:"menuitem"}),y.createElement(la,{prefixCls:mt,popupClassName:A()("".concat(mt,"-popup"),zn),getPopupContainer:ta,builtinPlacements:Ca,popupPlacement:Gn,popupVisible:rt?!1:$e,popupAlign:wr,popup:rt?null:Wr,action:xn||rt?[]:[jn],mouseEnterDelay:Vr,mouseLeaveDelay:pr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ua,popupMotion:Sa},Qr),rt?Wr:null)}}]),yt}(y.Component);rn.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var En=Object(T.b)(function(Ze,dt){var yt=Ze.openKeys,nt=Ze.activeKey,Me=Ze.selectedKeys,Xe=dt.eventKey,Ie=dt.subMenuKey;return{isOpen:yt.indexOf(Xe)>-1,active:nt[Ie]===Xe,selectedKeys:Me}})(rn);En.isSubMenu=!0;var gn=En,Nn="menuitem-overflowed",An=.5,an=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.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,Xe=nt.childRef.current;return Xe?[].slice.call(Xe.children).filter(function(Ie){return Ie.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Me,Xe,Ie){var et=nt.props,$e=et.overflowedIndicator,mt=et.level,rt=et.mode,Mt=et.prefixCls,Vt=et.theme;if(mt!==1||rt!=="horizontal")return null;var pn=nt.props.children[0],ln=pn.props,dn=ln.children,cn=ln.title,Fn=ln.style,Cn=Object(O.a)(ln,["children","title","style"]),Ur=Object(b.a)({},Fn),Pr="".concat(Me,"-overflowed-indicator"),Qr="".concat(Me,"-overflowed-indicator");Xe.length===0&&Ie!==!0?Ur=Object(b.a)(Object(b.a)({},Ur),{},{display:"none"}):Ie&&(Ur=Object(b.a)(Object(b.a)({},Ur),{},{visibility:"hidden",position:"absolute"}),Pr="".concat(Pr,"-placeholder"),Qr="".concat(Qr,"-placeholder"));var Wr=Vt?"".concat(Mt,"-").concat(Vt):"",ta={};return J.forEach(function(Gn){Cn[Gn]!==void 0&&(ta[Gn]=Cn[Gn])}),y.createElement(gn,Object(_.a)({title:$e,className:"".concat(Mt,"-overflowed-submenu"),popupClassName:Wr},ta,{key:Pr,eventKey:Qr,disabled:!1,style:Ur}),Xe)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Xe=Me.children;if(!Xe||Xe.length===0)return;var Ie=Me.children[Xe.length-1];_e(Ie,"display","inline-block");var et=nt.getMenuItemNodes(),$e=et.filter(function(mt){return mt.className.split(" ").indexOf(Nn)>=0});$e.forEach(function(mt){_e(mt,"display","inline-block")}),nt.menuItemSizes=et.map(function(mt){return ve(mt,!0)}),$e.forEach(function(mt){_e(mt,"display","none")}),nt.overflowedIndicatorWidth=ve(Me.children[Me.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(mt,rt){return mt+rt},0),nt.handleResize(),_e(Ie,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Xe=ve(Me);nt.overflowedItems=[];var Ie=0,et;nt.originalTotalWidth>Xe+An&&(et=-1,nt.menuItemSizes.forEach(function($e){Ie+=$e,Ie+nt.overflowedIndicatorWidth<=Xe&&(et+=1)})),nt.setState({lastVisibleIndex:et})},nt}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Xe=this.childRef.current;if(!Xe)return;this.resizeObserver=new Je.default(function(Ie){Ie.forEach(function(){var et=Me.cancelFrameId;cancelAnimationFrame(et),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Xe.children).concat(Xe).forEach(function(Ie){Me.resizeObserver.observe(Ie)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Xe.children).concat(Xe).forEach(function(Ie){Me.resizeObserver.observe(Ie)}),Me.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(Me){var Xe=this,Ie=this.state.lastVisibleIndex;return(Me||[]).reduce(function(et,$e,mt){var rt=$e;if(Xe.props.mode==="horizontal"){var Mt=Xe.getOverflowedSubMenuItem($e.props.eventKey,[]);Ie!==void 0&&Xe.props.className.indexOf("".concat(Xe.props.prefixCls,"-root"))!==-1&&(mt>Ie&&(rt=y.cloneElement($e,{style:{display:"none"},eventKey:"".concat($e.props.eventKey,"-hidden"),className:"".concat(Nn)})),mt===Ie+1&&(Xe.overflowedItems=Me.slice(Ie+1).map(function(pn){return y.cloneElement(pn,{key:pn.props.eventKey,mode:"vertical-left"})}),Mt=Xe.getOverflowedSubMenuItem($e.props.eventKey,Xe.overflowedItems)));var Vt=[].concat(Object(f.a)(et),[Mt,rt]);return mt===Me.length-1&&Vt.push(Xe.getOverflowedSubMenuItem($e.props.eventKey,[],!0)),Vt}return[].concat(Object(f.a)(et),[rt])},[])}},{key:"render",value:function(){var Me=this.props,Xe=Me.visible,Ie=Me.prefixCls,et=Me.overflowedIndicator,$e=Me.mode,mt=Me.level,rt=Me.tag,Mt=Me.children,Vt=Me.theme,pn=Object(O.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ln=rt;return y.createElement(ln,Object(_.a)({ref:this.childRef},pn),this.renderChildren(Mt))}}]),yt}(y.Component);an.defaultProps={tag:"div",className:""};var Pn=an;function bn(Ze){return Ze.length?Ze.every(function(dt){return!!dt.props.disabled}):!0}function kn(Ze,dt,yt){var nt=Ze.getState();Ze.setState({activeKey:Object(b.a)(Object(b.a)({},nt.activeKey),{},Object(M.a)({},dt,yt))})}function Rn(Ze){return Ze.eventKey||"0-menu-"}function Yn(Ze,dt){var yt=dt,nt=Ze.children,Me=Ze.eventKey;if(yt){var Xe;if(te(nt,function(Ie,et){Ie&&Ie.props&&!Ie.props.disabled&&yt===Oe(Ie,Me,et)&&(Xe=!0)}),Xe)return yt}return yt=null,Ze.defaultActiveFirst&&te(nt,function(Ie,et){!yt&&Ie&&!Ie.props.disabled&&(yt=Oe(Ie,Me,et))}),yt}function mr(Ze){if(!Ze)return;var dt=this.instanceArray.indexOf(Ze);dt!==-1?this.instanceArray[dt]=Ze:this.instanceArray.push(Ze)}var Br=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(nt){var Me;return Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onKeyDown=function(Xe,Ie){var et=Xe.keyCode,$e;if(Me.getFlatInstanceArray().forEach(function(rt){rt&&rt.props.active&&rt.onKeyDown&&($e=rt.onKeyDown(Xe))}),$e)return 1;var mt=null;return(et===c.a.UP||et===c.a.DOWN)&&(mt=Me.step(et===c.a.UP?-1:1)),mt?(Xe.preventDefault(),kn(Me.props.store,Rn(Me.props),mt.props.eventKey),typeof Ie=="function"&&Ie(mt),1):void 0},Me.onItemHover=function(Xe){var Ie=Xe.key,et=Xe.hover;kn(Me.props.store,Rn(Me.props),et?Ie:null)},Me.onDeselect=function(Xe){Me.props.onDeselect(Xe)},Me.onSelect=function(Xe){Me.props.onSelect(Xe)},Me.onClick=function(Xe){Me.props.onClick(Xe)},Me.onOpenChange=function(Xe){Me.props.onOpenChange(Xe)},Me.onDestroy=function(Xe){Me.props.onDestroy(Xe)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Xe){var Ie=Me.getFlatInstanceArray(),et=Me.props.store.getState().activeKey[Rn(Me.props)],$e=Ie.length;if(!$e)return null;Xe<0&&(Ie=Ie.concat().reverse());var mt=-1;if(Ie.every(function(pn,ln){return pn&&pn.props.eventKey===et?(mt=ln,!1):!0}),!Me.props.defaultActiveFirst&&mt!==-1&&bn(Ie.slice(mt,$e-1)))return;var rt=(mt+1)%$e,Mt=rt;do{var Vt=Ie[Mt];if(!Vt||Vt.props.disabled)Mt=(Mt+1)%$e;else return Vt}while(Mt!==rt);return null},Me.renderCommonMenuItem=function(Xe,Ie,et){var $e=Me.props.store.getState(),mt=Object(x.a)(Me),rt=mt.props,Mt=Oe(Xe,rt.eventKey,Ie),Vt=Xe.props;if(!Vt||typeof Xe.type=="string")return Xe;var pn=Mt===$e.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:Ie,parentMenu:rt.parentMenu,manualRef:Vt.disabled?void 0:Object(L.a)(Xe.ref,mr.bind(Object(x.a)(Me))),eventKey:Mt,active:!Vt.disabled&&pn,multiple:rt.multiple,onClick:function(cn){(Vt.onClick||ae)(cn),Me.onClick(cn)},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},et),{},{direction:rt.direction});return(rt.mode==="inline"||Ae())&&(ln.triggerSubMenuAction="click"),y.cloneElement(Xe,Object(b.a)(Object(b.a)({},ln),{},{key:Mt||Ie}))},Me.renderMenuItem=function(Xe,Ie,et){if(!Xe)return null;var $e=Me.props.store.getState(),mt={openKeys:$e.openKeys,selectedKeys:$e.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:et};return Me.renderCommonMenuItem(Xe,Ie,mt)},nt.store.setState({activeKey:Object(b.a)(Object(b.a)({},nt.store.getState().activeKey),{},Object(M.a)({},nt.eventKey,Yn(nt,nt.activeKey)))}),Me.instanceArray=[],Me}return Object(R.a)(yt,[{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 Xe=this.props,Ie="activeKey"in Xe?Xe.activeKey:Xe.store.getState().activeKey[Rn(Xe)],et=Yn(Xe,Ie);if(et!==Ie)kn(Xe.store,Rn(Xe),et);else if("activeKey"in Me){var $e=Yn(Me,Me.activeKey);et!==$e&&kn(Xe.store,Rn(Xe),et)}}},{key:"render",value:function(){var Me=this,Xe=Object(_.a)({},this.props);this.instanceArray=[];var Ie=A()(Xe.prefixCls,Xe.className,"".concat(Xe.prefixCls,"-").concat(Xe.mode)),et={className:Ie,role:Xe.role||"menu"};Xe.id&&(et.id=Xe.id),Xe.focusable&&(et.tabIndex=0,et.onKeyDown=this.onKeyDown);var $e=Xe.prefixCls,mt=Xe.eventKey,rt=Xe.visible,Mt=Xe.level,Vt=Xe.mode,pn=Xe.overflowedIndicator,ln=Xe.theme;return J.forEach(function(dn){return delete Xe[dn]}),delete Xe.onClick,y.createElement(Pn,Object(_.a)({},Xe,{prefixCls:$e,mode:Vt,tag:"ul",level:Mt,theme:ln,visible:rt,overflowedIndicator:pn},et),Object(m.a)(Xe.children).map(function(dn,cn){return Me.renderMenuItem(dn,cn,mt||"0-menu-")}))}}]),yt}(y.Component);Br.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var Sn=Object(T.b)()(Br),Yt=Sn,hn=o("Kwbf");function Dn(Ze,dt,yt){var nt=Ze.prefixCls,Me=Ze.motion,Xe=Ze.defaultMotions,Ie=Xe===void 0?{}:Xe,et=Ze.openAnimation,$e=Ze.openTransitionName,mt=dt.switchingModeFromInline;if(Me)return Me;if(Object(H.a)(et)==="object"&&et)Object(hn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof et=="string")return{motionName:"".concat(nt,"-open-").concat(et)};if($e)return{motionName:$e};var rt=Ie[yt];return rt||(mt?null:Ie.other)}var tn=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(nt){var Me;Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onSelect=function(et){var $e=Object(x.a)(Me),mt=$e.props;if(mt.selectable){var rt=Me.store.getState(),Mt=rt.selectedKeys,Vt=et.key;mt.multiple?Mt=Mt.concat([Vt]):Mt=[Vt],"selectedKeys"in mt||Me.store.setState({selectedKeys:Mt}),mt.onSelect(Object(b.a)(Object(b.a)({},et),{},{selectedKeys:Mt}))}},Me.onClick=function(et){var $e=Me.getRealMenuMode(),mt=Object(x.a)(Me),rt=mt.store,Mt=mt.props.onOpenChange;$e!=="inline"&&!("openKeys"in Me.props)&&(rt.setState({openKeys:[]}),Mt([])),Me.props.onClick(et)},Me.onKeyDown=function(et,$e){Me.innerMenu.getWrappedInstance().onKeyDown(et,$e)},Me.onOpenChange=function(et){var $e=Object(x.a)(Me),mt=$e.props,rt=Me.store.getState().openKeys.concat(),Mt=!1,Vt=function(ln){var dn=!1;if(ln.open)dn=rt.indexOf(ln.key)===-1,dn&&rt.push(ln.key);else{var cn=rt.indexOf(ln.key);dn=cn!==-1,dn&&rt.splice(cn,1)}Mt=Mt||dn};Array.isArray(et)?et.forEach(Vt):Vt(et),Mt&&("openKeys"in Me.props||Me.store.setState({openKeys:rt}),mt.onOpenChange(rt))},Me.onDeselect=function(et){var $e=Object(x.a)(Me),mt=$e.props;if(mt.selectable){var rt=Me.store.getState().selectedKeys.concat(),Mt=et.key,Vt=rt.indexOf(Mt);Vt!==-1&&rt.splice(Vt,1),"selectedKeys"in mt||Me.store.setState({selectedKeys:rt}),mt.onDeselect(Object(b.a)(Object(b.a)({},et),{},{selectedKeys:rt}))}},Me.onMouseEnter=function(et){Me.restoreModeVerticalFromInline();var $e=Me.props.onMouseEnter;$e&&$e(et)},Me.onTransitionEnd=function(et){var $e=et.propertyName==="width"&&et.target===et.currentTarget,mt=et.target.className,rt=Object.prototype.toString.call(mt)==="[object SVGAnimatedString]"?mt.animVal:mt,Mt=et.propertyName==="font-size"&&rt.indexOf("anticon")>=0;($e||Mt)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function(et){Me.innerMenu=et},Me.isRootMenu=!0;var Xe=nt.defaultSelectedKeys,Ie=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Xe=nt.selectedKeys||[]),"openKeys"in nt&&(Ie=nt.openKeys||[]),Me.store=Object(T.c)({selectedKeys:Xe,openKeys:Ie,activeKey:{"0-menu-":Yn(nt,nt.activeKey)}}),Me.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Me.store},Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){var Xe=this.props,Ie=Xe.siderCollapsed,et=Xe.inlineCollapsed,$e=Xe.onOpenChange;(!Me.inlineCollapsed&&et||!Me.siderCollapsed&&Ie)&&$e([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Xe=this.store,Ie=this.prevOpenKeys,et=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");et?(this.prevOpenKeys=Xe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ie&&(this.store.setState({openKeys:Ie}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Me=this.props.mode,Xe=this.state.switchingModeFromInline,Ie=this.getInlineCollapsed();return Xe&&Ie?"inline":Ie?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Xe=Me.inlineCollapsed,Ie=Me.siderCollapsed;return Ie!==void 0?Ie:Xe}},{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"])),Xe=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:Xe,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,Xe)}),delete Me.openAnimation,delete Me.openTransitionName,y.createElement(T.a,{store:this.store},y.createElement(Yt,Object(_.a)({},Me,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Me,Xe){var Ie=Xe.prevProps,et=Xe.store,$e=et.getState(),mt={},rt={prevProps:Me};return Ie.mode==="inline"&&Me.mode!=="inline"&&(rt.switchingModeFromInline=!0),"openKeys"in Me?mt.openKeys=Me.openKeys||[]:((Me.inlineCollapsed&&!Ie.inlineCollapsed||Me.siderCollapsed&&!Ie.siderCollapsed)&&(rt.switchingModeFromInline=!0,rt.inlineOpenKeys=$e.openKeys,mt.openKeys=[]),(!Me.inlineCollapsed&&Ie.inlineCollapsed||!Me.siderCollapsed&&Ie.siderCollapsed)&&(mt.openKeys=Xe.inlineOpenKeys,rt.inlineOpenKeys=[])),Object.keys(mt).length&&et.setState(mt),rt}}]),yt}(y.Component);tn.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=tn,_n=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.onKeyDown=function(Me){var Xe=Me.keyCode;return Xe===c.a.ENTER?(nt.onClick(Me),!0):void 0},nt.onMouseLeave=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.onItemHover,$e=Xe.onMouseLeave;et({key:Ie,hover:!1}),$e({key:Ie,domEvent:Me})},nt.onMouseEnter=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.onItemHover,$e=Xe.onMouseEnter;et({key:Ie,hover:!0}),$e({key:Ie,domEvent:Me})},nt.onClick=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.multiple,$e=Xe.onClick,mt=Xe.onSelect,rt=Xe.onDeselect,Mt=Xe.isSelected,Vt={key:Ie,keyPath:[Ie],item:Object(x.a)(nt),domEvent:Me};$e(Vt),et?Mt?rt(Vt):mt(Vt):Mt||mt(Vt)},nt.saveNode=function(Me){nt.node=Me},nt}return Object(R.a)(yt,[{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,Xe=Object(b.a)({},this.props),Ie=A()(this.getPrefixCls(),Xe.className,(Me={},Object(M.a)(Me,this.getActiveClassName(),!Xe.disabled&&Xe.active),Object(M.a)(Me,this.getSelectedClassName(),Xe.isSelected),Object(M.a)(Me,this.getDisabledClassName(),Xe.disabled),Me)),et=Object(b.a)(Object(b.a)({},Xe.attribute),{},{title:typeof Xe.title=="string"?Xe.title:void 0,className:Ie,role:Xe.role||"menuitem","aria-disabled":Xe.disabled});Xe.role==="option"?et=Object(b.a)(Object(b.a)({},et),{},{role:"option","aria-selected":Xe.isSelected}):(Xe.role===null||Xe.role==="none")&&(et.role="none");var $e={onClick:Xe.disabled?null:this.onClick,onMouseLeave:Xe.disabled?null:this.onMouseLeave,onMouseEnter:Xe.disabled?null:this.onMouseEnter},mt=Object(b.a)({},Xe.style);Xe.mode==="inline"&&(Xe.direction==="rtl"?mt.paddingRight=Xe.inlineIndent*Xe.level:mt.paddingLeft=Xe.inlineIndent*Xe.level),J.forEach(function(Mt){return delete Xe[Mt]}),delete Xe.direction;var rt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(rt=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(_.a)({},Object(U.a)(Xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),et,$e,{style:mt,ref:this.saveNode}),Xe.children,rt)}}]),yt}(y.Component);_n.isMenuItem=!0,_n.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var In=Object(T.b)(function(Ze,dt){var yt=Ze.activeKey,nt=Ze.selectedKeys,Me=dt.eventKey,Xe=dt.subMenuKey;return{active:yt[Xe]===Me,isSelected:Array.isArray(nt)?nt.indexOf(Me)!==-1:nt===Me}})(_n),Un=In,ar=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.renderInnerMenuItem=function(Me){var Xe=nt.props,Ie=Xe.renderMenuItem,et=Xe.index;return Ie(Me,et,nt.props.subMenuKey)},nt}return Object(R.a)(yt,[{key:"render",value:function(){var Me=Object(_.a)({},this.props),Xe=Me.className,Ie=Xe===void 0?"":Xe,et=Me.rootPrefixCls,$e="".concat(et,"-item-group-title"),mt="".concat(et,"-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(_.a)({},Me,{onClick:function(pn){return pn.stopPropagation()},className:"".concat(Ie," ").concat(et,"-item-group")}),y.createElement("div",{className:$e,title:typeof rt=="string"?rt:void 0},rt),y.createElement("ul",{className:mt},y.Children.map(Mt,this.renderInnerMenuItem)))}}]),yt}(y.Component);ar.isMenuItemGroup=!0,ar.defaultProps={disabled:!0};var qn=ar,Rr=function(dt){var yt=dt.className,nt=dt.rootPrefixCls,Me=dt.style;return y.createElement("li",{className:"".concat(yt," ").concat(nt,"-item-divider"),style:Me})};Rr.defaultProps={disabled:!0,className:"",style:{}};var Ir=Rr,Jn=wn,Ar=o("eDIo");function vr(Ze,dt){var yt=Ze.prefixCls,nt=Ze.editable,Me=Ze.locale,Xe=Ze.style;return!nt||nt.showAdd===!1?null:y.createElement("button",{ref:dt,type:"button",className:"".concat(yt,"-nav-add"),style:Xe,"aria-label":(Me==null?void 0:Me.addAriaLabel)||"Add tab",onClick:function(et){nt.onEdit("add",{event:et})}},nt.addIcon||"+")}var zr=y.forwardRef(vr);function Lr(Ze,dt){var yt=Ze.prefixCls,nt=Ze.id,Me=Ze.tabs,Xe=Ze.locale,Ie=Ze.mobile,et=Ze.moreIcon,$e=et===void 0?"More":et,mt=Ze.moreTransitionName,rt=Ze.style,Mt=Ze.className,Vt=Ze.editable,pn=Ze.tabBarGutter,ln=Ze.rtl,dn=Ze.onTabClick,cn=Object(y.useState)(!1),Fn=Object(g.a)(cn,2),Cn=Fn[0],Ur=Fn[1],Pr=Object(y.useState)(null),Qr=Object(g.a)(Pr,2),Wr=Qr[0],ta=Qr[1],Gn="".concat(nt,"-more-popup"),wr="".concat(yt,"-dropdown"),zn=Wr!==null?"".concat(Gn,"-").concat(Wr):null,xn=Xe==null?void 0:Xe.dropdownAriaLabel,jn=y.createElement(Jn,{onClick:function(Sa){var Tr=Sa.key,br=Sa.domEvent;dn(Tr,br),Ur(!1)},id:Gn,tabIndex:-1,role:"listbox","aria-activedescendant":zn,selectedKeys:[Wr],"aria-label":xn!==void 0?xn:"expanded dropdown"},Me.map(function(ha){return y.createElement(Un,{key:ha.key,id:"".concat(Gn,"-").concat(ha.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(ha.key),disabled:ha.disabled},ha.tab)}));function Vr(ha){for(var Sa=Me.filter(function(pa){return!pa.disabled}),Tr=Sa.findIndex(function(pa){return pa.key===Wr})||0,br=Sa.length,Mr=0;Mraa?(ua=jn,Gn.current="x"):(ua=Vr,Gn.current="y");var Ca=Date.now();Ca-Wr.current>100&&(ta.current=!1),(dt(-ua,-ua)||ta.current)&&(xn.preventDefault(),ta.current=!0),Wr.current=Ca}var zn=Object(y.useRef)(null);zn.current={onTouchStart:Ur,onTouchMove:Pr,onTouchEnd:Qr,onWheel:wr},y.useEffect(function(){function xn(pr){zn.current.onTouchStart(pr)}function jn(pr){zn.current.onTouchMove(pr)}function Vr(pr){zn.current.onTouchEnd(pr)}function ua(pr){zn.current.onWheel(pr)}return document.addEventListener("touchmove",jn,{passive:!1}),document.addEventListener("touchend",Vr,{passive:!1}),Ze.current.addEventListener("touchstart",xn,{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 dt(nt){return Ze.current.has(nt)||Ze.current.set(nt,y.createRef()),Ze.current.get(nt)}function yt(nt){Ze.current.delete(nt)}return[dt,yt]}function ur(Ze,dt){var yt=y.useRef(Ze),nt=y.useState({}),Me=Object(g.a)(nt,2),Xe=Me[1];function Ie(et){var $e=typeof et=="function"?et(yt.current):et;$e!==yt.current&&dt($e,yt.current),yt.current=$e,Xe({})}return[yt.current,Ie]}var ir=function(dt){var yt=dt.position,nt=dt.prefixCls,Me=dt.extra;if(!Me)return null;var Xe,Ie=Me;return yt==="right"&&(Xe=Ie.right||!Ie.left&&Ie||null),yt==="left"&&(Xe=Ie.left||null),Xe?y.createElement("div",{className:"".concat(nt,"-extra-content")},Xe):null};function qr(Ze,dt){var yt,nt=y.useContext(nr),Me=nt.prefixCls,Xe=nt.tabs,Ie=Ze.className,et=Ze.style,$e=Ze.id,mt=Ze.animated,rt=Ze.activeKey,Mt=Ze.rtl,Vt=Ze.extra,pn=Ze.editable,ln=Ze.locale,dn=Ze.tabPosition,cn=Ze.tabBarGutter,Fn=Ze.children,Cn=Ze.onTabClick,Ur=Ze.onTabScroll,Pr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useRef)(),ta=Object(y.useRef)(),Gn=rr(),wr=Object(g.a)(Gn,2),zn=wr[0],xn=wr[1],jn=dn==="top"||dn==="bottom",Vr=ur(0,function(Da,ya){jn&&Ur&&Ur({direction:Da>ya?"left":"right"})}),ua=Object(g.a)(Vr,2),pr=ua[0],aa=ua[1],Ca=ur(0,function(Da,ya){!jn&&Ur&&Ur({direction:Da>ya?"top":"bottom"})}),ha=Object(g.a)(Ca,2),Sa=ha[0],Tr=ha[1],br=Object(y.useState)(0),Mr=Object(g.a)(br,2),tr=Mr[0],pa=Mr[1],xa=Object(y.useState)(0),ba=Object(g.a)(xa,2),Aa=ba[0],ga=ba[1],Na=Object(y.useState)(0),ka=Object(g.a)(Na,2),Fa=ka[0],ni=ka[1],Fi=Object(y.useState)(0),Ai=Object(g.a)(Fi,2),La=Ai[0],bi=Ai[1],Si=Object(y.useState)(null),ja=Object(g.a)(Si,2),Ma=ja[0],Za=ja[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=r(new Map),Yi=Object(g.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=u(Xe,No,tr),Ji="".concat(Me,"-nav-operations-hidden"),Qi=0,ei=0;jn?Mt?(Qi=0,ei=Math.max(0,tr-Ma)):(Qi=Math.min(0,Ma-tr),ei=0):(Qi=Math.min(0,Ii-Aa),ei=0);function Li(Da){return Daei?[ei,!1]:[Da,!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(Pr,function(Da,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>=tr)return Ga;ui(aa,Da)}else{if(Ii>=Aa)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 Da=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rt,ya=ao.get(Da);if(!ya)return;if(jn){var Ga=pr;Mt?ya.rightpr+Ma&&(Ga=ya.right+ya.width-Ma):ya.left<-pr?Ga=-ya.left:ya.left+ya.width>-pr+Ma&&(Ga=-(ya.left+ya.width-Ma)),Tr(0),aa(Li(Ga)[0])}else{var ui=Sa;ya.top<-Sa?ui=-ya.top:ya.top+ya.height>-Sa+Ii&&(ui=-(ya.top+ya.height-Ii)),aa(0),Tr(Li(ui)[0])}}var qi=E(ao,{width:Ma,height:Ii,left:pr,top:Sa},{width:Fa,height:La},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},Ze),{},{tabs:Xe})),ko=Object(g.a)(qi,2),oo=ko[0],so=ko[1],So=Xe.map(function(Da){var ya=Da.key;return y.createElement(d,{id:$e,prefixCls:Me,key:ya,rtl:Mt,tab:Da,closable:Da.closable,editable:pn,active:ya===rt,tabPosition:dn,tabBarGutter:cn,renderWrapper:Fn,removeAriaLabel:ln==null?void 0:ln.removeAriaLabel,ref:zn(ya),onClick:function(ui){Cn(ya,ui)},onRemove:function(){xn(ya)},onFocus:function(){Ni(ya),Co(),Mt||(Pr.current.scrollLeft=0),Pr.current.scrollTop=0}})}),Uo=i(function(){var Da,ya,Ga,ui,eo,ki,ho,wi,qa,po=((Da=Pr.current)===null||Da===void 0?void 0:Da.offsetWidth)||0,Hi=((ya=Pr.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 Xe.forEach(function(Ei){var Pi=Ei.key,$a=zn(Pi).current;$a&&Wa.set(Pi,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Wa})}),jo=Xe.slice(0,oo),fi=Xe.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(){l.a.cancel(Bo.current)}Object(y.useEffect)(function(){var Da={};return yi&&(jn?(Mt?Da.right=yi.right:Da.left=yi.left,Da.width=yi.width):(Da.top=yi.top,Da.height=yi.height)),To(),Bo.current=l()(function(){wo(Da)}),To},[yi,jn,Mt]),Object(y.useEffect)(function(){Ni()},[rt,yi,ao,jn]),Object(y.useEffect)(function(){Uo()},[Mt,cn,rt,Xe.map(function(Da){return Da.key}).join("_")]);var $i=!!Ha.length,Wi="".concat(Me,"-nav-wrap"),Oo,fo,Wo,lo;return jn?Mt?(fo=pr>0,Oo=pr+Ma>>7)^(P<<14|P>>>18)^P>>>3,x=f[_-2],S=(x<<15|x>>>17)^(x<<13|x>>>19)^x>>>10;f[_]=R+f[_-7]+S+f[_-16]}var v=s&u^~s&w,T=r&c^r&h^c&h,U=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),L=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),N=E+L+v+e[_]+f[_],V=U+T;E=w,w=u,u=s,s=d+N|0,d=h,h=c,c=r,r=N+V|0}i[0]=i[0]+r|0,i[1]=i[1]+c|0,i[2]=i[2]+h|0,i[3]=i[3]+d|0,i[4]=i[4]+s|0,i[5]=i[5]+u|0,i[6]=i[6]+w|0,i[7]=i[7]+E|0},_doFinalize:function(){var l=this._data,n=l.words,i=this._nDataBytes*8,r=l.sigBytes*8;return n[r>>>5]|=128<<24-r%32,n[(r+64>>>9<<4)+14]=g.floor(i/4294967296),n[(r+64>>>9<<4)+15]=i,l.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var l=C.clone.call(this);return l._hash=this._hash.clone(),l}});O.SHA256=C._createHelper(a),O.HmacSHA256=C._createHmacHelper(a)}(Math),M.SHA256})},lZu9:function(k,z,o){(function(M){M(o("VrN/"),o("1eCo"),o("8EBN"))})(function(M){"use strict";M.defineMode("markdown",function(g,O){var b=M.getMode(g,"text/html"),y=b.name=="null";function C(F){if(M.findModeByName){var I=M.findModeByName(F);I&&(F=I.mime||I.mimes[0])}var K=M.getMode(g,F);return K.name=="null"?null:K}O.highlightFormatting===void 0&&(O.highlightFormatting=!1),O.maxBlockquoteDepth===void 0&&(O.maxBlockquoteDepth=0),O.taskLists===void 0&&(O.taskLists=!1),O.strikethrough===void 0&&(O.strikethrough=!1),O.emoji===void 0&&(O.emoji=!1),O.fencedCodeBlockHighlighting===void 0&&(O.fencedCodeBlockHighlighting=!0),O.fencedCodeBlockDefaultMode===void 0&&(O.fencedCodeBlockDefaultMode="text/plain"),O.xml===void 0&&(O.xml=!0),O.tokenTypeOverrides===void 0&&(O.tokenTypeOverrides={});var A={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 A)A.hasOwnProperty(m)&&O.tokenTypeOverrides[m]&&(A[m]=O.tokenTypeOverrides[m]);var e=/^([*\-_])(?:\s*\1){2,}\s*$/,f=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,a=/^\[(x| )\](?=\s)/i,l=O.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,n=/^ {0,3}(?:\={1,}|-{2,})\s*$/,i=/^[^#!\[\]*_\\<>` "'(~:]+/,r=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,c=/^\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 u(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==P){var I=y;if(!I){var K=M.innerMode(b,F.htmlState);I=K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText}I&&(F.f=v,F.block=_,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function _(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,A.code;if(F.eatSpace())return null;if(K&&I.indentation<=Te&&(ue=F.match(l))&&ue[1].length<=6)return I.quote=0,I.header=ue[1].length,I.thisLine.header=!0,O.highlightFormatting&&(I.formatting="header"),I.f=I.inline,x(I);if(I.indentation<=Te&&F.eat(">"))return I.quote=K?1:I.quote+1,O.highlightFormatting&&(I.formatting="quote"),F.eatSpace(),x(I);if(!ye&&!I.setext&&K&&I.indentation<=Te&&(ue=F.match(f))){var se=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,O.taskLists&&F.match(a,!1)&&(I.taskList=!0),I.f=I.inline,O.highlightFormatting&&(I.formatting=["list","list-"+se]),x(I)}else{if(K&&I.indentation<=Te&&(ue=F.match(r,!0)))return I.quote=0,I.fencedEndRE=new RegExp(ue[1]+"+ *$"),I.localMode=O.fencedCodeBlockHighlighting&&C(ue[2]||O.fencedCodeBlockDefaultMode),I.localMode&&(I.localState=M.startState(I.localMode)),I.f=I.block=R,O.highlightFormatting&&(I.formatting="code-block"),I.code=-1,x(I);if(I.setext||(!be||!Se)&&!I.quote&&I.list===!1&&!I.code&&!ye&&!c.test(F.string)&&(ue=F.lookAhead(1))&&(ue=ue.match(n)))return I.setext?(I.header=I.setext,I.setext=0,F.skipToEnd(),O.highlightFormatting&&(I.formatting="header")):(I.header=ue[0].charAt(0)=="="?1:2,I.setext=I.header),I.thisLine.header=!0,I.f=I.inline,x(I);if(ye)return F.skipToEnd(),I.hr=!0,I.thisLine.hr=!0,A.hr;if(F.peek()==="[")return s(F,I,V)}return s(F,I,I.inline)}function P(F,I){var K=b.token(F,I.htmlState);if(!y){var ee=M.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=v,I.block=_,I.htmlState=null)}return K}function R(F,I){var K=I.listStack[I.listStack.length-1]||0,ee=I.indentation=F.quote?I.push(A.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(A.linkHref,"url"):(F.strong&&I.push(A.strong),F.em&&I.push(A.em),F.strikethrough&&I.push(A.strikethrough),F.emoji&&I.push(A.emoji),F.linkText&&I.push(A.linkText),F.code&&I.push(A.code),F.image&&I.push(A.image),F.imageAltText&&I.push(A.imageAltText,"link"),F.imageMarker&&I.push(A.imageMarker)),F.header&&I.push(A.header,A.header+"-"+F.header),F.quote&&(I.push(A.quote),!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=F.quote?I.push(A.quote+"-"+F.quote):I.push(A.quote+"-"+O.maxBlockquoteDepth)),F.list!==!1){var ee=(F.listStack.length-1)%3;ee?ee===1?I.push(A.list2):I.push(A.list3):I.push(A.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)?x(I):void 0}function v(F,I){var K=I.text(F,I);if(typeof K!="undefined")return K;if(I.list)return I.list=null,x(I);if(I.taskList){var ee=F.match(a,!0)[1]===" ";return ee?I.taskOpen=!0:I.taskClosed=!0,O.highlightFormatting&&(I.formatting="task"),I.taskList=!1,x(I)}if(I.taskOpen=!1,I.taskClosed=!1,I.header&&F.match(/^#+$/,!0))return O.highlightFormatting&&(I.formatting="header"),x(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 A.linkHref}if(he==="`"){var Te=I.formatting;O.highlightFormatting&&(I.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(I.code==0&&(!I.quote||ce==1))return I.code=ce,x(I);if(ce==I.code){var be=x(I);return I.code=0,be}else return I.formatting=Te,x(I)}else if(I.code)return x(I);if(he==="\\"&&(F.next(),O.highlightFormatting)){var ye=x(I),ue=A.formatting+"-escape";return ye?ye+" "+ue:ue}if(he==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return I.imageMarker=!0,I.image=!0,O.highlightFormatting&&(I.formatting="image"),x(I);if(he==="["&&I.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return I.imageMarker=!1,I.imageAltText=!0,O.highlightFormatting&&(I.formatting="image"),x(I);if(he==="]"&&I.imageAltText){O.highlightFormatting&&(I.formatting="image");var ye=x(I);return I.imageAltText=!1,I.image=!1,I.inline=I.f=U,ye}if(he==="["&&!I.image)return I.linkText&&F.match(/^.*?\]/)||(I.linkText=!0,O.highlightFormatting&&(I.formatting="link")),x(I);if(he==="]"&&I.linkText){O.highlightFormatting&&(I.formatting="link");var ye=x(I);return I.linkText=!1,I.inline=I.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?U:v,ye}if(he==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=T,O.highlightFormatting&&(I.formatting="link");var ye=x(I);return ye?ye+=" ":ye="",ye+A.linkInline}if(he==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=T,O.highlightFormatting&&(I.formatting="link");var ye=x(I);return ye?ye+=" ":ye="",ye+A.linkEmail}if(O.xml&&he==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var se=F.string.indexOf(">",F.pos);if(se!=-1){var $=F.string.substring(F.start,se);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($)&&(I.md_inside=!0)}return F.backUp(1),I.htmlState=M.startState(b),u(F,I,P)}if(O.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)),le=!/\s/.test(re)&&(!h.test(re)||/\s/.test(ae)||h.test(ae)),te=null,Q=null;if(me%2&&(!I.em&&Oe&&(he==="*"||!le||h.test(re))?te=!0:I.em==he&&le&&(he==="*"||!Oe||h.test(ae))&&(te=!1)),me>1&&(!I.strong&&Oe&&(he==="*"||!le||h.test(re))?Q=!0:I.strong==he&&le&&(he==="*"||!Oe||h.test(ae))&&(Q=!1)),Q!=null||te!=null){O.highlightFormatting&&(I.formatting=te==null?"strong":Q==null?"em":"strong em"),te===!0&&(I.em=he),Q===!0&&(I.strong=he);var be=x(I);return te===!1&&(I.em=!1),Q===!1&&(I.strong=!1),be}}else if(he===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return x(I);F.backUp(1)}if(O.strikethrough){if(he==="~"&&F.eatWhile(he)){if(I.strikethrough){O.highlightFormatting&&(I.formatting="strikethrough");var be=x(I);return I.strikethrough=!1,be}else if(F.match(/^[^\s]/,!1))return I.strikethrough=!0,O.highlightFormatting&&(I.formatting="strikethrough"),x(I)}else if(he===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return x(I);F.backUp(2)}}if(O.emoji&&he===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){I.emoji=!0,O.highlightFormatting&&(I.formatting="emoji");var J=x(I);return I.emoji=!1,J}return he===" "&&(F.match(/^ +$/,!1)?I.trailingSpace++:I.trailingSpace&&(I.trailingSpaceNewLine=!0)),x(I)}function T(F,I){var K=F.next();if(K===">"){I.f=I.inline=v,O.highlightFormatting&&(I.formatting="link");var ee=x(I);return ee?ee+=" ":ee="",ee+A.linkInline}return F.match(/^[^>]+/,!0),A.linkInline}function U(F,I){if(F.eatSpace())return null;var K=F.next();return K==="("||K==="["?(I.f=I.inline=N(K==="("?")":"]"),O.highlightFormatting&&(I.formatting="link-string"),I.linkHref=!0,x(I)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(I,K){var ee=I.next();if(ee===F){K.f=K.inline=v,O.highlightFormatting&&(K.formatting="link-string");var he=x(K);return K.linkHref=!1,he}return I.match(L[F]),K.linkHref=!0,x(K)}}function V(F,I){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(I.f=H,F.next(),O.highlightFormatting&&(I.formatting="link"),I.linkText=!0,x(I)):s(F,I,v)}function H(F,I){if(F.match(/^\]:/,!0)){I.f=I.inline=D,O.highlightFormatting&&(I.formatting="link");var K=x(I);return I.linkText=!1,K}return F.match(/^([^\]\\]|\\.)+/,!0),A.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=v,A.linkHref+" url")}var W={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:v,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&&M.copyState(b,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?M.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!=P)){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==P?{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==P&&b.indent?b.indent(F.htmlState,I,K):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,I,K):M.Pass},blankLine:E,getType:x,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return W},"xml"),M.defineMIME("text/markdown","markdown"),M.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 M=o("E7E6"),g=o.n(M);o.d(z,"w",function(){return g.a});var O=o("/GNS"),b=o.n(O);o.d(z,"v",function(){return b.a});var y=o("FOrL"),C=o.n(y);o.d(z,"q",function(){return C.a});var A=o("HpTS"),m=o.n(A);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"),l=o.n(a);o.d(z,"l",function(){return l.a});var n=o("GABl"),i=o.n(n);o.d(z,"e",function(){return i.a});var r=o("onxn"),c=o.n(r);o.d(z,"n",function(){return c.a});var h=o("nKGa"),d=o.n(h);o.d(z,"m",function(){return d.a});var s=o("4qgm"),u=o.n(s);o.d(z,"y",function(){return u.a});var w=o("JeFH"),E=o.n(w);o.d(z,"b",function(){return E.a});var _=o("ji0R"),P=o.n(_);o.d(z,"i",function(){return P.a});var R=o("W6BS"),x=o.n(R);o.d(z,"z",function(){return x.a});var S=o("kPYp"),v=o.n(S);o.d(z,"A",function(){return v.a});var T=o("nukY"),U=o.n(T),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),Se=o("8/bI"),Te=o.n(Se);o.d(z,"j",function(){return Te.a});var ce=o("JWDV"),be=o.n(ce),ye=o("Xsq0"),ue=o.n(ye);o.d(z,"p",function(){return ue.a});var se=o("Ohmc"),$=o.n(se);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 le=o("cRFk"),te=o.n(le);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"),Je=o.n(Ae);o.d(z,"s",function(){return Je.a});var tt=o("A/g1"),ut=o.n(tt);o.d(z,"f",function(){return ut.a});var ft=o("Nmxd"),vt=o.n(ft);o.d(z,"g",function(){return vt.a});var _t=o("5D2P"),Ve=o.n(_t);o.d(z,"h",function(){return Ve.a});var je=o("djh8"),ht=o.n(je),Bt=o("Jq4h"),Et=o.n(Bt)},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,M){function g(y,C){if(!o[y]){if(!z[y]){var A=typeof require=="function"&&require;if(!C&&A)return require(y,!0);if(O)return O(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,M)}return o[y].exports}for(var O=typeof require=="function"&&require,b=0;b=0?le.splice(_t,1):le.push(vt),me({type:ee.SELECTEDIDS,payload:Object(e.a)(le)})}function ut(){le.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Te(le,be),me({type:ee.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var ft=Q>te*10;return x.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},x.a.createElement(K,{onSearch:Ae,schools:ae}),J?x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{className:"flexd-table-header mt20"},x.a.createElement(D.f,null,x.a.createElement(g.a,{pagination:!1,dataSource:I,columns:_e}))),x.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},x.a.createElement(L.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:Je,hasMore:ft,useWindow:!1},x.a.createElement(D.f,null,x.a.createElement(g.a,{loading:Oe,showHeader:!1,pagination:!1,dataSource:re,columns:_e,onRow:function(_t){return{onClick:function(je){_t.added!==1&&tt(_t.numid)}}}})))),x.a.createElement("div",{className:"flex-container flex-end"},x.a.createElement(i.a,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:ce},"\u53D6\u6D88"),x.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:ut},"\u786E\u5B9A"))):x.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},x.a.createElement("img",{src:V.a,width:"100",alt:""}),x.a.createElement("br",null),x.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 M=o("rePB"),g=o("ODXe"),O=o("Ff2n"),b=o("VTBJ"),y=o("q1tI"),C=o("TSYQ"),A=o.n(C),m=o("Zm9Q"),e=o("6cGi"),f=o("KQm4"),a=o("xEkU"),l=o.n(a),n=o("t23M");function i(Ze){var dt=Object(y.useRef)(),yt=Object(y.useRef)(!1);function nt(){for(var Me=arguments.length,Xe=new Array(Me),Ie=0;IeMt&&(ln=Mt-pn),Object(y.useMemo)(function(){if(!Xe.length)return[0,0];for(var dn=Xe.length,cn=dn,Fn=0;Fnrt+ln){cn=Fn-1;break}}for(var Ur=0,Pr=dn-1;Pr>=0;Pr-=1){var Qr=Ze.get(Xe[Pr].key)||w;if(Qr[mt]1&&arguments[1]!==void 0?arguments[1]:!1,nt=dt&&typeof dt.getBoundingClientRect=="function"&&dt.getBoundingClientRect().width;if(nt){if(yt){var Me=getComputedStyle(dt),Xe=Me.marginLeft,Ie=Me.marginRight;nt+=+Xe.replace("px","")+ +Ie.replace("px","")}nt=+nt.toFixed(6)}return nt||0},_e=function(dt,yt,nt){dt&&Object(H.a)(dt.style)==="object"&&(dt.style[yt]=nt)},Ae=function(){return re.any},Je=o("bdgK"),tt=o("i8i4"),ut=o.n(tt),ft=o("wgJM"),vt=o("l4aY"),_t=o("m+aA"),Ve=o("c+Xe"),je=o("zT1h"),ht=o("QC+M");function Bt(Ze,dt,yt){return yt?Ze[0]===dt[0]:Ze[0]===dt[0]&&Ze[1]===dt[1]}function Et(Ze,dt,yt){var nt=Ze[dt]||{};return Object(b.a)(Object(b.a)({},nt),yt)}function Pt(Ze,dt,yt,nt){for(var Me=yt.points,Xe=Object.keys(Ze),Ie=0;Ie1&&arguments[1]!==void 0?arguments[1]:2;dt();var Xe=Object(ft.a)(function(){Me<=1?nt({isCanceled:function(){return Xe!==Ze.current}}):yt(nt,Me-1)});Ze.current=Xe}return y.useEffect(function(){return function(){dt()}},[]),[yt,dt]},Wn=[bt,Dt,It,ct],Kn=!1,Hn=!0;function fn(Ze){return Ze===It||Ze===ct}var lr=function(Ze,dt){var yt=y.useState(pt),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=vn(),et=Object(g.a)(Ie,2),$e=et[0],mt=et[1];function rt(){Xe(bt)}return on(function(){if(Me!==pt&&Me!==ct){var Mt=Wn.indexOf(Me),Vt=Wn[Mt+1],pn=dt(Me);pn===Kn?Xe(Vt):$e(function(ln){function dn(){if(ln.isCanceled())return;Xe(Vt)}pn===!0?dn():Promise.resolve(pn).then(dn)})}},[Ze,Me]),y.useEffect(function(){return function(){mt()}},[]),[rt,Me]},Zn=function(Ze){var dt=Object(y.useRef)(),yt=Object(y.useRef)(Ze);yt.current=Ze;var nt=y.useCallback(function(Ie){yt.current(Ie)},[]);function Me(Ie){Ie&&(Ie.removeEventListener(Ot,nt),Ie.removeEventListener(Kt,nt))}function Xe(Ie){dt.current&&dt.current!==Ie&&Me(dt.current),Ie&&Ie!==dt.current&&(Ie.addEventListener(Ot,nt),Ie.addEventListener(Kt,nt),dt.current=Ie)}return y.useEffect(function(){return function(){Me(dt.current)}},[]),[Xe,Me]};function cr(Ze,dt,yt,nt){var Me=nt.motionEnter,Xe=Me===void 0?!0:Me,Ie=nt.motionAppear,et=Ie===void 0?!0:Ie,$e=nt.motionLeave,mt=$e===void 0?!0:$e,rt=nt.motionDeadline,Mt=nt.motionLeaveImmediately,Vt=nt.onAppearPrepare,pn=nt.onEnterPrepare,ln=nt.onLeavePrepare,dn=nt.onAppearStart,cn=nt.onEnterStart,Fn=nt.onLeaveStart,Cn=nt.onAppearActive,Ur=nt.onEnterActive,Pr=nt.onLeaveActive,Qr=nt.onAppearEnd,Wr=nt.onEnterEnd,ta=nt.onLeaveEnd,zn=nt.onVisibleChanged,wr=Nt(),Gn=Object(g.a)(wr,2),bn=Gn[0],jn=Gn[1],Vr=Nt(at),ua=Object(g.a)(Vr,2),pr=ua[0],na=ua[1],Ca=Nt(null),ha=Object(g.a)(Ca,2),Sa=ha[0],Tr=ha[1],br=Object(y.useRef)(!1),Mr=Object(y.useRef)(null),tr=Object(y.useRef)(!1),pa=Object(y.useRef)(null);function xa(){var ja=yt();return ja||pa.current}var ba=Object(y.useRef)(!1);function Aa(ja){var Ma=xa();if(ja&&!ja.deadline&&ja.target!==Ma)return;var Za;pr===it&&ba.current?Za=Qr==null?void 0:Qr(Ma,ja):pr===Pe&&ba.current?Za=Wr==null?void 0:Wr(Ma,ja):pr===Qe&&ba.current&&(Za=ta==null?void 0:ta(Ma,ja)),Za!==!1&&!tr.current&&(na(at),Tr(null))}var ga=Zn(Aa),Na=Object(g.a)(ga,1),ka=Na[0],Fa=y.useMemo(function(){var ja,Ma,Za;switch(pr){case"appear":return ja={},Object(M.a)(ja,bt,Vt),Object(M.a)(ja,Dt,dn),Object(M.a)(ja,It,Cn),ja;case"enter":return Ma={},Object(M.a)(Ma,bt,pn),Object(M.a)(Ma,Dt,cn),Object(M.a)(Ma,It,Ur),Ma;case"leave":return Za={},Object(M.a)(Za,bt,ln),Object(M.a)(Za,Dt,Fn),Object(M.a)(Za,It,Pr),Za;default:return{}}},[pr]),ni=lr(pr,function(ja){if(ja===bt){var Ma=Fa[bt];return Ma?Ma(xa()):Kn}if(La in Fa){var Za;Tr(((Za=Fa[La])===null||Za===void 0?void 0:Za.call(Fa,xa(),null))||null)}return La===It&&(ka(xa()),rt>0&&(clearTimeout(Mr.current),Mr.current=setTimeout(function(){Aa({deadline:!0})},rt))),Hn}),Fi=Object(g.a)(ni,2),Ai=Fi[0],La=Fi[1],bi=fn(La);ba.current=bi,on(function(){jn(dt);var ja=br.current;if(br.current=!0,!Ze)return;var Ma;!ja&&dt&&et&&(Ma=it),ja&&dt&&Xe&&(Ma=Pe),(ja&&!dt&&mt||!ja&&Mt&&!dt&&mt)&&(Ma=Qe),Ma&&(na(Ma),Ai())},[dt]),Object(y.useEffect)(function(){(pr===it&&!et||pr===Pe&&!Xe||pr===Qe&&!mt)&&na(at)},[et,Xe,mt]),Object(y.useEffect)(function(){return function(){clearTimeout(Mr.current),tr.current=!0}},[]),Object(y.useEffect)(function(){bn!==void 0&&pr===at&&(zn==null||zn(bn))},[bn,pr]);var Si=Sa;return Fa[bt]&&La===Dt&&(Si=Object(b.a)({transition:"none"},Si)),[pr,La,Si,bn!=null?bn:dt]}var dr=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){return Object(P.a)(this,yt),dt.apply(this,arguments)}return Object(R.a)(yt,[{key:"render",value:function(){return this.props.children}}]),yt}(y.Component),Dr=dr;function hr(Ze){var dt=Ze;Object(H.a)(Ze)==="object"&&(dt=Ze.transitionSupport);function yt(Me){return!!(Me.motionName&&dt)}var nt=y.forwardRef(function(Me,Xe){var Ie=Me.visible,et=Ie===void 0?!0:Ie,$e=Me.removeOnLeave,mt=$e===void 0?!0:$e,rt=Me.forceRender,Mt=Me.children,Vt=Me.motionName,pn=Me.leavedClassName,ln=Me.eventProps,dn=yt(Me),cn=Object(y.useRef)(),Fn=Object(y.useRef)();function Cn(){try{return Object(_t.a)(cn.current||Fn.current)}catch(na){return null}}var Ur=cr(dn,et,Cn,Me),Pr=Object(g.a)(Ur,4),Qr=Pr[0],Wr=Pr[1],ta=Pr[2],zn=Pr[3],wr=y.useRef(zn);zn&&(wr.current=!0);var Gn=Object(y.useRef)(Xe);Gn.current=Xe;var bn=y.useCallback(function(na){cn.current=na,Object(Ve.b)(Gn.current,na)},[]),jn,Vr=Object(b.a)(Object(b.a)({},ln),{},{visible:et});if(!Mt)jn=null;else if(Qr===at||!yt(Me))zn?jn=Mt(Object(b.a)({},Vr),bn):!mt&&wr.current?jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{className:pn}),bn):rt?jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{style:{display:"none"}}),bn):jn=null;else{var ua,pr;Wr===bt?pr="prepare":fn(Wr)?pr="active":Wr===Dt&&(pr="start"),jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{className:A()(Fe(Vt,Qr),(ua={},Object(M.a)(ua,Fe(Vt,"".concat(Qr,"-").concat(pr)),pr),Object(M.a)(ua,Vt,typeof Vt=="string"),ua)),style:ta}),bn)}return y.createElement(Dr,{ref:Fn},jn)});return nt.displayName="CSSMotion",nt}var sn=hr(Qt),en="add",On="keep",Fr="remove",Or="removed";function xr(Ze){var dt;return Ze&&Object(H.a)(Ze)==="object"&&"key"in Ze?dt=Ze:dt={key:Ze},Object(b.a)(Object(b.a)({},dt),{},{key:String(dt.key)})}function fr(){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]:[],dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yt=[],nt=0,Me=dt.length,Xe=fr(Ze),Ie=fr(dt);Xe.forEach(function(mt){for(var rt=!1,Mt=nt;Mt1});return $e.forEach(function(mt){yt=yt.filter(function(rt){var Mt=rt.key,Vt=rt.status;return Mt!==mt||Vt!==Fr}),yt.forEach(function(rt){rt.key===mt&&(rt.status=On)})}),yt}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 dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,yt=function(nt){Object(S.a)(Xe,nt);var Me=Object(v.a)(Xe);function Xe(){var Ie;return Object(P.a)(this,Xe),Ie=Me.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function(et){Ie.setState(function($e){var mt=$e.keyEntities;return{keyEntities:mt.map(function(rt){return rt.key!==et?rt:Object(b.a)(Object(b.a)({},rt),{},{status:Or})})}})},Ie}return Object(R.a)(Xe,[{key:"render",value:function(){var et=this,$e=this.state.keyEntities,mt=this.props,rt=mt.component,Mt=mt.children,Vt=mt.onVisibleChanged,pn=Object(O.a)(mt,["component","children","onVisibleChanged"]),ln=rt||y.Fragment,dn={};return X.forEach(function(cn){dn[cn]=pn[cn],delete pn[cn]}),delete pn.keys,y.createElement(ln,pn,$e.map(function(cn){var Fn=cn.status,Cn=Object(O.a)(cn,["status"]),Ur=Fn===en||Fn===On;return y.createElement(dt,Object(_.a)({},dn,{key:Cn.key,visible:Ur,eventProps:Cn,onVisibleChanged:function(Qr){Vt==null||Vt(Qr,{key:Cn.key}),Qr||et.removeKey(Cn.key)}}),Mt)}))}}],[{key:"getDerivedStateFromProps",value:function(et,$e){var mt=et.keys,rt=$e.keyEntities,Mt=fr(mt),Vt=pe(rt,Mt);return{keyEntities:Vt.filter(function(pn){var ln=rt.find(function(dn){var cn=dn.key;return pn.key===cn});return!(ln&&ln.status===Or&&pn.status===Fr)})}}}]),Xe}(y.Component);return yt.defaultProps={component:"div"},yt}var oe=q(Qt),De=sn;function fe(Ze){var dt=Ze.prefixCls,yt=Ze.motion,nt=Ze.animation,Me=Ze.transitionName;return yt||(nt?{motionName:"".concat(dt,"-").concat(nt)}:Me?{motionName:Me}:null)}function ot(Ze){var dt=Ze.prefixCls,yt=Ze.visible,nt=Ze.zIndex,Me=Ze.mask,Xe=Ze.maskMotion,Ie=Ze.maskAnimation,et=Ze.maskTransitionName;if(!Me)return null;var $e={};return(Xe||et||Ie)&&($e=Object(b.a)({motionAppear:!0},fe({motion:Xe,prefixCls:dt,transitionName:et,animation:Ie}))),y.createElement(De,Object(_.a)({},$e,{visible:yt,removeOnLeave:!0}),function(mt){var rt=mt.className;return y.createElement("div",{style:{zIndex:nt},className:A()("".concat(dt,"-mask"),rt)})})}var Zt=o("9mu1"),Mn=o("o0o1"),Vn=o.n(Mn),qt=o("HaE+"),En=["measure","align",null,"motion"],un=function(Ze,dt){var yt=Object(y.useState)(null),nt=Object(g.a)(yt,2),Me=nt[0],Xe=nt[1],Ie=Object(y.useRef)(),et=Object(y.useRef)(!1);function $e(Mt){et.current||Xe(Mt)}function mt(){ft.a.cancel(Ie.current)}function rt(Mt){mt(),Ie.current=Object(ft.a)(function(){$e(function(Vt){switch(Me){case"align":return"motion";case"motion":return"stable";default:}return Vt}),Mt==null||Mt()})}return Object(y.useEffect)(function(){$e("measure")},[Ze]),Object(y.useEffect)(function(){switch(Me){case"measure":dt();break;default:}Me&&(Ie.current=Object(ft.a)(Object(qt.a)(Vn.a.mark(function Mt(){var Vt,pn;return Vn.a.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:Vt=En.indexOf(Me),pn=En[Vt+1],pn&&Vt!==-1&&$e(pn);case 3:case"end":return dn.stop()}},Mt)}))))},[Me]),Object(y.useEffect)(function(){return function(){et.current=!0,mt()}},[]),[Me,rt]},jr=function(Ze){var dt=y.useState({width:0,height:0}),yt=Object(g.a)(dt,2),nt=yt[0],Me=yt[1];function Xe(et){Me({width:et.offsetWidth,height:et.offsetHeight})}var Ie=y.useMemo(function(){var et={};if(Ze){var $e=nt.width,mt=nt.height;Ze.indexOf("height")!==-1&&mt?et.height=mt:Ze.indexOf("minHeight")!==-1&&mt&&(et.minHeight=mt),Ze.indexOf("width")!==-1&&$e?et.width=$e:Ze.indexOf("minWidth")!==-1&&$e&&(et.minWidth=$e)}return et},[Ze,nt]);return[Ie,Xe]},aa=y.forwardRef(function(Ze,dt){var yt=Ze.visible,nt=Ze.prefixCls,Me=Ze.className,Xe=Ze.style,Ie=Ze.children,et=Ze.zIndex,$e=Ze.stretch,mt=Ze.destroyPopupOnHide,rt=Ze.forceRender,Mt=Ze.align,Vt=Ze.point,pn=Ze.getRootDomNode,ln=Ze.getClassNameFromAlign,dn=Ze.onAlign,cn=Ze.onMouseEnter,Fn=Ze.onMouseLeave,Cn=Ze.onMouseDown,Ur=Ze.onTouchStart,Pr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useState)(),ta=Object(g.a)(Wr,2),zn=ta[0],wr=ta[1],Gn=jr($e),bn=Object(g.a)(Gn,2),jn=bn[0],Vr=bn[1];function ua(){$e&&Vr(pn())}var pr=un(yt,ua),na=Object(g.a)(pr,2),Ca=na[0],ha=na[1],Sa=Object(y.useRef)();function Tr(){return Vt||pn}function br(){var ga;(ga=Pr.current)===null||ga===void 0||ga.forceAlign()}function Mr(ga,Na){var ka=ln(Na);zn!==ka&&wr(ka),Ca==="align"&&(zn!==ka?Promise.resolve().then(function(){br()}):ha(function(){var Fa;(Fa=Sa.current)===null||Fa===void 0||Fa.call(Sa)}),dn==null||dn(ga,Na))}var tr=Object(b.a)({},fe(Ze));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ga){var Na=tr[ga];tr[ga]=function(ka,Fa){return ha(),Na==null?void 0:Na(ka,Fa)}});function pa(){return new Promise(function(ga){Sa.current=ga})}y.useEffect(function(){!tr.motionName&&Ca==="motion"&&ha()},[tr.motionName,Ca]),y.useImperativeHandle(dt,function(){return{forceAlign:br,getElement:function(){return Qr.current}}});var xa=Object(b.a)(Object(b.a)({},jn),{},{zIndex:et,opacity:Ca==="motion"||Ca==="stable"||!yt?void 0:0,pointerEvents:Ca==="stable"?void 0:"none"},Xe),ba=!0;(Mt==null?void 0:Mt.points)&&(Ca==="align"||Ca==="stable")&&(ba=!1);var Aa=Ie;return y.Children.count(Ie)>1&&(Aa=y.createElement("div",{className:"".concat(nt,"-content")},Ie)),y.createElement(De,Object(_.a)({visible:yt,ref:Qr,leavedClassName:"".concat(nt,"-hidden")},tr,{onAppearPrepare:pa,onEnterPrepare:pa,removeOnLeave:mt,forceRender:rt}),function(ga,Na){var ka=ga.className,Fa=ga.style,ni=A()(nt,Me,zn,ka);return y.createElement(Zt.a,{target:Tr(),key:"popup",ref:Pr,monitorWindowResize:!0,disabled:ba,align:Mt,onAlign:Mr},y.createElement("div",{ref:Na,className:ni,onMouseEnter:cn,onMouseLeave:Fn,onMouseDownCapture:Cn,onTouchStartCapture:Ur,style:Object(b.a)(Object(b.a)({},Fa),xa)},Aa))})});aa.displayName="PopupInner";var oa=aa,er=y.forwardRef(function(Ze,dt){var yt=Ze.prefixCls,nt=Ze.visible,Me=Ze.zIndex,Xe=Ze.children,Ie=Ze.mobile;Ie=Ie===void 0?{}:Ie;var et=Ie.popupClassName,$e=Ie.popupStyle,mt=Ie.popupMotion,rt=mt===void 0?{}:mt,Mt=Ie.popupRender,Vt=y.useRef();y.useImperativeHandle(dt,function(){return{forceAlign:function(){},getElement:function(){return Vt.current}}});var pn=Object(b.a)({zIndex:Me},$e),ln=Xe;return y.Children.count(Xe)>1&&(ln=y.createElement("div",{className:"".concat(yt,"-content")},Xe)),Mt&&(ln=Mt(ln)),y.createElement(De,Object(_.a)({visible:nt,ref:Vt,removeOnLeave:!0},rt),function(dn,cn){var Fn=dn.className,Cn=dn.style,Ur=A()(yt,et,Fn);return y.createElement("div",{ref:cn,className:Ur,style:Object(b.a)(Object(b.a)({},Cn),pn)},ln)})});er.displayName="MobilePopupInner";var Ba=er,Ea=["visible","mobile"],ca=y.forwardRef(function(Ze,dt){var yt=Ze.visible,nt=Ze.mobile,Me=Object(O.a)(Ze,Ea),Xe=Object(y.useState)(yt),Ie=Object(g.a)(Xe,2),et=Ie[0],$e=Ie[1],mt=Object(y.useState)(!1),rt=Object(g.a)(mt,2),Mt=rt[0],Vt=rt[1],pn=Object(b.a)(Object(b.a)({},Me),{},{visible:et});Object(y.useEffect)(function(){$e(yt),yt&&nt&&Vt(qe())},[yt,nt]);var ln=Mt?y.createElement(Ba,Object(_.a)({},pn,{mobile:nt,ref:dt})):y.createElement(oa,Object(_.a)({},pn,{ref:dt}));return y.createElement("div",null,y.createElement(ot,pn),ln)});ca.displayName="Popup";var Ka=ca,Ta=y.createContext(null),Ja=Ta;function Ua(){}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 dt=function(yt){Object(S.a)(Me,yt);var nt=Object(v.a)(Me);function Me(Xe){var Ie;Object(P.a)(this,Me),Ie=nt.call(this,Xe),Ie.popupRef=y.createRef(),Ie.triggerRef=y.createRef(),Ie.attachId=void 0,Ie.clickOutsideHandler=void 0,Ie.touchOutsideHandler=void 0,Ie.contextMenuOutsideHandler1=void 0,Ie.contextMenuOutsideHandler2=void 0,Ie.mouseDownTimeout=void 0,Ie.focusTime=void 0,Ie.preClickTime=void 0,Ie.preTouchTime=void 0,Ie.delayTimer=void 0,Ie.hasPopupMouseDown=void 0,Ie.onMouseEnter=function($e){var mt=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",$e),Ie.delaySetPopupVisible(!0,mt,mt?null:$e)},Ie.onMouseMove=function($e){Ie.fireEvents("onMouseMove",$e),Ie.setPoint($e)},Ie.onMouseLeave=function($e){Ie.fireEvents("onMouseLeave",$e),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function($e){var mt;if($e.relatedTarget&&!$e.relatedTarget.setTimeout&&Object(vt.a)((mt=Ie.popupRef.current)===null||mt===void 0?void 0:mt.getElement(),$e.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function($e){Ie.fireEvents("onFocus",$e),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function($e){Ie.fireEvents("onMouseDown",$e),Ie.preClickTime=Date.now()},Ie.onTouchStart=function($e){Ie.fireEvents("onTouchStart",$e),Ie.preTouchTime=Date.now()},Ie.onBlur=function($e){Ie.fireEvents("onBlur",$e),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function($e){$e.preventDefault(),Ie.fireEvents("onContextMenu",$e),Ie.setPopupVisible(!0,$e)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function($e){if(Ie.fireEvents("onClick",$e),Ie.focusTime){var mt;if(Ie.preClickTime&&Ie.preTouchTime?mt=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?mt=Ie.preClickTime:Ie.preTouchTime&&(mt=Ie.preTouchTime),Math.abs(mt-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&$e&&$e.preventDefault&&$e.preventDefault();var rt=!Ie.state.popupVisible;(Ie.isClickToHide()&&!rt||rt&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,$e)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var $e;($e=Ie.context).onPopupMouseDown.apply($e,arguments)}},Ie.onDocumentClick=function($e){if(Ie.props.mask&&!Ie.props.maskClosable)return;var mt=$e.target,rt=Ie.getRootDomNode(),Mt=Ie.getPopupDomNode();(!Object(vt.a)(rt,mt)||Ie.isContextMenuOnly())&&!Object(vt.a)(Mt,mt)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var $e=Ie.props.getTriggerDOMNode;if($e)return $e(Ie.triggerRef.current);try{var mt=Object(_t.a)(Ie.triggerRef.current);if(mt)return mt}catch(rt){}return ut.a.findDOMNode(Object(x.a)(Ie))},Ie.getPopupClassNameFromAlign=function($e){var mt=[],rt=Ie.props,Mt=rt.popupPlacement,Vt=rt.builtinPlacements,pn=rt.prefixCls,ln=rt.alignPoint,dn=rt.getPopupClassNameFromAlign;return Mt&&Vt&&mt.push(Pt(Vt,pn,$e,ln)),dn&&mt.push(dn($e)),mt.join(" ")},Ie.getComponent=function(){var $e=Ie.props,mt=$e.prefixCls,rt=$e.destroyPopupOnHide,Mt=$e.popupClassName,Vt=$e.onPopupAlign,pn=$e.popupMotion,ln=$e.popupAnimation,dn=$e.popupTransitionName,cn=$e.popupStyle,Fn=$e.mask,Cn=$e.maskAnimation,Ur=$e.maskTransitionName,Pr=$e.maskMotion,Qr=$e.zIndex,Wr=$e.popup,ta=$e.stretch,zn=$e.alignPoint,wr=$e.mobile,Gn=$e.forceRender,bn=Ie.state,jn=bn.popupVisible,Vr=bn.point,ua=Ie.getPopupAlign(),pr={};return Ie.isMouseEnterToShow()&&(pr.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(pr.onMouseLeave=Ie.onPopupMouseLeave),pr.onMouseDown=Ie.onPopupMouseDown,pr.onTouchStart=Ie.onPopupMouseDown,y.createElement(Ka,Object(_.a)({prefixCls:mt,destroyPopupOnHide:rt,visible:jn,point:zn&&Vr,className:Mt,align:ua,onAlign:Vt,animation:ln,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},pr,{stretch:ta,getRootDomNode:Ie.getRootDomNode,style:cn,mask:Fn,zIndex:Qr,transitionName:dn,maskAnimation:Cn,maskTransitionName:Ur,maskMotion:Pr,ref:Ie.popupRef,motion:pn,mobile:wr,forceRender:Gn}),typeof Wr=="function"?Wr():Wr)},Ie.attachParent=function($e){ft.a.cancel(Ie.attachId);var mt=Ie.props,rt=mt.getPopupContainer,Mt=mt.getDocument,Vt=Ie.getRootDomNode(),pn;rt?(Vt||rt.length===0)&&(pn=rt(Vt)):pn=Mt(Ie.getRootDomNode()).body,pn?pn.appendChild($e):Ie.attachId=Object(ft.a)(function(){Ie.attachParent($e)})},Ie.getContainer=function(){var $e=Ie.props.getDocument,mt=$e(Ie.getRootDomNode()).createElement("div");return mt.style.position="absolute",mt.style.top="0",mt.style.left="0",mt.style.width="100%",Ie.attachParent(mt),mt},Ie.setPoint=function($e){var mt=Ie.props.alignPoint;if(!mt||!$e)return;Ie.setState({point:{pageX:$e.pageX,pageY:$e.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)},Ie.triggerContextValue={onPopupMouseDown:Ie.onPopupMouseDown};var et;return"popupVisible"in Xe?et=!!Xe.popupVisible:et=!!Xe.defaultPopupVisible,Ie.state={prevPopupVisible:et,popupVisible:et},fa.forEach(function($e){Ie["fire".concat($e)]=function(mt){Ie.fireEvents($e,mt)}}),Ie}return Object(R.a)(Me,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,et=this.state;if(et.popupVisible){var $e;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&($e=Ie.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(je.a)($e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||($e=$e||Ie.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(je.a)($e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&($e=$e||Ie.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(je.a)($e,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(je.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ft.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Ie;return((Ie=this.popupRef.current)===null||Ie===void 0?void 0:Ie.getElement())||null}},{key:"getPopupAlign",value:function(){var Ie=this.props,et=Ie.popupPlacement,$e=Ie.popupAlign,mt=Ie.builtinPlacements;return et&&mt?Et(mt,et,$e):$e}},{key:"setPopupVisible",value:function(Ie,et){var $e=this.props.alignPoint,mt=this.state.popupVisible;this.clearDelayTimer(),mt!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:mt}),this.props.onPopupVisibleChange(Ie)),$e&&et&&Ie&&this.setPoint(et)}},{key:"delaySetPopupVisible",value:function(Ie,et,$e){var mt=this,rt=et*1e3;if(this.clearDelayTimer(),rt){var Mt=$e?{pageX:$e.pageX,pageY:$e.pageY}:null;this.delayTimer=window.setTimeout(function(){mt.setPopupVisible(Ie,Mt),mt.clearDelayTimer()},rt)}else this.setPopupVisible(Ie,$e)}},{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(Ie){var et=this.props.children.props,$e=this.props;return et[Ie]&&$e[Ie]?this["fire".concat(Ie)]:et[Ie]||$e[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("click")!==-1||$e.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Ie=this.props.action;return Ie==="contextMenu"||Ie.length===1&&Ie[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("contextMenu")!==-1||$e.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("click")!==-1||$e.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("hover")!==-1||$e.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("hover")!==-1||$e.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.showAction;return et.indexOf("focus")!==-1||$e.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,et=Ie.action,$e=Ie.hideAction;return et.indexOf("focus")!==-1||$e.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Ie;(Ie=this.popupRef.current)===null||Ie===void 0||Ie.forceAlign()}}},{key:"fireEvents",value:function(Ie,et){var $e=this.props.children.props[Ie];$e&&$e(et);var mt=this.props[Ie];mt&&mt(et)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,et=this.props,$e=et.children,mt=et.forceRender,rt=et.alignPoint,Mt=et.className,Vt=et.autoDestroy,pn=y.Children.only($e),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 dn=A()(pn&&pn.props&&pn.props.className,Mt);dn&&(ln.className=dn);var cn=Object(b.a)({},ln);Object(Ve.c)(pn)&&(cn.ref=Object(Ve.a)(this.triggerRef,pn.ref));var Fn=y.cloneElement(pn,cn),Cn;return(Ie||this.popupRef.current||mt)&&(Cn=y.createElement(Ze,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&Vt&&(Cn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},Fn,Cn)}}],[{key:"getDerivedStateFromProps",value:function(Ie,et){var $e=Ie.popupVisible,mt={};return $e!==void 0&&et.popupVisible!==$e&&(mt.popupVisible=$e,mt.prevPopupVisible=et.popupVisible),mt}}]),Me}(y.Component);return dt.contextType=Ja,dt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:oi,onPopupVisibleChange:Ua,afterPopupVisibleChange:Ua,onPopupAlign:Ua,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},dt}var la=ma(ht.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,Ht=0,Lt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Xt=function(dt,yt,nt){var Me=le(yt),Xe=dt.getState();dt.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},Xe.defaultActiveFirst),{},Object(M.a)({},Me,nt))})},rn=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(nt){var Me;Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onDestroy=function(rt){Me.props.onDestroy(rt)},Me.onKeyDown=function(rt){var Mt=rt.keyCode,Vt=Me.menuInstance,pn=Me.props.store,ln=Me.getVisible();if(Mt===c.a.ENTER)return Me.onTitleClick(rt),Xt(pn,Me.props.eventKey,!0),!0;if(Mt===c.a.RIGHT)return ln?Vt.onKeyDown(rt):(Me.triggerOpenChange(!0),Xt(pn,Me.props.eventKey,!0)),!0;if(Mt===c.a.LEFT){var dn;if(ln)dn=Vt.onKeyDown(rt);else return;return dn||(Me.triggerOpenChange(!1),dn=!0),dn}return ln&&(Mt===c.a.UP||Mt===c.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,pn=Mt.onMouseEnter,ln=Mt.store;Xt(ln,Me.props.eventKey,!1),pn({key:Vt,domEvent:rt})},Me.onMouseLeave=function(rt){var Mt=Me.props,Vt=Mt.parentMenu,pn=Mt.eventKey,ln=Mt.onMouseLeave;Vt.subMenuInstance=Object(x.a)(Me),ln({key:pn,domEvent:rt})},Me.onTitleMouseEnter=function(rt){var Mt=Me.props,Vt=Mt.eventKey,pn=Mt.onItemHover,ln=Mt.onTitleMouseEnter;pn({key:Vt,hover:!0}),ln({key:Vt,domEvent:rt})},Me.onTitleMouseLeave=function(rt){var Mt=Me.props,Vt=Mt.parentMenu,pn=Mt.eventKey,ln=Mt.onItemHover,dn=Mt.onTitleMouseLeave;Vt.subMenuInstance=Object(x.a)(Me),ln({key:pn,hover:!1}),dn({key:pn,domEvent:rt})},Me.onTitleClick=function(rt){var Mt=Object(x.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,pn=function(){Me.onOpenChange({key:Vt,item:Object(x.a)(Me),trigger:Mt,open:rt})};Mt==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){pn()},0):pn()},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(x.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(x.a)(Me),subMenuCloseDelay:Mt.subMenuCloseDelay,forceSubMenuRender:Mt.forceSubMenuRender,triggerSubMenuAction:Mt.triggerSubMenuAction,builtinPlacements:Mt.builtinPlacements,defaultActiveFirst:Mt.store.getState().defaultActiveFirst[le(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(x.a)(Me),pn=Vt.haveRendered,ln=Me.props,dn=ln.motion,cn=ln.rootPrefixCls,Fn=Object(b.a)(Object(b.a)({},dn),{},{leavedClassName:"".concat(cn,"-hidden"),removeOnLeave:!1,motionAppear:pn||!Mt||rt!=="inline"});return Fn};var Xe=nt.store,Ie=nt.eventKey,et=Xe.getState(),$e=et.defaultActiveFirst;Me.isRootMenu=!1;var mt=!1;return $e&&(mt=$e[Ie]),Xt(Xe,Ie,mt),Me.state={mode:nt.mode,isOpen:nt.isOpen},Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Xe=this.props,Ie=Xe.mode,et=Xe.parentMenu,$e=Xe.manualRef,mt=Xe.isOpen,rt=function(){Me.setState({mode:Ie,isOpen:mt})},Mt=mt!==this.state.isOpen,Vt=Ie!==this.state.mode;if((Vt||Mt)&&(ft.a.cancel(this.updateStateRaf),Vt?this.updateStateRaf=Object(ft.a)(rt):rt()),$e&&$e(this),Ie!=="horizontal"||!(et==null?void 0:et.isRootMenu)||!mt)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Xe=Me.onDestroy,Ie=Me.eventKey;Xe&&Xe(Ie),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ft.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Me,Xe){var Ie=this.getBaseProps();return y.createElement(Yt,Object(_.a)({},Ie,{id:this.internalMenuId,className:Me,style:Xe}),this.props.children)}},{key:"renderChildren",value:function(){var Me=this,Xe=this.getBaseProps(),Ie=Xe.mode,et=Xe.visible,$e=Xe.forceSubMenuRender,mt=Xe.direction,rt=this.getMotion(Ie,et);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||et||$e,!this.haveOpened)return y.createElement("div",null);var Mt=A()("".concat(Xe.prefixCls,"-sub"),Object(M.a)({},"".concat(Xe.prefixCls,"-rtl"),mt==="rtl"));return this.isInlineMode()?y.createElement(De,Object(_.a)({visible:Xe.visible,forceRender:$e},rt),function(Vt){var pn=Vt.className,ln=Vt.style,dn=A()(Mt,pn);return Me.renderPopupMenu(dn,ln)}):this.renderPopupMenu(Mt)}},{key:"render",value:function(){var Me,Xe,Ie,et=Object(b.a)({},this.props),$e=this.getVisible(),mt=this.getPrefixCls(),rt=this.isInlineMode(),Mt=this.getMode(),Vt=A()(mt,"".concat(mt,"-").concat(Mt),(Me={},Object(M.a)(Me,et.className,!!et.className),Object(M.a)(Me,this.getOpenClassName(),$e),Object(M.a)(Me,this.getActiveClassName(),et.active||$e&&!rt),Object(M.a)(Me,this.getDisabledClassName(),et.disabled),Object(M.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||(et.eventKey?this.internalMenuId="".concat(et.eventKey,"$Menu"):(Ht+=1,this.internalMenuId="$__$".concat(Ht,"$Menu")));var pn={},ln={},dn={};et.disabled||(pn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ln={onClick:this.onTitleClick},dn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var cn={},Fn=et.direction,Cn=Fn==="rtl";rt&&(Cn?cn.paddingRight=et.inlineIndent*et.level:cn.paddingLeft=et.inlineIndent*et.level);var Ur={};this.getVisible()&&(Ur={"aria-owns":this.internalMenuId});var Pr=null;Mt!=="horizontal"&&(Pr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Pr=y.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var Qr=y.createElement("div",Object(_.a)({ref:this.saveSubMenuTitle,style:cn,className:"".concat(mt,"-title"),role:"button"},dn,ln,{"aria-expanded":$e},Ur,{"aria-haspopup":"true",title:typeof et.title=="string"?et.title:void 0}),et.title,Pr||y.createElement("i",{className:"".concat(mt,"-arrow")})),Wr=this.renderChildren(),ta=((Xe=et.parentMenu)===null||Xe===void 0?void 0:Xe.isRootMenu)?et.parentMenu.props.getPopupContainer:function(Tr){return Tr.parentNode},zn=Lt[Mt],wr=et.popupOffset?{offset:et.popupOffset}:{},Gn=A()((Ie={},Object(M.a)(Ie,et.popupClassName,et.popupClassName&&!rt),Object(M.a)(Ie,"".concat(mt,"-rtl"),Cn),Ie)),bn=et.disabled,jn=et.triggerSubMenuAction,Vr=et.subMenuOpenDelay,ua=et.forceSubMenuRender,pr=et.subMenuCloseDelay,na=et.builtinPlacements;J.forEach(function(Tr){return delete et[Tr]}),delete et.onClick;var Ca=Cn?Object(b.a)(Object(b.a)({},Rt),na):Object(b.a)(Object(b.a)({},lt),na);delete et.direction;var ha=this.getBaseProps(),Sa=rt?null:this.getMotion(ha.mode,ha.visible);return y.createElement("li",Object(_.a)({},et,pn,{className:Vt,role:"menuitem"}),y.createElement(la,{prefixCls:mt,popupClassName:A()("".concat(mt,"-popup"),Gn),getPopupContainer:ta,builtinPlacements:Ca,popupPlacement:zn,popupVisible:rt?!1:$e,popupAlign:wr,popup:rt?null:Wr,action:bn||rt?[]:[jn],mouseEnterDelay:Vr,mouseLeaveDelay:pr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ua,popupMotion:Sa},Qr),rt?Wr:null)}}]),yt}(y.Component);rn.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var xn=Object(T.b)(function(Ze,dt){var yt=Ze.openKeys,nt=Ze.activeKey,Me=Ze.selectedKeys,Xe=dt.eventKey,Ie=dt.subMenuKey;return{isOpen:yt.indexOf(Xe)>-1,active:nt[Ie]===Xe,selectedKeys:Me}})(rn);xn.isSubMenu=!0;var gn=xn,Nn="menuitem-overflowed",An=.5,an=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.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,Xe=nt.childRef.current;return Xe?[].slice.call(Xe.children).filter(function(Ie){return Ie.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Me,Xe,Ie){var et=nt.props,$e=et.overflowedIndicator,mt=et.level,rt=et.mode,Mt=et.prefixCls,Vt=et.theme;if(mt!==1||rt!=="horizontal")return null;var pn=nt.props.children[0],ln=pn.props,dn=ln.children,cn=ln.title,Fn=ln.style,Cn=Object(O.a)(ln,["children","title","style"]),Ur=Object(b.a)({},Fn),Pr="".concat(Me,"-overflowed-indicator"),Qr="".concat(Me,"-overflowed-indicator");Xe.length===0&&Ie!==!0?Ur=Object(b.a)(Object(b.a)({},Ur),{},{display:"none"}):Ie&&(Ur=Object(b.a)(Object(b.a)({},Ur),{},{visibility:"hidden",position:"absolute"}),Pr="".concat(Pr,"-placeholder"),Qr="".concat(Qr,"-placeholder"));var Wr=Vt?"".concat(Mt,"-").concat(Vt):"",ta={};return J.forEach(function(zn){Cn[zn]!==void 0&&(ta[zn]=Cn[zn])}),y.createElement(gn,Object(_.a)({title:$e,className:"".concat(Mt,"-overflowed-submenu"),popupClassName:Wr},ta,{key:Pr,eventKey:Qr,disabled:!1,style:Ur}),Xe)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Xe=Me.children;if(!Xe||Xe.length===0)return;var Ie=Me.children[Xe.length-1];_e(Ie,"display","inline-block");var et=nt.getMenuItemNodes(),$e=et.filter(function(mt){return mt.className.split(" ").indexOf(Nn)>=0});$e.forEach(function(mt){_e(mt,"display","inline-block")}),nt.menuItemSizes=et.map(function(mt){return ve(mt,!0)}),$e.forEach(function(mt){_e(mt,"display","none")}),nt.overflowedIndicatorWidth=ve(Me.children[Me.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(mt,rt){return mt+rt},0),nt.handleResize(),_e(Ie,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Xe=ve(Me);nt.overflowedItems=[];var Ie=0,et;nt.originalTotalWidth>Xe+An&&(et=-1,nt.menuItemSizes.forEach(function($e){Ie+=$e,Ie+nt.overflowedIndicatorWidth<=Xe&&(et+=1)})),nt.setState({lastVisibleIndex:et})},nt}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Xe=this.childRef.current;if(!Xe)return;this.resizeObserver=new Je.default(function(Ie){Ie.forEach(function(){var et=Me.cancelFrameId;cancelAnimationFrame(et),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Xe.children).concat(Xe).forEach(function(Ie){Me.resizeObserver.observe(Ie)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Xe.children).concat(Xe).forEach(function(Ie){Me.resizeObserver.observe(Ie)}),Me.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(Me){var Xe=this,Ie=this.state.lastVisibleIndex;return(Me||[]).reduce(function(et,$e,mt){var rt=$e;if(Xe.props.mode==="horizontal"){var Mt=Xe.getOverflowedSubMenuItem($e.props.eventKey,[]);Ie!==void 0&&Xe.props.className.indexOf("".concat(Xe.props.prefixCls,"-root"))!==-1&&(mt>Ie&&(rt=y.cloneElement($e,{style:{display:"none"},eventKey:"".concat($e.props.eventKey,"-hidden"),className:"".concat(Nn)})),mt===Ie+1&&(Xe.overflowedItems=Me.slice(Ie+1).map(function(pn){return y.cloneElement(pn,{key:pn.props.eventKey,mode:"vertical-left"})}),Mt=Xe.getOverflowedSubMenuItem($e.props.eventKey,Xe.overflowedItems)));var Vt=[].concat(Object(f.a)(et),[Mt,rt]);return mt===Me.length-1&&Vt.push(Xe.getOverflowedSubMenuItem($e.props.eventKey,[],!0)),Vt}return[].concat(Object(f.a)(et),[rt])},[])}},{key:"render",value:function(){var Me=this.props,Xe=Me.visible,Ie=Me.prefixCls,et=Me.overflowedIndicator,$e=Me.mode,mt=Me.level,rt=Me.tag,Mt=Me.children,Vt=Me.theme,pn=Object(O.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ln=rt;return y.createElement(ln,Object(_.a)({ref:this.childRef},pn),this.renderChildren(Mt))}}]),yt}(y.Component);an.defaultProps={tag:"div",className:""};var Pn=an;function yn(Ze){return Ze.length?Ze.every(function(dt){return!!dt.props.disabled}):!0}function kn(Ze,dt,yt){var nt=Ze.getState();Ze.setState({activeKey:Object(b.a)(Object(b.a)({},nt.activeKey),{},Object(M.a)({},dt,yt))})}function Rn(Ze){return Ze.eventKey||"0-menu-"}function Yn(Ze,dt){var yt=dt,nt=Ze.children,Me=Ze.eventKey;if(yt){var Xe;if(te(nt,function(Ie,et){Ie&&Ie.props&&!Ie.props.disabled&&yt===Oe(Ie,Me,et)&&(Xe=!0)}),Xe)return yt}return yt=null,Ze.defaultActiveFirst&&te(nt,function(Ie,et){!yt&&Ie&&!Ie.props.disabled&&(yt=Oe(Ie,Me,et))}),yt}function mr(Ze){if(!Ze)return;var dt=this.instanceArray.indexOf(Ze);dt!==-1?this.instanceArray[dt]=Ze:this.instanceArray.push(Ze)}var Br=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(nt){var Me;return Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onKeyDown=function(Xe,Ie){var et=Xe.keyCode,$e;if(Me.getFlatInstanceArray().forEach(function(rt){rt&&rt.props.active&&rt.onKeyDown&&($e=rt.onKeyDown(Xe))}),$e)return 1;var mt=null;return(et===c.a.UP||et===c.a.DOWN)&&(mt=Me.step(et===c.a.UP?-1:1)),mt?(Xe.preventDefault(),kn(Me.props.store,Rn(Me.props),mt.props.eventKey),typeof Ie=="function"&&Ie(mt),1):void 0},Me.onItemHover=function(Xe){var Ie=Xe.key,et=Xe.hover;kn(Me.props.store,Rn(Me.props),et?Ie:null)},Me.onDeselect=function(Xe){Me.props.onDeselect(Xe)},Me.onSelect=function(Xe){Me.props.onSelect(Xe)},Me.onClick=function(Xe){Me.props.onClick(Xe)},Me.onOpenChange=function(Xe){Me.props.onOpenChange(Xe)},Me.onDestroy=function(Xe){Me.props.onDestroy(Xe)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Xe){var Ie=Me.getFlatInstanceArray(),et=Me.props.store.getState().activeKey[Rn(Me.props)],$e=Ie.length;if(!$e)return null;Xe<0&&(Ie=Ie.concat().reverse());var mt=-1;if(Ie.every(function(pn,ln){return pn&&pn.props.eventKey===et?(mt=ln,!1):!0}),!Me.props.defaultActiveFirst&&mt!==-1&&yn(Ie.slice(mt,$e-1)))return;var rt=(mt+1)%$e,Mt=rt;do{var Vt=Ie[Mt];if(!Vt||Vt.props.disabled)Mt=(Mt+1)%$e;else return Vt}while(Mt!==rt);return null},Me.renderCommonMenuItem=function(Xe,Ie,et){var $e=Me.props.store.getState(),mt=Object(x.a)(Me),rt=mt.props,Mt=Oe(Xe,rt.eventKey,Ie),Vt=Xe.props;if(!Vt||typeof Xe.type=="string")return Xe;var pn=Mt===$e.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:Ie,parentMenu:rt.parentMenu,manualRef:Vt.disabled?void 0:Object(L.a)(Xe.ref,mr.bind(Object(x.a)(Me))),eventKey:Mt,active:!Vt.disabled&&pn,multiple:rt.multiple,onClick:function(cn){(Vt.onClick||ae)(cn),Me.onClick(cn)},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},et),{},{direction:rt.direction});return(rt.mode==="inline"||Ae())&&(ln.triggerSubMenuAction="click"),y.cloneElement(Xe,Object(b.a)(Object(b.a)({},ln),{},{key:Mt||Ie}))},Me.renderMenuItem=function(Xe,Ie,et){if(!Xe)return null;var $e=Me.props.store.getState(),mt={openKeys:$e.openKeys,selectedKeys:$e.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:et};return Me.renderCommonMenuItem(Xe,Ie,mt)},nt.store.setState({activeKey:Object(b.a)(Object(b.a)({},nt.store.getState().activeKey),{},Object(M.a)({},nt.eventKey,Yn(nt,nt.activeKey)))}),Me.instanceArray=[],Me}return Object(R.a)(yt,[{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 Xe=this.props,Ie="activeKey"in Xe?Xe.activeKey:Xe.store.getState().activeKey[Rn(Xe)],et=Yn(Xe,Ie);if(et!==Ie)kn(Xe.store,Rn(Xe),et);else if("activeKey"in Me){var $e=Yn(Me,Me.activeKey);et!==$e&&kn(Xe.store,Rn(Xe),et)}}},{key:"render",value:function(){var Me=this,Xe=Object(_.a)({},this.props);this.instanceArray=[];var Ie=A()(Xe.prefixCls,Xe.className,"".concat(Xe.prefixCls,"-").concat(Xe.mode)),et={className:Ie,role:Xe.role||"menu"};Xe.id&&(et.id=Xe.id),Xe.focusable&&(et.tabIndex=0,et.onKeyDown=this.onKeyDown);var $e=Xe.prefixCls,mt=Xe.eventKey,rt=Xe.visible,Mt=Xe.level,Vt=Xe.mode,pn=Xe.overflowedIndicator,ln=Xe.theme;return J.forEach(function(dn){return delete Xe[dn]}),delete Xe.onClick,y.createElement(Pn,Object(_.a)({},Xe,{prefixCls:$e,mode:Vt,tag:"ul",level:Mt,theme:ln,visible:rt,overflowedIndicator:pn},et),Object(m.a)(Xe.children).map(function(dn,cn){return Me.renderMenuItem(dn,cn,mt||"0-menu-")}))}}]),yt}(y.Component);Br.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var Sn=Object(T.b)()(Br),Yt=Sn,hn=o("Kwbf");function Dn(Ze,dt,yt){var nt=Ze.prefixCls,Me=Ze.motion,Xe=Ze.defaultMotions,Ie=Xe===void 0?{}:Xe,et=Ze.openAnimation,$e=Ze.openTransitionName,mt=dt.switchingModeFromInline;if(Me)return Me;if(Object(H.a)(et)==="object"&&et)Object(hn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof et=="string")return{motionName:"".concat(nt,"-open-").concat(et)};if($e)return{motionName:$e};var rt=Ie[yt];return rt||(mt?null:Ie.other)}var tn=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(nt){var Me;Object(P.a)(this,yt),Me=dt.call(this,nt),Me.onSelect=function(et){var $e=Object(x.a)(Me),mt=$e.props;if(mt.selectable){var rt=Me.store.getState(),Mt=rt.selectedKeys,Vt=et.key;mt.multiple?Mt=Mt.concat([Vt]):Mt=[Vt],"selectedKeys"in mt||Me.store.setState({selectedKeys:Mt}),mt.onSelect(Object(b.a)(Object(b.a)({},et),{},{selectedKeys:Mt}))}},Me.onClick=function(et){var $e=Me.getRealMenuMode(),mt=Object(x.a)(Me),rt=mt.store,Mt=mt.props.onOpenChange;$e!=="inline"&&!("openKeys"in Me.props)&&(rt.setState({openKeys:[]}),Mt([])),Me.props.onClick(et)},Me.onKeyDown=function(et,$e){Me.innerMenu.getWrappedInstance().onKeyDown(et,$e)},Me.onOpenChange=function(et){var $e=Object(x.a)(Me),mt=$e.props,rt=Me.store.getState().openKeys.concat(),Mt=!1,Vt=function(ln){var dn=!1;if(ln.open)dn=rt.indexOf(ln.key)===-1,dn&&rt.push(ln.key);else{var cn=rt.indexOf(ln.key);dn=cn!==-1,dn&&rt.splice(cn,1)}Mt=Mt||dn};Array.isArray(et)?et.forEach(Vt):Vt(et),Mt&&("openKeys"in Me.props||Me.store.setState({openKeys:rt}),mt.onOpenChange(rt))},Me.onDeselect=function(et){var $e=Object(x.a)(Me),mt=$e.props;if(mt.selectable){var rt=Me.store.getState().selectedKeys.concat(),Mt=et.key,Vt=rt.indexOf(Mt);Vt!==-1&&rt.splice(Vt,1),"selectedKeys"in mt||Me.store.setState({selectedKeys:rt}),mt.onDeselect(Object(b.a)(Object(b.a)({},et),{},{selectedKeys:rt}))}},Me.onMouseEnter=function(et){Me.restoreModeVerticalFromInline();var $e=Me.props.onMouseEnter;$e&&$e(et)},Me.onTransitionEnd=function(et){var $e=et.propertyName==="width"&&et.target===et.currentTarget,mt=et.target.className,rt=Object.prototype.toString.call(mt)==="[object SVGAnimatedString]"?mt.animVal:mt,Mt=et.propertyName==="font-size"&&rt.indexOf("anticon")>=0;($e||Mt)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function(et){Me.innerMenu=et},Me.isRootMenu=!0;var Xe=nt.defaultSelectedKeys,Ie=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Xe=nt.selectedKeys||[]),"openKeys"in nt&&(Ie=nt.openKeys||[]),Me.store=Object(T.c)({selectedKeys:Xe,openKeys:Ie,activeKey:{"0-menu-":Yn(nt,nt.activeKey)}}),Me.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Me.store},Me}return Object(R.a)(yt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){var Xe=this.props,Ie=Xe.siderCollapsed,et=Xe.inlineCollapsed,$e=Xe.onOpenChange;(!Me.inlineCollapsed&&et||!Me.siderCollapsed&&Ie)&&$e([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Xe=this.store,Ie=this.prevOpenKeys,et=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");et?(this.prevOpenKeys=Xe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ie&&(this.store.setState({openKeys:Ie}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Me=this.props.mode,Xe=this.state.switchingModeFromInline,Ie=this.getInlineCollapsed();return Xe&&Ie?"inline":Ie?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Xe=Me.inlineCollapsed,Ie=Me.siderCollapsed;return Ie!==void 0?Ie:Xe}},{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"])),Xe=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:Xe,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,Xe)}),delete Me.openAnimation,delete Me.openTransitionName,y.createElement(T.a,{store:this.store},y.createElement(Yt,Object(_.a)({},Me,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Me,Xe){var Ie=Xe.prevProps,et=Xe.store,$e=et.getState(),mt={},rt={prevProps:Me};return Ie.mode==="inline"&&Me.mode!=="inline"&&(rt.switchingModeFromInline=!0),"openKeys"in Me?mt.openKeys=Me.openKeys||[]:((Me.inlineCollapsed&&!Ie.inlineCollapsed||Me.siderCollapsed&&!Ie.siderCollapsed)&&(rt.switchingModeFromInline=!0,rt.inlineOpenKeys=$e.openKeys,mt.openKeys=[]),(!Me.inlineCollapsed&&Ie.inlineCollapsed||!Me.siderCollapsed&&Ie.siderCollapsed)&&(mt.openKeys=Xe.inlineOpenKeys,rt.inlineOpenKeys=[])),Object.keys(mt).length&&et.setState(mt),rt}}]),yt}(y.Component);tn.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=tn,_n=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.onKeyDown=function(Me){var Xe=Me.keyCode;return Xe===c.a.ENTER?(nt.onClick(Me),!0):void 0},nt.onMouseLeave=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.onItemHover,$e=Xe.onMouseLeave;et({key:Ie,hover:!1}),$e({key:Ie,domEvent:Me})},nt.onMouseEnter=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.onItemHover,$e=Xe.onMouseEnter;et({key:Ie,hover:!0}),$e({key:Ie,domEvent:Me})},nt.onClick=function(Me){var Xe=nt.props,Ie=Xe.eventKey,et=Xe.multiple,$e=Xe.onClick,mt=Xe.onSelect,rt=Xe.onDeselect,Mt=Xe.isSelected,Vt={key:Ie,keyPath:[Ie],item:Object(x.a)(nt),domEvent:Me};$e(Vt),et?Mt?rt(Vt):mt(Vt):Mt||mt(Vt)},nt.saveNode=function(Me){nt.node=Me},nt}return Object(R.a)(yt,[{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,Xe=Object(b.a)({},this.props),Ie=A()(this.getPrefixCls(),Xe.className,(Me={},Object(M.a)(Me,this.getActiveClassName(),!Xe.disabled&&Xe.active),Object(M.a)(Me,this.getSelectedClassName(),Xe.isSelected),Object(M.a)(Me,this.getDisabledClassName(),Xe.disabled),Me)),et=Object(b.a)(Object(b.a)({},Xe.attribute),{},{title:typeof Xe.title=="string"?Xe.title:void 0,className:Ie,role:Xe.role||"menuitem","aria-disabled":Xe.disabled});Xe.role==="option"?et=Object(b.a)(Object(b.a)({},et),{},{role:"option","aria-selected":Xe.isSelected}):(Xe.role===null||Xe.role==="none")&&(et.role="none");var $e={onClick:Xe.disabled?null:this.onClick,onMouseLeave:Xe.disabled?null:this.onMouseLeave,onMouseEnter:Xe.disabled?null:this.onMouseEnter},mt=Object(b.a)({},Xe.style);Xe.mode==="inline"&&(Xe.direction==="rtl"?mt.paddingRight=Xe.inlineIndent*Xe.level:mt.paddingLeft=Xe.inlineIndent*Xe.level),J.forEach(function(Mt){return delete Xe[Mt]}),delete Xe.direction;var rt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(rt=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(_.a)({},Object(U.a)(Xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),et,$e,{style:mt,ref:this.saveNode}),Xe.children,rt)}}]),yt}(y.Component);_n.isMenuItem=!0,_n.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var In=Object(T.b)(function(Ze,dt){var yt=Ze.activeKey,nt=Ze.selectedKeys,Me=dt.eventKey,Xe=dt.subMenuKey;return{active:yt[Xe]===Me,isSelected:Array.isArray(nt)?nt.indexOf(Me)!==-1:nt===Me}})(_n),Un=In,ar=function(Ze){Object(S.a)(yt,Ze);var dt=Object(v.a)(yt);function yt(){var nt;return Object(P.a)(this,yt),nt=dt.apply(this,arguments),nt.renderInnerMenuItem=function(Me){var Xe=nt.props,Ie=Xe.renderMenuItem,et=Xe.index;return Ie(Me,et,nt.props.subMenuKey)},nt}return Object(R.a)(yt,[{key:"render",value:function(){var Me=Object(_.a)({},this.props),Xe=Me.className,Ie=Xe===void 0?"":Xe,et=Me.rootPrefixCls,$e="".concat(et,"-item-group-title"),mt="".concat(et,"-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(_.a)({},Me,{onClick:function(pn){return pn.stopPropagation()},className:"".concat(Ie," ").concat(et,"-item-group")}),y.createElement("div",{className:$e,title:typeof rt=="string"?rt:void 0},rt),y.createElement("ul",{className:mt},y.Children.map(Mt,this.renderInnerMenuItem)))}}]),yt}(y.Component);ar.isMenuItemGroup=!0,ar.defaultProps={disabled:!0};var qn=ar,Rr=function(dt){var yt=dt.className,nt=dt.rootPrefixCls,Me=dt.style;return y.createElement("li",{className:"".concat(yt," ").concat(nt,"-item-divider"),style:Me})};Rr.defaultProps={disabled:!0,className:"",style:{}};var Ir=Rr,Jn=wn,Ar=o("eDIo");function vr(Ze,dt){var yt=Ze.prefixCls,nt=Ze.editable,Me=Ze.locale,Xe=Ze.style;return!nt||nt.showAdd===!1?null:y.createElement("button",{ref:dt,type:"button",className:"".concat(yt,"-nav-add"),style:Xe,"aria-label":(Me==null?void 0:Me.addAriaLabel)||"Add tab",onClick:function(et){nt.onEdit("add",{event:et})}},nt.addIcon||"+")}var zr=y.forwardRef(vr);function Lr(Ze,dt){var yt=Ze.prefixCls,nt=Ze.id,Me=Ze.tabs,Xe=Ze.locale,Ie=Ze.mobile,et=Ze.moreIcon,$e=et===void 0?"More":et,mt=Ze.moreTransitionName,rt=Ze.style,Mt=Ze.className,Vt=Ze.editable,pn=Ze.tabBarGutter,ln=Ze.rtl,dn=Ze.onTabClick,cn=Object(y.useState)(!1),Fn=Object(g.a)(cn,2),Cn=Fn[0],Ur=Fn[1],Pr=Object(y.useState)(null),Qr=Object(g.a)(Pr,2),Wr=Qr[0],ta=Qr[1],zn="".concat(nt,"-more-popup"),wr="".concat(yt,"-dropdown"),Gn=Wr!==null?"".concat(zn,"-").concat(Wr):null,bn=Xe==null?void 0:Xe.dropdownAriaLabel,jn=y.createElement(Jn,{onClick:function(Sa){var Tr=Sa.key,br=Sa.domEvent;dn(Tr,br),Ur(!1)},id:zn,tabIndex:-1,role:"listbox","aria-activedescendant":Gn,selectedKeys:[Wr],"aria-label":bn!==void 0?bn:"expanded dropdown"},Me.map(function(ha){return y.createElement(Un,{key:ha.key,id:"".concat(zn,"-").concat(ha.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(ha.key),disabled:ha.disabled},ha.tab)}));function Vr(ha){for(var Sa=Me.filter(function(pa){return!pa.disabled}),Tr=Sa.findIndex(function(pa){return pa.key===Wr})||0,br=Sa.length,Mr=0;Mrna?(ua=jn,zn.current="x"):(ua=Vr,zn.current="y");var Ca=Date.now();Ca-Wr.current>100&&(ta.current=!1),(dt(-ua,-ua)||ta.current)&&(bn.preventDefault(),ta.current=!0),Wr.current=Ca}var Gn=Object(y.useRef)(null);Gn.current={onTouchStart:Ur,onTouchMove:Pr,onTouchEnd:Qr,onWheel:wr},y.useEffect(function(){function bn(pr){Gn.current.onTouchStart(pr)}function jn(pr){Gn.current.onTouchMove(pr)}function Vr(pr){Gn.current.onTouchEnd(pr)}function ua(pr){Gn.current.onWheel(pr)}return document.addEventListener("touchmove",jn,{passive:!1}),document.addEventListener("touchend",Vr,{passive:!1}),Ze.current.addEventListener("touchstart",bn,{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 dt(nt){return Ze.current.has(nt)||Ze.current.set(nt,y.createRef()),Ze.current.get(nt)}function yt(nt){Ze.current.delete(nt)}return[dt,yt]}function ur(Ze,dt){var yt=y.useRef(Ze),nt=y.useState({}),Me=Object(g.a)(nt,2),Xe=Me[1];function Ie(et){var $e=typeof et=="function"?et(yt.current):et;$e!==yt.current&&dt($e,yt.current),yt.current=$e,Xe({})}return[yt.current,Ie]}var ir=function(dt){var yt=dt.position,nt=dt.prefixCls,Me=dt.extra;if(!Me)return null;var Xe,Ie=Me;return yt==="right"&&(Xe=Ie.right||!Ie.left&&Ie||null),yt==="left"&&(Xe=Ie.left||null),Xe?y.createElement("div",{className:"".concat(nt,"-extra-content")},Xe):null};function qr(Ze,dt){var yt,nt=y.useContext(nr),Me=nt.prefixCls,Xe=nt.tabs,Ie=Ze.className,et=Ze.style,$e=Ze.id,mt=Ze.animated,rt=Ze.activeKey,Mt=Ze.rtl,Vt=Ze.extra,pn=Ze.editable,ln=Ze.locale,dn=Ze.tabPosition,cn=Ze.tabBarGutter,Fn=Ze.children,Cn=Ze.onTabClick,Ur=Ze.onTabScroll,Pr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useRef)(),ta=Object(y.useRef)(),zn=rr(),wr=Object(g.a)(zn,2),Gn=wr[0],bn=wr[1],jn=dn==="top"||dn==="bottom",Vr=ur(0,function(Da,ya){jn&&Ur&&Ur({direction:Da>ya?"left":"right"})}),ua=Object(g.a)(Vr,2),pr=ua[0],na=ua[1],Ca=ur(0,function(Da,ya){!jn&&Ur&&Ur({direction:Da>ya?"top":"bottom"})}),ha=Object(g.a)(Ca,2),Sa=ha[0],Tr=ha[1],br=Object(y.useState)(0),Mr=Object(g.a)(br,2),tr=Mr[0],pa=Mr[1],xa=Object(y.useState)(0),ba=Object(g.a)(xa,2),Aa=ba[0],ga=ba[1],Na=Object(y.useState)(0),ka=Object(g.a)(Na,2),Fa=ka[0],ni=ka[1],Fi=Object(y.useState)(0),Ai=Object(g.a)(Fi,2),La=Ai[0],bi=Ai[1],Si=Object(y.useState)(null),ja=Object(g.a)(Si,2),Ma=ja[0],Za=ja[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=r(new Map),Yi=Object(g.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=u(Xe,No,tr),Ji="".concat(Me,"-nav-operations-hidden"),Qi=0,ei=0;jn?Mt?(Qi=0,ei=Math.max(0,tr-Ma)):(Qi=Math.min(0,Ma-tr),ei=0):(Qi=Math.min(0,Ii-Aa),ei=0);function Li(Da){return Daei?[ei,!1]:[Da,!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(Pr,function(Da,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>=tr)return Ga;ui(na,Da)}else{if(Ii>=Aa)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 Da=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rt,ya=ao.get(Da);if(!ya)return;if(jn){var Ga=pr;Mt?ya.rightpr+Ma&&(Ga=ya.right+ya.width-Ma):ya.left<-pr?Ga=-ya.left:ya.left+ya.width>-pr+Ma&&(Ga=-(ya.left+ya.width-Ma)),Tr(0),na(Li(Ga)[0])}else{var ui=Sa;ya.top<-Sa?ui=-ya.top:ya.top+ya.height>-Sa+Ii&&(ui=-(ya.top+ya.height-Ii)),na(0),Tr(Li(ui)[0])}}var qi=E(ao,{width:Ma,height:Ii,left:pr,top:Sa},{width:Fa,height:La},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},Ze),{},{tabs:Xe})),ko=Object(g.a)(qi,2),oo=ko[0],so=ko[1],So=Xe.map(function(Da){var ya=Da.key;return y.createElement(d,{id:$e,prefixCls:Me,key:ya,rtl:Mt,tab:Da,closable:Da.closable,editable:pn,active:ya===rt,tabPosition:dn,tabBarGutter:cn,renderWrapper:Fn,removeAriaLabel:ln==null?void 0:ln.removeAriaLabel,ref:Gn(ya),onClick:function(ui){Cn(ya,ui)},onRemove:function(){bn(ya)},onFocus:function(){Ni(ya),Co(),Mt||(Pr.current.scrollLeft=0),Pr.current.scrollTop=0}})}),Uo=i(function(){var Da,ya,Ga,ui,eo,ki,ho,wi,qa,po=((Da=Pr.current)===null||Da===void 0?void 0:Da.offsetWidth)||0,Hi=((ya=Pr.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 Xe.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=Xe.slice(0,oo),fi=Xe.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(){l.a.cancel(Bo.current)}Object(y.useEffect)(function(){var Da={};return yi&&(jn?(Mt?Da.right=yi.right:Da.left=yi.left,Da.width=yi.width):(Da.top=yi.top,Da.height=yi.height)),To(),Bo.current=l()(function(){wo(Da)}),To},[yi,jn,Mt]),Object(y.useEffect)(function(){Ni()},[rt,yi,ao,jn]),Object(y.useEffect)(function(){Uo()},[Mt,cn,rt,Xe.map(function(Da){return Da.key}).join("_")]);var $i=!!Ha.length,Wi="".concat(Me,"-nav-wrap"),Oo,fo,Wo,lo;return jn?Mt?(fo=pr>0,Oo=pr+Ma>>7)^(P<<14|P>>>18)^P>>>3,x=f[_-2],S=(x<<15|x>>>17)^(x<<13|x>>>19)^x>>>10;f[_]=R+f[_-7]+S+f[_-16]}var v=s&u^~s&w,T=r&c^r&h^c&h,U=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),L=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),N=E+L+v+e[_]+f[_],V=U+T;E=w,w=u,u=s,s=d+N|0,d=h,h=c,c=r,r=N+V|0}i[0]=i[0]+r|0,i[1]=i[1]+c|0,i[2]=i[2]+h|0,i[3]=i[3]+d|0,i[4]=i[4]+s|0,i[5]=i[5]+u|0,i[6]=i[6]+w|0,i[7]=i[7]+E|0},_doFinalize:function(){var l=this._data,n=l.words,i=this._nDataBytes*8,r=l.sigBytes*8;return n[r>>>5]|=128<<24-r%32,n[(r+64>>>9<<4)+14]=g.floor(i/4294967296),n[(r+64>>>9<<4)+15]=i,l.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var l=C.clone.call(this);return l._hash=this._hash.clone(),l}});O.SHA256=C._createHelper(a),O.HmacSHA256=C._createHmacHelper(a)}(Math),M.SHA256})},lZu9:function(k,z,o){(function(M){M(o("VrN/"),o("1eCo"),o("8EBN"))})(function(M){"use strict";M.defineMode("markdown",function(g,O){var b=M.getMode(g,"text/html"),y=b.name=="null";function C(F){if(M.findModeByName){var I=M.findModeByName(F);I&&(F=I.mime||I.mimes[0])}var K=M.getMode(g,F);return K.name=="null"?null:K}O.highlightFormatting===void 0&&(O.highlightFormatting=!1),O.maxBlockquoteDepth===void 0&&(O.maxBlockquoteDepth=0),O.taskLists===void 0&&(O.taskLists=!1),O.strikethrough===void 0&&(O.strikethrough=!1),O.emoji===void 0&&(O.emoji=!1),O.fencedCodeBlockHighlighting===void 0&&(O.fencedCodeBlockHighlighting=!0),O.fencedCodeBlockDefaultMode===void 0&&(O.fencedCodeBlockDefaultMode="text/plain"),O.xml===void 0&&(O.xml=!0),O.tokenTypeOverrides===void 0&&(O.tokenTypeOverrides={});var A={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 A)A.hasOwnProperty(m)&&O.tokenTypeOverrides[m]&&(A[m]=O.tokenTypeOverrides[m]);var e=/^([*\-_])(?:\s*\1){2,}\s*$/,f=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,a=/^\[(x| )\](?=\s)/i,l=O.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,n=/^ {0,3}(?:\={1,}|-{2,})\s*$/,i=/^[^#!\[\]*_\\<>` "'(~:]+/,r=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,c=/^\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 u(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==P){var I=y;if(!I){var K=M.innerMode(b,F.htmlState);I=K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText}I&&(F.f=v,F.block=_,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function _(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,A.code;if(F.eatSpace())return null;if(K&&I.indentation<=Te&&(ue=F.match(l))&&ue[1].length<=6)return I.quote=0,I.header=ue[1].length,I.thisLine.header=!0,O.highlightFormatting&&(I.formatting="header"),I.f=I.inline,x(I);if(I.indentation<=Te&&F.eat(">"))return I.quote=K?1:I.quote+1,O.highlightFormatting&&(I.formatting="quote"),F.eatSpace(),x(I);if(!ye&&!I.setext&&K&&I.indentation<=Te&&(ue=F.match(f))){var se=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,O.taskLists&&F.match(a,!1)&&(I.taskList=!0),I.f=I.inline,O.highlightFormatting&&(I.formatting=["list","list-"+se]),x(I)}else{if(K&&I.indentation<=Te&&(ue=F.match(r,!0)))return I.quote=0,I.fencedEndRE=new RegExp(ue[1]+"+ *$"),I.localMode=O.fencedCodeBlockHighlighting&&C(ue[2]||O.fencedCodeBlockDefaultMode),I.localMode&&(I.localState=M.startState(I.localMode)),I.f=I.block=R,O.highlightFormatting&&(I.formatting="code-block"),I.code=-1,x(I);if(I.setext||(!be||!Se)&&!I.quote&&I.list===!1&&!I.code&&!ye&&!c.test(F.string)&&(ue=F.lookAhead(1))&&(ue=ue.match(n)))return I.setext?(I.header=I.setext,I.setext=0,F.skipToEnd(),O.highlightFormatting&&(I.formatting="header")):(I.header=ue[0].charAt(0)=="="?1:2,I.setext=I.header),I.thisLine.header=!0,I.f=I.inline,x(I);if(ye)return F.skipToEnd(),I.hr=!0,I.thisLine.hr=!0,A.hr;if(F.peek()==="[")return s(F,I,V)}return s(F,I,I.inline)}function P(F,I){var K=b.token(F,I.htmlState);if(!y){var ee=M.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=v,I.block=_,I.htmlState=null)}return K}function R(F,I){var K=I.listStack[I.listStack.length-1]||0,ee=I.indentation=F.quote?I.push(A.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(A.linkHref,"url"):(F.strong&&I.push(A.strong),F.em&&I.push(A.em),F.strikethrough&&I.push(A.strikethrough),F.emoji&&I.push(A.emoji),F.linkText&&I.push(A.linkText),F.code&&I.push(A.code),F.image&&I.push(A.image),F.imageAltText&&I.push(A.imageAltText,"link"),F.imageMarker&&I.push(A.imageMarker)),F.header&&I.push(A.header,A.header+"-"+F.header),F.quote&&(I.push(A.quote),!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=F.quote?I.push(A.quote+"-"+F.quote):I.push(A.quote+"-"+O.maxBlockquoteDepth)),F.list!==!1){var ee=(F.listStack.length-1)%3;ee?ee===1?I.push(A.list2):I.push(A.list3):I.push(A.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)?x(I):void 0}function v(F,I){var K=I.text(F,I);if(typeof K!="undefined")return K;if(I.list)return I.list=null,x(I);if(I.taskList){var ee=F.match(a,!0)[1]===" ";return ee?I.taskOpen=!0:I.taskClosed=!0,O.highlightFormatting&&(I.formatting="task"),I.taskList=!1,x(I)}if(I.taskOpen=!1,I.taskClosed=!1,I.header&&F.match(/^#+$/,!0))return O.highlightFormatting&&(I.formatting="header"),x(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 A.linkHref}if(he==="`"){var Te=I.formatting;O.highlightFormatting&&(I.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(I.code==0&&(!I.quote||ce==1))return I.code=ce,x(I);if(ce==I.code){var be=x(I);return I.code=0,be}else return I.formatting=Te,x(I)}else if(I.code)return x(I);if(he==="\\"&&(F.next(),O.highlightFormatting)){var ye=x(I),ue=A.formatting+"-escape";return ye?ye+" "+ue:ue}if(he==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return I.imageMarker=!0,I.image=!0,O.highlightFormatting&&(I.formatting="image"),x(I);if(he==="["&&I.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return I.imageMarker=!1,I.imageAltText=!0,O.highlightFormatting&&(I.formatting="image"),x(I);if(he==="]"&&I.imageAltText){O.highlightFormatting&&(I.formatting="image");var ye=x(I);return I.imageAltText=!1,I.image=!1,I.inline=I.f=U,ye}if(he==="["&&!I.image)return I.linkText&&F.match(/^.*?\]/)||(I.linkText=!0,O.highlightFormatting&&(I.formatting="link")),x(I);if(he==="]"&&I.linkText){O.highlightFormatting&&(I.formatting="link");var ye=x(I);return I.linkText=!1,I.inline=I.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?U:v,ye}if(he==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=T,O.highlightFormatting&&(I.formatting="link");var ye=x(I);return ye?ye+=" ":ye="",ye+A.linkInline}if(he==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=T,O.highlightFormatting&&(I.formatting="link");var ye=x(I);return ye?ye+=" ":ye="",ye+A.linkEmail}if(O.xml&&he==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var se=F.string.indexOf(">",F.pos);if(se!=-1){var $=F.string.substring(F.start,se);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($)&&(I.md_inside=!0)}return F.backUp(1),I.htmlState=M.startState(b),u(F,I,P)}if(O.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)),le=!/\s/.test(re)&&(!h.test(re)||/\s/.test(ae)||h.test(ae)),te=null,Q=null;if(me%2&&(!I.em&&Oe&&(he==="*"||!le||h.test(re))?te=!0:I.em==he&&le&&(he==="*"||!Oe||h.test(ae))&&(te=!1)),me>1&&(!I.strong&&Oe&&(he==="*"||!le||h.test(re))?Q=!0:I.strong==he&&le&&(he==="*"||!Oe||h.test(ae))&&(Q=!1)),Q!=null||te!=null){O.highlightFormatting&&(I.formatting=te==null?"strong":Q==null?"em":"strong em"),te===!0&&(I.em=he),Q===!0&&(I.strong=he);var be=x(I);return te===!1&&(I.em=!1),Q===!1&&(I.strong=!1),be}}else if(he===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return x(I);F.backUp(1)}if(O.strikethrough){if(he==="~"&&F.eatWhile(he)){if(I.strikethrough){O.highlightFormatting&&(I.formatting="strikethrough");var be=x(I);return I.strikethrough=!1,be}else if(F.match(/^[^\s]/,!1))return I.strikethrough=!0,O.highlightFormatting&&(I.formatting="strikethrough"),x(I)}else if(he===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return x(I);F.backUp(2)}}if(O.emoji&&he===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){I.emoji=!0,O.highlightFormatting&&(I.formatting="emoji");var J=x(I);return I.emoji=!1,J}return he===" "&&(F.match(/^ +$/,!1)?I.trailingSpace++:I.trailingSpace&&(I.trailingSpaceNewLine=!0)),x(I)}function T(F,I){var K=F.next();if(K===">"){I.f=I.inline=v,O.highlightFormatting&&(I.formatting="link");var ee=x(I);return ee?ee+=" ":ee="",ee+A.linkInline}return F.match(/^[^>]+/,!0),A.linkInline}function U(F,I){if(F.eatSpace())return null;var K=F.next();return K==="("||K==="["?(I.f=I.inline=N(K==="("?")":"]"),O.highlightFormatting&&(I.formatting="link-string"),I.linkHref=!0,x(I)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(I,K){var ee=I.next();if(ee===F){K.f=K.inline=v,O.highlightFormatting&&(K.formatting="link-string");var he=x(K);return K.linkHref=!1,he}return I.match(L[F]),K.linkHref=!0,x(K)}}function V(F,I){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(I.f=H,F.next(),O.highlightFormatting&&(I.formatting="link"),I.linkText=!0,x(I)):s(F,I,v)}function H(F,I){if(F.match(/^\]:/,!0)){I.f=I.inline=D,O.highlightFormatting&&(I.formatting="link");var K=x(I);return I.linkText=!1,K}return F.match(/^([^\]\\]|\\.)+/,!0),A.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=v,A.linkHref+" url")}var W={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:v,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&&M.copyState(b,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?M.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!=P)){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==P?{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==P&&b.indent?b.indent(F.htmlState,I,K):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,I,K):M.Pass},blankLine:E,getType:x,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return W},"xml"),M.defineMIME("text/markdown","markdown"),M.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 M=o("E7E6"),g=o.n(M);o.d(z,"w",function(){return g.a});var O=o("/GNS"),b=o.n(O);o.d(z,"v",function(){return b.a});var y=o("FOrL"),C=o.n(y);o.d(z,"q",function(){return C.a});var A=o("HpTS"),m=o.n(A);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"),l=o.n(a);o.d(z,"l",function(){return l.a});var n=o("GABl"),i=o.n(n);o.d(z,"e",function(){return i.a});var r=o("onxn"),c=o.n(r);o.d(z,"n",function(){return c.a});var h=o("nKGa"),d=o.n(h);o.d(z,"m",function(){return d.a});var s=o("4qgm"),u=o.n(s);o.d(z,"y",function(){return u.a});var w=o("JeFH"),E=o.n(w);o.d(z,"b",function(){return E.a});var _=o("ji0R"),P=o.n(_);o.d(z,"i",function(){return P.a});var R=o("W6BS"),x=o.n(R);o.d(z,"z",function(){return x.a});var S=o("kPYp"),v=o.n(S);o.d(z,"A",function(){return v.a});var T=o("nukY"),U=o.n(T),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),Se=o("8/bI"),Te=o.n(Se);o.d(z,"j",function(){return Te.a});var ce=o("JWDV"),be=o.n(ce),ye=o("Xsq0"),ue=o.n(ye);o.d(z,"p",function(){return ue.a});var se=o("Ohmc"),$=o.n(se);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 le=o("cRFk"),te=o.n(le);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"),Je=o.n(Ae);o.d(z,"s",function(){return Je.a});var tt=o("A/g1"),ut=o.n(tt);o.d(z,"f",function(){return ut.a});var ft=o("Nmxd"),vt=o.n(ft);o.d(z,"g",function(){return vt.a});var _t=o("5D2P"),Ve=o.n(_t);o.d(z,"h",function(){return Ve.a});var je=o("djh8"),ht=o.n(je),Bt=o("Jq4h"),Et=o.n(Bt)},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,M){function g(y,C){if(!o[y]){if(!z[y]){var A=typeof require=="function"&&require;if(!C&&A)return require(y,!0);if(O)return O(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,M)}return o[y].exports}for(var O=typeof require=="function"&&require,b=0;b0&&n(U).to(N),V=this._divideParts(S,v),H=V.length,D=!1,W=function(be,ye){var ue=this;return new y.default(function($,me){var re,ae,Oe,le;return A.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[ye-1],ae={stream:be._createStream(x,re.start,re.end),size:re.end-re.start},Q.next=6,A.default.awrap(be._uploadPart(L,T,ye,ae));case 6:if(Oe=Q.sent,!(!be.isCancel()&&!D)){Q.next=15;break}if(_.doneParts.push({number:ye,etag:Oe.res.headers.etag}),!P.progress){Q.next=12;break}return Q.next=12,A.default.awrap(P.progress(U.length/H,_,Oe.res));case 12:$({number:ye,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),le=new Error,le.name=Q.t0.name,le.message=Q.t0.message,le.stack=Q.t0.stack,le.partNum=ye,n(Q.t0).to(le),me(le);case 30:case"end":return Q.stop()}},null,ue,[[0,21]])})},F=(0,O.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=P.parallel||ee,Te.next=17,A.default.awrap(this._parallel(K,he,function(ce){return new y.default(function(be,ye){W(R,ce).then(function(ue){ue&&N.push(ue),be()}).catch(function(ue){ye(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,A.default.awrap(this.completeMultipartUpload(L,T,N,P));case 27:return Te.abrupt("return",Te.sent);case 28:case"end":return Te.stop()}},null,this)},d._getFileSize=function(_){return A.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(!e.buffer(_)){R.next=4;break}return R.abrupt("return",_.length);case 4:if(!(r(_)||h(_))){R.next=6;break}return R.abrupt("return",_.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return R.stop()}},null,this)};var s=k("stream"),u=s.Readable;function w(E,_){if(!(this instanceof w))return new w(E,_);u.call(this,_),this.file=E,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}f.inherits(w,u),w.prototype.readFileAndPush=function(_){if(this.fileBuffer)for(var P=!0;P&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:x,this.start=x,P=this.push(this.fileBuffer.slice(R,x))}},w.prototype._read=function(_){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 P=16*1024;_=_||P;var R=this;this.reader.onload=function(S){R.fileBuffer=M.from(new Uint8Array(S.target.result)),R.file=null,R.readFileAndPush(_)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(_)},d._createStream=function(_,P,R){if(r(_)||h(_))return new w(_.slice(P,R));throw new Error("_createStream requires File/Blob.")},d._getPartSize=function(_,P){var R=10*1e3,x=1024*1024;return P?Math.max(Math.ceil(_/R),P):x},d._divideParts=function(_,P){for(var R=Math.ceil(_/P),x=[],S=0;S255)throw new Error("ID is composed of 255 bytes at most");if(_.prefix===""||_.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(_.status))throw new Error("Status must be Enabled or Disabled");if(_.transition){if(!["IA","Archive"].includes(_.transition.storageClass))throw new Error("StorageClass must be IA or Archive");u(_.transition,"Transition")}if(_.expiration){if(!_.expiration.expiredObjectDeleteMarker)u(_.expiration,"Expiration");else if(_.expiration.days||_.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(_.abortMultipartUpload&&u(_.abortMultipartUpload,"AbortMultipartUpload"),!_.expiration&&!_.abortMultipartUpload&&!_.transition&&!_.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(_.tag){if(_.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");w(_.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 M=k("babel-runtime/regenerator"),g=O(M);function O(e){return e&&e.__esModule?e:{default:e}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/obj2xml"),A=C.obj2xml,m=o;m.putBucketVersioning=function(f,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,i,r;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 n=this._bucketRequestParams("PUT",f,"versioning",l),i={VersioningConfiguration:{Status:a}},n.mime="xml",n.content=A(i,{headers:!0}),h.next=9,g.default.awrap(this.request(n));case 9:return r=h.sent,h.abrupt("return",{res:r.res,status:r.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 M=k("babel-runtime/regenerator"),g=O(M);function O(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("../utils/obj2xml"),A=C.obj2xml,m=k("../utils/isArray"),e=m.isArray,f=o;f.putBucketWebsite=function(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments[2],r,c,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(y(l),r=this._bucketRequestParams("PUT",l,"website",i),c={Suffix:n.index||"index.html"},h={IndexDocument:c},d={WebsiteConfiguration:h},n.supportSubDir&&(c.SupportSubDir=n.supportSubDir),n.type&&(c.Type=n.type),n.error&&(h.ErrorDocument={Key:n.error}),!(n.routingRules!==void 0)){w.next=12;break}if(e(n.routingRules)){w.next=11;break}throw new Error("RoutingRules must be Array");case 11:h.RoutingRules={RoutingRule:n.routingRules};case 12:return d=A(d),r.content=d,r.mime="xml",r.successStatuses=[200],w.next=18,g.default.awrap(this.request(r));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(M){"use strict";var g=k("babel-runtime/core-js/object/keys"),O=C(g),b=k("babel-runtime/core-js/json/stringify"),y=C(b);function C(A){return A&&A.__esModule?A:{default:A}}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=M.from((0,y.default)(f)).toString("base64");if(m.headers["x-oss-callback"]=a,e.callback.customValue){var l={};(0,O.default)(e.callback.customValue).forEach(function(n){l["x:"+n]=e.callback.customValue[n]}),m.headers["x-oss-callback-var"]=M.from((0,y.default)(l)).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 M=k("babel-runtime/core-js/object/assign"),g=O(M);function O(f){return f&&f.__esModule?f:{default:f}}var b=k("humanize-ms"),y=k("url"),C=k("../utils/checkBucketName"),A=C.checkBucketName;function m(f,a){var l=y.parse(f);if(l.protocol||(l=y.parse("http"+(a?"s":"")+"://"+f)),l.protocol!=="http:"&&l.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return l}function e(f,a,l){var n=l?"https://":"http://",i=a?"-internal.aliyuncs.com":".aliyuncs.com",r="vpc100-oss-cn-";return f.substr(0,r.length)===r&&(i=".aliyuncs.com"),y.parse(n+f+i)}z.exports=function(f){if(!f||!f.accessKeyId||!f.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");f.bucket&&A(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 M=k("merge-descriptors"),g=o;M(g,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=O(M);function O(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,C=k("querystring"),A=k("js-base64"),m=A.Base64.encode,e=o;e.processObjectSave=function(l,n,i,r){var c,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return f(l,"sourceObject"),f(n,"targetObject"),f(i,"process"),n=this._objectName(n),r&&y(r),c=this._objectRequestParams("POST",l,{subres:"x-oss-process"}),h=r?",b_"+m(r):"",n=m(n),d={"x-oss-process":i+"|sys/saveas,o_"+n+h},c.content=C.stringify(d),w.next=12,g.default.awrap(this.request(c));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,l){if(!a)throw new Error(l+" is required");if(typeof a!="string")throw new Error(l+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(k,z,o){"use strict";var M=k("babel-runtime/regenerator"),g=O(M);function O(e){return e&&e.__esModule?e:{default:e}}var b=k("copy-to"),y=k("./callback"),C=k("./utils/deepCopy"),A=C.deepCopy,m=o;m.listUploads=function(f,a){var l,n,i,r;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return a=a||{},l={},b(a).to(l),l.subres="uploads",n=this._objectRequestParams("GET","",l),n.query=f,n.xmlResponse=!0,n.successStatuses=[200],h.next=10,g.default.awrap(this.request(n));case 10:return i=h.sent,r=i.data.Upload||[],Array.isArray(r)||(r=[r]),r=r.map(function(d){return{name:d.Key,uploadId:d.UploadId,initiated:d.Initiated}}),h.abrupt("return",{res:i.res,uploads:r,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,l,n){var i,r,c;return g.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=n||{},i={},b(n).to(i),i.subres={uploadId:a},r=this._objectRequestParams("GET",f,i),r.query=l,r.xmlResponse=!0,r.successStatuses=[200],d.next=10,g.default.awrap(this.request(r));case 10:return c=d.sent,d.abrupt("return",{res:c.res,uploadId:c.data.UploadId,bucket:c.data.Bucket,name:c.data.Key,partNumberMarker:c.data.PartNumberMarker,nextPartNumberMarker:c.data.NextPartNumberMarker,maxParts:c.data.MaxParts,isTruncated:c.data.IsTruncated,parts:c.data.Part||[]});case 12:case"end":return d.stop()}},null,this)},m.abortMultipartUpload=function(f,a,l){var n,i,r;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return this._stop(),l=l||{},n={},b(l).to(n),n.subres={uploadId:a},i=this._objectRequestParams("DELETE",f,n),i.successStatuses=[204],h.next=9,g.default.awrap(this.request(i));case 9:return r=h.sent,h.abrupt("return",{res:r.res});case 11:case"end":return h.stop()}},null,this)},m.initMultipartUpload=function(f,a){var l,n,i;return g.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return a=a||{},l={},b(a).to(l),l.headers=l.headers||{},this._convertMetaToHeaders(a.meta,l.headers),l.subres="uploads",n=this._objectRequestParams("POST",f,l),n.mime=a.mime,n.xmlResponse=!0,n.successStatuses=[200],c.next=12,g.default.awrap(this.request(n));case 12:return i=c.sent,c.abrupt("return",{res:i.res,bucket:i.data.Bucket,name:i.data.Key,uploadId:i.data.UploadId});case 14:case"end":return c.stop()}},null,this)},m.uploadPart=function(f,a,l,n,i,r,c){var h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return h={stream:this._createStream(n,i,r),size:r-i},s.next=3,g.default.awrap(this._uploadPart(f,a,l,h,c));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,this)},m.completeMultipartUpload=function(f,a,l,n){var i,r,c,h,d,s,u,w;return g.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:for(i=l.concat().sort(function(P,R){return P.number-R.number}).filter(function(P,R,x){return!R||P.number!==x[R-1].number}),r=` `,c=0;c @@ -522,7 +522,7 @@ headers: `+(0,b.default)(Pt),je.data=ht,je.path=D.path,je.status=me,je.headers=P `:` The item has been dropped while not over a drop area. `+J(Z.source)+` - `},_e={dragHandleUsageInstructions:re,onDragStart:Oe,onDragUpdate:Q,onDragEnd:ve},Ae={x:0,y:0},Je=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}},ut=function(Z,ie){return Z.x===ie.x&&Z.y===ie.y},ft=function(Z){return{x:Z.x!==0?-Z.x:0,y:Z.y!==0?-Z.y:0}},vt=function(Z,ie,Ee){var Ne;return Ee===void 0&&(Ee=0),Ne={},Ne[Z]=ie,Ne[Z==="x"?"y":"x"]=Ee,Ne},_t=function(Z,ie){return Math.sqrt(Math.pow(ie.x-Z.x,2)+Math.pow(ie.y-Z.y,2))},Ve=function(Z,ie){return Math.min.apply(Math,ie.map(function(Ee){return _t(Z,Ee)}))},je=function(Z){return function(ie){return{x:Z(ie.x),y:Z(ie.y)}}},ht=function(Y,Z){var ie=n({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},Bt=function(Z,ie){return{top:Z.top+ie.y,left:Z.left+ie.x,bottom:Z.bottom+ie.y,right:Z.right+ie.x}},Et=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},qe=function(Z,ie){return ie?Bt(Z,ie.scroll.diff.displacement):Z},He=function(Z,ie,Ee){if(Ee&&Ee.increasedBy){var Ne;return Object(b.a)({},Z,(Ne={},Ne[ie.end]=Z[ie.end]+Ee.increasedBy[ie.line],Ne))}return Z},Ye=function(Z,ie){return ie&&ie.shouldClipSubject?ht(ie.pageMarginBox,Z):n(Z)},Ce=function(Y){var Z=Y.page,ie=Y.withPlaceholder,Ee=Y.axis,Ne=Y.frame,ke=qe(Z.marginBox,Ne),Ke=He(ke,Ee,ie),Ge=Ye(Ke,Ne);return{page:Z,withPlaceholder:ie,active:Ge}},Le=function(Y,Z){Y.frame||$(!1);var ie=Y.frame,Ee=tt(Z,ie.scroll.initial),Ne=ft(Ee),ke=Object(b.a)({},ie,{scroll:{initial:ie.scroll.initial,current:Z,diff:{value:Ee,displacement:Ne},max:ie.scroll.max}}),Ke=Ce({page:Y.subject.page,withPlaceholder:Y.subject.withPlaceholder,axis:Y.axis,frame:ke}),Ge=Object(b.a)({},Y,{frame:ke,subject:Ke});return Ge};function We(Y){return Number.isInteger?Number.isInteger(Y):typeof Y=="number"&&isFinite(Y)&&Math.floor(Y)===Y}function Ue(Y){return Object.values?Object.values(Y):Object.keys(Y).map(function(Z){return Y[Z]})}function ze(Y,Z){if(Y.findIndex)return Y.findIndex(Z);for(var ie=0;ieY.bottom,Ut=Ee.leftY.right,Ft=xt&&Ut;if(Ft)return!0;var Tt=xt&&Ke||Ut&&ke;return Tt}},jt=function(Y){var Z=ct(Y.top,Y.bottom),ie=ct(Y.left,Y.right);return function(Ee){var Ne=Z(Ee.top)&&Z(Ee.bottom)&&ie(Ee.left)&&ie(Ee.right);return Ne}},on={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},vn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Wn=function(Y){return function(Z){var ie=ct(Z.top,Z.bottom),Ee=ct(Z.left,Z.right);return function(Ne){return Y===on?ie(Ne.top)&&ie(Ne.bottom):Ee(Ne.left)&&Ee(Ne.right)}}},Kn=function(Z,ie){var Ee=ie.frame?ie.frame.scroll.diff.displacement:Ae;return Bt(Z,Ee)},Hn=function(Z,ie,Ee){return ie.subject.active?Ee(ie.subject.active)(Z):!1},fn=function(Z,ie,Ee){return Ee(ie)(Z)},lr=function(Z){var ie=Z.target,Ee=Z.destination,Ne=Z.viewport,ke=Z.withDroppableDisplacement,Ke=Z.isVisibleThroughFrameFn,Ge=ke?Kn(ie,Ee):ie;return Hn(Ge,Ee,Ke)&&fn(Ge,Ne,Ke)},Zn=function(Z){return lr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Nt}))},cr=function(Z){return lr(Object(b.a)({},Z,{isVisibleThroughFrameFn:jt}))},dr=function(Z){return lr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Wn(Z.destination.axis)}))},Dr=function(Z,ie,Ee){if(typeof Ee=="boolean")return Ee;if(!ie)return!0;var Ne=ie.invisible,ke=ie.visible;if(Ne[Z])return!1;var Ke=ke[Z];return Ke?Ke.shouldAnimate:!0};function hr(Y,Z){var ie=Y.page.marginBox,Ee={top:Z.point.y,right:0,bottom:0,left:Z.point.x};return n(i(ie,Ee))}function sn(Y){var Z=Y.afterDragging,ie=Y.destination,Ee=Y.displacedBy,Ne=Y.viewport,ke=Y.forceShouldAnimate,Ke=Y.last;return Z.reduce(function(xt,Ut){var Ft=hr(Ut,Ee),Tt=Ut.descriptor.id;xt.all.push(Tt);var St=Zn({target:Ft,destination:ie,viewport:Ne,withDroppableDisplacement:!0});if(!St)return xt.invisible[Ut.descriptor.id]=!0,xt;var kt=Dr(Tt,Ke,ke),mn={draggableId:Tt,shouldAnimate:kt};return xt.visible[Tt]=mn,xt},{all:[],visible:{},invisible:{}})}function en(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,Ee=Y.displacedBy,Ne=Y.destination,ke=en(Z,{inHomeList:ie});return{displaced:Dt,displacedBy:Ee,at:{type:"REORDER",destination:{droppableId:Ne.descriptor.id,index:ke}}}}function Fr(Y){var Z=Y.draggable,ie=Y.insideDestination,Ee=Y.destination,Ne=Y.viewport,ke=Y.displacedBy,Ke=Y.last,Ge=Y.index,xt=Y.forceShouldAnimate,Ut=pt(Z,Ee);if(Ge==null)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:Ee});var Ft=st(ie,function(sr){return sr.descriptor.index===Ge});if(!Ft)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:Ee});var Tt=Pe(Z,ie),St=ie.indexOf(Ft),kt=Tt.slice(St),mn=sn({afterDragging:kt,destination:Ee,displacedBy:ke,last:Ke,viewport:Ne.frame,forceShouldAnimate:xt});return{displaced:mn,displacedBy:ke,at:{type:"REORDER",destination:{droppableId:Ee.descriptor.id,index:Ge}}}}function Or(Y,Z){return Boolean(Z.effected[Y])}var xr=function(Y){var Z=Y.isMovingForward,ie=Y.destination,Ee=Y.draggables,Ne=Y.combine,ke=Y.afterCritical;if(!ie.isCombineEnabled)return null;var Ke=Ne.draggableId,Ge=Ee[Ke],xt=Ge.descriptor.index,Ut=Or(Ke,ke);return Ut?Z?xt:xt-1:Z?xt+1:xt},fr=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,Ee=Y.insideDestination,Ne=Y.location;if(!Ee.length)return null;var ke=Ne.index,Ke=Z?ke+1:ke-1,Ge=Ee[0].descriptor.index,xt=Ee[Ee.length-1].descriptor.index,Ut=ie?xt:xt+1;return KeUt?null:Ke},pe=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,Ee=Y.draggable,Ne=Y.draggables,ke=Y.destination,Ke=Y.insideDestination,Ge=Y.previousImpact,xt=Y.viewport,Ut=Y.afterCritical,Ft=Ge.at;if(Ft||$(!1),Ft.type==="REORDER"){var Tt=fr({isMovingForward:Z,isInHomeList:ie,location:Ft.destination,insideDestination:Ke});return Tt==null?null:Fr({draggable:Ee,insideDestination:Ke,destination:ke,viewport:xt,last:Ge.displaced,displacedBy:Ge.displacedBy,index:Tt})}var St=xr({isMovingForward:Z,destination:ke,displaced:Ge.displaced,draggables:Ne,combine:Ft.combine,afterCritical:Ut});return St==null?null:Fr({draggable:Ee,insideDestination:Ke,destination:ke,viewport:xt,last:Ge.displaced,displacedBy:Ge.displacedBy,index:St})},X=function(Y){var Z=Y.displaced,ie=Y.afterCritical,Ee=Y.combineWith,Ne=Y.displacedBy,ke=Boolean(Z.visible[Ee]||Z.invisible[Ee]);return Or(Ee,ie)?ke?Ae:ft(Ne.point):ke?Ne.point:Ae},q=function(Y){var Z=Y.afterCritical,ie=Y.impact,Ee=Y.draggables,Ne=it(ie);Ne||$(!1);var ke=Ne.draggableId,Ke=Ee[ke].page.borderBox.center,Ge=X({displaced:ie.displaced,afterCritical:Z,combineWith:ke,displacedBy:ie.displacedBy});return Je(Ke,Ge)},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,Ee){return ie[Z.crossAxisStart]+Ee.margin[Z.crossAxisStart]+Ee.borderBox[Z.crossAxisSize]/2},ot=function(Z){var ie=Z.axis,Ee=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,Ee.marginBox[ie.end]+oe(ie,Ne),fe(ie,Ee.marginBox,Ne))},Zt=function(Z){var ie=Z.axis,Ee=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,Ee.marginBox[ie.start]-De(ie,Ne),fe(ie,Ee.marginBox,Ne))},Mn=function(Z){var ie=Z.axis,Ee=Z.moveInto,Ne=Z.isMoving;return vt(ie.line,Ee.contentBox[ie.start]+oe(ie,Ne),fe(ie,Ee.contentBox,Ne))},Vn=function(Y){var Z=Y.impact,ie=Y.draggable,Ee=Y.draggables,Ne=Y.droppable,ke=Y.afterCritical,Ke=Fe(Ne.descriptor.id,Ee),Ge=ie.page,xt=Ne.axis;if(!Ke.length)return Mn({axis:xt,moveInto:Ne.page,isMoving:Ge});var Ut=Z.displaced,Ft=Z.displacedBy,Tt=Ut.all[0];if(Tt){var St=Ee[Tt];if(Or(Tt,ke))return Zt({axis:xt,moveRelativeTo:St.page,isMoving:Ge});var kt=w(St.page,Ft.point);return Zt({axis:xt,moveRelativeTo:kt,isMoving:Ge})}var mn=Ke[Ke.length-1];if(mn.descriptor.id===ie.descriptor.id)return Ge.borderBox.center;if(Or(mn.descriptor.id,ke)){var sr=w(mn.page,ft(ke.displacedBy.point));return ot({axis:xt,moveRelativeTo:sr,isMoving:Ge})}return ot({axis:xt,moveRelativeTo:mn.page,isMoving:Ge})},qt=function(Y,Z){var ie=Y.frame;return ie?Je(Z,ie.scroll.diff.displacement):Z},yn=function(Z){var ie=Z.impact,Ee=Z.draggable,Ne=Z.droppable,ke=Z.draggables,Ke=Z.afterCritical,Ge=Ee.page.borderBox.center,xt=ie.at;return Ne&&xt?xt.type==="REORDER"?Vn({impact:ie,draggable:Ee,draggables:ke,droppable:Ne,afterCritical:Ke}):q({impact:ie,draggables:ke,afterCritical:Ke}):Ge},un=function(Y){var Z=yn(Y),ie=Y.droppable,Ee=ie?qt(ie,Z):Z;return Ee},jr=function(Y,Z){var ie=tt(Z,Y.scroll.initial),Ee=ft(ie),Ne=n({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:Ee}}};return ke};function ra(Y,Z){return Y.map(function(ie){return Z[ie]})}function oa(Y,Z){for(var ie=0;ie1?Ft.sort(function(Tt,St){return Ta(Tt)[Ge.start]-Ta(St)[Ge.start]})[0]:Ut.sort(function(Tt,St){var kt=Ve(ie,Et(Ta(Tt))),mn=Ve(ie,Et(Ta(St)));return kt!==mn?kt-mn:Ta(Tt)[Ge.start]-Ta(St)[Ge.start]})[0]},Ua=function(Z,ie){var Ee=Z.page.borderBox.center;return Or(Z.descriptor.id,ie)?tt(Ee,ie.displacedBy.point):Ee},li=function(Z,ie){var Ee=Z.page.borderBox;return Or(Z.descriptor.id,ie)?Bt(Ee,ft(ie.displacedBy.point)):Ee},oi=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.viewport,Ee=Y.destination,Ne=Y.insideDestination,ke=Y.afterCritical,Ke=Ne.filter(function(Ge){return cr({target:li(Ge,ke),destination:Ee,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(Ge,xt){var Ut=_t(Z,qt(Ee,Ua(Ge,ke))),Ft=_t(Z,qt(Ee,Ua(xt,ke)));return UtZ.left&&Y.topZ.top}function Nn(Y){var Z=Y.pageBorderBox,ie=Y.draggable,Ee=Y.candidates,Ne=ie.page.borderBox.center,ke=Ee.map(function(Ke){var Ge=Ke.axis,xt=vt(Ke.axis.line,Z.center[Ge.line],Ke.page.borderBox.center[Ge.crossAxisLine]);return{id:Ke.descriptor.id,distance:_t(Ne,xt)}}).sort(function(Ke,Ge){return Ge.distance-Ke.distance});return ke[0]?ke[0].id:null}function An(Y){var Z=Y.pageBorderBox,ie=Y.draggable,Ee=Y.droppables,Ne=Kt(Ee).filter(function(ke){if(!ke.isEnabled)return!1;var Ke=ke.subject.active;if(!Ke)return!1;if(!gn(Z,Ke))return!1;if(En(Ke)(Z.center))return!0;var Ge=ke.axis,xt=Ke.center[Ge.crossAxisLine],Ut=Z[Ge.crossAxisStart],Ft=Z[Ge.crossAxisEnd],Tt=ct(Ke[Ge.crossAxisStart],Ke[Ge.crossAxisEnd]),St=Tt(Ut),kt=Tt(Ft);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 n(Bt(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,Ee=Y.inHomeList;return ie?Ee&&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,Ee=Y.destination,Ne=Y.insideDestination,ke=Y.last,Ke=Y.viewport,Ge=Y.afterCritical,xt=Ee.axis,Ut=fa(Ee.axis,ie.displaceBy),Ft=Ut.value,Tt=Z[xt.start],St=Z[xt.end],kt=Pe(ie,Ne),mn=st(kt,function(gr){var Nr=gr.descriptor.id,Gr=gr.page.borderBox.center[xt.line],na=Or(Nr,Ge),Hr=bn({displaced:ke,id:Nr});return na?Hr?St<=Gr:TtNr[Ge.start]+na&&TtNr[Ge.start]-Ut+na&&FtNr[Ge.start]+Ut+na&&TtNr[Ge.start]+na&&Ft=Cn)return cn;var ke=Ne/Cn,Ke=dn+Fn*ke,Ge=Ee==="CANCEL"?Ke*Ur:Ke;return Number(Ge.toFixed(2))},Qr=function(Y){var Z=Y.impact,ie=Y.draggable,Ee=Y.dimensions,Ne=Y.viewport,ke=Y.afterCritical,Ke=Ee.draggables,Ge=Ee.droppables,xt=Ht(Z),Ut=xt?Ge[xt]:null,Ft=Ge[ie.descriptor.droppableId],Tt=_n({impact:Z,draggable:ie,draggables:Ke,afterCritical:ke,droppable:Ut||Ft,viewport:Ne}),St=tt(Tt,ie.client.borderBox.center);return St},Wr=function(Y){var Z=Y.draggables,ie=Y.reason,Ee=Y.lastImpact,Ne=Y.home,ke=Y.viewport,Ke=Y.onLiftImpact;if(!Ee.at||ie!=="DROP"){var Ge=wn({draggables:Z,impact:Ke,destination:Ne,viewport:ke,forceShouldAnimate:!0});return{impact:Ge,didDropInsideDroppable:!1}}if(Ee.at.type==="REORDER")return{impact:Ee,didDropInsideDroppable:!0};var xt=Object(b.a)({},Ee,{displaced:Dt});return{impact:xt,didDropInsideDroppable:!0}},ta=function(Y){var Z=Y.getState,ie=Y.dispatch;return function(Ee){return function(Ne){if(Ne.type!=="DROP"){Ee(Ne);return}var ke=Z(),Ke=Ne.payload.reason;if(ke.phase==="COLLECTING"){ie(yt({reason:Ke}));return}if(ke.phase==="IDLE")return;var Ge=ke.phase==="DROP_PENDING"&&ke.isWaiting;Ge&&$(!1),ke.phase==="DRAGGING"||ke.phase==="DROP_PENDING"||$(!1);var xt=ke.critical,Ut=ke.dimensions,Ft=Ut.draggables[ke.critical.draggable.id],Tt=Wr({reason:Ke,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,mn=kt?at(St):null,sr=kt?it(St):null,gr={index:xt.draggable.index,droppableId:xt.droppable.id},Nr={draggableId:Ft.descriptor.id,type:Ft.descriptor.type,source:gr,reason:Ke,mode:ke.movementMode,destination:mn,combine:sr},Gr=Qr({impact:St,draggable:Ft,dimensions:Ut,viewport:ke.viewport,afterCritical:ke.afterCritical}),na={critical:ke.critical,afterCritical:ke.afterCritical,result:Nr,impact:St},Hr=!ut(ke.current.client.offset,Gr)||Boolean(Nr.combine);if(!Hr){ie(Ze({completed:na}));return}var Ia=Pr({current:ke.current.client.offset,destination:Gr,reason:Ke}),Ra={newHomeClientOffset:Gr,dropDuration:Ia,completed:na};ie(_a(Ra))}}},Gn=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 zn(Y){var Z=Y.onWindowScroll;function ie(){Z(Gn())}var Ee=L(ie),Ne=wr(Ee),ke=Te;function Ke(){return ke!==Te}function Ge(){Ke()&&$(!1),ke=be(window,[Ne])}function xt(){Ke()||$(!1),Ee.cancel(),ke(),ke=Te}return{start:Ge,stop:xt,isActive:Ke}}var xn=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},jn=function(Y){var Z=zn({onWindowScroll:function(Ee){Y.dispatch(da({newScroll:Ee}))}});return function(ie){return function(Ee){!Z.isActive()&&Ee.type==="INITIAL_PUBLISH"&&Z.start(),Z.isActive()&&xn(Ee)&&Z.stop(),ie(Ee)}}},Vr=function(Y){var Z=!1,ie=!1,Ee=setTimeout(function(){ie=!0}),Ne=function(Ke){if(Z)return;if(ie)return;Z=!0,Y(Ke),clearTimeout(Ee)};return Ne.wasCalled=function(){return Z},Ne},ua=function(){var Y=[],Z=function(ke){var Ke=ze(Y,function(Ut){return Ut.timerId===ke});Ke!==-1||$(!1);var Ge=Y.splice(Ke,1),xt=Ge[0];xt.callback()},ie=function(ke){var Ke=setTimeout(function(){return Z(Ke)}),Ge={timerId:Ke,callback:ke};Y.push(Ge)},Ee=function(){if(!Y.length)return;var ke=[].concat(Y);Y.length=0,ke.forEach(function(Ke){clearTimeout(Ke.timerId),Ke.callback()})};return{add:ie,flush:Ee}},pr=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},Ca=function(Z,ie){if(Z===ie)return!0;var Ee=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 Ee&&Ne},ha=function(Z,ie){Rr(),ie(),Ir()},Sa=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,Ee,Ne){if(!Z){Ee(Ne(ie));return}var ke=Vr(Ee),Ke={announce:ke};Z(ie,Ke),ke.wasCalled()||Ee(Ne(ie))},br=function(Y,Z){var ie=ua(),Ee=null,Ne=function(St,kt){Ee&&$(!1),ha("onBeforeCapture",function(){var mn=Y().onBeforeCapture;if(mn){var sr={draggableId:St,mode:kt};mn(sr)}})},ke=function(St,kt){Ee&&$(!1),ha("onBeforeDragStart",function(){var mn=Y().onBeforeDragStart;mn&&mn(Sa(St,kt))})},Ke=function(St,kt){Ee&&$(!1);var mn=Sa(St,kt);Ee={mode:kt,lastCritical:St,lastLocation:mn.source,lastCombine:null},ie.add(function(){ha("onDragStart",function(){return Tr(Y().onDragStart,mn,Z,_e.onDragStart)})})},Ge=function(St,kt){var mn=at(kt),sr=it(kt);Ee||$(!1);var gr=!Ca(St,Ee.lastCritical);gr&&(Ee.lastCritical=St);var Nr=!pr(Ee.lastLocation,mn);Nr&&(Ee.lastLocation=mn);var Gr=!aa(Ee.lastCombine,sr);if(Gr&&(Ee.lastCombine=sr),!gr&&!Nr&&!Gr)return;var na=Object(b.a)({},Sa(St,Ee.mode),{combine:sr,destination:mn});ie.add(function(){ha("onDragUpdate",function(){return Tr(Y().onDragUpdate,na,Z,_e.onDragUpdate)})})},xt=function(){Ee||$(!1),ie.flush()},Ut=function(St){Ee||$(!1),Ee=null,ha("onDragEnd",function(){return Tr(Y().onDragEnd,St,Z,_e.onDragEnd)})},Ft=function(){if(!Ee)return;var St=Object(b.a)({},Sa(Ee.lastCritical,Ee.mode),{combine:null,destination:null,reason:"CANCEL"});Ut(St)};return{beforeCapture:Ne,beforeStart:ke,start:Ke,update:Ge,flush:xt,drop:Ut,abort:Ft}},Mr=function(Y,Z){var ie=br(Y,Z);return function(Ee){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 Ke=ke.payload.critical;ie.beforeStart(Ke,ke.payload.movementMode),Ne(ke),ie.start(Ke,ke.payload.movementMode);return}if(ke.type==="DROP_COMPLETE"){var Ge=ke.payload.completed.result;ie.flush(),Ne(ke),ie.drop(Ge);return}if(Ne(ke),ke.type==="FLUSH"){ie.abort();return}var xt=Ee.getState();xt.phase==="DRAGGING"&&ie.update(xt.critical,xt.impact)}}}},tr=function(Y){return function(Z){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){Z(ie);return}var Ee=Y.getState();Ee.phase==="DROP_ANIMATING"||$(!1),Y.dispatch(Ze({completed:Ee.completed}))}}},pa=function(Y){var Z=null,ie=null;function Ee(){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")&&Ee(),Ne(ke),ke.type!=="DROP_ANIMATE")return;var Ke={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,[Ke])})}}},xa=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(Ee){if(Ee.type==="INITIAL_PUBLISH"){Z=!0,Y.tryRecordFocus(Ee.payload.critical.draggable.id),ie(Ee),Y.tryRestoreFocusRecorded();return}if(ie(Ee),!Z)return;if(Ee.type==="FLUSH"){Z=!1,Y.tryRestoreFocusRecorded();return}if(Ee.type==="DROP_COMPLETE"){Z=!1;var Ne=Ee.payload.completed.result;Ne.combine&&Y.tryShiftRecord(Ne.draggableId,Ne.combine.draggableId),Y.tryRestoreFocusRecorded()}}}}},Aa=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(Ee){if(Aa(Ee)){Y.stop(),ie(Ee);return}if(Ee.type==="INITIAL_PUBLISH"){ie(Ee);var Ne=Z.getState();Ne.phase==="DRAGGING"||$(!1),Y.start(Ne);return}ie(Ee),Y.scroll(Z.getState())}}}},Na=function(Y){return function(Z){return function(ie){if(Z(ie),ie.type!=="PUBLISH_WHILE_DRAGGING")return;var Ee=Y.getState();if(Ee.phase!=="DROP_PENDING")return;if(Ee.isWaiting)return;Y.dispatch(dt({reason:Ee.reason}))}}},ka=y.d,Fa=function(Y){var Z=Y.dimensionMarshal,ie=Y.focusMarshal,Ee=Y.styleMarshal,Ne=Y.getResponders,ke=Y.announce,Ke=Y.autoScroller;return Object(y.e)($t,ka(Object(y.a)(et(Ee),xa(Z),Ie(Z),ta,tr,pa,Na,ga(Ke),jn,ba(ie),Mr(Ne,ke))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(Y){var Z=Y.registry,ie=Y.callbacks,Ee=ni(),Ne=null,ke=function(){if(Ne)return;ie.collectionStarting(),Ne=requestAnimationFrame(function(){Ne=null,Rr();var Ft=Ee,Tt=Ft.additions,St=Ft.removals,kt=Ft.modified,mn=Object.keys(Tt).map(function(Nr){return Z.draggable.getById(Nr).getDimension(Ae)}).sort(function(Nr,Gr){return Nr.descriptor.index-Gr.descriptor.index}),sr=Object.keys(kt).map(function(Nr){var Gr=Z.droppable.getById(Nr),na=Gr.callbacks.getScrollWhileDragging();return{droppableId:Nr,scroll:na}}),gr={additions:mn,removals:Object.keys(St),modified:sr};Ee=ni(),Ir(),ie.publish(gr)})},Ke=function(Ft){var Tt=Ft.descriptor.id;Ee.additions[Tt]=Ft,Ee.modified[Ft.descriptor.droppableId]=!0,Ee.removals[Tt]&&delete Ee.removals[Tt],ke()},Ge=function(Ft){var Tt=Ft.descriptor;Ee.removals[Tt.id]=!0,Ee.modified[Tt.droppableId]=!0,Ee.additions[Tt.id]&&delete Ee.additions[Tt.id],ke()},xt=function(){if(!Ne)return;cancelAnimationFrame(Ne),Ne=null,Ee=ni()};return{add:Ke,remove:Ge,stop:xt}}var Ai=function(Y){var Z=Y.scrollHeight,ie=Y.scrollWidth,Ee=Y.height,Ne=Y.width,ke=tt({x:ie,y:Z},{x:Ne,y:Ee}),Ke={x:Math.max(0,ke.x),y:Math.max(0,ke.y)};return Ke},La=function(){var Y=document.documentElement;return Y||$(!1),Y},bi=function(){var Y=La(),Z=Ai({scrollHeight:Y.scrollHeight,scrollWidth:Y.scrollWidth,width:Y.clientWidth,height:Y.clientHeight});return Z},Si=function(){var Y=Gn(),Z=bi(),ie=Y.y,Ee=Y.x,Ne=La(),ke=Ne.clientWidth,Ke=Ne.clientHeight,Ge=Ee+ke,xt=ie+Ke,Ut=n({top:ie,left:Ee,right:Ge,bottom:xt}),Ft={frame:Ut,scroll:{initial:Y,current:Y,max:Z,diff:{value:Ae,displacement:Ae}}};return Ft},ja=function(Y){var Z=Y.critical,ie=Y.scrollOptions,Ee=Y.registry;Rr();var Ne=Si(),ke=Ne.scroll.current,Ke=Z.droppable,Ge=Ee.droppable.getAllByType(Ke.type).map(function(Tt){return Tt.callbacks.getDimensionAndWatchScroll(ke,ie)}),xt=Ee.draggable.getAllByType(Z.draggable.type).map(function(Tt){return Tt.getDimension(ke)}),Ut={draggables:Qt(xt),droppables:Wt(Ge)};Ir();var Ft={dimensions:Ut,critical:Z,viewport:Ne};return Ft};function Ma(Y,Z,ie){if(ie.descriptor.id===Z.id)return!1;if(ie.descriptor.type!==Z.type)return!1;var Ee=Y.droppable.getById(ie.descriptor.droppableId);return!(Ee.descriptor.mode!=="virtual")}var Za=function(Y,Z){var ie=null,Ee=Fi({callbacks:{publish:Z.publishWhileDragging,collectionStarting:Z.collectionStarting},registry:Y}),Ne=function(kt,mn){if(Y.droppable.exists(kt)||$(!1),!ie)return;Z.updateDroppableIsEnabled({id:kt,isEnabled:mn})},ke=function(kt,mn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableIsCombineEnabled({id:kt,isCombineEnabled:mn})},Ke=function(kt,mn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableScroll({id:kt,newScroll:mn})},Ge=function(kt,mn){if(!ie)return;Y.droppable.getById(kt).callbacks.scroll(mn)},xt=function(){if(!ie)return;Ee.stop();var kt=ie.critical.droppable;Y.droppable.getAllByType(kt.type).forEach(function(mn){return mn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null},Ut=function(kt){ie||$(!1);var mn=ie.critical.draggable;kt.type==="ADDITION"&&(Ma(Y,mn,kt.value)&&Ee.add(kt.value)),kt.type==="REMOVAL"&&(Ma(Y,mn,kt.value)&&Ee.remove(kt.value))},Ft=function(kt){ie&&$(!1);var mn=Y.draggable.getById(kt.draggableId),sr=Y.droppable.getById(mn.descriptor.droppableId),gr={draggable:mn.descriptor,droppable:sr.descriptor},Nr=Y.subscribe(Ut);return ie={critical:gr,unsubscribe:Nr},ja({critical:gr,registry:Y,scrollOptions:kt.scrollOptions})},Tt={updateDroppableIsEnabled:Ne,updateDroppableIsCombineEnabled:ke,scrollDroppable:Ge,updateDroppableScroll:Ke,startPublishing:Ft,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=T(function(Y){return Kt(Y).filter(function(Z){return Z.isEnabled?!!Z.frame:!1})}),no=function(Z,ie){var Ee=st(Ii(ie),function(Ne){return Ne.frame||$(!1),En(Ne.frame.pageMarginBox)(Z)});return Ee},ro=function(Y){var Z=Y.center,ie=Y.destination,Ee=Y.droppables;if(ie){var Ne=Ee[ie];return Ne.frame?Ne:null}var ke=no(Z,Ee);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,Ee=Y[Z.size]*mi.maxScrollAtPercentage,Ne={startScrollingFrom:ie,maxScrollValueAt:Ee};return Ne},Io=function(Y){var Z=Y.startOfRange,ie=Y.endOfRange,Ee=Y.current,Ne=ie-Z;if(Ne===0)return 0;var ke=Ee-Z,Ke=ke/Ne;return Ke},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}),Ee=1-ie,Ne=mi.maxPixelScroll*mi.ease(Ee);return Math.ceil(Ne)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(Y,Z){var ie=Z,Ee=co,Ne=Date.now(),ke=Ne-ie;if(ke>=co)return Y;if(keZ.height,ke=ie.width>Z.width;return!ke&&!Ne?Ee:ke&&Ne?null:{x:ke?0:Ee.x,y:Ne?0:Ee.y}},ao=je(function(Y){return Y===0?0:Y}),Ji=function(Y){var Z=Y.dragStartTime,ie=Y.container,Ee=Y.subject,Ne=Y.center,ke=Y.shouldUseTimeDampening,Ke={top:Ne.y-ie.top,right:ie.right-Ne.x,bottom:ie.bottom-Ne.y,left:Ne.x-ie.left},Ge=No({container:ie,distanceToEdges:Ke,dragStartTime:Z,axis:on,shouldUseTimeDampening:ke}),xt=No({container:ie,distanceToEdges:Ke,dragStartTime:Z,axis:vn,shouldUseTimeDampening:ke}),Ut=ao({x:xt,y:Ge});if(ut(Ut,Ae))return null;var Ft=yo({container:ie,subject:Ee,proposedScroll:Ut});return Ft?ut(Ft,Ae)?null:Ft:null},Qi=je(function(Y){return Y===0?0:Y>0?1:-1}),ei=function(){var Y=function(ie,Ee){return ie<0?ie:ie>Ee?ie-Ee:0};return function(Z){var ie=Z.current,Ee=Z.max,Ne=Z.change,ke=Je(ie,Ne),Ke={x:Y(ke.x,Ee.x),y:Y(ke.y,Ee.y)};return ut(Ke,Ae)?null:Ke}}(),Li=function(Z){var ie=Z.max,Ee=Z.current,Ne=Z.change,ke={x:Math.max(Ee.x,ie.x),y:Math.max(Ee.y,ie.y)},Ke=Qi(Ne),Ge=ei({max:ke,current:Ee,change:Ke});return Ge?Ke.x!==0&&Ge.x===0?!0:Ke.y!==0&&Ge.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 Ee=Z.scroll.max,Ne=Z.scroll.current;return ei({current:Ne,max:Ee,change:ie})},Ri=function(Z,ie){var Ee=Z.frame;return Ee?Li({current:Ee.scroll.current,max:Ee.scroll.max,change:ie}):!1},Eo=function(Z,ie){var Ee=Z.frame;return Ee&&Ri(Z,ie)?ei({current:Ee.scroll.current,max:Ee.scroll.max,change:ie}):null},xo=function(Y){var Z=Y.viewport,ie=Y.subject,Ee=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,Ke=Ji({dragStartTime:Ne,container:Z.frame,subject:ie,center:Ee,shouldUseTimeDampening:ke});return Ke&&Di(Z,Ke)?Ke:null},Co=function(Y){var Z=Y.droppable,ie=Y.subject,Ee=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,Ke=Z.frame;if(!Ke)return null;var Ge=Ji({dragStartTime:Ne,container:Ke.pageMarginBox,subject:ie,center:Ee,shouldUseTimeDampening:ke});return Ge&&Ri(Z,Ge)?Ge:null},io=function(Y){var Z=Y.state,ie=Y.dragStartTime,Ee=Y.shouldUseTimeDampening,Ne=Y.scrollWindow,ke=Y.scrollDroppable,Ke=Z.current.page.borderBoxCenter,Ge=Z.dimensions.draggables[Z.critical.draggable.id],xt=Ge.page.marginBox;if(Z.isWindowScrollAllowed){var Ut=Z.viewport,Ft=xo({dragStartTime:ie,viewport:Ut,subject:xt,center:Ke,shouldUseTimeDampening:Ee});if(Ft){Ne(Ft);return}}var Tt=ro({center:Ke,destination:Ht(Z.impact),droppables:Z.dimensions.droppables});if(!Tt)return;var St=Co({dragStartTime:ie,droppable:Tt,subject:xt,center:Ke,shouldUseTimeDampening:Ee});St&&ke(Tt.descriptor.id,St)},Ni=function(Y){var Z=Y.scrollWindow,ie=Y.scrollDroppable,Ee=L(Z),Ne=L(ie),ke=null,Ke=function(Ft){ke||$(!1);var Tt=ke,St=Tt.shouldUseTimeDampening,kt=Tt.dragStartTime;io({state:Ft,scrollWindow:Ee,scrollDroppable:Ne,dragStartTime:kt,shouldUseTimeDampening:St})},Ge=function(Ft){Rr(),ke&&$(!1);var Tt=Date.now(),St=!1,kt=function(){St=!0};io({state:Ft,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:kt,scrollDroppable:kt}),ke={dragStartTime:Tt,shouldUseTimeDampening:St},Ir(),St&&Ke(Ft)},xt=function(){if(!ke)return;Ee.cancel(),Ne.cancel(),ke=null};return{start:Ge,stop:xt,scroll:Ke}},qi=function(Y){var Z=Y.move,ie=Y.scrollDroppable,Ee=Y.scrollWindow,Ne=function(Ut,Ft){var Tt=Je(Ut.current.client.selection,Ft);Z({client:Tt})},ke=function(Ut,Ft){if(!Ri(Ut,Ft))return Ft;var Tt=Eo(Ut,Ft);if(!Tt)return ie(Ut.descriptor.id,Ft),null;var St=tt(Ft,Tt);ie(Ut.descriptor.id,St);var kt=tt(Ft,St);return kt},Ke=function(Ut,Ft,Tt){if(!Ut)return Tt;if(!Di(Ft,Tt))return Tt;var St=Zi(Ft,Tt);if(!St)return Ee(Tt),null;var kt=tt(Tt,St);Ee(kt);var mn=tt(Tt,kt);return mn},Ge=function(Ut){var Ft=Ut.scrollJumpRequest;if(!Ft)return;var Tt=Ht(Ut.impact);Tt||$(!1);var St=ke(Ut.dimensions.droppables[Tt],Ft);if(!St)return;var kt=Ut.viewport,mn=Ke(Ut.isWindowScrollAllowed,kt,St);if(!mn)return;Ne(Ut,mn)};return Ge},ko=function(Y){var Z=Y.scrollDroppable,ie=Y.scrollWindow,Ee=Y.move,Ne=Ni({scrollWindow:ie,scrollDroppable:Z}),ke=qi({move:Ee,scrollWindow:ie,scrollDroppable:Z}),Ke=function(Ut){if(Ut.phase!=="DRAGGING")return;if(Ut.movementMode==="FLUID"){Ne.scroll(Ut);return}if(!Ut.scrollJumpRequest)return;ke(Ut)},Ge={scroll:Ke,start:Ne.start,stop:Ne.stop};return Ge},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(Ee){var Ne=Ee.styles[ie];return Ne?Ee.selector+" { "+Ne+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(Y){var Z=fi(Y),ie=function(){var Ge=` + `},_e={dragHandleUsageInstructions:re,onDragStart:Oe,onDragUpdate:Q,onDragEnd:ve},Ae={x:0,y:0},Je=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}},ut=function(Z,ie){return Z.x===ie.x&&Z.y===ie.y},ft=function(Z){return{x:Z.x!==0?-Z.x:0,y:Z.y!==0?-Z.y:0}},vt=function(Z,ie,Ee){var Ne;return Ee===void 0&&(Ee=0),Ne={},Ne[Z]=ie,Ne[Z==="x"?"y":"x"]=Ee,Ne},_t=function(Z,ie){return Math.sqrt(Math.pow(ie.x-Z.x,2)+Math.pow(ie.y-Z.y,2))},Ve=function(Z,ie){return Math.min.apply(Math,ie.map(function(Ee){return _t(Z,Ee)}))},je=function(Z){return function(ie){return{x:Z(ie.x),y:Z(ie.y)}}},ht=function(Y,Z){var ie=n({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},Bt=function(Z,ie){return{top:Z.top+ie.y,left:Z.left+ie.x,bottom:Z.bottom+ie.y,right:Z.right+ie.x}},Et=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},qe=function(Z,ie){return ie?Bt(Z,ie.scroll.diff.displacement):Z},He=function(Z,ie,Ee){if(Ee&&Ee.increasedBy){var Ne;return Object(b.a)({},Z,(Ne={},Ne[ie.end]=Z[ie.end]+Ee.increasedBy[ie.line],Ne))}return Z},Ye=function(Z,ie){return ie&&ie.shouldClipSubject?ht(ie.pageMarginBox,Z):n(Z)},Ce=function(Y){var Z=Y.page,ie=Y.withPlaceholder,Ee=Y.axis,Ne=Y.frame,ke=qe(Z.marginBox,Ne),Ke=He(ke,Ee,ie),Ge=Ye(Ke,Ne);return{page:Z,withPlaceholder:ie,active:Ge}},Le=function(Y,Z){Y.frame||$(!1);var ie=Y.frame,Ee=tt(Z,ie.scroll.initial),Ne=ft(Ee),ke=Object(b.a)({},ie,{scroll:{initial:ie.scroll.initial,current:Z,diff:{value:Ee,displacement:Ne},max:ie.scroll.max}}),Ke=Ce({page:Y.subject.page,withPlaceholder:Y.subject.withPlaceholder,axis:Y.axis,frame:ke}),Ge=Object(b.a)({},Y,{frame:ke,subject:Ke});return Ge};function We(Y){return Number.isInteger?Number.isInteger(Y):typeof Y=="number"&&isFinite(Y)&&Math.floor(Y)===Y}function Ue(Y){return Object.values?Object.values(Y):Object.keys(Y).map(function(Z){return Y[Z]})}function ze(Y,Z){if(Y.findIndex)return Y.findIndex(Z);for(var ie=0;ieY.bottom,Ut=Ee.leftY.right,Ft=xt&&Ut;if(Ft)return!0;var Tt=xt&&Ke||Ut&&ke;return Tt}},jt=function(Y){var Z=ct(Y.top,Y.bottom),ie=ct(Y.left,Y.right);return function(Ee){var Ne=Z(Ee.top)&&Z(Ee.bottom)&&ie(Ee.left)&&ie(Ee.right);return Ne}},on={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},vn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Wn=function(Y){return function(Z){var ie=ct(Z.top,Z.bottom),Ee=ct(Z.left,Z.right);return function(Ne){return Y===on?ie(Ne.top)&&ie(Ne.bottom):Ee(Ne.left)&&Ee(Ne.right)}}},Kn=function(Z,ie){var Ee=ie.frame?ie.frame.scroll.diff.displacement:Ae;return Bt(Z,Ee)},Hn=function(Z,ie,Ee){return ie.subject.active?Ee(ie.subject.active)(Z):!1},fn=function(Z,ie,Ee){return Ee(ie)(Z)},lr=function(Z){var ie=Z.target,Ee=Z.destination,Ne=Z.viewport,ke=Z.withDroppableDisplacement,Ke=Z.isVisibleThroughFrameFn,Ge=ke?Kn(ie,Ee):ie;return Hn(Ge,Ee,Ke)&&fn(Ge,Ne,Ke)},Zn=function(Z){return lr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Nt}))},cr=function(Z){return lr(Object(b.a)({},Z,{isVisibleThroughFrameFn:jt}))},dr=function(Z){return lr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Wn(Z.destination.axis)}))},Dr=function(Z,ie,Ee){if(typeof Ee=="boolean")return Ee;if(!ie)return!0;var Ne=ie.invisible,ke=ie.visible;if(Ne[Z])return!1;var Ke=ke[Z];return Ke?Ke.shouldAnimate:!0};function hr(Y,Z){var ie=Y.page.marginBox,Ee={top:Z.point.y,right:0,bottom:0,left:Z.point.x};return n(i(ie,Ee))}function sn(Y){var Z=Y.afterDragging,ie=Y.destination,Ee=Y.displacedBy,Ne=Y.viewport,ke=Y.forceShouldAnimate,Ke=Y.last;return Z.reduce(function(xt,Ut){var Ft=hr(Ut,Ee),Tt=Ut.descriptor.id;xt.all.push(Tt);var St=Zn({target:Ft,destination:ie,viewport:Ne,withDroppableDisplacement:!0});if(!St)return xt.invisible[Ut.descriptor.id]=!0,xt;var kt=Dr(Tt,Ke,ke),mn={draggableId:Tt,shouldAnimate:kt};return xt.visible[Tt]=mn,xt},{all:[],visible:{},invisible:{}})}function en(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,Ee=Y.displacedBy,Ne=Y.destination,ke=en(Z,{inHomeList:ie});return{displaced:Dt,displacedBy:Ee,at:{type:"REORDER",destination:{droppableId:Ne.descriptor.id,index:ke}}}}function Fr(Y){var Z=Y.draggable,ie=Y.insideDestination,Ee=Y.destination,Ne=Y.viewport,ke=Y.displacedBy,Ke=Y.last,Ge=Y.index,xt=Y.forceShouldAnimate,Ut=pt(Z,Ee);if(Ge==null)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:Ee});var Ft=st(ie,function(sr){return sr.descriptor.index===Ge});if(!Ft)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:Ee});var Tt=Pe(Z,ie),St=ie.indexOf(Ft),kt=Tt.slice(St),mn=sn({afterDragging:kt,destination:Ee,displacedBy:ke,last:Ke,viewport:Ne.frame,forceShouldAnimate:xt});return{displaced:mn,displacedBy:ke,at:{type:"REORDER",destination:{droppableId:Ee.descriptor.id,index:Ge}}}}function Or(Y,Z){return Boolean(Z.effected[Y])}var xr=function(Y){var Z=Y.isMovingForward,ie=Y.destination,Ee=Y.draggables,Ne=Y.combine,ke=Y.afterCritical;if(!ie.isCombineEnabled)return null;var Ke=Ne.draggableId,Ge=Ee[Ke],xt=Ge.descriptor.index,Ut=Or(Ke,ke);return Ut?Z?xt:xt-1:Z?xt+1:xt},fr=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,Ee=Y.insideDestination,Ne=Y.location;if(!Ee.length)return null;var ke=Ne.index,Ke=Z?ke+1:ke-1,Ge=Ee[0].descriptor.index,xt=Ee[Ee.length-1].descriptor.index,Ut=ie?xt:xt+1;return KeUt?null:Ke},pe=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,Ee=Y.draggable,Ne=Y.draggables,ke=Y.destination,Ke=Y.insideDestination,Ge=Y.previousImpact,xt=Y.viewport,Ut=Y.afterCritical,Ft=Ge.at;if(Ft||$(!1),Ft.type==="REORDER"){var Tt=fr({isMovingForward:Z,isInHomeList:ie,location:Ft.destination,insideDestination:Ke});return Tt==null?null:Fr({draggable:Ee,insideDestination:Ke,destination:ke,viewport:xt,last:Ge.displaced,displacedBy:Ge.displacedBy,index:Tt})}var St=xr({isMovingForward:Z,destination:ke,displaced:Ge.displaced,draggables:Ne,combine:Ft.combine,afterCritical:Ut});return St==null?null:Fr({draggable:Ee,insideDestination:Ke,destination:ke,viewport:xt,last:Ge.displaced,displacedBy:Ge.displacedBy,index:St})},X=function(Y){var Z=Y.displaced,ie=Y.afterCritical,Ee=Y.combineWith,Ne=Y.displacedBy,ke=Boolean(Z.visible[Ee]||Z.invisible[Ee]);return Or(Ee,ie)?ke?Ae:ft(Ne.point):ke?Ne.point:Ae},q=function(Y){var Z=Y.afterCritical,ie=Y.impact,Ee=Y.draggables,Ne=it(ie);Ne||$(!1);var ke=Ne.draggableId,Ke=Ee[ke].page.borderBox.center,Ge=X({displaced:ie.displaced,afterCritical:Z,combineWith:ke,displacedBy:ie.displacedBy});return Je(Ke,Ge)},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,Ee){return ie[Z.crossAxisStart]+Ee.margin[Z.crossAxisStart]+Ee.borderBox[Z.crossAxisSize]/2},ot=function(Z){var ie=Z.axis,Ee=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,Ee.marginBox[ie.end]+oe(ie,Ne),fe(ie,Ee.marginBox,Ne))},Zt=function(Z){var ie=Z.axis,Ee=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,Ee.marginBox[ie.start]-De(ie,Ne),fe(ie,Ee.marginBox,Ne))},Mn=function(Z){var ie=Z.axis,Ee=Z.moveInto,Ne=Z.isMoving;return vt(ie.line,Ee.contentBox[ie.start]+oe(ie,Ne),fe(ie,Ee.contentBox,Ne))},Vn=function(Y){var Z=Y.impact,ie=Y.draggable,Ee=Y.draggables,Ne=Y.droppable,ke=Y.afterCritical,Ke=Fe(Ne.descriptor.id,Ee),Ge=ie.page,xt=Ne.axis;if(!Ke.length)return Mn({axis:xt,moveInto:Ne.page,isMoving:Ge});var Ut=Z.displaced,Ft=Z.displacedBy,Tt=Ut.all[0];if(Tt){var St=Ee[Tt];if(Or(Tt,ke))return Zt({axis:xt,moveRelativeTo:St.page,isMoving:Ge});var kt=w(St.page,Ft.point);return Zt({axis:xt,moveRelativeTo:kt,isMoving:Ge})}var mn=Ke[Ke.length-1];if(mn.descriptor.id===ie.descriptor.id)return Ge.borderBox.center;if(Or(mn.descriptor.id,ke)){var sr=w(mn.page,ft(ke.displacedBy.point));return ot({axis:xt,moveRelativeTo:sr,isMoving:Ge})}return ot({axis:xt,moveRelativeTo:mn.page,isMoving:Ge})},qt=function(Y,Z){var ie=Y.frame;return ie?Je(Z,ie.scroll.diff.displacement):Z},En=function(Z){var ie=Z.impact,Ee=Z.draggable,Ne=Z.droppable,ke=Z.draggables,Ke=Z.afterCritical,Ge=Ee.page.borderBox.center,xt=ie.at;return Ne&&xt?xt.type==="REORDER"?Vn({impact:ie,draggable:Ee,draggables:ke,droppable:Ne,afterCritical:Ke}):q({impact:ie,draggables:ke,afterCritical:Ke}):Ge},un=function(Y){var Z=En(Y),ie=Y.droppable,Ee=ie?qt(ie,Z):Z;return Ee},jr=function(Y,Z){var ie=tt(Z,Y.scroll.initial),Ee=ft(ie),Ne=n({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:Ee}}};return ke};function aa(Y,Z){return Y.map(function(ie){return Z[ie]})}function oa(Y,Z){for(var ie=0;ie1?Ft.sort(function(Tt,St){return Ta(Tt)[Ge.start]-Ta(St)[Ge.start]})[0]:Ut.sort(function(Tt,St){var kt=Ve(ie,Et(Ta(Tt))),mn=Ve(ie,Et(Ta(St)));return kt!==mn?kt-mn:Ta(Tt)[Ge.start]-Ta(St)[Ge.start]})[0]},Ua=function(Z,ie){var Ee=Z.page.borderBox.center;return Or(Z.descriptor.id,ie)?tt(Ee,ie.displacedBy.point):Ee},li=function(Z,ie){var Ee=Z.page.borderBox;return Or(Z.descriptor.id,ie)?Bt(Ee,ft(ie.displacedBy.point)):Ee},oi=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.viewport,Ee=Y.destination,Ne=Y.insideDestination,ke=Y.afterCritical,Ke=Ne.filter(function(Ge){return cr({target:li(Ge,ke),destination:Ee,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(Ge,xt){var Ut=_t(Z,qt(Ee,Ua(Ge,ke))),Ft=_t(Z,qt(Ee,Ua(xt,ke)));return UtZ.left&&Y.topZ.top}function Nn(Y){var Z=Y.pageBorderBox,ie=Y.draggable,Ee=Y.candidates,Ne=ie.page.borderBox.center,ke=Ee.map(function(Ke){var Ge=Ke.axis,xt=vt(Ke.axis.line,Z.center[Ge.line],Ke.page.borderBox.center[Ge.crossAxisLine]);return{id:Ke.descriptor.id,distance:_t(Ne,xt)}}).sort(function(Ke,Ge){return Ge.distance-Ke.distance});return ke[0]?ke[0].id:null}function An(Y){var Z=Y.pageBorderBox,ie=Y.draggable,Ee=Y.droppables,Ne=Kt(Ee).filter(function(ke){if(!ke.isEnabled)return!1;var Ke=ke.subject.active;if(!Ke)return!1;if(!gn(Z,Ke))return!1;if(xn(Ke)(Z.center))return!0;var Ge=ke.axis,xt=Ke.center[Ge.crossAxisLine],Ut=Z[Ge.crossAxisStart],Ft=Z[Ge.crossAxisEnd],Tt=ct(Ke[Ge.crossAxisStart],Ke[Ge.crossAxisEnd]),St=Tt(Ut),kt=Tt(Ft);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 n(Bt(Z,ie))},Pn=function(Y,Z){var ie=Y.frame;return ie?an(Z,ie.scroll.diff.value):Z};function yn(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,Ee=Y.inHomeList;return ie?Ee&&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,Ee=Y.destination,Ne=Y.insideDestination,ke=Y.last,Ke=Y.viewport,Ge=Y.afterCritical,xt=Ee.axis,Ut=fa(Ee.axis,ie.displaceBy),Ft=Ut.value,Tt=Z[xt.start],St=Z[xt.end],kt=Pe(ie,Ne),mn=st(kt,function(gr){var Nr=gr.descriptor.id,Gr=gr.page.borderBox.center[xt.line],ra=Or(Nr,Ge),Hr=yn({displaced:ke,id:Nr});return ra?Hr?St<=Gr:TtNr[Ge.start]+ra&&TtNr[Ge.start]-Ut+ra&&FtNr[Ge.start]+Ut+ra&&TtNr[Ge.start]+ra&&Ft=Cn)return cn;var ke=Ne/Cn,Ke=dn+Fn*ke,Ge=Ee==="CANCEL"?Ke*Ur:Ke;return Number(Ge.toFixed(2))},Qr=function(Y){var Z=Y.impact,ie=Y.draggable,Ee=Y.dimensions,Ne=Y.viewport,ke=Y.afterCritical,Ke=Ee.draggables,Ge=Ee.droppables,xt=Ht(Z),Ut=xt?Ge[xt]:null,Ft=Ge[ie.descriptor.droppableId],Tt=_n({impact:Z,draggable:ie,draggables:Ke,afterCritical:ke,droppable:Ut||Ft,viewport:Ne}),St=tt(Tt,ie.client.borderBox.center);return St},Wr=function(Y){var Z=Y.draggables,ie=Y.reason,Ee=Y.lastImpact,Ne=Y.home,ke=Y.viewport,Ke=Y.onLiftImpact;if(!Ee.at||ie!=="DROP"){var Ge=wn({draggables:Z,impact:Ke,destination:Ne,viewport:ke,forceShouldAnimate:!0});return{impact:Ge,didDropInsideDroppable:!1}}if(Ee.at.type==="REORDER")return{impact:Ee,didDropInsideDroppable:!0};var xt=Object(b.a)({},Ee,{displaced:Dt});return{impact:xt,didDropInsideDroppable:!0}},ta=function(Y){var Z=Y.getState,ie=Y.dispatch;return function(Ee){return function(Ne){if(Ne.type!=="DROP"){Ee(Ne);return}var ke=Z(),Ke=Ne.payload.reason;if(ke.phase==="COLLECTING"){ie(yt({reason:Ke}));return}if(ke.phase==="IDLE")return;var Ge=ke.phase==="DROP_PENDING"&&ke.isWaiting;Ge&&$(!1),ke.phase==="DRAGGING"||ke.phase==="DROP_PENDING"||$(!1);var xt=ke.critical,Ut=ke.dimensions,Ft=Ut.draggables[ke.critical.draggable.id],Tt=Wr({reason:Ke,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,mn=kt?at(St):null,sr=kt?it(St):null,gr={index:xt.draggable.index,droppableId:xt.droppable.id},Nr={draggableId:Ft.descriptor.id,type:Ft.descriptor.type,source:gr,reason:Ke,mode:ke.movementMode,destination:mn,combine:sr},Gr=Qr({impact:St,draggable:Ft,dimensions:Ut,viewport:ke.viewport,afterCritical:ke.afterCritical}),ra={critical:ke.critical,afterCritical:ke.afterCritical,result:Nr,impact:St},Hr=!ut(ke.current.client.offset,Gr)||Boolean(Nr.combine);if(!Hr){ie(Ze({completed:ra}));return}var Ia=Pr({current:ke.current.client.offset,destination:Gr,reason:Ke}),Ra={newHomeClientOffset:Gr,dropDuration:Ia,completed:ra};ie(_a(Ra))}}},zn=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(zn())}var Ee=L(ie),Ne=wr(Ee),ke=Te;function Ke(){return ke!==Te}function Ge(){Ke()&&$(!1),ke=be(window,[Ne])}function xt(){Ke()||$(!1),Ee.cancel(),ke(),ke=Te}return{start:Ge,stop:xt,isActive:Ke}}var bn=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},jn=function(Y){var Z=Gn({onWindowScroll:function(Ee){Y.dispatch(da({newScroll:Ee}))}});return function(ie){return function(Ee){!Z.isActive()&&Ee.type==="INITIAL_PUBLISH"&&Z.start(),Z.isActive()&&bn(Ee)&&Z.stop(),ie(Ee)}}},Vr=function(Y){var Z=!1,ie=!1,Ee=setTimeout(function(){ie=!0}),Ne=function(Ke){if(Z)return;if(ie)return;Z=!0,Y(Ke),clearTimeout(Ee)};return Ne.wasCalled=function(){return Z},Ne},ua=function(){var Y=[],Z=function(ke){var Ke=ze(Y,function(Ut){return Ut.timerId===ke});Ke!==-1||$(!1);var Ge=Y.splice(Ke,1),xt=Ge[0];xt.callback()},ie=function(ke){var Ke=setTimeout(function(){return Z(Ke)}),Ge={timerId:Ke,callback:ke};Y.push(Ge)},Ee=function(){if(!Y.length)return;var ke=[].concat(Y);Y.length=0,ke.forEach(function(Ke){clearTimeout(Ke.timerId),Ke.callback()})};return{add:ie,flush:Ee}},pr=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.droppableId===ie.droppableId&&Z.index===ie.index},na=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.draggableId===ie.draggableId&&Z.droppableId===ie.droppableId},Ca=function(Z,ie){if(Z===ie)return!0;var Ee=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 Ee&&Ne},ha=function(Z,ie){Rr(),ie(),Ir()},Sa=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,Ee,Ne){if(!Z){Ee(Ne(ie));return}var ke=Vr(Ee),Ke={announce:ke};Z(ie,Ke),ke.wasCalled()||Ee(Ne(ie))},br=function(Y,Z){var ie=ua(),Ee=null,Ne=function(St,kt){Ee&&$(!1),ha("onBeforeCapture",function(){var mn=Y().onBeforeCapture;if(mn){var sr={draggableId:St,mode:kt};mn(sr)}})},ke=function(St,kt){Ee&&$(!1),ha("onBeforeDragStart",function(){var mn=Y().onBeforeDragStart;mn&&mn(Sa(St,kt))})},Ke=function(St,kt){Ee&&$(!1);var mn=Sa(St,kt);Ee={mode:kt,lastCritical:St,lastLocation:mn.source,lastCombine:null},ie.add(function(){ha("onDragStart",function(){return Tr(Y().onDragStart,mn,Z,_e.onDragStart)})})},Ge=function(St,kt){var mn=at(kt),sr=it(kt);Ee||$(!1);var gr=!Ca(St,Ee.lastCritical);gr&&(Ee.lastCritical=St);var Nr=!pr(Ee.lastLocation,mn);Nr&&(Ee.lastLocation=mn);var Gr=!na(Ee.lastCombine,sr);if(Gr&&(Ee.lastCombine=sr),!gr&&!Nr&&!Gr)return;var ra=Object(b.a)({},Sa(St,Ee.mode),{combine:sr,destination:mn});ie.add(function(){ha("onDragUpdate",function(){return Tr(Y().onDragUpdate,ra,Z,_e.onDragUpdate)})})},xt=function(){Ee||$(!1),ie.flush()},Ut=function(St){Ee||$(!1),Ee=null,ha("onDragEnd",function(){return Tr(Y().onDragEnd,St,Z,_e.onDragEnd)})},Ft=function(){if(!Ee)return;var St=Object(b.a)({},Sa(Ee.lastCritical,Ee.mode),{combine:null,destination:null,reason:"CANCEL"});Ut(St)};return{beforeCapture:Ne,beforeStart:ke,start:Ke,update:Ge,flush:xt,drop:Ut,abort:Ft}},Mr=function(Y,Z){var ie=br(Y,Z);return function(Ee){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 Ke=ke.payload.critical;ie.beforeStart(Ke,ke.payload.movementMode),Ne(ke),ie.start(Ke,ke.payload.movementMode);return}if(ke.type==="DROP_COMPLETE"){var Ge=ke.payload.completed.result;ie.flush(),Ne(ke),ie.drop(Ge);return}if(Ne(ke),ke.type==="FLUSH"){ie.abort();return}var xt=Ee.getState();xt.phase==="DRAGGING"&&ie.update(xt.critical,xt.impact)}}}},tr=function(Y){return function(Z){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){Z(ie);return}var Ee=Y.getState();Ee.phase==="DROP_ANIMATING"||$(!1),Y.dispatch(Ze({completed:Ee.completed}))}}},pa=function(Y){var Z=null,ie=null;function Ee(){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")&&Ee(),Ne(ke),ke.type!=="DROP_ANIMATE")return;var Ke={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,[Ke])})}}},xa=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(Ee){if(Ee.type==="INITIAL_PUBLISH"){Z=!0,Y.tryRecordFocus(Ee.payload.critical.draggable.id),ie(Ee),Y.tryRestoreFocusRecorded();return}if(ie(Ee),!Z)return;if(Ee.type==="FLUSH"){Z=!1,Y.tryRestoreFocusRecorded();return}if(Ee.type==="DROP_COMPLETE"){Z=!1;var Ne=Ee.payload.completed.result;Ne.combine&&Y.tryShiftRecord(Ne.draggableId,Ne.combine.draggableId),Y.tryRestoreFocusRecorded()}}}}},Aa=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(Ee){if(Aa(Ee)){Y.stop(),ie(Ee);return}if(Ee.type==="INITIAL_PUBLISH"){ie(Ee);var Ne=Z.getState();Ne.phase==="DRAGGING"||$(!1),Y.start(Ne);return}ie(Ee),Y.scroll(Z.getState())}}}},Na=function(Y){return function(Z){return function(ie){if(Z(ie),ie.type!=="PUBLISH_WHILE_DRAGGING")return;var Ee=Y.getState();if(Ee.phase!=="DROP_PENDING")return;if(Ee.isWaiting)return;Y.dispatch(dt({reason:Ee.reason}))}}},ka=y.d,Fa=function(Y){var Z=Y.dimensionMarshal,ie=Y.focusMarshal,Ee=Y.styleMarshal,Ne=Y.getResponders,ke=Y.announce,Ke=Y.autoScroller;return Object(y.e)($t,ka(Object(y.a)(et(Ee),xa(Z),Ie(Z),ta,tr,pa,Na,ga(Ke),jn,ba(ie),Mr(Ne,ke))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(Y){var Z=Y.registry,ie=Y.callbacks,Ee=ni(),Ne=null,ke=function(){if(Ne)return;ie.collectionStarting(),Ne=requestAnimationFrame(function(){Ne=null,Rr();var Ft=Ee,Tt=Ft.additions,St=Ft.removals,kt=Ft.modified,mn=Object.keys(Tt).map(function(Nr){return Z.draggable.getById(Nr).getDimension(Ae)}).sort(function(Nr,Gr){return Nr.descriptor.index-Gr.descriptor.index}),sr=Object.keys(kt).map(function(Nr){var Gr=Z.droppable.getById(Nr),ra=Gr.callbacks.getScrollWhileDragging();return{droppableId:Nr,scroll:ra}}),gr={additions:mn,removals:Object.keys(St),modified:sr};Ee=ni(),Ir(),ie.publish(gr)})},Ke=function(Ft){var Tt=Ft.descriptor.id;Ee.additions[Tt]=Ft,Ee.modified[Ft.descriptor.droppableId]=!0,Ee.removals[Tt]&&delete Ee.removals[Tt],ke()},Ge=function(Ft){var Tt=Ft.descriptor;Ee.removals[Tt.id]=!0,Ee.modified[Tt.droppableId]=!0,Ee.additions[Tt.id]&&delete Ee.additions[Tt.id],ke()},xt=function(){if(!Ne)return;cancelAnimationFrame(Ne),Ne=null,Ee=ni()};return{add:Ke,remove:Ge,stop:xt}}var Ai=function(Y){var Z=Y.scrollHeight,ie=Y.scrollWidth,Ee=Y.height,Ne=Y.width,ke=tt({x:ie,y:Z},{x:Ne,y:Ee}),Ke={x:Math.max(0,ke.x),y:Math.max(0,ke.y)};return Ke},La=function(){var Y=document.documentElement;return Y||$(!1),Y},bi=function(){var Y=La(),Z=Ai({scrollHeight:Y.scrollHeight,scrollWidth:Y.scrollWidth,width:Y.clientWidth,height:Y.clientHeight});return Z},Si=function(){var Y=zn(),Z=bi(),ie=Y.y,Ee=Y.x,Ne=La(),ke=Ne.clientWidth,Ke=Ne.clientHeight,Ge=Ee+ke,xt=ie+Ke,Ut=n({top:ie,left:Ee,right:Ge,bottom:xt}),Ft={frame:Ut,scroll:{initial:Y,current:Y,max:Z,diff:{value:Ae,displacement:Ae}}};return Ft},ja=function(Y){var Z=Y.critical,ie=Y.scrollOptions,Ee=Y.registry;Rr();var Ne=Si(),ke=Ne.scroll.current,Ke=Z.droppable,Ge=Ee.droppable.getAllByType(Ke.type).map(function(Tt){return Tt.callbacks.getDimensionAndWatchScroll(ke,ie)}),xt=Ee.draggable.getAllByType(Z.draggable.type).map(function(Tt){return Tt.getDimension(ke)}),Ut={draggables:Qt(xt),droppables:Wt(Ge)};Ir();var Ft={dimensions:Ut,critical:Z,viewport:Ne};return Ft};function Ma(Y,Z,ie){if(ie.descriptor.id===Z.id)return!1;if(ie.descriptor.type!==Z.type)return!1;var Ee=Y.droppable.getById(ie.descriptor.droppableId);return!(Ee.descriptor.mode!=="virtual")}var Za=function(Y,Z){var ie=null,Ee=Fi({callbacks:{publish:Z.publishWhileDragging,collectionStarting:Z.collectionStarting},registry:Y}),Ne=function(kt,mn){if(Y.droppable.exists(kt)||$(!1),!ie)return;Z.updateDroppableIsEnabled({id:kt,isEnabled:mn})},ke=function(kt,mn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableIsCombineEnabled({id:kt,isCombineEnabled:mn})},Ke=function(kt,mn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableScroll({id:kt,newScroll:mn})},Ge=function(kt,mn){if(!ie)return;Y.droppable.getById(kt).callbacks.scroll(mn)},xt=function(){if(!ie)return;Ee.stop();var kt=ie.critical.droppable;Y.droppable.getAllByType(kt.type).forEach(function(mn){return mn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null},Ut=function(kt){ie||$(!1);var mn=ie.critical.draggable;kt.type==="ADDITION"&&(Ma(Y,mn,kt.value)&&Ee.add(kt.value)),kt.type==="REMOVAL"&&(Ma(Y,mn,kt.value)&&Ee.remove(kt.value))},Ft=function(kt){ie&&$(!1);var mn=Y.draggable.getById(kt.draggableId),sr=Y.droppable.getById(mn.descriptor.droppableId),gr={draggable:mn.descriptor,droppable:sr.descriptor},Nr=Y.subscribe(Ut);return ie={critical:gr,unsubscribe:Nr},ja({critical:gr,registry:Y,scrollOptions:kt.scrollOptions})},Tt={updateDroppableIsEnabled:Ne,updateDroppableIsCombineEnabled:ke,scrollDroppable:Ge,updateDroppableScroll:Ke,startPublishing:Ft,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=T(function(Y){return Kt(Y).filter(function(Z){return Z.isEnabled?!!Z.frame:!1})}),no=function(Z,ie){var Ee=st(Ii(ie),function(Ne){return Ne.frame||$(!1),xn(Ne.frame.pageMarginBox)(Z)});return Ee},ro=function(Y){var Z=Y.center,ie=Y.destination,Ee=Y.droppables;if(ie){var Ne=Ee[ie];return Ne.frame?Ne:null}var ke=no(Z,Ee);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,Ee=Y[Z.size]*mi.maxScrollAtPercentage,Ne={startScrollingFrom:ie,maxScrollValueAt:Ee};return Ne},Io=function(Y){var Z=Y.startOfRange,ie=Y.endOfRange,Ee=Y.current,Ne=ie-Z;if(Ne===0)return 0;var ke=Ee-Z,Ke=ke/Ne;return Ke},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}),Ee=1-ie,Ne=mi.maxPixelScroll*mi.ease(Ee);return Math.ceil(Ne)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(Y,Z){var ie=Z,Ee=co,Ne=Date.now(),ke=Ne-ie;if(ke>=co)return Y;if(keZ.height,ke=ie.width>Z.width;return!ke&&!Ne?Ee:ke&&Ne?null:{x:ke?0:Ee.x,y:Ne?0:Ee.y}},ao=je(function(Y){return Y===0?0:Y}),Ji=function(Y){var Z=Y.dragStartTime,ie=Y.container,Ee=Y.subject,Ne=Y.center,ke=Y.shouldUseTimeDampening,Ke={top:Ne.y-ie.top,right:ie.right-Ne.x,bottom:ie.bottom-Ne.y,left:Ne.x-ie.left},Ge=No({container:ie,distanceToEdges:Ke,dragStartTime:Z,axis:on,shouldUseTimeDampening:ke}),xt=No({container:ie,distanceToEdges:Ke,dragStartTime:Z,axis:vn,shouldUseTimeDampening:ke}),Ut=ao({x:xt,y:Ge});if(ut(Ut,Ae))return null;var Ft=yo({container:ie,subject:Ee,proposedScroll:Ut});return Ft?ut(Ft,Ae)?null:Ft:null},Qi=je(function(Y){return Y===0?0:Y>0?1:-1}),ei=function(){var Y=function(ie,Ee){return ie<0?ie:ie>Ee?ie-Ee:0};return function(Z){var ie=Z.current,Ee=Z.max,Ne=Z.change,ke=Je(ie,Ne),Ke={x:Y(ke.x,Ee.x),y:Y(ke.y,Ee.y)};return ut(Ke,Ae)?null:Ke}}(),Li=function(Z){var ie=Z.max,Ee=Z.current,Ne=Z.change,ke={x:Math.max(Ee.x,ie.x),y:Math.max(Ee.y,ie.y)},Ke=Qi(Ne),Ge=ei({max:ke,current:Ee,change:Ke});return Ge?Ke.x!==0&&Ge.x===0?!0:Ke.y!==0&&Ge.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 Ee=Z.scroll.max,Ne=Z.scroll.current;return ei({current:Ne,max:Ee,change:ie})},Ri=function(Z,ie){var Ee=Z.frame;return Ee?Li({current:Ee.scroll.current,max:Ee.scroll.max,change:ie}):!1},Eo=function(Z,ie){var Ee=Z.frame;return Ee&&Ri(Z,ie)?ei({current:Ee.scroll.current,max:Ee.scroll.max,change:ie}):null},xo=function(Y){var Z=Y.viewport,ie=Y.subject,Ee=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,Ke=Ji({dragStartTime:Ne,container:Z.frame,subject:ie,center:Ee,shouldUseTimeDampening:ke});return Ke&&Di(Z,Ke)?Ke:null},Co=function(Y){var Z=Y.droppable,ie=Y.subject,Ee=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,Ke=Z.frame;if(!Ke)return null;var Ge=Ji({dragStartTime:Ne,container:Ke.pageMarginBox,subject:ie,center:Ee,shouldUseTimeDampening:ke});return Ge&&Ri(Z,Ge)?Ge:null},io=function(Y){var Z=Y.state,ie=Y.dragStartTime,Ee=Y.shouldUseTimeDampening,Ne=Y.scrollWindow,ke=Y.scrollDroppable,Ke=Z.current.page.borderBoxCenter,Ge=Z.dimensions.draggables[Z.critical.draggable.id],xt=Ge.page.marginBox;if(Z.isWindowScrollAllowed){var Ut=Z.viewport,Ft=xo({dragStartTime:ie,viewport:Ut,subject:xt,center:Ke,shouldUseTimeDampening:Ee});if(Ft){Ne(Ft);return}}var Tt=ro({center:Ke,destination:Ht(Z.impact),droppables:Z.dimensions.droppables});if(!Tt)return;var St=Co({dragStartTime:ie,droppable:Tt,subject:xt,center:Ke,shouldUseTimeDampening:Ee});St&&ke(Tt.descriptor.id,St)},Ni=function(Y){var Z=Y.scrollWindow,ie=Y.scrollDroppable,Ee=L(Z),Ne=L(ie),ke=null,Ke=function(Ft){ke||$(!1);var Tt=ke,St=Tt.shouldUseTimeDampening,kt=Tt.dragStartTime;io({state:Ft,scrollWindow:Ee,scrollDroppable:Ne,dragStartTime:kt,shouldUseTimeDampening:St})},Ge=function(Ft){Rr(),ke&&$(!1);var Tt=Date.now(),St=!1,kt=function(){St=!0};io({state:Ft,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:kt,scrollDroppable:kt}),ke={dragStartTime:Tt,shouldUseTimeDampening:St},Ir(),St&&Ke(Ft)},xt=function(){if(!ke)return;Ee.cancel(),Ne.cancel(),ke=null};return{start:Ge,stop:xt,scroll:Ke}},qi=function(Y){var Z=Y.move,ie=Y.scrollDroppable,Ee=Y.scrollWindow,Ne=function(Ut,Ft){var Tt=Je(Ut.current.client.selection,Ft);Z({client:Tt})},ke=function(Ut,Ft){if(!Ri(Ut,Ft))return Ft;var Tt=Eo(Ut,Ft);if(!Tt)return ie(Ut.descriptor.id,Ft),null;var St=tt(Ft,Tt);ie(Ut.descriptor.id,St);var kt=tt(Ft,St);return kt},Ke=function(Ut,Ft,Tt){if(!Ut)return Tt;if(!Di(Ft,Tt))return Tt;var St=Zi(Ft,Tt);if(!St)return Ee(Tt),null;var kt=tt(Tt,St);Ee(kt);var mn=tt(Tt,kt);return mn},Ge=function(Ut){var Ft=Ut.scrollJumpRequest;if(!Ft)return;var Tt=Ht(Ut.impact);Tt||$(!1);var St=ke(Ut.dimensions.droppables[Tt],Ft);if(!St)return;var kt=Ut.viewport,mn=Ke(Ut.isWindowScrollAllowed,kt,St);if(!mn)return;Ne(Ut,mn)};return Ge},ko=function(Y){var Z=Y.scrollDroppable,ie=Y.scrollWindow,Ee=Y.move,Ne=Ni({scrollWindow:ie,scrollDroppable:Z}),ke=qi({move:Ee,scrollWindow:ie,scrollDroppable:Z}),Ke=function(Ut){if(Ut.phase!=="DRAGGING")return;if(Ut.movementMode==="FLUID"){Ne.scroll(Ut);return}if(!Ut.scrollJumpRequest)return;ke(Ut)},Ge={scroll:Ke,start:Ne.start,stop:Ne.stop};return Ge},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(Ee){var Ne=Ee.styles[ie];return Ne?Ee.selector+" { "+Ne+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(Y){var Z=fi(Y),ie=function(){var Ge=` cursor: -webkit-grab; cursor: grab; `;return{selector:Z(so.contextId),styles:{always:` @@ -548,7 +548,7 @@ headers: `+(0,b.default)(Pt),je.data=ht,je.path=D.path,je.status=me,je.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(M.useRef)(Y);return Object(M.useEffect)(function(){Z.current=Y}),Z}function xi(){var Y=null;function Z(){return Boolean(Y)}function ie(Ke){return Ke===Y}function Ee(Ke){Y&&$(!1);var Ge={abandon:Ke};return Y=Ge,Ge}function Ne(){Y||$(!1),Y=null}function ke(){Y&&(Y.abandon(),Ne())}return{isClaimed:Z,isActive:ie,claim:Ee,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(Ee){return"on"+Ee 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,Ee=Y.getPhase,Ne=Y.setPhase;return[{eventName:"mousemove",fn:function(Ke){var Ge=Ke.button,xt=Ke.clientX,Ut=Ke.clientY;if(Ge!==Zs)return;var Ft={x:xt,y:Ut},Tt=Ee();if(Tt.type==="DRAGGING"){Ke.preventDefault(),Tt.actions.move(Ft);return}Tt.type==="PENDING"||$(!1);var St=Tt.point;if(!Ho(St,Ft))return;Ke.preventDefault();var kt=Tt.actions.fluidLift(Ft);Ne({type:"DRAGGING",actions:kt})}},{eventName:"mouseup",fn:function(Ke){var Ge=Ee();if(Ge.type!=="DRAGGING"){Z();return}Ke.preventDefault(),Ge.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(Ke){Ee().type==="DRAGGING"&&Ke.preventDefault(),Z()}},{eventName:"keydown",fn:function(Ke){var Ge=Ee();if(Ge.type==="PENDING"){Z();return}if(Ke.keyCode===Qa){Ke.preventDefault(),Z();return}Rs(Ke)}},{eventName:"resize",fn:Z},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ee().type==="PENDING"&&Z()}},{eventName:"webkitmouseforcedown",fn:function(Ke){var Ge=Ee();if(Ge.type!=="IDLE"||$(!1),Ge.actions.shouldRespectForcePress()){Z();return}Ke.preventDefault()}},{eventName:gs,fn:Z}]}function $s(Y){var Z=Object(M.useRef)(vs),ie=Object(M.useRef)(Te),Ee=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,Ke,{sourceEvent:Tt});if(!kt)return;Tt.preventDefault();var mn={x:Tt.clientX,y:Tt.clientY};ie.current(),Ut(kt,mn)}}},[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,Ee],Tt)},[Ne,Ee]),Ke=a(function(){var Ft=Z.current;if(Ft.type==="IDLE")return;Z.current=vs,ie.current(),ke()},[ke]),Ge=a(function(){var Ft=Z.current;Ke(),Ft.type==="DRAGGING"&&Ft.actions.cancel({shouldBlockNextClick:!0}),Ft.type==="PENDING"&&Ft.actions.abort()},[Ke]),xt=a(function(){var Tt={capture:!0,passive:!1},St=_s({cancel:Ge,completed:Ke,getPhase:function(){return Z.current},setPhase:function(mn){Z.current=mn}});ie.current=be(window,St,Tt)},[Ge,Ke]),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 Ee(){Z(),Y.drop()}return[{eventName:"keydown",fn:function(ke){if(ke.keyCode===Qa){ke.preventDefault(),ie();return}if(ke.keyCode===As){ke.preventDefault(),Ee();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(M.useRef)(el),ie=f(function(){return{eventName:"keydown",fn:function(ke){if(ke.defaultPrevented)return;if(ke.keyCode!==As)return;var Ke=Y.findClosestDraggableId(ke);if(!Ke)return;var Ge=Y.tryGetLock(Ke,Ft,{sourceEvent:ke});if(!Ge)return;ke.preventDefault();var xt=!0,Ut=Ge.snapLift();Z.current();function Ft(){xt||$(!1),xt=!1,Z.current(),Ee()}Z.current=be(window,tl(Ut,Ft),{capture:!0,passive:!1})}}},[Y]),Ee=a(function(){var ke={passive:!1,capture:!0};Z.current=be(window,[ie],ke)},[ie]);ai(function(){return Ee(),function(){Z.current()}},[Ee])}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,Ee=Y.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ke){var Ke=Ee();if(Ke.type!=="DRAGGING"){Z();return}Ke.hasMoved=!0;var Ge=ke.touches[0],xt=Ge.clientX,Ut=Ge.clientY,Ft={x:xt,y:Ut};ke.preventDefault(),Ke.actions.move(Ft)}},{eventName:"touchend",fn:function(ke){var Ke=Ee();if(Ke.type!=="DRAGGING"){Z();return}ke.preventDefault(),Ke.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(ke){if(Ee().type!=="DRAGGING"){Z();return}ke.preventDefault(),Z()}},{eventName:"touchforcechange",fn:function(ke){var Ke=Ee();Ke.type!=="IDLE"||$(!1);var Ge=ke.touches[0];if(!Ge)return;var xt=Ge.force>=rl;if(!xt)return;var Ut=Ke.actions.shouldRespectForcePress();if(Ke.type==="PENDING"){Ut&&Z();return}if(Ut){if(Ke.hasMoved){ke.preventDefault();return}Z();return}ke.preventDefault()}},{eventName:gs,fn:Z}]}function bs(Y){var Z=Object(M.useRef)(Ko),ie=Object(M.useRef)(Te),Ee=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 mn=Y.findClosestDraggableId(kt);if(!mn)return;var sr=Y.tryGetLock(mn,Ge,{sourceEvent:kt});if(!sr)return;var gr=kt.touches[0],Nr=gr.clientX,Gr=gr.clientY,na={x:Nr,y:Gr};ie.current(),Tt(sr,na)}}},[Y]),Ke=a(function(){var kt={capture:!0,passive:!1};ie.current=be(window,[ke],kt)},[ke]),Ge=a(function(){var St=Z.current;if(St.type==="IDLE")return;St.type==="PENDING"&&clearTimeout(St.longPressTimerId),Ne(Ko),ie.current(),Ke()},[Ke,Ne]),xt=a(function(){var St=Z.current;Ge(),St.type==="DRAGGING"&&St.actions.cancel({shouldBlockNextClick:!0}),St.type==="PENDING"&&St.actions.abort()},[Ge]),Ut=a(function(){var kt={capture:!0,passive:!1},mn={cancel:xt,completed:Ge,getPhase:Ee},sr=be(window,Go(mn),kt),gr=be(window,al(mn),kt);ie.current=function(){sr(),gr()}},[xt,Ee,Ge]),Ft=a(function(){var kt=Ee();kt.type==="PENDING"||$(!1);var mn=kt.actions.fluidLift(kt.point);Ne({type:"DRAGGING",actions:mn,hasMoved:!1})},[Ee,Ne]),Tt=a(function(kt,mn){Ee().type==="IDLE"||$(!1);var sr=setTimeout(Ft,nl);Ne({type:"PENDING",point:mn,actions:kt,longPressTimerId:sr}),Ut()},[Ut,Ee,Ne,Ft]);ai(function(){return Ke(),function(){ie.current();var mn=Ee();mn.type==="PENDING"&&(clearTimeout(mn.longPressTimerId),Ne(Ko))}},[Ee,Ke,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 Ee=Z.getAttribute("contenteditable");return Ee==="true"||Ee===""?!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 n(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(Ee){return Ee 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 Ee=Xo(Y),Ne=Nl(ie,Ee);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+'"]',Ee=Ct(document.querySelectorAll(ie)),Ne=st(Ee,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,Ee=Y.isLockActive,Ne=Y.shouldWarn;return Ee()?!(Z!==ie):!1}function Yo(Y){var Z=Y.lockAPI,ie=Y.store,Ee=Y.registry,Ne=Y.draggableId;if(Z.isClaimed())return!1;var ke=Ee.draggable.findById(Ne);return ke&&ke.options.isEnabled?!!to(ie.getState(),Ne):!1}function ns(Y){var Z=Y.lockAPI,ie=Y.contextId,Ee=Y.store,Ne=Y.registry,ke=Y.draggableId,Ke=Y.forceSensorStop,Ge=Y.sourceEvent,xt=Yo({lockAPI:Z,store:Ee,registry:Ne,draggableId:ke});if(!xt)return null;var Ut=Ne.draggable.getById(ke),Ft=dl(ie,Ut.descriptor.id);if(!Ft)return null;if(Ge&&!Ut.options.canDragInteractiveElements&&zo(Ft,Ge))return null;var Tt=Z.claim(Ke||Te),St="PRE_DRAG";function kt(){return Ut.options.shouldRespectForcePress}function mn(){return Z.isActive(Tt)}function sr(Ra,za){Do({expected:Ra,phase:St,isLockActive:mn,shouldWarn:!0})&&Ee.dispatch(za())}var gr=sr.bind(null,"DRAGGING");function Nr(Ra){function za(){Z.release(),St="COMPLETED"}St!=="PRE_DRAG"&&(za(),St==="PRE_DRAG"||$(!1)),Ee.dispatch(Xn(Ra.liftActionArgs)),St="DRAGGING";function si(t,p){if(p===void 0&&(p={shouldBlockNextClick:!1}),Ra.cleanup(),p.shouldBlockNextClick){var B=be(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(B)}za(),Ee.dispatch(dt({reason:t}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:St,isLockActive:mn,shouldWarn:!1})},shouldRespectForcePress:kt,drop:function(p){return si("DROP",p)},cancel:function(p){return si("CANCEL",p)}},Ra.actions)}function Gr(Ra){var za=L(function(t){gr(function(){return or({client:t})})}),si=Nr({liftActionArgs:{id:ke,clientSelection:Ra,movementMode:"FLUID"},cleanup:function(){return za.cancel()},actions:{move:za}});return Object(b.a)({},si,{move:za})}function na(){var Ra={moveUp:function(){return gr(_r)},moveRight:function(){return gr(Kr)},moveDown:function(){return gr(Sr)},moveLeft:function(){return gr(Jr)}};return Nr({liftActionArgs:{id:ke,clientSelection:sl(Ft),movementMode:"SNAP"},cleanup:Te,actions:Ra})}function Hr(){var Ra=Do({expected:"PRE_DRAG",phase:St,isLockActive:mn,shouldWarn:!0});Ra&&Z.release()}var Ia={isActive:function(){return Do({expected:"PRE_DRAG",phase:St,isLockActive:mn,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,Ee=Y.registry,Ne=Y.customSensors,ke=Y.enableDefaultSensors,Ke=[].concat(ke?fl:[],Ne||[]),Ge=Object(M.useState)(function(){return xi()})[0],xt=a(function(Gr,na){Gr.isDragging&&!na.isDragging&&Ge.tryAbandon()},[Ge]);ai(function(){var Gr=ie.getState(),na=ie.subscribe(function(){var Hr=ie.getState();xt(Gr,Hr),Gr=Hr});return na},[Ge,ie,xt]),ai(function(){return Ge.tryAbandon},[Ge.tryAbandon]);var Ut=a(function(Nr){return Yo({lockAPI:Ge,registry:Ee,store:ie,draggableId:Nr})},[Ge,Ee,ie]),Ft=a(function(Nr,Gr,na){return ns({lockAPI:Ge,registry:Ee,contextId:Z,store:ie,draggableId:Nr,forceSensorStop:Gr,sourceEvent:na&&na.sourceEvent?na.sourceEvent:null})},[Z,Ge,Ee,ie]),Tt=a(function(Nr){return cl(Z,Nr)},[Z]),St=a(function(Nr){var Gr=Ee.draggable.findById(Nr);return Gr?Gr.options:null},[Ee.draggable]),kt=a(function(){if(!Ge.isClaimed())return;Ge.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(Oa())},[Ge,ie]),mn=a(Ge.isClaimed,[Ge]),sr=f(function(){return{canGetLock:Ut,tryGetLock:Ft,findClosestDraggableId:Tt,findOptionsForDraggable:St,tryReleaseLock:kt,isLockClaimed:mn}},[Ut,Ft,Tt,St,kt,mn]);il(Ke);for(var gr=0;gr{n();const r=this._commands.get(a);(r==null?void 0:r.isEmpty())&&this._commands.delete(a)});return this._onDidRegisterCommand.fire(a),i}registerCommandAlias(e,f){return m.registerCommand(e,(a,...l)=>a.get(A).executeCommand(f,...l))}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(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso10126={pad:function(g,O){var b=O*4,y=b-g.sigBytes%b;g.concat(M.lib.WordArray.random(y-1)).concat(M.lib.WordArray.create([y<<24],1))},unpad:function(g){var O=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=O}},M.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 M=o("1OyB"),g=o("vuIU"),O=o("Ji7U"),b=o("LK+K"),y=o("rePB"),C=o("VTBJ"),A=o("ODXe"),m=o("q1tI"),e=o("TSYQ"),f=o.n(e),a=o("Kwbf"),l=o("6cGi"),n=o("U8pU"),i=o("4IlW"),r=m.createContext({}),c=r,h={visibility:"hidden"};function d(xe){var lt=xe.prefixCls,Rt=xe.prevIcon,wt=Rt===void 0?"\u2039":Rt,Ht=xe.nextIcon,Lt=Ht===void 0?"\u203A":Ht,Xt=xe.superPrevIcon,rn=Xt===void 0?"\xAB":Xt,En=xe.superNextIcon,gn=En===void 0?"\xBB":En,Nn=xe.onSuperPrev,An=xe.onSuperNext,an=xe.onPrev,Pn=xe.onNext,bn=xe.children,kn=m.useContext(c),Rn=kn.hideNextBtn,Yn=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:Yn?h:{}},rn),an&&m.createElement("button",{type:"button",onClick:an,tabIndex:-1,className:"".concat(lt,"-prev-btn"),style:Yn?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:{}},gn))}var s=d;function u(xe){var lt=m.useContext(c),Rt=lt.hideHeader;if(Rt)return null;var wt=xe.prefixCls,Ht=xe.generateConfig,Lt=xe.locale,Xt=xe.value,rn=xe.format,En="".concat(wt,"-header");return m.createElement(s,{prefixCls:En},Xt?Ht.locale.format(Lt.locale,Xt,rn):"\xA0")}var w=u,E=o("YrtM"),_=o("KQm4"),P=new Map;function R(xe,lt,Rt){if(P.get(xe)&&cancelAnimationFrame(P.get(xe)),Rt<=0){P.set(xe,requestAnimationFrame(function(){xe.scrollTop=lt}));return}var wt=lt-xe.scrollTop,Ht=wt/Rt*10;P.set(xe,requestAnimationFrame(function(){xe.scrollTop+=Ht,xe.scrollTop!==lt&&R(xe,lt,Rt-10)}))}function x(xe,lt){var Rt=lt.onLeftRight,wt=lt.onCtrlLeftRight,Ht=lt.onUpDown,Lt=lt.onPageUpDown,Xt=lt.onEnter,rn=xe.which,En=xe.ctrlKey,gn=xe.metaKey;switch(rn){case i.a.LEFT:if(En||gn){if(wt)return wt(-1),!0}else if(Rt)return Rt(-1),!0;break;case i.a.RIGHT:if(En||gn){if(wt)return wt(1),!0}else if(Rt)return Rt(1),!0;break;case i.a.UP:if(Ht)return Ht(-1),!0;break;case i.a.DOWN:if(Ht)return Ht(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 Ht=xe;if(!Ht)switch(lt){case"time":Ht=wt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Ht="gggg-wo";break;case"month":Ht="YYYY-MM";break;case"quarter":Ht="YYYY-[Q]Q";break;case"year":Ht="YYYY";break;default:Ht=Rt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Ht}function v(xe,lt){var Rt=xe==="time"?8:10;return Math.max(Rt,lt.length)+2}var T=null,U=new Set;function L(xe){return!T&&typeof window!="undefined"&&window.addEventListener&&(T=function(Rt){Object(_.a)(U).forEach(function(wt){wt(Rt)})},window.addEventListener("mousedown",T)),U.add(xe),function(){U.delete(xe),U.size===0&&(window.removeEventListener("mousedown",T),T=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,Ht=xe.value,Lt=xe.active,Xt=xe.hideDisabledOptions,rn="".concat(lt,"-cell"),En=m.useContext(c),gn=En.open,Nn=m.useRef(null),An=m.useRef(new Map);return m.useLayoutEffect(function(){var an=An.current.get(Ht);an&&gn!==!1&&R(Nn.current,an.offsetTop,120)},[Ht]),m.useLayoutEffect(function(){if(gn){var an=An.current.get(Ht);an&&R(Nn.current,an.offsetTop,0)}},[gn]),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()(rn,(Pn={},Object(y.a)(Pn,"".concat(rn,"-disabled"),an.disabled),Object(y.a)(Pn,"".concat(rn,"-selected"),Ht===an.value),Pn)),onClick:function(){if(an.disabled)return;wt(an.value)}},m.createElement("div",{className:"".concat(rn,"-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 Rr=m.useMemo(function(){if(!gn)return[!1,!1];var Gt=[!0,!0];return qn.forEach(function($t){var Jt=$t.disabled,Xn=$t.value;if(Jt)return;Xn>=12?Gt[1]=!1:Gt[0]=!1}),Gt},[gn,qn]),Ir=Object(A.a)(Rr,2),Jn=Ir[0],Ar=Ir[1],vr=m.useMemo(function(){return gn?qn.filter(tn?function(Gt){return Gt.value>=12}:function(Gt){return Gt.value<12}).map(function(Gt){var $t=Gt.value%12,Jt=$t===0?"12":ee($t,2);return Object(C.a)(Object(C.a)({},Gt),{},{label:Jt,value:$t})}):qn},[gn,qn]),zr=se(0,59,Pn,Yn&&Yn(wn)),Lr=se(0,59,kn,mr&&mr(wn,_n));wt.current={onUpDown:function($t){var Jt=Yt[Ht];if(Jt)for(var Xn=Jt.units.findIndex(function(ur){return ur.value===Jt.value}),$n=Jt.units.length,Ln=1;Ln<$n;Ln+=1){var rr=Jt.units[(Xn+$t*Ln+$n)%$n];if(rr.disabled!==!0){Jt.onSelect(rr.value);break}}}};function $r(Gt,$t,Jt,Xn,$n){Gt!==!1&&Yt.push({node:m.cloneElement($t,{prefixCls:Dn,value:Jt,active:Ht===Yt.length,onSelect:$n,units:Xn,hideDisabledOptions:Br}),onSelect:$n,value:Jt,units:Xn})}$r(Xt,m.createElement(K,{key:"hour"}),wn,vr,function(Gt){Sn(Un(tn,Gt,_n,In),"mouse")}),$r(rn,m.createElement(K,{key:"minute"}),_n,zr,function(Gt){Sn(Un(tn,wn,Gt,In),"mouse")}),$r(En,m.createElement(K,{key:"second"}),In,Lr,function(Gt){Sn(Un(tn,wn,_n,Gt),"mouse")});var nr=-1;return typeof tn=="boolean"&&(nr=tn?1:0),$r(gn===!0,m.createElement(K,{key:"12hours"}),nr,[{label:"AM",value:0,disabled:Jn},{label:"PM",value:1,disabled:Ar}],function(Gt){Sn(Un(!!Gt,wn,_n,In),"mouse")}),m.createElement("div",{className:hn},Yt.map(function(Gt){var $t=Gt.node;return $t}))}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,Ht=xe.prefixCls,Lt=xe.active,Xt=xe.operationRef,rn=xe.showHour,En=xe.showMinute,gn=xe.showSecond,Nn=xe.use12Hours,An=Nn===void 0?!1:Nn,an=xe.onSelect,Pn=xe.value,bn="".concat(Ht,"-time-panel"),kn=m.useRef(),Rn=m.useState(-1),Yn=Object(A.a)(Rn,2),mr=Yn[0],Br=Yn[1],Sn=re([rn,En,gn,An]);return Xt.current={onKeyDown:function(hn){return x(hn,{onLeftRight:function(tn){Br((mr+tn+Sn)%Sn)},onUpDown:function(tn){mr===-1?Br(0):kn.current&&kn.current.onUpDown(tn)},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:Ht})),m.createElement(me,Object.assign({},xe,{prefixCls:Ht,activeColumnIndex:mr,operationRef:kn})))}var Oe=ae,le=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 Ht=Math.floor(xe.getYear(lt)/10),Lt=Math.floor(xe.getYear(Rt)/10);return Ht===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 Je(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 ut(xe,lt,Rt,wt){var Ht=te(Rt,wt);return typeof Ht=="boolean"?Ht:xe.locale.getWeek(lt,Rt)===xe.locale.getWeek(lt,wt)}function ft(xe,lt,Rt){return Je(xe,lt,Rt)&&tt(xe,lt,Rt)}function vt(xe,lt,Rt,wt){return!lt||!Rt||!wt?!1:!Je(xe,lt,wt)&&!Je(xe,Rt,wt)&&xe.isAfter(wt,lt)&&xe.isAfter(Rt,wt)}function _t(xe,lt,Rt){var wt=lt.locale.getWeekFirstDay(xe),Ht=lt.setDate(Rt,1),Lt=lt.getWeekDay(Ht),Xt=lt.addDate(Ht,wt-Lt);return lt.getMonth(Xt)===lt.getMonth(Rt)&<.getDate(Xt)>1&&(Xt=lt.addDate(Xt,-7)),Xt}function Ve(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 je=m.createContext({}),ht=je;function Bt(xe){var lt=xe.cellPrefixCls,Rt=xe.generateConfig,wt=xe.rangedValue,Ht=xe.hoverRangedValue,Lt=xe.isInView,Xt=xe.isSameCell,rn=xe.offsetCell,En=xe.today,gn=xe.value;function Nn(An){var an,Pn=rn(An,-1),bn=rn(An,1),kn=Te(wt,0),Rn=Te(wt,1),Yn=Te(Ht,0),mr=Te(Ht,1),Br=vt(Rt,Yn,mr,An);function Sn(_n){return Xt(kn,_n)}function Yt(_n){return Xt(Rn,_n)}var hn=Xt(Yn,An),Dn=Xt(mr,An),tn=(Br||Dn)&&(!Lt(Pn)||Yt(Pn)),wn=(Br||hn)&&(!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,Yn)||vt(Rt,Yn,mr,Pn))),Object(y.a)(an,"".concat(lt,"-range-end-near-hover"),Yt(An)&&(Xt(bn,mr)||vt(Rt,Yn,mr,bn))),Object(y.a)(an,"".concat(lt,"-range-hover"),Br),Object(y.a)(an,"".concat(lt,"-range-hover-start"),hn),Object(y.a)(an,"".concat(lt,"-range-hover-end"),Dn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-start"),tn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-end"),wn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-start-near-range"),tn&&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(En,An)),Object(y.a)(an,"".concat(lt,"-selected"),Xt(gn,An)),an}return Nn}function Et(xe){for(var lt=xe.prefixCls,Rt=xe.disabledDate,wt=xe.onSelect,Ht=xe.rowNum,Lt=xe.colNum,Xt=xe.prefixColumn,rn=xe.rowClassName,En=xe.baseDate,gn=xe.getCellClassName,Nn=xe.getCellText,An=xe.getCellNode,an=xe.getCellDate,Pn=xe.titleCell,bn=xe.headerCells,kn=m.useContext(c),Rn=kn.onDateMouseEnter,Yn=kn.onDateMouseLeave,mr="".concat(lt,"-cell"),Br=[],Sn=0;Sn2&&arguments[2]!==void 0?arguments[2]:!1;(et===kn||Vr)&&(Oa(xn),Dn&&Dn(xn),$n&&$n(xn,jn),tn&&!ft(rn,xn,Jr)&&tn(xn))},dn=function(xn){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(xn.which)&&xn.preventDefault(),Yr.current.onKeyDown(xn)):(Object(a.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},cn=function(xn){Yr.current&&Yr.current.onBlur&&Yr.current.onBlur(xn)};Jt&&qr!=="right"&&(Jt.current={onKeyDown:dn,onClose:function(){Yr.current&&Yr.current.onClose&&Yr.current.onClose()}}),m.useEffect(function(){En&&!_r.current&&yt(En)},[En]),m.useEffect(function(){_r.current=!1},[]);var Fn,Cn=Object(C.a)(Object(C.a)({},xe),{},{operationRef:Yr,prefixCls:wt,viewDate:dt,value:Jr,onViewDateChange:nt,sourceMode:Mt,onPanelChange:pn,disabledDate:et!=="decade"?an:void 0});delete Cn.onChange,delete Cn.onSelect;switch(et){case"decade":Fn=m.createElement(X,Object.assign({},Cn,{onSelect:function(xn,jn){nt(xn),ln(xn,jn)}}));break;case"year":Fn=m.createElement(Dr,Object.assign({},Cn,{onSelect:function(xn,jn){nt(xn),ln(xn,jn)}}));break;case"month":Fn=m.createElement(pt,Object.assign({},Cn,{onSelect:function(xn,jn){nt(xn),ln(xn,jn)}}));break;case"quarter":Fn=m.createElement(vn,Object.assign({},Cn,{onSelect:function(xn,jn){nt(xn),ln(xn,jn)}}));break;case"week":Fn=m.createElement(Qt,Object.assign({},Cn,{onSelect:function(xn,jn){nt(xn),ln(xn,jn)}}));break;case"time":delete Cn.showTime,Fn=m.createElement(Oe,Object.assign({},Cn,Object(n.a)(Br)==="object"?Br:null,{onSelect:function(xn,jn){nt(xn),ln(xn,jn)}}));break;default:Br?Fn=m.createElement(Ct,Object.assign({},Cn,{onSelect:function(xn,jn){nt(xn),ln(xn,jn)}})):Fn=m.createElement(We,Object.assign({},Cn,{onSelect:function(xn,jn){nt(xn),ln(xn,jn)}}))}var Ur,Pr,Qr=function(){var xn=rn.getNow(),jn=ye(rn.getHour(xn),rn.getMinute(xn),rn.getSecond(xn),$r?Ir:1,nr?Ar:1,Gt?zr:1),Vr=be(rn,xn,jn[0],jn[1],jn[2]);ln(Vr,"submit")};Ln||(Ur=q(wt,et,Yt),Pr=oe({prefixCls:wt,components:ar,needConfirmButton:Lr,okDisabled:!Jr||an&&an(Jr),locale:Xt,showNow:mr,onNow:Lr&&Qr,onOk:function(){Jr&&(ln(Jr,"submit",!0),Un&&Un(Jr))}}));var Wr;if(Sn&&et==="date"&&kn==="date"&&!Br){var ta=rn.getNow(),Gn="".concat(wt,"-today-btn"),wr=an&&an(ta);Wr=m.createElement("a",{className:f()(Gn,wr&&"".concat(Gn,"-disabled")),"aria-disabled":wr,onClick:function(){wr||ln(ta,"mouse",!0)}},Xt.today)}return m.createElement(c.Provider,{value:Object(C.a)(Object(C.a)({},$t),{},{hideHeader:"hideHeader"in xe?hn:$t.hideHeader,hidePrevBtn:ir&&qr==="right",hideNextBtn:ir&&qr==="left"})},m.createElement("div",{tabIndex:Yn,className:f()("".concat(wt,"-panel"),Ht,(lt={},Object(y.a)(lt,"".concat(wt,"-panel-has-range"),or&&or[0]&&or[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:dn,onBlur:cn,onMouseDown:_n,ref:Xn},Fn,Ur||Pr||Wr?m.createElement("div",{className:"".concat(wt,"-footer")},Ur,Pr,Wr):null))}var fe=De,ot=o("uciX"),Zt={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,Ht=xe.popupStyle,Lt=xe.visible,Xt=xe.dropdownClassName,rn=xe.dropdownAlign,En=xe.transitionName,gn=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:Zt,prefixCls:bn,popupTransitionName:En,popup:wt,popupAlign:rn,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:Ht,getPopupContainer:gn},Nn)}var Vn=Mn;function qt(xe){var lt=xe.open,Rt=xe.value,wt=xe.isClickOutside,Ht=xe.triggerOpen,Lt=xe.forwardKeyDown,Xt=xe.blurToCancel,rn=xe.onSubmit,En=xe.onCancel,gn=xe.onFocus,Nn=xe.onBlur,An=Object(m.useState)(!1),an=Object(A.a)(An,2),Pn=an[0],bn=an[1],kn=Object(m.useState)(!1),Rn=Object(A.a)(kn,2),Yn=Rn[0],mr=Rn[1],Br=Object(m.useRef)(!1),Sn=Object(m.useRef)(!1),Yt={onMouseDown:function(){bn(!0),Ht(!0)},onKeyDown:function(Dn){switch(Dn.which){case i.a.ENTER:{lt?rn()!==!1&&bn(!0):Ht(!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),En();return}}!lt&&![i.a.SHIFT].includes(Dn.which)?Ht(!0):Pn||Lt(Dn)},onFocus:function(Dn){bn(!0),mr(!0),gn&&gn(Dn)},onBlur:function(Dn){if(Br.current||!wt(document.activeElement)){Br.current=!1;return}Xt?setTimeout(function(){wt(document.activeElement)&&En()},0):lt&&(Ht(!1),Sn.current&&rn()),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(hn){var Dn=hn.target;lt&&(wt(Dn)?Yn||Ht(!1):(Br.current=!0,requestAnimationFrame(function(){Br.current=!1})))})}),[Yt,{focused:Yn,typing:Pn}]}function yn(xe){var lt=xe.valueTexts,Rt=xe.onTextChange,wt=m.useState(""),Ht=Object(A.a)(wt,2),Lt=Ht[0],Xt=Ht[1],rn=m.useRef([]);rn.current=lt;function En(Nn){Xt(Nn),Rt(Nn)}function gn(){Xt(rn.current[0])}return m.useEffect(function(){lt.every(function(Nn){return Nn!==Lt})&&gn()},[lt.join("||")]),[Lt,En,gn]}var un=o("Gytx"),jr=o.n(un);function ra(xe,lt){var Rt=lt.formatList,wt=lt.generateConfig,Ht=lt.locale;return Object(E.a)(function(){if(!xe)return[[""],""];for(var Lt="",Xt=[],rn=0;rn1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(gn.current),Yn){En(Rn);return}gn.current=requestAnimationFrame(function(){En(Rn)})}var An=ra(rn,{formatList:Rt,generateConfig:wt,locale:Ht}),an=Object(A.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(gn.current)}},[]),[Pn,bn,kn]}function er(xe){var lt,Rt=xe.prefixCls,wt=Rt===void 0?"rc-picker":Rt,Ht=xe.id,Lt=xe.tabIndex,Xt=xe.style,rn=xe.className,En=xe.dropdownClassName,gn=xe.dropdownAlign,Nn=xe.popupStyle,An=xe.transitionName,an=xe.generateConfig,Pn=xe.locale,bn=xe.inputReadOnly,kn=xe.allowClear,Rn=xe.autoFocus,Yn=xe.showTime,mr=xe.picker,Br=mr===void 0?"date":mr,Sn=xe.format,Yt=xe.use12Hours,hn=xe.value,Dn=xe.defaultValue,tn=xe.open,wn=xe.defaultOpen,_n=xe.defaultOpenValue,In=xe.suffixIcon,Un=xe.clearIcon,ar=xe.disabled,qn=xe.disabledDate,Rr=xe.placeholder,Ir=xe.getPopupContainer,Jn=xe.pickerRef,Ar=xe.panelRender,vr=xe.onChange,zr=xe.onOpenChange,Lr=xe.onFocus,$r=xe.onBlur,nr=xe.onMouseDown,Gt=xe.onMouseUp,$t=xe.onMouseEnter,Jt=xe.onMouseLeave,Xn=xe.onContextMenu,$n=xe.onClick,Ln=xe.direction,rr=xe.autoComplete,ur=rr===void 0?"off":rr,ir=m.useRef(null),qr=Br==="date"&&!!Yn||Br==="time",or=de(S(Sn,Br,Yn,Yt)),da=m.useRef(null),Yr=m.useRef(null),_r=Object(l.a)(null,{value:hn,defaultValue:Dn}),Sr=Object(A.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Oa=m.useState(Kr),_a=Object(A.a)(Oa,2),Ze=_a[0],dt=_a[1],yt=m.useRef(null),nt=Object(l.a)(!1,{value:tn,defaultValue:wn,postState:function(tr){return ar?!1:tr},onChange:function(tr){zr&&zr(tr),!tr&&yt.current&&yt.current.onClose&&yt.current.onClose()}}),Me=Object(A.a)(nt,2),Xe=Me[0],Ie=Me[1],et=ra(Ze,{formatList:or,generateConfig:an,locale:Pn}),$e=Object(A.a)(et,2),mt=$e[0],rt=$e[1],Mt=yn({valueTexts:mt,onTextChange:function(tr){var pa=an.locale.parse(Pn.locale,tr,or);pa&&(!qn||!qn(pa))&&dt(pa)}}),Vt=Object(A.a)(Mt,3),pn=Vt[0],ln=Vt[1],dn=Vt[2],cn=function(tr){dt(tr),Jr(tr),vr&&!ft(an,Kr,tr)&&vr(tr,tr?an.locale.format(Pn.locale,tr,or[0]):"")},Fn=function(tr){if(ar&&tr)return;Ie(tr)},Cn=function(tr){return Xe&&yt.current&&yt.current.onKeyDown?yt.current.onKeyDown(tr):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ur=function(){Gt&&Gt.apply(void 0,arguments),ir.current&&(ir.current.focus(),Fn(!0))},Pr=qt({blurToCancel:qr,open:Xe,value:pn,triggerOpen:Fn,forwardKeyDown:Cn,isClickOutside:function(tr){return!F([da.current,Yr.current],tr)},onSubmit:function(){return qn&&qn(Ze)?!1:(cn(Ze),Fn(!1),dn(),!0)},onCancel:function(){Fn(!1),dt(Kr),dn()},onFocus:Lr,onBlur:$r}),Qr=Object(A.a)(Pr,2),Wr=Qr[0],ta=Qr[1],Gn=ta.focused,wr=ta.typing;m.useEffect(function(){Xe||(dt(Kr),!mt.length||mt[0]===""?ln(""):rt!==pn&&dn())},[Xe,mt]),m.useEffect(function(){Xe||dn()},[Br]),m.useEffect(function(){dt(Kr)},[Kr]),Jn&&(Jn.current={focus:function(){ir.current&&ir.current.focus()},blur:function(){ir.current&&ir.current.blur()}});var zn=Object(C.a)(Object(C.a)({},xe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),xn=m.createElement(fe,Object.assign({},zn,{generateConfig:an,className:f()(Object(y.a)({},"".concat(wt,"-panel-focused"),!wr)),value:Ze,locale:Pn,tabIndex:-1,onChange:dt,direction:Ln}));Ar&&(xn=Ar(xn));var jn=m.createElement("div",{className:"".concat(wt,"-panel-container"),onMouseDown:function(tr){tr.preventDefault()}},xn),Vr;In&&(Vr=m.createElement("span",{className:"".concat(wt,"-suffix")},In));var ua;kn&&Kr&&!ar&&(ua=m.createElement("span",{onMouseDown:function(tr){tr.preventDefault(),tr.stopPropagation()},onMouseUp:function(tr){tr.preventDefault(),tr.stopPropagation(),cn(null),Fn(!1)},className:"".concat(wt,"-clear")},Un||m.createElement("span",{className:"".concat(wt,"-clear-btn")})));var pr=function(tr,pa){(pa==="submit"||pa!=="key"&&!qr)&&(cn(tr),Fn(!1))},aa=Ln==="rtl"?"bottomRight":"bottomLeft",Ca=oa(pn,{formatList:or,generateConfig:an,locale:Pn}),ha=Object(A.a)(Ca,3),Sa=ha[0],Tr=ha[1],br=ha[2];return m.createElement(c.Provider,{value:{operationRef:yt,hideHeader:Br==="time",panelRef:da,onSelect:pr,open:Xe,defaultOpenValue:_n,onDateMouseEnter:Tr,onDateMouseLeave:br}},m.createElement(Vn,{visible:Xe,popupElement:jn,popupStyle:Nn,prefixCls:wt,dropdownClassName:En,dropdownAlign:gn,getPopupContainer:Ir,transitionName:An,popupPlacement:aa,direction:Ln},m.createElement("div",{className:f()(wt,rn,(lt={},Object(y.a)(lt,"".concat(wt,"-disabled"),ar),Object(y.a)(lt,"".concat(wt,"-focused"),Gn),Object(y.a)(lt,"".concat(wt,"-rtl"),Ln==="rtl"),lt)),style:Xt,onMouseDown:nr,onMouseUp:Ur,onMouseEnter:$t,onMouseLeave:Jt,onContextMenu:Xn,onClick:$n},m.createElement("div",{className:f()("".concat(wt,"-input"),Object(y.a)({},"".concat(wt,"-input-placeholder"),!!Sa)),ref:Yr},m.createElement("input",Object.assign({id:Ht,tabIndex:Lt,disabled:ar,readOnly:bn||!wr,value:Sa||pn,onChange:function(tr){ln(tr.target.value)},autoFocus:Rn,placeholder:Rr,ref:ir,title:pn},Wr,{size:v(Br,or[0])},Se(xe),{autoComplete:ur})),Vr,ua))))}var Ba=function(xe){Object(O.a)(Rt,xe);var lt=Object(b.a)(Rt);function Rt(){var wt;return Object(M.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(er,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),Ea=Ba;function ca(xe,lt,Rt){var wt=xe.picker,Ht=xe.locale,Lt=xe.selectedValue,Xt=xe.disabledDate,rn=xe.disabled,En=xe.generateConfig,gn=Te(Lt,0),Nn=Te(Lt,1);function An(Rn){var Yn=En.getYear(Rn),mr=En.locale.getWeek(Ht.locale,Rn);return Yn*100+mr}function an(Rn){var Yn=En.getYear(Rn),mr=En.getMonth(Rn);return Yn*100+mr}function Pn(Rn){var Yn=En.getYear(Rn),mr=ve(En,Rn);return Yn*10+mr}var bn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(rn[1]&&Nn)return!Je(En,Rn,Nn)&&En.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!Je(En,Rn,Nn)&&En.isAfter(Rn,Nn)}return!1},[Xt,rn[1],Nn,lt]),kn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(rn[0]&&gn)return!Je(En,Rn,Nn)&&En.isAfter(gn,Rn);if(Rt&&gn)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=hn;if(hn&&Object(n.a)(hn)==="object"&&hn.defaultValue){var Wa=hn.defaultValue;va=Object(C.a)(Object(C.a)({},hn),{},{defaultValue:Te(Wa,rt)||void 0})}var Ei=null;return Jn&&(Ei=function($a,xi){return Jn($a,xi,{range:rt?"end":"start"})}),m.createElement(ht.Provider,{value:{inRange:!0,panelPosition:sa,rangedValue:yo||Gn,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?Ca:ha,disabledTime:function($a){return Ir?Ir($a,rt===0?"start":"end"):!1},className:f()(Object(y.a)({},"".concat(Lt,"-panel-focused"),rt===0?!Xa:!$i)),value:Te(Gn,rt),locale:kn,tabIndex:-1,onPanelChange:function($a,xi){ua(ce(jn,xi,rt),ce(Gn,$a,rt));var Ki=$a;sa==="right"&&jn[rt]===xi&&(Ki=Ve(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&&yt.current&&Me.current&&dt.current&&(Ga=yt.current.offsetWidth+Me.current.offsetWidth,dt.current.offsetWidth&&Ga>dt.current.offsetWidth&&(ui=Ga));var eo=_r==="rtl"?{right:Ga}:{left:Ga};function ki(){var sa,Cr=q(Lt,jn[rt],Xn),Zr=oe({prefixCls:Lt,components:da,needConfirmButton:Oa,okDisabled:!Te(Gn,rt)||Rr&&Rr(Gn[rt]),locale:kn,rangeList:Da,onOk:function(){Te(Gn,rt)&&(ni(Gn,rt),or&&or(Gn))}});if(Yt!=="time"&&!hn){var va=Pr(rt),Wa=Ve(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(Ve(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 Ar&&(Ki=Ar(Ki)),m.createElement("div",{className:"".concat(Lt,"-panel-container"),style:{marginLeft:ui},ref:dt,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:Aa}},m.createElement("div",{className:"".concat(Lt,"-range-arrow"),style:eo}),ki()),wi;$r&&(wi=m.createElement("span",{className:"".concat(Lt,"-suffix")},$r));var qa;Lr&&(Te(cn,0)&&!pn[0]||Te(cn,1)&&!pn[1])&&(qa=m.createElement("span",{onMouseDown:function(Cr){Cr.preventDefault(),Cr.stopPropagation()},onMouseUp:function(Cr){Cr.preventDefault(),Cr.stopPropagation();var Zr=cn;pn[0]||(Zr=ce(Zr,null,0)),pn[1]||(Zr=ce(Zr,null,1)),ni(Zr,null),ka(!1,rt)},className:"".concat(Lt,"-clear")},nr||m.createElement("span",{className:"".concat(Lt,"-clear-btn")})));var po={size:v(Yt,et[0])},Hi=0,mo=0;yt.current&&nt.current&&Me.current&&(rt===0?mo=yt.current.offsetWidth:(Hi=Ga,mo=nt.current.offsetWidth));var hi=_r==="rtl"?{right:Hi}:{left:Hi},Pa=function(Cr,Zr){var va=ce(Gn,Cr,rt);Zr==="submit"||Zr!=="key"&&!Oa?(ni(va,rt),rt===0?xo():ko()):wr(va)};return m.createElement(c.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:gn,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"),En,(lt={},Object(y.a)(lt,"".concat(Lt,"-disabled"),pn[0]&&pn[1]),Object(y.a)(lt,"".concat(Lt,"-focused"),rt===0?ri:To),Object(y.a)(lt,"".concat(Lt,"-rtl"),_r==="rtl"),lt)),style:rn,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:yt},m.createElement("input",Object.assign({id:Xt,disabled:pn[0],readOnly:$t||!Xa,value:Ri||mi,onChange:function(Cr){uo(Cr.target.value)},autoFocus:Yn,placeholder:Te(Rn,0)||"",ref:Xe},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:pn[1],readOnly:$t||!$i,value:Ni||Vi,onChange:function(Cr){co(Cr.target.value)},placeholder:Te(Rn,1)||"",ref:Ie},yi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(Lt,"-active-bar"),style:Object(C.a)(Object(C.a)({},hi),{},{width:mo,position:"absolute"})}),wi,qa)))}var fa=function(xe){Object(O.a)(Rt,xe);var lt=Object(b.a)(Rt);function Rt(){var wt;return Object(M.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=Ea},onxn:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIEiAIBk8L9uwN7ooLgt9H54QBUUqJo3zHrZTgSVDkfx+jY8lcaqgDJ0awl5S6KGXWezYu+W9CCJ2IjQkByvzXnZNlRXoPlM4dywghBJRhwBACkNPRp1nRpqX/p6CqJq2Cqqr+XSdFgVGg2DRlG85FE7Y6i/Bs6NqvZdZwc9uz1zUnCiouIPrBzaxr9+Eb816v2zygKONXO+apKrZSUEeMcg0AwwAMB8JMaI2iABUFqihC7e0HMQr43YwDuGvqd/B2yni0bn7/X6W5i47J5aUC1K1pL9V5zwQurnXXqmnrKMX8vNdO3aQJp//641ug0D9RUMOgMs0BLBf9aN44C0RlGbKrHVSW8OCsY1hXVg0qq6issStfdOQ+ssrw+VKVKtfnPHvSM2aEjB6gFQuMzjaXi4AazclJOcWR391LqbphiI+AcGwMkDsNO7DCvBNFllYc8J6L273/8b0gamEot7WDhsJ4+JxDWHleva6ntQl0c2PRK/fYv1zESOwjjicPb463v2KW1rWyeIVK1Xc1JSeZ3E+XG35zDUB1PsKwYHgeGOaROVw13nI8jmxr9Chp6MvHPM9boDTB7K1SqH4/wLIgRgMIy4JTJZCudgR8Et77yW5cNrlb193WotLaOn7TvOn9a8KuwIbs3x/77ehViwHkXDntY0rpEo1RDPF0m3AB+b11OViOxSS2B4WcGy7GgXopH4u5SryVXwGek3W9vrAVs5zvIUSNCXtH6eiE4vNH+QkBa7fBEvRg2/kfoaOHxfrm+dh67R6k2RWdpaNeUpSWnu0ZZUk3BI93Xpy98eRXw43FAGpdWdQDihRR5CAGObCciu6kZGSrPeAhg+EU8FYRooVBRnonBENkUN8jrlV4PfjzhMFojHJ7Z9RDo6jQ7MOuqz8GI0r4pCEHN14Y9ZJGx48xvpIMP1V8kj91UuEksvzDKNrTiXSQsW3l9EKZyo2yxCDoF8ALCkxmKZpu4xBhVKQVt8FoD8EXtmCac0vioTagT8twEUlP21pSoOEwVH9AH51u7cFn132mlx5UoWCMrP5cSxQNDcQ9dQrNDhxsvzvj6eq34wNaVTRfVrEn4DOA52UIxkHgY656xsxWCBYR3zpn4drQxgl5ZyxmLQw1kMQg4IXCHfhZWUcMq9QnUc7MyqLb70m7/6ucuIDcq4uuFsPMTm2Q4/XT78zEqMid06DnCNfRPDyl3In3rQvGk5rQON/pxndXvQPeFCdMFJVSFaR/f9tVuRtP7IoJuTdWL69YLH/7aKLHCmeKIGtWiz7BhsqpCPeb4DVYEGSMCDEGeIkZzX6CPRkLcdhaOiEgA8xUkvGY5V3cPts1pnyoumdn+kPfXhMD6G+rrvDOVFsSLjQNSUE4Sty6obovihEJCjFGWwMEp4QcPFbym9gJaftGkvVUDZ4bO6z7G3Fw8fsjxhm5DyqXrD+TOoL9yfft178M+nHL6ut+eYFS++ZEltGYHEB6cZsu0vR1IYI91hhxr92B59hF2Jty0YgxqlJIzS16MtCJZSEUThpxxg0IqIEgjs99EbZhS82Fm6EIGaCMCUpARvCLnsys1452DgL6ZtUFTZlqX8FEAAmWMDJmOnWR9upcBKRS8JmZYA0GRDo7YJ5RisaICTc0XhajVnK69Yw2nBizGVx2ZiwoSvGu4xVcXDSU3tlIGxjZC8lcohe+3kr3kuynqj/VAblWlZSoqlIzETAaLyPIyDmvSRfz+yZDmXH/CBWHGv24o+VCRNSRVYMWZrp34hCbngY2OWlohFJI7jaszjqIh35SO/ickXog+I4jnKotFkH4uKc87d+PPK8DqrnvnA0WhOME+fgQM85pgWCOQFUIvBkPg5jSIPZ78W8n87HNnxdXgVavqZ5uqMEgqBx7NLBJdrCOdF02V2xFyN2LkqR+/M+SL4cB6oPR+w3CyXOhsnaEjvc+rnSJL+uAjq46vzZF9RWPP/1YDrPDi9TJ0TouJBbgSPhnuKlrCeRo+TcuKX1eKJ7Y4pmxmEFMZsy2tOH53C245dvFOHCTfqLoxEQ8MPqOIGKeAtk0Be3HfO8a3L07CS2/xNQa9PgIaPQYTpQIhS27V/8wbPSSpv3NOvX30QVIjEbZ5dYvd2xaKrR9IzW3gkpSDB9jEFCcKWP35e/huf8twK8WDt3zWLEdBv9xyIIDEdu5qK0UD2T2dewl7lXT57QR2xcZSq8pUSysICFtWrteIYym0rrN6KbRdBqPNCBSQ3TfaZlNSwKyM5r6RxPhOORmCTi44G30dipISWcx0IJhRRcM/hNQWTPCyfPwx12Oqhulb+qJc/W08/YyZQcul6oSKpEZXkZGqROsQUbEZ0QkJKCLSQHHS8g2dyGv6dMzrou2Z6SmxG7UhGFgNhOcXKbfZoau8QD4QA34sFO/2ASs83Hb3690bmL+XKUH+r7VlyoFSntCF5i0Ei1cAPexPB2MxHBYWvAHRAiHEtKMWnrmzK8VoFJT/AwXbyVYQtFy24cxQ8a+A2CUaBHbTS/BVftWeLcbX9pD+stnpvqCooeOWVMP6RKsISQVeNBwYCqoEsVfaSvFese9iUarvsqRxkZApYB2WYyzd4YrM3MyTq34a/SRKgKMAVAjMPf+Y5DtSM9CPHBsofQn05+3E+fKaUsppdsTmVFSvgc+jxV97uge0arxzcnzsdGstx4SJqXfCzAMWLMJES38ztCoKrL3Y+/1OwFVAhvphGLMBRd2QggMHZsvVK8A2yurNwpVbxDXyuInVao+mMhsUqe1oeXbfKgyp4MxmiRECI8Pci7BxuAt42a3eDbktg6ogWjoxKOrspx4e9F+ECUAPliPiPUcGPv2g1GjVYa2Fk/sW4E7hEOUIeSfNQ99Fqb8IgMi4x4cyYWdaDk8CRyvwGwdSrPZcxrwlW8WVnieQHhYY2hgggKVcD5biwuEE+hV7NitXIgONTUaRYEANFDxaEnqCUxNjuDBebVgpG4I/mrI5skQ/EPeURQWbYcmR8UJt5A4VxY9U8vm/0ux3Dp2uXvamjW7D+01mbDYIiDMUJzY87phz+lFQDThma478Mfg9RBIBD/lvsQ91q0oSWkAyw1VBIrCYFPHL/B44Jd6X05u17wUBGuzQfH5BrEdvHQjZJKEwgIruHArhEAtVNYIRhmqASNBAzqP50MFQ+0mcyrpXD2zaC+Zcvhi+URsqTxq2QzJAfg67BAMCiglGN6ltWT0w57bA5ZXoltCyzKnfa7IDJQID6oS/TkryPrnmuZXcEQqiXrqdJNRckWrd42ci9dDMJoh2UrAB2rBh1tjHBnw2NDbkIlDaqG47I1dRt3kf629uW6hdHjqePtIO4PkCA+GUIRD2gQBg0kGM8xbnEkEZ5T0LKh95AgHVeJ0MLLM6DIKyyJgMeAJ2y3Yq84eMkspIvWN+neWKOi6dh1UzgbRPgeC5yA4MuS9AaGexgwEu+x4UVlU8/Sbr83QAf1l3c+3XB6pWjYeoBHjFAj4DVBkogPSukMsR4e8RgFF1QAQKArRi1eNGq3ZeCr5VtQKsX1+rfzRyiCN1k/ZhQdKPoDC2NDdkA9HQfXwduDgVNqqChAOG7EC5U9/9Z8rH9CtfLL2p8tmSSe2TAiQ3ncnCAd5SJHxz2TKMnjVcQM+NM8f04zS3QOlt08fPzr/CeSbmxAJGOBzp+il1miSRQ7tVYXYJp5DH7Xeled5+Qa3Dkhrztd+XiNaaGhiBeppC5LEIBLmdW+NJonlsN86E8+lrICXGbtcVMPhwZou19iDo/PXQxF5hPvM0K762hVlNPW7UuF1pWFdeEXfR+88lqKND85g59orj5RKzedO1EvD+ZtIJt4WFiNV9qGdS8XXxhL0MPaEVMqdXVC90T2yvWwj5mXVwHMqG9aMfphTY88pLfG0VxVgu68MIc5Sef8b710yAtDna69cPU1qfiUh62dgOspNwUOWe9DGRM+ZRGmKtw62Xieuzq5Ceckn6D6ZCXNaAAZ7CLwp1jthrwnHvpuBfXIRvcZY+3Tpa1V6n3vQQ7RiAXe409/nUPosiU5iLL4QMaCeycFxbjK+4Gehkp8xpkoGKubKNdjgfwP9ioA8iweqyMKW1acDMaX64yaDzpocrHbdhg227YqBKMvyXju1YwQg7cvuNVfcXyy3nJ32J4AAMeFz4Tzs4mejgclBO5sCCoJ0tR9TVTeWipXIUz2YLrfoffMBsmb1InlSNwLdVljSYvveWqJ49OtbYGZlepehMpyXnZdKKvbop+2IXUwrKpjDHR93OdTeicVLgi6VwUJ7t89ijK4sQ2HP6dGrDm2PhLotetiNpgPVZXi741I8aN0t80R9Pv/VU4P9kJi0VLnm8iU5cvsOAu1Y//8jLZMlF3SBN0ZrRNFnBG8RRxza2utYf3syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";var g=M.Pos;function O(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",C=new RegExp("<(/?)(["+b+"]["+y+"]*)","g");function A(h,d,s,u){this.line=d,this.ch=s,this.cm=h,this.text=h.getLine(d),this.min=u?Math.max(u.from,h.firstLine()):h.firstLine(),this.max=u?Math.min(u.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),u=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,u?"selfClose":"regular"}}function l(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}C.lastIndex=d,h.ch=d;var s=C.exec(h.text);if(s&&s.index==d)return s}}function n(h){for(;;){C.lastIndex=h.ch;var d=C.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),u=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,u?"selfClose":"regular"}}function r(h,d){for(var s=[];;){var u=n(h),w,E=h.line,_=h.ch-(u?u[0].length:0);if(!u||!(w=a(h)))return;if(w=="selfClose")continue;if(u[1]){for(var P=s.length-1;P>=0;--P)if(s[P]==u[2]){s.length=P;break}if(P<0&&(!d||d==u[2]))return{tag:u[2],from:g(E,_),to:g(h.line,h.ch)}}else s.push(u[2])}}function c(h,d){for(var s=[];;){var u=i(h);if(!u)return;if(u=="selfClose"){l(h);continue}var w=h.line,E=h.ch,_=l(h);if(!_)return;if(_[1])s.push(_[2]);else{for(var P=s.length-1;P>=0;--P)if(s[P]==_[2]){s.length=P;break}if(P<0&&(!d||d==_[2]))return{tag:_[2],from:g(h.line,h.ch),to:g(w,E)}}}}M.registerHelper("fold","xml",function(h,d){for(var s=new A(h,d.line,0);;){var u=n(s);if(!u||s.line!=d.line)return;var w=a(s);if(!w)return;if(!u[1]&&w!="selfClose"){var E=g(s.line,s.ch),_=r(s,u[2]);return _&&O(_.from,E)>0?{from:E,to:_.from}:null}}}),M.findMatchingTag=function(h,d,s){var u=new A(h,d.line,d.ch,s);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var w=a(u),E=w&&g(u.line,u.ch),_=w&&l(u);if(!w||!_||O(u,d)>0)return;var P={from:g(u.line,u.ch),to:E,tag:_[2]};return w=="selfClose"?{open:P,close:null,at:"open"}:_[1]?{open:c(u,_[2]),close:P,at:"close"}:(u=new A(h,E.line,E.ch,s),{open:P,close:r(u,_[2]),at:"open"})},M.findEnclosingTag=function(h,d,s,u){for(var w=new A(h,d.line,d.ch,s);;){var E=c(w,u);if(!E)break;var _=new A(h,d.line,d.ch,s),P=r(_,E.tag);if(P)return{open:E,close:P}}},M.scanForClosingTag=function(h,d,s,u){var w=new A(h,d.line,d.ch,u?{from:0,to:u}:null);return r(w,s)}})},p5ED:function(k,z,o){"use strict";var M=o("+L6B"),g=o("2/Rp"),O=o("5Dmo"),b=o("3S7+"),y=o("k1fw"),C=o("9og8"),A=o("tJVT"),m=o("WmNS"),e=o.n(m),f=o("q1tI"),a=o.n(f),l=o("vHTk"),n=o.n(l),i=o("yEEn"),r=o("ZW9T"),c=o("1vsH"),h=o("V0Rq"),d=o("m3rI");z.a=function(s){var u,w,E,_,P,R,x,S=s.editOffice,v=S===void 0?"view":S,T=s.data,U=s.theme,L=s.type,N=s.filename,V=s.monacoEditor,H=s.className,D=s.style,W=s.close,F=s.onClose,I=s.hasMask,K=s.disabledDownload,ee=Object(f.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),he=Object(A.a)(ee,2),de=he[0],Se=he[1],Te=Object(f.useState)(""),ce=Object(A.a)(Te,2),be=ce[0],ye=ce[1],ue=Object(f.useState)(),se=Object(A.a)(ue,2),$=se[0],me=se[1],re=window.ENV==="build"?"/react/build":"",ae=d.a.PROXY_SERVER||location.origin,Oe,le=1024*1024,te=10*le,Q=Object(f.useRef)();(u=T)!==null&&u!==void 0&&u.startsWith("/api")&&L!=="txt"&&(T=d.a.API_SERVER+T),L==="office"&&(Oe=Object(c.T)(T).filesize,Oe>te&&(L="other")),N&&V&&(V.filename=N),Object(f.useEffect)(function(){var Ae,Je,tt=(Ae=document.cookie)===null||Ae===void 0||((Je=Ae.replace(/\s/g,""))===null||Je===void 0)?void 0:Je.split(";");tt==null||tt.map(function(ut){var ft=ut.split("=");ft[0]==="_educoder_session"&&ye(ft[1])})},[]),Object(f.useEffect)(function(){L==="office"&&J()},[L,T]);var J=function(){var Ae=Object(C.a)(e.a.mark(function Je(){var tt,ut,ft;return e.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return console.log("data:",T),tt=T,T.startsWith("http")||(tt=location.origin+tt),ut=new URL(tt).pathname.split("/").pop(),_t.next=6,Object(h.V)({attachment_id:ut});case 6:ft=_t.sent,me(ft);case 8:case"end":return _t.stop()}},Je)}));return function(){return Ae.apply(this,arguments)}}(),ve=function(){if(T.startsWith("http")||T.startsWith("blob:")){_e();return}Object(c.z)(N||"educoder",T,N)},_e=function(){Object(c.x)(N||"educoder",decodeURIComponent(T))};return a.a.createElement("div",{style:Object(y.a)({},D||{}),className:"".concat(I&&n.a.bgBlack," ").concat(L?n.a.wrp:"hide")},W&&a.a.createElement("div",{className:n.a.close,ref:Q},!K&&a.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Q.current}},a.a.createElement("span",{onClick:_e},a.a.createElement("i",{className:"icon-quxiaozhiding"}))),a.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Q.current}},a.a.createElement("span",{className:"",onClick:F},a.a.createElement("i",{className:"icon-guanbi1"})))),a.a.createElement("div",{className:"".concat(n.a[H]," ").concat(H," ").concat(n.a.monaco," ").concat(L==="txt"?"show":"hide")},L==="txt"&&a.a.createElement(r.b,V)),L==="audio"&&a.a.createElement("audio",{src:"".concat(((w=T)===null||w===void 0?void 0:w.indexOf("http://"))>-1||((E=T)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(T),autoPlay:!0}),L==="video"&&a.a.createElement(a.a.Fragment,null,((_=T)===null||_===void 0?void 0:_.indexOf("http"))>-1?a.a.createElement("video",{controls:!0,src:"".concat(T),autoPlay:!0}):a.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(T),autoPlay:!0})),L==="office"&&$&&a.a.createElement("iframe",{src:"".concat(re,"/office.html?key=").concat($.key,"&url=").concat(ae+$.url,"&callbackUrl=").concat(ae+$.callbackUrl,"&fileType=").concat($.fileType,"&title=").concat($.title,"&model=").concat(v,"&officeServer=").concat(d.a.OFFICE_SERVER,"&disabledDownload=").concat(!!K)}),L==="html"&&a.a.createElement("iframe",{src:T+"&disposition=inline"}),L==="pdf"&&a.a.createElement("iframe",{src:"".concat(re,"/js/pdfview/index.html?url=").concat(T,"&disabledDownload=").concat(!!K)}),L==="image"&&a.a.createElement("img",{src:"".concat(((P=T)===null||P===void 0?void 0:P.indexOf("http://"))>-1||((R=T)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(x=T)!==null&&x!==void 0&&x.startsWith("/api")?"":"data:image/png;base64,").concat(T)}),L==="other"&&a.a.createElement("div",null,a.a.createElement(g.a,{type:"primary",size:"large",onClick:ve},a.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),L==="download"&&a.a.createElement(g.a,{type:"primary",size:"large",onClick:ve},a.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(k,z,o){},pA7S:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.WordArray,y=O.BlockCipher,C=g.algo,A=[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],l=C.DES=y.extend({_doReset:function(){for(var c=this._key,h=c.words,d=[],s=0;s<56;s++){var u=A[s]-1;d[s]=h[u>>>5]>>>31-u%32&1}for(var w=this._subKeys=[],E=0;E<16;E++){for(var _=w[E]=[],P=e[E],s=0;s<24;s++)_[s/6|0]|=d[(m[s]-1+P)%28]<<31-s%6,_[4+(s/6|0)]|=d[28+(m[s+24]-1+P)%28]<<31-s%6;_[0]=_[0]<<1|_[0]>>>31;for(var s=1;s<7;s++)_[s]=_[s]>>>(s-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var R=this._invSubKeys=[],s=0;s<16;s++)R[s]=w[15-s]},encryptBlock:function(c,h){this._doCryptBlock(c,h,this._subKeys)},decryptBlock:function(c,h){this._doCryptBlock(c,h,this._invSubKeys)},_doCryptBlock:function(c,h,d){this._lBlock=c[h],this._rBlock=c[h+1],n.call(this,4,252645135),n.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),n.call(this,1,1431655765);for(var s=0;s<16;s++){for(var u=d[s],w=this._lBlock,E=this._rBlock,_=0,P=0;P<8;P++)_|=f[P][((E^u[P])&a[P])>>>0];this._lBlock=E,this._rBlock=w^_}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,n.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),n.call(this,16,65535),n.call(this,4,252645135),c[h]=this._lBlock,c[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function n(c,h){var d=(this._lBlock>>>c^this._rBlock)&h;this._rBlock^=d,this._lBlock^=d<>>c^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),u=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=l.createEncryptor(b.create(d)),this._des2=l.createEncryptor(b.create(s)),this._des3=l.createEncryptor(b.create(u))},encryptBlock:function(c,h){this._des1.encryptBlock(c,h),this._des2.decryptBlock(c,h),this._des3.encryptBlock(c,h)},decryptBlock:function(c,h){this._des3.decryptBlock(c,h),this._des2.encryptBlock(c,h),this._des1.decryptBlock(c,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=y._createHelper(r)}(),M.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 l}),o.d(z,"f",function(){return n}),o.d(z,"e",function(){return i}),o.d(z,"i",function(){return r}),o.d(z,"b",function(){return c}),o.d(z,"a",function(){return h}),o.d(z,"d",function(){return d}),o.d(z,"c",function(){return s});var M=o("C/vA"),g=o("JYp7");const O=!1;let b=null;function y(u){b=u}if(O){const u="__is_disposable_tracked__";y(new class{trackDisposable(w){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{w[u]||console.log(E)},3e3)}setParent(w,E){if(w&&w!==h.None)try{w[u]=!0}catch(_){}}markAsDisposed(w){if(w&&w!==h.None)try{w[u]=!0}catch(E){}}markAsSingleton(w){}})}function C(u){return b==null||b.trackDisposable(u),u}function A(u){b==null||b.markAsDisposed(u)}function m(u,w){b==null||b.setParent(u,w)}function e(u,w){if(!b)return;for(const E of u)b.setParent(E,w)}function f(u){return b==null||b.markAsSingleton(u),u}class a extends Error{constructor(u){super(`Encountered errors while disposing of store. Errors: [${u.join(", ")}]`);this.errors=u}}function l(u){return typeof u.dispose=="function"&&u.dispose.length===0}function n(u){if(g.a.is(u)){let w=[];for(const E of u)if(E)try{E.dispose()}catch(_){w.push(_)}if(w.length===1)throw w[0];if(w.length>1)throw new a(w);return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}function i(...u){const w=r(()=>n(u));return e(u,w),w}function r(u){const w=C({dispose:Object(M.a)(()=>{A(w),u()})});return w}class c{constructor(){this._toDispose=new Set,this._isDisposed=!1,C(this)}dispose(){if(this._isDisposed)return;A(this),this._isDisposed=!0,this.clear()}clear(){try{n(this._toDispose.values())}finally{this._toDispose.clear()}}add(u){if(!u)return u;if(u===this)throw new Error("Cannot register a disposable on itself!");return m(u,this),this._isDisposed?c.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(u),u}}c.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new c,C(this),m(this._store,this)}dispose(){A(this),this._store.dispose()}_register(u){if(u===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(u)}}h.None=Object.freeze({dispose(){}});class d{constructor(){this._isDisposed=!1,C(this)}get value(){return this._isDisposed?void 0:this._value}set value(u){var w;if(this._isDisposed||u===this._value)return;(w=this._value)===null||w===void 0||w.dispose(),u&&m(u,this),this._value=u}clear(){this.value=void 0}dispose(){var u;this._isDisposed=!0,A(this),(u=this._value)===null||u===void 0||u.dispose(),this._value=void 0}clearAndLeak(){const u=this._value;return this._value=void 0,u&&m(u,null),u}}class s{constructor(u){this.object=u}dispose(){}}},psGv:function(k,z,o){var M,g;(function(){var O;(function(){"use strict";var A=[,,function(a){function l(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}l.prototype.clone_empty=function(){var r=new l(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},l.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},l.prototype.has_match=function(r){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(r))return!0;return!1},l.prototype.set_indent=function(r,c){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.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)},l.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},l.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},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(r){this.__items.push(r);var c=r.lastIndexOf(` + `)}},Z)})}function Pi(){Ei(function(){Cr(mo.react,g.a.version),va(document)},[])}function $a(Y){var Z=Object(M.useRef)(Y);return Object(M.useEffect)(function(){Z.current=Y}),Z}function xi(){var Y=null;function Z(){return Boolean(Y)}function ie(Ke){return Ke===Y}function Ee(Ke){Y&&$(!1);var Ge={abandon:Ke};return Y=Ge,Ge}function Ne(){Y||$(!1),Y=null}function ke(){Y&&(Y.abandon(),Ne())}return{isClaimed:Z,isActive:ie,claim:Ee,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(Ee){return"on"+Ee 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,Ee=Y.getPhase,Ne=Y.setPhase;return[{eventName:"mousemove",fn:function(Ke){var Ge=Ke.button,xt=Ke.clientX,Ut=Ke.clientY;if(Ge!==Zs)return;var Ft={x:xt,y:Ut},Tt=Ee();if(Tt.type==="DRAGGING"){Ke.preventDefault(),Tt.actions.move(Ft);return}Tt.type==="PENDING"||$(!1);var St=Tt.point;if(!Ho(St,Ft))return;Ke.preventDefault();var kt=Tt.actions.fluidLift(Ft);Ne({type:"DRAGGING",actions:kt})}},{eventName:"mouseup",fn:function(Ke){var Ge=Ee();if(Ge.type!=="DRAGGING"){Z();return}Ke.preventDefault(),Ge.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(Ke){Ee().type==="DRAGGING"&&Ke.preventDefault(),Z()}},{eventName:"keydown",fn:function(Ke){var Ge=Ee();if(Ge.type==="PENDING"){Z();return}if(Ke.keyCode===Qa){Ke.preventDefault(),Z();return}Rs(Ke)}},{eventName:"resize",fn:Z},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ee().type==="PENDING"&&Z()}},{eventName:"webkitmouseforcedown",fn:function(Ke){var Ge=Ee();if(Ge.type!=="IDLE"||$(!1),Ge.actions.shouldRespectForcePress()){Z();return}Ke.preventDefault()}},{eventName:gs,fn:Z}]}function $s(Y){var Z=Object(M.useRef)(vs),ie=Object(M.useRef)(Te),Ee=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,Ke,{sourceEvent:Tt});if(!kt)return;Tt.preventDefault();var mn={x:Tt.clientX,y:Tt.clientY};ie.current(),Ut(kt,mn)}}},[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,Ee],Tt)},[Ne,Ee]),Ke=a(function(){var Ft=Z.current;if(Ft.type==="IDLE")return;Z.current=vs,ie.current(),ke()},[ke]),Ge=a(function(){var Ft=Z.current;Ke(),Ft.type==="DRAGGING"&&Ft.actions.cancel({shouldBlockNextClick:!0}),Ft.type==="PENDING"&&Ft.actions.abort()},[Ke]),xt=a(function(){var Tt={capture:!0,passive:!1},St=_s({cancel:Ge,completed:Ke,getPhase:function(){return Z.current},setPhase:function(mn){Z.current=mn}});ie.current=be(window,St,Tt)},[Ge,Ke]),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 Ee(){Z(),Y.drop()}return[{eventName:"keydown",fn:function(ke){if(ke.keyCode===Qa){ke.preventDefault(),ie();return}if(ke.keyCode===As){ke.preventDefault(),Ee();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(M.useRef)(el),ie=f(function(){return{eventName:"keydown",fn:function(ke){if(ke.defaultPrevented)return;if(ke.keyCode!==As)return;var Ke=Y.findClosestDraggableId(ke);if(!Ke)return;var Ge=Y.tryGetLock(Ke,Ft,{sourceEvent:ke});if(!Ge)return;ke.preventDefault();var xt=!0,Ut=Ge.snapLift();Z.current();function Ft(){xt||$(!1),xt=!1,Z.current(),Ee()}Z.current=be(window,tl(Ut,Ft),{capture:!0,passive:!1})}}},[Y]),Ee=a(function(){var ke={passive:!1,capture:!0};Z.current=be(window,[ie],ke)},[ie]);ai(function(){return Ee(),function(){Z.current()}},[Ee])}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,Ee=Y.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ke){var Ke=Ee();if(Ke.type!=="DRAGGING"){Z();return}Ke.hasMoved=!0;var Ge=ke.touches[0],xt=Ge.clientX,Ut=Ge.clientY,Ft={x:xt,y:Ut};ke.preventDefault(),Ke.actions.move(Ft)}},{eventName:"touchend",fn:function(ke){var Ke=Ee();if(Ke.type!=="DRAGGING"){Z();return}ke.preventDefault(),Ke.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(ke){if(Ee().type!=="DRAGGING"){Z();return}ke.preventDefault(),Z()}},{eventName:"touchforcechange",fn:function(ke){var Ke=Ee();Ke.type!=="IDLE"||$(!1);var Ge=ke.touches[0];if(!Ge)return;var xt=Ge.force>=rl;if(!xt)return;var Ut=Ke.actions.shouldRespectForcePress();if(Ke.type==="PENDING"){Ut&&Z();return}if(Ut){if(Ke.hasMoved){ke.preventDefault();return}Z();return}ke.preventDefault()}},{eventName:gs,fn:Z}]}function bs(Y){var Z=Object(M.useRef)(Ko),ie=Object(M.useRef)(Te),Ee=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 mn=Y.findClosestDraggableId(kt);if(!mn)return;var sr=Y.tryGetLock(mn,Ge,{sourceEvent:kt});if(!sr)return;var gr=kt.touches[0],Nr=gr.clientX,Gr=gr.clientY,ra={x:Nr,y:Gr};ie.current(),Tt(sr,ra)}}},[Y]),Ke=a(function(){var kt={capture:!0,passive:!1};ie.current=be(window,[ke],kt)},[ke]),Ge=a(function(){var St=Z.current;if(St.type==="IDLE")return;St.type==="PENDING"&&clearTimeout(St.longPressTimerId),Ne(Ko),ie.current(),Ke()},[Ke,Ne]),xt=a(function(){var St=Z.current;Ge(),St.type==="DRAGGING"&&St.actions.cancel({shouldBlockNextClick:!0}),St.type==="PENDING"&&St.actions.abort()},[Ge]),Ut=a(function(){var kt={capture:!0,passive:!1},mn={cancel:xt,completed:Ge,getPhase:Ee},sr=be(window,Go(mn),kt),gr=be(window,al(mn),kt);ie.current=function(){sr(),gr()}},[xt,Ee,Ge]),Ft=a(function(){var kt=Ee();kt.type==="PENDING"||$(!1);var mn=kt.actions.fluidLift(kt.point);Ne({type:"DRAGGING",actions:mn,hasMoved:!1})},[Ee,Ne]),Tt=a(function(kt,mn){Ee().type==="IDLE"||$(!1);var sr=setTimeout(Ft,nl);Ne({type:"PENDING",point:mn,actions:kt,longPressTimerId:sr}),Ut()},[Ut,Ee,Ne,Ft]);ai(function(){return Ke(),function(){ie.current();var mn=Ee();mn.type==="PENDING"&&(clearTimeout(mn.longPressTimerId),Ne(Ko))}},[Ee,Ke,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 Ee=Z.getAttribute("contenteditable");return Ee==="true"||Ee===""?!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 n(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(Ee){return Ee 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 Ee=Xo(Y),Ne=Nl(ie,Ee);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+'"]',Ee=Ct(document.querySelectorAll(ie)),Ne=st(Ee,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,Ee=Y.isLockActive,Ne=Y.shouldWarn;return Ee()?!(Z!==ie):!1}function Yo(Y){var Z=Y.lockAPI,ie=Y.store,Ee=Y.registry,Ne=Y.draggableId;if(Z.isClaimed())return!1;var ke=Ee.draggable.findById(Ne);return ke&&ke.options.isEnabled?!!to(ie.getState(),Ne):!1}function ns(Y){var Z=Y.lockAPI,ie=Y.contextId,Ee=Y.store,Ne=Y.registry,ke=Y.draggableId,Ke=Y.forceSensorStop,Ge=Y.sourceEvent,xt=Yo({lockAPI:Z,store:Ee,registry:Ne,draggableId:ke});if(!xt)return null;var Ut=Ne.draggable.getById(ke),Ft=dl(ie,Ut.descriptor.id);if(!Ft)return null;if(Ge&&!Ut.options.canDragInteractiveElements&&zo(Ft,Ge))return null;var Tt=Z.claim(Ke||Te),St="PRE_DRAG";function kt(){return Ut.options.shouldRespectForcePress}function mn(){return Z.isActive(Tt)}function sr(Ra,za){Do({expected:Ra,phase:St,isLockActive:mn,shouldWarn:!0})&&Ee.dispatch(za())}var gr=sr.bind(null,"DRAGGING");function Nr(Ra){function za(){Z.release(),St="COMPLETED"}St!=="PRE_DRAG"&&(za(),St==="PRE_DRAG"||$(!1)),Ee.dispatch(Xn(Ra.liftActionArgs)),St="DRAGGING";function si(t,p){if(p===void 0&&(p={shouldBlockNextClick:!1}),Ra.cleanup(),p.shouldBlockNextClick){var B=be(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(B)}za(),Ee.dispatch(dt({reason:t}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:St,isLockActive:mn,shouldWarn:!1})},shouldRespectForcePress:kt,drop:function(p){return si("DROP",p)},cancel:function(p){return si("CANCEL",p)}},Ra.actions)}function Gr(Ra){var za=L(function(t){gr(function(){return or({client:t})})}),si=Nr({liftActionArgs:{id:ke,clientSelection:Ra,movementMode:"FLUID"},cleanup:function(){return za.cancel()},actions:{move:za}});return Object(b.a)({},si,{move:za})}function ra(){var Ra={moveUp:function(){return gr(_r)},moveRight:function(){return gr(Kr)},moveDown:function(){return gr(Sr)},moveLeft:function(){return gr(Jr)}};return Nr({liftActionArgs:{id:ke,clientSelection:sl(Ft),movementMode:"SNAP"},cleanup:Te,actions:Ra})}function Hr(){var Ra=Do({expected:"PRE_DRAG",phase:St,isLockActive:mn,shouldWarn:!0});Ra&&Z.release()}var Ia={isActive:function(){return Do({expected:"PRE_DRAG",phase:St,isLockActive:mn,shouldWarn:!1})},shouldRespectForcePress:kt,fluidLift:Gr,snapLift:ra,abort:Hr};return Ia}var fl=[$s,gi,bs];function kl(Y){var Z=Y.contextId,ie=Y.store,Ee=Y.registry,Ne=Y.customSensors,ke=Y.enableDefaultSensors,Ke=[].concat(ke?fl:[],Ne||[]),Ge=Object(M.useState)(function(){return xi()})[0],xt=a(function(Gr,ra){Gr.isDragging&&!ra.isDragging&&Ge.tryAbandon()},[Ge]);ai(function(){var Gr=ie.getState(),ra=ie.subscribe(function(){var Hr=ie.getState();xt(Gr,Hr),Gr=Hr});return ra},[Ge,ie,xt]),ai(function(){return Ge.tryAbandon},[Ge.tryAbandon]);var Ut=a(function(Nr){return Yo({lockAPI:Ge,registry:Ee,store:ie,draggableId:Nr})},[Ge,Ee,ie]),Ft=a(function(Nr,Gr,ra){return ns({lockAPI:Ge,registry:Ee,contextId:Z,store:ie,draggableId:Nr,forceSensorStop:Gr,sourceEvent:ra&&ra.sourceEvent?ra.sourceEvent:null})},[Z,Ge,Ee,ie]),Tt=a(function(Nr){return cl(Z,Nr)},[Z]),St=a(function(Nr){var Gr=Ee.draggable.findById(Nr);return Gr?Gr.options:null},[Ee.draggable]),kt=a(function(){if(!Ge.isClaimed())return;Ge.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(Oa())},[Ge,ie]),mn=a(Ge.isClaimed,[Ge]),sr=f(function(){return{canGetLock:Ut,tryGetLock:Ft,findClosestDraggableId:Tt,findOptionsForDraggable:St,tryReleaseLock:kt,isLockClaimed:mn}},[Ut,Ft,Tt,St,kt,mn]);il(Ke);for(var gr=0;gr{n();const r=this._commands.get(a);(r==null?void 0:r.isEmpty())&&this._commands.delete(a)});return this._onDidRegisterCommand.fire(a),i}registerCommandAlias(e,f){return m.registerCommand(e,(a,...l)=>a.get(A).executeCommand(f,...l))}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(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.Iso10126={pad:function(g,O){var b=O*4,y=b-g.sigBytes%b;g.concat(M.lib.WordArray.random(y-1)).concat(M.lib.WordArray.create([y<<24],1))},unpad:function(g){var O=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=O}},M.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 M=o("1OyB"),g=o("vuIU"),O=o("Ji7U"),b=o("LK+K"),y=o("rePB"),C=o("VTBJ"),A=o("ODXe"),m=o("q1tI"),e=o("TSYQ"),f=o.n(e),a=o("Kwbf"),l=o("6cGi"),n=o("U8pU"),i=o("4IlW"),r=m.createContext({}),c=r,h={visibility:"hidden"};function d(xe){var lt=xe.prefixCls,Rt=xe.prevIcon,wt=Rt===void 0?"\u2039":Rt,Ht=xe.nextIcon,Lt=Ht===void 0?"\u203A":Ht,Xt=xe.superPrevIcon,rn=Xt===void 0?"\xAB":Xt,xn=xe.superNextIcon,gn=xn===void 0?"\xBB":xn,Nn=xe.onSuperPrev,An=xe.onSuperNext,an=xe.onPrev,Pn=xe.onNext,yn=xe.children,kn=m.useContext(c),Rn=kn.hideNextBtn,Yn=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:Yn?h:{}},rn),an&&m.createElement("button",{type:"button",onClick:an,tabIndex:-1,className:"".concat(lt,"-prev-btn"),style:Yn?h:{}},wt),m.createElement("div",{className:"".concat(lt,"-view")},yn),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:{}},gn))}var s=d;function u(xe){var lt=m.useContext(c),Rt=lt.hideHeader;if(Rt)return null;var wt=xe.prefixCls,Ht=xe.generateConfig,Lt=xe.locale,Xt=xe.value,rn=xe.format,xn="".concat(wt,"-header");return m.createElement(s,{prefixCls:xn},Xt?Ht.locale.format(Lt.locale,Xt,rn):"\xA0")}var w=u,E=o("YrtM"),_=o("KQm4"),P=new Map;function R(xe,lt,Rt){if(P.get(xe)&&cancelAnimationFrame(P.get(xe)),Rt<=0){P.set(xe,requestAnimationFrame(function(){xe.scrollTop=lt}));return}var wt=lt-xe.scrollTop,Ht=wt/Rt*10;P.set(xe,requestAnimationFrame(function(){xe.scrollTop+=Ht,xe.scrollTop!==lt&&R(xe,lt,Rt-10)}))}function x(xe,lt){var Rt=lt.onLeftRight,wt=lt.onCtrlLeftRight,Ht=lt.onUpDown,Lt=lt.onPageUpDown,Xt=lt.onEnter,rn=xe.which,xn=xe.ctrlKey,gn=xe.metaKey;switch(rn){case i.a.LEFT:if(xn||gn){if(wt)return wt(-1),!0}else if(Rt)return Rt(-1),!0;break;case i.a.RIGHT:if(xn||gn){if(wt)return wt(1),!0}else if(Rt)return Rt(1),!0;break;case i.a.UP:if(Ht)return Ht(-1),!0;break;case i.a.DOWN:if(Ht)return Ht(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 Ht=xe;if(!Ht)switch(lt){case"time":Ht=wt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Ht="gggg-wo";break;case"month":Ht="YYYY-MM";break;case"quarter":Ht="YYYY-[Q]Q";break;case"year":Ht="YYYY";break;default:Ht=Rt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Ht}function v(xe,lt){var Rt=xe==="time"?8:10;return Math.max(Rt,lt.length)+2}var T=null,U=new Set;function L(xe){return!T&&typeof window!="undefined"&&window.addEventListener&&(T=function(Rt){Object(_.a)(U).forEach(function(wt){wt(Rt)})},window.addEventListener("mousedown",T)),U.add(xe),function(){U.delete(xe),U.size===0&&(window.removeEventListener("mousedown",T),T=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,Ht=xe.value,Lt=xe.active,Xt=xe.hideDisabledOptions,rn="".concat(lt,"-cell"),xn=m.useContext(c),gn=xn.open,Nn=m.useRef(null),An=m.useRef(new Map);return m.useLayoutEffect(function(){var an=An.current.get(Ht);an&&gn!==!1&&R(Nn.current,an.offsetTop,120)},[Ht]),m.useLayoutEffect(function(){if(gn){var an=An.current.get(Ht);an&&R(Nn.current,an.offsetTop,0)}},[gn]),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()(rn,(Pn={},Object(y.a)(Pn,"".concat(rn,"-disabled"),an.disabled),Object(y.a)(Pn,"".concat(rn,"-selected"),Ht===an.value),Pn)),onClick:function(){if(an.disabled)return;wt(an.value)}},m.createElement("div",{className:"".concat(rn,"-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 Rr=m.useMemo(function(){if(!gn)return[!1,!1];var Gt=[!0,!0];return qn.forEach(function($t){var Jt=$t.disabled,Xn=$t.value;if(Jt)return;Xn>=12?Gt[1]=!1:Gt[0]=!1}),Gt},[gn,qn]),Ir=Object(A.a)(Rr,2),Jn=Ir[0],Ar=Ir[1],vr=m.useMemo(function(){return gn?qn.filter(tn?function(Gt){return Gt.value>=12}:function(Gt){return Gt.value<12}).map(function(Gt){var $t=Gt.value%12,Jt=$t===0?"12":ee($t,2);return Object(C.a)(Object(C.a)({},Gt),{},{label:Jt,value:$t})}):qn},[gn,qn]),zr=se(0,59,Pn,Yn&&Yn(wn)),Lr=se(0,59,kn,mr&&mr(wn,_n));wt.current={onUpDown:function($t){var Jt=Yt[Ht];if(Jt)for(var Xn=Jt.units.findIndex(function(ur){return ur.value===Jt.value}),$n=Jt.units.length,Ln=1;Ln<$n;Ln+=1){var rr=Jt.units[(Xn+$t*Ln+$n)%$n];if(rr.disabled!==!0){Jt.onSelect(rr.value);break}}}};function $r(Gt,$t,Jt,Xn,$n){Gt!==!1&&Yt.push({node:m.cloneElement($t,{prefixCls:Dn,value:Jt,active:Ht===Yt.length,onSelect:$n,units:Xn,hideDisabledOptions:Br}),onSelect:$n,value:Jt,units:Xn})}$r(Xt,m.createElement(K,{key:"hour"}),wn,vr,function(Gt){Sn(Un(tn,Gt,_n,In),"mouse")}),$r(rn,m.createElement(K,{key:"minute"}),_n,zr,function(Gt){Sn(Un(tn,wn,Gt,In),"mouse")}),$r(xn,m.createElement(K,{key:"second"}),In,Lr,function(Gt){Sn(Un(tn,wn,_n,Gt),"mouse")});var nr=-1;return typeof tn=="boolean"&&(nr=tn?1:0),$r(gn===!0,m.createElement(K,{key:"12hours"}),nr,[{label:"AM",value:0,disabled:Jn},{label:"PM",value:1,disabled:Ar}],function(Gt){Sn(Un(!!Gt,wn,_n,In),"mouse")}),m.createElement("div",{className:hn},Yt.map(function(Gt){var $t=Gt.node;return $t}))}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,Ht=xe.prefixCls,Lt=xe.active,Xt=xe.operationRef,rn=xe.showHour,xn=xe.showMinute,gn=xe.showSecond,Nn=xe.use12Hours,An=Nn===void 0?!1:Nn,an=xe.onSelect,Pn=xe.value,yn="".concat(Ht,"-time-panel"),kn=m.useRef(),Rn=m.useState(-1),Yn=Object(A.a)(Rn,2),mr=Yn[0],Br=Yn[1],Sn=re([rn,xn,gn,An]);return Xt.current={onKeyDown:function(hn){return x(hn,{onLeftRight:function(tn){Br((mr+tn+Sn)%Sn)},onUpDown:function(tn){mr===-1?Br(0):kn.current&&kn.current.onUpDown(tn)},onEnter:function(){an(Pn||lt.getNow(),"key"),Br(-1)}})},onBlur:function(){Br(-1)}},m.createElement("div",{className:f()(yn,Object(y.a)({},"".concat(yn,"-active"),Lt))},m.createElement(w,Object.assign({},xe,{format:wt,prefixCls:Ht})),m.createElement(me,Object.assign({},xe,{prefixCls:Ht,activeColumnIndex:mr,operationRef:kn})))}var Oe=ae,le=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 Ht=Math.floor(xe.getYear(lt)/10),Lt=Math.floor(xe.getYear(Rt)/10);return Ht===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 Je(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 ut(xe,lt,Rt,wt){var Ht=te(Rt,wt);return typeof Ht=="boolean"?Ht:xe.locale.getWeek(lt,Rt)===xe.locale.getWeek(lt,wt)}function ft(xe,lt,Rt){return Je(xe,lt,Rt)&&tt(xe,lt,Rt)}function vt(xe,lt,Rt,wt){return!lt||!Rt||!wt?!1:!Je(xe,lt,wt)&&!Je(xe,Rt,wt)&&xe.isAfter(wt,lt)&&xe.isAfter(Rt,wt)}function _t(xe,lt,Rt){var wt=lt.locale.getWeekFirstDay(xe),Ht=lt.setDate(Rt,1),Lt=lt.getWeekDay(Ht),Xt=lt.addDate(Ht,wt-Lt);return lt.getMonth(Xt)===lt.getMonth(Rt)&<.getDate(Xt)>1&&(Xt=lt.addDate(Xt,-7)),Xt}function Ve(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 je=m.createContext({}),ht=je;function Bt(xe){var lt=xe.cellPrefixCls,Rt=xe.generateConfig,wt=xe.rangedValue,Ht=xe.hoverRangedValue,Lt=xe.isInView,Xt=xe.isSameCell,rn=xe.offsetCell,xn=xe.today,gn=xe.value;function Nn(An){var an,Pn=rn(An,-1),yn=rn(An,1),kn=Te(wt,0),Rn=Te(wt,1),Yn=Te(Ht,0),mr=Te(Ht,1),Br=vt(Rt,Yn,mr,An);function Sn(_n){return Xt(kn,_n)}function Yt(_n){return Xt(Rn,_n)}var hn=Xt(Yn,An),Dn=Xt(mr,An),tn=(Br||Dn)&&(!Lt(Pn)||Yt(Pn)),wn=(Br||hn)&&(!Lt(yn)||Sn(yn));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,Yn)||vt(Rt,Yn,mr,Pn))),Object(y.a)(an,"".concat(lt,"-range-end-near-hover"),Yt(An)&&(Xt(yn,mr)||vt(Rt,Yn,mr,yn))),Object(y.a)(an,"".concat(lt,"-range-hover"),Br),Object(y.a)(an,"".concat(lt,"-range-hover-start"),hn),Object(y.a)(an,"".concat(lt,"-range-hover-end"),Dn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-start"),tn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-end"),wn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-start-near-range"),tn&&Xt(Pn,Rn)),Object(y.a)(an,"".concat(lt,"-range-hover-edge-end-near-range"),wn&&Xt(yn,kn)),Object(y.a)(an,"".concat(lt,"-today"),Xt(xn,An)),Object(y.a)(an,"".concat(lt,"-selected"),Xt(gn,An)),an}return Nn}function Et(xe){for(var lt=xe.prefixCls,Rt=xe.disabledDate,wt=xe.onSelect,Ht=xe.rowNum,Lt=xe.colNum,Xt=xe.prefixColumn,rn=xe.rowClassName,xn=xe.baseDate,gn=xe.getCellClassName,Nn=xe.getCellText,An=xe.getCellNode,an=xe.getCellDate,Pn=xe.titleCell,yn=xe.headerCells,kn=m.useContext(c),Rn=kn.onDateMouseEnter,Yn=kn.onDateMouseLeave,mr="".concat(lt,"-cell"),Br=[],Sn=0;Sn2&&arguments[2]!==void 0?arguments[2]:!1;(et===kn||Vr)&&(Oa(bn),Dn&&Dn(bn),$n&&$n(bn,jn),tn&&!ft(rn,bn,Jr)&&tn(bn))},dn=function(bn){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(bn.which)&&bn.preventDefault(),Yr.current.onKeyDown(bn)):(Object(a.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},cn=function(bn){Yr.current&&Yr.current.onBlur&&Yr.current.onBlur(bn)};Jt&&qr!=="right"&&(Jt.current={onKeyDown:dn,onClose:function(){Yr.current&&Yr.current.onClose&&Yr.current.onClose()}}),m.useEffect(function(){xn&&!_r.current&&yt(xn)},[xn]),m.useEffect(function(){_r.current=!1},[]);var Fn,Cn=Object(C.a)(Object(C.a)({},xe),{},{operationRef:Yr,prefixCls:wt,viewDate:dt,value:Jr,onViewDateChange:nt,sourceMode:Mt,onPanelChange:pn,disabledDate:et!=="decade"?an:void 0});delete Cn.onChange,delete Cn.onSelect;switch(et){case"decade":Fn=m.createElement(X,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;case"year":Fn=m.createElement(Dr,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;case"month":Fn=m.createElement(pt,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;case"quarter":Fn=m.createElement(vn,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;case"week":Fn=m.createElement(Qt,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;case"time":delete Cn.showTime,Fn=m.createElement(Oe,Object.assign({},Cn,Object(n.a)(Br)==="object"?Br:null,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}));break;default:Br?Fn=m.createElement(Ct,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}})):Fn=m.createElement(We,Object.assign({},Cn,{onSelect:function(bn,jn){nt(bn),ln(bn,jn)}}))}var Ur,Pr,Qr=function(){var bn=rn.getNow(),jn=ye(rn.getHour(bn),rn.getMinute(bn),rn.getSecond(bn),$r?Ir:1,nr?Ar:1,Gt?zr:1),Vr=be(rn,bn,jn[0],jn[1],jn[2]);ln(Vr,"submit")};Ln||(Ur=q(wt,et,Yt),Pr=oe({prefixCls:wt,components:ar,needConfirmButton:Lr,okDisabled:!Jr||an&&an(Jr),locale:Xt,showNow:mr,onNow:Lr&&Qr,onOk:function(){Jr&&(ln(Jr,"submit",!0),Un&&Un(Jr))}}));var Wr;if(Sn&&et==="date"&&kn==="date"&&!Br){var ta=rn.getNow(),zn="".concat(wt,"-today-btn"),wr=an&&an(ta);Wr=m.createElement("a",{className:f()(zn,wr&&"".concat(zn,"-disabled")),"aria-disabled":wr,onClick:function(){wr||ln(ta,"mouse",!0)}},Xt.today)}return m.createElement(c.Provider,{value:Object(C.a)(Object(C.a)({},$t),{},{hideHeader:"hideHeader"in xe?hn:$t.hideHeader,hidePrevBtn:ir&&qr==="right",hideNextBtn:ir&&qr==="left"})},m.createElement("div",{tabIndex:Yn,className:f()("".concat(wt,"-panel"),Ht,(lt={},Object(y.a)(lt,"".concat(wt,"-panel-has-range"),or&&or[0]&&or[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:dn,onBlur:cn,onMouseDown:_n,ref:Xn},Fn,Ur||Pr||Wr?m.createElement("div",{className:"".concat(wt,"-footer")},Ur,Pr,Wr):null))}var fe=De,ot=o("uciX"),Zt={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,Ht=xe.popupStyle,Lt=xe.visible,Xt=xe.dropdownClassName,rn=xe.dropdownAlign,xn=xe.transitionName,gn=xe.getPopupContainer,Nn=xe.children,An=xe.range,an=xe.popupPlacement,Pn=xe.direction,yn="".concat(Rt,"-dropdown"),kn=function(){return an!==void 0?an:Pn==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(ot.a,{showAction:[],hideAction:[],popupPlacement:kn(),builtinPlacements:Zt,prefixCls:yn,popupTransitionName:xn,popup:wt,popupAlign:rn,popupVisible:Lt,popupClassName:f()(Xt,(lt={},Object(y.a)(lt,"".concat(yn,"-range"),An),Object(y.a)(lt,"".concat(yn,"-rtl"),Pn==="rtl"),lt)),popupStyle:Ht,getPopupContainer:gn},Nn)}var Vn=Mn;function qt(xe){var lt=xe.open,Rt=xe.value,wt=xe.isClickOutside,Ht=xe.triggerOpen,Lt=xe.forwardKeyDown,Xt=xe.blurToCancel,rn=xe.onSubmit,xn=xe.onCancel,gn=xe.onFocus,Nn=xe.onBlur,An=Object(m.useState)(!1),an=Object(A.a)(An,2),Pn=an[0],yn=an[1],kn=Object(m.useState)(!1),Rn=Object(A.a)(kn,2),Yn=Rn[0],mr=Rn[1],Br=Object(m.useRef)(!1),Sn=Object(m.useRef)(!1),Yt={onMouseDown:function(){yn(!0),Ht(!0)},onKeyDown:function(Dn){switch(Dn.which){case i.a.ENTER:{lt?rn()!==!1&&yn(!0):Ht(!0),Dn.preventDefault();return}case i.a.TAB:{Pn&<&&!Dn.shiftKey?(yn(!1),Dn.preventDefault()):!Pn&<&&(!Lt(Dn)&&Dn.shiftKey&&(yn(!0),Dn.preventDefault()));return}case i.a.ESC:{yn(!0),xn();return}}!lt&&![i.a.SHIFT].includes(Dn.which)?Ht(!0):Pn||Lt(Dn)},onFocus:function(Dn){yn(!0),mr(!0),gn&&gn(Dn)},onBlur:function(Dn){if(Br.current||!wt(document.activeElement)){Br.current=!1;return}Xt?setTimeout(function(){wt(document.activeElement)&&xn()},0):lt&&(Ht(!1),Sn.current&&rn()),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(hn){var Dn=hn.target;lt&&(wt(Dn)?Yn||Ht(!1):(Br.current=!0,requestAnimationFrame(function(){Br.current=!1})))})}),[Yt,{focused:Yn,typing:Pn}]}function En(xe){var lt=xe.valueTexts,Rt=xe.onTextChange,wt=m.useState(""),Ht=Object(A.a)(wt,2),Lt=Ht[0],Xt=Ht[1],rn=m.useRef([]);rn.current=lt;function xn(Nn){Xt(Nn),Rt(Nn)}function gn(){Xt(rn.current[0])}return m.useEffect(function(){lt.every(function(Nn){return Nn!==Lt})&&gn()},[lt.join("||")]),[Lt,xn,gn]}var un=o("Gytx"),jr=o.n(un);function aa(xe,lt){var Rt=lt.formatList,wt=lt.generateConfig,Ht=lt.locale;return Object(E.a)(function(){if(!xe)return[[""],""];for(var Lt="",Xt=[],rn=0;rn1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(gn.current),Yn){xn(Rn);return}gn.current=requestAnimationFrame(function(){xn(Rn)})}var An=aa(rn,{formatList:Rt,generateConfig:wt,locale:Ht}),an=Object(A.a)(An,2),Pn=an[1];function yn(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(gn.current)}},[]),[Pn,yn,kn]}function er(xe){var lt,Rt=xe.prefixCls,wt=Rt===void 0?"rc-picker":Rt,Ht=xe.id,Lt=xe.tabIndex,Xt=xe.style,rn=xe.className,xn=xe.dropdownClassName,gn=xe.dropdownAlign,Nn=xe.popupStyle,An=xe.transitionName,an=xe.generateConfig,Pn=xe.locale,yn=xe.inputReadOnly,kn=xe.allowClear,Rn=xe.autoFocus,Yn=xe.showTime,mr=xe.picker,Br=mr===void 0?"date":mr,Sn=xe.format,Yt=xe.use12Hours,hn=xe.value,Dn=xe.defaultValue,tn=xe.open,wn=xe.defaultOpen,_n=xe.defaultOpenValue,In=xe.suffixIcon,Un=xe.clearIcon,ar=xe.disabled,qn=xe.disabledDate,Rr=xe.placeholder,Ir=xe.getPopupContainer,Jn=xe.pickerRef,Ar=xe.panelRender,vr=xe.onChange,zr=xe.onOpenChange,Lr=xe.onFocus,$r=xe.onBlur,nr=xe.onMouseDown,Gt=xe.onMouseUp,$t=xe.onMouseEnter,Jt=xe.onMouseLeave,Xn=xe.onContextMenu,$n=xe.onClick,Ln=xe.direction,rr=xe.autoComplete,ur=rr===void 0?"off":rr,ir=m.useRef(null),qr=Br==="date"&&!!Yn||Br==="time",or=de(S(Sn,Br,Yn,Yt)),da=m.useRef(null),Yr=m.useRef(null),_r=Object(l.a)(null,{value:hn,defaultValue:Dn}),Sr=Object(A.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Oa=m.useState(Kr),_a=Object(A.a)(Oa,2),Ze=_a[0],dt=_a[1],yt=m.useRef(null),nt=Object(l.a)(!1,{value:tn,defaultValue:wn,postState:function(tr){return ar?!1:tr},onChange:function(tr){zr&&zr(tr),!tr&&yt.current&&yt.current.onClose&&yt.current.onClose()}}),Me=Object(A.a)(nt,2),Xe=Me[0],Ie=Me[1],et=aa(Ze,{formatList:or,generateConfig:an,locale:Pn}),$e=Object(A.a)(et,2),mt=$e[0],rt=$e[1],Mt=En({valueTexts:mt,onTextChange:function(tr){var pa=an.locale.parse(Pn.locale,tr,or);pa&&(!qn||!qn(pa))&&dt(pa)}}),Vt=Object(A.a)(Mt,3),pn=Vt[0],ln=Vt[1],dn=Vt[2],cn=function(tr){dt(tr),Jr(tr),vr&&!ft(an,Kr,tr)&&vr(tr,tr?an.locale.format(Pn.locale,tr,or[0]):"")},Fn=function(tr){if(ar&&tr)return;Ie(tr)},Cn=function(tr){return Xe&&yt.current&&yt.current.onKeyDown?yt.current.onKeyDown(tr):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ur=function(){Gt&&Gt.apply(void 0,arguments),ir.current&&(ir.current.focus(),Fn(!0))},Pr=qt({blurToCancel:qr,open:Xe,value:pn,triggerOpen:Fn,forwardKeyDown:Cn,isClickOutside:function(tr){return!F([da.current,Yr.current],tr)},onSubmit:function(){return qn&&qn(Ze)?!1:(cn(Ze),Fn(!1),dn(),!0)},onCancel:function(){Fn(!1),dt(Kr),dn()},onFocus:Lr,onBlur:$r}),Qr=Object(A.a)(Pr,2),Wr=Qr[0],ta=Qr[1],zn=ta.focused,wr=ta.typing;m.useEffect(function(){Xe||(dt(Kr),!mt.length||mt[0]===""?ln(""):rt!==pn&&dn())},[Xe,mt]),m.useEffect(function(){Xe||dn()},[Br]),m.useEffect(function(){dt(Kr)},[Kr]),Jn&&(Jn.current={focus:function(){ir.current&&ir.current.focus()},blur:function(){ir.current&&ir.current.blur()}});var Gn=Object(C.a)(Object(C.a)({},xe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),bn=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:dt,direction:Ln}));Ar&&(bn=Ar(bn));var jn=m.createElement("div",{className:"".concat(wt,"-panel-container"),onMouseDown:function(tr){tr.preventDefault()}},bn),Vr;In&&(Vr=m.createElement("span",{className:"".concat(wt,"-suffix")},In));var ua;kn&&Kr&&!ar&&(ua=m.createElement("span",{onMouseDown:function(tr){tr.preventDefault(),tr.stopPropagation()},onMouseUp:function(tr){tr.preventDefault(),tr.stopPropagation(),cn(null),Fn(!1)},className:"".concat(wt,"-clear")},Un||m.createElement("span",{className:"".concat(wt,"-clear-btn")})));var pr=function(tr,pa){(pa==="submit"||pa!=="key"&&!qr)&&(cn(tr),Fn(!1))},na=Ln==="rtl"?"bottomRight":"bottomLeft",Ca=oa(pn,{formatList:or,generateConfig:an,locale:Pn}),ha=Object(A.a)(Ca,3),Sa=ha[0],Tr=ha[1],br=ha[2];return m.createElement(c.Provider,{value:{operationRef:yt,hideHeader:Br==="time",panelRef:da,onSelect:pr,open:Xe,defaultOpenValue:_n,onDateMouseEnter:Tr,onDateMouseLeave:br}},m.createElement(Vn,{visible:Xe,popupElement:jn,popupStyle:Nn,prefixCls:wt,dropdownClassName:xn,dropdownAlign:gn,getPopupContainer:Ir,transitionName:An,popupPlacement:na,direction:Ln},m.createElement("div",{className:f()(wt,rn,(lt={},Object(y.a)(lt,"".concat(wt,"-disabled"),ar),Object(y.a)(lt,"".concat(wt,"-focused"),zn),Object(y.a)(lt,"".concat(wt,"-rtl"),Ln==="rtl"),lt)),style:Xt,onMouseDown:nr,onMouseUp:Ur,onMouseEnter:$t,onMouseLeave:Jt,onContextMenu:Xn,onClick:$n},m.createElement("div",{className:f()("".concat(wt,"-input"),Object(y.a)({},"".concat(wt,"-input-placeholder"),!!Sa)),ref:Yr},m.createElement("input",Object.assign({id:Ht,tabIndex:Lt,disabled:ar,readOnly:yn||!wr,value:Sa||pn,onChange:function(tr){ln(tr.target.value)},autoFocus:Rn,placeholder:Rr,ref:ir,title:pn},Wr,{size:v(Br,or[0])},Se(xe),{autoComplete:ur})),Vr,ua))))}var Ba=function(xe){Object(O.a)(Rt,xe);var lt=Object(b.a)(Rt);function Rt(){var wt;return Object(M.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(er,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),Ea=Ba;function ca(xe,lt,Rt){var wt=xe.picker,Ht=xe.locale,Lt=xe.selectedValue,Xt=xe.disabledDate,rn=xe.disabled,xn=xe.generateConfig,gn=Te(Lt,0),Nn=Te(Lt,1);function An(Rn){var Yn=xn.getYear(Rn),mr=xn.locale.getWeek(Ht.locale,Rn);return Yn*100+mr}function an(Rn){var Yn=xn.getYear(Rn),mr=xn.getMonth(Rn);return Yn*100+mr}function Pn(Rn){var Yn=xn.getYear(Rn),mr=ve(xn,Rn);return Yn*10+mr}var yn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(rn[1]&&Nn)return!Je(xn,Rn,Nn)&&xn.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!Je(xn,Rn,Nn)&&xn.isAfter(Rn,Nn)}return!1},[Xt,rn[1],Nn,lt]),kn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(rn[0]&&gn)return!Je(xn,Rn,Nn)&&xn.isAfter(gn,Rn);if(Rt&&gn)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]&&yn.isAfter(ei[1],ei[0])&&(Zr=ei);var va=hn;if(hn&&Object(n.a)(hn)==="object"&&hn.defaultValue){var Wa=hn.defaultValue;va=Object(C.a)(Object(C.a)({},hn),{},{defaultValue:Te(Wa,rt)||void 0})}var Ei=null;return Jn&&(Ei=function($a,xi){return Jn($a,xi,{range:rt?"end":"start"})}),m.createElement(ht.Provider,{value:{inRange:!0,panelPosition:sa,rangedValue:yo||zn,hoverRangedValue:Zr}},m.createElement(fe,Object.assign({},xe,Cr,{dateRender:Ei,showTime:va,mode:jn[rt],generateConfig:yn,style:void 0,direction:_r,disabledDate:rt===0?Ca:ha,disabledTime:function($a){return Ir?Ir($a,rt===0?"start":"end"):!1},className:f()(Object(y.a)({},"".concat(Lt,"-panel-focused"),rt===0?!Xa:!$i)),value:Te(zn,rt),locale:kn,tabIndex:-1,onPanelChange:function($a,xi){ua(ce(jn,xi,rt),ce(zn,$a,rt));var Ki=$a;sa==="right"&&jn[rt]===xi&&(Ki=Ve(Ki,xi,yn,-1)),Qr(Ki,rt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ga=0,ui=0;rt&&yt.current&&Me.current&&dt.current&&(Ga=yt.current.offsetWidth+Me.current.offsetWidth,dt.current.offsetWidth&&Ga>dt.current.offsetWidth&&(ui=Ga));var eo=_r==="rtl"?{right:Ga}:{left:Ga};function ki(){var sa,Cr=q(Lt,jn[rt],Xn),Zr=oe({prefixCls:Lt,components:da,needConfirmButton:Oa,okDisabled:!Te(zn,rt)||Rr&&Rr(zn[rt]),locale:kn,rangeList:Da,onOk:function(){Te(zn,rt)&&(ni(zn,rt),or&&or(zn))}});if(Yt!=="time"&&!hn){var va=Pr(rt),Wa=Ve(va,Yt,yn),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(Ve(Qa,Yt,yn,-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 Ar&&(Ki=Ar(Ki)),m.createElement("div",{className:"".concat(Lt,"-panel-container"),style:{marginLeft:ui},ref:dt,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:Aa}},m.createElement("div",{className:"".concat(Lt,"-range-arrow"),style:eo}),ki()),wi;$r&&(wi=m.createElement("span",{className:"".concat(Lt,"-suffix")},$r));var qa;Lr&&(Te(cn,0)&&!pn[0]||Te(cn,1)&&!pn[1])&&(qa=m.createElement("span",{onMouseDown:function(Cr){Cr.preventDefault(),Cr.stopPropagation()},onMouseUp:function(Cr){Cr.preventDefault(),Cr.stopPropagation();var Zr=cn;pn[0]||(Zr=ce(Zr,null,0)),pn[1]||(Zr=ce(Zr,null,1)),ni(Zr,null),ka(!1,rt)},className:"".concat(Lt,"-clear")},nr||m.createElement("span",{className:"".concat(Lt,"-clear-btn")})));var po={size:v(Yt,et[0])},Hi=0,mo=0;yt.current&&nt.current&&Me.current&&(rt===0?mo=yt.current.offsetWidth:(Hi=Ga,mo=nt.current.offsetWidth));var hi=_r==="rtl"?{right:Hi}:{left:Hi},Pa=function(Cr,Zr){var va=ce(zn,Cr,rt);Zr==="submit"||Zr!=="key"&&!Oa?(ni(va,rt),rt===0?xo():ko()):wr(va)};return m.createElement(c.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:gn,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"),xn,(lt={},Object(y.a)(lt,"".concat(Lt,"-disabled"),pn[0]&&pn[1]),Object(y.a)(lt,"".concat(Lt,"-focused"),rt===0?ri:To),Object(y.a)(lt,"".concat(Lt,"-rtl"),_r==="rtl"),lt)),style:rn,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:yt},m.createElement("input",Object.assign({id:Xt,disabled:pn[0],readOnly:$t||!Xa,value:Ri||mi,onChange:function(Cr){uo(Cr.target.value)},autoFocus:Yn,placeholder:Te(Rn,0)||"",ref:Xe},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:pn[1],readOnly:$t||!$i,value:Ni||Vi,onChange:function(Cr){co(Cr.target.value)},placeholder:Te(Rn,1)||"",ref:Ie},yi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(Lt,"-active-bar"),style:Object(C.a)(Object(C.a)({},hi),{},{width:mo,position:"absolute"})}),wi,qa)))}var fa=function(xe){Object(O.a)(Rt,xe);var lt=Object(b.a)(Rt);function Rt(){var wt;return Object(M.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=Ea},onxn:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIEiAIBk8L9uwN7ooLgt9H54QBUUqJo3zHrZTgSVDkfx+jY8lcaqgDJ0awl5S6KGXWezYu+W9CCJ2IjQkByvzXnZNlRXoPlM4dywghBJRhwBACkNPRp1nRpqX/p6CqJq2Cqqr+XSdFgVGg2DRlG85FE7Y6i/Bs6NqvZdZwc9uz1zUnCiouIPrBzaxr9+Eb816v2zygKONXO+apKrZSUEeMcg0AwwAMB8JMaI2iABUFqihC7e0HMQr43YwDuGvqd/B2yni0bn7/X6W5i47J5aUC1K1pL9V5zwQurnXXqmnrKMX8vNdO3aQJp//641ug0D9RUMOgMs0BLBf9aN44C0RlGbKrHVSW8OCsY1hXVg0qq6issStfdOQ+ssrw+VKVKtfnPHvSM2aEjB6gFQuMzjaXi4AazclJOcWR391LqbphiI+AcGwMkDsNO7DCvBNFllYc8J6L273/8b0gamEot7WDhsJ4+JxDWHleva6ntQl0c2PRK/fYv1zESOwjjicPb463v2KW1rWyeIVK1Xc1JSeZ3E+XG35zDUB1PsKwYHgeGOaROVw13nI8jmxr9Chp6MvHPM9boDTB7K1SqH4/wLIgRgMIy4JTJZCudgR8Et77yW5cNrlb193WotLaOn7TvOn9a8KuwIbs3x/77ehViwHkXDntY0rpEo1RDPF0m3AB+b11OViOxSS2B4WcGy7GgXopH4u5SryVXwGek3W9vrAVs5zvIUSNCXtH6eiE4vNH+QkBa7fBEvRg2/kfoaOHxfrm+dh67R6k2RWdpaNeUpSWnu0ZZUk3BI93Xpy98eRXw43FAGpdWdQDihRR5CAGObCciu6kZGSrPeAhg+EU8FYRooVBRnonBENkUN8jrlV4PfjzhMFojHJ7Z9RDo6jQ7MOuqz8GI0r4pCEHN14Y9ZJGx48xvpIMP1V8kj91UuEksvzDKNrTiXSQsW3l9EKZyo2yxCDoF8ALCkxmKZpu4xBhVKQVt8FoD8EXtmCac0vioTagT8twEUlP21pSoOEwVH9AH51u7cFn132mlx5UoWCMrP5cSxQNDcQ9dQrNDhxsvzvj6eq34wNaVTRfVrEn4DOA52UIxkHgY656xsxWCBYR3zpn4drQxgl5ZyxmLQw1kMQg4IXCHfhZWUcMq9QnUc7MyqLb70m7/6ucuIDcq4uuFsPMTm2Q4/XT78zEqMid06DnCNfRPDyl3In3rQvGk5rQON/pxndXvQPeFCdMFJVSFaR/f9tVuRtP7IoJuTdWL69YLH/7aKLHCmeKIGtWiz7BhsqpCPeb4DVYEGSMCDEGeIkZzX6CPRkLcdhaOiEgA8xUkvGY5V3cPts1pnyoumdn+kPfXhMD6G+rrvDOVFsSLjQNSUE4Sty6obovihEJCjFGWwMEp4QcPFbym9gJaftGkvVUDZ4bO6z7G3Fw8fsjxhm5DyqXrD+TOoL9yfft178M+nHL6ut+eYFS++ZEltGYHEB6cZsu0vR1IYI91hhxr92B59hF2Jty0YgxqlJIzS16MtCJZSEUThpxxg0IqIEgjs99EbZhS82Fm6EIGaCMCUpARvCLnsys1452DgL6ZtUFTZlqX8FEAAmWMDJmOnWR9upcBKRS8JmZYA0GRDo7YJ5RisaICTc0XhajVnK69Yw2nBizGVx2ZiwoSvGu4xVcXDSU3tlIGxjZC8lcohe+3kr3kuynqj/VAblWlZSoqlIzETAaLyPIyDmvSRfz+yZDmXH/CBWHGv24o+VCRNSRVYMWZrp34hCbngY2OWlohFJI7jaszjqIh35SO/ickXog+I4jnKotFkH4uKc87d+PPK8DqrnvnA0WhOME+fgQM85pgWCOQFUIvBkPg5jSIPZ78W8n87HNnxdXgVavqZ5uqMEgqBx7NLBJdrCOdF02V2xFyN2LkqR+/M+SL4cB6oPR+w3CyXOhsnaEjvc+rnSJL+uAjq46vzZF9RWPP/1YDrPDi9TJ0TouJBbgSPhnuKlrCeRo+TcuKX1eKJ7Y4pmxmEFMZsy2tOH53C245dvFOHCTfqLoxEQ8MPqOIGKeAtk0Be3HfO8a3L07CS2/xNQa9PgIaPQYTpQIhS27V/8wbPSSpv3NOvX30QVIjEbZ5dYvd2xaKrR9IzW3gkpSDB9jEFCcKWP35e/huf8twK8WDt3zWLEdBv9xyIIDEdu5qK0UD2T2dewl7lXT57QR2xcZSq8pUSysICFtWrteIYym0rrN6KbRdBqPNCBSQ3TfaZlNSwKyM5r6RxPhOORmCTi44G30dipISWcx0IJhRRcM/hNQWTPCyfPwx12Oqhulb+qJc/W08/YyZQcul6oSKpEZXkZGqROsQUbEZ0QkJKCLSQHHS8g2dyGv6dMzrou2Z6SmxG7UhGFgNhOcXKbfZoau8QD4QA34sFO/2ASs83Hb3690bmL+XKUH+r7VlyoFSntCF5i0Ei1cAPexPB2MxHBYWvAHRAiHEtKMWnrmzK8VoFJT/AwXbyVYQtFy24cxQ8a+A2CUaBHbTS/BVftWeLcbX9pD+stnpvqCooeOWVMP6RKsISQVeNBwYCqoEsVfaSvFese9iUarvsqRxkZApYB2WYyzd4YrM3MyTq34a/SRKgKMAVAjMPf+Y5DtSM9CPHBsofQn05+3E+fKaUsppdsTmVFSvgc+jxV97uge0arxzcnzsdGstx4SJqXfCzAMWLMJES38ztCoKrL3Y+/1OwFVAhvphGLMBRd2QggMHZsvVK8A2yurNwpVbxDXyuInVao+mMhsUqe1oeXbfKgyp4MxmiRECI8Pci7BxuAt42a3eDbktg6ogWjoxKOrspx4e9F+ECUAPliPiPUcGPv2g1GjVYa2Fk/sW4E7hEOUIeSfNQ99Fqb8IgMi4x4cyYWdaDk8CRyvwGwdSrPZcxrwlW8WVnieQHhYY2hgggKVcD5biwuEE+hV7NitXIgONTUaRYEANFDxaEnqCUxNjuDBebVgpG4I/mrI5skQ/EPeURQWbYcmR8UJt5A4VxY9U8vm/0ux3Dp2uXvamjW7D+01mbDYIiDMUJzY87phz+lFQDThma478Mfg9RBIBD/lvsQ91q0oSWkAyw1VBIrCYFPHL/B44Jd6X05u17wUBGuzQfH5BrEdvHQjZJKEwgIruHArhEAtVNYIRhmqASNBAzqP50MFQ+0mcyrpXD2zaC+Zcvhi+URsqTxq2QzJAfg67BAMCiglGN6ltWT0w57bA5ZXoltCyzKnfa7IDJQID6oS/TkryPrnmuZXcEQqiXrqdJNRckWrd42ci9dDMJoh2UrAB2rBh1tjHBnw2NDbkIlDaqG47I1dRt3kf629uW6hdHjqePtIO4PkCA+GUIRD2gQBg0kGM8xbnEkEZ5T0LKh95AgHVeJ0MLLM6DIKyyJgMeAJ2y3Yq84eMkspIvWN+neWKOi6dh1UzgbRPgeC5yA4MuS9AaGexgwEu+x4UVlU8/Sbr83QAf1l3c+3XB6pWjYeoBHjFAj4DVBkogPSukMsR4e8RgFF1QAQKArRi1eNGq3ZeCr5VtQKsX1+rfzRyiCN1k/ZhQdKPoDC2NDdkA9HQfXwduDgVNqqChAOG7EC5U9/9Z8rH9CtfLL2p8tmSSe2TAiQ3ncnCAd5SJHxz2TKMnjVcQM+NM8f04zS3QOlt08fPzr/CeSbmxAJGOBzp+il1miSRQ7tVYXYJp5DH7Xeled5+Qa3Dkhrztd+XiNaaGhiBeppC5LEIBLmdW+NJonlsN86E8+lrICXGbtcVMPhwZou19iDo/PXQxF5hPvM0K762hVlNPW7UuF1pWFdeEXfR+88lqKND85g59orj5RKzedO1EvD+ZtIJt4WFiNV9qGdS8XXxhL0MPaEVMqdXVC90T2yvWwj5mXVwHMqG9aMfphTY88pLfG0VxVgu68MIc5Sef8b710yAtDna69cPU1qfiUh62dgOspNwUOWe9DGRM+ZRGmKtw62Xieuzq5Ceckn6D6ZCXNaAAZ7CLwp1jthrwnHvpuBfXIRvcZY+3Tpa1V6n3vQQ7RiAXe409/nUPosiU5iLL4QMaCeycFxbjK+4Gehkp8xpkoGKubKNdjgfwP9ioA8iweqyMKW1acDMaX64yaDzpocrHbdhg227YqBKMvyXju1YwQg7cvuNVfcXyy3nJ32J4AAMeFz4Tzs4mejgclBO5sCCoJ0tR9TVTeWipXIUz2YLrfoffMBsmb1InlSNwLdVljSYvveWqJ49OtbYGZlepehMpyXnZdKKvbop+2IXUwrKpjDHR93OdTeicVLgi6VwUJ7t89ijK4sQ2HP6dGrDm2PhLotetiNpgPVZXi741I8aN0t80R9Pv/VU4P9kJi0VLnm8iU5cvsOAu1Y//8jLZMlF3SBN0ZrRNFnBG8RRxza2utYf3syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(k,z,o){(function(M){M(o("VrN/"))})(function(M){"use strict";var g=M.Pos;function O(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",C=new RegExp("<(/?)(["+b+"]["+y+"]*)","g");function A(h,d,s,u){this.line=d,this.ch=s,this.cm=h,this.text=h.getLine(d),this.min=u?Math.max(u.from,h.firstLine()):h.firstLine(),this.max=u?Math.min(u.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),u=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,u?"selfClose":"regular"}}function l(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}C.lastIndex=d,h.ch=d;var s=C.exec(h.text);if(s&&s.index==d)return s}}function n(h){for(;;){C.lastIndex=h.ch;var d=C.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),u=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,u?"selfClose":"regular"}}function r(h,d){for(var s=[];;){var u=n(h),w,E=h.line,_=h.ch-(u?u[0].length:0);if(!u||!(w=a(h)))return;if(w=="selfClose")continue;if(u[1]){for(var P=s.length-1;P>=0;--P)if(s[P]==u[2]){s.length=P;break}if(P<0&&(!d||d==u[2]))return{tag:u[2],from:g(E,_),to:g(h.line,h.ch)}}else s.push(u[2])}}function c(h,d){for(var s=[];;){var u=i(h);if(!u)return;if(u=="selfClose"){l(h);continue}var w=h.line,E=h.ch,_=l(h);if(!_)return;if(_[1])s.push(_[2]);else{for(var P=s.length-1;P>=0;--P)if(s[P]==_[2]){s.length=P;break}if(P<0&&(!d||d==_[2]))return{tag:_[2],from:g(h.line,h.ch),to:g(w,E)}}}}M.registerHelper("fold","xml",function(h,d){for(var s=new A(h,d.line,0);;){var u=n(s);if(!u||s.line!=d.line)return;var w=a(s);if(!w)return;if(!u[1]&&w!="selfClose"){var E=g(s.line,s.ch),_=r(s,u[2]);return _&&O(_.from,E)>0?{from:E,to:_.from}:null}}}),M.findMatchingTag=function(h,d,s){var u=new A(h,d.line,d.ch,s);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var w=a(u),E=w&&g(u.line,u.ch),_=w&&l(u);if(!w||!_||O(u,d)>0)return;var P={from:g(u.line,u.ch),to:E,tag:_[2]};return w=="selfClose"?{open:P,close:null,at:"open"}:_[1]?{open:c(u,_[2]),close:P,at:"close"}:(u=new A(h,E.line,E.ch,s),{open:P,close:r(u,_[2]),at:"open"})},M.findEnclosingTag=function(h,d,s,u){for(var w=new A(h,d.line,d.ch,s);;){var E=c(w,u);if(!E)break;var _=new A(h,d.line,d.ch,s),P=r(_,E.tag);if(P)return{open:E,close:P}}},M.scanForClosingTag=function(h,d,s,u){var w=new A(h,d.line,d.ch,u?{from:0,to:u}:null);return r(w,s)}})},p5ED:function(k,z,o){"use strict";var M=o("+L6B"),g=o("2/Rp"),O=o("5Dmo"),b=o("3S7+"),y=o("k1fw"),C=o("9og8"),A=o("tJVT"),m=o("WmNS"),e=o.n(m),f=o("q1tI"),a=o.n(f),l=o("vHTk"),n=o.n(l),i=o("yEEn"),r=o("ZW9T"),c=o("1vsH"),h=o("V0Rq"),d=o("m3rI");z.a=function(s){var u,w,E,_,P,R,x,S=s.editOffice,v=S===void 0?"view":S,T=s.data,U=s.theme,L=s.type,N=s.filename,V=s.monacoEditor,H=s.className,D=s.style,W=s.close,F=s.onClose,I=s.hasMask,K=s.disabledDownload,ee=Object(f.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),he=Object(A.a)(ee,2),de=he[0],Se=he[1],Te=Object(f.useState)(""),ce=Object(A.a)(Te,2),be=ce[0],ye=ce[1],ue=Object(f.useState)(),se=Object(A.a)(ue,2),$=se[0],me=se[1],re=window.ENV==="build"?"/react/build":"",ae=d.a.PROXY_SERVER||location.origin,Oe,le=1024*1024,te=10*le,Q=Object(f.useRef)();(u=T)!==null&&u!==void 0&&u.startsWith("/api")&&L!=="txt"&&(T=d.a.API_SERVER+T),L==="office"&&(Oe=Object(c.T)(T).filesize,Oe>te&&(L="other")),N&&V&&(V.filename=N),Object(f.useEffect)(function(){var Ae,Je,tt=(Ae=document.cookie)===null||Ae===void 0||((Je=Ae.replace(/\s/g,""))===null||Je===void 0)?void 0:Je.split(";");tt==null||tt.map(function(ut){var ft=ut.split("=");ft[0]==="_educoder_session"&&ye(ft[1])})},[]),Object(f.useEffect)(function(){L==="office"&&J()},[L,T]);var J=function(){var Ae=Object(C.a)(e.a.mark(function Je(){var tt,ut,ft;return e.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return console.log("data:",T),tt=T,T.startsWith("http")||(tt=location.origin+tt),ut=new URL(tt).pathname.split("/").pop(),_t.next=6,Object(h.V)({attachment_id:ut});case 6:ft=_t.sent,me(ft);case 8:case"end":return _t.stop()}},Je)}));return function(){return Ae.apply(this,arguments)}}(),ve=function(){if(T.startsWith("http")||T.startsWith("blob:")){_e();return}Object(c.z)(N||"educoder",T,N)},_e=function(){Object(c.x)(N||"educoder",decodeURIComponent(T))};return a.a.createElement("div",{style:Object(y.a)({},D||{}),className:"".concat(I&&n.a.bgBlack," ").concat(L?n.a.wrp:"hide")},W&&a.a.createElement("div",{className:n.a.close,ref:Q},!K&&a.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Q.current}},a.a.createElement("span",{onClick:_e},a.a.createElement("i",{className:"icon-quxiaozhiding"}))),a.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Q.current}},a.a.createElement("span",{className:"",onClick:F},a.a.createElement("i",{className:"icon-guanbi1"})))),a.a.createElement("div",{className:"".concat(n.a[H]," ").concat(H," ").concat(n.a.monaco," ").concat(L==="txt"?"show":"hide")},L==="txt"&&a.a.createElement(r.b,V)),L==="audio"&&a.a.createElement("audio",{src:"".concat(((w=T)===null||w===void 0?void 0:w.indexOf("http://"))>-1||((E=T)===null||E===void 0?void 0:E.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(T),autoPlay:!0}),L==="video"&&a.a.createElement(a.a.Fragment,null,((_=T)===null||_===void 0?void 0:_.indexOf("http"))>-1?a.a.createElement("video",{controls:!0,src:"".concat(T),autoPlay:!0}):a.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(T),autoPlay:!0})),L==="office"&&$&&a.a.createElement("iframe",{src:"".concat(re,"/office.html?key=").concat($.key,"&url=").concat(ae+$.url,"&callbackUrl=").concat(ae+$.callbackUrl,"&fileType=").concat($.fileType,"&title=").concat($.title,"&model=").concat(v,"&officeServer=").concat(d.a.OFFICE_SERVER,"&disabledDownload=").concat(!!K)}),L==="html"&&a.a.createElement("iframe",{src:T+"&disposition=inline"}),L==="pdf"&&a.a.createElement("iframe",{src:"".concat(re,"/js/pdfview/index.html?url=").concat(T,"&disabledDownload=").concat(!!K)}),L==="image"&&a.a.createElement("img",{src:"".concat(((P=T)===null||P===void 0?void 0:P.indexOf("http://"))>-1||((R=T)===null||R===void 0?void 0:R.indexOf("https://"))>-1||(x=T)!==null&&x!==void 0&&x.startsWith("/api")?"":"data:image/png;base64,").concat(T)}),L==="other"&&a.a.createElement("div",null,a.a.createElement(g.a,{type:"primary",size:"large",onClick:ve},a.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),L==="download"&&a.a.createElement(g.a,{type:"primary",size:"large",onClick:ve},a.a.createElement(i.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(k,z,o){},pA7S:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.WordArray,y=O.BlockCipher,C=g.algo,A=[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],l=C.DES=y.extend({_doReset:function(){for(var c=this._key,h=c.words,d=[],s=0;s<56;s++){var u=A[s]-1;d[s]=h[u>>>5]>>>31-u%32&1}for(var w=this._subKeys=[],E=0;E<16;E++){for(var _=w[E]=[],P=e[E],s=0;s<24;s++)_[s/6|0]|=d[(m[s]-1+P)%28]<<31-s%6,_[4+(s/6|0)]|=d[28+(m[s+24]-1+P)%28]<<31-s%6;_[0]=_[0]<<1|_[0]>>>31;for(var s=1;s<7;s++)_[s]=_[s]>>>(s-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var R=this._invSubKeys=[],s=0;s<16;s++)R[s]=w[15-s]},encryptBlock:function(c,h){this._doCryptBlock(c,h,this._subKeys)},decryptBlock:function(c,h){this._doCryptBlock(c,h,this._invSubKeys)},_doCryptBlock:function(c,h,d){this._lBlock=c[h],this._rBlock=c[h+1],n.call(this,4,252645135),n.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),n.call(this,1,1431655765);for(var s=0;s<16;s++){for(var u=d[s],w=this._lBlock,E=this._rBlock,_=0,P=0;P<8;P++)_|=f[P][((E^u[P])&a[P])>>>0];this._lBlock=E,this._rBlock=w^_}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,n.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),n.call(this,16,65535),n.call(this,4,252645135),c[h]=this._lBlock,c[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function n(c,h){var d=(this._lBlock>>>c^this._rBlock)&h;this._rBlock^=d,this._lBlock^=d<>>c^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),u=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=l.createEncryptor(b.create(d)),this._des2=l.createEncryptor(b.create(s)),this._des3=l.createEncryptor(b.create(u))},encryptBlock:function(c,h){this._des1.encryptBlock(c,h),this._des2.decryptBlock(c,h),this._des3.encryptBlock(c,h)},decryptBlock:function(c,h){this._des3.decryptBlock(c,h),this._des2.encryptBlock(c,h),this._des1.decryptBlock(c,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=y._createHelper(r)}(),M.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 l}),o.d(z,"f",function(){return n}),o.d(z,"e",function(){return i}),o.d(z,"i",function(){return r}),o.d(z,"b",function(){return c}),o.d(z,"a",function(){return h}),o.d(z,"d",function(){return d}),o.d(z,"c",function(){return s});var M=o("C/vA"),g=o("JYp7");const O=!1;let b=null;function y(u){b=u}if(O){const u="__is_disposable_tracked__";y(new class{trackDisposable(w){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{w[u]||console.log(E)},3e3)}setParent(w,E){if(w&&w!==h.None)try{w[u]=!0}catch(_){}}markAsDisposed(w){if(w&&w!==h.None)try{w[u]=!0}catch(E){}}markAsSingleton(w){}})}function C(u){return b==null||b.trackDisposable(u),u}function A(u){b==null||b.markAsDisposed(u)}function m(u,w){b==null||b.setParent(u,w)}function e(u,w){if(!b)return;for(const E of u)b.setParent(E,w)}function f(u){return b==null||b.markAsSingleton(u),u}class a extends Error{constructor(u){super(`Encountered errors while disposing of store. Errors: [${u.join(", ")}]`);this.errors=u}}function l(u){return typeof u.dispose=="function"&&u.dispose.length===0}function n(u){if(g.a.is(u)){let w=[];for(const E of u)if(E)try{E.dispose()}catch(_){w.push(_)}if(w.length===1)throw w[0];if(w.length>1)throw new a(w);return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}function i(...u){const w=r(()=>n(u));return e(u,w),w}function r(u){const w=C({dispose:Object(M.a)(()=>{A(w),u()})});return w}class c{constructor(){this._toDispose=new Set,this._isDisposed=!1,C(this)}dispose(){if(this._isDisposed)return;A(this),this._isDisposed=!0,this.clear()}clear(){try{n(this._toDispose.values())}finally{this._toDispose.clear()}}add(u){if(!u)return u;if(u===this)throw new Error("Cannot register a disposable on itself!");return m(u,this),this._isDisposed?c.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(u),u}}c.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new c,C(this),m(this._store,this)}dispose(){A(this),this._store.dispose()}_register(u){if(u===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(u)}}h.None=Object.freeze({dispose(){}});class d{constructor(){this._isDisposed=!1,C(this)}get value(){return this._isDisposed?void 0:this._value}set value(u){var w;if(this._isDisposed||u===this._value)return;(w=this._value)===null||w===void 0||w.dispose(),u&&m(u,this),this._value=u}clear(){this.value=void 0}dispose(){var u;this._isDisposed=!0,A(this),(u=this._value)===null||u===void 0||u.dispose(),this._value=void 0}clearAndLeak(){const u=this._value;return this._value=void 0,u&&m(u,null),u}}class s{constructor(u){this.object=u}dispose(){}}},psGv:function(k,z,o){var M,g;(function(){var O;(function(){"use strict";var A=[,,function(a){function l(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}l.prototype.clone_empty=function(){var r=new l(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},l.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},l.prototype.has_match=function(r){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(r))return!0;return!1},l.prototype.set_indent=function(r,c){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.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)},l.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},l.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},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(r){this.__items.push(r);var c=r.lastIndexOf(` `);c!==-1?this.__character_count=r.length-c:this.__character_count+=r.length},l.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.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 n(r,c){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)),c=c||"",r.indent_level>0&&(c=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}n.prototype.get_indent_size=function(r,c){var h=this.__base_string_length;return c=c||0,r<0&&(h=0),h+=r*this.__indent_size,h+=c,h},n.prototype.get_indent_string=function(r,c){var h=this.__base_string;return c=c||0,r<0&&(r=0,h=""),c+=r*this.__indent_size,this.__ensure_cache(c),h+=this.__cache[c],h},n.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var r=this.__cache.length,c=0,h="";this.__indent_size&&r>=this.__indent_size&&(c=Math.floor(r/this.__indent_size),r-=c*this.__indent_size,h=new Array(c+1).join(this.__indent_string)),r&&(h+=new Array(r+1).join(" ")),this.__cache.push(h)};function i(r,c){this.__indent_cache=new n(r,c),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 l(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(r,c){return this.__indent_cache.get_indent_string(r,c)},i.prototype.get_indent_size=function(r,c){return this.__indent_cache.get_indent_size(r,c)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(r){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===` `&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(` `);return r!==` @@ -572,7 +572,7 @@ You passed in: '`+this.raw_options[r]+"'");return d},l.prototype._is_valid_selec * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com */return M.mode.CTRGladman=function(){var g=M.lib.BlockCipherMode.extend();function O(C){if((C>>24&255)===255){var A=C>>16&255,m=C>>8&255,e=C&255;A===255?(A=0,m===255?(m=0,e===255?e=0:++e):++m):++A,C=0,C+=A<<16,C+=m<<8,C+=e}else C+=1<<24;return C}function b(C){return(C[0]=O(C[0]))===0&&(C[1]=O(C[1])),C}var y=g.Encryptor=g.extend({processBlock:function(C,A){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 l=a.slice(0);m.encryptBlock(l,0);for(var n=0;n=O.length?{done:!0}:{done:!1,value:O[C++]}},e:function(l){throw l},f:A}}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=O[Symbol.iterator]()},n:function(){var l=y.next();return m=l.done,l},e:function(l){e=!0,f=l},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 M=O(o("q1tI")),g=O(o("+QRC"));function O(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,u){var w=Object.keys(s);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(s);u&&(E=E.filter(function(_){return Object.getOwnPropertyDescriptor(s,_).enumerable})),w.push.apply(w,E)}return w}function C(s){for(var u=1;u=0)continue;if(!Object.prototype.propertyIsEnumerable.call(s,E))continue;w[E]=s[E]}}return w}function m(s,u){if(s==null)return{};var w={},E=Object.keys(s),_,P;for(P=0;P=0)continue;w[_]=s[_]}return w}function e(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function f(s,u){for(var w=0;w"']/,M=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,O=/[<>"']|&(?!#?\w+;)/g,b={"&":"&","<":"<",">":">",'"':""","'":"'"},y=R=>b[R];function C(R,x){if(x){if(o.test(R))return R.replace(M,y)}else if(g.test(R))return R.replace(O,y);return R}const A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(R){return R.replace(A,(x,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(R,x){R=R.source||R,x=x||"";const S={replace:(v,T)=>(T=T.source||T,T=T.replace(e,"$1"),R=R.replace(v,T),S),getRegex:()=>new RegExp(R,x)};return S}const a=/[^\w:]/g,l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function n(R,x,S){if(R){let v;try{v=decodeURIComponent(m(S)).replace(a,"").toLowerCase()}catch(T){return null}if(v.indexOf("javascript:")===0||v.indexOf("vbscript:")===0||v.indexOf("data:")===0)return null}x&&!l.test(S)&&(S=d(x,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(v){return null}return S}const i={},r=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(R,x){i[" "+R]||(r.test(R)?i[" "+R]=R+"/":i[" "+R]=E(R,"/",!0)),R=i[" "+R];const S=R.indexOf(":")===-1;return x.substring(0,2)==="//"?S?x:R.replace(c,"$1")+x:x.charAt(0)==="/"?S?x:R.replace(h,"$1")+x:R+x}const s={exec:function(){}};function u(R){let x=1,S,v;for(;x{let V=!1,H=L;for(;--H>=0&&N[H]==="\\";)V=!V;return V?"|":" |"}),v=S.split(/ \|/);let T=0;if(v.length>x)v.splice(x);else for(;v.length=7){L.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}st(bt.target.value)}})),r.a.createElement("div",{className:"mt10 font14"},r.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),r.a.createElement(V.a.Group,{value:Qt,onChange:function(bt){return Kt(bt.target.value)}},r.a.createElement(V.a,{value:W.Manager},"\u7BA1\u7406\u4EBA\u5458"),r.a.createElement(V.a,{value:W.Developer},"\u5F00\u53D1\u4EBA\u5458"),r.a.createElement(V.a,{value:W.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},I=F,K=o("Jky8"),ee=o("6Fuo"),he=o.n(ee),de=o("NLgs"),Se=o("xKgJ"),Te;(function(qe){qe.Projects="projects",qe.Shixuns="shixuns",qe.Classrooms="classrooms"})(Te||(Te={}));var ce;(function(qe){qe.Classrooms="classrooms",qe.Shixuns="shixuns",qe.Paths="paths",qe.Projects="projects",qe.Videos="videos",qe.Topics="topics"})(ce||(ce={}));var be=function(He){var Ye,Ce,Le,We,Ue,ze,st,Ct=He.homePage,Wt=He.user,Qt=He.globalSetting,Kt=He.loading,Ot=He.dispatch,Fe=He.location,at=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","location"]),it=Object(i.useState)(),Pe=Object(y.a)(it,2),Qe=Pe[0],pt=Pe[1],bt=Object(i.useState)(),Dt=Object(y.a)(bt,2),It=Dt[0],ct=Dt[1],Nt=function(lr){var Zn;if(!Object(de.e)(Ot))return;if(lr===Te.Projects&&!((Zn=Wt.userInfo)!==null&&Zn!==void 0&&Zn.email)){L.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}lr===Te.Classrooms?pt(!0):lr===Te.Projects&&ct(!0)},jt=function(lr,Zn){var cr;if(!Object(de.e)(Ot))return;if(Zn===Te.Projects&&!((cr=Wt.userInfo)!==null&&cr!==void 0&&cr.email)){L.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(Zn===Te.Shixuns&&!Object(de.c)())return;lr&&(window.location.href=lr)},on=(Ye=(((Ce=Qt.setting)===null||Ce===void 0?void 0:Ce.navbar)||[]).find(function(fn){return fn.link==="/".concat(ce.Classrooms)}))===null||Ye===void 0?void 0:Ye.hidden,vn=(Le=(((We=Qt.setting)===null||We===void 0?void 0:We.navbar)||[]).find(function(fn){return fn.link==="/".concat(ce.Shixuns)}))===null||Le===void 0?void 0:Le.hidden,Wn=(Ue=(((ze=Qt.setting)===null||ze===void 0?void 0:ze.navbar)||[]).find(function(fn){return fn.link==="/".concat(ce.Paths)}))===null||Ue===void 0?void 0:Ue.hidden;if(Qt!=null&&(st=Qt.setting)!==null&&st!==void 0&&st.is_local){var Kn;Wt!=null&&(Kn=Wt.userInfo)!==null&&Kn!==void 0&&Kn.is_shixun_marker||(vn=!0)}var Hn=function(lr){var Zn,cr,dr,Dr,hr,sn,en,On,Fr,Or,xr,fr;return r.a.createElement(r.a.Fragment,null,r.a.createElement(R.a,{justify:"space-around",className:"pt5 pb5"},r.a.createElement(S.a,{className:he.a.joinCol},!(Qt!=null&&(Zn=Qt.setting)!==null&&Zn!==void 0&&Zn.hide_course)&&((cr=Wt.userInfo)===null||cr===void 0?void 0:cr.user_identity)!=="\u5B66\u751F"&&!on&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return jt("/classrooms/new")}},(dr=Wt.userInfo)!==null&&dr!==void 0&&dr.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!(Qt!=null&&(Dr=Qt.setting)!==null&&Dr!==void 0&&Dr.hide_shixun&&Object(Se.m)())&&!(Qt!=null&&(hr=Qt.setting)!==null&&hr!==void 0&&hr.hide_course)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return jt("/shixuns/new",Te.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),!(Qt!=null&&(sn=Qt.setting)!==null&&sn!==void 0&&sn.hide_subject&&Object(Se.m)())&&!(Qt!=null&&(en=Qt.setting)!==null&&en!==void 0&&en.hide_course)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return jt("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Qt!=null&&(On=Qt.setting)!==null&&On!==void 0&&On.is_local)&&((Fr=Wt.userInfo)===null||Fr===void 0?void 0:Fr.main_site)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){var X,q;return jt("".concat((X=Wt.navigationInfo)===null||X===void 0||((q=X.top)===null||q===void 0)?void 0:q.old_url,"/projects/deposit/new"),Te.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),r.a.createElement(S.a,null,r.a.createElement("div",{className:he.a.joinBoard})),r.a.createElement(S.a,{className:he.a.joinCol},!on&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return Nt(Te.Classrooms)}},(Or=Wt.userInfo)!==null&&Or!==void 0&&Or.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((xr=Wt.userInfo)===null||xr===void 0?void 0:xr.main_site)&&!(Qt!=null&&(fr=Qt.setting)!==null&&fr!==void 0&&fr.is_local)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return Nt(Te.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return r.a.createElement("section",null,r.a.createElement(_.a,{overlay:r.a.createElement(T.a,{className:"".concat(he.a.rightMenu," ").concat(he.a.joinMenu," mt10")},r.a.createElement(Hn,null)),placement:"bottomRight"},r.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),r.a.createElement(K.a,{visible:Qe,onCancel:function(){return pt(!1)}}),r.a.createElement(I,{visible:It,onCancel:function(){return ct(!1)}}))},ye=Object(d.a)(function(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting;return{homePage:He,user:Ce,globalSetting:Le,loading:Ye.models.index}})(be),ue=o("vToQ"),se=o.n(ue),$=o("jb+D"),me=o("m3rI"),re=function(He){var Ye,Ce=RegExp("(^| )"+He+"=([^;]+)(;|$)");return(Ye=document.cookie.match(Ce))?decodeURIComponent(Ye[2]):null},ae=function(He){var Ye=new Date;Ye.setTime(Ye.getTime()-1);var Ce=re(He);Ce!=null&&(document.cookie=He+"="+Ce+";expires="+Ye.toGMTString())},Oe;(function(qe){qe.Classrooms="classrooms",qe.Shixuns="shixuns",qe.Paths="paths",qe.Projects="projects",qe.Videos="videos",qe.Topics="topics"})(Oe||(Oe={}));var le=function(He){var Ye,Ce,Le,We,Ue,ze,st,Ct,Wt,Qt,Kt,Ot=He.homePage,Fe=He.user,at=He.globalSetting,it=He.loading,Pe=He.dispatch,Qe=He.shixunHomeworks,pt=He.location,bt=He.payload,Dt=bt===void 0?{}:bt,It=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),ct=(Ye=(((Ce=at.setting)===null||Ce===void 0?void 0:Ce.navbar)||[]).find(function(fn){return fn.link==="/".concat(Oe.Classrooms)}))===null||Ye===void 0?void 0:Ye.hidden,Nt=(Le=(((We=at.setting)===null||We===void 0?void 0:We.navbar)||[]).find(function(fn){return fn.link==="/".concat(Oe.Shixuns)}))===null||Le===void 0?void 0:Le.hidden,jt=(Ue=(((ze=at.setting)===null||ze===void 0?void 0:ze.navbar)||[]).find(function(fn){return fn.link==="/".concat(Oe.Paths)}))===null||Ue===void 0?void 0:Ue.hidden,on=((st=Fe.userInfo)===null||st===void 0?void 0:st.admin)||((Ct=Fe.userInfo)===null||Ct===void 0?void 0:Ct.business)||((Wt=Fe.userInfo)===null||Wt===void 0?void 0:Wt.is_shixun_marker)||((Qt=Fe.userInfo)===null||Qt===void 0?void 0:Qt.is_teacher)||((Kt=Fe.userInfo)===null||Kt===void 0?void 0:Kt.user_identity)!=="\u5B66\u751F",vn=function(){if(Object(D.r)())return r.a.createElement(T.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var lr,Zn,cr,dr,Dr,hr,sn,en,On,Fr,Or,xr,fr,pe,X,q,oe,De,fe,ot,Zt,Mn;return r.a.createElement(T.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((lr=Fe.userInfo)===null||lr===void 0?void 0:lr.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!ct&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Zn=Fe.userInfo)===null||Zn===void 0?void 0:Zn.login,"/classrooms")},(cr=Fe.userInfo)!==null&&cr!==void 0&&cr.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!Nt&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((dr=Fe.userInfo)===null||dr===void 0?void 0:dr.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!jt&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Dr=Fe.userInfo)===null||Dr===void 0?void 0:Dr.login,"/paths")},(hr=Fe.userInfo)!==null&&hr!==void 0&&hr.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((sn=Fe.userInfo)===null||sn===void 0?void 0:sn.main_site)&&!((en=at.setting)!==null&&en!==void 0&&en.is_local)&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((On=Fe.userInfo)===null||On===void 0?void 0:On.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),on&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Fr=Fe.userInfo)===null||Fr===void 0?void 0:Fr.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),on&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{onClick:function(){if(!Object(de.e)(Pe))return;d.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),on&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{onClick:function(){if(!Object(de.e)(Pe))return;d.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((Or=Fe.navigationInfo)===null||Or===void 0||((xr=Or.top)===null||xr===void 0)?void 0:xr.customer_management_url)&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{href:(fr=Fe.navigationInfo)===null||fr===void 0||((pe=fr.top)===null||pe===void 0)?void 0:pe.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((X=Fe.navigationInfo)===null||X===void 0||((q=X.top)===null||q===void 0)?void 0:q.college_identifier)&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/colleges/".concat((oe=Fe.navigationInfo)===null||oe===void 0||((De=oe.top)===null||De===void 0)?void 0:De.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((fe=Fe.navigationInfo)===null||fe===void 0||((ot=fe.top)===null||ot===void 0)?void 0:ot.laboratory_admin_url)&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{href:(Zt=Fe.navigationInfo)===null||Zt===void 0||((Mn=Zt.top)===null||Mn===void 0)?void 0:Mn.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||Pe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:r.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")),r.a.createElement(T.a.Item,{className:se.a.exit},r.a.createElement("a",{onClick:Object(O.a)(n.a.mark(function Vn(){var qt;return n.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object($.c)({});case 2:qt=un.sent,(qt==null?void 0:qt.status)===1&&(Pe({type:"user/getUserInfo",payload:Object(A.a)({},Dt)}),Pe({type:"user/getNavigationInfo",payload:Object(A.a)({},Dt)}),ae("autologin_trustie"),ae("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),L.b.success(qt==null?void 0:qt.message),d.d.replace("/"));case 4:case"end":return un.stop()}},Vn)}))},"\u9000\u51FA")))};if(Object(Se.p)()){var Wn,Kn;return r.a.createElement(_.a,{className:"".concat(se.a.height67),overlay:vn,placement:"bottomRight"},r.a.createElement("section",null,r.a.createElement("aside",null,r.a.createElement("div",{className:Qe.actionTabs.type===1?se.a.classromediv:""},r.a.createElement("img",{className:"".concat(se.a.userPic," current ml15"),src:"".concat(me.a===null||me.a===void 0?void 0:me.a.IMG_SERVER,"/images/").concat((Wn=Fe.userInfo)===null||Wn===void 0?void 0:Wn.image_url),alt:"",onClick:function(){var lr;return d.d.push(Object(D.r)()?"/account/profile":"/users/".concat((lr=Fe.userInfo)===null||lr===void 0?void 0:lr.login,"/classrooms"))}}),Object(D.r)()&&r.a.createElement("span",{className:"ml10 font16"},(Kn=Fe.userInfo)===null||Kn===void 0?void 0:Kn.username)))))}else{var Hn;return r.a.createElement("div",{className:"font15 ".concat(at.isIlearning?se.a.login:"")},r.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){Pe({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((Hn=at.setting)!==null&&Hn!==void 0&&Hn.close_register)&&r.a.createElement(r.a.Fragment,null,r.a.createElement("span",{className:"ml5 mr5"},"|"),r.a.createElement(h.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},te=Object(d.a)(function(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting,We=qe.shixunHomeworks;return{homePage:He,user:Ce,globalSetting:Le,shixunHomeworks:We,loading:Ye.models.index}})(le),Q=o("+L6B"),J=o("2/Rp"),ve=o("Cs+z"),_e=o.n(ve),Ae=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Je=function(He){var Ye=He.homePage,Ce=He.user,Le=He.globalSetting,We=He.loading,Ue=He.dispatch,ze=He.location,st=He.text,Ct=He.shixunHomeworks,Wt=He.payload,Qt=Wt===void 0?{}:Wt,Kt=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Ot=Object(i.useState)("none"),Fe=Object(y.a)(Ot,2),at=Fe[0],it=Fe[1];return Object(i.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&it("flex")},[Ct.actionTabs.key]),Object(i.useEffect)(function(){Ct.actionTabs.key==="\u9690\u85CF"&&(it("none"),localStorage.setItem("Noviceguide","0"))},[Ct.actionTabs.key]),r.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"}},r.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},r.a.createElement("img",{src:_e.a,style:{position:"absolute",top:"-32px"}}),r.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Ct.actionTabs.text),Ct.actionTabs.type===9?r.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},r.a.createElement(J.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),it("none"),Ue({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")):r.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},r.a.createElement(J.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Ue({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),it("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},tt=Object(d.a)(function(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting,We=qe.shixunHomeworks;return{homePage:He,user:Ce,globalSetting:Le,loading:Ye.models.index,shixunHomeworks:We}})(Je),ut=o("498V"),ft=o.n(ut),vt=o("wd/R"),_t=o.n(vt),Ve=a.a.Header,je=e.a.Search;function ht(){var qe,He,Ye=window.location.pathname,Ce=Ye.split("/"),Le={};return Ce[1]=="classrooms"&&Ce.length>3&&!((qe=Ce[4])!==null&&qe!==void 0&&qe.includes("newgold"))&&!((He=Ce[5])!==null&&He!==void 0&&He.includes("newgold"))&&Ce[2]!=="coursesId"&&(Le.course_id=Ce[2]),Ce[1]==="shixuns"&&Ce.length>3&&(Le.objective_type="shixun",Le.objective_id=Ce[2]),Ce[1]==="paths"&&Ce.length>3&&(Le.objective_type="path",Le.objective_id=Ce[2]),Object(A.a)(Object(A.a)({},Le),{school:1})}var Bt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Et=function(He){var Ye,Ce,Le=He.homePage,We=He.user,Ue=He.globalSetting,ze=He.loading,st=He.dispatch,Ct=He.location,Wt=He.isLogin,Qt=Wt===void 0?!1:Wt,Kt=He.shixunHomeworks,Ot=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),Fe=Object(c.g)(),at=Object(i.useState)(!1),it=Object(y.a)(at,2),Pe=it[0],Qe=it[1],pt=Object(i.useState)(""),bt=Object(y.a)(pt,2),Dt=bt[0],It=bt[1],ct=Object(i.useState)(!1),Nt=Object(y.a)(ct,2),jt=Nt[0],on=Nt[1],vn=ht(),Wn=Object(i.useState)("0"),Kn=Object(y.a)(Wn,2),Hn=Kn[0],fn=Kn[1],lr=Object(i.useRef)({id:0});Object(i.useEffect)(function(){var fe;return We!=null&&(fe=We.userInfo)!==null&&fe!==void 0&&fe.now_time&&(lr.current.id=setInterval(function(){fn(function(ot){if(ot==="0"){var Zt;return _t()(We==null||((Zt=We.userInfo)===null||Zt===void 0)?void 0:Zt.now_time,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")}else return _t()(ot,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")})},1e3)),function(){clearInterval(lr.current.id)}},[We==null||((Ye=We.userInfo)===null||Ye===void 0)?void 0:Ye.now_time]),Object(i.useEffect)(function(){st({type:"user/getNavigationInfo",payload:Object(A.a)({},vn)})},[Ue.name]),Object(i.useEffect)(function(){Kt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(Bt!=null&&Bt.includes(Ct==null?void 0:Ct.pathname)||(Ct==null?void 0:Ct.pathname.indexOf("/classrooms"))===0||st({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Ct.pathname]),Object(i.useEffect)(function(){Kt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Kt.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Kt.actionTabs.key]),Object(i.useEffect)(function(){if(Ue!=null&&Ue.setting){var fe,ot,Zt=Ue==null||((fe=Ue.setting)===null||fe===void 0||((ot=fe.navbar)===null||ot===void 0))?void 0:ot.filter(function(un){return!(un!=null&&un.hidden)&&!(Object(Se.m)()&&un.link==="/paperlibrary")}),Mn=Object(b.a)(Zt),Vn;try{for(Mn.s();!(Vn=Mn.n()).done;){var qt=Vn.value;qt.subitem&&(qt.subitem=qt.subitem.filter(function(un){return!(un!=null&&un.hidden)&&!(Object(Se.m)()&&un.link==="/paperlibrary")}))}}catch(un){Mn.e(un)}finally{Mn.f()}var yn=!1;Zt==null||Zt.map(function(un,jr){var ra,oa,er,Ba="/"+((ra=Ct.pathname)===null||ra===void 0||((oa=ra.split("/"))===null||oa===void 0)?void 0:oa[1]);if(un.link===Ba&&(It(un==null?void 0:un.link),Object(D.X)(un==null?void 0:un.name),en(Fr(jr,{name:un==null?void 0:un.name,link:un==null?void 0:un.link},Zt)),yn=!0),un!=null&&(er=un.subitem)!==null&&er!==void 0&&er.length){var Ea;un==null||((Ea=un.subitem)===null||Ea===void 0)||Ea.map(function(ca){ca.link===Ba&&(It(ca==null?void 0:ca.link),Object(D.X)(ca==null?void 0:ca.name),en(Fr(jr,{name:ca==null?void 0:ca.name,link:ca==null?void 0:ca.link},Zt)),yn=!0)})}}),yn||en(Zt)}},[Ue==null?void 0:Ue.setting,We]);var Zn=Object(i.useMemo)(function(){var fe;if(Ue!=null&&(fe=Ue.setting)!==null&&fe!==void 0&&fe.nav_logo_url){var ot;return"".concat(me.a.IMG_SERVER,"/").concat(Ue==null||((ot=Ue.setting)===null||ot===void 0)?void 0:ot.nav_logo_url)}else return"".concat(me.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[Ue==null||((Ce=Ue.setting)===null||Ce===void 0)?void 0:Ce.nav_logo_url]);function cr(fe){Fe.push("/search?value="+fe)}var dr=function(){return Pe?r.a.createElement("div",{onBlur:function(){setTimeout(function(){Qe(!1)},300)}},r.a.createElement(je,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:cr,autoFocus:!0})):r.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){Fe.push("/search?value=")}})},Dr=Object(i.useState)([]),hr=Object(y.a)(Dr,2),sn=hr[0],en=hr[1],On=function(){var fe=Object(O.a)(n.a.mark(function ot(Zt,Mn){var Vn,qt,yn,un,jr,ra,oa,er;return n.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:if(!((Zt==null?void 0:Zt.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Ea.next=6;break}return Ea.next=3,Object($.j)();case 3:return yn=Ea.sent,yn!=null&&(qt=yn.data)!==null&&qt!==void 0&&qt.engineer_url?yn!=null&&(un=yn.data)!==null&&un!==void 0&&(jr=un.engineer_url)!==null&&jr!==void 0&&jr.includes("http")?Object(D.S)(yn==null||((ra=yn.data)===null||ra===void 0)?void 0:ra.engineer_url):Fe.push(yn==null||((oa=yn.data)===null||oa===void 0)?void 0:oa.engineer_url):(yn==null?void 0:yn.status)!=401&&(Ue!=null&&(er=Ue.setting)!==null&&er!==void 0&&er.authority_qrcode_url?on(!0):on(!1)),Ea.abrupt("return");case 6:Zt!=null&&(Vn=Zt.link)!==null&&Vn!==void 0&&Vn.includes("http")?Object(D.S)(Zt==null?void 0:Zt.link):Fe.push(Zt==null?void 0:Zt.link),(Zt==null?void 0:Zt.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&st({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:r.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 Ea.stop()}},ot)}));return function(Zt,Mn){return fe.apply(this,arguments)}}(),Fr=function(ot,Zt,Mn){var Vn=Mn.slice();return Vn[ot]&&(Vn[ot].name=Zt.name,Vn[ot].link=Zt.link),Vn||[]};if(Ue.showHeader&&Ue.showHeaderFooter){var Or,xr,fr,pe,X,q,oe,De;return r.a.createElement(a.a,{className:"".concat(Ue.isIlearning?u.a["header-iearning"]:u.a.header," ").concat(Ue.showHeaderFixed?u.a.headerFixed:"")},r.a.createElement(Ve,{className:"header"},r.a.createElement("section",{className:u.a["edu-menu"]},(!!Ue.isIlearning||!(Ue!=null&&(Or=Ue.setting)!==null&&Or!==void 0&&Or.main_site)&&!!(Ue!=null&&(xr=Ue.setting)!==null&&xr!==void 0&&xr.navbar))&&r.a.createElement(h.a,{style:{display:"flex",alignItems:"center"},onClick:function(){st({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},r.a.createElement("img",{className:u.a.logo,title:(fr=Ue.setting)===null||fr===void 0?void 0:fr.name,src:Zn||ft.a})),r.a.createElement("ul",{className:"".concat(u.a.menu," ").concat(Object(D.r)()&&"ml0")},Object(D.r)()&&r.a.createElement("li",null,r.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(D.r)()&&Ue.setting&&sn.map(function(fe,ot){var Zt,Mn,Vn,qt,yn;return r.a.createElement("li",{key:ot,className:!(fe!=null&&(Zt=fe.subitem)!==null&&Zt!==void 0&&Zt.length)&&Dt===(fe==null?void 0:fe.link)||fe!=null&&(Mn=fe.subitem)!==null&&Mn!==void 0&&Mn.some(function(un){return Dt===(un==null?void 0:un.link)})?u.a.actived:""},r.a.createElement("div",{onClick:function(){return On(fe,ot)},className:Kt.actionTabs.type===4?"".concat(u.a.name," ").concat(u.a.classromediv):u.a.name},r.a.createElement("span",null,function(){var un=fe==null?void 0:fe.name;{var jr;fe==null||((jr=fe.subitem)===null||jr===void 0)||jr.map(function(ra,oa){return ra.link===Ct.pathname&&(un=ra.name),ra})}return un}()),(fe==null||((Vn=fe.subitem)===null||Vn===void 0)?void 0:Vn.length)>0&&r.a.createElement("i",{className:"iconfont icon-zhankai4"})),(fe==null||((qt=fe.subitem)===null||qt===void 0)?void 0:qt.length)>0&&r.a.createElement("div",{className:u.a.dropDown},fe==null||((yn=fe.subitem)===null||yn===void 0)?void 0:yn.map(function(un,jr){return r.a.createElement("div",{className:u.a.subName,onClick:function(){return On(un,ot)},key:ot+"-"+jr},!!jr&&r.a.createElement("div",{className:u.a.line}),r.a.createElement("aside",{className:"font16 c-black"},un.name),r.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},un.content))})))})),r.a.createElement("div",{className:"search-bar",style:{flex:Ue.isIlearning?"initial":"1 0 auto"}},r.a.createElement("div",{className:"timeShow"},Hn),!Object(D.r)()&&!(Ue!=null&&Ue.isIlearning)&&r.a.createElement(r.a.Fragment,null,r.a.createElement(dr,null),!Qt&&r.a.createElement(ye,null),!Qt&&!!(We!=null&&(pe=We.userInfo)!==null&&pe!==void 0&&pe.login)&&r.a.createElement(h.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(We==null||((X=We.userInfo)===null||X===void 0)?void 0:X.login,"/user_tidings")},(We==null||((q=We.navigationInfo)===null||q===void 0||((oe=q.top)===null||oe===void 0))?void 0:oe.new_message)&&r.a.createElement("span",{className:u.a.newslight}))),!Qt&&r.a.createElement(te,{payload:vn}))),r.a.createElement(g.a,{centered:!0,destroyOnClose:!0,visible:jt,title:"\u63D0\u793A",width:"500px",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){on(!1)},onCancel:function(){return on(!1)}},r.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},r.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"),r.a.createElement("img",{src:me.a.IMG_SERVER+(Ue==null||((De=Ue.setting)===null||De===void 0)?void 0:De.authority_qrcode_url),width:200,height:200})))),r.a.createElement(tt,null))}else return r.a.createElement(r.a.Fragment,null)},Pt=z.a=Object(d.a)(function(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting,We=qe.shixunHomeworks;return{homePage:He,user:Ce,globalSetting:Le,loading:Ye.models.index,shixunHomeworks:We}})(Et)},sLOW:function(k,z,o){"use strict";var M=o("iQDF"),g=o("+eQT"),O=o("Awhp"),b=o("KrTs"),y=o("O3gP"),C=o("lrIw"),A=o("7Kak"),m=o("9yH6"),e=o("sRBo"),f=o("kaz8"),a=o("+L6B"),l=o("2/Rp"),n=o("oBTY"),i=o("miYZ"),r=o("tsqr"),c=o("2qtc"),h=o("kLXV"),d=o("9og8"),s=o("tJVT"),u=o("PpiC"),w=o("WmNS"),E=o.n(w),_=o("q1tI"),P=o.n(_),R=o("9kvl"),x=o("Z0Lh"),S=o.n(x),v=o("9ZNV"),T=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,ye=I.shixunsDetail,ue=I.globalSetting,se=I.loading,$=I.user,me=I.dispatch,re=Object(u.a)(I,["shixunsDetail","globalSetting","loading","user","dispatch"]),ae=Object(_.useRef)(),Oe=Object(_.useState)(),le=Object(s.a)(Oe,2),te=le[0],Q=le[1],J=Object(_.useState)(),ve=Object(s.a)(J,2),_e=ve[0],Ae=ve[1],Je=Object(_.useState)([]),tt=Object(s.a)(Je,2),ut=tt[0],ft=tt[1],vt=Object(_.useState)([]),_t=Object(s.a)(vt,2),Ve=_t[0],je=_t[1],ht=Object(_.useState)(""),Bt=Object(s.a)(ht,2),Et=Bt[0],Pt=Bt[1],qe=Object(_.useState)(),He=Object(s.a)(qe,2),Ye=He[0],Ce=He[1],Le=Object(_.useState)(),We=Object(s.a)(Le,2),Ue=We[0],ze=We[1],st=(K=$.userInfo)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.editable;Object(_.useEffect)(function(){var Fe,at;ae.current=(Fe=location.pathname)===null||Fe===void 0||((at=Fe.split("/"))===null||at===void 0)?void 0:at[2],Ct()},[]),Object(_.useEffect)(function(){var Fe,at,it,Pe,Qe,pt,bt,Dt,It,ct;if(!ye.setting)return;Q((Fe=ye.setting)===null||Fe===void 0||((at=Fe.shixun)===null||at===void 0)?void 0:at.can_copy),Ae((it=ye.setting)===null||it===void 0||((Pe=it.shixun)===null||Pe===void 0)?void 0:Pe.use_scope),Ce(!!((Qe=ye.setting)!==null&&Qe!==void 0&&(pt=Qe.shixun)!==null&&pt!==void 0&&pt.opening_time)),ze((bt=ye.setting)===null||bt===void 0||((Dt=bt.shixun)===null||Dt===void 0)?void 0:Dt.opening_time),ft((It=ye.setting)===null||It===void 0||((ct=It.shixun)===null||ct===void 0)?void 0:ct.scope_partment)},[ye.setting]);var Ct=function(){var Fe=Object(d.a)(E.a.mark(function at(it){var Pe;return E.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:it}});case 2:Pe=pt.sent,Pe&&je(Pe.shools_name||[]);case 4:case"end":return pt.stop()}},at)}));return function(it){return Fe.apply(this,arguments)}}(),Wt=function(){var Fe=Object(d.a)(E.a.mark(function at(){var it,Pe,Qe,pt,bt,Dt,It;return E.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Nt.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ae.current}});case 2:if(Nt.t0=Nt.sent,Nt.t0){Nt.next=5;break}Nt.t0={};case 5:It=Nt.t0,h.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:P.a.createElement("div",{className:"tc font14 ".concat(V.a.modal)},!!((it=It.subjects)!==null&&it!==void 0&&it.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(Pe=It.subjects)===null||Pe===void 0||((Qe=Pe.splice(0,2))===null||Qe===void 0)?void 0:Qe.map(function(jt){return"\u300A".concat(jt,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},It==null?void 0:It.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),P.a.createElement("br",null)),!!((pt=It.courses)!==null&&pt!==void 0&&pt.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(bt=It.courses)===null||bt===void 0||((Dt=bt.splice(0,2))===null||Dt===void 0)?void 0:Dt.map(function(jt){return"\u300A".concat(jt,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},It==null?void 0:It.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),P.a.createElement("br",null)),P.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 jt=Object(d.a)(E.a.mark(function vn(){var Wn;return E.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ae.current}});case 2:Wn=Hn.sent,Wn.status===1&&(r.b.success("\u64CD\u4F5C\u6210\u529F"),R.d.push("/shixuns"));case 4:case"end":return Hn.stop()}},vn)}));function on(){return jt.apply(this,arguments)}return on}()});case 7:case"end":return Nt.stop()}},at)}));return function(){return Fe.apply(this,arguments)}}(),Qt=function(){if(Object(T.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},Kt=function(at){if(ut.includes(at)){r.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Pt(null),ft([].concat(Object(n.a)(ut),[at]))},Ot=function(){var Fe=Object(d.a)(E.a.mark(function at(){var it;return E.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!(Ye&&!Ue)){Qe.next=3;break}return r.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Qe.abrupt("return");case 3:if(!(_e===1&&!ut.length)){Qe.next=6;break}return r.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Qe.abrupt("return");case 6:return Qe.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ae.current,scope_partment:_e===0?null:ut,shixun:{can_copy:te,use_scope:_e,opening_time:Ue}}});case 8:it=Qe.sent,it.status!==-1&&(r.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 Qe.stop()}},at)}));return function(){return Fe.apply(this,arguments)}}();return P.a.createElement("section",{className:V.a.wrap},P.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(ye==null||((he=ye.detail)===null||he===void 0)?void 0:he.shixun_status)!==2?P.a.createElement(l.a,{danger:!0,onClick:Wt},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):P.a.createElement(l.a,{danger:!0,onClick:Qt},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u590D\u5236:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement("div",null,P.a.createElement(f.a,{checked:te,onChange:function(at){return Q(at.target.checked)},disabled:!st}),P.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=ye.detail)===null||de===void 0?void 0:de.shixun_status)>1||((Se=ye.detail)===null||Se===void 0?void 0:Se.public)===2)&&((Te=ye.setting)===null||Te===void 0||((ce=Te.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((be=ye.detail)===null||be===void 0?void 0:be.identity)>2)&&P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u516C\u5F00\u7A0B\u5EA6:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement(m.a.Group,{value:_e,onChange:function(at){return Ae(at.target.value)},disabled:!st},P.a.createElement(m.a,{className:V.a.radio,value:0},P.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),P.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),P.a.createElement(m.a,{className:V.a.radio,value:1},P.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),P.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&&P.a.createElement(P.a.Fragment,null,P.a.createElement("div",{className:"mt10"},P.a.createElement(C.a,{showSearch:!0,className:V.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:Et,onChange:function(at){Pt(at),Ct(at)},disabled:!st,onSelect:Kt,options:Ve==null?void 0:Ve.map(function(Fe){return{value:Fe}})}),P.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")),P.a.createElement("div",{className:"mt10"},ut==null?void 0:ut.map(function(Fe){return st?P.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return ft(ut.filter(function(it){return it!==Fe}))}},P.a.createElement(l.a,{type:"primary",ghost:!0},Fe)):P.a.createElement(l.a,{type:"primary",ghost:!0,className:"mr20"},Fe)}))))),P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u5F00\u542F\u65F6\u95F4:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement("div",null,P.a.createElement(f.a,{checked:Ye,onChange:function(at){return Ce(at.target.checked)},disabled:!st}),P.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")),Ye&&P.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(at){return at&&at1)Object(f.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(u.length===0)return Object(f.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=u[0];if(C.isValidElement(w)&&Object(a.c)(w)){var E=w.ref;u[0]=C.cloneElement(w,{ref:Object(a.a)(E,this.setChildNode)})}return u.length===1?u[0]:u.map(function(_,P){return!C.isValidElement(_)||"key"in _&&_.key!==null?_:C.cloneElement(_,{key:"".concat(n,"-").concat(P)})})}}]),h}(C.Component);i.displayName="ResizeObserver",z.a=i},t9D7:function(k,z,o){"use strict";o.d(z,"b",function(){return A}),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 l}),o.d(z,"f",function(){return r}),o.d(z,"c",function(){return c});var M=o("Vhoy"),g=o("MI8n"),O=o("pmY6"),b=o("Cg/j"),y=o("ic2d"),C=o("nEHx");const A=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(P){return P&&typeof P=="object"&&typeof P.id=="string"&&(typeof P.color=="undefined"||m.isThemeColor(P.color))}h.isThemeIcon=d;const s=new RegExp(`^\\$\\((${M.a.iconNameExpression}(?:${M.a.iconModifierExpression})?)\\)$`);function u(P){const R=s.exec(P);if(!R)return;let[,x]=R;return{id:x}}h.fromString=u;function w(P,R){let x=P.id;const S=x.lastIndexOf("~");return S!==-1&&(x=x.substring(0,S)),R&&(x=`${x}~${R}`),{id:x}}h.modify=w;function E(P,R){var x,S;return P.id===R.id&&((x=P.color)===null||x===void 0?void 0:x.id)===((S=R.color)===null||S===void 0?void 0:S.id)}h.isEqual=E;function _(P,R){return{id:P.id,color:R?e(R):void 0}}h.asThemeIcon=_,h.asClassNameArray=M.a.asClassNameArray,h.asClassName=M.a.asClassName,h.asCSSSelector=M.a.asCSSSelector})(f||(f={}));function a(h){switch(h){case C.a.DARK:return"vs-dark";case C.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const l={ThemingContribution:"base.contributions.theming"};class n{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new g.b}onColorThemeChange(h){return this.themingParticipants.push(h),this.onThemingParticipantAddedEmitter.fire(h),Object(O.i)(()=>{const d=this.themingParticipants.indexOf(h);this.themingParticipants.splice(d,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new n;y.a.add(l.ThemingContribution,i);function r(h){return i.onColorThemeChange(h)}class c extends O.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(M,g,O){k.exports=z=g(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(M){return function(){var g=M,O=g.x64,b=O.Word,y=O.WordArray,C=g.algo,A=C.SHA512,m=C.SHA384=A.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=A._doFinalize.call(this);return e.sigBytes-=16,e}});g.SHA384=A._createHelper(m),g.HmacSHA384=A._createHmacHelper(m)}(),M.SHA384})},uGxW:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.NoPadding={pad:function(){},unpad:function(){}},M.pad.NoPadding})},uK0f:function(k,z,o){(function(M,g){k.exports=g()})(this,function(){"use strict";function M(g,O,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=g||[],C=[],A=0;do{var m=y.filter(function(e){return O(e,A)})[0];if(!m)break;C.push(m),y=m[b.childrenKeyName]||[],A+=1}while(y.length>0);return C}return M})},ulZh:function(k,z,o){typeof window!="undefined"&&function(g,O){k.exports=O()}(this,function(){return function(M){var g={};function O(b){if(g[b])return g[b].exports;var y=g[b]={i:b,l:!1,exports:{}};return M[b].call(y.exports,y,y.exports,O),y.l=!0,y.exports}return O.m=M,O.c=g,O.d=function(b,y,C){O.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:C})},O.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},O.t=function(b,y){if(y&1&&(b=O(b)),y&8)return b;if(y&4&&typeof b=="object"&&b&&b.__esModule)return b;var C=Object.create(null);if(O.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var A in b)O.d(C,A,function(m){return b[m]}.bind(null,A));return C},O.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return O.d(y,"a",y),y},O.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)},O.p="/dist/",O(O.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(M,g,O){"use strict";var b=Object.prototype.hasOwnProperty,y="~";function C(){}Object.create&&(C.prototype=Object.create(null),new C().__proto__||(y=!1));function A(a,l,n){this.fn=a,this.context=l,this.once=n||!1}function m(a,l,n,i,r){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new A(n,i||a,r),h=y?y+l:l;return a._events[h]?a._events[h].fn?a._events[h]=[a._events[h],c]:a._events[h].push(c):(a._events[h]=c,a._eventsCount++),a}function e(a,l){--a._eventsCount===0?a._events=new C:delete a._events[l]}function f(){this._events=new C,this._eventsCount=0}f.prototype.eventNames=function(){var l=[],n,i;if(this._eventsCount===0)return l;for(i in n=this._events)b.call(n,i)&&l.push(y?i.slice(1):i);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(n)):l},f.prototype.listeners=function(l){var n=y?y+l:l,i=this._events[n];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,c=i.length,h=new Array(c);r0},!1)}function a(l,n){for(var i={main:[n]},r={main:[]},c={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,u){if(s==null)return{};var w={},E=Object.keys(s),_,P;for(P=0;P=0)continue;w[_]=s[_]}return w}function e(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}function f(s,u){for(var w=0;w"']/,M=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,O=/[<>"']|&(?!#?\w+;)/g,b={"&":"&","<":"<",">":">",'"':""","'":"'"},y=R=>b[R];function C(R,x){if(x){if(o.test(R))return R.replace(M,y)}else if(g.test(R))return R.replace(O,y);return R}const A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(R){return R.replace(A,(x,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(R,x){R=R.source||R,x=x||"";const S={replace:(v,T)=>(T=T.source||T,T=T.replace(e,"$1"),R=R.replace(v,T),S),getRegex:()=>new RegExp(R,x)};return S}const a=/[^\w:]/g,l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function n(R,x,S){if(R){let v;try{v=decodeURIComponent(m(S)).replace(a,"").toLowerCase()}catch(T){return null}if(v.indexOf("javascript:")===0||v.indexOf("vbscript:")===0||v.indexOf("data:")===0)return null}x&&!l.test(S)&&(S=d(x,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(v){return null}return S}const i={},r=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(R,x){i[" "+R]||(r.test(R)?i[" "+R]=R+"/":i[" "+R]=E(R,"/",!0)),R=i[" "+R];const S=R.indexOf(":")===-1;return x.substring(0,2)==="//"?S?x:R.replace(c,"$1")+x:x.charAt(0)==="/"?S?x:R.replace(h,"$1")+x:R+x}const s={exec:function(){}};function u(R){let x=1,S,v;for(;x{let V=!1,H=L;for(;--H>=0&&N[H]==="\\";)V=!V;return V?"|":" |"}),v=S.split(/ \|/);let T=0;if(v.length>x)v.splice(x);else for(;v.length=7){L.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}st(bt.target.value)}})),r.a.createElement("div",{className:"mt10 font14"},r.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),r.a.createElement(V.a.Group,{value:Qt,onChange:function(bt){return Kt(bt.target.value)}},r.a.createElement(V.a,{value:W.Manager},"\u7BA1\u7406\u4EBA\u5458"),r.a.createElement(V.a,{value:W.Developer},"\u5F00\u53D1\u4EBA\u5458"),r.a.createElement(V.a,{value:W.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},I=F,K=o("Jky8"),ee=o("6Fuo"),he=o.n(ee),de=o("NLgs"),Se=o("xKgJ"),Te;(function(qe){qe.Projects="projects",qe.Shixuns="shixuns",qe.Classrooms="classrooms"})(Te||(Te={}));var ce;(function(qe){qe.Classrooms="classrooms",qe.Shixuns="shixuns",qe.Paths="paths",qe.Projects="projects",qe.Videos="videos",qe.Topics="topics"})(ce||(ce={}));var be=function(He){var Ye,Ce,Le,We,Ue,ze,st,Ct=He.homePage,Wt=He.user,Qt=He.globalSetting,Kt=He.loading,Ot=He.dispatch,Fe=He.location,at=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","location"]),it=Object(i.useState)(),Pe=Object(y.a)(it,2),Qe=Pe[0],pt=Pe[1],bt=Object(i.useState)(),Dt=Object(y.a)(bt,2),It=Dt[0],ct=Dt[1],Nt=function(lr){var Zn;if(!Object(de.e)(Ot))return;if(lr===Te.Projects&&!((Zn=Wt.userInfo)!==null&&Zn!==void 0&&Zn.email)){L.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}lr===Te.Classrooms?pt(!0):lr===Te.Projects&&ct(!0)},jt=function(lr,Zn){var cr;if(!Object(de.e)(Ot))return;if(Zn===Te.Projects&&!((cr=Wt.userInfo)!==null&&cr!==void 0&&cr.email)){L.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(Zn===Te.Shixuns&&!Object(de.c)())return;lr&&(window.location.href=lr)},on=(Ye=(((Ce=Qt.setting)===null||Ce===void 0?void 0:Ce.navbar)||[]).find(function(fn){return fn.link==="/".concat(ce.Classrooms)}))===null||Ye===void 0?void 0:Ye.hidden,vn=(Le=(((We=Qt.setting)===null||We===void 0?void 0:We.navbar)||[]).find(function(fn){return fn.link==="/".concat(ce.Shixuns)}))===null||Le===void 0?void 0:Le.hidden,Wn=(Ue=(((ze=Qt.setting)===null||ze===void 0?void 0:ze.navbar)||[]).find(function(fn){return fn.link==="/".concat(ce.Paths)}))===null||Ue===void 0?void 0:Ue.hidden;if(Qt!=null&&(st=Qt.setting)!==null&&st!==void 0&&st.is_local){var Kn;Wt!=null&&(Kn=Wt.userInfo)!==null&&Kn!==void 0&&Kn.is_shixun_marker||(vn=!0)}var Hn=function(lr){var Zn,cr,dr,Dr,hr,sn,en,On,Fr,Or,xr,fr;return r.a.createElement(r.a.Fragment,null,r.a.createElement(R.a,{justify:"space-around",className:"pt5 pb5"},r.a.createElement(S.a,{className:he.a.joinCol},!(Qt!=null&&(Zn=Qt.setting)!==null&&Zn!==void 0&&Zn.hide_course)&&((cr=Wt.userInfo)===null||cr===void 0?void 0:cr.user_identity)!=="\u5B66\u751F"&&!on&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return jt("/classrooms/new")}},(dr=Wt.userInfo)!==null&&dr!==void 0&&dr.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!(Qt!=null&&(Dr=Qt.setting)!==null&&Dr!==void 0&&Dr.hide_shixun&&Object(Se.m)())&&!(Qt!=null&&(hr=Qt.setting)!==null&&hr!==void 0&&hr.hide_course)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return jt("/shixuns/new",Te.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),!(Qt!=null&&(sn=Qt.setting)!==null&&sn!==void 0&&sn.hide_subject&&Object(Se.m)())&&!(Qt!=null&&(en=Qt.setting)!==null&&en!==void 0&&en.hide_course)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return jt("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Qt!=null&&(On=Qt.setting)!==null&&On!==void 0&&On.is_local)&&((Fr=Wt.userInfo)===null||Fr===void 0?void 0:Fr.main_site)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){var X,q;return jt("".concat((X=Wt.navigationInfo)===null||X===void 0||((q=X.top)===null||q===void 0)?void 0:q.old_url,"/projects/deposit/new"),Te.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),r.a.createElement(S.a,null,r.a.createElement("div",{className:he.a.joinBoard})),r.a.createElement(S.a,{className:he.a.joinCol},!on&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return Nt(Te.Classrooms)}},(Or=Wt.userInfo)!==null&&Or!==void 0&&Or.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((xr=Wt.userInfo)===null||xr===void 0?void 0:xr.main_site)&&!(Qt!=null&&(fr=Qt.setting)!==null&&fr!==void 0&&fr.is_local)&&r.a.createElement(T.a.Item,lr,r.a.createElement("a",{onClick:function(){return Nt(Te.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return r.a.createElement("section",null,r.a.createElement(_.a,{overlay:r.a.createElement(T.a,{className:"".concat(he.a.rightMenu," ").concat(he.a.joinMenu," mt10")},r.a.createElement(Hn,null)),placement:"bottomRight"},r.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),r.a.createElement(K.a,{visible:Qe,onCancel:function(){return pt(!1)}}),r.a.createElement(I,{visible:It,onCancel:function(){return ct(!1)}}))},ye=Object(d.a)(function(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting;return{homePage:He,user:Ce,globalSetting:Le,loading:Ye.models.index}})(be),ue=o("vToQ"),se=o.n(ue),$=o("jb+D"),me=o("m3rI"),re=function(He){var Ye,Ce=RegExp("(^| )"+He+"=([^;]+)(;|$)");return(Ye=document.cookie.match(Ce))?decodeURIComponent(Ye[2]):null},ae=function(He){var Ye=new Date;Ye.setTime(Ye.getTime()-1);var Ce=re(He);Ce!=null&&(document.cookie=He+"="+Ce+";expires="+Ye.toGMTString())},Oe;(function(qe){qe.Classrooms="classrooms",qe.Shixuns="shixuns",qe.Paths="paths",qe.Projects="projects",qe.Videos="videos",qe.Topics="topics"})(Oe||(Oe={}));var le=function(He){var Ye,Ce,Le,We,Ue,ze,st,Ct,Wt,Qt,Kt,Ot=He.homePage,Fe=He.user,at=He.globalSetting,it=He.loading,Pe=He.dispatch,Qe=He.shixunHomeworks,pt=He.location,bt=He.payload,Dt=bt===void 0?{}:bt,It=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),ct=(Ye=(((Ce=at.setting)===null||Ce===void 0?void 0:Ce.navbar)||[]).find(function(fn){return fn.link==="/".concat(Oe.Classrooms)}))===null||Ye===void 0?void 0:Ye.hidden,Nt=(Le=(((We=at.setting)===null||We===void 0?void 0:We.navbar)||[]).find(function(fn){return fn.link==="/".concat(Oe.Shixuns)}))===null||Le===void 0?void 0:Le.hidden,jt=(Ue=(((ze=at.setting)===null||ze===void 0?void 0:ze.navbar)||[]).find(function(fn){return fn.link==="/".concat(Oe.Paths)}))===null||Ue===void 0?void 0:Ue.hidden,on=((st=Fe.userInfo)===null||st===void 0?void 0:st.admin)||((Ct=Fe.userInfo)===null||Ct===void 0?void 0:Ct.business)||((Wt=Fe.userInfo)===null||Wt===void 0?void 0:Wt.is_shixun_marker)||((Qt=Fe.userInfo)===null||Qt===void 0?void 0:Qt.is_teacher)||((Kt=Fe.userInfo)===null||Kt===void 0?void 0:Kt.user_identity)!=="\u5B66\u751F",vn=function(){if(Object(D.r)())return r.a.createElement(T.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var lr,Zn,cr,dr,Dr,hr,sn,en,On,Fr,Or,xr,fr,pe,X,q,oe,De,fe,ot,Zt,Mn;return r.a.createElement(T.a,{className:"".concat(se.a.rightMenu," ").concat(se.a.menuWrap)},r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((lr=Fe.userInfo)===null||lr===void 0?void 0:lr.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!ct&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Zn=Fe.userInfo)===null||Zn===void 0?void 0:Zn.login,"/classrooms")},(cr=Fe.userInfo)!==null&&cr!==void 0&&cr.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!Nt&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((dr=Fe.userInfo)===null||dr===void 0?void 0:dr.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!jt&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Dr=Fe.userInfo)===null||Dr===void 0?void 0:Dr.login,"/paths")},(hr=Fe.userInfo)!==null&&hr!==void 0&&hr.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((sn=Fe.userInfo)===null||sn===void 0?void 0:sn.main_site)&&!((en=at.setting)!==null&&en!==void 0&&en.is_local)&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((On=Fe.userInfo)===null||On===void 0?void 0:On.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),on&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/users/".concat((Fr=Fe.userInfo)===null||Fr===void 0?void 0:Fr.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),on&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{onClick:function(){if(!Object(de.e)(Pe))return;d.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),on&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{onClick:function(){if(!Object(de.e)(Pe))return;d.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((Or=Fe.navigationInfo)===null||Or===void 0||((xr=Or.top)===null||xr===void 0)?void 0:xr.customer_management_url)&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{href:(fr=Fe.navigationInfo)===null||fr===void 0||((pe=fr.top)===null||pe===void 0)?void 0:pe.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((X=Fe.navigationInfo)===null||X===void 0||((q=X.top)===null||q===void 0)?void 0:q.college_identifier)&&r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{to:"/colleges/".concat((oe=Fe.navigationInfo)===null||oe===void 0||((De=oe.top)===null||De===void 0)?void 0:De.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((fe=Fe.navigationInfo)===null||fe===void 0||((ot=fe.top)===null||ot===void 0)?void 0:ot.laboratory_admin_url)&&r.a.createElement(T.a.Item,null,r.a.createElement("a",{href:(Zt=Fe.navigationInfo)===null||Zt===void 0||((Mn=Zt.top)===null||Mn===void 0)?void 0:Mn.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),r.a.createElement(T.a.Item,null,r.a.createElement(h.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||Pe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:r.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")),r.a.createElement(T.a.Item,{className:se.a.exit},r.a.createElement("a",{onClick:Object(O.a)(n.a.mark(function Vn(){var qt;return n.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return un.next=2,Object($.c)({});case 2:qt=un.sent,(qt==null?void 0:qt.status)===1&&(Pe({type:"user/getUserInfo",payload:Object(A.a)({},Dt)}),Pe({type:"user/getNavigationInfo",payload:Object(A.a)({},Dt)}),ae("autologin_trustie"),ae("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),L.b.success(qt==null?void 0:qt.message),d.d.replace("/"));case 4:case"end":return un.stop()}},Vn)}))},"\u9000\u51FA")))};if(Object(Se.p)()){var Wn,Kn;return r.a.createElement(_.a,{className:"".concat(se.a.height67),overlay:vn,placement:"bottomRight"},r.a.createElement("section",null,r.a.createElement("aside",null,r.a.createElement("div",{className:Qe.actionTabs.type===1?se.a.classromediv:""},r.a.createElement("img",{className:"".concat(se.a.userPic," current ml15"),src:"".concat(me.a===null||me.a===void 0?void 0:me.a.IMG_SERVER,"/images/").concat((Wn=Fe.userInfo)===null||Wn===void 0?void 0:Wn.image_url),alt:"",onClick:function(){var lr;return d.d.push(Object(D.r)()?"/account/profile":"/users/".concat((lr=Fe.userInfo)===null||lr===void 0?void 0:lr.login,"/classrooms"))}}),Object(D.r)()&&r.a.createElement("span",{className:"ml10 font16"},(Kn=Fe.userInfo)===null||Kn===void 0?void 0:Kn.username)))))}else{var Hn;return r.a.createElement("div",{className:"font15 ".concat(at.isIlearning?se.a.login:"")},r.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){Pe({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((Hn=at.setting)!==null&&Hn!==void 0&&Hn.close_register)&&r.a.createElement(r.a.Fragment,null,r.a.createElement("span",{className:"ml5 mr5"},"|"),r.a.createElement(h.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},te=Object(d.a)(function(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting,We=qe.shixunHomeworks;return{homePage:He,user:Ce,globalSetting:Le,shixunHomeworks:We,loading:Ye.models.index}})(le),Q=o("+L6B"),J=o("2/Rp"),ve=o("Cs+z"),_e=o.n(ve),Ae=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Je=function(He){var Ye=He.homePage,Ce=He.user,Le=He.globalSetting,We=He.loading,Ue=He.dispatch,ze=He.location,st=He.text,Ct=He.shixunHomeworks,Wt=He.payload,Qt=Wt===void 0?{}:Wt,Kt=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Ot=Object(i.useState)("none"),Fe=Object(y.a)(Ot,2),at=Fe[0],it=Fe[1];return Object(i.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&it("flex")},[Ct.actionTabs.key]),Object(i.useEffect)(function(){Ct.actionTabs.key==="\u9690\u85CF"&&(it("none"),localStorage.setItem("Noviceguide","0"))},[Ct.actionTabs.key]),r.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"}},r.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},r.a.createElement("img",{src:_e.a,style:{position:"absolute",top:"-32px"}}),r.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Ct.actionTabs.text),Ct.actionTabs.type===9?r.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},r.a.createElement(J.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),it("none"),Ue({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")):r.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},r.a.createElement(J.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Ue({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),it("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},tt=Object(d.a)(function(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting,We=qe.shixunHomeworks;return{homePage:He,user:Ce,globalSetting:Le,loading:Ye.models.index,shixunHomeworks:We}})(Je),ut=o("498V"),ft=o.n(ut),vt=o("wd/R"),_t=o.n(vt),Ve=a.a.Header,je=e.a.Search;function ht(){var qe,He,Ye=window.location.pathname,Ce=Ye.split("/"),Le={};return Ce[1]=="classrooms"&&Ce.length>3&&!((qe=Ce[4])!==null&&qe!==void 0&&qe.includes("newgold"))&&!((He=Ce[5])!==null&&He!==void 0&&He.includes("newgold"))&&Ce[2]!=="coursesId"&&(Le.course_id=Ce[2]),Ce[1]==="shixuns"&&Ce.length>3&&(Le.objective_type="shixun",Le.objective_id=Ce[2]),Ce[1]==="paths"&&Ce.length>3&&(Le.objective_type="path",Le.objective_id=Ce[2]),Object(A.a)(Object(A.a)({},Le),{school:1})}var Bt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Et=function(He){var Ye,Ce,Le=He.homePage,We=He.user,Ue=He.globalSetting,ze=He.loading,st=He.dispatch,Ct=He.location,Wt=He.isLogin,Qt=Wt===void 0?!1:Wt,Kt=He.shixunHomeworks,Ot=Object(C.a)(He,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),Fe=Object(c.g)(),at=Object(i.useState)(!1),it=Object(y.a)(at,2),Pe=it[0],Qe=it[1],pt=Object(i.useState)(""),bt=Object(y.a)(pt,2),Dt=bt[0],It=bt[1],ct=Object(i.useState)(!1),Nt=Object(y.a)(ct,2),jt=Nt[0],on=Nt[1],vn=ht(),Wn=Object(i.useState)("0"),Kn=Object(y.a)(Wn,2),Hn=Kn[0],fn=Kn[1],lr=Object(i.useRef)({id:0});Object(i.useEffect)(function(){var fe;return We!=null&&(fe=We.userInfo)!==null&&fe!==void 0&&fe.now_time&&(lr.current.id=setInterval(function(){fn(function(ot){if(ot==="0"){var Zt;return _t()(We==null||((Zt=We.userInfo)===null||Zt===void 0)?void 0:Zt.now_time,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")}else return _t()(ot,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")})},1e3)),function(){clearInterval(lr.current.id)}},[We==null||((Ye=We.userInfo)===null||Ye===void 0)?void 0:Ye.now_time]),Object(i.useEffect)(function(){st({type:"user/getNavigationInfo",payload:Object(A.a)({},vn)})},[Ue.name]),Object(i.useEffect)(function(){Kt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(Bt!=null&&Bt.includes(Ct==null?void 0:Ct.pathname)||(Ct==null?void 0:Ct.pathname.indexOf("/classrooms"))===0||st({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Ct.pathname]),Object(i.useEffect)(function(){Kt.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Kt.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Kt.actionTabs.key]),Object(i.useEffect)(function(){if(Ue!=null&&Ue.setting){var fe,ot,Zt=Ue==null||((fe=Ue.setting)===null||fe===void 0||((ot=fe.navbar)===null||ot===void 0))?void 0:ot.filter(function(un){return!(un!=null&&un.hidden)&&!(Object(Se.m)()&&un.link==="/paperlibrary")}),Mn=Object(b.a)(Zt),Vn;try{for(Mn.s();!(Vn=Mn.n()).done;){var qt=Vn.value;qt.subitem&&(qt.subitem=qt.subitem.filter(function(un){return!(un!=null&&un.hidden)&&!(Object(Se.m)()&&un.link==="/paperlibrary")}))}}catch(un){Mn.e(un)}finally{Mn.f()}var En=!1;Zt==null||Zt.map(function(un,jr){var aa,oa,er,Ba="/"+((aa=Ct.pathname)===null||aa===void 0||((oa=aa.split("/"))===null||oa===void 0)?void 0:oa[1]);if(un.link===Ba&&(It(un==null?void 0:un.link),Object(D.X)(un==null?void 0:un.name),en(Fr(jr,{name:un==null?void 0:un.name,link:un==null?void 0:un.link},Zt)),En=!0),un!=null&&(er=un.subitem)!==null&&er!==void 0&&er.length){var Ea;un==null||((Ea=un.subitem)===null||Ea===void 0)||Ea.map(function(ca){ca.link===Ba&&(It(ca==null?void 0:ca.link),Object(D.X)(ca==null?void 0:ca.name),en(Fr(jr,{name:ca==null?void 0:ca.name,link:ca==null?void 0:ca.link},Zt)),En=!0)})}}),En||en(Zt)}},[Ue==null?void 0:Ue.setting,We]);var Zn=Object(i.useMemo)(function(){var fe;if(Ue!=null&&(fe=Ue.setting)!==null&&fe!==void 0&&fe.nav_logo_url){var ot;return"".concat(me.a.IMG_SERVER,"/").concat(Ue==null||((ot=Ue.setting)===null||ot===void 0)?void 0:ot.nav_logo_url)}else return"".concat(me.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[Ue==null||((Ce=Ue.setting)===null||Ce===void 0)?void 0:Ce.nav_logo_url]);function cr(fe){Fe.push("/search?value="+fe)}var dr=function(){return Pe?r.a.createElement("div",{onBlur:function(){setTimeout(function(){Qe(!1)},300)}},r.a.createElement(je,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:cr,autoFocus:!0})):r.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){Fe.push("/search?value=")}})},Dr=Object(i.useState)([]),hr=Object(y.a)(Dr,2),sn=hr[0],en=hr[1],On=function(){var fe=Object(O.a)(n.a.mark(function ot(Zt,Mn){var Vn,qt,En,un,jr,aa,oa,er;return n.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:if(!((Zt==null?void 0:Zt.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Ea.next=6;break}return Ea.next=3,Object($.j)();case 3:return En=Ea.sent,En!=null&&(qt=En.data)!==null&&qt!==void 0&&qt.engineer_url?En!=null&&(un=En.data)!==null&&un!==void 0&&(jr=un.engineer_url)!==null&&jr!==void 0&&jr.includes("http")?Object(D.S)(En==null||((aa=En.data)===null||aa===void 0)?void 0:aa.engineer_url):Fe.push(En==null||((oa=En.data)===null||oa===void 0)?void 0:oa.engineer_url):(En==null?void 0:En.status)!=401&&(Ue!=null&&(er=Ue.setting)!==null&&er!==void 0&&er.authority_qrcode_url?on(!0):on(!1)),Ea.abrupt("return");case 6:Zt!=null&&(Vn=Zt.link)!==null&&Vn!==void 0&&Vn.includes("http")?Object(D.S)(Zt==null?void 0:Zt.link):Fe.push(Zt==null?void 0:Zt.link),(Zt==null?void 0:Zt.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&st({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:r.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 Ea.stop()}},ot)}));return function(Zt,Mn){return fe.apply(this,arguments)}}(),Fr=function(ot,Zt,Mn){var Vn=Mn.slice();return Vn[ot]&&(Vn[ot].name=Zt.name,Vn[ot].link=Zt.link),Vn||[]};if(Ue.showHeader&&Ue.showHeaderFooter){var Or,xr,fr,pe,X,q,oe,De;return r.a.createElement(a.a,{className:"".concat(Ue.isIlearning?u.a["header-iearning"]:u.a.header," ").concat(Ue.showHeaderFixed?u.a.headerFixed:"")},r.a.createElement(Ve,{className:"header"},r.a.createElement("section",{className:u.a["edu-menu"]},(!!Ue.isIlearning||!(Ue!=null&&(Or=Ue.setting)!==null&&Or!==void 0&&Or.main_site)&&!!(Ue!=null&&(xr=Ue.setting)!==null&&xr!==void 0&&xr.navbar))&&r.a.createElement(h.a,{style:{display:"flex",alignItems:"center"},onClick:function(){st({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},r.a.createElement("img",{className:u.a.logo,title:(fr=Ue.setting)===null||fr===void 0?void 0:fr.name,src:Zn||ft.a})),r.a.createElement("ul",{className:"".concat(u.a.menu," ").concat(Object(D.r)()&&"ml0")},Object(D.r)()&&r.a.createElement("li",null,r.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(D.r)()&&Ue.setting&&sn.map(function(fe,ot){var Zt,Mn,Vn,qt,En;return r.a.createElement("li",{key:ot,className:!(fe!=null&&(Zt=fe.subitem)!==null&&Zt!==void 0&&Zt.length)&&Dt===(fe==null?void 0:fe.link)||fe!=null&&(Mn=fe.subitem)!==null&&Mn!==void 0&&Mn.some(function(un){return Dt===(un==null?void 0:un.link)})?u.a.actived:""},r.a.createElement("div",{onClick:function(){return On(fe,ot)},className:Kt.actionTabs.type===4?"".concat(u.a.name," ").concat(u.a.classromediv):u.a.name},r.a.createElement("span",null,function(){var un=fe==null?void 0:fe.name;{var jr;fe==null||((jr=fe.subitem)===null||jr===void 0)||jr.map(function(aa,oa){return aa.link===Ct.pathname&&(un=aa.name),aa})}return un}()),(fe==null||((Vn=fe.subitem)===null||Vn===void 0)?void 0:Vn.length)>0&&r.a.createElement("i",{className:"iconfont icon-zhankai4"})),(fe==null||((qt=fe.subitem)===null||qt===void 0)?void 0:qt.length)>0&&r.a.createElement("div",{className:u.a.dropDown},fe==null||((En=fe.subitem)===null||En===void 0)?void 0:En.map(function(un,jr){return r.a.createElement("div",{className:u.a.subName,onClick:function(){return On(un,ot)},key:ot+"-"+jr},!!jr&&r.a.createElement("div",{className:u.a.line}),r.a.createElement("aside",{className:"font16 c-black"},un.name),r.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},un.content))})))})),r.a.createElement("div",{className:"search-bar",style:{flex:Ue.isIlearning?"initial":"1 0 auto"}},r.a.createElement("div",{className:"timeShow"},Hn),!Object(D.r)()&&!(Ue!=null&&Ue.isIlearning)&&r.a.createElement(r.a.Fragment,null,r.a.createElement(dr,null),!Qt&&r.a.createElement(ye,null),!Qt&&!!(We!=null&&(pe=We.userInfo)!==null&&pe!==void 0&&pe.login)&&r.a.createElement(h.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(We==null||((X=We.userInfo)===null||X===void 0)?void 0:X.login,"/user_tidings")},(We==null||((q=We.navigationInfo)===null||q===void 0||((oe=q.top)===null||oe===void 0))?void 0:oe.new_message)&&r.a.createElement("span",{className:u.a.newslight}))),!Qt&&r.a.createElement(te,{payload:vn}))),r.a.createElement(g.a,{centered:!0,destroyOnClose:!0,visible:jt,title:"\u63D0\u793A",width:"500px",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){on(!1)},onCancel:function(){return on(!1)}},r.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},r.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"),r.a.createElement("img",{src:me.a.IMG_SERVER+(Ue==null||((De=Ue.setting)===null||De===void 0)?void 0:De.authority_qrcode_url),width:200,height:200})))),r.a.createElement(tt,null))}else return r.a.createElement(r.a.Fragment,null)},Pt=z.a=Object(d.a)(function(qe){var He=qe.homePage,Ye=qe.loading,Ce=qe.user,Le=qe.globalSetting,We=qe.shixunHomeworks;return{homePage:He,user:Ce,globalSetting:Le,loading:Ye.models.index,shixunHomeworks:We}})(Et)},sLOW:function(k,z,o){"use strict";var M=o("iQDF"),g=o("+eQT"),O=o("Awhp"),b=o("KrTs"),y=o("O3gP"),C=o("lrIw"),A=o("7Kak"),m=o("9yH6"),e=o("sRBo"),f=o("kaz8"),a=o("+L6B"),l=o("2/Rp"),n=o("oBTY"),i=o("miYZ"),r=o("tsqr"),c=o("2qtc"),h=o("kLXV"),d=o("9og8"),s=o("tJVT"),u=o("PpiC"),w=o("WmNS"),E=o.n(w),_=o("q1tI"),P=o.n(_),R=o("9kvl"),x=o("Z0Lh"),S=o.n(x),v=o("9ZNV"),T=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,ye=I.shixunsDetail,ue=I.globalSetting,se=I.loading,$=I.user,me=I.dispatch,re=Object(u.a)(I,["shixunsDetail","globalSetting","loading","user","dispatch"]),ae=Object(_.useRef)(),Oe=Object(_.useState)(),le=Object(s.a)(Oe,2),te=le[0],Q=le[1],J=Object(_.useState)(),ve=Object(s.a)(J,2),_e=ve[0],Ae=ve[1],Je=Object(_.useState)([]),tt=Object(s.a)(Je,2),ut=tt[0],ft=tt[1],vt=Object(_.useState)([]),_t=Object(s.a)(vt,2),Ve=_t[0],je=_t[1],ht=Object(_.useState)(""),Bt=Object(s.a)(ht,2),Et=Bt[0],Pt=Bt[1],qe=Object(_.useState)(),He=Object(s.a)(qe,2),Ye=He[0],Ce=He[1],Le=Object(_.useState)(),We=Object(s.a)(Le,2),Ue=We[0],ze=We[1],st=(K=$.userInfo)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.editable;Object(_.useEffect)(function(){var Fe,at;ae.current=(Fe=location.pathname)===null||Fe===void 0||((at=Fe.split("/"))===null||at===void 0)?void 0:at[2],Ct()},[]),Object(_.useEffect)(function(){var Fe,at,it,Pe,Qe,pt,bt,Dt,It,ct;if(!ye.setting)return;Q((Fe=ye.setting)===null||Fe===void 0||((at=Fe.shixun)===null||at===void 0)?void 0:at.can_copy),Ae((it=ye.setting)===null||it===void 0||((Pe=it.shixun)===null||Pe===void 0)?void 0:Pe.use_scope),Ce(!!((Qe=ye.setting)!==null&&Qe!==void 0&&(pt=Qe.shixun)!==null&&pt!==void 0&&pt.opening_time)),ze((bt=ye.setting)===null||bt===void 0||((Dt=bt.shixun)===null||Dt===void 0)?void 0:Dt.opening_time),ft((It=ye.setting)===null||It===void 0||((ct=It.shixun)===null||ct===void 0)?void 0:ct.scope_partment)},[ye.setting]);var Ct=function(){var Fe=Object(d.a)(E.a.mark(function at(it){var Pe;return E.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:it}});case 2:Pe=pt.sent,Pe&&je(Pe.shools_name||[]);case 4:case"end":return pt.stop()}},at)}));return function(it){return Fe.apply(this,arguments)}}(),Wt=function(){var Fe=Object(d.a)(E.a.mark(function at(){var it,Pe,Qe,pt,bt,Dt,It;return E.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Nt.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ae.current}});case 2:if(Nt.t0=Nt.sent,Nt.t0){Nt.next=5;break}Nt.t0={};case 5:It=Nt.t0,h.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:P.a.createElement("div",{className:"tc font14 ".concat(V.a.modal)},!!((it=It.subjects)!==null&&it!==void 0&&it.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(Pe=It.subjects)===null||Pe===void 0||((Qe=Pe.splice(0,2))===null||Qe===void 0)?void 0:Qe.map(function(jt){return"\u300A".concat(jt,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},It==null?void 0:It.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),P.a.createElement("br",null)),!!((pt=It.courses)!==null&&pt!==void 0&&pt.length)&&P.a.createElement(P.a.Fragment,null,P.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(bt=It.courses)===null||bt===void 0||((Dt=bt.splice(0,2))===null||Dt===void 0)?void 0:Dt.map(function(jt){return"\u300A".concat(jt,"\u300B")}),"\u7B49",P.a.createElement("span",{className:V.a.colorOrange},It==null?void 0:It.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),P.a.createElement("br",null)),P.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 jt=Object(d.a)(E.a.mark(function vn(){var Wn;return E.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ae.current}});case 2:Wn=Hn.sent,Wn.status===1&&(r.b.success("\u64CD\u4F5C\u6210\u529F"),R.d.push("/shixuns"));case 4:case"end":return Hn.stop()}},vn)}));function on(){return jt.apply(this,arguments)}return on}()});case 7:case"end":return Nt.stop()}},at)}));return function(){return Fe.apply(this,arguments)}}(),Qt=function(){if(Object(T.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},Kt=function(at){if(ut.includes(at)){r.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Pt(null),ft([].concat(Object(n.a)(ut),[at]))},Ot=function(){var Fe=Object(d.a)(E.a.mark(function at(){var it;return E.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!(Ye&&!Ue)){Qe.next=3;break}return r.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Qe.abrupt("return");case 3:if(!(_e===1&&!ut.length)){Qe.next=6;break}return r.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Qe.abrupt("return");case 6:return Qe.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ae.current,scope_partment:_e===0?null:ut,shixun:{can_copy:te,use_scope:_e,opening_time:Ue}}});case 8:it=Qe.sent,it.status!==-1&&(r.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 Qe.stop()}},at)}));return function(){return Fe.apply(this,arguments)}}();return P.a.createElement("section",{className:V.a.wrap},P.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(ye==null||((he=ye.detail)===null||he===void 0)?void 0:he.shixun_status)!==2?P.a.createElement(l.a,{danger:!0,onClick:Wt},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):P.a.createElement(l.a,{danger:!0,onClick:Qt},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u590D\u5236:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement("div",null,P.a.createElement(f.a,{checked:te,onChange:function(at){return Q(at.target.checked)},disabled:!st}),P.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=ye.detail)===null||de===void 0?void 0:de.shixun_status)>1||((Se=ye.detail)===null||Se===void 0?void 0:Se.public)===2)&&((Te=ye.setting)===null||Te===void 0||((ce=Te.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((be=ye.detail)===null||be===void 0?void 0:be.identity)>2)&&P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u516C\u5F00\u7A0B\u5EA6:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement(m.a.Group,{value:_e,onChange:function(at){return Ae(at.target.value)},disabled:!st},P.a.createElement(m.a,{className:V.a.radio,value:0},P.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),P.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),P.a.createElement(m.a,{className:V.a.radio,value:1},P.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),P.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&&P.a.createElement(P.a.Fragment,null,P.a.createElement("div",{className:"mt10"},P.a.createElement(C.a,{showSearch:!0,className:V.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:Et,onChange:function(at){Pt(at),Ct(at)},disabled:!st,onSelect:Kt,options:Ve==null?void 0:Ve.map(function(Fe){return{value:Fe}})}),P.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")),P.a.createElement("div",{className:"mt10"},ut==null?void 0:ut.map(function(Fe){return st?P.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return ft(ut.filter(function(it){return it!==Fe}))}},P.a.createElement(l.a,{type:"primary",ghost:!0},Fe)):P.a.createElement(l.a,{type:"primary",ghost:!0,className:"mr20"},Fe)}))))),P.a.createElement("div",{className:V.a.labelWrap},P.a.createElement("label",{className:V.a.label},"\u5F00\u542F\u65F6\u95F4:"),P.a.createElement("div",{className:V.a.labelContent},P.a.createElement("div",null,P.a.createElement(f.a,{checked:Ye,onChange:function(at){return Ce(at.target.checked)},disabled:!st}),P.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")),Ye&&P.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(at){return at&&at1)Object(f.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(u.length===0)return Object(f.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=u[0];if(C.isValidElement(w)&&Object(a.c)(w)){var E=w.ref;u[0]=C.cloneElement(w,{ref:Object(a.a)(E,this.setChildNode)})}return u.length===1?u[0]:u.map(function(_,P){return!C.isValidElement(_)||"key"in _&&_.key!==null?_:C.cloneElement(_,{key:"".concat(n,"-").concat(P)})})}}]),h}(C.Component);i.displayName="ResizeObserver",z.a=i},t9D7:function(k,z,o){"use strict";o.d(z,"b",function(){return A}),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 l}),o.d(z,"f",function(){return r}),o.d(z,"c",function(){return c});var M=o("Vhoy"),g=o("MI8n"),O=o("pmY6"),b=o("Cg/j"),y=o("ic2d"),C=o("nEHx");const A=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(P){return P&&typeof P=="object"&&typeof P.id=="string"&&(typeof P.color=="undefined"||m.isThemeColor(P.color))}h.isThemeIcon=d;const s=new RegExp(`^\\$\\((${M.a.iconNameExpression}(?:${M.a.iconModifierExpression})?)\\)$`);function u(P){const R=s.exec(P);if(!R)return;let[,x]=R;return{id:x}}h.fromString=u;function w(P,R){let x=P.id;const S=x.lastIndexOf("~");return S!==-1&&(x=x.substring(0,S)),R&&(x=`${x}~${R}`),{id:x}}h.modify=w;function E(P,R){var x,S;return P.id===R.id&&((x=P.color)===null||x===void 0?void 0:x.id)===((S=R.color)===null||S===void 0?void 0:S.id)}h.isEqual=E;function _(P,R){return{id:P.id,color:R?e(R):void 0}}h.asThemeIcon=_,h.asClassNameArray=M.a.asClassNameArray,h.asClassName=M.a.asClassName,h.asCSSSelector=M.a.asCSSSelector})(f||(f={}));function a(h){switch(h){case C.a.DARK:return"vs-dark";case C.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const l={ThemingContribution:"base.contributions.theming"};class n{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new g.b}onColorThemeChange(h){return this.themingParticipants.push(h),this.onThemingParticipantAddedEmitter.fire(h),Object(O.i)(()=>{const d=this.themingParticipants.indexOf(h);this.themingParticipants.splice(d,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new n;y.a.add(l.ThemingContribution,i);function r(h){return i.onColorThemeChange(h)}class c extends O.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(M,g,O){k.exports=z=g(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(M){return function(){var g=M,O=g.x64,b=O.Word,y=O.WordArray,C=g.algo,A=C.SHA512,m=C.SHA384=A.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=A._doFinalize.call(this);return e.sigBytes-=16,e}});g.SHA384=A._createHelper(m),g.HmacSHA384=A._createHmacHelper(m)}(),M.SHA384})},uGxW:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(M){return M.pad.NoPadding={pad:function(){},unpad:function(){}},M.pad.NoPadding})},uK0f:function(k,z,o){(function(M,g){k.exports=g()})(this,function(){"use strict";function M(g,O,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=g||[],C=[],A=0;do{var m=y.filter(function(e){return O(e,A)})[0];if(!m)break;C.push(m),y=m[b.childrenKeyName]||[],A+=1}while(y.length>0);return C}return M})},ulZh:function(k,z,o){typeof window!="undefined"&&function(g,O){k.exports=O()}(this,function(){return function(M){var g={};function O(b){if(g[b])return g[b].exports;var y=g[b]={i:b,l:!1,exports:{}};return M[b].call(y.exports,y,y.exports,O),y.l=!0,y.exports}return O.m=M,O.c=g,O.d=function(b,y,C){O.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:C})},O.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},O.t=function(b,y){if(y&1&&(b=O(b)),y&8)return b;if(y&4&&typeof b=="object"&&b&&b.__esModule)return b;var C=Object.create(null);if(O.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var A in b)O.d(C,A,function(m){return b[m]}.bind(null,A));return C},O.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return O.d(y,"a",y),y},O.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)},O.p="/dist/",O(O.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(M,g,O){"use strict";var b=Object.prototype.hasOwnProperty,y="~";function C(){}Object.create&&(C.prototype=Object.create(null),new C().__proto__||(y=!1));function A(a,l,n){this.fn=a,this.context=l,this.once=n||!1}function m(a,l,n,i,r){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new A(n,i||a,r),h=y?y+l:l;return a._events[h]?a._events[h].fn?a._events[h]=[a._events[h],c]:a._events[h].push(c):(a._events[h]=c,a._eventsCount++),a}function e(a,l){--a._eventsCount===0?a._events=new C:delete a._events[l]}function f(){this._events=new C,this._eventsCount=0}f.prototype.eventNames=function(){var l=[],n,i;if(this._eventsCount===0)return l;for(i in n=this._events)b.call(n,i)&&l.push(y?i.slice(1):i);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(n)):l},f.prototype.listeners=function(l){var n=y?y+l:l,i=this._events[n];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,c=i.length,h=new Array(c);r0},!1)}function a(l,n){for(var i={main:[n]},r={main:[]},c={main:{}};f(i);)for(var h=Object.keys(i),d=0;d=2*P/x||N<=H)return;var D=Number.POSITIVE_INFINITY,W;for(W=h.level-1;W>v;W--){var F=S[W].maxBitrate;if(D=P*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 @@ -594,4 +594,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,h.parse()),h.state==="INITIAL"||h.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(d){h.onparsingerror&&h.onparsingerror(d)}return h.onflush&&h.onflush(),this},i}()},"./src/utils/webvtt-parser.ts":function(M,g,O){"use strict";O.r(g),O.d(g,"generateCueId",function(){return n}),O.d(g,"parseWebVTT",function(){return r});var b=O("./src/polyfills/number.ts"),y=O("./src/utils/vttparser.ts"),C=O("./src/demux/id3.ts"),A=O("./src/utils/timescale-conversion.ts"),m=O("./src/remux/mp4-remuxer.ts"),e=/\r\n|\n\r|\n|\r/g,f=function(h,d,s){return s===void 0&&(s=0),h.substr(s,d.length)===d},a=function(h){var d=parseInt(h.substr(-3)),s=parseInt(h.substr(-6,2)),u=parseInt(h.substr(-9,2)),w=h.length>9?parseInt(h.substr(0,h.indexOf(":"))):0;if(!Object(b.isFiniteNumber)(d)||!Object(b.isFiniteNumber)(s)||!Object(b.isFiniteNumber)(u)||!Object(b.isFiniteNumber)(w))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+h);return d+=1e3*s,d+=60*1e3*u,d+=60*60*1e3*w,d},l=function(h){for(var d=5381,s=h.length;s;)d=d*33^h.charCodeAt(--s);return(d>>>0).toString()};function n(c,h,d){return l(c.toString())+l(h.toString())+l(d)}var i=function(h,d,s){var u=h[d],w=h[u.prevCC];if(!w||!w.new&&u.new){h.ccOffset=h.presentationOffset=u.start,u.new=!1;return}for(;(E=w)!==null&&E!==void 0&&E.new;){var E;h.ccOffset+=u.start-w.start,u.new=!1,u=w,w=h[u.prevCC]}h.presentationOffset=s};function r(c,h,d,s,u,w,E,_){var P=new y.VTTParser,R=Object(C.utf8ArrayToStr)(new Uint8Array(c)).trim().replace(e,` `).split(` `),x=[],S=Object(A.toMpegTsClockFromTimescale)(h,d),v="00:00.000",T=0,U=0,L,N=!0,V=!1;P.oncue=function(H){var D=s[u],W=s.ccOffset,F=(T-S)/9e4;if(D!=null&&D.new&&(U!==void 0?W=s.ccOffset=D.start:i(s,u,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=n(H.startTime,H.endTime,ee)),H.endTime>0&&x.push(H)},P.onparsingerror=function(H){L=H},P.onflush=function(){if(L){_(L);return}E(x)},R.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:")?v=D.substr(6):f(D,"MPEGTS:")&&(T=parseInt(D.substr(7)))});try{U=a(v)/1e3}catch(D){V=!1,L=D}return}else H===""&&(N=!1);P.parse(H+` -`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(M,g,O){"use strict";O.r(g);var b=O("./src/utils/logger.ts"),y=O("./src/loader/load-stats.ts"),C=/^age:\s*[\d.]+\s*$/m,A=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,l,n){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=l,this.callbacks=n,this.retryDelay=l.retryDelay,this.loadInternal()},e.loadInternal=function(){var a=this.config,l=this.context;if(!a)return;var n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0;var r=this.xhrSetup;try{if(r)try{r(n,l.url)}catch(d){n.open("GET",l.url,!0),r(n,l.url)}n.readyState||n.open("GET",l.url,!0);var c=this.context.headers;if(c)for(var h in c)n.setRequestHeader(h,c[h])}catch(d){this.callbacks.onError({code:n.status,text:d.message},l,n);return}l.rangeEnd&&n.setRequestHeader("Range","bytes="+l.rangeStart+"-"+(l.rangeEnd-1)),n.onreadystatechange=this.readystatechange.bind(this),n.onprogress=this.loadprogress.bind(this),n.responseType=l.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),n.send()},e.readystatechange=function(){var a=this.context,l=this.loader,n=this.stats;if(!a||!l)return;var i=l.readyState,r=this.config;if(n.aborted)return;if(i>=2)if(self.clearTimeout(this.requestTimeout),n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start)),i===4){l.onreadystatechange=null,l.onprogress=null;var c=l.status;if(c>=200&&c<300){n.loading.end=Math.max(self.performance.now(),n.loading.first);var h,d;if(a.responseType==="arraybuffer"?(h=l.response,d=h.byteLength):(h=l.responseText,d=h.length),n.loaded=n.total=d,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(n,a,h,l),!this.callbacks)return;var u={url:l.responseURL,data:h};this.callbacks.onSuccess(u,n,a,l)}else n.retry>=r.maxRetry||c>=400&&c<499?(b.logger.error(c+" while loading "+a.url),this.callbacks.onError({code:c,text:l.statusText},a,l)):(b.logger.warn(c+" 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,r.maxRetryDelay),n.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.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 l=this.stats;l.loaded=a.loaded,a.lengthComputable&&(l.total=a.total)},e.getCacheAge=function(){var a=null;if(this.loader&&C.test(this.loader.getAllResponseHeaders())){var l=this.loader.getResponseHeader("age");a=l?parseFloat(l):null}return a},m}();g.default=A}}).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(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.StreamCipher,y=g.algo,C=y.RC4=b.extend({_doReset:function(){for(var e=this._key,f=e.words,a=e.sigBytes,l=this._S=[],n=0;n<256;n++)l[n]=n;for(var n=0,i=0;n<256;n++){var r=n%a,c=f[r>>>2]>>>24-r%4*8&255;i=(i+l[n]+c)%256;var h=l[n];l[n]=l[i],l[i]=h}this._i=this._j=0},_doProcessBlock:function(e,f){e[f]^=A.call(this)},keySize:256/32,ivSize:0});function A(){for(var e=this._S,f=this._i,a=this._j,l=0,n=0;n<4;n++){f=(f+1)%256,a=(a+e[f])%256;var i=e[f];e[f]=e[a],e[a]=i,l|=e[(e[f]+e[a])%256]<<24-n*8}return this._i=f,this._j=a,l}g.RC4=b._createHelper(C);var m=y.RC4Drop=C.extend({cfg:C.cfg.extend({drop:192}),_doReset:function(){C._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)A.call(this)}});g.RC4Drop=b._createHelper(m)}(),M.RC4})},wCXF:function(k,z,o){"use strict";o.d(z,"a",function(){return ut});var M=o("rePB"),g=o("VTBJ"),O=o("KQm4"),b=o("U8pU"),y=o("ODXe"),C=o("q1tI"),A=o("TSYQ"),m=o.n(A),e=o("Gytx"),f=o.n(e),a=o("Kwbf"),l=o("t23M"),n=o("qx4F"),i=o("6eGT"),r=o("IBYe"),c=o("Ff2n"),h=o("c+Xe"),d=o("fyJ8"),s=o("biw7");function u(Ve,je,ht,Bt,Et){var Pt=ht[Ve]||{},qe=ht[je]||{},He,Ye;Pt.fixed==="left"?He=Bt.left[Ve]:qe.fixed==="right"&&(Ye=Bt.right[je]);var Ce=!1,Le=!1,We=!1,Ue=!1,ze=ht[je+1],st=ht[Ve-1];if(Et==="rtl"){if(He!==void 0){var Ct=st&&st.fixed==="left";Ue=!Ct}else if(Ye!==void 0){var Wt=ze&&ze.fixed==="right";We=!Wt}}else if(He!==void 0){var Qt=ze&&ze.fixed==="left";Ce=!Qt}else if(Ye!==void 0){var Kt=st&&st.fixed==="right";Le=!Kt}return{fixLeft:He,fixRight:Ye,lastFixLeft:Ce,firstFixRight:Le,lastFixRight:We,firstFixLeft:Ue,isSticky:Bt.isSticky}}var w=o("sR1s");function E(Ve){var je=Ve.cells,ht=Ve.stickyOffsets,Bt=Ve.flattenColumns,Et=Ve.rowComponent,Pt=Ve.cellComponent,qe=Ve.onHeaderRow,He=Ve.index,Ye=C.useContext(s.a),Ce=Ye.prefixCls,Le=Ye.direction,We;qe&&(We=qe(je.map(function(ze){return ze.column}),He));var Ue=Object(w.a)(je.map(function(ze){return ze.column}));return C.createElement(Et,Object.assign({},We),je.map(function(ze,st){var Ct=ze.column,Wt=u(ze.colStart,ze.colEnd,Bt,ht,Le),Qt;return Ct&&Ct.onHeaderCell&&(Qt=ze.column.onHeaderCell(Ct)),C.createElement(d.a,Object.assign({},ze,{ellipsis:Ct.ellipsis,align:Ct.align,component:Pt,prefixCls:Ce,key:Ue[st]},Wt,{additionalProps:Qt,rowType:"header"}))}))}E.displayName="HeaderRow";var _=E;function P(Ve){var je=[];function ht(qe,He){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;je[Ye]=je[Ye]||[];var Ce=He,Le=qe.filter(Boolean).map(function(We){var Ue={key:We.key,className:We.className||"",children:We.title,column:We,colStart:Ce},ze=1,st=We.children;return st&&st.length>0&&(ze=ht(st,Ce,Ye+1).reduce(function(Ct,Wt){return Ct+Wt},0),Ue.hasSubColumns=!0),"colSpan"in We&&(ze=We.colSpan),"rowSpan"in We&&(Ue.rowSpan=We.rowSpan),Ue.colSpan=ze,Ue.colEnd=Ue.colStart+ze-1,je[Ye].push(Ue),Ce+=ze,ze});return Le}ht(Ve,0);for(var Bt=je.length,Et=function(He){je[He].forEach(function(Ye){!("rowSpan"in Ye)&&!Ye.hasSubColumns&&(Ye.rowSpan=Bt-He)})},Pt=0;Pt=0;He-=1){var Ye=je[He],Ce=ht&&ht[He],Le=Ce&&Ce[S.a];(Ye||Le||qe)&&(Et.unshift(C.createElement("col",Object.assign({key:He,style:{width:Ye,minWidth:Ye}},Le))),qe=!0)}return C.createElement("colgroup",null,Et)}var T=v;function U(Ve,je){return Object(C.useMemo)(function(){for(var ht=[],Bt=0;Bt1?oe-1:0),fe=1;fe=We&&(vn=We-Ue),qe({scrollLeft:vn/We*(Le+2)}),Kt.current.x=ct.pageX},bt=function(){var ct=Object(J.b)(Pt.current).top,Nt=ct+Pt.current.offsetHeight,jt=document.documentElement.scrollTop+window.innerHeight;Nt-Object(n.a)()<=jt||ct>=jt-He?Qt(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!0})}):Qt(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!1})})},Dt=function(ct){Qt(function(Nt){return Object(g.a)(Object(g.a)({},Nt),{},{scrollLeft:ct/Le*We||0})})};return C.useImperativeHandle(ht,function(){return{setScrollLeft:Dt}}),C.useEffect(function(){var It=Object(Q.a)(document.body,"mouseup",Pe,!1),ct=Object(Q.a)(document.body,"mousemove",pt,!1);return bt(),function(){It.remove(),ct.remove()}},[Ue,at]),C.useEffect(function(){var It=Object(Q.a)(window,"scroll",bt,!1),ct=Object(Q.a)(window,"resize",bt,!1);return function(){It.remove(),ct.remove()}},[]),C.useEffect(function(){Wt.isHiddenScrollBar||Qt(function(It){var ct,Nt;return Object(g.a)(Object(g.a)({},It),{},{scrollLeft:Pt.current.scrollLeft/((ct=Pt.current)===null||ct===void 0?void 0:ct.scrollWidth)*((Nt=Pt.current)===null||Nt===void 0?void 0:Nt.clientWidth)})})},[Wt.isHiddenScrollBar]),Le<=We||!Ue||Wt.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(n.a)(),width:We,bottom:He},className:"".concat(Ce,"-sticky-scroll")},C.createElement("div",{onMouseDown:Qe,ref:ze,className:m()("".concat(Ce,"-sticky-scroll-bar"),Object(M.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),at)),style:{width:"".concat(Ue,"px"),transform:"translate3d(".concat(Wt.scrollLeft,"px, 0, 0)")}}))},_e=C.forwardRef(ve);function Ae(Ve,je){return C.useMemo(function(){var ht=!!Ve;return{isSticky:ht,stickyClassName:ht?"".concat(je,"-sticky-header"):"",offsetHeader:Object(b.a)(Ve)==="object"&&Ve.offsetHeader||0,offsetScroll:Object(b.a)(Ve)==="object"&&Ve.offsetScroll||0}},[Ve,je])}var Je=[],tt={},ut="rc-table-internal-hook",ft=C.memo(function(Ve){var je=Ve.children;return je},function(Ve,je){return f()(Ve.props,je.props)?Ve.pingLeft!==je.pingLeft||Ve.pingRight!==je.pingRight:!1});function vt(Ve){var je,ht=Ve.prefixCls,Bt=Ve.className,Et=Ve.rowClassName,Pt=Ve.style,qe=Ve.data,He=Ve.rowKey,Ye=Ve.scroll,Ce=Ve.tableLayout,Le=Ve.direction,We=Ve.title,Ue=Ve.footer,ze=Ve.summary,st=Ve.id,Ct=Ve.showHeader,Wt=Ve.components,Qt=Ve.emptyText,Kt=Ve.onRow,Ot=Ve.onHeaderRow,Fe=Ve.internalHooks,at=Ve.transformColumns,it=Ve.internalRefs,Pe=Ve.sticky,Qe=qe||Je,pt=!!Qe.length,bt=C.useState(0),Dt=Object(y.a)(bt,2),It=Dt[0],ct=Dt[1];C.useEffect(function(){ct(Object(n.a)())});var Nt=C.useMemo(function(){return Object(w.c)(Wt,{})},[Wt]),jt=C.useCallback(function(Gt,$t){return Object(w.b)(Nt,Gt)||$t},[Nt]),on=C.useMemo(function(){return typeof He=="function"?He:function(Gt){var $t=Gt&&Gt[He];return $t}},[He]),vn=Object(S.c)(Ve),Wn=vn.expandIcon,Kn=vn.expandedRowKeys,Hn=vn.defaultExpandedRowKeys,fn=vn.defaultExpandAllRows,lr=vn.expandedRowRender,Zn=vn.onExpand,cr=vn.onExpandedRowsChange,dr=vn.expandRowByClick,Dr=vn.rowExpandable,hr=vn.expandIconColumnIndex,sn=vn.expandedRowClassName,en=vn.childrenColumnName,On=vn.indentSize,Fr=Wn||le,Or=en||"children",xr=C.useMemo(function(){return lr?"row":Ve.expandable&&Fe===ut&&Ve.expandable.__PARENT_RENDER_ICON__||Qe.some(function(Gt){return Gt&&Object(b.a)(Gt)==="object"&&Gt[Or]})?"nest":!1},[!!lr,Qe]),fr=C.useState(function(){return Hn||(fn?te(Qe,on,Or):[])}),pe=Object(y.a)(fr,2),X=pe[0],q=pe[1],oe=C.useMemo(function(){return new Set(Kn||X||[])},[Kn,X]),De=C.useCallback(function(Gt){var $t=on(Gt,Qe.indexOf(Gt)),Jt,Xn=oe.has($t);Xn?(oe.delete($t),Jt=Object(O.a)(oe)):Jt=[].concat(Object(O.a)(oe),[$t]),q(Jt),Zn&&Zn(!Xn,Gt),cr&&cr(Jt)},[on,oe,Qe,Zn,cr]),fe=C.useState(0),ot=Object(y.a)(fe,2),Zt=ot[0],Mn=ot[1],Vn=Object(ce.b)(Object(g.a)(Object(g.a)(Object(g.a)({},Ve),vn),{},{expandable:!!lr,expandedKeys:oe,getRowKey:on,onTriggerExpand:De,expandIcon:Fr,expandIconColumnIndex:hr,direction:Le}),Fe===ut?at:null),qt=Object(y.a)(Vn,2),yn=qt[0],un=qt[1],jr=C.useMemo(function(){return{columns:yn,flattenColumns:un}},[yn,un]),ra=C.useRef(),oa=C.useRef(),er=C.useRef(),Ba=C.useState(!1),Ea=Object(y.a)(Ba,2),ca=Ea[0],Ka=Ea[1],Ta=C.useState(!1),Ja=Object(y.a)(Ta,2),Ua=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)(un),lt=xe.map(function(Gt){return ma.get(Gt)}),Rt=C.useMemo(function(){return lt},[lt.join("_")]),wt=me(Rt,un.length,Le),Ht=Ye&&Object(w.d)(Ye.y),Lt=Ye&&Object(w.d)(Ye.x),Xt=Lt&&un.some(function(Gt){var $t=Gt.fixed;return $t}),rn=C.useRef(),En=Ae(Pe,ht),gn=En.isSticky,Nn=En.offsetHeader,An=En.offsetScroll,an=En.stickyClassName,Pn,bn,kn;Ht&&(bn={overflowY:"scroll",maxHeight:Ye.y}),Lt&&(Pn={overflowX:"auto"},Ht||(bn={overflowY:"hidden"}),kn={width:Ye.x===!0?"auto":Ye.x,minWidth:"100%"});var Rn=C.useCallback(function(Gt,$t){la(function(Jt){var Xn=new Map(Jt);return Xn.set(Gt,$t),Xn})},[]),Yn=se(null),mr=Object(y.a)(Yn,2),Br=mr[0],Sn=mr[1];function Yt(Gt,$t){if(!$t)return;typeof $t=="function"?$t(Gt):$t.scrollLeft!==Gt&&($t.scrollLeft=Gt)}var hn=function($t){var Jt=$t.currentTarget,Xn=$t.scrollLeft,$n=typeof Xn=="number"?Xn:Jt.scrollLeft,Ln=Jt||tt;if(!Sn()||Sn()===Ln){var rr;Br(Ln),Yt($n,oa.current),Yt($n,er.current),Yt($n,(rr=rn.current)===null||rr===void 0?void 0:rr.setScrollLeft)}if(Jt){var ur=Jt.scrollWidth,ir=Jt.clientWidth;Ka($n>0),li($n0?[].concat(Object(g.a)(c),Object(g.a)(a(u).map(function(w){return Object(O.a)({fixed:s},w)}))):[].concat(Object(g.a)(c),[Object(O.a)(Object(O.a)({},h),{},{fixed:s})])},[])}function l(r){for(var c=!0,h=0;h=0;u-=1){var w=r[u];if(s&&w.fixed!=="right")s=!1;else if(!s&&w.fixed==="right"){Object(A.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function n(r){return r.map(function(c){var h=c.fixed,d=Object(b.a)(c,["fixed"]),s=h;return h==="left"?s="right":h==="right"&&(s="left"),Object(O.a)({fixed:s},d)})}function i(r,c){var h=r.prefixCls,d=r.columns,s=r.children,u=r.expandable,w=r.expandedKeys,E=r.getRowKey,_=r.onTriggerExpand,P=r.expandIcon,R=r.rowExpandable,x=r.expandIconColumnIndex,S=r.direction,v=r.expandRowByClick,T=y.useMemo(function(){return d||f(s)},[d,s]),U=y.useMemo(function(){if(u){var V,H=x||0,D=T[H],W=(V={},Object(M.a)(V,e.a,{className:"".concat(h,"-expand-icon-col")}),Object(M.a)(V,"title",""),Object(M.a)(V,"fixed",D?D.fixed:null),Object(M.a)(V,"className","".concat(h,"-row-expand-icon-cell")),Object(M.a)(V,"render",function(K,ee,he){var de=E(ee,he),Se=w.has(de),Te=R?R(ee):!0,ce=P({prefixCls:h,expanded:Se,expandable:Te,record:ee,onExpand:_});return v?y.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},ce):ce}),V),F=T.slice();return H>=0&&F.splice(H,0,W),F}return T},[u,T,E,w,P,S]),L=y.useMemo(function(){var V=U;return c&&(V=c(V)),V.length||(V=[{render:function(){return null}}]),V},[c,U,S]),N=y.useMemo(function(){return S==="rtl"?n(a(L)):a(L)},[L,S]);return[L,N]}z.b=i},wZgz:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.BlockCipher,y=g.algo,C=[],A=[],m=[],e=[],f=[],a=[],l=[],n=[],i=[],r=[];(function(){for(var d=[],s=0;s<256;s++)s<128?d[s]=s<<1:d[s]=s<<1^283;for(var u=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,C[u]=E,A[E]=u;var _=d[u],P=d[_],R=d[P],x=d[E]*257^E*16843008;m[u]=x<<24|x>>>8,e[u]=x<<16|x>>>16,f[u]=x<<8|x>>>24,a[u]=x;var x=R*16843009^P*65537^_*257^u*16843008;l[E]=x<<24|x>>>8,n[E]=x<<16|x>>>16,i[E]=x<<8|x>>>24,r[E]=x,u?(u=_^d[d[d[R^_]]],w^=d[d[w]]):u=w=1}})();var c=[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,u=s.words,w=s.sigBytes/4,E=this._nRounds=w+6,_=(E+1)*4,P=this._keySchedule=[],R=0;R<_;R++)R6&&R%w==4&&(d=C[d>>>24]<<24|C[d>>>16&255]<<16|C[d>>>8&255]<<8|C[d&255]):(d=d<<8|d>>>24,d=C[d>>>24]<<24|C[d>>>16&255]<<16|C[d>>>8&255]<<8|C[d&255],d^=c[R/w|0]<<24),P[R]=P[R-w]^d);for(var x=this._invKeySchedule=[],S=0;S<_;S++){var R=_-S;if(S%4)var d=P[R];else var d=P[R-4];S<4||R<=4?x[S]=d:x[S]=l[C[d>>>24]]^n[C[d>>>16&255]]^i[C[d>>>8&255]]^r[C[d&255]]}},encryptBlock:function(d,s){this._doCryptBlock(d,s,this._keySchedule,m,e,f,a,C)},decryptBlock:function(d,s){var u=d[s+1];d[s+1]=d[s+3],d[s+3]=u,this._doCryptBlock(d,s,this._invKeySchedule,l,n,i,r,A);var u=d[s+1];d[s+1]=d[s+3],d[s+3]=u},_doCryptBlock:function(d,s,u,w,E,_,P,R){for(var x=this._nRounds,S=d[s]^u[0],v=d[s+1]^u[1],T=d[s+2]^u[2],U=d[s+3]^u[3],L=4,N=1;N>>24]^E[v>>>16&255]^_[T>>>8&255]^P[U&255]^u[L++],H=w[v>>>24]^E[T>>>16&255]^_[U>>>8&255]^P[S&255]^u[L++],D=w[T>>>24]^E[U>>>16&255]^_[S>>>8&255]^P[v&255]^u[L++],W=w[U>>>24]^E[S>>>16&255]^_[v>>>8&255]^P[T&255]^u[L++];S=V,v=H,T=D,U=W}var V=(R[S>>>24]<<24|R[v>>>16&255]<<16|R[T>>>8&255]<<8|R[U&255])^u[L++],H=(R[v>>>24]<<24|R[T>>>16&255]<<16|R[U>>>8&255]<<8|R[S&255])^u[L++],D=(R[T>>>24]<<24|R[U>>>16&255]<<16|R[S>>>8&255]<<8|R[v&255])^u[L++],W=(R[U>>>24]<<24|R[S>>>16&255]<<16|R[v>>>8&255]<<8|R[T&255])^u[L++];d[s]=V,d[s+1]=H,d[s+2]=D,d[s+3]=W},keySize:256/32});g.AES=b._createHelper(h)}(),M.AES})},wbyO:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.WordArray,y=g.enc,C=y.Base64url={stringify:function(m,e=!0){var f=m.words,a=m.sigBytes,l=e?this._safe_map:this._map;m.clamp();for(var n=[],i=0;i>>2]>>>24-i%4*8&255,c=f[i+1>>>2]>>>24-(i+1)%4*8&255,h=f[i+2>>>2]>>>24-(i+2)%4*8&255,d=r<<16|c<<8|h,s=0;s<4&&i+s*.75>>6*(3-s)&63));var u=l.charAt(64);if(u)for(;n.length%4;)n.push(u);return n.join("")},parse:function(m,e=!0){var f=m.length,a=e?this._safe_map:this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var n=0;n>>6-n%4*2,c=i|r;a[l>>>2]|=c<<24-l%4*8,l++}return b.create(a,l)}}(),M.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 n});var M=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},O={cssFloat:1,styleFloat:1,float:1};function b(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function y(i,r,c){if(r=r.toLowerCase(),c==="auto"){if(r==="height")return i.offsetHeight;if(r==="width")return i.offsetWidth}return r in g||(g[r]=M.test(r)),g[r]?parseFloat(c)||0:c}function C(i,r){var c=arguments.length,h=b(i);return r=O[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,c===1?h:y(i,r,h[r]||i.style[r])}function A(i,r,c){var h=arguments.length;if(r=O[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,h===3)return typeof c=="number"&&M.test(r)&&(c="".concat(c,"px")),i.style[r]=c,c;for(var d in r)r.hasOwnProperty(d)&&A(i,d,r[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),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:r}}function a(){var i=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:r}}function l(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function n(i){var r=i.getBoundingClientRect(),c=document.documentElement;return{left:r.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||c.scrollTop)-(c.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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"}}]); +`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(M,g,O){"use strict";O.r(g);var b=O("./src/utils/logger.ts"),y=O("./src/loader/load-stats.ts"),C=/^age:\s*[\d.]+\s*$/m,A=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,l,n){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=l,this.callbacks=n,this.retryDelay=l.retryDelay,this.loadInternal()},e.loadInternal=function(){var a=this.config,l=this.context;if(!a)return;var n=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0;var r=this.xhrSetup;try{if(r)try{r(n,l.url)}catch(d){n.open("GET",l.url,!0),r(n,l.url)}n.readyState||n.open("GET",l.url,!0);var c=this.context.headers;if(c)for(var h in c)n.setRequestHeader(h,c[h])}catch(d){this.callbacks.onError({code:n.status,text:d.message},l,n);return}l.rangeEnd&&n.setRequestHeader("Range","bytes="+l.rangeStart+"-"+(l.rangeEnd-1)),n.onreadystatechange=this.readystatechange.bind(this),n.onprogress=this.loadprogress.bind(this),n.responseType=l.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),n.send()},e.readystatechange=function(){var a=this.context,l=this.loader,n=this.stats;if(!a||!l)return;var i=l.readyState,r=this.config;if(n.aborted)return;if(i>=2)if(self.clearTimeout(this.requestTimeout),n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start)),i===4){l.onreadystatechange=null,l.onprogress=null;var c=l.status;if(c>=200&&c<300){n.loading.end=Math.max(self.performance.now(),n.loading.first);var h,d;if(a.responseType==="arraybuffer"?(h=l.response,d=h.byteLength):(h=l.responseText,d=h.length),n.loaded=n.total=d,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(n,a,h,l),!this.callbacks)return;var u={url:l.responseURL,data:h};this.callbacks.onSuccess(u,n,a,l)}else n.retry>=r.maxRetry||c>=400&&c<499?(b.logger.error(c+" while loading "+a.url),this.callbacks.onError({code:c,text:l.statusText},a,l)):(b.logger.warn(c+" 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,r.maxRetryDelay),n.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.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 l=this.stats;l.loaded=a.loaded,a.lengthComputable&&(l.total=a.total)},e.getCacheAge=function(){var a=null;if(this.loader&&C.test(this.loader.getAllResponseHeaders())){var l=this.loader.getResponseHeader("age");a=l?parseFloat(l):null}return a},m}();g.default=A}}).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(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.StreamCipher,y=g.algo,C=y.RC4=b.extend({_doReset:function(){for(var e=this._key,f=e.words,a=e.sigBytes,l=this._S=[],n=0;n<256;n++)l[n]=n;for(var n=0,i=0;n<256;n++){var r=n%a,c=f[r>>>2]>>>24-r%4*8&255;i=(i+l[n]+c)%256;var h=l[n];l[n]=l[i],l[i]=h}this._i=this._j=0},_doProcessBlock:function(e,f){e[f]^=A.call(this)},keySize:256/32,ivSize:0});function A(){for(var e=this._S,f=this._i,a=this._j,l=0,n=0;n<4;n++){f=(f+1)%256,a=(a+e[f])%256;var i=e[f];e[f]=e[a],e[a]=i,l|=e[(e[f]+e[a])%256]<<24-n*8}return this._i=f,this._j=a,l}g.RC4=b._createHelper(C);var m=y.RC4Drop=C.extend({cfg:C.cfg.extend({drop:192}),_doReset:function(){C._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)A.call(this)}});g.RC4Drop=b._createHelper(m)}(),M.RC4})},wCXF:function(k,z,o){"use strict";o.d(z,"a",function(){return ut});var M=o("rePB"),g=o("VTBJ"),O=o("KQm4"),b=o("U8pU"),y=o("ODXe"),C=o("q1tI"),A=o("TSYQ"),m=o.n(A),e=o("Gytx"),f=o.n(e),a=o("Kwbf"),l=o("t23M"),n=o("qx4F"),i=o("6eGT"),r=o("IBYe"),c=o("Ff2n"),h=o("c+Xe"),d=o("fyJ8"),s=o("biw7");function u(Ve,je,ht,Bt,Et){var Pt=ht[Ve]||{},qe=ht[je]||{},He,Ye;Pt.fixed==="left"?He=Bt.left[Ve]:qe.fixed==="right"&&(Ye=Bt.right[je]);var Ce=!1,Le=!1,We=!1,Ue=!1,ze=ht[je+1],st=ht[Ve-1];if(Et==="rtl"){if(He!==void 0){var Ct=st&&st.fixed==="left";Ue=!Ct}else if(Ye!==void 0){var Wt=ze&&ze.fixed==="right";We=!Wt}}else if(He!==void 0){var Qt=ze&&ze.fixed==="left";Ce=!Qt}else if(Ye!==void 0){var Kt=st&&st.fixed==="right";Le=!Kt}return{fixLeft:He,fixRight:Ye,lastFixLeft:Ce,firstFixRight:Le,lastFixRight:We,firstFixLeft:Ue,isSticky:Bt.isSticky}}var w=o("sR1s");function E(Ve){var je=Ve.cells,ht=Ve.stickyOffsets,Bt=Ve.flattenColumns,Et=Ve.rowComponent,Pt=Ve.cellComponent,qe=Ve.onHeaderRow,He=Ve.index,Ye=C.useContext(s.a),Ce=Ye.prefixCls,Le=Ye.direction,We;qe&&(We=qe(je.map(function(ze){return ze.column}),He));var Ue=Object(w.a)(je.map(function(ze){return ze.column}));return C.createElement(Et,Object.assign({},We),je.map(function(ze,st){var Ct=ze.column,Wt=u(ze.colStart,ze.colEnd,Bt,ht,Le),Qt;return Ct&&Ct.onHeaderCell&&(Qt=ze.column.onHeaderCell(Ct)),C.createElement(d.a,Object.assign({},ze,{ellipsis:Ct.ellipsis,align:Ct.align,component:Pt,prefixCls:Ce,key:Ue[st]},Wt,{additionalProps:Qt,rowType:"header"}))}))}E.displayName="HeaderRow";var _=E;function P(Ve){var je=[];function ht(qe,He){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;je[Ye]=je[Ye]||[];var Ce=He,Le=qe.filter(Boolean).map(function(We){var Ue={key:We.key,className:We.className||"",children:We.title,column:We,colStart:Ce},ze=1,st=We.children;return st&&st.length>0&&(ze=ht(st,Ce,Ye+1).reduce(function(Ct,Wt){return Ct+Wt},0),Ue.hasSubColumns=!0),"colSpan"in We&&(ze=We.colSpan),"rowSpan"in We&&(Ue.rowSpan=We.rowSpan),Ue.colSpan=ze,Ue.colEnd=Ue.colStart+ze-1,je[Ye].push(Ue),Ce+=ze,ze});return Le}ht(Ve,0);for(var Bt=je.length,Et=function(He){je[He].forEach(function(Ye){!("rowSpan"in Ye)&&!Ye.hasSubColumns&&(Ye.rowSpan=Bt-He)})},Pt=0;Pt=0;He-=1){var Ye=je[He],Ce=ht&&ht[He],Le=Ce&&Ce[S.a];(Ye||Le||qe)&&(Et.unshift(C.createElement("col",Object.assign({key:He,style:{width:Ye,minWidth:Ye}},Le))),qe=!0)}return C.createElement("colgroup",null,Et)}var T=v;function U(Ve,je){return Object(C.useMemo)(function(){for(var ht=[],Bt=0;Bt1?oe-1:0),fe=1;fe=We&&(vn=We-Ue),qe({scrollLeft:vn/We*(Le+2)}),Kt.current.x=ct.pageX},bt=function(){var ct=Object(J.b)(Pt.current).top,Nt=ct+Pt.current.offsetHeight,jt=document.documentElement.scrollTop+window.innerHeight;Nt-Object(n.a)()<=jt||ct>=jt-He?Qt(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!0})}):Qt(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!1})})},Dt=function(ct){Qt(function(Nt){return Object(g.a)(Object(g.a)({},Nt),{},{scrollLeft:ct/Le*We||0})})};return C.useImperativeHandle(ht,function(){return{setScrollLeft:Dt}}),C.useEffect(function(){var It=Object(Q.a)(document.body,"mouseup",Pe,!1),ct=Object(Q.a)(document.body,"mousemove",pt,!1);return bt(),function(){It.remove(),ct.remove()}},[Ue,at]),C.useEffect(function(){var It=Object(Q.a)(window,"scroll",bt,!1),ct=Object(Q.a)(window,"resize",bt,!1);return function(){It.remove(),ct.remove()}},[]),C.useEffect(function(){Wt.isHiddenScrollBar||Qt(function(It){var ct,Nt;return Object(g.a)(Object(g.a)({},It),{},{scrollLeft:Pt.current.scrollLeft/((ct=Pt.current)===null||ct===void 0?void 0:ct.scrollWidth)*((Nt=Pt.current)===null||Nt===void 0?void 0:Nt.clientWidth)})})},[Wt.isHiddenScrollBar]),Le<=We||!Ue||Wt.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(n.a)(),width:We,bottom:He},className:"".concat(Ce,"-sticky-scroll")},C.createElement("div",{onMouseDown:Qe,ref:ze,className:m()("".concat(Ce,"-sticky-scroll-bar"),Object(M.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),at)),style:{width:"".concat(Ue,"px"),transform:"translate3d(".concat(Wt.scrollLeft,"px, 0, 0)")}}))},_e=C.forwardRef(ve);function Ae(Ve,je){return C.useMemo(function(){var ht=!!Ve;return{isSticky:ht,stickyClassName:ht?"".concat(je,"-sticky-header"):"",offsetHeader:Object(b.a)(Ve)==="object"&&Ve.offsetHeader||0,offsetScroll:Object(b.a)(Ve)==="object"&&Ve.offsetScroll||0}},[Ve,je])}var Je=[],tt={},ut="rc-table-internal-hook",ft=C.memo(function(Ve){var je=Ve.children;return je},function(Ve,je){return f()(Ve.props,je.props)?Ve.pingLeft!==je.pingLeft||Ve.pingRight!==je.pingRight:!1});function vt(Ve){var je,ht=Ve.prefixCls,Bt=Ve.className,Et=Ve.rowClassName,Pt=Ve.style,qe=Ve.data,He=Ve.rowKey,Ye=Ve.scroll,Ce=Ve.tableLayout,Le=Ve.direction,We=Ve.title,Ue=Ve.footer,ze=Ve.summary,st=Ve.id,Ct=Ve.showHeader,Wt=Ve.components,Qt=Ve.emptyText,Kt=Ve.onRow,Ot=Ve.onHeaderRow,Fe=Ve.internalHooks,at=Ve.transformColumns,it=Ve.internalRefs,Pe=Ve.sticky,Qe=qe||Je,pt=!!Qe.length,bt=C.useState(0),Dt=Object(y.a)(bt,2),It=Dt[0],ct=Dt[1];C.useEffect(function(){ct(Object(n.a)())});var Nt=C.useMemo(function(){return Object(w.c)(Wt,{})},[Wt]),jt=C.useCallback(function(Gt,$t){return Object(w.b)(Nt,Gt)||$t},[Nt]),on=C.useMemo(function(){return typeof He=="function"?He:function(Gt){var $t=Gt&&Gt[He];return $t}},[He]),vn=Object(S.c)(Ve),Wn=vn.expandIcon,Kn=vn.expandedRowKeys,Hn=vn.defaultExpandedRowKeys,fn=vn.defaultExpandAllRows,lr=vn.expandedRowRender,Zn=vn.onExpand,cr=vn.onExpandedRowsChange,dr=vn.expandRowByClick,Dr=vn.rowExpandable,hr=vn.expandIconColumnIndex,sn=vn.expandedRowClassName,en=vn.childrenColumnName,On=vn.indentSize,Fr=Wn||le,Or=en||"children",xr=C.useMemo(function(){return lr?"row":Ve.expandable&&Fe===ut&&Ve.expandable.__PARENT_RENDER_ICON__||Qe.some(function(Gt){return Gt&&Object(b.a)(Gt)==="object"&&Gt[Or]})?"nest":!1},[!!lr,Qe]),fr=C.useState(function(){return Hn||(fn?te(Qe,on,Or):[])}),pe=Object(y.a)(fr,2),X=pe[0],q=pe[1],oe=C.useMemo(function(){return new Set(Kn||X||[])},[Kn,X]),De=C.useCallback(function(Gt){var $t=on(Gt,Qe.indexOf(Gt)),Jt,Xn=oe.has($t);Xn?(oe.delete($t),Jt=Object(O.a)(oe)):Jt=[].concat(Object(O.a)(oe),[$t]),q(Jt),Zn&&Zn(!Xn,Gt),cr&&cr(Jt)},[on,oe,Qe,Zn,cr]),fe=C.useState(0),ot=Object(y.a)(fe,2),Zt=ot[0],Mn=ot[1],Vn=Object(ce.b)(Object(g.a)(Object(g.a)(Object(g.a)({},Ve),vn),{},{expandable:!!lr,expandedKeys:oe,getRowKey:on,onTriggerExpand:De,expandIcon:Fr,expandIconColumnIndex:hr,direction:Le}),Fe===ut?at:null),qt=Object(y.a)(Vn,2),En=qt[0],un=qt[1],jr=C.useMemo(function(){return{columns:En,flattenColumns:un}},[En,un]),aa=C.useRef(),oa=C.useRef(),er=C.useRef(),Ba=C.useState(!1),Ea=Object(y.a)(Ba,2),ca=Ea[0],Ka=Ea[1],Ta=C.useState(!1),Ja=Object(y.a)(Ta,2),Ua=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)(un),lt=xe.map(function(Gt){return ma.get(Gt)}),Rt=C.useMemo(function(){return lt},[lt.join("_")]),wt=me(Rt,un.length,Le),Ht=Ye&&Object(w.d)(Ye.y),Lt=Ye&&Object(w.d)(Ye.x),Xt=Lt&&un.some(function(Gt){var $t=Gt.fixed;return $t}),rn=C.useRef(),xn=Ae(Pe,ht),gn=xn.isSticky,Nn=xn.offsetHeader,An=xn.offsetScroll,an=xn.stickyClassName,Pn,yn,kn;Ht&&(yn={overflowY:"scroll",maxHeight:Ye.y}),Lt&&(Pn={overflowX:"auto"},Ht||(yn={overflowY:"hidden"}),kn={width:Ye.x===!0?"auto":Ye.x,minWidth:"100%"});var Rn=C.useCallback(function(Gt,$t){la(function(Jt){var Xn=new Map(Jt);return Xn.set(Gt,$t),Xn})},[]),Yn=se(null),mr=Object(y.a)(Yn,2),Br=mr[0],Sn=mr[1];function Yt(Gt,$t){if(!$t)return;typeof $t=="function"?$t(Gt):$t.scrollLeft!==Gt&&($t.scrollLeft=Gt)}var hn=function($t){var Jt=$t.currentTarget,Xn=$t.scrollLeft,$n=typeof Xn=="number"?Xn:Jt.scrollLeft,Ln=Jt||tt;if(!Sn()||Sn()===Ln){var rr;Br(Ln),Yt($n,oa.current),Yt($n,er.current),Yt($n,(rr=rn.current)===null||rr===void 0?void 0:rr.setScrollLeft)}if(Jt){var ur=Jt.scrollWidth,ir=Jt.clientWidth;Ka($n>0),li($n0?[].concat(Object(g.a)(c),Object(g.a)(a(u).map(function(w){return Object(O.a)({fixed:s},w)}))):[].concat(Object(g.a)(c),[Object(O.a)(Object(O.a)({},h),{},{fixed:s})])},[])}function l(r){for(var c=!0,h=0;h=0;u-=1){var w=r[u];if(s&&w.fixed!=="right")s=!1;else if(!s&&w.fixed==="right"){Object(A.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function n(r){return r.map(function(c){var h=c.fixed,d=Object(b.a)(c,["fixed"]),s=h;return h==="left"?s="right":h==="right"&&(s="left"),Object(O.a)({fixed:s},d)})}function i(r,c){var h=r.prefixCls,d=r.columns,s=r.children,u=r.expandable,w=r.expandedKeys,E=r.getRowKey,_=r.onTriggerExpand,P=r.expandIcon,R=r.rowExpandable,x=r.expandIconColumnIndex,S=r.direction,v=r.expandRowByClick,T=y.useMemo(function(){return d||f(s)},[d,s]),U=y.useMemo(function(){if(u){var V,H=x||0,D=T[H],W=(V={},Object(M.a)(V,e.a,{className:"".concat(h,"-expand-icon-col")}),Object(M.a)(V,"title",""),Object(M.a)(V,"fixed",D?D.fixed:null),Object(M.a)(V,"className","".concat(h,"-row-expand-icon-cell")),Object(M.a)(V,"render",function(K,ee,he){var de=E(ee,he),Se=w.has(de),Te=R?R(ee):!0,ce=P({prefixCls:h,expanded:Se,expandable:Te,record:ee,onExpand:_});return v?y.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},ce):ce}),V),F=T.slice();return H>=0&&F.splice(H,0,W),F}return T},[u,T,E,w,P,S]),L=y.useMemo(function(){var V=U;return c&&(V=c(V)),V.length||(V=[{render:function(){return null}}]),V},[c,U,S]),N=y.useMemo(function(){return S==="rtl"?n(a(L)):a(L)},[L,S]);return[L,N]}z.b=i},wZgz:function(k,z,o){(function(M,g,O){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.BlockCipher,y=g.algo,C=[],A=[],m=[],e=[],f=[],a=[],l=[],n=[],i=[],r=[];(function(){for(var d=[],s=0;s<256;s++)s<128?d[s]=s<<1:d[s]=s<<1^283;for(var u=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,C[u]=E,A[E]=u;var _=d[u],P=d[_],R=d[P],x=d[E]*257^E*16843008;m[u]=x<<24|x>>>8,e[u]=x<<16|x>>>16,f[u]=x<<8|x>>>24,a[u]=x;var x=R*16843009^P*65537^_*257^u*16843008;l[E]=x<<24|x>>>8,n[E]=x<<16|x>>>16,i[E]=x<<8|x>>>24,r[E]=x,u?(u=_^d[d[d[R^_]]],w^=d[d[w]]):u=w=1}})();var c=[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,u=s.words,w=s.sigBytes/4,E=this._nRounds=w+6,_=(E+1)*4,P=this._keySchedule=[],R=0;R<_;R++)R6&&R%w==4&&(d=C[d>>>24]<<24|C[d>>>16&255]<<16|C[d>>>8&255]<<8|C[d&255]):(d=d<<8|d>>>24,d=C[d>>>24]<<24|C[d>>>16&255]<<16|C[d>>>8&255]<<8|C[d&255],d^=c[R/w|0]<<24),P[R]=P[R-w]^d);for(var x=this._invKeySchedule=[],S=0;S<_;S++){var R=_-S;if(S%4)var d=P[R];else var d=P[R-4];S<4||R<=4?x[S]=d:x[S]=l[C[d>>>24]]^n[C[d>>>16&255]]^i[C[d>>>8&255]]^r[C[d&255]]}},encryptBlock:function(d,s){this._doCryptBlock(d,s,this._keySchedule,m,e,f,a,C)},decryptBlock:function(d,s){var u=d[s+1];d[s+1]=d[s+3],d[s+3]=u,this._doCryptBlock(d,s,this._invKeySchedule,l,n,i,r,A);var u=d[s+1];d[s+1]=d[s+3],d[s+3]=u},_doCryptBlock:function(d,s,u,w,E,_,P,R){for(var x=this._nRounds,S=d[s]^u[0],v=d[s+1]^u[1],T=d[s+2]^u[2],U=d[s+3]^u[3],L=4,N=1;N>>24]^E[v>>>16&255]^_[T>>>8&255]^P[U&255]^u[L++],H=w[v>>>24]^E[T>>>16&255]^_[U>>>8&255]^P[S&255]^u[L++],D=w[T>>>24]^E[U>>>16&255]^_[S>>>8&255]^P[v&255]^u[L++],W=w[U>>>24]^E[S>>>16&255]^_[v>>>8&255]^P[T&255]^u[L++];S=V,v=H,T=D,U=W}var V=(R[S>>>24]<<24|R[v>>>16&255]<<16|R[T>>>8&255]<<8|R[U&255])^u[L++],H=(R[v>>>24]<<24|R[T>>>16&255]<<16|R[U>>>8&255]<<8|R[S&255])^u[L++],D=(R[T>>>24]<<24|R[U>>>16&255]<<16|R[S>>>8&255]<<8|R[v&255])^u[L++],W=(R[U>>>24]<<24|R[S>>>16&255]<<16|R[v>>>8&255]<<8|R[T&255])^u[L++];d[s]=V,d[s+1]=H,d[s+2]=D,d[s+3]=W},keySize:256/32});g.AES=b._createHelper(h)}(),M.AES})},wbyO:function(k,z,o){(function(M,g){k.exports=z=g(o("Ib8C"))})(this,function(M){return function(){var g=M,O=g.lib,b=O.WordArray,y=g.enc,C=y.Base64url={stringify:function(m,e=!0){var f=m.words,a=m.sigBytes,l=e?this._safe_map:this._map;m.clamp();for(var n=[],i=0;i>>2]>>>24-i%4*8&255,c=f[i+1>>>2]>>>24-(i+1)%4*8&255,h=f[i+2>>>2]>>>24-(i+2)%4*8&255,d=r<<16|c<<8|h,s=0;s<4&&i+s*.75>>6*(3-s)&63));var u=l.charAt(64);if(u)for(;n.length%4;)n.push(u);return n.join("")},parse:function(m,e=!0){var f=m.length,a=e?this._safe_map:this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var n=0;n>>6-n%4*2,c=i|r;a[l>>>2]|=c<<24-l%4*8,l++}return b.create(a,l)}}(),M.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 n});var M=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},O={cssFloat:1,styleFloat:1,float:1};function b(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function y(i,r,c){if(r=r.toLowerCase(),c==="auto"){if(r==="height")return i.offsetHeight;if(r==="width")return i.offsetWidth}return r in g||(g[r]=M.test(r)),g[r]?parseFloat(c)||0:c}function C(i,r){var c=arguments.length,h=b(i);return r=O[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,c===1?h:y(i,r,h[r]||i.style[r])}function A(i,r,c){var h=arguments.length;if(r=O[r]?"cssFloat"in i.style?"cssFloat":"styleFloat":r,h===3)return typeof c=="number"&&M.test(r)&&(c="".concat(c,"px")),i.style[r]=c,c;for(var d in r)r.hasOwnProperty(d)&&A(i,d,r[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),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:r}}function a(){var i=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:r}}function l(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function n(i){var r=i.getBoundingClientRect(),c=document.documentElement;return{left:r.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||c.scrollTop)-(c.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/p__User__Detail__Classrooms__index.ee8a0a46.async.js b/p__User__Detail__Classrooms__index.ee8a0a46.async.js index 660d7c0e1b..8e67fce55b 100644 --- a/p__User__Detail__Classrooms__index.ee8a0a46.async.js +++ b/p__User__Detail__Classrooms__index.ee8a0a46.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[259,8,10],{"+GGh":function(V,v){V.exports="data:image/png;base64,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"},"1XHU":function(V,v,e){"use strict";var R=e("2qtc"),a=e("kLXV"),ce=e("q1tI"),ae=e.n(ce),D=e("9kvl"),n=e("3wET"),oe=e.n(n),P=e("bUJZ"),u=e.n(P),J=e("Ct/S"),y=e.n(J),Y=function(p){var f=p.visible,d=p.occupationValue,T=p.onCancel,h=T===void 0?function(){}:T,M=function(){return ae.a.createElement("div",{className:y.a.flexColumn},ae.a.createElement("img",{className:y.a.img,src:u.a}),ae.a.createElement("span",{className:y.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},L=function(){return ae.a.createElement("div",{className:y.a.flexColumn},ae.a.createElement("img",{className:y.a.img,src:oe.a}),ae.a.createElement("span",{className:y.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},O=function(){return d===3?ae.a.createElement(ae.a.Fragment,null,L(),M()):d===2?M():L()};return ae.a.createElement(a.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:f,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(){h(),D.d.push("/account/certification")},onCancel:function(){h()}},ae.a.createElement("div",{className:y.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),ae.a.createElement("div",{className:y.a.flexRow},O()))};v.a=Object(D.a)(function(N){var p=N.paperlibrary,f=N.loading,d=N.globalSetting;return{paperlibrary:p,globalSetting:d,loading:f.effects}})(Y)},"2m4C":function(V,v,e){V.exports={flex_box_center:"flex_box_center___2-qfd",flex_space_between:"flex_space_between___1JkUL",flex_box_vertical_center:"flex_box_vertical_center___w2qHq",flex_box_center_end:"flex_box_center_end___136Zl",flex_box_column:"flex_box_column___xKtkl",wrap:"wrap___2Yh5x",lockWrap:"lockWrap___2FPPb",lockIcon:"lockIcon___ZCi-B",topWrap:"topWrap___1gxfi",bottomWrap:"bottomWrap___3nFhU",bottom:"bottom___2SqE5",bottomIconSpan:"bottomIconSpan___2FUtd",public:"public___24PL-",borderFF6800:"borderFF6800___3YaLf",publicIcon:"publicIcon___2bq4b",publicText:"publicText___km2SR",lockText:"lockText___38jUU",createIconWrap:"createIconWrap___JtOa4",createIcon:"createIcon___ica6o",leftIcon:"leftIcon___Z6cyz",rightIcon:"rightIcon___1I9mc",createTextWrap:"createTextWrap___28JMG",createText:"createText___OaGdk",title:"title___anL3V",img:"img___Hxslc",teacherName:"teacherName___1Mspy",school:"school___2_zag",color989898:"color989898___KooPn",teacherUsers:"teacherUsers___7Hs0f",text:"text___2dGJj"}},"3wET":function(V,v){V.exports="data:image/png;base64,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"},"6+eU":function(V,v,e){"use strict";e.d(v,"a",function(){return C});var R=e("wx14"),a=e("rePB"),ce=e("VTBJ"),ae=e("1OyB"),D=e("vuIU"),n=e("Ji7U"),oe=e("LK+K"),P=e("q1tI"),u=e.n(P),J=e("TSYQ"),y=e.n(J),Y=function(E){var r,o="".concat(E.rootPrefixCls,"-item"),t=y()(o,"".concat(o,"-").concat(E.page),(r={},Object(a.a)(r,"".concat(o,"-active"),E.active),Object(a.a)(r,E.className,!!E.className),Object(a.a)(r,"".concat(o,"-disabled"),!E.page),r)),i=function(){E.onClick(E.page)},l=function(A){E.onKeyPress(A,E.onClick,E.page)};return u.a.createElement("li",{title:E.showTitle?E.page:null,className:t,onClick:i,onKeyPress:l,tabIndex:"0"},E.itemRender(E.page,"page",u.a.createElement("a",{rel:"nofollow"},E.page)))},N=Y,p={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},f=function(g){Object(n.a)(r,g);var E=Object(oe.a)(r);function r(){var o;Object(ae.a)(this,r);for(var t=arguments.length,i=new Array(t),l=0;l=0||s.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;o.setState({goInputText:""}),j(o.getValidValue())},o.go=function(s){var A=o.state.goInputText;if(A==="")return;(s.keyCode===p.ENTER||s.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(D.a)(r,[{key:"getValidValue",value:function(){var t=this.state,i=t.goInputText,l=t.current;return!i||isNaN(i)?l:Number(i)}},{key:"getPageSizeOptions",value:function(){var t=this.props,i=t.pageSize,l=t.pageSizeOptions;return l.some(function(s){return s.toString()===i.toString()})?l:l.concat([i.toString()]).sort(function(s,A){var m=isNaN(Number(s))?0:Number(s),j=isNaN(Number(A))?0:Number(A);return m-j})}},{key:"render",value:function(){var t=this,i=this.props,l=i.pageSize,s=i.locale,A=i.rootPrefixCls,m=i.changeSize,j=i.quickGo,B=i.goButton,Q=i.selectComponentClass,G=i.buildOptionText,z=i.selectPrefixCls,U=i.disabled,ee=this.state.goInputText,se="".concat(A,"-options"),Ae=Q,be=null,I=null,S=null;if(!m&&!j)return null;var te=this.getPageSizeOptions();if(m&&Ae){var k=te.map(function(x,me){return u.a.createElement(Ae.Option,{key:me,value:x.toString()},(G||t.buildOptionText)(x))});be=u.a.createElement(Ae,{disabled:U,prefixCls:z,showSearch:!1,className:"".concat(se,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(l||te[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},k)}return j&&(B&&(S=typeof B=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:U,className:"".concat(se,"-quick-jumper-button")},s.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),I=u.a.createElement("div",{className:"".concat(se,"-quick-jumper")},s.jump_to,u.a.createElement("input",{disabled:U,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),s.page,S)),u.a.createElement("li",{className:"".concat(se)},be,I)}}]),r}(u.a.Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var d=f,T=e("N2Kk");function h(){}function M(g){return typeof g=="number"&&isFinite(g)&&Math.floor(g)===g}function L(g,E,r){return r}function O(g,E,r){var o=typeof g=="undefined"?E.pageSize:g;return Math.floor((r.total-1)/o)+1}var F=function(g){Object(n.a)(r,g);var E=Object(oe.a)(r);function r(o){var t;Object(ae.a)(this,r),t=E.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(O(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(m,j){var B=t.props.prefixCls,Q=m||u.a.createElement("button",{type:"button","aria-label":j,className:"".concat(B,"-item-link")});return typeof m=="function"&&(Q=u.a.createElement(m,Object(ce.a)({},t.props))),Q},t.savePaginationNode=function(m){t.paginationNode=m},t.isValid=function(m){return M(m)&&m!==t.state.current},t.shouldDisplayQuickJumper=function(){var m=t.props,j=m.showQuickJumper,B=m.pageSize,Q=m.total;return Q<=B?!1:j},t.handleKeyDown=function(m){(m.keyCode===p.ARROW_UP||m.keyCode===p.ARROW_DOWN)&&m.preventDefault()},t.handleKeyUp=function(m){var j=t.getValidValue(m),B=t.state.currentInputValue;j!==B&&t.setState({currentInputValue:j}),m.keyCode===p.ENTER?t.handleChange(j):m.keyCode===p.ARROW_UP?t.handleChange(j-1):m.keyCode===p.ARROW_DOWN&&t.handleChange(j+1)},t.changePageSize=function(m){var j=t.state.current,B=O(m,t.state,t.props);j=j>B?B:j,B===0&&(j=t.state.current),typeof m=="number"&&("pageSize"in t.props||t.setState({pageSize:m}),"current"in t.props||t.setState({current:j,currentInputValue:j})),t.props.onShowSizeChange(j,m),"onChange"in t.props&&t.props.onChange&&t.props.onChange(j,m)},t.handleChange=function(m){var j=t.props.disabled,B=m;if(t.isValid(B)&&!j){var Q=O(void 0,t.state,t.props);B>Q?B=Q:B<1&&(B=1),"current"in t.props||t.setState({current:B,currentInputValue:B});var G=t.state.pageSize;return t.props.onChange(B,G),B}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?B-2:0),G=2;G=l?A=l:A=Number(i),A}},{key:"getShowSizeChanger",value:function(){var t=this.props,i=t.showSizeChanger,l=t.total,s=t.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:l>s}},{key:"renderPrev",value:function(t){var i=this.props,l=i.prevIcon,s=i.itemRender,A=s(t,"prev",this.getItemIcon(l,"prev page")),m=!this.hasPrev();return Object(P.isValidElement)(A)?Object(P.cloneElement)(A,{disabled:m}):A}},{key:"renderNext",value:function(t){var i=this.props,l=i.nextIcon,s=i.itemRender,A=s(t,"next",this.getItemIcon(l,"next page")),m=!this.hasNext();return Object(P.isValidElement)(A)?Object(P.cloneElement)(A,{disabled:m}):A}},{key:"render",value:function(){var t=this,i=this.props,l=i.prefixCls,s=i.className,A=i.style,m=i.disabled,j=i.hideOnSinglePage,B=i.total,Q=i.locale,G=i.showQuickJumper,z=i.showLessItems,U=i.showTitle,ee=i.showTotal,se=i.simple,Ae=i.itemRender,be=i.showPrevNextJumpers,I=i.jumpPrevIcon,S=i.jumpNextIcon,te=i.selectComponentClass,k=i.selectPrefixCls,x=i.pageSizeOptions,me=this.state,_=me.current,q=me.pageSize,Ee=me.currentInputValue;if(j===!0&&B<=q)return null;var pe=O(void 0,this.state,this.props),he=[],Le=null,Pe=null,He=null,Xe=null,Ue=null,Re=G&&G.goButton,Me=z?1:2,Ve=_-1>0?_-1:0,Ye=_+1=Me*2&&_!==1+2&&(he[0]=Object(P.cloneElement)(he[0],{className:"".concat(l,"-item-after-jump-prev")}),he.unshift(Le)),pe-_>=Me*2&&_!==pe-2&&(he[he.length-1]=Object(P.cloneElement)(he[he.length-1],{className:"".concat(l,"-item-before-jump-next")}),he.push(Pe)),H!==1&&he.unshift(He),ie!==pe&&he.push(Xe)}var $=null;ee&&($=u.a.createElement("li",{className:"".concat(l,"-total-text")},ee(B,[B===0?0:(_-1)*q+1,_*q>B?B:_*q])));var Z=!this.hasPrev()||!pe,X=!this.hasNext()||!pe;return u.a.createElement("ul",Object(R.a)({className:y()(l,s,Object(a.a)({},"".concat(l,"-disabled"),m)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},Je),$,u.a.createElement("li",{title:U?Q.prev_page:null,onClick:this.prev,tabIndex:Z?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(l,"-prev"),Object(a.a)({},"".concat(l,"-disabled"),Z)),"aria-disabled":Z},this.renderPrev(Ve)),he,u.a.createElement("li",{title:U?Q.next_page:null,onClick:this.next,tabIndex:X?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(l,"-next"),Object(a.a)({},"".concat(l,"-disabled"),X)),"aria-disabled":X},this.renderNext(Ye)),u.a.createElement(d,{disabled:m,locale:Q,rootPrefixCls:l,selectComponentClass:te,selectPrefixCls:k,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:_,pageSize:q,pageSizeOptions:x,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Re}))}}],[{key:"getDerivedStateFromProps",value:function(t,i){var l={};if("current"in t&&(l.current=t.current,t.current!==i.current&&(l.currentInputValue=l.current)),"pageSize"in t&&t.pageSize!==i.pageSize){var s=i.current,A=O(t.pageSize,i,t);s=s>A?A:s,"current"in t||(l.current=s,l.currentInputValue=s),l.pageSize=t.pageSize}return l}}]),r}(u.a.Component);F.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:h,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:h,locale:T.a,style:{},itemRender:L,totalBoundaryShowSizeChanger:50};var C=F},"6RRn":function(V,v,e){"use strict";var R=e("wCXF"),a=e("n6Qo");e.d(v,"b",function(){return a.a});var ce=e("IBYe"),ae=e("6eGT"),D=e("hW8S");e.d(v,"a",function(){return D.a}),v.c=R.b},"6eGT":function(V,v,e){"use strict";function R(a){return null}v.a=R},"6nfa":function(V,v,e){V.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"}},"815F":function(V,v,e){"use strict";e.d(v,"e",function(){return oe}),e.d(v,"c",function(){return u}),e.d(v,"d",function(){return J}),e.d(v,"a",function(){return Y}),e.d(v,"f",function(){return N}),e.d(v,"b",function(){return p});var R=e("KQm4"),a=e("VTBJ"),ce=e("Ff2n"),ae=e("Zm9Q"),D=e("Kwbf"),n=e("OZM5");function oe(f,d){return f!=null?f:d}function P(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=new Map;function T(h){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(L){var O=L.key,F=L.children;Object(D.a)(O!=null,"Tree node must have a certain key: [".concat(M).concat(O,"]"));var C=String(O);Object(D.a)(!d.has(C)||O===null||O===void 0,"Same 'key' exist in the Tree: ".concat(C)),d.set(C,!0),T(F,"".concat(M).concat(C," > "))})}T(f)}function u(f){function d(T){var h=Object(ae.a)(T);return h.map(function(M){if(!Object(n.i)(M))return Object(D.a)(!M,"Tree/TreeNode can only accept TreeNode as children."),null;var L=M.key,O=M.props,F=O.children,C=Object(ce.a)(O,["children"]),g=Object(a.a)({key:L},C),E=d(F);return E.length&&(g.children=E),g}).filter(function(M){return M})}return d(f)}function J(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],T=new Set(d===!0?[]:d),h=[];function M(L){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return L.map(function(F,C){var g=Object(n.h)(O?O.pos:"0",C),E=oe(F.key,g),r=Object(a.a)(Object(a.a)({},F),{},{parent:O,pos:g,children:null,data:F,isStart:[].concat(Object(R.a)(O?O.isStart:[]),[C===0]),isEnd:[].concat(Object(R.a)(O?O.isEnd:[]),[C===L.length-1])});return h.push(r),d===!0||T.has(E)?r.children=M(F.children||[],r):r.children=[],r})}return M(f),h}function y(f,d,T){var h;T?typeof T=="string"?h=function(O){return O[T]}:typeof T=="function"&&(h=function(O){return T(O)}):h=function(O,F){return oe(O.key,F)};function M(L,O,F){var C=L?L.children:f,g=L?Object(n.h)(F.pos,O):"0";if(L){var E=h(L,g),r={node:L,index:O,pos:g,key:E,parentPos:F.node?F.pos:null,level:F.level+1};d(r)}C&&C.forEach(function(o,t){M(o,t,{node:L,pos:g,level:F?F.level+1:-1})})}M(null)}function Y(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=d.initWrapper,h=d.processEntity,M=d.onProcessFinished,L=arguments.length>2?arguments[2]:void 0,O={},F={},C={posEntities:O,keyEntities:F};return T&&(C=T(C)||C),y(f,function(g){var E=g.node,r=g.index,o=g.pos,t=g.key,i=g.parentPos,l=g.level,s={node:E,index:r,key:t,pos:o,level:l},A=oe(t,o);O[o]=s,F[A]=s,s.parent=O[i],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),h&&h(s,C)},L),M&&M(C),C}function N(f,d){var T=d.expandedKeys,h=d.selectedKeys,M=d.loadedKeys,L=d.loadingKeys,O=d.checkedKeys,F=d.halfCheckedKeys,C=d.dragOverNodeKey,g=d.dropPosition,E=d.keyEntities,r=E[f],o={eventKey:f,expanded:T.indexOf(f)!==-1,selected:h.indexOf(f)!==-1,loaded:M.indexOf(f)!==-1,loading:L.indexOf(f)!==-1,checked:O.indexOf(f)!==-1,halfChecked:F.indexOf(f)!==-1,pos:String(r?r.pos:""),dragOver:C===f&&g===0,dragOverGapTop:C===f&&g===-1,dragOverGapBottom:C===f&&g===1};return o}function p(f){var d=f.data,T=f.expanded,h=f.selected,M=f.checked,L=f.loaded,O=f.loading,F=f.halfChecked,C=f.dragOver,g=f.dragOverGapTop,E=f.dragOverGapBottom,r=f.pos,o=f.active,t=Object(a.a)(Object(a.a)({},d),{},{expanded:T,selected:h,checked:M,loaded:L,loading:O,halfChecked:F,dragOver:C,dragOverGapTop:g,dragOverGapBottom:E,pos:r,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(D.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),f}}),t}},"8WcF":function(V,v,e){V.exports={flex_box_center:"flex_box_center___2fahw",flex_space_between:"flex_space_between___1h4HM",flex_box_vertical_center:"flex_box_vertical_center___2kxeE",flex_box_center_end:"flex_box_center_end___OjPB4",flex_box_column:"flex_box_column___3zY1h",orderWrap:"orderWrap___VQuq1",orderIconWrap:"orderIconWrap___18q7W",orderAsc:"orderAsc___3WBGg",orderDesc:"orderDesc____ipxK",active:"active___3EMfI",cursorPointer:"cursorPointer___3og_L",orderTextWrap:"orderTextWrap___XQlmv"}},"8mKB":function(V,v,e){"use strict";var R=e("rePB"),a=e("1OyB"),ce=e("vuIU"),ae=e("Ji7U"),D=e("md7G"),n=e("foSv"),oe=e("q1tI"),P=e.n(oe),u=e("m+aA"),J=e("TSYQ"),y=e.n(J),Y=e("4IlW");function N(o){var t=o.pageXOffset,i="scrollLeft";if(typeof t!="number"){var l=o.document;t=l.documentElement[i],typeof t!="number"&&(t=l.body[i])}return t}function p(o){var t,i,l=o.ownerDocument,s=l.body,A=l&&l.documentElement,m=o.getBoundingClientRect();return t=m.left,i=m.top,t-=A.clientLeft||s.clientLeft||0,i-=A.clientTop||s.clientTop||0,{left:t,top:i}}function f(o){var t=p(o),i=o.ownerDocument,l=i.defaultView||i.parentWindow;return t.left+=N(l),t.left}function d(o){var t=T();return function(){var l=Object(n.a)(o),s;if(t){var A=Object(n.a)(this).constructor;s=Reflect.construct(l,arguments,A)}else s=l.apply(this,arguments);return Object(D.a)(this,s)}}function T(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}var h=function(o){Object(ae.a)(i,o);var t=d(i);function i(){var l;return Object(a.a)(this,i),l=t.apply(this,arguments),l.onHover=function(s){var A=l.props,m=A.onHover,j=A.index;m(s,j)},l.onClick=function(s){var A=l.props,m=A.onClick,j=A.index;m(s,j)},l.onKeyDown=function(s){var A=l.props,m=A.onClick,j=A.index;s.keyCode===13&&m(s,j)},l}return Object(ce.a)(i,[{key:"getClassName",value:function(){var s=this.props,A=s.prefixCls,m=s.index,j=s.value,B=s.allowHalf,Q=s.focused,G=m+1,z=A;return j===0&&m===0&&Q?z+=" ".concat(A,"-focused"):B&&j+.5>=G&&jU?"true":"false","aria-posinset":U+1,"aria-setsize":ee,tabIndex:B?-1:0},P.a.createElement("div",{className:"".concat(Q,"-first")},Ae),P.a.createElement("div",{className:"".concat(Q,"-second")},Ae)));return z&&(be=z(be,this.props)),be}}]),i}(P.a.Component);function M(o,t){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);t&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),i.push.apply(i,l)}return i}function L(o){for(var t=1;t0&&!ee||j===Y.a.RIGHT&&se>0&&ee?(G?se-=.5:se-=1,s.changeValue(se),m.preventDefault()):j===Y.a.LEFT&&seee/2||!Q&&A-U1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(R.a)())return null;var J=document.createElement("style");if((P=u.csp)===null||P===void 0?void 0:P.nonce){var y;J.nonce=(y=u.csp)===null||y===void 0?void 0:y.nonce}J.innerHTML=oe;var Y=ce(u),N=Y.firstChild;return u.prepend&&Y.prepend?Y.prepend(J):u.prepend&&N?Y.insertBefore(J,N):Y.appendChild(J),J}var D=new Map;function n(oe,P){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},J=ce(u);if(!D.has(J)){var y=ae("",u),Y=y.parentNode;D.set(J,Y),Y.removeChild(y)}var N=Array.from(D.get(J).children).find(function(h){return h.tagName==="STYLE"&&h[a]===P});if(N){var p,f;if(((p=u.csp)===null||p===void 0?void 0:p.nonce)&&N.nonce!==((f=u.csp)===null||f===void 0?void 0:f.nonce)){var d;N.nonce=(d=u.csp)===null||d===void 0?void 0:d.nonce}return N.innerHTML!==oe&&(N.innerHTML=oe),N}var T=ae(oe,u);return T[a]=P,T}},BdwD:function(V,v,e){"use strict";var R=e("+L6B"),a=e("2/Rp"),ce=e("0Owb"),ae=e("k1fw"),D=e("q1tI"),n=e.n(D),oe=e("FOrL"),P=e.n(oe),u=function(y){var Y=y.buttonProps,N=Y===void 0?{}:Y,p=y.styles,f=p===void 0?{}:p,d=y.customText,T=y.ButtonText,h=y.ButtonClick,M=y.Buttonclass,L=y.ButtonTwo;return n.a.createElement("section",{className:"tc animated fadeIn",style:Object(ae.a)(Object(ae.a)({},{color:"#999",margin:"200px auto"}),f)},n.a.createElement("img",{src:P.a}),n.a.createElement("p",{className:"mt20 font14"},d||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),T&&n.a.createElement(a.a,Object(ce.a)({className:M,onClick:h},N),T),L&&L)};v.a=u},Bq7L:function(V,v){V.exports="data:image/png;base64,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"},"Ct/S":function(V,v,e){V.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},FOrL:function(V,v,e){V.exports=e.p+"static/nodata.a6b3f948.png"},IBYe:function(V,v,e){"use strict";function R(a){return null}v.a=R},JAbv:function(V,v){V.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},Jky8:function(V,v,e){"use strict";var R=e("sRBo"),a=e("kaz8"),ce=e("5NDa"),ae=e("5rEg"),D=e("miYZ"),n=e("tsqr"),oe=e("9og8"),P=e("2qtc"),u=e("kLXV"),J=e("tJVT"),y=e("WmNS"),Y=e.n(y),N=e("q1tI"),p=e.n(N),f=e("9kvl"),d=e("6CvP"),T=e("1XHU"),h=e("1vsH"),M;(function(O){O[O.Professor=1]="Professor",O[O.AssistantProfessor=2]="AssistantProfessor",O[O.Student=3]="Student"})(M||(M={}));var L=function(F){var C=F.visible,g=F.user,E=F.onCancel,r=E===void 0?function(){}:E,o=Object(N.useState)(),t=Object(J.a)(o,2),i=t[0],l=t[1],s=Object(N.useState)([]),A=Object(J.a)(s,2),m=A[0],j=A[1],B=Object(N.useState)(!1),Q=Object(J.a)(B,2),G=Q[0],z=Q[1],U=Object(N.useState)(!1),ee=Object(J.a)(U,2),se=ee[0],Ae=ee[1],be=Object(N.useState)(),I=Object(J.a)(be,2),S=I[0],te=I[1];Object(N.useEffect)(function(){var _;if(g!=null&&(_=g.userInfo)!==null&&_!==void 0&&_.identity){var q;j([(g==null||((q=g.userInfo)===null||q===void 0)?void 0:q.identity)==="student"?3:1])}},[g]);var k=function(q,Ee){if(m.includes(M.Professor)){u.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:p.a.createElement("div",{className:"tc"},Ee||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){f.d.push("/classrooms/".concat(q,"/students"))}});return}f.d.push("/classrooms/".concat(q,"/students"))},x=function(){var _=Object(oe.a)(Y.a.mark(function q(){var Ee;return Y.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(i){he.next=3;break}return n.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),he.abrupt("return");case 3:return z(!0),he.next=6,Object(d.c)({invite_code:i,professor:m.includes(M.Professor)?1:null,assistant_professor:m.includes(M.AssistantProfessor)?1:null,student:m.includes(M.Student)?1:null});case 6:if(Ee=he.sent,z(!1),!((Ee==null?void 0:Ee.status)===-2)){he.next=22;break}if(me(),!(Ee.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){he.next=14;break}return Ae(!0),te(1),he.abrupt("return");case 14:if(!(Ee.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){he.next=18;break}return Ae(!0),te(2),he.abrupt("return");case 18:if(!(Ee.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){he.next=22;break}return Ae(!0),te(3),he.abrupt("return");case 22:if(!((Ee==null?void 0:Ee.status)===0)){he.next=27;break}return Object(h.cb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),me(),(Ee==null?void 0:Ee.course_id)&&k(Ee.course_id,Ee.message),he.abrupt("return");case 27:case"end":return he.stop()}},q)}));return function(){return _.apply(this,arguments)}}(),me=function(){var _=Object(oe.a)(Y.a.mark(function q(){return Y.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:r();case 1:case"end":return pe.stop()}},q)}));return function(){return _.apply(this,arguments)}}();return p.a.createElement(p.a.Fragment,null,p.a.createElement(u.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:C,confirmLoading:G,onOk:x,onCancel:me},p.a.createElement("div",{className:"tc"},p.a.createElement("div",null,p.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),p.a.createElement(ae.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:i,onChange:function(q){if(q.target.value.length>=7){n.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}l(q.target.value)}})),p.a.createElement("div",{className:"mt10 font14"},p.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),p.a.createElement(a.a.Group,{value:m,onChange:function(q){return j(q)}},p.a.createElement(a.a,{value:M.Professor,disabled:m.includes(2)||m.includes(3)},"\u6559\u5E08"),p.a.createElement(a.a,{value:M.AssistantProfessor,disabled:m.includes(1)},"\u52A9\u6559"),p.a.createElement(a.a,{value:M.Student,disabled:m.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),p.a.createElement(T.a,{visible:se,onCancel:function(){return Ae(!1)},occupationValue:S}))};v.a=Object(f.a)(function(O){var F=O.user;return{user:F}})(L)},KOXS:function(V,v,e){V.exports={flex_box_center:"flex_box_center___4BHX-",flex_space_between:"flex_space_between___fH2oM",flex_box_vertical_center:"flex_box_vertical_center___TgSS9",flex_box_center_end:"flex_box_center_end___1vKaD",flex_box_column:"flex_box_column___1kCgI",input:"input___2mV-b",dropdown:"dropdown___1QKW2",menu:"menu___37CBn",text:"text___159fF",b1:"b1___2uGyF",b2:"b2___2DXw1"}},LdHM:function(V,v,e){"use strict";e.d(v,"b",function(){return L}),e.d(v,"a",function(){return F});var R=e("1OyB"),a=e("vuIU"),ce=e("Ji7U"),ae=e("LK+K"),D=e("q1tI"),n=e("rePB"),oe=e("Ff2n"),P=e("ODXe"),u=e("4IlW"),J=e("bX4T"),y=e("YrtM"),Y=e("TSYQ"),N=e.n(Y),p=e("+nKL"),f=e("8OUc"),d=function(U,ee){var se=U.prefixCls,Ae=U.id,be=U.flattenOptions,I=U.childrenAsData,S=U.values,te=U.searchValue,k=U.multiple,x=U.defaultActiveFirstOption,me=U.height,_=U.itemHeight,q=U.notFoundContent,Ee=U.open,pe=U.menuItemSelectedIcon,he=U.virtual,Le=U.onSelect,Pe=U.onToggleOpen,He=U.onActiveValue,Xe=U.onScroll,Ue=U.onMouseEnter,Re="".concat(se,"-item"),Me=Object(y.a)(function(){return be},[Ee,be],function(re,$){return $[0]&&re[1]!==$[1]}),Ve=D.useRef(null),Ye=function($){$.preventDefault()},Je=function($){Ve.current&&Ve.current.scrollTo({index:$})},$e=function($){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=Me.length,b=0;b1&&arguments[1]!==void 0?arguments[1]:!1;return Object(g.a)(z).map(function(ee,se){if(!D.isValidElement(ee)||!ee.type)return null;var Ae=ee.type.isSelectOptGroup,be=ee.key,I=ee.props,S=I.children,te=Object(oe.a)(I,["children"]);return U||!Ae?E(ee):Object(C.a)(Object(C.a)({key:"__RC_SELECT_GRP__".concat(be===null?se:be,"__"),label:be},te),{},{options:r(S)})}).filter(function(ee){return ee})}var o=e("2Qr1"),t=e("qNPg"),i=e("U8pU"),l=e("Kwbf"),s=e("WKfj");function A(z){var U=z.mode,ee=z.options,se=z.children,Ae=z.backfill,be=z.allowClear,I=z.placeholder,S=z.getInputElement,te=z.showSearch,k=z.onSearch,x=z.defaultOpen,me=z.autoFocus,_=z.labelInValue,q=z.value,Ee=z.inputValue,pe=z.optionLabelProp,he=U==="multiple"||U==="tags",Le=te!==void 0?te:he||U==="combobox",Pe=ee||r(se);if(Object(l.a)(U!=="tags"||Pe.every(function(Re){return!Re.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),U==="tags"||U==="combobox"){var He=Pe.some(function(Re){return Re.options?Re.options.some(function(Me){return typeof("value"in Me?Me.value:Me.key)=="number"}):typeof("value"in Re?Re.value:Re.key)=="number"});Object(l.a)(!He,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(l.a)(U!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(l.a)(U==="combobox"||!Ae,"`backfill` only works with `combobox` mode."),Object(l.a)(U==="combobox"||!S,"`getInputElement` only work with `combobox` mode."),Object(l.b)(U!=="combobox"||!S||!be||!I,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),k&&!Le&&U!=="combobox"&&U!=="tags"&&Object(l.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(l.b)(!x||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),q!=null){var Xe=Object(s.d)(q);Object(l.a)(!_||Xe.every(function(Re){return Object(i.a)(Re)==="object"&&("key"in Re||"value"in Re)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(l.a)(!he||Array.isArray(q),"`value` should be array when `mode` is `multiple` or `tags`")}if(se){var Ue=null;Object(g.a)(se).some(function(Re){if(!D.isValidElement(Re)||!Re.type)return!1;var Me=Re.type;if(Me.isSelectOption)return!1;if(Me.isSelectOptGroup){var Ve=Object(g.a)(Re.props.children).every(function(Ye){return!D.isValidElement(Ye)||!Re.type||Ye.type.isSelectOption?!0:(Ue=Ye.type,!1)});return!Ve}return Ue=Me,!0}),Ue&&Object(l.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ue.displayName||Ue.name||Ue,"`.")),Object(l.a)(Ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var m=A,j=Object(t.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:r,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:m,fillOptionsWithMissingValue:o.a}),B=function(z){Object(ce.a)(ee,z);var U=Object(ae.a)(ee);function ee(){var se;return Object(R.a)(this,ee),se=U.apply(this,arguments),se.selectRef=D.createRef(),se.focus=function(){se.selectRef.current.focus()},se.blur=function(){se.selectRef.current.blur()},se}return Object(a.a)(ee,[{key:"render",value:function(){return D.createElement(j,Object.assign({ref:this.selectRef},this.props))}}]),ee}(D.Component);B.Option=L,B.OptGroup=F;var Q=B,G=v.c=Q},LicW:function(V,v,e){"use strict";var R=e("T2oS"),a=e("W9HT"),ce=e("5Dmo"),ae=e("3S7+"),D=e("q1tI"),n=e.n(D),oe=e("ZJlW"),P=e.n(oe),u=e("m3rI"),J=e("TSYQ"),y=e.n(J),Y=e("1vsH"),N=e("z4EP"),p=e.n(N),f=e("+GGh"),d=e.n(f),T=e("cFMs"),h=e.n(T),M=e("BdwD"),L=function(F){var C=F.className,g=F.dataSource,E=g===void 0?[]:g,r=F.col,o=r===void 0?4:r,t=F.right,i=F.bottom,l=i===void 0?23:i,s=F.precision,A=s===void 0?0:s,m=F.wrapWidth,j=m===void 0?1200:m,B=F.trackEventItems,Q=F.loading,G=Math.floor((j-(o-1)*t)/o);return n.a.createElement(a.a,{spinning:Q},n.a.createElement("div",{className:y()(P.a.list,C)},!!E.length&&E.map(function(z,U){var ee=z.name,se=z.id,Ae=z.identifier,be=z.featured,I=z.school_name,S=z.image_url,te=z.excellent;return n.a.createElement("div",{key:se,className:P.a.wrap,style:{width:G,marginRight:(1+U)%o===0?0:t+A,marginBottom:l}},n.a.createElement("a",{target:"_blank",href:"/paths/".concat(Ae),className:P.a.li,onClick:function(x){x.preventDefault(),B&&Object(Y.cb)([B]),Object(Y.S)("/paths/".concat(Ae))}},n.a.createElement("div",{className:P.a.img},n.a.createElement("img",{className:P.a.cover,src:"".concat(u.a.IMG_SERVER,"/").concat(S)}),be===1&&n.a.createElement("img",{className:P.a.sign,src:p.a}),be===2&&n.a.createElement("img",{className:P.a.sign,src:""}),be===3&&n.a.createElement("img",{className:P.a.sign,src:d.a}),be===4&&n.a.createElement("img",{className:P.a.sign,src:""}),be===5&&n.a.createElement("img",{className:P.a.sign,src:h.a})),n.a.createElement("div",{className:P.a.name},n.a.createElement(ae.a,{title:ee},n.a.createElement("span",{className:P.a.e},ee))),n.a.createElement(ae.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(I)},n.a.createElement("div",{className:P.a.unit},n.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),I)),n.a.createElement("div",{className:P.a.tags},n.a.createElement(ae.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},n.a.createElement("span",null,n.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),n.a.createElement("span",null,z.stages_count))),n.a.createElement(ae.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},n.a.createElement("span",null,n.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),n.a.createElement("span",null,z.members_count))),te&&n.a.createElement("div",{className:P.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!E.length&&n.a.createElement(M.a,null)))};v.a=L},MEgm:function(V,v){V.exports="data:image/png;base64,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"},NLgs:function(V,v,e){"use strict";e.d(v,"e",function(){return T}),e.d(v,"f",function(){return h}),e.d(v,"d",function(){return L}),e.d(v,"c",function(){return O}),e.d(v,"a",function(){return F}),e.d(v,"b",function(){return C});var R=e("miYZ"),a=e("tsqr"),ce=e("9og8"),ae=e("2qtc"),D=e("kLXV"),n=e("WmNS"),oe=e.n(n),P=e("q1tI"),u=e.n(P),J=e("9kvl"),y=e("xKgJ"),Y=e("1vsH"),N=e("RCxd"),p=e("yTi+"),f=e.n(p),d=e("m3rI"),T=function(E){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(h(E)&&M(r))},h=function(E){return Object(y.p)()?!0:(E({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},M=function(){var E,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=Object(J.c)()._store.getState(),t=o.user;return(E=t.userInfo)!==null&&E!==void 0&&E.profile_completed?!0:(D.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:r?"\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(){J.d.push("/account/profile/edit")}}),!1)},L=function(){var E,r=Object(J.c)()._store.getState(),o=r.user;return(E=o.userInfo)!==null&&E!==void 0&&E.professional_certification?!0:(D.a.confirm({title:"\u63D0\u793A",centered:!0,content:u.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(Y.S)("/account/certification")}}),!1)},O=function(){var E;if(Object(y.a)())return!0;var r=Object(J.c)()._store.getState(),o=r.user,t=r.globalSetting;return D.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc",style:{marginLeft:-38}},u.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),u.a.createElement("img",{src:d.a.IMG_SERVER+(t==null||((E=t.setting)===null||E===void 0)?void 0:E.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},F=function(E,r){var o;if(E)return!0;var t=Object(J.c)()._store.getState(),i=t.user,l=t.globalSetting;return D.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:u.a.createElement("div",null,u.a.createElement("p",null,r||"\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"),u.a.createElement("div",{style:{marginLeft:"110px"}},u.a.createElement("img",{src:d.a.IMG_SERVER+(l==null||((o=l.setting)===null||o===void 0)?void 0:o.authority_qrcode_url),width:200}),u.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(Y.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},C=function(E){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=Object(J.c)()._store.getState(),t=o.shixunsDetail.detail;return(t==null?void 0:t.public)===2||(t==null?void 0:t.public)===1||(t==null?void 0:t.shixun_status)===3?(D.a.info({centered:!0,icon:u.a.createElement(N.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc",style:{marginLeft:-38}},u.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},u.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(t==null?void 0:t.public)===2?"\u5DF2\u516C\u5F00":(t==null?void 0:t.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",r,"\u3002"),u.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),u.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:f.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(t==null?void 0:t.shixun_status)===2?(D.a.confirm({centered:!0,icon:u.a.createElement(N.a,null),title:"\u63D0\u793A",content:u.a.createElement("div",null,u.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",r,"\u3002"),u.a.createElement("br",null),u.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(){D.a.confirm({width:440,centered:!0,icon:u.a.createElement(N.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 l=Object(ce.a)(oe.a.mark(function A(){var m;return oe.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,E({type:"shixunsDetail/cancelRelease",payload:{id:t==null?void 0:t.identifier}});case 2:m=B.sent,m.status!==401&&(a.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),E({type:"shixunsDetail/getShixunsDetail",payload:{id:t==null?void 0:t.identifier}}),E({type:"practiceSetting/getCommonData",payload:{id:t==null?void 0:t.identifier}}));case 4:case"end":return B.stop()}},A)}));function s(){return l.apply(this,arguments)}return s}()})}}),!0):!1}},NQ7k:function(V,v,e){"use strict";e.r(v);var R=e("cWXX"),a=e("/ezw"),ce=e("DjyN"),ae=e("NUBc"),D=e("k1fw"),n=e("miYZ"),oe=e("tsqr"),P=e("9og8"),u=e("tJVT"),J=e("PpiC"),y=e("WmNS"),Y=e.n(y),N=e("q1tI"),p=e.n(N),f=e("Ty5D"),d=e("9kvl"),T=e("lhx+"),h=e.n(T),M=e("g9YV"),L=e("wCAj"),O=e("5Dmo"),F=e("3S7+"),C=e("2m4C"),g=e.n(C),E=e("xKgJ"),r=e("wd/R"),o=e.n(r),t=e("1vsH"),i=e("Nf5h"),l=function(G){var z=G.data,U=G.number,ee=G.params,se=G.setParams,Ae=G.getCourses,be=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",width:80,className:"pl20",render:function(S,te,k){return p.a.createElement("span",null,U+k+1)}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:140,ellipsis:!0,sorter:!0,sortOrder:ee.sort_by==="name"?ee.sort_direction==="desc"?"descend":"ascend":null,key:"name",render:function(S){return p.a.createElement(F.a,{title:S,placement:"bottomLeft"},p.a.createElement("span",{className:g.a.text},S))}},{title:"\u7BA1\u7406\u5458",dataIndex:"teacher",key:"teacher",width:64,ellipsis:!0,render:function(S){return p.a.createElement(F.a,{title:(S==null?void 0:S.real_name)||"--",placement:"bottomLeft"},p.a.createElement("span",null,(S==null?void 0:S.real_name)||"--"))}},{title:"\u534F\u4F5C\u8001\u5E08",dataIndex:"teacher_users",key:"teacher_users",width:138,ellipsis:!0,render:function(S){return p.a.createElement(F.a,{title:S.join("\u3001"),placement:"bottomLeft"},p.a.createElement("span",null,S.join("\u3001")))}},{title:"\u8BBF\u95EE\u6B21\u6570",dataIndex:"visits",width:75,key:"visits",render:function(S){return p.a.createElement("span",{className:"c-grey-666"},S)}},{title:"\u8BFE\u5802\u6210\u5458",dataIndex:"members_count",width:75,key:"members_count",render:function(S){return p.a.createElement("span",{className:"c-grey-666"},S)}},{title:"\u4F5C\u4E1A\u6570\u91CF",dataIndex:"homework_commons_count",width:75,key:"homework_commons_count",render:function(S){return p.a.createElement("span",{className:"c-grey-666"},S)}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",width:110,sorter:!0,sortOrder:ee.sort_by==="created_at"?ee.sort_direction==="desc"?"descend":"ascend":null,render:function(S){return p.a.createElement("span",{className:"c-grey-666"},o()(S).format("YYYY-MM-DD"))}},{title:"\u72B6\u6001",dataIndex:"is_end",key:"is_end",width:80,render:function(S){return S?"\u5DF2\u7ED3\u675F":"\u6B63\u5728\u8FDB\u884C"}},{title:"\u64CD\u4F5C",dataIndex:"name",key:"name",width:62,align:"right",render:function(S,te){return te.can_visited?p.a.createElement("span",{className:"current-primary",onClick:function(x){x.stopPropagation(),Object(t.S)(te.first_category_url)}},"\u8BE6\u60C5"):p.a.createElement(F.a,{title:Object(E.p)()?"\u975E\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE":"\u79C1\u6709\u8BFE\u5802\uFF0C\u8BF7\u767B\u5F55\u518D\u64CD\u4F5C"},p.a.createElement("span",{className:"c-grey-999"},"\u8BE6\u60C5"))}}];return p.a.createElement(p.a.Fragment,null,p.a.createElement(i.f,null,p.a.createElement(L.a,{style:{cursor:"pointer"},onRow:function(S){return{onClick:function(k){S.can_visited&&window.open("".concat(S==null?void 0:S.first_category_url),"_blank")}}},onChange:function(S,te,k){k.field&&(ee.sort_by=k.field),k.order||(ee.sort_direction="asc"),k.order==="ascend"&&(ee.sort_direction="asc"),k.order==="descend"&&(ee.sort_direction="desc"),k.order||(ee.sort_direction="asc"),se(ee),Ae(ee)},className:"bg-white",pagination:!1,dataSource:z,columns:be})))},s=l,A=e("Jky8"),m=e("NLgs"),j=function(G){var z,U,ee,se=G.user,Ae=G.userDetail,be=G.globalSetting,I=G.loading,S=G.dispatch,te=Object(J.a)(G,["user","userDetail","globalSetting","loading","dispatch"]),k=Object(f.h)(),x=Object(N.useState)({}),me=Object(u.a)(x,2),_=me[0],q=me[1],Ee=Object(N.useRef)(),pe=Object(N.useState)(0),he=Object(u.a)(pe,2),Le=he[0],Pe=he[1],He=Object(N.useState)([]),Xe=Object(u.a)(He,2),Ue=Xe[0],Re=Xe[1],Me=Object(N.useState)(),Ve=Object(u.a)(Me,2),Ye=Ve[0],Je=Ve[1],$e=Object(N.useState)(!1),Ge=Object(u.a)($e,2),at=Ge[0],c=Ge[1],K=Object(N.useState)(!1),H=Object(u.a)(K,2),ie=H[0],fe=H[1],re=Object(N.useState)([{label:p.a.createElement("span",{className:"icon-juxingfenbu font14"}),value:1},{label:p.a.createElement("span",{className:"icon-liebiaofenbu font14"}),value:2}]),$=Object(u.a)(re,2),Z=$[0],X=$[1],b=Object(N.useState)(parseInt(localStorage.getItem("ClassShowType"))||1),w=Object(u.a)(b,2),W=w[0],ue=w[1],ne=Object(N.useState)(!0),ve=Object(u.a)(ne,2),_e=ve[0],Oe=ve[1];Object(N.useEffect)(function(){var le;Ee.current=(le=k.pathname.split("/"))===null||le===void 0?void 0:le[2];var Ce={category:"",status:"",page:1,per_page:15,sort_by:"updated_at",sort_direction:"desc",username:Ee.current};q(Ce),ye(Ce)},[k.pathname]),Object(N.useEffect)(function(){var le;Je(((le=se.userInfo)===null||le===void 0?void 0:le.login)===Ee.current)},[(z=se.userInfo)===null||z===void 0?void 0:z.login,Ee.current]);var ye=function(){var le=Object(P.a)(Y.a.mark(function Ce(je){var ze;return Y.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,S({type:"userDetail/getCourses",payload:je});case 2:ze=rt.sent,ze&&(Pe(ze.count||0),Re(ze.courses||[]));case 4:case"end":return rt.stop()}},Ce)}));return function(je){return le.apply(this,arguments)}}(),de=function(Ce){console.log(Ce,"category"),_.category=Ce,_.page=1,q(_),ye(_)},We=function(Ce){_.status=Ce,_.page=1,q(_),ye(_)},Se=function(Ce){_.search=Ce,_.page=1,q(_),ye(_)},we=function(Ce){console.log(Ce,"sort_direction"),_.sort_direction=Ce,q(_),ye(_)},Ke=function(Ce){_.sort_by=Ce,_.sort_direction="desc",q(_),ye(_)},ke=function(Ce,je){_.page=Ce,_.per_page=je,q(_),ye(_)},De=function(){return _.category?_.category==="manage"?"\u53D1\u5E03":"\u5B66\u4E60":"\u8BFE\u5802"},ge=function(){return _.sort_by==="updated_at"?"\u6700\u65B0\u52A8\u6001":_.sort_by==="created_at"?"\u6700\u65B0\u521B\u5EFA":_.sort_by==="name"?"\u540D\u79F0\u6392\u5E8F":""},Be;(function(le){le.Projects="projects",le.Shixuns="shixuns",le.Classrooms="classrooms"})(Be||(Be={}));var Ne=function(Ce){var je;if(!Object(m.e)(S))return;if(Ce===Be.Projects&&!((je=se.userInfo)!==null&&je!==void 0&&je.email)){oe.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Ce===Be.Classrooms&&fe(!0)},Te=[{id:"",name:"\u5168\u90E8"},{id:"manage",name:"".concat(Ye?"\u6211":"TA","\u7BA1\u7406\u7684")},{id:"study",name:"".concat(Ye?"\u6211":"TA","\u5B66\u4E60\u7684")}],xe=[{id:"",name:"\u5168\u90E8"},{id:"processing",name:"\u6B63\u5728\u8FDB\u884C"},{id:"end",name:"\u5DF2\u7ED3\u675F"}];return console.log(Object(E.t)(),2222),p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:h.a.wrap},p.a.createElement(i.g,{value:_.category,onChange:de,tabBarExtraContent:p.a.createElement(i.e,{style:{width:303},placeholder:"\u8BF7\u641C\u7D22\u8BFE\u5802\u540D\u79F0",value:_.search,onChange:Se}),dataSource:Te}),Ye&&p.a.createElement(i.h,{title:"\u72B6\u6001",className:"mt25",value:_.status,onChange:We,dataSource:xe,titleWidth:28}),p.a.createElement("div",{className:h.a.midWrap},p.a.createElement(i.k,{sortValue:_.sort_direction,dropValue:_.sort_by,onSort:we,onDrop:Ke}),p.a.createElement("div",{className:h.a.type},p.a.createElement("i",{className:W===1?"iconfont icon-fenbu ".concat(h.a.cursorPointer," ").concat(h.a.color0152d9):"iconfont icon-fenbu ".concat(h.a.cursorPointer),onClick:function(){ue(1),localStorage.setItem("ClassShowType","1")}}),p.a.createElement("span",{className:h.a.orderDesc},p.a.createElement("i",{className:W===2?"iconfont icon-fenbu-2 ".concat(h.a.cursorPointer," ").concat(h.a.color0152d9," "):"iconfont icon-fenbu-2 ".concat(h.a.cursorPointer),onClick:function(){ue(2),localStorage.setItem("ClassShowType","2")}}))),((U=se.userInfo)===null||U===void 0?void 0:U.identity)==="student"&&!Object(E.v)()?p.a.createElement(i.d,{style:{marginLeft:"auto"},onClick:function(){return Ne(Be.Classrooms)}},"\u52A0\u5165\u6559\u5B66\u8BFE\u5802"):!(be!=null&&(ee=be.setting)!==null&&ee!==void 0&&ee.hide_course)&&p.a.createElement(i.d,{style:{marginLeft:"auto"},onClick:function(){return d.d.push("/classrooms/new?username=".concat(Ee.current))}},"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802")),p.a.createElement(a.a,{loading:I["userDetail/getCourses"],active:!0,paragraph:{rows:5}},W==1&&p.a.createElement(i.b,{dataSource:Ue==null?void 0:Ue.map(function(le){var Ce,je;return Object(D.a)(Object(D.a)({},le),{},{is_accessible:le.can_visited,course_members_count:le.members_count,tasks_count:le.homework_commons_count,avatar_url:(Ce=le.teacher)===null||Ce===void 0?void 0:Ce.avatar_url,creator:(je=le.teacher)===null||je===void 0?void 0:je.real_name})}),right:23,col:3,wrapWidth:887,loading:!1}),W!=1&&p.a.createElement("div",{className:"mt10",style:{minHeight:400}},p.a.createElement(s,{number:(_.page-1)*_.per_page,data:Ue,params:_,setParams:q,getCourses:ye})),Le>0&&p.a.createElement("div",{className:h.a.countWrap},p.a.createElement(ae.a,{showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:Le,onChange:function(Ce,je){ke(Ce,je)},pageSize:_.per_page,current:_.page})))),p.a.createElement(A.a,{visible:ie,onCancel:function(){return fe(!1)}}))},B=v.default=Object(d.a)(function(Q){var G=Q.user,z=Q.userDetail,U=Q.loading,ee=Q.globalSetting;return{user:G,userDetail:z,globalSetting:ee,loading:U.effects}})(j)},NQs2:function(V,v,e){V.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(V,v,e){"use strict";e.d(v,"a",function(){return P}),e.d(v,"h",function(){return f}),e.d(v,"l",function(){return M}),e.d(v,"e",function(){return E}),e.d(v,"i",function(){return i}),e.d(v,"j",function(){return x}),e.d(v,"c",function(){return me.a}),e.d(v,"b",function(){return he}),e.d(v,"g",function(){return Xe}),e.d(v,"f",function(){return Ve}),e.d(v,"k",function(){return ie}),e.d(v,"d",function(){return Z});var R=e("q1tI"),a=e.n(R),ce=e("NQs2"),ae=e.n(ce),D=e("ygoZ"),n=e.n(D),oe=function(b){var w=b.dataSource,W=w===void 0?[]:w,ue=b.img,ne=b.imgWidth,ve=ne===void 0?346:ne,_e=b.title,Oe=b.sunTitle,ye=b.bannerExtraContent;return a.a.createElement("div",{className:ae.a.banner},a.a.createElement("div",{className:ae.a.content},a.a.createElement("aside",null,a.a.createElement("p",null,a.a.createElement("b",null,_e),a.a.createElement("span",null,Oe)),W.length>0&&a.a.createElement("div",{className:ae.a.btns},W.map(function(de,We){return a.a.createElement("div",{key:We,onClick:de.click},de.name,de.sign?a.a.createElement("img",{src:n.a,width:39}):null)})),ye),a.a.createElement("img",{style:{marginTop:33,marginRight:38},src:ue,width:ve})))},P=oe,u=e("tJVT"),J=e("6nfa"),y=e.n(J),Y=e("TSYQ"),N=e.n(Y),p=function(b){var w=b.dataSource,W=w===void 0?[]:w,ue=b.value,ne=b.onChange,ve=b.className,_e=b.title,Oe=b.titleWidth,ye=Oe===void 0?41:Oe,de=b.style,We=de===void 0?{}:de,Se=b.fontColor,we=Se===void 0?"#6A7283":Se,Ke=Object(R.useState)(0),ke=Object(u.a)(Ke,2),De=ke[0],ge=ke[1],Be=Object(R.useState)(!1),Ne=Object(u.a)(Be,2),Te=Ne[0],xe=Ne[1],le=Object(R.useRef)(null);return Object(R.useEffect)(function(){if(W.length!==0){var Ce;(le==null||((Ce=le.current)===null||Ce===void 0)?void 0:Ce.clientHeight)>92?ge(1):ge(0)}W.length===0&&ge(0)},[W]),a.a.createElement("div",{className:N()(y.a.row,ve),style:We},a.a.createElement("div",{style:{width:ye,marginTop:Te?12:4},className:y.a.title},_e),a.a.createElement("div",{className:Te?"".concat(y.a.tagsWrap," ").concat(y.a.tagsBorderWrap):y.a.tagsWrap},a.a.createElement("div",{className:y.a.bar,style:De>0?{height:De===1?92:"auto",overflow:De===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},a.a.createElement("div",{className:y.a.name,ref:le},W==null?void 0:W.map(function(Ce){return a.a.createElement("span",{onClick:function(){return ne(Ce.id)},key:Ce.id,title:Ce.name,style:{color:we},className:ue===Ce.id?y.a.active:""},Ce.name)}))),!!De&&a.a.createElement(R.Fragment,null,De===1?a.a.createElement("div",{onClick:function(){var je;ge(2),(le==null||((je=le.current)===null||je===void 0)?void 0:je.clientHeight)>205?xe(!0):xe(!1)},className:y.a.action},"\u5C55\u5F00",a.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):a.a.createElement("div",{onClick:function(){ge(1),xe(!1)},className:y.a.action},"\u6536\u8D77",a.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},f=p,d=e("cz0n"),T=e.n(d),h=function(b){var w=b.dataSource,W=w===void 0?[]:w,ue=b.value,ne=b.onChange,ve=b.className;return a.a.createElement("div",{className:N()(T.a.tabs,ve)},W.map(function(_e){return a.a.createElement("span",{onClick:function(){return ne(_e.id)},className:ue===_e.id?T.a.active:"",key:_e.id},_e.name)}))},M=h,L=e("5NDa"),O=e("5rEg"),F=e("KOXS"),C=e.n(F),g=function(b){var w,W=b.dataSource,ue=W===void 0?[]:W,ne=b.value,ve=b.onChange,_e=b.className,Oe=b.style,ye=Oe===void 0?{}:Oe,de=b.placeholder,We=Object(R.useState)(""),Se=Object(u.a)(We,2),we=Se[0],Ke=Se[1],ke=Object(R.useState)(""),De=Object(u.a)(ke,2),ge=De[0],Be=De[1];Object(R.useEffect)(function(){var xe;(xe=JSON.stringify(ne))!==null&&xe!==void 0&&xe.includes("{")?(Ke(ne.id),Be(ne.value)):Be(ne)},[ne]);var Ne=function(){ve(ge||null,we||"")},Te=function(le){if(le===we)return;Ke(le),ve(ge,le)};return a.a.createElement("div",{className:N()(C.a.input,_e),style:ye},!!ue.length&&a.a.createElement("div",{className:C.a.dropdown},a.a.createElement("div",{className:C.a.text},(w=ue.find(function(xe){return xe.id===we}))===null||w===void 0?void 0:w.name,a.a.createElement("i",{className:"iconfont icon-zhankai4"}),a.a.createElement("b",{className:C.a.b1}),a.a.createElement("b",{className:C.a.b2})),a.a.createElement("div",{className:C.a.menu},ue.map(function(xe,le){return a.a.createElement("div",{key:le,onClick:function(){return Te(xe.id)}},xe.name)}))),a.a.createElement(O.a,{onPressEnter:Ne,value:ge,onChange:function(le){return Be(le.target.value||"")},bordered:!1,placeholder:de}),a.a.createElement("i",{onClick:Ne,className:"iconfont icon-sousuo9 font14 pl10 current"}))},E=g,r=e("f9pc"),o=e.n(r),t=function(b){var w=b.value,W=b.onChange,ue=b.className,ne=b.total,ve=b.pageSize,_e=b.style,Oe=_e===void 0?{}:_e,ye=w<2,de=w>=Math.ceil(ne/ve);return ne<=ve?a.a.createElement(a.a.Fragment,null):a.a.createElement("div",{className:N()(o.a.quickPager,ue),style:Oe},a.a.createElement("div",{onClick:function(){ye||W(w-1,"prev")},className:ye?o.a.disabled:""},"\u4E0A\u4E00\u9875"),a.a.createElement("div",{onClick:function(){de||W(w+1,"next")},className:de?o.a.disabled:""},"\u4E0B\u4E00\u9875"))},i=t,l=e("T2oS"),s=e("W9HT"),A=e("pC0b"),m=e("GzdX"),j=e("5Dmo"),B=e("3S7+"),Q=e("Oe0F"),G=e.n(Q),z=e("m3rI"),U=e("1vsH"),ee=e("JAbv"),se=e.n(ee),Ae=e("Bq7L"),be=e.n(Ae),I=e("MEgm"),S=e.n(I),te=e("BdwD"),k=function(b){var w=b.className,W=b.dataSource,ue=W===void 0?[]:W,ne=b.col,ve=ne===void 0?4:ne,_e=b.right,Oe=b.bottom,ye=Oe===void 0?23:Oe,de=b.precision,We=de===void 0?0:de,Se=b.wrapWidth,we=Se===void 0?1200:Se,Ke=b.trackEventItems,ke=b.loading,De=Math.floor((we-(ve-1)*_e)/ve);return a.a.createElement(s.a,{spinning:ke},a.a.createElement("div",{className:N()(G.a.list,w)},!!ue.length&&ue.map(function(ge,Be){var Ne=ge.name,Te=ge.id,xe=ge.identifier,le=ge.power,Ce=ge.cover_image_id,je=ge.pic;return a.a.createElement("div",{className:G.a.wrap,key:Te,style:{width:De,marginRight:(1+Be)%ve===0?0:_e+We,marginBottom:ye}},a.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(xe,"/challenges"),className:G.a.li,onClick:function(pt){pt.preventDefault(),Ke&&Object(U.cb)([Ke]),le&&Object(U.S)("/shixuns/".concat(xe,"/challenges"))}},a.a.createElement("div",{className:G.a.img},a.a.createElement("img",{className:G.a.cover,src:Ce?"".concat(z.a.API_SERVER,"/api/attachments/").concat(Ce):"".concat(z.a.IMG_SERVER,"/").concat(je)}),ge.is_jupyter&&a.a.createElement("img",{className:G.a.sign,src:se.a}),ge.is_jupyter_lab&&a.a.createElement("img",{className:G.a.sign,src:be.a}),ge.is_unity_3d&&a.a.createElement("img",{className:G.a.sign,src:S.a})),a.a.createElement("div",{className:G.a.name},a.a.createElement(B.a,{title:Ne||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},a.a.createElement("span",{className:G.a.e},Ne||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),a.a.createElement("div",{className:G.a.tags},a.a.createElement(B.a,{placement:"bottom",title:"\u5173\u5361\u6570"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),a.a.createElement("span",null,ge.challenges_count))),!!ge.myshixuns_count&&a.a.createElement(B.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),a.a.createElement("span",null,ge.myshixuns_count))),a.a.createElement(B.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},a.a.createElement("span",null,a.a.createElement("span",null,ge.level))),a.a.createElement("div",{className:G.a.rate},a.a.createElement(m.a,{allowHalf:!0,disabled:!0,defaultValue:ge.score_info}),a.a.createElement("span",null,"\xA0",ge.score_info?"".concat(ge.score_info,"\u5206"):"5\u5206")))),!le&&a.a.createElement("div",{className:G.a.lockWrap},a.a.createElement("img",{src:"".concat(z.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),a.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ue.length&&a.a.createElement(te.a,null)))},x=k,me=e("LicW"),_=e("iL++"),q=e.n(_),Ee=e("xiVL"),pe=function(b){var w=b.className,W=b.dataSource,ue=W===void 0?[]:W,ne=b.col,ve=ne===void 0?4:ne,_e=b.right,Oe=b.bottom,ye=Oe===void 0?23:Oe,de=b.precision,We=de===void 0?0:de,Se=b.wrapWidth,we=Se===void 0?1200:Se,Ke=b.trackEventItems,ke=b.loading,De=Math.floor((we-(ve-1)*_e)/ve);return a.a.createElement(s.a,{spinning:ke},a.a.createElement("div",{className:N()(q.a.list,w)},!!ue.length&&ue.map(function(ge,Be){var Ne=ge.subject_identifier,Te=ge.id,xe=ge.identifier,le=ge.power,Ce=ge.is_public!=0&&ge.is_public;return a.a.createElement("div",{className:q.a.wrap,key:Te,style:{width:De,marginRight:(1+Be)%ve===0?0:_e+We,marginBottom:ye}},a.a.createElement("a",{className:q.a.li,onClick:function(ze){ze.preventDefault()}},a.a.createElement("div",{className:q.a.top},a.a.createElement(B.a,{title:ge.name},a.a.createElement("div",{className:q.a.name},ge.name)),a.a.createElement("img",{className:q.a.img,src:z.a.IMG_SERVER+"/images/"+ge.avatar_url}),a.a.createElement("div",{className:q.a.text},ge.creator),Ne&&a.a.createElement("div",{className:q.a.btns},a.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),a.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ce&&a.a.createElement("div",{className:q.a.sign},"\u516C\u5F00")),a.a.createElement("div",{className:q.a.bottom},ge.visits>0&&a.a.createElement(B.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-liulanyan"}),a.a.createElement("span",null,ge.visits))),ge.course_members_count>0&&a.a.createElement(B.a,{title:"\u6210\u5458",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-chengyuan"}),ge.course_members_count)),ge.tasks_count>0&&a.a.createElement(B.a,{title:"\u4F5C\u4E1A",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-zuoye"}),ge.tasks_count)),ge.is_end?a.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):a.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),a.a.createElement("div",{className:q.a.lockWrap},ge.is_accessible?a.a.createElement(a.a.Fragment,null,Ne&&a.a.createElement("div",{onClick:function(){return Object(U.S)("/paths/".concat(Ne))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),a.a.createElement("div",{onClick:function(ze){Ke&&Object(U.cb)([Ke]),Object(U.S)(ge.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):a.a.createElement(a.a.Fragment,null,a.a.createElement("img",{src:"".concat(z.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),a.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!ue.length&&a.a.createElement(te.a,null)))},he=pe,Le=e("f0W+"),Pe=e.n(Le),He=function(b){var w=b.dataSource,W=w===void 0?[]:w,ue=b.value,ne=b.onChange,ve=b.className,_e=b.style,Oe=_e===void 0?{}:_e,ye=b.tabBarExtraContent;return a.a.createElement("div",{className:N()(Pe.a.tabs,ve),style:Oe},a.a.createElement("div",{className:Pe.a.tabsWrap},W.map(function(de,We){return a.a.createElement("div",{onClick:function(){return ne(de.id)},className:ue===de.id?Pe.a.active:"",key:We},de.name)})),a.a.createElement("div",{className:Pe.a.tabBar},ye))},Xe=He,Ue=e("9JIy"),Re=e.n(Ue),Me=function(b){var w=b.className,W=b.style,ue=W===void 0?{}:W,ne=b.children;return a.a.createElement("div",{className:N()(Re.a.table,w),style:ue},ne)},Ve=Me,Ye=e("qVdP"),Je=e("jsC+"),$e=e("lUTK"),Ge=e("BvKs"),at=e("8WcF"),c=e.n(at),K=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],H=function(b){var w,W=b.sortValue,ue=b.dropValue,ne=b.className,ve=b.onSort,_e=b.onDrop,Oe=b.dataSource,ye=Oe===void 0?K:Oe;return a.a.createElement("div",{className:N()(c.a.orderWrap,ne)},a.a.createElement(Je.a,{overlay:a.a.createElement(Ge.a,null,ye.map(function(de,We){return a.a.createElement(Ge.a.Item,{key:We,onClick:function(){return _e(de.id)}},de.name)}))},a.a.createElement("span",{className:c.a.orderTextWrap},(w=ye.find(function(de){return ue===de.id}))===null||w===void 0?void 0:w.name)),a.a.createElement("span",{className:c.a.orderIconWrap},a.a.createElement("span",{className:c.a.orderAsc},a.a.createElement("i",{className:W==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(c.a.cursorPointer," ").concat(c.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(c.a.cursorPointer),onClick:function(){return ve(W==="asc"?"desc":"asc")}})),a.a.createElement("span",{className:c.a.orderDesc},a.a.createElement("i",{className:W==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(c.a.cursorPointer," ").concat(c.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(c.a.cursorPointer),onClick:function(){return ve(W==="asc"?"desc":"asc")}}))))},ie=H,fe=e("siWv"),re=e.n(fe),$=function(b){var w=b.className,W=b.style,ue=b.children,ne=b.onClick;return a.a.createElement("div",{onClick:ne,className:N()(re.a.btn,w),style:W},ue)},Z=$},NvD2:function(V,v,e){"use strict";e.d(v,"a",function(){return n});var R=e("Kwbf");function a(oe,P){var u=new Set;return oe.forEach(function(J){P.has(J)||u.add(J)}),u}function ce(oe){var P=oe||{},u=P.disabled,J=P.disableCheckbox,y=P.checkable;return!!(u||J)||y===!1}function ae(oe,P,u,J){for(var y=new Set(oe),Y=new Set,N=0;N<=u;N+=1){var p=P.get(N)||new Set;p.forEach(function(h){var M=h.key,L=h.node,O=h.children,F=O===void 0?[]:O;y.has(M)&&!J(L)&&F.filter(function(C){return!J(C.node)}).forEach(function(C){y.add(C.key)})})}for(var f=new Set,d=u;d>=0;d-=1){var T=P.get(d)||new Set;T.forEach(function(h){var M=h.parent,L=h.node;if(J(L)||!h.parent||f.has(h.parent.key))return;if(J(h.parent.node)){f.add(M.key);return}var O=!0,F=!1;(M.children||[]).filter(function(C){return!J(C.node)}).forEach(function(C){var g=C.key,E=y.has(g);O&&!E&&(O=!1),!F&&(E||Y.has(g))&&(F=!0)}),O&&y.add(M.key),F&&Y.add(M.key),f.add(M.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(a(Y,y))}}function D(oe,P,u,J,y){for(var Y=new Set(oe),N=new Set(P),p=0;p<=J;p+=1){var f=u.get(p)||new Set;f.forEach(function(M){var L=M.key,O=M.node,F=M.children,C=F===void 0?[]:F;!Y.has(L)&&!N.has(L)&&!y(O)&&C.filter(function(g){return!y(g.node)}).forEach(function(g){Y.delete(g.key)})})}N=new Set;for(var d=new Set,T=J;T>=0;T-=1){var h=u.get(T)||new Set;h.forEach(function(M){var L=M.parent,O=M.node;if(y(O)||!M.parent||d.has(M.parent.key))return;if(y(M.parent.node)){d.add(L.key);return}var F=!0,C=!1;(L.children||[]).filter(function(g){return!y(g.node)}).forEach(function(g){var E=g.key,r=Y.has(E);F&&!r&&(F=!1),!C&&(r||N.has(E))&&(C=!0)}),F||Y.delete(L.key),C&&N.add(L.key),d.add(L.key)})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(a(N,Y))}}function n(oe,P,u,J){var y=[],Y;J?Y=J:Y=ce;var N=new Set(oe.filter(function(T){var h=!!u[T];return h||y.push(T),h})),p=new Map,f=0;Object.keys(u).forEach(function(T){var h=u[T],M=h.level,L=p.get(M);L||(L=new Set,p.set(M,L)),L.add(h),f=Math.max(f,M)}),Object(R.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(T){return"'".concat(T,"'")}).join(", ")));var d;return P===!0?d=ae(N,p,f,Y):d=D(N,P.halfCheckedKeys,p,f,Y),d}},OZM5:function(V,v,e){"use strict";e.d(v,"b",function(){return J}),e.d(v,"a",function(){return y}),e.d(v,"k",function(){return Y}),e.d(v,"h",function(){return N}),e.d(v,"i",function(){return p}),e.d(v,"g",function(){return f}),e.d(v,"c",function(){return d}),e.d(v,"d",function(){return T}),e.d(v,"j",function(){return L}),e.d(v,"e",function(){return O}),e.d(v,"f",function(){return F});var R=e("KQm4"),a=e("U8pU"),ce=e("Ff2n"),ae=e("q1tI"),D=e.n(ae),n=e("Kwbf"),oe=e("WaYH"),P=.25,u=2;function J(C,g){var E=C.slice(),r=E.indexOf(g);return r>=0&&E.splice(r,1),E}function y(C,g){var E=C.slice();return E.indexOf(g)===-1&&E.push(g),E}function Y(C){return C.split("-")}function N(C,g){return"".concat(C,"-").concat(g)}function p(C){return C&&C.type&&C.type.isTreeNode}function f(C,g){var E=[C],r=g[C];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(i){var l=i.key,s=i.children;E.push(l),o(s)})}return o(r.children),E}function d(C,g){var E=C.clientY,r=g.selectHandle.getBoundingClientRect(),o=r.top,t=r.bottom,i=r.height,l=Math.max(i*P,u);return E<=o+l?-1:E>=t-l?1:0}function T(C,g){if(!C)return;var E=g.multiple;return E?C.slice():C.length?[C[0]]:C}var h=function(g){return g};function M(C,g){if(!C)return[];var E=g||{},r=E.processProps,o=r===void 0?h:r,t=Array.isArray(C)?C:[C];return t.map(function(i){var l=i.children,s=Object(ce.a)(i,["children"]),A=M(l,g);return D.a.createElement(oe.a,Object.assign({},o(s)),A)})}function L(C){if(!C)return null;var g;if(Array.isArray(C))g={checkedKeys:C,halfCheckedKeys:void 0};else if(Object(a.a)(C)==="object")g={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return g}function O(C,g){var E=new Set;function r(o){if(E.has(o))return;var t=g[o];if(!t)return;E.add(o);var i=t.parent,l=t.node;if(l.disabled)return;i&&r(i.key)}return(C||[]).forEach(function(o){r(o)}),Object(R.a)(E)}function F(C){var g={};return Object.keys(C).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(g[E]=C[E])}),g}},Oe0F:function(V,v,e){V.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"}},"SA+Z":function(V,v,e){var R=e("wTVA"),a=e("EbDI"),ce=e("ZhPi"),ae=e("wkBT");function D(n){return R(n)||a(n)||ce(n)||ae()}V.exports=D,V.exports.__esModule=!0,V.exports.default=V.exports},WaYH:function(V,v,e){"use strict";var R=e("rePB"),a=e("Ff2n"),ce=e("VTBJ"),ae=e("1OyB"),D=e("vuIU"),n=e("JX7q"),oe=e("Ji7U"),P=e("LK+K"),u=e("q1tI"),J=e("TSYQ"),y=e.n(J),Y=e("sboe"),N=e("OZM5"),p=function(g){var E=g.prefixCls,r=g.level,o=g.isStart,t=g.isEnd;if(!r)return null;for(var i="".concat(E,"-indent-unit"),l=[],s=0;s=0||s.relatedTarget.className.indexOf("".concat(B,"-next"))>=0))return;o.setState({goInputText:""}),j(o.getValidValue())},o.go=function(s){var A=o.state.goInputText;if(A==="")return;(s.keyCode===p.ENTER||s.type==="click")&&(o.setState({goInputText:""}),o.props.quickGo(o.getValidValue()))},o}return Object(M.a)(r,[{key:"getValidValue",value:function(){var t=this.state,i=t.goInputText,l=t.current;return!i||isNaN(i)?l:Number(i)}},{key:"getPageSizeOptions",value:function(){var t=this.props,i=t.pageSize,l=t.pageSizeOptions;return l.some(function(s){return s.toString()===i.toString()})?l:l.concat([i.toString()]).sort(function(s,A){var m=isNaN(Number(s))?0:Number(s),j=isNaN(Number(A))?0:Number(A);return m-j})}},{key:"render",value:function(){var t=this,i=this.props,l=i.pageSize,s=i.locale,A=i.rootPrefixCls,m=i.changeSize,j=i.quickGo,B=i.goButton,Q=i.selectComponentClass,G=i.buildOptionText,z=i.selectPrefixCls,U=i.disabled,ee=this.state.goInputText,se="".concat(A,"-options"),Ae=Q,be=null,I=null,S=null;if(!m&&!j)return null;var te=this.getPageSizeOptions();if(m&&Ae){var k=te.map(function(x,me){return u.a.createElement(Ae.Option,{key:me,value:x.toString()},(G||t.buildOptionText)(x))});be=u.a.createElement(Ae,{disabled:U,prefixCls:z,showSearch:!1,className:"".concat(se,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(l||te[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},k)}return j&&(B&&(S=typeof B=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:U,className:"".concat(se,"-quick-jumper-button")},s.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},B)),I=u.a.createElement("div",{className:"".concat(se,"-quick-jumper")},s.jump_to,u.a.createElement("input",{disabled:U,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),s.page,S)),u.a.createElement("li",{className:"".concat(se)},be,I)}}]),r}(u.a.Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var d=f,T=e("N2Kk");function h(){}function D(g){return typeof g=="number"&&isFinite(g)&&Math.floor(g)===g}function L(g,E,r){return r}function O(g,E,r){var o=typeof g=="undefined"?E.pageSize:g;return Math.floor((r.total-1)/o)+1}var F=function(g){Object(n.a)(r,g);var E=Object(oe.a)(r);function r(o){var t;Object(ae.a)(this,r),t=E.call(this,o),t.getJumpPrevPage=function(){return Math.max(1,t.state.current-(t.props.showLessItems?3:5))},t.getJumpNextPage=function(){return Math.min(O(void 0,t.state,t.props),t.state.current+(t.props.showLessItems?3:5))},t.getItemIcon=function(m,j){var B=t.props.prefixCls,Q=m||u.a.createElement("button",{type:"button","aria-label":j,className:"".concat(B,"-item-link")});return typeof m=="function"&&(Q=u.a.createElement(m,Object(ce.a)({},t.props))),Q},t.savePaginationNode=function(m){t.paginationNode=m},t.isValid=function(m){return D(m)&&m!==t.state.current},t.shouldDisplayQuickJumper=function(){var m=t.props,j=m.showQuickJumper,B=m.pageSize,Q=m.total;return Q<=B?!1:j},t.handleKeyDown=function(m){(m.keyCode===p.ARROW_UP||m.keyCode===p.ARROW_DOWN)&&m.preventDefault()},t.handleKeyUp=function(m){var j=t.getValidValue(m),B=t.state.currentInputValue;j!==B&&t.setState({currentInputValue:j}),m.keyCode===p.ENTER?t.handleChange(j):m.keyCode===p.ARROW_UP?t.handleChange(j-1):m.keyCode===p.ARROW_DOWN&&t.handleChange(j+1)},t.changePageSize=function(m){var j=t.state.current,B=O(m,t.state,t.props);j=j>B?B:j,B===0&&(j=t.state.current),typeof m=="number"&&("pageSize"in t.props||t.setState({pageSize:m}),"current"in t.props||t.setState({current:j,currentInputValue:j})),t.props.onShowSizeChange(j,m),"onChange"in t.props&&t.props.onChange&&t.props.onChange(j,m)},t.handleChange=function(m){var j=t.props.disabled,B=m;if(t.isValid(B)&&!j){var Q=O(void 0,t.state,t.props);B>Q?B=Q:B<1&&(B=1),"current"in t.props||t.setState({current:B,currentInputValue:B});var G=t.state.pageSize;return t.props.onChange(B,G),B}return t.state.current},t.prev=function(){t.hasPrev()&&t.handleChange(t.state.current-1)},t.next=function(){t.hasNext()&&t.handleChange(t.state.current+1)},t.jumpPrev=function(){t.handleChange(t.getJumpPrevPage())},t.jumpNext=function(){t.handleChange(t.getJumpNextPage())},t.hasPrev=function(){return t.state.current>1},t.hasNext=function(){return t.state.current2?B-2:0),G=2;G=l?A=l:A=Number(i),A}},{key:"getShowSizeChanger",value:function(){var t=this.props,i=t.showSizeChanger,l=t.total,s=t.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:l>s}},{key:"renderPrev",value:function(t){var i=this.props,l=i.prevIcon,s=i.itemRender,A=s(t,"prev",this.getItemIcon(l,"prev page")),m=!this.hasPrev();return Object(P.isValidElement)(A)?Object(P.cloneElement)(A,{disabled:m}):A}},{key:"renderNext",value:function(t){var i=this.props,l=i.nextIcon,s=i.itemRender,A=s(t,"next",this.getItemIcon(l,"next page")),m=!this.hasNext();return Object(P.isValidElement)(A)?Object(P.cloneElement)(A,{disabled:m}):A}},{key:"render",value:function(){var t=this,i=this.props,l=i.prefixCls,s=i.className,A=i.style,m=i.disabled,j=i.hideOnSinglePage,B=i.total,Q=i.locale,G=i.showQuickJumper,z=i.showLessItems,U=i.showTitle,ee=i.showTotal,se=i.simple,Ae=i.itemRender,be=i.showPrevNextJumpers,I=i.jumpPrevIcon,S=i.jumpNextIcon,te=i.selectComponentClass,k=i.selectPrefixCls,x=i.pageSizeOptions,me=this.state,_=me.current,q=me.pageSize,Ee=me.currentInputValue;if(j===!0&&B<=q)return null;var pe=O(void 0,this.state,this.props),he=[],Le=null,Pe=null,He=null,Xe=null,Ue=null,Re=G&&G.goButton,De=z?1:2,Ve=_-1>0?_-1:0,Ye=_+1=De*2&&_!==1+2&&(he[0]=Object(P.cloneElement)(he[0],{className:"".concat(l,"-item-after-jump-prev")}),he.unshift(Le)),pe-_>=De*2&&_!==pe-2&&(he[he.length-1]=Object(P.cloneElement)(he[he.length-1],{className:"".concat(l,"-item-before-jump-next")}),he.push(Pe)),H!==1&&he.unshift(He),ie!==pe&&he.push(Xe)}var $=null;ee&&($=u.a.createElement("li",{className:"".concat(l,"-total-text")},ee(B,[B===0?0:(_-1)*q+1,_*q>B?B:_*q])));var Z=!this.hasPrev()||!pe,X=!this.hasNext()||!pe;return u.a.createElement("ul",Object(R.a)({className:y()(l,s,Object(a.a)({},"".concat(l,"-disabled"),m)),style:A,unselectable:"unselectable",ref:this.savePaginationNode},Je),$,u.a.createElement("li",{title:U?Q.prev_page:null,onClick:this.prev,tabIndex:Z?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(l,"-prev"),Object(a.a)({},"".concat(l,"-disabled"),Z)),"aria-disabled":Z},this.renderPrev(Ve)),he,u.a.createElement("li",{title:U?Q.next_page:null,onClick:this.next,tabIndex:X?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(l,"-next"),Object(a.a)({},"".concat(l,"-disabled"),X)),"aria-disabled":X},this.renderNext(Ye)),u.a.createElement(d,{disabled:m,locale:Q,rootPrefixCls:l,selectComponentClass:te,selectPrefixCls:k,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:_,pageSize:q,pageSizeOptions:x,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Re}))}}],[{key:"getDerivedStateFromProps",value:function(t,i){var l={};if("current"in t&&(l.current=t.current,t.current!==i.current&&(l.currentInputValue=l.current)),"pageSize"in t&&t.pageSize!==i.pageSize){var s=i.current,A=O(t.pageSize,i,t);s=s>A?A:s,"current"in t||(l.current=s,l.currentInputValue=s),l.pageSize=t.pageSize}return l}}]),r}(u.a.Component);F.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:h,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:h,locale:T.a,style:{},itemRender:L,totalBoundaryShowSizeChanger:50};var C=F},"6RRn":function(V,v,e){"use strict";var R=e("wCXF"),a=e("n6Qo");e.d(v,"b",function(){return a.a});var ce=e("IBYe"),ae=e("6eGT"),M=e("hW8S");e.d(v,"a",function(){return M.a}),v.c=R.b},"6eGT":function(V,v,e){"use strict";function R(a){return null}v.a=R},"6nfa":function(V,v,e){V.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"}},"815F":function(V,v,e){"use strict";e.d(v,"e",function(){return oe}),e.d(v,"c",function(){return u}),e.d(v,"d",function(){return J}),e.d(v,"a",function(){return Y}),e.d(v,"f",function(){return N}),e.d(v,"b",function(){return p});var R=e("KQm4"),a=e("VTBJ"),ce=e("Ff2n"),ae=e("Zm9Q"),M=e("Kwbf"),n=e("OZM5");function oe(f,d){return f!=null?f:d}function P(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=new Map;function T(h){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(L){var O=L.key,F=L.children;Object(M.a)(O!=null,"Tree node must have a certain key: [".concat(D).concat(O,"]"));var C=String(O);Object(M.a)(!d.has(C)||O===null||O===void 0,"Same 'key' exist in the Tree: ".concat(C)),d.set(C,!0),T(F,"".concat(D).concat(C," > "))})}T(f)}function u(f){function d(T){var h=Object(ae.a)(T);return h.map(function(D){if(!Object(n.i)(D))return Object(M.a)(!D,"Tree/TreeNode can only accept TreeNode as children."),null;var L=D.key,O=D.props,F=O.children,C=Object(ce.a)(O,["children"]),g=Object(a.a)({key:L},C),E=d(F);return E.length&&(g.children=E),g}).filter(function(D){return D})}return d(f)}function J(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],T=new Set(d===!0?[]:d),h=[];function D(L){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return L.map(function(F,C){var g=Object(n.h)(O?O.pos:"0",C),E=oe(F.key,g),r=Object(a.a)(Object(a.a)({},F),{},{parent:O,pos:g,children:null,data:F,isStart:[].concat(Object(R.a)(O?O.isStart:[]),[C===0]),isEnd:[].concat(Object(R.a)(O?O.isEnd:[]),[C===L.length-1])});return h.push(r),d===!0||T.has(E)?r.children=D(F.children||[],r):r.children=[],r})}return D(f),h}function y(f,d,T){var h;T?typeof T=="string"?h=function(O){return O[T]}:typeof T=="function"&&(h=function(O){return T(O)}):h=function(O,F){return oe(O.key,F)};function D(L,O,F){var C=L?L.children:f,g=L?Object(n.h)(F.pos,O):"0";if(L){var E=h(L,g),r={node:L,index:O,pos:g,key:E,parentPos:F.node?F.pos:null,level:F.level+1};d(r)}C&&C.forEach(function(o,t){D(o,t,{node:L,pos:g,level:F?F.level+1:-1})})}D(null)}function Y(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=d.initWrapper,h=d.processEntity,D=d.onProcessFinished,L=arguments.length>2?arguments[2]:void 0,O={},F={},C={posEntities:O,keyEntities:F};return T&&(C=T(C)||C),y(f,function(g){var E=g.node,r=g.index,o=g.pos,t=g.key,i=g.parentPos,l=g.level,s={node:E,index:r,key:t,pos:o,level:l},A=oe(t,o);O[o]=s,F[A]=s,s.parent=O[i],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),h&&h(s,C)},L),D&&D(C),C}function N(f,d){var T=d.expandedKeys,h=d.selectedKeys,D=d.loadedKeys,L=d.loadingKeys,O=d.checkedKeys,F=d.halfCheckedKeys,C=d.dragOverNodeKey,g=d.dropPosition,E=d.keyEntities,r=E[f],o={eventKey:f,expanded:T.indexOf(f)!==-1,selected:h.indexOf(f)!==-1,loaded:D.indexOf(f)!==-1,loading:L.indexOf(f)!==-1,checked:O.indexOf(f)!==-1,halfChecked:F.indexOf(f)!==-1,pos:String(r?r.pos:""),dragOver:C===f&&g===0,dragOverGapTop:C===f&&g===-1,dragOverGapBottom:C===f&&g===1};return o}function p(f){var d=f.data,T=f.expanded,h=f.selected,D=f.checked,L=f.loaded,O=f.loading,F=f.halfChecked,C=f.dragOver,g=f.dragOverGapTop,E=f.dragOverGapBottom,r=f.pos,o=f.active,t=Object(a.a)(Object(a.a)({},d),{},{expanded:T,selected:h,checked:D,loaded:L,loading:O,halfChecked:F,dragOver:C,dragOverGapTop:g,dragOverGapBottom:E,pos:r,active:o});return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(M.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),f}}),t}},"8WcF":function(V,v,e){V.exports={flex_box_center:"flex_box_center___2fahw",flex_space_between:"flex_space_between___1h4HM",flex_box_vertical_center:"flex_box_vertical_center___2kxeE",flex_box_center_end:"flex_box_center_end___OjPB4",flex_box_column:"flex_box_column___3zY1h",orderWrap:"orderWrap___VQuq1",orderIconWrap:"orderIconWrap___18q7W",orderAsc:"orderAsc___3WBGg",orderDesc:"orderDesc____ipxK",active:"active___3EMfI",cursorPointer:"cursorPointer___3og_L",orderTextWrap:"orderTextWrap___XQlmv"}},"8mKB":function(V,v,e){"use strict";var R=e("rePB"),a=e("1OyB"),ce=e("vuIU"),ae=e("Ji7U"),M=e("md7G"),n=e("foSv"),oe=e("q1tI"),P=e.n(oe),u=e("m+aA"),J=e("TSYQ"),y=e.n(J),Y=e("4IlW");function N(o){var t=o.pageXOffset,i="scrollLeft";if(typeof t!="number"){var l=o.document;t=l.documentElement[i],typeof t!="number"&&(t=l.body[i])}return t}function p(o){var t,i,l=o.ownerDocument,s=l.body,A=l&&l.documentElement,m=o.getBoundingClientRect();return t=m.left,i=m.top,t-=A.clientLeft||s.clientLeft||0,i-=A.clientTop||s.clientTop||0,{left:t,top:i}}function f(o){var t=p(o),i=o.ownerDocument,l=i.defaultView||i.parentWindow;return t.left+=N(l),t.left}function d(o){var t=T();return function(){var l=Object(n.a)(o),s;if(t){var A=Object(n.a)(this).constructor;s=Reflect.construct(l,arguments,A)}else s=l.apply(this,arguments);return Object(M.a)(this,s)}}function T(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}var h=function(o){Object(ae.a)(i,o);var t=d(i);function i(){var l;return Object(a.a)(this,i),l=t.apply(this,arguments),l.onHover=function(s){var A=l.props,m=A.onHover,j=A.index;m(s,j)},l.onClick=function(s){var A=l.props,m=A.onClick,j=A.index;m(s,j)},l.onKeyDown=function(s){var A=l.props,m=A.onClick,j=A.index;s.keyCode===13&&m(s,j)},l}return Object(ce.a)(i,[{key:"getClassName",value:function(){var s=this.props,A=s.prefixCls,m=s.index,j=s.value,B=s.allowHalf,Q=s.focused,G=m+1,z=A;return j===0&&m===0&&Q?z+=" ".concat(A,"-focused"):B&&j+.5>=G&&jU?"true":"false","aria-posinset":U+1,"aria-setsize":ee,tabIndex:B?-1:0},P.a.createElement("div",{className:"".concat(Q,"-first")},Ae),P.a.createElement("div",{className:"".concat(Q,"-second")},Ae)));return z&&(be=z(be,this.props)),be}}]),i}(P.a.Component);function D(o,t){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);t&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),i.push.apply(i,l)}return i}function L(o){for(var t=1;t0&&!ee||j===Y.a.RIGHT&&se>0&&ee?(G?se-=.5:se-=1,s.changeValue(se),m.preventDefault()):j===Y.a.LEFT&&seee/2||!Q&&A-U1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(R.a)())return null;var J=document.createElement("style");if((P=u.csp)===null||P===void 0?void 0:P.nonce){var y;J.nonce=(y=u.csp)===null||y===void 0?void 0:y.nonce}J.innerHTML=oe;var Y=ce(u),N=Y.firstChild;return u.prepend&&Y.prepend?Y.prepend(J):u.prepend&&N?Y.insertBefore(J,N):Y.appendChild(J),J}var M=new Map;function n(oe,P){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},J=ce(u);if(!M.has(J)){var y=ae("",u),Y=y.parentNode;M.set(J,Y),Y.removeChild(y)}var N=Array.from(M.get(J).children).find(function(h){return h.tagName==="STYLE"&&h[a]===P});if(N){var p,f;if(((p=u.csp)===null||p===void 0?void 0:p.nonce)&&N.nonce!==((f=u.csp)===null||f===void 0?void 0:f.nonce)){var d;N.nonce=(d=u.csp)===null||d===void 0?void 0:d.nonce}return N.innerHTML!==oe&&(N.innerHTML=oe),N}var T=ae(oe,u);return T[a]=P,T}},BdwD:function(V,v,e){"use strict";var R=e("+L6B"),a=e("2/Rp"),ce=e("0Owb"),ae=e("k1fw"),M=e("q1tI"),n=e.n(M),oe=e("FOrL"),P=e.n(oe),u=function(y){var Y=y.buttonProps,N=Y===void 0?{}:Y,p=y.styles,f=p===void 0?{}:p,d=y.customText,T=y.ButtonText,h=y.ButtonClick,D=y.Buttonclass,L=y.ButtonTwo;return n.a.createElement("section",{className:"tc animated fadeIn",style:Object(ae.a)(Object(ae.a)({},{color:"#999",margin:"200px auto"}),f)},n.a.createElement("img",{src:P.a}),n.a.createElement("p",{className:"mt20 font14"},d||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),T&&n.a.createElement(a.a,Object(ce.a)({className:D,onClick:h},N),T),L&&L)};v.a=u},Bq7L:function(V,v){V.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},"Ct/S":function(V,v,e){V.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},FOrL:function(V,v,e){V.exports=e.p+"static/nodata.a6b3f948.png"},IBYe:function(V,v,e){"use strict";function R(a){return null}v.a=R},JAbv:function(V,v){V.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},Jky8:function(V,v,e){"use strict";var R=e("sRBo"),a=e("kaz8"),ce=e("5NDa"),ae=e("5rEg"),M=e("miYZ"),n=e("tsqr"),oe=e("9og8"),P=e("2qtc"),u=e("kLXV"),J=e("tJVT"),y=e("WmNS"),Y=e.n(y),N=e("q1tI"),p=e.n(N),f=e("9kvl"),d=e("6CvP"),T=e("1XHU"),h=e("1vsH"),D;(function(O){O[O.Professor=1]="Professor",O[O.AssistantProfessor=2]="AssistantProfessor",O[O.Student=3]="Student"})(D||(D={}));var L=function(F){var C=F.visible,g=F.user,E=F.onCancel,r=E===void 0?function(){}:E,o=Object(N.useState)(),t=Object(J.a)(o,2),i=t[0],l=t[1],s=Object(N.useState)([]),A=Object(J.a)(s,2),m=A[0],j=A[1],B=Object(N.useState)(!1),Q=Object(J.a)(B,2),G=Q[0],z=Q[1],U=Object(N.useState)(!1),ee=Object(J.a)(U,2),se=ee[0],Ae=ee[1],be=Object(N.useState)(),I=Object(J.a)(be,2),S=I[0],te=I[1];Object(N.useEffect)(function(){var _;if(g!=null&&(_=g.userInfo)!==null&&_!==void 0&&_.identity){var q;j([(g==null||((q=g.userInfo)===null||q===void 0)?void 0:q.identity)==="student"?3:1])}},[g]);var k=function(q,Ee){if(m.includes(D.Professor)){u.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:p.a.createElement("div",{className:"tc"},Ee||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){f.d.push("/classrooms/".concat(q,"/students"))}});return}f.d.push("/classrooms/".concat(q,"/students"))},x=function(){var _=Object(oe.a)(Y.a.mark(function q(){var Ee;return Y.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(i){he.next=3;break}return n.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),he.abrupt("return");case 3:return z(!0),he.next=6,Object(d.c)({invite_code:i,professor:m.includes(D.Professor)?1:null,assistant_professor:m.includes(D.AssistantProfessor)?1:null,student:m.includes(D.Student)?1:null});case 6:if(Ee=he.sent,z(!1),!((Ee==null?void 0:Ee.status)===-2)){he.next=22;break}if(me(),!(Ee.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){he.next=14;break}return Ae(!0),te(1),he.abrupt("return");case 14:if(!(Ee.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){he.next=18;break}return Ae(!0),te(2),he.abrupt("return");case 18:if(!(Ee.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){he.next=22;break}return Ae(!0),te(3),he.abrupt("return");case 22:if(!((Ee==null?void 0:Ee.status)===0)){he.next=27;break}return Object(h.cb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),me(),(Ee==null?void 0:Ee.course_id)&&k(Ee.course_id,Ee.message),he.abrupt("return");case 27:case"end":return he.stop()}},q)}));return function(){return _.apply(this,arguments)}}(),me=function(){var _=Object(oe.a)(Y.a.mark(function q(){return Y.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:r();case 1:case"end":return pe.stop()}},q)}));return function(){return _.apply(this,arguments)}}();return p.a.createElement(p.a.Fragment,null,p.a.createElement(u.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:C,confirmLoading:G,onOk:x,onCancel:me},p.a.createElement("div",{className:"tc"},p.a.createElement("div",null,p.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),p.a.createElement(ae.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:i,onChange:function(q){if(q.target.value.length>=7){n.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}l(q.target.value)}})),p.a.createElement("div",{className:"mt10 font14"},p.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),p.a.createElement(a.a.Group,{value:m,onChange:function(q){return j(q)}},p.a.createElement(a.a,{value:D.Professor,disabled:m.includes(2)||m.includes(3)},"\u6559\u5E08"),p.a.createElement(a.a,{value:D.AssistantProfessor,disabled:m.includes(1)},"\u52A9\u6559"),p.a.createElement(a.a,{value:D.Student,disabled:m.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),p.a.createElement(T.a,{visible:se,onCancel:function(){return Ae(!1)},occupationValue:S}))};v.a=Object(f.a)(function(O){var F=O.user;return{user:F}})(L)},KOXS:function(V,v,e){V.exports={flex_box_center:"flex_box_center___4BHX-",flex_space_between:"flex_space_between___fH2oM",flex_box_vertical_center:"flex_box_vertical_center___TgSS9",flex_box_center_end:"flex_box_center_end___1vKaD",flex_box_column:"flex_box_column___1kCgI",input:"input___2mV-b",dropdown:"dropdown___1QKW2",menu:"menu___37CBn",text:"text___159fF",b1:"b1___2uGyF",b2:"b2___2DXw1"}},LdHM:function(V,v,e){"use strict";e.d(v,"b",function(){return L}),e.d(v,"a",function(){return F});var R=e("1OyB"),a=e("vuIU"),ce=e("Ji7U"),ae=e("LK+K"),M=e("q1tI"),n=e("rePB"),oe=e("Ff2n"),P=e("ODXe"),u=e("4IlW"),J=e("bX4T"),y=e("YrtM"),Y=e("TSYQ"),N=e.n(Y),p=e("+nKL"),f=e("8OUc"),d=function(U,ee){var se=U.prefixCls,Ae=U.id,be=U.flattenOptions,I=U.childrenAsData,S=U.values,te=U.searchValue,k=U.multiple,x=U.defaultActiveFirstOption,me=U.height,_=U.itemHeight,q=U.notFoundContent,Ee=U.open,pe=U.menuItemSelectedIcon,he=U.virtual,Le=U.onSelect,Pe=U.onToggleOpen,He=U.onActiveValue,Xe=U.onScroll,Ue=U.onMouseEnter,Re="".concat(se,"-item"),De=Object(y.a)(function(){return be},[Ee,be],function(re,$){return $[0]&&re[1]!==$[1]}),Ve=M.useRef(null),Ye=function($){$.preventDefault()},Je=function($){Ve.current&&Ve.current.scrollTo({index:$})},$e=function($){for(var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,X=De.length,b=0;b1&&arguments[1]!==void 0?arguments[1]:!1;return Object(g.a)(z).map(function(ee,se){if(!M.isValidElement(ee)||!ee.type)return null;var Ae=ee.type.isSelectOptGroup,be=ee.key,I=ee.props,S=I.children,te=Object(oe.a)(I,["children"]);return U||!Ae?E(ee):Object(C.a)(Object(C.a)({key:"__RC_SELECT_GRP__".concat(be===null?se:be,"__"),label:be},te),{},{options:r(S)})}).filter(function(ee){return ee})}var o=e("2Qr1"),t=e("qNPg"),i=e("U8pU"),l=e("Kwbf"),s=e("WKfj");function A(z){var U=z.mode,ee=z.options,se=z.children,Ae=z.backfill,be=z.allowClear,I=z.placeholder,S=z.getInputElement,te=z.showSearch,k=z.onSearch,x=z.defaultOpen,me=z.autoFocus,_=z.labelInValue,q=z.value,Ee=z.inputValue,pe=z.optionLabelProp,he=U==="multiple"||U==="tags",Le=te!==void 0?te:he||U==="combobox",Pe=ee||r(se);if(Object(l.a)(U!=="tags"||Pe.every(function(Re){return!Re.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),U==="tags"||U==="combobox"){var He=Pe.some(function(Re){return Re.options?Re.options.some(function(De){return typeof("value"in De?De.value:De.key)=="number"}):typeof("value"in Re?Re.value:Re.key)=="number"});Object(l.a)(!He,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(l.a)(U!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(l.a)(U==="combobox"||!Ae,"`backfill` only works with `combobox` mode."),Object(l.a)(U==="combobox"||!S,"`getInputElement` only work with `combobox` mode."),Object(l.b)(U!=="combobox"||!S||!be||!I,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),k&&!Le&&U!=="combobox"&&U!=="tags"&&Object(l.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(l.b)(!x||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),q!=null){var Xe=Object(s.d)(q);Object(l.a)(!_||Xe.every(function(Re){return Object(i.a)(Re)==="object"&&("key"in Re||"value"in Re)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(l.a)(!he||Array.isArray(q),"`value` should be array when `mode` is `multiple` or `tags`")}if(se){var Ue=null;Object(g.a)(se).some(function(Re){if(!M.isValidElement(Re)||!Re.type)return!1;var De=Re.type;if(De.isSelectOption)return!1;if(De.isSelectOptGroup){var Ve=Object(g.a)(Re.props.children).every(function(Ye){return!M.isValidElement(Ye)||!Re.type||Ye.type.isSelectOption?!0:(Ue=Ye.type,!1)});return!Ve}return Ue=De,!0}),Ue&&Object(l.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ue.displayName||Ue.name||Ue,"`.")),Object(l.a)(Ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var m=A,j=Object(t.a)({prefixCls:"rc-select",components:{optionList:h},convertChildrenToData:r,flattenOptions:o.d,getLabeledValue:o.e,filterOptions:o.b,isValueDisabled:o.g,findValueOption:o.c,warningProps:m,fillOptionsWithMissingValue:o.a}),B=function(z){Object(ce.a)(ee,z);var U=Object(ae.a)(ee);function ee(){var se;return Object(R.a)(this,ee),se=U.apply(this,arguments),se.selectRef=M.createRef(),se.focus=function(){se.selectRef.current.focus()},se.blur=function(){se.selectRef.current.blur()},se}return Object(a.a)(ee,[{key:"render",value:function(){return M.createElement(j,Object.assign({ref:this.selectRef},this.props))}}]),ee}(M.Component);B.Option=L,B.OptGroup=F;var Q=B,G=v.c=Q},LicW:function(V,v,e){"use strict";var R=e("T2oS"),a=e("W9HT"),ce=e("5Dmo"),ae=e("3S7+"),M=e("q1tI"),n=e.n(M),oe=e("ZJlW"),P=e.n(oe),u=e("m3rI"),J=e("TSYQ"),y=e.n(J),Y=e("1vsH"),N=e("z4EP"),p=e.n(N),f=e("+GGh"),d=e.n(f),T=e("cFMs"),h=e.n(T),D=e("BdwD"),L=function(F){var C=F.className,g=F.dataSource,E=g===void 0?[]:g,r=F.col,o=r===void 0?4:r,t=F.right,i=F.bottom,l=i===void 0?23:i,s=F.precision,A=s===void 0?0:s,m=F.wrapWidth,j=m===void 0?1200:m,B=F.trackEventItems,Q=F.loading,G=Math.floor((j-(o-1)*t)/o);return n.a.createElement(a.a,{spinning:Q},n.a.createElement("div",{className:y()(P.a.list,C)},!!E.length&&E.map(function(z,U){var ee=z.name,se=z.id,Ae=z.identifier,be=z.featured,I=z.school_name,S=z.image_url,te=z.excellent;return n.a.createElement("div",{key:se,className:P.a.wrap,style:{width:G,marginRight:(1+U)%o===0?0:t+A,marginBottom:l}},n.a.createElement("a",{target:"_blank",href:"/paths/".concat(Ae),className:P.a.li,onClick:function(x){x.preventDefault(),B&&Object(Y.cb)([B]),Object(Y.S)("/paths/".concat(Ae))}},n.a.createElement("div",{className:P.a.img},n.a.createElement("img",{className:P.a.cover,src:"".concat(u.a.IMG_SERVER,"/").concat(S)}),be===1&&n.a.createElement("img",{className:P.a.sign,src:p.a}),be===2&&n.a.createElement("img",{className:P.a.sign,src:""}),be===3&&n.a.createElement("img",{className:P.a.sign,src:d.a}),be===4&&n.a.createElement("img",{className:P.a.sign,src:""}),be===5&&n.a.createElement("img",{className:P.a.sign,src:h.a})),n.a.createElement("div",{className:P.a.name},n.a.createElement(ae.a,{title:ee},n.a.createElement("span",{className:P.a.e},ee))),n.a.createElement(ae.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(I)},n.a.createElement("div",{className:P.a.unit},n.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),I)),n.a.createElement("div",{className:P.a.tags},n.a.createElement(ae.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},n.a.createElement("span",null,n.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),n.a.createElement("span",null,z.stages_count))),n.a.createElement(ae.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},n.a.createElement("span",null,n.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),n.a.createElement("span",null,z.members_count))),te&&n.a.createElement("div",{className:P.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!E.length&&n.a.createElement(D.a,null)))};v.a=L},MEgm:function(V,v){V.exports="data:image/png;base64,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"},NLgs:function(V,v,e){"use strict";e.d(v,"e",function(){return T}),e.d(v,"f",function(){return h}),e.d(v,"d",function(){return L}),e.d(v,"c",function(){return O}),e.d(v,"a",function(){return F}),e.d(v,"b",function(){return C});var R=e("miYZ"),a=e("tsqr"),ce=e("9og8"),ae=e("2qtc"),M=e("kLXV"),n=e("WmNS"),oe=e.n(n),P=e("q1tI"),u=e.n(P),J=e("9kvl"),y=e("xKgJ"),Y=e("1vsH"),N=e("RCxd"),p=e("yTi+"),f=e.n(p),d=e("m3rI"),T=function(E){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(h(E)&&D(r))},h=function(E){return Object(y.p)()?!0:(E({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},D=function(){var E,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=Object(J.c)()._store.getState(),t=o.user;return(E=t.userInfo)!==null&&E!==void 0&&E.profile_completed?!0:(M.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:r?"\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(){J.d.push("/account/profile/edit")}}),!1)},L=function(){var E,r=Object(J.c)()._store.getState(),o=r.user;return(E=o.userInfo)!==null&&E!==void 0&&E.professional_certification?!0:(M.a.confirm({title:"\u63D0\u793A",centered:!0,content:u.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(Y.S)("/account/certification")}}),!1)},O=function(){var E;if(Object(y.a)())return!0;var r=Object(J.c)()._store.getState(),o=r.user,t=r.globalSetting;return M.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc",style:{marginLeft:-38}},u.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),u.a.createElement("img",{src:d.a.IMG_SERVER+(t==null||((E=t.setting)===null||E===void 0)?void 0:E.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},F=function(E,r){var o;if(E)return!0;var t=Object(J.c)()._store.getState(),i=t.user,l=t.globalSetting;return M.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:u.a.createElement("div",null,u.a.createElement("p",null,r||"\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"),u.a.createElement("div",{style:{marginLeft:"110px"}},u.a.createElement("img",{src:d.a.IMG_SERVER+(l==null||((o=l.setting)===null||o===void 0)?void 0:o.authority_qrcode_url),width:200}),u.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(Y.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},C=function(E){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=Object(J.c)()._store.getState(),t=o.shixunsDetail.detail;return(t==null?void 0:t.public)===2||(t==null?void 0:t.public)===1||(t==null?void 0:t.shixun_status)===3?(M.a.info({centered:!0,icon:u.a.createElement(N.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc",style:{marginLeft:-38}},u.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},u.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(t==null?void 0:t.public)===2?"\u5DF2\u516C\u5F00":(t==null?void 0:t.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",r,"\u3002"),u.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),u.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:f.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(t==null?void 0:t.shixun_status)===2?(M.a.confirm({centered:!0,icon:u.a.createElement(N.a,null),title:"\u63D0\u793A",content:u.a.createElement("div",null,u.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",r,"\u3002"),u.a.createElement("br",null),u.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(){M.a.confirm({width:440,centered:!0,icon:u.a.createElement(N.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 l=Object(ce.a)(oe.a.mark(function A(){var m;return oe.a.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,E({type:"shixunsDetail/cancelRelease",payload:{id:t==null?void 0:t.identifier}});case 2:m=B.sent,m.status!==401&&(a.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),E({type:"shixunsDetail/getShixunsDetail",payload:{id:t==null?void 0:t.identifier}}),E({type:"practiceSetting/getCommonData",payload:{id:t==null?void 0:t.identifier}}));case 4:case"end":return B.stop()}},A)}));function s(){return l.apply(this,arguments)}return s}()})}}),!0):!1}},NQ7k:function(V,v,e){"use strict";e.r(v);var R=e("cWXX"),a=e("/ezw"),ce=e("DjyN"),ae=e("NUBc"),M=e("k1fw"),n=e("miYZ"),oe=e("tsqr"),P=e("9og8"),u=e("tJVT"),J=e("PpiC"),y=e("WmNS"),Y=e.n(y),N=e("q1tI"),p=e.n(N),f=e("Ty5D"),d=e("9kvl"),T=e("lhx+"),h=e.n(T),D=e("g9YV"),L=e("wCAj"),O=e("5Dmo"),F=e("3S7+"),C=e("2m4C"),g=e.n(C),E=e("xKgJ"),r=e("wd/R"),o=e.n(r),t=e("1vsH"),i=e("Nf5h"),l=function(G){var z=G.data,U=G.number,ee=G.params,se=G.setParams,Ae=G.getCourses,be=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",width:80,className:"pl20",render:function(S,te,k){return p.a.createElement("span",null,U+k+1)}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:140,ellipsis:!0,sorter:!0,sortOrder:ee.sort_by==="name"?ee.sort_direction==="desc"?"descend":"ascend":null,key:"name",render:function(S){return p.a.createElement(F.a,{title:S,placement:"bottomLeft"},p.a.createElement("span",{className:g.a.text},S))}},{title:"\u7BA1\u7406\u5458",dataIndex:"teacher",key:"teacher",width:64,ellipsis:!0,render:function(S){return p.a.createElement(F.a,{title:(S==null?void 0:S.real_name)||"--",placement:"bottomLeft"},p.a.createElement("span",null,(S==null?void 0:S.real_name)||"--"))}},{title:"\u534F\u4F5C\u8001\u5E08",dataIndex:"teacher_users",key:"teacher_users",width:138,ellipsis:!0,render:function(S){return p.a.createElement(F.a,{title:S.join("\u3001"),placement:"bottomLeft"},p.a.createElement("span",null,S.join("\u3001")))}},{title:"\u8BBF\u95EE\u6B21\u6570",dataIndex:"visits",width:75,key:"visits",render:function(S){return p.a.createElement("span",{className:"c-grey-666"},S)}},{title:"\u8BFE\u5802\u6210\u5458",dataIndex:"members_count",width:75,key:"members_count",render:function(S){return p.a.createElement("span",{className:"c-grey-666"},S)}},{title:"\u4F5C\u4E1A\u6570\u91CF",dataIndex:"homework_commons_count",width:75,key:"homework_commons_count",render:function(S){return p.a.createElement("span",{className:"c-grey-666"},S)}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",width:110,sorter:!0,sortOrder:ee.sort_by==="created_at"?ee.sort_direction==="desc"?"descend":"ascend":null,render:function(S){return p.a.createElement("span",{className:"c-grey-666"},o()(S).format("YYYY-MM-DD"))}},{title:"\u72B6\u6001",dataIndex:"is_end",key:"is_end",width:80,render:function(S){return S?"\u5DF2\u7ED3\u675F":"\u6B63\u5728\u8FDB\u884C"}},{title:"\u64CD\u4F5C",dataIndex:"name",key:"name",width:62,align:"right",render:function(S,te){return te.can_visited?p.a.createElement("span",{className:"current-primary",onClick:function(x){x.stopPropagation(),Object(t.S)(te.first_category_url)}},"\u8BE6\u60C5"):p.a.createElement(F.a,{title:Object(E.p)()?"\u975E\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE":"\u79C1\u6709\u8BFE\u5802\uFF0C\u8BF7\u767B\u5F55\u518D\u64CD\u4F5C"},p.a.createElement("span",{className:"c-grey-999"},"\u8BE6\u60C5"))}}];return p.a.createElement(p.a.Fragment,null,p.a.createElement(i.f,null,p.a.createElement(L.a,{style:{cursor:"pointer"},onRow:function(S){return{onClick:function(k){S.can_visited&&window.open("".concat(S==null?void 0:S.first_category_url),"_blank")}}},onChange:function(S,te,k){k.field&&(ee.sort_by=k.field),k.order||(ee.sort_direction="asc"),k.order==="ascend"&&(ee.sort_direction="asc"),k.order==="descend"&&(ee.sort_direction="desc"),k.order||(ee.sort_direction="asc"),se(ee),Ae(ee)},className:"bg-white",pagination:!1,dataSource:z,columns:be})))},s=l,A=e("Jky8"),m=e("NLgs"),j=function(G){var z,U,ee,se=G.user,Ae=G.userDetail,be=G.globalSetting,I=G.loading,S=G.dispatch,te=Object(J.a)(G,["user","userDetail","globalSetting","loading","dispatch"]),k=Object(f.h)(),x=Object(N.useState)({}),me=Object(u.a)(x,2),_=me[0],q=me[1],Ee=Object(N.useRef)(),pe=Object(N.useState)(0),he=Object(u.a)(pe,2),Le=he[0],Pe=he[1],He=Object(N.useState)([]),Xe=Object(u.a)(He,2),Ue=Xe[0],Re=Xe[1],De=Object(N.useState)(),Ve=Object(u.a)(De,2),Ye=Ve[0],Je=Ve[1],$e=Object(N.useState)(!1),Ge=Object(u.a)($e,2),at=Ge[0],c=Ge[1],K=Object(N.useState)(!1),H=Object(u.a)(K,2),ie=H[0],fe=H[1],re=Object(N.useState)([{label:p.a.createElement("span",{className:"icon-juxingfenbu font14"}),value:1},{label:p.a.createElement("span",{className:"icon-liebiaofenbu font14"}),value:2}]),$=Object(u.a)(re,2),Z=$[0],X=$[1],b=Object(N.useState)(parseInt(localStorage.getItem("ClassShowType"))||1),w=Object(u.a)(b,2),W=w[0],ue=w[1],ne=Object(N.useState)(!0),ve=Object(u.a)(ne,2),_e=ve[0],Oe=ve[1];Object(N.useEffect)(function(){var le;Ee.current=(le=k.pathname.split("/"))===null||le===void 0?void 0:le[2];var Ce={category:"",status:"",page:1,per_page:15,sort_by:"updated_at",sort_direction:"desc",username:Ee.current};q(Ce),ye(Ce)},[k.pathname]),Object(N.useEffect)(function(){var le;Je(((le=se.userInfo)===null||le===void 0?void 0:le.login)===Ee.current)},[(z=se.userInfo)===null||z===void 0?void 0:z.login,Ee.current]);var ye=function(){var le=Object(P.a)(Y.a.mark(function Ce(je){var ze;return Y.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,S({type:"userDetail/getCourses",payload:je});case 2:ze=rt.sent,ze&&(Pe(ze.count||0),Re(ze.courses||[]));case 4:case"end":return rt.stop()}},Ce)}));return function(je){return le.apply(this,arguments)}}(),de=function(Ce){console.log(Ce,"category"),_.category=Ce,_.page=1,q(_),ye(_)},We=function(Ce){_.status=Ce,_.page=1,q(_),ye(_)},Se=function(Ce){_.search=Ce,_.page=1,q(_),ye(_)},we=function(Ce){console.log(Ce,"sort_direction"),_.sort_direction=Ce,q(_),ye(_)},Ke=function(Ce){_.sort_by=Ce,_.sort_direction="desc",q(_),ye(_)},ke=function(Ce,je){_.page=Ce,_.per_page=je,q(_),ye(_)},Me=function(){return _.category?_.category==="manage"?"\u53D1\u5E03":"\u5B66\u4E60":"\u8BFE\u5802"},ge=function(){return _.sort_by==="updated_at"?"\u6700\u65B0\u52A8\u6001":_.sort_by==="created_at"?"\u6700\u65B0\u521B\u5EFA":_.sort_by==="name"?"\u540D\u79F0\u6392\u5E8F":""},Be;(function(le){le.Projects="projects",le.Shixuns="shixuns",le.Classrooms="classrooms"})(Be||(Be={}));var Ne=function(Ce){var je;if(!Object(m.e)(S))return;if(Ce===Be.Projects&&!((je=se.userInfo)!==null&&je!==void 0&&je.email)){oe.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Ce===Be.Classrooms&&fe(!0)},Te=[{id:"",name:"\u5168\u90E8"},{id:"manage",name:"".concat(Ye?"\u6211":"TA","\u7BA1\u7406\u7684")},{id:"study",name:"".concat(Ye?"\u6211":"TA","\u5B66\u4E60\u7684")}],xe=[{id:"",name:"\u5168\u90E8"},{id:"processing",name:"\u6B63\u5728\u8FDB\u884C"},{id:"end",name:"\u5DF2\u7ED3\u675F"}];return console.log(Object(E.t)(),2222),p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:h.a.wrap},p.a.createElement(i.g,{value:_.category,onChange:de,tabBarExtraContent:p.a.createElement(i.e,{style:{width:303},placeholder:"\u8BF7\u641C\u7D22\u8BFE\u5802\u540D\u79F0",value:_.search,onChange:Se}),dataSource:Te}),Ye&&p.a.createElement(i.h,{title:"\u72B6\u6001",className:"mt25",value:_.status,onChange:We,dataSource:xe,titleWidth:28}),p.a.createElement("div",{className:h.a.midWrap},p.a.createElement(i.k,{sortValue:_.sort_direction,dropValue:_.sort_by,onSort:we,onDrop:Ke}),p.a.createElement("div",{className:h.a.type},p.a.createElement("i",{className:W===1?"iconfont icon-fenbu ".concat(h.a.cursorPointer," ").concat(h.a.color0152d9):"iconfont icon-fenbu ".concat(h.a.cursorPointer),onClick:function(){ue(1),localStorage.setItem("ClassShowType","1")}}),p.a.createElement("span",{className:h.a.orderDesc},p.a.createElement("i",{className:W===2?"iconfont icon-fenbu-2 ".concat(h.a.cursorPointer," ").concat(h.a.color0152d9," "):"iconfont icon-fenbu-2 ".concat(h.a.cursorPointer),onClick:function(){ue(2),localStorage.setItem("ClassShowType","2")}}))),((U=se.userInfo)===null||U===void 0?void 0:U.identity)==="student"&&!Object(E.v)()?p.a.createElement(i.d,{style:{marginLeft:"auto"},onClick:function(){return Ne(Be.Classrooms)}},"\u52A0\u5165\u6559\u5B66\u8BFE\u5802"):!(be!=null&&(ee=be.setting)!==null&&ee!==void 0&&ee.hide_course)&&p.a.createElement(i.d,{style:{marginLeft:"auto"},onClick:function(){return d.d.push("/classrooms/new?username=".concat(Ee.current))}},"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802")),p.a.createElement(a.a,{loading:I["userDetail/getCourses"],active:!0,paragraph:{rows:5}},W==1&&p.a.createElement(i.b,{dataSource:Ue==null?void 0:Ue.map(function(le){var Ce,je;return Object(M.a)(Object(M.a)({},le),{},{is_accessible:le.can_visited,course_members_count:le.members_count,tasks_count:le.homework_commons_count,avatar_url:(Ce=le.teacher)===null||Ce===void 0?void 0:Ce.avatar_url,creator:(je=le.teacher)===null||je===void 0?void 0:je.real_name})}),right:23,col:3,wrapWidth:887,loading:!1}),W!=1&&p.a.createElement("div",{className:"mt10",style:{minHeight:400}},p.a.createElement(s,{number:(_.page-1)*_.per_page,data:Ue,params:_,setParams:q,getCourses:ye})),Le>0&&p.a.createElement("div",{className:h.a.countWrap},p.a.createElement(ae.a,{showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:Le,onChange:function(Ce,je){ke(Ce,je)},pageSize:_.per_page,current:_.page})))),p.a.createElement(A.a,{visible:ie,onCancel:function(){return fe(!1)}}))},B=v.default=Object(d.a)(function(Q){var G=Q.user,z=Q.userDetail,U=Q.loading,ee=Q.globalSetting;return{user:G,userDetail:z,globalSetting:ee,loading:U.effects}})(j)},NQs2:function(V,v,e){V.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(V,v,e){"use strict";e.d(v,"a",function(){return P}),e.d(v,"h",function(){return f}),e.d(v,"l",function(){return D}),e.d(v,"e",function(){return E}),e.d(v,"i",function(){return i}),e.d(v,"j",function(){return x}),e.d(v,"c",function(){return me.a}),e.d(v,"b",function(){return he}),e.d(v,"g",function(){return Xe}),e.d(v,"f",function(){return Ve}),e.d(v,"k",function(){return ie}),e.d(v,"d",function(){return Z});var R=e("q1tI"),a=e.n(R),ce=e("NQs2"),ae=e.n(ce),M=e("ygoZ"),n=e.n(M),oe=function(b){var w=b.dataSource,W=w===void 0?[]:w,ue=b.img,ne=b.imgWidth,ve=ne===void 0?346:ne,_e=b.title,Oe=b.sunTitle,ye=b.bannerExtraContent;return a.a.createElement("div",{className:ae.a.banner},a.a.createElement("div",{className:ae.a.content},a.a.createElement("aside",null,a.a.createElement("p",null,a.a.createElement("b",null,_e),a.a.createElement("span",null,Oe)),W.length>0&&a.a.createElement("div",{className:ae.a.btns},W.map(function(de,We){return a.a.createElement("div",{key:We,onClick:de.click},de.name,de.sign?a.a.createElement("img",{src:n.a,width:39}):null)})),ye),a.a.createElement("img",{style:{marginTop:33,marginRight:38},src:ue,width:ve})))},P=oe,u=e("tJVT"),J=e("6nfa"),y=e.n(J),Y=e("TSYQ"),N=e.n(Y),p=function(b){var w=b.dataSource,W=w===void 0?[]:w,ue=b.value,ne=b.onChange,ve=b.className,_e=b.title,Oe=b.titleWidth,ye=Oe===void 0?41:Oe,de=b.style,We=de===void 0?{}:de,Se=b.fontColor,we=Se===void 0?"#6A7283":Se,Ke=Object(R.useState)(0),ke=Object(u.a)(Ke,2),Me=ke[0],ge=ke[1],Be=Object(R.useState)(!1),Ne=Object(u.a)(Be,2),Te=Ne[0],xe=Ne[1],le=Object(R.useRef)(null);return Object(R.useEffect)(function(){if(W.length!==0){var Ce;(le==null||((Ce=le.current)===null||Ce===void 0)?void 0:Ce.clientHeight)>92?ge(1):ge(0)}W.length===0&&ge(0)},[W]),a.a.createElement("div",{className:N()(y.a.row,ve),style:We},a.a.createElement("div",{style:{width:ye,marginTop:Te?12:4},className:y.a.title},_e),a.a.createElement("div",{className:Te?"".concat(y.a.tagsWrap," ").concat(y.a.tagsBorderWrap):y.a.tagsWrap},a.a.createElement("div",{className:y.a.bar,style:Me>0?{height:Me===1?92:"auto",overflow:Me===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},a.a.createElement("div",{className:y.a.name,ref:le},W==null?void 0:W.map(function(Ce){return a.a.createElement("span",{onClick:function(){return ne(Ce.id)},key:Ce.id,title:Ce.name,style:{color:we},className:ue===Ce.id?y.a.active:""},Ce.name)}))),!!Me&&a.a.createElement(R.Fragment,null,Me===1?a.a.createElement("div",{onClick:function(){var je;ge(2),(le==null||((je=le.current)===null||je===void 0)?void 0:je.clientHeight)>205?xe(!0):xe(!1)},className:y.a.action},"\u5C55\u5F00",a.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):a.a.createElement("div",{onClick:function(){ge(1),xe(!1)},className:y.a.action},"\u6536\u8D77",a.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},f=p,d=e("cz0n"),T=e.n(d),h=function(b){var w=b.dataSource,W=w===void 0?[]:w,ue=b.value,ne=b.onChange,ve=b.className;return a.a.createElement("div",{className:N()(T.a.tabs,ve)},W.map(function(_e){return a.a.createElement("span",{onClick:function(){return ne(_e.id)},className:ue===_e.id?T.a.active:"",key:_e.id},_e.name)}))},D=h,L=e("5NDa"),O=e("5rEg"),F=e("KOXS"),C=e.n(F),g=function(b){var w,W=b.dataSource,ue=W===void 0?[]:W,ne=b.value,ve=b.onChange,_e=b.className,Oe=b.style,ye=Oe===void 0?{}:Oe,de=b.placeholder,We=Object(R.useState)(""),Se=Object(u.a)(We,2),we=Se[0],Ke=Se[1],ke=Object(R.useState)(""),Me=Object(u.a)(ke,2),ge=Me[0],Be=Me[1];Object(R.useEffect)(function(){var xe;(xe=JSON.stringify(ne))!==null&&xe!==void 0&&xe.includes("{")?(Ke(ne.id),Be(ne.value)):Be(ne)},[ne]);var Ne=function(){ve(ge||null,we||"")},Te=function(le){if(le===we)return;Ke(le),ve(ge,le)};return a.a.createElement("div",{className:N()(C.a.input,_e),style:ye},!!ue.length&&a.a.createElement("div",{className:C.a.dropdown},a.a.createElement("div",{className:C.a.text},(w=ue.find(function(xe){return xe.id===we}))===null||w===void 0?void 0:w.name,a.a.createElement("i",{className:"iconfont icon-zhankai4"}),a.a.createElement("b",{className:C.a.b1}),a.a.createElement("b",{className:C.a.b2})),a.a.createElement("div",{className:C.a.menu},ue.map(function(xe,le){return a.a.createElement("div",{key:le,onClick:function(){return Te(xe.id)}},xe.name)}))),a.a.createElement(O.a,{onPressEnter:Ne,value:ge,onChange:function(le){return Be(le.target.value||"")},bordered:!1,placeholder:de}),a.a.createElement("i",{onClick:Ne,className:"iconfont icon-sousuo9 font14 pl10 current"}))},E=g,r=e("f9pc"),o=e.n(r),t=function(b){var w=b.value,W=b.onChange,ue=b.className,ne=b.total,ve=b.pageSize,_e=b.style,Oe=_e===void 0?{}:_e,ye=w<2,de=w>=Math.ceil(ne/ve);return ne<=ve?a.a.createElement(a.a.Fragment,null):a.a.createElement("div",{className:N()(o.a.quickPager,ue),style:Oe},a.a.createElement("div",{onClick:function(){ye||W(w-1,"prev")},className:ye?o.a.disabled:""},"\u4E0A\u4E00\u9875"),a.a.createElement("div",{onClick:function(){de||W(w+1,"next")},className:de?o.a.disabled:""},"\u4E0B\u4E00\u9875"))},i=t,l=e("T2oS"),s=e("W9HT"),A=e("pC0b"),m=e("GzdX"),j=e("5Dmo"),B=e("3S7+"),Q=e("Oe0F"),G=e.n(Q),z=e("m3rI"),U=e("1vsH"),ee=e("JAbv"),se=e.n(ee),Ae=e("Bq7L"),be=e.n(Ae),I=e("MEgm"),S=e.n(I),te=e("BdwD"),k=function(b){var w=b.className,W=b.dataSource,ue=W===void 0?[]:W,ne=b.col,ve=ne===void 0?4:ne,_e=b.right,Oe=b.bottom,ye=Oe===void 0?23:Oe,de=b.precision,We=de===void 0?0:de,Se=b.wrapWidth,we=Se===void 0?1200:Se,Ke=b.trackEventItems,ke=b.loading,Me=Math.floor((we-(ve-1)*_e)/ve);return a.a.createElement(s.a,{spinning:ke},a.a.createElement("div",{className:N()(G.a.list,w)},!!ue.length&&ue.map(function(ge,Be){var Ne=ge.name,Te=ge.id,xe=ge.identifier,le=ge.power,Ce=ge.cover_image_id,je=ge.pic;return a.a.createElement("div",{className:G.a.wrap,key:Te,style:{width:Me,marginRight:(1+Be)%ve===0?0:_e+We,marginBottom:ye}},a.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(xe,"/challenges"),className:G.a.li,onClick:function(pt){pt.preventDefault(),Ke&&Object(U.cb)([Ke]),le&&Object(U.S)("/shixuns/".concat(xe,"/challenges"))}},a.a.createElement("div",{className:G.a.img},a.a.createElement("img",{className:G.a.cover,src:Ce?"".concat(z.a.API_SERVER,"/api/attachments/").concat(Ce):"".concat(z.a.IMG_SERVER,"/").concat(je)}),ge.is_jupyter&&a.a.createElement("img",{className:G.a.sign,src:se.a}),ge.is_jupyter_lab&&a.a.createElement("img",{className:G.a.sign,src:be.a}),ge.is_unity_3d&&a.a.createElement("img",{className:G.a.sign,src:S.a})),a.a.createElement("div",{className:G.a.name},a.a.createElement(B.a,{title:Ne||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},a.a.createElement("span",{className:G.a.e},Ne||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),a.a.createElement("div",{className:G.a.tags},a.a.createElement(B.a,{placement:"bottom",title:"\u5173\u5361\u6570"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),a.a.createElement("span",null,ge.challenges_count))),!!ge.myshixuns_count&&a.a.createElement(B.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),a.a.createElement("span",null,ge.myshixuns_count))),a.a.createElement(B.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},a.a.createElement("span",null,a.a.createElement("span",null,ge.level))),a.a.createElement("div",{className:G.a.rate},a.a.createElement(m.a,{allowHalf:!0,disabled:!0,defaultValue:ge.score_info}),a.a.createElement("span",null,"\xA0",ge.score_info?"".concat(ge.score_info,"\u5206"):"5\u5206")))),!le&&a.a.createElement("div",{className:G.a.lockWrap},a.a.createElement("img",{src:"".concat(z.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),a.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ue.length&&a.a.createElement(te.a,null)))},x=k,me=e("LicW"),_=e("iL++"),q=e.n(_),Ee=e("xiVL"),pe=function(b){var w=b.className,W=b.dataSource,ue=W===void 0?[]:W,ne=b.col,ve=ne===void 0?4:ne,_e=b.right,Oe=b.bottom,ye=Oe===void 0?23:Oe,de=b.precision,We=de===void 0?0:de,Se=b.wrapWidth,we=Se===void 0?1200:Se,Ke=b.trackEventItems,ke=b.loading,Me=Math.floor((we-(ve-1)*_e)/ve);return a.a.createElement(s.a,{spinning:ke},a.a.createElement("div",{className:N()(q.a.list,w)},!!ue.length&&ue.map(function(ge,Be){var Ne=ge.subject_identifier,Te=ge.id,xe=ge.identifier,le=ge.power,Ce=ge.is_public!=0&&ge.is_public;return a.a.createElement("div",{className:q.a.wrap,key:Te,style:{width:Me,marginRight:(1+Be)%ve===0?0:_e+We,marginBottom:ye}},a.a.createElement("a",{className:q.a.li,onClick:function(ze){ze.preventDefault()}},a.a.createElement("div",{className:q.a.top},a.a.createElement(B.a,{title:ge.name},a.a.createElement("div",{className:q.a.name},ge.name)),a.a.createElement("img",{className:q.a.img,src:z.a.IMG_SERVER+"/images/"+ge.avatar_url}),a.a.createElement("div",{className:q.a.text},ge.creator),Ne&&a.a.createElement("div",{className:q.a.btns},a.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),a.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ce&&a.a.createElement("div",{className:q.a.sign},"\u516C\u5F00")),a.a.createElement("div",{className:q.a.bottom},ge.visits>0&&a.a.createElement(B.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-liulanyan"}),a.a.createElement("span",null,ge.visits))),ge.course_members_count>0&&a.a.createElement(B.a,{title:"\u6210\u5458",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-chengyuan"}),ge.course_members_count)),ge.tasks_count>0&&a.a.createElement(B.a,{title:"\u4F5C\u4E1A",placement:"bottom"},a.a.createElement("span",null,a.a.createElement("i",{className:"iconfont icon-zuoye"}),ge.tasks_count)),ge.is_end?a.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):a.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),a.a.createElement("div",{className:q.a.lockWrap},ge.is_accessible?a.a.createElement(a.a.Fragment,null,Ne&&a.a.createElement("div",{onClick:function(){return Object(U.S)("/paths/".concat(Ne))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),a.a.createElement("div",{onClick:function(ze){Ke&&Object(U.cb)([Ke]),Object(U.S)(ge.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):a.a.createElement(a.a.Fragment,null,a.a.createElement("img",{src:"".concat(z.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),a.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!ue.length&&a.a.createElement(te.a,null)))},he=pe,Le=e("f0W+"),Pe=e.n(Le),He=function(b){var w=b.dataSource,W=w===void 0?[]:w,ue=b.value,ne=b.onChange,ve=b.className,_e=b.style,Oe=_e===void 0?{}:_e,ye=b.tabBarExtraContent;return a.a.createElement("div",{className:N()(Pe.a.tabs,ve),style:Oe},a.a.createElement("div",{className:Pe.a.tabsWrap},W.map(function(de,We){return a.a.createElement("div",{onClick:function(){return ne(de.id)},className:ue===de.id?Pe.a.active:"",key:We},de.name)})),a.a.createElement("div",{className:Pe.a.tabBar},ye))},Xe=He,Ue=e("9JIy"),Re=e.n(Ue),De=function(b){var w=b.className,W=b.style,ue=W===void 0?{}:W,ne=b.children;return a.a.createElement("div",{className:N()(Re.a.table,w),style:ue},ne)},Ve=De,Ye=e("qVdP"),Je=e("jsC+"),$e=e("lUTK"),Ge=e("BvKs"),at=e("8WcF"),c=e.n(at),K=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],H=function(b){var w,W=b.sortValue,ue=b.dropValue,ne=b.className,ve=b.onSort,_e=b.onDrop,Oe=b.dataSource,ye=Oe===void 0?K:Oe;return a.a.createElement("div",{className:N()(c.a.orderWrap,ne)},a.a.createElement(Je.a,{overlay:a.a.createElement(Ge.a,null,ye.map(function(de,We){return a.a.createElement(Ge.a.Item,{key:We,onClick:function(){return _e(de.id)}},de.name)}))},a.a.createElement("span",{className:c.a.orderTextWrap},(w=ye.find(function(de){return ue===de.id}))===null||w===void 0?void 0:w.name)),a.a.createElement("span",{className:c.a.orderIconWrap},a.a.createElement("span",{className:c.a.orderAsc},a.a.createElement("i",{className:W==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(c.a.cursorPointer," ").concat(c.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(c.a.cursorPointer),onClick:function(){return ve(W==="asc"?"desc":"asc")}})),a.a.createElement("span",{className:c.a.orderDesc},a.a.createElement("i",{className:W==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(c.a.cursorPointer," ").concat(c.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(c.a.cursorPointer),onClick:function(){return ve(W==="asc"?"desc":"asc")}}))))},ie=H,fe=e("siWv"),re=e.n(fe),$=function(b){var w=b.className,W=b.style,ue=b.children,ne=b.onClick;return a.a.createElement("div",{onClick:ne,className:N()(re.a.btn,w),style:W},ue)},Z=$},NvD2:function(V,v,e){"use strict";e.d(v,"a",function(){return n});var R=e("Kwbf");function a(oe,P){var u=new Set;return oe.forEach(function(J){P.has(J)||u.add(J)}),u}function ce(oe){var P=oe||{},u=P.disabled,J=P.disableCheckbox,y=P.checkable;return!!(u||J)||y===!1}function ae(oe,P,u,J){for(var y=new Set(oe),Y=new Set,N=0;N<=u;N+=1){var p=P.get(N)||new Set;p.forEach(function(h){var D=h.key,L=h.node,O=h.children,F=O===void 0?[]:O;y.has(D)&&!J(L)&&F.filter(function(C){return!J(C.node)}).forEach(function(C){y.add(C.key)})})}for(var f=new Set,d=u;d>=0;d-=1){var T=P.get(d)||new Set;T.forEach(function(h){var D=h.parent,L=h.node;if(J(L)||!h.parent||f.has(h.parent.key))return;if(J(h.parent.node)){f.add(D.key);return}var O=!0,F=!1;(D.children||[]).filter(function(C){return!J(C.node)}).forEach(function(C){var g=C.key,E=y.has(g);O&&!E&&(O=!1),!F&&(E||Y.has(g))&&(F=!0)}),O&&y.add(D.key),F&&Y.add(D.key),f.add(D.key)})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(a(Y,y))}}function M(oe,P,u,J,y){for(var Y=new Set(oe),N=new Set(P),p=0;p<=J;p+=1){var f=u.get(p)||new Set;f.forEach(function(D){var L=D.key,O=D.node,F=D.children,C=F===void 0?[]:F;!Y.has(L)&&!N.has(L)&&!y(O)&&C.filter(function(g){return!y(g.node)}).forEach(function(g){Y.delete(g.key)})})}N=new Set;for(var d=new Set,T=J;T>=0;T-=1){var h=u.get(T)||new Set;h.forEach(function(D){var L=D.parent,O=D.node;if(y(O)||!D.parent||d.has(D.parent.key))return;if(y(D.parent.node)){d.add(L.key);return}var F=!0,C=!1;(L.children||[]).filter(function(g){return!y(g.node)}).forEach(function(g){var E=g.key,r=Y.has(E);F&&!r&&(F=!1),!C&&(r||N.has(E))&&(C=!0)}),F||Y.delete(L.key),C&&N.add(L.key),d.add(L.key)})}return{checkedKeys:Array.from(Y),halfCheckedKeys:Array.from(a(N,Y))}}function n(oe,P,u,J){var y=[],Y;J?Y=J:Y=ce;var N=new Set(oe.filter(function(T){var h=!!u[T];return h||y.push(T),h})),p=new Map,f=0;Object.keys(u).forEach(function(T){var h=u[T],D=h.level,L=p.get(D);L||(L=new Set,p.set(D,L)),L.add(h),f=Math.max(f,D)}),Object(R.a)(!y.length,"Tree missing follow keys: ".concat(y.slice(0,100).map(function(T){return"'".concat(T,"'")}).join(", ")));var d;return P===!0?d=ae(N,p,f,Y):d=M(N,P.halfCheckedKeys,p,f,Y),d}},OZM5:function(V,v,e){"use strict";e.d(v,"b",function(){return J}),e.d(v,"a",function(){return y}),e.d(v,"k",function(){return Y}),e.d(v,"h",function(){return N}),e.d(v,"i",function(){return p}),e.d(v,"g",function(){return f}),e.d(v,"c",function(){return d}),e.d(v,"d",function(){return T}),e.d(v,"j",function(){return L}),e.d(v,"e",function(){return O}),e.d(v,"f",function(){return F});var R=e("KQm4"),a=e("U8pU"),ce=e("Ff2n"),ae=e("q1tI"),M=e.n(ae),n=e("Kwbf"),oe=e("WaYH"),P=.25,u=2;function J(C,g){var E=C.slice(),r=E.indexOf(g);return r>=0&&E.splice(r,1),E}function y(C,g){var E=C.slice();return E.indexOf(g)===-1&&E.push(g),E}function Y(C){return C.split("-")}function N(C,g){return"".concat(C,"-").concat(g)}function p(C){return C&&C.type&&C.type.isTreeNode}function f(C,g){var E=[C],r=g[C];function o(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];t.forEach(function(i){var l=i.key,s=i.children;E.push(l),o(s)})}return o(r.children),E}function d(C,g){var E=C.clientY,r=g.selectHandle.getBoundingClientRect(),o=r.top,t=r.bottom,i=r.height,l=Math.max(i*P,u);return E<=o+l?-1:E>=t-l?1:0}function T(C,g){if(!C)return;var E=g.multiple;return E?C.slice():C.length?[C[0]]:C}var h=function(g){return g};function D(C,g){if(!C)return[];var E=g||{},r=E.processProps,o=r===void 0?h:r,t=Array.isArray(C)?C:[C];return t.map(function(i){var l=i.children,s=Object(ce.a)(i,["children"]),A=D(l,g);return M.a.createElement(oe.a,Object.assign({},o(s)),A)})}function L(C){if(!C)return null;var g;if(Array.isArray(C))g={checkedKeys:C,halfCheckedKeys:void 0};else if(Object(a.a)(C)==="object")g={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return Object(n.a)(!1,"`checkedKeys` is not an array or an object"),null;return g}function O(C,g){var E=new Set;function r(o){if(E.has(o))return;var t=g[o];if(!t)return;E.add(o);var i=t.parent,l=t.node;if(l.disabled)return;i&&r(i.key)}return(C||[]).forEach(function(o){r(o)}),Object(R.a)(E)}function F(C){var g={};return Object.keys(C).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(g[E]=C[E])}),g}},Oe0F:function(V,v,e){V.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"}},"SA+Z":function(V,v,e){var R=e("wTVA"),a=e("EbDI"),ce=e("ZhPi"),ae=e("wkBT");function M(n){return R(n)||a(n)||ce(n)||ae()}V.exports=M,V.exports.__esModule=!0,V.exports.default=V.exports},WaYH:function(V,v,e){"use strict";var R=e("rePB"),a=e("Ff2n"),ce=e("VTBJ"),ae=e("1OyB"),M=e("vuIU"),n=e("JX7q"),oe=e("Ji7U"),P=e("LK+K"),u=e("q1tI"),J=e("TSYQ"),y=e.n(J),Y=e("sboe"),N=e("OZM5"),p=function(g){var E=g.prefixCls,r=g.level,o=g.isStart,t=g.isEnd;if(!r)return null;for(var i="".concat(E,"-indent-unit"),l=[],s=0;s1&&arguments[1]!==void 0?arguments[1]:!1,te=I.getAttribute("id")||I.getAttribute("data-reactid")||I.getAttribute("name");if(S&&m[te])return m[te];var k=window.getComputedStyle(I),x=k.getPropertyValue("box-sizing")||k.getPropertyValue("-moz-box-sizing")||k.getPropertyValue("-webkit-box-sizing"),me=parseFloat(k.getPropertyValue("padding-bottom"))+parseFloat(k.getPropertyValue("padding-top")),_=parseFloat(k.getPropertyValue("border-bottom-width"))+parseFloat(k.getPropertyValue("border-top-width")),q=A.map(function(pe){return"".concat(pe,":").concat(k.getPropertyValue(pe))}).join(";"),Ee={sizingStyle:q,paddingSize:me,borderSize:_,boxSizing:x};return S&&te&&(m[te]=Ee),Ee}function Q(I){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;j||(j=document.createElement("textarea"),j.setAttribute("tab-index","-1"),j.setAttribute("aria-hidden","true"),document.body.appendChild(j)),I.getAttribute("wrap")?j.setAttribute("wrap",I.getAttribute("wrap")):j.removeAttribute("wrap");var x=B(I,S),me=x.paddingSize,_=x.borderSize,q=x.boxSizing,Ee=x.sizingStyle;j.setAttribute("style","".concat(Ee,";").concat(s)),j.value=I.value||I.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,he=Number.MAX_SAFE_INTEGER,Le=j.scrollHeight,Pe;if(q==="border-box"?Le+=_:q==="content-box"&&(Le-=me),te!==null||k!==null){j.value=" ";var He=j.scrollHeight-me;te!==null&&(pe=He*te,q==="border-box"&&(pe=pe+me+_),Le=Math.max(pe,Le)),k!==null&&(he=He*k,q==="border-box"&&(he=he+me+_),Pe=Le>he?"":"hidden",Le=Math.min(he,Le))}return{height:Le,minHeight:pe,maxHeight:he,overflowY:Pe,resize:"none"}}var G=e("Gytx"),z=e.n(G),U;(function(I){I[I.NONE=0]="NONE",I[I.RESIZING=1]="RESIZING",I[I.RESIZED=2]="RESIZED"})(U||(U={}));var ee=function(I){Object(ae.a)(te,I);var S=Object(D.a)(te);function te(k){var x;return Object(a.a)(this,te),x=S.call(this,k),x.nextFrameActionId=void 0,x.resizeFrameId=void 0,x.textArea=void 0,x.saveTextArea=function(me){x.textArea=me},x.handleResize=function(me){var _=x.state.resizeStatus,q=x.props,Ee=q.autoSize,pe=q.onResize;if(_!==U.NONE)return;typeof pe=="function"&&pe(me),Ee&&x.resizeOnNextFrame()},x.resizeOnNextFrame=function(){cancelAnimationFrame(x.nextFrameActionId),x.nextFrameActionId=requestAnimationFrame(x.resizeTextarea)},x.resizeTextarea=function(){var me=x.props.autoSize;if(!me||!x.textArea)return;var _=me.minRows,q=me.maxRows,Ee=Q(x.textArea,!1,_,q);x.setState({textareaStyles:Ee,resizeStatus:U.RESIZING},function(){cancelAnimationFrame(x.resizeFrameId),x.resizeFrameId=requestAnimationFrame(function(){x.setState({resizeStatus:U.RESIZED},function(){x.resizeFrameId=requestAnimationFrame(function(){x.setState({resizeStatus:U.NONE}),x.fixFirefoxAutoScroll()})})})})},x.renderTextArea=function(){var me=x.props,_=me.prefixCls,q=_===void 0?"rc-textarea":_,Ee=me.autoSize,pe=me.onResize,he=me.className,Le=me.disabled,Pe=x.state,He=Pe.textareaStyles,Xe=Pe.resizeStatus,Ue=Object(t.a)(x.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Re=l()(q,he,Object(P.a)({},"".concat(q,"-disabled"),Le));"value"in Ue&&(Ue.value=Ue.value||"");var Me=Object(oe.a)(Object(oe.a)(Object(oe.a)({},x.props.style),He),Xe===U.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:x.handleResize,disabled:!(Ee||pe)},n.createElement("textarea",Object(R.a)({},Ue,{className:Re,style:Me,ref:x.saveTextArea})))},x.state={textareaStyles:{},resizeStatus:U.NONE},x}return Object(ce.a)(te,[{key:"componentDidUpdate",value:function(x){(x.value!==this.props.value||!z()(x.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 x=this.textArea.selectionStart,me=this.textArea.selectionEnd;this.textArea.setSelectionRange(x,me)}}catch(_){}}},{key:"render",value:function(){return this.renderTextArea()}}]),te}(n.Component),se=ee,Ae=function(I){Object(ae.a)(te,I);var S=Object(D.a)(te);function te(k){var x;Object(a.a)(this,te),x=S.call(this,k),x.resizableTextArea=void 0,x.focus=function(){x.resizableTextArea.textArea.focus()},x.saveTextArea=function(_){x.resizableTextArea=_},x.handleChange=function(_){var q=x.props.onChange;x.setValue(_.target.value,function(){x.resizableTextArea.resizeTextarea()}),q&&q(_)},x.handleKeyDown=function(_){var q=x.props,Ee=q.onPressEnter,pe=q.onKeyDown;_.keyCode===13&&Ee&&Ee(_),pe&&pe(_)};var me=typeof k.value=="undefined"||k.value===null?k.defaultValue:k.value;return x.state={value:me},x}return Object(ce.a)(te,[{key:"setValue",value:function(x,me){"value"in this.props||this.setState({value:x},me)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(se,Object(R.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(x){return"value"in x?{value:x.value}:null}}]),te}(n.Component),be=v.default=Ae},ZJlW:function(V,v,e){V.exports={flex_box_center:"flex_box_center___XZ1Hd",flex_space_between:"flex_space_between___2oG4i",flex_box_vertical_center:"flex_box_vertical_center___1UWtb",flex_box_center_end:"flex_box_center_end___1o2xT",flex_box_column:"flex_box_column___SlAE0",list:"list___1HvWe",wrap:"wrap___10sri",lockWrap:"lockWrap___2djiu",li:"li___2W_zn",cover:"cover___2FS3L",img:"img___cyxrw",sign:"sign___1cxDK",name:"name___3tYlu",e:"e___1-orw",unit:"unit___ycOgg",tags:"tags___2FRpJ",tag:"tag___1e0XO"}},bT9E:function(V,v,e){"use strict";e.d(v,"a",function(){return a});var R=e("VTBJ");function a(ce,ae){var D=Object(R.a)({},ce);return Array.isArray(ae)&&ae.forEach(function(n){delete D[n]}),D}},bUJZ:function(V,v){V.exports="data:image/png;base64,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"},biw7:function(V,v,e){"use strict";var R=e("q1tI"),a=e.n(R),ce=R.createContext(null);v.a=ce},cFMs:function(V,v){V.exports="data:image/png;base64,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"},cz0n:function(V,v,e){V.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"}},"f0W+":function(V,v,e){V.exports={flex_box_center:"flex_box_center___2AWuG",flex_space_between:"flex_space_between___4j1zo",flex_box_vertical_center:"flex_box_vertical_center___3dWcm",flex_box_center_end:"flex_box_center_end___qvHJi",flex_box_column:"flex_box_column___3Eier",tabs:"tabs___25WKT",tabsWrap:"tabsWrap___2lPJE",active:"active___gGp9s"}},f9pc:function(V,v,e){V.exports={flex_box_center:"flex_box_center___fO1Sq",flex_space_between:"flex_space_between___2MANs",flex_box_vertical_center:"flex_box_vertical_center___2x-su",flex_box_center_end:"flex_box_center_end___6bZNq",flex_box_column:"flex_box_column___CGTHC",quickPager:"quickPager___2XH6F",disabled:"disabled___2gPWV"}},fyJ8:function(V,v,e){"use strict";var R=e("rePB"),a=e("VTBJ"),ce=e("Ff2n"),ae=e("U8pU"),D=e("q1tI"),n=e.n(D),oe=e("TSYQ"),P=e.n(oe),u=e("c+Xe"),J=e("sR1s");function y(d){return d&&Object(ae.a)(d)==="object"&&!Array.isArray(d)&&!D.isValidElement(d)}function Y(d){return typeof d=="string"?!0:Object(u.c)(d)}function N(d,T){var h,M=d.prefixCls,L=d.className,O=d.record,F=d.index,C=d.dataIndex,g=d.render,E=d.children,r=d.component,o=r===void 0?"td":r,t=d.colSpan,i=d.rowSpan,l=d.fixLeft,s=d.fixRight,A=d.firstFixLeft,m=d.lastFixLeft,j=d.firstFixRight,B=d.lastFixRight,Q=d.appendNode,G=d.additionalProps,z=G===void 0?{}:G,U=d.ellipsis,ee=d.align,se=d.rowType,Ae=d.isSticky,be="".concat(M,"-cell"),I,S;if(E)S=E;else{var te=Object(J.b)(O,C);if(S=te,g){var k=g(te,O,F);y(k)?(S=k.children,I=k.props):S=k}}Object(ae.a)(S)==="object"&&!Array.isArray(S)&&!D.isValidElement(S)&&(S=null),U&&(m||j)&&(S=D.createElement("span",{className:"".concat(be,"-content")},S));var x=I||{},me=x.colSpan,_=x.rowSpan,q=x.style,Ee=x.className,pe=Object(ce.a)(x,["colSpan","rowSpan","style","className"]),he=me!==void 0?me:t,Le=_!==void 0?_:i;if(he===0||Le===0)return null;var Pe={},He=typeof l=="number",Xe=typeof s=="number";He&&(Pe.position="sticky",Pe.left=l),Xe&&(Pe.position="sticky",Pe.right=s);var Ue={};ee&&(Ue.textAlign=ee);var Re,Me=U===!0?{showTitle:!0}:U;Me&&(Me.showTitle||se==="header")&&(typeof S=="string"||typeof S=="number"?Re=S.toString():D.isValidElement(S)&&typeof S.props.children=="string"&&(Re=S.props.children));var Ve=Object(a.a)(Object(a.a)(Object(a.a)({title:Re},pe),z),{},{colSpan:he&&he!==1?he:null,rowSpan:Le&&Le!==1?Le:null,className:P()(be,L,(h={},Object(R.a)(h,"".concat(be,"-fix-left"),He),Object(R.a)(h,"".concat(be,"-fix-left-first"),A),Object(R.a)(h,"".concat(be,"-fix-left-last"),m),Object(R.a)(h,"".concat(be,"-fix-right"),Xe),Object(R.a)(h,"".concat(be,"-fix-right-first"),j),Object(R.a)(h,"".concat(be,"-fix-right-last"),B),Object(R.a)(h,"".concat(be,"-ellipsis"),U),Object(R.a)(h,"".concat(be,"-with-append"),Q),Object(R.a)(h,"".concat(be,"-fix-sticky"),(He||Xe)&&Ae),h),z.className,Ee),style:Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},z.style),Ue),Pe),q),ref:Y(o)?T:null});return D.createElement(o,Object.assign({},Ve),Q,S)}var p=D.forwardRef(N);p.displayName="Cell";var f=D.memo(p,function(d,T){return T.shouldCellUpdate?!T.shouldCellUpdate(T.record,d.record):!1});v.a=f},hW8S:function(V,v,e){"use strict";e.d(v,"a",function(){return ae}),e.d(v,"c",function(){return D}),e.d(v,"b",function(){return n});var R=e("VTBJ"),a=e("Ff2n"),ce=e("Kwbf"),ae="RC_TABLE_INTERNAL_COL_DEFINE";function D(oe){var P=oe.expandable,u=Object(a.a)(oe,["expandable"]);return"expandable"in oe?Object(R.a)(Object(R.a)({},u),P):u}function n(oe){return Object.keys(oe).reduce(function(P,u){return(u.substr(0,5)==="data-"||u.substr(0,5)==="aria-")&&(P[u]=oe[u]),P},{})}},"iL++":function(V,v,e){V.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"}},"lhx+":function(V,v,e){V.exports={flex_box_center:"flex_box_center___3-5Wg",flex_space_between:"flex_space_between___1Unpv",flex_box_vertical_center:"flex_box_vertical_center___1S9SL",flex_box_center_end:"flex_box_center_end___2OCso",flex_box_column:"flex_box_column___3m_UZ",wrap:"wrap___3Cuc9",midWrap:"midWrap___1nBzj",color999:"color999___19Pif",orderWrap:"orderWrap___1GmcP",orderIconWrap:"orderIconWrap___2aa2z",orderAsc:"orderAsc___1b2iZ",orderDesc:"orderDesc___3quHT",color0152d9:"color0152d9___ldoRr",h10:"h10___3NO0d",cursorPointer:"cursorPointer___3VF_N",orderTextWrap:"orderTextWrap___2Qdlx",cardWrap:"cardWrap___Y-ZxK",countWrap:"countWrap___2jHh7",affixContainer:"affixContainer___py2xS",qrcode:"qrcode___kjUuj",img:"img___3RlI5",tips:"tips___22vic",close:"close___1TK7v",text:"text___3oPIa",type:"type___1umwN"}},n6Qo:function(V,v,e){"use strict";e.d(v,"a",function(){return P});var R=e("q1tI"),a=e("biw7"),ce=e("fyJ8");function ae(u){var J=u.className,y=u.index,Y=u.children,N=u.colSpan,p=u.rowSpan,f=R.useContext(a.a),d=f.prefixCls,T=f.fixedInfoList,h=T[y];return R.createElement(ce.a,Object.assign({className:J,index:y,component:"td",prefixCls:d,record:null,dataIndex:null,render:function(){return{children:Y,props:{colSpan:N,rowSpan:p}}}},h))}function D(u){return R.createElement("tr",Object.assign({},u))}function n(u){var J=u.children,y=R.useContext(a.a),Y=y.prefixCls;return R.createElement("tfoot",{className:"".concat(Y,"-summary")},J)}var oe=v.b=n,P={Cell:ae,Row:D}},sR1s:function(V,v,e){"use strict";e.d(v,"b",function(){return ae}),e.d(v,"a",function(){return D}),e.d(v,"c",function(){return n}),e.d(v,"d",function(){return oe});var R=e("U8pU"),a="RC_TABLE_KEY";function ce(P){return P==null?[]:Array.isArray(P)?P:[P]}function ae(P,u){if(!u&&typeof u!="number")return P;for(var J=ce(u),y=P,Y=0;Y1)Object(J.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(L.length===0)return Object(J.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var O=L[0];if(n.isValidElement(O)&&Object(y.c)(O)){var F=O.ref;L[0]=n.cloneElement(O,{ref:Object(y.a)(F,this.setChildNode)})}return L.length===1?L[0]:L.map(function(C,g){return!n.isValidElement(C)||"key"in C&&C.key!==null?C:n.cloneElement(C,{key:"".concat(N,"-").concat(g)})})}}]),T}(n.Component);p.displayName="ResizeObserver",v.a=p},wCXF:function(V,v,e){"use strict";e.d(v,"a",function(){return Je});var R=e("rePB"),a=e("VTBJ"),ce=e("KQm4"),ae=e("U8pU"),D=e("ODXe"),n=e("q1tI"),oe=e("TSYQ"),P=e.n(oe),u=e("Gytx"),J=e.n(u),y=e("Kwbf"),Y=e("t23M"),N=e("qx4F"),p=e("6eGT"),f=e("IBYe"),d=e("Ff2n"),T=e("c+Xe"),h=e("fyJ8"),M=e("biw7");function L(c,K,H,ie,fe){var re=H[c]||{},$=H[K]||{},Z,X;re.fixed==="left"?Z=ie.left[c]:$.fixed==="right"&&(X=ie.right[K]);var b=!1,w=!1,W=!1,ue=!1,ne=H[K+1],ve=H[c-1];if(fe==="rtl"){if(Z!==void 0){var _e=ve&&ve.fixed==="left";ue=!_e}else if(X!==void 0){var Oe=ne&&ne.fixed==="right";W=!Oe}}else if(Z!==void 0){var ye=ne&&ne.fixed==="left";b=!ye}else if(X!==void 0){var de=ve&&ve.fixed==="right";w=!de}return{fixLeft:Z,fixRight:X,lastFixLeft:b,firstFixRight:w,lastFixRight:W,firstFixLeft:ue,isSticky:ie.isSticky}}var O=e("sR1s");function F(c){var K=c.cells,H=c.stickyOffsets,ie=c.flattenColumns,fe=c.rowComponent,re=c.cellComponent,$=c.onHeaderRow,Z=c.index,X=n.useContext(M.a),b=X.prefixCls,w=X.direction,W;$&&(W=$(K.map(function(ne){return ne.column}),Z));var ue=Object(O.a)(K.map(function(ne){return ne.column}));return n.createElement(fe,Object.assign({},W),K.map(function(ne,ve){var _e=ne.column,Oe=L(ne.colStart,ne.colEnd,ie,H,w),ye;return _e&&_e.onHeaderCell&&(ye=ne.column.onHeaderCell(_e)),n.createElement(h.a,Object.assign({},ne,{ellipsis:_e.ellipsis,align:_e.align,component:re,prefixCls:b,key:ue[ve]},Oe,{additionalProps:ye,rowType:"header"}))}))}F.displayName="HeaderRow";var C=F;function g(c){var K=[];function H($,Z){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;K[X]=K[X]||[];var b=Z,w=$.filter(Boolean).map(function(W){var ue={key:W.key,className:W.className||"",children:W.title,column:W,colStart:b},ne=1,ve=W.children;return ve&&ve.length>0&&(ne=H(ve,b,X+1).reduce(function(_e,Oe){return _e+Oe},0),ue.hasSubColumns=!0),"colSpan"in W&&(ne=W.colSpan),"rowSpan"in W&&(ue.rowSpan=W.rowSpan),ue.colSpan=ne,ue.colEnd=ue.colStart+ne-1,K[X].push(ue),b+=ne,ne});return w}H(c,0);for(var ie=K.length,fe=function(Z){K[Z].forEach(function(X){!("rowSpan"in X)&&!X.hasSubColumns&&(X.rowSpan=ie-Z)})},re=0;re=0;Z-=1){var X=K[Z],b=H&&H[Z],w=b&&b[o.a];(X||w||$)&&(fe.unshift(n.createElement("col",Object.assign({key:Z,style:{width:X,minWidth:X}},w))),$=!0)}return n.createElement("colgroup",null,fe)}var i=t;function l(c,K){return Object(n.useMemo)(function(){for(var H=[],ie=0;ie1?et-1:0),mt=1;mt=W&&(ze=W-ue),$({scrollLeft:ze/W*(w+2)}),de.current.x=xe.pageX},Be=function(){var xe=Object(Xe.b)(re.current).top,le=xe+re.current.offsetHeight,Ce=document.documentElement.scrollTop+window.innerHeight;le-Object(N.a)()<=Ce||xe>=Ce-Z?ye(function(je){return Object(a.a)(Object(a.a)({},je),{},{isHiddenScrollBar:!0})}):ye(function(je){return Object(a.a)(Object(a.a)({},je),{},{isHiddenScrollBar:!1})})},Ne=function(xe){ye(function(le){return Object(a.a)(Object(a.a)({},le),{},{scrollLeft:xe/w*W||0})})};return n.useImperativeHandle(H,function(){return{setScrollLeft:Ne}}),n.useEffect(function(){var Te=Object(He.a)(document.body,"mouseup",ke,!1),xe=Object(He.a)(document.body,"mousemove",ge,!1);return Be(),function(){Te.remove(),xe.remove()}},[ue,we]),n.useEffect(function(){var Te=Object(He.a)(window,"scroll",Be,!1),xe=Object(He.a)(window,"resize",Be,!1);return function(){Te.remove(),xe.remove()}},[]),n.useEffect(function(){Oe.isHiddenScrollBar||ye(function(Te){var xe,le;return Object(a.a)(Object(a.a)({},Te),{},{scrollLeft:re.current.scrollLeft/((xe=re.current)===null||xe===void 0?void 0:xe.scrollWidth)*((le=re.current)===null||le===void 0?void 0:le.clientWidth)})})},[Oe.isHiddenScrollBar]),w<=W||!ue||Oe.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(N.a)(),width:W,bottom:Z},className:"".concat(b,"-sticky-scroll")},n.createElement("div",{onMouseDown:De,ref:ne,className:P()("".concat(b,"-sticky-scroll-bar"),Object(R.a)({},"".concat(b,"-sticky-scroll-bar-active"),we)),style:{width:"".concat(ue,"px"),transform:"translate3d(".concat(Oe.scrollLeft,"px, 0, 0)")}}))},Re=n.forwardRef(Ue);function Me(c,K){return n.useMemo(function(){var H=!!c;return{isSticky:H,stickyClassName:H?"".concat(K,"-sticky-header"):"",offsetHeader:Object(ae.a)(c)==="object"&&c.offsetHeader||0,offsetScroll:Object(ae.a)(c)==="object"&&c.offsetScroll||0}},[c,K])}var Ve=[],Ye={},Je="rc-table-internal-hook",$e=n.memo(function(c){var K=c.children;return K},function(c,K){return J()(c.props,K.props)?c.pingLeft!==K.pingLeft||c.pingRight!==K.pingRight:!1});function Ge(c){var K,H=c.prefixCls,ie=c.className,fe=c.rowClassName,re=c.style,$=c.data,Z=c.rowKey,X=c.scroll,b=c.tableLayout,w=c.direction,W=c.title,ue=c.footer,ne=c.summary,ve=c.id,_e=c.showHeader,Oe=c.components,ye=c.emptyText,de=c.onRow,We=c.onHeaderRow,Se=c.internalHooks,we=c.transformColumns,Ke=c.internalRefs,ke=c.sticky,De=$||Ve,ge=!!De.length,Be=n.useState(0),Ne=Object(D.a)(Be,2),Te=Ne[0],xe=Ne[1];n.useEffect(function(){xe(Object(N.a)())});var le=n.useMemo(function(){return Object(O.c)(Oe,{})},[Oe]),Ce=n.useCallback(function(Ie,Fe){return Object(O.b)(le,Ie)||Fe},[le]),je=n.useMemo(function(){return typeof Z=="function"?Z:function(Ie){var Fe=Ie&&Ie[Z];return Fe}},[Z]),ze=Object(o.c)(c),pt=ze.expandIcon,rt=ze.expandedRowKeys,Rt=ze.defaultExpandedRowKeys,it=ze.defaultExpandAllRows,ct=ze.expandedRowRender,ht=ze.onExpand,vt=ze.onExpandedRowsChange,Mt=ze.expandRowByClick,ot=ze.rowExpandable,Ct=ze.expandIconColumnIndex,Et=ze.expandedRowClassName,It=ze.childrenColumnName,Dt=ze.indentSize,bt=pt||Le,xt=It||"children",Pt=n.useMemo(function(){return ct?"row":c.expandable&&Se===Je&&c.expandable.__PARENT_RENDER_ICON__||De.some(function(Ie){return Ie&&Object(ae.a)(Ie)==="object"&&Ie[xt]})?"nest":!1},[!!ct,De]),jt=n.useState(function(){return Rt||(it?Pe(De,je,xt):[])}),qe=Object(D.a)(jt,2),tt=qe[0],st=qe[1],et=n.useMemo(function(){return new Set(rt||tt||[])},[rt,tt]),dt=n.useCallback(function(Ie){var Fe=je(Ie,De.indexOf(Ie)),Ze,nt=et.has(Fe);nt?(et.delete(Fe),Ze=Object(ce.a)(et)):Ze=[].concat(Object(ce.a)(et),[Fe]),st(Ze),ht&&ht(!nt,Ie),vt&&vt(Ze)},[je,et,De,ht,vt]),mt=n.useState(0),St=Object(D.a)(mt,2),At=St[0],Nt=St[1],vn=Object(S.b)(Object(a.a)(Object(a.a)(Object(a.a)({},c),ze),{},{expandable:!!ct,expandedKeys:et,getRowKey:je,onTriggerExpand:dt,expandIcon:bt,expandIconColumnIndex:Ct,direction:w}),Se===Je?we:null),Qt=Object(D.a)(vn,2),Wt=Qt[0],Qe=Qt[1],Tt=n.useMemo(function(){return{columns:Wt,flattenColumns:Qe}},[Wt,Qe]),zt=n.useRef(),Zt=n.useRef(),ft=n.useRef(),En=n.useState(!1),qt=Object(D.a)(En,2),$t=qt[0],bn=qt[1],gn=n.useState(!1),en=Object(D.a)(gn,2),tn=en[0],Cn=en[1],xn=x(new Map),nn=Object(D.a)(xn,2),An=nn[0],yn=nn[1],On=Object(O.a)(Qe),an=On.map(function(Ie){return An.get(Ie)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=q(on,Qe.length,w),lt=X&&Object(O.d)(X.y),ut=X&&Object(O.d)(X.x),yt=ut&&Qe.some(function(Ie){var Fe=Ie.fixed;return Fe}),rn=n.useRef(),Ut=Me(ke,H),Ot=Ut.isSticky,_n=Ut.offsetHeader,Rn=Ut.offsetScroll,Mn=Ut.stickyClassName,Ft,wt,Kt;lt&&(wt={overflowY:"scroll",maxHeight:X.y}),ut&&(Ft={overflowX:"auto"},lt||(wt={overflowY:"hidden"}),Kt={width:X.x===!0?"auto":X.x,minWidth:"100%"});var sn=n.useCallback(function(Ie,Fe){yn(function(Ze){var nt=new Map(Ze);return nt.set(Ie,Fe),nt})},[]),Dn=me(null),ln=Object(D.a)(Dn,2),Pn=ln[0],un=ln[1];function Ht(Ie,Fe){if(!Fe)return;typeof Fe=="function"?Fe(Ie):Fe.scrollLeft!==Ie&&(Fe.scrollLeft=Ie)}var gt=function(Fe){var Ze=Fe.currentTarget,nt=Fe.scrollLeft,_t=typeof nt=="number"?nt:Ze.scrollLeft,hn=Ze||Ye;if(!un()||un()===hn){var Jt;Pn(hn),Ht(_t,Zt.current),Ht(_t,ft.current),Ht(_t,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ze){var wn=Ze.scrollWidth,Bn=Ze.clientWidth;bn(_t>0),Cn(_t0?[].concat(Object(a.a)(d),Object(a.a)(y(L).map(function(O){return Object(ce.a)({fixed:M},O)}))):[].concat(Object(a.a)(d),[Object(ce.a)(Object(ce.a)({},T),{},{fixed:M})])},[])}function Y(f){for(var d=!0,T=0;T=0;L-=1){var O=f[L];if(M&&O.fixed!=="right")M=!1;else if(!M&&O.fixed==="right"){Object(oe.a)(!1,"Index ".concat(L+1," of `columns` missing `fixed='right'` prop."));break}}}function N(f){return f.map(function(d){var T=d.fixed,h=Object(ae.a)(d,["fixed"]),M=T;return T==="left"?M="right":T==="right"&&(M="left"),Object(ce.a)({fixed:M},h)})}function p(f,d){var T=f.prefixCls,h=f.columns,M=f.children,L=f.expandable,O=f.expandedKeys,F=f.getRowKey,C=f.onTriggerExpand,g=f.expandIcon,E=f.rowExpandable,r=f.expandIconColumnIndex,o=f.direction,t=f.expandRowByClick,i=D.useMemo(function(){return h||J(M)},[h,M]),l=D.useMemo(function(){if(L){var m,j=r||0,B=i[j],Q=(m={},Object(R.a)(m,u.a,{className:"".concat(T,"-expand-icon-col")}),Object(R.a)(m,"title",""),Object(R.a)(m,"fixed",B?B.fixed:null),Object(R.a)(m,"className","".concat(T,"-row-expand-icon-cell")),Object(R.a)(m,"render",function(U,ee,se){var Ae=F(ee,se),be=O.has(Ae),I=E?E(ee):!0,S=g({prefixCls:T,expanded:be,expandable:I,record:ee,onExpand:C});return t?D.createElement("span",{onClick:function(k){return k.stopPropagation()}},S):S}),m),G=i.slice();return j>=0&&G.splice(j,0,Q),G}return i},[L,i,F,O,g,o]),s=D.useMemo(function(){var m=l;return d&&(m=d(m)),m.length||(m=[{render:function(){return null}}]),m},[d,l,o]),A=D.useMemo(function(){return o==="rtl"?N(y(s)):y(s)},[s,o]);return[s,A]}v.b=p},xiVL:function(V,v){V.exports="data:image/png;base64,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"},"y0+3":function(V,v,e){"use strict";e.d(v,"a",function(){return y}),e.d(v,"b",function(){return N});var R=/margin|padding|width|height|max|min|offset/,a={left:!0,top:!0},ce={cssFloat:1,styleFloat:1,float:1};function ae(p){return p.nodeType===1?p.ownerDocument.defaultView.getComputedStyle(p,null):{}}function D(p,f,d){if(f=f.toLowerCase(),d==="auto"){if(f==="height")return p.offsetHeight;if(f==="width")return p.offsetWidth}return f in a||(a[f]=R.test(f)),a[f]?parseFloat(d)||0:d}function n(p,f){var d=arguments.length,T=ae(p);return f=ce[f]?"cssFloat"in p.style?"cssFloat":"styleFloat":f,d===1?T:D(p,f,T[f]||p.style[f])}function oe(p,f,d){var T=arguments.length;if(f=ce[f]?"cssFloat"in p.style?"cssFloat":"styleFloat":f,T===3)return typeof d=="number"&&R.test(f)&&(d="".concat(d,"px")),p.style[f]=d,d;for(var h in f)f.hasOwnProperty(h)&&oe(p,h,f[h]);return ae(p)}function P(p){return p===document.body?document.documentElement.clientWidth:p.offsetWidth}function u(p){return p===document.body?window.innerHeight||document.documentElement.clientHeight:p.offsetHeight}function J(){var p=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:p,height:f}}function y(){var p=document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight;return{width:p,height:f}}function Y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function N(p){var f=p.getBoundingClientRect(),d=document.documentElement;return{left:f.left+(window.pageXOffset||d.scrollLeft)-(d.clientLeft||document.body.clientLeft||0),top:f.top+(window.pageYOffset||d.scrollTop)-(d.clientTop||document.body.clientTop||0)}}},"yTi+":function(V,v,e){V.exports=e.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(V,v){V.exports="data:image/png;base64,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"},z4EP:function(V,v){V.exports="data:image/png;base64,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"}}]); +`,A=["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"],m={},j;function B(I){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=I.getAttribute("id")||I.getAttribute("data-reactid")||I.getAttribute("name");if(S&&m[te])return m[te];var k=window.getComputedStyle(I),x=k.getPropertyValue("box-sizing")||k.getPropertyValue("-moz-box-sizing")||k.getPropertyValue("-webkit-box-sizing"),me=parseFloat(k.getPropertyValue("padding-bottom"))+parseFloat(k.getPropertyValue("padding-top")),_=parseFloat(k.getPropertyValue("border-bottom-width"))+parseFloat(k.getPropertyValue("border-top-width")),q=A.map(function(pe){return"".concat(pe,":").concat(k.getPropertyValue(pe))}).join(";"),Ee={sizingStyle:q,paddingSize:me,borderSize:_,boxSizing:x};return S&&te&&(m[te]=Ee),Ee}function Q(I){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;j||(j=document.createElement("textarea"),j.setAttribute("tab-index","-1"),j.setAttribute("aria-hidden","true"),document.body.appendChild(j)),I.getAttribute("wrap")?j.setAttribute("wrap",I.getAttribute("wrap")):j.removeAttribute("wrap");var x=B(I,S),me=x.paddingSize,_=x.borderSize,q=x.boxSizing,Ee=x.sizingStyle;j.setAttribute("style","".concat(Ee,";").concat(s)),j.value=I.value||I.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,he=Number.MAX_SAFE_INTEGER,Le=j.scrollHeight,Pe;if(q==="border-box"?Le+=_:q==="content-box"&&(Le-=me),te!==null||k!==null){j.value=" ";var He=j.scrollHeight-me;te!==null&&(pe=He*te,q==="border-box"&&(pe=pe+me+_),Le=Math.max(pe,Le)),k!==null&&(he=He*k,q==="border-box"&&(he=he+me+_),Pe=Le>he?"":"hidden",Le=Math.min(he,Le))}return{height:Le,minHeight:pe,maxHeight:he,overflowY:Pe,resize:"none"}}var G=e("Gytx"),z=e.n(G),U;(function(I){I[I.NONE=0]="NONE",I[I.RESIZING=1]="RESIZING",I[I.RESIZED=2]="RESIZED"})(U||(U={}));var ee=function(I){Object(ae.a)(te,I);var S=Object(M.a)(te);function te(k){var x;return Object(a.a)(this,te),x=S.call(this,k),x.nextFrameActionId=void 0,x.resizeFrameId=void 0,x.textArea=void 0,x.saveTextArea=function(me){x.textArea=me},x.handleResize=function(me){var _=x.state.resizeStatus,q=x.props,Ee=q.autoSize,pe=q.onResize;if(_!==U.NONE)return;typeof pe=="function"&&pe(me),Ee&&x.resizeOnNextFrame()},x.resizeOnNextFrame=function(){cancelAnimationFrame(x.nextFrameActionId),x.nextFrameActionId=requestAnimationFrame(x.resizeTextarea)},x.resizeTextarea=function(){var me=x.props.autoSize;if(!me||!x.textArea)return;var _=me.minRows,q=me.maxRows,Ee=Q(x.textArea,!1,_,q);x.setState({textareaStyles:Ee,resizeStatus:U.RESIZING},function(){cancelAnimationFrame(x.resizeFrameId),x.resizeFrameId=requestAnimationFrame(function(){x.setState({resizeStatus:U.RESIZED},function(){x.resizeFrameId=requestAnimationFrame(function(){x.setState({resizeStatus:U.NONE}),x.fixFirefoxAutoScroll()})})})})},x.renderTextArea=function(){var me=x.props,_=me.prefixCls,q=_===void 0?"rc-textarea":_,Ee=me.autoSize,pe=me.onResize,he=me.className,Le=me.disabled,Pe=x.state,He=Pe.textareaStyles,Xe=Pe.resizeStatus,Ue=Object(t.a)(x.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Re=l()(q,he,Object(P.a)({},"".concat(q,"-disabled"),Le));"value"in Ue&&(Ue.value=Ue.value||"");var De=Object(oe.a)(Object(oe.a)(Object(oe.a)({},x.props.style),He),Xe===U.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return n.createElement(o,{onResize:x.handleResize,disabled:!(Ee||pe)},n.createElement("textarea",Object(R.a)({},Ue,{className:Re,style:De,ref:x.saveTextArea})))},x.state={textareaStyles:{},resizeStatus:U.NONE},x}return Object(ce.a)(te,[{key:"componentDidUpdate",value:function(x){(x.value!==this.props.value||!z()(x.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 x=this.textArea.selectionStart,me=this.textArea.selectionEnd;this.textArea.setSelectionRange(x,me)}}catch(_){}}},{key:"render",value:function(){return this.renderTextArea()}}]),te}(n.Component),se=ee,Ae=function(I){Object(ae.a)(te,I);var S=Object(M.a)(te);function te(k){var x;Object(a.a)(this,te),x=S.call(this,k),x.resizableTextArea=void 0,x.focus=function(){x.resizableTextArea.textArea.focus()},x.saveTextArea=function(_){x.resizableTextArea=_},x.handleChange=function(_){var q=x.props.onChange;x.setValue(_.target.value,function(){x.resizableTextArea.resizeTextarea()}),q&&q(_)},x.handleKeyDown=function(_){var q=x.props,Ee=q.onPressEnter,pe=q.onKeyDown;_.keyCode===13&&Ee&&Ee(_),pe&&pe(_)};var me=typeof k.value=="undefined"||k.value===null?k.defaultValue:k.value;return x.state={value:me},x}return Object(ce.a)(te,[{key:"setValue",value:function(x,me){"value"in this.props||this.setState({value:x},me)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return n.createElement(se,Object(R.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(x){return"value"in x?{value:x.value}:null}}]),te}(n.Component),be=v.default=Ae},ZJlW:function(V,v,e){V.exports={flex_box_center:"flex_box_center___XZ1Hd",flex_space_between:"flex_space_between___2oG4i",flex_box_vertical_center:"flex_box_vertical_center___1UWtb",flex_box_center_end:"flex_box_center_end___1o2xT",flex_box_column:"flex_box_column___SlAE0",list:"list___1HvWe",wrap:"wrap___10sri",lockWrap:"lockWrap___2djiu",li:"li___2W_zn",cover:"cover___2FS3L",img:"img___cyxrw",sign:"sign___1cxDK",name:"name___3tYlu",e:"e___1-orw",unit:"unit___ycOgg",tags:"tags___2FRpJ",tag:"tag___1e0XO"}},bT9E:function(V,v,e){"use strict";e.d(v,"a",function(){return a});var R=e("VTBJ");function a(ce,ae){var M=Object(R.a)({},ce);return Array.isArray(ae)&&ae.forEach(function(n){delete M[n]}),M}},bUJZ:function(V,v){V.exports="data:image/png;base64,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"},biw7:function(V,v,e){"use strict";var R=e("q1tI"),a=e.n(R),ce=R.createContext(null);v.a=ce},cFMs:function(V,v){V.exports="data:image/png;base64,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"},cz0n:function(V,v,e){V.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"}},"f0W+":function(V,v,e){V.exports={flex_box_center:"flex_box_center___2AWuG",flex_space_between:"flex_space_between___4j1zo",flex_box_vertical_center:"flex_box_vertical_center___3dWcm",flex_box_center_end:"flex_box_center_end___qvHJi",flex_box_column:"flex_box_column___3Eier",tabs:"tabs___25WKT",tabsWrap:"tabsWrap___2lPJE",active:"active___gGp9s"}},f9pc:function(V,v,e){V.exports={flex_box_center:"flex_box_center___fO1Sq",flex_space_between:"flex_space_between___2MANs",flex_box_vertical_center:"flex_box_vertical_center___2x-su",flex_box_center_end:"flex_box_center_end___6bZNq",flex_box_column:"flex_box_column___CGTHC",quickPager:"quickPager___2XH6F",disabled:"disabled___2gPWV"}},fyJ8:function(V,v,e){"use strict";var R=e("rePB"),a=e("VTBJ"),ce=e("Ff2n"),ae=e("U8pU"),M=e("q1tI"),n=e.n(M),oe=e("TSYQ"),P=e.n(oe),u=e("c+Xe"),J=e("sR1s");function y(d){return d&&Object(ae.a)(d)==="object"&&!Array.isArray(d)&&!M.isValidElement(d)}function Y(d){return typeof d=="string"?!0:Object(u.c)(d)}function N(d,T){var h,D=d.prefixCls,L=d.className,O=d.record,F=d.index,C=d.dataIndex,g=d.render,E=d.children,r=d.component,o=r===void 0?"td":r,t=d.colSpan,i=d.rowSpan,l=d.fixLeft,s=d.fixRight,A=d.firstFixLeft,m=d.lastFixLeft,j=d.firstFixRight,B=d.lastFixRight,Q=d.appendNode,G=d.additionalProps,z=G===void 0?{}:G,U=d.ellipsis,ee=d.align,se=d.rowType,Ae=d.isSticky,be="".concat(D,"-cell"),I,S;if(E)S=E;else{var te=Object(J.b)(O,C);if(S=te,g){var k=g(te,O,F);y(k)?(S=k.children,I=k.props):S=k}}Object(ae.a)(S)==="object"&&!Array.isArray(S)&&!M.isValidElement(S)&&(S=null),U&&(m||j)&&(S=M.createElement("span",{className:"".concat(be,"-content")},S));var x=I||{},me=x.colSpan,_=x.rowSpan,q=x.style,Ee=x.className,pe=Object(ce.a)(x,["colSpan","rowSpan","style","className"]),he=me!==void 0?me:t,Le=_!==void 0?_:i;if(he===0||Le===0)return null;var Pe={},He=typeof l=="number",Xe=typeof s=="number";He&&(Pe.position="sticky",Pe.left=l),Xe&&(Pe.position="sticky",Pe.right=s);var Ue={};ee&&(Ue.textAlign=ee);var Re,De=U===!0?{showTitle:!0}:U;De&&(De.showTitle||se==="header")&&(typeof S=="string"||typeof S=="number"?Re=S.toString():M.isValidElement(S)&&typeof S.props.children=="string"&&(Re=S.props.children));var Ve=Object(a.a)(Object(a.a)(Object(a.a)({title:Re},pe),z),{},{colSpan:he&&he!==1?he:null,rowSpan:Le&&Le!==1?Le:null,className:P()(be,L,(h={},Object(R.a)(h,"".concat(be,"-fix-left"),He),Object(R.a)(h,"".concat(be,"-fix-left-first"),A),Object(R.a)(h,"".concat(be,"-fix-left-last"),m),Object(R.a)(h,"".concat(be,"-fix-right"),Xe),Object(R.a)(h,"".concat(be,"-fix-right-first"),j),Object(R.a)(h,"".concat(be,"-fix-right-last"),B),Object(R.a)(h,"".concat(be,"-ellipsis"),U),Object(R.a)(h,"".concat(be,"-with-append"),Q),Object(R.a)(h,"".concat(be,"-fix-sticky"),(He||Xe)&&Ae),h),z.className,Ee),style:Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},z.style),Ue),Pe),q),ref:Y(o)?T:null});return M.createElement(o,Object.assign({},Ve),Q,S)}var p=M.forwardRef(N);p.displayName="Cell";var f=M.memo(p,function(d,T){return T.shouldCellUpdate?!T.shouldCellUpdate(T.record,d.record):!1});v.a=f},hW8S:function(V,v,e){"use strict";e.d(v,"a",function(){return ae}),e.d(v,"c",function(){return M}),e.d(v,"b",function(){return n});var R=e("VTBJ"),a=e("Ff2n"),ce=e("Kwbf"),ae="RC_TABLE_INTERNAL_COL_DEFINE";function M(oe){var P=oe.expandable,u=Object(a.a)(oe,["expandable"]);return"expandable"in oe?Object(R.a)(Object(R.a)({},u),P):u}function n(oe){return Object.keys(oe).reduce(function(P,u){return(u.substr(0,5)==="data-"||u.substr(0,5)==="aria-")&&(P[u]=oe[u]),P},{})}},"iL++":function(V,v,e){V.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"}},"lhx+":function(V,v,e){V.exports={flex_box_center:"flex_box_center___3-5Wg",flex_space_between:"flex_space_between___1Unpv",flex_box_vertical_center:"flex_box_vertical_center___1S9SL",flex_box_center_end:"flex_box_center_end___2OCso",flex_box_column:"flex_box_column___3m_UZ",wrap:"wrap___3Cuc9",midWrap:"midWrap___1nBzj",color999:"color999___19Pif",orderWrap:"orderWrap___1GmcP",orderIconWrap:"orderIconWrap___2aa2z",orderAsc:"orderAsc___1b2iZ",orderDesc:"orderDesc___3quHT",color0152d9:"color0152d9___ldoRr",h10:"h10___3NO0d",cursorPointer:"cursorPointer___3VF_N",orderTextWrap:"orderTextWrap___2Qdlx",cardWrap:"cardWrap___Y-ZxK",countWrap:"countWrap___2jHh7",affixContainer:"affixContainer___py2xS",qrcode:"qrcode___kjUuj",img:"img___3RlI5",tips:"tips___22vic",close:"close___1TK7v",text:"text___3oPIa",type:"type___1umwN"}},n6Qo:function(V,v,e){"use strict";e.d(v,"a",function(){return P});var R=e("q1tI"),a=e("biw7"),ce=e("fyJ8");function ae(u){var J=u.className,y=u.index,Y=u.children,N=u.colSpan,p=u.rowSpan,f=R.useContext(a.a),d=f.prefixCls,T=f.fixedInfoList,h=T[y];return R.createElement(ce.a,Object.assign({className:J,index:y,component:"td",prefixCls:d,record:null,dataIndex:null,render:function(){return{children:Y,props:{colSpan:N,rowSpan:p}}}},h))}function M(u){return R.createElement("tr",Object.assign({},u))}function n(u){var J=u.children,y=R.useContext(a.a),Y=y.prefixCls;return R.createElement("tfoot",{className:"".concat(Y,"-summary")},J)}var oe=v.b=n,P={Cell:ae,Row:M}},sR1s:function(V,v,e){"use strict";e.d(v,"b",function(){return ae}),e.d(v,"a",function(){return M}),e.d(v,"c",function(){return n}),e.d(v,"d",function(){return oe});var R=e("U8pU"),a="RC_TABLE_KEY";function ce(P){return P==null?[]:Array.isArray(P)?P:[P]}function ae(P,u){if(!u&&typeof u!="number")return P;for(var J=ce(u),y=P,Y=0;Y1)Object(J.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(L.length===0)return Object(J.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var O=L[0];if(n.isValidElement(O)&&Object(y.c)(O)){var F=O.ref;L[0]=n.cloneElement(O,{ref:Object(y.a)(F,this.setChildNode)})}return L.length===1?L[0]:L.map(function(C,g){return!n.isValidElement(C)||"key"in C&&C.key!==null?C:n.cloneElement(C,{key:"".concat(N,"-").concat(g)})})}}]),T}(n.Component);p.displayName="ResizeObserver",v.a=p},wCXF:function(V,v,e){"use strict";e.d(v,"a",function(){return Je});var R=e("rePB"),a=e("VTBJ"),ce=e("KQm4"),ae=e("U8pU"),M=e("ODXe"),n=e("q1tI"),oe=e("TSYQ"),P=e.n(oe),u=e("Gytx"),J=e.n(u),y=e("Kwbf"),Y=e("t23M"),N=e("qx4F"),p=e("6eGT"),f=e("IBYe"),d=e("Ff2n"),T=e("c+Xe"),h=e("fyJ8"),D=e("biw7");function L(c,K,H,ie,fe){var re=H[c]||{},$=H[K]||{},Z,X;re.fixed==="left"?Z=ie.left[c]:$.fixed==="right"&&(X=ie.right[K]);var b=!1,w=!1,W=!1,ue=!1,ne=H[K+1],ve=H[c-1];if(fe==="rtl"){if(Z!==void 0){var _e=ve&&ve.fixed==="left";ue=!_e}else if(X!==void 0){var Oe=ne&&ne.fixed==="right";W=!Oe}}else if(Z!==void 0){var ye=ne&&ne.fixed==="left";b=!ye}else if(X!==void 0){var de=ve&&ve.fixed==="right";w=!de}return{fixLeft:Z,fixRight:X,lastFixLeft:b,firstFixRight:w,lastFixRight:W,firstFixLeft:ue,isSticky:ie.isSticky}}var O=e("sR1s");function F(c){var K=c.cells,H=c.stickyOffsets,ie=c.flattenColumns,fe=c.rowComponent,re=c.cellComponent,$=c.onHeaderRow,Z=c.index,X=n.useContext(D.a),b=X.prefixCls,w=X.direction,W;$&&(W=$(K.map(function(ne){return ne.column}),Z));var ue=Object(O.a)(K.map(function(ne){return ne.column}));return n.createElement(fe,Object.assign({},W),K.map(function(ne,ve){var _e=ne.column,Oe=L(ne.colStart,ne.colEnd,ie,H,w),ye;return _e&&_e.onHeaderCell&&(ye=ne.column.onHeaderCell(_e)),n.createElement(h.a,Object.assign({},ne,{ellipsis:_e.ellipsis,align:_e.align,component:re,prefixCls:b,key:ue[ve]},Oe,{additionalProps:ye,rowType:"header"}))}))}F.displayName="HeaderRow";var C=F;function g(c){var K=[];function H($,Z){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;K[X]=K[X]||[];var b=Z,w=$.filter(Boolean).map(function(W){var ue={key:W.key,className:W.className||"",children:W.title,column:W,colStart:b},ne=1,ve=W.children;return ve&&ve.length>0&&(ne=H(ve,b,X+1).reduce(function(_e,Oe){return _e+Oe},0),ue.hasSubColumns=!0),"colSpan"in W&&(ne=W.colSpan),"rowSpan"in W&&(ue.rowSpan=W.rowSpan),ue.colSpan=ne,ue.colEnd=ue.colStart+ne-1,K[X].push(ue),b+=ne,ne});return w}H(c,0);for(var ie=K.length,fe=function(Z){K[Z].forEach(function(X){!("rowSpan"in X)&&!X.hasSubColumns&&(X.rowSpan=ie-Z)})},re=0;re=0;Z-=1){var X=K[Z],b=H&&H[Z],w=b&&b[o.a];(X||w||$)&&(fe.unshift(n.createElement("col",Object.assign({key:Z,style:{width:X,minWidth:X}},w))),$=!0)}return n.createElement("colgroup",null,fe)}var i=t;function l(c,K){return Object(n.useMemo)(function(){for(var H=[],ie=0;ie1?et-1:0),mt=1;mt=W&&(ze=W-ue),$({scrollLeft:ze/W*(w+2)}),de.current.x=xe.pageX},Be=function(){var xe=Object(Xe.b)(re.current).top,le=xe+re.current.offsetHeight,Ce=document.documentElement.scrollTop+window.innerHeight;le-Object(N.a)()<=Ce||xe>=Ce-Z?ye(function(je){return Object(a.a)(Object(a.a)({},je),{},{isHiddenScrollBar:!0})}):ye(function(je){return Object(a.a)(Object(a.a)({},je),{},{isHiddenScrollBar:!1})})},Ne=function(xe){ye(function(le){return Object(a.a)(Object(a.a)({},le),{},{scrollLeft:xe/w*W||0})})};return n.useImperativeHandle(H,function(){return{setScrollLeft:Ne}}),n.useEffect(function(){var Te=Object(He.a)(document.body,"mouseup",ke,!1),xe=Object(He.a)(document.body,"mousemove",ge,!1);return Be(),function(){Te.remove(),xe.remove()}},[ue,we]),n.useEffect(function(){var Te=Object(He.a)(window,"scroll",Be,!1),xe=Object(He.a)(window,"resize",Be,!1);return function(){Te.remove(),xe.remove()}},[]),n.useEffect(function(){Oe.isHiddenScrollBar||ye(function(Te){var xe,le;return Object(a.a)(Object(a.a)({},Te),{},{scrollLeft:re.current.scrollLeft/((xe=re.current)===null||xe===void 0?void 0:xe.scrollWidth)*((le=re.current)===null||le===void 0?void 0:le.clientWidth)})})},[Oe.isHiddenScrollBar]),w<=W||!ue||Oe.isHiddenScrollBar?null:n.createElement("div",{style:{height:Object(N.a)(),width:W,bottom:Z},className:"".concat(b,"-sticky-scroll")},n.createElement("div",{onMouseDown:Me,ref:ne,className:P()("".concat(b,"-sticky-scroll-bar"),Object(R.a)({},"".concat(b,"-sticky-scroll-bar-active"),we)),style:{width:"".concat(ue,"px"),transform:"translate3d(".concat(Oe.scrollLeft,"px, 0, 0)")}}))},Re=n.forwardRef(Ue);function De(c,K){return n.useMemo(function(){var H=!!c;return{isSticky:H,stickyClassName:H?"".concat(K,"-sticky-header"):"",offsetHeader:Object(ae.a)(c)==="object"&&c.offsetHeader||0,offsetScroll:Object(ae.a)(c)==="object"&&c.offsetScroll||0}},[c,K])}var Ve=[],Ye={},Je="rc-table-internal-hook",$e=n.memo(function(c){var K=c.children;return K},function(c,K){return J()(c.props,K.props)?c.pingLeft!==K.pingLeft||c.pingRight!==K.pingRight:!1});function Ge(c){var K,H=c.prefixCls,ie=c.className,fe=c.rowClassName,re=c.style,$=c.data,Z=c.rowKey,X=c.scroll,b=c.tableLayout,w=c.direction,W=c.title,ue=c.footer,ne=c.summary,ve=c.id,_e=c.showHeader,Oe=c.components,ye=c.emptyText,de=c.onRow,We=c.onHeaderRow,Se=c.internalHooks,we=c.transformColumns,Ke=c.internalRefs,ke=c.sticky,Me=$||Ve,ge=!!Me.length,Be=n.useState(0),Ne=Object(M.a)(Be,2),Te=Ne[0],xe=Ne[1];n.useEffect(function(){xe(Object(N.a)())});var le=n.useMemo(function(){return Object(O.c)(Oe,{})},[Oe]),Ce=n.useCallback(function(Ie,Fe){return Object(O.b)(le,Ie)||Fe},[le]),je=n.useMemo(function(){return typeof Z=="function"?Z:function(Ie){var Fe=Ie&&Ie[Z];return Fe}},[Z]),ze=Object(o.c)(c),pt=ze.expandIcon,rt=ze.expandedRowKeys,Rt=ze.defaultExpandedRowKeys,it=ze.defaultExpandAllRows,ct=ze.expandedRowRender,ht=ze.onExpand,vt=ze.onExpandedRowsChange,Dt=ze.expandRowByClick,ot=ze.rowExpandable,Ct=ze.expandIconColumnIndex,Et=ze.expandedRowClassName,It=ze.childrenColumnName,Mt=ze.indentSize,bt=pt||Le,xt=It||"children",Pt=n.useMemo(function(){return ct?"row":c.expandable&&Se===Je&&c.expandable.__PARENT_RENDER_ICON__||Me.some(function(Ie){return Ie&&Object(ae.a)(Ie)==="object"&&Ie[xt]})?"nest":!1},[!!ct,Me]),jt=n.useState(function(){return Rt||(it?Pe(Me,je,xt):[])}),qe=Object(M.a)(jt,2),tt=qe[0],st=qe[1],et=n.useMemo(function(){return new Set(rt||tt||[])},[rt,tt]),dt=n.useCallback(function(Ie){var Fe=je(Ie,Me.indexOf(Ie)),Ze,nt=et.has(Fe);nt?(et.delete(Fe),Ze=Object(ce.a)(et)):Ze=[].concat(Object(ce.a)(et),[Fe]),st(Ze),ht&&ht(!nt,Ie),vt&&vt(Ze)},[je,et,Me,ht,vt]),mt=n.useState(0),St=Object(M.a)(mt,2),At=St[0],Nt=St[1],vn=Object(S.b)(Object(a.a)(Object(a.a)(Object(a.a)({},c),ze),{},{expandable:!!ct,expandedKeys:et,getRowKey:je,onTriggerExpand:dt,expandIcon:bt,expandIconColumnIndex:Ct,direction:w}),Se===Je?we:null),Qt=Object(M.a)(vn,2),Wt=Qt[0],Qe=Qt[1],Tt=n.useMemo(function(){return{columns:Wt,flattenColumns:Qe}},[Wt,Qe]),zt=n.useRef(),Zt=n.useRef(),ft=n.useRef(),En=n.useState(!1),qt=Object(M.a)(En,2),$t=qt[0],bn=qt[1],gn=n.useState(!1),en=Object(M.a)(gn,2),tn=en[0],Cn=en[1],xn=x(new Map),nn=Object(M.a)(xn,2),An=nn[0],yn=nn[1],On=Object(O.a)(Qe),an=On.map(function(Ie){return An.get(Ie)}),on=n.useMemo(function(){return an},[an.join("_")]),Lt=q(on,Qe.length,w),lt=X&&Object(O.d)(X.y),ut=X&&Object(O.d)(X.x),yt=ut&&Qe.some(function(Ie){var Fe=Ie.fixed;return Fe}),rn=n.useRef(),Ut=De(ke,H),Ot=Ut.isSticky,_n=Ut.offsetHeader,Rn=Ut.offsetScroll,Dn=Ut.stickyClassName,Ft,wt,Kt;lt&&(wt={overflowY:"scroll",maxHeight:X.y}),ut&&(Ft={overflowX:"auto"},lt||(wt={overflowY:"hidden"}),Kt={width:X.x===!0?"auto":X.x,minWidth:"100%"});var sn=n.useCallback(function(Ie,Fe){yn(function(Ze){var nt=new Map(Ze);return nt.set(Ie,Fe),nt})},[]),Mn=me(null),ln=Object(M.a)(Mn,2),Pn=ln[0],un=ln[1];function Ht(Ie,Fe){if(!Fe)return;typeof Fe=="function"?Fe(Ie):Fe.scrollLeft!==Ie&&(Fe.scrollLeft=Ie)}var gt=function(Fe){var Ze=Fe.currentTarget,nt=Fe.scrollLeft,_t=typeof nt=="number"?nt:Ze.scrollLeft,hn=Ze||Ye;if(!un()||un()===hn){var Jt;Pn(hn),Ht(_t,Zt.current),Ht(_t,ft.current),Ht(_t,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ze){var wn=Ze.scrollWidth,Bn=Ze.clientWidth;bn(_t>0),Cn(_t0?[].concat(Object(a.a)(d),Object(a.a)(y(L).map(function(O){return Object(ce.a)({fixed:D},O)}))):[].concat(Object(a.a)(d),[Object(ce.a)(Object(ce.a)({},T),{},{fixed:D})])},[])}function Y(f){for(var d=!0,T=0;T=0;L-=1){var O=f[L];if(D&&O.fixed!=="right")D=!1;else if(!D&&O.fixed==="right"){Object(oe.a)(!1,"Index ".concat(L+1," of `columns` missing `fixed='right'` prop."));break}}}function N(f){return f.map(function(d){var T=d.fixed,h=Object(ae.a)(d,["fixed"]),D=T;return T==="left"?D="right":T==="right"&&(D="left"),Object(ce.a)({fixed:D},h)})}function p(f,d){var T=f.prefixCls,h=f.columns,D=f.children,L=f.expandable,O=f.expandedKeys,F=f.getRowKey,C=f.onTriggerExpand,g=f.expandIcon,E=f.rowExpandable,r=f.expandIconColumnIndex,o=f.direction,t=f.expandRowByClick,i=M.useMemo(function(){return h||J(D)},[h,D]),l=M.useMemo(function(){if(L){var m,j=r||0,B=i[j],Q=(m={},Object(R.a)(m,u.a,{className:"".concat(T,"-expand-icon-col")}),Object(R.a)(m,"title",""),Object(R.a)(m,"fixed",B?B.fixed:null),Object(R.a)(m,"className","".concat(T,"-row-expand-icon-cell")),Object(R.a)(m,"render",function(U,ee,se){var Ae=F(ee,se),be=O.has(Ae),I=E?E(ee):!0,S=g({prefixCls:T,expanded:be,expandable:I,record:ee,onExpand:C});return t?M.createElement("span",{onClick:function(k){return k.stopPropagation()}},S):S}),m),G=i.slice();return j>=0&&G.splice(j,0,Q),G}return i},[L,i,F,O,g,o]),s=M.useMemo(function(){var m=l;return d&&(m=d(m)),m.length||(m=[{render:function(){return null}}]),m},[d,l,o]),A=M.useMemo(function(){return o==="rtl"?N(y(s)):y(s)},[s,o]);return[s,A]}v.b=p},xiVL:function(V,v){V.exports="data:image/png;base64,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"},"y0+3":function(V,v,e){"use strict";e.d(v,"a",function(){return y}),e.d(v,"b",function(){return N});var R=/margin|padding|width|height|max|min|offset/,a={left:!0,top:!0},ce={cssFloat:1,styleFloat:1,float:1};function ae(p){return p.nodeType===1?p.ownerDocument.defaultView.getComputedStyle(p,null):{}}function M(p,f,d){if(f=f.toLowerCase(),d==="auto"){if(f==="height")return p.offsetHeight;if(f==="width")return p.offsetWidth}return f in a||(a[f]=R.test(f)),a[f]?parseFloat(d)||0:d}function n(p,f){var d=arguments.length,T=ae(p);return f=ce[f]?"cssFloat"in p.style?"cssFloat":"styleFloat":f,d===1?T:M(p,f,T[f]||p.style[f])}function oe(p,f,d){var T=arguments.length;if(f=ce[f]?"cssFloat"in p.style?"cssFloat":"styleFloat":f,T===3)return typeof d=="number"&&R.test(f)&&(d="".concat(d,"px")),p.style[f]=d,d;for(var h in f)f.hasOwnProperty(h)&&oe(p,h,f[h]);return ae(p)}function P(p){return p===document.body?document.documentElement.clientWidth:p.offsetWidth}function u(p){return p===document.body?window.innerHeight||document.documentElement.clientHeight:p.offsetHeight}function J(){var p=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:p,height:f}}function y(){var p=document.documentElement.clientWidth,f=window.innerHeight||document.documentElement.clientHeight;return{width:p,height:f}}function Y(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function N(p){var f=p.getBoundingClientRect(),d=document.documentElement;return{left:f.left+(window.pageXOffset||d.scrollLeft)-(d.clientLeft||document.body.clientLeft||0),top:f.top+(window.pageYOffset||d.scrollTop)-(d.clientTop||document.body.clientTop||0)}}},"yTi+":function(V,v,e){V.exports=e.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(V,v){V.exports="data:image/png;base64,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"},z4EP:function(V,v){V.exports="data:image/png;base64,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"}}]); diff --git a/umi.ffc4f1a6.js b/umi.00d8ef2c.js similarity index 99% rename from umi.ffc4f1a6.js rename to umi.00d8ef2c.js index e4f429a134..402a8a0348 100644 --- a/umi.ffc4f1a6.js +++ b/umi.00d8ef2c.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