2 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.SemiUI=t(require("react"),require("react-dom")):e.SemiUI=t(e.React,e.ReactDOM)}(self,((__WEBPACK_EXTERNAL_MODULE_neV8__,__WEBPACK_EXTERNAL_MODULE_sw63__)=>(()=>{var __webpack_modules__={yBkX:(e,t,n)=>{"use strict";const r=n("43tb"),i=/^[\da-fA-F]+$/,s=/^\d+$/,a=new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){const n=e.tokTypes,r=e.TokContext,i=e.TokenType,s=new r("<tag",!1),o=new r("</tag",!1),l=new r("<tag>...</tag>",!0,!0),c={tc_oTag:s,tc_cTag:o,tc_expr:l},h={jsxName:new i("jsxName"),jsxText:new i("jsxText",{beforeExpr:!0}),jsxTagStart:new i("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new i("jsxTagEnd")};h.jsxTagStart.updateContext=function(){this.context.push(l),this.context.push(s),this.exprAllowed=!1},h.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===s&&e===n.slash||t===o?(this.context.pop(),this.exprAllowed=this.curContext()===l):this.exprAllowed=!0},t={tokContexts:c,tokTypes:h},a.set(e,t)}return t}function l(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?l(e.object)+"."+l(e.property):void 0:e}e.exports=function(e){return e=e||{},function(t){return function(e,t){const a=t.acorn||n("88MF"),c=o(a),h=a.tokTypes,u=c.tokTypes,d=a.tokContexts,p=c.tokContexts.tc_oTag,f=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,g=a.isNewLine,y=a.isIdentifierStart,v=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?60===n&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===n?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:g(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let r=this.input.charCodeAt(this.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):g(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(h.string,t)}jsx_readEntity(){let e,t="",n=0,a=this.input[this.pos];"&"!==a&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos<this.input.length&&n++<10;){if(a=this.input[this.pos++],";"===a){"#"===t[0]?"x"===t[1]?(t=t.substr(2),i.test(t)&&(e=String.fromCharCode(parseInt(t,16)))):(t=t.substr(1),s.test(t)&&(e=String.fromCharCode(parseInt(t,10)))):e=r[t];break}t+=a}return e||(this.pos=o,"&")}jsx_readWord(){let e,t=this.pos;do{e=this.input.charCodeAt(++this.pos)}while(v(e)||45===e);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(h.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return"";let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type!==h.dot||"JSXNamespacedName"!==r.type||e.allowNamespacedObjects||this.unexpected();this.eat(h.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,"JSXMemberExpression")}return r}jsx_parseAttributeValue(){switch(this.type){case h.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case u.jsxTagStart:case h.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===h.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(h.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(h.braceL)?(this.expect(h.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(h.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(h.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==h.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(h.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),s=null;if(!i.selfClosing){e:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(h.slash)){s=this.jsx_parseClosingElementAt(e,t);break e}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case h.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}l(s.name)!==l(i.name)&&this.raise(s.start,"Expected corresponding JSX closing tag for <"+l(i.name)+">")}let a=i.name?"Element":"Fragment";return n["opening"+a]=i,n["closing"+a]=s,n.children=r,this.type===h.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+a)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===p||t===f){if(y(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(u.jsxTagEnd);if((34===e||39===e)&&t==p)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==h.braceL){var t=this.curContext();t==p?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==h.slash||e!==u.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(f),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return o(n("88MF")).tokTypes},configurable:!0,enumerable:!0})},"43tb":e=>{e.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},"9Tt7":e=>{var t=.1,n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function s(e){return 3*e}function a(e,t,n){return((r(t,n)*e+i(t,n))*e+s(t))*e}function o(e,t,n){return 3*r(t,n)*e*e+2*i(t,n)*e+s(t)}function l(e){return e}e.exports=function(e,r,i,s){if(!(0<=e&&e<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===r&&i===s)return l;for(var c=n?new Float32Array(11):new Array(11),h=0;h<11;++h)c[h]=a(h*t,e,i);function u(n){for(var r=0,s=1;10!==s&&c[s]<=n;++s)r+=t;--s;var l=r+(n-c[s])/(c[s+1]-c[s])*t,h=o(l,e,i);return h>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var s=o(t,n,r);if(0===s)return t;t-=(a(t,n,r)-e)/s}return t}(n,l,e,i):0===h?l:function(e,t,n,r,i){var s,o,l=0;do{(s=a(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o}while(Math.abs(s)>1e-7&&++l<10);return o}(n,r,r+t,e,i)}return function(e){return 0===e?0:1===e?1:a(u(e),r,s)}}},"7O4Y":(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function i(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}n.r(t),n.d(t,{clsx:()=>i,default:()=>s});const s=i},"HDX/":e=>{"use strict";const t=(e,{target:t=document.body}={})=>{const n=document.createElement("textarea"),r=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";const i=document.getSelection();let s=!1;i.rangeCount>0&&(s=i.getRangeAt(0)),t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch(e){}return n.remove(),s&&(i.removeAllRanges(),i.addRange(s)),r&&r.focus(),a};e.exports=t,e.exports.default=t},pnws:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e<0?"-":"",r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r},e.exports=t.default},"t+Lu":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},e.exports=t.default},"/urY":(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)({},e)};var i=r(n("t+Lu"));e.exports=t.default},"H/a7":(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("OboX")).default;t.default=i,e.exports=t.default},"7BF+":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};var n={}},hw2v:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("ww8C")),s=r(n("vnVX")),a=r(n("cQI/")),o=r(n("xV2z")),l=r(n("DKl7")),c=r(n("pnws")),h=r(n("+yel")),u="midnight",d="noon",p="morning",f="afternoon",m="evening",g="night";function y(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=r%60;if(0===s)return n+String(i);var a=t||"";return n+String(i)+a+(0,c.default)(s,2)}function v(e,t){return e%60==0?(e>0?"-":"+")+(0,c.default)(Math.abs(e)/60,2):b(e,t)}function b(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+(0,c.default)(Math.floor(i/60),2)+n+(0,c.default)(i%60,2)}var x={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return h.default.y(e,t)},Y:function(e,t,n,r){var i=(0,l.default)(e,r),s=i>0?i:1-i;if("YY"===t){var a=s%100;return(0,c.default)(a,2)}return"Yo"===t?n.ordinalNumber(s,{unit:"year"}):(0,c.default)(s,t.length)},R:function(e,t){var n=(0,a.default)(e);return(0,c.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,c.default)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,c.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,c.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return h.default.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,c.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,o.default)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,c.default)(i,t.length)},I:function(e,t,n){var r=(0,s.default)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,c.default)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.default.d(e,t)},D:function(e,t,n){var r=(0,i.default)(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,c.default)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return(0,c.default)(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return(0,c.default)(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,c.default)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?d:0===i?u:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?m:i>=12?f:i>=4?p:g,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return h.default.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.default.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,c.default)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,c.default)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.default.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.default.s(e,t)},S:function(e,t){return h.default.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return v(i);case"XXXX":case"XX":return b(i);default:return b(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return v(i);case"xxxx":case"xx":return b(i);default:return b(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+y(i,":");default:return"GMT"+b(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+y(i,":");default:return"GMT"+b(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e,s=Math.floor(i.getTime()/1e3);return(0,c.default)(s,t.length)},T:function(e,t,n,r){var i=(r._originalDate||e).getTime();return(0,c.default)(i,t.length)}};t.default=x,e.exports=t.default},"+yel":(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("pnws")),s={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return(0,i.default)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,i.default)(n+1,2)},d:function(e,t){return(0,i.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,i.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,i.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,i.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,i.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,n-3));return(0,i.default)(s,t.length)}};t.default=s,e.exports=t.default},PhxK:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},i={p:r,P:function(e,t){var i,s=e.match(/(P+)(p+)?/)||[],a=s[1],o=s[2];if(!o)return n(e,t);switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",n(a,t)).replace("{{time}}",r(o,t))}};t.default=i,e.exports=t.default},"l/Ck":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default},ww8C:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,s.default)(1,arguments);var t=(0,i.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/a)+1};var i=r(n("qxgV")),s=r(n("8EaA")),a=864e5;e.exports=t.default},vnVX:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),n=(0,s.default)(t).getTime()-(0,a.default)(t).getTime();return Math.round(n/l)+1};var i=r(n("qxgV")),s=r(n("SwUm")),a=r(n("aBaL")),o=r(n("8EaA")),l=6048e5;e.exports=t.default},"cQI/":(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,s.default)(1,arguments);var t=(0,i.default)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=(0,a.default)(r),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,a.default)(l);return t.getTime()>=o.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1};var i=r(n("qxgV")),s=r(n("8EaA")),a=r(n("SwUm"));e.exports=t.default},xV2z:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var n=(0,i.default)(e),r=(0,s.default)(n,t).getTime()-(0,a.default)(n,t).getTime();return Math.round(r/l)+1};var i=r(n("qxgV")),s=r(n("ivxi")),a=r(n("ZfxR")),o=r(n("8EaA")),l=6048e5;e.exports=t.default},DKl7:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,c,h,u,d,p,f;(0,s.default)(1,arguments);var m=(0,i.default)(e),g=m.getUTCFullYear(),y=(0,l.getDefaultOptions)(),v=(0,o.default)(null!==(n=null!==(r=null!==(c=null!==(h=null==t?void 0:t.firstWeekContainsDate)&&void 0!==h?h:null==t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==c?c:y.firstWeekContainsDate)&&void 0!==r?r:null===(p=y.locale)||void 0===p||null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,v),b.setUTCHours(0,0,0,0);var x=(0,a.default)(b,t),w=new Date(0);w.setUTCFullYear(g,0,v),w.setUTCHours(0,0,0,0);var C=(0,a.default)(w,t);return m.getTime()>=x.getTime()?g+1:m.getTime()>=C.getTime()?g:g-1};var i=r(n("qxgV")),s=r(n("8EaA")),a=r(n("ivxi")),o=r(n("yuhP")),l=n("7BF+");e.exports=t.default},pJo6:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return-1!==n.indexOf(e)},t.isProtectedWeekYearToken=function(e){return-1!==r.indexOf(e)},t.throwProtectedError=function(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var n=["D","DD"],r=["YY","YYYY"]},"8EaA":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},SwUm:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,s.default)(1,arguments);var t=(0,i.default)(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t};var i=r(n("qxgV")),s=r(n("8EaA"));e.exports=t.default},aBaL:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,i.default)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,s.default)(n)};var i=r(n("cQI/")),s=r(n("SwUm")),a=r(n("8EaA"));e.exports=t.default},ivxi:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,l,c,h,u,d,p;(0,s.default)(1,arguments);var f=(0,o.getDefaultOptions)(),m=(0,a.default)(null!==(n=null!==(r=null!==(l=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t||null===(h=t.locale)||void 0===h||null===(u=h.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==r?r:null===(d=f.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,i.default)(e),y=g.getUTCDay(),v=(y<m?7:0)+y-m;return g.setUTCDate(g.getUTCDate()-v),g.setUTCHours(0,0,0,0),g};var i=r(n("qxgV")),s=r(n("8EaA")),a=r(n("yuhP")),o=n("7BF+");e.exports=t.default},ZfxR:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,c,h,u,d,p,f;(0,s.default)(1,arguments);var m=(0,l.getDefaultOptions)(),g=(0,o.default)(null!==(n=null!==(r=null!==(c=null!==(h=null==t?void 0:t.firstWeekContainsDate)&&void 0!==h?h:null==t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==c?c:m.firstWeekContainsDate)&&void 0!==r?r:null===(p=m.locale)||void 0===p||null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),y=(0,i.default)(e,t),v=new Date(0);return v.setUTCFullYear(y,0,g),v.setUTCHours(0,0,0,0),(0,a.default)(v,t)};var i=r(n("DKl7")),s=r(n("8EaA")),a=r(n("ivxi")),o=r(n("yuhP")),l=n("7BF+");e.exports=t.default},yuhP:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default},nY5w:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(2,arguments);var n=(0,s.default)(e).getTime(),r=(0,i.default)(t);return new Date(n+r)};var i=r(n("yuhP")),s=r(n("qxgV")),a=r(n("8EaA"));e.exports=t.default},RTm1:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,x,w,C,E,S,_,k,P,O,T,I,D,A,R,N,M,F;(0,d.default)(2,arguments);var L=String(t),j=(0,p.getDefaultOptions)(),V=null!==(r=null!==(x=null==n?void 0:n.locale)&&void 0!==x?x:j.locale)&&void 0!==r?r:f.default,$=(0,u.default)(null!==(w=null!==(C=null!==(E=null!==(S=null==n?void 0:n.firstWeekContainsDate)&&void 0!==S?S:null==n||null===(_=n.locale)||void 0===_||null===(k=_.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==E?E:j.firstWeekContainsDate)&&void 0!==C?C:null===(P=j.locale)||void 0===P||null===(O=P.options)||void 0===O?void 0:O.firstWeekContainsDate)&&void 0!==w?w:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=(0,u.default)(null!==(T=null!==(I=null!==(D=null!==(A=null==n?void 0:n.weekStartsOn)&&void 0!==A?A:null==n||null===(R=n.locale)||void 0===R||null===(N=R.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==D?D:j.weekStartsOn)&&void 0!==I?I:null===(M=j.locale)||void 0===M||null===(F=M.options)||void 0===F?void 0:F.weekStartsOn)&&void 0!==T?T:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!V.localize)throw new RangeError("locale must contain localize property");if(!V.formatLong)throw new RangeError("locale must contain formatLong property");var z=(0,a.default)(e);if(!(0,i.default)(z))throw new RangeError("Invalid time value");var H=(0,c.default)(z),K=(0,s.default)(z,H),U={firstWeekContainsDate:$,weekStartsOn:B,locale:V,_originalDate:z};return L.match(g).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,l.default[t])(e,V.formatLong):e})).join("").match(m).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(y);if(!t)return e;return t[1].replace(v,"'")}(r);var s=o.default[i];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!(0,h.isProtectedWeekYearToken)(r)||(0,h.throwProtectedError)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,h.isProtectedDayOfYearToken)(r)||(0,h.throwProtectedError)(r,t,String(e)),s(K,r,V.localize,U);if(i.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")};var i=r(n("FsQw")),s=r(n("vcBr")),a=r(n("qxgV")),o=r(n("hw2v")),l=r(n("PhxK")),c=r(n("l/Ck")),h=n("pJo6"),u=r(n("yuhP")),d=r(n("8EaA")),p=n("7BF+"),f=r(n("H/a7")),m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,y=/^'([^]*?)'?$/,v=/''/g,b=/[a-zA-Z]/;e.exports=t.default},qJ24:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,s.default)(1,arguments),e instanceof Date||"object"===(0,i.default)(e)&&"[object Date]"===Object.prototype.toString.call(e)};var i=r(n("gpnx")),s=r(n("8EaA"));e.exports=t.default},FsQw:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,a.default)(1,arguments),!(0,i.default)(e)&&"number"!=typeof e)return!1;var t=(0,s.default)(e);return!isNaN(Number(t))};var i=r(n("qJ24")),s=r(n("qxgV")),a=r(n("8EaA"));e.exports=t.default},"kQ/h":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}},e.exports=t.default},tImS:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=null!=n&&n.width?String(n.width):i;r=e.formattingValues[s]||e.formattingValues[i]}else{var a=e.defaultWidth,o=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default},NgYr:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;var a,o=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(o)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(o)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(o.length)}}},e.exports=t.default},Wud5:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],s=t.match(e.parsePattern);if(!s)return null;var a=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}},e.exports=t.default},sSg2:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(e,t,r){var i,s=n[e];return i="string"==typeof s?s:1===t?s.one:s.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};t.default=r,e.exports=t.default},OYyg:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("kQ/h")),s={date:(0,i.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=s,e.exports=t.default},XKxo:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(e,t,r,i){return n[e]};t.default=r,e.exports=t.default},e3Ae:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("tImS")),s={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,i.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,i.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,i.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,i.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,i.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};t.default=s,e.exports=t.default},yclL:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("NgYr")),s={ordinalNumber:(0,r(n("Wud5")).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,i.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,i.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};t.default=s,e.exports=t.default},OboX:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("sSg2")),s=r(n("OYyg")),a=r(n("XKxo")),o=r(n("e3Ae")),l=r(n("yclL")),c={code:"en-US",formatDistance:i.default,formatLong:s.default,formatRelative:a.default,localize:o.default,match:l.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=c,e.exports=t.default},vcBr:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)(2,arguments);var n=(0,a.default)(t);return(0,i.default)(e,-n)};var i=r(n("nY5w")),s=r(n("8EaA")),a=r(n("yuhP"));e.exports=t.default},qxgV:(e,t,n)=>{"use strict";var r=n("nw+9").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,s.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,i.default)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))};var i=r(n("gpnx")),s=r(n("8EaA"));e.exports=t.default},YNvz:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!s)return!1;for(r in e);return void 0===r||t.call(e,r)},o=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,h,u=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},d=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=l(u,n),u!==(i=l(t,n))&&(f&&i&&(a(i)||(c=s(i)))?(c?(c=!1,h=r&&s(r)?r:[]):h=r&&a(r)?r:{},o(u,{name:n,newValue:e(f,h,i)})):void 0!==i&&o(u,{name:n,newValue:i}));return u}},Wxh1:(e,t,n)=>{var r=n("c4IM");function i(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var s,a,o=r(e),l="function"==typeof t,c=0,h=o.length;c<h;c++)s=(n=o[c]).property,a=n.value,l?t(s,a,n):a&&(i||(i={}),i[s]=a);return i}e.exports=i,e.exports.default=i},c4IM:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function h(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,d=1;function p(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:u,column:d};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:u,column:d},this.source=l.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(l.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=d,n.source=e,!l.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){v(r)}function x(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function C(){var e=f(),n=v(i);if(n){if(w(),!v(s))return y("property missing ':'");var r=v(a),l=e({type:"declaration",property:h(n[0].replace(t,c)),value:r?h(r[0].replace(t,c)):c});return v(o),l}}return b(),function(){var e,t=[];for(x(t);e=C();)!1!==e&&(t.push(e),x(t));return t}()}},QF3D:(e,t,n)=>{var r=n("vxC8")(n("IBsm"),"DataView");e.exports=r},Tv3l:(e,t,n)=>{var r=n("2Fbm"),i=n("VPai"),s=n("+fUG"),a=n("QMz8"),o=n("mUsV");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},"+ooz":(e,t,n)=>{var r=n("8Zrg"),i=n("kwr2"),s=n("5VYK"),a=n("Coc+"),o=n("LzM7");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},qeCs:(e,t,n)=>{var r=n("vxC8")(n("IBsm"),"Map");e.exports=r},hyzI:(e,t,n)=>{var r=n("m5o6"),i=n("d0UJ"),s=n("eask"),a=n("9SKQ"),o=n("e63W");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=a,l.prototype.set=o,e.exports=l},IS0S:(e,t,n)=>{var r=n("vxC8")(n("IBsm"),"Promise");e.exports=r},OBn4:(e,t,n)=>{var r=n("vxC8")(n("IBsm"),"Set");e.exports=r},"JBn+":(e,t,n)=>{var r=n("hyzI"),i=n("qjF7"),s=n("cEmw");function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=s,e.exports=a},HsnV:(e,t,n)=>{var r=n("+ooz"),i=n("RNlM"),s=n("E4ao"),a=n("BSqe"),o=n("L6um"),l=n("4/ik");function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=s,c.prototype.get=a,c.prototype.has=o,c.prototype.set=l,e.exports=c},Syyo:(e,t,n)=>{var r=n("IBsm").Symbol;e.exports=r},mGzy:(e,t,n)=>{var r=n("IBsm").Uint8Array;e.exports=r},"4+Vk":(e,t,n)=>{var r=n("vxC8")(n("IBsm"),"WeakMap");e.exports=r},zaNA:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},LmOH:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},W0vE:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var a=e[n];t(a,n,e)&&(s[i++]=a)}return s}},OfKG:(e,t,n)=>{var r=n("c7Qd");e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},"sCL+":e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},rmhs:(e,t,n)=>{var r=n("2ZvR"),i=n("bvyN"),s=n("wxYD"),a=n("3ajY"),o=n("pnw1"),l=n("Qd2C"),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=s(e),h=!n&&i(e),u=!n&&!h&&a(e),d=!n&&!h&&!u&&l(e),p=n||h||u||d,f=p?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||u&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||o(g,m))||f.push(g);return f}},H87J:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},"y/9h":e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},myUI:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},"2wsP":(e,t,n)=>{var r=n("EI7Z")("length");e.exports=r},gEzS:e=>{e.exports=function(e){return e.split("")}},amiU:(e,t,n)=>{var r=n("wC3K"),i=n("pPzx");e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},c72w:(e,t,n)=>{var r=n("wC3K"),i=n("pPzx"),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];s.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},"6QIk":(e,t,n)=>{var r=n("pPzx");e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},tPQG:(e,t,n)=>{var r=n("LtXa"),i=n("BlJA");e.exports=function(e,t){return e&&r(t,i(t),e)}},QrYh:(e,t,n)=>{var r=n("LtXa"),i=n("zH+d");e.exports=function(e,t){return e&&r(t,i(t),e)}},wC3K:(e,t,n)=>{var r=n("Pz+s");e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},kn3Q:(e,t,n)=>{var r=n("HsnV"),i=n("LmOH"),s=n("c72w"),a=n("tPQG"),o=n("QrYh"),l=n("Grae"),c=n("QT01"),h=n("AjPR"),u=n("BjSP"),d=n("tlBq"),p=n("zF5n"),f=n("kkM+"),m=n("3Qlq"),g=n("7No3"),y=n("sD1O"),v=n("wxYD"),b=n("3ajY"),x=n("NbvU"),w=n("tQYX"),C=n("/iLo"),E=n("BlJA"),S=n("zH+d"),_="[object Arguments]",k="[object Function]",P="[object Object]",O={};O[_]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[P]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[k]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,T,I,D,A){var R,N=1&n,M=2&n,F=4&n;if(T&&(R=D?T(t,I,D,A):T(t)),void 0!==R)return R;if(!w(t))return t;var L=v(t);if(L){if(R=m(t),!N)return c(t,R)}else{var j=f(t),V=j==k||"[object GeneratorFunction]"==j;if(b(t))return l(t,N);if(j==P||j==_||V&&!D){if(R=M||V?{}:y(t),!N)return M?u(t,o(R,t)):h(t,a(R,t))}else{if(!O[j])return D?t:{};R=g(t,j,N)}}A||(A=new r);var $=A.get(t);if($)return $;A.set(t,R),C(t)?t.forEach((function(r){R.add(e(r,n,T,r,t,A))})):x(t)&&t.forEach((function(r,i){R.set(i,e(r,n,T,i,t,A))}));var B=L?void 0:(F?M?p:d:M?S:E)(t);return i(B||t,(function(r,i){B&&(r=t[i=r]),s(R,i,e(r,n,T,i,t,A))})),R}},vGGS:(e,t,n)=>{var r=n("tQYX"),i=Object.create,s=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=s},"X+YX":(e,t,n)=>{var r=n("JBn+"),i=n("OfKG"),s=n("sCL+"),a=n("H87J"),o=n("SU8Q"),l=n("S0iI");e.exports=function(e,t,n,c){var h=-1,u=i,d=!0,p=e.length,f=[],m=t.length;if(!p)return f;n&&(t=a(t,o(n))),c?(u=s,d=!1):t.length>=200&&(u=l,d=!1,t=new r(t));e:for(;++h<p;){var g=e[h],y=null==n?g:n(g);if(g=c||0!==g?g:0,d&&y==y){for(var v=m;v--;)if(t[v]===y)continue e;f.push(g)}else u(t,y,c)||f.push(g)}return f}},Q4oW:(e,t,n)=>{var r=n("zKkv"),i=n("bz5b")(r);e.exports=i},JElN:(e,t,n)=>{var r=n("a88S");e.exports=function(e,t,n){for(var i=-1,s=e.length;++i<s;){var a=e[i],o=t(a);if(null!=o&&(void 0===l?o==o&&!r(o):n(o,l)))var l=o,c=a}return c}},sjzV:(e,t,n)=>{var r=n("Q4oW");e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},DuXo:e=>{e.exports=function(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}},YpBQ:(e,t,n)=>{var r=n("y/9h"),i=n("oCTG");e.exports=function e(t,n,s,a,o){var l=-1,c=t.length;for(s||(s=i),o||(o=[]);++l<c;){var h=t[l];n>0&&s(h)?n>1?e(h,n-1,s,a,o):r(o,h):a||(o[o.length]=h)}return o}},UdtX:(e,t,n)=>{var r=n("RFxK")();e.exports=r},zKkv:(e,t,n)=>{var r=n("UdtX"),i=n("BlJA");e.exports=function(e,t){return e&&r(e,t,i)}},w2Tz:(e,t,n)=>{var r=n("xoyU"),i=n("Ypsa");e.exports=function(e,t){for(var n=0,s=(t=r(t,e)).length;null!=e&&n<s;)e=e[i(t[n++])];return n&&n==s?e:void 0}},pIod:(e,t,n)=>{var r=n("y/9h"),i=n("wxYD");e.exports=function(e,t,n){var s=t(e);return i(e)?s:r(s,n(e))}},Dhk8:(e,t,n)=>{var r=n("Syyo"),i=n("KCLV"),s=n("kHoZ"),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):s(e)}},FaiA:e=>{e.exports=function(e,t){return e>t}},SJov:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},JYmt:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},c7Qd:(e,t,n)=>{var r=n("DuXo"),i=n("z9Jh"),s=n("n1QJ");e.exports=function(e,t,n){return t==t?s(e,t,n):r(e,i,n)}},A0wc:e=>{e.exports=function(e,t,n,r){for(var i=n-1,s=e.length;++i<s;)if(r(e[i],t))return i;return-1}},"/30y":(e,t,n)=>{var r=n("Dhk8"),i=n("tLQN");e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},pPU8:(e,t,n)=>{var r=n("Dhk8"),i=n("tLQN");e.exports=function(e){return i(e)&&"[object Date]"==r(e)}},NYSw:(e,t,n)=>{var r=n("BqUW"),i=n("tLQN");e.exports=function e(t,n,s,a,o){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,s,a,e,o))}},BqUW:(e,t,n)=>{var r=n("HsnV"),i=n("ZZ+W"),s=n("R3gn"),a=n("yZHP"),o=n("kkM+"),l=n("wxYD"),c=n("3ajY"),h=n("Qd2C"),u="[object Arguments]",d="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,y){var v=l(e),b=l(t),x=v?d:o(e),w=b?d:o(t),C=(x=x==u?p:x)==p,E=(w=w==u?p:w)==p,S=x==w;if(S&&c(e)){if(!c(t))return!1;v=!0,C=!1}if(S&&!C)return y||(y=new r),v||h(e)?i(e,t,n,m,g,y):s(e,t,x,n,m,g,y);if(!(1&n)){var _=C&&f.call(e,"__wrapped__"),k=E&&f.call(t,"__wrapped__");if(_||k){var P=_?e.value():e,O=k?t.value():t;return y||(y=new r),g(P,O,n,m,y)}}return!!S&&(y||(y=new r),a(e,t,n,m,g,y))}},gEWz:(e,t,n)=>{var r=n("kkM+"),i=n("tLQN");e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},ZjRn:(e,t,n)=>{var r=n("HsnV"),i=n("NYSw");e.exports=function(e,t,n,s){var a=n.length,o=a,l=!s;if(null==e)return!o;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){var h=(c=n[a])[0],u=e[h],d=c[1];if(l&&c[2]){if(void 0===u&&!(h in e))return!1}else{var p=new r;if(s)var f=s(u,d,h,e,t,p);if(!(void 0===f?i(d,u,3,s,p):f))return!1}}return!0}},z9Jh:e=>{e.exports=function(e){return e!=e}},"5nKN":(e,t,n)=>{var r=n("2q8g"),i=n("9vbJ"),s=n("tQYX"),a=n("c18h"),o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,h=l.toString,u=c.hasOwnProperty,d=RegExp("^"+h.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||i(e))&&(r(e)?d:o).test(a(e))}},MDav:(e,t,n)=>{var r=n("Dhk8"),i=n("tLQN");e.exports=function(e){return i(e)&&"[object RegExp]"==r(e)}},"6I2w":(e,t,n)=>{var r=n("kkM+"),i=n("tLQN");e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},"7/jS":(e,t,n)=>{var r=n("Dhk8"),i=n("t0L4"),s=n("tLQN"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&i(e.length)&&!!a[r(e)]}},S3pA:(e,t,n)=>{var r=n("7/we"),i=n("KAo/"),s=n("zWgn"),a=n("wxYD"),o=n("1EDM");e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):o(e)}},"4uJK":(e,t,n)=>{var r=n("CbIe"),i=n("OtNC"),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}},p2lg:(e,t,n)=>{var r=n("tQYX"),i=n("CbIe"),s=n("/UTG"),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=i(e),n=[];for(var o in e)("constructor"!=o||!t&&a.call(e,o))&&n.push(o);return n}},bFjY:(e,t,n)=>{var r=n("Q4oW"),i=n("9y2L");e.exports=function(e,t){var n=-1,s=i(e)?Array(e.length):[];return r(e,(function(e,r,i){s[++n]=t(e,r,i)})),s}},"7/we":(e,t,n)=>{var r=n("ZjRn"),i=n("hMsr"),s=n("0Ss3");e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},"KAo/":(e,t,n)=>{var r=n("NYSw"),i=n("2srY"),s=n("NW/2"),a=n("i7nn"),o=n("+tCn"),l=n("0Ss3"),c=n("Ypsa");e.exports=function(e,t){return a(e)&&o(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?s(n,e):r(t,a,3)}}},MzY2:(e,t,n)=>{var r=n("HsnV"),i=n("amiU"),s=n("UdtX"),a=n("cb1R"),o=n("tQYX"),l=n("zH+d"),c=n("LL3N");e.exports=function e(t,n,h,u,d){t!==n&&s(n,(function(s,l){if(d||(d=new r),o(s))a(t,n,l,h,e,u,d);else{var p=u?u(c(t,l),s,l+"",t,n,d):void 0;void 0===p&&(p=s),i(t,l,p)}}),l)}},cb1R:(e,t,n)=>{var r=n("amiU"),i=n("Grae"),s=n("6Rtw"),a=n("QT01"),o=n("sD1O"),l=n("bvyN"),c=n("wxYD"),h=n("Ndl3"),u=n("3ajY"),d=n("2q8g"),p=n("tQYX"),f=n("Kkar"),m=n("Qd2C"),g=n("LL3N"),y=n("4ScB");e.exports=function(e,t,n,v,b,x,w){var C=g(e,n),E=g(t,n),S=w.get(E);if(S)r(e,n,S);else{var _=x?x(C,E,n+"",e,t,w):void 0,k=void 0===_;if(k){var P=c(E),O=!P&&u(E),T=!P&&!O&&m(E);_=E,P||O||T?c(C)?_=C:h(C)?_=a(C):O?(k=!1,_=i(E,!0)):T?(k=!1,_=s(E,!0)):_=[]:f(E)||l(E)?(_=C,l(C)?_=y(C):p(C)&&!d(C)||(_=o(E))):k=!1}k&&(w.set(E,_),b(_,E,v,x,w),w.delete(E)),r(e,n,_)}}},HRNz:(e,t,n)=>{var r=n("pnw1");e.exports=function(e,t){var n=e.length;if(n)return r(t+=t<0?n:0,n)?e[t]:void 0}},QwI6:(e,t,n)=>{var r=n("O1Sc"),i=n("NW/2");e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},O1Sc:(e,t,n)=>{var r=n("w2Tz"),i=n("y4bl"),s=n("xoyU");e.exports=function(e,t,n){for(var a=-1,o=t.length,l={};++a<o;){var c=t[a],h=r(e,c);n(h,c)&&i(l,s(c,e),h)}return l}},EI7Z:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},CEyS:(e,t,n)=>{var r=n("w2Tz");e.exports=function(e){return function(t){return r(t,e)}}},v5ZW:(e,t,n)=>{var r=n("H87J"),i=n("c7Qd"),s=n("A0wc"),a=n("SU8Q"),o=n("QT01"),l=Array.prototype.splice;e.exports=function(e,t,n,c){var h=c?s:i,u=-1,d=t.length,p=e;for(e===t&&(t=o(t)),n&&(p=r(e,a(n)));++u<d;)for(var f=0,m=t[u],g=n?n(m):m;(f=h(p,g,f,c))>-1;)p!==e&&l.call(p,f,1),l.call(e,f,1);return e}},R3TX:(e,t,n)=>{var r=n("zWgn"),i=n("UAs9"),s=n("7Pat");e.exports=function(e,t){return s(i(e,t,r),e+"")}},y4bl:(e,t,n)=>{var r=n("c72w"),i=n("xoyU"),s=n("pnw1"),a=n("tQYX"),o=n("Ypsa");e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,h=(t=i(t,e)).length,u=h-1,d=e;null!=d&&++c<h;){var p=o(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=u){var m=d[p];void 0===(f=l?l(m,p,d):void 0)&&(f=a(m)?m:s(t[c+1])?[]:{})}r(d,p,f),d=d[p]}return e}},"+7q0":(e,t,n)=>{var r=n("eN33"),i=n("Pz+s"),s=n("zWgn"),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:s;e.exports=a},"0Ocv":e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}},Inyi:(e,t,n)=>{var r=n("Q4oW");e.exports=function(e,t){var n;return r(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}},"2ZvR":e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},JcJ6:(e,t,n)=>{var r=n("Syyo"),i=n("H87J"),s=n("wxYD"),a=n("a88S"),o=r?r.prototype:void 0,l=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},I1fX:(e,t,n)=>{var r=n("6XIJ"),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},SU8Q:e=>{e.exports=function(e){return function(t){return e(t)}}},"s+R0":(e,t,n)=>{var r=n("JBn+"),i=n("OfKG"),s=n("sCL+"),a=n("S0iI"),o=n("9TP6"),l=n("XlL0");e.exports=function(e,t,n){var c=-1,h=i,u=e.length,d=!0,p=[],f=p;if(n)d=!1,h=s;else if(u>=200){var m=t?null:o(e);if(m)return l(m);d=!1,h=a,f=new r}else f=t?[]:p;e:for(;++c<u;){var g=e[c],y=t?t(g):g;if(g=n||0!==g?g:0,d&&y==y){for(var v=f.length;v--;)if(f[v]===y)continue e;t&&f.push(y),p.push(g)}else h(f,y,n)||(f!==p&&f.push(y),p.push(g))}return p}},a49g:(e,t,n)=>{var r=n("xoyU"),i=n("p1C/"),s=n("SiwR"),a=n("Ypsa");e.exports=function(e,t){return t=r(t,e),null==(e=s(e,t))||delete e[a(i(t))]}},SJvO:(e,t,n)=>{var r=n("H87J");e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},S0iI:e=>{e.exports=function(e,t){return e.has(t)}},D49j:(e,t,n)=>{var r=n("zWgn");e.exports=function(e){return"function"==typeof e?e:r}},xoyU:(e,t,n)=>{var r=n("wxYD"),i=n("i7nn"),s=n("SoOq"),a=n("dw5g");e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:s(a(e))}},rXFn:(e,t,n)=>{var r=n("0Ocv");e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},EAGB:(e,t,n)=>{var r=n("mGzy");e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},Grae:(e,t,n)=>{e=n.nmd(e);var r=n("IBsm"),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i?r.Buffer:void 0,o=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}},lN3w:(e,t,n)=>{var r=n("EAGB");e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},Bstx:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},bVbG:(e,t,n)=>{var r=n("Syyo"),i=r?r.prototype:void 0,s=i?i.valueOf:void 0;e.exports=function(e){return s?Object(s.call(e)):{}}},"6Rtw":(e,t,n)=>{var r=n("EAGB");e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},QT01:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},LtXa:(e,t,n)=>{var r=n("c72w"),i=n("wC3K");e.exports=function(e,t,n,s){var a=!n;n||(n={});for(var o=-1,l=t.length;++o<l;){var c=t[o],h=s?s(n[c],e[c],c,n,e):void 0;void 0===h&&(h=e[c]),a?i(n,c,h):r(n,c,h)}return n}},AjPR:(e,t,n)=>{var r=n("LtXa"),i=n("70Le");e.exports=function(e,t){return r(e,i(e),t)}},BjSP:(e,t,n)=>{var r=n("LtXa"),i=n("Xidw");e.exports=function(e,t){return r(e,i(e),t)}},"3KBa":(e,t,n)=>{var r=n("IBsm")["__core-js_shared__"];e.exports=r},wpQC:(e,t,n)=>{var r=n("R3TX"),i=n("R5u7");e.exports=function(e){return r((function(t,n){var r=-1,s=n.length,a=s>1?n[s-1]:void 0,o=s>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(s--,a):void 0,o&&i(n[0],n[1],o)&&(a=s<3?void 0:a,s=1),t=Object(t);++r<s;){var l=n[r];l&&e(t,l,r,a)}return t}))}},bz5b:(e,t,n)=>{var r=n("9y2L");e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var s=n.length,a=t?s:-1,o=Object(n);(t?a--:++a<s)&&!1!==i(o[a],a,o););return n}}},RFxK:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,s=Object(t),a=r(t),o=a.length;o--;){var l=a[e?o:++i];if(!1===n(s[l],l,s))break}return t}}},"1aYn":(e,t,n)=>{var r=n("S3pA"),i=n("9y2L"),s=n("BlJA");e.exports=function(e){return function(t,n,a){var o=Object(t);if(!i(t)){var l=r(n,3);t=s(t),n=function(e){return l(o[e],e,o)}}var c=e(t,n,a);return c>-1?o[l?t[c]:c]:void 0}}},"9TP6":(e,t,n)=>{var r=n("OBn4"),i=n("nnm9"),s=n("XlL0"),a=r&&1/s(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},r9Vz:(e,t,n)=>{var r=n("Kkar");e.exports=function(e){return r(e)?void 0:e}},"Pz+s":(e,t,n)=>{var r=n("vxC8"),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},"ZZ+W":(e,t,n)=>{var r=n("JBn+"),i=n("myUI"),s=n("S0iI");e.exports=function(e,t,n,a,o,l){var c=1&n,h=e.length,u=t.length;if(h!=u&&!(c&&u>h))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<h;){var y=e[f],v=t[f];if(a)var b=c?a(v,y,f,t,e,l):a(y,v,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!s(g,t)&&(y===e||o(y,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(y!==v&&!o(y,v,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},R3gn:(e,t,n)=>{var r=n("Syyo"),i=n("mGzy"),s=n("pPzx"),a=n("ZZ+W"),o=n("aURW"),l=n("XlL0"),c=r?r.prototype:void 0,h=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,u,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=o;case"[object Set]":var f=1&r;if(p||(p=l),e.size!=t.size&&!f)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var g=a(p(e),p(t),r,c,u,d);return d.delete(e),g;case"[object Symbol]":if(h)return h.call(e)==h.call(t)}return!1}},yZHP:(e,t,n)=>{var r=n("tlBq"),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,s,a,o){var l=1&n,c=r(e),h=c.length;if(h!=r(t).length&&!l)return!1;for(var u=h;u--;){var d=c[u];if(!(l?d in t:i.call(t,d)))return!1}var p=o.get(e),f=o.get(t);if(p&&f)return p==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=l;++u<h;){var y=e[d=c[u]],v=t[d];if(s)var b=l?s(v,y,d,t,e,o):s(y,v,d,e,t,o);if(!(void 0===b?y===v||a(y,v,n,s,o):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return o.delete(e),o.delete(t),m}},cH1A:(e,t,n)=>{var r=n("1xil"),i=n("UAs9"),s=n("7Pat");e.exports=function(e){return s(i(e,void 0,r),e+"")}},e93E:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},tlBq:(e,t,n)=>{var r=n("pIod"),i=n("70Le"),s=n("BlJA");e.exports=function(e){return r(e,s,i)}},zF5n:(e,t,n)=>{var r=n("pIod"),i=n("Xidw"),s=n("zH+d");e.exports=function(e){return r(e,s,i)}},JNqh:(e,t,n)=>{var r=n("6UKJ");e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},hMsr:(e,t,n)=>{var r=n("+tCn"),i=n("BlJA");e.exports=function(e){for(var t=i(e),n=t.length;n--;){var s=t[n],a=e[s];t[n]=[s,a,r(a)]}return t}},vxC8:(e,t,n)=>{var r=n("5nKN"),i=n("4p/L");e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},"/wCD":(e,t,n)=>{var r=n("TAtK")(Object.getPrototypeOf,Object);e.exports=r},KCLV:(e,t,n)=>{var r=n("Syyo"),i=Object.prototype,s=i.hasOwnProperty,a=i.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[o]=n:delete e[o]),i}},"70Le":(e,t,n)=>{var r=n("W0vE"),i=n("X4R2"),s=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return s.call(e,t)})))}:i;e.exports=o},Xidw:(e,t,n)=>{var r=n("y/9h"),i=n("/wCD"),s=n("70Le"),a=n("X4R2"),o=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,s(e)),e=i(e);return t}:a;e.exports=o},"kkM+":(e,t,n)=>{var r=n("QF3D"),i=n("qeCs"),s=n("IS0S"),a=n("OBn4"),o=n("4+Vk"),l=n("Dhk8"),c=n("c18h"),h="[object Map]",u="[object Promise]",d="[object Set]",p="[object WeakMap]",f="[object DataView]",m=c(r),g=c(i),y=c(s),v=c(a),b=c(o),x=l;(r&&x(new r(new ArrayBuffer(1)))!=f||i&&x(new i)!=h||s&&x(s.resolve())!=u||a&&x(new a)!=d||o&&x(new o)!=p)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return f;case g:return h;case y:return u;case v:return d;case b:return p}return t}),e.exports=x},"4p/L":e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},"z+TE":(e,t,n)=>{var r=n("xoyU"),i=n("bvyN"),s=n("wxYD"),a=n("pnw1"),o=n("t0L4"),l=n("Ypsa");e.exports=function(e,t,n){for(var c=-1,h=(t=r(t,e)).length,u=!1;++c<h;){var d=l(t[c]);if(!(u=null!=e&&n(e,d)))break;e=e[d]}return u||++c!=h?u:!!(h=null==e?0:e.length)&&o(h)&&a(d,h)&&(s(e)||i(e))}},GZgP:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},"2Fbm":(e,t,n)=>{var r=n("5pfJ");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},VPai:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},"+fUG":(e,t,n)=>{var r=n("5pfJ"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},QMz8:(e,t,n)=>{var r=n("5pfJ"),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},mUsV:(e,t,n)=>{var r=n("5pfJ");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},"3Qlq":e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},"7No3":(e,t,n)=>{var r=n("EAGB"),i=n("lN3w"),s=n("Bstx"),a=n("bVbG"),o=n("6Rtw");e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return s(e);case"[object Symbol]":return a(e)}}},sD1O:(e,t,n)=>{var r=n("vGGS"),i=n("/wCD"),s=n("CbIe");e.exports=function(e){return"function"!=typeof e.constructor||s(e)?{}:r(i(e))}},oCTG:(e,t,n)=>{var r=n("Syyo"),i=n("bvyN"),s=n("wxYD"),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||i(e)||!!(a&&e&&e[a])}},pnw1:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},R5u7:(e,t,n)=>{var r=n("pPzx"),i=n("9y2L"),s=n("pnw1"),a=n("tQYX");e.exports=function(e,t,n){if(!a(n))return!1;var o=typeof t;return!!("number"==o?i(n)&&s(t,n.length):"string"==o&&t in n)&&r(n[t],e)}},i7nn:(e,t,n)=>{var r=n("wxYD"),i=n("a88S"),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!s.test(e)||null!=t&&e in Object(t))}},"6UKJ":e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},"9vbJ":(e,t,n)=>{var r,i=n("3KBa"),s=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!s&&s in e}},CbIe:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},"+tCn":(e,t,n)=>{var r=n("tQYX");e.exports=function(e){return e==e&&!r(e)}},"8Zrg":e=>{e.exports=function(){this.__data__=[],this.size=0}},kwr2:(e,t,n)=>{var r=n("6QIk"),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},"5VYK":(e,t,n)=>{var r=n("6QIk");e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},"Coc+":(e,t,n)=>{var r=n("6QIk");e.exports=function(e){return r(this.__data__,e)>-1}},LzM7:(e,t,n)=>{var r=n("6QIk");e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},m5o6:(e,t,n)=>{var r=n("Tv3l"),i=n("+ooz"),s=n("qeCs");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||i),string:new r}}},d0UJ:(e,t,n)=>{var r=n("JNqh");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},eask:(e,t,n)=>{var r=n("JNqh");e.exports=function(e){return r(this,e).get(e)}},"9SKQ":(e,t,n)=>{var r=n("JNqh");e.exports=function(e){return r(this,e).has(e)}},e63W:(e,t,n)=>{var r=n("JNqh");e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},aURW:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},"0Ss3":e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},"0+aC":(e,t,n)=>{var r=n("pFSi");e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},"5pfJ":(e,t,n)=>{var r=n("vxC8")(Object,"create");e.exports=r},OtNC:(e,t,n)=>{var r=n("TAtK")(Object.keys,Object);e.exports=r},"/UTG":e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},T6vp:(e,t,n)=>{e=n.nmd(e);var r=n("e93E"),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i&&r.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o},kHoZ:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},TAtK:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},UAs9:(e,t,n)=>{var r=n("zaNA"),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var s=arguments,a=-1,o=i(s.length-t,0),l=Array(o);++a<o;)l[a]=s[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=s[a];return c[t]=n(l),r(e,this,c)}}},SiwR:(e,t,n)=>{var r=n("w2Tz"),i=n("0Ocv");e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},IBsm:(e,t,n)=>{var r=n("e93E"),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();e.exports=s},LL3N:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},qjF7:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},cEmw:e=>{e.exports=function(e){return this.__data__.has(e)}},XlL0:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},"7Pat":(e,t,n)=>{var r=n("+7q0"),i=n("kG2z")(r);e.exports=i},kG2z:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),s=16-(i-r);if(r=i,s>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},RNlM:(e,t,n)=>{var r=n("+ooz");e.exports=function(){this.__data__=new r,this.size=0}},E4ao:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},BSqe:e=>{e.exports=function(e){return this.__data__.get(e)}},L6um:e=>{e.exports=function(e){return this.__data__.has(e)}},"4/ik":(e,t,n)=>{var r=n("+ooz"),i=n("qeCs"),s=n("hyzI");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(a)}return n.set(e,t),this.size=n.size,this}},n1QJ:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},GVul:(e,t,n)=>{var r=n("2wsP"),i=n("GZgP"),s=n("QZ90");e.exports=function(e){return i(e)?s(e):r(e)}},f2p0:(e,t,n)=>{var r=n("gEzS"),i=n("GZgP"),s=n("Xm/D");e.exports=function(e){return i(e)?s(e):r(e)}},SoOq:(e,t,n)=>{var r=n("0+aC"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(s,"$1"):n||e)})),t}));e.exports=a},Ypsa:(e,t,n)=>{var r=n("a88S");e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},c18h:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"6XIJ":e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},QZ90:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",s="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",h=c+l+("(?:\\u200d(?:"+[s,a,o].join("|")+")"+c+l+")*"),u="(?:"+[s+r+"?",r,a,o,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+u+h,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},"Xm/D":e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",s="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",h=c+l+("(?:\\u200d(?:"+[s,a,o].join("|")+")"+c+l+")*"),u="(?:"+[s+r+"?",r,a,o,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+u+h,"g");e.exports=function(e){return e.match(d)||[]}},whR3:(e,t,n)=>{var r=n("c72w"),i=n("LtXa"),s=n("wpQC"),a=n("9y2L"),o=n("CbIe"),l=n("BlJA"),c=Object.prototype.hasOwnProperty,h=s((function(e,t){if(o(t)||a(t))i(t,l(t),e);else for(var n in t)c.call(t,n)&&r(e,n,t[n])}));e.exports=h},zr3P:(e,t,n)=>{var r=n("kn3Q");e.exports=function(e){return r(e,4)}},NdXQ:(e,t,n)=>{var r=n("kn3Q");e.exports=function(e,t){return r(e,5,t="function"==typeof t?t:void 0)}},eN33:e=>{e.exports=function(e){return function(){return e}}},RNvQ:(e,t,n)=>{var r=n("tQYX"),i=n("ENE1"),s=n("nvU9"),a=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,h,u,d,p,f=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,u=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-f>=h}function x(){var e=i();if(b(e))return w(e);d=setTimeout(x,function(e){var n=t-(e-p);return g?o(n,h-(e-f)):n}(e))}function w(e){return d=void 0,y&&l?v(e):(l=c=void 0,u)}function C(){var e=i(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===d)return function(e){return f=e,d=setTimeout(x,t),m?v(e):u}(p);if(g)return clearTimeout(d),d=setTimeout(x,t),v(p)}return void 0===d&&(d=setTimeout(x,t)),u}return t=s(t)||0,r(n)&&(m=!!n.leading,h=(g="maxWait"in n)?a(s(n.maxWait)||0,t):h,y="trailing"in n?!!n.trailing:y),C.cancel=function(){void 0!==d&&clearTimeout(d),f=0,l=p=c=d=void 0},C.flush=function(){return void 0===d?u:w(i())},C}},lKOy:(e,t,n)=>{var r=n("X+YX"),i=n("YpBQ"),s=n("R3TX"),a=n("Ndl3"),o=s((function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]}));e.exports=o},h4um:(e,t,n)=>{e.exports=n("9SCj")},pPzx:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},"+DnP":(e,t,n)=>{var r=n("W0vE"),i=n("sjzV"),s=n("S3pA"),a=n("wxYD");e.exports=function(e,t){return(a(e)?r:i)(e,s(t,3))}},"6R5o":(e,t,n)=>{var r=n("1aYn")(n("FllU"));e.exports=r},FllU:(e,t,n)=>{var r=n("DuXo"),i=n("S3pA"),s=n("m2YG"),a=Math.max;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var l=null==n?0:s(n);return l<0&&(l=a(o+l,0)),r(e,i(t,3),l)}},ehGJ:(e,t,n)=>{var r=n("DuXo"),i=n("S3pA"),s=n("m2YG"),a=Math.max,o=Math.min;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return-1;var c=l-1;return void 0!==n&&(c=s(n),c=n<0?a(l+c,0):o(c,l-1)),r(e,i(t,3),c,!0)}},"1xil":(e,t,n)=>{var r=n("YpBQ");e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},cdI6:(e,t,n)=>{var r=n("YpBQ"),i=1/0;e.exports=function(e){return(null==e?0:e.length)?r(e,i):[]}},"9SCj":(e,t,n)=>{var r=n("LmOH"),i=n("Q4oW"),s=n("D49j"),a=n("wxYD");e.exports=function(e,t){return(a(e)?r:i)(e,s(t))}},"2srY":(e,t,n)=>{var r=n("w2Tz");e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},"1mr4":(e,t,n)=>{var r=n("SJov"),i=n("z+TE");e.exports=function(e,t){return null!=e&&i(e,t,r)}},"NW/2":(e,t,n)=>{var r=n("JYmt"),i=n("z+TE");e.exports=function(e,t){return null!=e&&i(e,t,r)}},zWgn:e=>{e.exports=function(e){return e}},qYhz:(e,t,n)=>{var r=n("c7Qd"),i=n("9y2L"),s=n("nDih"),a=n("m2YG"),o=n("0iyY"),l=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:o(e),n=n&&!c?a(n):0;var h=e.length;return n<0&&(n=l(h+n,0)),s(e)?n<=h&&e.indexOf(t,n)>-1:!!h&&r(e,t,n)>-1}},bvyN:(e,t,n)=>{var r=n("/30y"),i=n("tLQN"),s=Object.prototype,a=s.hasOwnProperty,o=s.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},wxYD:e=>{var t=Array.isArray;e.exports=t},"9y2L":(e,t,n)=>{var r=n("2q8g"),i=n("t0L4");e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},Ndl3:(e,t,n)=>{var r=n("9y2L"),i=n("tLQN");e.exports=function(e){return i(e)&&r(e)}},p6M4:(e,t,n)=>{var r=n("Dhk8"),i=n("tLQN");e.exports=function(e){return!0===e||!1===e||i(e)&&"[object Boolean]"==r(e)}},"3ajY":(e,t,n)=>{e=n.nmd(e);var r=n("IBsm"),i=n("DjCF"),s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,o=a&&a.exports===s?r.Buffer:void 0,l=(o?o.isBuffer:void 0)||i;e.exports=l},"+f76":(e,t,n)=>{var r=n("pPU8"),i=n("SU8Q"),s=n("T6vp"),a=s&&s.isDate,o=a?i(a):r;e.exports=o},MwrP:(e,t,n)=>{var r=n("4uJK"),i=n("kkM+"),s=n("bvyN"),a=n("wxYD"),o=n("9y2L"),l=n("3ajY"),c=n("CbIe"),h=n("Qd2C"),u=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||h(e)||s(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(u.call(e,n))return!1;return!0}},nnRT:(e,t,n)=>{var r=n("NYSw");e.exports=function(e,t){return r(e,t)}},"6OdC":(e,t,n)=>{var r=n("NYSw");e.exports=function(e,t,n){var i=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===i?r(e,t,void 0,n):!!i}},"2q8g":(e,t,n)=>{var r=n("Dhk8"),i=n("tQYX");e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},t0L4:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},NbvU:(e,t,n)=>{var r=n("gEWz"),i=n("SU8Q"),s=n("T6vp"),a=s&&s.isMap,o=a?i(a):r;e.exports=o},DlqW:(e,t,n)=>{var r=n("mGvo");e.exports=function(e){return r(e)&&e!=+e}},R7V3:e=>{e.exports=function(e){return null===e}},mGvo:(e,t,n)=>{var r=n("Dhk8"),i=n("tLQN");e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},tQYX:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},tLQN:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},Kkar:(e,t,n)=>{var r=n("Dhk8"),i=n("/wCD"),s=n("tLQN"),a=Function.prototype,o=Object.prototype,l=a.toString,c=o.hasOwnProperty,h=l.call(Object);e.exports=function(e){if(!s(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}},UBkg:(e,t,n)=>{var r=n("MDav"),i=n("SU8Q"),s=n("T6vp"),a=s&&s.isRegExp,o=a?i(a):r;e.exports=o},"/iLo":(e,t,n)=>{var r=n("6I2w"),i=n("SU8Q"),s=n("T6vp"),a=s&&s.isSet,o=a?i(a):r;e.exports=o},nDih:(e,t,n)=>{var r=n("Dhk8"),i=n("wxYD"),s=n("tLQN");e.exports=function(e){return"string"==typeof e||!i(e)&&s(e)&&"[object String]"==r(e)}},a88S:(e,t,n)=>{var r=n("Dhk8"),i=n("tLQN");e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},Qd2C:(e,t,n)=>{var r=n("7/jS"),i=n("SU8Q"),s=n("T6vp"),a=s&&s.isTypedArray,o=a?i(a):r;e.exports=o},CZlo:e=>{e.exports=function(e){return void 0===e}},BlJA:(e,t,n)=>{var r=n("rmhs"),i=n("4uJK"),s=n("9y2L");e.exports=function(e){return s(e)?r(e):i(e)}},"zH+d":(e,t,n)=>{var r=n("rmhs"),i=n("p2lg"),s=n("9y2L");e.exports=function(e){return s(e)?r(e,!0):i(e)}},"p1C/":e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},mbB6:(e,t,n)=>{var r=n("H87J"),i=n("S3pA"),s=n("bFjY"),a=n("wxYD");e.exports=function(e,t){return(a(e)?r:s)(e,i(t,3))}},"LPC+":(e,t,n)=>{var r=n("JElN"),i=n("FaiA"),s=n("zWgn");e.exports=function(e){return e&&e.length?r(e,s,i):void 0}},pFSi:(e,t,n)=>{var r=n("hyzI");function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var a=e.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},H8sf:(e,t,n)=>{var r=n("MzY2"),i=n("wpQC")((function(e,t,n){r(e,t,n)}));e.exports=i},nnm9:e=>{e.exports=function(){}},ENE1:(e,t,n)=>{var r=n("IBsm");e.exports=function(){return r.Date.now()}},Hz96:(e,t,n)=>{var r=n("HRNz"),i=n("m2YG");e.exports=function(e,t){return e&&e.length?r(e,i(t)):void 0}},uZih:(e,t,n)=>{var r=n("H87J"),i=n("kn3Q"),s=n("a49g"),a=n("xoyU"),o=n("LtXa"),l=n("r9Vz"),c=n("cH1A"),h=n("zF5n"),u=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),o(e,h(e),n),c&&(n=i(n,7,l));for(var u=t.length;u--;)s(n,t[u]);return n}));e.exports=u},"//nZ":(e,t,n)=>{var r=n("QwI6"),i=n("cH1A")((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},"1EDM":(e,t,n)=>{var r=n("EI7Z"),i=n("CEyS"),s=n("i7nn"),a=n("Ypsa");e.exports=function(e){return s(e)?r(a(e)):i(e)}},jHPj:(e,t,n)=>{var r=n("R3TX")(n("DyR2"));e.exports=r},DyR2:(e,t,n)=>{var r=n("v5ZW");e.exports=function(e,t){return e&&e.length&&t&&t.length?r(e,t):e}},DL3M:(e,t,n)=>{var r=n("y4bl");e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},"7seP":(e,t,n)=>{var r=n("4uJK"),i=n("kkM+"),s=n("9y2L"),a=n("nDih"),o=n("GVul");e.exports=function(e){if(null==e)return 0;if(s(e))return a(e)?o(e):e.length;var t=i(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},"+n+S":(e,t,n)=>{var r=n("0Ocv"),i=n("R5u7"),s=n("m2YG");e.exports=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&i(e,t,n)?(t=0,n=a):(t=null==t?0:s(t),n=void 0===n?a:s(n)),r(e,t,n)):[]}},oBkS:(e,t,n)=>{var r=n("myUI"),i=n("S3pA"),s=n("Inyi"),a=n("wxYD"),o=n("R5u7");e.exports=function(e,t,n){var l=a(e)?r:s;return n&&o(e,t,n)&&(t=void 0),l(e,i(t,3))}},ExWj:(e,t,n)=>{var r=n("JcJ6"),i=n("rXFn"),s=n("GZgP"),a=n("R5u7"),o=n("UBkg"),l=n("f2p0"),c=n("dw5g");e.exports=function(e,t,n){return n&&"number"!=typeof n&&a(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=c(e))&&("string"==typeof t||null!=t&&!o(t))&&!(t=r(t))&&s(e)?i(l(e),0,n):e.split(t,n):[]}},X4R2:e=>{e.exports=function(){return[]}},DjCF:e=>{e.exports=function(){return!1}},LF7v:e=>{e.exports=function(){return!0}},Bcqe:(e,t,n)=>{var r=n("RNvQ"),i=n("tQYX");e.exports=function(e,t,n){var s=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(s="leading"in n?!!n.leading:s,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:s,maxWait:t,trailing:a})}},"15pl":(e,t,n)=>{var r=n("2ZvR"),i=n("D49j"),s=n("m2YG"),a=4294967295,o=Math.min;e.exports=function(e,t){if((e=s(e))<1||e>9007199254740991)return[];var n=a,l=o(e,a);t=i(t),e-=a;for(var c=r(l,t);++n<e;)t(n);return c}},fWyh:(e,t,n)=>{var r=n("nvU9"),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},m2YG:(e,t,n)=>{var r=n("fWyh");e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},nvU9:(e,t,n)=>{var r=n("I1fX"),i=n("tQYX"),s=n("a88S"),a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=o.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},ND9x:(e,t,n)=>{var r=n("H87J"),i=n("QT01"),s=n("wxYD"),a=n("a88S"),o=n("SoOq"),l=n("Ypsa"),c=n("dw5g");e.exports=function(e){return s(e)?r(e,l):a(e)?[e]:i(o(c(e)))}},"4ScB":(e,t,n)=>{var r=n("LtXa"),i=n("zH+d");e.exports=function(e){return r(e,i(e))}},dw5g:(e,t,n)=>{var r=n("JcJ6");e.exports=function(e){return null==e?"":r(e)}},jLkM:(e,t,n)=>{var r=n("s+R0");e.exports=function(e){return e&&e.length?r(e):[]}},eGeI:(e,t,n)=>{var r=n("a49g");e.exports=function(e,t){return null==e||r(e,t)}},"0iyY":(e,t,n)=>{var r=n("SJvO"),i=n("BlJA");e.exports=function(e){return null==e?[]:r(e,i(e))}},uUTq:(e,t,n)=>{var r=n("X+YX"),i=n("R3TX"),s=n("Ndl3"),a=i((function(e,t){return s(e)?r(e,t):[]}));e.exports=a},Nh1y:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,i=e.length;for(n=0;n<i;n+=1)for(var s in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,s)&&(t.prototype[s]=r[s])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var n,r=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)i.push(n);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,n){var r,i,s,a,o,l,c,h;switch(l=n*(1-t),c=n*(1-(o=6*e-(a=Math.floor(6*e)))*t),h=n*(1-(1-o)*t),a%6){case 0:r=n,i=h,s=l;break;case 1:r=c,i=n,s=l;break;case 2:r=l,i=n,s=h;break;case 3:r=l,i=c,s=n;break;case 4:r=h,i=l,s=n;break;case 5:r=n,i=l,s=c}return[r,i,s]}function RGBtoHSV(e,t,n){var r,i=Math.max(e,t,n),s=Math.min(e,t,n),a=i-s,o=0===i?0:a/i,l=i/255;switch(i){case s:r=0;break;case e:r=t-n+a*(t<n?6:0),r/=6*a;break;case t:r=n-e+2*a,r/=6*a;break;case n:r=e-t+4*a,r/=6*a}return[r,o,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},s={postMessage:function(e){i.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,i}((function(e){if(s.dataManager||(s.dataManager=function(){function e(i,s){var a,o,l,c,h,d,p=i.length;for(o=0;o<p;o+=1)if("ks"in(a=i[o])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(c=f.length,l=0;l<c;l+=1)if(f[l].pt.k.i)r(f[l].pt.k);else for(d=f[l].pt.k.length,h=0;h<d;h+=1)f[l].pt.k[h].s&&r(f[l].pt.k[h].s[0]),f[l].pt.k[h].e&&r(f[l].pt.k[h].e[0])}0===a.ty?(a.layers=t(a.refId,s),e(a.layers,s)):4===a.ty?n(a.shapes):5===a.ty&&u(a)}}function t(e,t){var n=function(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}(e,t);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(e){var t,i,s;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(s=e[t].ks.k.length,i=0;i<s;i+=1)e[t].ks.k[i].s&&r(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&r(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var s,a=function(){var e=[4,4,14];function t(e){var t,n,r,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(r=void 0,r=(n=e[t]).t.d,n.t.d={k:[{s:r,t:0}]})}return function(n){if(i(e,n.v)&&(t(n.layers),n.assets)){var r,s=n.assets.length;for(r=0;r<s;r+=1)n.assets[r].layers&&t(n.assets[r].layers)}}}(),o=(s=[4,7,99],function(e){if(e.chars&&!i(s,e.v)){var t,r=e.chars.length;for(t=0;t<r;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(n(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,n,r=e.length;for(t=0;t<r;t+=1)5===e[t].ty&&(n=void 0,"number"==typeof(n=e[t].t.p).a&&(n.a={a:0,k:n.a}),"number"==typeof n.p&&(n.p={a:0,k:n.p}),"number"==typeof n.r&&(n.r={a:0,k:n.r}))}return function(n){if(i(e,n.v)&&(t(n.layers),n.assets)){var r,s=n.assets.length;for(r=0;r<s;r+=1)n.assets[r].layers&&t(n.assets[r].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var n,r,i,s=e.length;for(n=0;n<s;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(i=e[n].c.k.length,r=0;r<i;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,s=t.assets.length;for(r=0;r<s;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),h=function(){var e=[4,4,18];function t(e){var n,r,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r<i;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,i,s,a,o,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var c=n.masksProperties;for(s=c.length,i=0;i<s;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(o=c[i].pt.k.length,a=0;a<o;a+=1)c[i].pt.k[a].s&&(c[i].pt.k[a].s[0].c=c[i].cl),c[i].pt.k[a].e&&(c[i].pt.k[a].e[0].c=c[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,s=t.assets.length;for(r=0;r<s;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function u(e){0===e.t.a.length&&e.t.p}var d={completeData:function(n){n.__complete||(c(n),a(n),o(n),l(n),h(n),e(n.layers,n.assets),function(n,r){if(n){var i=0,s=n.length;for(i=0;i<s;i+=1)1===n[i].t&&(n[i].data.layers=t(n[i].data.refId,r),e(n[i].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return d.checkColors=c,d.checkChars=o,d.checkPathProperties=l,d.checkShapes=h,d.completeLayers=e,d}()),s.assetLoader||(s.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,r,i){var s,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)s=e(a),r(s);else try{s=e(a),r(s)}catch(e){i&&i(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),n+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)s.assetLoader.load(e.data.path,e.data.fullPath,(function(t){s.dataManager.completeData(t),s.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){s.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;s.dataManager.completeData(t),s.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&s.assetLoader.load(e.data.path,e.data.fullPath,(function(t){s.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){s.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,n=t.id,i=r[n];r[n]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function o(e,t){var i="processId_"+(n+=1);return r[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,n,r){a();var i=o(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,n,r){a();var i=o(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,n,r){a();var i=o(n,r);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=t+i}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function i(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function s(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=r(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){s.img=e,this._imageLoaded()}.bind(this),!1),i.src=n;var s={img:i,assetData:t};return s},createImageData:function(t){var n=r(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){s.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var s={img:i,assetData:t};return s},imageLoaded:t,footageLoaded:n,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},i=0,s=0;s<n.length;s+=1)2===(t=n[s].split(":")).length&&(r[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],s={time:i.tm,duration:i.dr};try{s.payload=JSON.parse(t[r].cm)}catch(n){try{s.payload=e(t[r].cm)}catch(e){s.payload={name:t[r].cm}}}n.push(s)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var s=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==s,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,s=e.layers,a=s.length;for(n=0;n<a;n+=1)for(t=0;t<i;){if(r[t].id===s[n].id){r[t]=s[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n="number"==typeof e?e:void 0,r="number"==typeof t?t:void 0;this.renderer.updateContainerSize(n,r)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,i=0,s=!0,a=!1;function o(e){for(var n=0,i=e.target;n<r;)t[n].animation===i&&(t.splice(n,1),n-=1,r-=1,i.isPaused||h()),n+=1}function l(e,n){if(!e)return null;for(var i=0;i<r;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var s=new AnimationItem;return u(s,e),s.setData(e,n),s}function c(){i+=1,f()}function h(){i-=1}function u(e,n){e.addEventListener("destroy",o),e.addEventListener("_active",c),e.addEventListener("_idle",h),t.push({elem:n,animation:e}),r+=1}function d(e){var o,l=e-n;for(o=0;o<r;o+=1)t[o].animation.advanceTime(l);n=e,i&&!a?window.requestAnimationFrame(d):s=!0}function p(e){n=e,window.requestAnimationFrame(d)}function f(){!a&&i&&s&&(window.requestAnimationFrame(p),s=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return u(t,null),t.setParams(e),t},e.setSpeed=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setSpeed(e,n)},e.setDirection=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setDirection(e,n)},e.play=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)},e.pause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)},e.stop=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)},e.togglePause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)},e.searchAnimations=function(e,t,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=i.length;for(r=0;r<s;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],e);if(t&&0===s){n||(n="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",n),a.appendChild(o),l(o,e)}},e.resize=function(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,n,i){var s;for(s=0;s<r;s+=1)t[s].animation.goToAndStop(e,n,i)},e.destroy=function(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,f()},e.setVolume=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setVolume(e,n)},e.mute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)},e.unmute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,n,r,i,s){var a=s||("bez_"+e+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var o=new h([e,n,r,i]);return t[a]=o,o}},t={},n=11,r=1/(n-1),i="function"==typeof Float32Array;function s(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function o(e){return 3*e}function l(e,t,n){return((s(t,n)*e+a(t,n))*e+o(t))*e}function c(e,t,n){return 3*s(t,n)*e*e+2*a(t,n)*e+o(t)}function h(e){this._p=e,this._mSampleValues=i?new Float32Array(n):new Array(n),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===n&&r===i?e:0===e?0:1===e?1:l(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],i=0;i<n;++i)this._mSampleValues[i]=l(i*r,e,t)},_getTForX:function(e){for(var t=this._p[0],i=this._p[2],s=this._mSampleValues,a=0,o=1,h=n-1;o!==h&&s[o]<=e;++o)a+=r;var u=a+(e-s[--o])/(s[o+1]-s[o])*r,d=c(u,t,i);return d>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var s=c(t,n,r);if(0===s)return t;t-=(l(t,n,r)-e)/s}return t}(e,u,t,i):0===d?u:function(e,t,n,r,i){var s,a,o=0;do{(s=l(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a}while(Math.abs(s)>1e-7&&++o<10);return a}(e,a,a+r,t,i)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,i=e,s=createSizedArray(i);return{newElement:function(){return r?s[r-=1]:t()},release:function(e){r===i&&(s=pooling.double(s),i*=2),n&&n(e),s[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,n,r,i,s){var a=e*r+t*i+n*s-i*r-s*e-n*t;return a>-.001&&a<.001}var n=function(e,t,n,r){var i,s,a,o,l,c,h=getDefaultCurveSegments(),u=0,d=[],p=[],f=bezierLengthPool.newElement();for(a=n.length,i=0;i<h;i+=1){for(l=i/(h-1),c=0,s=0;s<a;s+=1)o=bmPow(1-l,3)*e[s]+3*bmPow(1-l,2)*l*n[s]+3*(1-l)*bmPow(l,2)*r[s]+bmPow(l,3)*t[s],d[s]=o,null!==p[s]&&(c+=bmPow(d[s]-p[s],2)),p[s]=d[s];c&&(u+=c=bmSqrt(c)),f.percents[i]=l,f.lengths[i]=u}return f.addedLength=u,f};function r(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var s,a=(s={},function(e,n,a,o){var l=(e[0]+"_"+e[1]+"_"+n[0]+"_"+n[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!s[l]){var c,h,u,d,p,f,m,g=getDefaultCurveSegments(),y=0,v=null;2===e.length&&(e[0]!==n[0]||e[1]!==n[1])&&t(e[0],e[1],n[0],n[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],n[0],n[1],n[0]+o[0],n[1]+o[1])&&(g=2);var b=new r(g);for(u=a.length,c=0;c<g;c+=1){for(m=createSizedArray(u),p=c/(g-1),f=0,h=0;h<u;h+=1)d=bmPow(1-p,3)*e[h]+3*bmPow(1-p,2)*p*(e[h]+a[h])+3*(1-p)*bmPow(p,2)*(n[h]+o[h])+bmPow(p,3)*n[h],m[h]=d,null!==v&&(f+=bmPow(m[h]-v[h],2));y+=f=bmSqrt(f),b.points[c]=new i(f,m),v=m}b.segmentLength=y,s[l]=b}return s[l]});function o(e,t){var n=t.percents,r=t.lengths,i=n.length,s=bmFloor((i-1)*e),a=e*t.addedLength,o=0;if(s===i-1||0===s||a===r[s])return n[s];for(var l=r[s]>a?-1:1,c=!0;c;)if(r[s]<=a&&r[s+1]>a?(o=(a-r[s])/(r[s+1]-r[s]),c=!1):s+=l,s<0||s>=i-1){if(s===i-1)return n[s];c=!1}return n[s]+(n[s+1]-n[s])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),i=e.c,s=e.v,a=e.o,o=e.i,l=e._length,c=r.lengths,h=0;for(t=0;t<l-1;t+=1)c[t]=n(s[t],s[t+1],a[t],o[t+1]),h+=c[t].addedLength;return i&&l&&(c[t]=n(s[t],s[0],a[t],o[0]),h+=c[t].addedLength),r.totalLength=h,r},getNewSegment:function(t,n,r,i,s,a,c){s<0?s=0:s>1&&(s=1);var h,u=o(s,c),d=o(a=a>1?1:a,c),p=t.length,f=1-u,m=1-d,g=f*f*f,y=u*f*f*3,v=u*u*f*3,b=u*u*u,x=f*f*m,w=u*f*m+f*u*m+f*f*d,C=u*u*m+f*u*d+u*f*d,E=u*u*d,S=f*m*m,_=u*m*m+f*d*m+f*m*d,k=u*d*m+f*d*d+u*m*d,P=u*d*d,O=m*m*m,T=d*m*m+m*d*m+m*m*d,I=d*d*m+m*d*d+d*m*d,D=d*d*d;for(h=0;h<p;h+=1)l[4*h]=e.round(1e3*(g*t[h]+y*r[h]+v*i[h]+b*n[h]))/1e3,l[4*h+1]=e.round(1e3*(x*t[h]+w*r[h]+C*i[h]+E*n[h]))/1e3,l[4*h+2]=e.round(1e3*(S*t[h]+_*r[h]+k*i[h]+P*n[h]))/1e3,l[4*h+3]=e.round(1e3*(O*t[h]+T*r[h]+I*i[h]+D*n[h]))/1e3;return l},getPointInSegment:function(t,n,r,i,s,a){var l=o(s,a),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*r[0]+(l*l*c+c*l*l+l*c*l)*i[0]+l*l*l*n[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*r[1]+(l*l*c+c*l*l+l*c*l)*i[1]+l*l*l*n[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(n,r,i,s,a,o,l,c,h){if(0===i&&0===o&&0===h)return t(n,r,s,a,l,c);var u,d=e.sqrt(e.pow(s-n,2)+e.pow(a-r,2)+e.pow(o-i,2)),p=e.sqrt(e.pow(l-n,2)+e.pow(c-r,2)+e.pow(h-i,2)),f=e.sqrt(e.pow(l-s,2)+e.pow(c-a,2)+e.pow(h-o,2));return(u=d>p?d>f?d-p-f:f-p-d:f>p?f-p-d:p-d-f)>-1e-4&&u<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var i,s,a,o,l,c,h,u,d,p=t.lastIndex,f=p,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[f],s=this.keyframes[f+1],f===m-1&&e>=s.t-r){i.h&&(i=s),p=0;break}if(s.t-r>e){p=f;break}f<m-1?f+=1:(p=0,g=!1)}a=this.keyframesMetadata[f]||{};var y,v=s.t-r,b=i.t-r;if(i.to){a.bezierData||(a.bezierData=bez.buildBezierData(i.s,s.s||i.e,i.to,i.ti));var x=a.bezierData;if(e>=v||e<b){var w=e>=v?x.points.length-1:0;for(l=x.points[w].point.length,o=0;o<l;o+=1)n[o]=x.points[w].point[o]}else{a.__fnct?d=a.__fnct:(d=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=d),c=d((e-b)/(v-b));var C,E=x.segmentLength*c,S=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(u=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,h=x.points.length;g;){if(S+=x.points[u].partialLength,0===E||0===c||u===x.points.length-1){for(l=x.points[u].point.length,o=0;o<l;o+=1)n[o]=x.points[u].point[o];break}if(E>=S&&E<S+x.points[u+1].partialLength){for(C=(E-S)/x.points[u+1].partialLength,l=x.points[u].point.length,o=0;o<l;o+=1)n[o]=x.points[u].point[o]+(x.points[u+1].point[o]-x.points[u].point[o])*C;break}u<h-1?u+=1:g=!1}t._lastPoint=u,t._lastAddedLength=S-x.points[u].partialLength,t._lastKeyframeIndex=f}}else{var _,k,P,O,T;if(m=i.s.length,y=s.s||i.e,this.sh&&1!==i.h)e>=v?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):e<=b?(n[0]=i.s[0],n[1]=i.s[1],n[2]=i.s[2]):quaternionToEuler(n,slerp(createQuaternion(i.s),createQuaternion(y),(e-b)/(v-b)));else for(f=0;f<m;f+=1)1!==i.h&&(e>=v?c=1:e<b?c=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[f]?d=a.__fnct[f]:(_=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],k=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],P=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],O=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],d=BezierFactory.getBezierEasing(_,k,P,O).get,a.__fnct[f]=d)):a.__fnct?d=a.__fnct:(_=i.o.x,k=i.o.y,P=i.i.x,O=i.i.y,d=BezierFactory.getBezierEasing(_,k,P,O).get,i.keyframeMetadata=d),c=d((e-b)/(v-b)))),y=s.s||i.e,T=1===i.h?i.s[f]:i.s[f]+(y[f]-i.s[f])*c,"multidimensional"===this.propType?n[f]=T:n=T}return t.lastIndex=p,n}function slerp(e,t,n){var r,i,s,a,o,l=[],c=e[0],h=e[1],u=e[2],d=e[3],p=t[0],f=t[1],m=t[2],g=t[3];return(i=c*p+h*f+u*m+d*g)<0&&(i=-i,p=-p,f=-f,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),s=Math.sin(r),a=Math.sin((1-n)*r)/s,o=Math.sin(n*r)/s):(a=1-n,o=n),l[0]=a*c+o*p,l[1]=a*h+o*f,l[2]=a*u+o*m,l[3]=a*d+o*g,l}function quaternionToEuler(e,t){var n=t[0],r=t[1],i=t[2],s=t[3],a=Math.atan2(2*r*s-2*n*i,1-2*r*r-2*i*i),o=Math.asin(2*n*r+2*i*s),l=Math.atan2(2*n*s-2*r*i,1-2*n*n-2*i*i);e[0]=a/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,i=Math.cos(t/2),s=Math.cos(n/2),a=Math.cos(r/2),o=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(r/2);return[o*l*a+i*s*c,o*s*a+i*l*c,i*l*a-o*s*c,i*s*a-o*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s=t.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),i=0;i<s;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,r){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,r){var i;this.propType="multidimensional";var s,a,o,l,c=t.k.length;for(i=0;i<c-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(s=t.k[i].s,a=t.k[i+1].s,o=t.k[i].to,l=t.k[i].ti,(2===s.length&&(s[0]!==a[0]||s[1]!==a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+o[0],s[1]+o[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===s.length&&(s[0]!==a[0]||s[1]!==a[1]||s[2]!==a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+o[0],s[1]+o[1],s[2]+o[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[i].to=null,t.k[i].ti=null),s[0]===a[0]&&s[1]===a[1]&&0===o[0]&&0===o[1]&&0===l[0]&&0===l[1]&&(2===s.length||s[2]===a[2]&&0===o[2]&&0===l[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=r,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var h=t.k[0].s.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),i=0;i<h;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",h)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,n,r,i){var s;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])s=new MultiDimensionalProperty(e,t,r,i);else switch(n){case 0:s=new KeyframedValueProperty(e,t,r,i);break;case 1:s=new KeyframedMultidimensionalProperty(e,t,r,i)}else s=new ValueProperty(e,t,r,i);return s.effectsSequence.length&&i.addDynamicProperty(s),s}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,i){var s;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[r]||s[r]&&!i)&&(s[r]=pointPool.newElement()),s[r][0]=e,s[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,s,a,o){this.setXYAt(e,t,"v",a,o),this.setXYAt(n,r,"o",a,o),this.setXYAt(i,s,"i",a,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var s,a=this._length-1,o=this._length;for(s=i;s<o;s+=1)e.setTripleAt(t[a][0],t[a][1],r[a][0],r[a][1],n[a][0],n[a][1],s,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,n=factory.newElement(),r=void 0===e._length?e.v.length:e._length;for(n.setLength(r),n.c=e.c,t=0;t<r;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,n=e._length;for(t=0;t<n;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,n){var r,i,s,a,o,l,c,h,u,d=n.lastIndex,p=this.keyframes;if(e<p[0].t-this.offsetTime)r=p[0].s[0],s=!0,d=0;else if(e>=p[p.length-1].t-this.offsetTime)r=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],s=!0;else{for(var f,m,g,y=d,v=p.length-1,b=!0;b&&(f=p[y],!((m=p[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},d=y,!(s=1===f.h)){if(e>=m.t-this.offsetTime)h=1;else if(e<f.t-this.offsetTime)h=0;else{var x;g.__fnct?x=g.__fnct:(x=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=x),h=x((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=t._length,c=r.i[0].length,n.lastIndex=d,a=0;a<l;a+=1)for(o=0;o<c;o+=1)u=s?r.i[a][o]:r.i[a][o]+(i.i[a][o]-r.i[a][o])*h,t.i[a][o]=u,u=s?r.o[a][o]:r.o[a][o]+(i.o[a][o]-r.o[a][o])*h,t.o[a][o]=u,u=s?r.v[a][o]:r.v[a][o]+(i.v[a][o]-r.v[a][o])*h,t.v[a][o]=u}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<n&&t<n||i>r&&t>r)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,s){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===s?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=s,a.prototype.setVValue=i,a.prototype.addEffect=o,l.prototype.getValue=s,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=o;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=n-i,a.v[1][0]=s?t+r:t-r,a.v[1][1]=n,a.v[2][0]=t,a.v[2][1]=n+i,a.v[3][0]=s?t-r:t+r,a.v[3][1]=n,a.i[0][0]=s?t-r*e:t+r*e,a.i[0][1]=n-i,a.i[1][0]=s?t+r:t-r,a.i[1][1]=n-i*e,a.i[2][0]=s?t+r*e:t-r*e,a.i[2][1]=n+i,a.i[3][0]=s?t-r:t+r,a.i[3][1]=n+i*e,a.o[0][0]=s?t+r*e:t-r*e,a.o[0][1]=n-i,a.o[1][0]=s?t+r:t-r,a.o[1][1]=n+i*e,a.o[2][0]=s?t-r*e:t+r*e,a.o[2][1]=n+i,a.o[3][0]=s?t-r:t+r,a.o[3][1]=n-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),h=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,i=2*Math.floor(this.pt.v),s=2*Math.PI/i,a=!0,o=this.or.v,l=this.ir.v,c=this.os.v,h=this.is.v,u=2*Math.PI*o/(2*i),d=2*Math.PI*l/(2*i),p=-Math.PI/2;p+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){n=a?c:h,r=a?u:d;var m=(t=a?o:l)*Math.cos(p),g=t*Math.sin(p),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*r*n*f,g-v*r*n*f,m+y*r*n*f,g+v*r*n*f,e,!0),a=!a,p+=s*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,i=this.os.v,s=2*Math.PI*r/(4*t),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(a),c=r*Math.sin(a),h=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),u=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-h*s*i*o,c-u*s*i*o,l+h*s*i*o,c+u*s*i*o,e,!0),a+=n*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=bmMin(n,r,this.r.v),s=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+i,e+n,t-r+s,0,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-s,e+n,t+r-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+r,e+n-i,t+r,e+n-s,t+r,2,!0),this.v.setTripleAt(e-n+i,t+r,e-n+s,t+r,e-n+i,t+r,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-i,e-n,t+r-s,4,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+s,e-n,t-r+i,5,!0),this.v.setTripleAt(e-n+i,t-r,e-n+i,t-r,e-n+s,t-r,6,!0),this.v.setTripleAt(e+n-i,t-r,e+n-s,t-r,e+n-i,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+s,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+s,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+s,e+n,t-r+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-r,e+n-i,t-r,e+n-s,t-r,1,!0),this.v.setTripleAt(e-n+i,t-r,e-n+s,t-r,e-n+i,t-r,2,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+i,e-n,t-r+s,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-s,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n+i,t+r,e-n+i,t+r,e-n+s,t+r,5,!0),this.v.setTripleAt(e+n-i,t+r,e+n-s,t+r,e+n-i,t+r,6,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-i,e+n,t+r-s,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+s,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-s,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-s,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}(),d={getShapeProp:function(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new l(e,t,n):new a(e,t,n):5===n?r=new u(e,t):6===n?r=new c(e,t):7===n&&(r=new h(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return d}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function a(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function o(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function h(e,t){return this.shear(n(e),n(t))}function u(r,i){var s=e(i),a=t(i);return this._t(s,a,0,0,-a,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(s,-a,0,0,a,s,0,0,0,0,1,0,0,0,0,1)}function d(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function p(e,t,n,r,i,s,a,o,l,c,h,u,d,p,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=s,this.props[6]=a,this.props[7]=o,this.props[8]=l,this.props[9]=c,this.props[10]=h,this.props[11]=u,this.props[12]=d,this.props[13]=p,this.props[14]=f,this.props[15]=m,this}function f(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function m(e,t,n,r,i,s,a,o,l,c,h,u,d,p,f,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===i&&1===s&&0===a&&0===o&&0===l&&0===c&&1===h&&0===u)return g[12]=g[12]*e+g[15]*d,g[13]=g[13]*s+g[15]*p,g[14]=g[14]*h+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],w=g[4],C=g[5],E=g[6],S=g[7],_=g[8],k=g[9],P=g[10],O=g[11],T=g[12],I=g[13],D=g[14],A=g[15];return g[0]=y*e+v*i+b*l+x*d,g[1]=y*t+v*s+b*c+x*p,g[2]=y*n+v*a+b*h+x*f,g[3]=y*r+v*o+b*u+x*m,g[4]=w*e+C*i+E*l+S*d,g[5]=w*t+C*s+E*c+S*p,g[6]=w*n+C*a+E*h+S*f,g[7]=w*r+C*o+E*u+S*m,g[8]=_*e+k*i+P*l+O*d,g[9]=_*t+k*s+P*c+O*p,g[10]=_*n+k*a+P*h+O*f,g[11]=_*r+k*o+P*u+O*m,g[12]=T*e+I*i+D*l+A*d,g[13]=T*t+I*s+D*c+A*p,g[14]=T*n+I*a+D*h+A*f,g[15]=T*r+I*o+D*u+A*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function x(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function C(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function E(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function S(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function _(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,i=this.props[0]/e,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,o=new Matrix;return o.props[0]=t,o.props[1]=n,o.props[4]=r,o.props[5]=i,o.props[12]=s,o.props[13]=a,o}function k(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function P(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=k(e[t]);return r}function O(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],s=this.props[1],a=this.props[4],o=this.props[5],l=this.props[12],c=this.props[13];r[0]=e[0]*i+e[1]*a+l,r[1]=e[0]*s+e[1]*o+c,r[2]=t[0]*i+t[1]*a+l,r[3]=t[0]*s+t[1]*o+c,r[4]=n[0]*i+n[1]*a+l,r[5]=n[0]*s+n[1]*o+c}return r}function T(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function I(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function D(){for(var e=0,t=this.props,n="matrix3d(";e<16;)n+=r(1e4*t[e])/1e4,n+=15===e?")":",",e+=1;return n}function A(e){return e<1e-6&&e>0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function R(){var e=this.props;return"matrix("+A(e[0])+","+A(e[1])+","+A(e[4])+","+A(e[5])+","+A(e[12])+","+A(e[13])+")"}return function(){this.reset=i,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=h,this.skewFromAxis=u,this.shear=c,this.scale=d,this.setTransform=p,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=w,this.applyToX=C,this.applyToY=E,this.applyToZ=S,this.applyToPointArray=T,this.applyToTriplePoints=O,this.applyToPointStringified=I,this.toCSS=D,this.to2dCSS=R,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=P,this.inversePoint=k,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,n){t[e]||(t[e]=n)},e.getModifier=function(e,n,r){return new t[e](n,r)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,i){var s=[];t<=1?s.push({s:e,e:t}):e>=1?s.push({s:e-1,e:t-1}):(s.push({s:e,e:1}),s.push({s:0,e:t-1}));var a,o,l=[],c=s.length;for(a=0;a<c;a+=1){var h,u;(o=s[a]).e*i<r||o.s*i>r+n||(h=o.s*i<=r?0:(o.s*i-r)/n,u=o.e*i>=r+n?1:(o.e*i-r)/n,l.push([h,u]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,r,i;if(this._mdf||e){var s=this.o.v%360/360;if(s<0&&(s+=1),(t=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(n=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var a=t;t=n,n=a}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var o,l,c,h,u,d=this.shapes.length,p=0;if(n===t)for(i=0;i<d;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(i=0;i<d;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<d;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=f.shape.paths)._length,u=0,!f.shape._mdf&&f.pathsData.length)u=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),o=0;o<l;o+=1)h=bez.getSegmentsLength(r.shapes[o]),c.push(h),u+=h.totalLength;f.totalShapeLength=u,f.pathsData=c}p+=u,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=t,b=n,x=0;for(i=d-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&d>1?(y=this.calculateShapeEdges(t,n,f.totalShapeLength,x,p),x+=f.totalShapeLength):y=[[v,b]],l=y.length,o=0;o<l;o+=1){v=y[o][0],b=y[o][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*b}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var w=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var C=w.pop();this.addPaths(w,m),w=this.addShapes(f,g[1],C)}else this.addPaths(w,m),w=this.addShapes(f,g[1]);this.addPaths(w,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,i,s,a){i.setXYAt(t[0],t[1],"o",s),i.setXYAt(n[0],n[1],"i",s+1),a&&i.setXYAt(e[0],e[1],"v",s),i.setXYAt(r[0],r[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,i,s,a,o,l,c,h,u=e.pathsData,d=e.shape.paths.shapes,p=e.shape.paths._length,f=0,m=[],g=!0;for(n?(o=n._length,h=n._length):(n=shapePool.newElement(),o=0,h=0),m.push(n),r=0;r<p;r+=1){for(l=u[r].lengths,n.c=d[r].c,s=d[r].c?l.length:l.length+1,i=1;i<s;i+=1)if(f+(a=l[i-1]).addedLength<t.s)f+=a.addedLength,n.c=!1;else{if(f>t.e){n.c=!1;break}t.s<=f&&t.e>=f+a.addedLength?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[i],d[r].v[i],n,o,g),g=!1):(c=bez.getNewSegment(d[r].v[i-1],d[r].v[i],d[r].o[i-1],d[r].i[i],(t.s-f)/a.addedLength,(t.e-f)/a.addedLength,l[i-1]),this.addSegmentFromArray(c,n,o,g),g=!1,n.c=!1),f+=a.addedLength,o+=1}if(d[r].c&&l.length){if(a=l[i-1],f<=t.e){var y=l[i-1].addedLength;t.s<=f&&t.e>=f+y?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[0],d[r].v[0],n,o,g),g=!1):(c=bez.getNewSegment(d[r].v[i-1],d[r].v[0],d[r].o[i-1],d[r].i[0],(t.s-f)/y,(t.e-f)/y,l[i-1]),this.addSegmentFromArray(c,n,o,g),g=!1,n.c=!1)}else n.c=!1;f+=a.addedLength,o+=1}if(n._length&&(n.setXYAt(n.v[h][0],n.v[h][1],"i",h),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>t.e)break;r<p-1&&(n=shapePool.newElement(),g=!0,m.push(n),o=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,r=[0,0],i=e._length,s=0;for(s=0;s<i;s+=1)r[0]+=e.v[s][0],r[1]+=e.v[s][1];r[0]/=i,r[1]/=i;var a,o,l,c,h,u,d=shapePool.newElement();for(d.c=e.c,s=0;s<i;s+=1)a=e.v[s][0]+(r[0]-e.v[s][0])*n,o=e.v[s][1]+(r[1]-e.v[s][1])*n,l=e.o[s][0]+(r[0]-e.o[s][0])*-n,c=e.o[s][1]+(r[1]-e.o[s][1])*-n,h=e.i[s][0]+(r[0]-e.i[s][0])*-n,u=e.i[s][1]+(r[1]-e.i[s][1])*-n,d.setTripleAt(a,o,l,c,h,u,s);return d},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,i,s,a,o=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<o;n+=1){if(a=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||e)for(a.releaseShapes(),s.shape._mdf=!0,t=s.shape.paths.shapes,i=s.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,i=t.or.k.length;for(r=0;r<i;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(r[0]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),i[0]=s.getValueAtTime(s.keyframes[0].t/n,0),i[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(r[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),i[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(r=[s.pv,a.pv],i[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var i=-t/(2*e);if(0===r)return[i];var s=Math.sqrt(r)/(2*e);return[i-s,i+s]}function polynomialCoefficients(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),i&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var s=polynomialCoefficients(e[0],t[0],n[0],r[0]),a=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[e,t,n,r]}function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var i=r;r=n,n=i}for(var s=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<s.length;a+=1)if(s[a]>0&&s[a]<1){var o=e.point(s[a])[t];o<n?n=o:o>r&&(r=o)}return{min:n,max:r}}function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,n,r,i,s){if(boxIntersect(e,t))if(n>=s||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)i.push([e.t,t.t]);else{var a=splitData(e),o=splitData(t);intersectsImpl(a[0],o[0],n+1,r,i,s),intersectsImpl(a[0],o[1],n+1,r,i,s),intersectsImpl(a[1],o[0],n+1,r,i,s),intersectsImpl(a[1],o[1],n+1,r,i,s)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,r){var i=[e[0],e[1],1],s=[t[0],t[1],1],a=[n[0],n[1],1],o=[r[0],r[1],1],l=crossProduct(crossProduct(i,s),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,n,r,i,s,a){var o=n-Math.PI/2,l=n+Math.PI/2,c=t[0]+Math.cos(n)*r*i,h=t[1]-Math.sin(n)*r*i;e.setTripleAt(c,h,c+Math.cos(o)*s,h-Math.sin(o)*s,c+Math.cos(l)*a,h-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),i=getPerpendicularVector(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,n,r,i,s,a){var o=getProjectingAngle(t,n),l=t.v[n%t._length],c=t.v[0===n?t._length-1:n-1],h=t.v[(n+1)%t._length],u=2===s?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,d=2===s?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0;setPoint(e,t.v[n%t._length],o,a,r,d/(2*(i+1)),u/(2*(i+1)),s)}function zigZagSegment(e,t,n,r,i,s){for(var a=0;a<r;a+=1){var o=(a+1)/(r+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(o);setPoint(e,t.point(o),c,s,n,l/(2*(r+1)),l/(2*(r+1)),i),s=-s}return s}function linearOffset(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,n),polarOffset(t,r,n)]}function offsetSegment(e,t){var n,r,i,s,a,o,l;n=(l=linearOffset(e.points[0],e.points[1],t))[0],r=l[1],i=(l=linearOffset(e.points[1],e.points[2],t))[0],s=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],o=l[1];var c=lineIntersection(n,r,i,s);null===c&&(c=r);var h=lineIntersection(a,o,i,s);return null===h&&(h=a),new PolynomialBezier(n,c,h,o)}function joinLines(e,t,n,r,i){var s=t.points[3],a=n.points[0];if(3===r)return s;if(pointEqual(s,a))return s;if(2===r){var o=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),h=c?pointDistance(c,s):pointDistance(s,a)/2,u=polarOffset(s,o,2*h*roundCorner);return e.setXYAt(u[0],u[1],"o",e.length()-1),u=polarOffset(a,l,2*h*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],u[0],u[1],e.length()),a}var d=lineIntersection(pointEqual(s,t.points[2])?t.points[0]:t.points[2],s,a,pointEqual(a,n.points[1])?n.points[3]:n.points[1]);return d&&pointDistance(d,s)<i?(e.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],e.length()),d):s}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),r=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(n[e.length-1]=e[e.length-1].split(i[0])[0],r[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n,r,i,s,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return n=(i=e.split(a[0]))[0],r=i[1],[offsetSegment(n,t),offsetSegment(r,t)];n=(i=e.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return s=(i=i[1].split(o))[0],r=i[1],[offsetSegment(n,t),offsetSegment(s,t),offsetSegment(r,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,s=0;s<i;s+=1)switch(t[s].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,i,s){var a=s?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*a*i,r.p.v[1]*a*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*a*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(s?1/o:o,s?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,i,s,a=!1;if(this._mdf||e){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(s=0,r=0;r<=this._groups.length-1;r+=1){if(o=s<l,this._groups[r]._render=o,this.changeGroupRender(this._groups[r].it,o),!o){var h=this.elemsData[r].it,u=h[h.length-1];0!==u.transform.op.v?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}s+=1}this._currentCopies=l;var d=this.o.v,p=d%1,f=d>0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(d>0){for(;x<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),x+=p)}else if(d<0){for(;x>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),x-=p)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,s=this._currentCopies;s;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==x){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)n[v]=this.matrix.props[v];x+=1,s-=1,r+=i}}else for(s=this._currentCopies,r=0,i=1;s;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,s-=1,r+=i;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,r=shapePool.newElement();r.c=e.c;var i,s,a,o,l,c,h,u,d,p,f,m,g=e._length,y=0;for(n=0;n<g;n+=1)i=e.v[n],a=e.o[n],s=e.i[n],i[0]===a[0]&&i[1]===a[1]&&i[0]===s[0]&&i[1]===s[1]?0!==n&&n!==g-1||e.c?(o=0===n?e.v[g-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,h=f=i[0]+(o[0]-i[0])*c,u=m=i[1]-(i[1]-o[1])*c,d=h-(h-i[0])*roundCorner,p=u-(u-i[1])*roundCorner,r.setTripleAt(h,u,d,p,f,m,y),y+=1,o=n===g-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,h=d=i[0]+(o[0]-i[0])*c,u=p=i[1]+(o[1]-i[1])*c,f=h-(h-i[0])*roundCorner,m=u-(u-i[1])*roundCorner,r.setTripleAt(h,u,d,p,f,m,y),y+=1):(r.setTripleAt(i[0],i[1],a[0],a[1],s[0],s[1],y),y+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],y),y+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,i,s,a,o=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<o;n+=1){if(a=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||e)for(a.releaseShapes(),s.shape._mdf=!0,t=s.shape.paths.shapes,i=s.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,n,e),s=lerpPoint(n,r,e),a=lerpPoint(i,s,e);return[new PolynomialBezier(this.points[0],t,i,a,!0),new PolynomialBezier(a,s,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,n,r){var i=e._length,s=shapePool.newElement();if(s.c=e.c,e.c||(i-=1),0===i)return s;var a=-1,o=PolynomialBezier.shapeSegment(e,0);zigZagCorner(s,e,0,t,n,r,a);for(var l=0;l<i;l+=1)a=zigZagSegment(s,o,t,n,r,-a),o=l!==i-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%i):null,zigZagCorner(s,e,l+1,t,n,r,a);return s},ZigZagModifier.prototype.processShapes=function(e){var t,n,r,i,s,a,o=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),h=this.pointsType.v;if(0!==l)for(n=0;n<o;n+=1){if(a=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||e)for(a.releaseShapes(),s.shape._mdf=!0,t=s.shape.paths.shapes,i=s.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l,c,h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,n,r){var i=shapePool.newElement();i.c=e.c;var s,a,o,l=e.length();e.c||(l-=1);var c=[];for(s=0;s<l;s+=1)o=PolynomialBezier.shapeSegment(e,s),c.push(offsetSegmentSplit(o,t));if(!e.c)for(s=l-1;s>=0;s-=1)o=PolynomialBezier.shapeSegmentInverted(e,s),c.push(offsetSegmentSplit(o,t));c=pruneIntersections(c);var h=null,u=null;for(s=0;s<c.length;s+=1){var d=c[s];for(u&&(h=joinLines(i,u,d[0],n,r)),u=d[d.length-1],a=0;a<d.length;a+=1)o=d[a],h&&pointEqual(o.points[0],h)?i.setXYAt(o.points[1][0],o.points[1][1],"o",i.length()-1):i.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],i.length()),i.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],i.length()),h=o.points[3]}return c.length&&joinLines(i,u,c[0][0],n,r),i},OffsetPathModifier.prototype.processShapes=function(e){var t,n,r,i,s,a,o=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,h=this.lineJoin;if(0!==l)for(n=0;n<o;n+=1){if(a=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||e)for(a.releaseShapes(),s.shape._mdf=!0,t=s.shape.paths.shapes,i=s.shape.paths._length,r=0;r<i;r+=1)a.addShape(this.processPath(t[r],l,h,c));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,r=127462,i=127487,s=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function a(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=function(e){var t,n=e.split(","),r=n.length,i=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}(e)+", "+t,{node:r,w:i,parent:n}}function o(e,t){var n,r=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===r){var s=createNS("text");s.style.fontSize="100px",s.setAttribute("font-family",e.fFamily),s.setAttribute("font-style",i.style),s.setAttribute("font-weight",i.weight),s.textContent="1",e.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",e.fClass)):s.style.fontFamily=e.fFamily,t.appendChild(s),n=s}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,n=a}return{measureText:function(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}}}function l(e){var t=0,n=e.charCodeAt(0);if(n>=55296&&n<=56319){var r=e.charCodeAt(1);r>=56320&&r<=57343&&(t=1024*(n-55296)+r-56320+65536)}return t}function c(e){var t=l(e);return t>=r&&t<=i}var h=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};h.isModifier=function(e,t){var n=e.toString(16)+t.toString(16);return-1!==s.indexOf(n)},h.isZeroWidthJoiner=function(e){return 8205===e},h.isFlagEmoji=function(e){return c(e.substr(0,2))&&c(e.substr(2,2))},h.isRegionalCode=c,h.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},h.isRegionalFlag=function(e,t){var r=l(e.substr(t,2));if(r!==n)return!1;var i=0;for(t+=2;i<5;){if((r=l(e.substr(t,2)))<917601||r>917626)return!1;i+=1,t+=2}return 917631===l(e.substr(t,2))},h.isVariationSelector=function(e){return 65039===e},h.BLACK_FLAG_CODE_POINT=n;var u={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,r,i=e.length,s=this.chars.length;for(t=0;t<i;t+=1){for(n=0,r=!1;n<s;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),s+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=o(e),e.cache={}})),void(this.fonts=e.list);var n,r=e.list,i=r.length,s=i;for(n=0;n<i;n+=1){var l,c,h=!0;if(r[n].loaded=!1,r[n].monoCase=a(r[n].fFamily,"monospace"),r[n].sansCase=a(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(h=!1),h){var u=createTag("style");u.setAttribute("f-forigin",r[n].fOrigin),u.setAttribute("f-origin",r[n].origin),u.setAttribute("f-family",r[n].fFamily),u.type="text/css",u.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(u)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(r[n].fPath)&&(h=!1);if(h){var d=createTag("link");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.type="text/css",d.rel="stylesheet",d.href=r[n].fPath,document.body.appendChild(d)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)r[n].fPath===l[c].src&&(h=!1);if(h){var p=createTag("link");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",r[n].fPath),t.appendChild(p)}}}else r[n].loaded=!0,s-=1;r[n].helper=o(r[n],t),r[n].cache={},this.fonts.push(r[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,n,r){for(var i=0,s=this.chars.length;i<s;){if(this.chars[i].ch===t&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,n,r)),e},getFontByName:function(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,n){var r=this.getFontByName(t),i=e;if(!r.cache[i]){var s=r.helper;if(" "===e){var a=s.measureText("|"+e+"|"),o=s.measureText("||");r.cache[i]=(a-o)/100}else r.cache[i]=s.measureText(e)/100}return r.cache[i]*n},checkLoadedFonts:function(){var e,t,n,r=this.fonts.length,i=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,t.offsetWidth!==n?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,t.offsetWidth!==n&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return h.prototype=u,h}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r=e.ef||[];this.effectElements=[];var i,s=r.length;for(n=0;n<s;n+=1)i=new GroupEffect(r[n],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,s=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,s[n].ty){case 0:r=new SliderEffect(s[n],t,this);break;case 1:r=new AngleEffect(s[n],t,this);break;case 2:r=new ColorEffect(s[n],t,this);break;case 3:r=new PointEffect(s[n],t,this);break;case 4:case 7:r=new CheckboxEffect(s[n],t,this);break;case 10:r=new LayerIndexEffect(s[n],t,this);break;case 11:r=new MaskIndexEffect(s[n],t,this);break;case 5:r=new EffectsManager(s[n],t,this);break;default:r=new NoValueEffect(s[n],t,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),n=e("effects"),r=e("shape"),i=e("text"),s=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=s(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,i=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,s=0,a=i.length;s<a;)i[s].ind==t&&(r[s]&&!0!==r[s]?(n.push(r[s]),r[s].setAsParent(),void 0!==i[s].parent?this.buildElementParenting(e,i[s].parent,n):e.setHierarchy(n)):(this.buildItem(s),this.addPendingElement(e))),s+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"==typeof n)t=this.elements[n];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===n){t=this.elements[r];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,s=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l,c,h,u,d,p=this.masksProperties,f=0,m=[],g=createElementID(),y="clipPath",v="clip-path";for(r=0;r<a;r+=1)if(("a"!==p[r].mode&&"n"!==p[r].mode||p[r].inv||100!==p[r].o.k||p[r].o.x)&&(y="mask",v="mask"),"s"!==p[r].mode&&"i"!==p[r].mode||0!==f?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),i=createNS("path"),"n"===p[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),elem:i,lastPath:""},s.appendChild(i);else{var b;if(f+=1,i.setAttribute("fill","s"===p[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==p[r].x.k?(y="mask",v="mask",d=PropertyFactory.getProp(this.element,p[r].x,0,null,this.element),b=createElementID(),(h=createNS("filter")).setAttribute("id",b),(u=createNS("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),h.appendChild(u),s.appendChild(h),i.setAttribute("stroke","s"===p[r].mode?"#000000":"#ffffff")):(u=null,d=null),this.storedData[r]={elem:i,x:d,expan:u,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===p[r].mode){l=m.length;var x=createNS("g");for(o=0;o<l;o+=1)x.appendChild(m[o]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",g+"_"+f),w.appendChild(i),s.appendChild(w),x.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(x)}else m.push(i);p[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(p[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(y),a=m.length,r=0;r<a;r+=1)this.maskElement.appendChild(m[r]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)t.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<t;e+=1){var r=this.localTransforms[e].matrix;n.multiply(r)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,n=e.length;for(t=0;t<n;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):r=!1;var s,a=t.length;for(n=0;n<a;n+=1)s=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-s[0],e[1]-s[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,n){var r,i,s=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,r=1;r<i;r+=1)s+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&i>1&&(s+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==s){var a="";n.elem&&(t.c&&(a=e.inv?this.solidPath+s:s),n.elem.setAttribute("d",a)),n.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;for(this.filters=[],t=0;t<i;t+=1){n=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(n=new(0,registeredEffects$1[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+o,r),r=idPrefix+o,registeredEffects$1[l].countsAsEffect&&(o+=1)),n&&this.filters.push(n)}o&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(n.setAttribute("id",i),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),s.appendChild(this.layerElement),this.transformedElement=s,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,r,i,s=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(r),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),n=filtersFactory.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(r),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),t=createElementID(),n=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),n.appendChild(c);var h=createNS("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),c.appendChild(h),this.globalData.defs.appendChild(n);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(u),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),l.appendChild(u),i.appendChild(this.layerElement),l.appendChild(i)),this.globalData.defs.appendChild(o)}this.matteMasks[e]=s}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,r){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var s,a=t.length||0;for(i=0;i<a;i+=1)s=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=s.k||this.k,this.dataProps[i]={n:t[i].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4==0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,s,a,o=[];for(a=4*t.g.p,s=0;s<a;s+=4)i=createNS("stop"),r.appendChild(i),o.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,s=createNS("mask"),a=createNS("path");s.appendChild(a);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",o),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var h=this.stops;for(r=4*e.g.p;r<i;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(n),h.push(n);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=s,this.ost=h,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var i,s=e.o,a=e.i,o=e.v,l=" M"+r.applyToPointStringified(o[0][0],o[0][1]);for(i=1;i<t;i+=1)l+=" C"+r.applyToPointStringified(s[i-1][0],s[i-1][1])+" "+r.applyToPointStringified(a[i][0],a[i][1])+" "+r.applyToPointStringified(o[i][0],o[i][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(s[i-1][0],s[i-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function i(n,r,i){var s,a,o,l,c,h,u,d,p,f,m=r.styles.length,g=r.lvl;for(h=0;h<m;h+=1){if(l=r.sh._mdf||i,r.styles[h].lvl<g){for(d=t.reset(),p=g-r.styles[h].lvl,f=r.transformers.length-1;!l&&p>0;)l=r.transformers[f].mProps._mdf||l,p-=1,f-=1;if(l)for(p=g-r.styles[h].lvl,f=r.transformers.length-1;p>0;)d.multiply(r.transformers[f].mProps.v),p-=1,f-=1}else d=e;if(a=(u=r.sh.paths)._length,l){for(o="",s=0;s<a;s+=1)(c=u.shapes[s])&&c._length&&(o+=buildShapeString(c,c._length,c.c,d));r.caches[h]=o}else o=r.caches[h];r.styles[h].d+=!0===n.hd?"":o,r.styles[h]._mdf=l||r.styles[h]._mdf}}function s(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,n){o(e,t,n),l(0,t,n)}function o(e,t,n){var r,i,s,a,o,l=t.gf,c=t.g._hasOpacity,h=t.s.v,u=t.e.v;if(t.o._mdf||n){var d="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(d,t.o.v)}if(t.s._mdf||n){var p=1===e.t?"x1":"cx",f="x1"===p?"y1":"cy";l.setAttribute(p,h[0]),l.setAttribute(f,h[1]),c&&!t.g._collapsable&&(t.of.setAttribute(p,h[0]),t.of.setAttribute(f,h[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(s=r.length,i=0;i<s;i+=1)(a=r[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(c&&(t.g._omdf||n)){var g=t.g.o;for(s=(r=t.g._collapsable?t.cst:t.ost).length,i=0;i<s;i+=1)a=r[i],t.g._collapsable||a.setAttribute("offset",g[2*i]+"%"),a.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",u[0]),l.setAttribute("y2",u[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",u[0]),t.of.setAttribute("y2",u[1])));else if((t.s._mdf||t.e._mdf||n)&&(o=Math.sqrt(Math.pow(h[0]-u[0],2)+Math.pow(h[1]-u[1],2)),l.setAttribute("r",o),c&&!t.g._collapsable&&t.of.setAttribute("r",o)),t.e._mdf||t.h._mdf||t.a._mdf||n){o||(o=Math.sqrt(Math.pow(h[0]-u[0],2)+Math.pow(h[1]-u[1],2)));var y=Math.atan2(u[1]-h[1],u[0]-h[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=o*v,x=Math.cos(y+t.a.v)*b+h[0],w=Math.sin(y+t.a.v)*b+h[1];l.setAttribute("fx",x),l.setAttribute("fy",w),c&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",w))}}function l(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return s;case"gf":return o;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,i,s){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=s,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,s=this.stylesList.length,a=[],o=!1;for(n=0;n<s;n+=1){for(r=this.stylesList[n],o=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(a.push(t),o=t._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),i=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var i=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,i,s,a){var o,l,c,h,u,d,p=[].concat(s),f=e.length-1,m=[],g=[];for(o=f;o>=0;o-=1){if((d=this.searchProcessedElement(e[o]))?t[o]=n[d-1]:e[o]._render=a,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty||"no"===e[o].ty)d?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],i),e[o]._render&&t[o].style.pElem.parentNode!==r&&r.appendChild(t[o].style.pElem),m.push(t[o].style);else if("gr"===e[o].ty){if(d)for(c=t[o].it.length,l=0;l<c;l+=1)t[o].prevViewData[l]=t[o].it[l];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,i+1,p,a),e[o]._render&&t[o].gr.parentNode!==r&&r.appendChild(t[o].gr)}else"tr"===e[o].ty?(d||(t[o]=this.createTransformElement(e[o],r)),h=t[o].transform,p.push(h)):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?(d||(t[o]=this.createShapeElement(e[o],p,i)),this.setElementStyles(t[o])):"tm"===e[o].ty||"rd"===e[o].ty||"ms"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(d?(u=t[o]).closed=!1:((u=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=u,this.shapeModifiers.push(u)),g.push(u)):"rp"===e[o].ty&&(d?(u=t[o]).closed=!0:(u=ShapeModifiers.getModifier(e[o].ty),t[o]=u,u.init(this,e,o,t),this.shapeModifiers.push(u),a=!1),g.push(u));this.addProcessedElement(e[o],o+1)}for(f=m.length,o=0;o<f;o+=1)m[o].closed=!0;for(f=g.length,o=0;o<f;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,r,i,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,a=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,s=e||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)s=n!==this.keysIndex?this.effectsSequence[r](s,s.t):this.effectsSequence[r](this.currentData,s.t);t!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,s=e.length,a=!1,o=!1,l="";i<s;)a=o,o=!1,t=e.charCodeAt(i),l=e.charAt(i),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(n=e.charCodeAt(i+1))>=56320&&n<=57343&&(FontManager.isModifier(t,n)?(l=e.substr(i,2),a=!0):l=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(n=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,o=!0),a?(r[r.length-1]+=l,a=!1):r.push(l),i+=l.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,s,a,o,l=this.elem.globalData.fontManager,c=this.data,h=[],u=0,d=c.m.g,p=0,f=0,m=0,g=[],y=0,v=0,b=l.getFontByName(e.f),x=0,w=getFontProperties(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var C,E=e.tr/1e3*e.finalSize;if(e.sz)for(var S,_,k=!0,P=e.sz[0],O=e.sz[1];k;){S=0,y=0,n=(_=this.buildFinalText(e.t)).length,E=e.tr/1e3*e.finalSize;var T=-1;for(t=0;t<n;t+=1)C=_[t].charCodeAt(0),r=!1," "===_[t]?T=t:13!==C&&3!==C||(y=0,r=!0,S+=e.finalLineHeight||1.2*e.finalSize),l.chars?(o=l.getCharData(_[t],b.fStyle,b.fFamily),x=r?0:o.w*e.finalSize/100):x=l.measureText(_[t],e.f,e.finalSize),y+x>P&&" "!==_[t]?(-1===T?n+=1:t=T,S+=e.finalLineHeight||1.2*e.finalSize,_.splice(t,T===t?1:0,"\r"),T=-1,y=0):(y+=x,y+=E);S+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&O<S?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=_,n=e.finalText.length,k=!1)}y=-E,x=0;var I,D=0;for(t=0;t<n;t+=1)if(r=!1,13===(C=(I=e.finalText[t]).charCodeAt(0))||3===C?(D=0,g.push(y),v=y>v?y:v,y=-2*E,i="",r=!0,m+=1):i=I,l.chars?(o=l.getCharData(I,b.fStyle,l.getFontByName(e.f).fFamily),x=r?0:o.w*e.finalSize/100):x=l.measureText(i,e.f,e.finalSize)," "===I?D+=x+E:(y+=x+E+D,D=0),h.push({l:x,an:x,add:p,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==d){if(p+=x,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(p-=x);f<=t;)h[f].an=p,h[f].ind=u,h[f].extra=x,f+=1;u+=1,p=0}}else if(3==d){if(p+=x,""===i||t===n-1){for(""===i&&(p-=x);f<=t;)h[f].an=p,h[f].ind=u,h[f].extra=x,f+=1;p=0,u+=1}}else h[u].ind=u,h[u].extra=0,u+=1;if(e.l=h,v=y>v?y:v,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var A,R,N,M,F=c.a;a=F.length;var L=[];for(s=0;s<a;s+=1){for((A=F[s]).a.sc&&(e.strokeColorAnim=!0),A.a.sw&&(e.strokeWidthAnim=!0),(A.a.fc||A.a.fh||A.a.fs||A.a.fb)&&(e.fillColorAnim=!0),M=0,N=A.s.b,t=0;t<n;t+=1)(R=h[t]).anIndexes[s]=M,(1==N&&""!==R.val||2==N&&""!==R.val&&" "!==R.val||3==N&&(R.n||" "==R.val||t==n-1)||4==N&&(R.n||t==n-1))&&(1===A.s.rn&&L.push(M),M+=1);c.a[s].s.totalChars=M;var j,V=-1;if(1===A.s.rn)for(t=0;t<n;t+=1)V!=(R=h[t]).anIndexes[s]&&(V=R.anIndexes[s],j=L.splice(Math.floor(Math.random()*L.length),1)[0]),R.anIndexes[s]=j}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,s=0,a=1,o=1;this.ne.v>0?i=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,s,a,o).get,c=0,h=this.finalS,u=this.finalE,d=this.data.sh;if(2===d)c=l(c=u===h?r>=u?1:0:e(0,t(.5/(u-h)+(r-h)/(u-h),1)));else if(3===d)c=l(c=u===h?r>=u?0:1:1-e(0,t(.5/(u-h)+(r-h)/(u-h),1)));else if(4===d)u===h?c=0:(c=e(0,t(.5/(u-h)+(r-h)/(u-h),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===d){if(u===h)c=0;else{var p=u-h,f=-p/2+(r=t(e(0,r+.5-h),u-h)),m=p/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===d?(u===h?c=0:(r=t(e(0,r+.5-h),u-h),c=(1+Math.cos(Math.PI+2*Math.PI*r/(u-h)))/2),c=l(c)):(r>=n(h)&&(c=e(0,t(r-h<0?t(u,1)-(h-r):u-r,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var s=r;r=i,i=s}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,s=t.a;this.a={r:s.r?i(e,s.r,0,degToRads,n):r,rx:s.rx?i(e,s.rx,0,degToRads,n):r,ry:s.ry?i(e,s.ry,0,degToRads,n):r,sk:s.sk?i(e,s.sk,0,degToRads,n):r,sa:s.sa?i(e,s.sa,0,degToRads,n):r,s:s.s?i(e,s.s,1,.01,n):r,a:s.a?i(e,s.a,1,0,n):r,o:s.o?i(e,s.o,0,.01,n):r,p:s.p?i(e,s.p,1,0,n):r,sw:s.sw?i(e,s.sw,0,0,n):r,sc:s.sc?i(e,s.sc,1,0,n):r,fc:s.fc?i(e,s.fc,1,0,n):r,fh:s.fh?i(e,s.fh,0,0,n):r,fs:s.fs?i(e,s.fs,0,.01,n):r,fb:s.fb?i(e,s.fb,0,.01,n):r,t:s.t?i(e,s.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,s,a,o,l,c,h,u,d,p,f,m,g,y,v,b,x,w=this._moreOptions.alignment.v,C=this._animatorsData,E=this._textData,S=this.mHelper,_=this._renderType,k=this.renderedLetters.length,P=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O,T=x.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},s=T._length-1,y=0,i=0;i<s;i+=1)O=bez.buildBezierData(T.v[i],T.v[i+1],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[i+1][0]-T.v[i+1][0],T.i[i+1][1]-T.v[i+1][1]]),a.tLength+=O.segmentLength,a.segments.push(O),y+=O.segmentLength;i=s,x.v.c&&(O=bez.buildBezierData(T.v[i],T.v[0],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=O.segmentLength,a.segments.push(O),y+=O.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,d=0,u=1,c=0,h=!0,m=a.segments,o<0&&x.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),u=(f=m[d=m.length-1].points).length-1;o<0;)o+=f[u].partialLength,(u-=1)<0&&(u=(f=m[d-=1].points).length-1);p=(f=m[d].points)[u-1],g=(l=f[u]).partialLength}s=P.length,n=0,r=0;var I,D,A,R,N,M=1.2*e.finalSize*.714,F=!0;A=C.length;var L,j,V,$,B,z,H,K,U,W,G,q,Y=-1,X=o,Z=d,J=u,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ne=0,re=0,ie=2===e.j?-.5:-1,se=0,ae=!0;for(i=0;i<s;i+=1)if(P[i].n){for(ne&&(ne+=re);se<i;)P[se].animatorJustifyOffset=ne,se+=1;ne=0,ae=!0}else{for(D=0;D<A;D+=1)(I=C[D].a).t.propType&&(ae&&2===e.j&&(re+=I.t.v*ie),(N=C[D].s.getMult(P[i].anIndexes[D],E.a[D].s.totalChars)).length?ne+=I.t.v*N[0]*ie:ne+=I.t.v*N*ie);ae=!1}for(ne&&(ne+=re);se<i;)P[se].animatorJustifyOffset=ne,se+=1}for(i=0;i<s;i+=1){if(S.reset(),$=1,P[i].n)n=0,r+=e.yOffset,r+=F?1:0,o=X,F=!1,this._hasMaskedPath&&(u=J,p=(f=m[d=Z].points)[u-1],g=(l=f[u]).partialLength,c=0),ee="",G="",U="",q="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==P[i].line){switch(e.j){case 1:o+=y-e.lineWidths[P[i].line];break;case 2:o+=(y-e.lineWidths[P[i].line])/2}Q=P[i].line}Y!==P[i].ind&&(P[Y]&&(o+=P[Y].extra),o+=P[i].an/2,Y=P[i].ind),o+=w[0]*P[i].an*.005;var oe=0;for(D=0;D<A;D+=1)(I=C[D].a).p.propType&&((N=C[D].s.getMult(P[i].anIndexes[D],E.a[D].s.totalChars)).length?oe+=I.p.v[0]*N[0]:oe+=I.p.v[0]*N),I.a.propType&&((N=C[D].s.getMult(P[i].anIndexes[D],E.a[D].s.totalChars)).length?oe+=I.a.v[0]*N[0]:oe+=I.a.v[0]*N);for(h=!0,this._pathData.a.v&&(o=.5*P[0].an+(y-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*Y/(s-1),o+=this._pathData.f.v);h;)c+g>=o+oe||!f?(v=(o+oe-c)/l.partialLength,j=p.point[0]+(l.point[0]-p.point[0])*v,V=p.point[1]+(l.point[1]-p.point[1])*v,S.translate(-w[0]*P[i].an*.005,-w[1]*M*.01),h=!1):f&&(c+=l.partialLength,(u+=1)>=f.length&&(u=0,m[d+=1]?f=m[d].points:x.v.c?(u=0,f=m[d=0].points):(c-=l.partialLength,f=null)),f&&(p=l,g=(l=f[u]).partialLength));L=P[i].an/2-P[i].add,S.translate(-L,0,0)}else L=P[i].an/2-P[i].add,S.translate(-L,0,0),S.translate(-w[0]*P[i].an*.005,-w[1]*M*.01,0);for(D=0;D<A;D+=1)(I=C[D].a).t.propType&&(N=C[D].s.getMult(P[i].anIndexes[D],E.a[D].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?N.length?o+=I.t.v*N[0]:o+=I.t.v*N:N.length?n+=I.t.v*N[0]:n+=I.t.v*N));for(e.strokeWidthAnim&&(z=e.sw||0),e.strokeColorAnim&&(B=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(H=[e.fc[0],e.fc[1],e.fc[2]]),D=0;D<A;D+=1)(I=C[D].a).a.propType&&((N=C[D].s.getMult(P[i].anIndexes[D],E.a[D].s.totalChars)).length?S.translate(-I.a.v[0]*N[0],-I.a.v[1]*N[1],I.a.v[2]*N[2]):S.translate(-I.a.v[0]*N,-I.a.v[1]*N,I.a.v[2]*N));for(D=0;D<A;D+=1)(I=C[D].a).s.propType&&((N=C[D].s.getMult(P[i].anIndexes[D],E.a[D].s.totalChars)).length?S.scale(1+(I.s.v[0]-1)*N[0],1+(I.s.v[1]-1)*N[1],1):S.scale(1+(I.s.v[0]-1)*N,1+(I.s.v[1]-1)*N,1));for(D=0;D<A;D+=1){if(I=C[D].a,N=C[D].s.getMult(P[i].anIndexes[D],E.a[D].s.totalChars),I.sk.propType&&(N.length?S.skewFromAxis(-I.sk.v*N[0],I.sa.v*N[1]):S.skewFromAxis(-I.sk.v*N,I.sa.v*N)),I.r.propType&&(N.length?S.rotateZ(-I.r.v*N[2]):S.rotateZ(-I.r.v*N)),I.ry.propType&&(N.length?S.rotateY(I.ry.v*N[1]):S.rotateY(I.ry.v*N)),I.rx.propType&&(N.length?S.rotateX(I.rx.v*N[0]):S.rotateX(I.rx.v*N)),I.o.propType&&(N.length?$+=(I.o.v*N[0]-$)*N[0]:$+=(I.o.v*N-$)*N),e.strokeWidthAnim&&I.sw.propType&&(N.length?z+=I.sw.v*N[0]:z+=I.sw.v*N),e.strokeColorAnim&&I.sc.propType)for(K=0;K<3;K+=1)N.length?B[K]+=(I.sc.v[K]-B[K])*N[0]:B[K]+=(I.sc.v[K]-B[K])*N;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(K=0;K<3;K+=1)N.length?H[K]+=(I.fc.v[K]-H[K])*N[0]:H[K]+=(I.fc.v[K]-H[K])*N;I.fh.propType&&(H=N.length?addHueToRGB(H,I.fh.v*N[0]):addHueToRGB(H,I.fh.v*N)),I.fs.propType&&(H=N.length?addSaturationToRGB(H,I.fs.v*N[0]):addSaturationToRGB(H,I.fs.v*N)),I.fb.propType&&(H=N.length?addBrightnessToRGB(H,I.fb.v*N[0]):addBrightnessToRGB(H,I.fb.v*N))}}for(D=0;D<A;D+=1)(I=C[D].a).p.propType&&(N=C[D].s.getMult(P[i].anIndexes[D],E.a[D].s.totalChars),this._hasMaskedPath?N.length?S.translate(0,I.p.v[1]*N[0],-I.p.v[2]*N[1]):S.translate(0,I.p.v[1]*N,-I.p.v[2]*N):N.length?S.translate(I.p.v[0]*N[0],I.p.v[1]*N[1],-I.p.v[2]*N[2]):S.translate(I.p.v[0]*N,I.p.v[1]*N,-I.p.v[2]*N));if(e.strokeWidthAnim&&(U=z<0?0:z),e.strokeColorAnim&&(W="rgb("+Math.round(255*B[0])+","+Math.round(255*B[1])+","+Math.round(255*B[2])+")"),e.fillColorAnim&&e.fc&&(G="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(S.translate(0,-e.ls),S.translate(0,w[1]*M*.01+r,0),this._pathData.p.v){b=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<p.point[0]&&(le+=180),S.rotate(-le*Math.PI/180)}S.translate(j,V,0),o-=w[0]*P[i].an*.005,P[i+1]&&Y!==P[i+1].ind&&(o+=P[i].an/2,o+=.001*e.tr*e.finalSize)}else{switch(S.translate(n,r,0),e.ps&&S.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:S.translate(P[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[i].line]),0,0);break;case 2:S.translate(P[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[i].line])/2,0,0)}S.translate(0,-e.ls),S.translate(L,0,0),S.translate(w[0]*P[i].an*.005,w[1]*M*.01,0),n+=P[i].l+.001*e.tr*e.finalSize}"html"===_?ee=S.toCSS():"svg"===_?ee=S.to2dCSS():te=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],q=$}k<=i?(R=new LetterProps(q,U,W,G,ee,te),this.renderedLetters.push(R),k+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[i],this.lettersChangedFlag=R.update(q,U,W,G,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,r,i=t.length,s="";for(n=0;n<i;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,s+=buildShapeString(r,r.i.length,!0,e));return s},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),i=createElementID();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var s=createNS("desc"),a=createElementID();s.setAttribute("id",a),s.textContent=t.description,this.svgElement.appendChild(s),n+=" "+a}n&&this.svgElement.setAttribute("aria-labelledby",n);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,s=n.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var a,o=n.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var c=this.mHelper,h=this.data.singleShape,u=0,d=0,p=!0,f=.001*n.tr*n.finalSize;if(!h||l||n.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!h||0===e){if(a=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),h&&(o[e].n&&(u=-f,d+=n.yOffset,d+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(n,c,o[e].line,u,d),u+=o[e].l||0,u+=f),l){var v;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,n.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var x=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[e].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[e].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else h&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=o[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}h&&a&&a.setAttribute("d","")}else{var w=this.textContainer,C="start";switch(n.j){case 1:C="end";break;case 2:C="middle";break;default:C="start"}w.setAttribute("text-anchor",C),w.setAttribute("letter-spacing",f);var E=this.buildTextContents(n.finalText);for(t=E.length,d=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=E[e],a.setAttribute("x",0),a.setAttribute("y",d),a.style.display="inherit",w.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,d+=n.finalLineHeight;this.layerElement.appendChild(w)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,i,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(n=s[e],r=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=createElementID();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var i=t[r].getMatte(this.layers[e].tt);n.setMatte(i)}else this.buildItem(r),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[r].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var i=this.sequences[r];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var n=0,r=e.transforms.length,i=t;n<r&&!t;){if(e.transforms[n].transform.mProps._mdf){i=!0;break}n+=1}if(i)for(e.finalTransform.reset(),n=r-1;n>=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,n=null,r=null;function i(){var i,s,a;t||(i=createNS("svg"),s=createNS("filter"),a=createNS("feColorMatrix"),s.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),s.appendChild(a),i.appendChild(s),i.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),r=i,document.body.appendChild(r),t=createTag("canvas"),(n=t.getContext("2d")).filter="url(#"+e+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}return{load:i,get:function(r){return t||i(),t.width=r.width,t.height=r.height,n.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,n,r=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<r;t+=1){n=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(n=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var n;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,i=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(i=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,n,r,i=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var o;this.masksProperties[e].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),r=this.viewData[e].v,t=i.applyToPointArray(r.v[0][0],r.v[0][1],0),s.moveTo(t[0],t[1]);var l=r._length;for(o=1;o<l;o+=1)n=i.applyToTriplePoints(r.o[o-1],r.i[o],r.v[o]),s.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=i.applyToTriplePoints(r.o[o-1],r.i[0],r.v[0]),s.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,o=n.length;for(i=0;i<o;i+=1)n[i].closed||(a={transforms:r.addTransformSequence(n[i].transforms),trNodes:[]},this.styledShapes.push(a),n[i].elements.push(a))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,s=e.ks.or.k.length;for(i=0;i<s;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);r.d=i,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,i){var s,a,o,l,c,h,u=e.length-1,d=[],p=[],f=[].concat(i);for(s=u;s>=0;s-=1){if((l=this.searchProcessedElement(e[s]))?t[s]=n[l-1]:e[s]._shouldRender=r,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty)l?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],f),d.push(t[s].style);else if("gr"===e[s].ty){if(l)for(o=t[s].it.length,a=0;a<o;a+=1)t[s].prevViewData[a]=t[s].it[a];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,r,f)}else"tr"===e[s].ty?(l||(h=this.createTransformElement(e[s]),t[s]=h),f.push(t[s]),this.addTransformToStyleList(t[s])):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?l||(t[s]=this.createShapeElement(e[s])):"tm"===e[s].ty||"rd"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(l?(c=t[s]).closed=!1:((c=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=c,this.shapeModifiers.push(c)),p.push(c)):"rp"===e[s].ty&&(l?(c=t[s]).closed=!0:(c=ShapeModifiers.getModifier(e[s].ty),t[s]=c,c.init(this,e,s,t),this.shapeModifiers.push(c),r=!1),p.push(c));this.addProcessedElement(e[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),u=p.length,s=0;s<u;s+=1)p[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,r,i,s,a,o,l,c=this.stylesList.length,h=this.globalData.renderer,u=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(o=(l=this.stylesList[e]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(h.save(),s=l.elements,"st"===o||"gs"===o?(h.ctxStrokeStyle("st"===o?l.co:l.grd),h.ctxLineWidth(l.wi),h.ctxLineCap(l.lc),h.ctxLineJoin(l.lj),h.ctxMiterLimit(l.ml||0)):h.ctxFillStyle("fl"===o?l.co:l.grd),h.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&u.beginPath(),h.ctxTransform(l.preTransforms.finalTransform.props),n=s.length,t=0;t<n;t+=1){for("st"!==o&&"gs"!==o||(u.beginPath(),l.da&&(u.setLineDash(l.da),u.lineDashOffset=l.do)),i=(a=s[t].trNodes).length,r=0;r<i;r+=1)"m"===a[r].t?u.moveTo(a[r].p[0],a[r].p[1]):"c"===a[r].t?u.bezierCurveTo(a[r].pts[0],a[r].pts[1],a[r].pts[2],a[r].pts[3],a[r].pts[4],a[r].pts[5]):u.closePath();"st"!==o&&"gs"!==o||(h.ctxStroke(),l.da&&u.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&this.globalData.renderer.ctxFill(l.r),h.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var i,s;for(s=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(s=n[i].transform,this.renderShapeTransform(e,s)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],n[i]):"fl"===t[i].ty?this.renderFill(t[i],n[i],s):"st"===t[i].ty?this.renderStroke(t[i],n[i],s):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],n[i],s):"gr"===t[i].ty?this.renderShape(s,t[i].it,n[i].it):t[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,i,s=e.trNodes,a=t.paths,o=a._length;s.length=0;var l=e.transforms.finalTransform;for(i=0;i<o;i+=1){var c=a.shapes[i];if(c&&c.v){for(r=c._length,n=1;n<r;n+=1)1===n&&s.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),s.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});1===r&&s.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&r&&(s.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),s.push({t:"z"}))}}e.trNodes=s}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var s,a=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(1===e.t)r=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),h=Math.atan2(l[1]-o[1],l[0]-o[0]),u=t.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var d=c*u,p=Math.cos(h+t.a.v)*d+o[0],f=Math.sin(h+t.a.v)*d+o[1];r=a.createRadialGradient(p,f,0,o[0],o[1],c)}var m=e.g.p,g=t.g.c,y=1;for(s=0;s<m;s+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*s+1]),r.addColorStop(g[4*s]/100,"rgba("+g[4*s+1]+","+g[4*s+2]+","+g[4*s+3]+","+y+")");i.grd=r}i.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(r.da=i.dashArray,r.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r,i,s,a,o,l,c,h,u,d,p,f,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var v=this.data.singleShape,b=.001*e.tr*e.finalSize,x=0,w=0,C=!0,E=0;for(r=0;r<i;r+=1){a=(s=this.globalData.fontManager.getCharData(e.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&s.data||{},y.reset(),v&&g[r].n&&(x=-b,w+=e.yOffset,w+=C?1:0,C=!1),u=(c=a.shapes?a.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,y,g[r].line,x,w),p=createSizedArray(u-1);var S=0;for(h=0;h<u;h+=1)if("sh"===c[h].ty){for(l=c[h].ks.k.i.length,d=c[h].ks.k,f=[],o=1;o<l;o+=1)1===o&&f.push(y.applyToX(d.v[0][0],d.v[0][1],0),y.applyToY(d.v[0][0],d.v[0][1],0)),f.push(y.applyToX(d.o[o-1][0],d.o[o-1][1],0),y.applyToY(d.o[o-1][0],d.o[o-1][1],0),y.applyToX(d.i[o][0],d.i[o][1],0),y.applyToY(d.i[o][0],d.i[o][1],0),y.applyToX(d.v[o][0],d.v[o][1],0),y.applyToY(d.v[o][0],d.v[o][1],0));f.push(y.applyToX(d.o[o-1][0],d.o[o-1][1],0),y.applyToY(d.o[o-1][0],d.o[o-1][1],0),y.applyToX(d.i[0][0],d.i[0][1],0),y.applyToY(d.i[0][0],d.i[0][1],0),y.applyToX(d.v[0][0],d.v[0][1],0),y.applyToY(d.v[0][0],d.v[0][1],0)),p[S]=f,S+=1}v&&(x+=g[r].l,x+=b),this.textSpans[E]?this.textSpans[E].elem=p:this.textSpans[E]={elem:p},E+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,r,i,s;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,h,u=null,d=null,p=null,f=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((a=o[e])&&(f.save(),f.ctxTransform(a.p),f.ctxOpacity(a.o)),this.fill){for(a&&a.fc?u!==a.fc&&(f.ctxFillStyle(a.fc),u=a.fc):u!==this.values.fill&&(u=this.values.fill,f.ctxFillStyle(this.values.fill)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(s=(h=c[n]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),i=2;i<s;i+=6)this.globalData.canvasContext.bezierCurveTo(h[i],h[i+1],h[i+2],h[i+3],h[i+4],h[i+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(a&&a.sw?p!==a.sw&&(p=a.sw,f.ctxLineWidth(a.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),a&&a.sc?d!==a.sc&&(d=a.sc,f.ctxStrokeStyle(a.sc)):d!==this.values.stroke&&(d=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(s=(h=c[n]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),i=2;i<s;i+=6)this.globalData.canvasContext.bezierCurveTo(h[i],h[i+1],h[i+2],h[i+3],h[i+4],h[i+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,n,r=e.getContext("2d"),i=this.img.width,s=this.img.height,a=i/s,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&"xMidYMid slice"===l||a<o&&"xMidYMid slice"!==l?t=(n=s)*o:n=(t=i)/o,r.drawImage(this.img,(i-t)/2,(s-n)/2,t,n,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,r){this.canvasContext.fillRect(e,t,n,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var n,r,i,s;if(this.reset(),e?(n=e,r=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),h=l.substr(4);i=n/r,(s=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===o||s<i&&"slice"===o?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(s<i&&"meet"===o||s>i&&"slice"===o)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(s<i&&"meet"===o||s>i&&"slice"===o)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===h&&(s>i&&"meet"===o||s<i&&"slice"===o)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===h&&(s>i&&"meet"===o||s<i&&"slice"===o)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,n=this.stack[this.cArrPos],r=n.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=r[t];if(e){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||-1!==n.opacity&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n,r=this.stack[this.cArrPos];for(n=0;n<16;n+=1)r.transform[n]=t[n];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=r.opacity,i.fillStyle=r.fillStyle,i.strokeStyle=r.strokeStyle,i.lineWidth=r.lineWidth,i.lineCap=r.lineCap,i.lineJoin=r.lineJoin,i.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,r,i,s,a,o=e.sh.v,l=e.transformers,c=o._length;if(!(c<=1)){for(n=0;n<c-1;n+=1)r=this.getTransformedPoint(l,o.v[n]),i=this.getTransformedPoint(l,o.o[n]),s=this.getTransformedPoint(l,o.i[n+1]),a=this.getTransformedPoint(l,o.v[n+1]),this.checkBounds(r,i,s,a,t);o.c&&(r=this.getTransformedPoint(l,o.v[n]),i=this.getTransformedPoint(l,o.o[n]),s=this.getTransformedPoint(l,o.i[0]),a=this.getTransformedPoint(l,o.v[0]),this.checkBounds(r,i,s,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,i){this.getBoundsOfCurve(e,t,n,r);var s=this.shapeBoundingBox;i.x=bmMin(s.left,i.x),i.xMax=bmMax(s.right,i.xMax),i.y=bmMin(s.top,i.y),i.yMax=bmMax(s.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var i,s,a,o,l,c,h,u=[[e[0],r[0]],[e[1],r[1]]],d=0;d<2;++d)s=6*e[d]-12*t[d]+6*n[d],i=-3*e[d]+9*t[d]-9*n[d]+3*r[d],a=3*t[d]-3*e[d],s|=0,a|=0,0==(i|=0)&&0===s||(0===i?(o=-a/s)>0&&o<1&&u[d].push(this.calculateF(o,e,t,n,r,d)):(l=s*s-4*a*i)>=0&&((c=(-s+bmSqrt(l))/(2*i))>0&&c<1&&u[d].push(this.calculateF(c,e,t,n,r,d)),(h=(-s-bmSqrt(l))/(2*i))>0&&h<1&&u[d].push(this.calculateF(h,e,t,n,r,d))));this.shapeBoundingBox.left=bmMin.apply(null,u[0]),this.shapeBoundingBox.top=bmMin.apply(null,u[1]),this.shapeBoundingBox.right=bmMax.apply(null,u[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,u[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,i,s){return bmPow(1-e,3)*t[s]+3*bmPow(1-e,2)*e*n[s]+3*(1-e)*bmPow(e,2)*r[s]+bmPow(e,3)*i[s]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var i=e.keyframes[r].s;i>n&&(n=i)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=i,r.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r,i,s=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{t.fontFamily=s.fFamily;var a=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=a}var l,c,h,u=e.l;i=u.length;var d,p=this.mHelper,f="",m=0;for(r=0;r<i;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?h=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(h=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[r],s.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,p.reset(),g&&g.shapes&&g.shapes.length&&(d=g.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(p,d),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(h);var v=h.getBBox();h.setAttribute("width",v.width+2),h.setAttribute("height",v.height+2),h.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=h.style,x="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=x,b.webkitTransform=x,u[r].yOffset=v.y-1}else h.setAttribute("width",1),h.setAttribute("height",1);c.appendChild(h)}}else if(l.textContent=u[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var w=l.style,C="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=C,w.webkitTransform=C}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,r,i,s,a,o=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(r=c.length,n=0;n<r;n+=1)c[n].n?o+=1:(s=this.textSpans[n],a=this.textPaths[n],i=l[o],o+=1,i._mdf.m&&(this.isMasked?s.setAttribute("transform",i.m):(s.style.webkitTransform=i.m,s.style.transform=i.m)),s.style.opacity=i.o,i.sw&&i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&a.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(a.setAttribute("fill",i.fc),a.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var h=this.innerElem.getBBox();if(this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height)),this.currentBBox.w!==h.width+2||this.currentBBox.h!==h.height+2||this.currentBBox.x!==h.x-1||this.currentBBox.y!==h.y-1){this.currentBBox.w=h.width+2,this.currentBBox.h=h.height+2,this.currentBBox.x=h.x-1,this.currentBBox.y=h.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var u="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=u,e.webkitTransform=u}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,r,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,r=t.container.style;var s=this.pe.v+"px",a="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=s,n.webkitPerspective=s,r.transformOrigin=a,r.mozTransformOrigin=a,r.webkitTransformOrigin=a,n.transform=o,n.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,n=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)n=this.hierarchy[e].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/s,i[1]/s,i[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){var u,d,p;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(u=this.comp.threeDElements[e]).type){if(h){var f=this.mat.toCSS();(p=u.container.style).transform=f,p.webkitTransform=f}this.pe._mdf&&((d=u.perspectiveElem.style).perspective=this.pe.v+"px",d.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var i,s,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||i),a+=1;i?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,i):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,i=createTag("div");styleDiv(i);var s=createTag("div");if(styleDiv(s),"3d"===t){(n=i.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var a="50% 50%";n.webkitTransformOrigin=a,n.mozTransformOrigin=a,n.transformOrigin=a;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=s.style).transform=o,r.webkitTransform=o}i.appendChild(s);var l={container:s,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var i,s=this.threeDElements[n].startPos;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(i=this.elements[s].getBaseElement()),s+=1;i?this.threeDElements[n].container.insertBefore(e,i):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var s=createNS("defs");i.appendChild(s),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=s,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,n,r,i=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,a=i/s;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,n=0,r=(s-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=s/this.globalData.compSize.h,t=s/this.globalData.compSize.h,n=(i-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,r=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t],r,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}function seedRandom(e,t){var n,r=this,i=256,s="random",a=t.pow(i,6),o=t.pow(2,52),l=2*o,c=i-1;function h(e){var t,n=e.length,r=this,s=0,a=r.i=r.j=0,o=r.S=[];for(n||(e=[n++]);s<i;)o[s]=s++;for(s=0;s<i;s++)o[s]=o[a=c&a+e[s%n]+(t=o[s])],o[a]=t;r.g=function(e){for(var t,n=0,s=r.i,a=r.j,o=r.S;e--;)t=o[s=c&s+1],n=n*i+o[c&(o[s]=o[a=c&a+t])+(o[a]=t)];return r.i=s,r.j=a,n}}function u(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function d(e,t){var n,r=[],i=_typeof$2(e);if(t&&"object"==i)for(n in e)try{r.push(d(e[n],t-1))}catch(e){}return r.length?r:"string"==i?e:e+"\0"}function p(e,t){for(var n,r=e+"",i=0;i<r.length;)t[c&i]=c&(n^=19*t[c&i])+r.charCodeAt(i++);return f(t)}function f(e){return String.fromCharCode.apply(0,e)}t["seed"+s]=function(c,m,g){var y=[],v=p(d((m=!0===m?{entropy:!0}:m||{}).entropy?[c,f(e)]:null===c?function(){try{if(n)return f(n.randomBytes(i));var t=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(t),f(t)}catch(t){var s=r.navigator,a=s&&s.plugins;return[+new Date,r,a,r.screen,f(e)]}}():c,3),y),b=new h(y),x=function(){for(var e=b.g(6),t=a,n=0;e<o;)e=(e+n)*i,t*=i,n=b.g(1);for(;e>=l;)e/=2,t/=2,n>>>=1;return(e+n)/t};return x.int32=function(){return 0|b.g(4)},x.quick=function(){return b.g(4)/4294967296},x.double=x,p(f(b.S),e),(m.pass||g||function(e,n,r,i){return i&&(i.S&&u(i,b),e.state=function(){return u(b,{})}),r?(t[s]=e,n):e})(x,v,"global"in m?m.global:this==t,m.state)},p(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;n<r;n+=1)i[n]=-e[n];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t)||"string"===n||"string"===r)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,s=e.length,a=t.length,o=[];i<s||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?o[i]=e[i]+t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,s=e.length,a=t.length,o=[];i<s||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?o[i]=e[i]-t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}function mul(e,t){var n,r,i,s=_typeof$1(e),a=_typeof$1(t);if(isNumerable(s,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e[r]*t;return n}if(isNumerable(s,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,i,s=_typeof$1(e),a=_typeof$1(t);if(isNumerable(s,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e[r]/t;return n}if(isNumerable(s,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e/t[r];return n}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),i=0;for(n=0;n<r;n+=1)i+=Math.pow(t[n]-e[n],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],i=e[1],s=e[2],a=Math.max(r,i,s),o=Math.min(r,i,s),l=(a+o)/2;if(a===o)t=0,n=0;else{var c=a-o;switch(n=l>.5?c/(2-a-o):c/(a+o),a){case r:t=(i-s)/c+(i<s?6:0);break;case i:t=(s-r)/c+2;break;case s:t=(r-i)/c+4}t/=6}return[t,n,l,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,i=e[0],s=e[1],a=e[2];if(0===s)t=a,r=a,n=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;t=hue2rgb(l,o,i+1/3),n=hue2rgb(l,o,i),r=hue2rgb(l,o,i-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,i){if(void 0!==r&&void 0!==i||(r=t,i=n,t=0,n=1),n<t){var s=n;n=t,t=s}if(e<=t)return r;if(e>=n)return i;var a,o=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*o;var l=r.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=r[a]+(i[a]-r[a])*o;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var i=createTypedArray("float32",r),s=BMMath.random();for(n=0;n<r;n+=1)i[n]=e[n]+s*(t[n]-e[n]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var i,s=e.length,a=shapePool.newElement();a.setPathData(!!r,s);var o,l,c=[0,0];for(i=0;i<s;i+=1)o=t&&t[i]?t[i]:c,l=n&&n[i]?n[i]:c,a.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],o[0]+e[i][0],o[1]+e[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var n,r,i=this.pv.length?this.pv.length:1,s=createTypedArray("float32",i),a=Math.floor(5*time);for(n=0,r=0;n<a;){for(r=0;r<i;r+=1)s[r]+=-t+2*t*BMMath.random();n+=1}var o=5*time,l=o-Math.floor(o),c=createTypedArray("float32",i);if(i>1){for(r=0;r<i;r+=1)c[r]=this.pv[r]+s[r]+(-t+2*t*BMMath.random())*l;return c}return this.pv+s[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,i){return applyEase(easeOutBez,e,t,n,r,i)}function easeIn(e,t,n,r,i){return applyEase(easeInBez,e,t,n,r,i)}function ease(e,t,n,r,i){return applyEase(easeInOutBez,e,t,n,r,i)}function applyEase(e,t,n,r,i,s){void 0===i?(i=n,s=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(i)){var o,l=i.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=(s[o]-i[o])*a+i[o];return c}return(s-i)*a+i}function nearestKey(e){var t,n,r,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){n=t+1,r=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var s={};return s.index=n,s.time=r/elem.comp.globalData.frameRate,s}function key(e){var t,n,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=i.length,n=0;n<r;n+=1)t[n]=i[n],t.value[n]=i[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,n=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===n.indexOf(e)&&n.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,r=createSizedArray(t.viewData.length),i=t.viewData.length;for(n=0;n<i;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<i;){if(t.masksProperties[n].nm===e)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var s="unidimensional"===n?new Number(i):Object.assign({},i);return s.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,s.value="unidimensional"===n?i[0]:i,s},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var r=1/t.mult,i=t.pv*r,s=new Number(i);return s.value=i,n(s,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*r,s.value!==i&&((s=new Number(i)).value=i,n(s,t,"unidimensional")),s}}(i):function(e){e&&"pv"in e||(e=t);var r=1/e.mult,i=e.data&&e.data.l||e.pv.length,s=createTypedArray("float32",i),a=createTypedArray("float32",i);return s.value=a,n(s,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)a[t]=e.v[t]*r,s[t]=a[t];return s}}(i):r}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var n,r,i,s;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?s=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?s():[n(),r(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function i(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function s(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function o(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var h;function u(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return u.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return h;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return u.effect;case"ADBE Text Properties":return u.textInterface;default:return null}}u.getMatrix=e,u.invertPoint=a,u.applyPoint=s,u.toWorld=n,u.toWorldVec=t,u.fromWorld=i,u.fromWorldVec=r,u.toComp=n,u.fromComp=o,u.sampleImage=l,u.sourceRectAtTime=c.sourceRectAtTime.bind(c),u._elem=c;var d=getDescriptor(h=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(u,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return h}},active:{get:function(){return c.isInRange}}}),u.startTime=c.data.st,u.index=c.data.ind,u.source=c.data.refId,u.height=0===c.data.ty?c.data.h:100,u.width=0===c.data.ty?c.data.w:100,u.inPoint=c.data.ip/c.comp.globalData.frameRate,u.outPoint=c.data.op/c.comp.globalData.frameRate,u._name=c.data.nm,u.registerMaskInterface=function(e){u.mask=new MaskManagerInterface(e,c)},u.registerEffectsInterface=function(e){u.effect=e},u}}(),propertyGroupFactory=function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}},EffectsExpressionInterface=function(){function e(n,r,i,s){function a(e){for(var t=n.ef,r=0,i=t.length;r<i;){if(e===t[r].nm||e===t[r].mn||e===t[r].ix)return 5===t[r].ty?c[r]:c[r]();r+=1}throw new Error}var o,l=propertyGroupFactory(a,i),c=[],h=n.ef.length;for(o=0;o<h;o+=1)5===n.ef[o].ty?c.push(e(n.ef[o],r.effectElements[o],r.effectElements[o].propertyGroup,s)):c.push(t(r.effectElements[o],n.ef[o].ty,s,l));return"ADBE Color Control"===n.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:l}}),a.enabled=0!==n.en,a.active=a.enabled,a}function t(e,t,n,r){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?n.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,n){if(t.effectsManager){var r,i=[],s=t.data.ef,a=t.effectsManager.effectElements.length;for(r=0;r<a;r+=1)i.push(e(s[r],t.effectsManager.effectElements[r],n,t));var o=t.data.ef||[],l=function(e){for(r=0,a=o.length;r<a;){if(e===o[r].nm||e===o[r].mn||e===o[r].ix)return i[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),ShapePathInterface=function(e,t,n){var r=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var s=propertyGroupFactory(i,n);return r.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(i,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),i},ShapeExpressionInterface=function(){function e(e,a,d){var p,f=[],m=e?e.length:0;for(p=0;p<m;p+=1)"gr"===e[p].ty?f.push(t(e[p],a[p],d)):"fl"===e[p].ty?f.push(n(e[p],a[p],d)):"st"===e[p].ty?f.push(i(e[p],a[p],d)):"tm"===e[p].ty?f.push(s(e[p],a[p],d)):"tr"===e[p].ty||("el"===e[p].ty?f.push(o(e[p],a[p],d)):"sr"===e[p].ty?f.push(l(e[p],a[p],d)):"sh"===e[p].ty?f.push(ShapePathInterface(e[p],a[p],d)):"rc"===e[p].ty?f.push(c(e[p],a[p],d)):"rd"===e[p].ty?f.push(h(e[p],a[p],d)):"rp"===e[p].ty?f.push(u(e[p],a[p],d)):"gf"===e[p].ty?f.push(r(e[p],a[p],d)):f.push((e[p],a[p],function(){return null})));return f}function t(t,n,r){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,r);var s=function(t,n,r){var i,s=function(e){for(var t=0,n=i.length;t<n;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};s.propertyGroup=propertyGroupFactory(s,r),i=e(t.it,n.it,s.propertyGroup),s.numProperties=i.length;var o=a(t.it[t.it.length-1],n.it[n.it.length-1],s.propertyGroup);return s.transform=o,s.propertyIndex=t.cix,s._name=t.nm,s}(t,n,i.propertyGroup),o=a(t.it[t.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.content=s,i.transform=o,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function n(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function i(e,t,n){var r,i=propertyGroupFactory(c,n),s=propertyGroupFactory(l,i);function a(n){Object.defineProperty(l,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var o=e.d?e.d.length:0,l={};for(r=0;r<o;r+=1)a(r),t.d.dataProps[r].p.setGroupProperty(s);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),c}function s(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var i=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function a(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var i=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function o(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var i=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var s="tm"===t.sh.ty?t.sh.prop:t.sh;return s.s.setGroupProperty(PropertyInterface("Size",i)),s.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function l(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}var i=propertyGroupFactory(r,n),s="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,s.or.setGroupProperty(PropertyInterface("Outer Radius",i)),s.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),s.pt.setGroupProperty(PropertyInterface("Points",i)),s.p.setGroupProperty(PropertyInterface("Position",i)),s.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(s.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),s.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var i=propertyGroupFactory(r,n),s="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,s.p.setGroupProperty(PropertyInterface("Position",i)),s.s.setGroupProperty(PropertyInterface("Size",i)),s.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function h(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var i=propertyGroupFactory(r,n),s=t;return r.propertyIndex=e.ix,s.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function u(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var i=propertyGroupFactory(r,n),s=t;return r.propertyIndex=e.ix,s.c.setGroupProperty(PropertyInterface("Copies",i)),s.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var i;function s(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?r:i[e-1];for(var t=0,n=i.length;t<n;){if(i[t]._name===e)return i[t];t+=1}return null}return s.propertyGroup=propertyGroupFactory(s,(function(){return r})),i=e(t,n,s.propertyGroup),s.numProperties=i.length,s._name="Contents",s}}(),TextExpressionInterface=function(e){var t;function n(e){return"ADBE Text Document"===e?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return t&&n===t.value||((t=new String(n)).value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",n=e.getFootageData();function r(e){if(n[e])return t=e,"object"===_typeof(n=n[e])?r:n;var i=e.indexOf(t);if(-1!==i){var s=parseInt(e.substr(i+t.length),10);return"object"===_typeof(n=n[s])?r:n}return""}return function(){return t="",n=e.getFootageData(),r}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),r=0;if(t.length){var i;for(i=0;i<t.length;i+=1)r+=Math.pow(n[i]-t[i],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=-.001,i=this.getValueAtTime(e),s=this.getValueAtTime(e+r);if(i.length)for(t=createTypedArray("float32",i.length),n=0;n<i.length;n+=1)t[n]=(s[n]-i[n])/r;else t=(s-i)/r;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,i,s,a,o,l=this.comp.renderedFrame,c=this.keyframes,h=c[c.length-1].t;if(l<=h)return this.pv;if(n?i=h-(r=t?Math.abs(h-this.elem.comp.globalData.frameRate*t):Math.max(0,h-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),r=h-(i=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/r)%2!=0)return this.getValueAtTime((r-(l-i)%r+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var u=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(h/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0),f=Math.floor((l-i)/r);if(this.pv.length){for(a=(o=new Array(u.length)).length,s=0;s<a;s+=1)o[s]=(d[s]-u[s])*f+p[s];return o}return(d-u)*f+p}if("continue"===e){var m=this.getValueAtTime(h/this.comp.globalData.frameRate,0),g=this.getValueAtTime((h-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*((l-h)/this.comp.globalData.frameRate)/5e-4;return o}return m+(l-h)/.001*(m-g)}}return this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,i,s,a,o,l=this.comp.renderedFrame,c=this.keyframes,h=c[0].t;if(l>=h)return this.pv;if(n?i=h+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-h)):((!t||t>c.length-1)&&(t=c.length-1),r=(i=c[t].t)-h),"pingpong"===e){if(Math.floor((h-l)/r)%2==0)return this.getValueAtTime(((h-l)%r+h)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var u=this.getValueAtTime(h/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime((r-(h-l)%r+h)/this.comp.globalData.frameRate,0),f=Math.floor((h-l)/r)+1;if(this.pv.length){for(a=(o=new Array(u.length)).length,s=0;s<a;s+=1)o[s]=p[s]-(d[s]-u[s])*f;return o}return p-(d-u)*f}if("continue"===e){var m=this.getValueAtTime(h/this.comp.globalData.frameRate,0),g=this.getValueAtTime((h+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*(h-l)/.001;return o}return m+(m-g)*(h-l)/.001}}return this.getValueAtTime((r-((h-l)%r+h))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var n,r,i=this.comp.renderedFrame/this.comp.globalData.frameRate,s=i-e,a=t>1?(i+e-s)/(t-1):1,o=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;o<t;){if(r=this.getValueAtTime(s+o*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=r[l];else n+=r;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),s=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),h=this.or.getValueAtTime(e);t.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-h[2]*this.or.mult).rotateY(h[1]*this.or.mult).rotateX(h[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var u=this.px.getValueAtTime(e),d=this.py.getValueAtTime(e);if(this.data.p.z){var p=this.pz.getValueAtTime(e);t.translate(u*this.px.mult,d*this.py.mult,-p*this.pz.mult)}else t.translate(u*this.px.mult,d*this.py.mult,0)}else{var f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var a=s(e,t,n);return a.dynamicProperties.length?a.getValueAtTime=r.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(r,i,s,o,l){var c=a(r,i,s,o,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=n,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===i.a?i.k.length:0,c.propertyIndex=i.ix;var h=0;return 0!==s&&(h=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:h},expressionHelpers.searchExpressions(r,i,c),c.k&&l.addDynamicProperty(c),c};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var i=r._length,s=r[e],a=r.v,o=createSizedArray(i);for(n=0;n<i;n+=1)o[n]="i"===e||"o"===e?[s[n][0]-a[n][0],s[n][1]-a[n][1]]:[s[n][0],s[n][1]];return o},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,i=this._segmentsLength,s=i.lengths,a=i.totalLength*e,o=0,l=s.length,c=0;o<l;){if(c+s[o].addedLength>a){var h=o,u=n.c&&o===l-1?0:o+1,d=(a-c)/s[o].addedLength;r=bez.getPointInSegment(n.v[h],n.v[u],n.o[h],n.i[u],d,s[o]);break}c+=s[o].addedLength,o+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),s=i[0]-r[0],a=i[1]-r[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===n?[s/o,a/o]:[-a/o,s/o]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],o),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,r,i){var s=h(e,t,n,r,i);return s.propertyIndex=t.ix,s.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,s):4===n&&expressionHelpers.searchExpressions(e,t.ks,s),s.k&&e.addDynamicProperty(s),s}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var n,r,i=createNS("feMerge");for(i.setAttribute("result",e),r=0;r<t.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",t[r]),i.appendChild(n),i.appendChild(n);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,r,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",r+"_tint_1"),e.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",r+"_tint_2"),e.appendChild(s),this.matrixFilter=s;var a=this.createMergeNode(r,[i,r+"_tint_1",r+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),this.matrixFilter=s;var a=createNS("feFuncR");a.setAttribute("type","table"),s.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,e.appendChild(s)}function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var i=this.filterManager.effectElements,s=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(s)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),e.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(e,t,n,r,i){var s=t.container.globalData.renderConfig.filterSize,a=t.data.fs||s;e.setAttribute("x",a.x||s.x),e.setAttribute("y",a.y||s.y),e.setAttribute("width",a.width||s.width),e.setAttribute("height",a.height||s.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",r+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var h=createNS("feComposite");h.setAttribute("in",r+"_drop_shadow_3"),h.setAttribute("in2",r+"_drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(h);var u=this.createMergeNode(r,[r+"_drop_shadow_4",i]);e.appendChild(u)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),a=createElementID();s.setAttribute("id",a),s.setAttribute("mask-type","alpha"),s.appendChild(t),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)o.appendChild(i[0]);this.elem.layerElement.appendChild(o),this.masker=s,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,r,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();s="0 0 0 "+l*a+" ";var c,h=l*(o-a),u=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(h/u);for(c=0;c<d;c+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*l+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",s)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+t[0],s=r[1]+" "+n[1]+" "+t[1],a=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,i){for(var s,a,o=0,l=Math.min(e,t),c=Math.max(e,t),h=Array.call(null,{length:256}),u=0,d=i-r,p=t-e;o<=256;)a=(s=o/256)<=l?p<0?i:r:s>=c?p<0?r:i:r+d*Math.pow((s-e)/p,1/n),h[u]=a,u+=1,o+=256/255;return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),s=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",r),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var r,i=n.children,s=0,a=i.length;s<a&&i[s]!==e.layerElement;)s+=1;s<=a-2&&(r=i[s+1]);var o=createNS("use");o.setAttribute("href","#"+t),r?n.insertBefore(o,r):n.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(r);var s=createNS("symbol");s.setAttribute("id",n),this.replaceInParent(t,n),s.appendChild(t.layerElement),i.appendChild(s);var a=createNS("use");a.setAttribute("href","#"+n),r.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:t,i=2==n?0:t;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+i);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,r=t[1].p.v,i=1===t[2].p.v,s=t[3].p.v,a=i?s:t[4].p.v,o=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(.01*a,.01*s,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},pjuZ:()=>{!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=s(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:s(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},o=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],s=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:s=!0),(s||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=a(i);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(l+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=a(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&o(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||o(e.tokens)}))}(Prism)},Vwau:()=>{!function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism)},uvM7:()=>{!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var r=t.querySelector(".line-numbers-rows");if(r){var i=parseInt(t.getAttribute("data-start"),10)||1,s=i+(r.children.length-1);n<i&&(n=i),n>s&&(n=s);var a=n-i;return r.children[a]}}},resize:function(e){i([e])},assumeViewportIndependence:!0},r=void 0;window.addEventListener("resize",(function(){n.assumeViewportIndependence&&r===window.innerWidth||(r=window.innerWidth,i(Array.prototype.slice.call(document.querySelectorAll("pre.line-numbers"))))})),Prism.hooks.add("complete",(function(n){if(n.code){var r=n.element,s=r.parentNode;if(s&&/pre/i.test(s.nodeName)&&!r.querySelector(".line-numbers-rows")&&Prism.util.isActive(r,e)){r.classList.remove(e),s.classList.add(e);var a,o=n.code.match(t),l=o?o.length+1:1,c=new Array(l+1).join("<span></span>");(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=c,s.hasAttribute("data-start")&&(s.style.counterReset="linenumber "+(parseInt(s.getAttribute("data-start"),10)-1)),n.element.appendChild(a),i([s]),Prism.hooks.run("line-numbers",n)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}function i(e){if(0!=(e=e.filter((function(e){var t,n=(t=e,t?window.getComputedStyle?getComputedStyle(t):t.currentStyle||null:null)["white-space"];return"pre-wrap"===n||"pre-line"===n}))).length){var n=e.map((function(e){var n=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(n&&r){var i=e.querySelector(".line-numbers-sizer"),s=n.textContent.split(t);i||((i=document.createElement("span")).className="line-numbers-sizer",n.appendChild(i)),i.innerHTML="0",i.style.display="block";var a=i.getBoundingClientRect().height;return i.innerHTML="",{element:e,lines:s,lineHeights:[],oneLinerHeight:a,sizer:i}}})).filter(Boolean);n.forEach((function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,i=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var s=t.appendChild(document.createElement("span"));s.style.display="block",s.textContent=e}else r[n]=i}))})),n.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,r=0,i=0;i<n.length;i++)void 0===n[i]&&(n[i]=t.children[r++].getBoundingClientRect().height)})),n.forEach((function(e){var t=e.sizer,n=e.element.querySelector(".line-numbers-rows");t.style.display="none",t.innerHTML="",e.lineHeights.forEach((function(e,t){n.children[t].style.height=e+"px"}))}))}}}()},n5u1:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof s?new s(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,s;switch(n=n||{},i.util.type(t)){case"Object":if(s=i.util.objId(t),n[s])return n[s];for(var a in r={},n[s]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return s=i.util.objId(t),n[s]?n[s]:(r=[],n[s]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var s=(r=r||i.languages)[e],a={};for(var o in s)if(s.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(o)||(a[o]=s[o])}var c=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,s){s=s||{};var a=i.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var l=t[o],c=i.util.type(l);"Object"!==c||s[a(l)]?"Array"!==c||s[a(l)]||(s[a(l)]=!0,e(l,n,o,s)):(s[a(l)]=!0,e(l,n,null,s))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var s,a=0;s=r.elements[a++];)i.highlightElement(s,!0===t,r.callback)},highlightElement:function(t,n,r){var s=i.util.getLanguage(t),a=i.languages[s];i.util.setLanguage(t,s);var o=t.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&i.util.setLanguage(o,s);var l={element:t,language:s,grammar:a,code:t.textContent};function c(e){l.highlightedCode=e,i.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,i.hooks.run("after-highlight",l),i.hooks.run("complete",l),r&&r.call(l.element)}if(i.hooks.run("before-sanity-check",l),(o=l.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!l.code)return i.hooks.run("complete",l),void(r&&r.call(l.element));if(i.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var h=new Worker(i.filename);h.onmessage=function(e){c(e.data)},h.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(i.highlight(l.code,l.grammar,l.language));else c(i.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),s.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new l;return c(i,i.head,e),o(e,i,t,i.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,s=0;r=n[s++];)r(t)}},Token:s};function s(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var s=i[1].length;i.index+=s,i[0]=i[0].slice(s)}return i}function o(e,t,n,r,l,u){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var f=0;f<p.length;++f){if(u&&u.cause==d+","+f)return;var m=p[f],g=m.inside,y=!!m.lookbehind,v=!!m.greedy,b=m.alias;if(v&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}for(var w=m.pattern||m,C=r.next,E=l;C!==t.tail&&!(u&&E>=u.reach);E+=C.value.length,C=C.next){var S=C.value;if(t.length>e.length)return;if(!(S instanceof s)){var _,k=1;if(v){if(!(_=a(w,E,e,y))||_.index>=e.length)break;var P=_.index,O=_.index+_[0].length,T=E;for(T+=C.value.length;P>=T;)T+=(C=C.next).value.length;if(E=T-=C.value.length,C.value instanceof s)continue;for(var I=C;I!==t.tail&&(T<O||"string"==typeof I.value);I=I.next)k++,T+=I.value.length;k--,S=e.slice(E,T),_.index-=E}else if(!(_=a(w,0,S,y)))continue;P=_.index;var D=_[0],A=S.slice(0,P),R=S.slice(P+D.length),N=E+S.length;u&&N>u.reach&&(u.reach=N);var M=C.prev;if(A&&(M=c(t,M,A),E+=A.length),h(t,M,k),C=c(t,M,new s(d,g?i.tokenize(D,g):D,b,D)),R&&c(t,C,R),k>1){var F={cause:d+","+f,reach:N};o(e,t,n,C.prev,E,F),u&&F.reach>u.reach&&(u.reach=F.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function h(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,s.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var s={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(s.classes,a):s.classes.push(a)),i.hooks.run("wrap",s);var o="";for(var l in s.attributes)o+=" "+l+'="'+(s.attributes[l]||"").replace(/"/g,""")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+o+">"+s.content+"</"+s.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,s=n.code,a=n.immediateClose;e.postMessage(i.highlight(s,i.languages[r],r)),a&&e.close()}),!1),i):i;var u=i.util.currentScript();function d(){i.manual||i.highlightAll()}if(u&&(i.filename=u.src,u.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var p=document.readyState;"loading"===p||"interactive"===p&&u&&u.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},r.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",i="loaded",s="pre[data-src]:not(["+t+'="'+i+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",(function(e){e.selector+=", "+s})),r.hooks.add("before-sanity-check",(function(a){var o=a.element;if(o.matches(s)){a.code="",o.setAttribute(t,n);var l=o.appendChild(document.createElement("CODE"));l.textContent="Loading…";var c=o.getAttribute("data-src"),h=a.language;if("none"===h){var u=(/\.(\w+)$/.exec(c)||[,"none"])[1];h=e[u]||u}r.util.setLanguage(l,h),r.util.setLanguage(o,h);var d=r.plugins.autoloader;d&&d.loadLanguages(h),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(c,(function(e){o.setAttribute(t,i);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}(o.getAttribute("data-range"));if(n){var s=e.split(/\r\n?|\n/g),a=n[0],c=null==n[1]?s.length:n[1];a<0&&(a+=s.length),a=Math.max(0,Math.min(a-1,s.length)),c<0&&(c+=s.length),c=Math.max(0,Math.min(c,s.length)),e=s.slice(a,c).join("\n"),o.hasAttribute("data-start")||o.setAttribute("data-start",String(a+1))}l.textContent=e,r.highlightElement(l)}),(function(e){o.setAttribute(t,"failed"),l.textContent=e}))}})),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(s),i=0;t=n[i++];)r.highlightElement(t)}};var a=!1;r.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},emlf:(e,t,n)=>{"use strict";var r=n("YjNL");function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,s,a){if(a!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return n.PropTypes=n,n}},aWzz:(e,t,n)=>{e.exports=n("emlf")()},YjNL:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},dB0S:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return h.default}}),t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}r.default=e,n&&n.set(e,r);return r}(n("neV8")),i=d(n("aWzz")),s=d(n("sw63")),a=d(n("7O4Y")),o=n("I5Pb"),l=n("NPwy"),c=n("cCoX"),h=d(n("TPNd")),u=d(n("6iX0"));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends r.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),m(this,"onDragStart",((e,t)=>{(0,u.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),m(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[i,s]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=s,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),m(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:s.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:n,defaultPosition:i,defaultClassName:s,defaultClassNameDragging:c,defaultClassNameDragged:u,position:d,positionOffset:p,scale:m,...g}=this.props;let y={},v=null;const b=!Boolean(d)||this.state.dragging,x=d||i,w={x:(0,l.canDragX)(this)&&b?this.state.x:x.x,y:(0,l.canDragY)(this)&&b?this.state.y:x.y};this.state.isElementSVG?v=(0,o.createSVGTransform)(w,p):y=(0,o.createCSSTransform)(w,p);const C=(0,a.default)(n.props.className||"",s,{[c]:this.state.dragging,[u]:this.state.dragged});return r.createElement(h.default,f({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:C,style:{...n.props.style,...y},transform:v}))}}t.default=g,m(g,"displayName","Draggable"),m(g,"propTypes",{...h.default.propTypes,axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),m(g,"defaultProps",{...h.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},TPNd:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}r.default=e,n&&n.set(e,r);return r}(n("neV8")),i=h(n("aWzz")),s=h(n("sw63")),a=n("I5Pb"),o=n("NPwy"),l=n("cCoX"),c=h(n("6iX0"));function h(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={start:"touchstart",move:"touchmove",stop:"touchend"},f={start:"mousedown",move:"mousemove",stop:"mouseup"};let m=f;class g extends r.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,a.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,a.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const r=(0,a.getTouchIdentifier)(e);this.touchIdentifier=r;const i=(0,o.getControlPosition)(e,r,this);if(null==i)return;const{x:s,y:l}=i,h=(0,o.createCoreData)(this,s,l);(0,c.default)("DraggableCore: handleDragStart: %j",h),(0,c.default)("calling",this.props.onStart);!1!==this.props.onStart(e,h)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=l,(0,a.addEvent)(n,m.move,this.handleDrag),(0,a.addEvent)(n,m.stop,this.handleDragStop))})),d(this,"handleDrag",(e=>{const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,o.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const i=(0,o.createCoreData)(this,n,r);(0,c.default)("DraggableCore: handleDrag: %j",i);if(!1!==this.props.onDrag(e,i)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),d(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,o.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const i=(0,o.createCoreData)(this,n,r);if(!1===this.props.onStop(e,i)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(s.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,c.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(s.ownerDocument,m.move,this.handleDrag),(0,a.removeEvent)(s.ownerDocument,m.stop,this.handleDragStop))})),d(this,"onMouseDown",(e=>(m=f,this.handleDragStart(e)))),d(this,"onMouseUp",(e=>(m=f,this.handleDragStop(e)))),d(this,"onTouchStart",(e=>(m=p,this.handleDragStart(e)))),d(this,"onTouchEnd",(e=>(m=p,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,a.addEvent)(e,p.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,a.removeEvent)(t,f.move,this.handleDrag),(0,a.removeEvent)(t,p.move,this.handleDrag),(0,a.removeEvent)(t,f.stop,this.handleDragStop),(0,a.removeEvent)(t,p.stop,this.handleDragStop),(0,a.removeEvent)(e,p.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:s.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=g,d(g,"displayName","DraggableCore"),d(g,"propTypes",{allowAnyClick:i.default.bool,children:i.default.node.isRequired,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),d(g,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},j6Rw:(e,t,n)=>{"use strict";const{default:r,DraggableCore:i}=n("dB0S");e.exports=r,e.exports.default=r,e.exports.DraggableCore=i},I5Pb:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=c,t.addEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&c(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){const n=l(e,t,"px");return{[(0,i.browserPrefixToKey)("transform",i.default)]:n}},t.createSVGTransform=function(e,t){return l(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,r.findInArray)(e.targetTouches,(e=>t===e.identifier))||e.changedTouches&&(0,r.findInArray)(e.changedTouches,(e=>t===e.identifier))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=l,t.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight),t},t.matchesSelector=o,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(o(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,s=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:s}},t.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderTopWidth),t+=(0,r.int)(n.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderLeftWidth),t+=(0,r.int)(n.borderRightWidth),t},t.removeClassName=h,t.removeEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var r=n("cCoX"),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n("zN8s"));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let a="";function o(e,t){return a||(a=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,r.isFunction)(e[t])}))),!!(0,r.isFunction)(e[a])&&e[a](t)}function l(e,t,n){let{x:r,y:i}=e,s="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);s="translate(".concat(e,", ").concat(r,")")+s}return s}function c(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function h(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},zN8s:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=i,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=r;const n=["Moz","Webkit","O","ms"];function r(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!r)return"";if(t in r)return"";for(let e=0;e<n.length;e++)if(i(t,n[e])in r)return n[e];return""}function i(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}t.default=r()},"6iX0":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},NPwy:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){const i=!(0,r.isNum)(e.lastX),a=s(e);return i?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},t.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const o=s(e);if("string"==typeof a){const{ownerDocument:e}=o,t=e.defaultView;let n;if(n="parent"===a?o.parentNode:e.querySelector(a),!(n instanceof t.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const s=n,l=t.getComputedStyle(o),c=t.getComputedStyle(s);a={left:-o.offsetLeft+(0,r.int)(c.paddingLeft)+(0,r.int)(l.marginLeft),top:-o.offsetTop+(0,r.int)(c.paddingTop)+(0,r.int)(l.marginTop),right:(0,i.innerWidth)(s)-(0,i.outerWidth)(o)-o.offsetLeft+(0,r.int)(c.paddingRight)-(0,r.int)(l.marginRight),bottom:(0,i.innerHeight)(s)-(0,i.outerHeight)(o)-o.offsetTop+(0,r.int)(c.paddingBottom)-(0,r.int)(l.marginBottom)}}(0,r.isNum)(a.right)&&(t=Math.min(t,a.right));(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom));(0,r.isNum)(a.left)&&(t=Math.max(t,a.left));(0,r.isNum)(a.top)&&(n=Math.max(n,a.top));return[t,n]},t.getControlPosition=function(e,t,n){const r="number"==typeof t?(0,i.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;const a=s(n),o=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,i.offsetXYFromParent)(r||e,o,n.props.scale)},t.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]};var r=n("cCoX"),i=n("I5Pb");function s(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},cCoX:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},DIYL:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}r.default=e,n&&n.set(e,r);return r}(n("neV8")),i=n("j6Rw"),s=n("+cYm"),a=n("6rtJ"),o=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleRefs={},t.lastHandleRect=null,t.slack=null,t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n);var l=a.prototype;return l.componentWillUnmount=function(){this.resetData()},l.resetData=function(){this.lastHandleRect=this.slack=null},l.runConstraints=function(e,t){var n=this.props,r=n.minConstraints,i=n.maxConstraints,s=n.lockAspectRatio;if(!r&&!i&&!s)return[e,t];if(s){var a=this.props.width/this.props.height,o=e-this.props.width,l=t-this.props.height;Math.abs(o)>Math.abs(l*a)?t=e/a:e=t*a}var c=e,h=t,u=this.slack||[0,0],d=u[0],p=u[1];return e+=d,t+=p,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),i&&(e=Math.min(i[0],e),t=Math.min(i[1],t)),this.slack=[d+(c-e),p+(h-t)],[e,t]},l.resizeHandler=function(e,t){var n=this;return function(r,i){var s=i.node,a=i.deltaX,o=i.deltaY;"onResizeStart"===e&&n.resetData();var l=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,c=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(l||c){var h=t[0],u=t[t.length-1],d=s.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===u)a+=d.left-n.lastHandleRect.left;if("n"===h)o+=d.top-n.lastHandleRect.top}n.lastHandleRect=d,"w"===u&&(a=-a),"n"===h&&(o=-o);var p=n.props.width+(l?a/n.props.transformScale:0),f=n.props.height+(c?o/n.props.transformScale:0),m=n.runConstraints(p,f);p=m[0],f=m[1];var g=p!==n.props.width||f!==n.props.height,y="function"==typeof n.props[e]?n.props[e]:null;y&&!("onResize"===e&&!g)&&(null==r.persist||r.persist(),y(r,{node:s,size:{width:p,height:f},handle:t})),"onResizeStop"===e&&n.resetData()}}},l.renderResizeHandle=function(e,t){var n=this.props.handle;if(!n)return r.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:t});if("function"==typeof n)return n(e,t);var i=u({ref:t},"string"==typeof n.type?{}:{handleAxis:e});return r.cloneElement(n,i)},l.render=function(){var e=this,t=this.props,n=t.children,a=t.className,l=t.draggableOpts,h=(t.width,t.height,t.handle,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart,t.resizeHandles),d=(t.transformScale,function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,o));return(0,s.cloneElement)(n,u(u({},d),{},{className:(a?a+" ":"")+"react-resizable",children:[].concat(n.props.children,h.map((function(t){var n,s=null!=(n=e.handleRefs[t])?n:e.handleRefs[t]=r.createRef();return r.createElement(i.DraggableCore,c({},l,{nodeRef:s,key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t,s))})))}))},a}(r.Component);t.default=f,f.propTypes=a.resizableProps,f.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},ngvS:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}r.default=e,n&&n.set(e,r);return r}(n("neV8")),i=l(n("aWzz")),s=l(n("DIYL")),a=n("6rtJ"),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var m=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height},t.onResize=function(e,n){var r=n.size;t.props.onResize?(null==e.persist||e.persist(),t.setState(r,(function(){return t.props.onResize&&t.props.onResize(e,n)}))):t.setState(r)},t}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n),i.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},i.prototype.render=function(){var e=this.props,t=e.handle,n=e.handleSize,i=(e.onResize,e.onResizeStart),a=e.onResizeStop,l=e.draggableOpts,c=e.minConstraints,u=e.maxConstraints,p=e.lockAspectRatio,f=e.axis,m=(e.width,e.height,e.resizeHandles),g=e.style,y=e.transformScale,v=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,o);return r.createElement(s.default,{axis:f,draggableOpts:l,handle:t,handleSize:n,height:this.state.height,lockAspectRatio:p,maxConstraints:u,minConstraints:c,onResizeStart:i,onResize:this.onResize,onResizeStop:a,resizeHandles:m,transformScale:y,width:this.state.width},r.createElement("div",h({},v,{style:d(d({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(r.Component);t.default=m,m.propTypes=d(d({},a.resizableProps),{},{children:i.default.element})},"6rtJ":(e,t,n)=>{"use strict";t.__esModule=!0,t.resizableProps=void 0;var r,i=(r=n("aWzz"))&&r.__esModule?r:{default:r};n("j6Rw");var s={axis:i.default.oneOf(["both","x","y","none"]),className:i.default.string,children:i.default.element.isRequired,draggableOpts:i.default.shape({allowAnyClick:i.default.bool,cancel:i.default.string,children:i.default.node,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:i.default.node,grid:i.default.arrayOf(i.default.number),handle:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,s=t[0];return"both"===s.axis||"y"===s.axis?(r=i.default.number).isRequired.apply(r,t):i.default.number.apply(i.default,t)},handle:i.default.oneOfType([i.default.node,i.default.func]),handleSize:i.default.arrayOf(i.default.number),lockAspectRatio:i.default.bool,maxConstraints:i.default.arrayOf(i.default.number),minConstraints:i.default.arrayOf(i.default.number),onResizeStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,resizeHandles:i.default.arrayOf(i.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:i.default.number,width:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,s=t[0];return"both"===s.axis||"x"===s.axis?(r=i.default.number).isRequired.apply(r,t):i.default.number.apply(i.default,t)}};t.resizableProps=s},"+cYm":(e,t,n)=>{"use strict";t.__esModule=!0,t.cloneElement=function(e,t){t.style&&e.props.style&&(t.style=a(a({},e.props.style),t.style));t.className&&e.props.className&&(t.className=e.props.className+" "+t.className);return i.default.cloneElement(e,t)};var r,i=(r=n("neV8"))&&r.__esModule?r:{default:r};function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},"7kvy":(e,t,n)=>{"use strict";e.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},e.exports.Resizable=n("DIYL").default,e.exports.ResizableBox=n("ngvS").default},"32oc":(e,t,n)=>{"use strict";var r=n("neV8"),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var s=Symbol.for;i=s("react.element"),t.Fragment=s("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,s={},c=null,h=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(h=t.ref),t)o.call(t,r)&&!l.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===s[r]&&(s[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:h,props:s,_owner:a.current}}t.jsx=c,t.jsxs=c},jg1C:(e,t,n)=>{"use strict";e.exports=n("32oc")},FxGm:()=>{},"7VVg":()=>{},tISx:()=>{},XWjs:()=>{},ySxA:()=>{},TQlD:()=>{},tIsd:()=>{},NppW:()=>{},kEbM:()=>{},VCw7:()=>{},"6JrO":()=>{},x365:()=>{},Hoah:()=>{},Kvbp:()=>{},"+onK":()=>{},mMhg:()=>{},"wO3+":()=>{},"X/fO":()=>{},zWTJ:()=>{},sJoR:()=>{},zEHc:()=>{},Q1hM:()=>{},Sr6T:()=>{},J057:()=>{},e3UD:()=>{},WMVM:()=>{},"5ztO":()=>{},C0y9:()=>{},ANZz:()=>{},Cml1:()=>{},Lmqm:()=>{},EAsp:()=>{},"C+lc":()=>{},qgWt:()=>{},jJk2:()=>{},hKJu:()=>{},ywzD:()=>{},waO6:()=>{},"5CK9":()=>{},bpxB:()=>{},"5Nuo":()=>{},GKo3:()=>{},zcIP:()=>{},"3zWe":()=>{},Vs0Q:()=>{},yqmi:()=>{},TEru:()=>{},"1Mf8":()=>{},"9Id+":()=>{},XJMB:()=>{},unlL:()=>{},bwAj:()=>{},pAwi:()=>{},hlZc:()=>{},Ak1P:()=>{},"u+/o":()=>{},NN0O:()=>{},DzbD:()=>{},lZky:()=>{},x6Mr:()=>{},iiC6:()=>{},"36if":()=>{},PolX:()=>{},EwKa:()=>{},"+Ta2":()=>{},HEBl:()=>{},rvDo:()=>{},YHYY:()=>{},fed2:()=>{},KrBO:()=>{},neV8:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE_neV8__},sw63:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE_sw63__},"nw+9":e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},gpnx:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},IpAo:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},F2J1:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i,s,a){var o=new Date(0);return o.setUTCFullYear(e,t,n),o.setUTCHours(r,i,s,a),o},e.exports=t.default},iCyB:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if("timeZoneName"===n[r].type)return n[r].value}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)},e.exports=t.default},"5/N4":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,s,d;if(!e)return 0;if(r=l.timezoneZ.exec(e))return 0;if(r=l.timezoneHH.exec(e))return h(d=parseInt(r[1],10))?-d*a:NaN;if(r=l.timezoneHHMM.exec(e)){d=parseInt(r[1],10);var p=parseInt(r[2],10);return h(d,p)?(s=Math.abs(d)*a+p*o,d>0?-s:s):NaN}if(function(e){if(u[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),u[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var f=n?t:function(e){return(0,i.default)(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),m=c(f,e),g=n?m:function(e,t,n){var r=e.getTime(),i=r-t,s=c(new Date(i),n);if(t===s)return t;i-=s-t;var a=c(new Date(i),n);if(s===a)return s;return Math.max(s,a)}(t,m,e);return-g}return NaN};var r=s(n("ttpx")),i=s(n("F2J1"));function s(e){return e&&e.__esModule?e:{default:e}}var a=36e5,o=6e4,l={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function c(e,t){var n=(0,r.default)(e,t),s=(0,i.default)(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=e.getTime(),o=a%1e3;return s-(a-=o>=0?o:1e3+o)}function h(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var u={};e.exports=t.default},fNZd:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;t.default=n,e.exports=t.default},ttpx:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i=function(e){if(!r[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;r[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return r[e]}(t);return i.formatToParts?function(e,t){try{for(var r=e.formatToParts(t),i=[],s=0;s<r.length;s++){var a=n[r[s].type];a>=0&&(i[a]=parseInt(r[s].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(i,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(i,e)};var n={year:0,month:1,day:2,hour:3,minute:4,second:5};var r={};e.exports=t.default},PEyz:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("iCyB")),i=s(n("5/N4"));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=e?(0,i.default)(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function o(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function l(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+o(Math.floor(i/60),2)+n+o(Math.floor(i%60),2)}function c(e,t){return e%60==0?(e>0?"-":"+")+o(Math.abs(e)/60,2):l(e,t)}var h={X:function(e,t,n,r){var i=a(r.timeZone,r._originalDate||e);if(0===i)return"Z";switch(t){case"X":return c(i);case"XXXX":case"XX":return l(i);default:return l(i,":")}},x:function(e,t,n,r){var i=a(r.timeZone,r._originalDate||e);switch(t){case"x":return c(i);case"xxxx":case"xx":return l(i);default:return l(i,":")}},O:function(e,t,n,r){var i=a(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=r%60;if(0===s)return n+String(i);var a=t||"";return n+String(i)+a+o(s,2)}(i,":");default:return"GMT"+l(i,":")}},z:function(e,t,n,i){var s=i._originalDate||e;switch(t){case"z":case"zz":case"zzz":return(0,r.default)("short",s,i);default:return(0,r.default)("long",s,i)}}};t.default=h,e.exports=t.default},KoRE:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var a=String(t),l=n||{},c=a.match(o);if(c){var h=(0,s.default)(e,l);a=c.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],s=e.replace(t,"'"+i.default[t[0]](h,t,null,l)+"'");return r?s.substring(0,n-1)+s.substring(n+1):s}),a)}return(0,r.default)(e,a,l)};var r=a(n("RTm1")),i=a(n("PEyz")),s=a(n("+/ju"));function a(e){return e&&e.__esModule?e:{default:e}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;e.exports=t.default},bqgK:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){var o=(0,r.default)(a);return o.timeZone=t,(0,i.default)((0,s.default)(e,t),n,o)};var r=a(n("/urY")),i=a(n("KoRE")),s=a(n("RabM"));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},zV9H:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return-(0,i.default)(e,t)};var r,i=(r=n("5/N4"))&&r.__esModule?r:{default:r};e.exports=t.default},NyOe:(e,t,n)=>{"use strict";e.exports={format:n("KoRE"),formatInTimeZone:n("bqgK"),getTimezoneOffset:n("zV9H"),toDate:n("+/ju"),utcToZonedTime:n("RabM"),zonedTimeToUtc:n("VKaJ")}},"+/ju":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},a=null==n.additionalDigits?h:(0,r.default)(n.additionalDigits);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o=function(e){var t,n={},r=u.dateTimePattern.exec(e);r?(n.date=r[1],t=r[3]):(r=u.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e);if(t){var i=u.timeZone.exec(t);i?(n.time=t.replace(i[1],""),n.timeZone=i[1].trim()):n.time=t}return n}(e),p=function(e,t){var n,r=u.YYY[t],i=u.YYYYY[t];if(n=u.YYYY.exec(e)||i.exec(e)){var s=n[1];return{year:parseInt(s,10),restDateString:e.slice(s.length)}}if(n=u.YY.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(o.date,a),f=p.year,b=function(e,t){if(null===t)return null;var n,r,i,s;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=u.MM.exec(e))return r=new Date(0),g(t,i=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,i),r):new Date(NaN);if(n=u.DDD.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=m(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=u.MMDD.exec(e)){r=new Date(0),i=parseInt(n[1],10)-1;var o=parseInt(n[2],10);return g(t,i,o)?(r.setUTCFullYear(t,i,o),r):new Date(NaN)}if(n=u.Www.exec(e))return y(t,s=parseInt(n[1],10)-1)?d(t,s):new Date(NaN);if(n=u.WwwD.exec(e)){s=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return y(t,s,l)?d(t,s,l):new Date(NaN)}return null}(p.restDateString,f);if(isNaN(b))return new Date(NaN);if(b){var x,w=b.getTime(),C=0;if(o.time&&(C=function(e){var t,n,r;if(t=u.HH.exec(e))return v(n=parseFloat(t[1].replace(",",".")))?n%24*l:NaN;if(t=u.HHMM.exec(e))return v(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*l+r*c:NaN;if(t=u.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return v(n,r,i)?n%24*l+r*c+1e3*i:NaN}return null}(o.time),isNaN(C)))return new Date(NaN);if(o.timeZone||n.timeZone){if(x=(0,s.default)(o.timeZone||n.timeZone,new Date(w+C)),isNaN(x))return new Date(NaN)}else x=(0,i.default)(new Date(w+C)),x=(0,i.default)(new Date(w+C+x));return new Date(w+C+x)}return new Date(NaN)};var r=o(n("yuhP")),i=o(n("l/Ck")),s=o(n("5/N4")),a=o(n("fNZd"));function o(e){return e&&e.__esModule?e:{default:e}}var l=36e5,c=6e4,h=2,u={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:a.default};function d(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var i=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}var p=[31,28,31,30,31,30,31,31,30,31,30,31],f=[31,29,31,30,31,30,31,31,30,31,30,31];function m(e){return e%400==0||e%4==0&&e%100!=0}function g(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=m(e);if(r&&n>f[t])return!1;if(!r&&n>p[t])return!1}return!0}function y(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function v(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}e.exports=t.default},RabM:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var s=(0,i.default)(e,n),a=(0,r.default)(t,s,!0),o=new Date(s.getTime()-a),l=new Date(0);return l.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),l.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),l};var r=s(n("5/N4")),i=s(n("+/ju"));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},VKaJ:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("string"==typeof e&&!e.match(s.default)){var l=(0,r.default)(n);return l.timeZone=t,(0,i.default)(e,l)}var c=(0,i.default)(e,n),h=(0,o.default)(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()).getTime(),u=(0,a.default)(t,new Date(h));return new Date(h+u)};var r=l(n("/urY")),i=l(n("+/ju")),s=l(n("fNZd")),a=l(n("5/N4")),o=l(n("F2J1"));function l(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},"88MF":(e,t,n)=>{"use strict";n.r(t),n.d(t,{Node:()=>re,Parser:()=>$,Position:()=>N,SourceLocation:()=>M,TokContext:()=>ae,Token:()=>Te,TokenType:()=>g,defaultOptions:()=>L,getLineInfo:()=>F,isIdentifierChar:()=>m,isIdentifierStart:()=>f,isNewLine:()=>_,keywordTypes:()=>x,lineBreak:()=>E,lineBreakG:()=>S,nonASCIIwhitespace:()=>k,parse:()=>Me,parseExpressionAt:()=>Fe,tokContexts:()=>oe,tokTypes:()=>C,tokenizer:()=>Le,version:()=>Ne});var r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",s={5:i,"5module":i+" export import",6:i+" const class extends export import super"},a=/^in(stanceof)?$/,o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",l="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",c=new RegExp("["+o+"]"),h=new RegExp("["+o+l+"]");o=l=null;var u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],d=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function p(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}}function f(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&p(e,u)))}function m(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&h.test(String.fromCharCode(e)):!1!==t&&(p(e,u)||p(e,d)))))}var g=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function y(e,t){return new g(e,{beforeExpr:!0,binop:t})}var v={beforeExpr:!0},b={startsExpr:!0},x={};function w(e,t){return void 0===t&&(t={}),t.keyword=e,x[e]=new g(e,t)}var C={num:new g("num",b),regexp:new g("regexp",b),string:new g("string",b),name:new g("name",b),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",v),semi:new g(";",v),colon:new g(":",v),dot:new g("."),question:new g("?",v),questionDot:new g("?."),arrow:new g("=>",v),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",v),backQuote:new g("`",b),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("</>/<=/>=",7),bitShift:y("<</>>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:y("??",1),_break:w("break"),_case:w("case",v),_catch:w("catch"),_continue:w("continue"),_debugger:w("debugger"),_default:w("default",v),_do:w("do",{isLoop:!0,beforeExpr:!0}),_else:w("else",v),_finally:w("finally"),_for:w("for",{isLoop:!0}),_function:w("function",b),_if:w("if"),_return:w("return",v),_switch:w("switch"),_throw:w("throw",v),_try:w("try"),_var:w("var"),_const:w("const"),_while:w("while",{isLoop:!0}),_with:w("with"),_new:w("new",{beforeExpr:!0,startsExpr:!0}),_this:w("this",b),_super:w("super",b),_class:w("class",b),_extends:w("extends",v),_export:w("export"),_import:w("import",b),_null:w("null",b),_true:w("true",b),_false:w("false",b),_in:w("in",{beforeExpr:!0,binop:7}),_instanceof:w("instanceof",{beforeExpr:!0,binop:7}),_typeof:w("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},E=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(E.source,"g");function _(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var k=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,P=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,O=Object.prototype,T=O.hasOwnProperty,I=O.toString;function D(e,t){return T.call(e,t)}var A=Array.isArray||function(e){return"[object Array]"===I.call(e)};function R(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var N=function(e,t){this.line=e,this.column=t};N.prototype.offset=function(e){return new N(this.line,this.column+e)};var M=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function F(e,t){for(var n=1,r=0;;){S.lastIndex=r;var i=S.exec(e);if(!(i&&i.index<t))return new N(n,t-r);++n,r=i.index+i[0].length}}var L={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function j(e){var t={};for(var n in L)t[n]=e&&D(e,n)?e[n]:L[n];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),A(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return A(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,s,a,o){var l={type:n?"Block":"Line",value:r,start:i,end:s};e.locations&&(l.loc=new M(this,a,o)),e.ranges&&(l.range=[i,s]),t.push(l)}}(t,t.onComment)),t}function V(e,t){return 2|(e?4:0)|(t?8:0)}var $=function(e,t,n){this.options=e=j(e),this.sourceFile=e.sourceFile,this.keywords=R(s[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var i="";if(!0!==e.allowReserved){for(var a=e.ecmaVersion;!(i=r[a]);a--);"module"===e.sourceType&&(i+=" await")}this.reservedWords=R(i);var o=(i?i+" ":"")+r.strict;this.reservedWordsStrict=R(o),this.reservedWordsStrictBind=R(o+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(E).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=C.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},B={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};$.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},B.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},B.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},B.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},B.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},B.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},B.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},$.prototype.inNonArrowFunction=function(){return(2&this.currentThisScope().flags)>0},$.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},$.parse=function(e,t){return new this(t,e).parse()},$.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},$.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties($.prototype,B);var z=$.prototype,H=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function K(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}z.strictDirective=function(e){for(;;){P.lastIndex=e,e+=P.exec(this.input)[0].length;var t=H.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){P.lastIndex=e+t[0].length;var n=P.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||E.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,P.lastIndex=e,e+=P.exec(this.input)[0].length,";"===this.input[e]&&e++}},z.eat=function(e){return this.type===e&&(this.next(),!0)},z.isContextual=function(e){return this.type===C.name&&this.value===e&&!this.containsEsc},z.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},z.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},z.canInsertSemicolon=function(){return this.type===C.eof||this.type===C.braceR||E.test(this.input.slice(this.lastTokEnd,this.start))},z.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},z.semicolon=function(){this.eat(C.semi)||this.insertSemicolon()||this.unexpected()},z.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},z.expect=function(e){this.eat(e)||this.unexpected()},z.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},z.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},z.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},z.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},z.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var U=$.prototype;U.parseTopLevel=function(e){var t={};for(e.body||(e.body=[]);this.type!==C.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var W={kind:"loop"},G={kind:"switch"};U.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;P.lastIndex=this.pos;var t=P.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r)return!0;if(e)return!1;if(123===r)return!0;if(f(r,!0)){for(var i=n+1;m(this.input.charCodeAt(i),!0);)++i;var s=this.input.slice(n,i);if(!a.test(s))return!0}return!1},U.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;P.lastIndex=this.pos;var e=P.exec(this.input),t=this.pos+e[0].length;return!(E.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&m(this.input.charAt(t+8)))},U.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=C._var,r="let"),i){case C._break:case C._continue:return this.parseBreakContinueStatement(s,i.keyword);case C._debugger:return this.parseDebuggerStatement(s);case C._do:return this.parseDoStatement(s);case C._for:return this.parseForStatement(s);case C._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case C._class:return e&&this.unexpected(),this.parseClass(s,!0);case C._if:return this.parseIfStatement(s);case C._return:return this.parseReturnStatement(s);case C._switch:return this.parseSwitchStatement(s);case C._throw:return this.parseThrowStatement(s);case C._try:return this.parseTryStatement(s);case C._const:case C._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case C._while:return this.parseWhileStatement(s);case C._with:return this.parseWithStatement(s);case C.braceL:return this.parseBlock(!0,s);case C.semi:return this.parseEmptyStatement(s);case C._export:case C._import:if(this.options.ecmaVersion>10&&i===C._import){P.lastIndex=this.pos;var a=P.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===C._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var c=this.value,h=this.parseExpression();return i===C.name&&"Identifier"===h.type&&this.eat(C.colon)?this.parseLabeledStatement(s,c,h,e):this.parseExpressionStatement(s,h)}},U.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(C.semi)||this.insertSemicolon()?e.label=null:this.type!==C.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},U.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},U.parseDoStatement=function(e){return this.next(),this.labels.push(W),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(C._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(C.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},U.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(W),this.enterScope(0),this.expect(C.parenL),this.type===C.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===C._var||this.type===C._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===C._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=new K,a=this.parseExpression(!0,s);return this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===C._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(a,!1,s),this.checkLVal(a),this.parseForIn(e,a)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,a))},U.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Y|(n?0:X),!1,t)},U.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(C._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},U.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(C.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},U.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(C.braceL),this.labels.push(G),this.enterScope(0);for(var n=!1;this.type!==C.braceR;)if(this.type===C._case||this.type===C._default){var r=this.type===C._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(C.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},U.parseThrowStatement=function(e){return this.next(),E.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var q=[];U.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===C._catch){var t=this.startNode();if(this.next(),this.eat(C.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLVal(t.param,n?4:2),this.expect(C.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(C._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},U.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},U.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(W),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},U.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},U.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},U.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1){s[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===C._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},U.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},U.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(C.braceL),e&&this.enterScope(0);this.type!==C.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},U.parseFor=function(e,t){return e.init=t,this.expect(C.semi),e.test=this.type===C.semi?null:this.parseExpression(),this.expect(C.semi),e.update=this.type===C.parenR?null:this.parseExpression(),this.expect(C.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},U.parseForIn=function(e,t){var n=this.type===C._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)?this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(C.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},U.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(C.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===C._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(C.comma))break}return e},U.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?1:2,!1)};var Y=1,X=2;U.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===C.star&&t&X&&this.unexpected(),e.generator=this.eat(C.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Y&&(e.id=4&t&&this.type!==C.name?null:this.parseIdent(),!e.id||t&X||this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(V(e.async,e.generator)),t&Y||(e.id=this.type===C.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&Y?"FunctionDeclaration":"FunctionExpression")},U.parseFunctionParams=function(e){this.expect(C.parenL),e.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},U.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),i=!1;for(r.body=[],this.expect(C.braceL);this.type!==C.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(r.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind&&(i&&this.raise(s.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},U.parseClassElement=function(e){var t=this;if(this.eat(C.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var i=t.start,s=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===C.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,s),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(C.star),s=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(C.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var a=n.key,o=!1;return n.computed||n.static||!("Identifier"===a.type&&"constructor"===a.name||"Literal"===a.type&&"constructor"===a.value)?n.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),i&&this.raise(a.start,"Constructor can't be a generator"),s&&this.raise(a.start,"Constructor can't be an async method"),n.kind="constructor",o=e),this.parseClassMethod(n,i,s,o),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},U.parseClassMethod=function(e,t,n,r){return e.value=this.parseMethod(t,n,r),this.finishNode(e,"MethodDefinition")},U.parseClassId=function(e,t){this.type===C.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},U.parseClassSuper=function(e){e.superClass=this.eat(C._extends)?this.parseExprSubscripts():null},U.parseExport=function(e,t){if(this.next(),this.eat(C.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==C.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(C._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===C._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|Y,!1,n)}else if(this.type===C._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==C.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,a=e.specifiers;s<a.length;s+=1){var o=a[s];this.checkUnreserved(o.local),this.checkLocalExport(o.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},U.checkExport=function(e,t,n){e&&(D(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},U.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},U.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},U.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},U.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(C.braceL);!this.eat(C.braceR);){if(n)n=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual("as")?this.parseIdent(!0):r.local,this.checkExport(e,r.exported.name,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},U.parseImport=function(e){return this.next(),this.type===C.string?(e.specifiers=q,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===C.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},U.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===C.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(C.comma))return e}if(this.type===C.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLVal(r.local,2),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(C.braceL);!this.eat(C.braceR);){if(t)t=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},U.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},U.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Z=$.prototype;Z.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},Z.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},Z.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Z.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==C.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Z.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case C.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(C.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case C.braceL:return this.parseObj(!0)}return this.parseIdent()},Z.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(C.comma),t&&this.type===C.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===C.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===C.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),r.push(a)}return r},Z.parseBindingListItem=function(e){return e},Z.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(C.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Z.checkLVal=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Identifier":2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(D(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),0!==t&&5!==t&&this.declareName(e.name,t,e.start);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":t&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkLVal(s,t,n)}break;case"Property":this.checkLVal(e.value,t,n);break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLVal(l,t,n)}break;case"AssignmentPattern":this.checkLVal(e.left,t,n);break;case"RestElement":this.checkLVal(e.argument,t,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var J=$.prototype;J.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[r="$"+r];if(a)("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(i.start,"Redefinition of property");else a=t[r]={init:!1,get:!1,set:!1};a[s]=!0}}},J.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===C.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(C.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},J.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,s=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new K,r=!0);var a=this.start,o=this.startLoc;this.type!==C.parenL&&this.type!==C.name||(this.potentialArrowAt=this.start);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,a,o)),this.type.isAssign){var c=this.startNodeAt(a,o);return c.operator=this.value,c.left=this.type===C.eq?this.toAssignable(l,!1,t):l,r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.left.start&&(t.shorthandAssign=-1),this.checkLVal(l),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),l},J.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(C.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(C.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},J.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},J.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==C._in)&&s>r){var a=this.type===C.logicalOR||this.type===C.logicalAND,o=this.type===C.coalesce;o&&(s=C.logicalAND.binop);var l=this.value;this.next();var c=this.start,h=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1),c,h,s,i),d=this.buildBinary(t,n,e,u,l,a||o);return(a&&this.type===C.coalesce||o&&(this.type===C.logicalOR||this.type===C.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,n,r,i)}return e},J.buildBinary=function(e,t,n,r,i,s){var a=this.startNodeAt(e,t);return a.left=n,a.operator=i,a.right=r,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},J.parseMaybeUnary=function(e,t){var n,r=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),t=!0;else if(this.type.prefix){var s=this.startNode(),a=this.type===C.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),a?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(r,i);o.operator=this.value,o.prefix=!1,o.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(o,"UpdateExpression")}}return!t&&this.eat(C.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},J.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var i=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i},J.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var a=this.parseSubscript(e,t,n,r,i,s);if(a.optional&&(s=!0),a===e||"ArrowFunctionExpression"===a.type){if(s){var o=this.startNodeAt(t,n);o.expression=a,a=this.finishNode(o,"ChainExpression")}return a}e=a}},J.parseSubscript=function(e,t,n,r,i,s){var a=this.options.ecmaVersion>=11,o=a&&this.eat(C.questionDot);r&&o&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(C.bracketL);if(l||o&&this.type!==C.parenL&&this.type!==C.backQuote||this.eat(C.dot)){var c=this.startNodeAt(t,n);c.object=e,c.property=l?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),c.computed=!!l,l&&this.expect(C.bracketR),a&&(c.optional=o),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(C.parenL)){var h=new K,u=this.yieldPos,d=this.awaitPos,p=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1,h);if(i&&!o&&!this.canInsertSemicolon()&&this.eat(C.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=d,this.awaitIdentPos=p,this.parseArrowExpression(this.startNodeAt(t,n),f,!0);this.checkExpressionErrors(h,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=p||this.awaitIdentPos;var m=this.startNodeAt(t,n);m.callee=e,m.arguments=f,a&&(m.optional=o),e=this.finishNode(m,"CallExpression")}else if(this.type===C.backQuote){(o||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(t,n);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,"TaggedTemplateExpression")}return e},J.parseExprAtom=function(e){this.type===C.slash&&this.readRegexp();var t,n=this.potentialArrowAt===this.start;switch(this.type){case C._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==C.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==C.dot&&this.type!==C.bracketL&&this.type!==C.parenL&&this.unexpected(),this.finishNode(t,"Super");case C._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case C.name:var r=this.start,i=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(C._function))return this.parseFunction(this.startNodeAt(r,i),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(C.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===C.name&&!s)return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(C.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[a],!0)}return a;case C.regexp:var o=this.value;return(t=this.parseLiteral(o.value)).regex={pattern:o.pattern,flags:o.flags},t;case C.num:case C.string:return this.parseLiteral(this.value);case C._null:case C._true:case C._false:return(t=this.startNode()).value=this.type===C._null?null:this.type===C._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case C.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case C.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(C.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case C.braceL:return this.parseObj(!1,e);case C._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case C._class:return this.parseClass(this.startNode(),!1);case C._new:return this.parseNew();case C.backQuote:return this.parseTemplate();case C._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},J.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case C.parenL:return this.parseDynamicImport(e);case C.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},J.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(C.parenR)){var t=this.start;this.eat(C.comma)&&this.eat(C.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},J.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},J.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},J.parseParenExpression=function(){this.expect(C.parenL);var e=this.parseExpression();return this.expect(C.parenR),e},J.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,o=this.startLoc,l=[],c=!0,h=!1,u=new K,d=this.yieldPos,p=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==C.parenR;){if(c?c=!1:this.expect(C.comma),i&&this.afterTrailingComma(C.parenR,!0)){h=!0;break}if(this.type===C.ellipsis){s=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===C.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(C.parenR),e&&!this.canInsertSemicolon()&&this.eat(C.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=p,this.parseParenArrowList(n,r,l);l.length&&!h||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=p||this.awaitPos,l.length>1?((t=this.startNodeAt(a,o)).expressions=l,this.finishNodeAt(t,"SequenceExpression",f,m)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},J.parseParenItem=function(e){return e},J.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Q=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(C.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc,s=this.type===C._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),s&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(C.parenL)?e.arguments=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Q,this.finishNode(e,"NewExpression")},J.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===C.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===C.backQuote,this.finishNode(n,"TemplateElement")},J.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===C.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(C.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(C.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},J.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===C.name||this.type===C.num||this.type===C.string||this.type===C.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===C.star)&&!E.test(this.input.slice(this.lastTokEnd,this.start))},J.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(C.braceR);){if(r)r=!1;else if(this.expect(C.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(C.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},J.parseProperty=function(e,t){var n,r,i,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(C.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===C.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===C.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,t),this.type===C.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(C.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(C.star),this.parsePropertyName(a,t)):r=!1,this.parsePropertyValue(a,e,n,r,i,s,t,o),this.finishNode(a,"Property")},J.parsePropertyValue=function(e,t,n,r,i,s,a,o){if((n||r)&&this.type===C.colon&&this.unexpected(),this.eat(C.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===C.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===C.comma||this.type===C.braceR||this.type===C.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,s,e.key):this.type===C.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},J.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(C.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(C.bracketR),e.key;e.computed=!1}return e.key=this.type===C.num||this.type===C.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},J.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},J.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|V(t,r.generator)|(n?128:0)),this.expect(C.parenL),r.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},J.parseArrowExpression=function(e,t,n){var r=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|V(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},J.parseFunctionBody=function(e,t,n){var r=t&&this.type!==C.braceL,i=this.strict,s=!1;if(r)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!a||(s=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!i&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=o}this.exitScope()},J.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},J.checkParams=function(e,t){for(var n={},r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLVal(s,1,t?null:n)}},J.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(C.comma),t&&this.afterTrailingComma(e))break;var a=void 0;n&&this.type===C.comma?a=null:this.type===C.ellipsis?(a=this.parseSpread(r),r&&this.type===C.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),i.push(a)}return i},J.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},J.parseIdent=function(e,t){var n=this.startNode();return this.type===C.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(n,"Identifier"),e||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},J.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===C.semi||this.canInsertSemicolon()||this.type!==C.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(C.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},J.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,"AwaitExpression")};var ee=$.prototype;ee.raise=function(e,t){var n=F(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},ee.raiseRecoverable=ee.raise,ee.curPosition=function(){if(this.options.locations)return new N(this.curLine,this.pos-this.lineStart)};var te=$.prototype,ne=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};te.enterScope=function(e){this.scopeStack.push(new ne(e))},te.exitScope=function(){this.scopeStack.pop()},te.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},te.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],3&o.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},te.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},te.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},te.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags)return t}},te.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(3&t.flags&&!(16&t.flags))return t}};var re=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new M(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},ie=$.prototype;function se(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}ie.startNode=function(){return new re(this,this.start,this.startLoc)},ie.startNodeAt=function(e,t){return new re(this,e,t)},ie.finishNode=function(e,t){return se.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ie.finishNodeAt=function(e,t,n,r){return se.call(this,e,t,n,r)};var ae=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},oe={b_stat:new ae("{",!1),b_expr:new ae("{",!0),b_tmpl:new ae("${",!1),p_stat:new ae("(",!1),p_expr:new ae("(",!0),q_tmpl:new ae("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ae("function",!1),f_expr:new ae("function",!0),f_expr_gen:new ae("function",!0,!1,null,!0),f_gen:new ae("function",!1,!1,null,!0)},le=$.prototype;le.initialContext=function(){return[oe.b_stat]},le.braceIsBlock=function(e){var t=this.curContext();return t===oe.f_expr||t===oe.f_stat||(e!==C.colon||t!==oe.b_stat&&t!==oe.b_expr?e===C._return||e===C.name&&this.exprAllowed?E.test(this.input.slice(this.lastTokEnd,this.start)):e===C._else||e===C.semi||e===C.eof||e===C.parenR||e===C.arrow||(e===C.braceL?t===oe.b_stat:e!==C._var&&e!==C._const&&e!==C.name&&!this.exprAllowed):!t.isExpr)},le.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},le.updateContext=function(e){var t,n=this.type;n.keyword&&e===C.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},C.parenR.updateContext=C.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===oe.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},C.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?oe.b_stat:oe.b_expr),this.exprAllowed=!0},C.dollarBraceL.updateContext=function(){this.context.push(oe.b_tmpl),this.exprAllowed=!0},C.parenL.updateContext=function(e){var t=e===C._if||e===C._for||e===C._with||e===C._while;this.context.push(t?oe.p_stat:oe.p_expr),this.exprAllowed=!0},C.incDec.updateContext=function(){},C._function.updateContext=C._class.updateContext=function(e){!e.beforeExpr||e===C.semi||e===C._else||e===C._return&&E.test(this.input.slice(this.lastTokEnd,this.start))||(e===C.colon||e===C.braceL)&&this.curContext()===oe.b_stat?this.context.push(oe.f_stat):this.context.push(oe.f_expr),this.exprAllowed=!1},C.backQuote.updateContext=function(){this.curContext()===oe.q_tmpl?this.context.pop():this.context.push(oe.q_tmpl),this.exprAllowed=!1},C.star.updateContext=function(e){if(e===C._function){var t=this.context.length-1;this.context[t]===oe.f_expr?this.context[t]=oe.f_expr_gen:this.context[t]=oe.f_gen}this.exprAllowed=!0},C.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==C.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ce="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",he=ce+" Extended_Pictographic",ue={9:ce,10:he,11:he},de="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",pe="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",fe=pe+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",me={9:pe,10:fe,11:fe+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},ge={};function ye(e){var t=ge[e]={binary:R(ue[e]+" "+de),nonBinary:{General_Category:R(de),Script:R(me[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}ye(9),ye(10),ye(11);var ve=$.prototype,be=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ge[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function xe(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function we(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Ce(e){return e>=65&&e<=90||e>=97&&e<=122}function Ee(e){return Ce(e)||95===e}function Se(e){return Ee(e)||_e(e)}function _e(e){return e>=48&&e<=57}function ke(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Pe(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Oe(e){return e>=48&&e<=55}be.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},be.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},be.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i},be.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,s=n.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},be.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},be.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},be.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},be.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},ve.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},ve.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},ve.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},ve.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},ve.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},ve.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},ve.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},ve.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},ve.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},ve.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},ve.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},ve.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},ve.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},ve.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},ve.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},ve.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},ve.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!we(t)&&(e.lastIntValue=t,e.advance(),!0)},ve.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!we(n);)e.advance();return e.pos!==t},ve.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},ve.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},ve.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},ve.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=xe(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=xe(e.lastIntValue);return!0}return!1},ve.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return f(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},ve.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return m(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},ve.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},ve.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},ve.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},ve.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},ve.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},ve.regexp_eatZero=function(e){return 48===e.current()&&!_e(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},ve.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},ve.regexp_eatControlLetter=function(e){var t=e.current();return!!Ce(t)&&(e.lastIntValue=t%32,e.advance(),!0)},ve.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=1024*(s-55296)+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},ve.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},ve.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},ve.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},ve.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},ve.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){D(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},ve.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},ve.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ee(t=e.current());)e.lastStringValue+=xe(t),e.advance();return""!==e.lastStringValue},ve.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Se(t=e.current());)e.lastStringValue+=xe(t),e.advance();return""!==e.lastStringValue},ve.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},ve.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},ve.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},ve.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Oe(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},ve.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},ve.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!_e(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},ve.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},ve.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;_e(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},ve.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ke(n=e.current());)e.lastIntValue=16*e.lastIntValue+Pe(n),e.advance();return e.pos!==t},ve.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},ve.regexp_eatOctalDigit=function(e){var t=e.current();return Oe(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},ve.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!ke(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Pe(i),e.advance()}return!0};var Te=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new M(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Ie=$.prototype;function De(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function Ae(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}Ie.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Te(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ie.getToken=function(){return this.next(),new Te(this)},"undefined"!=typeof Symbol&&(Ie[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===C.eof,value:t}}}}),Ie.curContext=function(){return this.context[this.context.length-1]},Ie.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(C.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Ie.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Ie.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},Ie.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(S.lastIndex=n;(e=S.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,t,this.curPosition())},Ie.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!_(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Ie.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&k.test(String.fromCharCode(e))))break e;++this.pos}}},Ie.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Ie.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(C.ellipsis)):(++this.pos,this.finishToken(C.dot))},Ie.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(C.assign,2):this.finishOp(C.slash,1)},Ie.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?C.star:C.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=C.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(C.assign,n+1):this.finishOp(r,n)},Ie.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(C.assign,3);return this.finishOp(124===e?C.logicalOR:C.logicalAND,2)}return 61===t?this.finishOp(C.assign,2):this.finishOp(124===e?C.bitwiseOR:C.bitwiseAND,1)},Ie.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(C.assign,2):this.finishOp(C.bitwiseXOR,1)},Ie.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!E.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(C.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(C.assign,2):this.finishOp(C.plusMin,1)},Ie.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(C.assign,n+1):this.finishOp(C.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(C.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Ie.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(C.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(C.arrow)):this.finishOp(61===e?C.eq:C.prefix,1)},Ie.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(C.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(C.assign,3);return this.finishOp(C.coalesce,2)}}return this.finishOp(C.question,1)},Ie.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(C.parenL);case 41:return++this.pos,this.finishToken(C.parenR);case 59:return++this.pos,this.finishToken(C.semi);case 44:return++this.pos,this.finishToken(C.comma);case 91:return++this.pos,this.finishToken(C.bracketL);case 93:return++this.pos,this.finishToken(C.bracketR);case 123:return++this.pos,this.finishToken(C.braceL);case 125:return++this.pos,this.finishToken(C.braceR);case 58:return++this.pos,this.finishToken(C.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(C.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(C.prefix,1)}this.raise(this.pos,"Unexpected character '"+Ae(e)+"'")},Ie.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Ie.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(E.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new be(this));o.reset(n,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(C.regexp,{pattern:i,flags:a,value:l})},Ie.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var h=this.input.charCodeAt(this.pos),u=void 0;if(r&&95===h)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=h;else{if((u=h>=97?h-97+10:h>=65?h-65+10:h>=48&&h<=57?h-48:1/0)>=e)break;o=h,a=a*e+u}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:a},Ie.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=De(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(C.num,n)},Ie.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=De(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(C.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,a=(s=this.input.slice(t,this.pos),n?parseInt(s,8):parseFloat(s.replace(/_/g,"")));return this.finishToken(C.num,a)},Ie.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Ie.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(_(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(C.string,t)};var Re={};Ie.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Re)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ie.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Re;this.raise(e,t)},Ie.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==C.template&&this.type!==C.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(C.template,e)):36===n?(this.pos+=2,this.finishToken(C.dollarBraceL)):(++this.pos,this.finishToken(C.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(_(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Ie.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(C.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Ie.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ae(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(e){var n=this.pos-1;return this.invalidStringToken(n,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return _(t)?"":String.fromCharCode(t)}},Ie.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},Ie.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(m(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?f:m)(a,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=Ae(a),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},Ie.readWord=function(){var e=this.readWord1(),t=C.name;return this.keywords.test(e)&&(t=x[e]),this.finishToken(t,e)};var Ne="7.4.1";function Me(e,t){return $.parse(e,t)}function Fe(e,t,n){return $.parseExpressionAt(e,t,n)}function Le(e,t){return $.tokenizer(e,t)}$.acorn={Parser:$,version:Ne,defaultOptions:L,Position:N,SourceLocation:M,getLineInfo:F,Node:re,TokenType:g,tokTypes:C,keywordTypes:x,TokContext:ae,tokContexts:oe,isIdentifierChar:m,isIdentifierStart:f,Token:Te,isNewLine:_,lineBreak:E,lineBreakG:S,nonASCIIwhitespace:k}}},__webpack_module_cache__={},leafPrototypes,getProto;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);__webpack_require__.r(n);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var i=2&t&&e;"object"==typeof i&&!~leafPrototypes.indexOf(i);i=getProto(i))Object.getOwnPropertyNames(i).forEach((t=>r[t]=()=>e[t]));return r.default=()=>e,__webpack_require__.d(n,r),n},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Anchor:()=>Vn,ArrayField:()=>LD,AutoComplete:()=>Or,Avatar:()=>jr,AvatarGroup:()=>Kr,BackTop:()=>Ei,Badge:()=>Ii,Banner:()=>$i,BaseComponent:()=>f,BaseFoundation:()=>c,Breadcrumb:()=>Xi,Button:()=>Ji,ButtonGroup:()=>ns,Calendar:()=>ao,Card:()=>zo,CardGroup:()=>Wo,Carousel:()=>yl,Cascader:()=>jp,Chat:()=>ZW,Checkbox:()=>$c,CheckboxGroup:()=>jc,CodeHighlight:()=>kU,Col:()=>kx,Collapse:()=>Xp,Collapsible:()=>Kp,ColorPicker:()=>eR,ConfigProvider:()=>Jp,DatePicker:()=>zv,Descriptions:()=>sb,Divider:()=>cb,Dropdown:()=>mx,DropdownDivider:()=>ox,DropdownItem:()=>ix,DropdownMenu:()=>tx,Empty:()=>pb,Form:()=>TD,Highlight:()=>cI,Icon:()=>tw,IconButton:()=>bi,Image:()=>fA,ImagePreview:()=>vA,Input:()=>gr,InputGroup:()=>cw,InputNumber:()=>Fw,Layout:()=>zx,List:()=>ew,LocaleConsumer:()=>Bt,LocaleProvider:()=>hI,Lottie:()=>FU,MarkdownRender:()=>TU,Modal:()=>Kb,Nav:()=>dC,NavItem:()=>tC,Notification:()=>AC,OverflowList:()=>WC,Pagination:()=>EE,PinCode:()=>oR,Popconfirm:()=>PE,Popover:()=>pn,Progress:()=>VE,Radio:()=>hS,RadioGroup:()=>lS,Rating:()=>vS,Row:()=>Cx,ScrollItem:()=>fv,ScrollList:()=>vv,Select:()=>bE,SideSheet:()=>DS,Skeleton:()=>To,Slider:()=>LS,Space:()=>jo,Spin:()=>tr,SplitButtonGroup:()=>VS,Step:()=>YS,Steps:()=>o_,SubNav:()=>nC,Switch:()=>d_,TabPane:()=>LP,Table:()=>wP,Tabs:()=>BP,Tag:()=>Sh,TagGroup:()=>iE,TagInput:()=>Mp,TextArea:()=>ww,TimePicker:()=>dO,Timeline:()=>JP,Toast:()=>OO,ToastFactory:()=>PO,Tooltip:()=>ft,Transfer:()=>sI,Tree:()=>XO,TreeSelect:()=>oT,Typography:()=>Nn,Upload:()=>UT,semiGlobal:()=>Ve,useFieldApi:()=>DD,useFieldState:()=>AD,useFormApi:()=>ID,useFormState:()=>ZI,withField:()=>oD,withFormApi:()=>ND,withFormState:()=>RD});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{attentionMarkers:()=>Xj,contentInitial:()=>Kj,disable:()=>Zj,document:()=>Hj,flow:()=>Wj,flowInitial:()=>Uj,insideSpan:()=>Yj,string:()=>Gj,text:()=>qj});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{boolean:()=>SB,booleanish:()=>_B,commaOrSpaceSeparated:()=>IB,commaSeparated:()=>TB,number:()=>PB,overloadedBoolean:()=>kB,spaceSeparated:()=>OB});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{a:()=>mU,code:()=>PU,h1:()=>cU,h2:()=>hU,h3:()=>uU,h4:()=>dU,h5:()=>pU,h6:()=>fU,img:()=>gU,p:()=>vU,table:()=>yU});__webpack_require__("KrBO");var r=__webpack_require__("nnm9"),i=__webpack_require__.n(r),s=__webpack_require__("2srY"),a=__webpack_require__.n(s);const o=function(e){if("development"===a()(process,"env.NODE_ENV")){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console.log(e,...n)}};class l{static get cssClasses(){return{}}static get strings(){return{}}static get numbers(){return{}}static get defaultAdapter(){return{getProp:i(),getProps:i(),getState:i(),getStates:i(),setState:i(),getContext:i(),getContexts:i(),getCache:i(),setCache:i(),getCaches:i(),stopPropagation:i(),persistEvent:i()}}constructor(e){this._adapter=Object.assign(Object.assign({},l.defaultAdapter),e)}getProp(e){return this._adapter.getProp(e)}getProps(){return this._adapter.getProps()}getState(e){return this._adapter.getState(e)}getStates(){return this._adapter.getStates()}setState(e,t){return this._adapter.setState(Object.assign({},e),t)}getContext(e){return this._adapter.getContext(e)}getContexts(){return this._adapter.getContexts()}getCaches(){return this._adapter.getCaches()}getCache(e){return this._adapter.getCache(e)}setCache(e,t){return e&&this._adapter.setCache(e,t)}stopPropagation(e){this._adapter.stopPropagation(e)}_isControlledComponent(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value")in this.getProps()}_isInProps(e){return e in this.getProps()}init(e){}destroy(){}log(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o(e,...n)}_persistEvent(e){this._adapter.persistEvent(e)}}const c=l;var h=__webpack_require__("neV8"),u=__webpack_require__.n(h);function d(e){return Object.keys(e).reduce(((t,n)=>("data-"===n.substr(0,5)&&(t[n]=e[n]),t)),{})}const{hasOwnProperty:p}=Object.prototype;class f extends h.Component{constructor(e){super(e),this.isControlled=e=>Boolean(e&&this.props&&"object"==typeof this.props&&p.call(this.props,e)),this.setStateAsync=e=>new Promise((t=>{this.setState(e,t)})),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&"function"==typeof this.foundation.init&&this.foundation.init()}componentWillUnmount(){this.foundation&&"function"==typeof this.foundation.destroy&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch(e){}},persistEvent:e=>{e&&e.persist&&"function"==typeof e.persist&&e.persist()}}}log(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o(e,...n)}getDataAttr(){return d(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props)}}f.propTypes={},f.defaultProps={};var m=__webpack_require__("Bcqe"),g=__webpack_require__.n(m),y=__webpack_require__("RNvQ"),v=__webpack_require__.n(y),b=__webpack_require__("IpAo"),x=__webpack_require__.n(b),w=__webpack_require__("aWzz"),C=__webpack_require__.n(w);const E="semi",S={PREFIX:`${E}-anchor`},_=["small","default"],k=["primary","tertiary","muted"],P="200px",O="750px",T=["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"];var I=__webpack_require__("wxYD"),D=__webpack_require__.n(I);function A(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function R(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function N(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return R(n.overflowY,t)||R(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function M(e,t,n,r,i,s,a,o){return s<e&&a>t||s>e&&a<t?0:s<=e&&o<=n||a>=t&&o>=n?s-e-r:a>t&&o<n||s<e&&o>n?a-t+i:0}var F=function(e,t){var n=window,r=t.scrollMode,i=t.block,s=t.inline,a=t.boundary,o=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!A(e))throw new TypeError("Invalid target");for(var c,h,u=document.scrollingElement||document.documentElement,d=[],p=e;A(p)&&l(p);){if((p=null==(h=(c=p).parentElement)?c.getRootNode().host||null:h)===u){d.push(p);break}null!=p&&p===document.body&&N(p)&&!N(document.documentElement)||null!=p&&N(p,o)&&d.push(p)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),b=v.height,x=v.width,w=v.top,C=v.right,E=v.bottom,S=v.left,_="start"===i||"nearest"===i?w:"end"===i?E:w+b/2,k="center"===s?S+x/2:"end"===s?C:S,P=[],O=0;O<d.length;O++){var T=d[O],I=T.getBoundingClientRect(),D=I.height,R=I.width,F=I.top,L=I.right,j=I.bottom,V=I.left;if("if-needed"===r&&w>=0&&S>=0&&E<=m&&C<=f&&w>=F&&E<=j&&S>=V&&C<=L)return P;var $=getComputedStyle(T),B=parseInt($.borderLeftWidth,10),z=parseInt($.borderTopWidth,10),H=parseInt($.borderRightWidth,10),K=parseInt($.borderBottomWidth,10),U=0,W=0,G="offsetWidth"in T?T.offsetWidth-T.clientWidth-B-H:0,q="offsetHeight"in T?T.offsetHeight-T.clientHeight-z-K:0,Y="offsetWidth"in T?0===T.offsetWidth?0:R/T.offsetWidth:0,X="offsetHeight"in T?0===T.offsetHeight?0:D/T.offsetHeight:0;if(u===T)U="start"===i?_:"end"===i?_-m:"nearest"===i?M(y,y+m,m,z,K,y+_,y+_+b,b):_-m/2,W="start"===s?k:"center"===s?k-f/2:"end"===s?k-f:M(g,g+f,f,B,H,g+k,g+k+x,x),U=Math.max(0,U+y),W=Math.max(0,W+g);else{U="start"===i?_-F-z:"end"===i?_-j+K+q:"nearest"===i?M(F,j,D,z,K+q,_,_+b,b):_-(F+D/2)+q/2,W="start"===s?k-V-B:"center"===s?k-(V+R/2)+G/2:"end"===s?k-L+H+G:M(V,L,R,B,H+G,k,k+x,x);var Z=T.scrollLeft,J=T.scrollTop;_+=J-(U=Math.max(0,Math.min(J+U/X,T.scrollHeight-D/X+q))),k+=Z-(W=Math.max(0,Math.min(Z+W/Y,T.scrollWidth-R/Y+G)))}P.push({el:T,top:U,left:W})}return P};function L(e){return e===Object(e)&&0!==Object.keys(e).length}const j=function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(L(t)&&"function"==typeof t.behavior)return t.behavior(n?F(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:L(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,s=e.left;r.scroll&&n?r.scroll({top:i,left:s,behavior:t}):(r.scrollTop=i,r.scrollLeft=s)}))}(F(e,r),r.behavior)}},V=S.PREFIX;class $ extends c{constructor(e){var t;super(Object.assign(Object.assign({},$.defaultAdapter),e)),t=this,this.init=()=>{},this.destroy=()=>{},this.addLink=e=>{this._adapter.addLink(e)},this.removeLink=e=>{this._adapter.removeLink(e)},this.setActiveLink=function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=t._adapter.getState("activeLink"),s=t._adapter.getProp("onChange");i!==e&&(t._adapter.setActiveLink(e,t._setActiveSlide),s&&r&&t._adapter.notifyChange(e,n))},this.setScrollHeight=()=>{const e=`.${V}-link-wrapper`,t=this._adapter.getAnchorNode(e);if(t){const e=`${t.scrollHeight}px`;this._adapter.setScrollHeight(e)}},this.updateScrollHeight=(e,t)=>{e.links.join("")!==t.links.join("")&&this.setScrollHeight()},this.setChildMap=()=>{const e=this._adapter.getProp("children"),t={};if(D()(e))for(const n of e)this._getLinkToMap(n,[],t);else this._getLinkToMap(e,[],t);this._adapter.setChildMap(t)},this.updateChildMap=(e,t)=>{e.links.join("")!==t.links.join("")&&this.setChildMap()},this.getLinksTop=()=>this._adapter.getLinksBoundingTop(),this.handleScroll=()=>{const{clickLink:e,links:t,activeLink:n}=this.getStates();if(e)return;const r=this.getLinksTop();let i=-1/0,s=-1;for(let e=0;e<r.length;e++)r[e]<0&&r[e]>i&&(i=r[e],s=e);const a=t[s];this.setActiveLink(a,n)},this.handleClick=function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=t._adapter.getContentNode(n),s=t._adapter.getState("activeLink");if(t.setActiveLink(n,s,r),i)try{t._adapter.setClickLinkWithCallBack(!0,n,t._scrollIntoView)}catch(e){}r&&t._adapter.notifyClick(e,n)},this.handleClickLink=()=>{this._adapter.setClickLink(!1)},this._getLinkToMap=(e,t,n)=>{const r=e&&e.props;if(r&&r.href){r.href in n||(n[r.href]=new Set);for(const e of t)n[e].add(r.href);if(r.children&&r.children.length){t.push(r.href);for(const e of r.children)this._getLinkToMap(e,t,n);t.pop()}}},this._scrollIntoView=e=>{const{scrollMotion:t,targetOffset:n}=this.getProps(),r=t?"smooth":"auto",i=this._adapter.canSmoothScroll();if(e){const t=this._adapter.getContentNode(e);t&&j(t,{behavior:e=>{const t=e.find((e=>{const{el:t}=e;return t.scrollHeight>t.clientHeight})),s=a()(t,"el"),o=a()(t,"top");if(s){const e=o-n;s.scroll&&i?s.scroll({top:e,behavior:r}):s.scrollTop=e}},block:"start"})}},this._setActiveSlide=()=>{const e=`.${S.PREFIX}-link-title-active`,t=this._adapter.getAnchorNode(e);if(t){const e=t.offsetTop;this._adapter.setSlideBarTop(e)}}}}var B=__webpack_require__("tQYX"),z=__webpack_require__.n(B);class H extends c{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleAddLink(){const e=this._adapter.getProp("href");this._adapter.addLink(e)}handleUpdateLink(e,t){e!==t&&(this._adapter.removeLink(t),this._adapter.addLink(e))}handleRemoveLink(){const e=this._adapter.getProp("href");this._adapter.removeLink(e)}}const K=u().createContext(null),U={PREFIX:`${E}-typography`},W={WEIGHT:["light","regular","medium","semibold","bold","default"],TYPE:["primary","secondary","danger","warning","success","tertiary","quaternary"],SIZE:["normal","small","inherit"],SPACING:["normal","extended"],HEADING:[1,2,3,4,5,6],RULE:["text","numbers","bytes-decimal","bytes-binary","percentages","exponential"],TRUNCATE:["ceil","floor","round"]};__webpack_require__("rvDo");var G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const q=U.PREFIX;class Y extends h.PureComponent{render(){const e=this.props,{component:t,className:n,children:r,forwardRef:i}=e,s=G(e,["component","className","children","forwardRef"]),a=t,o=x()(q,n);return u().createElement(a,Object.assign({className:o,ref:i},s),r)}}Y.defaultProps={component:"article",style:{},className:""},Y.propTypes={component:C().string,style:C().object,className:C().string};const X=Y;var Z=__webpack_require__("2q8g"),J=__webpack_require__.n(Z),Q=__webpack_require__("R7V3"),ee=__webpack_require__.n(Q),te=__webpack_require__("nDih"),ne=__webpack_require__.n(te),re=__webpack_require__("H8sf"),ie=__webpack_require__.n(re),se=__webpack_require__("uZih"),ae=__webpack_require__.n(se),oe=__webpack_require__("CZlo"),le=__webpack_require__.n(oe),ce=__webpack_require__("nnRT"),he=__webpack_require__.n(ce),ue=__webpack_require__("MwrP"),de=__webpack_require__.n(ue),pe=__webpack_require__("h4um"),fe=__webpack_require__.n(pe),me=__webpack_require__("sw63"),ge=__webpack_require__.n(me);function ye(e,t){e&&console.warn(`Warning: ${t}`)}function ve(e){return null==e}class be{constructor(){this._eventMap=new Map}on(e,t){return e&&"function"==typeof t&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var n=this;if(e&&"function"==typeof t){const r=function(){t(...arguments),n.off(e,r)};this.on(e,r)}}off(e,t){if(e)if("function"==typeof t){const n=this._eventMap.get(e);if(Array.isArray(n)&&n.length){let e=-1;for(;(e=n.findIndex((e=>e===t)))>-1;)n.splice(e,1)}}else ve(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!this._eventMap.has(e))return!1;return[...this._eventMap.get(e)].forEach((e=>e(...n))),!0}}function xe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(const t of n)e.appendChild(t);return e}function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(e.children&&e.children.length){const t=e.children[0];for(const r of n)e.insertBefore(r,t)}else xe(e,...n);return e}function Ce(e){e.stopPropagation(),e.preventDefault()}function Ee(e,t){for(let n=0;n<e.length;n++)e[n]===t?(e[n].tabIndex=0,e[n].focus()):e[n].tabIndex=-1}const Se={TOP:/top/i,RIGHT:/right/i,BOTTOM:/bottom/i,LEFT:/left/i},_e={left:0,top:0,height:0,width:0,scrollLeft:0,scrollTop:0};class ke extends c{constructor(e){var t;super(Object.assign({},e)),t=this,this.removePortal=()=>{this._adapter.removePortal()},this.setDisplayNone=(e,t)=>{this._adapter.setDisplayNone(e,t)},this.updateStateIfCursorOnTrigger=e=>{var t,n;if(null===(t=null==e?void 0:e.matches)||void 0===t?void 0:t.call(e,":hover")){const e=this._adapter.getEventName(),t=this.getState("triggerEventSet");null===(n=t[e.mouseEnter])||void 0===n||n.call(t)}},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const e=this.getProp("mouseEnterDelay");this.clearDelayTimer(),e>0?this._timer=setTimeout((()=>{this.show(),this.clearDelayTimer()}),e):this.show()},this.show=()=>{const e=this.getProp("content"),t=this.getProp("trigger"),n=this.getProp("clickTriggerToHide"),{visible:r,displayNone:i}=this.getStates();if(i&&this.setDisplayNone(!1),!r){if(this.clearDelayTimer(),this._adapter.on("portalInserted",(()=>{this.calcPosition()})),"hover"===t){const e=()=>{var n;const r=this._adapter.getTriggerDOM();t&&!(null===(n=null==r?void 0:r.matches)||void 0===n?void 0:n.call(r,":hover"))&&this.hide(),this._adapter.off("portalInserted",e)};this._adapter.on("portalInserted",e)}this._adapter.on("positionUpdated",(()=>{this._togglePortalVisible(!0)})),this._adapter.insertPortal(e,{left:-9999,top:-9999}),"custom"===t&&this._adapter.registerClickOutsideHandler((()=>{})),("click"===t||n||"contextMenu"===t)&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent()}},this.calcPosition=function(e,n,r){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=(de()(e)?t._adapter.getTriggerBounding():e)||Object.assign({},_e),r=(de()(r)?t._adapter.getPopupContainerRect():r)||Object.assign({},_e),n=(de()(n)?t._adapter.getWrapperBounding():n)||Object.assign({},_e);let s=t.calcPosStyle({triggerRect:e,wrapperRect:n,containerRect:r}),a=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:i,isHeightOverFlow:o,isWidthOverFlow:l}=t.adjustPosIfNeed(a,s,e,n,r);(a!==i||o||l)&&(a=i,s=t.calcPosStyle({triggerRect:e,wrapperRect:n,containerRect:r,position:a,spacing:null,isOverFlow:[o,l]}))}return i&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:a})),s},this.delayHide=()=>{const e=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),e>0?this._timer=setTimeout((()=>{this.hide(),this.clearDelayTimer()}),e):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=e=>{const{guardFocus:t,closeOnEsc:n}=this.getProps();switch(e&&e.key){case"Escape":n&&this._handleEscKeyDown(e);break;case"Tab":if(t){const t=this._adapter.getContainer(),n=this._adapter.getFocusableElements(t);n.length&&(e.shiftKey?this._handleContainerShiftTabKeyDown(n,e):this._handleContainerTabKeyDown(n,e))}}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:n}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(n),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0;switch(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"reverse"){case"reverse":default:return this._reversePos(e,t);case"expand":return this._expandPos(e,n);case"reduce":return this._reducePos(e)}}_reversePos(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){if(Se.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(Se.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(Se.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(Se.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(e)}_reducePos(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find((t=>e.endsWith(t)));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),n={[t.keydown]:e=>{this._handleTriggerKeydown(e)}};let r={};switch(e){case"focus":n[t.focus]=()=>{this.delayShow()},n[t.blur]=()=>{this.delayHide()},r=n;break;case"click":n[t.click]=()=>{this.show()},r={};break;case"hover":n[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},n[t.mouseLeave]=()=>{this.delayHide()},n[t.focus]=()=>{const{disableFocusListener:e}=this.getProps();!e&&this.delayShow()},n[t.blur]=()=>{const{disableFocusListener:e}=this.getProps();!e&&this.delayHide()},r=Object.assign({},n),this.getProp("clickToHide")&&(r[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},r[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":default:break;case"contextMenu":n[t.contextMenu]=e=>{e.preventDefault(),this.show()}}return{triggerEventSet:n,portalEventSet:r}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,(()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)}))}_roundPixel(e){return"number"==typeof e?Math.round(e):e}calcTransformOrigin(e,t,n,r){if(e&&t&&null!=n&&null!=r){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${100*-r}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${100*-r}%`;if(["leftTop","rightTop"].includes(e))return`${100*-n}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${100*-n}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${100*-n}% ${100*-r}%`}return null}calcPosStyle(e){var t;const{spacing:n,isOverFlow:r}=e,{innerWidth:i}=window,s=(de()(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_e),o=(de()(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_e),l=(de()(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_e),c=null!=e.position?e.position:this.getProp("position"),h=null!=n?n:this.getProp("spacing"),{arrowPointAtCenter:u,showArrow:d,arrowBounding:p}=this.getProps(),f=d&&u;let m=h,g=0;if("number"!=typeof h){const e=c.includes("top")||c.includes("bottom");m=e?h.y:h.x,g=e?h.x:h.y}const y=a()(p,"width",24),v=a()(p,"width",24),b=a()(p,"offsetY",0);let x,w,C=0,E=0;const S=s.left+s.width/2,_=s.top+s.height/2,k=6+y/2,P=6+v/2,O=l.height-o.height,T=l.width-o.width,I=O>0?O:0,D=T>0?T:0,A=r&&r[0],R=r&&r[1],N=S-o.left<o.right-S,M=_-o.top<o.bottom-_,F=l.width>i,L=Math.abs((null==l?void 0:l.width)-(null===(t=this._adapter.getContainer())||void 0===t?void 0:t.clientWidth))>1;switch(L&&(m=m*l.width/this._adapter.getContainer().clientWidth),c){case"top":x=R?N?o.left+l.width/2:o.right-l.width/2+D:S+g,w=A?o.bottom+I:s.top-m,C=-.5,E=-1;break;case"topLeft":x=R?F?o.left:o.right-l.width:f?S-k+g:s.left+g,w=A?o.bottom+I:s.top-m,E=-1;break;case"topRight":x=R?o.right+D:f?S+k+g:s.right+g,w=A?o.bottom+I:s.top-m,E=-1,C=-1;break;case"left":x=R?o.right+D-m+k:s.left-m,w=A?M?o.top+l.height/2:o.bottom-l.height/2+I:_+g,C=-1,E=-.5;break;case"leftTop":x=R?o.right+D-m+k:s.left-m,w=A?o.top:f?_-P+g:s.top+g,C=-1;break;case"leftBottom":x=R?o.right+D-m+k:s.left-m,w=A?o.bottom+I:f?_+P+g:s.bottom+g,C=-1,E=-1;break;case"bottom":x=R?N?o.left+l.width/2:o.right-l.width/2+D:S+g,w=A?o.top+P-m:s.top+s.height+m,C=-.5;break;case"bottomLeft":x=R?F?o.left:o.right-l.width:f?S-k+g:s.left+g,w=A?o.top+P-m:s.top+s.height+m;break;case"bottomRight":x=R?o.right+D:f?S+k+g:s.right+g,w=A?o.top+P-m:s.top+s.height+m,C=-1;break;case"right":x=R?o.left-m+k:s.right+m,w=A?M?o.top+l.height/2:o.bottom-l.height/2+I:_+g,E=-.5;break;case"rightTop":x=R?o.left-m+k:s.right+m,w=A?o.top:f?_-P+g:s.top+g;break;case"rightBottom":x=R?o.left-m+k:s.right+m,w=A?o.bottom+I:f?_+P+g:s.bottom+g,E=-1;break;case"leftTopOver":x=s.left-m,w=s.top-m;break;case"rightTopOver":x=s.right+m,w=s.top-m,C=-1;break;case"leftBottomOver":x=s.left-m,w=s.bottom+m,E=-1;break;case"rightBottomOver":x=s.right+m,w=s.bottom+m,C=-1,E=-1}const j=this.calcTransformOrigin(c,s,C,E),V=this._adapter.containerIsBody();if(x-=o.left,w-=o.top,L&&(x/=l.width/this._adapter.getContainer().clientWidth),L&&(w/=l.height/this._adapter.getContainer().clientHeight),V&&!this._adapter.containerIsRelativeOrAbsolute()){const e=this._adapter.getDocumentElementBounding();x+=o.left-e.left,w+=o.top-e.top}x=V?x:x+o.scrollLeft,w=V?w:w+o.scrollTop;const $=s.height;if(this.getProp("showArrow")&&!u&&$<=2*(v/2+b)){const e=$/2-(b+v/2);!c.includes("Top")&&!c.includes("Bottom")||c.includes("Over")||(w=c.includes("Top")?w+e:w-e)}const B={left:this._roundPixel(x),top:this._roundPixel(w)};let z="";return null!=C&&(z+=`translateX(${100*C}%) `,Object.defineProperty(B,"translateX",{enumerable:!1,value:C})),null!=E&&(z+=`translateY(${100*E}%) `,Object.defineProperty(B,"translateY",{enumerable:!1,value:E})),null!=j&&(B.transformOrigin=j),z&&(B.transform=z),B}isLR(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,n){return e<n&&t>n}isOverFlow(e,t,n){return e<n&&t<n}isHalfOverFlow(e,t,n){return e<n||t<n}isHalfAllEnough(e,t,n){return e>=n||t>=n}getReverse(e,t,n,r){return e&&r||n}adjustPosIfNeed(e,t,n,r,i){const{innerWidth:s,innerHeight:a}=window,{margin:o}=this.getProps(),l="number"==typeof o?o:o.marginLeft,c="number"==typeof o?o:o.marginTop,h="number"==typeof o?o:o.marginRight,u="number"==typeof o?o:o.marginBottom;let d=!1,p=!1;const f=this.getProp("spacing");let m=f,g=0;if("number"!=typeof f){const t=e.includes("top")||e.includes("bottom");m=t?f.y:f.x,g=t?f.x:f.y}if(r.width>0&&r.height>0){const t=n.left,o=n.right,f=n.top,y=n.bottom,v=s-t,b=a-f,x=s-o,w=a-y,C=r.width>n.width,E=r.height>n.height,S=f-c<r.height+m&&w-u>r.height+m,_=t-l<r.width+m&&x-h>r.width+m,k=w-u<r.height+m&&f-c>r.height+m,P=x-h<r.width+m&&t-l>r.width+m,O=(b-u<r.height+m&&r.height,y-c<r.height+m&&r.height,b<r.height+g&&y>r.height+g),T=y<r.height+g&&b>r.height+g,I=v<r.width+g&&o>r.width+g,D=o<r.width+g&&v>r.width+g,A=b<r.height+m&&y>r.height+m,R=y<r.height+m&&b>r.height+m,N=v<r.width&&o>r.width,M=o<r.width&&v>r.width,F=f-i.top,L=t-i.left,j=F+n.height,V=L+n.width,$=i.bottom-y,B=i.right-o,z=$+n.height,H=B+n.width,K=this.isReverse(F-c,$-u,r.height+m),U=this.isReverse(L-l,B-h,r.width+m),W=this.isReverse($-u,F-c,r.height+m),G=this.isReverse(B-h,L-l,r.width+m),q=(this.isReverse(z-u,j-c,r.height+m),this.isReverse(j-c,z-u,r.height+m),this.isReverse(z,j,r.height+g)),Y=this.isReverse(j,z,r.height+g),X=this.isReverse(H,V,r.width+g),Z=this.isReverse(V,H,r.width+g),J=n.height/2,Q=n.width/2,ee=this.isOverFlow(f-c,w-u,r.height+m),te=this.isOverFlow(t-l,x-h,r.width+m),ne=this.isOverFlow(y-c,b-u,r.height+m),re=this.isOverFlow(o-l,v-h,r.width+m),ie=this.isHalfOverFlow(y-J,b-J,(r.height+g)/2),se=this.isHalfOverFlow(o-Q,v-Q,(r.width+g)/2),ae=this.isHalfAllEnough(y-J,b-J,(r.height+g)/2),oe=this.isHalfAllEnough(o-Q,v-Q,(r.width+g)/2),le=this.isOverFlow(F-c,$-u,r.height+m),ce=this.isOverFlow(L-l,B-h,r.width+m),he=this.isOverFlow(j-c,z-u,r.height+m),ue=this.isOverFlow(V-l,H-h,r.width+m),de=this.isHalfOverFlow(j-J,z-J,(r.height+g)/2),pe=this.isHalfOverFlow(V-Q,H-Q,(r.width+g)/2),fe=this.isHalfAllEnough(j-J,z-J,(r.height+g)/2),me=this.isHalfAllEnough(V-Q,H-Q,(r.width+g)/2),ge=this.getReverse(ee,le,S,K),ye=this.getReverse(te,ce,_,U),ve=this.getReverse(ee,le,k,W),be=this.getReverse(te,ce,P,G),xe=this.getReverse(ne,he,O,q),we=this.getReverse(ne,he,T,Y),Ce=this.getReverse(re,ue,I,X),Ee=this.getReverse(re,ue,D,Z),Se=ie&&de,_e=se&&pe;switch(e){case"top":ge&&(e=this._adjustPos(e,!0)),_e&&(Ce||Ee)&&(e=this._adjustPos(e,!0,"expand",Ce?"Right":"Left"));break;case"topLeft":ge&&(e=this._adjustPos(e,!0)),Ce&&C&&(e=this._adjustPos(e)),p&&(oe||me)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":ge&&(e=this._adjustPos(e,!0)),Ee&&C&&(e=this._adjustPos(e)),p&&(oe||me)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":ye&&(e=this._adjustPos(e)),Se&&(xe||we)&&(e=this._adjustPos(e,!1,"expand",xe?"Bottom":"Top"));break;case"leftTop":ye&&(e=this._adjustPos(e)),xe&&E&&(e=this._adjustPos(e,!0)),d&&(ae||fe)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":ye&&(e=this._adjustPos(e)),we&&E&&(e=this._adjustPos(e,!0)),d&&(ae||fe)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":ve&&(e=this._adjustPos(e,!0)),_e&&(Ce||Ee)&&(e=this._adjustPos(e,!0,"expand",Ce?"Right":"Left"));break;case"bottomLeft":ve&&(e=this._adjustPos(e,!0)),Ce&&C&&(e=this._adjustPos(e)),p&&(oe||me)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":ve&&(e=this._adjustPos(e,!0)),Ee&&C&&(e=this._adjustPos(e)),p&&(oe||me)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":be&&(e=this._adjustPos(e)),Se&&(xe||we)&&(e=this._adjustPos(e,!1,"expand",xe?"Bottom":"Top"));break;case"rightTop":be&&(e=this._adjustPos(e)),xe&&E&&(e=this._adjustPos(e,!0)),d&&(ae||fe)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":be&&(e=this._adjustPos(e)),we&&E&&(e=this._adjustPos(e,!0)),d&&(ae||fe)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":A&&(e=this._adjustPos(e,!0)),N&&(e=this._adjustPos(e));break;case"leftBottomOver":R&&(e=this._adjustPos(e,!0)),N&&(e=this._adjustPos(e));break;case"rightTopOver":A&&(e=this._adjustPos(e,!0)),M&&(e=this._adjustPos(e));break;case"rightBottomOver":R&&(e=this._adjustPos(e,!0)),M&&(e=this._adjustPos(e))}this.isTB(e)&&(d=ee&&le,p="top"===e||"bottom"===e?se&&pe||o<0||x<0:re&&ue||o<0||x<0),this.isLR(e)&&(p=te&&ce,d="left"===e||"right"===e?ie&&de||f<0||b<0:ne&&he||f<0||b<0)}return{position:e,isHeightOverFlow:d,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler((()=>this.calcPosition()))}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:n}=this.getProps(),r=this._adapter.getContainer(),i=this._adapter.getFocusableElements(r),s=i.length;switch(e&&e.key){case"Escape":Ce(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!n&&s&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!n&&s&&this._handleTriggerArrowDownKeydown(i,e)}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:n}=this.getProps();if(t&&"custom"!==e){const e=this._adapter.getTriggerNode();e&&"focus"in e&&e.focus({preventScroll:n})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();"custom"!==t&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:n}=this.getProps(),r=this._adapter.getActiveElement();e[e.length-1]===r&&(e[0].focus({preventScroll:n}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:n}=this.getProps(),r=this._adapter.getActiveElement();e[0]===r&&(e[e.length-1].focus({preventScroll:n}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:n}=this.getProps();e[0].focus({preventScroll:n}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:n}=this.getProps();e[e.length-1].focus({preventScroll:n}),t.preventDefault()}}const Pe={PREFIX:`${E}-tooltip`},Oe={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Te={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function Ie(e){return`${e}-${(new Date).getTime()}-${Math.random()}`}function De(){var e,t;try{return null!==(t=null===(e=null===crypto||void 0===crypto?void 0:crypto.randomUUID)||void 0===e?void 0:e.call(crypto))&&void 0!==t?t:String(-99990013e3).replace(/[018]/g,(e=>(Number(e)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(e)/4).toString(16)))}catch(e){return Ie("semi")}}function Ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{prefix:t="",length:n=7}=e,r="0123456789abcdefghijklmnopqrstuvwxyz";let i="";for(let e=0;e<n;e++){const e=Math.floor(36*Math.random());i+=r.charAt(e)}return t?`${t}-${i}`:i}__webpack_require__("PolX");function Re(e){try{return e instanceof HTMLElement}catch(t){return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}}var Ne=__webpack_require__("DL3M"),Me=__webpack_require__.n(Ne),Fe=__webpack_require__("NdXQ"),Le=__webpack_require__.n(Fe);const je=e=>{let{autoEscape:t=!0,caseSensitive:n=!1,searchWords:r,sourceString:i}=e;ne()(r)&&(r=[r]);const s=(e=>{let{autoEscape:t,caseSensitive:n,searchWords:r,sourceString:i}=e;return r.filter((e=>e)).reduce(((e,r)=>{t&&(r=(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"))(r));const s=new RegExp(r,n?"g":"gi");let a;for(;a=s.exec(i);){const t=a.index,n=s.lastIndex;n>t&&e.push({highlight:!1,start:t,end:n}),a.index===s.lastIndex&&s.lastIndex++}return e}),[])})({autoEscape:t,caseSensitive:n,searchWords:r,sourceString:i}),a=(e=>{let{chunks:t}=e;return t=t.sort(((e,t)=>e.start-t.start)).reduce(((e,t)=>{if(0===e.length)return[t];{const n=e.pop();if(t.start<=n.end){const r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}}),[]),t})({chunks:s}),o=(e=>{let{chunksToHighlight:t,totalLength:n}=e;const r=[],i=(e,t,n)=>{t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)i(0,n,!1);else{let e=0;t.forEach((t=>{i(e,t.start,!1),i(t.start,t.end,!0),e=t.end})),i(e,n,!1)}return r})({chunksToHighlight:a,totalLength:i?i.length:0});return o};const Ve=new class{constructor(){this.config={}}};var $e=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))};function Be(e,t){e&&"function"==typeof e.stopPropagation&&e.stopPropagation(),!t&&e.nativeEvent&&"function"==typeof e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()}function ze(e,t){return Le()(e,(e=>{if("function"==typeof t)return t(e);if("function"==typeof e||u().isValidElement(e))return e;if("[object Error]"===Object.prototype.toString.call(e))return e;if(Array.isArray(e)&&0===e.length){const t=Object.keys(e);if(t.length){const n=[];t.forEach((t=>{Me()(n,t,e[t])}));try{ye("production"!==a()(process,"env.NODE_ENV"),"[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected.\n The maximum length of an array is 4294967295.\n Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript")}catch(e){}return n}}else;}))}const He=e=>{let{sourceString:t="",searchWords:n=[],option:r={autoEscape:!0,caseSensitive:!1}}=e;const i=je(Object.assign({sourceString:t,searchWords:n},r)),s=r.highlightTag||"mark",a=r.highlightClassName||"",o=r.highlightStyle||{};return i.map(((e,n)=>{const{end:r,start:i,highlight:l}=e,c=t.substr(i,r-i);return l?u().createElement(s,{style:o,className:a,key:c+n},c):c}))},Ke=(e,t)=>{let{match:n,unmatch:r,callInInit:i=!0}=t;if("undefined"!=typeof window){const s=window.matchMedia(e);function a(e){e.matches?n&&n(e):r&&r(e)}return i&&a(s),Object.prototype.hasOwnProperty.call(s,"addEventListener")?(s.addEventListener("change",a),()=>s.removeEventListener("change",a)):(s.addListener(a),()=>s.removeListener(a))}return()=>{}},Ue=e=>u().isValidElement(e)&&"Icon"===a()(e.type,"elementType");function We(){return document?document.activeElement:null}function Ge(e){if(!Re(e))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(t))}function qe(e,t){return $e(this,void 0,void 0,(function*(){return 0===t?void(yield e()):void(yield new Promise((n=>{setTimeout((()=>$e(this,void 0,void 0,(function*(){yield qe(e,t-1),n()}))),0)})))}))}function Ye(){return globalThis&&"[object Window]"===Object.prototype.toString.call(globalThis)?window.innerWidth-document.documentElement.clientWidth:0}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=()=>{var t,n;return(null===(n=null===(t=null==Ve?void 0:Ve.config)||void 0===t?void 0:t.overrideDefaultProps)||void 0===n?void 0:n[e])||{}};return new Proxy(Object.assign({},t),{get(e,t,r){const i=n();return t in i?i[t]:Reflect.get(e,t,r)},set:(e,t,n,r)=>Reflect.set(e,t,n,r),ownKeys(){const e=n();return Array.from(new Set([...Reflect.ownKeys(t),...Object.keys(e)]))},getOwnPropertyDescriptor(e,t){const r=n();return t in r?Reflect.getOwnPropertyDescriptor(r,t):Reflect.getOwnPropertyDescriptor(e,t)}})}const Ze=u().createContext({});__webpack_require__("FxGm");const Je=()=>document.body;class Qe extends h.PureComponent{constructor(e,t){var n;super(e),n=this,this.initContainer=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var r,i;try{let t;if(!n.el||!(null===(r=n.state)||void 0===r?void 0:r.container)||!Array.from(n.state.container.childNodes).includes(n.el)){n.el=document.createElement("div");const r=(n.props.getPopupContainer||e.getPopupContainer||Je)();return r.appendChild(n.el),n.addStyle(n.props.style),n.addClass(n.props.prefixCls,e,n.props.className),t=r,t}}catch(e){if(!t)throw e}return null===(i=n.state)||void 0===i?void 0:i.container},this.addStyle=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.el)for(const t of Object.keys(e))n.el.style[t]=e[t]},this.addClass=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.context;const{direction:r}=t;for(var i=arguments.length,s=new Array(i>2?i-2:0),a=2;a<i;a++)s[a-2]=arguments[a];const o=x()(e,...s,{[`${e}-rtl`]:"rtl"===r});n.el&&(n.el.className=o)},this.state={container:this.initContainer(t,!0)}}componentDidMount(){const e=this.initContainer(this.context);e!==this.state.container&&this.setState({container:e})}componentDidUpdate(e){const{didUpdate:t}=this.props;t&&t(e)}componentWillUnmount(){const{container:e}=this.state;e&&e.removeChild(this.el)}render(){const{state:e,props:t}=this;return e.container?(0,me.createPortal)(t.children,this.el):null}}Qe.contextType=Ze,Qe.defaultProps={prefixCls:`${E}-portal`},Qe.propTypes={children:C().node,prefixCls:C().string,getPopupContainer:C().func,className:C().string,didUpdate:C().func};const et=Qe;var tt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const nt=e=>{const{className:t,style:n}=e,r=tt(e,["className","style"]);return u().createElement("svg",Object.assign({"aria-hidden":!0,className:t,style:n},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),u().createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))};var rt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const it=e=>{const{className:t,style:n}=e,r=rt(e,["className","style"]);return u().createElement("svg",Object.assign({"aria-hidden":!0,className:t,style:n},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),u().createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},st=C().shape({offsetX:C().number,offsetY:C().number,width:C().number,height:C().number});class at extends u().Component{constructor(e){super(e),this.handleAnimationStart=()=>{var e,t;null===(t=(e=this.props).onAnimationStart)||void 0===t||t.call(e)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},(()=>{var e,t;null===(t=(e=this.props).onAnimationEnd)||void 0===t||t.call(e,!1)}))},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,n,r;null===(t=(e=this.props).onAnimationStart)||void 0===t||t.call(e),this.props.motion||(null===(r=(n=this.props).onAnimationEnd)||void 0===r||r.call(n,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,n){const r=Object.keys(this.props).filter((t=>!he()(this.props[t],e[t])));r.includes("animationState"),(r.includes("startClassName")||r.includes("replayKey")||r.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},(()=>{var e,t,n,r;null===(t=(e=this.props).onAnimationStart)||void 0===t||t.call(e),this.props.motion||(null===(r=(n=this.props).onAnimationEnd)||void 0===r||r.call(n,this.state.isAnimating),this.setState({isAnimating:!1}))}))}render(){var e;return this.props.motion?this.props.children({animationClassName:null!==(e=this.state.currentClassName)&&void 0!==e?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}at.defaultProps={motion:!0,replayKey:""};const ot=at;var lt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const ct=Pe.PREFIX,ht=Oe.POSITION_SET,ut=Oe.TRIGGER_SET,dt=["flex","block","table","flow-root","grid"],pt=()=>document.body;class ft extends f{constructor(e){super(e),this.setContainerEl=e=>this.containerEl={current:e},this.isSpecial=e=>{if(Re(e))return Boolean(e.disabled);if((0,h.isValidElement)(e)){if(a()(e,"props.disabled"))return Oe.STATUS_DISABLED;const t=a()(e,"props.loading"),n=!(de()(e)||de()(e.type)||"Button"!==a()(e,"type.elementType")&&"IconButton"!==a()(e,"type.elementType"));if(t&&n)return Oe.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:e}=this.state,{showArrow:t,prefixCls:n,style:r}=this.props;let i=null;const s=x()([`${n}-icon-arrow`]),o=a()(r,"backgroundColor"),l=(null==e?void 0:e.includes("left"))||(null==e?void 0:e.includes("right"))?u().createElement(it,null):u().createElement(nt,null);return t&&(i=(0,h.isValidElement)(t)?t:u().cloneElement(l,{className:s,style:{color:o,fill:"currentColor"}})),i},this.handlePortalInnerClick=e=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&Be(e)},this.handlePortalMouseDown=e=>{this.props.stopPropagation&&Be(e)},this.handlePortalFocus=e=>{this.props.stopPropagation&&Be(e)},this.handlePortalBlur=e=>{this.props.stopPropagation&&Be(e)},this.handlePortalInnerKeyDown=e=>{this.foundation.handleContainerKeydown(e)},this.renderContentNode=e=>{const t={initialFocusRef:this.initialFocusRef};return J()(e)?e(t):e},this.renderPortal=()=>{const{containerStyle:e={},visible:t,portalEventSet:n,placement:r,displayNone:i,transitionState:s,id:o,isPositionUpdated:l}=this.state,{prefixCls:c,content:h,showArrow:d,style:p,motion:f,role:m,zIndex:g}=this.props,y=this.renderContentNode(h),{className:v}=this.props,b=this.context.direction,w=x()(v,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:t,[`${c}-with-arrow`]:Boolean(d),[`${c}-rtl`]:"rtl"===b}),C=this.renderIcon(),S=ae()(e,f?["transformOrigin"]:void 0),_=a()(e,"transformOrigin"),k=a()(p,"opacity",null),P=k||1,O=u().createElement(ot,{fillMode:"forwards",animationState:s,motion:f&&l,startClassName:"enter"===s?`${ct}-animation-show`:`${ct}-animation-hide`,onAnimationEnd:()=>{var e,t;"leave"===s&&(this.didLeave(),null===(t=(e=this.props).afterClose)||void 0===t||t.call(e))}},(e=>{let{animationStyle:t,animationClassName:s,animationEventsNeedBind:a}=e;return u().createElement("div",Object.assign({className:x()(w,s),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),i?{display:"none"}:{}),{transformOrigin:_}),p),k?{opacity:l?P:"0"}:{})},n,a,{role:m,"x-placement":r,id:o}),u().createElement("div",{className:`${ct}-content`},y),C)}));return u().createElement(et,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:g}},u().createElement("div",{tabIndex:-1,className:`${E}-portal-inner`,style:S,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},O))},this.wrapSpan=e=>{const{wrapperClassName:t}=this.props,n=a()(e,"props.style.display"),r=a()(e,"props.block"),i={};return"string"==typeof e||(i.display="inline-block"),(r||dt.includes(n))&&(i.width="100%"),u().createElement("span",{className:t,style:i},e)},this.mergeEvents=(e,t)=>{const n={};return fe()(t,((t,r)=>{"function"==typeof t&&(n[r]=function(){t(...arguments),e&&"function"==typeof e[r]&&e[r](...arguments)})})),n},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new ke(this.adapter),this.eventManager=new be,this.triggerEl=u().createRef(),this.containerEl=u().createRef(),this.initialFocusRef=u().createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(e,t)=>{var{position:n}=t,r=lt(t,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),r)},(()=>{setTimeout((()=>{this.eventManager.emit("portalInserted")}),0)}))},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:e=>{this.setState({triggerEventSet:e})},registerPortalEvent:e=>{this.setState({portalEventSet:e})},getTriggerBounding:()=>{const e=this.adapter.getTriggerNode();return this.triggerEl.current=e,e&&e.getBoundingClientRect()},getPopupContainerRect:()=>{const e=this.getPopupContainer();let t=null;if(e&&Re(e)){const n=function(e){if(e&&"object"==typeof e)return"function"==typeof e.toJSON?e.toJSON():["left","top","right","bottom","width","height"].reduce(((t,n)=>(t[n]=e[n],t)),{})}(e.getBoundingClientRect());t=Object.assign(Object.assign({},n),{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop})}return t},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const e=this.getPopupContainer();return"relative"===window.getComputedStyle(e).getPropertyValue("position")},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const e=this.containerEl&&this.containerEl.current;return e&&e.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:e=>{var{position:t}=e,n=lt(e,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),n),placement:t,isPositionUpdated:!0},(()=>{this.eventManager.emit("positionUpdated")}))},setDisplayNone:(e,t)=>{this.setState({displayNone:e},t)},updatePlacementAttr:e=>{this.setState({placement:e})},togglePortalVisible:(e,t)=>{const n={};n.transitionState=e?"enter":"leave",n.visible=e,this.mounted&&this.setState(n,(()=>{t()}))},registerClickOutsideHandler:e=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=t=>{if(!this.mounted)return!1;let n=this.triggerEl&&this.triggerEl.current,r=this.containerEl&&this.containerEl.current;n=ge().findDOMNode(n),r=ge().findDOMNode(r);const i=t.target,s=t.composedPath&&t.composedPath()||[i],a=!!this.props.clickTriggerToHide&&(n&&n.contains(i)||s.includes(n));(n&&!n.contains(i)&&r&&!r.contains(i)&&!s.includes(r)&&!s.includes(n)||a)&&(this.props.onClickOutSide(t),e())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:e=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=g()((t=>{if(!this.mounted)return!1;e(t)}),10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:e=>{this.props.onVisibleChange(e)},registerScrollHandler:e=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=g()((t=>{if(!this.mounted)return!1;const n=this.adapter.getTriggerNode();if(t.target.contains(n)){const n={x:t.target.scrollLeft,y:t.target.scrollTop};e(n)}}),10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>Boolean(this.props.motion),updateContainerPosition:()=>{const e=this.getPopupContainer();if(e&&Re(e)){const t=window.getComputedStyle(e).getPropertyValue("position");this.containerPosition=t}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let e=this.triggerEl.current;return Re(this.triggerEl.current)||(e=ge().findDOMNode(this.triggerEl.current)),e},getFocusableElements:e=>Ge(e),getActiveElement:()=>We(),setInitialFocus:()=>{const{preventScroll:e}=this.props,t=a()(this,"initialFocusRef.current");t&&"focus"in t&&t.focus({preventScroll:e})},notifyEscKeydown:e=>{this.props.onEscKeyDown(e)},setId:()=>{this.setState({id:Ae()})},getTriggerDOM:()=>this.triggerEl.current?ge().findDOMNode(this.triggerEl.current):null})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||pt,this.foundation.init(),qe((()=>{let e=this.triggerEl.current;e&&(e instanceof HTMLElement||(e=(0,me.findDOMNode)(e))),this.foundation.updateStateIfCursorOnTrigger(e)}),1)}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){ye(this.props.mouseLeaveDelay<this.props.mouseEnterDelay,"[Semi Tooltip] 'mouseLeaveDelay' cannot be less than 'mouseEnterDelay', which may cause the dropdown layer to not be hidden."),e.visible!==this.props.visible&&(["hover","focus"].includes(this.props.trigger)?this.props.visible?this.foundation.delayShow():this.foundation.delayHide():this.props.visible?this.foundation.show():this.foundation.hide()),he()(e.rePosKey,this.props.rePosKey)||this.rePosition()}render(){const{isInsert:e,triggerEventSet:t,visible:n,id:r}=this.state,{wrapWhenSpecial:i,role:s,trigger:o}=this.props;let{children:l}=this.props;const c=Object.assign({},a()(l,"props.style")),d={};if(i){const e=this.isSpecial(l);e?(c.pointerEvents="none",e===Oe.STATUS_DISABLED&&(d.cursor="not-allowed"),l=(0,h.cloneElement)(l,{style:c}),"custom"!==o&&(l=this.wrapSpan(l)),this.isWrapped=!0):(0,h.isValidElement)(l)||(l=this.wrapSpan(l),this.isWrapped=!0)}let p={};"dialog"===s?(p["aria-expanded"]=n?"true":"false",p["aria-haspopup"]="dialog",p["aria-controls"]=r):p["aria-describedby"]=r;const f=u().cloneElement(l,Object.assign(Object.assign(Object.assign(Object.assign({},p),l.props),this.mergeEvents(l.props,t)),{style:Object.assign(Object.assign({},a()(l,"props.style")),d),className:x()(a()(l,"props.className")),ref:e=>{this.triggerEl.current=e;const{ref:t}=l;"function"==typeof t?t(e):t&&"object"==typeof t&&(t.current=e)},tabIndex:l.props.tabIndex||0,"data-popupid":r}));return u().createElement(u().Fragment,null,e?this.renderPortal():null,f)}}ft.contextType=Ze,ft.propTypes={children:C().node,motion:C().bool,autoAdjustOverflow:C().bool,position:C().oneOf(ht),getPopupContainer:C().func,mouseEnterDelay:C().number,mouseLeaveDelay:C().number,trigger:C().oneOf(ut).isRequired,className:C().string,wrapperClassName:C().string,clickToHide:C().bool,clickTriggerToHide:C().bool,visible:C().bool,style:C().object,content:C().oneOfType([C().node,C().func]),prefixCls:C().string,onVisibleChange:C().func,onClickOutSide:C().func,spacing:C().oneOfType([C().number,C().object]),margin:C().oneOfType([C().number,C().object]),showArrow:C().oneOfType([C().bool,C().node]),zIndex:C().number,rePosKey:C().oneOfType([C().string,C().number]),arrowBounding:st,transformFromCenter:C().bool,arrowPointAtCenter:C().bool,stopPropagation:C().bool,role:C().string,wrapWhenSpecial:C().bool,guardFocus:C().bool,returnFocusOnClose:C().bool,preventScroll:C().bool,keepDOM:C().bool},ft.__SemiComponentName__="Tooltip",ft.defaultProps=Xe(ft.__SemiComponentName__,{arrowBounding:Te.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:ct,role:"tooltip",mouseEnterDelay:Te.MOUSE_ENTER_DELAY,mouseLeaveDelay:Te.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:i(),onClickOutSide:i(),spacing:Te.SPACING,margin:Te.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Te.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:i(),disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1});var mt=__webpack_require__("HDX/"),gt=__webpack_require__.n(mt);function yt(){}const vt=u().createContext(null);var bt={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}};const xt=function(e,t,n){var r,i=bt[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?r+"内":r+"前":r};function wt(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ct={date:wt({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:wt({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:wt({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function Et(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function St(e){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},St(e)}function _t(e){Et(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===St(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function kt(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var Pt={};function Ot(){return Pt}function Tt(e,t){var n,r,i,s,a,o,l,c;Et(1,arguments);var h=Ot(),u=kt(null!==(n=null!==(r=null!==(i=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(a=t.locale)||void 0===a||null===(o=a.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==i?i:h.weekStartsOn)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=_t(e),p=d.getUTCDay(),f=(p<u?7:0)+p-u;return d.setUTCDate(d.getUTCDate()-f),d.setUTCHours(0,0,0,0),d}function It(e,t,n){var r="eeee p";return function(e,t,n){Et(2,arguments);var r=Tt(e,n),i=Tt(t,n);return r.getTime()===i.getTime()}(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}var Dt={lastWeek:It,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:It,other:"PP p"};const At=function(e,t,n,r){var i=Dt[e];return"function"==typeof i?i(t,n,r):i};function Rt(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=null!=n&&n.width?String(n.width):i;r=e.formattingValues[s]||e.formattingValues[i]}else{var a=e.defaultWidth,o=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var Nt={ordinalNumber:function(e,t){var n=Number(e);switch(null==t?void 0:t.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:Rt({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:Rt({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Rt({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:Rt({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:Rt({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})};const Mt=Nt;function Ft(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;var a,o=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(o)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(o)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(o.length)}}}function Lt(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],s=t.match(e.parsePattern);if(!s)return null;var a=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}}var jt={ordinalNumber:Lt({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Ft({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:Ft({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ft({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:Ft({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:Ft({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})};const Vt={code:"zh-CN",formatDistance:xt,formatLong:Ct,formatRelative:At,localize:Mt,match:jt,options:{weekStartsOn:1,firstWeekContainsDate:4}},$t={code:"zh-CN",dateFnsLocale:Vt,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},Tabs:{more:"更多"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"},Chat:{deleteConfirm:"确认删除该会话吗?",clearContext:"上下文已清除",copySuccess:"复制成功",stop:"停止",copy:"复制",copied:"复制成功",dropAreaText:"将文件放到这里"}};class Bt extends h.Component{renderChildren(e,t){const{componentName:n}=this.props;let r=e;(null==e?void 0:e.code)||(r=$t);const i=a()($t,"dateFnsLocale"),s=a()(r,"dateFnsLocale",i);return t(r[n],r.code,s)}render(){const{children:e}=this.props;return u().createElement(Ze.Consumer,null,(t=>{let{locale:n}=t;return u().createElement(vt.Consumer,null,(t=>this.renderChildren(n||t,e)))}))}}Bt.propTypes={componentName:C().string.isRequired,children:C().any},Bt.defaultProps={componentName:""};const zt="semi";__webpack_require__("fed2");var Ht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Kt=u().forwardRef(((e,t)=>{const{svg:n,spin:r=!1,rotate:i,style:s,className:a,prefixCls:o=zt,type:l,size:c="default"}=e,h=Ht(e,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=x()(`${o}-icon`,{[`${o}-icon-extra-small`]:"extra-small"===c,[`${o}-icon-small`]:"small"===c,[`${o}-icon-default`]:"default"===c,[`${o}-icon-large`]:"large"===c,[`${o}-icon-extra-large`]:"extra-large"===c,[`${o}-icon-spinning`]:!0===r,[`${o}-icon-${l}`]:Boolean(l)},a),p={};return Number.isSafeInteger(i)&&(p.transform=`rotate(${i}deg)`),Object.assign(p,s),u().createElement("span",Object.assign({role:"img",ref:t,"aria-label":l,className:d,style:p},h),n)}));Kt.elementType="Icon";const Ut=(e,t)=>{const n=u().forwardRef(((n,r)=>u().createElement(Kt,Object.assign({svg:u().createElement(e),type:t,ref:r},n))));return n.elementType="Icon",n},Wt=Kt;const Gt=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}),"tick");const qt=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),h.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}),"copy"),Yt="Enter",Xt="Escape",Zt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229};const Jt=function(e){return a()(e,"key")===Yt},Qt=U.PREFIX;class en extends u().PureComponent{constructor(e){super(e),this.copy=e=>{const{content:t,duration:n,onCopy:r}=this.props,i=gt()(t);r&&r(e,t,i),this.setCopied(t,n)},this.setCopied=(e,t)=>{this.setState({copied:!0,item:e}),this._timeId=setTimeout((()=>{this.resetCopied()}),1e3*t)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:e}=this.props;return void 0!==e?e:u().createElement(Bt,{componentName:"Typography"},(e=>u().createElement("span",null,u().createElement(Gt,null),e.copied)))},this.renderCopyIcon=()=>{const{icon:e}=this.props,t={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:e=>Jt(e)&&this.copy(e)},n=u().createElement("a",{className:`${Qt}-action-copy-icon`},u().createElement(qt,Object.assign({onClick:this.copy},t)));return u().isValidElement(e)?u().cloneElement(e,t):n},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:n,copyTip:r}=this.props,{copied:i}=this.state,s=x()(t,{[`${Qt}-action-copy`]:!i,[`${Qt}-action-copied`]:i});return u().createElement(Bt,{componentName:"Typography"},(t=>u().createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:s,ref:n},i?this.renderSuccessTip():u().createElement(ft,{content:void 0!==r?r:t.copy},this.renderCopyIcon()))))}}en.propTypes={content:C().string,onCopy:C().func,successTip:C().node,copyTip:C().node,duration:C().number,style:C().object,className:C().string,icon:C().node},en.defaultProps={content:"",onCopy:yt,duration:3,style:{},className:""};const tn=en,nn={PREFIX:`${E}-popover`,ARROW:`${E}-popover-icon-arrow`},rn={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},sn={ARROW_BOUNDING:Object.assign(Object.assign({},Te.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var an=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const on=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{position:t="",className:n,arrowStyle:r,popStyle:i}=e,s=an(e,["position","className","arrowStyle","popStyle"]),o=0===t.indexOf("top")||0===t.indexOf("bottom"),l=x()(n,nn.ARROW),c=a()(r,"borderOpacity",rn.DEFAULT_ARROW_STYLE.borderOpacity),h=a()(r,"backgroundColor",a()(i,"backgroundColor",rn.DEFAULT_ARROW_STYLE.backgroundColor)),d=a()(r,"borderColor",a()(i,"borderColor",rn.DEFAULT_ARROW_STYLE.borderColor)),p=Object.assign(Object.assign({},s),{width:sn.ARROW_BOUNDING.width,height:sn.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:l});return o?u().createElement("svg",Object.assign({},p),u().createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:d,opacity:c}),u().createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:h})):u().createElement("svg",Object.assign({},p),u().createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:d,opacity:c}),u().createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:h}))};on.propTypes={position:C().string,className:C().string,arrowStyle:C().object,popStyle:C().object};const ln=on;__webpack_require__("zcIP");var cn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const hn=rn.POSITION_SET,un=rn.TRIGGER_SET;class dn extends u().PureComponent{constructor(e){super(e),this.focusTrigger=()=>{var e;null===(e=this.tooltipRef.current)||void 0===e||e.focusTrigger()},this.renderPopCard=e=>{let{initialFocusRef:t}=e;const{content:n,contentClassName:r,prefixCls:i}=this.props,{direction:s}=this.context,a=x()(i,r,{[`${i}-rtl`]:"rtl"===s}),o=this.renderContentNode({initialFocusRef:t,content:n});return u().createElement("div",{className:a},u().createElement("div",{className:`${i}-content`},o))},this.renderContentNode=e=>{const{initialFocusRef:t,content:n}=e,r={initialFocusRef:t};return J()(n)?n(r):n},this.tooltipRef=u().createRef()}render(){const e=this.props,{children:t,prefixCls:n,showArrow:r,arrowStyle:i={},arrowBounding:s,position:a,style:o,trigger:l}=e,c=cn(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:h}=this.props;const d={position:a,className:"",popStyle:o,arrowStyle:i},p=!!r&&u().createElement(ln,Object.assign({},d));ve(h)&&(h=r?sn.SPACING_WITH_ARROW:sn.SPACING);const f="click"===l||"custom"===l?"dialog":"tooltip";return u().createElement(ft,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:l,position:a,style:o,content:this.renderPopCard,prefixCls:n,spacing:h,showArrow:p,arrowBounding:s,role:f}),t)}}dn.contextType=Ze,dn.propTypes={children:C().node,content:C().oneOfType([C().node,C().func]),visible:C().bool,autoAdjustOverflow:C().bool,motion:C().bool,position:C().oneOf(hn),margin:C().oneOfType([C().number,C().object]),mouseEnterDelay:C().number,mouseLeaveDelay:C().number,trigger:C().oneOf(un).isRequired,contentClassName:C().oneOfType([C().string,C().array]),onVisibleChange:C().func,onClickOutSide:C().func,style:C().object,spacing:C().oneOfType([C().number,C().object]),zIndex:C().number,showArrow:C().bool,arrowStyle:C().shape({borderColor:C().string,backgroundColor:C().string,borderOpacity:C().oneOfType([C().string,C().number])}),arrowPointAtCenter:C().bool,arrowBounding:C().object,prefixCls:C().string,guardFocus:C().bool,disableArrowKeyDown:C().bool},dn.__SemiComponentName__="Popover",dn.defaultProps=Xe(dn.__SemiComponentName__,{arrowBounding:sn.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:sn.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:nn.PREFIX,onClickOutSide:i(),onEscKeyDown:i(),closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0});const pn=dn;let fn;function mn(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}const gn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(0===n.length)return"";fn||(fn=document.createElement("div"),fn.setAttribute("aria-hidden","true"),document.body.appendChild(fn));const o=window.getComputedStyle(e),l=(c=o,Array.prototype.slice.apply(c).map((e=>`${e}: ${c.getPropertyValue(e)};`)).join(""));var c;const h=mn(o.lineHeight),d=Math.round(h*(t+1)+mn(o.paddingTop)+mn(o.paddingBottom));function p(){const e=fn.scrollWidth<=fn.offsetWidth,n=fn.scrollHeight<d;return 1===t?e&&n:n}fn.setAttribute("style",l),fn.style.position="fixed",fn.style.left="0",fn.style.height="auto",fn.style.top="-999999px",fn.style.zIndex="-1000",fn.style.textOverflow="clip",fn.style.webkitLineClamp="none",ge().render(u().createElement(u().Fragment,null),fn);const f=document.createElement("span"),m=document.createTextNode(n);if(f.appendChild(m),s.length>0){const e=document.createTextNode(s);f.appendChild(e)}function g(e,t){const n=e.length;return t?"end"===a?e.slice(0,t)+i:e.slice(0,t)+i+e.slice(n-t,n):i}fn.appendChild(f),Object.values(ae()(r,"expand")).map((e=>e&&fn.appendChild(e.cloneNode(!0))));let y=n;return p()||(fn.innerHTML="",fn.appendChild(f),Object.values(r).map((e=>e&&fn.appendChild(e.cloneNode(!0)))),y=function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=Math.floor((r+s)/2),l=g(n,o);if(t.textContent=l,r>=s-1&&s>0)for(let e=s;e>=r;e-=1){const r=g(n,e);if(t.textContent=r,p())return r}else if(0===s)return i;return p()?e(t,n,o,s,o):e(t,n,r,o,a)}(m,n,0,"middle"===a?Math.floor(n.length/2):n.length)),fn.innerHTML="",y},yn=u().createContext("normal");var vn;!function(e){e.Width="width",e.Height="height",e.All="all"}(vn||(vn={}));class bn extends f{constructor(e){var t;super(e),t=this,this.formerPropertyValue=new Map,this.getElement=()=>{try{return(0,me.findDOMNode)(this.childNode||this)}catch(e){return null}},this.handleResizeEventTriggered=e=>{var t,n,r,i;if(this.props.observerProperty===vn.All)null===(n=(t=this.props).onResize)||void 0===n||n.call(t,e);else{const t=[];for(const n of e)this.formerPropertyValue.has(n.target)?n.contentRect[this.props.observerProperty]!==this.formerPropertyValue.get(n.target)&&(this.formerPropertyValue.set(n.target,n.contentRect[this.props.observerProperty]),t.push(n)):(this.formerPropertyValue.set(n.target,n.contentRect[this.props.observerProperty]),t.push(n));t.length>0&&(null===(i=(r=this.props).onResize)||void 0===i||i.call(r,t))}},this.observeElement=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=t.getElement();t.observer||(t.observer=new ResizeObserver(t.handleResizeEventTriggered)),n&&n instanceof Element?(n!==t.element||e)&&(t.observer.disconnect(),t.element=n,t.observer.observe(n),t.props.observeParent&&n.parentNode&&n.parentNode.ownerDocument&&n.parentNode.ownerDocument.defaultView&&n.parentNode instanceof n.parentNode.ownerDocument.defaultView.HTMLElement&&(t._parentNode=n.parentNode,t.observer.observe(t._parentNode))):t.observer.disconnect()},this.mergeRef=(e,t)=>{this.childNode=t,"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)},globalThis.ResizeObserver&&(this.observer=new ResizeObserver(this.handleResizeEventTriggered))}componentDidMount(){var e;null===(e=this.observeElement)||void 0===e||e.call(this)}componentDidUpdate(e){var t;null===(t=this.observeElement)||void 0===t||t.call(this,this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}render(){const e=u().Children.only(this.props.children),{ref:t}=e;return u().cloneElement(e,{ref:e=>this.mergeRef(t,e)})}}bn.propTypes={onResize:C().func,observeParent:C().bool,observerProperty:C().string,delayTick:C().number},bn.defaultProps={onResize:()=>{},observeParent:!1,observerProperty:"all",delayTick:0};var xn=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))},wn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Cn=U.PREFIX;class En extends h.Component{constructor(e){super(e),this.observerTakingEffect=!1,this.onResize=e=>xn(this,void 0,void 0,(function*(){return this.rafId&&window.cancelAnimationFrame(this.rafId),new Promise((e=>{this.rafId=window.requestAnimationFrame((()=>xn(this,void 0,void 0,(function*(){yield this.getEllipsisState(),e()}))))}))})),this.canUseCSSEllipsis=()=>{const{copyable:e}=this.props,{expandable:t,expandText:n,pos:r,suffix:i}=this.getEllipsisOpt();return!t&&le()(n)&&!e&&"end"===r&&!i.length},this.shouldTruncated=e=>{if(!e||e<1)return!1;return e<=1?this.compareSingleRow():this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight},this.compareSingleRow=()=>{if(!document||!document.createRange)return!1;const e=this.wrapperRef.current,t=e.getBoundingClientRect().width,n=Array.from(e.childNodes),r=document.createRange(),i=n.reduce(((e,t)=>{var n;return r.selectNodeContents(t),e+(null!==(n=r.getBoundingClientRect().width)&&void 0!==n?n:0)}),0);return r.detach(),i>t},this.showTooltip=()=>{var e,t;const{isOverflowed:n,isTruncated:r,expanded:i}=this.state,{showTooltip:s,expandable:a,expandText:o}=this.getEllipsisOpt(),l=this.canUseCSSEllipsis(),c=!i&&(l?n:r),h=!a&&le()(o)&&c&&s;if(!h)return h;const u={type:"tooltip"};return"object"==typeof s?s.type&&"popover"===s.type.toLowerCase()?ie()({opts:{showArrow:!0}},s,{opts:{className:x()({[`${Cn}-ellipsis-popover`]:!0,[null===(e=null==s?void 0:s.opts)||void 0===e?void 0:e.className]:Boolean(null===(t=null==s?void 0:s.opts)||void 0===t?void 0:t.className)})}}):Object.assign(Object.assign({},u),s):u},this.onHover=()=>{if(this.canUseCSSEllipsis()){const{rows:e,suffix:t,pos:n}=this.getEllipsisOpt(),r=this.shouldTruncated(e);this.setState({isOverflowed:r,isTruncated:!1})}else;},this.getEllipsisState=()=>xn(this,void 0,void 0,(function*(){const{rows:e,suffix:t,pos:n}=this.getEllipsisOpt(),{children:r}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return void(yield this.onResize());const{expanded:i}=this.state;if(this.canUseCSSEllipsis())return;if(ee()(r))return new Promise((e=>{this.setState({isTruncated:!1,isOverflowed:!1},e)}));if(ye("children"in this.props&&"string"!=typeof r,"[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},a=Array.isArray(r)?r.join(""):String(r),o=gn(this.wrapperRef.current,e,a,s,"...",t,n);return new Promise((e=>{this.setState({isOverflowed:!1,ellipsisContent:o,isTruncated:a!==o},e)}))})),this.toggleOverflow=e=>{const{onExpand:t,expandable:n,collapsible:r}=this.getEllipsisOpt(),{expanded:i}=this.state;t&&t(!i,e),(n&&!i||r&&i)&&this.setState({expanded:!i})},this.getEllipsisOpt=()=>{const{ellipsis:e}=this.props;if(!e)return{};return Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:e.expandable?this.expandStr:void 0,collapseText:e.collapsible?this.collapseStr:void 0},"object"==typeof e?e:null)},this.renderExpandable=()=>{const{expanded:e,isTruncated:t}=this.state;if(!t)return null;const{expandText:n,expandable:r,collapseText:i,collapsible:s}=this.getEllipsisOpt(),a=!r&&le()(n),o=!s&&le()(i);let l;return e||a?e&&!o&&(l=i):l=n,a&&o?null:u().createElement("a",{role:"button",tabIndex:0,className:`${Cn}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":l,onClick:this.toggleOverflow,onKeyPress:e=>Jt(e)&&this.toggleOverflow(e)},l)},this.getEllipsisStyle=()=>{const{ellipsis:e,component:t}=this.props;if(!e)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:n}=this.getEllipsisOpt(),{expanded:r}=this.state,i=!r&&this.canUseCSSEllipsis();return{ellipsisCls:x()({[`${Cn}-ellipsis`]:!0,[`${Cn}-ellipsis-single-line`]:1===n,[`${Cn}-ellipsis-multiple-line`]:n>1,[`${Cn}-ellipsis-multiple-line-text`]:n>1&&"span"===t,[`${Cn}-ellipsis-overflow-ellipsis`]:1===n&&i,[`${Cn}-ellipsis-overflow-ellipsis-text`]:1===n&&i&&"span"===t}),ellipsisStyle:i&&n>1?{WebkitLineClamp:n}:{}}},this.renderEllipsisText=e=>{const{suffix:t}=e,{children:n}=this.props,{isTruncated:r,expanded:i,ellipsisContent:s}=this.state;return i||!r?u().createElement("span",{onMouseEnter:this.onHover},n,t&&t.length?t:null):u().createElement("span",{onMouseEnter:this.onHover},s,t)},this.state={editable:!1,copied:!1,isOverflowed:!1,ellipsisContent:e.children,expanded:!1,isTruncated:!1,prevChildren:null},this.wrapperRef=u().createRef(),this.expandRef=u().createRef(),this.copyRef=u().createRef()}componentDidMount(){this.props.ellipsis&&this.onResize().then((()=>qe((()=>this.observerTakingEffect=!0),1)))}static getDerivedStateFromProps(e,t){const{prevChildren:n}=t,r={};return r.prevChildren=e.children,e.ellipsis&&n!==e.children&&(r.isOverflowed=!1,r.ellipsisContent=e.children,r.expanded=!1,r.isTruncated=!0),r}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}renderOperations(){return u().createElement(u().Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:n}=this.props;if(!t)return null;const r=null!==(e=null==t?void 0:t.content)&&void 0!==e?e:n;let i,s=!1;Array.isArray(r)?(i="",r.forEach((e=>{"object"==typeof e&&(s=!0),i+=String(e)}))):("object"!=typeof r||(s=!0),i=String(r)),ye(s,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const a=Object.assign({content:i,duration:3},"object"==typeof t?t:null);return u().createElement(tn,Object.assign({},a,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props,n="inherit"===t?this.context:t;if(!e)return null;const r="small"===n?"small":"default";return u().createElement("span",{className:`${Cn}-icon`,"x-semi-prop":"icon"},Ue(e)?u().cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:n,className:r,type:i,spacing:s,disabled:a,style:o,ellipsis:l,icon:c,size:h,link:d,heading:p,weight:f}=e,m=wn(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),g=ae()(m,["strong","editable","mark","copyable","underline","code","delete"]),y="inherit"===h?this.context:h,v=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:w,ellipsisStyle:C}=this.getEllipsisStyle();let E=l?this.renderEllipsisText(b):n;const S=x()({[`${Cn}-link-text`]:d,[`${Cn}-link-underline`]:this.props.underline&&d});E=((e,t)=>{const{mark:n,code:r,underline:i,strong:s,link:a,disabled:o}=e;let l=t;const c=(e,t)=>{let n={};e&&("object"==typeof e&&(n=Object.assign({},e)),l=u().createElement(t,n,l))};return c(n,"mark"),c(r,"code"),c(i&&!a,"u"),c(s,"strong"),c(e.delete,"del"),c(a,o?"span":"a"),l})(this.props,u().createElement(u().Fragment,null,v,this.props.link?u().createElement("span",{className:S},E):E));const _=ne()(p)&&/^h[1-6]$/.test(p),k=x()(r,w,{[`${Cn}-${i}`]:i&&!d,[`${Cn}-${y}`]:y,[`${Cn}-link`]:d,[`${Cn}-disabled`]:a,[`${Cn}-${s}`]:s,[`${Cn}-${p}`]:_,[`${Cn}-${p}-weight-${f}`]:_&&f&&isNaN(Number(f))}),P=Object.assign(Object.assign({},isNaN(Number(f))?{}:{fontWeight:f}),o);return u().createElement(X,Object.assign({className:k,style:Object.assign(Object.assign({},P),C),component:t,forwardRef:this.wrapperRef},g),E,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),n=this.renderContent();if(t){const{type:r,opts:i,renderTooltip:s}=t;return J()(s)?s(e,n):"popover"===r.toLowerCase()?u().createElement(pn,Object.assign({content:e,position:"top"},i),n):u().createElement(ft,Object.assign({content:e,position:"top"},i),n)}return n}render(){var e=this;const{size:t}=this.props,n="inherit"===t?this.context:t,r=u().createElement(yn.Provider,{value:n},u().createElement(Bt,{componentName:"Typography"},(e=>(this.expandStr=e.expand,this.collapseStr=e.collapse,this.renderTipWrapper()))));return this.props.ellipsis?u().createElement(bn,{onResize:function(){e.observerTakingEffect&&e.onResize(...arguments)},observeParent:!0,observerProperty:vn.Width},r):r}}En.propTypes={children:C().node,copyable:C().oneOfType([C().shape({text:C().string,onCopy:C().func,successTip:C().node,copyTip:C().node}),C().bool]),delete:C().bool,disabled:C().bool,ellipsis:C().oneOfType([C().shape({rows:C().number,expandable:C().bool,expandText:C().string,onExpand:C().func,suffix:C().string,showTooltip:C().oneOfType([C().shape({type:C().string,opts:C().object}),C().bool]),collapsible:C().bool,collapseText:C().string,pos:C().oneOf(["end","middle"])}),C().bool]),mark:C().bool,underline:C().bool,link:C().oneOfType([C().object,C().bool]),spacing:C().oneOf(W.SPACING),strong:C().bool,size:C().oneOf(W.SIZE),type:C().oneOf(W.TYPE),style:C().object,className:C().string,icon:C().oneOfType([C().node,C().string]),heading:C().string,component:C().string},En.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""},En.contextType=yn;class Sn extends h.PureComponent{render(){return u().createElement(En,Object.assign({component:"span"},this.props))}}Sn.propTypes={copyable:C().oneOfType([C().object,C().bool]),delete:C().bool,disabled:C().bool,icon:C().oneOfType([C().node,C().string]),ellipsis:C().oneOfType([C().object,C().bool]),mark:C().bool,underline:C().bool,link:C().oneOfType([C().object,C().bool]),strong:C().bool,type:C().oneOf(W.TYPE),size:C().oneOf(W.SIZE),style:C().object,className:C().string,code:C().bool,component:C().string,weight:C().number},Sn.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var _n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class kn extends h.PureComponent{render(){const e=this.props,{heading:t}=e,n=_n(e,["heading"]),r=-1!==W.HEADING.indexOf(t)?`h${t}`:"h1";return u().createElement(En,Object.assign({component:r,heading:r},n))}}kn.propTypes={copyable:C().oneOfType([C().object,C().bool]),delete:C().bool,disabled:C().bool,ellipsis:C().oneOfType([C().object,C().bool]),mark:C().bool,link:C().oneOfType([C().object,C().bool]),underline:C().bool,strong:C().bool,type:C().oneOf(W.TYPE),heading:C().oneOf(W.HEADING),style:C().object,className:C().string,component:C().string,weight:C().oneOfType([C().oneOf(W.WEIGHT),C().number])},kn.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",heading:1,style:{},className:""};const Pn=U.PREFIX;class On extends h.PureComponent{render(){const{className:e}=this.props,t=x()(e,`${Pn}-paragraph`);return u().createElement(En,Object.assign({component:"p"},this.props,{className:t}))}}On.propTypes={copyable:C().oneOfType([C().object,C().bool]),delete:C().bool,disabled:C().bool,ellipsis:C().oneOfType([C().object,C().bool]),mark:C().bool,link:C().oneOfType([C().object,C().bool]),underline:C().bool,strong:C().bool,type:C().oneOf(W.TYPE),size:C().oneOf(W.SIZE),spacing:C().oneOf(W.SPACING),style:C().object,className:C().string,component:C().string},On.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",size:"normal",spacing:"normal",style:{},className:""};class Tn{constructor(e,t,n,r,i){this.ruleMethods={"bytes-decimal":e=>{let t=0;for(;e>=1e3;)e/=1e3,t++;return`${this.truncatePrecision(e)} ${["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]}`},"bytes-binary":e=>{let t=0;for(;e>=1024;)e/=1024,t++;return`${this.truncatePrecision(e)} ${["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"][t]}`},percentages:e=>`${this.truncatePrecision(100*e)}%`,exponential:e=>{const t=e.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(t[0]))}e${t[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=void 0!==i,this.content=e,this.rule=t,this.precision=n,this.truncate=r,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):"text"===this.rule?In(this.content).map((e=>Dn(e)?this.truncatePrecision(e):e)).join(""):"numbers"===this.rule?In(this.content).filter((e=>Dn(e))).map((e=>this.truncatePrecision(e))).join(","):In(this.content).map((e=>Dn(e)?this.ruleMethods[this.rule](Number(e)):e)).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),n=t.toString().split(".");if(1===n.length)return t.toFixed(this.precision);const r=n[1].length;return r<this.precision?`${n[0]}.${n[1]}${"0".repeat(this.precision-r)}`:t.toString()}}function In(e){return e.match(/(-?[0-9]*\.?[0-9]+([eE]-?[0-9]+)?)|([^-\d\.]+)/g)||[]}function Dn(e){return!(isNaN(Number(e))||""===e.replace(/\s+/g,""))}class An extends h.PureComponent{formatNodeDFS(e){return Array.isArray(e)||(e=[e]),1===(e=e.map((e=>"string"==typeof e||"number"==typeof e?new Tn(String(e),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():"function"==typeof e?this.formatNodeDFS(e()):"object"==typeof e&&"children"in e.props?Object.assign(Object.assign({},e),{props:Object.assign(Object.assign({},e.props),{children:this.formatNodeDFS(e.props.children)})}):e))).length?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),u().createElement(En,Object.assign({component:"span"},e))}}An.propTypes={rule:C().oneOf(W.RULE),precision:C().number,truncate:C().oneOf(W.TRUNCATE),parser:C().func,copyable:C().oneOfType([C().object,C().bool]),delete:C().bool,disabled:C().bool,icon:C().oneOfType([C().node,C().string]),mark:C().bool,underline:C().bool,link:C().oneOfType([C().object,C().bool]),strong:C().bool,type:C().oneOf(W.TYPE),size:C().oneOf(W.SIZE),style:C().object,className:C().string,code:C().bool,component:C().string},An.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Rn=X;Rn.Text=Sn,Rn.Title=kn,Rn.Paragraph=On,Rn.Numeral=An;const Nn=Rn,Mn=S.PREFIX;class Fn extends f{constructor(e){super(e),this.renderTitle=()=>{const{href:e,title:t,disabled:n=!1}=this.props,{activeLink:r,showTooltip:i,position:s,size:a}=this.context,o=r===e,l=x()(`${Mn}-link-tooltip`,{[`${Mn}-link-tooltip-small`]:"small"===a,[`${Mn}-link-tooltip-active`]:o,[`${Mn}-link-tooltip-disabled`]:n});if(i){const e=z()(i)?Object.assign({opts:{}},i):{opts:{}};return s&&(e.opts.position=s),u().createElement(Nn.Text,{size:"default"===a?"normal":"small",ellipsis:{showTooltip:e},type:"tertiary",className:l},t)}return t},this.renderChildren=()=>{const{activeLink:e,childMap:t}=this.context,{href:n,children:r}=this.props;return this.context.autoCollapse?e===n||t[n]&&t[n].has(e)?u().createElement("div",{role:"list"},r):null:u().createElement("div",{role:"list"},r)},this.foundation=new H(this.adapter),this.handleClick=this.handleClick.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{addLink:e=>{this.context.addLink(e)},removeLink:e=>{this.context.removeLink(e)}})}handleAddLink(){this.foundation.handleAddLink()}handleRemoveLink(){this.foundation.handleRemoveLink()}handleUpdateLink(e,t){this.foundation.handleUpdateLink(e,t)}handleClick(e){const{disabled:t,href:n}=this.props,{onClick:r}=this.context;!t&&r(e,n)}componentDidMount(){this.handleAddLink()}componentDidUpdate(e){const t=e.href,{href:n}=this.props;this.handleUpdateLink(n,t)}componentWillUnmount(){this.handleRemoveLink()}render(){const{href:e,className:t,style:n,disabled:r=!1,title:i,level:s,direction:a}=this.props,{activeLink:o,showTooltip:l}=this.context,c=o===e,h=x()(`${Mn}-link`,t),d=x()(`${Mn}-link-title`,{[`${Mn}-link-title-active`]:c,[`${Mn}-link-title-disabled`]:r}),p="rtl"===a?"paddingRight":"paddingLeft",f={"aria-disabled":r,style:{[p]:8*s}};return c&&(f["aria-details"]="active"),l||"string"!=typeof i||(f.title=i),u().createElement("div",{className:h,style:n,role:"listitem"},u().createElement("div",Object.assign({role:"link",tabIndex:0},f,{className:d,onClick:e=>this.handleClick(e),onKeyPress:e=>this.handleClick(e)}),this.renderTitle()),this.renderChildren())}}Fn.propTypes={href:C().string,title:C().oneOfType([C().string,C().node]),className:C().string,style:C().object},Fn.defaultProps={href:"#",title:"",className:""},Fn.contextType=K;__webpack_require__("7VVg");const Ln=S.PREFIX;class jn extends f{constructor(e){var t;super(e),t=this,this.addLink=e=>{this.foundation.addLink(e)},this.removeLink=e=>{this.foundation.removeLink(e)},this.handleScroll=()=>{this.foundation.handleScroll()},this.handleClick=(e,t)=>{this.foundation.handleClick(e,t)},this.handleClickLink=()=>{this.foundation.handleClickLink()},this.setChildMap=()=>{this.foundation.setChildMap()},this.setScrollHeight=()=>{this.foundation.setScrollHeight()},this.updateScrollHeight=(e,t)=>{this.foundation.updateScrollHeight(e,t)},this.updateChildMap=(e,t)=>{this.foundation.updateChildMap(e,t)},this.renderChildren=()=>{const e=function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return u().Children.map(n,(n=>{if(u().isValidElement(n)){const i={direction:t.context.direction,level:r,children:[]},{children:s}=n.props;return s&&u().Children.count(s)>0&&(i.children=e(s,r+1)),u().cloneElement(n,i)}return null}))};return e(this.props.children)},this.state={activeLink:"",links:[],clickLink:!1,scrollHeight:"100%",slideBarTop:"0"},this.foundation=new $(this.adapter),this.childMap={}}get adapter(){return Object.assign(Object.assign({},super.adapter),{addLink:e=>{this.setState((t=>({links:[...t.links,e]})))},removeLink:e=>{this.setState((t=>{const n=t.links.slice(),r=n.indexOf(e);if(-1!==r)return n.splice(r,1),{links:n}}))},setChildMap:e=>{this.childMap=e},setScrollHeight:e=>{this.setState({scrollHeight:e})},setSlideBarTop:e=>{this.setState({slideBarTop:`${e}px`})},setClickLink:e=>{this.setState({clickLink:e})},setActiveLink:(e,t)=>{this.setState({activeLink:e},(()=>{t()}))},setClickLinkWithCallBack:(e,t,n)=>{this.setState({clickLink:e},(()=>{n(t)}))},getContainer:()=>{const{getContainer:e}=this.props,t=e();return t||window},getContainerBoundingTop:()=>{const e=this.adapter.getContainer();return"getBoundingClientRect"in e?e.getBoundingClientRect().top:0},getLinksBoundingTop:()=>{const{links:e}=this.state,{offsetTop:t}=this.props,n=this.adapter.getContainerBoundingTop(),r=e.map((e=>{let r=null;try{r=document.querySelector(e)}catch(e){}return r&&r.getBoundingClientRect().top-n-t||-1/0}));return r},getAnchorNode:e=>{const t=`#${this.anchorID} ${e}`;return document.querySelector(t)},getContentNode:e=>document.querySelector(e),notifyChange:(e,t)=>this.props.onChange(e,t),notifyClick:(e,t)=>this.props.onClick(e,t),canSmoothScroll:()=>"scrollBehavior"in document.body.style})}componentDidMount(){const{defaultAnchor:e=""}=this.props;this.anchorID=Ie("semi-anchor").replace(".",""),this.scrollContainer=this.adapter.getContainer(),this.handler=g()(this.handleScroll,100),this.clickHandler=v()(this.handleClickLink,100),this.scrollContainer.addEventListener("scroll",this.handler),this.scrollContainer.addEventListener("scroll",this.clickHandler),this.setScrollHeight(),this.setChildMap(),Boolean(e)&&this.foundation.handleClick(null,e,!1)}componentDidUpdate(e,t){this.updateScrollHeight(t,this.state),this.updateChildMap(t,this.state)}componentWillUnmount(){this.scrollContainer.removeEventListener("scroll",this.handler),this.scrollContainer.removeEventListener("scroll",this.clickHandler)}render(){const{size:e,railTheme:t,style:n,className:r,children:i,maxWidth:s,maxHeight:a,showTooltip:o,position:l,autoCollapse:c}=this.props,h=this.props["aria-label"],{activeLink:d,scrollHeight:p,slideBarTop:f}=this.state,m=x()(Ln,r,{[`${Ln}-size-${e}`]:e}),g=x()(`${Ln}-slide`,`${Ln}-slide-${t}`),y=x()(`${Ln}-slide-bar`,{[`${Ln}-slide-bar-${e}`]:e,[`${Ln}-slide-bar-${t}`]:t,[`${Ln}-slide-bar-active`]:d}),v=`${Ln}-link-wrapper`,b=Object.assign(Object.assign({},n),{maxWidth:s,maxHeight:a});return u().createElement(K.Provider,{value:{activeLink:d,showTooltip:o,position:l,childMap:this.childMap,autoCollapse:c,size:e,onClick:(e,t)=>this.handleClick(e,t),addLink:this.addLink,removeLink:this.removeLink}},u().createElement("div",Object.assign({role:"navigation","aria-label":h||"Side navigation",className:m,style:b,id:this.anchorID},this.getDataAttr(this.props)),u().createElement("div",{"aria-hidden":!0,className:g,style:{height:p}},u().createElement("span",{className:y,style:{top:f}})),u().createElement("div",{className:v,role:"list"},this.renderChildren())))}}jn.contextType=Ze,jn.Link=Fn,jn.PropTypes={size:C().oneOf(_),railTheme:C().oneOf(k),className:C().string,style:C().object,scrollMotion:C().bool,autoCollapse:C().bool,offsetTop:C().number,targetOffset:C().number,showTooltip:C().bool,position:C().oneOf(T),maxWidth:C().oneOfType([C().string,C().number]),maxHeight:C().oneOfType([C().string,C().number]),getContainer:C().func,onChange:C().func,onClick:C().func,defaultAnchor:C().string,"aria-label":C().string},jn.defaultProps={size:"default",railTheme:"primary",className:"",scrollMotion:!1,autoCollapse:!1,offsetTop:0,targetOffset:0,showTooltip:!1,maxWidth:P,maxHeight:O,getContainer:i(),onChange:i(),onClick:i(),defaultAnchor:""};const Vn=jn,$n=["default","error","warning","success"],Bn={PREFIX:`${E}-autocomplete`,PREFIX_OPTION:`${E}-autoComplete-option`,PREFIX_GROUP:`${E}-autoComplete-group`},zn={SIZE:["small","large","default"],POSITION:Oe.POSITION_SET,OPTIONS:["children","value"],STATUS:$n};var Hn=__webpack_require__("mGvo"),Kn=__webpack_require__.n(Hn);const Un=class extends c{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:n,value:r}=this.getProps();if(t&&t.length){const e=this._generateList(t);this._adapter.updateOptionList(e)}let i;e&&this.openDropdown(),void 0!==n&&(i=n),void 0!==r&&(i=r),void 0!==i&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let n;t&&(n=e&&Kn()(e.width)||e&&ne()(e.width)&&!e.width.includes("%")?e.width:this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(n))}handleInputClick(e){const{options:t}=this.getStates(),{disabled:n}=this.getProps();n||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler((e=>this.closeDropdown(e))),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),n=[];return e&&e.length&&e.forEach(((e,r)=>{const i=String((new Date).getTime())+r;let s={};ne()(e)||Kn()(e)?s={value:e,key:i,label:e,show:!0}:z()(e)&&!le()(e.value)&&(s=Object.assign({show:!0},e)),t&&"function"==typeof t&&(s.label=t(e)),n.push(s)})),n}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:n}=this.getProps();let r="";n&&"function"==typeof n?(r=n(e),ye("string"!=typeof r,"Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):r=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(r),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(r),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:n}=this.getProps(),r="";r=this._backwardLabelInValue()&&"[object Object]"===Object.prototype.toString.call(e)?e.value:e;let i=this._getRenderSelectedItem();const s=this._generateList(t);let a=s.length?s.filter((e=>i(e)===r)):[];const o=a.length,l=s.findIndex((e=>i(e)===r));let c="";if(o)a=a[0],c=i(a);else{const t=this._backwardLabelInValue()?e:{label:r,value:r};c=i(t)}this._adapter.updateInputValue(c),this.updateSelection(o?a:null),-1===l&&n?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(l)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:n,defaultActiveFirstOption:r}=this.getProps(),i=-1;if(e){let t=this._getRenderSelectedItem();i=this._generateList(n).findIndex((n=>t(n)===e))}-1===i&&r?0!==t&&this._adapter.updateFocusIndex(0):i!==t&&this._adapter.updateFocusIndex(i)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return void 0===e&&(e=e=>null==e?void 0:e.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode,{visible:n}=this.getStates();switch(t){case Zt.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Zt.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Zt.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Zt.ESC:case Zt.TAB:this.closeDropdown()}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:n}=this.getStates(),r=n.filter((e=>e.show)),i=r.length;let s=t+e;if(s<0&&(s=i-1),s>=i&&(s=0),e>0){let e=-1;for(let t=0;t<r.length;t++){if(!r[t].disabled&&(e=t),e>=s)break}s=e}else{let e=r.length;for(let t=i-1;t>=0;t--){if(!r[t].disabled&&(e=t),e<=s)break}s=e}this._adapter.updateFocusIndex(s)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:n}=this.getStates();if(e)if(void 0!==n&&-1!==n&&0!==t.length){const e=t.filter((e=>e.show))[n];this.handleSelect(e,n)}else this.closeDropdown();else this.openDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}},Wn={PREFIX:`${E}-spin`};class Gn extends c{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},Gn.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:n}=this._adapter.getStates();if(n){const n=this;this._timer=setTimeout((()=>{n._adapter.setState({loading:e,delay:0})}),t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const qn=Gn;var Yn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};let Xn=-1;const Zn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:t,className:n}=e,r=Yn(e,["id","className"]);let i=t;ve(i)&&(Xn++,i=Xn);const s=`linearGradient-${i}`;return u().createElement("svg",Object.assign({},r,{className:n,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),u().createElement("defs",null,u().createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:s},u().createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),u().createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),u().createElement("stop",{stopColor:"currentColor",offset:"100%"}))),u().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},u().createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),u().createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${s})`,strokeWidth:"4",strokeLinecap:"round"})))};__webpack_require__("pAwi");var Jn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Qn=Wn.PREFIX;class er extends f{constructor(e){super(e),this.foundation=new qn(this.adapter),this.state={delay:e.delay,loading:!0}}static getDerivedStateFromProps(e){return e.delay?!1===e.spinning?{delay:0,loading:!1}:{delay:e.delay}:{loading:e.spinning}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setLoading:e=>{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:n}=this.state;return n?u().createElement("div",{className:`${Qn}-wrapper`},e?u().createElement("div",{className:`${Qn}-animate`,"x-semi-prop":"indicator"},e):u().createElement(Zn,null),t?u().createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:n,wrapperClassName:r,childStyle:i,size:s}=e,a=Jn(e,["children","style","wrapperClassName","childStyle","size"]),{loading:o}=this.state,l=x()(Qn,r,{[`${Qn}-${s}`]:s,[`${Qn}-block`]:t,[`${Qn}-hidden`]:!o});return u().createElement("div",Object.assign({className:l,style:n},this.getDataAttr(a)),this.renderSpin(),u().createElement("div",{className:`${Qn}-children`,style:i,"x-semi-prop":"children"},t))}}er.propTypes={size:C().oneOf(["small","middle","large"]),spinning:C().bool,children:C().node,indicator:C().node,delay:C().number,tip:C().node,wrapperClassName:C().string,childStyle:C().object,style:C().object},er.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const tr=er,nr={PREFIX:`${E}-input`},rr={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]};class ir extends c{static get inputDefaultAdapter(){return{notifyChange:i(),setValue:i()}}constructor(e){super(Object.assign(Object.assign({},ir.inputDefaultAdapter),e))}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:n,minLength:r,getValueLength:i}=this._adapter.getProps();let s=e;n&&J()(i)&&(s=this.handleVisibleMaxLength(e)),r&&J()(i)&&this.handleVisibleMinLength(s),this._isControlledComponent()||this._adapter.setValue(s),this._adapter.notifyChange(s,t)}handleVisibleMinLength(e){const{minLength:t,getValueLength:n}=this._adapter.getProps(),{minLength:r}=this._adapter.getStates();if(Kn()(t)&&t>=0&&J()(n)&&ne()(e)){const i=n(e);if(i<t){const n=e.length+(t-i);n!==r&&this._adapter.setMinLength(n)}else r!==t&&this._adapter.setMinLength(t)}}handleVisibleMaxLength(e){const{maxLength:t,getValueLength:n}=this._adapter.getProps();if(Kn()(t)&&t>=0&&J()(n)&&ne()(e)){if(n(e)>t){console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit");return this.handleTruncateValue(e,t)}return e}}handleTruncateValue(e,t){const{getValueLength:n}=this._adapter.getProps();if(J()(n)){let r="";for(let i=1,s=e.length;i<=s;i++){const s=e.slice(0,i);if(n(s)>t)return r;r=s}return r}return e.slice(0,t)}handleClear(e){let t=e;this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&"object"==typeof t||(t={}),Me()(t,rr.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange("",t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:n}=this._adapter.getStates();t||n||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){"password"===e?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),n=this._adapter.getState("eyeClosed");return"password"===t?n?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===Yt&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:n}=this._adapter.getStates(),{showClear:r,disabled:i,showClearIgnoreDisabled:s}=this._adapter.getProps();return e&&r&&(!i||s)&&(t||n)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:n}=this._adapter.getStates();t||n||(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&J()(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(null==e?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}}const sr=ir;__webpack_require__("Cml1");const ar=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}),"clear");const or=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),h.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}),"eye_closed_solid");const lr=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}),"eye_opened");var cr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const hr=nr.PREFIX,ur=rr.SIZE,dr=rr.STATUS,pr=rr.MODE;class fr extends f{constructor(e){super(e),this.handleClear=e=>{this.foundation.handleClear(e)},this.handleClick=e=>{this.foundation.handleClick(e)},this.handleMouseOver=e=>{this.setState({isHovering:!0})},this.handleMouseLeave=e=>{this.setState({isHovering:!1})},this.handleModeChange=e=>{this.foundation.handleModeChange(e)},this.handleClickEye=e=>{this.foundation.handleClickEye(e)},this.handleMouseDown=e=>{this.foundation.handleMouseDown(e)},this.handleMouseUp=e=>{this.foundation.handleMouseUp(e)},this.handleModeEnterPress=e=>{this.foundation.handleModeEnterPress(e)},this.handleClickPrefixOrSuffix=e=>{this.foundation.handleClickPrefixOrSuffix(e)},this.handlePreventMouseDown=e=>{this.foundation.handlePreventMouseDown(e)};const t="value"in e?e.value:e.defaultValue;this.state={value:t,cachedValue:e.value,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:"password"===e.mode,minLength:e.minLength},this.inputRef=u().createRef(),this.prefixRef=u().createRef(),this.suffixRef=u().createRef(),this.foundation=new sr(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const n={};return e.value!==t.cachedValue&&(n.value=e.value,n.cachedValue=e.value),n}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:n}=this.props;e||!t&&!this.props.autofocus||this.inputRef.current.focus({preventScroll:n})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=x()({[`${hr}-prepend`]:!0,[`${hr}-prepend-text`]:e&&ne()(e),[`${hr}-prepend-icon`]:Ue(e)});return u().createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=x()({[`${hr}-append`]:!0,[`${hr}-append-text`]:e&&ne()(e),[`${hr}-append-icon`]:Ue(e)});return u().createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=x()(`${hr}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?u().createElement("div",{className:e,onMouseDown:this.handleClear},t||u().createElement(ar,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:n}=this.props,r=x()(`${hr}-modebtn`),i=e?u().createElement(or,null):u().createElement(lr,null),s=e?"Show password":"Hidden password";return"password"===t&&!n?u().createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:r,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:n}=this.props,r=e||t;if(!r)return null;const i=x()({[`${hr}-prefix`]:!0,[`${hr}-inset-label`]:t,[`${hr}-prefix-text`]:r&&ne()(r),[`${hr}-prefix-icon`]:Ue(r)});return u().createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:n,"x-semi-prop":"prefix,insetLabel"},r)}renderSuffix(e){const{suffix:t,hideSuffix:n}=this.props;if(!t)return null;const r=x()({[`${hr}-suffix`]:!0,[`${hr}-suffix-text`]:t&&ne()(t),[`${hr}-suffix-icon`]:Ue(t),[`${hr}-suffix-hidden`]:e&&Boolean(n)});return u().createElement("div",{className:r,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!le()(e)){if("function"==typeof e)return t=>{e(t),this.inputRef={current:t}};if("[object Object]"===Object.prototype.toString.call(e))return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:n,autoFocus:r,clearIcon:i,className:s,disabled:a,defaultValue:o,placeholder:l,prefix:c,mode:h,insetLabel:d,insetLabelId:p,validateStatus:f,type:m,readonly:g,size:y,suffix:v,style:b,showClear:w,onEnterPress:C,onClear:E,hideSuffix:S,inputStyle:_,forwardRef:k,maxLength:P,getValueLength:O,preventScroll:T,borderless:I,showClearIgnoreDisabled:D,onlyBorder:A}=e,R=cr(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled","onlyBorder"]),{value:N,isFocus:M,minLength:F}=this.state,L=this.foundation.isAllowClear(),j=Ue(v),V=this.getInputRef(),$=`${hr}-wrapper`,B=x()($,s,{[`${hr}-wrapper__with-prefix`]:c||d,[`${hr}-wrapper__with-suffix`]:v,[`${hr}-wrapper__with-suffix-hidden`]:L&&Boolean(S),[`${hr}-wrapper__with-suffix-icon`]:j,[`${hr}-wrapper__with-append`]:n,[`${hr}-wrapper__with-prepend`]:t,[`${hr}-wrapper__with-append-only`]:n&&!t,[`${hr}-wrapper__with-prepend-only`]:!n&&t,[`${$}-readonly`]:g,[`${$}-disabled`]:a,[`${$}-warning`]:"warning"===f,[`${$}-error`]:"error"===f,[`${$}-focus`]:M,[`${$}-clearable`]:w,[`${$}-modebtn`]:"password"===h,[`${$}-hidden`]:"hidden"===m,[`${$}-${y}`]:y,[`${hr}-borderless`]:I,[`${hr}-only_border`]:null!=A}),z=x()(hr,{[`${hr}-${y}`]:y,[`${hr}-disabled`]:a,[`${hr}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${hr}-sibling-modebtn`]:"password"===h}),H=null==N?"":N,K=Object.assign(Object.assign({},R),{style:_,className:z,disabled:a,readOnly:g,type:this.foundation.handleInputType(m),placeholder:l,onInput:e=>this.foundation.handleInput(e),onChange:e=>this.foundation.handleChange(e.target.value,e),onFocus:e=>this.foundation.handleFocus(e),onBlur:e=>this.foundation.handleBlur(e),onKeyUp:e=>this.foundation.handleKeyUp(e),onKeyDown:e=>this.foundation.handleKeyDown(e),onKeyPress:e=>this.foundation.handleKeyPress(e),value:H});J()(O)||(K.maxLength=P),F&&(K.minLength=F),"error"===f&&(K["aria-invalid"]="true");let U=Object.assign({},b);return void 0!==A&&(U=Object.assign({borderWidth:A},b)),u().createElement("div",{className:B,style:U,onMouseEnter:e=>this.handleMouseOver(e),onMouseLeave:e=>this.handleMouseLeave(e),onClick:e=>this.handleClick(e)},this.renderPrepend(),this.renderPrefix(),u().createElement("input",Object.assign({},K,{ref:V})),this.renderClearBtn(),this.renderSuffix(L),this.renderModeBtn(),this.renderAppend())}}fr.propTypes={"aria-label":C().string,"aria-labelledby":C().string,"aria-invalid":C().bool,"aria-errormessage":C().string,"aria-describedby":C().string,"aria-required":C().bool,addonBefore:C().node,addonAfter:C().node,clearIcon:C().node,prefix:C().node,suffix:C().node,mode:C().oneOf(pr),value:C().any,defaultValue:C().any,disabled:C().bool,readonly:C().bool,autoFocus:C().bool,type:C().string,showClear:C().bool,hideSuffix:C().bool,placeholder:C().any,size:C().oneOf(ur),className:C().string,style:C().object,validateStatus:C().oneOf(dr),onClear:C().func,onChange:C().func,onBlur:C().func,onFocus:C().func,onInput:C().func,onKeyDown:C().func,onKeyUp:C().func,onKeyPress:C().func,onEnterPress:C().func,insetLabel:C().node,insetLabelId:C().string,inputStyle:C().object,getValueLength:C().func,preventScroll:C().bool,borderless:C().bool},fr.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:i(),onChange:i(),onBlur:i(),onFocus:i(),onInput:i(),onKeyDown:i(),onKeyUp:i(),onKeyPress:i(),onEnterPress:i(),validateStatus:"default",borderless:!1};const mr=u().forwardRef(((e,t)=>u().createElement(fr,Object.assign({},e,{forwardRef:t})))),gr=mr;var yr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class vr extends u().PureComponent{render(){const e=this.props,{triggerRender:t,componentName:n}=e,r=yr(e,["triggerRender","componentName"]);return t(Object.assign({},r))}}vr.propTypes={triggerRender:C().func.isRequired,componentName:C().string,componentProps:C().object,value:C().any,inputValue:C().string,placeholder:C().oneOfType([C().string,C().array]),className:C().string,style:C().object};const br=vr;var xr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class wr extends h.PureComponent{onClick(e,t){var{value:n,label:r,children:i}=e,s=xr(e,["value","label","children"]);const{props:a}=this;a.disabled||a.onSelect(Object.assign(Object.assign({},s),{value:n,label:r||i}),t)}renderOptionContent(e){let{config:t,children:n,inputValue:r,prefixCls:i}=e;return ne()(n)&&r?He(t):n}render(){const e=this.props,{children:t,disabled:n,value:r,selected:i,label:s,empty:a,emptyContent:o,onSelect:l,focused:c,showTick:h,className:d,style:p,onMouseEnter:f,prefixCls:m,renderOptionItem:g,inputValue:y}=e,v=xr(e,["children","disabled","value","selected","label","empty","emptyContent","onSelect","focused","showTick","className","style","onMouseEnter","prefixCls","renderOptionItem","inputValue"]),b=x()(m,{[`${m}-disabled`]:n,[`${m}-selected`]:i,[`${m}-focused`]:c,[`${m}-empty`]:a,[d]:d}),w=x()([`${m}-icon`]);if(a)return null===o?null:u().createElement(Bt,{componentName:"Select"},(e=>u().createElement("div",{className:b,"x-semi-prop":"emptyContent"},o||e.emptyText)));if("function"==typeof g)return g(Object.assign({disabled:n,focused:c,selected:i,style:p,label:s,value:r,inputValue:y,onMouseEnter:e=>f(e),onClick:e=>this.onClick(Object.assign({value:r,label:s,children:t},v),e)},v));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${m}-keyword`}};return u().createElement("div",{className:b,onClick:e=>{this.onClick(Object.assign({value:r,label:s,children:t},v),e)},onMouseEnter:e=>f&&f(e),role:"option","aria-selected":i?"true":"false","aria-disabled":n?"true":"false",style:p},h?u().createElement("div",{className:w},u().createElement(Gt,null)):null,ne()(t)?u().createElement("div",{className:`${m}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:m})):t)}}wr.isSelectOption=!0,wr.propTypes={children:C().node,disabled:C().bool,value:C().oneOfType([C().string,C().number]),selected:C().bool,label:C().node,empty:C().bool,emptyContent:C().node,onSelect:C().func,focused:C().bool,showTick:C().bool,className:C().string,style:C().object,onMouseEnter:C().func,prefixCls:C().string,renderOptionItem:C().func,inputValue:C().string},wr.defaultProps={prefixCls:Bn.PREFIX_OPTION};const Cr=wr;__webpack_require__("tISx");const Er=Bn.PREFIX,Sr=zn.SIZE,_r=zn.POSITION,kr=zn.STATUS;class Pr extends f{constructor(e){super(e),this.onSelect=(e,t,n)=>{this.foundation.handleSelect(e,t)},this.onSearch=e=>{this.foundation.handleSearch(e)},this.onBlur=e=>this.foundation.handleBlur(e),this.onFocus=e=>this.foundation.handleFocus(e),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=e=>this.foundation.handleInputClick(e),this.foundation=new Un(this.adapter);this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:1},this.triggerRef=u().createRef(),this.optionsRef=u().createRef(),this.clickOutsideHandler=null,ye("triggerRender"in this.props&&"function"==typeof this.props.triggerRender,"[Semi AutoComplete]\n - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size',\n please notice that they will be removed in the next major version.\n Please use 'componentProps' to retrieve these props instead.\n - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.")}get adapter(){const e={registerKeyDown:e=>{const t={onKeyDown:e};this.setState({keyboardEventSet:t})},unregisterKeyDown:e=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:e=>{this.setState({focusIndex:e})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const e=this.triggerRef.current;return e&&e.getBoundingClientRect().width},setOptionWrapperWidth:e=>{this.setState({dropdownMinWidth:e})},updateInputValue:e=>{this.setState({inputValue:e})},toggleListVisible:e=>{this.setState({visible:e})},updateOptionList:e=>{this.setState({options:e})},updateSelection:e=>{this.setState({selection:e})},notifySearch:e=>{this.props.onSearch(e)},notifyChange:e=>{this.props.onChange(e)},notifySelect:e=>{this.props.onSelect(e)},notifyDropdownVisibleChange:e=>{this.props.onDropdownVisibleChange(e)},notifyClear:()=>{this.props.onClear()},notifyFocus:e=>{this.props.onFocus(e)},notifyBlur:e=>{this.props.onBlur(e)},notifyKeyDown:e=>{this.props.onKeyDown(e)},rePositionDropdown:()=>{let{rePosKey:e}=this.state;e+=1,this.setState({rePosKey:e})},registerClickOutsideHandler:e=>{const t=t=>{const n=this.optionsRef&&this.optionsRef.current,r=this.triggerRef&&this.triggerRef.current,i=ge().findDOMNode(n),s=t.target,a=t.composedPath&&t.composedPath()||[s];!i||i.contains(s)&&i.contains(s.parentNode)||!r||r.contains(s)||a.includes(r)||a.includes(i)||e(t)};this.clickOutsideHandler=t,document.addEventListener("mousedown",t,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){he()(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:n,insetLabelId:r,suffix:i,placeholder:s,style:a,className:o,showClear:l,disabled:c,triggerRender:h,validateStatus:d,autoFocus:p,value:f,id:m,clearIcon:g}=this.props,{inputValue:y,keyboardEventSet:v,selection:b}=this.state,w="function"==typeof h,C=Object.assign(Object.assign(Object.assign({style:a,className:w?x()(o):x()({[Er]:!0,[`${Er}-disabled`]:c},o),onClick:this.handleInputClick,ref:this.triggerRef,id:m},v),{tabIndex:-1}),this.getDataAttr(this.props)),E={disabled:c,placeholder:s,autoFocus:p,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||n,insetLabelId:r,showClear:l,validateStatus:d,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:g};return u().createElement("div",Object.assign({},C),"function"==typeof h?u().createElement(br,Object.assign({},E,{inputValue:void 0!==f?f:y,value:Array.from(b.values()),triggerRender:h,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):u().createElement(gr,Object.assign({},E,{value:void 0!==f?f:y})))}renderLoading(){const e=`${Er}-loading-wrapper`;return u().createElement("div",{className:e},u().createElement(tr,null))}renderOption(e,t){const{focusIndex:n}=this.state,r=t===n;return u().createElement(Cr,Object.assign({showTick:!1,onSelect:(e,n)=>this.onSelect(e,t,n),focused:r,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:n,loading:r,emptyContent:i}=this.props,{options:s,dropdownMinWidth:a}=this.state,o=x()({[`${Er}-option-list`]:!0},n);let l;l=0===s.length?i:s.filter((e=>e.show)).map(((e,t)=>this.renderOption(e,t)));const c=Object.assign({maxHeight:e,minWidth:a},t);return u().createElement("div",{className:o,role:"listbox",style:c},r?this.renderLoading():l)}render(){const{position:e,motion:t,zIndex:n,mouseEnterDelay:r,mouseLeaveDelay:i,autoAdjustOverflow:s,stopPropagation:a,getPopupContainer:o}=this.props,{visible:l,rePosKey:c}=this.state,h=this.renderInput(),d=this.renderOptionList();return u().createElement(pn,{mouseEnterDelay:r,mouseLeaveDelay:i,autoAdjustOverflow:s,trigger:"custom",motion:t,visible:l,content:d,position:e,ref:this.optionsRef,zIndex:n,stopPropagation:a,getPopupContainer:o,rePosKey:c},h)}}Pr.propTypes={"aria-label":C().string,"aria-labelledby":C().string,"aria-invalid":C().bool,"aria-errormessage":C().string,"aria-describedby":C().string,"aria-required":C().bool,autoFocus:C().bool,autoAdjustOverflow:C().bool,className:C().string,clearIcon:C().node,children:C().node,data:C().array,defaultOpen:C().bool,defaultValue:C().oneOfType([C().string,C().number]),defaultActiveFirstOption:C().bool,disabled:C().bool,dropdownMatchSelectWidth:C().bool,dropdownClassName:C().string,dropdownStyle:C().object,emptyContent:C().node,id:C().string,insetLabel:C().node,insetLabelId:C().string,onSearch:C().func,onSelect:C().func,onClear:C().func,onBlur:C().func,onFocus:C().func,onChange:C().func,onKeyDown:C().func,position:C().oneOf(_r),placeholder:C().string,prefix:C().node,onChangeWithObject:C().bool,onSelectWithObject:C().bool,renderItem:C().func,renderSelectedItem:C().func,suffix:C().node,showClear:C().bool,size:C().oneOf(Sr),style:C().object,stopPropagation:C().oneOfType([C().bool,C().string]),maxHeight:C().oneOfType([C().string,C().number]),mouseEnterDelay:C().number,mouseLeaveDelay:C().number,motion:C().oneOfType([C().bool,C().func,C().object]),getPopupContainer:C().func,triggerRender:C().func,value:C().oneOfType([C().string,C().number]),validateStatus:C().oneOf(kr),zIndex:C().number},Pr.Option=Cr,Pr.__SemiComponentName__="AutoComplete",Pr.defaultProps=Xe(Pr.__SemiComponentName__,{stopPropagation:!0,motion:!0,zIndex:sn.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:i(),onSearch:i(),onClear:i(),onBlur:i(),onSelect:i(),onChange:i(),onSelectWithObject:!1,onDropdownVisibleChange:i(),defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:i()});const Or=Pr,Tr={PREFIX:`${E}-avatar`},Ir={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class Dr extends c{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch(e){ye(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)},this.changeScale=()=>{const{gap:e}=this.getProps(),t=this._adapter.getAvatarNode(),n=null==t?void 0:t.firstChild,[r,i]=[(null==t?void 0:t.offsetWidth)||0,(null==n?void 0:n.offsetWidth)||0];if(0!==r&&0!==i&&2*e<r){const t=r-2*e>i?1:(r-2*e)/i;this._adapter.setScale(t)}}}init(){const{children:e}=this.getProps();"string"==typeof e&&this.changeScale()}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();!1!==(e?e():void 0)&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}__webpack_require__("XWjs");const Ar=e=>{let{gradientStart:t,gradientEnd:n}=e;const r=Ae();return u().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"51",height:"52",viewBox:"0 0 51 52",fill:"none"},u().createElement("g",{filter:"url(#filter0_d_6_2)"},u().createElement("path",{d:"M40.4918 46.5592C44.6795 43.176 46.261 34.1333 47.5301 25.6141C49.5854 11.8168 39.6662 1 25.8097 1C11.2857 1 3 11.4279 3 25.3518C3 33.7866 6.29361 43.8947 10.4602 46.5592C12.5868 47.9192 12.5868 47.9051 25.8097 47.9192C38.3651 47.9282 38.5352 48.14 40.4918 46.5592Z",fill:`url(#${r})`})),u().createElement("defs",null,u().createElement("filter",{id:"filter0_d_6_2",x:"0.789215",y:"0.447304",width:"49.2216",height:"51.3549",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},u().createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),u().createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u().createElement("feOffset",{dy:"1.65809"}),u().createElement("feGaussianBlur",{stdDeviation:"1.10539"}),u().createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),u().createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_6_2"}),u().createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_6_2",result:"shape"})),u().createElement("linearGradient",{id:r,x1:"17.671",y1:"31.7392",x2:"17.671",y2:"47.9333",gradientUnits:"userSpaceOnUse"},u().createElement("stop",{stopColor:t}),u().createElement("stop",{offset:"1",stopColor:n}))))};var Rr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Nr=Ir.SIZE,Mr=Ir.SHAPE,Fr=Ir.COLOR,Lr=Tr.PREFIX;class jr extends f{constructor(e){super(e),this.handleFocusVisible=e=>{this.foundation.handleFocusVisible(e)},this.handleBlur=e=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:e,onClick:t,imgAttr:n,src:r,srcSet:i,alt:s}=this.props,{isImgExist:a}=this.state;let o=e;const l=t!==yt,c=r&&a,h={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(c){const e=l?`clickable Avatar: ${s}`:s,t=Object.assign(Object.assign({src:r,srcSet:i,onError:this.handleError},n),{className:x()({[`${Lr}-no-focus-visible`]:l})}),a=l?Object.assign(Object.assign({},t),h):t;o=u().createElement("img",Object.assign({alt:e},a))}else if("string"==typeof e){const t=null!=s?s:e,n={role:"img","aria-label":l?`clickable Avatar: ${t}`:t,className:x()(`${Lr}-label`,{[`${Lr}-no-focus-visible`]:l})},r=l?Object.assign(Object.assign({},n),h):n,i={transform:`scale(${this.state.scale})`};o=u().createElement("span",{className:`${Lr}-content`,style:i},u().createElement("span",Object.assign({},r,{"x-semi-prop":"children"}),e))}return o},this.renderBottomSlot=()=>{var e,t;if(!this.props.bottomSlot)return null;if(this.props.bottomSlot.render)return this.props.bottomSlot.render();const n=null!==(e=this.props.bottomSlot.render)&&void 0!==e?e:()=>{var e;const t={};return this.props.bottomSlot.bgColor&&(t.backgroundColor=this.props.bottomSlot.bgColor),this.props.bottomSlot.textColor&&(t.color=this.props.bottomSlot.textColor),u().createElement("span",{style:t,className:x()(`${Lr}-bottom_slot-shape_${this.props.bottomSlot.shape}`,`${Lr}-bottom_slot-shape_${this.props.bottomSlot.shape}-${this.props.size}`,null!==(e=this.props.bottomSlot.className)&&void 0!==e?e:"")},this.props.bottomSlot.text)};return u().createElement("div",{className:x()([`${Lr}-bottom_slot`]),style:null!==(t=this.props.bottomSlot.style)&&void 0!==t?t:{}},n())},this.renderTopSlot=()=>{var e,t,n,r;if(!this.props.topSlot)return null;if(this.props.topSlot.render)return this.props.topSlot.render();const i={};return this.props.topSlot.textColor&&(i.color=this.props.topSlot.textColor),u().createElement("div",{style:null!==(e=this.props.topSlot.style)&&void 0!==e?e:{},className:x()([`${Lr}-top_slot-wrapper`,null!==(t=this.props.topSlot.className)&&void 0!==t?t:"",{[`${Lr}-animated`]:this.props.contentMotion}])},u().createElement("div",{className:x()([`${Lr}-top_slot-bg`,`${Lr}-top_slot-bg-${this.props.size}`])},u().createElement("div",{className:x()([`${Lr}-top_slot-bg-svg`,`${Lr}-top_slot-bg-svg-${this.props.size}`])},u().createElement(Ar,{gradientStart:null!==(n=this.props.topSlot.gradientStart)&&void 0!==n?n:"var(--semi-color-primary)",gradientEnd:null!==(r=this.props.topSlot.gradientEnd)&&void 0!==r?r:"var(--semi-color-primary)"}))),u().createElement("div",{className:x()([`${Lr}-top_slot`])},u().createElement("div",{style:i,className:x()([`${Lr}-top_slot-content`,`${Lr}-top_slot-content-${this.props.size}`])},this.props.topSlot.text)))},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1,scale:1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this),this.avatarRef=u().createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,n=t;this.setState({hoverContent:n},(()=>{const{onMouseEnter:t}=this.props;t&&t(e)}))},notifyLeave:e=>{this.setState({hoverContent:""},(()=>{const{onMouseLeave:t}=this.props;t&&t(e)}))},setFocusVisible:e=>{this.setState({focusVisible:e})},setScale:e=>{this.setState({scale:e})},getAvatarNode:()=>{var e;return null===(e=this.avatarRef)||void 0===e?void 0:e.current}})}componentDidMount(){this.foundation=new Dr(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const e=new Image(0,0);e.src=this.props.src,e.onload=()=>{this.setState({isImgExist:!0})},e.onerror=()=>{this.setState({isImgExist:!1})},e.onabort=()=>{this.setState({isImgExist:!1})}}"string"==typeof this.props.children&&this.props.children!==e.children&&this.foundation.changeScale()}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ce(e);break;case"Escape":e.target.blur()}}render(){var e;const t=this.props,{shape:n,children:r,size:i,color:s,className:a,hoverMask:o,onClick:l,imgAttr:c,src:h,srcSet:d,style:p,alt:f,gap:m,bottomSlot:g,topSlot:y,border:v,contentMotion:b}=t,w=Rr(t,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt","gap","bottomSlot","topSlot","border","contentMotion"]),{isImgExist:C,hoverContent:E,focusVisible:S}=this.state;let _={};Ir.SIZE.includes(i)||(_={width:i,height:i}),_=Object.assign(Object.assign({},_),p);const k=g||y||v,P={onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},O=h&&C,T=x()(Lr,{[`${Lr}-${n}`]:n,[`${Lr}-${i}`]:i,[`${Lr}-${s}`]:s&&!O,[`${Lr}-img`]:O,[`${Lr}-focus`]:S,[`${Lr}-animated`]:b},a),I=E?u().createElement("div",{className:`${Lr}-hover`,"x-semi-prop":"hoverContent"},E):null;let D=u().createElement("span",Object.assign({},w,{style:k?{}:_,className:T},k?{}:P,{role:"listitem",ref:this.avatarRef}),this.getContent(),I);if(v){const t={};"object"==typeof v&&(null==v?void 0:v.color)&&(t.borderColor=null==v?void 0:v.color),D=u().createElement("div",{style:Object.assign({position:"relative"},_)},D,u().createElement("span",{style:t,className:x()([`${Lr}-additionalBorder`,`${Lr}-additionalBorder-${i}`,{[`${Lr}-${n}`]:n}])}),"object"==typeof this.props.border&&this.props.border.motion&&u().createElement("span",{style:t,className:x()([`${Lr}-additionalBorder`,`${Lr}-additionalBorder-${i}`,{[`${Lr}-${n}`]:n,[`${Lr}-additionalBorder-animated`]:"object"==typeof this.props.border&&(null===(e=this.props.border)||void 0===e?void 0:e.motion)}])}))}return k?u().createElement("span",Object.assign({className:x()([`${Lr}-wrapper`]),style:_},P),D,y&&["extra-small","small","default","medium","large","extra-large"].includes(i)&&"circle"===n&&this.renderTopSlot(),g&&["extra-small","small","default","medium","large","extra-large"].includes(i)&&this.renderBottomSlot()):D}}jr.__SemiComponentName__="Avatar",jr.defaultProps=Xe(jr.__SemiComponentName__,{size:"medium",color:"grey",shape:"circle",gap:3,onClick:yt,onMouseEnter:yt,onMouseLeave:yt}),jr.propTypes={children:C().node,color:C().oneOf(Fr),shape:C().oneOf(Mr),size:C().oneOf(Nr),hoverMask:C().node,className:C().string,style:C().object,gap:C().number,imgAttr:C().object,src:C().string,srcSet:C().string,alt:C().string,onError:C().func,onClick:C().func,onMouseEnter:C().func,onMouseLeave:C().func,bottomSlot:C().shape({render:C().func,shape:C().oneOf(["circle","square"]),text:C().node,bgColor:C().string,textColor:C().string,className:C().string,style:C().object}),topSlot:C().shape({render:C().func,gradientStart:C().string,gradientEnd:C().string,text:C().node,textColor:C().string,className:C().string,style:C().object}),border:C().oneOfType([C().shape({color:C().string,motion:C().bool}),C().bool]),contentMotion:C().bool},jr.elementType="Avatar";var Vr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const $r=Ir.SIZE,Br=Ir.SHAPE,zr=Ir.OVERLAP_FROM,Hr=Tr.PREFIX;class Kr extends h.PureComponent{getAllAvatars(){const{children:e}=this.props;return e?Array.isArray(e)?u().Children.toArray(e):[e]:[]}getMergeAvatars(e){const{maxCount:t}=this.props;let n=e;const r=e.length-t,i=e.slice(0,t),s=e.slice(t);if(r>0){const e=this.renderMoreAvatar(r,s);i.push(e),n=i}return n}renderMoreAvatar(e,t){const{renderMore:n}=this.props,r=x()(`${Hr}-item-more`),i=null==t?void 0:t.reduce(((e,t)=>{const{children:n,alt:r}=t.props,i=null!=r?r:"string"==typeof n?n:"";return 0===i.length?e:e.length>0?`${e},${i}`:i}),""),s=` Number of remaining Avatars:${e},${i}`;let a=u().createElement(jr,{className:r,key:"_+n",alt:s},`+${e}`);return J()(n)&&(a=u().createElement(h.Fragment,{key:"_+n"},n(e,t))),a}render(){const e=this.props,{children:t,maxCount:n,overlapFrom:r,size:i,shape:s,renderMore:o}=e,l=Vr(e,["children","maxCount","overlapFrom","size","shape","renderMore"]);let c;const h=x()({[`${Hr}-group`]:!0});if(t){const e=this.getAllAvatars();c=(Kn()(n)?this.getMergeAvatars(e):e).map(((e,t)=>{const n=x()(a()(e.props,"className"),{[`${Hr}-item-start-${t}`]:"start"===r,[`${Hr}-item-end-${t}`]:"end"===r});return u().cloneElement(e,Object.assign(Object.assign({},l),{className:n,size:i,shape:s,key:t}))}))}return u().createElement("div",{className:h,role:"list"},c)}}Kr.defaultProps={size:"medium",shape:"circle",overlapFrom:"start"},Kr.propTypes={children:C().node,shape:C().oneOf(Br),size:C().oneOf($r),maxCount:C().number,renderMore:C().func,overlapFrom:C().oneOf(zr)};const Ur={PREFIX:`${E}-backtop`};var Wr=__webpack_require__("9Tt7"),Gr=__webpack_require__.n(Wr);function qr(e,t,n){return Math.min(Math.max(e,t),n)}function Yr(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;const t=qr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,1,10),n=qr(e,.1,2);return e=>0===e||1===e?e:-t*Math.pow(2,10*(e-1))*Math.sin((e-1-n/(2*Math.PI)*Math.asin(1/t))*(2*Math.PI)/n)}const Xr=(()=>{const e=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],t={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],Yr],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(e,t)=>n=>1-Yr(e,t)(1-n)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(e,t)=>n=>n<.5?Yr(e,t)(2*n)/2:1-Yr(e,t)(-2*n+2)/2]},n={linear:[.25,.25,.75,.75]};for(const r of Object.keys(t))t[r].forEach(((t,i)=>{n["ease"+r+e[i]]=t}));return n})();function Zr(e){if("function"==typeof e)return e;let t=(e=e&&"string"==typeof e?e.trim():"linear").split("(")[0];const n=function(e){const t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((e=>parseFloat(e))):[]}(e);let r;return"cubic-bezier"===t||"cubicBezier"===t?Gr()(...n.length?n:Xr.linear):((!t||"string"!=typeof t||"string"==typeof t&&null==Xr[t])&&(t="linear"),r=Xr[t],"function"==typeof r?r(...n):n.length?Gr()(...n):Gr()(...r))}class Jr{constructor(){this._eventMap=new Map}on(e,t){return e&&"function"==typeof t&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var n=this;if(e&&"function"==typeof t){const r=function(){t(...arguments),n.off(e,r)};this.on(e,r)}}off(e,t){if(e)if("function"==typeof t){const n=this._eventMap.get(e);if(Array.isArray(n)&&n.length){let e=-1;for(;(e=n.findIndex((e=>e===t)))>-1;)n.splice(e,1)}}else null==t&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!this._eventMap.has(e)&&(this._eventMap.get(e).forEach((e=>e(...n))),!0)}}function Qr(e){return Boolean(e&&"object"==typeof e&&(e.duration>0||"string"==typeof e.easing||"function"==typeof e.easing))}function ei(e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t}const ti=[0,0];function ni(e,t,n,r,i,s,a){const o=n+(-i*(t-r)+-s*n)*e,l=t+o*e;return Math.abs(o)<a&&Math.abs(l-r)<a?(ti[0]=r,ti[1]=0,ti):(ti[0]=l,ti[1]=o,ti)}const ri=Object.assign(Object.assign({},{tension:170,friction:26}),{precision:.01});function ii(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Qr(t)){const e=Zr(t.easing),n="number"==typeof t.duration&&t.duration>0?t.duration:1e3;t=Object.assign(Object.assign({},t),{easing:e,duration:n})}let n=Object.assign(Object.assign(Object.assign({},ri),t),{done:!1});if(e&&"object"==typeof e&&"val"in e){if(Qr(e)){const n=Zr(e.easing),r="number"==typeof e.duration&&e.duration>0?e.duration:parseInt(t.duration)||1e3;e=Object.assign(Object.assign({},e),{easing:n,duration:r})}n=Object.assign(Object.assign({},n),e)}else n=Object.assign(Object.assign({},n),{val:e});return n}const si=()=>Date.now(),ai=1e3/60;class oi extends Jr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&"object"==typeof t?t:this._config;const n={};for(const r of Object.keys(e))n[r]=ii(e[r],t);return n}initStates(e,t){e=e&&"object"==typeof e?e:this._props,t=t&&"object"==typeof t?t:this._config;const{from:n,to:r}=e;if(this._from={},n)for(const e of Object.keys(n))this._from[e]="object"==typeof n[e]&&n[e].val?n[e].val:n[e];this._to=this._wrapConfig(r,t),this._delay=parseInt(t.delay)||0;const i=this._from&&ei(this._from)||ei(this._to),s=function(e){const t={},n=e&&Object.keys(e)||[];for(const e of n)t[e]=0;return t}(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},s),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},s),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){null==this._timer&&(this._timer=requestAnimationFrame((e=>{const t=si();if(function(e,t,n,r,i){for(const s of Object.keys(t)){const a=t[s],o="number"==typeof a?a:a.val;if("object"!=typeof a||!a.done){if(Qr(a)&&r&&i&&a.duration){if(a.duration+r<=i||o!==e[s])return!1}else if("number"==typeof n[s]&&0!==n[s])return!1;if(e[s]!==o)return!1}}return!0}(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped)return!this._wasAnimating||this._ended||this._stopped||(this._timer=setTimeout((()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())}),ai)),void this.resetPlayStates();this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,0===this._startedTime&&(this._startedTime=t);const n=t,r=n-this._prevTime;this._prevTime=n,n-this._startedTime<this._delay&&(this._timer=null,this.animate());const i={},s={},a={},o={},l=this._to&&Object.keys(this._to)||[];for(const e of l){const t=this._to[e];this._accumulatedTime[e]="number"!=typeof this._accumulatedTime[e]?r:this._accumulatedTime[e]+r;const l=null!=this._from[e]&&"object"==typeof this._from[e]?this._from[e].val:this._from[e],c=t.val;if("number"==typeof t)a[e]=t,o[e]=0,i[e]=t,s[e]=0;else{let r=this._lastIdealStyle[e],h=this._lastIdealVelocity[e];if(Qr(this._config)||Qr(t)){const{easing:s,duration:o}=t;r=l+s((n-this._startedTime)/o)*(c-l),n>=this._startedTime+o&&(r=c,t.done=!0),i[e]=r,a[e]=r}else if(null!=c&&c===this._currentStyle[e])a[e]=c,o[e]=0,i[e]=c,s[e]=0;else{const n=(this._accumulatedTime[e]-Math.floor(this._accumulatedTime[e]/ai)*ai)/ai,l=Math.floor(this._accumulatedTime[e]/ai);for(let e=0;e<l;e++)[r,h]=ni(ai/1e3,r,h,t.val,t.tension,t.friction,t.precision);const[c,u]=ni(ai/1e3,r,h,t.val,t.tension,t.friction,t.precision);a[e]=r+(c-r)*n,o[e]=h+(u-h)*n,i[e]=r,s[e]=h,this._accumulatedTime[e]-=l*ai}}}this._timer=null,this._currentStyle=Object.assign({},a),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},s),this._destroyed||(this.emit("frame",this.getCurrentStates()),this.animate())})))}start(){this._prevTime=si(),this._startedTime=si(),this.animate()}end(){this._ended||(this._ended=!0,this._currentStyle=this.getFinalStates(),this.emit("frame",this.getFinalStates()),this.emit("rest",this.getFinalStates())),this.destroy()}pause(){this._paused||(this._pausedTime=si(),this._paused=!0,this.emit("pause",this.getCurrentStates()),this.destroy(),this._destroyed=!1)}resume(){if(this._started&&this._paused){const e=si()-this._pausedTime;this._paused=!1,this._startedTime+=e,this._prevTime+=e,this._pausedTime=0,this.emit("resume",this.getCurrentStates()),this.animate()}}stop(){this.destroy(),this._stopped||(this._stopped=!0,this.emit("stop",this.getInitialStates()),this.initStates())}destroy(){cancelAnimationFrame(this._timer),clearTimeout(this._timer),this._timer=null,this._destroyed=!0}resetPlayStates(){this._started=!1,this._stopped=!1,this._ended=!1,this._paused=!1,this._destroyed=!1,this._timer=null,this._wasAnimating=!1,this._accumulatedTime={},this._startedTime=0,this._pausedTime=0}reset(){this.destroy(),this.initStates()}reverse(){this.destroy();const e=Object.assign({},this._props),[t,n]=[e.to,e.from];e.from=t,e.to=n,this._props=Object.assign({},e),this.initStates()}getCurrentStates(){return Object.assign({},this._currentStyle)}getInitialStates(){return Object.assign({},ei(this._props.from))}getFinalStates(){return Object.assign({},ei(this._props.to))}}class li extends c{constructor(e){super(Object.assign({},e)),this.scrollTo=(e,t,n)=>{const{duration:r}=this.getProps();this.animation=new oi({from:{scrollTop:t},to:{scrollTop:n}},{duration:r,easing:"easeInOutCubic"}),this.animation.on("frame",(t=>{let{scrollTop:n}=t;this._adapter.targetScrollToTop(e,n)})),this.animation.start()},this.handleScroll=()=>{const{target:e,visibilityHeight:t}=this.getProps(),n=e();requestAnimationFrame((()=>{const e=this.getScroll(n);this._adapter.updateVisible(e>t)}))}}init(){const{target:e}=this.getProps();e().addEventListener("scroll",this.handleScroll),this.handleScroll()}destroy(){const{target:e}=this.getProps(),t=e();t&&t.removeEventListener("scroll",this.handleScroll),this.animation&&this.animation.destroy()}getScroll(e){if(this._adapter.isWindowUndefined())return 0;return this._adapter.targetIsWindow(e)?e.pageYOffset:e.scrollTop}setScrollTop(e){const{target:t}=this.getProps(),n=t(),r=this.getScroll(n);this.scrollTo(n,r,e)}onClick(e){this.setScrollTop(0),this._adapter.notifyClick(e)}}__webpack_require__("ySxA");const ci={PREFIX:`${E}-button`},hi={sizes:["default","small","large"],iconPositions:["left","right"],htmlTypes:["button","reset","submit"],btnTypes:["primary","secondary","tertiary","warning","danger"],themes:["solid","borderless","light","outline"],DEFAULT_ICON_SIZE:"default",DEFAULT_ICON_POSITION:"left"};__webpack_require__("kEbM");var ui=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const di=hi.sizes,{htmlTypes:pi,btnTypes:fi}=hi;class mi extends h.PureComponent{render(){const e=this.props,{children:t,block:n,htmlType:r,loading:i,circle:s,className:a,style:o,disabled:l,size:c,theme:h,type:d,prefixCls:p,iconPosition:f}=e,m=ui(e,["children","block","htmlType","loading","circle","className","style","disabled","size","theme","type","prefixCls","iconPosition"]),g=Object.assign(Object.assign({disabled:l},ae()(m,["x-semi-children-alias"])),{className:x()(p,{[`${p}-${d}`]:!l&&d,[`${p}-disabled`]:l,[`${p}-size-large`]:"large"===c,[`${p}-size-small`]:"small"===c,[`${p}-light`]:"light"===h,[`${p}-block`]:n,[`${p}-circle`]:s,[`${p}-borderless`]:"borderless"===h,[`${p}-outline`]:"outline"===h,[`${p}-${d}-disabled`]:l&&d},a),type:r,"aria-disabled":l}),y={};return a&&a.includes("-with-icon")||(y["x-semi-prop"]=this.props["x-semi-children-alias"]||"children"),u().createElement("button",Object.assign({},g,{onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,style:o}),u().createElement("span",Object.assign({className:x()(`${p}-content`,this.props.contentClassName),onClick:e=>l&&e.stopPropagation()},y),t))}}mi.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:yt,onClick:yt,onMouseEnter:yt,onMouseLeave:yt,prefixCls:ci.PREFIX},mi.propTypes={children:C().node,disabled:C().bool,prefixCls:C().string,style:C().object,size:C().oneOf(di),type:C().oneOf(fi),block:C().bool,onClick:C().func,onMouseDown:C().func,circle:C().bool,loading:C().bool,htmlType:C().oneOf(pi),theme:C().oneOf(hi.themes),className:C().string,onMouseEnter:C().func,onMouseLeave:C().func,"aria-label":C().string,contentClassName:C().string};__webpack_require__("VCw7");var gi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const yi=["extra-small","small","default","large","extra-large","custom"];class vi extends h.PureComponent{render(){const e=this.props,{children:t,iconPosition:n,iconSize:r,iconStyle:i,style:s,icon:a,noHorizontalPadding:o,theme:l,className:c,prefixCls:h,loading:d}=e,p=gi(e,["children","iconPosition","iconSize","iconStyle","style","icon","noHorizontalPadding","theme","className","prefixCls","loading"]),f=Object.assign({},s);Array.isArray(o)?(o.includes("left")&&(f.paddingLeft=0),o.includes("right")&&(f.paddingRight=0)):!0===o?(f.paddingLeft=0,f.paddingRight=0):"string"==typeof o&&("left"===o&&(f.paddingLeft=0),"right"===o&&(f.paddingRight=0));let m=null,g=null;d&&!p.disabled?g=u().createElement(Zn,null):u().isValidElement(a)&&(g=a);const y=x()({[`${h}-content-left`]:"right"===n,[`${h}-content-right`]:"left"===n}),v=this.props["x-semi-children-alias"]||"children",b=null!=t?u().createElement("span",{className:y,"x-semi-prop":v},t):null;m="left"===n?u().createElement(u().Fragment,null,g,b):u().createElement(u().Fragment,null,b,g);const w=x()(c,`${h}-with-icon`,{[`${h}-with-icon-only`]:null==b||""===b,[`${h}-loading`]:d});return u().createElement(mi,Object.assign({},p,{className:w,theme:l,style:f}),m)}}vi.defaultProps={iconPosition:hi.DEFAULT_ICON_POSITION,prefixCls:ci.PREFIX,loading:!1,noHorizontalPadding:!1,onMouseEnter:i(),onMouseLeave:i()},vi.elementType="IconButton",vi.propTypes={iconStyle:C().object,style:C().object,loading:C().bool,prefixCls:C().string,icon:C().oneOfType([C().object,C().string,C().node]),iconSize:C().oneOf(yi),noHorizontalPadding:C().oneOfType([C().bool,C().string,C().array]),children:C().node,theme:C().string,iconPosition:C().oneOf(hi.iconPositions),className:C().string,onMouseEnter:C().func,onMouseLeave:C().func};const bi=vi;const xi=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}),"chevron_up");var wi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ci=Ur.PREFIX;class Ei extends f{constructor(e){super(e),this.state={visible:!1},this.foundation=new li(this.adapter)}componentDidMount(){var e;this.foundation.init(),this.handler=g()(this.handleClick,null!==(e=this.props.duration)&&void 0!==e?e:Ei.defaultProps.duration)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisible:e=>{this.setState({visible:e})},notifyClick:e=>{this.props.onClick&&this.props.onClick(e)},targetIsWindow:e=>e===window,isWindowUndefined:()=>void 0===window,targetScrollToTop:(e,t)=>{e===window?(document.body.scrollTop=t,document.documentElement.scrollTop=t):e.scrollTop=t}})}handleClick(e){this.foundation.onClick(e)}renderDefault(){return u().createElement(bi,{theme:"light",icon:u().createElement(xi,null)})}render(){const e=this.props,{children:t,className:n,style:r,onClick:i,visibilityHeight:s,target:a}=e,o=wi(e,["children","className","style","onClick","visibilityHeight","target"]),{visible:l}=this.state,c=x()(Ci,n),h=t||this.renderDefault(),d=l?u().createElement("div",Object.assign({},o,{className:c,style:r,onClick:e=>this.handler(e),"x-semi-prop":"children"}),h):null;return d}}Ei.__SemiComponentName__="BackTop",Ei.defaultProps=Xe(Ei.__SemiComponentName__,{visibilityHeight:400,target:()=>window,duration:450}),Ei.propTypes={target:C().func,visibilityHeight:C().number,duration:C().number,onClick:C().func,style:C().object,className:C().string};const Si={PREFIX:`${E}-badge`},_i=["success","primary","secondary","tertiary","warning","danger"],ki=["solid","light","inverted"],Pi=["leftTop","leftBottom","rightTop","rightBottom"];__webpack_require__("TQlD");var Oi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ti=Si.PREFIX;class Ii extends h.PureComponent{render(){const{direction:e}=this.context,t="rtl"===e?"leftTop":"rightTop",n=this.props,{count:r,dot:i,type:s,countClassName:a,countStyle:o,theme:l,position:c=t,overflowCount:h,style:d,children:p,className:f}=n,m=Oi(n,["count","dot","type","countClassName","countStyle","theme","position","overflowCount","style","children","className"]),g=r&&!(Kn()(r)||ne()(r)),y=null!=r,v=x()(a,{[`${Ti}-${s}`]:!g,[`${Ti}-${l}`]:!g,[`${Ti}-${c}`]:Boolean(c)&&Boolean(p),[`${Ti}-block`]:!p,[`${Ti}-dot`]:i,[`${Ti}-count`]:!i&&!g&&y,[`${Ti}-custom`]:g});let b;return b=Kn()(r)?h&&h<r?`${h}+`:`${r}`:r,u().createElement("span",Object.assign({className:x()(Ti,f)},m),p,u().createElement("span",{className:v,style:d||o,"x-semi-prop":"count"},i?null:b))}}Ii.contextType=Ze,Ii.propTypes={count:C().node,dot:C().bool,type:C().oneOf(_i),theme:C().oneOf(ki),position:C().oneOf(Pi),overflowCount:C().number,style:C().object,className:C().string,children:C().node,onClick:C().func,onMouseEnter:C().func,onMouseLeave:C().func,countClassName:C().string,countStyle:C().object},Ii.defaultProps={dot:!1,type:"primary",theme:"solid",className:"",onClick:()=>i(),onMouseEnter:()=>i(),onMouseLeave:()=>i()};const Di={PREFIX:`${E}-banner`};class Ai extends c{constructor(e){super(Object.assign(Object.assign({},Ai.defaultAdapter),e))}removeBanner(e){this._adapter.notifyClose(e),this._adapter.setVisible()}}__webpack_require__("tIsd");const Ri=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}),"close");const Ni=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}),"alert_triangle");const Mi=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}),"tick_circle");const Fi=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}),"info_circle");const Li=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}),"alert_circle"),ji=Di.PREFIX,Vi=["info","success","danger","warning"];class $i extends f{constructor(e){super(e),this.remove=e=>{e&&e.stopPropagation(),this.foundation.removeBanner(e)},this.state={visible:!0},ye("target"in this.props,"[Semi Banner] 'target' has been deprecated, please write JSX directly instead.")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:()=>{this.setState({visible:!1})},notifyClose:e=>{const{onClose:t}=this.props;t(e)}})}componentDidMount(){this.foundation=new Ai(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}renderCloser(){const{closeIcon:e}=this.props;if(null===e)return e;return u().createElement(bi,{className:`${ji}-close`,onClick:this.remove,icon:e||u().createElement(Ri,{"x-semi-prop":"closeIcon","aria-hidden":!0}),theme:"borderless",size:"small",type:"tertiary","aria-label":"Close"})}renderIcon(){const{type:e,icon:t}=this.props;let n={warning:u().createElement(Ni,{size:"large","aria-label":"warning"}),success:u().createElement(Mi,{size:"large","aria-label":"success"}),info:u().createElement(Fi,{size:"large","aria-label":"info"}),danger:u().createElement(Li,{size:"large","aria-label":"danger"})}[e];const r=x()({[`${ji}-icon`]:!0});return void 0!==t&&(n=t),n?u().createElement("div",{className:r,"x-semi-prop":"icon"},n):null}render(){const{children:e,type:t,className:n,style:r,bordered:i,title:s,description:a,fullMode:o}=this.props,{visible:l}=this.state,c=x()(ji,n,{[`${ji}-${t}`]:t,[`${ji}-full`]:o,[`${ji}-in-container`]:!o,[`${ji}-bordered`]:!o&&i});return l?u().createElement("div",Object.assign({className:c,style:r,role:"alert"},this.getDataAttr(this.props)),u().createElement("div",{className:`${ji}-content-wrapper`},u().createElement("div",{className:`${ji}-content`},this.renderIcon(),u().createElement("div",{className:`${ji}-content-body`},s?u().createElement(Nn.Title,{heading:5,className:`${ji}-title`,component:"div","x-semi-prop":"title"},s):null,a?u().createElement(Nn.Paragraph,{className:`${ji}-description`,component:"div","x-semi-prop":"description"},a):null)),this.renderCloser()),e?u().createElement("div",{className:`${ji}-extra`,"x-semi-prop":"children"},e):null):null}}$i.propTypes={fullMode:C().bool,type:C().oneOf(Vi),title:C().node,description:C().node,icon:C().node,closeIcon:C().node,children:C().node,style:C().object,className:C().string,onClose:C().func,bordered:C().bool},$i.defaultProps={onClose:()=>{},type:"info",fullMode:!0};const Bi={PREFIX:`${E}-breadcrumb`};class zi extends c{constructor(e){super(Object.assign({},e))}handleClick(e,t){this._adapter.notifyClick(e,t)}handleExpand(e){this._adapter.expandCollapsed(e)}handleExpandEnterPress(e){Jt(e)&&this.handleExpand(e)}genRoutes(e){return e.map((e=>{if("object"!=typeof e)return{name:e,_origin:{name:e}};let t={};return t._origin=e,Object.assign(Object.assign({},t),e)}))}}__webpack_require__("NppW");class Hi extends c{constructor(e){super(Object.assign({},e))}handleClick(e,t){this._adapter.notifyClick(e,t),this._adapter.notifyParent(e,t)}}const Ki=u().createContext({}),Ui=Bi.PREFIX;class Wi extends f{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyClick:function(){e.props.onClick(...arguments)},notifyParent:function(){e.context.onClick(...arguments)}})}constructor(e){super(e),this.renderIcon=()=>{const e=this.props.icon,{compact:t}=this.context,n=t?"small":"default",r=`${Ui}-item-icon`;return u().isValidElement(e)?u().cloneElement(e,{className:r,size:n}):e},this.getTooltipOpt=()=>{const{showTooltip:e}=this.context;if(!e)return{width:150,ellipsisPos:"end"};const t={width:150,ellipsisPos:"end",opts:{autoAdjustOverflow:!0,position:"top"}};return"object"==typeof e?ie()(t,e):t},this.getItemInfo=()=>{let e={};const{route:t,children:n,href:r}=this.props,i=!le()(r)&&!ee()(r);return t?e=t:(e.name=n,i&&(e.href=r)),e},this.renderBreadItem=()=>{const{children:e}=this.props,{compact:t}=this.context,n=this.getTooltipOpt(),r=this.renderIcon();if(Boolean(e)&&"string"==typeof e){const{opts:i,ellipsisPos:s,width:a}=n;return u().createElement(h.Fragment,null,r,u().createElement("span",{className:`${Ui}-item-title`},u().createElement(Nn.Text,{ellipsis:{showTooltip:!!i&&{opts:i},pos:s},style:{maxWidth:a},size:t?"small":"normal"},e)))}return u().createElement(h.Fragment,null,r,e?u().createElement("span",{className:`${Ui}-item-title ${Ui}-item-title-inline`},e):null)},this.renderItem=()=>{const{href:e,active:t,noLink:n}=this.props,r=null!=e,i=x()({[`${Ui}-item`]:!0,[`${Ui}-item-active`]:t,[`${Ui}-item-link`]:!n}),s=this.renderBreadItem(),a=t||!r?"span":"a",o=this.getItemInfo();return u().createElement(a,{className:i,onClick:e=>this.foundation.handleClick(o,e),href:e},s)},this.foundation=new Hi(this.adapter)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const{active:e,shouldRenderSeparator:t}=this.props,n=e?{"aria-current":"page"}:{},r=this.renderItem(),i=this.props.separator||u().createElement("span",{className:`${Ui}-separator`},this.context.separator),s=x()({[`${Ui}-item-wrap`]:!0});return u().createElement("span",Object.assign({className:s},n,this.getDataAttr(this.props)),r,t&&i)}}Wi.isBreadcrumbItem=!0,Wi.contextType=Ki,Wi.propTypes={onClick:C().func,route:C().oneOfType([C().object,C().string]),name:C().string,children:C().node,active:C().bool,shouldRenderSeparator:C().bool,icon:C().node,separator:C().node,noLink:C().bool},Wi.defaultProps={onClick:yt,shouldRenderSeparator:!0};const Gi=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M7 12C7 13.3807 5.88071 14.5 4.5 14.5C3.11929 14.5 2 13.3807 2 12C2 10.6193 3.11929 9.5 4.5 9.5C5.88071 9.5 7 10.6193 7 12Z",fill:"currentColor"}),h.createElement("path",{d:"M14.5 12C14.5 13.3807 13.3807 14.5 12 14.5C10.6193 14.5 9.5 13.3807 9.5 12C9.5 10.6193 10.6193 9.5 12 9.5C13.3807 9.5 14.5 10.6193 14.5 12Z",fill:"currentColor"}),h.createElement("path",{d:"M19.5 14.5C20.8807 14.5 22 13.3807 22 12C22 10.6193 20.8807 9.5 19.5 9.5C18.1193 9.5 17 10.6193 17 12C17 13.3807 18.1193 14.5 19.5 14.5Z",fill:"currentColor"}))}),"more"),qi=Bi.PREFIX;class Yi extends f{constructor(e){super(e),this.handleCollapse=(e,t)=>{const{maxItemCount:n,renderMore:r,moreType:i}=this.props,s=J()(r),a=e.slice(1,t-n+1),o=u().createElement("span",{className:`${qi}-collapse`,key:`more-${t}`},u().createElement("span",{className:`${qi}-item-wrap`},u().createElement("span",{role:"button",tabIndex:0,"aria-label":"Expand breadcrumb items",className:`${qi}-item ${qi}-item-more`,onClick:e=>this.foundation.handleExpand(e),onKeyPress:e=>this.foundation.handleExpandEnterPress(e)},s&&r(a),!s&&"default"===i&&u().createElement(Gi,null),!s&&"popover"===i&&this.renderPopoverMore(a)),u().createElement("span",{className:`${qi}-separator`,"x-semi-prop":"separator"},this.props.separator)));return e.splice(1,t-n,o),e},this.renderRouteItems=(e,t,n)=>{const{renderItem:r,renderMore:i,maxItemCount:s}=this.props,a=e.length-s,o=J()(i),l=e.map(((i,s)=>{const l=i._origin.key||`item-${i.name||i.path}-${s}`,c=s>0&&s<=a;return u().createElement(Wi,Object.assign({},i,{key:l,active:void 0!==this.props.activeIndex?this.props.activeIndex===s:s===e.length-1,route:i._origin,shouldRenderSeparator:s!==e.length-1&&!(t&&(o||n)&&c)}),r?r(i._origin):i.name)}));return l},this.renderList=()=>{const{routes:e,children:t,autoCollapse:n,maxItemCount:r,renderMore:i,moreType:s}=this.props,{isCollapsed:a}=this.state,o=e&&e.length>0,l=o?this.foundation.genRoutes(e):u().Children.toArray(t);let c;const h=l.length,d=h-r,p=l&&n&&h>r&&a,f=J()(i),m="popover"===s;return c=o?this.renderRouteItems(l,p,m):l.map(((e,t)=>{const n=t>0&&t<=d;return e?(ye(e.type&&!e.type.isBreadcrumbItem,"[Semi Breadcrumb]: Only accepts Breadcrumb.Item as its children"),u().cloneElement(e,{key:`${t}-item`,active:void 0!==this.props.activeIndex?this.props.activeIndex===t:t===l.length-1,shouldRenderSeparator:t!==l.length-1&&!(p&&(f||m)&&n)})):e})),p?this.handleCollapse(c,l.length):c},this.onClick=(e,t)=>{this.foundation.handleClick(e,t)},this.foundation=new zi(this.adapter),this.state={isCollapsed:!0},this.onClick=this.onClick.bind(this)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyClick:function(){e.props.onClick(...arguments)},expandCollapsed:()=>this.setState({isCollapsed:!1})})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}renderPopoverMore(e){const{separator:t}=this.props,n=u().createElement(u().Fragment,null,e.map(((n,r)=>u().createElement(u().Fragment,{key:`restItem-${r}`},n,r!==e.length-1&&u().createElement("span",{className:`${qi}-restItem`},t)))));return u().createElement(pn,{content:n,style:{padding:12},showArrow:!0},u().createElement(Gi,null))}render(){const e=this.renderList(),{compact:t,className:n,style:r,separator:i,showTooltip:s}=this.props,a=x()(n,{[`${qi}-wrapper`]:!0,[`${qi}-wrapper-compact`]:t,[`${qi}-wrapper-loose`]:!t});return u().createElement(Ki.Provider,{value:{onClick:this.onClick,showTooltip:s,compact:t,separator:i}},u().createElement("nav",Object.assign({"aria-label":this.props["aria-label"],className:a,style:r},this.getDataAttr(this.props)),e))}}Yi.contextType=Ki,Yi.Item=Wi,Yi.propTypes={activeIndex:C().number,routes:C().array,onClick:C().func,separator:C().node,compact:C().bool,children:C().node,style:C().object,renderItem:C().func,showTooltip:C().oneOfType([C().shape({width:C().oneOfType([C().string,C().number]),ellipsisPos:C().oneOf(["end","middle"]),opts:C().object}),C().bool]),className:C().string,autoCollapse:C().bool,maxItemCount:C().number,renderMore:C().func,moreType:C().oneOf(["default","popover"]),"aria-label":C().string},Yi.defaultProps={routes:[],onClick:yt,renderItem:void 0,separator:"/",compact:!0,showTooltip:{width:150,ellipsisPos:"end"},autoCollapse:!0,moreType:"default",maxItemCount:4,"aria-label":"Breadcrumb"};const Xi=Yi;class Zi extends u().PureComponent{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}render(){const e=Object.assign({},this.props),t=Boolean(e.icon),n=Boolean(e.loading),r=Boolean(e.disabled);return t||n&&!r?u().createElement(bi,Object.assign({},e)):u().createElement(mi,Object.assign({},e))}}Zi.__SemiComponentName__="Button",Zi.propTypes=Object.assign(Object.assign({},mi.propTypes),bi.propTypes),Zi.defaultProps=Xe(Zi.__SemiComponentName__),Zi.elementType="Button";const Ji=Zi;var Qi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const es=ci.PREFIX,ts=hi.sizes;class ns extends f{getInnerWithLine(e){const t=[];return e.length>1?(e.slice(0,-1).forEach(((e,n)=>{const r="Button"===a()(e,"type.elementType"),i=a()(e,"props"),{type:s,theme:o,disabled:l}=null!=i?i:{};if(r&&"outline"!==o){const r=x()(`${es}-group-line`,`${es}-group-line-${null!=o?o:"light"}`,`${es}-group-line-${null!=s?s:"primary"}`,{[`${es}-group-line-disabled`]:l});t.push(e,u().createElement("span",{className:r,key:`line-${n}`}))}else t.push(e)})),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:n,size:r,type:i,className:s,style:a,"aria-label":o}=e,l=Qi(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const p=x()(`${es}-group`,s);return t&&(c=(Array.isArray(t)?t:[t]).map(((e,t)=>{var s;return(0,h.isValidElement)(e)?(0,h.cloneElement)(e,Object.assign(Object.assign(Object.assign({disabled:n,size:r,type:i},e.props),l),{key:null!==(s=e.key)&&void 0!==s?s:t})):e})),d=this.getInnerWithLine(c)),u().createElement("div",{className:p,style:a,role:"group","aria-label":o},d)}}function rs(e){Et(1,arguments);var t=_t(e);return t.setHours(0,0,0,0),t}function is(e,t){Et(2,arguments);var n=rs(e),r=rs(t);return n.getTime()===r.getTime()}function ss(e){return Et(1,arguments),e instanceof Date||"object"===St(e)&&"[object Date]"===Object.prototype.toString.call(e)}function as(e){if(Et(1,arguments),!ss(e)&&"number"!=typeof e)return!1;var t=_t(e);return!isNaN(Number(t))}function os(e,t){Et(2,arguments);var n=_t(e).getTime(),r=kt(t);return new Date(n+r)}function ls(e,t){return Et(2,arguments),os(e,-kt(t))}ns.propTypes={children:C().node,disabled:C().bool,type:C().string,size:C().oneOf(ts),theme:C().oneOf(hi.themes),"aria-label":C().string},ns.defaultProps={size:"default"};function cs(e){Et(1,arguments);var t=_t(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function hs(e){Et(1,arguments);var t=_t(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=cs(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=cs(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var us=6048e5;function ds(e){Et(1,arguments);var t=_t(e),n=cs(t).getTime()-function(e){Et(1,arguments);var t=hs(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),cs(n)}(t).getTime();return Math.round(n/us)+1}function ps(e,t){var n,r,i,s,a,o,l,c;Et(1,arguments);var h=_t(e),u=h.getUTCFullYear(),d=Ot(),p=kt(null!==(n=null!==(r=null!==(i=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(a=t.locale)||void 0===a||null===(o=a.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==i?i:d.firstWeekContainsDate)&&void 0!==r?r:null===(l=d.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(u+1,0,p),f.setUTCHours(0,0,0,0);var m=Tt(f,t),g=new Date(0);g.setUTCFullYear(u,0,p),g.setUTCHours(0,0,0,0);var y=Tt(g,t);return h.getTime()>=m.getTime()?u+1:h.getTime()>=y.getTime()?u:u-1}var fs=6048e5;function ms(e,t){Et(1,arguments);var n=_t(e),r=Tt(n,t).getTime()-function(e,t){var n,r,i,s,a,o,l,c;Et(1,arguments);var h=Ot(),u=kt(null!==(n=null!==(r=null!==(i=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t||null===(a=t.locale)||void 0===a||null===(o=a.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),d=ps(e,t),p=new Date(0);return p.setUTCFullYear(d,0,u),p.setUTCHours(0,0,0,0),Tt(p,t)}(n,t).getTime();return Math.round(r/fs)+1}function gs(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var ys={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return gs("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):gs(n+1,2)},d:function(e,t){return gs(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return gs(e.getUTCHours()%12||12,t.length)},H:function(e,t){return gs(e.getUTCHours(),t.length)},m:function(e,t){return gs(e.getUTCMinutes(),t.length)},s:function(e,t){return gs(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return gs(Math.floor(r*Math.pow(10,n-3)),t.length)}};const vs=ys;var bs="midnight",xs="noon",ws="morning",Cs="afternoon",Es="evening",Ss="night",_s={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return vs.y(e,t)},Y:function(e,t,n,r){var i=ps(e,r),s=i>0?i:1-i;return"YY"===t?gs(s%100,2):"Yo"===t?n.ordinalNumber(s,{unit:"year"}):gs(s,t.length)},R:function(e,t){return gs(hs(e),t.length)},u:function(e,t){return gs(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return gs(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return gs(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return vs.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return gs(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=ms(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):gs(i,t.length)},I:function(e,t,n){var r=ds(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):gs(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):vs.d(e,t)},D:function(e,t,n){var r=function(e){Et(1,arguments);var t=_t(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):gs(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return gs(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return gs(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return gs(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?xs:0===i?bs:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?Es:i>=12?Cs:i>=4?ws:Ss,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return vs.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):vs.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):gs(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):gs(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):vs.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):vs.s(e,t)},S:function(e,t){return vs.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return Ps(i);case"XXXX":case"XX":return Os(i);default:return Os(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ps(i);case"xxxx":case"xx":return Os(i);default:return Os(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ks(i,":");default:return"GMT"+Os(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ks(i,":");default:return"GMT"+Os(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return gs(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return gs((r._originalDate||e).getTime(),t.length)}};function ks(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=r%60;if(0===s)return n+String(i);var a=t||"";return n+String(i)+a+gs(s,2)}function Ps(e,t){return e%60==0?(e>0?"-":"+")+gs(Math.abs(e)/60,2):Os(e,t)}function Os(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+gs(Math.floor(i/60),2)+n+gs(i%60,2)}const Ts=_s;var Is=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Ds=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},As={p:Ds,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return Is(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Is(i,t)).replace("{{time}}",Ds(s,t))}};const Rs=As;function Ns(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Ms=["D","DD"],Fs=["YY","YYYY"];function Ls(e){return-1!==Ms.indexOf(e)}function js(e){return-1!==Fs.indexOf(e)}function Vs(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var $s={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const Bs=function(e,t,n){var r,i=$s[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const zs={date:wt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:wt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:wt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Hs={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const Ks=function(e,t,n,r){return Hs[e]};var Us={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Rt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Rt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Rt({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Rt({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Rt({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const Ws=Us;var Gs={ordinalNumber:Lt({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:Ft({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ft({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ft({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ft({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ft({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const qs={code:"en-US",formatDistance:Bs,formatLong:zs,formatRelative:Ks,localize:Ws,match:Gs,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Ys=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xs=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zs=/^'([^]*?)'?$/,Js=/''/g,Qs=/[a-zA-Z]/;function ea(e,t,n){var r,i,s,a,o,l,c,h,u,d,p,f,m,g,y,v,b,x;Et(2,arguments);var w=String(t),C=Ot(),E=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:C.locale)&&void 0!==r?r:qs,S=kt(null!==(s=null!==(a=null!==(o=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(h=c.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:C.firstWeekContainsDate)&&void 0!==a?a:null===(u=C.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==s?s:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=kt(null!==(p=null!==(f=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(y=n.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:C.weekStartsOn)&&void 0!==f?f:null===(b=C.locale)||void 0===b||null===(x=b.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==p?p:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var k=_t(e);if(!as(k))throw new RangeError("Invalid time value");var P=ls(k,Ns(k)),O={firstWeekContainsDate:S,weekStartsOn:_,locale:E,_originalDate:k},T=w.match(Xs).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Rs[t])(e,E.formatLong):e})).join("").match(Ys).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(Zs);if(!t)return e;return t[1].replace(Js,"'")}(r);var s=Ts[i];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!js(r)||Vs(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!Ls(r)||Vs(r,t,String(e)),s(P,r,E.localize,O);if(i.match(Qs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return T}function ta(e,t){Et(2,arguments);var n=rs(e),r=rs(t),i=n.getTime()-Ns(n),s=r.getTime()-Ns(r);return Math.round((i-s)/864e5)}function na(e){Et(1,arguments);var t=_t(e);return t.setDate(1),t.setHours(0,0,0,0),t}function ra(e,t){var n,r,i,s,a,o,l,c;Et(1,arguments);var h=Ot(),u=kt(null!==(n=null!==(r=null!==(i=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(a=t.locale)||void 0===a||null===(o=a.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==i?i:h.weekStartsOn)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=_t(e),p=d.getDay(),f=(p<u?7:0)+p-u;return d.setDate(d.getDate()-f),d.setHours(0,0,0,0),d}var ia=6048e5;function sa(e){Et(1,arguments);var t=_t(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function aa(e,t){return Et(1,arguments),function(e,t,n){Et(2,arguments);var r=ra(e,n),i=ra(t,n),s=r.getTime()-Ns(r),a=i.getTime()-Ns(i);return Math.round((s-a)/ia)}(sa(e),na(e),t)+1}function oa(e,t){Et(2,arguments);var n=_t(e),r=kt(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function la(e,t){Et(2,arguments);var n=_t(e),r=_t(t);return n.getTime()<r.getTime()}function ca(e,t){Et(2,arguments);var n=_t(e),r=_t(t);return n.getTime()>r.getTime()}function ha(e,t){Et(2,arguments);var n=_t(e),r=_t(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function ua(e,t){var n,r,i,s,a,o,l,c;Et(1,arguments);var h=Ot(),u=kt(null!==(n=null!==(r=null!==(i=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(a=t.locale)||void 0===a||null===(o=a.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==i?i:h.weekStartsOn)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=function(e){return Et(1,arguments),_t(e).getDate()}(e);if(isNaN(d))return NaN;var p=function(e){return Et(1,arguments),_t(e).getDay()}(na(e)),f=u-p;f<=0&&(f+=7);var m=d-f;return Math.ceil(m/7)+1}function da(e,t,n){Et(2,arguments);var r=ra(e,n),i=ra(t,n);return r.getTime()===i.getTime()}function pa(e){return Et(1,arguments),_t(e).getHours()}function fa(e,t){return Et(2,arguments),os(e,36e5*kt(t))}function ma(e){Et(1,arguments);var t=_t(e);return t.setHours(23,59,59,999),t}Math.pow(10,8);var ga=6e4,ya=36e5;var va={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},ba="trunc";function xa(e,t,n){Et(2,arguments);var r=function(e,t){return Et(2,arguments),_t(e).getTime()-_t(t).getTime()}(e,t)/ya;return function(e){return e?va[e]:va[ba]}(null==n?void 0:n.roundingMethod)(r)}function wa(e,t){var n,r,i,s,a,o,l,c;Et(1,arguments);var h=Ot(),u=kt(null!==(n=null!==(r=null!==(i=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(a=t.locale)||void 0===a||null===(o=a.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==i?i:h.weekStartsOn)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=_t(e),p=d.getDay(),f=6+(p<u?-7:0)-(p-u);return d.setDate(d.getDate()+f),d.setHours(23,59,59,999),d}const Ca=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const s=Object.assign({},e);return s.date=t,n&&(s.start=n),r&&(s.end=r),s.allDay=i,s},Ea=(e,t,n)=>{const r=_t(e),i=_t(t),s=_t(n);return r.getTime()<s.getTime()&&r.getTime()>=i.getTime()},Sa=(e,t)=>la(new Date(e),new Date(t))?-1:1,_a=e=>function(e){Et(1,arguments);var t=_t(e).getDay();return 0===t||6===t}(e),ka=()=>new Date,Pa=e=>Math.round(1e3*e)/1e3,Oa=e=>(60*(60*pa(e)+function(e){return Et(1,arguments),_t(e).getMinutes()}(e))+function(e){return Et(1,arguments),_t(e).getSeconds()}(e))/86400,Ta=e=>"allDay"in e&&e.allDay,Ia=e=>{const{start:t,end:n}=e;if(t||n)return t?e.end=is(t,fa(t,1))?fa(t,1):ma(t):e.start=is(n,fa(n,-1))?fa(n,-1):rs(n),e},Da=e=>{const t=e.map((e=>e.topInd));return t.length?Math.max(...t)+1:1},Aa=(e,t,n,r,i,s)=>{const a=ka(),o=[];return[...Array(n).keys()].map((n=>{const l={},c=oa(t,n);l.ind=n,l.date=c,l.dayString=ea(c,"d",{locale:i,weekStartsOn:s}),l.weekday=ea(c,"EEE",{locale:i,weekStartsOn:s}),l.isToday=is(c,a),l.isWeekend=_a(c),"month"===r&&(l.isSameMonth=ha(e,c),l.month=ea(c,"LLL",{locale:i})),o.push(l)})),o},Ra=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"week",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const s=ra(e,{weekStartsOn:i});return Aa(t||e,s,7,n,r,i)},Na=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=[],{start:i,end:s}=e;if(i&&s){const n=ta(s,i);[...Array(n+1).keys()].map((n=>{r.push(Ca(e,oa(i,n),null,null,t))}))}else{const a=i||s||n;r.push(Ca(e,rs(a),null,null,t))}return r},Ma=(e,t,n,r)=>{const i=new Map;return e.forEach((e=>{let s;s=t in e?e[t]:rs(r);const a=n?n(s).toString():s.toString();i.has(a)?i.get(a).push(e):i.set(a,[e])})),i},Fa=(e,t,n)=>{const r=new Map;return[...e.keys()].map((i=>{const s=e.get(i),a=new Date(i);if(Ea(a,t,n))r.has(i)?r.set(i,[...r.get(i),...s]):r.set(i,s);else if(la(n,a));else{const e=s.filter((e=>!e.end||!la(e.end,t))),n=t.toString();r.has(n)?r.set(n,[...r.get(n),...e]):r.set(n,s)}})),r},La=(e,t,n,r,i)=>{const s=ta(r,n);return e.sort(((e,t)=>Sa(e.start,t.start))).forEach((e=>{const a=Object.assign({},e),{end:o}=e;let l;const c=ta(t,n);let h=0;for(;Boolean(i[h])&&Boolean(i[h][c]);)h++;l=o?Ea(o,n,r)?ta(o,t):ta(r,t):0,a.leftPos=Pa(Number(c)/s),a.width=Math.min(1-Pa(Number(c)/s),Pa(1*(l+1)/s)),a.topInd=h,[...Array(l+1).keys()].forEach((t=>{i[h]||(i[h]=[]),i[h][c+t]=t>0?e:a}))})),i};class ja extends c{constructor(e){super(Object.assign({},e))}init(){}destroy(){this.raf&&cancelAnimationFrame(this.raf)}initCurrTime(){const{showCurrTime:e,displayValue:t}=this.getProps();e&&is(t,ka())&&(this._adapter.updateShowCurrTime(),this.getCurrLocation())}notifyScrollHeight(e){this._adapter.updateScrollHeight(e)}closeCard(e,t){this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyClose(e,t)}_getDate(){const{displayValue:e}=this.getProps();return e||ka()}showCard(e,t){this._adapter.unregisterClickOutsideHandler();const n=document.querySelector("body").clientWidth-e.target.getBoundingClientRect().right-110;this._adapter.openCard(t,n>0),this._adapter.registerClickOutsideHandler(t,(()=>{this.closeCard(null,t)}))}formatCbValue(e){const t=e.shift(),n=[t.getFullYear(),t.getMonth(),t.getDate(),...e];return new Date(...n)}getCurrLocation(){let e=null,t=Oa(ka());this._adapter.updateCurrPos(Pa(t));const n=()=>{const r=Date.now();e||(e=r);r-e>3e4&&(t=Oa(ka()),this._adapter.updateCurrPos(Pa(t)),e=r),this.raf=requestAnimationFrame(n)};this.raf=requestAnimationFrame(n)}getWeeklyData(e,t){const n={},{weekStartsOn:r}=this.getProps();return n.month=ea(e,"LLL",{locale:t,weekStartsOn:r}),n.week=Ra(e,null,"week",t,r),this._adapter.setWeeklyData(n),n}getRangeData(e,t){const n={},{range:r,weekStartsOn:i}=this.getProps(),s=ta(r[1],r[0]);n.month=ea(e,"LLL",{locale:t,weekStartsOn:i});const a=rs(r[0]);return n.week=Aa(e,a,s,"week",t,i),this._adapter.setRangeData(n),n}getMonthlyData(e,t){const n=na(e),r={},{weekStartsOn:i}=this.getProps(),s=aa(e,{weekStartsOn:i});return[...Array(s).keys()].map((e=>{r[e]=Ra(oa(n,7*e),n,"month",t,i)})),this._adapter.setMonthlyData(r),r}_parseEvents(e){const t={allDay:[],day:[]};return e.map((e=>(e=>{const{start:t,end:n}=e;let r=[];if(Ta(e))return Na(e);if(t&&n)la(t,n)||([e.start,e.end]=[e.end,e.start]),is(t,n)?r.push(Ca(e,rs(t))):Math.abs(xa(t,n))<24?(r.push(Ca(e,rs(t),null,ma(t))),r.push(Ca(e,rs(n),rs(n)))):r=r.concat(Na(e));else{const t=Ia(e);r.push(Ca(t,rs(t.start)))}return r})(e))).forEach((e=>{e.forEach((e=>{e.allDay?t.allDay.push(e):t.day.push(e)}))})),t}getParseDailyEvents(e,t){t||(t=this._getDate());const n=this._parseEvents(e),{displayValue:r}=this.getProps(),i=rs(t).toString();n.allDay=Ma(n.allDay,"date",rs,r).get(i),n.day=Ma(n.day,"date",null,r).get(i),n.allDay||(n.allDay=[]),n.day||(n.day=[]),n.day=n.day.map((e=>(e=>{let t,n,{start:r,end:i,allDay:s,children:a}=e;if(Ta(e))t=0,n=0;else if(r&&i)la(r,i)||([r,i]=[i,r]),t=Oa(r),n=Oa(i);else{const r=Ia(e);n=Oa(r.end),t=Oa(r.start)}return{startPos:Pa(t),endPos:Pa(n),children:a,allDay:Boolean(s)}})(e)));const s=n.day.reduce(((e,t)=>{const n=`${t.startPos}-${t.endPos}`;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),a={};return n.day=n.day.map((e=>{const t=`${e.startPos}-${e.endPos}`;let n=a[t];return a[t]=void 0===n?0:++n,e.left=0!==n?n/s[t].length*100+"%":0,e})),n}parseDailyEvents(){const{events:e,displayValue:t}=this.getProps(),n=this.getParseDailyEvents(e,t);this._adapter.setParsedEvents(n),this._adapter.cacheEventKeys(e.map((e=>e.key)))}_parseWeeklyEvents(e,t){const{weekStartsOn:n}=this.getProps();let r=[[]];const i=((e,t,n)=>Fa(e,t,oa(wa(t,{weekStartsOn:n}),1)))(e,t,n);return[...i.keys()].sort(((e,t)=>Sa(e,t))).forEach((e=>{const s=new Date(e),a=i.get(e).filter((e=>is(e.date,s)));r=((e,t,n,r,i)=>La(e,t,n,oa(wa(t,{weekStartsOn:i}),1),r))(a,s,t,r,n)})),r}_renderWeeklyAllDayEvent(e){const t=[];return e.forEach((e=>{const n=e.filter((e=>"leftPos"in e));t.push(...n)})),t}parseWeeklyAllDayEvents(e){const{week:t}=this._adapter.getWeeklyData(),n=t[0].date,r=this._parseWeeklyEvents(e,n);return this._renderWeeklyAllDayEvent(r)}getParsedWeeklyEvents(e){const t=this._parseEvents(e),{displayValue:n}=this.getProps(),r={};return r.allDay=Ma(t.allDay,"start",rs,n),r.day=Ma(t.day,"date",null,n),r}parseWeeklyEvents(){const{events:e}=this.getProps(),t=this.getParsedWeeklyEvents(e);this._adapter.setParsedEvents(t),this._adapter.cacheEventKeys(e.map((e=>e.key)))}pushDayEventIntoWeekMap(e,t,n){t in n?n[t].push(e):n[t]=[e]}convertMapToArray(e,t){const n=[],r=new Map;for(const t of e.entries()){const[e,n]=t;r.set(e,n)}const i=this._parseWeeklyEvents(r,t);return n.push(...i),n}getParseMonthlyEvents(e){const t={},{displayValue:n,events:r,weekStartsOn:i}=this.getProps(),s=this._getDate(),a=na(n),o=function(e){Et(1,arguments);var t=_t(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(n),l=[];return r.sort(((e,t)=>la(e.start,t.start)?-1:ca(e.start,t.start)?1:0)).forEach((e=>{const t=Na(e,e.allDay,s);l.push(...t)})),l.filter((e=>ha(e.date,n))),l.forEach((e=>{if(ha(e.date,n)){const n=ua(e.date,{weekStartsOn:i})-1;this.pushDayEventIntoWeekMap(e,n,t)}else if(la(e.date,a))da(e.date,a,{weekStartsOn:i})&&this.pushDayEventIntoWeekMap(e,0,t);else if(ca(e.date,o)){if(da(e.date,o,{weekStartsOn:i})){const n=ua(o,{weekStartsOn:i})-1;this.pushDayEventIntoWeekMap(e,n,t)}}else;})),Object.keys(t).forEach((e=>{const n=t[e];t[e]={};const r=ra(n[0].date,{weekStartsOn:i}),s=Ma(n,"start",rs),a=this.convertMapToArray(s,r);t[e].day=(e=>{const t={};return e.forEach(((e,n)=>{e.forEach(((e,r)=>{t[r]||(t[r]=[]),t[r][n]=e}))})),t})(a),t[e].display=this._renderDisplayEvents(a)})),t}parseMonthlyEvents(e){const{events:t}=this.getProps(),n=this.getParseMonthlyEvents(e);this._adapter.setParsedEvents(n),this._adapter.setItemLimit(e),this._adapter.cacheEventKeys(t.map((e=>e.key)))}_renderDisplayEvents(e){let t=e.slice();return t.length&&(t=this._renderWeeklyAllDayEvent(t)),t}_parseRangeEvents(e){let t=[[]];const[n,r]=this.getProp("range"),i=Fa(e,n,r);return[...i.keys()].sort(((e,t)=>Sa(e,t))).forEach((e=>{const s=new Date(e),a=i.get(e).filter((e=>is(e.date,s)));t=La(a,s,n,r,t)})),t}_renderRangeAllDayEvent(e){let t=[];return e.forEach((e=>{const n=e.filter((e=>"leftPos"in e));t=[...t,...n]})),t}parseRangeAllDayEvents(e){const t=this._parseRangeEvents(e);return this._renderRangeAllDayEvent(t)}getParsedRangeEvents(e){const t=this._parseEvents(e),[n]=this.getProp("range");return t.allDay=Ma(t.allDay,"start",rs,n),t.day=Ma(t.day,"date",null,n),t}parseRangeEvents(){const{events:e}=this.getProps(),t=this.getParsedRangeEvents(e);this._adapter.setParsedEvents(t),this._adapter.cacheEventKeys(e.map((e=>e.key)))}checkWeekend(e){return _a(e)}}const Va=`${E}-calendar`;__webpack_require__("6JrO");const $a=`${Va}-grid`;function Ba(e){return e<10?`0${e.toString()}`:e.toString()}class za extends f{constructor(e){super(e),this.renderEvents=()=>{const{events:e,scrollHeight:t,minEventHeight:n}=this.props,r=e.map(((e,r)=>{const{startPos:i,endPos:s,children:a,key:o,left:l=0}=e,c=i*t,h=(s-i)*t,d={top:`${c}px`,height:`${Math.max(n,h)}px`,left:l};return u().createElement("li",{className:`${Va}-event-item ${Va}-event-day`,style:d,key:o||`${c}-${r}`},a)}));return r},this.renderCurrTime=()=>{const{currPos:e}=this.state,{scrollHeight:t}=this.props,n=e,r={top:e*t},i=u().createElement("div",{className:`${$a}-curr-circle`,style:r}),s=u().createElement("div",{className:`${$a}-curr-line`,style:r});return u().createElement(u().Fragment,{key:n},i,s)},this.handleClick=(e,t)=>{this.props.handleClick(e,t)},this.renderGrid=()=>{const e=!!this.props.showCurrTime&&this.state.showCurrTime,{displayValue:t,isWeekend:n,dateGridRender:r}=this.props,i=x()(`${$a}-skeleton`,{[`${Va}-weekend`]:n});return u().createElement("div",{className:`${$a}`,role:"presentation"},u().createElement("div",{role:"gridcell",className:`${$a}-content`},e?this.renderCurrTime():null,u().createElement("ul",{role:"row",className:i},[...Array(25).keys()].map((e=>{const n=x()({[`${$a}-skeleton-row-line`]:!0});return u().createElement(u().Fragment,{key:`${e}-daycol`},u().createElement("li",{"data-time":`${Ba(e)}:00:00`,className:n,onClick:n=>this.handleClick(n,[t,e,0,0])}),u().createElement("li",{"data-time":`${Ba(e)}:30:00`,onClick:n=>this.handleClick(n,[t,e,30,0])}))}))),r&&r(t.toString(),t),u().createElement("ul",{className:`${Va}-event-items`},this.renderEvents())))},this.state={currPos:0,showCurrTime:!1},this.foundation=new ja(this.adapter)}componentDidMount(){this.foundation.init(),this.foundation.initCurrTime()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateCurrPos:e=>{this.setState({currPos:e})},updateShowCurrTime:()=>{this.setState({showCurrTime:!0})}})}render(){return this.renderGrid()}}za.propTypes={events:C().array,displayValue:C().instanceOf(Date),showCurrTime:C().bool,scrollHeight:C().number,currPos:C().number,handleClick:C().func,mode:C().string,minEventHeight:C().number,isWeekend:C().bool,dateGridRender:C().func},za.defaultProps={events:[],showCurrTime:!0,scrollHeight:0,currPos:0,mode:"dayCol",minEventHeight:Number.MIN_SAFE_INTEGER},za.contextType=vt;const Ha=`${Va}-time`;class Ka extends h.PureComponent{formatTime(e){const{renderTimeDisplay:t}=this.props;if("function"==typeof t)return t(e);{const t=(e,t)=>e.replace("${time}",String(t));return u().createElement(Bt,{componentName:"Calendar",key:`locale-${e}`},(n=>{let r=e<12?t(n.AM,e):t(n.PM,e-12);return 12===e&&(r=t(n.PM,e)),r}))}}renderTime(){const{className:e}=this.props,t=x()(e,`${Ha}`),n=[...Array(24).keys()].map((e=>this.formatTime(e)));n.splice(0,1,"");const r=n.map(((e,t)=>u().createElement("li",{key:`time-${t}`,className:`${Ha}-item`},u().createElement("span",null,e))));return u().createElement("div",{className:t},u().createElement("ul",{className:`${Ha}-items`},r))}render(){return this.renderTime()}}Ka.propTypes={className:C().string,renderTimeDisplay:C().func},Ka.contextType=vt;const Ua=`${Va}-day`;class Wa extends f{constructor(e){super(e),this.checkWeekend=e=>this.foundation.checkWeekend(e),this.renderAllDayEvents=e=>{if(this.props.allDayEventsRender)return this.props.allDayEventsRender(this.props.events);const t=e.map(((e,t)=>{const{children:n,key:r}=e;return u().createElement("li",{className:`${Va}-event-item ${Va}-event-allday`,key:r||`allDay-${t}`},n)}));return t},this.handleClick=(e,t)=>{const{onClick:n}=this.props,r=this.foundation.formatCbValue(t);n&&n(e,r)},this.renderAllDay=e=>{const t=`${Va}-all-day`,n=x()(`${t}-content`,{[`${Va}-weekend`]:this.isWeekend});return u().createElement(Bt,{componentName:"Calendar"},(r=>u().createElement("div",{className:`${t}`},u().createElement("ul",{className:`${Va}-tag ${t}-tag ${Ua}-sticky-left`},u().createElement("span",null,r.allDay)),u().createElement("div",{role:"gridcell",className:n},u().createElement("ul",{className:`${Va}-event-items`},this.renderAllDayEvents(e))))))},this.foundation=new ja(this.adapter),this.state={scrollHeight:0,parsedEvents:{day:[],allDay:[]},cachedKeys:[]},this.dom=u().createRef(),this.scrollDom=u().createRef(),this.isWeekend=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateScrollHeight:e=>{this.setState({scrollHeight:e})},setParsedEvents:e=>{this.setState({parsedEvents:e})},cacheEventKeys:e=>{this.setState({cachedKeys:e})}})}componentDidMount(){this.foundation.init();const{scrollHeight:e}=this.scrollDom.current;this.dom.current.scrollTop=this.props.scrollTop,this.foundation.notifyScrollHeight(e),this.foundation.parseDailyEvents()}componentDidUpdate(e,t){const n=t.cachedKeys,r=this.props.events.map((e=>e.key));he()(n,r)&&he()(e.displayValue,this.props.displayValue)||this.foundation.parseDailyEvents()}componentWillUnmount(){this.foundation.destroy()}render(){const{dateGridRender:e,displayValue:t,showCurrTime:n,renderTimeDisplay:r,markWeekend:i,className:s,height:a,width:o,style:l,header:c,minEventHeight:h}=this.props,d=x()(Ua,s),p=Object.assign({height:a,width:o},l),{parsedEvents:f,scrollHeight:m}=this.state;return this.isWeekend=i&&this.checkWeekend(t),u().createElement("div",Object.assign({className:d,style:p,ref:this.dom},this.getDataAttr(this.props)),u().createElement("div",{className:`${Ua}-sticky-top`},c,this.renderAllDay(f.allDay)),u().createElement("div",{className:`${Ua}-scroll-wrapper`},u().createElement("div",{className:`${Ua}-scroll`,ref:this.scrollDom},u().createElement(Ka,{className:`${Ua}-sticky-left`,renderTimeDisplay:r}),u().createElement(za,{events:f.day,displayValue:t,scrollHeight:m,handleClick:this.handleClick,showCurrTime:n,isWeekend:this.isWeekend,minEventHeight:h,dateGridRender:e}))))}}Wa.propTypes={displayValue:C().instanceOf(Date),events:C().array,header:C().node,showCurrTime:C().bool,onClick:C().func,mode:C().string,renderTimeDisplay:C().func,markWeekend:C().bool,minEventHeight:C().number,scrollTop:C().number,width:C().oneOfType([C().number,C().string]),height:C().oneOfType([C().number,C().string]),style:C().object,className:C().string,dateGridRender:C().func,allDayEventsRender:C().func},Wa.defaultProps={events:[],displayValue:new Date,mode:"day"},Wa.contextType=vt;const Ga=e=>`${e<1?100*e:100}%`,qa=`${Va}-week`,Ya=`${Va}-all-day`;class Xa extends f{constructor(e){super(e),this.checkWeekend=e=>this.foundation.checkWeekend(e),this.handleClick=(e,t)=>{const{onClick:n}=this.props,r=this.foundation.formatCbValue(t);n&&n(e,r)},this.renderDayGrid=()=>{const{parsedEvents:e}=this.state,t=e.day,{week:n}=this.weeklyData,{markWeekend:r,dateGridRender:i,minEventHeight:s}=this.props;return n.map((e=>{const n=e.date.toString(),a=t.has(n)?t.get(n):[],o=this.foundation.getParseDailyEvents(a,e.date);return u().createElement(za,{key:`${n}-weekday`,displayValue:e.date,scrollHeight:this.state.scrollHeight,handleClick:this.handleClick,events:o.day,showCurrTime:this.props.showCurrTime,isWeekend:r&&e.isWeekend,dateGridRender:i,minEventHeight:s})}))},this.renderHeader=e=>{const{markWeekend:t,displayValue:n,renderDateDisplay:r}=this.props,{month:i,week:s}=this.foundation.getWeeklyData(n,e);return u().createElement("div",{className:`${qa}-header`},u().createElement("ul",{className:`${Va}-tag ${qa}-tag ${qa}-sticky-left`},u().createElement("span",null,i)),u().createElement("div",{role:"gridcell",className:`${qa}-grid`},u().createElement("ul",{className:`${qa}-grid-row`},s.map((e=>{const{date:n,dayString:i,weekday:s,isToday:a}=e,o=x()({[`${Va}-today`]:a,[`${Va}-weekend`]:t&&e.isWeekend}),l=r?r(n):u().createElement(h.Fragment,null,u().createElement("span",{className:`${Va}-today-date`},i),u().createElement("span",null,s));return u().createElement("li",{key:`${n.toString()}-weekheader`,className:o},l)})))))},this.renderAllDayEvents=e=>{if(this.props.allDayEventsRender)return this.props.allDayEventsRender(this.props.events);return e.map(((e,t)=>{const{leftPos:n,width:r,topInd:i,children:s,key:a}=e,o=`${i}em`,l={left:Ga(n),width:Ga(r),top:o};return u().createElement("li",{className:`${Va}-event-item ${Va}-event-allday`,key:`allDay-${t}`,style:l},s)}))},this.renderAllDay=e=>{const{allDayEventsRender:t}=this.props,{allDay:n}=this.state.parsedEvents,r=this.foundation.parseWeeklyAllDayEvents(n),i=t?null:{height:`${Da(r)}em`},{markWeekend:s}=this.props,{week:a}=this.weeklyData;return u().createElement("div",{className:`${Ya}`,style:i},u().createElement("ul",{className:`${Va}-tag ${Ya}-tag ${qa}-sticky-left`},u().createElement("span",null,e.allDay)),u().createElement("div",{role:"gridcell",className:`${Va}-content ${Ya}-content`},u().createElement("ul",{className:`${Ya}-skeleton`},Object.keys(a).map(((e,t)=>{const n=x()({[`${Va}-weekend`]:s&&a[e].isWeekend});return u().createElement("li",{key:`${e}-weekgrid`,className:n})}))),u().createElement("ul",{className:`${Va}-event-items`},this.renderAllDayEvents(r))))},this.state={scrollHeight:0,parsedEvents:{day:new Map,allDay:new Map},cachedKeys:[]},this.foundation=new ja(this.adapter),this.dom=u().createRef(),this.scrollDom=u().createRef(),this.handleClick=this.handleClick.bind(this),this.allDayRowHeight=1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setWeeklyData:e=>{this.weeklyData=e},getWeeklyData:()=>this.weeklyData,updateScrollHeight:e=>{this.setState({scrollHeight:e})},setParsedEvents:e=>{this.setState({parsedEvents:e})},cacheEventKeys:e=>{this.setState({cachedKeys:e})}})}componentDidMount(){this.foundation.init();const{scrollHeight:e}=this.scrollDom.current;this.dom.current.scrollTop=this.props.scrollTop,this.foundation.notifyScrollHeight(e),this.foundation.parseWeeklyEvents()}componentDidUpdate(e,t){const n=t.cachedKeys,r=this.props.events.map((e=>e.key));he()(n,r)&&he()(e.displayValue,this.props.displayValue)||this.foundation.parseWeeklyEvents()}componentWillUnmount(){this.foundation.destroy()}render(){const{renderTimeDisplay:e,className:t,height:n,width:r,style:i,header:s}=this.props,a=x()(qa,t),o=Object.assign({height:n,width:r},i);return u().createElement(Bt,{componentName:"Calendar"},((t,n,r)=>u().createElement("div",Object.assign({className:a,style:o,ref:this.dom},this.getDataAttr(this.props)),u().createElement("div",{className:`${qa}-sticky-top`},s,this.renderHeader(r),this.renderAllDay(t)),u().createElement("div",{className:`${qa}-scroll-wrapper`},u().createElement("div",{className:`${qa}-scroll`,ref:this.scrollDom},u().createElement(Ka,{className:`${qa}-sticky-left`,renderTimeDisplay:e}),this.renderDayGrid())))))}}Xa.propTypes={displayValue:C().instanceOf(Date),header:C().node,events:C().array,mode:C().string,showCurrTime:C().bool,markWeekend:C().bool,scrollTop:C().number,renderTimeDisplay:C().func,renderDateDisplay:C().func,dateGridRender:C().func,allDayEventsRender:C().func,width:C().oneOfType([C().number,C().string]),height:C().oneOfType([C().number,C().string]),style:C().object,className:C().string},Xa.defaultProps={displayValue:new Date,events:[],mode:"week"},Xa.contextType=vt;const Za=e=>`${e<1?100*e:100}%`,Ja=`${Va}-month`;class Qa extends f{constructor(e){var t;super(e),t=this,this.calcItemLimit=()=>(this.contentCellHeight=this.cellDom.current.getBoundingClientRect().height,Math.max(0,Math.ceil((this.contentCellHeight-60)/24))),this.handleClick=(e,t)=>{const{onClick:n}=this.props,r=this.foundation.formatCbValue(t);n&&n(e,r)},this.showCard=(e,t)=>{this.foundation.showCard(e,t)},this.renderHeader=e=>{const{markWeekend:t,displayValue:n}=this.props;return this.monthlyData=this.foundation.getMonthlyData(n,e),u().createElement("div",{className:`${Ja}-header`,role:"presentation"},u().createElement("div",{role:"presentation",className:`${Ja}-grid`},u().createElement("ul",{role:"row",className:`${Ja}-grid-row`},this.monthlyData[0].map((e=>{const{weekday:n}=e,r=x()({[`${Va}-weekend`]:t&&e.isWeekend});return u().createElement("li",{role:"columnheader","aria-label":n,key:`${n}-monthheader`,className:r},u().createElement("span",null,n))})))))},this.renderEvents=e=>{const{itemLimit:t}=this.state;if(!e)return;const n=e.map(((e,n)=>{const{leftPos:r,width:i,topInd:s,key:a,children:o}=e,l={left:Za(r),width:Za(i),top:`${s}em`};return s<t?u().createElement("li",{className:`${Va}-event-item ${Va}-event-month`,key:a||`${n}-monthevent`,style:l},o):null}));return n},this.renderCollapsed=(e,t,n,r)=>{const{itemLimit:i,showCard:s}=this.state,{weekday:a,dayString:o,date:l}=t,c=l.toString(),h=e.filter((e=>Boolean(e))).length-i,d=`${Ja}-event-card`,p=h>0,f=u().createElement(bi,{className:`${d}-close`,onClick:e=>this.closeCard(e,c),type:"tertiary",icon:u().createElement(Ri,null),theme:"borderless",size:"small"}),m=u().createElement("div",{className:`${d}-header-info`},u().createElement("div",{className:`${d}-header-info-weekday`},a),u().createElement("div",{className:`${d}-header-info-date`},o)),g=u().createElement("div",{className:d},u().createElement("div",{className:`${d}-content`},u().createElement("div",{className:`${d}-header`},m,f),u().createElement("div",{className:`${d}-body`},u().createElement("ul",{className:`${d}-list`},e.map((e=>u().createElement("li",{key:e.key||`${e.start.toString()}-event`},e.children))))))),y=s&&s[c]?s[c][1]:"leftTopOver",v=u().createElement(Bt,{componentName:"Calendar"},(e=>u().createElement("div",{className:`${d}-wrapper`,style:{bottom:0},onClick:e=>this.showCard(e,c)},e.remaining.replace("${remained}",String(h)))));return u().createElement(pn,{key:`${l.valueOf()}`,content:g,position:y,trigger:"custom",visible:s&&s[c]&&s[c][0],ref:e=>this.cardRef.set(c,e)},u().createElement("li",{key:l,className:n,onClick:e=>this.handleClick(e,[l])},this.formatDayString(l,r,o),p?v:null,this.renderCusDateGrid(l)))},this.formatDayString=(e,t,n)=>{const{renderDateDisplay:r}=this.props;return r?r(e):"1"===n?u().createElement(Bt,{componentName:"Calendar"},((e,r)=>u().createElement("span",{className:`${Ja}-date`},t,u().createElement("span",{className:`${Va}-today-date`}," ",n),e.datestring))):u().createElement("span",{className:`${Ja}-date`},u().createElement("span",{className:`${Va}-today-date`},n))},this.renderCusDateGrid=e=>{const{dateGridRender:t}=this.props;return t?t(e.toString(),e):null},this.renderWeekRow=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{markWeekend:i}=t.props,{itemLimit:s}=t.state,{display:a,day:o}=r;return u().createElement("div",{role:"presentation",className:`${Ja}-weekrow`,ref:t.cellDom,key:`${e}-weekrow`},u().createElement("ul",{role:"row",className:`${Ja}-skeleton`},n.map((e=>{const{date:n,dayString:r,isToday:a,isSameMonth:l,isWeekend:c,month:h,ind:d}=e,p=x()({[`${Va}-today`]:a,[`${Va}-weekend`]:i&&c,[`${Ja}-same`]:l}),f=Boolean(o&&o[d]&&o[d].length>s),m=u().createElement("li",{role:"gridcell","aria-label":n.toLocaleDateString(),"aria-current":!!a&&"date",key:`${n}-weeksk`,className:p,onClick:e=>t.handleClick(e,[n])},t.formatDayString(n,h,r),t.renderCusDateGrid(n));return f?t.renderCollapsed(o[d],e,p,h):m}))),u().createElement("ul",{className:`${Va}-event-items`},a?t.renderEvents(a):null))},this.renderMonthGrid=()=>{const{parsedEvents:e}=this.state;return u().createElement("div",{role:"presentation",className:`${Ja}-week`},u().createElement("ul",{role:"presentation",className:`${Ja}-grid-col`},Object.keys(this.monthlyData).map((t=>this.renderWeekRow(t,this.monthlyData[t],e[t])))))},this.state={itemLimit:0,showCard:{},parsedEvents:{},cachedKeys:[]},this.cellDom=u().createRef(),this.foundation=new ja(this.adapter),this.handleClick=this.handleClick.bind(this),this.cardRef=new Map}get adapter(){return Object.assign(Object.assign({},super.adapter),{registerClickOutsideHandler:(e,t)=>{const n=n=>{const r=this.cardRef&&this.cardRef.get(e),i=ge().findDOMNode(r),s=n.target,a=n.composedPath&&n.composedPath()||[s];!i||i.contains(s)||a.includes(i)||t()};this.clickOutsideHandler=n,document.addEventListener("mousedown",n,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},setMonthlyData:e=>{this.monthlyData=e},getMonthlyData:()=>this.monthlyData,notifyClose:(e,t)=>{const n={};n[t]=[!1],this.setState((e=>({showCard:Object.assign(Object.assign({},e.showCard),n)}))),this.props.onClose&&this.props.onClose(e)},openCard:(e,t)=>{const n={},r=t?"leftTopOver":"rightTopOver";n[e]=[!0,r],this.setState((e=>({showCard:Object.assign({},n)})))},setParsedEvents:e=>{this.setState({parsedEvents:e})},setItemLimit:e=>{this.setState({itemLimit:e})},cacheEventKeys:e=>{this.setState({cachedKeys:e})}})}componentDidMount(){this.foundation.init();const e=this.calcItemLimit();this.foundation.parseMonthlyEvents(e)}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const n=t.cachedKeys,r=this.props.events.map((e=>e.key));let i=!1,{itemLimit:s}=this.state;e.height!==this.props.height&&(s=this.calcItemLimit(),t.itemLimit!==s&&(i=!0)),he()(n,r)&&!i&&he()(e.displayValue,this.props.displayValue)||this.foundation.parseMonthlyEvents(s)}closeCard(e,t){this.foundation.closeCard(e,t)}render(){const{className:e,height:t,width:n,style:r,header:i}=this.props,s=x()(Ja,e),a=Object.assign({height:t,width:n},r);return u().createElement(Bt,{componentName:"Calendar"},((e,t,n)=>u().createElement("div",Object.assign({role:"grid",className:s,key:this.state.itemLimit,style:a},this.getDataAttr(this.props)),u().createElement("div",{role:"presentation",className:`${Ja}-sticky-top`},i,this.renderHeader(n)),u().createElement("div",{role:"presentation",className:`${Ja}-grid-wrapper`},this.renderMonthGrid()))))}}Qa.propTypes={displayValue:C().instanceOf(Date),header:C().node,events:C().array,mode:C().string,markWeekend:C().bool,width:C().oneOfType([C().number,C().string]),height:C().oneOfType([C().number,C().string]),style:C().object,className:C().string,dateGridRender:C().func,onClick:C().func,onClose:C().func},Qa.defaultProps={displayValue:new Date,events:[],mode:"month"},Qa.contextType=vt;const eo=e=>`${e<1?100*e:100}%`,to=`${Va}-week`,no=`${Va}-all-day`;class ro extends f{constructor(e){super(e),this.handleClick=(e,t)=>{const{onClick:n}=this.props,r=this.foundation.formatCbValue(t);n&&n(e,r)},this.renderDayGrid=()=>{const{parsedEvents:e}=this.state,t=e.day,{week:n}=this.RangeData,{markWeekend:r,dateGridRender:i,minEventHeight:s}=this.props;return n.map((e=>{const n=e.date.toString(),a=t.has(n)?t.get(n):[],o=this.foundation.getParseDailyEvents(a,e.date);return u().createElement(za,{key:`${n}-weekday`,displayValue:e.date,scrollHeight:this.state.scrollHeight,handleClick:this.handleClick,events:o.day,showCurrTime:this.props.showCurrTime,isWeekend:r&&e.isWeekend,dateGridRender:i,minEventHeight:s})}))},this.renderHeader=e=>{const{markWeekend:t,range:n,renderDateDisplay:r}=this.props,{month:i,week:s}=this.foundation.getRangeData(n[0],e);return u().createElement("div",{className:`${to}-header`},u().createElement("ul",{className:`${Va}-tag ${to}-tag ${to}-sticky-left`},u().createElement("span",null,i)),u().createElement("div",{role:"gridcell",className:`${to}-grid`},u().createElement("ul",{className:`${to}-grid-row`},s.map((e=>{const{date:n,dayString:i,weekday:s,isToday:a}=e,o=x()({[`${Va}-today`]:a,[`${Va}-weekend`]:t&&e.isWeekend}),l=r?r(n):u().createElement(h.Fragment,null,u().createElement("span",{className:`${Va}-today-date`},i),u().createElement("span",null,s));return u().createElement("li",{key:`${n.toString()}-weekheader`,className:o},l)})))))},this.renderAllDayEvents=e=>{if(this.props.allDayEventsRender)return this.props.allDayEventsRender(this.props.events);return e.map(((e,t)=>{const{leftPos:n,width:r,topInd:i,children:s}=e,a=`${i}em`,o={left:eo(n),width:eo(r),top:a};return u().createElement("li",{className:`${Va}-event-item ${Va}-event-allday`,key:`allDay-${t}`,style:o},s)}))},this.renderAllDay=e=>{const{allDayEventsRender:t}=this.props,{allDay:n}=this.state.parsedEvents,r=this.foundation.parseRangeAllDayEvents(n),i=t?null:{height:`${Da(r)}em`},{markWeekend:s}=this.props,{week:a}=this.RangeData;return u().createElement("div",{className:`${no}`,style:i},u().createElement("ul",{className:`${Va}-tag ${no}-tag ${to}-sticky-left`},u().createElement("span",null,e.allDay)),u().createElement("div",{role:"gridcell",className:`${Va}-content ${no}-content`},u().createElement("ul",{className:`${no}-skeleton`},Object.keys(a).map(((e,t)=>{const n=x()({[`${Va}-weekend`]:s&&a[e].isWeekend});return u().createElement("li",{key:`${e}-weekgrid`,className:n})}))),u().createElement("ul",{className:`${Va}-event-items`},this.renderAllDayEvents(r))))},this.state={scrollHeight:0,parsedEvents:{day:new Map,allDay:new Map},cachedKeys:[]},this.foundation=new ja(this.adapter),this.dom=u().createRef(),this.scrollDom=u().createRef(),this.handleClick=this.handleClick.bind(this),this.allDayRowHeight=1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setRangeData:e=>{this.RangeData=e},getRangeData:()=>this.RangeData,updateScrollHeight:e=>{this.setState({scrollHeight:e})},setParsedEvents:e=>{this.setState({parsedEvents:e})},cacheEventKeys:e=>{this.setState({cachedKeys:e})}})}componentDidMount(){this.foundation.init();const{scrollHeight:e}=this.scrollDom.current;this.dom.current.scrollTop=this.props.scrollTop,this.foundation.notifyScrollHeight(e),this.foundation.parseRangeEvents()}componentDidUpdate(e,t){const n=t.cachedKeys,r=this.props.events.map((e=>e.key));he()(n,r)&&he()(e.range,this.props.range)||this.foundation.parseRangeEvents()}componentWillUnmount(){this.foundation.destroy()}render(){const{renderTimeDisplay:e,className:t,height:n,width:r,style:i,header:s}=this.props,a=x()(to,t),o=Object.assign({height:n,width:r},i);return u().createElement(Bt,{componentName:"Calendar"},((t,n,r)=>u().createElement("div",Object.assign({className:a,style:o,ref:this.dom},this.getDataAttr(this.props)),u().createElement("div",{className:`${to}-sticky-top`},s,this.renderHeader(r),this.renderAllDay(t)),u().createElement("div",{className:`${to}-scroll-wrapper`},u().createElement("div",{className:`${to}-scroll`,ref:this.scrollDom},u().createElement(Ka,{className:`${to}-sticky-left`,renderTimeDisplay:e}),this.renderDayGrid())))))}}ro.propTypes={range:C().array,header:C().node,events:C().array,mode:C().string,showCurrTime:C().bool,markWeekend:C().bool,scrollTop:C().number,renderTimeDisplay:C().func,renderDateDisplay:C().func,dateGridRender:C().func,allDayEventsRender:C().func,width:C().oneOfType([C().number,C().string]),height:C().oneOfType([C().number,C().string]),style:C().object,className:C().string},ro.defaultProps={events:[],mode:"range"},ro.contextType=vt;var io=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class so extends f{render(){const e=this.props,{mode:t}=e,n=io(e,["mode"]),r={month:u().createElement(Qa,null),week:u().createElement(Xa,null),day:u().createElement(Wa,null),range:u().createElement(ro,null)};return u().cloneElement(r[t],Object.assign({},n))}}so.propTypes={displayValue:C().instanceOf(Date),header:C().node,events:C().arrayOf(C().shape({allDay:C().bool,start:C().instanceOf(Date),end:C().instanceOf(Date),key:C().string.isRequired,children:C().node})),mode:C().string,showCurrTime:C().bool,weekStartsOn:C().number,scrollTop:C().number,onClick:C().func,renderTimeDisplay:C().func,renderDateDisplay:C().func,markWeekend:C().bool,minEventHeight:C().number,width:C().oneOfType([C().number,C().string]),height:C().oneOfType([C().number,C().string]),style:C().object,className:C().string},so.defaultProps={events:[],displayValue:new Date,showCurrTime:!0,mode:"week",markWeekend:!1,height:600,scrollTop:400,weekStartsOn:0};const ao=so,oo={PREFIX:`${E}-card`},lo=["hover","always"],co=["grid"];__webpack_require__("x365");var ho=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const uo=oo.PREFIX;class po extends h.PureComponent{render(){const e=this.props,{avatar:t,className:n,description:r,style:i,title:s}=e,a=ho(e,["avatar","className","description","style","title"]),o=x()(`${uo}-meta`,n),l=t&&u().createElement("div",{className:`${uo}-meta-avatar`},t),c=s&&u().createElement("div",{className:`${uo}-meta-wrapper-title`},s),h=r&&u().createElement("div",{className:`${uo}-meta-wrapper-description`},r),d=s||r?u().createElement("div",{className:`${uo}-meta-wrapper`},c,h):null;return u().createElement("div",Object.assign({},a,{className:o,style:i}),l,d)}}po.propTypes={avatar:C().node,className:C().string,description:C().node,style:C().object,title:C().node};const fo=po,mo={PREFIX:`${E}-skeleton`};__webpack_require__("XJMB");var go=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const yo=Ir.SIZE,vo=Ir.SHAPE,bo=e=>t=>n=>u().createElement(t,Object.assign({type:e},n));class xo extends h.PureComponent{render(){const e=this.props,{prefixCls:t,className:n,type:r,size:i,shape:s}=e,a=go(e,["prefixCls","className","type","size","shape"]),o=x()(n,`${t}-${r}`,{[`${t}-${r}-${i}`]:"AVATAR"===r.toUpperCase()},{[`${t}-${r}-${s}`]:"AVATAR"===r.toUpperCase()});return u().createElement("div",Object.assign({className:o},a))}}xo.propTypes={type:C().string,prefixCls:C().string,style:C().object,className:C().string,size:C().oneOf(yo),shape:C().oneOf(vo)},xo.defaultProps={prefixCls:mo.PREFIX,size:"medium",shape:"circle"};const wo=bo("avatar")(xo),Co=bo("image")(xo),Eo=bo("title")(xo),So=bo("button")(xo);class _o extends h.PureComponent{render(){const{prefixCls:e,className:t,style:n,rows:r}=this.props,i=x()(t,`${e}-paragraph`);return u().createElement("ul",{className:i,style:n},[...Array(r)].map(((e,t)=>u().createElement("li",{key:t}))))}}_o.propTypes={rows:C().number,prefixCls:C().string,style:C().object,className:C().string},_o.defaultProps={prefixCls:mo.PREFIX,rows:4};var ko=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Po=mo.PREFIX;class Oo extends h.PureComponent{render(){const e=this.props,{placeholder:t,active:n,children:r,className:i,loading:s,style:a}=e,o=ko(e,["placeholder","active","children","className","loading","style"]),l=x()(Po,{[`${Po}-active`]:Boolean(n)},i);let c;return c=s?u().createElement("div",Object.assign({className:l,style:a},o,{"x-semi-prop":"placeholder"}),t):r,c}}Oo.Avatar=wo,Oo.Title=Eo,Oo.Button=So,Oo.Paragraph=_o,Oo.Image=Co,Oo.defaultProps={loading:!0},Oo.propTypes={active:C().bool,placeholder:C().node,style:C().object,className:C().string,loading:C().bool,children:C().node};const To=Oo,Io={PREFIX:`${E}-space`},Do=["start","end","center","baseline"],Ao="loose",Ro="medium",No="tight";__webpack_require__("bwAj");const Mo=e=>{let t=[];return u().Children.forEach(e,(e=>{null!=e&&(Array.isArray(e)?t=t.concat(Mo(e)):(0,h.isValidElement)(e)&&e.type&&"Symbol(react.fragment)"===e.type.toString()&&e.props?t=t.concat(Mo(e.props.children)):t.push(e))})),t},Fo=Io.PREFIX;class Lo extends h.PureComponent{render(){const{children:e=null,style:t,className:n,spacing:r,wrap:i,align:s,vertical:a}=this.props,o=(!i||!a)&&i,l=Object.assign({},t);let c="",h="";ne()(r)?(c=r,h=r):Kn()(r)?(l.rowGap=r,l.columnGap=r):D()(r)&&(ne()(r[0])?c=r[0]:Kn()(r[0])&&(l.columnGap=`${r[0]}px`),ne()(r[1])?h=r[1]:Kn()(r[1])&&(l.rowGap=`${r[1]}px`));const p=x()(Fo,n,{[`${Fo}-align-${s}`]:s,[`${Fo}-vertical`]:a,[`${Fo}-horizontal`]:!a,[`${Fo}-wrap`]:o,[`${Fo}-tight-horizontal`]:c===No,[`${Fo}-tight-vertical`]:h===No,[`${Fo}-medium-horizontal`]:c===Ro,[`${Fo}-medium-vertical`]:h===Ro,[`${Fo}-loose-horizontal`]:c===Ao,[`${Fo}-loose-vertical`]:h===Ao}),f=Mo(e),m=d(this.props);return u().createElement("div",Object.assign({},m,{className:p,style:l,"x-semi-prop":"children"}),f)}}Lo.propTypes={wrap:C().bool,align:C().oneOf(Do),vertical:C().bool,spacing:C().oneOfType([C().string,C().number,C().array]),children:C().node,style:C().object,className:C().string},Lo.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const jo=Lo;var Vo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const $o=oo.PREFIX;class Bo extends h.PureComponent{constructor(){super(...arguments),this.renderHeader=()=>{const{title:e,headerExtraContent:t,header:n,headerLine:r,headerStyle:i}=this.props,s=x()(`${$o}-header`,{[`${$o}-header-bordered`]:Boolean(r)}),a=x()(`${$o}-header-wrapper`),o=x()(`${$o}-header-wrapper-title`,{[`${$o}-header-wrapper-spacing`]:Boolean(t)});return n||t||e?u().createElement("div",{style:i,className:s},n||u().createElement("div",{className:a},t&&u().createElement("div",{className:`${$o}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&u().createElement("div",{className:o},ne()(e)?u().createElement(Nn.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=x()(`${$o}-cover`);return e&&u().createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:n,loading:r}=this.props,i=x()(`${$o}-body`),s=x()(`${$o}-body-actions`),a=x()(`${$o}-body-actions-item`),o=u().createElement("div",null,u().createElement(To.Title,null),u().createElement("br",null),u().createElement(To.Paragraph,{rows:3}));return u().createElement("div",{style:e,className:i},t&&u().createElement(To,{placeholder:o,loading:r,active:!0},t),Array.isArray(n)&&u().createElement("div",{className:s},u().createElement(jo,{spacing:12},n.map(((e,t)=>u().createElement("div",{key:t,className:a,"x-semi-prop":`actions.${t}`},e))))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:n}=this.props,r=x()(`${$o}-footer`,{[`${$o}-footer-bordered`]:t});return e&&u().createElement("div",{style:n,className:r,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:n,style:r,className:i}=e,s=Vo(e,["bordered","shadows","style","className"]),a=ae()(s,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),o=x()($o,i,{[`${$o}-bordered`]:t,[`${$o}-shadows`]:n,[`${$o}-shadows-${n}`]:n});return u().createElement("div",Object.assign({},a,{"aria-busy":this.props.loading,className:o,style:r}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Bo.Meta=fo,Bo.propTypes={actions:C().array,bodyStyle:C().object,bordered:C().bool,children:C().node,className:C().string,cover:C().node,footer:C().node,footerLine:C().bool,footerStyle:C().object,header:C().node,headerExtraContent:C().node,headerLine:C().bool,headerStyle:C().object,loading:C().bool,shadows:C().oneOf(lo),style:C().object,title:C().node,"aria-label":C().string},Bo.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const zo=Bo;var Ho=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ko=oo.PREFIX;class Uo extends h.PureComponent{render(){const e=this.props,{children:t,className:n,spacing:r,style:i,type:s}=e,a=Ho(e,["children","className","spacing","style","type"]),o="grid"===s,l=x()(`${Ko}-group`,n,{[`${Ko}-group-grid`]:o});return u().createElement(jo,Object.assign({spacing:o?0:r,wrap:!0,className:l,style:i},a),t)}}Uo.propTypes={children:C().node,className:C().string,spacing:C().oneOfType([C().number,C().array]),style:C().object,type:C().oneOf(co)},Uo.defaultProps={spacing:16};const Wo=Uo,Go=`${E}-carousel`,qo=`${E}-carousel-indicator`,Yo=`${E}-carousel-content`,Xo=`${E}-carousel-arrow`,Zo=0,Jo=2e3,Qo=300,el=["slide","fade"],tl=["left","right"],nl=["columnar","line","dot"],rl=["dark","primary","light"],il=["left","center","right"],sl=["always","hover"],al=["small","medium"],ol=["click","hover"];const ll=class extends c{constructor(e){super(Object.assign({},e)),this._interval=null,this._forcePlay=!1}setForcePlay(e){this._forcePlay=e}play(e){this._interval&&clearInterval(this._interval),this._interval=setInterval((()=>{this.next()}),e)}stop(){this._interval&&clearInterval(this._interval)}goTo(e){const{activeIndex:t}=this.getStates(),n=this.getValidIndex(e);this._adapter.setIsReverse(t>n),this.getIsControlledComponent()?this._notifyChange(n):(this._notifyChange(n),this.handleNewActiveIndex(n))}next(){this.stop();const{activeIndex:e}=this.getStates(),t=this.getValidIndex(e+1);this._adapter.setIsReverse(!1),this.getIsControlledComponent()?this._notifyChange(t):(this._notifyChange(t),this.handleNewActiveIndex(t)),this.handleAutoPlay()}prev(){this.stop();const{activeIndex:e}=this.getStates(),t=this.getValidIndex(e-1);this._adapter.setIsReverse(!0),this.getIsControlledComponent()?this._notifyChange(t):(this._notifyChange(t),this.handleNewActiveIndex(t)),this.handleAutoPlay()}destroy(){this._unregisterInterval()}_unregisterInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_notifyChange(e){const{activeIndex:t,isInit:n}=this.getStates();n&&this._adapter.setIsInit(!1),t!==e&&(this._adapter.setPreActiveIndex(t),this._adapter.notifyChange(e,t))}getValidIndex(e){const{children:t}=this.getStates();return(e+t.length)%t.length}getSwitchingTime(){const{autoPlay:e,speed:t}=this.getProps();return"boolean"===typeof e?Jo+t:z()(e)?a()(e,"interval",Jo)+t:t}getIsControlledComponent(){return this._isInProps("activeIndex")}handleAutoPlay(){const{autoPlay:e}=this.getProps(),{children:t}=this.getStates();t.length>1&&(!0===e||z()(e)||this._forcePlay)&&this.play(this.getSwitchingTime())}handleKeyDown(e){"ArrowLeft"===e.key&&this.prev(),"ArrowRight"===e.key&&this.next()}onIndicatorChange(e){const{activeIndex:t}=this.getStates();this._adapter.setIsReverse(t>e),this._notifyChange(e),this.getIsControlledComponent()||this.handleNewActiveIndex(e)}handleNewActiveIndex(e){const{activeIndex:t}=this.getStates();t!==e&&this._adapter.setNewActiveIndex(e)}getDefaultActiveIndex(){let e;const t=this.getProps();return"activeIndex"in t?e=t.activeIndex:"defaultActiveIndex"in t&&(e=t.defaultActiveIndex),e}};var cl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class hl extends u().PureComponent{constructor(){super(...arguments),this.onIndicatorChange=e=>{this.props.onIndicatorChange(e)},this.handleIndicatorClick=e=>{const{trigger:t}=this.props;"click"===t&&this.onIndicatorChange(e)},this.handleIndicatorHover=e=>{const{trigger:t}=this.props;"hover"===t&&this.onIndicatorChange(e)}}renderIndicatorContent(){const{total:e,theme:t,size:n,activeIndex:r}=this.props,i=[];for(let s=0;s<e;s++)i.push(u().createElement("span",{key:s,"data-index":s,className:x()([`${qo}-item`],{[`${qo}-item-active`]:s===r,[`${qo}-item-${t}`]:t,[`${qo}-item-${n}`]:n}),onClick:()=>this.handleIndicatorClick(s),onMouseEnter:()=>this.handleIndicatorHover(s)}));return i}render(){const e=this.props,{type:t,size:n,theme:r,style:i,className:s,position:a}=e,o=cl(e,["type","size","theme","style","className","position"]),l=x()(s,{[qo]:!0,[`${qo}-${t}`]:t,[`${qo}-${a}`]:a}),c=this.renderIndicatorContent();return u().createElement("div",Object.assign({className:l,style:i},d(o)),c)}}hl.propTypes={activeKey:C().number,className:C().string,position:C().oneOf(il),size:C().oneOf(al),style:C().object,theme:C().oneOf(rl),total:C().number,onIndicatorChange:C().func,type:C().oneOf(nl),trigger:C().oneOf(ol)};const ul=hl;const dl=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}),"chevron_left");const pl=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}),"chevron_right");class fl extends u().PureComponent{constructor(){super(...arguments),this.renderLeftIcon=()=>a()(this.props,"arrowProps.leftArrow.children",u().createElement(dl,{"aria-label":"Previous index",size:"inherit"})),this.renderRightIcon=()=>a()(this.props,"arrowProps.rightArrow.children",u().createElement(pl,{"aria-label":"Next index",size:"inherit"}))}render(){const{type:e,theme:t,prev:n,next:r}=this.props,i=x()({[Xo]:!0,[`${Xo}-${t}`]:t,[`${Xo}-hover`]:"hover"===e}),s=x()({[`${Xo}-prev`]:!0,[`${Xo}-${t}`]:t}),o=x()({[`${Xo}-next`]:!0,[`${Xo}-${t}`]:t});return u().createElement("div",{className:i},u().createElement("div",Object.assign({className:s,onClick:n},a()(this.props,"arrowProps.leftArrow.props"),{"x-semi-prop":"arrowProps.leftArrow.children"}),this.renderLeftIcon()),u().createElement("div",Object.assign({className:o,onClick:r},a()(this.props,"arrowProps.rightArrow.props"),{"x-semi-prop":"arrowProps.rightArrow.children"}),this.renderRightIcon()))}}const ml=fl;__webpack_require__("Hoah");class gl extends f{constructor(e){super(e),this.play=()=>(this.foundation.setForcePlay(!0),this.foundation.handleAutoPlay()),this.stop=()=>(this.foundation.setForcePlay(!1),this.foundation.stop()),this.goTo=e=>this.foundation.goTo(e),this.prev=()=>this.foundation.prev(),this.next=()=>this.foundation.next(),this.handleAutoPlay=()=>{this.foundation.getIsControlledComponent()||this.foundation.handleAutoPlay()},this.handleMouseEnter=()=>{const{autoPlay:e}=this.props;(!0===e||"object"==typeof e&&e.hoverToPause)&&this.foundation.stop()},this.handleMouseLeave=()=>{const{autoPlay:e}=this.props;"object"==typeof e&&!e.hoverToPause||this.foundation.getIsControlledComponent()||this.foundation.handleAutoPlay()},this.onIndicatorChange=e=>this.foundation.onIndicatorChange(e),this.getChildren=()=>{const{children:e}=this.props;return h.Children.toArray(e).filter((e=>u().isValidElement(e)))},this.getValidIndex=e=>this.foundation.getValidIndex(e),this.renderChildren=()=>{const{speed:e,animation:t}=this.props,{activeIndex:n,children:r,preIndex:i,isInit:s}=this.state;return u().createElement(u().Fragment,null,r.map(((r,a)=>{const o=a===n,l=a===this.getValidIndex(n-1),c=a===this.getValidIndex(n+1),h={transitionTimingFunction:"ease",transitionDuration:`${e}ms`,animationTimingFunction:"ease",animationDuration:`${e}ms`};return u().cloneElement(r,{style:Object.assign(Object.assign({},r.props.style),h),className:x()(r.props.className,{[`${Yo}-item-prev`]:l,[`${Yo}-item-next`]:c,[`${Yo}-item-current`]:o,[`${Yo}-item`]:!0,[`${Yo}-item-active`]:o,[`${Yo}-item-slide-in`]:"slide"===t&&!s&&o,[`${Yo}-item-slide-out`]:"slide"===t&&!s&&a===i})})})))},this.renderIndicator=()=>{const{children:e,activeIndex:t}=this.state,{showIndicator:n,indicatorType:r,theme:i,indicatorPosition:s,indicatorSize:a,trigger:o}=this.props,l=x()({[qo]:!0});return n&&e.length>1?u().createElement("div",{className:l},u().createElement(ul,{type:r,total:e.length,activeIndex:t,position:s,trigger:o,size:a,theme:i,onIndicatorChange:this.onIndicatorChange})):null},this.renderArrow=()=>{const{children:e}=this.state,{showArrow:t,arrowType:n,theme:r,arrowProps:i}=this.props;return t&&e.length>1?u().createElement(ml,{type:n,theme:r,prev:this.prev,next:this.next,arrowProps:i}):null},this.foundation=new ll(this.adapter);const t=this.foundation.getDefaultActiveIndex();this.state={activeIndex:t,children:this.getChildren(),preIndex:t,isReverse:!1,isInit:!0}}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyChange:(e,t)=>{this.props.onChange(e,t)},setNewActiveIndex:e=>{this.setState({activeIndex:e})},setPreActiveIndex:e=>{this.setState({preIndex:e})},setIsReverse:e=>{this.setState({isReverse:e})},setIsInit:e=>{this.setState({isInit:e})}})}static getDerivedStateFromProps(e,t){const n={};return ve(e.activeIndex)||e.activeIndex===t.activeIndex||(n.activeIndex=e.activeIndex),n}componentDidMount(){this.handleAutoPlay()}componentDidUpdate(e,t,n){const r=u().Children.toArray(e.children).map((e=>(0,h.isValidElement)(e)?e.key:null)),i=u().Children.toArray(this.props.children).map((e=>(0,h.isValidElement)(e)?e.key:null));he()(r,i)||this.setState({children:this.getChildren()})}componentWillUnmount(){this.foundation.destroy()}render(){const{animation:e,className:t,style:n,slideDirection:r}=this.props,{isReverse:i}=this.state,s=x()(t,{[Go]:!0});return u().createElement("div",Object.assign({className:s,style:n,onMouseEnter:v()(this.handleMouseEnter,400),onMouseLeave:v()(this.handleMouseLeave,400)},this.getDataAttr(this.props)),u().createElement("div",{className:x()([`${Yo}-${e}`],{[`${Yo}`]:!0,[`${Yo}-reverse`]:"left"===r?i:!i}),"x-semi-prop":"children"},this.renderChildren()),this.renderIndicator(),this.renderArrow())}}gl.propTypes={activeIndex:C().number,animation:C().oneOf(el),arrowProps:C().object,autoPlay:C().oneOfType([C().bool,C().object]),className:C().string,defaultActiveIndex:C().number,indicatorPosition:C().oneOf(il),indicatorSize:C().oneOf(al),indicatorType:C().oneOf(nl),theme:C().oneOf(rl),onChange:C().func,arrowType:C().oneOf(sl),showArrow:C().bool,showIndicator:C().bool,slideDirection:C().oneOf(tl),speed:C().number,style:C().object,trigger:C().oneOf(ol)},gl.defaultProps={children:[],animation:"slide",autoPlay:!0,arrowType:"always",defaultActiveIndex:Zo,indicatorPosition:"center",indicatorSize:"small",indicatorType:"dot",theme:"light",onChange:()=>{},showArrow:!0,showIndicator:!0,slideDirection:"left",speed:Qo,trigger:"click"};const yl=gl;var vl=__webpack_require__("/iLo"),bl=__webpack_require__.n(vl),xl=__webpack_require__("qYhz"),wl=__webpack_require__.n(xl),Cl=__webpack_require__("whR3"),El=__webpack_require__.n(Cl),Sl=__webpack_require__("lKOy"),_l=__webpack_require__.n(Sl),kl=__webpack_require__("//nZ"),Pl=__webpack_require__.n(kl),Ol=__webpack_require__("LPC+"),Tl=__webpack_require__.n(Ol),Il=__webpack_require__("jLkM"),Dl=__webpack_require__.n(Il);function Al(e,t){return`${e}-${t}`}function Rl(e){return!ee()(e)&&!le()(e)}function Nl(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=[],s=Boolean(r),o=a()(n,"key","key"),l=a()(n,"children","children");return function e(a){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return a.map(((h,u)=>{const d=Al(c?c.pos:"0",u),p=h[o],f={};n&&Object.entries(ae()(n,"children")).forEach((e=>{let[t,n]=e;const r=h[n];!le()(r)&&(f[t]=r)}));const m=Object.assign(Object.assign(Object.assign({},Pl()(h,["key","label","value","icon","disabled","isLeaf"])),f),{parent:c,pos:d,children:null,data:h,_innerDataTag:!0,isEnd:[...c?c.isEnd:[],u===a.length-1]}),g="boolean"==typeof r;return(!s||!g&&r.has(p))&&i.push(m),t.has(p)&&(!s||!g&&r.has(p))?m.children=e(h[l]||[],m):m.children=[],m}))}(e),i}function Ml(e,t){const n={},r={},i={},s={posEntities:n,keyEntities:r,valueEntities:i},o=a()(t,"value","value");return function(e,t,n){const r=a()(n,"key","key"),i=a()(n,"children","children"),s=(n,o,l)=>{const c=n?n[i]:e,h=n?Al(l.pos,o):"0";if(n){const e=a()(n,r,null),i={data:Object.assign({},n),ind:o,pos:h,key:null!==e?e:h,parentPos:l.node?l.pos:null,level:Number(l.level)+1};t(i)}c&&c.forEach(((e,t)=>{s(e,t,{node:n,pos:h,level:l?Number(l.level)+1:-1})}))};s(null)}(e,(e=>{const{pos:t,key:s,parentPos:l}=e,c=Object.assign({},e),h=a()(c,`data.${o}`,null);null!==h&&(i[h]=s),n[t]=c,r[s]=c,c.parent=n[l],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c))}),t),s}function Fl(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Rl(e))return[];if(!n&&Array.isArray(e)?e=e.length?[e[0]]:[]:Array.isArray(e)||(e=[e]),de()(t))return e;const r=[];return e.forEach((e=>{e in t?r.push(t[e]):e&&r.push(e)})),r}function Ll(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=[],i=e=>{if(!e)return;const{children:n}=e;Rl(n)&&n.forEach((e=>{r.push(e.key),i(t[e.key])}))};return e.forEach((e=>{n&&r.push(e),i(t[e])})),r}function jl(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=[];e.forEach((e=>{t[e]&&t[e].parent&&r.push(t[e].parent.key)}));const i=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=[];return e&&e.forEach((e=>{const i=t[e];i&&i.children&&i.children.forEach((e=>{n.length&&n.includes(e.key)||r.push(e.key)}))})),r}(Dl()(r),t,n?[]:e);return i}function Vl(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=[],i=e=>{e.parent&&(r.push(e.parent.key),i(e.parent))};return e.forEach((e=>{t[e]&&i(t[e]),n&&r.push(e)})),r}function $l(e,t){const n=Array.isArray(e)?e:[e],r=Ll(n,t,!0),i=new Set([...r]);let s=new Set([]),a=[];const o=function(e,t){const n={};return e.forEach((e=>{if(!t[e])return;const{level:r}=t[e];n[r]?n[r].push(e):n[r]=[e]})),n}(n,t),l=e=>{const{key:n,parent:r,level:l}=e;if(!r||a.includes(n))return;const c=jl([n],t);a=[...a,...c];if(c.every((e=>i.has(e))))i.add(r.key),l-1 in o&&l?o[l-1].push(r.key):o[l-1]=[r.key];else{const e=Vl([n],t,!1);s=new Set([...s,...e])}};for(;!de()(o);){const e=Tl()(Object.keys(o).map((e=>Number(e))));o[e].forEach((e=>l(t[e]))),delete o[e]}return{checkedKeys:i,halfCheckedKeys:s}}function Bl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(Array.isArray(e)||(e=[e]),n){const n=Vl(e,t,!0);return new Set(n)}return new Set(e)}function zl(e,t,n,r){const i=Fl(e,r,n);return new Set(Vl(i,t,!1))}function Hl(e,t,n){let r="show";const i=[...e],s=[...t];if(1!==Math.abs(i.length-s.length))return{motionType:r,motionKeys:[]};let a=[];return i.length>s.length?(r="hide",a=_l()(i,s)):a=_l()(s,i),{motionType:1===a.length?r:"show",motionKeys:1===a.length?Ll(a,n,!1):[]}}function Kl(e,t,n,r){if(!n)return!0;let i=n,s=t;return"boolean"==typeof n&&(i=(e,t)=>{const n=e.toLowerCase();return t.toString().toLowerCase().includes(n)}),r&&(s=t[r]),i(e,s,t)}function Ul(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;const i=[],s=new Set(e);return n?e.forEach((e=>{t[e]&&!Rl(t[e].children)&&i.push(e),!t[e]&&r&&i.push(e)})):e.forEach((e=>{if(!t[e])return void(r&&i.push(e));const{parent:n}=t[e];n&&s.has(n.key)||i.push(e)})),i}function Wl(e,t,n){const r=[],i=e=>{n[e].children&&n[e].children.forEach((e=>{const{key:n}=e;r.push(n),t.has(n)&&i(n)}))};return i(e),r}function Gl(e,t,n,r){const i=Ll([e],t,!0),s=t[e];n=new Set([...n,e]);const a=e=>{if(!e.parent)return;const{key:i}=e;if(jl([i],t).every((e=>n.has(e)))){const t=e.parent;n.add(t.key),a(t)}else{const e=Vl([i],t,!1);r=new Set([...r,...e])}};return a(s),{checkedKeys:new Set([...n,...i]),halfCheckedKeys:r}}function ql(e,t,n,r){const i=Ll([e],t,!0),s=t[e];i.forEach((e=>{n.has(e)&&n.delete(e),r.has(e)&&r.delete(e)}));const a=e=>{const i=e.parent;if(!i)return;if(!n.has(i.key)&&!r.has(i.key))return;const{key:s}=e,o=jl([s],t).some((e=>n.has(e)||r.has(e))),l=Vl([s],t,!1);o?l.forEach((e=>{n.has(e)&&(n.delete(e),r.add(e))})):(n.has(i.key)&&n.delete(i.key),r.has(i.key)&&r.delete(i.key),a(i))};return s&&a(s),{checkedKeys:n,halfCheckedKeys:r}}function Yl(e){const{showFilteredOnly:t,keyEntities:n,inputValue:r,treeData:i,filterTreeNode:s,filterProps:a,prevExpandedKeys:o,keyMaps:l}=e;let c=[];c=Object.values(n).filter((e=>Kl(r,e.data,s,a))).map((e=>e.key));let h=Vl(c,n,!1);if(o.length){const e=o.filter((e=>Boolean(n[e])));h=h.concat(e)}const u=Ll(c,n,!0),d=new Set([...u,...h]);return{flattenNodes:Nl(i,new Set(h),l,t&&d),filteredKeys:new Set(c),filteredExpandedKeys:new Set(h),filteredShownKeys:d}}function Xl(e,t){const n=a()(t,"value","value"),r=a()(t,"key","key");return Array.isArray(e)?e.map((e=>a()(e,n,e[r]))):a()(e,n,e[r])}function Zl(e,t,n){return t&&Rl(e)?Xl(e,n):e}function Jl(e,t){return[...e].filter((e=>e in t))}function Ql(e,t){const n=a()(t,"disabled","disabled"),r=Object.keys(e).filter((t=>e[t].data[n])),{checkedKeys:i}=$l(r,e);return i}function ec(e,t){const{clientY:n}=e,{top:r,bottom:i,height:s}=t.nodeInstance.getBoundingClientRect();return n<=r+.45*s?-1:n>=i-.45*s?1:0}function tc(e,t){return Ll([e],t,!0)}function nc(e,t){const n=e.split("-");return t+Number(n[n.length-1])}const rc={PREFIX:`${E}-cascader`,PREFIX_OPTION:`${E}-cascader-option`},ic=["small","large","default"],sc=["success","default","error","warning"],ac="click",oc="hover",lc="leafOnly",cc="autoMergeValue",hc="none",uc="trigger",dc="_SEMI_CASCADER_SPLIT_";function pc(e){return e.join(dc)}function fc(e){const t={};return function(e,t){const n=(r,i,s)=>{const a=r?r.children:e;let o=null;if(r){const e=s?`${s.key}${dc}${r.value}`:`${r.value}`,n=s?function(e,t){return`${e}-${t}`}(s.pos,i):`${i}`;o={data:Object.assign({},r),ind:i,key:e,pos:n,level:s?s.level+1:0,parentKey:s?s.key:null,path:s?[...s.path,e]:[e],valuePath:s?[...s.valuePath,r.value]:[r.value]},t(o)}a&&a.forEach(((e,t)=>{n(e,t,o)}))};n(null)}(e,(e=>{const{key:n,parentKey:r}=e,i=Object.assign({},e);t[n]=i,i.parent=t[r],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))})),t}function mc(e,t){let n;return n=t?lc:e?cc:hc,n}class gc extends c{constructor(e){super(Object.assign({},e)),this.handleKeyDown=e=>{if(e.key===Xt){this.getState("isOpen")&&this.close(e)}},this.updateSearching=e=>{this._adapter.updateStates({isSearching:!1})},this.handleTagRemoveByKey=e=>{var t,n;const{keyEntities:r}=this.getStates(),{disabled:i}=this.getProps();if(i)return;const s=null!==(t=r[e])&&void 0!==t?t:{};!(null===(n=null==s?void 0:s.data)||void 0===n?void 0:n.disable)&&this._handleMultipleSelect(s)},this.handleTagRemoveInTrigger=e=>{const{treeData:t}=this.getStates(),n=function(e,t){const n=e.split("-").map((e=>Number(e)));let r=t,i=[];return n.forEach(((e,t)=>{var n;r=0===t?r[e]:null===(n=null==r?void 0:r.children)||void 0===n?void 0:n[e],i.push(null==r?void 0:r.value)})),pc(i)}(e,t);this.handleTagRemoveByKey(n)}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return Boolean(this.getProp("filterTreeNode"))}_notifyChange(e){const{onChangeWithObject:t,multiple:n}=this.getProps(),r=t?[]:"value";if(n){const t=[];e.forEach((e=>{const n=this.getItemPropPath(e,r);t.push(n)})),this._adapter.notifyChange(t)}else{const t=le()(e)||!("key"in e)?[]:this.getItemPropPath(e.key,r);this._adapter.notifyChange(t)}}_isLeaf(e){return this.getProp("loadData")?Boolean(e.isLeaf):!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return Vl([e],t,!0).some((e=>t[e].data.disabled))}getItemPropPath(e,t,n){const r=n||this.getState("keyEntities"),i=r[e];let s=[];if(i)if(i._notExist)s=i.path;else{const e=i.path;s=Array.isArray(t)?e.map((e=>r[e].data)):e.map((e=>r[e].data[t]))}else;return s}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),n=Array.from(t)[0];let r;if(de()(e[n]))if(wl()(n,"not-exist-")){const t=n.match(/not-exist-(\S*)/)[1];r=de()(e[t])?t:e[t].valuePath}else r=n;else r=e[n].valuePath;return r}collectOptions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{treeData:t,value:n,defaultValue:r}=this.getProps(),i=fc(t);let s;this._adapter.rePositionDropdown(),e?s=r:de()(i)||(s=this._getCacheValue(i));const a=this._isControlledComponent()?le()(n)?[]:n:s;var o;o=a,ee()(o)||le()(o)?this._adapter.updateStates({keyEntities:i}):this.updateSelectedKey(a,i)}handleValueChange(e){const{keyEntities:t}=this.getStates();this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:n,placeholder:r,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=n||r||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:n,onChangeWithObject:r,multiple:i}=this.getProps(),{activeKeys:s,loading:a,keyEntities:o,selectedKeys:l}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),h=this._isFilterable(),u=[...s].filter((e=>c.has(e))),d=(p=e,Array.isArray(p)?p:[p]);var p;const f=r&&z()(d[0])?d.map((e=>e.value)):d,m=function(e){return(null==e?void 0:e.length)?Array.isArray(e[0])?e.map((e=>pc(e))):[pc(e)]:[]}(f);let g={};const y=m.length>0?m[0]:void 0,v=y?t[y]:void 0;if(v)if(n||this._isLeaf(v.data)){if(g.selectedKeys=new Set([y]),u.length||(g.activeKeys=new Set(v.path)),h&&!i){const e=this.renderDisplayText(y,t);g.inputPlaceHolder=e}}else he()(m,Array.from(l))&&(g=this._getClearSelectedKey(h));else if(e&&e.length){const e=f[f.length-1],n=`not-exist-${e}`,r={data:{label:e,value:e},key:n,path:f,_notExist:!0};if(g.selectedKeys=new Set([n]),h&&!i){const e=this._defaultRenderText(f);g.inputPlaceHolder=e}t[n]=r}else{if(a)return g.keyEntities=El()(o,t),void this._adapter.updateStates(g);g=this._getClearSelectedKey(h)}g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler((e=>this.close(e)))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:n}=this.getStates(),r=n[[...e][0]];if(!r)return;const i=new Set(r.path);he()(i,t)||this._adapter.updateStates({activeKeys:i})}close(e,t){const{multiple:n}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:e,isSearching:r}=this.getStates();let i="";t&&!n?i=this.renderDisplayText(t):e.size&&!n&&(i=this.renderDisplayText([...e][0])),this._adapter.updateStates({inputValue:i}),!n&&this.toggle2SearchInput(!1),!n&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,(()=>this.focus())):this._adapter.toggleInputShow(e,(()=>{}))}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:n,key:r}=e,i=this._isLeaf(n),s=t[r].path;this._adapter.updateStates({activeKeys:new Set(s)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),n=this._isFilterable(),{isOpen:r}=this.getStates();t||(r?r&&!n&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){Jt(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const n=this.getProp("separator");return t&&"function"==typeof t?t(e):e.join(n)}renderDisplayText(e,t){const n=this.getProp("displayRender"),r=this.getProp("displayProp"),i=this.getItemPropPath(e,r,t);return this._defaultRenderText(i,n)}handleNodeLoad(e){const{data:t,key:n}=e,r=new Set(this._adapter.getLoadingKeyRefValue()),i=new Set(this._adapter.getLoadedKeyRefValue()).add(n),s=new Set([...r]);s.delete(n),this._adapter.notifyOnLoad(i,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(i),this._adapter.updateStates({loadingKeys:s,loadedKeys:i})}notifyIfLoadData(e){const{data:t,key:n}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const t=this._adapter.getLoadedKeyRefValue(),r=new Set(this._adapter.getLoadingKeyRefValue());if(t.has(n)||r.has(n))return;this._adapter.updateStates({loading:!0});const{keyEntities:i}=this.getStates(),s=this.getItemPropPath(n,[],i),a=r.add(n);this._adapter.updateLoadingKeyRefValue(a),this._adapter.updateStates({loadingKeys:a}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:n,filterLeafOnly:r,multiple:i,enableLeafClick:s}=this.getProps(),{keyEntities:a,selectedKeys:o,isSearching:l}=this.getStates(),c=this._isFilterable(),{data:h,key:u}=t,d=this._isLeaf(h),p=a[u].path,f=[u],m=u!==[...o][0];if(!d&&!n&&!l)return this._adapter.updateStates({activeKeys:new Set(p)}),void this.notifyIfLoadData(t);if(i)this._adapter.updateStates({activeKeys:new Set(p)}),d&&s&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(h.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent())return this._adapter.updateStates({activeKeys:new Set(p)}),void(d&&this.close(e));this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(f)});const n=this.renderDisplayText(u);c&&this._adapter.updateInputPlaceHolder(n),(d||!r&&l)&&this.close(e,u)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:n,keyEntities:r,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:s,max:a,disableStrictly:o,leafOnly:l}=this.getProps(),c=n.has(t),h=o?this.calcCheckedStatus(!c,t):!c,{checkedKeys:u,halfCheckedKeys:d}=o?this.calcNonDisabledCheckedKeys(t,h):this.calcCheckedKeys(t,h),p=mc(s,l),f=p===hc,m=new Set(Ul(u,r,p===lc)),g=f?u:m;if(Kn()(a))if(f){if(n.size<u.size&&u.size>a){const e=[];return u.forEach((t=>{e.push(r[t])})),void this._adapter.notifyOnExceed(e)}}else if(i.size<m.size&&m.size>a){const e=[];return m.forEach((t=>{e.push(r[t])})),void this._adapter.notifyOnExceed(e)}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:u,halfCheckedKeys:d,resolvedCheckedKeys:m}),this._notifyChange(g),h&&this._notifySelect(g),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:n,disabledKeys:r}=this.getStates(),i=new Set(this.getState("checkedKeys")),s=Ul(Ll([e],n,!1),n,!0),a=s.some((e=>r.has(e)));if(!a)return this.calcCheckedKeys(e,t);const o=s.filter((e=>!r.has(e)));return $l(t?[...o,...i]:_l()(Ul([...i],n,!0),o),n)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:n,keyEntities:r,disabledKeys:i}=this.getStates(),s=Ul(Ll([t],r,!1),r,!0),a=s.some((e=>i.has(e)));if(!a)return e;const o=s.filter((e=>!i.has(e))),l=o.every((e=>n.has(e)));return!l}_notifySelect(e){const{keyEntities:t}=this.getStates(),n=[];e.forEach((e=>{var r,i;const s=null===(i=null===(r=t[e])||void 0===r?void 0:r.data)||void 0===i?void 0:i.value;void 0!==s&&n.push(s)}));const r=1===n.length?n[0]:n;this._adapter.notifySelect(r)}calcCheckedKeys(e,t){const{keyEntities:n}=this.getStates(),r=new Set(this.getState("checkedKeys")),i=new Set(this.getState("halfCheckedKeys"));return t?Gl(e,n,r,i):ql(e,n,r,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:n,filterTreeNode:r,filterLeafOnly:i}=this.getProps();let s=[];e&&(s=Object.values(t).filter((t=>{const{key:i,_notExist:s,data:a}=t;if(s)return!1;const o=this.getItemPropPath(i,n);return function(e,t,n,r){if(!n)return!0;let i,s=n;return"boolean"==typeof n?(s=(e,t)=>{const n=e.toLowerCase();return t.toLowerCase().includes(n)},i=r.join("")):i=r.join(),s(e,i,t)}(e,a,r,o)})).filter((e=>r&&!i||this._isLeaf(e))).map((e=>e.key))),this._adapter.updateStates({isSearching:Boolean(e),filteredKeys:new Set(s)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:n,multiple:r}=this.getProps(),i=this._isFilterable(),s=this._isControlledComponent(),a={};r?(a.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),a.checkedKeys=new Set([]),a.halfCheckedKeys=new Set([]),a.selectedKeys=new Set([]),a.activeKeys=new Set([]),a.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(a.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(a.inputValue="",a.inputPlaceHolder=t||n||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),s||(a.selectedKeys=new Set([])),a.activeKeys=new Set([]),a.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(a),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){Jt(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),n=this._isFilterable();return t&&n?this.getFilteredData():Object.values(e).filter((e=>null===e.parentKey&&!e._notExist)).sort(((e,t)=>parseInt(e.ind,10)-parseInt(t.ind,10)))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:n,keyEntities:r,inputValue:i}=this.getStates(),s=[];return[...n].forEach((t=>{const n=r[t];if(!n)return;const i=this.getItemPropPath(t,[]),a=i.map((t=>t[e])),o=this._isOptionDisabled(t,r);s.push({data:n.data,pathData:i,key:t,disabled:o,searchText:a})})),J()(t)&&s.sort(((e,n)=>t(e.pathData,n.pathData,i))),s}handleListScroll(e,t){const{activeKeys:n,keyEntities:r}=this.getStates(),i=[...n][n.size-1],s=i?a()(r,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:s})}}__webpack_require__("Kvbp");const yc=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}),"chevron_down");var vc=__webpack_require__("p6M4"),bc=__webpack_require__.n(vc);const xc={PREFIX:`${E}-checkbox`,INNER:`${E}-checkbox-inner`,TEXT:`${E}-checkbox-text`,INPUT:`${E}-checkbox-input`,CHECKED:`${E}-checkbox-checked`,DISABLED:`${E}-checkbox-disabled`,BUTTON:`${E}-checkbox-button`,WRAPPER:""},wc={PREFIX:`${E}-checkboxGroup`,INNER:`${E}-checkboxGroup-inner`,TEXT:`${E}-checkboxGroup-text`,INPUT:`${E}-checkboxGroup-input`,CHECKED:`${E}-checkboxGroup-checked`,DISABLED:`${E}-checkboxGroup-disabled`},Cc=["horizontal","vertical"],Ec="default",Sc="card",_c="pureCard",kc="vertical";const Pc=class extends c{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=e=>{const{target:t}=e;try{if(this.clickState)return void(this.clickState=!1);t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch(e){ye(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:n,addonId:r}=this.getProps();e&&!r&&this._adapter.setAddonId(),t&&!n&&this._adapter.setExtraId()}notifyChange(e,t){const n=this._adapter.generateEvent(e,t);this._adapter.notifyChange(n)}handleChange(e){if(this.getProp("disabled"))return;"click"===(null==e?void 0:e.type)&&(this.clickState=!0),this._adapter.focusCheckboxEntity();if(this._adapter.getIsInGroup()){return void(this._adapter.getGroupDisabled()||this.handleChangeInGroup(e))}const t=!this.getState("checked");this._isControlledComponent("checked")||this.setChecked(t),this.notifyChange(t,e)}handleChangeInGroup(e){const{value:t}=this.getProps(),n=!this._adapter.getGroupValue().includes(t),r=this._adapter.generateEvent(n,e);this._adapter.notifyChange(r),this._adapter.notifyGroupChange(r)}handleEnterPress(e){Jt(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}},Oc=u().createContext({});const Tc=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}),"checkbox_tick");const Ic=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}),"checkbox_indeterminate");class Dc extends h.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:n,prefixCls:r,name:s,isPureCardType:a,addonId:o,extraId:l,focusInner:c,onInputFocus:h,onInputBlur:d}=this.props,p=r||xc.PREFIX,f=x()({[`${p}-inner`]:!0,[`${p}-inner-checked`]:Boolean(t),[`${p}-inner-pureCardType`]:a},xc.WRAPPER),m=x()({[`${p}-inner-display`]:!0,[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!t}),g=t?u().createElement(Tc,null):e?u().createElement(Ic,null):null,y={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":n,"aria-checked":t,"aria-labelledby":o,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:xc.INPUT,onChange:i(),checked:t,disabled:n,onFocus:h,onBlur:d};return s&&(y.name=s),u().createElement("span",{className:f},u().createElement("input",Object.assign({},y,{ref:e=>{this.inputEntity=e}})),u().createElement("span",{className:m},g))}}Dc.contextType=Oc,Dc.propTypes={"aria-describedby":C().string,"aria-errormessage":C().string,"aria-invalid":C().bool,"aria-labelledby":C().string,"aria-required":C().bool,checked:C().bool,disabled:C().bool,onChange:C().func,children:C().node,grouped:C().bool,value:C().any,isPureCardType:C().bool,addonId:C().string,extraId:C().string,focusInner:C().bool,onInputFocus:C().func,onInputBlur:C().func,preventScroll:C().bool},Dc.defaultProps={onChange:i()};const Ac=Dc;__webpack_require__("mMhg");class Rc extends f{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:n}=this;return{target:Object.assign(Object.assign({},n),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&"function"==typeof t.nativeEvent.stopImmediatePropagation&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Ae({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Ae({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=e=>this.foundation.handleChange(e),this.handleEnterPress=e=>this.foundation.handleEnterPress(e),this.handleFocusVisible=e=>{this.foundation.handleFocusVisible(e)},this.handleBlur=e=>{this.foundation.handleBlur()};this.state={checked:e.checked||e.defaultChecked||!1,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new Pc(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(le()(this.props.checked)?this.foundation.setChecked(!1):bc()(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return Boolean(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:n,className:r,indeterminate:i,children:s,onMouseEnter:a,onMouseLeave:o,extra:l,value:c,role:h,tabIndex:d,id:p,type:f}=this.props,{checked:m,addonId:g,extraId:y,focusVisible:v}=this.state,b={checked:m,disabled:e},w=this.isInGroup();if(w){if(this.context.checkboxGroup.value){const e=(this.context.checkboxGroup.value||[]).includes(c);b.checked=e}this.context.checkboxGroup.disabled&&(b.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:e,isPureCardType:t}=this.context.checkboxGroup;b.isCardType=e,b.isPureCardType=t,b.name=this.context.checkboxGroup.name}else b.isPureCardType=f===_c,b.isCardType=f===Sc||b.isPureCardType;const C=n||xc.PREFIX,E=b.isCardType||b.isPureCardType,S=x()(C,{[`${C}-disabled`]:b.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:b.checked,[`${C}-unChecked`]:!b.checked,[`${C}-cardType`]:b.isCardType,[`${C}-cardType_disabled`]:b.disabled&&b.isCardType,[`${C}-cardType_unDisabled`]:!(b.disabled&&b.isCardType),[`${C}-cardType_checked`]:b.isCardType&&b.checked&&!b.disabled,[`${C}-cardType_checked_disabled`]:b.isCardType&&b.checked&&b.disabled,[r]:Boolean(r),[`${C}-focus`]:v&&E}),_=x()(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:b.isCardType&&!s}),k=(w&&this.context.checkboxGroup.name,this.props["x-semi-children-alias"]||"children");return u().createElement("span",Object.assign({role:h,tabIndex:d,style:t,className:S,id:p,onMouseEnter:a,onMouseLeave:o,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),u().createElement(Ac,Object.assign({},this.props,b,{addonId:s&&g,extraId:l&&y,isPureCardType:b.isPureCardType,ref:e=>{this.checkboxEntity=e},focusInner:v&&!E,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),s||l?u().createElement("div",{className:`${C}-content`},s?u().createElement("span",{id:g,className:`${C}-addon`,"x-semi-prop":k},s):null,l?u().createElement("div",{id:y,className:_,"x-semi-prop":"extra"},l):null):null)}}Rc.contextType=Oc,Rc.propTypes={"aria-describedby":C().string,"aria-errormessage":C().string,"aria-invalid":C().bool,"aria-labelledby":C().string,"aria-required":C().bool,checked:C().bool,defaultChecked:C().bool,disabled:C().bool,indeterminate:C().bool,onChange:C().func,value:C().any,style:C().object,className:C().string,prefixCls:C().string,onMouseEnter:C().func,onMouseLeave:C().func,extra:C().node,index:C().number,"aria-label":C().string,tabIndex:C().number,preventScroll:C().bool,type:C().string},Rc.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:i(),onMouseEnter:i(),onMouseLeave:i(),type:"default"},Rc.elementType="Checkbox";const Nc=Rc;class Mc extends c{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},Mc.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();void 0===e||Array.isArray(e)||ye(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),void 0===t||Array.isArray(t)||ye(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let n=[];Array.isArray(t)||(n=[t]),n=e.target.checked?[...t,e.target.value]:t.filter(((t,n)=>t!==e.target.value));"value"in this.getProps()||this._adapter.updateGroupValue(n),this.notifyChange(n)}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(void 0===e&&this._adapter.updateGroupValue([]),ye(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const Fc=Mc;class Lc extends f{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new Fc(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){he()(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:n,direction:r,className:i,id:s,style:a,type:o,disabled:l}=this.props,c=o===_c,h=o===Sc||c,d=n||wc.PREFIX,p=x()({[d]:!0,[`${d}-wrapper`]:!0,[`${d}-${r}`]:r,[`${d}-${r}-cardType`]:r&&h,[`${d}-${r}-pureCardType`]:r&&c},i),f=this.state.value.slice();let m;return t?m=(t||[]).map(((e,t)=>"string"==typeof e?u().createElement(Nc,{role:"listitem",key:t,disabled:this.props.disabled,value:e,prefixCls:n},e):u().createElement(Nc,{role:"listitem",key:t,disabled:e.disabled||this.props.disabled,value:e.value,prefixCls:n,extra:e.extra,className:e.className,style:e.style,onChange:e.onChange},e.label))):e&&(m=u().Children.toArray(e).map(((e,t)=>u().cloneElement(e,{key:t,role:"listitem"})))),u().createElement("div",Object.assign({id:s,role:"list","aria-label":this.props["aria-label"],className:p,style:a,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),u().createElement(Oc.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:f,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:h,isPureCardType:c}}},m))}}Lc.propTypes={"aria-describedby":C().string,"aria-errormessage":C().string,"aria-invalid":C().bool,"aria-labelledby":C().string,"aria-required":C().bool,defaultValue:C().array,disabled:C().bool,name:C().string,options:C().array,value:C().array,onChange:C().func,children:C().node,prefixCls:C().string,direction:C().oneOf(Cc),className:C().string,type:C().oneOf([Ec,Sc,_c]),style:C().object},Lc.defaultProps={disabled:!1,onChange:()=>{},type:Ec,defaultValue:[],direction:kc};const jc=Lc;class Vc extends Nc{}Vc.Group=jc;const $c=Vc;function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bc.apply(null,arguments)}function zc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hc(e,t){return Hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hc(e,t)}function Kc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hc(e,t)}var Uc=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Wc(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||Uc(r)&&Uc(i)))return!1;var r,i;return!0}const Gc=function(e,t){var n;void 0===t&&(t=Wc);var r,i=[],s=!1;return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return s&&n===this&&t(a,i)||(r=e.apply(this,a),s=!0,n=this,i=a),r}};var qc="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Yc(e){cancelAnimationFrame(e.id)}function Xc(e,t){var n=qc();var r={id:requestAnimationFrame((function i(){qc()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var Zc=-1;function Jc(e){if(void 0===e&&(e=!1),-1===Zc||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Zc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Zc}var Qc=null;function eh(e){if(void 0===e&&(e=!1),null===Qc||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Qc="positive-descending":(t.scrollLeft=1,Qc=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Qc}return Qc}var th=function(e,t){return e};function nh(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,o=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,zc(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:zc(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Gc((function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})})),r._callOnScroll=void 0,r._callOnScroll=Gc((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,s=r.props,a=s.direction,o=s.itemSize,l=s.layout,h=r._getItemStyleCache(c&&o,c&&l,c&&a);if(h.hasOwnProperty(e))t=h[e];else{var u=n(r.props,e,r._instanceProps),d=i(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,f="rtl"===a,m=p?u:0;h[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:p?0:u,height:p?"100%":d,width:p?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Gc((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,s=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(eh()){case"negative":a=-i;break;case"positive-descending":a=s-n-i}return a=Math.max(0,Math.min(a,s-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,s=t.scrollTop;r.setState((function(e){if(e.scrollOffset===s)return null;var t=Math.max(0,Math.min(s,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&Yc(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Xc(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Kc(t,e),t.getDerivedStateFromProps=function(e,t){return rh(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,i=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var o=0;if(this._outerRef){var l=this._outerRef;o="vertical"===i?l.scrollWidth>l.clientWidth?Jc():0:l.scrollHeight>l.clientHeight?Jc():0}this.scrollTo(s(this.props,e,t,a,this._instanceProps,o))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var s=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(eh()){case"negative":s.scrollLeft=-i;break;case"positive-ascending":s.scrollLeft=i;break;default:var a=s.clientWidth,o=s.scrollWidth;s.scrollLeft=o-a-i}else s.scrollLeft=i;else s.scrollTop=i}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Yc(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,s=e.height,a=e.innerRef,o=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?th:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,v=e.useIsScrolling,b=e.width,x=this.state.isScrolling,w="horizontal"===i||"horizontal"===f,C=w?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),S=E[0],_=E[1],k=[];if(c>0)for(var P=S;P<=_;P++)k.push((0,h.createElement)(t,{data:u,key:p(P,u),index:P,isScrolling:v?x:void 0,style:this._getItemStyle(P)}));var O=r(this.props,this._instanceProps);return(0,h.createElement)(m||g||"div",{className:n,onScroll:C,ref:this._outerRefSetter,style:Bc({position:"relative",height:s,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},(0,h.createElement)(o||l||"div",{children:k,ref:a,style:{height:w?"100%":O,pointerEvents:x?"none":void 0,width:w?O:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var s=this.state,a=s.scrollDirection,o=s.scrollOffset,l=s.scrollUpdateWasRequested;this._callOnScroll(a,o,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,s=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),h=o(this.props,c,l,this._instanceProps),u=i&&"backward"!==s?1:Math.max(1,n),d=i&&"forward"!==s?1:Math.max(1,n);return[Math.max(0,c-u),Math.max(0,Math.min(t-1,h+d)),c,h]},t}(h.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var rh=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},ih=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,s=n.lastMeasuredIndex;if(t>s){var a=0;if(s>=0){var o=i[s];a=o.offset+o.size}for(var l=s+1;l<=t;l++){var c=r(l);i[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return i[t]},sh=function(e,t,n,r,i){for(;r<=n;){var s=r+Math.floor((n-r)/2),a=ih(e,s,t).offset;if(a===i)return s;a<i?r=s+1:a>i&&(n=s-1)}return r>0?r-1:0},ah=function(e,t,n,r){for(var i=e.itemCount,s=1;n<i&&ih(e,n,t).offset<r;)n+=s,s*=2;return sh(e,t,Math.min(n,i-1),Math.floor(n/2),r)},oh=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,s=t.lastMeasuredIndex,a=0;if(s>=n&&(s=n-1),s>=0){var o=r[s];a=o.offset+o.size}return a+(n-s-1)*i},lh=nh({getItemOffset:function(e,t,n){return ih(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:oh,getOffsetForIndexAndAlignment:function(e,t,n,r,i,s){var a=e.direction,o=e.height,l=e.layout,c=e.width,h="horizontal"===a||"horizontal"===l?c:o,u=ih(e,t,i),d=oh(e,i),p=Math.max(0,Math.min(d-h,u.offset)),f=Math.max(0,u.offset-h+u.size+s);switch("smart"===n&&(n=r>=f-h&&r<=p+h?"auto":"center"),n){case"start":return p;case"end":return f;case"center":return Math.round(f+(p-f)/2);default:return r>=f&&r<=p?r:r<f?f:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?sh(e,t,i,0,n):ah(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,s=e.height,a=e.itemCount,o=e.layout,l=e.width,c="horizontal"===i||"horizontal"===o?l:s,h=ih(e,t,r),u=n+c,d=h.offset+h.size,p=t;p<a-1&&d<u;)p++,d+=ih(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}}),ch=nh({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,i,s){var a=e.direction,o=e.height,l=e.itemCount,c=e.itemSize,h=e.layout,u=e.width,d="horizontal"===a||"horizontal"===h?u:o,p=Math.max(0,l*c-d),f=Math.min(p,t*c),m=Math.max(0,t*c-d+c+s);switch("smart"===n&&(n=r>=m-d&&r<=f+d?"auto":"center"),n){case"start":return f;case"end":return m;case"center":var g=Math.round(m+(f-m)/2);return g<Math.ceil(d/2)?0:g>p+Math.floor(d/2)?p:g;default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,i=e.height,s=e.itemCount,a=e.itemSize,o=e.layout,l=e.width,c=t*a,h="horizontal"===r||"horizontal"===o?l:i,u=Math.ceil((h+n-c)/a);return Math.max(0,Math.min(s-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const hh=e=>{let{index:t,data:n,style:r}=e;const{visibleOptions:i,renderOption:s}=n;return s(i[t],t,r)},uh=rc.PREFIX_OPTION;class dh extends h.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:n}=this.props;t.data.disabled||"disabled"in t&&t.disabled||n(e,t)},this.handleItemEnterPress=(e,t)=>{Jt(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:n,onItemHover:r}=this.props;t.data.disabled||n===oc&&r(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:n}=this.props;e.stopPropagation(),e.nativeEvent&&"function"==typeof e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation(),n(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i}=this.props,s={active:!1,selected:!1,loading:!1};return t.has(e)&&(s.active=!0),n.has(e)&&(s.selected=!0),i.has(e)&&!r.has(e)&&(s.loading=!0),s},this.renderIcon=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e=>e+(t?` ${uh}-icon-left`:"");switch(e){case"child":return u().createElement(pl,{className:n(`${uh}-icon ${uh}-icon-expand`)});case"tick":return u().createElement(Gt,{className:n(`${uh}-icon ${uh}-icon-active`)});case"loading":return u().createElement(tr,{wrapperClassName:n(`${uh}-spin-icon`)});case"empty":return u().createElement("span",{"aria-hidden":!0,className:n(`${uh}-icon ${uh}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:n,separator:r}=this.props;return e.forEach(((i,s)=>{"string"==typeof i&&wl()(i,n)?i.split(n).forEach(((e,r)=>{r>0&&t.push(u().createElement("span",{className:`${uh}-label-highlight`,key:`${r}-${s}`},n)),t.push(e)})):t.push(i),s!==e.length-1&&t.push(r)})),t},this.renderFlattenOptionItem=(e,t,n)=>{var r;const{multiple:i,selectedKeys:s,checkedKeys:a,halfCheckedKeys:o,keyword:l,filterRender:c,virtualize:h}=this.props,{searchText:d,key:p,disabled:f,pathData:m}=e,g=s.has(p),y=x()(uh,{[`${uh}-flatten`]:!c,[`${uh}-disabled`]:f,[`${uh}-select`]:g&&!i}),v=t=>{this.onClick(t,e)},b=t=>this.onCheckboxChange(t,e);if(c){const t=c({className:y,inputValue:l,disabled:f,data:m,checkStatus:{checked:a.has(e.key),halfChecked:o.has(e.key)},selected:g,onClick:v,onCheck:b}),i=h?{key:p,style:Object.assign(Object.assign({},null!==(r=t.props.style)&&void 0!==r?r:{}),n)}:{key:p};return u().cloneElement(t,i)}return u().createElement("li",{role:"menuitem",className:y,style:n,key:p,onClick:v,onKeyPress:t=>this.handleItemEnterPress(t,e)},u().createElement("span",{className:`${uh}-label`},!i&&this.renderIcon("empty"),i&&u().createElement($c,{onChange:b,disabled:f,indeterminate:o.has(e.key),checked:a.has(e.key),className:`${uh}-label-checkbox`}),this.highlight(d)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return u().createElement("ul",{className:`${uh}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map((e=>this.renderFlattenOptionItem(e))))},this.renderVirtualizeList=e=>{var t;const{direction:n}=this.context,{virtualize:r}=this.props;return u().createElement(ch,{height:r.height,itemCount:e.length,itemSize:r.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:null!==(t=r.width)&&void 0!==t?t:"100%",style:{direction:n}},hh)}}renderItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const{multiple:n,checkedKeys:r,halfCheckedKeys:i}=this.props;let s;const a=t.length;return t.push(u().createElement("ul",{role:"menu",className:`${uh}-list`,key:e[0].key,onScroll:e=>this.props.onListScroll(e,a)},e.map((e=>{const{data:t,key:a,parentKey:o}=e,{children:l,label:c,disabled:h,isLeaf:d}=t,{active:p,selected:f,loading:m}=this.getItemStatus(a),g=Boolean(l)&&l.length,y=g||this.props.loadData&&!d;p&&g&&(s=e);const v=x()(uh,{[`${uh}-active`]:p&&!f,[`${uh}-select`]:f&&!n,[`${uh}-disabled`]:h}),b=o?{"aria-owns":`cascaderItem-${o}`}:{};return u().createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${a}`,"aria-expanded":p,"aria-haspopup":Boolean(y),"aria-disabled":h},b,{className:v,key:a,onClick:t=>{this.onClick(t,e)},onKeyPress:t=>this.handleItemEnterPress(t,e),onMouseEnter:t=>{this.onHover(t,e)}}),u().createElement("span",{className:`${uh}-label`},f&&!n&&this.renderIcon("tick"),!f&&!n&&this.renderIcon("empty"),n&&u().createElement($c,{onChange:t=>this.onCheckboxChange(t,e),disabled:h,indeterminate:i.has(e.key),checked:r.has(e.key),className:`${uh}-label-checkbox`}),u().createElement("span",null,c)),y?this.renderIcon(m?"loading":"child",!0):null)})))),s&&t.concat(this.renderItem(s.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return u().createElement(Bt,{componentName:"Cascader"},(t=>u().createElement("ul",{className:`${uh} ${uh}-empty`,key:"empty-list"},u().createElement("span",{className:`${uh}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText))))}render(){const{data:e,searchable:t}=this.props,{direction:n}=this.context,r=!e||!e.length;let i;const s=x()({[`${uh}-lists`]:!0,[`${uh}-lists-rtl`]:"rtl"===n,[`${uh}-lists-empty`]:r});return i=r?this.renderEmpty():t?this.renderFlattenOption(e):this.renderItem(e),u().createElement("div",{className:s},i)}}dh.contextType=Ze,dh.propTypes={data:C().array,emptyContent:C().node,searchable:C().bool,onItemClick:C().func,onItemHover:C().func,multiple:C().bool,showNext:C().oneOf([ac,oc]),checkedKeys:C().object,halfCheckedKeys:C().object,onItemCheckboxClick:C().func,separator:C().string,keyword:C().string,virtualize:C().object},dh.defaultProps={empty:!1};const ph={PREFIX:`${E}-tag`},fh=["default","small","large"],mh=["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],gh=["light","solid","ghost"],yh=["square","circle"];__webpack_require__("DzbD");var vh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const bh=ph.PREFIX,xh=mh,wh=fh,Ch=gh,Eh=yh;class Sh extends h.Component{constructor(e){super(e),this.state={visible:!0},this.close=this.close.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}static getDerivedStateFromProps(e){return"visible"in e?{visible:e.visible}:null}setVisible(e){"visible"in this.props||this.setState({visible:e})}close(e,t,n){const{onClose:r}=this.props;e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),r&&r(t,e,n),e.defaultPrevented||this.setVisible(!1)}handleKeyDown(e){const{closable:t,onClick:n,onKeyDown:r}=this.props;switch(e.key){case"Backspace":case"Delete":t&&this.close(e,this.props.children,this.props.tagKey),Ce(e);break;case"Enter":n(e),Ce(e);break;case"Escape":e.target.blur()}r&&r(e)}renderAvatar(){const{avatarShape:e,avatarSrc:t}=this.props;return u().createElement(jr,{src:t,shape:e})}render(){const e=this.props,{tagKey:t,children:n,size:r,color:i,closable:s,visible:a,onClose:o,onClick:l,className:c,type:h,shape:d,avatarSrc:p,avatarShape:f,tabIndex:m,prefixIcon:g,suffixIcon:y}=e,v=vh(e,["tagKey","children","size","color","closable","visible","onClose","onClick","className","type","shape","avatarSrc","avatarShape","tabIndex","prefixIcon","suffixIcon"]),{visible:b}=this.state,w=l!==Sh.defaultProps.onClick||s,C={role:"button",tabIndex:m||0,onKeyDown:this.handleKeyDown},E=Object.assign(Object.assign({},v),{onClick:l,tabIndex:m,className:x()(bh,{[`${bh}-default`]:"default"===r,[`${bh}-small`]:"small"===r,[`${bh}-large`]:"large"===r,[`${bh}-square`]:"square"===d,[`${bh}-circle`]:"circle"===d,[`${bh}-${h}`]:h,[`${bh}-${i}-${h}`]:i&&h,[`${bh}-closable`]:s,[`${bh}-invisible`]:!b,[`${bh}-avatar-${f}`]:p},c)}),S=w?Object.assign(Object.assign({},E),C):E,_=s?u().createElement("div",{className:`${bh}-close`,onClick:e=>this.close(e,n,t)},u().createElement(Ri,{size:"small"})):null,k=ne()(n),P=x()(`${bh}-content`,`${bh}-content-${k?"ellipsis":"center"}`);return u().createElement("div",Object.assign({"aria-label":this.props["aria-label"]||k?`${s?"Closable ":""}Tag: ${n}`:""},S),g?u().createElement("div",{className:`${bh}-prefix-icon`},g):null,p?this.renderAvatar():null,u().createElement("div",{className:P},n),y?u().createElement("div",{className:`${bh}-suffix-icon`},y):null,_)}}Sh.defaultProps={size:wh[0],color:xh[0],closable:!1,type:Ch[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null},Sh.propTypes={children:C().node,tagKey:C().oneOfType([C().string,C().number]),size:C().oneOf(wh),color:C().oneOf(xh),type:C().oneOf(Ch),closable:C().bool,visible:C().bool,onClose:C().func,onClick:C().func,prefixIcon:C().node,suffixIcon:C().node,style:C().object,className:C().string,avatarSrc:C().string,avatarShape:C().oneOf(Eh),"aria-label":C().string};const _h={PREFIX:`${E}-tagInput`},kh=["large","default","small"],Ph=["success","default","error","warning"];__webpack_require__("lZky");const Oh=(e,t)=>{let n=[];if(ne()(t)||Kn()(t))n=e.split(t);else if(D()(t)){const r=t[0];n=e;for(let e=1;e<t.length;e++)n=n.split(t[e]).join(r);n=n.split(r)}else n.push(e);return n};function Th(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}const Ih=class extends c{constructor(e){super(Object.assign({},e)),this.handleInputChange=e=>{const{value:t}=e.target,{entering:n}=this.getStates();(n||this._checkInputChangeValid(t))&&this._onInputChange(t,e)},this.handleInputCompositionStart=e=>{const{maxLength:t}=this.getProps();Kn()(t)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=e=>{const{value:t}=e.target,{maxLength:n,onInputExceed:r,separator:i}=this.getProps();if(!Kn()(n))return;this._adapter.setEntering(!1);let s=!0;const a=Oh(t,i);let o=0;for(;o<a.length;o++)if(a[o].length>n){s=!1,J()(r)&&r(t);break}if(s)this._adapter.setInputValue(t);else{const e=a.slice(0,o);o<a.length&&e.push(a[o].slice(0,n)),this._adapter.setInputValue(e.join(i))}},this._checkInputChangeValid=e=>{const{maxLength:t,onInputExceed:n,separator:r}=this._adapter.getProps(),{inputValue:i}=this._adapter.getStates();let s=!0;if(Kn()(t)){const a=Oh(e,r),o=Oh(i,r),l=Math.max(a.length,o.length);for(let r=0;r<l;r++)if(!le()(a[r])&&(le()(o[r])||a[r].length>o[r].length)&&a[r].length>t){s=!1,J()(n)&&n(e);break}}return s},this.handleKeyDown=e=>{const{inputValue:t,tagsArray:n}=this._adapter.getStates(),r=e.keyCode;r===Zt.ENTER&&(e.preventDefault(),""!==t&&this._handleAddTags(e));const{length:i}=n;if(r===Zt.BACKSPACE&&""===t&&i>0){const e=n.slice(0,i-1),t=n[i-1];this._onRemove(e,t,i-1)}this._adapter.notifyKeyDown(e)}}_handleAddTags(e){const{separator:t,max:n,onExceed:r,allowDuplicates:i}=this._adapter.getProps(),{inputValue:s,tagsArray:a}=this._adapter.getStates();let o=Oh(s,t);o=o.filter(((e,t)=>!(!i&&(a.includes(e)||o.indexOf(e)!==t))&&(ne()(e)&&""!==e.trim())));let l=a.concat(o);Kn()(n)&&l.length>n&&(J()(r)&&r(l),l=l.slice(0,n),o=o.slice(0,n-a.length)),o.length>0&&this._onAdd(l,o),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();!0===t&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){Jt(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:n}=this._adapter.getStates();n.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),n=[...t];n.splice(e,1);const r=t[e];this._onRemove(n,r,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler((e=>this.clickOutsideCallBack())))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:n}=this._adapter.getStates();t||n||this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&J()(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,n){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,n)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:n}=e,{tagsArray:r}=this.getStates(),i=Th(r,t,n);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}};const Dh=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),h.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),h.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),h.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),h.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),h.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}),"handle");const Ah="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Rh(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Nh(e){return"nodeType"in e}function Mh(e){var t,n;return e?Rh(e)?e:Nh(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Fh(e){const{Document:t}=Mh(e);return e instanceof t}function Lh(e){return!Rh(e)&&e instanceof Mh(e).HTMLElement}function jh(e){return e instanceof Mh(e).SVGElement}function Vh(e){return e?Rh(e)?e.document:Nh(e)?Fh(e)?e:Lh(e)||jh(e)?e.ownerDocument:document:document:document}const $h=Ah?h.useLayoutEffect:h.useEffect;function Bh(e){const t=(0,h.useRef)(e);return $h((()=>{t.current=e})),(0,h.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function zh(e,t){void 0===t&&(t=[e]);const n=(0,h.useRef)(e);return $h((()=>{n.current!==e&&(n.current=e)}),t),n}function Hh(e,t){const n=(0,h.useRef)();return(0,h.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function Kh(e){const t=Bh(e),n=(0,h.useRef)(null),r=(0,h.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function Uh(e){const t=(0,h.useRef)();return(0,h.useEffect)((()=>{t.current=e}),[e]),t.current}let Wh={};function Gh(e,t){return(0,h.useMemo)((()=>{if(t)return t;const n=null==Wh[e]?0:Wh[e]+1;return Wh[e]=n,e+"-"+n}),[e,t])}function qh(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const Yh=qh(1),Xh=qh(-1);function Zh(e){if(!e)return!1;const{KeyboardEvent:t}=Mh(e.target);return t&&e instanceof t}function Jh(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Mh(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Qh=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Qh.Translate.toString(e),Qh.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),eu="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function tu(e){return e.matches(eu)?e:e.querySelector(eu)}const nu={display:"none"};function ru(e){let{id:t,value:n}=e;return u().createElement("div",{id:t,style:nu},n)}function iu(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return u().createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const su=(0,h.createContext)(null);const au={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},ou={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function lu(e){let{announcements:t=ou,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=au}=e;const{announce:s,announcement:a}=function(){const[e,t]=(0,h.useState)("");return{announce:(0,h.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),o=Gh("DndLiveRegion"),[l,c]=(0,h.useState)(!1);if((0,h.useEffect)((()=>{c(!0)}),[]),function(e){const t=(0,h.useContext)(su);(0,h.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,h.useMemo)((()=>({onDragStart(e){let{active:n}=e;s(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&s(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;s(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;s(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;s(t.onDragCancel({active:n,over:r}))}})),[s,t])),!l)return null;const d=u().createElement(u().Fragment,null,u().createElement(ru,{id:r,value:i.draggable}),u().createElement(iu,{id:o,announcement:a}));return n?(0,me.createPortal)(d,n):d}var cu;function hu(){}function uu(e,t){return(0,h.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(cu||(cu={}));const du=Object.freeze({x:0,y:0});function pu(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function fu(e,t){const n=Jh(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function mu(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function gu(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function yu(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function vu(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function bu(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const xu=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=bu(t,t.left,t.top),s=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=pu(bu(r),i);s.push({id:t,data:{droppableContainer:e,value:n}})}}return s.sort(mu)};function wu(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),a=i-r,o=s-n;if(r<i&&n<s){const n=t.width*t.height,r=e.width*e.height,i=a*o;return Number((i/(n+r-i)).toFixed(4))}return 0}const Cu=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,s=n.get(r);if(s){const n=wu(s,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(gu)};function Eu(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:du}function Su(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const _u=Su(1);function ku(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const Pu={ignoreTransform:!1};function Ou(e,t){void 0===t&&(t=Pu);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Mh(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=ku(t);if(!r)return e;const{scaleX:i,scaleY:s,x:a,y:o}=r,l=e.left-a-(1-i)*parseFloat(n),c=e.top-o-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),h=i?e.width/i:e.width,u=s?e.height/s:e.height;return{width:h,height:u,top:c,right:l+h,bottom:c+u,left:l}}(n,t,r))}const{top:r,left:i,width:s,height:a,bottom:o,right:l}=n;return{top:r,left:i,width:s,height:a,bottom:o,right:l}}function Tu(e){return Ou(e,{ignoreTransform:!0})}function Iu(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(Fh(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Lh(i)||jh(i))return n;if(n.includes(i))return n;const s=Mh(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=Mh(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,s)&&n.push(i),function(e,t){return void 0===t&&(t=Mh(e).getComputedStyle(e)),"fixed"===t.position}(i,s)?n:r(i.parentNode)}(e):n}function Du(e){const[t]=Iu(e,1);return null!=t?t:null}function Au(e){return Ah&&e?Rh(e)?e:Nh(e)?Fh(e)||e===Vh(e).scrollingElement?window:Lh(e)?e:null:null:null}function Ru(e){return Rh(e)?e.scrollX:e.scrollLeft}function Nu(e){return Rh(e)?e.scrollY:e.scrollTop}function Mu(e){return{x:Ru(e),y:Nu(e)}}var Fu;function Lu(e){return!(!Ah||!e)&&e===document.scrollingElement}function ju(e){const t={x:0,y:0},n=Lu(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Fu||(Fu={}));const Vu={x:.2,y:.2};function $u(e,t,n,r,i){let{top:s,left:a,right:o,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=Vu);const{isTop:c,isBottom:h,isLeft:u,isRight:d}=ju(e),p={x:0,y:0},f={x:0,y:0},m=t.height*i.y,g=t.width*i.x;return!c&&s<=t.top+m?(p.y=Fu.Backward,f.y=r*Math.abs((t.top+m-s)/m)):!h&&l>=t.bottom-m&&(p.y=Fu.Forward,f.y=r*Math.abs((t.bottom-m-l)/m)),!d&&o>=t.right-g?(p.x=Fu.Forward,f.x=r*Math.abs((t.right-g-o)/g)):!u&&a<=t.left+g&&(p.x=Fu.Backward,f.x=r*Math.abs((t.left+g-a)/g)),{direction:p,speed:f}}function Bu(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function zu(e){return e.reduce(((e,t)=>Yh(e,Mu(t))),du)}function Hu(e,t){if(void 0===t&&(t=Ou),!e)return;const{top:n,left:r,bottom:i,right:s}=t(e);Du(e)&&(i<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Ku=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Ru(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Nu(t)),0)}]];class Uu{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Iu(t),r=zu(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of Ku)for(const s of t)Object.defineProperty(this,s,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[s]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Wu{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Gu(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var qu,Yu;function Xu(e){e.preventDefault()}function Zu(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(qu||(qu={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(Yu||(Yu={}));const Ju={start:[Yu.Space,Yu.Enter],cancel:[Yu.Esc],end:[Yu.Space,Yu.Enter]},Qu=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Yu.Right:return{...n,x:n.x+25};case Yu.Left:return{...n,x:n.x-25};case Yu.Down:return{...n,y:n.y+25};case Yu.Up:return{...n,y:n.y-25}}};class ed{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Wu(Vh(t)),this.windowListeners=new Wu(Mh(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(qu.Resize,this.handleCancel),this.windowListeners.add(qu.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(qu.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Hu(n),t(du)}handleKeyDown(e){if(Zh(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Ju,coordinateGetter:s=Qu,scrollBehavior:a="smooth"}=r,{code:o}=e;if(i.end.includes(o))return void this.handleEnd(e);if(i.cancel.includes(o))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:du;this.referenceCoordinates||(this.referenceCoordinates=c);const h=s(e,{active:t,context:n.current,currentCoordinates:c});if(h){const t=Xh(h,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:s,isRight:o,isLeft:l,isBottom:c,maxScroll:u,minScroll:d}=ju(n),p=Bu(n),f={x:Math.min(i===Yu.Right?p.right-p.width/2:p.right,Math.max(i===Yu.Right?p.left:p.left+p.width/2,h.x)),y:Math.min(i===Yu.Down?p.bottom-p.height/2:p.bottom,Math.max(i===Yu.Down?p.top:p.top+p.height/2,h.y))},m=i===Yu.Right&&!o||i===Yu.Left&&!l,g=i===Yu.Down&&!c||i===Yu.Up&&!s;if(m&&f.x!==h.x){const e=n.scrollLeft+t.x,s=i===Yu.Right&&e<=u.x||i===Yu.Left&&e>=d.x;if(s&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=s?n.scrollLeft-e:i===Yu.Right?n.scrollLeft-u.x:n.scrollLeft-d.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(g&&f.y!==h.y){const e=n.scrollTop+t.y,s=i===Yu.Down&&e<=u.y||i===Yu.Up&&e>=d.y;if(s&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=s?n.scrollTop-e:i===Yu.Down?n.scrollTop-u.y:n.scrollTop-d.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,Yh(Xh(h,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function td(e){return Boolean(e&&"distance"in e)}function nd(e){return Boolean(e&&"delay"in e)}ed.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Ju,onActivation:i}=t,{active:s}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=s.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class rd{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Mh(e);return e instanceof t?e:Vh(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:s}=i;this.props=e,this.events=t,this.document=Vh(s),this.documentListeners=new Wu(this.document),this.listeners=new Wu(n),this.windowListeners=new Wu(Mh(s)),this.initialCoordinates=null!=(r=Jh(i))?r:du,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(qu.Resize,this.handleCancel),this.windowListeners.add(qu.DragStart,Xu),this.windowListeners.add(qu.VisibilityChange,this.handleCancel),this.windowListeners.add(qu.ContextMenu,Xu),this.documentListeners.add(qu.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nd(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(td(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(qu.Click,Zu,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(qu.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!r)return;const o=null!=(t=Jh(e))?t:du,l=Xh(r,o);if(!n&&a){if(td(a)){if(null!=a.tolerance&&Gu(l,a.tolerance))return this.handleCancel();if(Gu(l,a.distance))return this.handleStart()}return nd(a)&&Gu(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),s(o)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Yu.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const id={move:{name:"pointermove"},end:{name:"pointerup"}};class sd extends rd{constructor(e){const{event:t}=e,n=Vh(t.target);super(e,id,n)}}sd.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const ad={move:{name:"mousemove"},end:{name:"mouseup"}};var od;!function(e){e[e.RightClick=2]="RightClick"}(od||(od={}));class ld extends rd{constructor(e){super(e,ad,Vh(e.event.target))}}ld.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==od.RightClick&&(null==r||r({event:n}),!0)}}];const cd={move:{name:"touchmove"},end:{name:"touchend"}};class hd extends rd{constructor(e){super(e,cd)}static setup(){return window.addEventListener(cd.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(cd.move.name,e)};function e(){}}}var ud,dd;function pd(e){let{acceleration:t,activator:n=ud.Pointer,canScroll:r,draggingRect:i,enabled:s,interval:a=5,order:o=dd.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:p}=e;const f=function(e){let{delta:t,disabled:n}=e;const r=Uh(t);return Hh((e=>{if(n||!r||!e)return fd;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Fu.Backward]:e.x[Fu.Backward]||-1===i.x,[Fu.Forward]:e.x[Fu.Forward]||1===i.x},y:{[Fu.Backward]:e.y[Fu.Backward]||-1===i.y,[Fu.Forward]:e.y[Fu.Forward]||1===i.y}}}),[n,t,r])}({delta:d,disabled:!s}),[m,g]=function(){const e=(0,h.useRef)(null),t=(0,h.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]);return[t,(0,h.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),y=(0,h.useRef)({x:0,y:0}),v=(0,h.useRef)({x:0,y:0}),b=(0,h.useMemo)((()=>{switch(n){case ud.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case ud.DraggableRect:return i}}),[n,i,l]),x=(0,h.useRef)(null),w=(0,h.useCallback)((()=>{const e=x.current;if(!e)return;const t=y.current.x*v.current.x,n=y.current.y*v.current.y;e.scrollBy(t,n)}),[]),C=(0,h.useMemo)((()=>o===dd.TreeOrder?[...c].reverse():c),[o,c]);(0,h.useEffect)((()=>{if(s&&c.length&&b){for(const e of C){if(!1===(null==r?void 0:r(e)))continue;const n=c.indexOf(e),i=u[n];if(!i)continue;const{direction:s,speed:o}=$u(e,i,b,t,p);for(const e of["x","y"])f[e][s[e]]||(o[e]=0,s[e]=0);if(o.x>0||o.y>0)return g(),x.current=e,m(w,a),y.current=o,void(v.current=s)}y.current={x:0,y:0},v.current={x:0,y:0},g()}else g()}),[t,w,r,g,s,a,JSON.stringify(b),JSON.stringify(f),m,c,C,u,JSON.stringify(p)])}hd.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ud||(ud={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(dd||(dd={}));const fd={x:{[Fu.Backward]:!1,[Fu.Forward]:!1},y:{[Fu.Backward]:!1,[Fu.Forward]:!1}};var md,gd;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(md||(md={})),function(e){e.Optimized="optimized"}(gd||(gd={}));const yd=new Map;function vd(e,t){return Hh((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function bd(e){let{callback:t,disabled:n}=e;const r=Bh(t),i=(0,h.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return(0,h.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function xd(e){return new Uu(Ou(e),e)}function wd(e,t,n){void 0===t&&(t=xd);const[r,i]=(0,h.useReducer)((function(r){if(!e)return null;var i;if(!1===e.isConnected)return null!=(i=null!=r?r:n)?i:null;const s=t(e);if(JSON.stringify(r)===JSON.stringify(s))return r;return s}),null),s=function(e){let{callback:t,disabled:n}=e;const r=Bh(t),i=(0,h.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return(0,h.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),a=bd({callback:i});return $h((()=>{i(),e?(null==a||a.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==s||s.disconnect())}),[e]),r}const Cd=[];function Ed(e,t){void 0===t&&(t=[]);const n=(0,h.useRef)(null);return(0,h.useEffect)((()=>{n.current=null}),t),(0,h.useEffect)((()=>{const t=e!==du;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?Xh(e,n.current):du}function Sd(e){return(0,h.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const _d=[];function kd(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Lh(t)?t:e}const Pd=[{sensor:sd,options:{}},{sensor:ed,options:{}}],Od={current:{}},Td={draggable:{measure:Tu},droppable:{measure:Tu,strategy:md.WhileDragging,frequency:gd.Optimized},dragOverlay:{measure:Ou}};class Id extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Dd={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Id,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:hu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Td,measureDroppableContainers:hu,windowRect:null,measuringScheduled:!1},Ad={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:hu,draggableNodes:new Map,over:null,measureDroppableContainers:hu},Rd=(0,h.createContext)(Ad),Nd=(0,h.createContext)(Dd);function Md(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Id}}}function Fd(e,t){switch(t.type){case cu.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case cu.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case cu.DragEnd:case cu.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case cu.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Id(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case cu.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const a=new Id(e.droppable.containers);return a.set(n,{...s,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case cu.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new Id(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function Ld(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=(0,h.useContext)(Rd),s=Uh(r),a=Uh(null==n?void 0:n.id);return(0,h.useEffect)((()=>{if(!t&&!r&&s&&null!=a){if(!Zh(s))return;if(document.activeElement===s.target)return;const e=i.get(a);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=tu(e);if(t){t.focus();break}}}))}}),[r,t,i,a,s]),null}function jd(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Vd=(0,h.createContext)({...du,scaleX:1,scaleY:1});var $d;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}($d||($d={}));const Bd=(0,h.memo)((function(e){var t,n,r,i;let{id:s,accessibility:a,autoScroll:o=!0,children:l,sensors:c=Pd,collisionDetection:d=Cu,measuring:p,modifiers:f,...m}=e;const g=(0,h.useReducer)(Fd,void 0,Md),[y,v]=g,[b,x]=function(){const[e]=(0,h.useState)((()=>new Set)),t=(0,h.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]),n=(0,h.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[n,t]}(),[w,C]=(0,h.useState)($d.Uninitialized),E=w===$d.Initialized,{draggable:{active:S,nodes:_,translate:k},droppable:{containers:P}}=y,O=S?_.get(S):null,T=(0,h.useRef)({initial:null,translated:null}),I=(0,h.useMemo)((()=>{var e;return null!=S?{id:S,data:null!=(e=null==O?void 0:O.data)?e:Od,rect:T}:null}),[S,O]),D=(0,h.useRef)(null),[A,R]=(0,h.useState)(null),[N,M]=(0,h.useState)(null),F=zh(m,Object.values(m)),L=Gh("DndDescribedBy",s),j=(0,h.useMemo)((()=>P.getEnabled()),[P]),V=($=p,(0,h.useMemo)((()=>({draggable:{...Td.draggable,...null==$?void 0:$.draggable},droppable:{...Td.droppable,...null==$?void 0:$.droppable},dragOverlay:{...Td.dragOverlay,...null==$?void 0:$.dragOverlay}})),[null==$?void 0:$.draggable,null==$?void 0:$.droppable,null==$?void 0:$.dragOverlay]));var $;const{droppableRects:B,measureDroppableContainers:z,measuringScheduled:H}=function(e,t){let{dragging:n,dependencies:r,config:i}=t;const[s,a]=(0,h.useState)(null),{frequency:o,measure:l,strategy:c}=i,u=(0,h.useRef)(e),d=function(){switch(c){case md.Always:return!1;case md.BeforeDragging:return n;default:return!n}}(),p=zh(d),f=(0,h.useCallback)((function(e){void 0===e&&(e=[]),p.current||a((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),m=(0,h.useRef)(null),g=Hh((t=>{if(d&&!n)return yd;if(!t||t===yd||u.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new Uu(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,d,l]);return(0,h.useEffect)((()=>{u.current=e}),[e]),(0,h.useEffect)((()=>{d||f()}),[n,d]),(0,h.useEffect)((()=>{s&&s.length>0&&a(null)}),[JSON.stringify(s)]),(0,h.useEffect)((()=>{d||"number"!=typeof o||null!==m.current||(m.current=setTimeout((()=>{f(),m.current=null}),o))}),[o,d,f,...r]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:null!=s}}(j,{dragging:E,dependencies:[k.x,k.y],config:V.droppable}),K=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return Hh((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(_,S),U=(0,h.useMemo)((()=>N?Jh(N):null),[N]),W=function(){const e=!1===(null==A?void 0:A.autoScrollEnabled),t="object"==typeof o?!1===o.enabled:!1===o,n=E&&!e&&!t;if("object"==typeof o)return{...o,enabled:n};return{enabled:n}}(),G=function(e,t){return vd(e,t)}(K,V.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const s=(0,h.useRef)(!1),{x:a,y:o}="boolean"==typeof i?{x:i,y:i}:i;$h((()=>{if(!a&&!o||!t)return void(s.current=!1);if(s.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const i=Eu(n(e),r);if(a||(i.x=0),o||(i.y=0),s.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){const t=Du(e);t&&t.scrollBy({top:i.y,left:i.x})}}),[t,a,o,r,n])}({activeNode:S?_.get(S):null,config:W.layoutShiftCompensation,initialRect:G,measure:V.draggable.measure});const q=wd(K,V.draggable.measure,G),Y=wd(K?K.parentElement:null),X=(0,h.useRef)({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Z=P.getNodeFor(null==(t=X.current.over)?void 0:t.id),J=function(e){let{measure:t}=e;const[n,r]=(0,h.useState)(null),i=bd({callback:(0,h.useCallback)((e=>{for(const{target:n}of e)if(Lh(n)){r((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),s=(0,h.useCallback)((e=>{const n=kd(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)}),[t,i]),[a,o]=Kh(s);return(0,h.useMemo)((()=>({nodeRef:a,rect:n,setRef:o})),[n,a,o])}({measure:V.dragOverlay.measure}),Q=null!=(n=J.nodeRef.current)?n:K,ee=E?null!=(r=J.rect)?r:q:null,te=Boolean(J.nodeRef.current&&J.rect),ne=Eu(re=te?null:q,vd(re));var re;const ie=Sd(Q?Mh(Q):null),se=function(e){const t=(0,h.useRef)(e),n=Hh((n=>e?n&&n!==Cd&&e&&t.current&&e.parentNode===t.current.parentNode?n:Iu(e):Cd),[e]);return(0,h.useEffect)((()=>{t.current=e}),[e]),n}(E?null!=Z?Z:K:null),ae=function(e,t){void 0===t&&(t=Ou);const[n]=e,r=Sd(n?Mh(n):null),[i,s]=(0,h.useReducer)((function(){return e.length?e.map((e=>Lu(e)?r:new Uu(t(e),e))):_d}),_d),a=bd({callback:s});return e.length>0&&i===_d&&s(),$h((()=>{e.length?e.forEach((e=>null==a?void 0:a.observe(e))):(null==a||a.disconnect(),s())}),[e]),i}(se),oe=jd(f,{transform:{x:k.x-ne.x,y:k.y-ne.y,scaleX:1,scaleY:1},activatorEvent:N,active:I,activeNodeRect:q,containerNodeRect:Y,draggingNodeRect:ee,over:X.current.over,overlayNodeRect:J.rect,scrollableAncestors:se,scrollableAncestorRects:ae,windowRect:ie}),le=U?Yh(U,k):null,ce=function(e){const[t,n]=(0,h.useState)(null),r=(0,h.useRef)(e),i=(0,h.useCallback)((e=>{const t=Au(e.target);t&&n((e=>e?(e.set(t,Mu(t)),new Map(e)):null))}),[]);return(0,h.useEffect)((()=>{const t=r.current;if(e!==t){s(t);const a=e.map((e=>{const t=Au(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Mu(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(t)};function s(e){e.forEach((e=>{const t=Au(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,h.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>Yh(e,t)),du):zu(e):du),[e,t])}(se),he=Ed(ce),ue=Ed(ce,[q]),de=Yh(oe,he),pe=ee?_u(ee,oe):null,fe=I&&pe?d({active:I,collisionRect:pe,droppableRects:B,droppableContainers:j,pointerCoordinates:le}):null,ge=vu(fe,"id"),[ye,ve]=(0,h.useState)(null),be=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?oe:Yh(oe,ue),null!=(i=null==ye?void 0:ye.rect)?i:null,q),xe=(0,h.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==D.current)return;const i=_.get(D.current);if(!i)return;const s=e.nativeEvent,a=new n({active:D.current,activeNode:i,event:s,options:r,context:X,onStart(e){const t=D.current;if(null==t)return;const n=_.get(t);if(!n)return;const{onDragStart:r}=F.current,i={active:{id:t,data:n.data,rect:T}};(0,me.unstable_batchedUpdates)((()=>{null==r||r(i),C($d.Initializing),v({type:cu.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:i})}))},onMove(e){v({type:cu.DragMove,coordinates:e})},onEnd:o(cu.DragEnd),onCancel:o(cu.DragCancel)});function o(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=X.current;let a=null;if(t&&i){const{cancelDrop:o}=F.current;if(a={activatorEvent:s,active:t,collisions:n,delta:i,over:r},e===cu.DragEnd&&"function"==typeof o){await Promise.resolve(o(a))&&(e=cu.DragCancel)}}D.current=null,(0,me.unstable_batchedUpdates)((()=>{v({type:e}),C($d.Uninitialized),ve(null),R(null),M(null);const t=e===cu.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=F.current[t];null==e||e(a),b({type:t,event:a})}}))}}(0,me.unstable_batchedUpdates)((()=>{R(a),M(e.nativeEvent)}))}),[_]),we=(0,h.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,s=_.get(r);if(null!==D.current||!s||i.dndKit||i.defaultPrevented)return;const a={active:s};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},D.current=r,xe(n,t))}),[_,xe]),Ce=function(e,t){return(0,h.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(c,we);!function(e){(0,h.useEffect)((()=>{if(!Ah)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(c),$h((()=>{q&&w===$d.Initializing&&C($d.Initialized)}),[q,w]),(0,h.useEffect)((()=>{const{onDragMove:e}=F.current,{active:t,activatorEvent:n,collisions:r,over:i}=X.current;if(!t||!n)return;const s={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:i};(0,me.unstable_batchedUpdates)((()=>{null==e||e(s),b({type:"onDragMove",event:s})}))}),[de.x,de.y]),(0,h.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=X.current;if(!e||null==D.current||!t||!i)return;const{onDragOver:s}=F.current,a=r.get(ge),o=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:o};(0,me.unstable_batchedUpdates)((()=>{ve(o),null==s||s(l),b({type:"onDragOver",event:l})}))}),[ge]),$h((()=>{X.current={activatorEvent:N,active:I,activeNode:K,collisionRect:pe,collisions:fe,droppableRects:B,draggableNodes:_,draggingNode:Q,draggingNodeRect:ee,droppableContainers:P,over:ye,scrollableAncestors:se,scrollAdjustedTranslate:de},T.current={initial:ee,translated:pe}}),[I,K,fe,pe,_,Q,ee,B,P,ye,se,de]),pd({...W,delta:k,draggingRect:pe,pointerCoordinates:le,scrollableAncestors:se,scrollableAncestorRects:ae});const Ee=(0,h.useMemo)((()=>({active:I,activeNode:K,activeNodeRect:q,activatorEvent:N,collisions:fe,containerNodeRect:Y,dragOverlay:J,draggableNodes:_,droppableContainers:P,droppableRects:B,over:ye,measureDroppableContainers:z,scrollableAncestors:se,scrollableAncestorRects:ae,measuringConfiguration:V,measuringScheduled:H,windowRect:ie})),[I,K,q,N,fe,Y,J,_,P,B,ye,z,se,ae,V,H,ie]),Se=(0,h.useMemo)((()=>({activatorEvent:N,activators:Ce,active:I,activeNodeRect:q,ariaDescribedById:{draggable:L},dispatch:v,draggableNodes:_,over:ye,measureDroppableContainers:z})),[N,Ce,I,q,v,L,_,ye,z]);return u().createElement(su.Provider,{value:x},u().createElement(Rd.Provider,{value:Se},u().createElement(Nd.Provider,{value:Ee},u().createElement(Vd.Provider,{value:be},l)),u().createElement(Ld,{disabled:!1===(null==a?void 0:a.restoreFocus)})),u().createElement(lu,{...a,hiddenTextDescribedById:L}))})),zd=(0,h.createContext)(null),Hd="button",Kd="Droppable";function Ud(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const s=Gh(Kd),{activators:a,activatorEvent:o,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:p}=(0,h.useContext)(Rd),{role:f=Hd,roleDescription:m="draggable",tabIndex:g=0}=null!=i?i:{},y=(null==l?void 0:l.id)===t,v=(0,h.useContext)(y?Vd:zd),[b,x]=Kh(),[w,C]=Kh(),E=function(e,t){return(0,h.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e}),{})),[e,t])}(a,t),S=zh(n);$h((()=>(d.set(t,{id:t,key:s,node:b,activatorNode:w,data:S}),()=>{const e=d.get(t);e&&e.key===s&&d.delete(t)})),[d,t]);return{active:l,activatorEvent:o,activeNodeRect:c,attributes:(0,h.useMemo)((()=>({role:f,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!y||f!==Hd)||void 0,"aria-roledescription":m,"aria-describedby":u.draggable})),[r,f,g,y,m,u.draggable]),isDragging:y,listeners:r?void 0:E,node:b,over:p,setNodeRef:x,setActivatorNodeRef:C,transform:v}}function Wd(){return(0,h.useContext)(Nd)}const Gd="Droppable",qd={timeout:25};function Yd(e){let{animation:t,children:n}=e;const[r,i]=(0,h.useState)(null),[s,a]=(0,h.useState)(null),o=Uh(n);return n||r||!o||i(o),$h((()=>{if(!s)return;const e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null!=e&&null!=n?Promise.resolve(t(n,s)).then((()=>{i(null)})):i(null)}),[t,r,s]),u().createElement(u().Fragment,null,n,r?(0,h.cloneElement)(r,{ref:a}):null)}const Xd={x:0,y:0,scaleX:1,scaleY:1};function Zd(e){let{children:t}=e;return u().createElement(Rd.Provider,{value:Ad},u().createElement(Vd.Provider,{value:Xd},t))}const Jd={position:"fixed",touchAction:"none"},Qd=e=>Zh(e)?"transform 250ms ease":void 0,ep=(0,h.forwardRef)(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:s,className:a,rect:o,style:l,transform:c,transition:h=Qd}=e;if(!o)return null;const d=i?c:{...c,scaleX:1,scaleY:1},p={...Jd,width:o.width,height:o.height,top:o.top,left:o.left,transform:Qh.Transform.toString(d),transformOrigin:i&&r?fu(r,o):void 0,transition:"function"==typeof h?h(r):h,...l};return u().createElement(n,{className:a,style:p,ref:t},s)})),tp=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:s,className:a}=e;if(null!=s&&s.active)for(const[e,t]of Object.entries(s.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=s&&s.dragOverlay)for(const[e,t]of Object.entries(s.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},np={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Qh.Transform.toString(t)},{transform:Qh.Transform.toString(n)}]},sideEffects:tp({styles:{active:{opacity:"0"}}})};function rp(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Bh(((e,s)=>{if(null===t)return;const a=n.get(e);if(!a)return;const o=a.node.current;if(!o)return;const l=kd(s);if(!l)return;const{transform:c}=Mh(s).getComputedStyle(s),h=ku(c);if(!h)return;const u="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...np,...e};return e=>{let{active:s,dragOverlay:a,transform:o,...l}=e;if(!t)return;const c={x:a.rect.left-s.rect.left,y:a.rect.top-s.rect.top},h={scaleX:1!==o.scaleX?s.rect.width*o.scaleX/a.rect.width:1,scaleY:1!==o.scaleY?s.rect.height*o.scaleY/a.rect.height:1},u={x:o.x-c.x,y:o.y-c.y,...h},d=i({...l,active:s,dragOverlay:a,transform:{initial:o,final:u}}),[p]=d,f=d[d.length-1];if(JSON.stringify(p)===JSON.stringify(f))return;const m=null==r?void 0:r({active:s,dragOverlay:a,...l}),g=a.node.animate(d,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{g.onfinish=()=>{null==m||m(),e()}}))}}(t);return Hu(o,i.draggable.measure),u({active:{id:e,data:a.data,node:o,rect:i.draggable.measure(o)},draggableNodes:n,dragOverlay:{node:s,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:h})}))}let ip=0;function sp(e){return(0,h.useMemo)((()=>{if(null!=e)return ip++,ip}),[e])}const ap=u().memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:s,modifiers:a,wrapperElement:o="div",className:l,zIndex:c=999}=e;const{activatorEvent:d,active:p,activeNodeRect:f,containerNodeRect:m,draggableNodes:g,droppableContainers:y,dragOverlay:v,over:b,measuringConfiguration:x,scrollableAncestors:w,scrollableAncestorRects:C,windowRect:E}=Wd(),S=(0,h.useContext)(Vd),_=sp(null==p?void 0:p.id),k=jd(a,{activatorEvent:d,active:p,activeNodeRect:f,containerNodeRect:m,draggingNodeRect:v.rect,over:b,overlayNodeRect:v.rect,scrollableAncestors:w,scrollableAncestorRects:C,transform:S,windowRect:E}),P=vd(f),O=rp({config:r,draggableNodes:g,droppableContainers:y,measuringConfiguration:x}),T=P?v.setRef:void 0;return u().createElement(Zd,null,u().createElement(Yd,{animation:O},p&&_?u().createElement(ep,{key:_,id:p.id,ref:T,as:o,activatorEvent:d,adjustScale:t,className:l,transition:s,rect:P,style:{zIndex:c,...i},transform:k},n):null))}));function op(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function lp(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}function cp(e){return null!==e&&e>=0}const hp=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const s=op(t,r,n),a=t[i],o=s[i];return o&&a?{x:o.left-a.left,y:o.top-a.top,scaleX:o.width/a.width,scaleY:o.height/a.height}:null},up={scaleX:1,scaleY:1},dp=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:s,overIndex:a}=e;const o=null!=(t=s[n])?t:r;if(!o)return null;if(i===n){const e=s[a];return e?{x:0,y:n<a?e.top+e.height-(o.top+o.height):e.top-o.top,...up}:null}const l=function(e,t,n){const r=e[t],i=e[t-1],s=e[t+1];if(!r)return 0;if(n<t)return i?r.top-(i.top+i.height):s?s.top-(r.top+r.height):0;return s?s.top-(r.top+r.height):i?r.top-(i.top+i.height):0}(s,i,n);return i>n&&i<=a?{x:0,y:-o.height-l,...up}:i<n&&i>=a?{x:0,y:o.height+l,...up}:{x:0,y:0,...up}};const pp="Sortable",fp=u().createContext({activeIndex:-1,containerId:pp,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:hp,disabled:{draggable:!1,droppable:!1}});function mp(e){let{children:t,id:n,items:r,strategy:i=hp,disabled:s=!1}=e;const{active:a,dragOverlay:o,droppableRects:l,over:c,measureDroppableContainers:d}=Wd(),p=Gh(pp,n),f=Boolean(null!==o.rect),m=(0,h.useMemo)((()=>r.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[r]),g=null!=a,y=a?m.indexOf(a.id):-1,v=c?m.indexOf(c.id):-1,b=(0,h.useRef)(m),x=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(m,b.current),w=-1!==v&&-1===y||x,C=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(s);$h((()=>{x&&g&&d(m)}),[x,m,g,d]),(0,h.useEffect)((()=>{b.current=m}),[m]);const E=(0,h.useMemo)((()=>({activeIndex:y,containerId:p,disabled:C,disableTransforms:w,items:m,overIndex:v,useDragOverlay:f,sortedRects:lp(m,l),strategy:i})),[y,p,C.draggable,C.droppable,w,m,v,l,f,i]);return u().createElement(fp.Provider,{value:E},t)}const gp=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return op(n,r,i).indexOf(t)},yp=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:s,newIndex:a,previousItems:o,previousContainerId:l,transition:c}=e;return!(!c||!r)&&((o===s||i!==a)&&(!!n||a!==i&&t===l))},vp={duration:200,easing:"ease"},bp="transform",xp=Qh.Transition.toString({property:bp,duration:0,easing:"linear"}),wp={roleDescription:"sortable"};function Cp(e){let{animateLayoutChanges:t=yp,attributes:n,disabled:r,data:i,getNewIndex:s=gp,id:a,strategy:o,resizeObserverConfig:l,transition:c=vp}=e;const{items:u,containerId:d,activeIndex:p,disabled:f,disableTransforms:m,sortedRects:g,overIndex:y,useDragOverlay:v,strategy:b}=(0,h.useContext)(fp),x=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,f),w=u.indexOf(a),C=(0,h.useMemo)((()=>({sortable:{containerId:d,index:w,items:u},...i})),[d,i,w,u]),E=(0,h.useMemo)((()=>u.slice(u.indexOf(a))),[u,a]),{rect:S,node:_,isOver:k,setNodeRef:P}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const s=Gh(Gd),{active:a,dispatch:o,over:l,measureDroppableContainers:c}=(0,h.useContext)(Rd),u=(0,h.useRef)({disabled:n}),d=(0,h.useRef)(!1),p=(0,h.useRef)(null),f=(0,h.useRef)(null),{disabled:m,updateMeasurementsFor:g,timeout:y}={...qd,...i},v=zh(null!=g?g:r),b=bd({callback:(0,h.useCallback)((()=>{d.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout((()=>{c(Array.isArray(v.current)?v.current:[v.current]),f.current=null}),y)):d.current=!0}),[y]),disabled:m||!a}),x=(0,h.useCallback)(((e,t)=>{b&&(t&&(b.unobserve(t),d.current=!1),e&&b.observe(e))}),[b]),[w,C]=Kh(x),E=zh(t);return(0,h.useEffect)((()=>{b&&w.current&&(b.disconnect(),d.current=!1,b.observe(w.current))}),[w,b]),$h((()=>(o({type:cu.RegisterDroppable,element:{id:r,key:s,disabled:n,node:w,rect:p,data:E}}),()=>o({type:cu.UnregisterDroppable,key:s,id:r}))),[r]),(0,h.useEffect)((()=>{n!==u.current.disabled&&(o({type:cu.SetDroppableDisabled,id:r,key:s,disabled:n}),u.current.disabled=n)}),[r,s,n,o]),{active:a,rect:p,isOver:(null==l?void 0:l.id)===r,node:w,over:l,setNodeRef:C}}({id:a,data:C,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...l}}),{active:O,activatorEvent:T,activeNodeRect:I,attributes:D,setNodeRef:A,listeners:R,isDragging:N,over:M,setActivatorNodeRef:F,transform:L}=Ud({id:a,data:C,attributes:{...wp,...n},disabled:x.draggable}),j=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,h.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}(P,A),V=Boolean(O),$=V&&!m&&cp(p)&&cp(y),B=!v&&N,z=B&&$?L:null,H=$?null!=z?z:(null!=o?o:b)({rects:g,activeNodeRect:I,activeIndex:p,overIndex:y,index:w}):null,K=cp(p)&&cp(y)?s({id:a,items:u,activeIndex:p,overIndex:y}):w,U=null==O?void 0:O.id,W=(0,h.useRef)({activeId:U,items:u,newIndex:K,containerId:d}),G=u!==W.current.items,q=t({active:O,containerId:d,isDragging:N,isSorting:V,id:a,index:w,items:u,newIndex:W.current.newIndex,previousItems:W.current.items,previousContainerId:W.current.containerId,transition:c,wasDragging:null!=W.current.activeId}),Y=function(e){let{disabled:t,index:n,node:r,rect:i}=e;const[s,a]=(0,h.useState)(null),o=(0,h.useRef)(n);return $h((()=>{if(!t&&n!==o.current&&r.current){const e=i.current;if(e){const t=Ou(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&a(n)}}n!==o.current&&(o.current=n)}),[t,n,r,i]),(0,h.useEffect)((()=>{s&&a(null)}),[s]),s}({disabled:!q,index:w,node:_,rect:S});return(0,h.useEffect)((()=>{V&&W.current.newIndex!==K&&(W.current.newIndex=K),d!==W.current.containerId&&(W.current.containerId=d),u!==W.current.items&&(W.current.items=u)}),[V,K,d,u]),(0,h.useEffect)((()=>{if(U===W.current.activeId)return;if(U&&!W.current.activeId)return void(W.current.activeId=U);const e=setTimeout((()=>{W.current.activeId=U}),50);return()=>clearTimeout(e)}),[U]),{active:O,activeIndex:p,attributes:D,data:C,rect:S,index:w,newIndex:K,items:u,isOver:k,isSorting:V,isDragging:N,listeners:R,node:_,overIndex:y,over:M,setNodeRef:j,setActivatorNodeRef:F,setDroppableNodeRef:P,setDraggableNodeRef:A,transform:null!=Y?Y:H,transition:function(){if(Y||G&&W.current.newIndex===w)return xp;if(B&&!Zh(T)||!c)return;if(V||q)return Qh.Transition.toString({...c,property:bp});return}()}}function Ep(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Sp=[Yu.Down,Yu.Right,Yu.Up,Yu.Left];function _p(e,t){return!(!Ep(e)||!Ep(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const kp="semi-sortable";function Pp(e){return u().createElement("div",Object.assign({style:{overflow:"auto"}},e))}const Op={coordinateGetter:(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:s,over:a,scrollableAncestors:o}}=t;if(Sp.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];s.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const s=i.get(n.id);if(s)switch(e.code){case Yu.Down:r.top<s.top&&t.push(n);break;case Yu.Up:r.top>s.top&&t.push(n);break;case Yu.Left:r.left>s.left&&t.push(n);break;case Yu.Right:r.left<s.left&&t.push(n)}}));const l=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=yu(t),s=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=yu(r),a=i.reduce(((e,t,r)=>e+pu(n[r],t)),0),o=Number((a/4).toFixed(4));s.push({id:t,data:{droppableContainer:e,value:o}})}}return s.sort(mu)})({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null});let c=vu(l,"id");if(c===(null==a?void 0:a.id)&&l.length>1&&(c=l[1].id),null!=c){const e=s.get(n.id),t=s.get(c),a=t?i.get(t.id):null,l=null==t?void 0:t.node.current;if(l&&a&&e&&t){const n=Iu(l).some(((e,t)=>o[t]!==e)),i=_p(e,t),s=function(e,t){if(!Ep(e)||!Ep(t))return!1;if(!_p(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=n||!i?{x:0,y:0}:{x:s?r.width-a.width:0,y:s?r.height-a.height:0},h={x:a.left,y:a.top};return c.x&&c.y?h:Xh(h,c)}}}}};function Tp(e){let{items:t,onSortEnd:n,adjustScale:r,renderItem:i,transition:s,collisionDetection:a=xu,strategy:o=hp,useDragOverlay:l=!0,dragOverlayCls:c,container:d=Pp,prefix:p=kp}=e;const[f,m]=(0,h.useState)(null),g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,h.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}(uu(ld),uu(hd),uu(ed,Op)),y=(0,h.useCallback)((e=>t.indexOf(e)),[t]),v=(0,h.useMemo)((()=>f?y(f):-1),[y,f]),b=(0,h.useCallback)((e=>{let{active:t}=e;t&&m(t.id)}),[]),x=(0,h.useCallback)((e=>{let{over:t}=e;if(m(null),t){const e=y(t.id);v!==e&&n({oldIndex:v,newIndex:e})}}),[v,y,n]),w=(0,h.useCallback)((()=>{m(null)}),[]);return u().createElement(Bd,{sensors:g,collisionDetection:a,onDragStart:b,onDragEnd:x,onDragCancel:w,autoScroll:{order:dd.ReversedTreeOrder}},u().createElement(mp,{items:t,strategy:o},u().createElement(d,null,t.map(((e,t)=>u().createElement(Ip,{key:e,id:e,index:t,renderItem:i,useDragOverlay:l,prefix:p,transition:s}))))),l?(0,me.createPortal)(u().createElement(ap,{adjustScale:r,style:{zIndex:void 0},className:c},f?i({id:f,sortableHandle:e=>e}):null),document.body):null)}function Ip(e){let{animateLayoutChanges:t,id:n,renderItem:r,prefix:i,transition:s}=e;const{listeners:a,setNodeRef:o,transform:l,transition:c,active:d,isOver:p,attributes:f}=Cp({id:n,animateLayoutChanges:t,transition:s}),m=(0,h.useCallback)((e=>()=>u().createElement("span",Object.assign({},a,{style:{lineHeight:0},onMouseDown:e=>{a.onMouseDown(e),e.preventDefault(),e.stopPropagation()}}),u().createElement(e,null))),[a]),g=x()(`${i}-sortable-item`,{[`${i}-sortable-item-over`]:p,[`${i}-sortable-item-active`]:(null==d?void 0:d.id)===n}),y=(0,h.useMemo)((()=>ee()(s)?void 0:{transform:Qh.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:c}),[s,l,c]);return u().createElement("div",Object.assign({ref:o,style:y,className:g},f),r({id:n,sortableHandle:m}))}var Dp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ap=_h.PREFIX;function Rp(e){return u().createElement("div",Object.assign({className:`${Ap}-sortable-list`},e))}class Np extends f{constructor(e){super(e),this.handleInputChange=e=>{this.foundation.handleInputChange(e)},this.handleKeyDown=e=>{this.foundation.handleKeyDown(e)},this.handleInputFocus=e=>{this.foundation.handleInputFocus(e)},this.handleInputBlur=e=>{this.foundation.handleInputBlur(e)},this.handleClearBtn=e=>{this.foundation.handleClearBtn(e)},this.handleClearEnterPress=e=>{this.foundation.handleClearEnterPress(e)},this.handleTagClose=e=>{this.foundation.handleTagClose(e)},this.handleInputMouseLeave=e=>{this.foundation.handleInputMouseLeave()},this.handleClick=e=>{this.foundation.handleClick(e)},this.handleInputMouseEnter=e=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=e=>{this.foundation.handleClickPrefixOrSuffix(e)},this.handlePreventMouseDown=e=>{this.foundation.handlePreventMouseDown(e)},this.getAllTags=()=>{const{tagsArray:e}=this.state;return e.map(((e,t)=>this.renderTag(e,t)))},this.renderTag=(e,t,n)=>{const{size:r,disabled:i,renderTagItem:s,showContentTooltip:a,draggable:o}=this.props,{active:l}=this.state,c=l&&o,h=x()(`${Ap}-wrapper-tag`,{[`${Ap}-wrapper-tag-size-${r}`]:r,[`${Ap}-wrapper-tag-icon`]:c}),d=x()(`${Ap}-wrapper-typo`,{[`${Ap}-wrapper-typo-disabled`]:i}),p=x()({[`${Ap}-drag-item`]:c,[`${Ap}-wrapper-tag-icon`]:c}),f=n&&n((()=>u().createElement(Dh,{className:`${Ap}-drag-handler`}))),m=c?e:`${t}${e}`,g=()=>{!i&&this.handleTagClose(t)};return J()(s)?u().createElement("div",{className:p,key:m},c&&n?u().createElement(f,null):null,s(e,t,g)):u().createElement(Sh,{className:h,color:"white",size:"small"===r?"small":"large",type:"light",onClose:g,closable:!i,key:m,visible:!0,"aria-label":`${i?"":"Closable "}Tag: ${e}`},c&&n?u().createElement(f,null):null,u().createElement(On,{className:d,ellipsis:{showTooltip:a,rows:1}},e))},this.renderSortTag=e=>{const{id:t,sortableHandle:n}=e,{tagsArray:r}=this.state,i=r.indexOf(t);return this.renderTag(t,i,n)},this.onSortEnd=e=>{this.foundation.handleSortEnd(e)},this.handleInputCompositionStart=e=>{this.foundation.handleInputCompositionStart(e)},this.handleInputCompositionEnd=e=>{this.foundation.handleInputCompositionEnd(e)},this.foundation=new Ih(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=u().createRef(),this.tagInputRef=u().createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:n,inputValue:r}=e,{tagsArray:i}=t;let s;return s=D()(n)?n:"value"in e&&!n?[]:i,{tagsArray:s,inputValue:ne()(r)?r:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,n=this.inputRef&&this.inputRef.current;e?n&&n.focus({preventScroll:t}):n&&n.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=t=>{const n=this.tagInputRef&&this.tagInputRef.current,r=t.target,i=t.composedPath&&t.composedPath()||[r];!n||n.contains(r)||i.includes(n)||e(t)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:n}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:n}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:n}=this.state,{showClear:r,disabled:i,clearIcon:s}=this.props,a=x()(`${Ap}-clearBtn`,{[`${Ap}-clearBtn-invisible`]:!e||""===n&&0===t.length||i});return r?u().createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:a,onClick:e=>this.handleClearBtn(e),onKeyPress:e=>this.handleClearEnterPress(e)},s||u().createElement(ar,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:n}=this.props,r=e||t;if(ee()(r)||le()(r))return null;const i=x()(`${Ap}-prefix`,{[`${Ap}-inset-label`]:t,[`${Ap}-prefix-text`]:r&&ne()(r),[`${Ap}-prefix-icon`]:Ue(r)});return u().createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:n,"x-semi-prop":"prefix"},r)}renderSuffix(){const{suffix:e}=this.props;if(ee()(e)||le()(e))return null;const t=x()(`${Ap}-suffix`,{[`${Ap}-suffix-text`]:e&&ne()(e),[`${Ap}-suffix-icon`]:Ue(e)});return u().createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:n,restTagsPopoverProps:r={},draggable:i,expandRestTagsOnClick:s}=this.props,{tagsArray:a,active:o}=this.state,l=x()(`${Ap}-wrapper-n`,{[`${Ap}-wrapper-n-disabled`]:e}),c=this.getAllTags();let h=[],d=[...c];(!o||!s)&&t&&t<c.length&&(d=c.slice(0,t),h=c.slice(t));const p=u().createElement("span",{className:l},"+",a.length-t),f=c.map(((e,t)=>({item:e,key:a[t]})));return o&&i&&f.length>0?u().createElement(Tp,{items:a,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:Rp,prefix:Ap,transition:null,dragOverlayCls:`${Ap}-right-item-drag-item-move`}):u().createElement(u().Fragment,null,d,h.length>0&&(n?u().createElement(pn,Object.assign({content:h,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},r),p):p))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:n,className:r,disabled:i,placeholder:s,validateStatus:a,prefix:o,insetLabel:l,suffix:c}=e,h=Dp(e,["size","style","className","disabled","placeholder","validateStatus","prefix","insetLabel","suffix"]),{focusing:d,hovering:p,tagsArray:f,inputValue:m,active:g}=this.state,y=x()(Ap,r,{[`${Ap}-focus`]:d||g,[`${Ap}-disabled`]:i,[`${Ap}-hover`]:p&&!i,[`${Ap}-error`]:"error"===a,[`${Ap}-warning`]:"warning"===a,[`${Ap}-small`]:"small"===t,[`${Ap}-large`]:"large"===t,[`${Ap}-with-prefix`]:!!o||!!l,[`${Ap}-with-suffix`]:!!c}),v=x()(`${Ap}-wrapper-input`,`${Ap}-wrapper-input-${t}`),b=x()(`${Ap}-wrapper`);return u().createElement("div",Object.assign({ref:this.tagInputRef,style:n,className:y,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":"error"===a,onMouseEnter:e=>{this.handleInputMouseEnter(e)},onMouseLeave:e=>{this.handleInputMouseLeave(e)},onClick:e=>{this.handleClick(e)}},this.getDataAttr(h)),this.renderPrefix(),u().createElement("div",{className:b},this.renderTags(),u().createElement(gr,{"aria-label":"input value",ref:this.inputRef,className:v,disabled:i,value:m,size:t,placeholder:0===f.length?s:"",onKeyDown:e=>{this.handleKeyDown(e)},onChange:(e,t)=>{this.handleInputChange(t)},onBlur:e=>{this.handleInputBlur(e)},onFocus:e=>{this.handleInputFocus(e)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}Np.propTypes={children:C().node,clearIcon:C().node,style:C().object,className:C().string,disabled:C().bool,allowDuplicates:C().bool,max:C().number,maxTagCount:C().number,maxLength:C().number,showRestTagsPopover:C().bool,restTagsPopoverProps:C().object,showContentTooltip:C().oneOfType([C().shape({type:C().string,opts:C().object}),C().bool]),defaultValue:C().array,value:C().array,inputValue:C().string,placeholder:C().string,separator:C().oneOfType([C().string,C().array]),showClear:C().bool,addOnBlur:C().bool,draggable:C().bool,expandRestTagsOnClick:C().bool,autoFocus:C().bool,renderTagItem:C().func,onBlur:C().func,onFocus:C().func,onChange:C().func,onInputChange:C().func,onExceed:C().func,onInputExceed:C().func,onAdd:C().func,onRemove:C().func,onKeyDown:C().func,size:C().oneOf(kh),validateStatus:C().oneOf(Ph),prefix:C().oneOfType([C().string,C().node]),suffix:C().oneOfType([C().string,C().node]),"aria-label":C().string,preventScroll:C().bool},Np.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:i(),onFocus:i(),onChange:i(),onInputChange:i(),onExceed:i(),onInputExceed:i(),onAdd:i(),onRemove:i(),onKeyDown:i()};const Mp=Np,Fp=rc.PREFIX;class Lp extends f{constructor(e){super(e),this.search=e=>{this.handleInputChange(e)},this.handleInputChange=e=>{this.foundation.handleInputChange(e)},this.handleTagRemoveInTrigger=e=>{this.foundation.handleTagRemoveInTrigger(e)},this.handleTagClose=(e,t,n)=>{t.preventDefault(),this.foundation.handleTagRemoveByKey(n)},this.renderTagItem=(e,t)=>{const{keyEntities:n,disabledKeys:r}=this.state,{size:i,disabled:s,displayProp:a,displayRender:o,disableStrictly:l}=this.props;if(n[e]){const c=s||n[e].data.disabled||l&&r.has(e),h=x()(`${Fp}-selection-tag`,{[`${Fp}-selection-tag-disabled`]:c});return J()(o)?o(n[e],t):u().createElement(Sh,{size:"default"===i?"large":i,key:`tag-${e}-${t}`,color:"white",tagKey:e,className:h,closable:!0,onClose:this.handleTagClose},n[e].data[a])}return null},this.onRemoveInTagInput=e=>{this.foundation.handleTagRemoveByKey(e)},this.handleItemClick=(e,t)=>{this.foundation.handleItemClick(e,t)},this.handleItemHover=(e,t)=>{this.foundation.handleItemHover(e,t)},this.onItemCheckboxClick=e=>{this.foundation.onItemCheckboxClick(e)},this.handleListScroll=(e,t)=>{this.foundation.handleListScroll(e,t)},this.renderContent=()=>{const{inputValue:e,isSearching:t,activeKeys:n,selectedKeys:r,checkedKeys:i,halfCheckedKeys:s,loadedKeys:a,loadingKeys:o}=this.state,{filterTreeNode:l,dropdownClassName:c,dropdownStyle:h,loadData:d,emptyContent:p,separator:f,topSlot:m,bottomSlot:g,showNext:y,multiple:v,filterRender:b,virtualizeInSearch:w}=this.props,C=Boolean(l)&&t,E=x()(c,`${Fp}-popover`),S=this.foundation.getRenderData();return u().createElement("div",{className:E,role:"listbox",style:h,onKeyDown:this.foundation.handleKeyDown},m,u().createElement(dh,{activeKeys:n,selectedKeys:r,separator:f,loadedKeys:a,loadingKeys:o,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:y,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:C,keyword:e,emptyContent:p,loadData:d,data:S,multiple:v,checkedKeys:i,halfCheckedKeys:s,filterRender:b,virtualize:w}),g)},this.renderPlusN=e=>{const{disabled:t,showRestTagsPopover:n,restTagsPopoverProps:r}=this.props,i=x()(`${Fp}-selection-n`,{[`${Fp}-selection-n-disabled`]:t}),s=u().createElement("span",{className:i},"+",e.length);return n?u().createElement(pn,Object.assign({content:e,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},r),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:e,maxTagCount:t}=this.props,{checkedKeys:n,resolvedCheckedKeys:r}=this.state,i=this.mergeType===hc?n:r,s=[],a=[];return[...i].forEach(((e,n)=>{const r=!Kn()(t)||t>=n+1,i=this.renderTagItem(e,n);r?s.push(i):a.push(i)})),u().createElement(u().Fragment,null,s,!de()(a)&&this.renderPlusN(a))},this.renderDisplayText=()=>{const{displayProp:e,separator:t,displayRender:n}=this.props,{selectedKeys:r}=this.state;let i="";if(r.size){const s=this.foundation.getItemPropPath([...r][0],e);i=n&&"function"==typeof n?n(s):s.map(((e,n)=>u().createElement(h.Fragment,{key:`${e}-${n}`},n<s.length-1?u().createElement(u().Fragment,null,e,t):e)))}return i},this.renderSelectContent=()=>{const{placeholder:e,filterTreeNode:t,multiple:n,searchPosition:r}=this.props,{checkedKeys:i}=this.state;if(!(Boolean(t)&&r===uc)){if(n)return 0===i.size?u().createElement("span",{className:`${Fp}-selection-placeholder`},e):this.renderMultipleTags();{const t=this.renderDisplayText(),n=x()({[`${Fp}-selection-placeholder`]:!t});return u().createElement("span",{className:n},t||e)}}return n?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:e}=this.props,t=x()({[`${Fp}-suffix`]:!0,[`${Fp}-suffix-text`]:e&&ne()(e),[`${Fp}-suffix-icon`]:Ue(e)});return u().createElement("div",{className:t,"x-semi-prop":"suffix"},e)},this.renderPrefix=()=>{const{prefix:e,insetLabel:t,insetLabelId:n}=this.props,r=e||t,i=x()({[`${Fp}-prefix`]:!0,[`${Fp}-inset-label`]:t,[`${Fp}-prefix-text`]:r&&ne()(r),[`${Fp}-prefix-icon`]:Ue(r)});return u().createElement("div",{className:i,id:n,"x-semi-prop":"prefix,insetLabel"},r)},this.renderCustomTrigger=()=>{var e;const{disabled:t,triggerRender:n,multiple:r}=this.props,{selectedKeys:i,inputValue:s,inputPlaceHolder:a,resolvedCheckedKeys:o,checkedKeys:l,keyEntities:c}=this.state;let h;return r?this.mergeType===hc?(h=new Set,l.forEach((e=>{var t;h.add(null===(t=c[e])||void 0===t?void 0:t.pos)}))):(h=new Set,o.forEach((e=>{var t;h.add(null===(t=c[e])||void 0===t?void 0:t.pos)}))):h=null===(e=c[[...i][0]])||void 0===e?void 0:e.pos,u().createElement(br,{value:h,inputValue:s,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:a,disabled:t,triggerRender:n,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleTagRemoveInTrigger})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=e=>{e&&e.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=e=>{e&&e.stopPropagation(),this.foundation.handleClearEnterPress(e)},this.showClearBtn=()=>{const{showClear:e,disabled:t,multiple:n}=this.props,{selectedKeys:r,isOpen:i,isHovering:s,checkedKeys:a,inputValue:o}=this.state,l=r.size,c=n&&a.size;return e&&(o||l||c)&&!t&&(i||s)},this.renderClearBtn=()=>{const e=x()(`${Fp}-clearbtn`),{clearIcon:t}=this.props;return this.showClearBtn()?u().createElement("div",{className:e,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},t||u().createElement(ar,null)):null},this.renderArrow=()=>{const{arrowIcon:e}=this.props;return this.showClearBtn()?null:e?u().createElement("div",{className:x()(`${Fp}-arrow`),"x-semi-prop":"arrowIcon"},e):null},this.renderSelection=()=>{const{disabled:e,multiple:t,filterTreeNode:n,style:r,size:i,className:s,validateStatus:a,prefix:o,suffix:l,insetLabel:c,triggerRender:d,showClear:p,id:f,borderless:m}=this.props,{isOpen:g,isFocus:y,isInput:v,checkedKeys:b}=this.state,w=Boolean(n),C="function"==typeof d,E=C?x()(s):x()(Fp,s,{[`${Fp}-borderless`]:m,[`${Fp}-focus`]:y||g&&!v,[`${Fp}-disabled`]:e,[`${Fp}-single`]:!0,[`${Fp}-filterable`]:w,[`${Fp}-error`]:"error"===a,[`${Fp}-warning`]:"warning"===a,[`${Fp}-small`]:"small"===i,[`${Fp}-large`]:"large"===i,[`${Fp}-with-prefix`]:o||c,[`${Fp}-with-suffix`]:l}),S=p?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},_=x()(`${Fp}-selection`,{[`${Fp}-selection-multiple`]:t&&!de()(b)}),k=C?this.renderCustomTrigger():[u().createElement(h.Fragment,{key:"prefix"},o||c?this.renderPrefix():null),u().createElement(h.Fragment,{key:"selection"},u().createElement("div",{className:_},this.renderSelectContent())),u().createElement(h.Fragment,{key:"clearbtn"},this.renderClearBtn()),u().createElement(h.Fragment,{key:"suffix"},l?this.renderSuffix():null),u().createElement(h.Fragment,{key:"arrow"},this.renderArrow())];return u().createElement("div",Object.assign({className:E,style:r,ref:this.triggerRef,onClick:e=>this.foundation.handleClick(e),onKeyPress:e=>this.foundation.handleSelectionEnterPress(e),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:f,onKeyDown:this.foundation.handleKeyDown},S,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),k)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:0,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=mc(e.autoMergeValue,e.leafOnly),this.inputRef=u().createRef(),this.triggerRef=u().createRef(),this.optionsRef=u().createRef(),this.clickOutsideHandler=null,this.foundation=new gc(this.adapter),this.loadingKeysRef=u().createRef(),this.loadedKeysRef=u().createRef()}get adapter(){var e=this;const t={updateInputValue:e=>{this.setState({inputValue:e})},updateInputPlaceHolder:e=>{this.setState({inputPlaceHolder:e})},focusInput:()=>{const{preventScroll:e}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:e})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},n={registerClickOutsideHandler:e=>{const t=t=>{const n=this.optionsRef&&this.optionsRef.current,r=this.triggerRef&&this.triggerRef.current,i=ge().findDOMNode(n),s=t.target,a=t.composedPath&&t.composedPath()||[s];!i||i.contains(s)&&i.contains(s.parentNode)||!r||r.contains(s)||a.includes(r)||a.includes(i)||e(t)};this.clickOutsideHandler=t,document.addEventListener("mousedown",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:e}=this.state;e+=1,this.setState({rePosKey:e})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),n),{updateStates:e=>{this.setState(Object.assign({},e))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:e=>{this.setState({isOpen:!1},(()=>{e&&e()}))},updateSelection:e=>this.setState({selectedKeys:e}),notifyChange:e=>{this.props.onChange&&this.props.onChange(e)},notifySelect:e=>{this.props.onSelect&&this.props.onSelect(e)},notifyOnSearch:e=>{this.props.onSearch&&this.props.onSearch(e)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:e=>{this.props.onDropdownVisibleChange(e)},toggleHovering:e=>{this.setState({isHovering:e})},notifyLoadData:(e,t)=>{const{loadData:n}=this.props;n&&new Promise((r=>{n(e).then((()=>{t(),this.setState({loading:!1}),r()}))}))},notifyOnLoad:(e,t)=>{const{onLoad:n}=this.props;n&&n(e,t)},notifyListScroll:(e,t)=>{let{panelIndex:n,activeNode:r}=t;this.props.onListScroll(e,{panelIndex:n,activeNode:r})},notifyOnExceed:e=>this.props.onExceed(e),notifyClear:()=>this.props.onClear(),toggleInputShow:(e,t)=>{this.setState({showInput:e},(()=>{t()}))},updateFocusState:e=>{this.setState({isFocus:e})},updateLoadingKeyRefValue:e=>{this.loadingKeysRef.current=e},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:e=>{this.loadedKeysRef.current=e},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:n,value:r,defaultValue:i,onChangeWithObject:s,leafOnly:a,autoMergeValue:o}=e,{prevProps:l}=t;let c=t.keyEntities||{};const h={},u=t=>{const n=de()(l)&&t in e,r=l&&!he()(l[t],e[t]);return n||r},d=(e,t)=>{let n=[];Array.isArray(e)?n=Array.isArray(e[0])?e:[e]:void 0!==e&&(n=[[e]]);const r=[];n.forEach((e=>{const t=s&&z()(e[0])?e.map((e=>null==e?void 0:e.value)):e;t.length>0&&r.push(t)}));const i=r.reduce(((e,n)=>{const r=pc(n);return t[r]&&e.push(r),e}),[]);return i};if(n){const n=u("treeData")||(()=>{const t=!l&&"treeData"in e,n=l&&l.treeData!==e.treeData;return t||n})(),s=u("value")||de()(l)&&i;if(n||s){n&&(h.treeData=e.treeData,c=fc(e.treeData),h.keyEntities=c);let l=t.checkedKeys;if(s){l=d(u("value")?r:i,c)}else if(n&&"value"in e){l=d(r,c)}bl()(l)&&(l=[...l]);const p=$l(l,c),f=new Set(p.checkedKeys),m=new Set(p.halfCheckedKeys);e.disableStrictly&&(h.disabledKeys=Ql(c));const g=mc(o,a)===lc;h.prevProps=e,h.checkedKeys=f,h.halfCheckedKeys=m,h.resolvedCheckedKeys=new Set(Ul(f,c,g))}}return h}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){if(this.props.multiple)return;let t=!1;he()(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value===this.props.value||t||this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:n,maxTagCount:r,showRestTagsPopover:i,restTagsPopoverProps:s}=this.props,{inputValue:a,checkedKeys:o,keyEntities:l,resolvedCheckedKeys:c}=this.state,h=x()(`${Fp}-tagInput-wrapper`),d=this.mergeType===hc?o:c;return u().createElement(Mp,{className:h,ref:this.inputRef,disabled:t,size:e,value:[...d],showRestTagsPopover:i,restTagsPopoverProps:s,maxTagCount:r,renderTagItem:this.renderTagItem,inputValue:a,onInputChange:this.handleInputChange,onRemove:this.onRemoveInTagInput,placeholder:n,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,n=x()(`${Fp}-input`),{inputValue:r,inputPlaceHolder:i,showInput:s}=this.state,a={disabled:t,value:r,className:n,onChange:this.handleInputChange},o=x()({[`${Fp}-search-wrapper`]:!0,[`${Fp}-search-wrapper-${e}`]:"default"!==e}),l=this.renderDisplayText(),c=x()({[`${Fp}-selection-placeholder`]:!l,[`${Fp}-selection-text-hide`]:s&&r,[`${Fp}-selection-text-inactive`]:s&&!r});return u().createElement("div",{className:o},u().createElement("span",{className:c},l||i),s&&u().createElement(gr,Object.assign({ref:this.inputRef,size:e},a)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:n,stopPropagation:r,mouseLeaveDelay:i,mouseEnterDelay:s,position:a,motion:o,dropdownMargin:l}=this.props,{isOpen:c,rePosKey:h}=this.state,{direction:d}=this.context,p=this.renderContent(),f=this.renderSelection(),m=null!=a?a:"rtl"===d?"bottomRight":"bottomLeft";return u().createElement(pn,{getPopupContainer:t,zIndex:e,motion:o,margin:l,ref:this.optionsRef,content:p,visible:c,trigger:"custom",rePosKey:h,position:m,autoAdjustOverflow:n,stopPropagation:r,mouseLeaveDelay:i,mouseEnterDelay:s,afterClose:()=>this.foundation.updateSearching(!1)},f)}}Lp.__SemiComponentName__="Cascader",Lp.contextType=Ze,Lp.propTypes={"aria-labelledby":C().string,"aria-invalid":C().bool,"aria-errormessage":C().string,"aria-describedby":C().string,"aria-required":C().bool,"aria-label":C().string,arrowIcon:C().node,borderless:C().bool,clearIcon:C().node,changeOnSelect:C().bool,defaultValue:C().oneOfType([C().string,C().array]),disabled:C().bool,dropdownClassName:C().string,dropdownStyle:C().object,dropdownMargin:C().oneOfType([C().number,C().object]),emptyContent:C().node,motion:C().bool,filterTreeNode:C().oneOfType([C().func,C().bool]),filterLeafOnly:C().bool,placeholder:C().string,searchPlaceholder:C().string,size:C().oneOf(ic),style:C().object,className:C().string,treeData:C().arrayOf(C().shape({value:C().oneOfType([C().string,C().number]),label:C().any})),treeNodeFilterProp:C().string,suffix:C().node,prefix:C().node,insetLabel:C().node,insetLabelId:C().string,id:C().string,displayProp:C().string,displayRender:C().func,onChange:C().func,onSearch:C().func,onSelect:C().func,onBlur:C().func,onFocus:C().func,children:C().node,getPopupContainer:C().func,zIndex:C().number,value:C().oneOfType([C().string,C().number,C().array]),validateStatus:C().oneOf(sc),showNext:C().oneOf([ac,oc]),stopPropagation:C().oneOfType([C().bool,C().string]),showClear:C().bool,defaultOpen:C().bool,autoAdjustOverflow:C().bool,onDropdownVisibleChange:C().func,triggerRender:C().func,onListScroll:C().func,onChangeWithObject:C().bool,bottomSlot:C().node,topSlot:C().node,multiple:C().bool,autoMergeValue:C().bool,maxTagCount:C().number,showRestTagsPopover:C().bool,restTagsPopoverProps:C().object,max:C().number,separator:C().string,onExceed:C().func,onClear:C().func,loadData:C().func,onLoad:C().func,loadedKeys:C().array,disableStrictly:C().bool,leafOnly:C().bool,enableLeafClick:C().bool,preventScroll:C().bool,position:C().string,searchPosition:C().string},Lp.defaultProps=Xe(Lp.__SemiComponentName__,{borderless:!1,leafOnly:!1,arrowIcon:u().createElement(yc,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:sn.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:ac,onExceed:i(),onClear:i(),onDropdownVisibleChange:i(),onListScroll:i(),enableLeafClick:!1,"aria-label":"Cascader",searchPosition:uc});const jp=Lp,Vp={PREFIX:`${E}-collapse`};class $p extends c{constructor(e){super(Object.assign({},e))}initActiveKey(){const{defaultActiveKey:e,activeKey:t,accordion:n}=this.getProps();let r=t||e;return n&&(r=Array.isArray(r)?r[0]:r),r&&r.length?(r=Array.isArray(r)?r:[r],r):[]}handleChange(e,t){const{activeKey:n,accordion:r}=this.getProps(),{activeSet:i}=this.getStates();let s=new Set(i);s.has(e)?s.delete(e):r?s=new Set([e]):s.add(e),this._adapter.handleChange([...s.values()],t),void 0===n&&this._adapter.addActiveKey(s)}}const Bp=class extends c{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=e=>{this._adapter.setDOMInRenderTree(e)},this.updateDOMHeight=e=>{this._adapter.setDOMHeight(e)},this.updateVisible=e=>{this._adapter.setVisible(e)},this.updateIsTransitioning=e=>{this._adapter.setIsTransitioning(e)}}},zp=`${E}-collapsible`;__webpack_require__("zWTJ");class Hp extends f{constructor(e){super(e),this.domRef=u().createRef(),this.hasBeenRendered=!1,this.handleResize=e=>{const t=e[0];if(t){const e=Hp.getEntryInfo(t);this.foundation.updateDOMHeight(e.height),this.foundation.updateDOMInRenderTree(e.isShown)}},this.isChildrenInRenderTree=()=>!!this.domRef.current&&this.domRef.current.offsetHeight>0,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new Bp(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,n){const r=Object.keys(this.props).filter((t=>!he()(this.props[t],e[t]))),i=Object.keys(this.state).filter((e=>!he()(this.state[e],t[e])));r.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),r.includes("isOpen")&&(!this.props.isOpen&&this.props.motion||this.foundation.updateVisible(this.props.isOpen)),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||0!==this.props.collapseHeight?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=x()(`${zp}-wrapper`,{[`${zp}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className),n=this.props.keepDOM&&(!this.props.lazyRender||this.hasBeenRendered)||0!==this.props.collapseHeight||this.state.visible||this.props.isOpen;return n&&!this.hasBeenRendered&&(this.hasBeenRendered=!0),u().createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var e,t;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),null===(t=(e=this.props).onMotionEnd)||void 0===t||t.call(e)}},this.getDataAttr(this.props)),u().createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},n&&this.props.children))}}Hp.__SemiComponentName__="Collapsible",Hp.defaultProps=Xe(Hp.__SemiComponentName__,{isOpen:!1,duration:250,motion:!0,keepDOM:!1,lazyRender:!1,collapseHeight:0,fade:!1}),Hp.getEntryInfo=e=>{let t;t=e.borderBoxSize?!(0===e.borderBoxSize[0].blockSize&&0===e.borderBoxSize[0].inlineSize):!(0===e.contentRect.height&&0===e.contentRect.width);let n=0;if(e.borderBoxSize)n=Math.ceil(e.borderBoxSize[0].blockSize);else{n=e.target.clientHeight}return{isShown:t,height:n}},Hp.propTypes={motion:C().bool,children:C().node,isOpen:C().bool,duration:C().number,keepDOM:C().bool,collapseHeight:C().number,style:C().object,className:C().string,reCalcKey:C().oneOfType([C().string,C().number])};const Kp=Hp,Up=u().createContext({});var Wp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class Gp extends h.PureComponent{constructor(){super(...arguments),this.headerExpandIconTriggerRef=u().createRef(),this.ariaID="",this.handleClick=(e,t)=>{var n;(this.context.clickHeaderToExpand||(null===(n=this.headerExpandIconTriggerRef.current)||void 0===n?void 0:n.contains(t.target)))&&this.context.onClick(e,t)}}componentDidMount(){this.ariaID=Ae({})}renderHeader(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{showArrow:n,header:r,extra:i}=this.props;let{expandIcon:s,collapseIcon:a}=this.context;const{expandIconPosition:o}=this.context;void 0===s&&(s=u().createElement(yc,null)),void 0===a&&(a=u().createElement(xi,null));const l=u().createElement("span",{ref:this.headerExpandIconTriggerRef,"aria-hidden":"true",className:x()([`${Vp.PREFIX}-header-icon`,{[`${Vp.PREFIX}-header-iconDisabled`]:!t}])},t&&e?a:s),c="left"===o;return"string"==typeof r?u().createElement(u().Fragment,null,n&&(c?l:null),u().createElement("span",null,r),u().createElement("span",{className:`${Vp.PREFIX}-header-right`},u().createElement("span",null,i),n&&(c?null:l))):u().createElement(u().Fragment,null,n&&(c?l:null),r,n&&(c?null:l))}render(){const e=this.props,{className:t,children:n,itemKey:r,reCalcKey:i,header:s,extra:a,showArrow:o,disabled:l}=e,c=Wp(e,["className","children","itemKey","reCalcKey","header","extra","showArrow","disabled"]),{keepDOM:h,expandIconPosition:d,activeSet:p,motion:f,lazyRender:m}=this.context,g=p.has(r),y=x()(t,{[`${Vp.PREFIX}-item`]:!0}),v=x()({[`${Vp.PREFIX}-header`]:!0,[`${Vp.PREFIX}-header-disabled`]:l,[`${Vp.PREFIX}-header-iconLeft`]:"left"===d}),b=x()({[`${Vp.PREFIX}-content`]:!0});return u().createElement("div",Object.assign({className:y},c),u().createElement("div",{role:"button",tabIndex:0,className:v,"aria-disabled":l,"aria-expanded":g?"true":"false","aria-owns":this.ariaID,onClick:e=>!l&&this.handleClick(r,e)},this.renderHeader(g,void 0!==n&&!l)),n&&u().createElement(Kp,{lazyRender:m,isOpen:g,keepDOM:h,motion:f,onMotionEnd:this.props.onMotionEnd,reCalcKey:i},u().createElement("div",{className:b,"aria-hidden":!g,id:this.ariaID},u().createElement("div",{className:`${Vp.PREFIX}-content-wrapper`},n))))}}Gp.contextType=Up,Gp.propTypes={itemKey:C().string,extra:C().node,header:C().oneOfType([C().string,C().node]),className:C().string,reCalcKey:C().oneOfType([C().string,C().number]),showArrow:C().bool,disabled:C().bool},Gp.defaultProps={showArrow:!0,disabled:!1};__webpack_require__("X/fO");var qp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class Yp extends f{constructor(e){super(e),this.onChange=(e,t)=>{this.foundation.handleChange(e,t)},this.foundation=new $p(this.adapter);const t=this.foundation.initActiveKey();this.state={activeSet:new Set(t)},this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{handleChange:(e,t)=>this.props.onChange(e,t),addActiveKey:e=>this.setState({activeSet:e})})}static getDerivedStateFromProps(e,t){if(e.activeKey){const n=Array.isArray(e.activeKey)?e.activeKey:[e.activeKey],r=new Set(n);return he()(r,t.activeSet)?t:Object.assign(Object.assign({},t),{activeSet:r})}return t}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{defaultActiveKey:t,lazyRender:n,accordion:r,style:i,motion:s,className:a,keepDOM:o,expandIconPosition:l,expandIcon:c,collapseIcon:h,children:d,clickHeaderToExpand:p}=e,f=(qp(e,["defaultActiveKey","lazyRender","accordion","style","motion","className","keepDOM","expandIconPosition","expandIcon","collapseIcon","children","clickHeaderToExpand"]),x()(Vp.PREFIX,a)),{activeSet:m}=this.state;return u().createElement("div",Object.assign({className:f,style:i},this.getDataAttr(this.props)),u().createElement(Up.Provider,{value:{activeSet:m,expandIcon:c,collapseIcon:h,clickHeaderToExpand:p,keepDOM:o,expandIconPosition:l,onClick:this.onChange,motion:s,lazyRender:n}},d))}}Yp.Panel=Gp,Yp.propTypes={activeKey:C().oneOfType([C().string,C().array]),defaultActiveKey:C().oneOfType([C().string,C().array]),accordion:C().bool,clickHeaderToExpand:C().bool,onChange:C().func,expandIcon:C().node,collapseIcon:C().node,style:C().object,className:C().string,keepDOM:C().bool,motion:C().oneOfType([C().bool,C().func,C().object]),expandIconPosition:C().oneOf(["left","right"]),lazyRender:C().bool},Yp.__SemiComponentName__="Collapse",Yp.defaultProps=Xe(Yp.__SemiComponentName__,{defaultActiveKey:"",clickHeaderToExpand:!0,onChange:yt,expandIconPosition:"right",lazyRender:!1});const Xp=Yp;var Zp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class Jp extends u().Component{constructor(e){super(e)}renderChildren(){const{direction:e,children:t}=this.props;return"rtl"===e?u().createElement("div",{className:`${E}-rtl`},t):t}render(){const e=this.props,{children:t,direction:n}=e,r=Zp(e,["children","direction"]);return u().createElement(Ze.Provider,{value:Object.assign({direction:n},r)},this.renderChildren())}}Jp.propTypes={locale:C().object,timeZone:C().oneOfType([C().string,C().number]),getPopupContainer:C().func,direction:C().oneOf(["ltr","rtl"])},Jp.defaultProps={locale:$t,direction:"ltr"};var Qp=__webpack_require__("0iyY"),ef=__webpack_require__.n(Qp),tf=__webpack_require__("eGeI"),nf=__webpack_require__.n(tf),rf=__webpack_require__("ND9x"),sf=__webpack_require__.n(rf);__webpack_require__("1mr4");const af=e=>{const t=sf()(e);return!(Kn()(e)&&1===t.length)&&Number.isInteger(+t[t.length-1])};function of(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(0===t.length)return;const r=a()(e,t);(Array.isArray(r)&&r.every((e=>null==e))||function(e){if(z()(e)){const t=ef()(e);return!t.length||t.every((e=>void 0===e))}return!1}(r))&&nf()(e,t),of(e,t.slice(0,t.length-1),n)}function lf(e,t){return a()(e,t)}function cf(e,t){nf()(e,t);let n=sf()(t);n=n.slice(0,n.length-1),of(e,n,!1)}function hf(e,t,n,r){if(r)return Me()(e,t,n);if(void 0!==n)return Me()(e,t,n);if(af(t)&&void 0!==lf(e,t)){Me()(e,t,void 0);let n=sf()(t);n=n.slice(0,n.length-1),of(e,n,!1)}else af(t)||void 0===lf(e,t)||cf(e,t)}function uf(e,t){return!e||"function"!=typeof e&&"object"!=typeof e||!t||"function"!=typeof t&&"object"!=typeof t||Object.entries(t).forEach((t=>{let[n,r]=t;e[n]=r})),e}const df={DAY_TODAY:`${E}-datepicker-day-today`,DAY_IN_RANGE:`${E}-datepicker-day-inrange`,DAY_HOVER:`${E}-datepicker-day-inhover`,DAY_SELECTED:`${E}-datepicker-day-selected`,DAY_SELECTED_START:`${E}-datepicker-day-selected-start`,DAY_SELECTED_END:`${E}-datepicker-day-selected-end`,DAY_DISABLED:`${E}-datepicker-day-disabled`,DAY_HOVER_DAY:`${E}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${E}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${E}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${E}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${E}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${E}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${E}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${E}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${E}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${E}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${E}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${E}-datepicker-day-hoverday-around-singleselected`},pf=Object.assign({PREFIX:`${E}-datepicker`,NAVIGATION:`${E}-datepicker-navigation`,PANEL_YAM:`${E}-datepicker-panel-yam`,MONTH:`${E}-datepicker-month`,WEEKDAY:`${E}-datepicker-weekday`,WEEKS:`${E}-datepicker-weeks`,WEEK:`${E}-datepicker-week`,DAY:`${E}-datepicker-day`},df),ff=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:$n,POSITION_SET:rn.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},{FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"}),mf={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:sn.SPACING,SPACING_INSET_INPUT:1};var gf=__webpack_require__("+f76"),yf=__webpack_require__.n(gf),vf=__webpack_require__("DjCF"),bf=__webpack_require__.n(vf);function xf(e){Et(1,arguments);var t=_t(e);return t.setMilliseconds(0),t}function wf(e,t){Et(2,arguments);var n=xf(e),r=xf(t);return n.getTime()===r.getTime()}function Cf(e,t){Et(2,arguments);var n=_t(e),r=_t(t);return n.getTime()===r.getTime()}function Ef(e){return e&&"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e)}function Sf(e){return("number"==typeof(t=e)||"[object Number]"===Object.prototype.toString.call(t))&&Ef(new Date(e));var t}var _f=__webpack_require__("NyOe");const kf=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],Pf={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},Of=/([\-\+]{1})(\d{2})\:(\d{2})/,Tf=e=>{let t=null;if("string"==typeof e){if(t=e.match(Of),!t)return e;const n=parseInt(t[1]+1,10),r=parseInt(t[2],10),i=parseInt(t[3],10);e=n*(r+i/60)}if("number"==typeof e){if(e in Pf){const t=Pf[e];if(function(e){if(If[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),If[e]=!0,!0}catch(e){return!1}}(t))return t}const t=kf.find((t=>t[0]===e));return t&&t[1][0]}},If={};const Df=(e,t,n)=>(0,_f.utcToZonedTime)(e,Tf(t),n),Af=(e,t,n)=>(0,_f.zonedTimeToUtc)(e,Tf(t),n);function Rf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nf(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Rf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rf(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw s}}}}function Mf(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Ff(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hc(e,t)}function Lf(e){return Lf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lf(e)}function jf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jf=function(){return!!e})()}function Vf(e){var t=jf();return function(){var n,r=Lf(e);if(t){var i=Lf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==St(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zc(e)}(this,n)}}function $f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bf(e){var t=function(e,t){if("object"!=St(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=St(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==St(t)?t:t+""}function zf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bf(r.key),r)}}function Hf(e,t,n){return t&&zf(e.prototype,t),n&&zf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kf(e,t,n){return(t=Bf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uf=function(){function e(){$f(this,e),Kf(this,"priority",void 0),Kf(this,"subPriority",0)}return Hf(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Wf=function(e){Ff(n,e);var t=Vf(n);function n(e,r,i,s,a){var o;return $f(this,n),(o=t.call(this)).value=e,o.validateValue=r,o.setValue=i,o.priority=s,a&&(o.subPriority=a),o}return Hf(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Uf),Gf=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",10),Kf(zc(e),"subPriority",-1),e}return Hf(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(Uf),qf=function(){function e(){$f(this,e),Kf(this,"incompatibleTokens",void 0),Kf(this,"priority",void 0),Kf(this,"subPriority",void 0)}return Hf(e,[{key:"run",value:function(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new Wf(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),Yf=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",140),Kf(zc(e),"incompatibleTokens",["R","u","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(qf),Xf=/^(1[0-2]|0?\d)/,Zf=/^(3[0-1]|[0-2]?\d)/,Jf=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Qf=/^(5[0-3]|[0-4]?\d)/,em=/^(2[0-3]|[0-1]?\d)/,tm=/^(2[0-4]|[0-1]?\d)/,nm=/^(1[0-1]|0?\d)/,rm=/^(1[0-2]|0?\d)/,im=/^[0-5]?\d/,sm=/^[0-5]?\d/,am=/^\d/,om=/^\d{1,2}/,lm=/^\d{1,3}/,cm=/^\d{1,4}/,hm=/^-?\d+/,um=/^-?\d/,dm=/^-?\d{1,2}/,pm=/^-?\d{1,3}/,fm=/^-?\d{1,4}/,mm=/^([+-])(\d{2})(\d{2})?|Z/,gm=/^([+-])(\d{2})(\d{2})|Z/,ym=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,vm=/^([+-])(\d{2}):(\d{2})|Z/,bm=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function xm(e,t){return e?{value:t(e.value),rest:e.rest}:e}function wm(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Cm(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*ya+s*ga+1e3*a),rest:t.slice(n[0].length)}}function Em(e){return wm(hm,e)}function Sm(e,t){switch(e){case 1:return wm(am,t);case 2:return wm(om,t);case 3:return wm(lm,t);case 4:return wm(cm,t);default:return wm(new RegExp("^\\d{1,"+e+"}"),t)}}function _m(e,t){switch(e){case 1:return wm(um,t);case 2:return wm(dm,t);case 3:return wm(pm,t);case 4:return wm(fm,t);default:return wm(new RegExp("^-?\\d{1,"+e+"}"),t)}}function km(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Pm(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var s=i+50;n=e+100*Math.floor(s/100)-(e>=s%100?100:0)}return r?n:1-n}function Om(e){return e%400==0||e%4==0&&e%100!=0}var Tm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",130),Kf(zc(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return xm(Sm(4,e),r);case"yo":return xm(n.ordinalNumber(e,{unit:"year"}),r);default:return xm(Sm(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=Pm(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var s="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(s,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(qf),Im=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",130),Kf(zc(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return xm(Sm(4,e),r);case"Yo":return xm(n.ordinalNumber(e,{unit:"year"}),r);default:return xm(Sm(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var i=ps(e,r);if(n.isTwoDigitYear){var s=Pm(n.year,i);return e.setUTCFullYear(s,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Tt(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Tt(e,r)}}]),n}(qf),Dm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",130),Kf(zc(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t){return _m("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),cs(r)}}]),n}(qf),Am=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",130),Kf(zc(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t){return _m("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(qf),Rm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",120),Kf(zc(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Sm(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(qf),Nm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",120),Kf(zc(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Sm(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(qf),Mm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Kf(zc(e),"priority",110),e}return Hf(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return xm(wm(Xf,e),r);case"MM":return xm(Sm(2,e),r);case"Mo":return xm(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(qf),Fm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",110),Kf(zc(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return xm(wm(Xf,e),r);case"LL":return xm(Sm(2,e),r);case"Lo":return xm(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(qf);var Lm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",100),Kf(zc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return wm(Qf,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Sm(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return Tt(function(e,t,n){Et(2,arguments);var r=_t(e),i=kt(t),s=ms(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*s),r}(e,n,r),r)}}]),n}(qf);var jm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",100),Kf(zc(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return wm(Qf,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Sm(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return cs(function(e,t){Et(2,arguments);var n=_t(e),r=kt(t),i=ds(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}}]),n}(qf),Vm=[31,28,31,30,31,30,31,31,30,31,30,31],$m=[31,29,31,30,31,30,31,31,30,31,30,31],Bm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",90),Kf(zc(e),"subPriority",1),Kf(zc(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return wm(Zf,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Sm(t.length,e)}}},{key:"validate",value:function(e,t){var n=Om(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=$m[r]:t>=1&&t<=Vm[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(qf),zm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",90),Kf(zc(e),"subpriority",1),Kf(zc(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return wm(Jf,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Sm(t.length,e)}}},{key:"validate",value:function(e,t){return Om(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(qf);function Hm(e,t,n){var r,i,s,a,o,l,c,h;Et(2,arguments);var u=Ot(),d=kt(null!==(r=null!==(i=null!==(s=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(l=o.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==s?s:u.weekStartsOn)&&void 0!==i?i:null===(c=u.locale)||void 0===c||null===(h=c.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==r?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=_t(e),f=kt(t),m=((f%7+7)%7<d?7:0)+f-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+m),p}var Km=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",90),Kf(zc(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Hm(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(qf),Um=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",90),Kf(zc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return xm(Sm(t.length,e),i);case"eo":return xm(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Hm(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(qf),Wm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",90),Kf(zc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return xm(Sm(t.length,e),i);case"co":return xm(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Hm(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(qf);var Gm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",90),Kf(zc(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Sm(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return xm(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return xm(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return xm(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return xm(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){Et(2,arguments);var n=kt(t);n%7==0&&(n-=7);var r=_t(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(qf),qm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",80),Kf(zc(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(km(n),0,0,0),e}}]),n}(qf),Ym=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",80),Kf(zc(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(km(n),0,0,0),e}}]),n}(qf),Xm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",80),Kf(zc(e),"incompatibleTokens",["a","b","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(km(n),0,0,0),e}}]),n}(qf),Zm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",70),Kf(zc(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return wm(rm,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Sm(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(qf),Jm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",70),Kf(zc(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return wm(em,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Sm(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(qf),Qm=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",70),Kf(zc(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return wm(nm,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Sm(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(qf),eg=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",70),Kf(zc(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return wm(tm,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Sm(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(qf),tg=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",60),Kf(zc(e),"incompatibleTokens",["t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return wm(im,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Sm(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(qf),ng=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",50),Kf(zc(e),"incompatibleTokens",["t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return wm(sm,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Sm(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(qf),rg=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",30),Kf(zc(e),"incompatibleTokens",["t","T"]),e}return Hf(n,[{key:"parse",value:function(e,t){return xm(Sm(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(qf),ig=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",10),Kf(zc(e),"incompatibleTokens",["t","T","x"]),e}return Hf(n,[{key:"parse",value:function(e,t){switch(t){case"X":return Cm(mm,e);case"XX":return Cm(gm,e);case"XXXX":return Cm(ym,e);case"XXXXX":return Cm(bm,e);default:return Cm(vm,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(qf),sg=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",10),Kf(zc(e),"incompatibleTokens",["t","T","X"]),e}return Hf(n,[{key:"parse",value:function(e,t){switch(t){case"x":return Cm(mm,e);case"xx":return Cm(gm,e);case"xxxx":return Cm(ym,e);case"xxxxx":return Cm(bm,e);default:return Cm(vm,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(qf),ag=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",40),Kf(zc(e),"incompatibleTokens","*"),e}return Hf(n,[{key:"parse",value:function(e){return Em(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(qf),og=function(e){Ff(n,e);var t=Vf(n);function n(){var e;$f(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return Kf(zc(e=t.call.apply(t,[this].concat(i))),"priority",20),Kf(zc(e),"incompatibleTokens","*"),e}return Hf(n,[{key:"parse",value:function(e){return Em(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(qf),lg={G:new Yf,y:new Tm,Y:new Im,R:new Dm,u:new Am,Q:new Rm,q:new Nm,M:new Mm,L:new Fm,w:new Lm,I:new jm,d:new Bm,D:new zm,E:new Km,e:new Um,c:new Wm,i:new Gm,a:new qm,b:new Ym,B:new Xm,h:new Zm,H:new Jm,K:new Qm,k:new eg,m:new tg,s:new ng,S:new rg,X:new ig,x:new sg,t:new ag,T:new og},cg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ug=/^'([^]*?)'?$/,dg=/''/g,pg=/\S/,fg=/[a-zA-Z]/;function mg(e,t,n,r){var i,s,a,o,l,c,h,u,d,p,f,m,g,y,v,b,x,w;Et(3,arguments);var C=String(e),E=String(t),S=Ot(),_=null!==(i=null!==(s=null==r?void 0:r.locale)&&void 0!==s?s:S.locale)&&void 0!==i?i:qs;if(!_.match)throw new RangeError("locale must contain match property");var k=kt(null!==(a=null!==(o=null!==(l=null!==(c=null==r?void 0:r.firstWeekContainsDate)&&void 0!==c?c:null==r||null===(h=r.locale)||void 0===h||null===(u=h.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:S.firstWeekContainsDate)&&void 0!==o?o:null===(d=S.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==a?a:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=kt(null!==(f=null!==(m=null!==(g=null!==(y=null==r?void 0:r.weekStartsOn)&&void 0!==y?y:null==r||null===(v=r.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==m?m:null===(x=S.locale)||void 0===x||null===(w=x.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===E)return""===C?_t(n):new Date(NaN);var O,T={firstWeekContainsDate:k,weekStartsOn:P,locale:_},I=[new Gf],D=E.match(hg).map((function(e){var t=e[0];return t in Rs?(0,Rs[t])(e,_.formatLong):e})).join("").match(cg),A=[],R=Nf(D);try{var N=function(){var t=O.value;null!=r&&r.useAdditionalWeekYearTokens||!js(t)||Vs(t,E,e),null!=r&&r.useAdditionalDayOfYearTokens||!Ls(t)||Vs(t,E,e);var n=t[0],i=lg[n];if(i){var s=i.incompatibleTokens;if(Array.isArray(s)){var a=A.find((function(e){return s.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===i.incompatibleTokens&&A.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));A.push({token:n,fullToken:t});var o=i.run(C,t,_.match,T);if(!o)return{v:new Date(NaN)};I.push(o.setter),C=o.rest}else{if(n.match(fg))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=function(e){return e.match(ug)[1].replace(dg,"'")}(t)),0!==C.indexOf(t))return{v:new Date(NaN)};C=C.slice(t.length)}};for(R.s();!(O=R.n()).done;){var M=N();if("object"===St(M))return M.v}}catch(e){R.e(e)}finally{R.f()}if(C.length>0&&pg.test(C))return new Date(NaN);var F=I.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return I.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),L=_t(n);if(isNaN(L.getTime()))return new Date(NaN);var j,V=ls(L,Ns(L)),$={},B=Nf(F);try{for(B.s();!(j=B.n()).done;){var z=j.value;if(!z.validate(V,T))return new Date(NaN);var H=z.set(V,$,T);Array.isArray(H)?(V=H[0],Mf($,H[1])):V=H}}catch(e){B.e(e)}finally{B.f()}return V}function gg(e,t){var n;Et(1,arguments);var r=kt(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i,s=function(e){var t,n={},r=e.split(yg.dateTimeDelimiter);if(r.length>2)return n;/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],yg.timeZoneDelimiter.test(n.date)&&(n.date=e.split(yg.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var i=yg.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(s.date){var a=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:null===s?i:100*s,restDateString:e.slice((r[1]||r[2]).length)}}(s.date,r);i=function(e,t){if(null===t)return new Date(NaN);var n=e.match(vg);if(!n)return new Date(NaN);var r=!!n[4],i=wg(n[1]),s=wg(n[2])-1,a=wg(n[3]),o=wg(n[4]),l=wg(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,o,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,s=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}(t,o,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Eg[t]||(Sg(e)?29:28))}(t,s,a)&&function(e,t){return t>=1&&t<=(Sg(e)?366:365)}(t,i)?(c.setUTCFullYear(t,s,Math.max(i,a)),c):new Date(NaN)}(a.restDateString,a.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var o,l=i.getTime(),c=0;if(s.time&&(c=function(e){var t=e.match(bg);if(!t)return NaN;var n=Cg(t[1]),r=Cg(t[2]),i=Cg(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i))return NaN;return n*ya+r*ga+1e3*i}(s.time),isNaN(c)))return new Date(NaN);if(!s.timezone){var h=new Date(l+c),u=new Date(0);return u.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),u.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),u}return o=function(e){if("Z"===e)return 0;var t=e.match(xg);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,i))return NaN;return n*(r*ya+i*ga)}(s.timezone),isNaN(o)?new Date(NaN):new Date(l+c+o)}var yg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},vg=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,bg=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,xg=/^([+-])(\d{2})(?::?(\d{2}))?$/;function wg(e){return e?parseInt(e):1}function Cg(e){return e&&parseFloat(e.replace(",","."))||0}var Eg=[31,null,31,30,31,30,31,31,30,31,30,31];function Sg(e){return e%400==0||e%4==0&&e%100!=0}function _g(e,t,n,r){let i=null;if(e){t&&(i=mg(e,t,n=n||new Date,{locale:r})),as(i)||(i=gg(e)),as(i)||(i=new Date(Date.parse(e)));const s=as(i)&&String(i.getFullYear()).length>4;as(i)&&!s||(i=null)}return i}const kg={date:ff.FORMAT_FULL_DATE,dateTime:ff.FORMAT_DATE_TIME,dateRange:ff.FORMAT_FULL_DATE,dateTimeRange:ff.FORMAT_DATE_TIME,month:ff.FORMAT_YEAR_MONTH,monthRange:ff.FORMAT_YEAR_MONTH};function Pg(e){return e&&kg[e]}const Og=e=>kg;function Tg(e){const{format:t,type:n}=e,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,i=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,s=Pg(n);let a;switch(n){case"dateTime":case"dateTimeRange":const e=i.exec(t);a=e&&e[1]&&e[2]?`${e[1]} ${e[2]}`:s;break;default:const n=r.exec(t);a=n&&n[1]||s}return a}function Ig(e){const{inputValue:t="",rangeSeparator:n,type:r}=e;let i,s,a,o;const l={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(r){case"date":case"month":case"monthRange":l.monthLeft.dateInput=t;break;case"dateRange":[i="",a=""]=t.split(n),l.monthLeft.dateInput=i,l.monthRight.dateInput=a;break;case"dateTime":[i="",s=""]=t.split(" "),l.monthLeft.dateInput=i,l.monthLeft.timeInput=s;break;case"dateTimeRange":const[e="",r=""]=t.split(n);[i="",s=""]=e.split(" "),[a="",o=""]=r.split(" "),l.monthLeft.dateInput=i,l.monthLeft.timeInput=s,l.monthRight.dateInput=a,l.monthRight.timeInput=o}return l}function Dg(e){return["string","number"].includes(typeof e)&&""!==e}class Ag extends c{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:e}=this._adapter.getProps(),{rangeInputFocus:t}=this._adapter.getStates();"dateTimeRange"===e&&t&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const e=this._adapter.getProp("type");return/range/i.test(e)},this._isRangeValueComplete=e=>{let t=!1;return Array.isArray(e)&&(t=!e.some((e=>ve(e)))),t}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:n,prevTimeZone:r}=e;const i=(Array.isArray(t)?[...t]:(t||0===t)&&[t])||[],s=this.parseWithTimezone(i,n,r);this._adapter.updatePrevTimezone(r),this.clearInputValue(),this._adapter.updateValue(s),this.resetCachedSelectedValue(s),this.initRangeInputFocus(s),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(s)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&J()(t)&&0===e.length&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,n){const r=[];if(Array.isArray(e)&&e.length)for(const i of e){let e=(i||0===i)&&this._parseValue(i);e?(Dg(n)&&(e=Af(e,n)),r.push(Dg(t)?Df(e,t):e)):ye(!0,`[Semi DatePicker] value cannot be parsed, value: ${String(i)}`)}return r}_isMultiple(){return Boolean(this.getProp("multiple"))}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let n;if(!e&&0!==e)return new Date;if(Ef(e))n=e;else if(ne()(e))n=_g(e,this.getProp("format"),void 0,t);else{if(!Sf(e))throw new TypeError("defaultValue should be valid Date object/timestamp or string");n=new Date(e)}return n}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){!this.getProp("open")&&!e||this.getProp("disabled")?(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()):(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:n}=this._adapter.getStates(),r=Array.isArray(e)?e:t;he()(r,n)||this._adapter.updateCachedSelectedValue(r)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:n}=this._adapter.getStates(),r=ve(t)?n:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(r):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,(()=>this.resetInnerSelectedStates())),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=null!=e?e:"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(ve(e)||!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:n}=this._adapter.getProps();let r=!0;switch(!0){case"dateRange"===n:case"dateTimeRange"===n:this._isRangeValueComplete(t)||(r=!1);break;default:const e=null==t?void 0:t.filter((e=>e));Array.isArray(e)&&e.length||(r=!1)}return r}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const n=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:r}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),n&&n.length||""===e){if(a()(t,rr.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value"))return void this._notifyChange(n);this._updateValueAndInput(n,""===e,e);const i=this._getChangedDates(n);this._someDateDisabled(i,n)||he()(n,r)||this._notifyChange(n)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:n,insetInputValue:r}=e,i=this._isMultiple(),s=i?this.parseMultipleInput(t,n):this.parseInput(t,n),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),s&&s.length){const e=this._getChangedDates(s);if(!this._someDateDisabled(e,s)){he()(s,a)||(this._isControlledComponent()||this._adapter.needConfirm()||this._adapter.updateValue(s),this._notifyChange(s));const e=i?this.formatMultipleDates(s):this.formatDates(s);this._adapter.updateInputValue(e)}}this._adapter.updateInsetInputValue(r)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),n=this._getChangedDates(t);this._someDateDisabled(n,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const n=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),t&&["rangeStart","rangeEnd"].includes(n)||this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[];this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,""),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const e=new Date;t=this._isRangeType()?[e,e]:[e]}this._updateValueAndInput(t);const{value:n}=this.getStates(),r=this._getChangedDates(t);this._someDateDisabled(r,t)||he()(t,n)||this._notifyChange(t)}parseInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=[];const{dateFnsLocale:r,rangeSeparator:i}=this.getProps();if(e&&e.length){const s=this.getProp("type"),a=t||this.getProp("format")||Pg(s);let o,l;const c=new Date;switch(s){case"date":case"dateTime":case"month":o=e?_g(e,a,c,r):"",l=o&&as(o)&&this.localeFormat(o,a),o&&l===e&&(n=[o]);break;case"dateRange":case"dateTimeRange":case"monthRange":const t=i,s=e.split(t);o=s&&s.reduce(((e,t)=>{const n=t&&_g(t,a,c,r);return n&&e.push(n),e}),[]),l=o&&o.map((e=>e&&as(e)&&this.localeFormat(e,a))).join(t),o&&l===e&&(o.sort(((e,t)=>e.getTime()-t.getTime())),n=o)}}return n}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];const{dateFnsLocale:n,rangeSeparator:r,type:i,format:s}=this.getProps();if(e&&e.length){const a=s||Pg(i);let o,l;const c=new Date;switch(i){case"date":case"dateTime":case"month":const i=_g(e,a,c,n);Ef(i)?(l=this.localeFormat(i,a),l===e&&(o=i)):o=null,t=[o];break;case"dateRange":case"dateTimeRange":const s=r,h=e.split(s);o=h&&h.reduce(((e,t)=>{let r=null;const i=_g(t,a,c,n);return Ef(i)&&(l=this.localeFormat(i,a),l===t&&(r=i)),e.push(r),e}),[]),Array.isArray(o)&&o.every((e=>as(e)))&&o.sort(((e,t)=>e.getTime()-t.getTime())),t=o}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ff.DEFAULT_SEPARATOR_MULTIPLE,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.getProp("max"),i=e.split(t),s=[];for(const e of i){let t=e&&this.parseInputLoose(e);if(t=Array.isArray(t)?t:t&&[t],!t||!t.length)return[];if(n?!s.filter((e=>Boolean(t.find((t=>wf(e,t))))))&&s.push(...t):s.push(...t),r&&r>0&&s.length>r)return[]}return s}parseMultipleInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ff.DEFAULT_SEPARATOR_MULTIPLE,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.getProp("max"),i=e.split(t),s=[];for(const e of i){let t=e&&this.parseInput(e);if(t=Array.isArray(t)?t:t&&[t],!t||!t.length)return[];if(n?!s.filter((e=>Boolean(t.find((t=>wf(e,t))))))&&s.push(...t):s.push(...t),r&&r>0&&s.length>r)return[]}return s}formatDates(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n="";const r=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),s=t||this.getProp("format")||Pg(i);switch(i){case"date":case"dateTime":case"month":n=this.localeFormat(e[0],s);break;case"dateRange":case"dateTimeRange":case"monthRange":const t=!ve(e[0]),i=!ve(e[1]);t&&i?n=`${this.localeFormat(e[0],s)}${r}${this.localeFormat(e[1],s)}`:t?n=`${this.localeFormat(e[0],s)}${r}`:i&&(n=`${r}${this.localeFormat(e[1],s)}`)}}return n}formatMultipleDates(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ff.DEFAULT_SEPARATOR_MULTIPLE,n=arguments.length>2?arguments[2]:void 0;const r=[];if(Array.isArray(e)&&e.length){switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach((e=>r.push(this.formatDates([e],n))));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let t=0;t<e.length;t+=2)r.push(this.formatDates(e.slice(t,t+2),n))}}return r.join(t)}_updateValueAndInput(e,t,n){let r;if(t||e){r=Array.isArray(e)?e:e?[e]:[];const t=this._getChangedDates(r);this._isControlledComponent()||this._someDateDisabled(t,r)||this._adapter.needConfirm()||this._adapter.updateValue(r)}this._adapter.updateInputValue(n)}handleSelectedChange(e,t){const{type:n,format:r,rangeSeparator:i,insetInput:s}=this._adapter.getProps(),{value:o}=this.getStates(),l=this._isControlledComponent(),c=z()(t)?t.fromPreset:t,h=a()(t,"closePanel",!0),u=a()(t,"needCheckFocusRecord",!0),d=Array.isArray(e)?[...e]:e?[e]:[],p=this._getChangedDates(d);let f,m;if(!this._someDateDisabled(p,d)){if(this.resetCachedSelectedValue(d),f=this._isMultiple()?this.formatMultipleDates(d):this.formatDates(d),s){const e=Tg({format:r,type:n});m=Ig({inputValue:this._isMultiple()?this.formatMultipleDates(d,void 0,e):this.formatDates(d,e),type:n,rangeSeparator:i})}if(this._isRangeType()&&!this._isRangeValueComplete(d))return this._adapter.updateInputValue(f),void this._adapter.updateInsetInputValue(m);l&&!c||(this._updateValueAndInput(d,!0,f),this._adapter.updateInsetInputValue(m)),he()(e,o)||this._notifyChange(e)}const g=!u||u&&this._adapter.couldPanelClosed();("date"===n&&!this._isMultiple()&&h||"dateRange"===n&&this._isRangeValueComplete(d)&&h&&g)&&this.closePanel(void 0,f,d)}handleYMSelectedChange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{currentMonth:t,currentYear:n}=e,{type:r}=this.getProps();if("month"===r){const e=new Date(n.left,t.left-1);this.handleSelectedChange([e])}else{const e=new Date(n.left,t.left-1),r=new Date(n.right,t.right-1);this.handleSelectedChange([e,r])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),n=this._isRangeValueComplete(e),r=n?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(r),this.closePanel(void 0,void 0,r),n){const{notifyValue:t,notifyDate:n}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(n,t)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:n}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(n,t)}handlePresetClick(e,t){const{type:n,timeZone:r}=this.getProps(),i=this.getState("prevTimezone"),s="function"==typeof e.start?e.start():e.start,a="function"==typeof e.end?e.end():e.end;let o;switch(n){case"month":case"dateTime":case"date":o=this.parseWithTimezone([s],r,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([s,a],r,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1})}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const n=this.getProp("timeZone");Dg(n)&&(t=t.map((e=>Af(e,n))));const r=this.getProp("type"),i=this.getProp("format")||Pg(r);let s,a;switch(r){case"date":case"dateTime":case"month":this._isMultiple()?(s=t.map((e=>e&&this.localeFormat(e,i))),a=[...t]):(s=t[0]&&this.localeFormat(t[0],i),[a]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":s=t.map((e=>e&&this.localeFormat(e,i))),a=[...t]}return{notifyValue:s,notifyDate:a}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:n,notifyDate:r}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(r,n):this._adapter.notifyChange(n,r)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:n}=this._adapter.getStates(),r=[];switch(t){case"dateRange":case"dateTimeRange":const[t,i]=n,[s,a]=e;Cf(s,t)||r.push(s),Cf(a,i)||r.push(a);break;default:const o=new Set;n.forEach((e=>o.add(ss(e)&&e.valueOf())));for(const t of e)o.has(ss(t)&&t.valueOf())||r.push(t)}return r}_someDateDisabled(e,t){const{rangeInputFocus:n}=this.getStates(),r={rangeStart:"",rangeEnd:"",rangeInputFocus:n};if(this._isRangeType()&&Array.isArray(t)){if(as(t[0])){const e=ea(t[0],"yyyy-MM-dd");r.rangeStart=e}if(as(t[1])){const e=ea(t[1],"yyyy-MM-dd");r.rangeEnd=e}}let i=!1;for(const t of e)if(!ve(t)&&this.disabledDisposeDate(t,r)){i=!0;break}return i}localeFormat(e,t){return ea(e,t,{locale:this._adapter.getProp("dateFnsLocale")})}disposeDateFn(e,t){const{notifyDate:n}=this.disposeCallbackArgs(t),r=Array.isArray(t);let i;i=r===Array.isArray(n)?n:r?[n]:n[0];for(var s=arguments.length,a=new Array(s>2?s-2:0),o=2;o<s;o++)a[o-2]=arguments[o];return e(i,...a)}disabledDisposeDate(e){const{disabledDate:t}=this.getProps();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return this.disposeDateFn(t,e,...r)}disabledDisposeTime(e){const{disabledTime:t}=this.getProps();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return this.disposeDateFn(t,e,...r)}handleTriggerWrapperClick(e){const{disabled:t,triggerRender:n}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t||(this._isRangeType()&&!r?(this._adapter.isEventTarget(e)?setTimeout((()=>{this.handleInputFocus(e,"rangeStart")}),0):J()(n)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout((()=>{this._adapter.setTriggerDisabled(!0)}),0)):this._adapter.setTriggerDisabled(!1)}}function Rg(e,t){let{groupInnerSeparator:n=ff.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:i=ff.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0,a="";if((r<=0||"number"!=typeof r)&&(r=1),Array.isArray(e)&&e.length){const o=[],{length:l}=e;for(let t=0;t<l;t++){t%r==0&&o.push([]);o[Math.floor(t/r)].push(e[t])}a=o.map((e=>e.map((e=>e?ea(e,t,{locale:s}):"")).join(n))).join(i)}return a}function Ng(e,t){Et(2,arguments);var n=_t(e),r=kt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),s=new Date(n.getTime());return s.setMonth(n.getMonth()+r+1,0),i>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),i),n)}function Mg(e){const{defaultPickerValue:t,format:n,dateFnsLocale:r}=e;let i=Array.isArray(t)?t[0]:t,s=Array.isArray(t)?t[1]:void 0;switch(!0){case Ef(i):break;case Sf(i):i=new Date(i);break;case"string"==typeof i:i=_g(i,n,void 0,r);break;default:i=new Date}switch(!0){case Ef(s):break;case Sf(s):s=new Date(s);break;case"string"==typeof s:s=_g(s,n,void 0,r);break;default:s=Ng(i,1)}return{nowDate:i,nextDate:s}}var Fg=Function.prototype.toString,Lg=Object.create,jg=Object.prototype.toString,Vg=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();var $g="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new Vg};function Bg(e){if(!e)return Lg(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:Lg(e);if(t&&~Fg.call(t).indexOf("[native code]"))try{return new t}catch(e){}return Lg(e)}var zg="g"===/test/g.flags?function(e){return e.flags}:function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Hg(e){var t=jg.call(e);return t.substring(8,t.length-1)}var Kg="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||Hg(e)}:Hg,Ug=Object.defineProperty,Wg=Object.getOwnPropertyDescriptor,Gg=Object.getOwnPropertyNames,qg=Object.getOwnPropertySymbols,Yg=Object.prototype,Xg=Yg.hasOwnProperty,Zg=Yg.propertyIsEnumerable,Jg="function"==typeof qg;var Qg=Jg?function(e){return Gg(e).concat(qg(e))}:Gg;function ey(e,t,n){for(var r=Qg(e),i=0,s=r.length,a=void 0,o=void 0;i<s;++i)if("callee"!==(a=r[i])&&"caller"!==a)if(o=Wg(e,a)){o.get||o.set||(o.value=n.copier(o.value,n));try{Ug(t,a,o)}catch(e){t[a]=o.value}}else t[a]=n.copier(e[a],n);return t}function ty(e,t){return e.slice(0)}function ny(e,t){var n=new t.Constructor;return t.cache.set(e,n),e.forEach((function(e,r){n.set(r,t.copier(e,t))})),n}var ry=Jg?function(e,t){var n=Bg(t.prototype);for(var r in t.cache.set(e,n),e)Xg.call(e,r)&&(n[r]=t.copier(e[r],t));for(var i=qg(e),s=0,a=i.length,o=void 0;s<a;++s)o=i[s],Zg.call(e,o)&&(n[o]=t.copier(e[o],t));return n}:function(e,t){var n=Bg(t.prototype);for(var r in t.cache.set(e,n),e)Xg.call(e,r)&&(n[r]=t.copier(e[r],t));return n};function iy(e,t){return new t.Constructor(e.valueOf())}function sy(e,t){return e}function ay(e,t){var n=new t.Constructor;return t.cache.set(e,n),e.forEach((function(e){n.add(t.copier(e,t))})),n}var oy=Array.isArray,ly=Object.assign,cy=Object.getPrototypeOf||function(e){return e.__proto__},hy={array:function(e,t){var n=new t.Constructor;t.cache.set(e,n);for(var r=0,i=e.length;r<i;++r)n[r]=t.copier(e[r],t);return n},arrayBuffer:ty,blob:function(e,t){return e.slice(0,e.size,e.type)},dataView:function(e,t){return new t.Constructor(ty(e.buffer))},date:function(e,t){return new t.Constructor(e.getTime())},error:sy,map:ny,object:ry,regExp:function(e,t){var n=new t.Constructor(e.source,zg(e));return n.lastIndex=e.lastIndex,n},set:ay},uy=ly({},hy,{array:function(e,t){var n=new t.Constructor;return t.cache.set(e,n),ey(e,n,t)},map:function(e,t){return ey(e,ny(e,t),t)},object:function(e,t){var n=Bg(t.prototype);return t.cache.set(e,n),ey(e,n,t)},set:function(e,t){return ey(e,ay(e,t),t)}});function dy(e){var t=function(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:iy,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:iy,Object:e.object,Promise:sy,RegExp:e.regExp,Set:e.set,String:iy,WeakMap:sy,WeakSet:sy,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}(ly({},hy,e)),n=t.Array,r=t.Object;function i(e,i){if(i.prototype=i.Constructor=void 0,!e||"object"!=typeof e)return e;if(i.cache.has(e))return i.cache.get(e);if(i.prototype=cy(e),i.Constructor=i.prototype&&i.prototype.constructor,!i.Constructor||i.Constructor===Object)return r(e,i);if(oy(e))return n(e,i);var s=t[Kg(e)];return s?s(e,i):"function"==typeof e.then?e:r(e,i)}return function(e){return i(e,{Constructor:void 0,cache:$g(),copier:i,prototype:void 0})}}dy(ly({},uy,{}));var py=dy({});const fy="Enter";class my extends c{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===fy&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===fy&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){"Tab"===e.key&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:n,dateFnsLocale:r,format:i,rangeSeparator:s}=this._adapter.getProps(),a=t||i||Pg(n);let o="";switch(n){case"date":case"dateTime":case"month":o=Rg(e,a,void 0,r);break;case"dateRange":case"dateTimeRange":case"monthRange":o=Rg(e,a,{groupSize:2,groupInnerSeparator:s},r)}return o}handleInsetInputChange(e){const{value:t,valuePath:n,insetInputValue:r}=e,{format:i,type:s,rangeSeparator:a}=this._adapter.getProps(),o=Tg({type:s,format:i}),l=Me()(py(r),n,t),c=Ig({inputValue:this.concatInsetInputValue({insetInputValue:l}),type:s,rangeSeparator:a}),h=this._autoFillTimeToInsetInputValue({insetInputValue:c,valuePath:n,format:o}),u=this.concatInsetInputValue({insetInputValue:h});this._adapter.notifyInsetInputChange({insetInputValue:h,format:o,insetInputStr:u})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:n,format:r}=e,{type:i,defaultPickerValue:s,dateFnsLocale:o}=this._adapter.getProps(),l=py(n),{nowDate:c,nextDate:h}=Mg({defaultPickerValue:s,format:r,dateFnsLocale:o});if(i.includes("Time")){let e="";const n=a()(r.split(" "),"0",ff.FORMAT_FULL_DATE),i=a()(r.split(" "),"1",ff.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const t=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&t.length===n.length){Ef(_g(l.monthLeft.dateInput,n))&&(e=ea(c,i),l.monthLeft.timeInput=e)}break;case"monthRight.dateInput":const r=l.monthRight.dateInput;if(!l.monthRight.timeInput&&r.length===n.length){Ef(_g(r,n))&&(e=ea(h,i),l.monthRight.timeInput=e)}}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:n}=this._adapter.getProps(),r=Tg({type:e,format:t});let i,s;switch(e){case"date":case"month":case"dateRange":i=r;break;case"dateTime":case"dateTimeRange":[i,s]=r.split(" ");break;case"monthRange":i=r+n+r}return{datePlaceholder:i,timePlaceholder:s}}getInsetInputValue(e){let{value:t,insetInputValue:n}=e;const{type:r,rangeSeparator:i,format:s}=this._adapter.getProps();let a="";if(z()(n))a=this.concatInsetInputValue({insetInputValue:n});else{const e=Tg({format:s,type:r});a=this.formatShowText(t,e)}return Ig({inputValue:a,type:r,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:n}=e;return`${t} ${n}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:n}=e;const{rangeSeparator:r}=this._adapter.getProps();return`${t}${r}${n}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:n}=this._adapter.getProps();let r="";switch(n){case"date":case"month":case"monthRange":r=t.monthLeft.dateInput;break;case"dateRange":r=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":r=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const e=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),n=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});r=this.concatInsetDateRange({rangeStart:e,rangeEnd:n})}return r}}const gy=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}),"calendar");const yy=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),h.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),h.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),h.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),h.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}),"calendar_clock");function vy(e){const{insetInputValue:t,valuePath:n,onFocus:r,onChange:i,placeholder:s,forwardRef:o}=e,l=a()(t,n);return u().createElement(gr,{value:l,onChange:(e,r)=>{i({value:e,event:r,insetInputValue:t,valuePath:n})},onFocus:r,placeholder:s,ref:o})}function by(e){const{insetInputValue:t,valuePath:n,type:r,onFocus:i,onChange:s,placeholder:o,disabled:l}=e;if(!r.includes("Time"))return null;const c=a()(t,n);return u().createElement(gr,{value:c,onChange:(e,r)=>{s({value:e,event:r,insetInputValue:t,valuePath:n})},onFocus:i,placeholder:o,disabled:l})}var xy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class wy extends f{constructor(e){super(e),this.handleChange=(e,t)=>this.foundation.handleChange(e,t),this.handleEnterPress=e=>this.foundation.handleInputComplete(e),this.handleInputClear=e=>this.foundation.handleInputClear(e),this.handleRangeInputChange=(e,t,n)=>{const r=this.getRangeInputValue(e,t);this.foundation.handleChange(r,n)},this.handleRangeInputClear=e=>{this.foundation.handleRangeInputClear(e)},this.handleRangeInputEnterPress=(e,t,n)=>{const r=this.getRangeInputValue(t,n);this.foundation.handleRangeInputEnterPress(e,r)},this.handleRangeInputEndKeyPress=e=>{this.foundation.handleRangeInputEndKeyPress(e)},this.handleRangeInputFocus=(e,t)=>{this.foundation.handleRangeInputFocus(e,t)},this.handleRangeStartFocus=e=>{this.handleRangeInputFocus(e,"rangeStart")},this.handleInsetInputChange=e=>{this.foundation.handleInsetInputChange(e)},this.getRangeInputValue=(e,t)=>{const{rangeSeparator:n}=this.props;return`${e}${n}${t}`},this.foundation=new my(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:e=>this.setState({isFocusing:e}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:e=>this.props.onInsetInputChange(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:n,disabled:r,rangeInputFocus:i}=this.props,s=e||t;return s?u().createElement("div",{className:`${n}-range-input-prefix`,onClick:e=>!r&&!i&&this.handleRangeStartFocus(e),"x-semi-prop":"prefix,insetLabel"},s):null}renderRangeSeparator(e,t){const{disabled:n,rangeSeparator:r}=this.props,i=x()({[`${pf.PREFIX}-range-input-separator`]:!0,[`${pf.PREFIX}-range-input-separator-active`]:(e||t)&&!n});return u().createElement("span",{onClick:e=>!n&&this.handleRangeStartFocus(e),className:i},r)}renderRangeClearBtn(e,t){const{showClear:n,prefixCls:r,disabled:i,clearIcon:s,showClearIgnoreDisabled:a}=this.props;return(e||t)&&n&&!(i&&!a)?u().createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${r}-range-input-clearbtn`,onMouseDown:e=>this.handleRangeInputClear(e)},s||u().createElement(ar,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:n,rangeInputFocus:r}=this.props,i=e?u().createElement("div",{className:`${t}-range-input-suffix`,onClick:e=>!n&&!r&&this.handleRangeStartFocus(e)},e):null;return i}renderRangeInput(e){const{placeholder:t,inputStyle:n,disabled:r,inputReadOnly:i,autofocus:s,size:a,text:o,suffix:l,inputCls:c,rangeInputStartRef:h,rangeInputEndRef:d,rangeInputFocus:p,prefixCls:f,rangeSeparator:m,borderless:g}=e,[y,v=""]=o.split(m)||[],b="large"===a?"default":"small",w=Array.isArray(t)?t:[t,t],[C,E]=w,S=x()(`${f}-range-input-wrapper-start`,`${f}-range-input-wrapper`,{[`${f}-range-input-wrapper-active`]:"rangeStart"===p&&!r,[`${f}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${f}-borderless`]:g}),_=x()(`${f}-range-input-wrapper-end`,`${f}-range-input-wrapper`,{[`${f}-range-input-wrapper-active`]:"rangeEnd"===p&&!r,[`${f}-borderless`]:g});return u().createElement(u().Fragment,null,this.renderRangePrefix(),u().createElement("div",{onClick:e=>!r&&this.handleRangeInputFocus(e,"rangeStart"),className:`${c} ${S}`},u().createElement(gr,{borderless:g,size:b,style:n,disabled:r,readonly:i,placeholder:C,value:y,onChange:(e,t)=>this.handleRangeInputChange(e,v,t),onEnterPress:e=>this.handleRangeInputEnterPress(e,y,v),onFocus:e=>this.handleRangeInputFocus(e,"rangeStart"),autoFocus:s,ref:h})),this.renderRangeSeparator(y,v),u().createElement("div",{className:`${c} ${_}`,onClick:e=>!r&&this.handleRangeInputFocus(e,"rangeEnd")},u().createElement(gr,{borderless:g,size:b,style:n,disabled:r,readonly:i,placeholder:E,value:v,onChange:(e,t)=>this.handleRangeInputChange(y,e,t),onEnterPress:e=>this.handleRangeInputEnterPress(e,y,v),onFocus:e=>this.handleRangeInputFocus(e,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:d})),this.renderRangeClearBtn(y,v),this.renderRangeSuffix(l))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&"monthRange"!==e}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:n,value:r,insetInputValue:i,prefixCls:s,rangeInputStartRef:o,rangeInputEndRef:l,density:c,insetInput:h}=this.props,d=this.foundation.getInsetInputValue({value:r,insetInputValue:i}),{dateStart:p,dateEnd:f,timeStart:m,timeEnd:g}=a()(h,"placeholder",{}),{datePlaceholder:y,timePlaceholder:v}=this.foundation.getInsetInputPlaceholder(),b=`${s}-inset-input-wrapper`,x=`${s}-inset-input-separator`;return u().createElement("div",{className:b,"x-type":e},u().createElement(vy,{forwardRef:o,insetInputValue:d,placeholder:null!=p?p:y,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:e=>t(e,"rangeStart")}),u().createElement(by,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:null!=m?m:v,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:n}),this.isRenderMultipleInputs()&&u().createElement(u().Fragment,null,u().createElement("div",{className:x},"compact"===c?null:"-"),u().createElement(vy,{forwardRef:l,insetInputValue:d,placeholder:null!=f?f:y,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:e=>t(e,"rangeEnd")}),u().createElement(by,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:null!=g?g:v,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:n})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:n,value:r,inputValue:i,inputStyle:s,disabled:a,showClear:o,inputReadOnly:l,insetLabel:c,validateStatus:h,block:d,prefixCls:p,multiple:f,dateFnsLocale:m,onBlur:g,onClear:y,onFocus:v,prefix:b,autofocus:w,size:C,inputRef:E,rangeInputStartRef:S,rangeInputEndRef:_,onRangeClear:k,onRangeBlur:P,onRangeEndTabPress:O,rangeInputFocus:T,rangeSeparator:I,insetInput:D,insetInputValue:A,defaultPickerValue:R,showClearIgnoreDisabled:N}=e,M=xy(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),F=u().createElement(gy,{"aria-hidden":!0}),L=u().createElement(yy,{"aria-hidden":!0}),j=n.includes("Time")?L:F;let V="";ve(i)?r&&(V=this.formatText(r)):V=i;const $=x()({[`${p}-input-readonly`]:l,[`${p}-monthRange-input`]:"monthRange"===n}),B=Object.assign(Object.assign({},this.props),{text:V,suffix:j,inputCls:$});return this.isRenderMultipleInputs()?this.renderRangeInput(B):u().createElement(gr,Object.assign({},M,{ref:E,insetLabel:c,disabled:a,showClearIgnoreDisabled:N,readonly:l,className:$,style:s,hideSuffix:o,placeholder:"monthRange"===n&&Array.isArray(t)?t[0]+I+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:j,showClear:o,value:V,validateStatus:h,prefix:b,autoFocus:w,size:C,onBlur:g,onFocus:v}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}function Cy(e,t){Et(2,arguments);var n=_t(e),r=_t(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function Ey(e,t){return Et(2,arguments),Ng(e,12*kt(t))}function Sy(e){Et(1,arguments);var t=_t(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function _y(e,t){Et(2,arguments);var n=_t(e),r=kt(t),i=n.getFullYear(),s=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var o=Sy(a);return n.setMonth(r,Math.min(s,o)),n}function ky(e,t){if(Et(2,arguments),"object"!==St(t)||null===t)throw new RangeError("values parameter must be an object");var n=_t(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=_y(n,t.month)),null!=t.date&&n.setDate(kt(t.date)),null!=t.hours&&n.setHours(kt(t.hours)),null!=t.minutes&&n.setMinutes(kt(t.minutes)),null!=t.seconds&&n.setSeconds(kt(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(kt(t.milliseconds)),n)}wy.propTypes={borderless:C().bool,onClick:C().func,onChange:C().func,onEnterPress:C().func,onBlur:C().func,onClear:C().func,onFocus:C().func,value:C().array,disabled:C().bool,type:C().oneOf(ff.TYPE_SET),showClear:C().bool,format:C().string,inputStyle:C().object,inputReadOnly:C().bool,insetLabel:C().node,validateStatus:C().string,prefix:C().node,prefixCls:C().string,dateFnsLocale:C().object.isRequired,placeholder:C().oneOfType([C().string,C().array]),rangeInputFocus:C().oneOfType([C().string,C().bool]),rangeInputStartRef:C().object,rangeInputEndRef:C().object,rangeSeparator:C().string,insetInput:C().oneOfType([C().bool,C().object]),insetInputValue:C().object,defaultPickerValue:C().oneOfType([C().string,C().number,C().object,C().array])},wy.defaultProps={borderless:!1,showClear:!0,onClick:yt,onChange:yt,onEnterPress:yt,onBlur:yt,onClear:yt,onFocus:yt,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:pf.PREFIX,rangeSeparator:ff.DEFAULT_SEPARATOR_RANGE};const Py=(e,t)=>{if(!t)return"";const n=new Date(t),r=J()(e)?e(n):n;return ea(new Date(r),ff.FORMAT_FULL_DATE)};function Oy(e){return"string"==typeof e}function Ty(e,t){return la(Oy(e)?gg(e):e,Oy(t)?gg(t):t)}function Iy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="";const i="number"==typeof t&&t<10?`0${t}`:t.toString(),s="number"==typeof n&&n<10?`0${n}`:n.toString();return r=`${String(e)}-${i}-${s}`,r}const Dy=(e,t)=>{const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n={dayNumber:"",dateNumberFull:"",fullDate:""},r=Sy(e),i=ea(e,"yyyy"),s=ea(e,"MM"),a=sa(e),o=na(e),l=Number(ea(o,"e",{weekStartsOn:t})),c=[];let h=[];for(let e=1;e<l;e++)h.push(n);for(let e=0;e<r;e++){const t=e+1,n=t<10?`0${t}`:t.toString(),r=Iy(i,s,t);h.push({dayNumber:t,dayNumberFull:n,fullDate:r}),(7===h.length||r===ea(a,"yyyy-MM-dd"))&&(c.push(h),h=[])}return c}(e,t);return{monthText:ea(e,"yyyy-MM"),weeks:n,month:e}},Ay={month:Cy,year:function(e,t){Et(2,arguments);var n=_t(e),r=_t(t);return n.getFullYear()-r.getFullYear()}},Ry={prevMonth:function(e,t){return Et(2,arguments),Ng(e,-kt(t))},nextMonth:Ng,prevYear:function(e,t){return Et(2,arguments),Ey(e,-kt(t))},nextYear:Ey};class Ny extends c{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=_g(this.getProp("defaultPickerValue"));e&&Ef(e)&&(this._updatePanelDetail(ff.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(ff.PANEL_TYPE_RIGHT,{pickerDate:Ng(e,1)}))}updateSelectedFromProps(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.getProp("type"),{selected:r,rangeStart:i,rangeEnd:s}=this.getStates();if(e&&(null==e?void 0:e.length))switch(n){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e)}else(Array.isArray(e)&&!e.length||!e)&&(bl()(r)&&r.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),s&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:n}=this.getProps();if("function"==typeof t&&e&&["dateTime","dateTimeRange"].includes(n)){const{rangeStart:r,rangeEnd:i,monthLeft:s}=this.getStates(),a=[];"dateTimeRange"===n?(r&&a.push(r),r&&i&&a.push(i)):s&&s.showDate&&a.push(s.showDate);const o=a.map((e=>e instanceof Date?e:gg(e)));return t("dateTimeRange"===n?o:o[0],e)}}_initDatePickerFromValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{monthLeft:n}=this._adapter.getStates(),r=Object.assign({},n);this._adapter.updateMonthOnLeft(r);const i=new Set,s=this._isMultiple();if(s?e.forEach((e=>{e&&i.add(ea(e,ff.FORMAT_FULL_DATE))})):e[0]&&i.add(ea(e[0],ff.FORMAT_FULL_DATE)),t)if(s){!(null==e?void 0:e.some((e=>e&&0===Cy(e,n.pickerDate))))&&this.handleShowDateAndTime(ff.PANEL_TYPE_LEFT,e[0]||r.pickerDate)}else this.handleShowDateAndTime(ff.PANEL_TYPE_LEFT,e[0]||r.pickerDate);else this.handleShowDateAndTime(ff.PANEL_TYPE_LEFT,r.pickerDate);this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getState("monthLeft"),r=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},n),{pickerDate:e[0]||n.pickerDate}),Object.assign(Object.assign({},r),{pickerDate:e[1]||r.pickerDate}));if(Array.isArray(e)&&e.filter((e=>e)).length>1)this.handleShowDateAndTime(ff.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(ff.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const t=e.find((e=>e));if(t){const e=Math.abs(Cy(t,n.pickerDate))>0,s=Math.abs(Cy(t,r.pickerDate))>0;e&&s&&(this.handleShowDateAndTime(ff.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(ff.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?ff.FORMAT_DATE_TIME:ff.FORMAT_FULL_DATE;let a=e[0]&&ea(e[0],s),o=e[1]&&ea(e[1],s);this._isNeedSwap(a,o)&&([a,o]=[o,a]),this._adapter.setRangeStart(a),this._adapter.setRangeEnd(o),this._adapter.setHoverDay(o)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:n}=e,{type:r}=this._adapter.getProps(),{monthLeft:i,monthRight:s}=this._adapter.getStates();this.isRangeType(r)&&("right"===t&&0===Cy(n,i.pickerDate)?this.handleYearOrMonthChange("prevMonth","left",1,!0):"left"===t&&0===Cy(s.pickerDate,n)&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:n}=e,{monthRight:r,monthLeft:i}=this._adapter.getStates(),s="left"===t?i.pickerDate:r.pickerDate;let a;switch(n){case"prevMonth":a=Ng(s,-1);break;case"nextMonth":a=Ng(s,1);break;case"prevYear":a=Ey(s,-1);break;case"nextYear":a=Ey(s,1)}return a}toMonth(e,t){const{type:n}=this._adapter.getProps(),r=this._getDiff("month",t,e);this.handleYearOrMonthChange(r<0?"prevMonth":"nextMonth",e,Math.abs(r),!1),this.isRangeType(n)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const n=this._getDiff("year",t,e);this.handleYearOrMonthChange(n<0?"prevYear":"nextYear",e,Math.abs(n),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),n=e||t;return"string"==typeof n&&/range/i.test(n)}handleSwitchMonthOrYear(e,t){const{type:n,syncSwitchMonth:r}=this.getProps(),i=this.isRangeType(n);if(i&&r)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const n=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:n})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,n){const r=this._getPanelDetail(n);return Ay[e]&&Ay[e](t,r.pickerDate)}_getPanelDetail(e){return e===ff.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){return ea(e,t,{locale:this._adapter.getProp("dateFnsLocale")})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const n=this.getProp("timeZone");Dg(n)&&(t=t.map((e=>Af(e,n))));const r=this.getProp("type"),i=this.getProp("format")||Pg(r);let s,a;switch(r){case"date":case"dateTime":case"month":this._isMultiple()?(s=t.map((e=>e&&this.localeFormat(e,i))),a=[...t]):(s=t[0]&&this.localeFormat(t[0],i),[a]=t);break;case"dateRange":case"dateTimeRange":s=t.map((e=>e&&this.localeFormat(e,i))),a=[...t]}return{notifyValue:s,notifyDate:a}}handleYearOrMonthChange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ff.PANEL_TYPE_LEFT,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const{autoSwitchDate:i,type:s}=this.getProps(),{monthLeft:a,monthRight:o}=this.getStates(),l=this.isRangeType(s),c=l&&t===ff.PANEL_TYPE_LEFT,h=this._getPanelDetail(t),{pickerDate:u}=h,d=(0,Ry[e])(u,n),p=t===ff.PANEL_TYPE_LEFT&&!he()(d,a.pickerDate)||t===ff.PANEL_TYPE_RIGHT&&!he()(d,o.pickerDate);if(this._updatePanelDetail(t,{pickerDate:d}),p)if(l){if(c?this.newBiMonthPanelDate[0]=d:this.newBiMonthPanelDate[1]=d,!c||!r){const{notifyValue:e,notifyDate:t}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(t,e)}}else{const{notifyValue:e,notifyDate:t}=this.disposeCallbackArgs(d);this._adapter.notifyPanelChange(t,e)}i&&this.updateDateAfterChangeYM(e,d)}updateDateAfterChangeYM(e,t){const{multiple:n,disabledDate:r,type:i}=this.getProps(),{selected:s,rangeStart:a,rangeEnd:o,monthLeft:l}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),h={closePanel:!1};if(!n&&!c&&s.size){const e=Array.from(s)[0];let n=ky(new Date(e),{year:t.getFullYear(),month:t.getMonth()});if("dateTime"===i&&(n=this._mergeDateAndTime(n,l.pickerDate)),r(n,{rangeStart:a,rangeEnd:o}))return;this._adapter.notifySelectedChange([n],h)}}_isMultiple(){return Boolean(this.getProp("multiple"))&&"date"===this.getProp("type")}_isRange(){}handleDayClick(e,t){const n=this.getProp("type");switch(!0){case"date"===n||"dateTime"===n:this.handleDateSelected(e,t);break;case"dateRange"===n||"dateTimeRange"===n:this.handleRangeSelected(e)}}handleDateSelected(e,t){const{max:n,type:r,isControlledComponent:i,dateFnsLocale:s}=this.getProps(),a=this._isMultiple(),{selected:o}=this.getStates(),l=this._getPanelDetail(t),c=new Set(a?[...o]:[]),{fullDate:h}=e,u=l.pickerDate,d="dateTime"===r?this._mergeDateAndTime(h,u):h;a?c.has(d)?c.delete(d):n&&c.size===n?this._adapter.notifyMaxLimit():c.add(d):c.add(d);const p=this.getValidDateFormat(),f=[...c].map((e=>_g(e,p,void 0,s)));this.handleShowDateAndTime(t,u),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(f)}handleShowDateAndTime(e,t,n){const r=n||t;this._updatePanelDetail(e,{showDate:r,pickerDate:t})}_mergeDateAndTime(e,t){const n=this._adapter.getProp("dateFnsLocale"),r=ea(Ef(e)?e:_g(e,ff.FORMAT_FULL_DATE,void 0,n),ff.FORMAT_FULL_DATE),i=ea(Ef(t)?t:_g(t,ff.FORMAT_TIME_PICKER,void 0,n),ff.FORMAT_TIME_PICKER);return _g(`${r} ${i}`,this.getValidTimeFormat(),void 0,n)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:n}=this.getStates();const{startDateOffset:r,endDateOffset:i,type:s,dateFnsLocale:a,rangeInputFocus:o,triggerRender:l}=this._adapter.getProps(),{fullDate:c}=e;let h=!1,u=!1;const d=(r||i)&&"dateRange"===s;d?(t=Py(r,c),n=Py(i,c)):"rangeEnd"===o?(n=c,t&&n&&Ty(n,t.trim().split(/\s+/)[0])&&(t=null,h=!0)):"rangeStart"!==o&&o||(t=c,t&&n&&Ty(n.trim().split(/\s+/)[0],t)&&(n=null,u=!0));/range/i.test(s)&&(d?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(n)):"rangeEnd"===o?(this._adapter.setRangeEnd(n),h&&this._adapter.setRangeStart(t),this._adapter.isAnotherPanelHasOpened("rangeEnd")&&t||this._adapter.setRangeInputFocus("rangeStart")):"rangeStart"!==o&&o||(this._adapter.setRangeStart(t),u&&this._adapter.setRangeEnd(n),this._adapter.isAnotherPanelHasOpened("rangeStart")&&n||this._adapter.setRangeInputFocus("rangeEnd")));const p=this.getValidDateFormat();if(t||n){const[e,r]=[_g(t,p,void 0,a),_g(n,p,void 0,a)];let i=[e,r];if("dateTimeRange"===s){const s=this.getState("monthLeft").pickerDate,a=this.getState("monthRight").pickerDate,o=t?this._mergeDateAndTime(t,s):null,l=n?this._mergeDateAndTime(n,a):null;i=is(e,r)&&Ty(l,o)?[o,o]:[o,l]}const o=!("dateRange"===s&&d);this._adapter.notifySelectedChange(i,{needCheckFocusRecord:o})}}_isNeedSwap(e,t){return e&&t&&Ty(t,e)}handleDayHover(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:n,endDateOffset:r,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(n||r)&&"dateRange"===i){const e=Py(n,t),i=Py(r,t);this._adapter.setOffsetRangeStart(e),this._adapter.setOffsetRangeEnd(i)}}_autoAdjustMonth(e,t){let n=e,r=t;const i=Cy(e.pickerDate,t.pickerDate);return i>0?(n=Object.assign({},t),r=Object.assign({},e)):0===i&&(n=e,r=Object.assign(Object.assign({},t),{pickerDate:Ng(t.pickerDate,1)})),{monthLeft:n,monthRight:r}}getValidTimeFormat(){const e=this.getProp("format")||ff.FORMAT_TIME_PICKER,t=[];return(wl()(e,"h")||wl()(e,"H"))&&t.push("HH"),wl()(e,"m")&&t.push("mm"),wl()(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||Og(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:n,rangeStart:r}=this.getStates(),i=this.getProp("dateFnsLocale"),s=e.timeStampValue,a=this.getProp("type"),o=this._getPanelDetail(t),{showDate:l}=o,c=new Date(s),h=this.getValidDateFormat(),u=t===ff.PANEL_TYPE_RIGHT?n:r;let d,p,f;if("dateTimeRange"===a&&u){const e=_g(u,h,void 0,i);d=e.getFullYear(),p=e.getMonth(),f=e.getDate()}else d=l.getFullYear(),p=l.getMonth(),f=l.getDate();const m=c.getHours(),g=c.getMinutes(),y=c.getSeconds(),v=c.getMilliseconds(),b=new Date(...[d,p,f,m,g,y,v]);if("dateTimeRange"===a)this.handleShowDateAndTime(t,b,l),this._updateTimeInDateRange(t,b);else{const e=Iy(d,p+1,f);this.handleDateSelected({fullDate:e,fullValidDate:b},t),this.handleShowDateAndTime(t,b),this._adapter.notifySelectedChange([b])}}_updateTimeInDateRange(e,t){const{isControlledComponent:n,dateFnsLocale:r}=this.getProps();let i=this.getState("rangeStart"),s=this.getState("rangeEnd");const a=this.getValidDateFormat();if(i&&s){let o=_g(i,a,void 0,r),l=_g(s,a,void 0,r);e===ff.PANEL_TYPE_RIGHT?(l=this._mergeDateAndTime(t,t),s=ea(l,ff.FORMAT_DATE_TIME),this._isNeedSwap(i,s)&&([i,s]=[s,i],[o,l]=[l,o]),n||this._adapter.setRangeEnd(s)):(o=this._mergeDateAndTime(t,t),i=ea(o,ff.FORMAT_DATE_TIME),this._isNeedSwap(i,s)&&([i,s]=[s,i],[o,l]=[l,o]),n||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([o,l])}}_updatePanelDetail(e,t){const{monthLeft:n,monthRight:r}=this.getStates();e===ff.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},r),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},n),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),n=e.isYearPickerOpen,r=t.isYearPickerOpen;return n&&r?"both":n?"left":r?"right":"none"}}const My=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}),"double_chevron_left");const Fy=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}),"double_chevron_right"),Ly=pf.NAVIGATION;class jy extends h.PureComponent{constructor(e){super(e),this.navRef=u().createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:n,onNextMonth:r,onPrevMonth:i,onPrevYear:s,onNextYear:a,density:o,shouldBimonthSwitch:l,panelType:c}=this.props,h="borderless",d="compact"===o?"default":"large",p=!0,f="compact"===o?"small":"default",m=c===ff.PANEL_TYPE_LEFT,g=c===ff.PANEL_TYPE_RIGHT,y=l&&m,v={},b={};l&&g&&(v.visibility="hidden"),y&&(b.visibility="hidden");const x=e||this.navRef;return u().createElement("div",{className:Ly,ref:x},u().createElement(bi,{key:"double-chevron-left","aria-label":"Previous year",icon:u().createElement(My,{"aria-hidden":!0,size:d}),size:f,theme:h,noHorizontalPadding:p,onClick:s,style:v}),u().createElement(bi,{key:"chevron-left","aria-label":"Previous month",icon:u().createElement(dl,{"aria-hidden":!0,size:d}),size:f,onClick:i,theme:h,noHorizontalPadding:p,style:v}),u().createElement("div",{className:`${Ly}-month`},u().createElement(Ji,{onClick:n,theme:h,size:f},u().createElement("span",null,t))),u().createElement(bi,{key:"chevron-right","aria-label":"Next month",icon:u().createElement(pl,{"aria-hidden":!0,size:d}),size:f,onClick:r,theme:h,noHorizontalPadding:p,style:b}),u().createElement(bi,{key:"double-chevron-right","aria-label":"Next year",icon:u().createElement(Fy,{"aria-hidden":!0,size:d}),size:f,theme:h,noHorizontalPadding:p,onClick:a,style:b}))}}jy.propTypes={monthText:C().string,density:C().string,onMonthClick:C().func,onNextMonth:C().func,onPrevMonth:C().func,onNextYear:C().func,onPrevYear:C().func,navPrev:C().node,navNext:C().node,shouldBimonthSwitch:C().bool,panelType:C().oneOf([ff.PANEL_TYPE_LEFT,ff.PANEL_TYPE_RIGHT])},jy.defaultProps={monthText:"",onMonthClick:i(),onNextMonth:i(),onPrevMonth:i(),onNextYear:i(),onPrevYear:i()};const Vy=e=>{let{weekStartsOn:t=0}=e;const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let e=0;e<t;e++)n.push(n.shift());return n};class $y extends c{constructor(e){super(Object.assign({},e))}init(){this._getToday(),this.getMonthTable()}_getToday(){const e=ea(new Date,"yyyy-MM-dd");this._adapter.updateToday(e)}getMonthTable(){const e=this._adapter.getProp("month"),t=this.getState("weeksRowNum");if(e){this.updateWeekDays();const n=this._adapter.getProp("weekStartsOn"),r=Dy(e,n),{weeks:i}=r;this._adapter.updateMonthTable(r),ve(t)?this._adapter.setWeeksRowNum(i.length):Array.isArray(i)&&i.length!==t&&this._adapter.setWeeksRowNum(i.length,(()=>{this._adapter.notifyWeeksRowNumChange(i.length)}))}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=Vy({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}function By(e,t){return ca(Oy(e)?gg(e):e,Oy(t)?gg(t):t)}function zy(e,t){return is(Oy(e)?gg(e):e,Oy(t)?gg(t):t)}function Hy(e,t){let{start:n,end:r}=t;const i=Oy(e)?gg(e):e,s=Oy(n)?gg(n):n,a=Oy(r)?gg(r):r;return la(s,a)&&function(e,t){Et(2,arguments);var n=_t(e).getTime(),r=_t(t.start).getTime(),i=_t(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}(i,{start:s,end:a})&&!Cf(i,s)&&!Cf(i,a)}const Ky=pf.PREFIX;class Uy extends f{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=u().createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new $y(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:n,todayText:r,selected:i,disabledDate:s,rangeStart:a,rangeEnd:o}=e,l={rangeStart:a,rangeEnd:o,rangeInputFocus:t},c=n===r,h=i.has(n);let u=s&&s(gg(n),l);return!u&&"rangeStart"===this.props.rangeInputFocus&&o&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(u=By(n,o.trim().split(/\s+/)[0])),!u&&"rangeEnd"===this.props.rangeInputFocus&&a&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(u=Ty(n,a.trim().split(/\s+/)[0])),{isToday:c,isSelected:h,isDisabled:u}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:n,fullDate:r,hoverDay:i,offsetRangeStart:s,offsetRangeEnd:a,rangeInputFocus:o}=e,l=Boolean(t||n),c=Boolean(t&&n),h=s||a;if(!l)return{};const u=zy(i,r);let d,p,f,m,g,y,v,b,x,w,C,E;return t&&(f=zy(r,t),"rangeEnd"===o&&(d=Hy(r,{start:t,end:i}))),n&&(m=zy(r,n),"rangeStart"===o&&(p=Hy(r,{start:i,end:n}))),!c&&l&&(g=u),h||(y=d||p||u),c&&(v=Hy(r,{start:t,end:n}),h||(b=f&&By(t,i),x=m&&Ty(n,i),w=u&&"rangeStart"===o,C=u&&"rangeEnd"===o,E=u&&Hy(i,{start:t,end:n}))),{isHoverDay:u,isSelectedStart:f,isSelectedEnd:m,isInRange:v,isHover:y,isSelectedStartAfterHover:b,isSelectedEndBeforeHover:x,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:C,isHoverDayAroundOneSelected:g}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:n,rangeStart:r,rangeEnd:i,fullDate:s,hoverDay:a}=e;if(!(t||n))return{};const o=Hy(s,{start:r,end:i}),l=zy(a,s),c=r&&zy(s,r),h=i&&zy(s,i),u=Boolean(r&&i),d=zy(s,t),p=zy(s,n),f=l;let m,g;u&&(m=o&&l);return Boolean(t&&n)&&(g=c||Hy(s,{start:t,end:n})||h),{isOffsetRangeStart:d,isOffsetRangeEnd:p,isHoverInOffsetRange:m,isHoverDayOffset:f,isInOffsetRange:g}}getDayStatus(e,t){const{fullDate:n}=e,{hoverDay:r,rangeStart:i,rangeEnd:s,todayText:a,offsetRangeStart:o,offsetRangeEnd:l,disabledDate:c,selected:h,rangeInputFocus:u}=t,d=this.getSingleDayStatus({fullDate:n,todayText:a,hoverDay:r,selected:h,disabledDate:c,rangeStart:i,rangeEnd:s}),p=this.getDateRangeStatus(Object.assign({fullDate:n,rangeStart:i,rangeEnd:s,hoverDay:r,offsetRangeStart:o,offsetRangeEnd:l,rangeInputFocus:u},d)),f=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:o,offsetRangeEnd:l,rangeStart:i,rangeEnd:s,fullDate:n,hoverDay:r},d),p));return Object.assign(Object.assign(Object.assign({},d),p),f)}renderDayOfWeek(){const{locale:e}=this.props,t=x()(pf.WEEKDAY),n=x()(`${Ky}-weekday-item`),{weekdays:r}=this.state,i=r.map((t=>e.weeks[t]));return u().createElement("div",{role:"row",className:t},i.map(((e,t)=>u().createElement("div",{role:"columnheader",key:e+t,className:n},e))))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:n}=this.props;let r={};if(n){r={height:n*mf.WEEK_HEIGHT}}const i=x()(pf.WEEKS);return u().createElement("div",{className:i,style:r},t.map(((e,t)=>this.renderWeek(e,t))))}renderWeek(e,t){const n=pf.WEEK;return u().createElement("div",{role:"row",className:n,key:t},e.map(((e,t)=>this.renderDay(e,t))))}renderDay(e,t){const{todayText:n}=this.state,{renderFullDate:r,renderDate:i}=this.props,{fullDate:s,dayNumber:a}=e;if(!s)return u().createElement("div",{role:"gridcell",tabIndex:-1,key:a+t,className:pf.DAY},u().createElement("span",null));const o=this.getDayStatus(e,Object.assign({todayText:n},this.props)),l=x()(pf.DAY,{[pf.DAY_TODAY]:o.isToday,[pf.DAY_IN_RANGE]:o.isInRange,[pf.DAY_HOVER]:o.isHover,[pf.DAY_SELECTED]:o.isSelected,[pf.DAY_SELECTED_START]:o.isSelectedStart,[pf.DAY_SELECTED_END]:o.isSelectedEnd,[pf.DAY_DISABLED]:o.isDisabled,[pf.DAY_HOVER_DAY]:o.isHoverDayOffset,[pf.DAY_IN_OFFSET_RANGE]:o.isInOffsetRange,[pf.DAY_SELECTED_RANGE_HOVER]:o.isHoverInOffsetRange,[pf.DAY_OFFSET_RANGE_START]:o.isOffsetRangeStart,[pf.DAY_OFFSET_RANGE_END]:o.isOffsetRangeEnd,[pf.DAY_SELECTED_START_AFTER_HOVER]:o.isSelectedStartAfterHover,[pf.DAY_SELECTED_END_BEFORE_HOVER]:o.isSelectedEndBeforeHover,[pf.DAY_HOVER_DAY_BEFORE_RANGE]:o.isHoverDayInStartSelection,[pf.DAY_HOVER_DAY_AFTER_RANGE]:o.isHoverDayInEndSelection,[pf.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:o.isHoverDayAroundOneSelected}),c=x()({[`${pf.DAY}-main`]:!0}),h=[a,s,o],d=J()(r);return u().createElement("div",{role:"gridcell",tabIndex:o.isDisabled?-1:0,"aria-disabled":o.isDisabled,"aria-selected":o.isSelected,"aria-label":s,className:d?pf.DAY:l,title:s,key:a+t,onClick:t=>!o.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},d?r(...h):u().createElement("div",{className:c},J()(i)?i(a,s):u().createElement("span",null,a)))}render(){const{forwardRef:e,multiple:t}=this.props,n=this.renderDayOfWeek(),r=this.renderWeeks(),i=x()(pf.MONTH),s=e||this.monthRef;return u().createElement("div",{role:"grid","aria-multiselectable":t,ref:s,className:i},n,r)}}Uy.propTypes={month:C().object,selected:C().object,rangeStart:C().string,rangeEnd:C().string,offsetRangeStart:C().string,offsetRangeEnd:C().string,onDayClick:C().func,onDayHover:C().func,weekStartsOn:C().number,disabledDate:C().func,weeksRowNum:C().number,onWeeksRowNumChange:C().func,renderDate:C().func,renderFullDate:C().func,hoverDay:C().string,startDateOffset:C().func,endDateOffset:C().func,rangeInputFocus:C().oneOfType([C().string,C().bool]),focusRecordsRef:C().object,multiple:C().bool},Uy.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:i(),onDayHover:i(),onWeeksRowNumChange:i(),weekStartsOn:mf.WEEK_START_ON,disabledDate:bf(),weeksRowNum:0};const Wy="time",Gy="timeRange",qy={PREFIX:`${E}-timepicker`,RANGE_PICKER:`${E}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${E}-timepicker-lists`},Yy={TYPES:[Wy,Gy],TYPE_TIME_PICKER:Wy,TYPE_TIME_RANGE_PICKER:Gy,DEFAULT_TYPE:Wy,DEFAULT_RANGE_SEPARATOR:" ~ ",DEFAULT_MULTIPLE_SEPARATOR:",",SIZE:rr.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:$n,DEFAULT_POSITION:{[Wy]:"bottomLeft",[Gy]:"bottomLeft"}},Xy={PREFIX:`${E}-scrolllist`,SELECTED:`${E}-scrolllist-item-selected`},Zy=36,Jy=120;var Qy=__webpack_require__("15pl"),ev=__webpack_require__.n(Qy),tv=__webpack_require__("FllU"),nv=__webpack_require__.n(tv),rv=__webpack_require__("mbB6"),iv=__webpack_require__.n(rv),sv=__webpack_require__("6R5o"),av=__webpack_require__.n(sv),ov=__webpack_require__("+n+S"),lv=__webpack_require__.n(ov);class cv extends c{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:n,list:r}=this.getProps();if(e>-1&&Array.isArray(r)&&r.length&&Re(t)){const i=e%r.length,s=r[i],a=t.children[e];this._adapter.setSelectedNode(a),this._adapter.notifySelectItem(Object.assign(Object.assign({},s),{value:s.value,type:n,index:i}))}}selectNode(e,t){const{type:n,list:r}=this.getProps();if(Re(e)&&Re(t)){const i=nv()(t.children,(t=>t===e))%r.length,s=nv()(t.children,(e=>e===this._cachedSelectedNode))%r.length,a=r[i];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,s!==i&&this._adapter.notifySelectItem(Object.assign(Object.assign({},a),{value:a.value,type:n,index:i})))}}shouldAppend(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(Re(e)&&Re(t)){const r=e.querySelectorAll("li"),i=r[r.length-1],{list:s}=this.getProps();if(i){const e=t.getBoundingClientRect(),r=i.getBoundingClientRect(),a=r.height*s.length;let o=r.top,l=0;for(;o<=e.top+e.height*n;)l+=1,o+=a;return l}}return!1}shouldPrepend(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(Re(e)&&Re(t)){const r=e.querySelectorAll("li")[0],{list:i}=this.getProps();if(r){const e=t.getBoundingClientRect(),s=r.getBoundingClientRect(),a=s.height*i.length;let o=s.top,l=0;for(;o+s.height>=e.top-e.height*n;)l+=1,o-=a;return l}}return 0}initWheelList(e,t,n){const{list:r}=this.getProps();if(Re(t)&&Re(e)&&r&&r.length){const i=e.children,s=(lv()(i,0,r.length),this.shouldPrepend(e,t)),a=this.shouldAppend(e,t);this._adapter.setState({prependCount:s,appendCount:a},n)}}adjustInfiniteList(e,t,n){const{list:r}=this.getProps();if(Re(t)&&Re(e)&&r&&r.length){const n=e.querySelectorAll("li"),i=n.length,s=1,a=this.shouldPrepend(e,t,s),o=this.shouldAppend(e,t,s);if(a)for(let t=0;t<a;t++){we(e,...lv()(n,i-r.length*(t+1),i-r.length*t))}if(o)for(let t=0;t<o;t++){xe(e,...lv()(n,t*r.length,(t+1)*r.length))}}}getNearestNodeInfo(e,t){if(Re(e)&&Re(t)){const n=t.getBoundingClientRect().top,r=e.querySelectorAll("li");let i=null,s=-1,a=1/0;return Array.from(r).map(((e,t)=>{const r=e.getBoundingClientRect().top,o=Math.abs(r-n);o<a&&!this._adapter.isDisabledIndex(t)&&(a=o,i=e,s=t)})),{nearestNode:i,nearestIndex:s}}}getTargetNode(e,t){if(e&&Re(t)){const n="li",r=e.target,i=t.querySelectorAll(n),s=this.getProp("list"),a=Array.isArray(s)?s.length:0;let o=-1,l=-1,c=null;const h=av()(i,((e,t)=>{if(e===r||e.contains(r))return o=t,a>0&&(l=t%a),!0}));return l>-1&&(c=s[l]),{targetNode:h,targetIndex:o,indexInList:l,infoInList:c}}return null}}const hv=(e,t,n)=>{const r=new oi({from:{scrollTop:e.scrollTop},to:{scrollTop:t}},{duration:n});return r.on("frame",(t=>{let{scrollTop:n}=t;e.scrollTop=n})),r},uv=1e3/60,dv=/^\s*$/,pv="wheel";class fv extends f{constructor(){var e;super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e=this,this._cacheNode=(e,t)=>e&&t&&Object.prototype.hasOwnProperty.call(this,e)&&(this[e]=t),this._cacheSelectedNode=e=>this._cacheNode("selectedNode",e),this._cacheWillSelectNode=e=>this._cacheNode("willSelectNode",e),this._cacheListNode=e=>this._cacheNode("list",e),this._cacheSelectorNode=e=>this._cacheNode("selector",e),this._cacheWrapperNode=e=>this._cacheNode("wrapper",e),this._isFirst=e=>{const{list:t}=this;if(Re(e)&&Re(t)){const n=t.children;return 0===nv()(n,e)}return!1},this._isLast=e=>{const{list:t}=this;if(Re(e)&&Re(t)){const{children:n}=t;return nv()(n,e)===n.length-1}return!1},this.indexIsSame=(e,t)=>{const{list:n}=this.props;if(n.length)return e%n.length==t%n.length},this.isDisabledIndex=e=>{const{list:t}=this.props;if(Array.isArray(t)&&t.length&&e>-1){const n=e%t.length;return this.isDisabledData(t[n])}return!1},this.isDisabledNode=e=>{const t=this.list;if(Re(e)&&Re(t)){const n=nv()(t.children,(t=>t===e));return this.isDisabledIndex(n)}return!1},this.isDisabledData=e=>e&&"object"==typeof e&&e.disabled,this.isWheelMode=()=>this.props.mode===pv,this.addClassToNode=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xy.SELECTED;const{list:r}=e;if(Re(t=t||e.selectedNode)&&Re(r)){const{children:e}=r,i=new RegExp(`\\s*${n}\\s*`,"g");iv()(e,(e=>{e.className=e.className&&e.className.replace(i," "),dv.test(e.className)&&(e.className="")})),t.className&&!dv.test(t.className)?t.className+=` ${n}`:t.className=n}},this.getIndexByNode=e=>nv()(this.list.children,e),this.getNodeByIndex=e=>{if(e>-1)return av()(this.list.children,((t,n)=>n===e));return av()(this.list.children,(e=>!this.isDisabledNode(e)))},this.scrollToIndex=(e,t)=>{t="number"==typeof t?t:Jy,e=null==e?this.props.selectedIndex:e,this.scrollToNode(this.selectedNode,t)},this.scrollToNode=(e,t)=>{const{wrapper:n}=this,r=n.offsetHeight,i=this.getItmHeight(e),s=(e.offsetTop||this.list.children.length*i/2)-(r-i)/2;this.scrollToPos(s,t)},this.scrollToPos=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jy;const{wrapper:r}=e;if(n&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),r.scrollTop===t){if(e.isWheelMode()){const t=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(t.nearestNode)}}else e.scrollAnimation=hv(r,t,n),e.scrollAnimation.on("rest",(()=>{if(e.isWheelMode()){const t=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(t.nearestNode)}})),e.scrollAnimation.start();else r.scrollTop=t},this.scrollToSelectItem=e=>{const{nearestNode:t}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(e,t),this.debouncedSelect(e,t)},this.scrollToCenter=(e,t,n)=>{if(e=e||this.selectedNode,t=t||this.wrapper,Re(e)&&Re(t)){const r=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=t.scrollTop+(i.top-(r.top+r.height/2-i.height/2));this.scrollToPos(s,"number"==typeof n?n:Jy)}},this.clickToSelectItem=e=>{e&&e.nativeEvent&&e.nativeEvent.stopImmediatePropagation();const{targetNode:t,infoInList:n}=this.foundation.getTargetNode(e,this.list);t&&n&&!n.disabled&&this.debouncedSelect(null,t)},this.getItmHeight=e=>e&&e.offsetHeight||Zy,this.renderItemList=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{selectedIndex:n,mode:r,transform:i,list:s}=e.props;return s.map(((s,a)=>{const{transform:o}=s,l="function"==typeof o?o:i,c=n===a,h=x()({[`${Xy.PREFIX}-item-sel`]:c&&r!==pv,[`${Xy.PREFIX}-item-disabled`]:Boolean(s.disabled)});let d="";d=c&&"function"==typeof l?l(s.value,s.text):null==s.text?s.value:s.text;const p={};return e.isWheelMode()||s.disabled||(p.onClick=()=>e.foundation.selectIndex(a,e.list)),u().createElement("li",Object.assign({key:t+a},p,{className:h,role:"option","aria-selected":c,"aria-disabled":s.disabled}),d)}))},this.renderNormalList=()=>{const{list:e,className:t,style:n}=this.props,r=this.renderItemList(),i=x()(`${Xy.PREFIX}-item`,t);return u().createElement("div",{style:n,className:i,ref:this._cacheWrapperNode},u().createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},r))},this.renderInfiniteList=()=>{const{list:e,cycled:t,className:n,style:r}=this.props,{prependCount:i,appendCount:s}=this.state,a=ev()(i).reduce(((e,t)=>{const n=this.renderItemList(`pre_${t}_`);return e.unshift(...n),e}),[]),o=ev()(s).reduce(((e,t)=>{const n=this.renderItemList(`app_${t}_`);return e.push(...n),e}),[]),l=this.renderItemList(),c=x()(`${Xy.PREFIX}-list-outer`,{[`${Xy.PREFIX}-list-outer-nocycle`]:!t}),h=x()(`${Xy.PREFIX}-item-wheel`,n),d=x()(`${Xy.PREFIX}-selector`),p=x()(`${Xy.PREFIX}-shade`,`${Xy.PREFIX}-shade-pre`),f=x()(`${Xy.PREFIX}-shade`,`${Xy.PREFIX}-shade-post`);return u().createElement("div",{className:h,style:r},u().createElement("div",{className:p}),u().createElement("div",{className:d,ref:this._cacheSelectorNode}),u().createElement("div",{className:f}),u().createElement("div",{className:c,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},u().createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},a,l,o)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new cv(this.adapter),this.throttledAdjustList=g()(((e,t)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,t)}),uv),this.debouncedSelect=v()(((e,t)=>{this._cacheSelectedNode(t),this.foundation.selectNode(t,this.list)}),33.333333333333336)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(e,t)=>this.setState(Object.assign({},e),t),setPrependCount:e=>this.setState({prependCount:e}),setAppendCount:e=>this.setState({appendCount:e}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:e=>this._cacheWillSelectNode(e),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:n,list:r}=this.props,i=this.getNodeByIndex("number"==typeof n&&n>-1?n:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===pv&&t?this.foundation.initWheelList(this.list,this.wrapper,(()=>{this.scrollToNode(i,0)})):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const n=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(n,t)){const n=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(n)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,n){const{list:r}=this.props;if(Re(e)&&Re(n)&&"number"==typeof t&&Array.isArray(r)&&r.length){t%=r.length;let n=this.getIndexByNode(e)+t;for(;n<0;)n+=r.length;if(t)return this.getNodeByIndex(n)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}fv.propTypes={mode:C().oneOf(["normal","wheel"]),cycled:C().bool,list:C().array,selectedIndex:C().number,onSelect:C().func,transform:C().func,className:C().string,style:C().object,motion:C().oneOfType([C().func,C().bool]),type:C().oneOfType([C().string,C().number])},fv.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:i(),cycled:!1,mode:pv};class mv extends c{}__webpack_require__("TEru");var gv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class yv extends f{constructor(e){super(e),this.foundation=new mv(this.adapter)}render(){const e=this.props,{children:t,header:n,footer:r,prefixCls:i,bodyHeight:s,className:a,style:o}=e,l=gv(e,["children","header","footer","prefixCls","bodyHeight","className","style"]),c=x()(a,{[i||Xy.PREFIX]:!0}),h=x()({[`${i||Xy.PREFIX}-header`]:!0});return u().createElement("div",Object.assign({className:c,style:o},this.getDataAttr(l)),n?u().createElement("div",{className:h},u().createElement("div",{className:`${h}-title`,"x-semi-prop":this.props["x-semi-header-alias"]||"header"},n),u().createElement("div",{className:`${c}-line`})):null,u().createElement("div",{className:`${c}-body`,style:{height:s||""},"x-semi-prop":"children"},t),r?u().createElement("div",{className:`${c}-footer`,"x-semi-prop":this.props["x-semi-footer-alias"]||"footer"},r):null)}}yv.Item=fv,yv.propTypes={className:C().string,header:C().node,footer:C().node,children:C().node,bodyHeight:C().oneOfType([C().number,C().string])};const vv=yv,bv=36e5,xv=24*bv,wv=(e,t)=>{let n=`${e}`;e<10&&(n=`0${e}`);let r=!1;return t&&t.indexOf(e)>=0&&(r=!0),{value:n,disabled:r}};function Cv(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const i=[];for(let s=0;s<e;s+=r)(!t||t.indexOf(s)<0||!n)&&i.push(s);return i}const Ev=class extends c{constructor(e){super(Object.assign({},e))}isAM(){return this.getProp("isAM")}initData(){const{timeStampValue:e,hourStep:t,disabledMinutes:n,disabledSeconds:r,hideDisabledOptions:i,minuteStep:s,secondStep:a}=this.getProps(),o=this.getValidFormat(),l=this.getDisplayDateFromTimeStamp(e),c=this.disabledHours(),h=n(l?l.getHours():null),u=r(l?l.getHours():null,l?l.getMinutes():null),d=Cv(24,c,i,t),p=Cv(60,h,i,s),f=Cv(60,u,i,a);return{showHour:Boolean(o.match(/HH|hh|H|h/g)),showMinute:Boolean(o.match(/mm/g)),showSecond:Boolean(o.match(/ss/g)),hourOptions:d,minuteOptions:p,secondOptions:f}}getPosition(){const e=this.getProp("position"),t=this.getProp("type")||Yy.DEFAULT_TYPE;return e||Yy.DEFAULT_POSITION[t]}getDefaultFormatIfNeed(){return this._isInProps("format")?this.getProp("format"):this.getProp("use12Hours")?Yy.DEFAULT_FORMAT_A:Yy.DEFAULT_FORMAT}disabledHours(){const{use12Hours:e,disabledHours:t}=this.getProps();let n=t&&t();return e&&Array.isArray(n)&&(n=this.isAM()?n.filter((e=>e<12)).map((e=>0===e?12:e)):n.map((e=>12===e?12:e-12))),n}getValidFormat(e){let t=ve(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t="string"==typeof t?t:Yy.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),e&&Ef(t)?t:this.createDateDefault()}createDateDefault(){return new Date(parseInt(String(Date.now()/xv),10)*xv-8*bv)}};class Sv extends f{constructor(e){super(e),this.cacheRefCurrent=(e,t)=>{e&&"string"==typeof e&&this.adapter.setCache(e,t)},this.reselect=()=>{["ampm","hour","minute","second"].forEach((e=>{const t=this.adapter.getCache(e);t&&t.scrollToIndex&&t.scrollToIndex()}))},this.onItemChange=e=>{let{type:t,value:n,disabled:r}=e,{onChange:i,use12Hours:s,isAM:a,format:o,timeStampValue:l}=this.props;const c=this.foundation.getDisplayDateFromTimeStamp(l);if("hour"===t)s?a?c.setHours(Number(n)%12):c.setHours(Number(n)%12+12):c.setHours(Number(n));else if("minute"===t)c.setMinutes(Number(n));else if("ampm"===t){const e=n.toUpperCase();s&&("PM"===e&&(a=!1,c.getHours()<12&&c.setHours(c.getHours()%12+12)),"AM"===e&&(a=!0,c.getHours()>=12&&c.setHours(c.getHours()-12)))}else c.setSeconds(Number(n));i&&i({isAM:a,value:ea(c,o&&o.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(c)})},this.onEnterSelectPanel=e=>{const{onCurrentSelectPanelChange:t}=this.props;t(e)},this.getDisplayDateFromTimeStamp=e=>this.foundation.getDisplayDateFromTimeStamp(e),this.foundation=new Ev(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){e.timeStampValue===this.props.timeStampValue&&e.format===this.props.format||this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:n,disabledHours:r,use12Hours:i,scrollItemProps:s}=this.props,{showHour:a,hourOptions:o}=this.state;if(!a)return null;const l=r();let c,h;i?(c=[12].concat(o.filter((e=>e<12&&e>0))),h=e%12||12):(c=o,h=e);const d=`${n}-list-hour`;return u().createElement(fv,Object.assign({ref:e=>this.cacheRefCurrent("hour",e),mode:"normal",transform:e=>e+t.hour,className:d,list:c.map((e=>wv(e,l))),selectedIndex:c.indexOf(h),type:"hour",onSelect:this.onItemChange},s))}renderMinuteSelect(e,t){const{prefixCls:n,disabledMinutes:r,timeStampValue:i,scrollItemProps:s}=this.props,{showMinute:a,minuteOptions:o}=this.state;if(!a)return null;const l=new Date(i),c=r&&r(l.getHours()),h=`${n}-list-minute`;return u().createElement(fv,Object.assign({ref:e=>this.cacheRefCurrent("minute",e),mode:"normal",transform:e=>e+t.minute,list:o.map((e=>wv(e,c))),selectedIndex:o.indexOf(e),type:"minute",onSelect:this.onItemChange,className:h},s))}renderSecondSelect(e,t){const{prefixCls:n,disabledSeconds:r,timeStampValue:i,scrollItemProps:s}=this.props,{showSecond:a,secondOptions:o}=this.state;if(!a)return null;const l=new Date(i),c=r&&r(l.getHours(),l.getMinutes()),h=`${n}-list-second`;return u().createElement(fv,Object.assign({ref:e=>this.cacheRefCurrent("second",e),mode:"normal",transform:e=>String(e)+t.second,list:o.map((e=>wv(e,c))),selectedIndex:o.indexOf(e),className:h,type:"second",onSelect:this.onItemChange},s))}renderAMPMSelect(e,t){const{prefixCls:n,use12Hours:r,isAM:i,scrollItemProps:s}=this.props;if(!r)return null;const a=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],o=i?0:1,l=`${n}-list-ampm`;return u().createElement(fv,Object.assign({ref:e=>this.cacheRefCurrent("ampm",e),mode:"normal",className:l,list:a,selectedIndex:o,type:"ampm",onSelect:this.onItemChange},s))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:n}=this.props,r=this.getDisplayDateFromTimeStamp(e);return u().createElement(Bt,{componentName:"TimePicker"},((e,i)=>u().createElement(vv,{header:t,footer:n,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(e,i),this.renderHourSelect(r.getHours(),e),this.renderMinuteSelect(r.getMinutes(),e),this.renderSecondSelect(r.getSeconds(),e))))}}Sv.propTypes={format:C().string,defaultOpenValue:C().object,prefixCls:C().string,onChange:C().func,showHour:C().bool,showMinute:C().bool,showSecond:C().bool,disabledHours:C().func,disabledMinutes:C().func,disabledSeconds:C().func,hideDisabledOptions:C().bool,onCurrentSelectPanelChange:C().func,use12Hours:C().bool,isAM:C().bool,timeStampValue:C().any,scrollItemProps:C().object},Sv.defaultProps={disabledHours:i(),disabledMinutes:i(),disabledSeconds:i(),format:Yy.DEFAULT_FORMAT};const _v=Sv;function kv(e,t){Et(2,arguments);var n=_t(e),r=kt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}class Pv extends c{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:n,currentMonth:r}=this.getStates(),{type:i}=this.getProps(),s=ff.PANEL_TYPE_LEFT,a=ff.PANEL_TYPE_RIGHT,o=py(n);if(o[t]=e.value,"monthRange"===i){const n=o[s]===o[a]&&r[s]>r[a];t===s&&e.value>o[a]||t===s&&n?o[a]=e.value+1:t===a&&n&&(o[s]=e.value-1)}this._adapter.setCurrentYear(o,(()=>this.autoSelectMonth(e,t,o))),this._adapter.notifySelectYear(o)}selectMonth(e,t){const{currentMonth:n,currentYear:r}=this.getStates(),{type:i}=this.getProps(),s=ff.PANEL_TYPE_LEFT,a=ff.PANEL_TYPE_RIGHT,o=py(n);o[t]=e.month,"monthRange"===i&&t===s&&r[s]===r[a]&&e.value>o[a]&&(o[a]=e.month+1),this._adapter.setCurrentMonth(o),this._adapter.notifySelectMonth(o)}autoSelectMonth(e,t,n){const{disabledDate:r,locale:i}=this._adapter.getProps(),{months:s,currentMonth:a}=this._adapter.getStates(),o=kv(Date.now(),e.year);if(r(_y(o,a[t]-1))){const e=s.findIndex((e=>{let{month:n}=e;return n===a[t]}));let i;if(i=s.slice(e).find((e=>{let{month:t}=e;return!r(_y(o,t-1))})),i||(i=s.slice(0,e).find((e=>{let{month:t}=e;return!r(_y(o,t-1))}))),i){const e=py(a);e[t]=i.month,this._adapter.setCurrentYearAndMonth(n,e),this._adapter.notifySelectYearAndMonth(n,e)}}}backToMain(){this._adapter.notifyBackToMain()}}const Ov=(e,t)=>{const n=(new Date).getFullYear();let r="number"==typeof e?e:n-100,i="number"==typeof t?t:n+100;return i<r&&([r,i]=[i,r]),Array.from({length:i-r+1},((e,t)=>r+t))},Tv=`${E}-datepicker`;class Iv extends f{constructor(e){super(e),this.selectYear=(e,t)=>{this.foundation.selectYear(e,t)},this.selectMonth=(e,t)=>{this.foundation.selectMonth(e,t)},this.reselect=()=>{["yearRef","monthRef"].forEach((e=>{const t=this[e];t&&t.current&&t.current.scrollToIndex&&t.current.scrollToIndex()}))},this.backToMain=e=>{e.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:n,currentMonth:r}=e;this.state={years:Ov(e.startYear,e.endYear).map((e=>({value:e,year:e}))),months:Array(12).fill(0).map(((e,t)=>({value:t+1,month:t+1}))),currentYear:{left:n.left||t.getFullYear(),right:n.right||t.getFullYear()},currentMonth:{left:r.left||t.getMonth()+1,right:r.right||t.getMonth()+2}},this.yearRef=u().createRef(),this.monthRef=u().createRef(),this.foundation=new Pv(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const n={};if(!he()(e.currentYear,t.currentYear)){const t=(new Date).getFullYear();n.currentYear={left:e.currentYear.left||t,right:e.currentYear.right||t}}if(!he()(e.currentMonth,t.currentMonth)){const t=(new Date).getMonth();n.currentMonth={left:e.currentMonth.left||t+1,right:e.currentMonth.right||t+2}}return n}renderColYear(e){const{years:t,currentYear:n,currentMonth:r,months:i}=this.state,{disabledDate:s,localeCode:a,yearCycled:o,yearAndMonthOpts:l}=this.props,c=_y(Date.now(),r[e]-1),h=ff.PANEL_TYPE_LEFT,d=ff.PANEL_TYPE_RIGHT,p=t.map((t=>{let{value:r,year:a}=t;const o=i.every((e=>{let{month:t}=e;return s(ky(c,{year:a,month:t-1}))})),l=(t=>!(e!==d||!n[h])&&n[h]>t)(a);return{year:a,value:r,disabled:o||l}}));let f=e=>e;return"zh-CN"!==a&&"zh-TW"!==a||(f=e=>`${e}年`),u().createElement(fv,Object.assign({ref:this.yearRef,cycled:o,list:p,transform:f,selectedIndex:t.findIndex((t=>t.value===n[e])),type:"year",onSelect:t=>this.selectYear(t,e),mode:"normal"},l))}renderColMonth(e){const{months:t,currentMonth:n,currentYear:r}=this.state,{locale:i,localeCode:s,monthCycled:a,disabledDate:o,yearAndMonthOpts:l}=this.props;let c=e=>e;const h=kv(Date.now(),r[e]),d=ff.PANEL_TYPE_LEFT,p=ff.PANEL_TYPE_RIGHT;"zh-CN"!==s&&"zh-TW"!==s||(c=e=>`${e}月`);const f=t.map((t=>{let{value:s,month:a}=t;const l=e===p&&n[d]&&r[d]===r[p]&&n[d]>a;return{month:a,disabled:o(_y(h,a-1))||l,value:i.fullMonths[s]}})),m=f.findIndex((t=>t.month===n[e]));return u().createElement(fv,Object.assign({ref:this.monthRef,cycled:a,list:f,transform:c,selectedIndex:m,type:"month",onSelect:t=>this.selectMonth(t,e),mode:"normal"},l))}renderPanel(e){return u().createElement(u().Fragment,null,u().createElement(vv,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:n,presetPosition:r,renderQuickControls:i,renderDateInput:s,type:a}=this.props,o=`${Tv}-yearmonth-header`,l=`${Tv}-yearmonth-body`,c=e.selectDate,h="compact"===n?"default":"large",d="compact"===n?"small":"default",p=ff.PANEL_TYPE_LEFT,f=ff.PANEL_TYPE_RIGHT;let m=null;return m="month"===a?this.renderPanel(p):u().createElement("div",{className:l},this.renderPanel(p),this.renderPanel(f)),u().createElement(u().Fragment,null,t?null:u().createElement("div",{className:o},u().createElement(bi,{noHorizontalPadding:!1,icon:u().createElement(dl,{"aria-hidden":!0,size:h}),size:d,onClick:this.backToMain},u().createElement("span",null,c))),r?u().createElement("div",{style:{display:"flex"}},"left"===r&&"monthRange"!==a&&i,u().createElement("div",null,s,m),"right"===r&&"monthRange"!==a&&i):u().createElement(u().Fragment,null,s,m))}}Iv.propTypes={currentYear:C().object,currentMonth:C().object,onSelect:C().func,locale:C().object,localeCode:C().string,monthCycled:C().bool,yearCycled:C().bool,noBackBtn:C().bool,disabledDate:C().func,density:C().string,presetPosition:C().oneOf(ff.PRESET_POSITION_SET),renderQuickControls:C().node,renderDateInput:C().node,type:C().oneOf(ff.TYPE_SET),startYear:C().number,endYear:C().number},Iv.defaultProps={disabledDate:bf(),monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:i(),type:"month"};const Dv=Iv;const Av=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}),"clock"),Rv=pf.PREFIX;class Nv extends f{constructor(e){super(e),this.cacheRefCurrent=(e,t)=>{"string"==typeof e&&e.length&&this.adapter.setCache(e,t)},this.leftIsYearOrTime=e=>{const{monthLeft:t}=e||this.state;return!(!t||!t.isTimePickerOpen&&!t.isYearPickerOpen)},this.rightIsYearOrTime=e=>{const{monthRight:t}=e||this.state;return!(!t||!t.isTimePickerOpen&&!t.isYearPickerOpen)},this.calcScrollListHeight=()=>{const e=this.adapter.getCache(`wrap-${ff.PANEL_TYPE_LEFT}`),t=this.adapter.getCache(`wrap-${ff.PANEL_TYPE_RIGHT}`),n=this.adapter.getCache(`switch-${ff.PANEL_TYPE_LEFT}`),r=this.adapter.getCache(`switch-${ff.PANEL_TYPE_RIGHT}`),i=e&&e.getBoundingClientRect(),s=t&&t.getBoundingClientRect();let a=i&&i.height||0,o=s&&s.height||0;return n&&(a+=n.getBoundingClientRect().height),r&&(o+=r.getBoundingClientRect().height),Math.max(a,o)},this.handleWeeksRowNumChange=(e,t)=>{const n=t===ff.PANEL_TYPE_RIGHT,r=t===ff.PANEL_TYPE_RIGHT,i=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!i){const t={weeksRowNum:e,currentPanelHeight:this.calcScrollListHeight()};this.setState(t,(()=>{(this.leftIsYearOrTime()&&r||this.rightIsYearOrTime()&&n)&&this.reselect()}))}},this.reselect=()=>{[`timepicker-${ff.PANEL_TYPE_LEFT}`,`timepicker-${ff.PANEL_TYPE_RIGHT}`,`yam-${ff.PANEL_TYPE_LEFT}`,`yam-${ff.PANEL_TYPE_RIGHT}`].forEach((e=>{const t=this.adapter.getCache(e);t&&"function"==typeof t.reselect&&t.reselect()}))},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Pg(e.type),{nowDate:n,nextDate:r}=Mg({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},s={monthLeft:{pickerDate:n,showDate:n,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),s),this.foundation=new Ny(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:n,defaultPickerValue:r}=this.props;e.defaultValue!==n&&this.foundation.updateSelectedFromProps(n),e.defaultPickerValue!==r&&this.foundation.initDefaultPickerValue();if(this.foundation.isRangeType()){const e=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),n=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),r=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),i=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime(),s=e&&i;n&&r?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):s&&this.reselect()}}renderPanel(e,t){let n=x()(`${Rv}-month-grid-${t}`);const{monthLeft:r,monthRight:i,currentPanelHeight:s}=this.state,{insetInput:a}=this.props,o=t===ff.PANEL_TYPE_RIGHT?i:r,{isTimePickerOpen:l,isYearPickerOpen:c}=o,h=this.renderMonth(e,t),d=c?u().createElement("div",{className:`${Rv}-yam`},this.renderYearAndMonth(t,o)):null,p=l?u().createElement("div",{className:`${Rv}-tpk`},this.renderTimePicker(t,o)):null,f={},m=this.adapter.getCache(`wrap-${ff.PANEL_TYPE_LEFT}`),g=this.adapter.getCache(`wrap-${ff.PANEL_TYPE_RIGHT}`),y=t===ff.PANEL_TYPE_RIGHT?g:m;this.foundation.isRangeType()?((c||l)&&(f.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!a&&(f.minHeight=s||this.calcScrollListHeight())):"year"!==this.props.type&&"month"!==this.props.type&&(l||c)&&(n=x()(n,`${Rv}-yam-showing`));const v=!(c||l)?"date":c?"year":"time";return u().createElement("div",{className:n,key:t,style:f,"x-open-type":v},d,p,this.foundation.isRangeType()?h:c||l?null:h,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:n,rangeStart:r,rangeEnd:i,hoverDay:s,maxWeekNum:a,offsetRangeStart:o,offsetRangeEnd:l}=this.state,{weekStartsOn:c,disabledDate:h,locale:d,localeCode:p,renderDate:f,renderFullDate:m,startDateOffset:g,endDateOffset:y,density:v,rangeInputFocus:b,syncSwitchMonth:x,multiple:w}=this.props;let C="";if(e){const t=e?ea(e,"yyyy"):"",n=e?ea(e,"L"):"",r=d.months[n];C=d.monthText.replace("${year}",t).replace("${month}",r)}let E={};const S=t===ff.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,_=this.foundation.isRangeType(),k=_&&x;return _&&S&&(S.isYearPickerOpen||S.isTimePickerOpen)&&(E={visibility:"hidden",position:"absolute",pointerEvents:"none"}),u().createElement("div",{ref:e=>this.cacheRefCurrent(`wrap-${t}`,e),style:E},u().createElement(jy,{forwardRef:e=>this.cacheRefCurrent(`nav-${t}`,e),monthText:C,density:v,onMonthClick:e=>this.showYearPicker(t,e),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:k,panelType:t}),u().createElement(Uy,{locale:d,localeCode:p,forwardRef:e=>this.cacheRefCurrent(`month-${t}`,e),disabledDate:h,weekStartsOn:c,month:e,selected:n,rangeStart:r,rangeEnd:i,rangeInputFocus:b,offsetRangeStart:o,offsetRangeEnd:l,hoverDay:s,weeksRowNum:a,renderDate:f,renderFullDate:m,onDayClick:e=>this.foundation.handleDayClick(e,t),onDayHover:e=>this.foundation.handleDayHover(e,t),onWeeksRowNumChange:e=>this.handleWeeksRowNumChange(e,t),startDateOffset:g,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:w}))}renderTimePicker(e,t){const{type:n,locale:r,format:i,hideDisabledOptions:s,timePickerOpts:a,dateFnsLocale:o}=this.props,{pickerDate:l}=t,c=x()(`${Rv}-time`),h=Object.assign(Object.assign({},a),{hideDisabledOptions:s}),d=this.foundation.calcDisabledTime(e);d&&["disabledHours","disabledMinutes","disabledSeconds"].forEach((e=>{d[e]&&(h[e]=d[e])}));const{rangeStart:p,rangeEnd:f}=this.state,m=this.foundation.getValidDateFormat();let g,y;"dateTimeRange"===n&&p&&f&&is(g=_g(p,m,void 0,o),y=_g(f,m,void 0,o))&&(e===ff.PANEL_TYPE_RIGHT?p&&(h.startDate=g):f&&(h.endDate=y));const v=r.selectTime;return u().createElement("div",{className:c},u().createElement(_v,Object.assign({ref:t=>this.cacheRefCurrent(`timepicker-${e}`,t),panelHeader:v,format:i||ff.FORMAT_TIME_PICKER,timeStampValue:l,onChange:t=>this.foundation.handleTimeChange(t,e)},h)))}renderYearAndMonth(e,t){const{pickerDate:n}=t,{locale:r,localeCode:i,density:s,yearAndMonthOpts:a,startYear:o,endYear:l}=this.props,c=n.getFullYear(),h=n.getMonth()+1;return u().createElement(Dv,{ref:t=>this.cacheRefCurrent(`yam-${e}`,t),locale:r,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:h,right:0},onSelect:t=>this.foundation.toYearMonth(e,new Date(t.currentYear.left,t.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const t=this.adapter.getCache(`wrap-${e}`);t&&(t.style.height="auto")},density:s,yearAndMonthOpts:a,startYear:o,endYear:l})}renderSwitch(e){const{rangeStart:t,rangeEnd:n,monthLeft:r,monthRight:i}=this.state,{type:s,locale:a,disabledTimePicker:o,density:l,dateFnsLocale:c,insetInput:h}=this.props;if(!s.includes("Time")||h)return null;let d,p;const{FORMAT_SWITCH_DATE:f}=a.localeFormatToken,m=this.foundation.getValidTimeFormat(),g=this.foundation.getValidDateFormat();e===ff.PANEL_TYPE_LEFT?(d=r,p=t?ea(_g(t,g,void 0,c),f):""):(d=i,p=n?ea(_g(n,g,void 0,c),f):"");const{isTimePickerOpen:y,showDate:v}=d,b=v?ea(v,f):"",w=v?ea(v,m):"",C=["default"].includes(l),E=x()(`${Rv}-switch`),S=x()({[`${Rv}-switch-date`]:!0,[`${Rv}-switch-date-active`]:!y}),_=x()({[`${Rv}-switch-time`]:!0,[`${Rv}-switch-time-disabled`]:o,[`${Rv}-switch-date-active`]:y}),k=x()(`${Rv}-switch-text`);return u().createElement("div",{className:E,ref:t=>this.adapter.setCache(`switch-${e}`,t)},u().createElement("div",{role:"button","aria-label":"Switch to date panel",className:S,onClick:t=>this.foundation.showDatePanel(e)},C&&u().createElement(gy,{"aria-hidden":!0}),u().createElement("span",{className:k},p||b)),u().createElement("div",{role:"button","aria-label":"Switch to time panel",className:_,onClick:t=>this.foundation.showTimePicker(e,!0)},C&&u().createElement(Av,{"aria-hidden":!0}),u().createElement("span",{className:k},w)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:n,insetInput:r,presetPosition:i,renderQuickControls:s,renderDateInput:a}=this.props,o=x()({[`${Rv}-month-grid`]:!0}),l=ff.PANEL_TYPE_LEFT,c=ff.PANEL_TYPE_RIGHT;let h=null;"date"===n||"dateTime"===n?h=this.renderPanel(e.pickerDate,l):"dateRange"===n||"dateTimeRange"===n?h=[this.renderPanel(e.pickerDate,l),this.renderPanel(t.pickerDate,c)]:"year"!==n&&"month"!==n||(h="year month");const d=this.getYAMOpenType();return u().createElement("div",{style:{display:"flex"}},"left"===i&&s,u().createElement("div",null,a,u().createElement("div",{className:o,"x-type":n,"x-panel-yearandmonth-open-type":d,"x-insetinput":r?"true":"false","x-preset-position":null===s?"null":i,ref:e=>this.cacheRefCurrent("monthGrid",e)},h)),"right"===i&&s)}}Nv.propTypes={type:C().oneOf(ff.TYPE_SET),defaultValue:C().array,defaultPickerValue:C().oneOfType([C().string,C().number,C().object,C().array]),multiple:C().bool,max:C().number,weekStartsOn:C().number,disabledDate:C().func,disabledTime:C().func,disabledTimePicker:C().bool,hideDisabledOptions:C().bool,navPrev:C().node,navNext:C().node,onMaxSelect:C().func,timePickerOpts:C().object,isControlledComponent:C().bool,rangeStart:C().oneOfType([C().string]),rangeInputFocus:C().oneOfType([C().bool,C().string]),locale:C().object,localeCode:C().string,format:C().string,renderDate:C().func,renderFullDate:C().func,startDateOffset:C().func,endDateOffset:C().func,autoSwitchDate:C().bool,density:C().string,dateFnsLocale:C().object.isRequired,timeZone:C().oneOfType([C().string,C().number]),syncSwitchMonth:C().bool,onPanelChange:C().func,focusRecordsRef:C().object,triggerRender:C().func,presetPosition:C().oneOf(ff.PRESET_POSITION_SET),renderQuickControls:C().node,renderDateInput:C().node},Nv.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:mf.WEEK_START_ON,disabledDate:bf(),onMaxSelect:i(),locale:{}};const Mv=pf.PREFIX,{Text:Fv}=Nn;class Lv extends h.PureComponent{render(){const{presets:e,onPresetClick:t,type:n,presetPosition:r,insetInput:i,locale:s}=this.props,a="top"===r||"bottom"===r,o=a&&("dateRange"===n||"dateTimeRange"===n),l=a&&"month"===n,c=x()(`${Mv}-quick-control`,{[`${Mv}-quick-control-${n}`]:n,[`${Mv}-quick-control-${r}`]:!0}),h=x()({[`${Mv}-quick-control-header`]:!0}),d=x()({[`${Mv}-quick-control-${r}-content-wrapper`]:!0}),p=x()({[`${Mv}-quick-control-${r}-content`]:!o&&!l,[`${Mv}-quick-control-${r}-range-content`]:o,[`${Mv}-quick-control-${r}-month-content`]:l}),f=x()({[`${Mv}-quick-control-${r}-content-item`]:!o&&!l,[`${Mv}-quick-control-${r}-range-content-item`]:o,[`${Mv}-quick-control-${r}-month-content-item`]:l}),m=x()({[`${Mv}-quick-control-${r}-content-item-ellipsis`]:!o&&!l,[`${Mv}-quick-control-${r}-range-content-item-ellipsis`]:o,[`${Mv}-quick-control-${r}-month-content-item-ellipsis`]:l});return e.length?u().createElement("div",{className:c,"x-insetinput":i?"true":"false"},!a&&u().createElement("div",{className:h},s.presets),u().createElement("div",{className:d},u().createElement("div",{className:p},e.map(((e,n)=>{const r="function"==typeof e?e():e;return u().createElement(Ji,{size:"small",type:"primary",onClick:e=>t(r,e),key:n},u().createElement("div",{className:f},u().createElement(Fv,{ellipsis:{showTooltip:!0},className:m},r.text)))}))))):null}}Lv.propTypes={presets:C().array,presetPosition:C().oneOf(ff.PRESET_POSITION_SET),onPresetClick:C().func,type:C().string,insetInput:C().oneOfType([C().bool,C().object]),locale:C().object},Lv.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:yt};const jv=Lv;function Vv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{prefixCls:t,locale:n,onCancelClick:r,onConfirmClick:i}=e,s=x()(`${t}-footer`);return u().createElement("div",{className:s},u().createElement(Ji,{theme:"borderless",onClick:r},a()(n,"footer.cancel","")),u().createElement(Ji,{theme:"solid",onClick:i},a()(n,"footer.confirm","")))}__webpack_require__("zEHc");var $v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class Bv extends f{constructor(e){var t;super(e),t=this,this.setTriggerRef=e=>this.triggerElRef.current=e,this.handleSelectedChange=(e,t)=>this.foundation.handleSelectedChange(e,t),this.handleYMSelectedChange=e=>this.foundation.handleYMSelectedChange(e),this.disabledDisposeDate=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.foundation.disabledDisposeDate(e,...r)},this.disabledDisposeTime=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.foundation.disabledDisposeTime(e,...r)},this.handleOpenPanel=()=>this.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=e=>this.foundation.handleInsetInputChange(e),this.handleInputComplete=e=>this.foundation.handleInputComplete(e),this.handleInputBlur=e=>this.foundation.handleInputBlur(a()(e,"nativeEvent.target.value"),e),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=e=>this.foundation.handleInputClear(e),this.handleTriggerWrapperClick=e=>this.foundation.handleTriggerWrapperClick(e),this.handleSetRangeFocus=e=>this.foundation.handleSetRangeFocus(e),this.handleRangeInputBlur=(e,t)=>this.foundation.handleRangeInputBlur(e,t),this.handleRangeInputClear=e=>this.foundation.handleRangeInputClear(e),this.handleRangeEndTabPress=e=>this.foundation.handleRangeEndTabPress(e),this.isAnotherPanelHasOpened=e=>"rangeStart"===e?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(e,t)=>{const n=a()(this,"monthGrid.current.foundation");n&&(n.showDatePanel(ff.PANEL_TYPE_LEFT),n.showDatePanel(ff.PANEL_TYPE_RIGHT)),this.handleInputFocus(e,t)},this.handleInsetTimeFocus=()=>{const e=a()(this,"monthGrid.current.foundation");e&&(e.showTimePicker(ff.PANEL_TYPE_LEFT),e.showTimePicker(ff.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=e=>{this.foundation.handlePanelVisibleChange(e)},this.handleConfirm=e=>this.foundation.handleConfirm(),this.handleCancel=e=>this.foundation.handleCancel(),this.renderFooter=(e,t)=>this.adapter.needConfirm()?u().createElement(Vv,Object.assign({},this.props,{locale:e,localeCode:t,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(e,t,n)=>{const{dropdownClassName:r,dropdownStyle:i,density:s,topSlot:a,bottomSlot:o,presetPosition:l,type:c}=this.props,h=x()(pf.PREFIX,{[pf.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${pf.PREFIX}-compact`]:"compact"===s},r);return u().createElement("div",{ref:this.panelRef,className:h,style:i,"x-type":c},a&&u().createElement("div",{className:`${pf.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},a),"top"===l&&"monthRange"!==c&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(e,t):this.renderMonthGrid(e,t,n),"bottom"===l&&"monthRange"!==c&&this.renderQuickControls(),o&&u().createElement("div",{className:`${pf.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},o),this.renderFooter(e,t))},this.renderYearMonthPanel=(e,t)=>{const{density:n,presetPosition:r,yearAndMonthOpts:i,type:s,startYear:a,endYear:o}=this.props,l=this.state.value[0],c={left:0,right:0},h={left:0,right:0};if(yf()(l)&&(c.left=l.getFullYear(),h.left=l.getMonth()+1),"monthRange"===s){const e=this.state.value[1];yf()(e)&&(c.right=e.getFullYear(),h.right=e.getMonth()+1)}return u().createElement(Dv,{locale:e,localeCode:t,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:c,currentMonth:h,density:n,presetPosition:r,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:s,yearAndMonthOpts:i,startYear:a,endYear:o})},this.wrapPopover=e=>{const{panelShow:t}=this.state,{direction:n}=this.context,r="rtl"===n?"bottomRight":"bottomLeft",{motion:i,zIndex:s,position:a=r,getPopupContainer:o,locale:l,localeCode:c,dateFnsLocale:h,stopPropagation:d,autoAdjustOverflow:p,spacing:f,dropdownMargin:m}=this.props;return u().createElement(pn,{getPopupContainer:o,autoAdjustOverflow:p,zIndex:s,motion:i,margin:m,content:this.renderPanel(l,c,h),trigger:"custom",position:a,visible:t,stopPropagation:d,spacing:f,onVisibleChange:this.handlePanelVisibleChange},e)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=u().createRef(),this.panelRef=u().createRef(),this.monthGrid=u().createRef(),this.inputRef=u().createRef(),this.rangeInputStartRef=u().createRef(),this.rangeInputEndRef=u().createRef(),this.focusRecordsRef=u().createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new Ag(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(e,t)=>{this.setState({panelShow:e},t),e||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=e=>{const t=this.triggerElRef&&this.triggerElRef.current,n=this.panelRef&&this.panelRef.current,r=e.target,i=e.composedPath&&e.composedPath()||[r];t&&t.contains(r)||n&&n.contains(r)||i.includes(t)||i.includes(n)||(this.props.onClickOutSide(),this.adapter.needConfirm()||this.foundation.closePanel(e))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:e=>this.setState({value:e}),updatePrevTimezone:e=>this.setState({prevTimeZone:e}),updateCachedSelectedValue:e=>{let t=e;e&&!Array.isArray(e)&&(t=[...e]),this.setState({cachedSelectedValue:t})},updateInputValue:e=>{this.setState({inputValue:e})},updateInsetInputValue:e=>{const{insetInput:t}=this.props;t&&!he()(e,this.state.insetInputValue)&&this.setState({insetInputValue:e})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&!0===this.props.needConfirm,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:e=>{const{preventScroll:t}=this.props;switch(e!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:e}),e){case"rangeStart":const e=a()(this,"rangeInputStartRef.current");e&&e.focus({preventScroll:t}),setTimeout((()=>{this.focusRecordsRef.current.rangeStart=!0}),0);break;case"rangeEnd":const n=a()(this,"rangeInputEndRef.current");n&&n.focus({preventScroll:t}),setTimeout((()=>{this.focusRecordsRef.current.rangeEnd=!0}),0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:e=>e&&e.target===e.currentTarget,setInsetInputFocus:()=>{const{preventScroll:e}=this.props,{rangeInputFocus:t}=this.state;if("rangeEnd"===t){if(document.activeElement!==this.rangeInputEndRef.current){const t=a()(this,"rangeInputEndRef.current");t&&t.focus({preventScroll:e})}}else if(document.activeElement!==this.rangeInputStartRef.current){const t=a()(this,"rangeInputStartRef.current");t&&t.focus({preventScroll:e})}},setInputFocus:()=>{const{preventScroll:e}=this.props,t=a()(this,"inputRef.current");t&&t.focus({preventScroll:e})},setInputBlur:()=>{const e=a()(this,"inputRef.current");e&&e.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:e}=this.state;if("rangeStart"===e){const e=a()(this,"rangeInputStartRef.current");e&&e.blur()}else if("rangeEnd"===e){const e=a()(this,"rangeInputEndRef.current");e&&e.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:e=>{this.setState({triggerDisabled:e})}})}isRangeType(e,t){return/range/i.test(e)&&!J()(t)}componentDidUpdate(e){he()(e.value,this.props.value)?this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}):this.foundation.initFromProps(Object.assign({},this.props)),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,n){const{type:r,multiple:i,max:s,weekStartsOn:a,timePickerOpts:o,defaultPickerValue:l,format:c,hideDisabledOptions:h,disabledTimePicker:d,renderDate:p,renderFullDate:f,startDateOffset:m,endDateOffset:g,autoSwitchDate:y,density:v,syncSwitchMonth:b,onPanelChange:x,timeZone:w,triggerRender:C,insetInput:E,presetPosition:S,yearAndMonthOpts:_,startYear:k,endYear:P}=this.props,{cachedSelectedValue:O,rangeInputFocus:T}=this.state,I=O;return u().createElement(Nv,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:n,weekStartsOn:a,type:r,multiple:i,max:s,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:h,disabledTimePicker:d,disabledTime:this.disabledDisposeTime,defaultValue:I,defaultPickerValue:l,timePickerOpts:o,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:p,renderFullDate:f,startDateOffset:m,endDateOffset:g,autoSwitchDate:y,density:v,rangeInputFocus:T,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:b,onPanelChange:x,timeZone:w,focusRecordsRef:this.focusRecordsRef,triggerRender:C,insetInput:E,presetPosition:S,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:_,startYear:k,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:n,insetInput:r,locale:i}=this.props;return u().createElement(jv,{type:t,presets:e,insetInput:r,presetPosition:n,onPresetClick:(e,t)=>this.foundation.handlePresetClick(e,t),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:n,type:r,format:i,rangeSeparator:s,defaultPickerValue:a}=this.props,{insetInputValue:o,value:l}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:o,rangeSeparator:s,type:r,value:l,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:n,defaultPickerValue:a};return e?u().createElement(wy,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:n,format:r,multiple:i,disabled:s,showClear:a,insetLabel:o,insetLabelId:l,placeholder:c,validateStatus:h,inputStyle:d,prefix:p,locale:f,dateFnsLocale:m,triggerRender:g,size:y,inputReadOnly:v,rangeSeparator:b,insetInput:w,defaultPickerValue:C,borderless:E}=this.props,{value:S,inputValue:_,rangeInputFocus:k,triggerDisabled:P}=this.state,O=this.isRangeType(n,g),T=s||w&&P,I=x()(`${pf.PREFIX}-input`,{[`${pf.PREFIX}-range-input`]:O,[`${pf.PREFIX}-range-input-${y}`]:O&&y,[`${pf.PREFIX}-range-input-active`]:O&&k&&!T,[`${pf.PREFIX}-range-input-disabled`]:O&&T,[`${pf.PREFIX}-range-input-${h}`]:O&&h,[`${pf.PREFIX}-borderless`]:E}),D=c||f.placeholder[n],A=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:Boolean(w),placeholder:D,clearIcon:t,disabled:T,inputValue:_,value:S,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:d,showClear:a,insetLabel:o,insetLabelId:l,type:n,format:r,multiple:i,validateStatus:h,inputReadOnly:v||Boolean(w),onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:p,size:y,autofocus:this.state.autofocus,dateFnsLocale:m,rangeInputFocus:k,rangeSeparator:b,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:w?null:this.rangeInputStartRef,rangeInputEndRef:w?null:this.rangeInputEndRef,inputRef:this.inputRef});return u().createElement("div",{role:"combobox","aria-label":Array.isArray(S)&&S.length?"Change date":"Choose date","aria-disabled":s,onClick:this.handleTriggerWrapperClick,className:I},"function"==typeof g?u().createElement(br,Object.assign({},A,{triggerRender:g,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):u().createElement(wy,Object.assign({},A)))}render(){const e=this.props,{style:t,className:n,prefixCls:r,type:i}=e,s=$v(e,["style","className","prefixCls","type"]),a=Object.assign({style:t,className:x()(n,{[r]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(s)),o=[];i.toLowerCase().includes("range")||o.push("borderless");const l=this.renderInner(Pl()(this.props,o)),c=this.wrapPopover(l);return u().createElement("div",Object.assign({},a),c)}}Bv.contextType=Ze,Bv.propTypes={"aria-describedby":C().string,"aria-errormessage":C().string,"aria-invalid":C().bool,"aria-labelledby":C().string,"aria-required":C().bool,borderless:C().bool,type:C().oneOf(ff.TYPE_SET),size:C().oneOf(ff.SIZE_SET),clearIcon:C().node,density:C().oneOf(ff.DENSITY_SET),defaultValue:C().oneOfType([C().string,C().number,C().object,C().array]),value:C().oneOfType([C().string,C().number,C().object,C().array]),defaultPickerValue:C().oneOfType([C().string,C().number,C().object,C().array]),disabledTime:C().func,disabledTimePicker:C().bool,hideDisabledOptions:C().bool,format:C().string,disabled:C().bool,multiple:C().bool,max:C().number,placeholder:C().oneOfType([C().string,C().array]),presets:C().array,presetPosition:C().oneOf(ff.PRESET_POSITION_SET),onChange:C().func,onChangeWithDateFirst:C().bool,weekStartsOn:C().number,disabledDate:C().func,timePickerOpts:C().object,showClear:C().bool,onOpenChange:C().func,open:C().bool,defaultOpen:C().bool,motion:C().oneOfType([C().bool,C().func,C().object]),className:C().string,prefixCls:C().string,prefix:C().node,insetLabel:C().node,insetLabelId:C().string,zIndex:C().number,position:C().oneOf(rn.POSITION_SET),getPopupContainer:C().func,onCancel:C().func,onConfirm:C().func,needConfirm:C().bool,inputStyle:C().object,timeZone:C().oneOfType([C().string,C().number]),triggerRender:C().func,stopPropagation:C().oneOfType([C().bool,C().string]),autoAdjustOverflow:C().bool,onBlur:C().func,onFocus:C().func,onClear:C().func,style:C().object,autoFocus:C().bool,inputReadOnly:C().bool,validateStatus:C().oneOf(ff.STATUS),renderDate:C().func,renderFullDate:C().func,spacing:C().oneOfType([C().number,C().object]),startDateOffset:C().func,endDateOffset:C().func,autoSwitchDate:C().bool,dropdownClassName:C().string,dropdownStyle:C().object,dropdownMargin:C().oneOfType([C().number,C().object]),topSlot:C().node,bottomSlot:C().node,dateFnsLocale:C().object,syncSwitchMonth:C().bool,onPanelChange:C().func,rangeSeparator:C().string,preventScroll:C().bool,yearAndMonthOpts:C().object,onClickOutSide:C().func},Bv.__SemiComponentName__="DatePicker",Bv.defaultProps=Xe(Bv.__SemiComponentName__,{onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:pf.PREFIX,presetPosition:"bottom",zIndex:sn.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:i(),disabledMinutes:i(),disabledSeconds:i(),hideDisabledOptions:!1,onBlur:i(),onFocus:i(),onClear:i(),onCancel:i(),onConfirm:i(),onChange:i(),onOpenChange:i(),onPanelChange:i(),onPresetClick:i(),weekStartsOn:mf.WEEK_START_ON,disabledDate:bf(),disabledTime:bf(),inputReadOnly:!1,spacing:mf.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:ff.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:i()});const zv=uf(u().forwardRef(((e,t)=>{const n=Object.assign({},e),{type:r,format:i,rangeSeparator:s}=n;return"string"==typeof i&&i&&(/[Hhms]+/.test(i)||("dateTime"===r?n.type="date":"dateTimeRange"===r&&(n.type="dateRange"))),s&&"string"==typeof s&&(n.rangeSeparator=` ${s.trim()} `),n.insetInput&&(n.position||(n.position=ff.POSITION_INLINE_INPUT),n.position.includes("Over")&&!n.spacing&&(n.spacing=mf.SPACING_INSET_INPUT)),u().createElement(Ze.Consumer,null,(e=>{let{timeZone:r}=e;return u().createElement(Bt,{componentName:"DatePicker"},((e,i,s)=>u().createElement(Bv,Object.assign({timeZone:r,localeCode:i,locale:e,dateFnsLocale:s},n,{ref:t}))))}))})),Bv);var Hv=__webpack_require__("Kkar"),Kv=__webpack_require__.n(Hv);const Uv={PREFIX:`${E}-descriptions`},Wv=["left","justify","plain","center"],Gv=["small","medium","large"],qv=["horizontal","vertical"];__webpack_require__("Q1hM");const Yv=u().createContext(null);var Xv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Zv=Uv.PREFIX,Jv=`${Zv}-key`,Qv=`${Zv}-value`;class eb extends h.PureComponent{render(){const e=this.props,{itemKey:t,hidden:n,className:r,span:i,style:s,children:a}=e,o=Xv(e,["itemKey","hidden","className","span","style","children"]),{align:l,layout:c}=this.context;if(n)return null;const h=u().createElement("td",{className:`${Zv}-item`,colSpan:i||1},u().createElement("span",{className:Jv},t,":"),u().createElement("span",{className:Qv},"function"==typeof a?a():a)),p=u().createElement(u().Fragment,null,u().createElement("th",{className:`${Zv}-item ${Zv}-item-th`},u().createElement("span",{className:Jv},t)),u().createElement("td",{className:`${Zv}-item ${Zv}-item-td`,colSpan:i?2*i-1:1},u().createElement("span",{className:Qv},"function"==typeof a?a():a))),f="plain"===l?u().createElement("tr",Object.assign({className:r,style:s},d(o)),h):u().createElement("tr",Object.assign({className:r,style:s},d(o)),p);return"horizontal"===c?"plain"===l?h:p:f}}eb.propTypes={itemKey:C().node,hidden:C().bool,className:C().string,style:C().object},eb.contextType=Yv;class tb extends c{constructor(e){super(Object.assign({},e))}getHorizontalList(){const{column:e,data:t,children:n}=this.getProps(),r=this._adapter.getColumns(),i=[],s={totalSpan:0,itemList:[]};for(const t of r)s.totalSpan+=t.span||1,s.itemList.push(t),s.totalSpan>=e&&(i.push(s.itemList),s.itemList=[],s.totalSpan=0);if(0!=s.itemList.length){const t=s.itemList[s.itemList.length-1];if(isNaN(t.span)){let n=0;s.itemList.forEach((e=>n+=isNaN(e.span)?1:e.span)),n<e&&(t.span=e-n+1)}i.push(s.itemList)}return i}}var nb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const rb=Uv.PREFIX;class ib extends f{constructor(e){super(e),this.renderChildrenList=()=>{const e=this.props,{layout:t,data:n,children:r}=e;if("horizontal"===t){return this.foundation.getHorizontalList().map(((e,t)=>u().createElement("tr",{key:t},e.map(((e,n)=>Kv()(e)?u().createElement(eb,Object.assign({itemKey:e.key},e,{key:t+"-"+n}),e.value):null)))))}return n&&n.length?n.map(((e,t)=>Kv()(e)?u().createElement(eb,Object.assign({itemKey:e.key},e,{key:t}),e.value):null)):r},this.foundation=new tb(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{getColumns:()=>{var e,t;return(null===(e=this.props.data)||void 0===e?void 0:e.length)?this.props.data:this.props.children?null===(t=u().Children.toArray(this.props.children))||void 0===t?void 0:t.map((e=>(0,h.isValidElement)(e)?Object.assign({value:e.props.children},e.props):[])):[]}})}render(){const e=this.props,{align:t,row:n,size:r,className:i,style:s,children:a,data:o,layout:l}=e,c=nb(e,["align","row","size","className","style","children","data","layout"]),h=x()(rb,i,{[`${rb}-${t}`]:!n,[`${rb}-double`]:n,[`${rb}-double-${r}`]:n,[`${rb}-horizontal`]:"horizontal"===l,[`${rb}-vertical`]:"vertical"===l});return u().createElement("div",Object.assign({className:h,style:s},d(c)),u().createElement("table",null,u().createElement("tbody",null,u().createElement(Yv.Provider,{value:{align:t,layout:l}},this.renderChildrenList()))))}}ib.Item=eb,ib.contextType=Yv,ib.propTypes={align:C().oneOf(Wv),row:C().bool,size:C().oneOf(Gv),style:C().object,className:C().string,data:C().arrayOf(C().shape({key:C().node,value:C().oneOfType([C().node,C().func]),hidden:C().bool,className:C().string,style:C().object})),layout:C().oneOf(qv),column:C().number},ib.defaultProps={align:"center",row:!1,size:"medium",data:[],layout:"vertical",column:3};const sb=ib,ab={PREFIX:`${E}`};__webpack_require__("Sr6T");var ob=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const lb=ab.PREFIX,cb=e=>{const{layout:t="horizontal",dashed:n,align:r="center",className:i,margin:s,style:a,children:o}=e,l=ob(e,["layout","dashed","align","className","margin","style","children"]),c=x()(`${lb}-divider`,i,{[`${lb}-divider-horizontal`]:"horizontal"===t,[`${lb}-divider-vertical`]:"vertical"===t,[`${lb}-divider-dashed`]:!!n,[`${lb}-divider-with-text`]:o&&"horizontal"===t,[`${lb}-divider-with-text-${r}`]:o&&"horizontal"===t});let h={};return void 0!==s&&("vertical"===t?h={marginLeft:s,marginRight:s}:"horizontal"===t&&(h={marginTop:s,marginBottom:s})),u().createElement("div",Object.assign({},l,{className:c,style:Object.assign(Object.assign({},h),a)}),o&&"horizontal"===t?"string"==typeof o?u().createElement("span",{className:`${lb}-divider_inner-text`,"x-semi-prop":"children"},o):o:null)},hb={PREFIX:`${E}-empty`};__webpack_require__("e3UD");var ub=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const db=hb.PREFIX;class pb extends f{constructor(e){super(e),this.observe=e=>{for(const t of e)"attributes"===t.type&&"theme-mode"===t.attributeName&&this.updateMode()},this.updateMode=()=>{const e=this.body.getAttribute("theme-mode");e!==this.state.mode&&this.setState({mode:e})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:n,description:r,style:i,title:s,imageStyle:a,children:o,layout:l,darkModeImage:c}=e,h=ub(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),d="string"==typeof r?r:"empty",p="dark"===this.state.mode&&c?c:n;let f=null;f="string"==typeof p?u().createElement("img",{alt:d,src:p}):p&&"id"in p?u().createElement("svg",{"aria-hidden":"true"},u().createElement("use",{xlinkHref:`#${p.id}`})):p;const m=x()(t,db,{[`${db}-${l}`]:l}),g=f?{heading:4}:{heading:6,style:{fontWeight:400}};return u().createElement("div",Object.assign({className:m,style:i},this.getDataAttr(h)),u().createElement("div",{className:`${db}-image`,style:a,"x-semi-prop":"image,darkModeImage"},f),u().createElement("div",{className:`${db}-content`},s?u().createElement(Nn.Title,Object.assign({},g,{className:`${db}-title`,"x-semi-prop":"title"}),s):null,r?u().createElement("div",{className:`${db}-description`,"x-semi-prop":"description"},r):null,o?u().createElement("div",{className:`${db}-footer`,"x-semi-prop":"children"},o):null))}}pb.defaultProps={layout:"vertical"};__webpack_require__("hKJu");const fb=`${E}-modal`,mb=["small","medium","large","full-width"],gb=["ltr","rtl"];function yb(e){return null!==(t=e)&&"object"==typeof t&&"function"==typeof e.then;var t}class vb extends c{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(e,t)=>{this._adapter.toggleDisplayNone(e,t)}}destroy(){this.afterHide()}handleCancel(e){var t;const n=this._adapter.notifyCancel(e);yb(n)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),null===(t=null==n?void 0:n.then((()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})})))||void 0===t||t.catch((e=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),e})))}handleOk(e){var t;const n=this._adapter.notifyOk(e);yb(n)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),null===(t=null==n?void 0:n.then((()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})})))||void 0===t||t.catch((e=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),e})))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}enabledBodyScroll(){this._adapter.enabledBodyScroll()}}class bb extends c{constructor(e){super(Object.assign(Object.assign({},bb.defaultAdapter),e)),this.handleKeyDown=e=>{const{closeOnEsc:t}=this.getProps();if(t&&e.keyCode===Zt.ESC)return e.stopPropagation(),void this.close(e)}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target!==e.currentTarget||t||this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var xb=__webpack_require__("uUTq"),wb=__webpack_require__.n(xb);class Cb{constructor(e,t){var n;this.addFocusRedirectListener=e=>(this.focusRedirectListenerList.push(e),()=>this.removeFocusRedirectListener(e)),this.removeFocusRedirectListener=e=>{this.focusRedirectListenerList=wb()(this.focusRedirectListenerList,e)},this.destroy=()=>{var e;null===(e=this.container)||void 0===e||e.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=e=>{if(!this.enable)return!1;for(const t of this.focusRedirectListenerList){if(!t(e))return!1}return!0},this.focusElement=(e,t)=>{const{preventScroll:n}=this.options;null==e||e.focus({preventScroll:n}),t.preventDefault()},this.onKeyPress=e=>{if(e&&"Tab"===e.key){const t=Cb.getFocusableElements(this.container);t.length&&(e.shiftKey?this.handleContainerShiftTabKeyDown(t,e):this.handleContainerTabKeyDown(t,e))}},this.handleContainerTabKeyDown=(e,t)=>{const n=Cb.getActiveElement(),r=e[e.length-1]===n,i=e[0];r&&this.shouldFocusRedirect(i)&&this.focusElement(i,t)},this.handleContainerShiftTabKeyDown=(e,t)=>{const n=Cb.getActiveElement(),r=e[0]===n,i=e[e.length-1];r&&this.shouldFocusRedirect(i)&&this.focusElement(i,t)},Object.freeze(t),this.container=e,this.options=t,this.enable=null===(n=null==t?void 0:t.enable)||void 0===n||n,this.focusRedirectListenerList=(null==t?void 0:t.onFocusRedirectListener)?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Re(e))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(t))}static getActiveElement(){return document?document.activeElement:null}}const Eb=Cb;var Sb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};let _b=0;class kb extends f{constructor(e){super(e),this.onKeyDown=e=>{this.foundation.handleKeyDown(e)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=e=>{this.foundation.handleMaskClick(e)},this.close=e=>{this.foundation.close(e)},this.getMaskElement=()=>{const e=Sb(this.props,[]),{mask:t,maskClassName:n}=e;if(t){const t=x()(`${fb}-mask`,{});return u().createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:x()(t,n),style:e.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:e,closeIcon:t}=this.props;let n;if(e){const e=t||u().createElement(Ri,{"x-semi-prop":"closeIcon"});n=u().createElement(bi,{"aria-label":"close",className:`${fb}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:e,theme:"borderless",size:"small"})}return n},this.renderIcon=()=>{const{icon:e}=this.props;return e?u().createElement("span",{className:`${fb}-icon-wrapper`,"x-semi-prop":"icon"},e):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:e}=this.props,t=this.renderCloseBtn(),n=this.renderIcon();return null==e?null:u().createElement("div",{className:`${fb}-header`},n,u().createElement(Nn.Title,{heading:5,className:`${fb}-title`,id:`${fb}-title`,"x-semi-prop":"title"},e),t)},this.renderBody=()=>{const{bodyStyle:e,children:t,title:n}=this.props,r=x()(`${fb}-body`,{[`${fb}-withIcon`]:this.props.icon}),i=this.renderCloseBtn(),s=this.renderIcon();return null!=n||"header"in this.props?u().createElement("div",{className:r,id:`${fb}-body`,style:e,"x-semi-prop":"children"},t):u().createElement("div",{className:`${fb}-body-wrapper`},s,u().createElement("div",{className:r,style:e,"x-semi-prop":"children"},t),i)},this.getDialogElement=()=>{const e=Sb(this.props,[]),t={},n=x()(`${fb}`,{[`${fb}-centered`]:e.centered,[`${fb}-${e.size}`]:e.size});e.width&&(t.width=e.width),e.height&&(t.height=e.height),e.isFullScreen&&(t.width="100%",t.height="100%",t.margin="unset");const r=this.renderBody(),i=this.renderHeader(),s=e.footer?u().createElement("div",{className:`${fb}-footer`,"x-semi-prop":"footer"},e.footer):null;return u().createElement("div",{key:"dialog-element",className:n,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},e.style),t),id:this.dialogId},u().createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${fb}-title`,"aria-describedby":`${fb}-body`,onAnimationEnd:e.onAnimationEnd,className:x()([`${fb}-content`,e.contentClassName,{[`${fb}-content-fullScreen`]:e.isFullScreen}])},i,r,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new bb(this.adapter),this.dialogId="dialog-"+_b++,this.modalDialogRef=u().createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout((()=>{this.setState({dialogMouseDown:!1})}),0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,n;const{preventScroll:r}=this.props;let i;if(this.modalDialogRef){const t=Eb.getActiveElement();i=this.modalDialogRef.current.contains(t),null===(e=this.focusTrapHandle)||void 0===e||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:r})}i||null===(n=null===(t=this.modalDialogRef)||void 0===t?void 0:t.current)||void 0===n||n.focus({preventScroll:r})},modalDialogBlur:()=>{var e,t;null===(e=this.modalDialogRef)||void 0===e||e.current.blur(),null===(t=this.focusTrapHandle)||void 0===t||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,n=a()(e,"focus");J()(n)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||null===(e=t[0])||void 0===e||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){var e;const t=this.props,{maskClosable:n,className:r,getPopupContainer:i,maskFixed:s,getContainerContext:a}=t,o=Sb(t,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,c=x()(r,{[`${fb}-popup`]:i&&i()!==(null===(e=null===globalThis||void 0===globalThis?void 0:globalThis.document)||void 0===e?void 0:e.body)&&!s,[`${fb}-fixed`]:s,[`${fb}-rtl`]:"rtl"===l}),h=a(),d=this.getDataAttr(o),p=u().createElement("div",Object.assign({className:c},d),this.getMaskElement(),u().createElement("div",Object.assign({role:"none",className:x()({[`${fb}-wrap`]:!0,[`${fb}-wrap-center`]:this.props.centered}),onClick:n?this.onMaskClick:null,onMouseUp:n?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return h&&h.Provider?u().createElement(h.Provider,{value:h.value},p):p}}kb.contextType=Ze,kb.propTypes={close:C().func,getContainerContext:C().func,contentClassName:C().string,maskClassName:C().string,onAnimationEnd:C().func,preventScroll:C().bool},kb.defaultProps={close:i(),getContainerContext:i(),contentClassName:"",maskClassName:""};var Pb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ob=e=>{const[t,n]=(0,h.useState)(!0),[r,i]=(0,h.useState)(),[s,a]=(0,h.useState)(),{direction:o}=e,{title:l,content:c,icon:d,type:p,onCancel:f,onOk:m,className:g}=e,y=Pb(e,["title","content","icon","type","onCancel","onOk","className"]),v=(0,h.useCallback)((e=>{const t=m&&m(e);t&&t.then?(i(!0),t.then((function(){n(!1),i(!1)}),(e=>{i(!1)}))):n(!1)}),[m]),b=(0,h.useCallback)((e=>{const t=f&&f(e);t&&t.then?(a(!0),t.then((function(){n(!1),a(!1)}),(e=>{a(!1)}))):n(!1)}),[f]),w=`${fb}-confirm`,C=x()(g,w,{[`${w}-rtl`]:"rtl"===o}),E=x()(`${fb}-${p}`),S=Ue(d)?u().cloneElement(d,{className:`${w}-icon ${E}-icon`,size:"extra-large"}):d,_=null==l?null:u().createElement("span",{className:`${w}-title-text`},l),k=x()(`${w}-content`,{[`${w}-content-withIcon`]:e.icon});return u().createElement(Hb,Object.assign({className:C,title:_,confirmLoading:r,cancelLoading:s,onOk:v,onCancel:b,icon:S,visible:t},y),u().createElement("div",{className:k,"x-semi-prop":"content"},c))};const Tb=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}),"help_circle");function Ib(e){const t=document.createElement("div");document.body.appendChild(t);let n=Object.assign({},e);const r=()=>{ge().unmountComponentAtNode(t)&&t.parentNode&&t.parentNode.removeChild(t);for(let e=0;e<Bb.length;e++){if(Bb[e]===s){Bb.splice(e,1);break}}};function i(n){const{afterClose:i}=n;ge().render(u().createElement(Ob,Object.assign({},n,{afterClose:function(){null==i||i(...arguments),r()},motion:e.motion})),t)}function s(){n=Object.assign(Object.assign({},n),{visible:!1}),i(n)}return i(n),Bb.push(s),{destroy:s,update:function(e){n=Object.assign(Object.assign({},n),e),i(n)}}}function Db(e){return Object.assign({type:"info",icon:u().createElement(Fi,null)},e)}function Ab(e){return Object.assign({type:"success",icon:u().createElement(Mi,null)},e)}function Rb(e){return Object.assign({type:"warning",icon:u().createElement(Ni,null)},e)}function Nb(e){return Object.assign({type:"error",icon:u().createElement(Li,null),okButtonProps:Object.assign({type:"danger"},e.okButtonProps)},ae()(e,["okButtonProps"]))}function Mb(e){return Object.assign({type:"confirm",icon:u().createElement(Tb,null)},e)}var Fb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Lb=(e,t)=>{var{afterClose:n,config:r}=e;Fb(e,["afterClose","config"]);const[i,s]=u().useState(r);u().useImperativeHandle(t,(()=>({destroy:()=>{s((e=>Object.assign(Object.assign({},e),{visible:!1})))},update:e=>{s((t=>Object.assign(Object.assign({},t),e)))}})));return u().createElement(Ob,Object.assign({},i,{afterClose:()=>{var e;null===(e=null==r?void 0:r.afterClose)||void 0===e||e.call(r),n()}}))},jb=u().forwardRef(Lb);let Vb=0;var $b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};let Bb=[];class zb extends f{constructor(e){super(e),this.bodyOverflow=null,this.handleCancel=e=>{this.foundation.handleCancel(e)},this.handleOk=e=>{this.foundation.handleOk(e)},this.updateState=()=>{const{visible:e}=this.props;this.foundation.toggleDisplayNone(!e)},this.renderFooter=()=>{const{okText:e,okType:t,cancelText:n,confirmLoading:r,cancelLoading:i,hasCancel:s,footerFill:a}=this.props,o=e=>{var t;return s?u().createElement(Ji,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:void 0===i?"pending"===this.state.onCancelReturnPromiseStatus:i,type:"tertiary",block:a,autoFocus:!0},this.props.cancelButtonProps,{style:Object.assign(Object.assign({},a?{marginLeft:"unset"}:{}),null===(t=this.props.cancelButtonProps)||void 0===t?void 0:t.style),"x-semi-children-alias":"cancelText"}),n||e.cancel):null};return u().createElement(Bt,{componentName:"Modal"},((n,i)=>u().createElement("div",{className:x()({[`${fb}-footerfill`]:a})},o(n),u().createElement(Ji,Object.assign({"aria-label":"confirm",type:t,theme:"solid",block:a,loading:void 0===r?"pending"===this.state.onOKReturnPromiseStatus:r,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),e||n.confirm))))},this.renderDialog=()=>{var e;let t=this.props,{footer:n,className:r,motion:i,maskStyle:s,keepDOM:a,style:o,zIndex:l,getPopupContainer:c,visible:h,modalContentClass:d}=t,p=$b(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible","modalContentClass"]),f=o;const m=s,g="footer"in this.props?n:this.renderFooter();let y={zIndex:l};c&&c()!==(null===(e=null===globalThis||void 0===globalThis?void 0:globalThis.document)||void 0===e?void 0:e.body)&&(y={zIndex:l,position:"static"});const v=x()(r,{[`${fb}-displayNone`]:a&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),u().createElement(ot,{motion:this.props.motion,animationState:h?"enter":"leave",startClassName:h?`${fb}-content-animate-show`:`${fb}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},(e=>{let{animationClassName:t,animationEventsNeedBind:n}=e;return u().createElement(ot,{motion:this.props.motion,animationState:h?"enter":"leave",startClassName:h?`${fb}-mask-animate-show`:`${fb}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},(e=>{let{animationClassName:r,animationEventsNeedBind:i}=e;return b?u().createElement(et,{style:y,getPopupContainer:c}," ",u().createElement(kb,Object.assign({},p,{contentExtraProps:n,maskExtraProps:i,isFullScreen:this.state.isFullScreen,contentClassName:`${t} ${d}`,maskClassName:r,className:v,getPopupContainer:c,maskStyle:m,style:f,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):u().createElement(u().Fragment,null)}))}))},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new vb(this.adapter),this.modalRef=u().createRef(),this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{var e;const{getPopupContainer:t}=this.props;this.bodyOverflow=document.body.style.overflow||"",t&&t()!==(null===(e=null===globalThis||void 0===globalThis?void 0:globalThis.document)||void 0===e?void 0:e.body)||"hidden"===this.bodyOverflow||(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{var e;const{getPopupContainer:t}=this.props;t&&t()!==(null===(e=null===globalThis||void 0===globalThis?void 0:globalThis.document)||void 0===e?void 0:e.body)||null===this.bodyOverflow||"hidden"===this.bodyOverflow||(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||i())},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const n={};return e.fullScreen!==t.isFullScreen&&(n.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(n.displayNone=!1),n}componentDidMount(){this.scrollBarWidth=Ye(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,n){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible?this.foundation.destroy():this.foundation.enabledBodyScroll()}render(){const{visible:e,keepDOM:t,lazyRender:n}=this.props;return this.renderDialog()}}zb.propTypes={mask:C().bool,closable:C().bool,centered:C().bool,visible:C().bool,width:C().oneOfType([C().string,C().number]),height:C().oneOfType([C().string,C().number]),confirmLoading:C().bool,cancelLoading:C().bool,okText:C().string,okType:C().string,cancelText:C().string,maskClosable:C().bool,onCancel:C().func,onOk:C().func,afterClose:C().func,okButtonProps:C().object,cancelButtonProps:C().object,style:C().object,className:C().string,maskStyle:C().object,bodyStyle:C().object,zIndex:C().number,title:C().node,icon:C().node,header:C().node,footer:C().node,hasCancel:C().bool,motion:C().bool,children:C().node,getPopupContainer:C().func,getContainerContext:C().func,maskFixed:C().bool,closeIcon:C().node,closeOnEsc:C().bool,size:C().oneOf(mb),keepDOM:C().bool,lazyRender:C().bool,direction:C().oneOf(gb),fullScreen:C().bool,footerFill:C().bool},zb.__SemiComponentName__="Modal",zb.defaultProps=Xe(zb.__SemiComponentName__,{zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:i(),onOk:i(),afterClose:i(),maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1}),zb.useModal=function(){const[e,t]=function(){const[e,t]=u().useState([]);return[e,function(e){return t((t=>[...t,e])),()=>{t((t=>t.filter((t=>t!==e))))}}]}();function n(e){return function(n){Vb+=1;const r=u().createRef();let i;const s=u().createElement(jb,{key:`semi-modal-${Vb}`,config:e(n),ref:r,afterClose:()=>{i()}});return i=t(s),{destroy:()=>{r.current&&r.current.destroy()},update:e=>{r.current&&r.current.update(e)}}}}return[{info:n(Db),success:n(Ab),error:n(Nb),warning:n(Rb),confirm:n(Mb)},u().createElement(u().Fragment,null,e)]},zb.info=function(e){return Ib(Db(e))},zb.success=function(e){return Ib(Ab(e))},zb.error=function(e){return Ib(Nb(e))},zb.warning=function(e){return Ib(Rb(e))},zb.confirm=function(e){return Ib(Mb(e))},zb.destroyAll=function(){for(let e=0,t=Bb.length;e<t;e++){const t=Bb[e];t&&t()}Bb=[]};const Hb=zb,Kb=Hb,Ub={PREFIX:`${E}-dropdown`,SELECTED:`${E}-dropdown-item-selected`,DISABLED:`${E}-dropdown-item-disabled`},Wb={POSITION_SET:Oe.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},Gb=4,qb=2;class Yb extends c{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&"click"===t){const e=this._adapter.getPopupId();this.setFocusToFirstMenuItem(e)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter((e=>"false"===e.ariaDisabled)):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);var n;t&&((n=t).length>0&&Ee(n,n[0]))}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);var n;t&&((n=t).length>0&&Ee(n,n[n.length-1]))}handleKeyDown(e){var t,n;const r=null===(n=null===(t=e.target)||void 0===t?void 0:t.attributes["data-popupid"])||void 0===n?void 0:n.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(r),i&&Ce(e);break;case"ArrowUp":this.setFocusToLastMenuItem(r),i&&Ce(e)}}}class Xb extends c{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){if("custom"===this._adapter.getContext("trigger")){const t=e&&function(e,t){for(let n=0;n<e.length;n++){const r=e[n].attributes["data-popupid"];if(r&&r.value===t)return e[n]}return null}(document.querySelectorAll("[data-popupid]"),e.id);t.focus()}}setFocusByFirstCharacter(e,t){const n=function(e,t,n,r){let i,s;return!e||!n||!r||r.length>1?-1:(r=r.toLowerCase(),i=e.indexOf(t)+1,i>=e.length&&(i=0),s=n.indexOf(r,i),-1===s&&(s=n.indexOf(r,0)),s>=0?s:-1)}(this.menuItemNodes,e,this.firstChars,t);n>=0&&Ee(this.menuItemNodes,this.menuItemNodes[n])}onMenuKeydown(e){const t=function(e,t){if(!e)return null;for(;e.parentElement&&a()(e.parentElement,"attributes.role.value","")!==t;)e=e.parentElement;return e.parentElement}(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter((e=>"true"!==e.ariaDisabled))),0===this.firstChars.length&&this.menuItemNodes.forEach((e=>{var t;this.firstChars.push(null===(t=e.textContent.trim()[0])||void 0===t?void 0:t.toLowerCase())}));const n=this.menuItemNodes.find((e=>0===e.tabIndex));switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":!function(e,t){let n,r;e.length>0&&(t===e[0]?n=e[e.length-1]:(r=e.indexOf(t),n=e[r-1]),Ee(e,n))}(this.menuItemNodes,n),Ce(e);break;case"ArrowDown":!function(e,t){let n,r;e.length>0&&(t===e[e.length-1]?n=e[0]:(r=e.indexOf(t),n=e[r+1]),Ee(e,n))}(this.menuItemNodes,n),Ce(e);break;default:(function(e){return 1===e.length&&e.match(/\S/)})(e.key)&&this.setFocusByFirstCharacter(n,e.key)}}}const Zb=u().createContext({level:0});var Jb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Qb=Ub.PREFIX;class ex extends f{constructor(e){super(e),this.foundation=new Xb(this.adapter)}get adapter(){return Object.assign({},super.adapter)}render(){const e=this.props,{children:t,className:n,style:r}=e,i=Jb(e,["children","className","style"]);return u().createElement("ul",Object.assign({role:"menu","aria-orientation":"vertical"},i,{className:x()(`${Qb}-menu`,n),style:r,onKeyDown:e=>this.foundation.onMenuKeydown(e)}),t)}}ex.propTypes={children:C().node,className:C().string,style:C().object},ex.contextType=Zb;const tx=ex,nx=Ub.PREFIX;class rx extends f{render(){const{children:e,disabled:t,className:n,forwardRef:r,style:i,type:s,active:a,icon:o,onKeyDown:l,showTick:c,hover:h}=this.props,{showTick:d}=this.context,p=null!=d?d:c,f=x()(n,{[`${nx}-item`]:!0,[`${nx}-item-disabled`]:t,[`${nx}-item-hover`]:h,[`${nx}-item-withTick`]:p,[`${nx}-item-${s}`]:s,[`${nx}-item-active`]:a}),m={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach((e=>{1!==this.context.level&&"onClick"===e?m.onMouseDown=t=>{var n,r;0===t.button&&(null===(r=(n=this.props)[e])||void 0===r||r.call(n,t))}:m[e]=this.props[e]}));let g=null;switch(!0){case p&&a:g=u().createElement(Gt,null);break;case p&&!a:g=u().createElement(Gt,{style:{color:"transparent"}});break;default:g=null}let y=null;return o&&(y=u().createElement("div",{className:`${nx}-item-icon`},o)),u().createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},m,{onKeyDown:l,ref:e=>r(e),className:f,style:i},this.getDataAttr(this.props)),g,y,e)}}rx.propTypes={children:C().oneOfType([C().string,C().node]),name:C().string,disabled:C().bool,selected:C().bool,onClick:C().func,onMouseEnter:C().func,onMouseLeave:C().func,onContextMenu:C().func,className:C().string,style:C().object,forwardRef:C().func,type:C().oneOf(Wb.ITEM_TYPE),active:C().bool,icon:C().node},rx.contextType=Zb,rx.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:i(),onMouseLeave:i(),forwardRef:i()},rx.elementType="Dropdown.Item";const ix=rx,sx=Ub.PREFIX,ax=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{style:t,className:n}=e;return u().createElement("div",{className:x()(`${sx}-divider`,n),style:t})};ax.propTypes={style:C().object,className:C().string};const ox=ax,lx=Ub.PREFIX;class cx extends h.PureComponent{render(){const{className:e,style:t,children:n}=this.props,{showTick:r}=this.context,i=x()({[`${lx}-title`]:!0,[`${lx}-title-withTick`]:r},e);return u().createElement("div",{className:i,style:t},n)}}cx.propTypes={children:C().node,className:C().string,style:C().object},cx.contextType=Zb;const hx=cx;__webpack_require__("J057");var ux=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const dx=Wb.POSITION_SET,px=Wb.TRIGGER_SET;class fx extends f{constructor(e){super(e),this.handleVisibleChange=e=>this.foundation.handleVisibleChange(e),this.state={popVisible:e.visible},this.foundation=new Yb(this.adapter),this.tooltipRef=u().createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:n,style:r,showTick:i,prefixCls:s,trigger:a}=this.props,o=x()(s,n),{level:l=0}=this.context,c={showTick:i,level:l+1,trigger:a};let h=null;return u().isValidElement(e)?h=e:Array.isArray(t)&&(h=this.renderMenu()),u().createElement(Zb.Provider,{value:c},u().createElement("div",{className:o,style:r},u().createElement("div",{className:`${s}-content`,"x-semi-prop":"render"},h)))}renderMenu(){const{menu:e}=this.props,t=e.map(((e,t)=>{switch(e.node){case"title":{const{name:n,node:r}=e,i=ux(e,["name","node"]);return u().createElement(fx.Title,Object.assign({},i,{key:r+n+t}),n)}case"item":{const{node:n,name:r}=e,i=ux(e,["node","name"]);return u().createElement(fx.Item,Object.assign({},i,{key:n+r+t}),r)}case"divider":return u().createElement(fx.Divider,{key:e.node+t});default:return null}}));return u().createElement(fx.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:n,showTick:r,prefixCls:i}=this.props,s=x()(i,t),{level:a=0}=this.context,o={showTick:r,level:a+1};return u().createElement(Zb.Provider,{value:o},u().createElement("div",{className:s,style:n},u().createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:n,trigger:r,onVisibleChange:i,zIndex:s,className:o,motion:l,margin:c,style:h,prefixCls:d}=e,p=ux(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:f}=this.props;const{level:m}=this.context,{popVisible:g}=this.state,y=this.renderContent();return m>0?f="number"==typeof f?f:qb:null==f&&(f=Gb),u().createElement(ft,Object.assign({zIndex:s,motion:l,margin:c,content:y,className:o,prefixCls:d,spacing:f,position:n,trigger:r,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},p),u().isValidElement(t)?u().cloneElement(t,{className:x()(a()(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:e=>{this.foundation.handleKeyDown(e);const n=a()(t,"props.onKeyDown");n&&n(e)}}):t)}}fx.Menu=tx,fx.Item=ix,fx.Divider=ox,fx.Title=hx,fx.contextType=Zb,fx.propTypes={children:C().node,contentClassName:C().oneOfType([C().string,C().array]),className:C().string,getPopupContainer:C().func,margin:C().oneOfType([C().number,C().object]),mouseEnterDelay:C().number,mouseLeaveDelay:C().number,menu:C().array,motion:C().oneOfType([C().bool,C().func,C().object]),onVisibleChange:C().func,prefixCls:C().string,position:C().oneOf(dx),rePosKey:C().oneOfType([C().string,C().number]),render:C().node,spacing:C().oneOfType([C().number,C().object]),showTick:C().bool,style:C().object,trigger:C().oneOf(px),visible:C().bool,zIndex:C().number},fx.__SemiComponentName__="Dropdown",fx.defaultProps=Xe(fx.__SemiComponentName__,{onVisibleChange:i(),prefixCls:Ub.PREFIX,zIndex:Te.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Wb.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:i()});const mx=fx,gx={PREFIX:`${E}`};__webpack_require__("5ztO");var yx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const vx=["xxl","xl","lg","md","sm","xs"],bx=u().createContext(null),xx={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};class wx extends u().Component{constructor(){super(...arguments),this.state={screens:{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}},this.unRegisters=[]}componentDidMount(){this.unRegisters=Object.keys(xx).map((e=>Ke(xx[e],{match:()=>{"object"==typeof this.props.gutter&&this.setState((t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})})))},unmatch:()=>{"object"==typeof this.props.gutter&&this.setState((t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})})))}})))}componentWillUnmount(){this.unRegisters.forEach((e=>e()))}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach(((e,n)=>{if("object"==typeof e)for(let r=0;r<vx.length;r++){const i=vx[r];if(this.state.screens[i]&&void 0!==e[i]){t[n]=e[i];break}}else t[n]=e||0})),t}render(){const e=this.props,{prefixCls:t,type:n,justify:r,align:i,className:s,style:a,children:o}=e,l=yx(e,["prefixCls","type","justify","align","className","style","children"]),c=this.getGutter(),h=`${t}-row`,d=x()({[h]:"flex"!==n,[`${h}-${n}`]:n,[`${h}-${n}-${r}`]:n&&r,[`${h}-${n}-${i}`]:n&&i},s),p=Object.assign(Object.assign(Object.assign({},c[0]>0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),a),f=Object.assign({},l);return delete f.gutter,u().createElement(bx.Provider,{value:{gutters:c}},u().createElement("div",Object.assign({},f,{className:d,style:p,"x-semi-prop":"children"}),o))}}wx.propTypes={type:C().oneOf(["flex"]),align:C().oneOf(["top","middle","bottom"]),justify:C().oneOf(["start","end","center","space-around","space-between"]),className:C().string,style:C().object,children:C().node,gutter:C().oneOfType([C().object,C().number,C().array]),prefixCls:C().string},wx.defaultProps={prefixCls:gx.PREFIX},wx.RowContext={gutters:C().any};const Cx=wx;var Ex=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Sx=C().oneOfType([C().object,C().number]);class _x extends u().Component{render(){const{props:e}=this,{prefixCls:t,span:n,order:r,offset:i,push:s,pull:a,className:o,children:l}=e,c=Ex(e,["prefixCls","span","order","offset","push","pull","className","children"]);let h={};const d=`${t}-col`;["xs","sm","md","lg","xl","xxl"].forEach((t=>{let n={};"number"==typeof e[t]?n.span=e[t]:"object"==typeof e[t]&&(n=e[t]||{}),delete c[t],h=Object.assign(Object.assign({},h),{[`${d}-${t}-${n.span}`]:void 0!==n.span,[`${d}-${t}-order-${n.order}`]:n.order||0===n.order,[`${d}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${d}-${t}-push-${n.push}`]:n.push||0===n.push,[`${d}-${t}-pull-${n.pull}`]:n.pull||0===n.pull})}));const p=x()(d,{[`${d}-${n}`]:void 0!==n,[`${d}-order-${r}`]:r,[`${d}-offset-${i}`]:i,[`${d}-push-${s}`]:s,[`${d}-pull-${a}`]:a},o,h);let f,{style:m}=c;try{f=this.context.gutters}catch(e){throw new Error("please make sure <Col> inside <Row>")}return m=Object.assign(Object.assign(Object.assign({},f[0]>0?{paddingLeft:f[0]/2,paddingRight:f[0]/2}:{}),f[1]>0?{paddingTop:f[1]/2,paddingBottom:f[1]/2}:{}),m),u().createElement("div",Object.assign({},c,{style:m,className:p,"x-semi-prop":"children"}),l)}}_x.contextType=bx,_x.propTypes={span:C().number,order:C().number,offset:C().number,push:C().number,pull:C().number,className:C().string,children:C().node,xs:Sx,sm:Sx,md:Sx,lg:Sx,xl:Sx,xxl:Sx,prefixCls:C().string},_x.defaultProps={prefixCls:gx.PREFIX};const kx=_x,Px={PREFIX:`${E}-layout`};__webpack_require__("C+lc");const Ox=u().createContext({siderHook:{addSider:yt,removeSider:yt}});var Tx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ix={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},Dx=(()=>{let e=0;return()=>(e+=1,`${Px.PREFIX}-sider-${e}`)})(),Ax=["xs","sm","md","lg","xl","xxl"];class Rx extends u().PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=Dx()}componentDidMount(){const{breakpoint:e}=this.props,t=Object.keys(Ix).filter((t=>e&&-1!==e.indexOf(t))).map((e=>Ke(Ix[e],{match:()=>{this.responsiveHandler(e,!0)},unmatch:()=>{this.responsiveHandler(e,!1)}})));this.unRegisters=t,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach((e=>e())),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:n}=this.props;n&&n(e,t)}render(){const e=this.props,{prefixCls:t,className:n,children:r,style:i}=e,s=Tx(e,["prefixCls","className","children","style"]),a=x()(n,{[`${t}-sider`]:!0});return u().createElement("aside",Object.assign({className:a,"aria-label":this.props["aria-label"],style:i},d(s)),u().createElement("div",{className:`${t}-sider-children`},r))}}Rx.propTypes={prefixCls:C().string,style:C().object,className:C().string,breakpoint:C().arrayOf(C().oneOf(Ax)),onBreakpoint:C().func,"aria-label":C().string,role:C().string},Rx.defaultProps={prefixCls:Px.PREFIX},Rx.contextType=Ox,Rx.elementType="Layout.Sider";const Nx=Rx;var Mx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Fx={Header:"header",Footer:"footer",Content:"main",Layout:"section"};function Lx(e){const t=Fx[e],n=e.toLowerCase();return e=>class extends u().PureComponent{render(){return u().createElement(e,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:n,tagName:t},this.props))}}}class jx extends u().PureComponent{render(){const e=this.props,{prefixCls:t,type:n,className:r,children:i,tagName:s}=e,a=Mx(e,["prefixCls","type","className","children","tagName"]),o=x()(r,`${t}-${n}`);return u().createElement(s,Object.assign({className:o},a),i)}}jx.propTypes={prefixCls:C().string,style:C().object,className:C().string},jx.defaultProps={prefixCls:Px.PREFIX};const Vx=Lx("Header")(jx),$x=Lx("Footer")(jx),Bx=Lx("Content")(jx);class zx extends u().Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState((t=>({siders:[...t.siders,e]})))},removeSider:e=>{this.setState((t=>({siders:t.siders.filter((t=>t!==e))})))}}}render(){const e=this.props,{prefixCls:t,className:n,children:r,hasSider:i,tagName:s}=e,a=Mx(e,["prefixCls","className","children","hasSider","tagName"]),{siders:o}=this.state,l=x()(n,t,{[`${t}-has-sider`]:"boolean"==typeof i&&i||o.length>0||u().Children.toArray(r).some((e=>u().isValidElement(e)&&e.type&&"Layout.Sider"===e.type.elementType))}),c=s;return u().createElement(Ox.Provider,{value:{siderHook:this.getSiderHook()}},u().createElement(c,Object.assign({className:l},a),r))}}zx.propTypes={prefixCls:C().string,style:C().object,className:C().string},zx.defaultProps={prefixCls:Px.PREFIX,tagName:"section"},zx.Header=Vx,zx.Footer=$x,zx.Content=Bx,zx.Sider=Nx;const Hx={PREFIX:`${E}-list`},Kx=["large","small","default"],Ux=["vertical","horizontal"],Wx=["flex-start","flex-end","center","baseline","stretch"];__webpack_require__("qgWt");const Gx=u().createContext(null);var qx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Yx=Hx.PREFIX;class Xx extends h.PureComponent{wrapWithGrid(e){const{grid:t}=this.context,{gutter:n,justify:r,type:i,align:s}=t,a=qx(t,["gutter","justify","type","align"]);return u().createElement(kx,Object.assign({},a),e)}render(){const e=this.props,{header:t,main:n,className:r,style:i,extra:s,children:a,align:o,onClick:l,onRightClick:c,onMouseEnter:h,onMouseLeave:p}=e,f=qx(e,["header","main","className","style","extra","children","align","onClick","onRightClick","onMouseEnter","onMouseLeave"]),{onRightClick:m,onClick:g,grid:y}=this.context,v=c||m,b=l||g,w=x()(`${Yx}-item`,r),C=x()(`${Yx}-item-body`,{[`${Yx}-item-body-${o}`]:o});let E;(t||n)&&(E=u().createElement("div",{className:C},t?u().createElement("div",{className:`${Yx}-item-body-header`},t):null,n?u().createElement("div",{className:`${Yx}-item-body-main`},n):null));let S=u().createElement("li",Object.assign({className:w,style:i,onClick:b,onContextMenu:v,onMouseEnter:h,onMouseLeave:p},d(f)),E||null,a,s?u().createElement("div",{className:`${Yx}-item-extra`},s):null);return this.context&&y&&(S=this.wrapWithGrid(S)),S}}Xx.contextType=Gx,Xx.propTypes={extra:C().node,header:C().node,main:C().node,align:C().oneOf(Wx),className:C().string,children:C().node,style:C().object,onClick:C().func,onRightClick:C().func,onMouseEnter:C().func,onMouseLeave:C().func},Xx.defaultProps={align:"flex-start",onMouseEnter:i(),onMouseLeave:i()};var Zx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Jx=Hx.PREFIX;class Qx extends f{constructor(){super(...arguments),this.renderEmpty=()=>{const{emptyContent:e}=this.props;return e?u().createElement("div",{className:`${Hx.PREFIX}-empty`,"x-semi-prop":"emptyContent"},e):u().createElement(Bt,{componentName:"List"},(e=>u().createElement("div",{className:`${Hx.PREFIX}-empty`},e.emptyText)))}}wrapChildren(e,t){const{grid:n}=this.props;if(n){const r={};return["align","gutter","justify","type"].forEach((e=>{e in n&&(r[e]=n[e])})),u().createElement(Cx,Object.assign({type:"flex"},r),e||null,t)}return u().createElement("ul",{className:`${Jx}-items`},e||null,t)}render(){const e=this.props,{style:t,className:n,header:r,loading:i,onRightClick:s,onClick:a,footer:o,layout:l,grid:c,size:h,split:d,loadMore:p,bordered:f,dataSource:m,renderItem:g,children:y}=e,v=Zx(e,["style","className","header","loading","onRightClick","onClick","footer","layout","grid","size","split","loadMore","bordered","dataSource","renderItem","children"]),b=x()(Jx,n,{[`${Jx}-flex`]:"horizontal"===l,[`${Jx}-${h}`]:h,[`${Jx}-grid`]:c,[`${Jx}-split`]:d,[`${Jx}-bordered`]:f});let w;if(m&&m.length){w=[];const e=g?m.map(((e,t)=>g(e,t))):[];u().Children.forEach(e,((e,t)=>{const n=e.key||`list-item-${t}`;w.push(u().cloneElement(e,{key:n}))}))}else y||i||(w=this.renderEmpty());return u().createElement("div",Object.assign({className:b,style:t},this.getDataAttr(v)),r?u().createElement("div",{className:`${Hx.PREFIX}-header`,"x-semi-prop":"header"},r):null,u().createElement(Gx.Provider,{value:{grid:c,onRightClick:s,onClick:a}},u().createElement(tr,{spinning:i,size:"large"},this.wrapChildren(w,y))),o?u().createElement("div",{className:`${Hx.PREFIX}-footer`,"x-semi-prop":"footer"},o):null,p||null)}}Qx.Item=Xx,Qx.propTypes={style:C().object,className:C().string,bordered:C().bool,footer:C().node,header:C().node,layout:C().oneOf(Ux),size:C().oneOf(Kx),split:C().bool,emptyContent:C().node,dataSource:C().array,renderItem:C().func,grid:C().object,loading:C().bool,loadMore:C().node,onRightClick:C().func,onClick:C().func},Qx.defaultProps={bordered:!1,split:!0,loading:!1,layout:"vertical",size:"default",onRightClick:i(),onClick:i()};const ew=Qx,tw=Wt,nw={PREFIX:`${E}-form`},rw={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},iw=nw.PREFIX;class sw extends h.PureComponent{render(){const{children:e,required:t,text:n,disabled:r,name:i,width:s,align:a,style:o,className:l,extra:c,id:h,optional:d}=this.props,p=x()(l,{[`${iw}-field-label`]:!0,[`${iw}-field-label-left`]:"left"===a,[`${iw}-field-label-right`]:"right"===a,[`${iw}-field-label-required`]:t,[`${iw}-field-label-disabled`]:r,[`${iw}-field-label-with-extra`]:c}),f=o||{};s&&(f.width=s);const m=u().createElement(Bt,{componentName:"Form"},(e=>u().createElement("span",{className:`${iw}-field-label-optional-text`},e.optional))),g=u().createElement("div",{className:`${iw}-field-label-text`,"x-semi-prop":"label"},void 0!==n?n:e,d?m:null),y=u().createElement(u().Fragment,null,g,u().createElement("div",{className:`${iw}-field-label-extra`},c));return u().createElement("label",{className:p,htmlFor:i,style:f,id:h},c?y:g)}}sw.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1},sw.propTypes={id:C().string,children:C().node,required:C().bool,text:C().node,disabled:C().bool,name:C().string,align:C().string,width:C().oneOfType([C().number,C().string]),style:C().object,className:C().string,extra:C().node,optional:C().bool};var aw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const ow=nr.PREFIX,lw=rr.SIZE;class cw extends f{renderGroupWithLabel(e){const t=this.props,{size:n,className:r,label:i,labelPosition:s}=t,a=(aw(t,["size","className","label","labelPosition"]),x()({[`${ow}-group-wrapper`]:!0,[`${ow}-group-wrapper-with-top-label`]:"top"===s,[`${ow}-group-wrapper-with-left-label`]:"left"===s})),o=x()(`${ow}-group`,r,{[`${ow}-${n}`]:"default"!==n}),l="input-group";return u().createElement("div",{className:a},i&&i.text?u().createElement(sw,Object.assign({name:l},i)):null,u().createElement("span",{role:"group","aria-disabled":this.props.disabled,id:i&&i.name||l,className:o,style:this.props.style,onFocus:this.props.onFocus,onBlur:this.props.onBlur},e))}render(){const e=this.props,{size:t,style:n,className:r,children:i,label:s,onBlur:o,onFocus:l,disabled:c}=e,h=aw(e,["size","style","className","children","label","onBlur","onFocus","disabled"]),d=x()(`${ow}-group`,{[`${ow}-${t}`]:"default"!==t},r);let p;return i&&(p=(Array.isArray(i)?i:[i]).map(((e,n)=>{if(e){const{onBlur:r,onFocus:i,disabled:s}=e.props,d=J()(r)&&"noop"!==a()(r,"name")?r:o,p=J()(i)&&"noop"!==a()(i,"name")?i:l,f="boolean"==typeof s?s:c;return u().cloneElement(e,Object.assign(Object.assign({key:n},h),{size:t,onBlur:d,onFocus:p,disabled:f}))}return null}))),s&&s.text?this.renderGroupWithLabel(p):u().createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:n,onFocus:this.props.onFocus,onBlur:this.props.onBlur},p)}}cw.propTypes={className:C().string,children:C().node,size:C().oneOf(lw),style:C().object,onBlur:C().func,onFocus:C().func,label:C().object,labelPosition:C().string},cw.defaultProps={size:"default",className:"",onBlur:yt,onFocus:yt};let hw=null;const uw={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},dw=e=>{Object.keys(uw).forEach((t=>{e.style.setProperty(t,uw[t],"important")}))},pw=(e,t)=>{const n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};const fw=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],mw=e=>{const t=window.getComputedStyle(e);if(null===t)return null;const n=Pl()(t,fw),{boxSizing:r}=n;if(""===r)return null;return{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}};class gw extends c{static get textAreaDefaultAdapter(){return{notifyChange:i(),setValue:i(),toggleFocusing:i(),toggleHovering:i(),notifyFocus:i(),notifyBlur:i(),notifyKeyDown:i(),notifyEnterPress:i()}}constructor(e){super(Object.assign(Object.assign({},gw.textAreaDefaultAdapter),e)),this.resizeTextarea=()=>{var e;const{height:t}=this.getStates(),{rows:n,autosize:r}=this.getProps(),i=this._adapter.getRef(),s=mw(i);if(!s)return;const[a,o]=null!==r&&"object"==typeof r?[null!==(e=null==r?void 0:r.minRows)&&void 0!==e?e:n,null==r?void 0:r.maxRows]:[n],l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0;hw||(hw=document.createElement("textarea"),hw.setAttribute("tab-index","-1"),hw.setAttribute("aria-hidden","true"),dw(hw)),null===hw.parentNode&&document.body.appendChild(hw);const{paddingSize:i,borderSize:s,sizingStyle:a}=e,{boxSizing:o}=a;Object.keys(a).forEach((e=>{hw.style[e]=a[e]})),dw(hw),hw.value=t;let l=pw(hw,e);hw.value="x";const c=pw(hw,e)-i-s;let h=c*n;"border-box"===o&&(h=h+i+s),l=Math.max(h,l);let u=c*r;return"border-box"===o&&(u=u+i+s),l=Math.min(u,l),l}(s,i.value||i.placeholder||"x",a,o);return t!==l?(this._adapter.notifyHeightUpdate(l),void(i.style.height=`${l}px`)):void 0}}destroy(){}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:n,minLength:r,getValueLength:i}=this._adapter.getProps();let s=e;n&&J()(i)&&(s=this.handleVisibleMaxLength(e)),r&&J()(i)&&this.handleVisibleMinLength(s),this._isControlledComponent()||this._adapter.setValue(s),this._adapter.notifyChange(s,t)}handleVisibleMinLength(e){const{minLength:t,getValueLength:n}=this._adapter.getProps(),{minLength:r}=this._adapter.getStates();if(Kn()(t)&&t>=0&&J()(n)&&ne()(e)){const i=n(e);if(i<t){const n=e.length+(t-i);n!==r&&this._adapter.setMinLength(n)}else r!==t&&this._adapter.setMinLength(t)}}handleVisibleMaxLength(e){const{maxLength:t,getValueLength:n}=this._adapter.getProps();if(Kn()(t)&&t>=0&&ne()(e)){if(J()(n)){if(n(e)>t){console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit");return this.handleTruncateValue(e,t)}}else if(e.length>t)return console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),e.slice(0,t);return e}}handleTruncateValue(e,t){const{getValueLength:n}=this._adapter.getProps();if(J()(n)){let r="";for(let i=1,s=e.length;i<=s;i++){const s=e.slice(0,i);if(n(s)>t)return r;r=s}return r}return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates(),{maxLength:n}=this.getProps();let r=t;n&&(r=this.handleVisibleMaxLength(t),r!==t&&(this._isControlledComponent()||this._adapter.setValue(r),this._adapter.notifyChange(r,e))),this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(r,e)}handleKeyDown(e){const{disabledEnterStartNewLine:t}=this.getProps();t&&"Enter"===e.key&&!e.shiftKey&&e.preventDefault(),this._adapter.notifyKeyDown(e),13===e.keyCode&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:n}=this._adapter.getStates(),{showClear:r,disabled:i,readonly:s}=this._adapter.getProps();return e&&r&&!i&&(t||n)&&!s}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}__webpack_require__("Lmqm");var yw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const vw=nr.PREFIX;class bw extends f{constructor(e){super(e),this.handleClear=e=>{this.foundation.handleClear(e)},this.setRef=e=>{this.libRef.current=e;const{forwardRef:t}=this.props;"function"==typeof t?t(e):t&&"object"==typeof t&&(t.current=e)};const t="value"in e?e.value:e.defaultValue;this.state={value:t,isFocus:!1,isHover:!1,height:0,minLength:e.minLength,cachedValue:e.value},this.focusing=!1,this.foundation=new gw(this.adapter),this.libRef=u().createRef(),this.throttledResizeTextarea=g()(this.foundation.resizeTextarea,10)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},(()=>{this.props.autosize&&this.foundation.resizeTextarea()})),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const n={};return e.value!==t.cachedValue&&(n.value=e.value,n.cachedValue=e.value),n}componentWillUnmount(){var e,t;this.throttledResizeTextarea&&(null===(t=null===(e=this.throttledResizeTextarea)||void 0===e?void 0:e.cancel)||void 0===t||t.call(e),this.throttledResizeTextarea=null)}componentDidUpdate(e,t){this.props.value===e.value&&this.props.placeholder===e.placeholder||!this.props.autosize||this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),n=x()(`${vw}-clearbtn`,{[`${vw}-clearbtn-hidden`]:!t});return e?u().createElement("div",{className:n,onClick:this.handleClear},u().createElement(ar,null)):null}renderCounter(){let e,t,n,r;const{showCounter:i,maxCount:s,getValueLength:a}=this.props;if(i||s){const{value:i}=this.state;t=i?J()(a)?a(i):i.length:0,n=s||null,r=x()(`${vw}-textarea-counter`,{[`${vw}-textarea-counter-exceed`]:t>n}),e=u().createElement("div",{className:r},t,n?"/":null,n)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:n,onEnterPress:r,onResize:i,disabled:s,readonly:a,className:o,showCounter:l,validateStatus:c,maxCount:h,defaultValue:d,style:p,forwardRef:f,getValueLength:m,maxLength:g,minLength:y,showClear:v,borderless:b,autoFocus:w}=e,C=yw(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:E,value:S,minLength:_}=this.state,k=x()(o,`${vw}-textarea-wrapper`,{[`${vw}-textarea-borderless`]:b,[`${vw}-textarea-wrapper-disabled`]:s,[`${vw}-textarea-wrapper-readonly`]:a,[`${vw}-textarea-wrapper-${c}`]:Boolean(c),[`${vw}-textarea-wrapper-focus`]:E}),P=x()(`${vw}-textarea`,{[`${vw}-textarea-disabled`]:s,[`${vw}-textarea-readonly`]:a,[`${vw}-textarea-autosize`]:z()(t)?le()(null==t?void 0:t.maxRows):t,[`${vw}-textarea-showClear`]:v}),O=Object.assign(Object.assign({},ae()(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear","disabledEnterStartNewLine")),{autoFocus:w||this.props.autofocus,className:P,disabled:s,readOnly:a,placeholder:n||null,onChange:e=>this.foundation.handleChange(e.target.value,e),onFocus:e=>this.foundation.handleFocus(e),onBlur:e=>this.foundation.handleBlur(e.nativeEvent),onKeyDown:e=>this.foundation.handleKeyDown(e),value:null==S?"":S});return J()(m)||(O.maxLength=g),_&&(O.minLength=_),u().createElement("div",{className:k,style:p,onMouseEnter:e=>this.foundation.handleMouseEnter(e),onMouseLeave:e=>this.foundation.handleMouseLeave(e)},t?u().createElement(bn,{onResize:this.throttledResizeTextarea},u().createElement("textarea",Object.assign({},O,{ref:this.setRef}))):u().createElement("textarea",Object.assign({},O,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}bw.propTypes={autosize:C().oneOfType([C().bool,C().object]),borderless:C().bool,placeholder:C().string,value:C().string,rows:C().number,cols:C().number,maxCount:C().number,onEnterPress:C().func,validateStatus:C().string,className:C().string,style:C().object,showClear:C().bool,onClear:C().func,onResize:C().func,getValueLength:C().func,disabledEnterStartNewLine:C().bool},bw.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:i(),onChange:i(),onBlur:i(),onFocus:i(),onKeyDown:i(),onResize:i(),onClear:i()};const xw=u().forwardRef(((e,t)=>u().createElement(bw,Object.assign({},e,{forwardRef:t})))),ww=xw;var Cw=__webpack_require__("DlqW"),Ew=__webpack_require__.n(Cw);const Sw=(e,t)=>{const{isNaN:n}=Number;return n(e)&&n(t)};var _w=__webpack_require__("dw5g"),kw=__webpack_require__.n(_w),Pw=__webpack_require__("nvU9"),Ow=__webpack_require__.n(Pw);const Tw=Object.assign({},nr),Iw=Object.assign(Object.assign({},{}),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),Dw=Object.assign({},rr);function Aw(e,t){return function(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=Math.pow(10,Math.max(n,r));return(e*i+t*i)/i}(e,-t)}const Rw=class extends c{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e,i=e,s=!0;const a=this.isControlled();"number"!=typeof e&&(i=this.doParse(e,!1),s=!isNaN(i)),s&&(r=i,a||this._adapter.setNumber(i)),a||this._adapter.setValue(e,n),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,(()=>{this._adapter.setClickUpOrDown(!0)})),this.notifyChange(r,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Iw.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval((()=>{"function"==typeof e&&this._intervalHasRegistered&&e()}),t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Iw.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout((()=>{this._timerHasRegistered&&"function"==typeof e&&e()}),t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value");this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const n=this.doParse(e,!0,!0,!0),r=this.doParse(e,!1,!1,!1),i=this.afterParser(e);let s;this._adapter.recordCursorPosition();let a=r,o=e;if(""===e)this.isControlled()||(a=null);else if(this.isValidNumber(r)&&this.isValidNumber(n))s=r,o=this.doFormat(r,!1);else{if("number"!=typeof r||isNaN(r))o=this.doFormat(i,!1);else{o=this.doFormat(r,!1);const e=i.lastIndexOf("."),t=i.length-1-e,n=this._getPrecLen(r);if(n){if(n<t)for(let e=0;e<t-n;e++)o+="0"}else{o+=e>-1?i.slice(e):""}a=r}s=i}this.isControlled()||null!==a&&("number"!=typeof a||isNaN(a))||this._adapter.setNumber(a),this._adapter.setValue(this.isControlled()?o:this.doFormat(i,!1),(()=>{this._adapter.restoreCursor()})),this.notifyChange(s,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Zt.UP||t===Zt.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const n=t===Zt.UP?this.add(null,e):this.minus(null,e);this._doInput(n,e,(()=>{this._adapter.restoreCursor()})),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=kw()(this.getState("value"));let n=this.getState("number");if(null!=n||null!=t&&""!==t){const r=this.doParse(t,!1,!0,!0);let i,s,a=!1,o=!1;this.isValidNumber(r)&&n!==r&&(i=r,this.isControlled()||(n=i),a=!0);const l=this.doFormat(n,!0);if(l!==t&&(s=l,o=!0),o||a){const t=null!=s?s:i;null!=s&&this._adapter.setValue(s),null!=i&&(this._isControlledComponent("value")||this._adapter.setNumber(i)),this.notifyChange(t,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();this._isMouseButtonLeft(e)&&!t&&(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer((()=>{this._registerInterval((()=>{this.upClick(e)}))})))}handleDownClick(e){const{readonly:t}=this.getProps();this._isMouseButtonLeft(e)&&!t&&(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer((()=>{this._registerInterval((()=>{this.downClick(e)}))})))}_isMouseButtonLeft(e){return a()(e,"button")===Iw.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),n=this._adapter.getProp("innerButtons");(t||n)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",(()=>{this.handleMouseUp(e)}))}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),n=this._isControlledComponent("value")?t:e,r=this.doParse(kw()(n),!1,!0,!0);let i=null;"number"!=typeof r||isNaN(r)||(i=r);const s="number"==typeof i?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(s),ne()(s)&&s!==String(null!=n?n:"")&&this.notifyChange(s,null)}add(e,t){const n=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=null==e?n:Number(e);const r=Math.abs(Ow()(e)),i=this.getState("number");let s=this.toNumber(i)||0;const a=this.getProp("min"),o=this.getProp("max"),l=this._getPrecLen(a),c=this._getPrecLen(o),h=this._getPrecLen(s),u=this._getPrecLen(e),d=Math.pow(10,Math.max(l,c,h,u));return e<0?Math.abs(Aw(a,s))>=r&&(s=(s*d+e*d)/d):e>0&&Math.abs(Aw(o,s))>=r&&(s=(s*d+e*d)/d),"number"==typeof a&&a>s&&(s=a),"number"==typeof o&&o<s&&(s=o),this.doFormat(s,!0)}minus(e,t){const n=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");return e=null==e?n:Number(e),this.add(-e,t)}_getPrecLen(e){"string"!=typeof e&&(e=String(Math.abs(Number(e||""))));const t=e.indexOf(".")+1;return t?e.length-t:0}_adjustPrec(e){const t=this.getProp("precision");return"number"!=typeof t||""===e||null===e||Number.isNaN(Number(e))||(e=Number(e).toFixed(t)),kw()(e)}doFormat(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=this.getProp("formatter");return e=n?this._adjustPrec(t):kw()(t),"function"==typeof r&&(e=r(e)),e}fetchMinOrMax(e){const{min:t,max:n}=this.getProps();return e<t?t:e>n?n:e}doParse(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("number"==typeof e)return r&&(e=this.fetchMinOrMax(e)),n&&(e=this._adjustPrec(e)),Ow()(e);const i=this.getProp("parser");if("function"==typeof i&&(e=i(e)),t&&"string"==typeof e){const t=-1===e.indexOf(".")||e.indexOf(".")>-1&&("0"===e||e.lastIndexOf("0")<e.length-1),n=e.lastIndexOf(".")<e.length-1&&e.split("").filter((e=>"."===e)).length<2;if(!t||!n)return NaN}return n&&(e=this._adjustPrec(e)),"string"==typeof e&&e.length?r?this.fetchMinOrMax(Ow()(e)):Ow()(e):NaN}afterParser(e){const t=this.getProp("parser");return"string"==typeof e&&"function"==typeof t?kw()(t(e)):kw()(e)}toNumber(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("number"==typeof e)return e;if("string"==typeof e){const n=this.getProp("parser");"function"==typeof n&&(e=n(e)),t&&(e=this._adjustPrec(e))}return Ow()(e)}isValidNumber(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("number"==typeof e&&!isNaN(e)){const{min:n,max:r,precision:i}=this.getProps(),s=this._getPrecLen(e);if(e>=n&&e<=r&&(!t||("number"==typeof i&&s<=i||"number"!=typeof i)))return!0}return!1}isValidString(e){if("string"==typeof e&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(null==e||""===e)this._adapter.notifyChange("",t);else{const n=this.toNumber(e,!0);"number"!=typeof n||isNaN(n)?this._adapter.notifyChange(this.afterParser(e),t):(this._adapter.notifyChange(n,t),this.notifyNumberChange(n,t))}}notifyNumberChange(e,t){const{number:n}=this.getStates();this.isValidNumber(e)&&e!==n&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}};__webpack_require__("EAsp");var Nw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class Mw extends f{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setValue:(e,t)=>this.setState({value:e},t),setNumber:(e,t)=>this.setState({number:e},t),setFocusing:(e,t)=>this.setState({focusing:e},t),setHovering:e=>this.setState({hovering:e}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:e=>this.props.onBlur(e),notifyFocus:e=>this.props.onFocus(e),notifyUpClick:(e,t)=>this.props.onUpClick(e,t),notifyDownClick:(e,t)=>this.props.onDownClick(e,t),notifyKeyDown:e=>this.props.onKeyDown(e),registerGlobalEvent:(e,t)=>{e&&"function"==typeof t&&(this.adapter.unregisterGlobalEvent(e),this.adapter.setCache(e,t),document.addEventListener(e,t))},unregisterGlobalEvent:e=>{if(e){const t=this.adapter.getCache(e);document.removeEventListener(e,t),this.adapter.setCache(e,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(e){console.warn(e)}},restoreByAfter:e=>{if(ve(e))return!1;const t=this.inputNode.value,n=t.lastIndexOf(e);return-1!==n&&(n+e.length===t.length&&(this.adapter.fixCaret(n,n),!0))},restoreCursor:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.cursorAfter;return!ve(t)&&Array.prototype.some.call(t,((n,r)=>{const i=t.substring(r);return e.adapter.restoreByAfter(i)}))},fixCaret:(e,t)=>{if(void 0!==e&&void 0!==t&&this.inputNode&&this.inputNode.value)try{const n=this.inputNode.selectionStart,r=this.inputNode.selectionEnd;e===n&&t===r||this.inputNode.setSelectionRange(e,t)}catch(e){}},setClickUpOrDown:e=>{this.clickUpOrDown=e},updateStates:(e,t)=>{this.setState(e,t)}})}constructor(e){super(e),this.setInputRef=e=>{const{forwardedRef:t}=this.props;this.inputNode=e,t&&"object"==typeof t?t.current=e:"function"==typeof t&&t(e)},this.handleInputFocus=e=>this.foundation.handleInputFocus(e),this.handleInputChange=(e,t)=>this.foundation.handleInputChange(e,t),this.handleInputBlur=e=>this.foundation.handleInputBlur(e),this.handleInputKeyDown=e=>this.foundation.handleInputKeyDown(e),this.handleInputMouseEnter=e=>this.foundation.handleInputMouseEnter(e),this.handleInputMouseLeave=e=>this.foundation.handleInputMouseLeave(e),this.handleInputMouseMove=e=>this.foundation.handleInputMouseMove(e),this.handleUpClick=e=>this.foundation.handleUpClick(e),this.handleDownClick=e=>this.foundation.handleDownClick(e),this.handleMouseUp=e=>this.foundation.handleMouseUp(e),this.handleMouseLeave=e=>this.foundation.handleMouseLeave(e),this.renderButtons=()=>{const{prefixCls:e,disabled:t,innerButtons:n,max:r,min:s}=this.props,{hovering:a,focusing:o,number:l}=this.state,c=t||l===r,h=t||l===s,d=x()(`${e}-number-suffix-btns`,{[`${e}-number-suffix-btns-inner`]:n,[`${e}-number-suffix-btns-inner-hover`]:n&&a&&!o}),p=x()(`${e}-number-button`,`${e}-number-button-up`,{[`${e}-number-button-up-disabled`]:t,[`${e}-number-button-up-not-allowed`]:c}),f=x()(`${e}-number-button`,`${e}-number-button-down`,{[`${e}-number-button-down-disabled`]:t,[`${e}-number-button-down-not-allowed`]:h});return u().createElement("div",{className:d},u().createElement("span",{className:p,onMouseDown:c?i():this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},u().createElement(xi,{size:"extra-small"})),u().createElement("span",{className:f,onMouseDown:h?i():this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},u().createElement(yc,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:e,suffix:t}=this.props,{hovering:n,focusing:r}=this.state;if(e&&(n||r)){return this.renderButtons()}return t},this.state={value:"",number:null,focusing:Boolean(e.autofocus)||!1,hovering:!1},this.inputNode=null,this.foundation=new Rw(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:n}=this.props,{focusing:r}=this.state;let i;if(t!==e.value&&!Sw(t,e.value)){if(ve(t)||""===t)i="",this.foundation.updateStates({value:i,number:null});else{let e=t;"number"==typeof t&&(e=this.foundation.doFormat(t));const n=this.foundation.doParse(e,!1,!0,!0),s="number"==typeof t?t:this.foundation.doParse(e,!1,!1,!1);if(r)if(this.foundation.isValidNumber(n)&&n!==this.state.number){const e={number:n};this.clickUpOrDown&&(e.value=this.foundation.doFormat(e.number,!0),i=e.value),this.foundation.updateStates(e,(()=>this.adapter.restoreCursor()))}else Ew()(s)?this.foundation.updateStates({value:e}):(i=this.foundation.doFormat(s,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(n)?(i=this.foundation.doFormat(n),this.foundation.updateStates({number:n,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&ne()(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:n})}render(){const e=this.props,{disabled:t,className:n,prefixCls:r,min:i,max:s,step:a,shiftStep:o,precision:l,formatter:c,parser:h,forwardedRef:d,onUpClick:p,onDownClick:f,pressInterval:m,pressTimeout:g,suffix:y,size:v,hideButtons:b,innerButtons:w,style:C,onNumberChange:E,keepFocus:S,defaultValue:_}=e,k=Nw(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:P,number:O}=this.state,T=x()(n,`${r}-number`,{[`${r}-number-size-${v}`]:v}),I=this.renderButtons(),D={"aria-disabled":t,step:a};O&&(D["aria-valuenow"]=O),s!==1/0&&(D["aria-valuemax"]=s),i!==-1/0&&(D["aria-valuemin"]=i);const A=u().createElement("div",{className:T,style:C,onMouseMove:e=>this.handleInputMouseMove(e),onMouseEnter:e=>this.handleInputMouseEnter(e),onMouseLeave:e=>this.handleInputMouseLeave(e)},u().createElement(gr,Object.assign({role:"spinbutton"},D,k,{size:v,disabled:t,ref:this.setInputRef,value:P,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),b||w?null:I);return A}}Mw.propTypes={"aria-label":C().string,"aria-labelledby":C().string,"aria-invalid":C().bool,"aria-errormessage":C().string,"aria-describedby":C().string,"aria-required":C().bool,autofocus:C().bool,clearIcon:C().node,className:C().string,defaultValue:C().oneOfType([C().number,C().string]),disabled:C().bool,formatter:C().func,forwardedRef:C().any,hideButtons:C().bool,innerButtons:C().bool,insetLabel:C().node,insetLabelId:C().string,keepFocus:C().bool,max:C().number,min:C().number,parser:C().func,precision:C().number,prefixCls:C().string,pressInterval:C().number,pressTimeout:C().number,preventScroll:C().bool,shiftStep:C().number,step:C().number,style:C().object,suffix:C().any,value:C().oneOfType([C().number,C().string]),onBlur:C().func,onChange:C().func,onDownClick:C().func,onKeyDown:C().func,onNumberChange:C().func,onUpClick:C().func},Mw.defaultProps={forwardedRef:i(),innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:Tw.PREFIX,pressInterval:Iw.DEFAULT_PRESS_TIMEOUT,pressTimeout:Iw.DEFAULT_PRESS_TIMEOUT,shiftStep:Iw.DEFAULT_SHIFT_STEP,size:Dw.DEFAULT_SIZE,step:Iw.DEFAULT_STEP,onBlur:i(),onChange:i(),onDownClick:i(),onFocus:i(),onKeyDown:i(),onNumberChange:i(),onUpClick:i()};const Fw=uf(u().forwardRef((function(e,t){return u().createElement(Mw,Object.assign({},e,{forwardedRef:t}))})),Mw),Lw="horizontal",jw="vertical",Vw={PREFIX:`${E}-navigation`},$w={MODE:[jw,Lw],MODE_VERTICAL:jw,MODE_HORIZONTAL:Lw,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Bw=999,zw=0,Hw=100,Kw=0,Uw=100,Ww={open:"chevron_up",closed:"chevron_down"};class Gw{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&"object"==typeof e||(e={text:e,itemKey:e,maxHeight:Bw,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map((e=>new Gw(e))),this.toggleIcon="toggleIcon"in e&&Gw.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},Ww)):this.items=null}static isValidToggleIcon(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.open&&e.open.length&&"string"==typeof e.closed&&e.closed.length)}}class qw extends c{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=[];for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(r.length)for(const n of r)if(Array.isArray(e[n])&&e[n].length){const r=e[n][0];ve(r)||t.push(r)}return t}static buildItemKeysMap(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))qw.buildItemKeysMap(i,t,[...n],r);else{let e;if(i&&"object"==typeof i&&(e=i[r]||i.props&&i.props[r]),e)if(t[e]=[...n],Array.isArray(i.items)&&i.items.length)qw.buildItemKeysMap(i.items,t,[...n,e],r);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];qw.buildItemKeysMap(s,t,[...n,e],r)}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:n}=this.getProps();let r=n||t||[];const{itemKeysMap:i,willOpenKeys:s,formattedItems:a}=this.getCalcState(),o=this.selectLevelZeroParentKeys(i,r);if(r=r.concat(o),"constructor"===e)return{selectedKeys:r,itemKeysMap:i,openKeys:s,items:a};this._adapter.updateSelectedKeys(r,!1),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(s),this._adapter.updateItems(a),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems();return{itemKeysMap:e,willOpenKeys:this.getWillOpenKeys(e),formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),n=this.formatItems(e),r=Array.isArray(e)&&e.length?n:t;return{itemKeysMap:qw.buildItemKeysMap(r),formattedItems:n}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:n,defaultSelectedKeys:r,selectedKeys:i,mode:s}=this.getProps(),{openKeys:a=[]}=this.getStates();let o=n||t||[];if(!Array.isArray(t)&&!Array.isArray(n)&&s===$w.MODE_VERTICAL&&(Array.isArray(r)||Array.isArray(i))){const t=Array.isArray(i)?i:r;o=a.concat(this.getShouldOpenKeys(e,t)),o=Array.from(new Set(o))}return[...o]}getShouldOpenKeys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=new Set;return Array.isArray(t)&&t.length&&t.forEach((t=>{if(t){const r=a()(e,t);Array.isArray(r)&&r.forEach((e=>n.add(e)))}})),[...n]}destroy(){}selectLevelZeroParentKeys(e,t){const n=ve(e)?this.getState("itemKeysMap"):e,r=[];if(t.length)for(const e of t)if(Array.isArray(n[e])&&n[e].length){const t=n[e][0];ve(t)||r.push(t)}return r.length?r:[]}formatItems(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];for(const n of e)t.push(new Gw(n));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let n=!1;const r=Array.isArray(e)?e:e&&[e];if(r&&Array.isArray(t)&&t.length)for(const e of t)if(n=r.includes(e.itemKey)||this.judgeIfOpen(r,e.items),n)break;return n}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}__webpack_require__("ywzD");const Yw=function(){const e=new Set(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach((t=>t&&e.add(t))),Array.from(e)},Xw=function(){const e=new Set(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach((t=>t&&e.delete(t))),Array.from(e)};class Zw extends c{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return null!=e&&("number"==typeof e||"string"==typeof e)}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),n=this._adapter.getOpenKeysIsControlled(),r=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),s=e?Yw(i,t):Xw(i,t);this.clearDelayTimer(),n||r&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:s,isOpen:e})}handleClick(e,t){const{itemKey:n,disabled:r}=this.getProps();if(r)return;const i=t&&t.contains(e.target);let s=Boolean(this._adapter.getIsOpen());s=!!i&&!s;const a={itemKey:n,openKeys:s?Yw(this._adapter.getOpenKeys(),n):Xw(this._adapter.getOpenKeys(),n),isOpen:s,domEvent:e},o=this._adapter.getOpenKeysIsControlled(),l=this._adapter.getCanUpdateOpenKeys();!o&&l&&this._adapter.updateOpen(s),this._adapter.notifyGlobalOpenChange(a),this._adapter.notifyGlobalOnClick(a)}handleKeyPress(e,t){Jt(e)&&this.handleClick(e,t)}}class Jw extends c{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return null!=e&&("string"==typeof e||"number"==typeof e)}handleClick(e){const{isSubNav:t,itemKey:n,text:r,disabled:i}=this.getProps();if(i)return;t||!this.isValidKey(n)||this._adapter.getSelectedKeysIsControlled()||this._adapter.getSelected()||this._adapter.updateSelected(!0);const s=[n];if(!t){if(!this._adapter.getSelected()){const t=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:n,selectedKeys:s,selectedItems:t,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:n,text:r,domEvent:e})}this._adapter.notifyClick({itemKey:n,text:r,domEvent:e})}handleKeyPress(e){if(Jt(e)){const{link:t,linkOptions:n}=this.getProps(),r=a()(n,"target","_self");this.handleClick(e),"string"==typeof t&&("_blank"===r?window.open(t):window.location.href=t)}}}const Qw=u().createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),eC=`${Vw.PREFIX}-item`;class tC extends f{constructor(e){super(e),this.setItemRef=e=>{this.props.forwardRef&&this.props.forwardRef(e)},this.wrapTooltip=e=>{const{text:t,tooltipHideDelay:n,tooltipShowDelay:r}=this.props,i=null!=n?n:this.context.tooltipHideDelay,s=null!=r?r:this.context.tooltipShowDelay;return u().createElement(ft,{content:t,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:i},e)},this.handleClick=e=>this.foundation.handleClick(e),this.handleKeyPress=e=>this.foundation.handleKeyPress(e),this.state={tooltipShow:!1},this.foundation=new Jw(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&"function"==typeof this.context[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.context[e](...n)}return null}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{cloneDeep:ze,updateTooltipShow:e=>this.setState({tooltipShow:e}),updateSelected:e=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:e=>this._invokeContextFunc("updateSelectedKeys",[...e]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeContextFunc("onSelect",...n)},notifyGlobalOnClick:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeContextFunc("onClick",...n)},notifyClick:function(){return e.props.onClick(...arguments)},notifyMouseEnter:function(){return e.props.onMouseEnter(...arguments)},notifyMouseLeave:function(){return e.props.onMouseLeave(...arguments)},getIsCollapsed:()=>this.props.isCollapsed||Boolean(this.context&&this.context.isCollapsed)||!1,getSelected:()=>Boolean(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>Boolean(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(this.props.isSubNav)return null;if(!e&&this.context.mode===$w.MODE_HORIZONTAL)return null;let i="large";t===$w.ICON_POS_RIGHT&&(i="default");const s=x()(`${eC}-icon`,{[`${eC}-icon-toggle-${this.context.toggleIconPosition}`]:n,[`${eC}-icon-info`]:!n});return u().createElement("i",{className:s,key:r},Ue(e)?u().cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:n,toggleIcon:r,className:i,isSubNav:s,style:a,indent:o,onMouseEnter:l,onMouseLeave:c,link:h,linkOptions:d,disabled:p,level:f=0,tabIndex:m}=this.props,{mode:g,isInSubNav:y,prefixCls:v,limitIndent:b}=this.context,w=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let E=null;if(ve(t)){let t=null;if(g===$w.MODE_VERTICAL&&!b&&!w){const e=n&&!o?f:f-1;t=ev()(e,(e=>this.renderIcon(null,$w.ICON_POS_RIGHT,!1,e)))}E=u().createElement(u().Fragment,null,t,this.context.toggleIconPosition===$w.TOGGLE_ICON_LEFT&&this.renderIcon(r,$w.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),n||o||y?this.renderIcon(n,$w.ICON_POS_LEFT,!1,"key-position-left"):null,ve(e)?"":u().createElement("span",{className:`${Vw.PREFIX}-item-text`},e),this.context.toggleIconPosition===$w.TOGGLE_ICON_RIGHT&&this.renderIcon(r,$w.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}else E=t;"string"==typeof h&&(E=u().createElement("a",Object.assign({className:`${v}-item-link`,href:h,tabIndex:-1},d),E));let S="";if(y&&(w||g===$w.MODE_HORIZONTAL)){const e=x()({[eC]:!0,[`${eC}-sub`]:s,[`${eC}-selected`]:C,[`${eC}-collapsed`]:w,[`${eC}-disabled`]:p});S=u().createElement(mx.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:e,onClick:this.handleClick,onMouseEnter:l,onMouseLeave:c,disabled:p,onKeyDown:this.handleKeyPress},E)}else{const e=x()(`${i||`${eC}-normal`}`,{[eC]:!0,[`${eC}-sub`]:s,[`${eC}-selected`]:C&&!s,[`${eC}-collapsed`]:w,[`${eC}-disabled`]:p,[`${eC}-has-link`]:"string"==typeof h}),t={"aria-disabled":p};if(s){const e=this.adapter.getIsOpen();t["aria-expanded"]=e}S=u().createElement("li",Object.assign({role:s?null:"menuitem",tabIndex:s?-1:m},t,{style:a,ref:this.setItemRef,className:e,onClick:this.handleClick,onMouseEnter:l,onMouseLeave:c,onKeyPress:this.handleKeyPress},this.getDataAttr(this.props)),E)}return(w&&!y&&!s||w&&s&&p)&&(S=this.wrapTooltip(S)),"function"==typeof this.context.renderWrapper?this.context.renderWrapper({itemElement:S,isSubNav:s,isInSubNav:y,props:this.props}):S}}tC.contextType=Qw,tC.propTypes={text:C().oneOfType([C().string,C().node]),itemKey:C().oneOfType([C().string,C().number]),onClick:C().func,onMouseEnter:C().func,onMouseLeave:C().func,children:C().node,icon:C().oneOfType([C().node]),className:C().string,toggleIcon:C().string,style:C().object,forwardRef:C().func,indent:C().oneOfType([C().bool,C().number]),isCollapsed:C().bool,isSubNav:C().bool,link:C().string,linkOptions:C().object,disabled:C().bool,tabIndex:C().number},tC.defaultProps={isSubNav:!1,indent:!1,forwardRef:i(),isCollapsed:!1,onClick:i(),onMouseEnter:i(),onMouseLeave:i(),disabled:!1,tabIndex:0};class nC extends f{constructor(e){super(e),this.setItemRef=e=>{e&&e.current?this.itemRef=e:this.itemRef={current:e}},this.setTitleRef=e=>{e&&e.current?this.titleRef=e:this.titleRef={current:e}},this.handleClick=e=>{this.foundation.handleClick(e&&e.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=e=>{this.foundation.handleKeyPress(e&&e.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=e=>this.foundation.handleDropdownVisibleChange(e),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=u().createRef(),this.itemRef=u().createRef(),this.foundation=new Zw(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&"function"==typeof this.context[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.context[e](...n)}return null}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsHovered:e=>this.setState({isHovered:e}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:e=>this._invokeContextFunc(e?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeContextFunc("onOpenChange",...n)},notifyGlobalOnSelect:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeContextFunc("onSelect",...n)},notifyGlobalOnClick:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeContextFunc("onClick",...n)},getIsSelected:e=>Boolean(!ve(e)&&a()(this.context,"selectedKeys",[]).includes(String(e))),getIsOpen:()=>{const{itemKey:e}=this.props;return Boolean(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))}})}renderIcon(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const{prefixCls:s}=this.context;let a="large";t===$w.ICON_POS_RIGHT&&(a="default");const o=x()(`${s}-item-icon`,{[`${s}-item-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${s}-item-icon-info`]:!r}),l=this.adapter.getIsOpen(),c=u().isValidElement(e)?n?u().createElement(ot,{animationState:l?"enter":"leave",startClassName:`${Vw.PREFIX}-icon-rotate-${l?"180":"0"}`},(t=>{let{animationClassName:n}=t;return u().cloneElement(e,{size:a,className:n})})):u().cloneElement(e,{size:a}):null;return u().createElement("i",{key:i,className:o},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:n,indent:r,disabled:i,level:s,expandIcon:a}=this.props,{mode:o,isInSubNav:l,isCollapsed:c,prefixCls:h,subNavMotion:d,limitIndent:p}=this.context,f=this.adapter.getIsOpen(),m=x()(`${h}-sub-title`,{[`${h}-sub-title-selected`]:this.adapter.getIsSelected(n),[`${h}-sub-title-disabled`]:i});let g=!1,y="";c?y=l?u().createElement(pl,null):null:o===$w.MODE_HORIZONTAL?y=l?u().createElement(pl,{"aria-hidden":!0}):a||u().createElement(yc,{"aria-hidden":!0}):(d&&(g=!0),y=a||u().createElement(yc,{"aria-hidden":!0}));let v=null;if(o===$w.MODE_VERTICAL&&!p&&!c){const e=t&&!r?s:s-1;v=ev()(e,(e=>this.renderIcon(null,$w.ICON_POS_RIGHT,!1,!1,e)))}const b=!c&&l&&o===$w.MODE_HORIZONTAL||c&&l;return u().createElement("div",{role:"menuitem",tabIndex:b?-1:0,ref:this.setTitleRef,className:m,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":f?"true":"false"},u().createElement("div",{className:`${h}-item-inner`},v,this.context.toggleIconPosition===$w.TOGGLE_ICON_LEFT&&this.renderIcon(y,$w.ICON_POS_RIGHT,g,!0,"key-toggle-position-left"),t||r||l&&o!==$w.MODE_HORIZONTAL?this.renderIcon(t,$w.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,u().createElement("span",{className:`${h}-item-text`},e),this.context.toggleIconPosition===$w.TOGGLE_ICON_RIGHT&&this.renderIcon(y,$w.ICON_POS_RIGHT,g,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:n,mode:r,subNavMotion:i,prefixCls:s}=this.context,a=this.adapter.getIsOpen(),o=r===$w.MODE_HORIZONTAL,l=x()(`${s}-sub`,{[`${s}-sub-open`]:a,[`${s}-sub-popover`]:n||o});return o?null:i?u().createElement(Kp,{motion:i,isOpen:a,keepDOM:!1,fade:!0},n?null:u().createElement("ul",{className:l},e)):a&&!n?u().createElement("ul",{className:l},e):null}wrapDropdown(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{children:t,dropdownStyle:n,disabled:r}=this.props,{mode:i,isInSubNav:s,isCollapsed:a,subNavCloseDelay:o,subNavOpenDelay:l,prefixCls:c,getPopupContainer:h}=this.context,d=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),f=x()({[`${c}-popover`]:a}),m={trigger:"hover",style:n};return p&&(m.trigger="custom",m.visible=d),h&&(m.getPopupContainer=h),(a||i===$w.MODE_HORIZONTAL)&&(e=r?e:u().createElement(mx,Object.assign({className:f,render:u().createElement(mx.Menu,null,t),position:i!==$w.MODE_HORIZONTAL||s?"rightTop":"bottomLeft",mouseEnterDelay:l,mouseLeaveDelay:o,onVisibleChange:this.handleDropdownVisible},m),e)),e}render(){const{itemKey:e,style:t,onMouseEnter:n,onMouseLeave:r,disabled:i,text:s}=this.props,{mode:a,isCollapsed:o,prefixCls:l}=this.context;let c=this.renderTitleDiv();const h=this.renderSubUl();return(o||a===$w.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),u().createElement(tC,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:o,className:`${l}-sub-wrap`,onMouseEnter:n,onMouseLeave:r,disabled:i,text:s},u().createElement(Qw.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,h))}}nC.contextType=Qw,nC.propTypes={itemKey:C().oneOfType([C().string,C().number]),text:C().oneOfType([C().string,C().node]),isOpen:C().bool,isCollapsed:C().bool,indent:C().oneOfType([C().bool,C().number]),children:C().node,style:C().object,icon:C().node,maxHeight:C().number,onMouseEnter:C().func,onMouseLeave:C().func,disabled:C().bool,level:C().number},nC.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Bw,disabled:!1};const rC=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}),"sidebar");function iC(e){let{prefixCls:t,locale:n,collapseText:r,isCollapsed:s,onClick:a=i()}=e;const o={icon:u().createElement(rC,null),type:"tertiary",theme:"borderless",onClick:()=>{"function"==typeof a&&a(!s)}};let l=s?null==n?void 0:n.expandText:null==n?void 0:n.collapseText;return"function"==typeof r&&(l=r(s)),u().createElement("div",{className:`${t}-collapse-btn`},s?u().createElement(ft,{content:l,position:"right"},u().createElement(Ji,Object.assign({},o))):u().createElement(Ji,Object.assign({},o),l))}class sC extends h.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(u().isValidElement(e))return e;const{onCollapseChange:n,prefixCls:r,locale:i,isCollapsed:s}=this.context;return u().createElement(iC,{prefixCls:r,isCollapsed:s,locale:i,onClick:n,collapseText:t})}}render(){const{style:e,className:t,collapseButton:n,onClick:r}=this.props;let{children:i}=this.props;const{isCollapsed:s,mode:a}=this.context;!u().isValidElement(i)&&n&&a!==$w.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const o=x()(t,`${Vw.PREFIX}-footer`,{[`${Vw.PREFIX}-footer-collapsed`]:s});return u().createElement("div",{className:o,style:e,onClick:r},i)}}sC.contextType=Qw,sC.propTypes={children:C().node,style:C().object,className:C().string,collapseButton:C().oneOfType([C().node,C().bool]),collapseText:C().func,onClick:C().func},sC.defaultProps={collapseButton:!1,onClick:i()},sC.elementType="NavFooter";class aC extends h.PureComponent{renderLogo(e){return u().isValidElement(e)?e:null}render(){const{children:e,style:t,className:n,logo:r,text:i,link:s,linkOptions:a,prefixCls:o}=this.props,{isCollapsed:l}=this.context,c=x()(n,`${Vw.PREFIX}-header`,{[`${Vw.PREFIX}-header-collapsed`]:l});let h=u().createElement(u().Fragment,null,r?u().createElement("i",{className:`${Vw.PREFIX}-header-logo`},this.renderLogo(r)):null,ve(i)||l?null:u().createElement("span",{className:`${Vw.PREFIX}-header-text`},i),e);return"string"==typeof s&&(h=u().createElement("a",Object.assign({className:`${o}-header-link`,href:s},a),h)),u().createElement("div",{className:c,style:t},h)}}aC.contextType=Qw,aC.propTypes={prefixCls:C().string,logo:C().oneOfType([C().string,C().object,C().node]),text:C().oneOfType([C().string,C().node]),children:C().node,style:C().object,className:C().string,link:C().string,linkOptions:C().object},aC.defaultProps={prefixCls:Vw.PREFIX},aC.elementType="NavHeader";var oC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function lC(e,t){return function(){const n=new Set(e.state[t]);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i.forEach((e=>e&&n.add(e))),e.setState({[t]:Array.from(n)})}}function cC(e,t){return function(){const n=new Set(e.state[t]);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i.forEach((e=>e&&n.delete(e))),e.setState({[t]:Array.from(n)})}}const{hasOwnProperty:hC}=Object.prototype;class uC extends f{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new qw(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:n,items:r,children:i}=e,s={isCollapsed:Boolean(this.isControlled("isCollapsed")?t:n),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},s),r&&r.length||i){const e=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},s),e)}}static getDerivedStateFromProps(e,t){const n={};return hC.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(n.isCollapsed=e.isCollapsed),n}componentDidMount(){}componentDidUpdate(e){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{if(this.foundation.handleItemsChange(!1),this.props.selectedKeys&&!he()(e.selectedKeys,this.props.selectedKeys)){this.adapter.updateSelectedKeys(this.props.selectedKeys);const e=this.foundation.getWillOpenKeys(this.state.itemKeysMap);this.adapter.updateOpenKeys(e)}this.props.openKeys&&!he()(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys)}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:e=>this.setState({isCollapsed:e}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:e=>this.setState({items:[...e]}),setItemKeysMap:e=>this.setState({itemKeysMap:Object.assign({},e)}),addSelectedKeys:lC(this,"selectedKeys"),removeSelectedKeys:cC(this,"selectedKeys"),updateSelectedKeys:function(t){let n=t;if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const r=e.foundation.selectLevelZeroParentKeys(null,t);n=Array.from(new Set(t.concat(r)))}e.setState({selectedKeys:n})},updateOpenKeys:e=>this.setState({openKeys:[...e]}),addOpenKeys:lC(this,"openKeys"),removeOpenKeys:cC(this,"openKeys"),setItemsChanged:e=>{this.itemsChanged=e}})}renderItems(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const{expandIcon:n}=this.props;return u().createElement(u().Fragment,null,e.map(((e,r)=>Array.isArray(e.items)&&e.items.length?u().createElement(nC,Object.assign({key:e.itemKey||String(t)+r},e,{level:t,expandIcon:n}),this.renderItems(e.items,t+1)):u().createElement(tC,Object.assign({key:e.itemKey||String(t)+r},e,{level:t})))))}render(){const e=this.props,{children:t,mode:n,onOpenChange:r,onSelect:i,onClick:s,style:o,className:l,subNavCloseDelay:c,subNavOpenDelay:d,subNavMotion:p,tooltipShowDelay:f,tooltipHideDelay:m,prefixCls:g,bodyStyle:y,footer:v,header:b,toggleIconPosition:w,limitIndent:C,renderWrapper:E,getPopupContainer:S}=e,_=oC(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:k,openKeys:P,items:O,isCollapsed:T}=this.state,{updateOpenKeys:I,addOpenKeys:D,removeOpenKeys:A,updateSelectedKeys:R,addSelectedKeys:N,removeSelectedKeys:M}=this.adapter,F=Object.assign({},o);let L=h.Children.toArray(t);const j=[],V=[];if(u().isValidElement(v)?j.push(u().createElement(sC,{key:0},v)):v&&"object"==typeof v&&j.push(u().createElement(sC,Object.assign({key:0},v))),u().isValidElement(b)?V.push(u().createElement(aC,{key:0},b)):b&&"object"==typeof b&&V.push(u().createElement(aC,Object.assign({key:0},b))),Array.isArray(L)&&L.length){L=[...L];let e=L.length;for(let t=0;t<e;t++){const n=L[t];n.type===sC||"NavFooter"===a()(n,"type.elementType")?(j.push(n),L.splice(t,1),t--,e--):n.type!==aC&&"NavHeader"!==a()(n,"type.elementType")||(V.push(n),L.splice(t,1),t--,e--)}}const $=x()(g,l,{[`${g}-collapsed`]:T,[`${g}-horizontal`]:"horizontal"===n,[`${g}-vertical`]:"vertical"===n}),B=x()(`${g}-header-list-outer`,{[`${g}-header-list-outer-collapsed`]:T});return this.itemsChanged&&this.adapter.setCache("itemElems",this.renderItems(O)),u().createElement(Bt,{componentName:"Navigation"},(e=>u().createElement(Qw.Provider,{value:{subNavCloseDelay:c,subNavOpenDelay:d,subNavMotion:p,tooltipShowDelay:f,tooltipHideDelay:m,openKeys:P,openKeysIsControlled:this.isControlled("openKeys")&&"vertical"===n&&!T,canUpdateOpenKeys:!0,selectedKeys:k,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:T,onCollapseChange:this.onCollapseChange,mode:n,onSelect:i,onOpenChange:r,updateOpenKeys:I,addOpenKeys:D,removeOpenKeys:A,updateSelectedKeys:R,addSelectedKeys:N,removeSelectedKeys:M,onClick:s,locale:e,prefixCls:g,toggleIconPosition:w,limitIndent:C,renderWrapper:E,getPopupContainer:S}},u().createElement("div",Object.assign({className:$,style:F},this.getDataAttr(_)),u().createElement("div",{className:`${g}-inner`},u().createElement("div",{className:B},V,u().createElement("div",{style:y,className:`${g}-list-wrapper`},u().createElement("ul",{role:"menu","aria-orientation":n,className:`${g}-list`},this.adapter.getCache("itemElems"),L))),j)))))}}uC.Sub=nC,uC.Item=tC,uC.Header=aC,uC.Footer=sC,uC.propTypes={collapseIcon:C().node,defaultOpenKeys:C().arrayOf(C().oneOfType([C().string,C().number])),openKeys:C().arrayOf(C().oneOfType([C().string,C().number])),defaultSelectedKeys:C().arrayOf(C().oneOfType([C().string,C().number])),expandIcon:C().node,selectedKeys:C().arrayOf(C().oneOfType([C().string,C().number])),mode:C().oneOf([...$w.MODE]),onSelect:C().func,onClick:C().func,onOpenChange:C().func,items:C().array,isCollapsed:C().bool,defaultIsCollapsed:C().bool,onCollapseChange:C().func,multiple:C().bool,onDeselect:C().func,subNavMotion:C().oneOfType([C().bool,C().object,C().func]),subNavCloseDelay:C().number,subNavOpenDelay:C().number,tooltipShowDelay:C().number,tooltipHideDelay:C().number,children:C().node,style:C().object,bodyStyle:C().object,className:C().string,toggleIconPosition:C().string,prefixCls:C().string,header:C().oneOfType([C().node,C().object]),footer:C().oneOfType([C().node,C().object]),limitIndent:C().bool,getPopupContainer:C().func},uC.__SemiComponentName__="Navigation",uC.defaultProps=Xe(uC.__SemiComponentName__,{subNavCloseDelay:Uw,subNavOpenDelay:Kw,tooltipHideDelay:Hw,tooltipShowDelay:zw,onCollapseChange:i(),onSelect:i(),onClick:i(),onOpenChange:i(),toggleIconPosition:"right",limitIndent:!0,prefixCls:Vw.PREFIX,subNavMotion:!0,mode:$w.MODE_VERTICAL});const dC=uC;class pC extends c{addNotice(e){const t=this._adapter.getNotices();this._adapter.updateNotices([e,...t])}has(e){return this._adapter.getNotices().some((t=>t.id===e))}update(e,t){let n=this._adapter.getNotices();n=n.map((n=>n.id===e?Object.assign(Object.assign({},n),t):n));const r=n.filter((t=>t.id===e));this._adapter.updateNotices(n,[],r)}removeNotice(e){let t=this._adapter.getNotices();const n=[];t=t.filter((t=>t.id!==e||(n.push(t),!1))),this._adapter.updateNotices(t,n)}destroyAll(){const e=this._adapter.getNotices();e.length>0&&this._adapter.updateNotices([],e)}}const fC={WRAPPER:`${E}-notification-wrapper`,LIST:`${E}-notification-list`,NOTICE:`${E}-notification-notice`},mC={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]};class gC extends c{constructor(e){super(Object.assign(Object.assign({},gC.defaultAdapter),e)),this._timer=null,this._id=null}init(){this._startCloseTimer(),this._id=this.getProp("id")}destroy(){this._clearCloseTimer()}_startCloseTimer(){const e=this.getProp("duration");e&&Kn()(e)&&(this._timer=setTimeout((()=>{this.close()}),1e3*e))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}_clearCloseTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this._clearCloseTimer(),this._startCloseTimer()}}var yC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const vC=fC.NOTICE,{duration:bC}={duration:3},{types:xC,themes:wC,directions:CC}=mC;class EC extends f{get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose(),this.props.onHookClose&&this.props.onHookClose()}})}constructor(e){super(e),this.clearCloseTimer=()=>{this.foundation._clearCloseTimer()},this.startCloseTimer=()=>{this.foundation._startCloseTimer()},this.close=e=>{this.props.onCloseClick(this.props.id),this.foundation.close(e)},this.notifyClick=e=>{this.props.onClick(e)},this.state={visible:!0},this.foundation=new gC(this.adapter)}componentWillUnmount(){this.foundation.destroy()}renderTypeIcon(){const{type:e,icon:t}=this.props;let n={warning:u().createElement(Ni,{size:"large"}),success:u().createElement(Mi,{size:"large"}),info:u().createElement(Fi,{size:"large"}),error:u().createElement(Li,{size:"large"})}[e];const r=x()({[`${vC}-icon`]:!0,[`${vC}-${e}`]:!0});return t&&(n=t),n?u().createElement("div",{className:r,"x-semi-prop":"icon"},Ue(n)?u().cloneElement(n,{size:n.props.size||"large"}):n):null}render(){const e=this.props.direction||this.context.direction,t="rtl"===e?"topLeft":"topRight",n=this.props,{content:r,title:i,theme:s,position:a=t,type:o,id:l,onCloseClick:c,className:h,showClose:d,style:p}=n,{visible:f}=(yC(n,["content","title","theme","position","type","id","onCloseClick","className","showClose","style"]),this.state),m=x()(vC,h,{[`${vC}-close`]:!f,[`${vC}-icon-show`]:xC.includes(o),[`${vC}-${o}`]:!0,[`${vC}-${s}`]:"light"===s,[`${vC}-rtl`]:"rtl"===e}),g=Ae({});return u().createElement("div",{className:m,style:p,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:this.notifyClick,"aria-labelledby":g,role:"alert",onAnimationEnd:this.props.onAnimationEnd,onAnimationStart:this.props.onAnimationStart},u().createElement("div",null,this.renderTypeIcon()),u().createElement("div",{className:`${vC}-inner`},u().createElement("div",{className:`${vC}-content-wrapper`},i?u().createElement("div",{id:g,className:`${vC}-title`,"x-semi-prop":"title"},i):"",r?u().createElement("div",{className:`${vC}-content`,"x-semi-prop":"content"},r):""),d&&u().createElement(bi,{className:`${vC}-icon-close`,type:"tertiary",icon:u().createElement(Ri,null),theme:"borderless",size:"small",onClick:this.close})))}}EC.contextType=Ze,EC.propTypes={duration:C().number,id:C().string,title:C().node,content:C().node,type:C().oneOf(xC),theme:C().oneOf(wC),icon:C().node,onClick:C().func,onClose:C().func,onCloseClick:C().func,showClose:C().bool,close:C().func,direction:C().oneOf(CC)},EC.__SemiComponentName__="Notification",EC.defaultProps=Xe(EC.__SemiComponentName__,{duration:bC,id:"",close:i(),onClose:i(),onClick:i(),onCloseClick:i(),content:"",title:"",showClose:!0,theme:"normal"});const SC=EC;__webpack_require__("waO6");var _C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const kC=(e,t)=>{var{afterClose:n}=e,r=_C(e,["afterClose"]);const[i,s]=(0,h.useState)(!0);return u().useImperativeHandle(t,(()=>({close:()=>{s(!1)}}))),(0,h.useEffect)((()=>{i||n(String(r.id))}),[i]),i?u().createElement(SC,Object.assign({},r,{onHookClose:()=>{s(!1)}})):null},PC=u().forwardRef(kC),OC={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};let TC=null;const IC={duration:3,position:"topRight",motion:!0,content:"",title:"",zIndex:1010};class DC extends f{constructor(e){var t;super(e),t=this,this.add=e=>this.foundation.addNotice(e),this.has=e=>this.foundation.has(e),this.remove=e=>{this.foundation.removeNotice(String(e))},this.update=(e,t)=>this.foundation.update(e,t),this.destroyAll=()=>this.foundation.destroyAll(),this.renderNoticeInPosition=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const s=x()(fC.LIST);if(e.length){const a=t.setPosInStyle(e[0]);return u().createElement("div",{placement:n,key:n,className:s,style:a},e.map(((e,s)=>{const a=void 0!==r.find((t=>t.id===e.id));return u().createElement(ot,{key:e.id,animationState:a?"leave":"enter",startClassName:`${fC.NOTICE}-animation-${a?"hide":"show"}_${n}`},(n=>{let{animationClassName:r,animationEventsNeedBind:s,isAnimating:o}=n;return a&&!o?null:u().createElement(SC,Object.assign({},e,{ref:e=>{e&&i.some((t=>t.id===e.props.id))&&e.foundation.restartCloseTimer()},className:x()({[e.className]:Boolean(e.className),[r]:!0})},s,{style:Object.assign({},e.style),close:t.remove}))}))})))}return null},this.state={notices:[],removedItems:[],updatedItems:[]},this.noticeStorage=[],this.removeItemStorage=[],this.foundation=new pC(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateNotices:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];e.noticeStorage=[...t],e.removeItemStorage=[...n],e.setState({notices:t,removedItems:n,updatedItems:r})},getNotices:()=>this.noticeStorage})}static addNotice(e){var t;const n=null!==(t=(e=Object.assign(Object.assign({},IC),e)).id)&&void 0!==t?t:Ie("notification");if(TC)TC.has(`${n}`)?TC.update(n,e):TC.add(Object.assign(Object.assign({},e),{id:n}));else{const{getPopupContainer:t}=e,r=document.createElement("div");if(this.wrapperId||(this.wrapperId=Ie("notification-wrapper").slice(0,32)),r.className=fC.WRAPPER,r.id=this.wrapperId,r.style.zIndex=String("number"==typeof e.zIndex?e.zIndex:IC.zIndex),t){t().appendChild(r)}else document.body.appendChild(r);ge().render(u().createElement(DC,{ref:e=>TC=e}),r,(()=>{TC.add(Object.assign(Object.assign({},e),{id:n}))}))}return n}static removeNotice(e){return TC&&TC.remove(e),e}static info(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"info"}))}static success(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"success"}))}static error(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"error"}))}static warning(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"warning"}))}static open(e){return this.addNotice(Object.assign(Object.assign({},e),{type:"default"}))}static close(e){return this.removeNotice(e)}static destroyAll(){if(TC){TC.destroyAll();const e=document.querySelector(`#${this.wrapperId}`);ge().unmountComponentAtNode(e),e&&e.parentNode.removeChild(e),TC=null,this.wrapperId=null}}static config(e){["top","left","bottom","right"].map((t=>{t in e&&(IC[t]=e[t])})),"number"==typeof e.zIndex&&(IC.zIndex=e.zIndex),"number"==typeof e.duration&&(IC.duration=e.duration),"string"==typeof e.position&&(IC.position=e.position)}setPosInStyle(e){const t={};return["top","left","bottom","right"].forEach((n=>{if(n in e){const r=e[n];t[n]="number"==typeof r?`${r}px`:r}})),t}render(){let{notices:e}=this.state;const{removedItems:t,updatedItems:n}=this.state;e=Array.from(new Set([...e,...t]));const r={top:[],topLeft:[],topRight:[],bottom:[],bottomLeft:[],bottomRight:[]};e.forEach((e=>{const t="rtl"===(e.direction||this.context.direction)?"topLeft":"topRight",n=e.position||t;r[n].push(e)}));const i=Object.entries(r).map((e=>{const r=e[0],i=e[1];return this.renderNoticeInPosition(i,r,t,n)}));return u().createElement(u().Fragment,null,i)}}DC.contextType=Ze,DC.propTypes={style:C().object,className:C().string,direction:C().oneOf(mC.directions)},DC.defaultProps={},DC.useNotification=function(){const[e,t]=function(){const[e,t]=(0,h.useState)([]);return[function(){const t={top:[],topLeft:[],topRight:[],bottom:[],bottomLeft:[],bottomRight:[]};return e.forEach((e=>{let{element:n,config:r}=e;const{position:i}=r;t[i].push(n)})),Object.entries(t).map((e=>{const t=e[0],n=e[1];return Array.isArray(n)&&n.length?u().createElement("div",{key:t,className:x()(fC.LIST),placement:t},n):null}))}(),function(e,n){return t((t=>[{element:e,config:n},...t])),e=>{t((t=>t.filter((t=>{let{config:n}=t;return n.id!==e}))))}}]}(),n=new Map,r=e=>{const r=Ie("semi_notice_"),i=Object.assign(Object.assign({},e),{id:r});let s;const a=u().createElement(PC,Object.assign({key:r},i,{afterClose:e=>s(e),ref:e=>{n.set(r,e)}}));return s=t(a,Object.assign({},i)),r};return[{success:e=>r(Object.assign(Object.assign(Object.assign({},OC),e),{type:"success"})),info:e=>r(Object.assign(Object.assign(Object.assign({},OC),e),{type:"info"})),error:e=>r(Object.assign(Object.assign(Object.assign({},OC),e),{type:"error"})),warning:e=>r(Object.assign(Object.assign(Object.assign({},OC),e),{type:"warning"})),open:e=>r(Object.assign(Object.assign(Object.assign({},OC),e),{type:"default"})),close:e=>{const t=n.get(e);t&&t.close()}},u().createElement(u().Fragment,null,e)]};const AC=DC,RC={PREFIX:E+"-overflow-list"},NC={COLLAPSE:"collapse",SCROLL:"scroll"},MC={START:"start",END:"end"},FC={BOUNDARY_SET:Object.values(MC),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(NC),MODE_MAP:NC,BOUNDARY_MAP:MC,OVERFLOW_DIR:{NONE:0,GROW:1,SHRINK:2}},LC=4;class jC extends u().PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:n,rootMargin:r,option:i,onIntersect:s}=this.props;this.observer=new IntersectionObserver(s,Object.assign({root:t,threshold:n,rootMargin:r},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);he()(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{items:t}=this.props;de()(t)?this.observer.disconnect():(e&&this.observer.disconnect(),Object.keys(t).forEach((e=>{const n=t[e];n&&Re(n)&&this.observer.observe(n)})))}render(){const{children:e}=this.props;return e}}jC.propTypes={onIntersect:C().func,option:C().object,root:C().any,threshold:C().number,rootMargin:C().string,items:C().object},jC.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const VC=FC.BOUNDARY_MAP;const $C=class extends c{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:e}=this.getProps();return"scroll"===e},this.getReversedItems=()=>{const{items:e}=this.getProps();return py(e).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:n}=this.getStates();if(!this.isScrollMode())return n;const r=e.map((e=>{let{key:n}=e;return Boolean(t.get(n))})),i=r.indexOf(!0),s=r.lastIndexOf(!0),a=[];return a[0]=i>=0?e.slice(0,i):[],a[1]=s>=0?e.slice(s+1,e.length):e,a}handleIntersect(e){const t=py(this.getState("visibleState")),n={};e.forEach((e=>{const r=a()(e,"target.dataset.scrollkey"),i=e.isIntersecting;n[r]=e,t.set(r,i)}));let r=!1;for(const e of t.values())if(e){r=!0;break}const i=r,[s]=e,o=s.boundingClientRect.y;i||void 0===this.previousY||o===this.previousY?(this.previousY=o,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(n)):this.previousY=o}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:n,containerWidth:r,pivot:i,overflowStatus:s}=this.getStates(),{items:a,onOverflow:o}=this.getProps();let l=n,c=0,h=!1;for(const e of this._adapter.getItemSizeMap().values()){if(l+=e,l>r){h=!0;break}if(c===a.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:a.length-1,visible:a,overflow:[]});break}c++}if(h){const n=Math.max(e,c),r=t===VC.START,s=r?this.getReversedItems().slice(0,n).reverse():a.slice(0,n),l=r?this.getReversedItems().slice(n).reverse():a.slice(n);return this._adapter.updateStates({overflowStatus:"overflowed",pivot:n,visible:s,overflow:l}),void(i!==n&&o(l))}}};__webpack_require__("5CK9");const BC=RC.PREFIX,zC=FC.BOUNDARY_MAP,HC=FC.OVERFLOW_DIR,KC=FC.MODE_MAP;class UC extends f{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:e}=this.props;return e===KC.SCROLL},this.resize=function(){var e;const n=null===(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])[0])||void 0===e?void 0:e.target.clientWidth;t.setState({containerWidth:n,overflowStatus:"calculating"})},this.reintersect=e=>{this.foundation.handleIntersect(e)},this.mergeRef=(e,t,n)=>{this.itemRefs[n]=t,"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)},this.renderOverflow=()=>{const e=this.foundation.getOverflowItem();return this.props.overflowRenderer(e)},this.getItemKey=(e,t)=>{const{itemKey:n}=this.props;return J()(n)?n(e):a()(e,n||"key",t)},this.renderItemList=()=>{const{className:e,wrapperClassName:t,wrapperStyle:n,style:r,visibleItemRenderer:i,renderMode:s,collapseFrom:a}=this.props,{visible:o,overflowStatus:l}=this.state;let c=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(c)&&(c=u().createElement(u().Fragment,null,c)),u().isValidElement(c))){const e=u().cloneElement(c);c=u().createElement(bn,{onResize:e=>{let[t]=e;this.setState({overflowWidth:t.target.clientWidth,overflowStatus:"calculating"})}},u().createElement("div",{className:`${BC}-overflow`},e))}const h=s===KC.SCROLL?(()=>{const e=[u().createElement("div",{className:x()(t,`${BC}-scroll-wrapper`),ref:e=>{this.scroller=e},style:Object.assign({},n),key:`${BC}-scroll-wrapper`},o.map(i).map((e=>{const{forwardRef:t,key:n}=e;return u().cloneElement(e,{ref:e=>this.mergeRef(t,e,n),"data-scrollkey":`${n}`,key:n})})))];return"both"===this.props.overflowRenderDirection?(e.unshift(c[0]),e.push(c[1])):"start"===this.props.overflowRenderDirection?(e.unshift(c[1]),e.unshift(c[0])):(e.push(c[0]),e.push(c[1])),e})():[a===zC.START?c:null,o.map(((e,t)=>{const{key:n}=e,r=i(e,t),s=u().cloneElement(r);return u().createElement(bn,{key:null!=n?n:t,onResize:n=>{let[r]=n;return this.onItemResize(r,e,t)}},u().createElement("div",{key:null!=n?n:t,className:`${BC}-item`},s))})),a===zC.END?c:null];return u().createElement("div",{className:x()(`${BC}`,e),style:Object.assign(Object.assign({},r),s===KC.COLLAPSE?{maxWidth:"100%",visibility:"calculating"===l?"hidden":"visible"}:null)},...h)},this.onItemResize=(e,t,n)=>{const r=this.getItemKey(t,n),i=this.itemSizeMap.get(r);i?i!==e.target.clientWidth&&(this.itemSizeMap.set(r,e.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(r,e.target.clientWidth);const{maxCount:s}=this.state;this.itemSizeMap.size===s&&this.setState({overflowStatus:"calculating"})},this.state={direction:HC.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new $C(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:n}=t,r={};r.prevProps=e;const i=t=>!n&&t in e||n&&!he()(n[t],e[t]);if(i("items")||i("style")){if(r.direction=HC.GROW,r.lastOverflowCount=0,r.maxCount=0,e.renderMode===KC.SCROLL)r.visible=e.items,r.overflow=[];else{let n=e.items.length;0!==Math.floor(t.containerWidth/LC)&&(n=Math.min(n,Math.floor(t.containerWidth/LC)));const i=e.collapseFrom===zC.START,s=i?ze(e.items).reverse().slice(0,n):e.items.slice(0,n),a=i?ze(e.items).reverse().slice(n):e.items.slice(n);r.visible=s,r.overflow=a,r.maxCount=n}r.pivot=-1,r.overflowStatus="calculating"}return r}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e},(()=>{var t,n;null===(n=(t=this.props).onVisibleStateChange)||void 0===n||n.call(t,e)}))},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const n=e.items.map((e=>e.key)),r=this.props.items.map((e=>e.key));he()(n,r)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:s,visible:a,overflowStatus:o}=this.state;this.isScrollMode()||"calculating"!==o||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===KC.SCROLL?u().createElement(jC,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):u().createElement(bn,{onResize:this.resize},e)}}UC.__SemiComponentName__="OverflowList",UC.defaultProps=Xe(UC.__SemiComponentName__,{collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null,overflowRenderDirection:"both"}),UC.propTypes={className:C().string,collapseFrom:C().oneOf(FC.BOUNDARY_SET),direction:C().oneOf(FC.POSITION_SET),items:C().array,minVisibleItems:C().number,onIntersect:C().func,onOverflow:C().func,overflowRenderer:C().func,renderMode:C().oneOf(FC.MODE_SET),style:C().object,threshold:C().number,visibleItemRenderer:C().func,wrapperClassName:C().string,wrapperStyle:C().object,collapseMask:C().object,overflowRenderDirection:C().string};const WC=UC,GC={PREFIX:`${E}-page`},qC={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};const YC=class extends c{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:n}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:n}),this._updatePageList({currentPage:e,total:t,pageSize:n}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:n,pageSize:r}=e,i=this._getTotalPageNumber(n,r);let s=!1,a=!1;1===t?(s=!0,a=i<2):t===i&&(s=!1,a=!0),this._adapter.setDisabled(s,a)}goPage(e){if("..."===e)return;const{pageSize:t,currentPage:n}=this.getStates(),r=this._isInProps("currentPage");e!==n&&(r?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;null==t&&(t=this.getState("total")),null==n&&(n=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:n}),this._updatePageList({currentPage:e,total:t,pageSize:n}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(n)}updateAllPageNumbers(e,t){const{size:n,hoverShowPageSelect:r,disabled:i}=this.getProps();if("small"===n&&r&&!i){const n=Array.from({length:Math.ceil(e/t)},((e,t)=>t+1));this._adapter.updateAllPageNumbers(n)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:n}=this.getStates();e<=this._getTotalPageNumber(t,n)-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:n,pageSize:r}=e;let i=[],s=[],a=[];const o=this._getTotalPageNumber(n,r),{PAGE_SHOW_MAX:l,REST_PAGE_MAX_SIZE:c}=qC;if(o<=l)i=Array.from({length:o},((e,t)=>t+1)),s=[],a=[];else switch(!0){case t<4:i=[1,2,3,4,"...",o-1,o],a=Array.from({length:Math.min(o-6,c)},((e,t)=>t+5)),s=[];break;case 4===t:i=[1,2,3,4,5,"...",o],a=Array.from({length:Math.min(o-6,c)},((e,t)=>t+6)),s=[];break;case 4<t&&t<o-3:const e=Array.from({length:3},((e,n)=>t+(n-1)));i=[1].concat("...",e,"...",o),a=Array.from({length:Math.min(o-t-2,c)},((e,n)=>t+n+2)),s=Array.from({length:Math.min(t-3,c)},((e,t)=>t+2));break;case t-3<=t&&t<=o:const n=Array.from({length:5},((e,t)=>o-(4-t)));i=[1,"..."].concat(n),a=[],s=Array.from({length:Math.min(n[0]-2,c)},((e,t)=>t+2))}this._adapter.setPageList({pageList:i,restLeftPageList:s,restRightPageList:a})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:n,currentPage:r}=this.getStates(),i=(r-1)*t+1,s=Math.ceil(i/e);this.updatePage(s,n,e),r!==s&&this._adapter.notifyPageChange(s),this._adapter.notifyChange(s,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),n=[...e];if(-1===n.indexOf(t)){const e=n.findIndex((e=>e>t));n.splice(e,0,t)}return n}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:n,total:r}=this.getStates(),i=this._getTotalPageNumber(r,n);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();("string"==typeof e&&e||"number"==typeof e)&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}};__webpack_require__("bpxB");const XC={PREFIX:`${E}-select`,PREFIX_OPTION:`${E}-select-option`,PREFIX_GROUP:`${E}-select-group`},ZC={SIZE_SET:["small","large","default"],POSITION_SET:Oe.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:$n,SEARCH_POSITION_TRIGGER:"trigger",SEARCH_POSITION_DROPDOWN:"dropdown"},JC=270;var QC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class eE extends c{constructor(e){super(Object.assign({},e)),this._keydownHandler=null}init(){this._setDropdownWidth();const e=this.getProp("defaultOpen"),t=this.getProp("open"),n=this._collectOptions();this._setDefaultSelection(n),(e||t)&&this.open(void 0,n);this.getProp("autoFocus")&&this.focus()}focus(){const e=this._isFilterable(),t=this._isMultiple();this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1),e&&t?this.focusInput():e&&!t?this.toggle2SearchInput(!0):this._focusTrigger()}_focusTrigger(){this._adapter.focusTrigger()}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let n;t&&(n=e&&Kn()(e.width)||e&&ne()(e.width)&&!e.width.includes("%")?e.width:this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(n))}_collectOptions(){const e=this._adapter.getOptionsFromChildren();return this._adapter.updateOptions(e),this._adapter.rePositionDropdown(),e}_setDefaultSelection(e){let{value:t}=this.getProps();const{defaultValue:n}=this.getProps();this._isControlledComponent()||(t=n),this._update(t,e)}handleOptionListChange(){const e=this._collectOptions(),{selections:t}=this.getStates();this.updateOptionsActiveStatus(t,e);const{defaultActiveFirstOption:n}=this.getProps();n&&this._adapter.updateFocusIndex(0)}handleOptionListChangeHadDefaultValue(){const e=this.getState("selections");let t;const{onChangeWithObject:n}=this.getProps(),r=this._isMultiple();switch(!0){case r&&Boolean(e.size):try{t=[...e].map((e=>n?e[1]:e[1].value))}catch(e){t=[]}break;case r&&!e.size:t=[];break;case!r&&Boolean(e.size):try{t=n?[...e][0][1]:[...e][0][1].value}catch(e){}case!r&&!e.size:}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:n,remote:r}=this.getProps(),{inputValue:i}=this.getStates();let s;t&&this._isControlledComponent()?(s=this.getState("options"),s.forEach((e=>e._show=!0))):s=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!n&&i&&!r&&(s=this._filterOption(s,i)),this._update(e,s)}_update(e,t){let n;this._isMultiple()?(n=this._updateMultiple(e,t),this.updateOverflowItemCount(n.size)):n=this._updateSingle(e,t),this._adapter.updateSelection(n),this.updateOptionsActiveStatus(n,t)}_updateSingle(e,t){const n=new Map,{onChangeWithObject:r}=this.getProps(),i=r&&void 0!==e?e.value:e,s=t.filter((e=>e.value===i)),a=!s.length&&null!=i;if(s.length){const e=s[0],t=Object.assign({},e);n.set(t.label,t)}else if(a){let t={value:e,label:e,_notExist:!0,_scrollIndex:-1};r&&(t=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),n.set(t.label,t)}return n}_updateMultiple(e,t){const n=this.getState("selections");let r=[];const i=Array.isArray(e);this.checkMultipleProps(),n.size&&(r=[...n].map((e=>e[1])));const s=new Map;let a=e;const{onChangeWithObject:o}=this.getProps();return o&&i&&(a=e.map((e=>e.value))),i&&a.length&&a.forEach(((n,i)=>{const a=t.findIndex((e=>e.value===n));if(-1!==a)s.set(t[a].label,t[a]);else{const t=r.findIndex((e=>e.value===n));if(-1!==t){const n=r[t];if(o){const t=Object.assign({},e[i]);he()(t,n)?s.set(n.label,n):s.set(t.label,t)}else s.set(n.label,n)}else{let t={value:n,label:n,_notExist:!0};o&&(t=Object.assign(Object.assign({},e[i]),{_notExist:!0})),s.set(t.label,Object.assign(Object.assign({},t),{_scrollIndex:-1}))}}})),s}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return Boolean(this.getProp("filter"))}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:n}=this.getStates();this._isDisabled()||(n?n&&t?this.close({event:e}):n&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const n=this._isFilterable(),r=t||this.getState("options");if(n){const e="",t=this._filterOption(r,e).filter((e=>!e._inputCreateOnly));this._adapter.updateOptions(t),this.toggle2SearchInput(!0)}else this._adapter.updateFocusState(!0);this._adapter.openMenu((()=>{const{searchPosition:e,autoFocus:t}=this.getProps();t&&e===ZC.SEARCH_POSITION_DROPDOWN&&this._adapter.focusDropdownInput()})),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler((e=>{this.close({event:e}),this._notifyBlur(e),this._adapter.updateFocusState(!1)}))}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,(()=>this.focusInput())):this._adapter.toggleInputShow(e,(()=>{}))}close(e){const{event:t,closeCb:n,notToggleInput:r}=e||{};this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const i=this._isFilterable();i&&!r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",(()=>{i&&this.clearInput(t),n&&n()}))}onSelect(e,t,n){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e);this._isMultiple()?this._handleMultipleSelect(e,n):(this._handleSingleSelect(e,n),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:n,label:r}=e,i=QC(e,["value","label"]);const s=(new Map).set(r,Object.assign({value:n,label:r},i));this._notifySelect(n,Object.assign({value:n,label:r},i));const a=this._isFilterable();this._isControlledComponent()?this.close({event:t,notToggleInput:!0,closeCb:()=>{this._notifyChange(s),a&&this.toggle2SearchInput(!1)}}):(this._adapter.updateSelection(s),this._notifyChange(s),this.close({event:t,closeCb:()=>{this.updateOptionsActiveStatus(s)}}))}_handleMultipleSelect(e,t){var{value:n,label:r}=e,i=QC(e,["value","label"]);const s=this._adapter.getMaxLimit(),a=this._adapter.getSelections(),{autoClearSearchValue:o}=this.getProps();if(a.has(r))this._notifyDeselect(n,Object.assign({value:n,label:r},i)),a.delete(r);else{if(s&&a.size===s)return void this._adapter.notifyMaxLimit(Object.assign({value:n,label:r},ae()(i,"_scrollIndex")));this._notifySelect(n,Object.assign({value:n,label:r},i)),a.set(r,Object.assign({value:n,label:r},i))}if(this._isControlledComponent())this._notifyChange(a),this._isFilterable()&&(o&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(a),this.updateOverflowItemCount(a.size),this._adapter.rePositionDropdown();let{options:e}=this.getStates();if(this._isFilterable()){if(o){this.clearInput(t);const n="";e=this._filterOption(e,n)}this.focusInput()}this.updateOptionsActiveStatus(a,e),this._notifyChange(a)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getState("options");const{allowCreate:n}=this.getProps(),r=t.map((t=>(e.has(t.label)?(t._selected=!0,n&&delete t._inputCreateOnly):(t._inputCreateOnly&&(t._show=!1),t._selected=!1),t)));this._adapter.updateOptions(r)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(""!==t){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:t}=this.getStates(),{remote:n}=this.getProps();let r=t;n||(r=this._filterOption(t,"")),this._adapter.updateOptions(r)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:n,isOpen:r}=this.getStates(),{allowCreate:i,remote:s}=this.getProps();let a=n;s||(a=this._filterOption(n,e)),a=this._createOptionByInput(i,a,e),this._adapter.updateOptions(a),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const n=this.getProp("filter");if(!n)return e;if("boolean"==typeof n&&n){const n=t.toLowerCase();return e.map((e=>{const t=e.label.toString().toLowerCase(),r=e._parentGroup&&e._parentGroup.label,i=t.includes(n),s=ne()(r)&&r.toLowerCase().includes(n);return e._show=!(!i&&!s),e}))}return"function"==typeof n?e.map((e=>(n(t,e)?e._show=!0:e._show=!1,e))):void 0}_createOptionByInput(e,t,n){if(e)if(n){const e={_show:!0,_selected:!1,value:n,label:n,_inputCreateOnly:!0};let r=-1,i=-1;t.forEach(((e,t)=>{(e._show||e._inputCreateOnly)&&(e.label===n&&(i=t),e._inputCreateOnly&&(r=t,e.value=n,e.label=n,e._show=!0))})),-1===r&&-1===i&&t.push(e),-1!==i&&(t=t.filter((e=>!e._inputCreateOnly)))}else t=t.filter((e=>!e._inputCreateOnly));return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:n,filter:r,multiple:i,disabled:s}=this.getProps(),{isOpen:a}=this.getStates();if(!n&&!s)switch(t){case Zt.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Zt.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Zt.BACKSPACE:this._handleBackspaceKeyDown();break;case Zt.ENTER:Ce(e),this._handleEnterKeyDown(e);break;case Zt.ESC:a&&this.close({event:e}),r&&!i&&this._focusTrigger();break;case Zt.TAB:this._handleTabKeyDown(e)}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:n}=this.getStates();if(t===Zt.TAB)n&&this._handleTabKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:n}=this.getStates(),r=n.filter((e=>e._show)),i=r.length;let s=t+e;if(s<0&&(s=i-1),s>=i&&(s=0),e>0){let e=-1;for(let t=0;t<r.length;t++){if(!r[t].disabled&&(e=t),e>=s)break}s=e}else{let e=r.length;for(let t=i-1;t>=0;t--){if(!r[t].disabled&&(e=t),e<=s)break}s=e}this._adapter.updateFocusIndex(s),this._adapter.updateScrollTop(s)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const t=this._adapter.getContainer(),n=this._adapter.getFocusableElements(t);n.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(n,e):this._handlePanelOpenTabKeyDown(n,e):(this.close({event:e}),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const n=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?n===e[e.length-1]&&(this._focusTrigger(),this.close({event:t}),Ce(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ce(t))}_handlePanelOpenShiftTabKeyDown(e,t){const n=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?n===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ce(t)):(this.close({event:t}),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:n,focusIndex:r}=this.getStates();if(t)if(-1!==r){const t=n.filter((e=>e._show)),{length:i}=t;if(i<=r)return;if(t&&i){const n=t[r];if(n.disabled)return;this.onSelect(n,r,e)}}else this.close({event:e});else this.open()}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),n=e.size;if(n&&!t){const t=[...e.keys()];let r=n-1,i=t[r],s=e.get(i),a=!1;if(s.disabled&&0===r)return;for(;s.disabled&&0!==r;)r-=1,i=t[r],s=e.get(i),0==r&&s.disabled&&(a=!0);a||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),n=this.getState("selections");let r;const i=[...e.values()],s=this._isMultiple();if(this._diffSelections(e,n,s))switch(!0){case t:this._notifyChangeWithObject(e);break;case!t&&!s:r=i.length?i[0].value:void 0,this._adapter.notifyChange(r);break;case!t&&s:r=i.length?i.map((e=>e.value)):[],this._adapter.notifyChange(r)}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const n=this._removeInternalKey(t);this._adapter.notifySelect(e,n)}_notifyDeselect(e,t){const n=this._removeInternalKey(t);this._adapter.notifyDeselect(e,n)}_diffSelections(e,t,n){let r=!0,i=!0;if(!n){const n=[...e.values()],s=[...t.values()],a=n[0]?n[0].value:n[0],o=s[0]?s[0].value:s[0];i=!he()(a,o);const l=n[0]?n[0].label:n[0],c=s[0]?s[0].label:s[0];r=!he()(l,c)}return i||r}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const n of e.entries()){let e=Object.assign({label:n[0]},n[1]);e=this._removeInternalKey(e),t.push(e)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t,searchPosition:n}=this.getProps();t&&n===ZC.SEARCH_POSITION_TRIGGER&&this.clearInput(e),this.focus(),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===Yt&&this.handleClick(e)}handleClearBtnEnterPress(e){Jt(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){const{filter:t,autoFocus:n}=this.getProps(),{isOpen:r,isFocus:i}=this.getStates();i&&!r&&(this._notifyBlur(e),this._adapter.updateFocusState(!1))}handleInputBlur(e){const{filter:t,autoFocus:n}=this.getProps(),r=this._isMultiple();n&&t&&!r&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let n=[];this._isMultiple()?(n=t?e:e.map((e=>e.value)),this.handleValueChange(n),this._adapter.notifyChange(n)):console.warn("[Semi Select]: It seems that you have called the selectAll method in the single-selection Select.\n Please note that this is not a legal way to use it")}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:n,value:r}=t,i=r||n;ve(i)||Array.isArray(i)||ye(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:n,ellipsisTrigger:r}=this.getProps();r&&(t?this._adapter.updateOverflowItemCount(t):"number"==typeof n&&(e-n>0?this._adapter.updateOverflowItemCount(e-n):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const tE=ph.PREFIX,nE=fh,rE=yh;class iE extends h.PureComponent{renderNTag(e,t){const{size:n,showPopover:r,popoverProps:i,onPlusNMouseEnter:s}=this.props;let a=u().createElement(Sh,{closable:!1,size:n,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:s},"+",e);return r&&(a=u().createElement(pn,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${tE}-rest-group-popover`},i,{key:"_+n_Popover"}),a)),a}renderMergeTags(e){const{maxTagCount:t,tagList:n,restCount:r}=this.props,i=r||n.length-t;let s=e;const a=e.slice(0,t),o=e.slice(t);let l=null;return i>0&&(l=this.renderNTag(i,o),a.push(l),s=a),s}renderAllTags(){const{tagList:e,size:t,mode:n,avatarShape:r,onTagClose:i}=this.props,s=e.map((e=>{if("custom"===n)return e;const s=Object.assign({},e);return s.size||(s.size=t),s.avatarShape||(s.avatarShape=r),s.tagKey||("string"==typeof s.children||"number"==typeof s.children?s.tagKey=s.children:s.tagKey=Math.random()),u().createElement(Sh,Object.assign({},s,{key:s.tagKey,onClose:(e,t,n)=>{s.onClose&&s.onClose(e,t,n),i&&i(e,t,n)}}))}));return s}render(){const{style:e,className:t,maxTagCount:n,size:r}=this.props,i=x()({[`${tE}-group`]:!0,[`${tE}-group-max`]:n,[`${tE}-group-small`]:"small"===r,[`${tE}-group-large`]:"large"===r},t),s=this.renderAllTags(),a=void 0===n?s:this.renderMergeTags(s);return u().createElement("div",{style:e,className:i},a)}}iE.defaultProps={style:{},className:"",size:nE[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}},iE.propTypes={children:C().node,style:C().object,className:C().string,maxTagCount:C().number,restCount:C().number,tagList:C().array,size:C().oneOf(nE),mode:C().string,onTagClose:C().func,showPopover:C().bool,popoverProps:C().object,avatarShape:C().oneOf(rE)};var sE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const aE=(e,t,n,r)=>{const i=e.props;if(!e||!i)return null;const s=Object.assign(Object.assign({value:i.value,label:i.label||i.children||i.value,_show:!0,_selected:!1,_scrollIndex:n},i),{_parentGroup:t});return s._keyInJsx=r||e.key,s},oE=e=>{let{index:t,data:n,style:r}=e;const{visibleOptions:i,renderOption:s}=n;return s(i[t],t,r)};var lE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class cE extends h.PureComponent{onClick(e,t){var{value:n,label:r,children:i}=e,s=lE(e,["value","label","children"]);const{props:a}=this;a.disabled||a.onSelect(Object.assign(Object.assign({},s),{value:n,label:r||i}),t)}renderOptionContent(e){let{config:t,children:n,inputValue:r,prefixCls:i}=e;return ne()(n)&&r?He(t):n}render(){const e=this.props,{children:t,disabled:n,value:r,selected:i,label:s,empty:a,emptyContent:o,onSelect:l,focused:c,showTick:h,className:p,style:f,onMouseEnter:m,prefixCls:g,renderOptionItem:y,inputValue:v,semiOptionId:b}=e,w=lE(e,["children","disabled","value","selected","label","empty","emptyContent","onSelect","focused","showTick","className","style","onMouseEnter","prefixCls","renderOptionItem","inputValue","semiOptionId"]),C=x()(g,{[`${g}-disabled`]:n,[`${g}-selected`]:i,[`${g}-focused`]:c,[`${g}-empty`]:a,[p]:p}),E=x()([`${g}-icon`]);if(a)return null===o?null:u().createElement(Bt,{componentName:"Select"},(e=>u().createElement("div",{className:C,"x-semi-prop":"emptyContent"},o||e.emptyText)));if("function"==typeof y)return y(Object.assign({disabled:n,focused:c,selected:i,style:f,label:s,value:r,inputValue:v,onMouseEnter:e=>m(e),onClick:e=>this.onClick(Object.assign({value:r,label:s,children:t},w),e),className:p},w));const S={searchWords:v,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return u().createElement("div",Object.assign({className:C,onClick:e=>{this.onClick(Object.assign({value:r,label:s,children:t},w),e)},onMouseEnter:e=>m&&m(e),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":n?"true":"false",style:f},d(w)),h?u().createElement("div",{className:E},u().createElement(Gt,null)):null,ne()(t)?u().createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:S,inputValue:v,prefixCls:g})):t)}}cE.isSelectOption=!0,cE.propTypes={children:C().node,disabled:C().bool,value:C().oneOfType([C().string,C().number]),selected:C().bool,label:C().node,empty:C().bool,emptyContent:C().node,onSelect:C().func,focused:C().bool,showTick:C().bool,className:C().string,style:C().object,onMouseEnter:C().func,prefixCls:C().string,renderOptionItem:C().func,inputValue:C().string},cE.defaultProps={prefixCls:XC.PREFIX_OPTION};const hE=cE;var uE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const dE=XC.PREFIX_GROUP;class pE extends f{render(){const e=this.props,{label:t,className:n,style:r}=e,i=uE(e,["label","className","style"]),s=x()(n,{[dE]:!0});return t||"number"==typeof t?u().createElement("div",Object.assign({className:s,style:r},this.getDataAttr(i)),t):null}}pE.isSelectOptionGroup=!0,pE.propTypes={children:C().oneOfType([C().array,C().node]),label:C().node,className:C().string,style:C().object};const fE=pE;const mE=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}),"search");__webpack_require__("1Mf8");var gE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const yE=XC.PREFIX;class vE extends f{constructor(e){super(e),this.setOptionContainerEl=e=>this.optionContainerEl={current:e},this.handleInputChange=(e,t)=>this.foundation.handleInputChange(e,t),this.getTagItem=(e,t,n)=>{const{size:r,disabled:i}=this.props,s=e[0],{value:a}=e[1],o=e[1].disabled||i,l=(e,t)=>{t&&"function"==typeof t.preventDefault&&t.preventDefault(),this.foundation.removeTag({label:s,value:a})},{content:c,isRenderInTag:d}=n(e[1],{index:t,disabled:o,onClose:l}),p={disabled:o,closable:!o,onClose:l};return d?u().createElement(Sh,Object.assign({},p,{color:"white",size:r||"large",key:a,tabIndex:-1}),c):u().createElement(h.Fragment,{key:a},c)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:0,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=u().createRef(),this.inputRef=u().createRef(),this.dropdownInputRef=u().createRef(),this.triggerRef=u().createRef(),this.optionsRef=u().createRef(),this.optionContainerEl=u().createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new be,this.foundation=new eE(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:e=>{const t={onKeyDown:e};this.setState({keyboardEventSet:t})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:e=>{this.setState({focusIndex:e})},scrollToFocusOption:()=>{}},n={updateInputValue:e=>{this.setState({inputValue:e})},toggleInputShow:(e,t)=>{this.setState({showInput:e},(()=>{t()}))},focusInput:()=>{const{preventScroll:e}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:e})},focusDropdownInput:()=>{const{preventScroll:e}=this.props;this.dropdownInputRef&&this.dropdownInputRef.current&&this.dropdownInputRef.current.focus({preventScroll:e})}},r={notifyMaxLimit:e=>this.props.onExceed(e),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:e=>{const t=t=>{const n=this.optionsRef&&this.optionsRef.current,r=this.triggerRef&&this.triggerRef.current,i=ge().findDOMNode(n),s=t.target,a=t.composedPath&&t.composedPath()||[s];i&&i.contains(s)||r&&r.contains(s)||a.includes(r)||a.includes(i)||e(t)};this.clickOutsideHandler=t,document.addEventListener("mousedown",t,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:e}=this.state;e+=1,this.setState({optionKey:e})},notifyDeselect:(e,t)=>{delete t._parentGroup,this.props.onDeselect(e,t)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),n),r),{on:(e,t)=>this.eventManager.on(e,t),off:e=>this.eventManager.off(e),once:(e,t)=>this.eventManager.once(e,t),emit:e=>this.eventManager.emit(e),getOptionsFromChildren:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props.children,n=[],r=[];const{optionList:i}=e.props;if(i&&i.length)r=i.map(((e,t)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:t},e))),n[0]={children:r,label:""};else{const e=(e=>{let t=[],n=[];const r={label:"",children:[],_show:!1};let i=u().Children.toArray(e);i=i.filter((e=>e&&e.props));let s="",a=-1;return i.forEach((e=>{if(e.type.isSelectOption){s="option",a++;const t=aE(e,void 0,a);r.children.push(t),n.push(t)}else if(e.type.isSelectOptionGroup){s="group";let r=e.props,{children:i}=r,o=sE(r,["children"]),l=[];Array.isArray(i)?l=i.map((e=>e.key)):l.push(i.key),i=u().Children.toArray(i);const c=i.map(((t,n)=>{let r=t.key;return null===l[n]&&(r=e.key+""+t.key),a++,aE(t,o,a,r)})),h=Object.assign(Object.assign({},e.props),{children:c,key:e.key});t.push(h),n=n.concat(c)}else ye(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")})),"option"===s&&(t=[r]),{optionGroups:t,options:n}})(t);n=e.optionGroups,r=e.options}return e.setState({optionGroups:n}),r},updateOptions:e=>{this.setState({options:e})},openMenu:e=>{this.setState({isOpen:!0},(()=>{null==e||e()}))},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const e=this.triggerRef.current;return e&&e.getBoundingClientRect().width},setOptionWrapperWidth:e=>{this.setState({dropdownMinWidth:e})},updateSelection:e=>{this.setState({selections:e})},getSelections:()=>new Map(this.state.selections),notifyChange:e=>{this.props.onChange(e)},notifySelect:(e,t)=>{delete t._parentGroup,this.props.onSelect(e,t)},notifyDropdownVisibleChange:e=>{this.props.onDropdownVisibleChange(e)},notifySearch:(e,t)=>{this.props.onSearch(e,t)},notifyCreate:e=>{this.props.onCreate(e)},notifyMouseEnter:e=>{this.props.onMouseEnter(e)},notifyMouseLeave:e=>{this.props.onMouseLeave(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyBlur:e=>{this.props.onBlur(e)},notifyClear:()=>{this.props.onClear()},notifyListScroll:e=>{this.props.onListScroll(e)},updateHovering:e=>{this.setState({isHovering:e})},updateFocusState:e=>{this.setState({isFocus:e})},updateOverflowItemCount:e=>{this.setState({overflowItemCount:e})},focusTrigger:()=>{try{const{preventScroll:e}=this.props;this.triggerRef.current.focus({preventScroll:e})}catch(e){}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:e=>Ge(e),getActiveElement:()=>We(),setIsFocusInContainer:e=>{this.setState({isFocusInContainer:e})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:e=>{let t=`.${yE}-option-selected`;void 0!==e&&(t=`.${yE}-option:nth-child(${e})`);let n=document.querySelector(`#${yE}-${this.selectOptionListID} ${t}`);if(Array.isArray(n)&&(n=n[0]),n){const e=n.parentNode;e.scrollTop=n.offsetTop-e.offsetTop-e.clientHeight/2+n.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Ae(),this.selectID=this.props.id||Ae()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const n=u().Children.toArray(e.children).map((e=>e.key)),r=u().Children.toArray(this.props.children).map((e=>e.key));let i=!1;he()(n,r)&&he()(e.optionList,this.props.optionList)||(i=!0,this.foundation.handleOptionListChange()),he()(this.props.value,e.value)&&!i||("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderTriggerInput(){const{size:e,multiple:t,disabled:n,inputProps:r,filter:i}=this.props,s=a()(r,"className"),o=x()(`${yE}-input`,{[`${yE}-input-single`]:!t,[`${yE}-input-multiple`]:t},s),{inputValue:l,focusIndex:c}=this.state,h=Object.assign({value:l,disabled:n,className:o,onChange:this.handleInputChange},r);let d={};return t&&(d={width:l?16*l.length+"px":"2px"},h.style=d),u().createElement(gr,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":-1!==c?`${this.selectID}-option-${c}`:"",onFocus:e=>{t&&Boolean(i)&&this.setState({isFocus:!0}),e.stopPropagation()},onBlur:e=>this.foundation.handleInputBlur(e)},h))}renderDropdownInput(){const{size:e,multiple:t,disabled:n,inputProps:r,filter:i,searchPosition:s,searchPlaceholder:o}=this.props,{inputValue:l,focusIndex:c}=this.state,h=x()(`${yE}-dropdown-search-wrapper`,{}),d=a()(r,"className"),p=x()(`${yE}-dropdown-input`,{[`${yE}-dropdown-input-single`]:!t,[`${yE}-dropdown-input-multiple`]:t},d),f=Object.assign(Object.assign({value:l,disabled:n,className:p,onChange:this.handleInputChange,placeholder:o,showClear:!0},r),{onKeyDown:e=>this.foundation._handleKeyDown(e)});return u().createElement("div",{className:h},u().createElement(gr,Object.assign({ref:this.dropdownInputRef,prefix:u().createElement(mE,null),"aria-activedescendant":-1!==c?`${this.selectID}-option-${c}`:""},f)))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,n){this.foundation.onSelect(e,t,n)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return u().createElement(hE,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${yE}-loading-wrapper`;return u().createElement("div",{className:e},u().createElement(tr,null))}renderOption(e,t,n){const{focusIndex:r,inputValue:i}=this.state,{renderOptionItem:s}=this.props;let a;const o=t===r;let l=n||{};return e.style&&(l=Object.assign(Object.assign({},l),e.style)),e._inputCreateOnly?a=this.renderCreateOption(e,o,t,n):("key"in e&&(e._keyInOptionList=e.key),a=u().createElement(hE,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(e,n)=>this.onSelect(e,t,n),focused:o,onMouseEnter:()=>this.onOptionHover(t),style:l,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:s,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),a}renderCreateOption(e,t,n,r){const{renderCreateItem:i}=this.props;if(void 0===i){const i=u().createElement(hE,Object.assign({key:e.key||e.label+e.value,onSelect:(e,t)=>this.onSelect(e,n,t),onMouseEnter:()=>this.onOptionHover(n),showTick:!0},e,{focused:t,style:r}),u().createElement(Bt,{componentName:"Select"},(t=>u().createElement(u().Fragment,null,u().createElement("span",{className:`${yE}-create-tips`},t.createText),e.value))));return i}const s=i(e.value,t,r);return u().createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:t=>this.onSelect(e,n,t),key:e.key||e.label},s)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],n=new Map;return e.forEach(((e,r)=>{const i=e._parentGroup,s=this.renderOption(e,r);if(i&&!n.has(i.label)){const e=u().createElement(fE,Object.assign({},i,{key:i.label}));n.set(i.label,!0),t.push(e)}t.push(s)})),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:n}=this.context,{height:r,width:i,itemSize:s}=t;return u().createElement(ch,{ref:this.virtualizeListRef,height:r||JC,itemCount:e.length,itemSize:s,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:n}},oE)}renderOptions(e){const{dropdownMinWidth:t,options:n,selections:r}=this.state,{maxHeight:i,dropdownClassName:s,dropdownStyle:a,outerTopSlot:o,innerTopSlot:l,outerBottomSlot:c,innerBottomSlot:h,loading:d,virtualize:p,multiple:f,emptyContent:m,searchPosition:g,filter:y}=this.props,v=n.filter((e=>e._show));let b=this.renderWithGroup(v);p&&(b=this.renderVirtualizeList(v));const w=Object.assign({minWidth:t},a),C=x()({[`${yE}-option-list`]:!0,[`${yE}-option-list-chosen`]:r.size}),E=!n.length||!n.some((e=>e._show));return u().createElement("div",{id:`${yE}-${this.selectOptionListID}`,className:x()({[`${yE}-option-list-wrapper`]:!(E&&null===m)},s),style:w,ref:this.setOptionContainerEl,onKeyDown:e=>this.foundation.handleContainerKeyDown(e)},o?u().createElement("div",{className:`${yE}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},o):null,g===ZC.SEARCH_POSITION_DROPDOWN&&y?this.renderDropdownInput():null,u().createElement("div",{style:{maxHeight:`${i}px`},className:C,role:"listbox","aria-multiselectable":f,onScroll:e=>this.foundation.handleListScroll(e)},l?u().createElement("div",{className:`${yE}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,d?this.renderLoading():E?this.renderEmpty():b,h?u().createElement("div",{className:`${yE}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},h):null),c?u().createElement("div",{className:`${yE}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:n,searchPosition:r}=this.props;const{placeholder:i}=this.props,{showInput:s,inputValue:a}=this.state;let o="";const l=[...e];if(void 0===n&&(n=e=>e.label),l.length){o=n(l[0][1])}const c=r===ZC.SEARCH_POSITION_TRIGGER,h=x()({[`${yE}-selection-text`]:!0,[`${yE}-selection-placeholder`]:!o&&0!==o,[`${yE}-selection-text-hide`]:a&&s&&c,[`${yE}-selection-text-inactive`]:!a&&s&&c}),d=`${yE}-content-wrapper`;return u().createElement(u().Fragment,null,u().createElement("div",{className:d},u().createElement("span",{className:h,"x-semi-prop":"placeholder"},o||0===o?o:i),t&&s&&c?this.renderTriggerInput():null))}renderTag(e,t,n){const{size:r,disabled:i}=this.props;let{renderSelectedItem:s}=this.props;const a=e[0],{value:o}=e[1],l=e[1].disabled||i,c=(e,t)=>{t&&"function"==typeof t.preventDefault&&t.preventDefault(),this.foundation.removeTag({label:a,value:o})};void 0===s&&(s=e=>({isRenderInTag:!0,content:e.label}));const{content:d,isRenderInTag:p}=s(e[1],{index:t,disabled:l,onClose:c}),f={disabled:l,closable:!l,onClose:c},m=n&&!J()(this.props.renderSelectedItem)?u().createElement(Sn,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return p?u().createElement(Sh,Object.assign({},f,{color:"white",size:r||"large",key:o,style:{maxWidth:"100%"}}),m):u().createElement(h.Fragment,{key:o},m)}renderNTag(e,t){const{size:n,showRestTagsPopover:r,restTagsPopoverProps:i}=this.props;let s=u().createElement(Sh,{closable:!1,size:n||"large",color:"grey",className:`${yE}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return r&&(s=u().createElement(pn,Object.assign({showArrow:!0,content:u().createElement(jo,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map(((e,t)=>this.renderTag(e,t)))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),s)),s}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:n}=this.state,{maxTagCount:r}=this.props,i=n.size-r>0?n.size-r+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(n.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:n}=this.state,r="number"==typeof t?e.slice(0,t):e;return u().createElement("div",{className:`${yE}-content-wrapper-collapse`},u().createElement(WC,{items:r,key:String(e.length),overflowRenderer:e=>this.renderOverflow(e,t-1),onOverflow:e=>this.handleOverflow(e),visibleItemRenderer:(e,t)=>this.renderTag(e,t)}),n>0&&this.renderNTag(n,e.slice(e.length-n)))}renderOneLineTags(e,t){let{renderSelectedItem:n}=this.props;const{showRestTagsPopover:r,restTagsPopoverProps:i,maxTagCount:s}=this.props,{isFullTags:a}=this.state;let o;if(void 0===n&&(n=e=>({isRenderInTag:!0,content:e.label})),r){const l=(a?e:e.slice(0,s)).map(((e,t)=>this.getTagItem(e,t,n)));o=u().createElement(iE,{tagList:l,maxTagCount:t,restCount:a?void 0:e.length-s,size:"large",mode:"custom",showPopover:r,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const r=e.slice(0,s).map(((e,t)=>this.getTagItem(e,t,n)));o=u().createElement(iE,{tagList:r,maxTagCount:t,restCount:e.length-s,size:"large",mode:"custom"})}return o}renderMultipleSelection(e,t){let{renderSelectedItem:n,searchPosition:r}=this.props;const{placeholder:i,maxTagCount:s,expandRestTagsOnClick:a,ellipsisTrigger:o}=this.props,{inputValue:l,isOpen:c}=this.state,h=[...e];void 0===n&&(n=e=>({isRenderInTag:!0,content:e.label}));const d=x()({[`${yE}-content-wrapper`]:!0,[`${yE}-content-wrapper-one-line`]:s&&!c,[`${yE}-content-wrapper-empty`]:!h.length}),p=x()({[`${yE}-selection-text`]:!0,[`${yE}-selection-placeholder`]:!h.length,[`${yE}-selection-text-hide`]:h&&h.length}),f=i&&!l?u().createElement("span",{className:p},i):null,m=h.length>s?s:void 0,g=!s,y=o?this.renderCollapsedTags(h,m):this.renderOneLineTags(h,m),v=g||a&&c?h.map(((e,t)=>this.renderTag(e,t))):y,b=t&&r===ZC.SEARCH_POSITION_TRIGGER;return u().createElement(u().Fragment,null,u().createElement("div",{className:d},h&&h.length?v:f,b?this.renderTriggerInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:n}=this.state;if(e)if(t){let e=-1;if(n.forEach((t=>{const n=a()(t,"_scrollIndex");Kn()(n)&&n>=0&&(e=-1!==e&&e<n?e:n)})),-1!==e)try{this.virtualizeListRef.current.scrollToItem(e,"center")}catch(e){}}else this.foundation.updateScrollTop()}renderSuffix(){const{suffix:e}=this.props,t=x()({[`${yE}-suffix`]:!0,[`${yE}-suffix-text`]:e&&ne()(e),[`${yE}-suffix-icon`]:Ue(e)});return u().createElement("div",{className:t,"x-semi-prop":"suffix"},e)}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:n}=this.props,r=e||t,i=x()({[`${yE}-prefix`]:!0,[`${yE}-inset-label`]:t,[`${yE}-prefix-text`]:r&&ne()(r),[`${yE}-prefix-icon`]:Ue(r)});return u().createElement("div",{className:i,id:n,"x-semi-prop":"prefix,insetLabel"},r)}renderSelection(){const e=this.props,{disabled:t,multiple:n,filter:r,style:i,id:s,size:a,className:o,validateStatus:l,showArrow:c,suffix:d,prefix:p,insetLabel:f,placeholder:m,triggerRender:g,arrowIcon:y,clearIcon:v,borderless:b}=e,w=gE(e,["disabled","multiple","filter","style","id","size","className","validateStatus","showArrow","suffix","prefix","insetLabel","placeholder","triggerRender","arrowIcon","clearIcon","borderless"]),{selections:C,isOpen:E,keyboardEventSet:S,inputValue:_,isHovering:k,isFocus:P,showInput:O,focusIndex:T}=this.state,I="function"==typeof g,D=Boolean(r),A=I?x()(o):x()(yE,o,{[`${yE}-borderless`]:b,[`${yE}-open`]:E,[`${yE}-focus`]:P,[`${yE}-disabled`]:t,[`${yE}-single`]:!n,[`${yE}-multiple`]:n,[`${yE}-filterable`]:D,[`${yE}-small`]:"small"===a,[`${yE}-large`]:"large"===a,[`${yE}-error`]:"error"===l,[`${yE}-warning`]:"warning"===l,[`${yE}-no-arrow`]:!c,[`${yE}-with-prefix`]:p||f,[`${yE}-with-suffix`]:d}),R=this.props.showClear&&(C.size||_)&&!t&&(k||E),N=c?u().createElement("div",{className:`${yE}-arrow`,"x-semi-prop":"arrowIcon"},y):u().createElement("div",{className:`${yE}-arrow-empty`}),M=v||u().createElement(ar,null),F=I?u().createElement(br,{value:Array.from(C.values()),inputValue:_,onChange:this.handleInputChange,onSearch:this.handleInputChange,onRemove:e=>this.foundation.removeTag(e),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:m,componentName:"Select",componentProps:Object.assign({},this.props)}):[u().createElement(h.Fragment,{key:"prefix"},p||f?this.renderPrefix():null),u().createElement(h.Fragment,{key:"selection"},u().createElement("div",{className:x()(`${yE}-selection`)},n?this.renderMultipleSelection(C,D):this.renderSingleSelection(C,D))),u().createElement(h.Fragment,{key:"clearicon"},R?u().createElement("div",{className:x()(`${yE}-clear`),onClick:this.onClear},M):N),u().createElement(h.Fragment,{key:"suffix"},d?this.renderSuffix():null)],L=t||D&&O||D&&n?-1:0;return u().createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":E,"aria-controls":`${yE}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":C.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:A,ref:e=>this.triggerRef.current=e,onClick:e=>this.foundation.handleClick(e),style:i,id:this.selectID,tabIndex:L,"aria-activedescendant":-1!==T?`${this.selectID}-option-${T}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:e=>this.foundation.handleTriggerFocus(e),onBlur:e=>this.foundation.handleTriggerBlur(e),onKeyPress:this.onKeyPress},S,this.getDataAttr(w)),F)}render(){const{direction:e}=this.context,t="rtl"===e?"bottomRight":"bottomLeft",{children:n,position:r=t,zIndex:i,getPopupContainer:s,motion:a,autoAdjustOverflow:o,mouseLeaveDelay:l,mouseEnterDelay:c,spacing:h,stopPropagation:d,dropdownMargin:p}=this.props,{isOpen:f,optionKey:m}=this.state,g=this.renderOptions(n),y=this.renderSelection();return u().createElement(pn,{getPopupContainer:s,motion:a,margin:p,autoAdjustOverflow:o,mouseLeaveDelay:l,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:g,visible:f,trigger:"custom",rePosKey:m,position:r,spacing:h,stopPropagation:d,disableArrowKeyDown:!0,onVisibleChange:e=>this.handlePopoverVisibleChange(e),afterClose:()=>this.foundation.handlePopoverClose()},y)}}vE.contextType=Ze,vE.Option=hE,vE.OptGroup=fE,vE.propTypes={"aria-describedby":C().string,"aria-errormessage":C().string,"aria-invalid":C().bool,"aria-labelledby":C().string,"aria-required":C().bool,autoFocus:C().bool,autoClearSearchValue:C().bool,borderless:C().bool,children:C().node,clearIcon:C().node,defaultValue:C().oneOfType([C().string,C().number,C().array,C().object]),ellipsisTrigger:C().bool,value:C().oneOfType([C().string,C().number,C().array,C().object]),placeholder:C().node,onChange:C().func,multiple:C().bool,filter:C().oneOfType([C().func,C().bool]),max:C().number,maxTagCount:C().number,maxHeight:C().oneOfType([C().string,C().number]),style:C().object,className:C().string,size:C().oneOf(ZC.SIZE_SET),disabled:C().bool,emptyContent:C().node,expandRestTagsOnClick:C().bool,onDropdownVisibleChange:C().func,zIndex:C().number,position:C().oneOf(ZC.POSITION_SET),onSearch:C().func,getPopupContainer:C().func,dropdownClassName:C().string,dropdownStyle:C().object,dropdownMargin:C().oneOfType([C().number,C().object]),outerTopSlot:C().node,innerTopSlot:C().node,inputProps:C().object,outerBottomSlot:C().node,innerBottomSlot:C().node,optionList:C().array,dropdownMatchSelectWidth:C().bool,loading:C().bool,defaultOpen:C().bool,validateStatus:C().oneOf(ZC.STATUS),defaultActiveFirstOption:C().bool,triggerRender:C().func,stopPropagation:C().bool,searchPosition:C().string,motion:C().bool,onChangeWithObject:C().bool,suffix:C().node,prefix:C().node,insetLabel:C().node,insetLabelId:C().string,showClear:C().bool,showArrow:C().bool,renderSelectedItem:C().func,allowCreate:C().bool,renderCreateItem:C().func,onMouseEnter:C().func,onMouseLeave:C().func,clickToHide:C().bool,onExceed:C().func,onCreate:C().func,remote:C().bool,onDeselect:C().func,onSelect:C().func,autoAdjustOverflow:C().bool,mouseEnterDelay:C().number,mouseLeaveDelay:C().number,spacing:C().oneOfType([C().number,C().object]),onBlur:C().func,onFocus:C().func,onClear:C().func,virtualize:C().object,renderOptionItem:C().func,onListScroll:C().func,arrowIcon:C().node,preventScroll:C().bool},vE.__SemiComponentName__="Select",vE.defaultProps=Xe(vE.__SemiComponentName__,{stopPropagation:!0,motion:!0,borderless:!1,zIndex:sn.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:i(),onChangeWithObject:!1,onChange:i(),onSearch:i(),onMouseEnter:i(),onMouseLeave:i(),onDeselect:i(),onSelect:i(),onCreate:i(),onExceed:i(),onFocus:i(),onBlur:i(),onClear:i(),onListScroll:i(),maxHeight:JC,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,searchPosition:ZC.SEARCH_POSITION_TRIGGER,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:u().createElement(yc,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1});const bE=vE;var xE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const wE=GC.PREFIX,{Option:CE}=bE;class EE extends f{constructor(e){super(e);const t=e.total,n=e.pageSize||e.pageSizeOpts[0]||qC.DEFAULT_PAGE_SIZE,r="small"===e.size&&e.hoverShowPageSelect&&!e.disabled;this.state={total:t,showTotal:e.showTotal,currentPage:e.currentPage||e.defaultCurrentPage,pageSize:n,pageList:[],prevDisabled:!1,nextDisabled:!1,restLeftPageList:[],restRightPageList:[],quickJumpPage:"",allPageNumbers:r?Array.from({length:Math.ceil(t/n)},((e,t)=>t+1)):[]},this.foundation=new YC(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),ye(Boolean(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:n,restRightPageList:r}=e;this.setState({pageList:t,restLeftPageList:n,restRightPageList:r})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let n=!1,r=!1;e.currentPage!==this.props.currentPage&&(n=!0),e.total!==this.props.total&&(n=!0,r=!0),e.pageSize!==this.props.pageSize&&(n=!0,r=!0),n&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),r&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:n}=this.state,r=n||t,i=x()({[`${wE}-item`]:!0,[`${wE}-prev`]:!0,[`${wE}-item-disabled`]:r});return u().createElement("li",{role:"button","aria-disabled":!!r,"aria-label":"Previous",onClick:e=>!r&&this.foundation.goPrev(e),className:i,"x-semi-prop":"prevText"},e||u().createElement(dl,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:n}=this.state,r=n||t,i=x()({[`${wE}-item`]:!0,[`${wE}-item-disabled`]:r,[`${wE}-next`]:!0});return u().createElement("li",{role:"button","aria-disabled":!!r,"aria-label":"Next",onClick:e=>!r&&this.foundation.goNext(e),className:i,"x-semi-prop":"nextText"},e||u().createElement(pl,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,n="rtl"===t?"bottomRight":"bottomLeft",{showSizeChanger:r,popoverPosition:i=n,disabled:s,popoverZIndex:a}=this.props,{pageSize:o}=this.state,l=x()(`${wE}-switch`);if(!r)return null;const c=this.foundation.pageSizeInOpts(),h=e.pageSize,d=c.map((e=>u().createElement(CE,{value:e,key:e},u().createElement("span",null,h.replace("${pageSize}",e.toString())))));return u().createElement("div",{className:l},u().createElement(bE,{"aria-label":"Page size selector",disabled:s,onChange:e=>this.foundation.changePageSize(e),value:o,key:o,position:i||"bottomRight",clickToHide:!0,zIndex:a,dropdownClassName:`${wE}-select-dropdown`},d))}renderQuickJump(e){const{showQuickJumper:t,disabled:n}=this.props,{quickJumpPage:r,total:i,pageSize:s}=this.state;if(!t)return null;const a=1===this.foundation._getTotalPageNumber(i,s)||n,o=x()({[`${wE}-quickjump`]:!0,[`${wE}-quickjump-disabled`]:a});return u().createElement("div",{className:o},u().createElement("span",null,e.jumpTo),u().createElement(Fw,{value:r,className:`${wE}-quickjump-input-number`,hideButtons:!0,disabled:a,onBlur:e=>this.foundation.handleQuickJumpBlur(),onEnterPress:e=>this.foundation.handleQuickJumpEnterPress(e.target.value),onChange:e=>this.foundation.handleQuickJumpNumberChange(e)}),u().createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:n,restRightPageList:r}=this.state,{popoverPosition:i,popoverZIndex:s,disabled:a}=this.props;return e.map(((e,o)=>{const l=x()(`${wE}-item`,{[`${wE}-item-active`]:t===e,[`${wE}-item-all-disabled`]:a,[`${wE}-item-all-disabled-active`]:t===e&&a}),c=u().createElement("li",{key:`${e}${o}`,onClick:()=>!a&&this.foundation.goPage(e,o),className:l,"aria-label":"..."===e?"More":`Page ${e}`,"aria-current":t===e&&"page"},e);if("..."===e&&!a){let t;return t=o<3?n:r,u().createElement(pn,{rePosKey:this.props.currentPage,trigger:"hover",content:this.renderRestPageList(t),key:`${e}${o}`,position:i,zIndex:s},c)}return c}))}renderRestPageList(e){const{direction:t}=this.context,n=x()(`${wE}-rest-item`),r=e.length,i=t=>{const{index:r,style:i}=t,s=e[r];return u().createElement("div",{role:"listitem",key:`${s}${r}`,className:n,onClick:()=>this.foundation.goPage(s,r),style:i,"aria-label":`${s}`},s)},s=r>=5?160:32*r;return u().createElement(ch,{className:`${wE}-rest-list`,itemData:e,itemSize:32,width:78,itemCount:r,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,n=this.renderRestPageList(t);return u().createElement(pn,{content:n},e)}renderSmallPage(e){const t=this.props,{className:n,style:r,hideOnSinglePage:i,hoverShowPageSelect:s,showSizeChanger:a,disabled:o}=t,l=xE(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=x()(`${wE}-small`,wE,n,{[`${wE}-disabled`]:o}),{currentPage:h,total:d,pageSize:p}=this.state,f=Math.ceil(d/p);if(f<2&&i&&!a)return null;const m=x()({[`${wE}-item`]:!0,[`${wE}-item-small`]:!0,[`${wE}-item-all-disabled`]:o}),g=u().createElement("div",{className:m},h,"/",f," ");return u().createElement("div",Object.assign({className:c,style:r},this.getDataAttr(l)),this.renderPrevBtn(),s&&!o?this.renderSmallPageSelect(g):g,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:n}=this.state,r=this.props,{showTotal:i,className:s,style:a,hideOnSinglePage:o,showSizeChanger:l,disabled:c}=r,h=xE(r,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),d=x()(s,`${wE}`,{[`${wE}-disabled`]:c}),p=`${wE}-total`;if(Math.ceil(t/n)<2&&o&&!l)return null;const f=Math.ceil(t/n),m=e.total.replace("${total}",f.toString());return u().createElement("ul",Object.assign({className:d,style:a},this.getDataAttr(h)),i?u().createElement("span",{className:p},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return u().createElement(Bt,{componentName:"Pagination"},(t=>"small"===e?this.renderSmallPage(t):this.renderDefaultPage(t)))}}EE.contextType=Ze,EE.propTypes={total:C().number,showTotal:C().bool,pageSize:C().number,pageSizeOpts:C().array,size:C().string,currentPage:C().number,defaultCurrentPage:C().number,onPageChange:C().func,onPageSizeChange:C().func,onChange:C().func,prevText:C().node,nextText:C().node,showSizeChanger:C().bool,popoverZIndex:C().number,popoverPosition:C().string,style:C().object,className:C().string,hideOnSinglePage:C().bool,hoverShowPageSelect:C().bool,showQuickJumper:C().bool,disabled:C().bool},EE.defaultProps={total:1,popoverZIndex:sn.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:qC.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:i(),onPageSizeChange:i(),onChange:i(),showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const SE={PREFIX:`${E}-popconfirm`,POPOVER:`${E}-popconfirm-popover`};class _E extends c{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);yb(t)?(this._adapter.updateCancelLoading(!0),t.then((e=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)}),(e=>{this._adapter.updateCancelLoading(!1)}))):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);yb(t)?(this._adapter.updateConfirmLoading(!0),t.then((e=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)}),(e=>{this._adapter.updateConfirmLoading(!1)}))):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();a()(e,"autoFocus")&&!a()(e,"disabled")?this._adapter.focusCancelButton():a()(t,"autoFocus")&&!a()(t,"disabled")&&this._adapter.focusOkButton()}}__webpack_require__("GKo3");var kE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class PE extends f{constructor(e){super(e),this.handleCancel=e=>this.foundation.handleCancel(e&&e.nativeEvent),this.handleConfirm=e=>this.foundation.handleConfirm(e&&e.nativeEvent),this.handleVisibleChange=e=>this.foundation.handleVisibleChange(e),this.handleClickOutSide=e=>this.foundation.handleClickOutSide(e),this.stopImmediatePropagation=e=>e&&e.nativeEvent&&e.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=e=>{let{initialFocusRef:t}=e;const{content:n,title:r,className:i,style:s,cancelType:a,icon:o,prefixCls:l,showCloseIcon:c}=this.props,{direction:h}=this.context,d=x()(l,i,{[`${l}-rtl`]:"rtl"===h}),p=null!=r,f=!(null==n),m=u().isValidElement(o),g=x()({[`${l}-body`]:!0,[`${l}-body-withIcon`]:m});return u().createElement("div",{className:d,onClick:this.stopImmediatePropagation,style:s},u().createElement("div",{className:`${l}-inner`},u().createElement("div",{className:`${l}-header`},m?u().createElement("i",{className:`${l}-header-icon`,"x-semi-prop":"icon"},o):null,u().createElement("div",{className:`${l}-header-body`},p?u().createElement("div",{className:`${l}-header-title`,"x-semi-prop":"title"},r):null),c?u().createElement(Ji,{className:`${l}-btn-close`,icon:u().createElement(Ri,null),size:"small",theme:"borderless",type:a,onClick:this.handleCancel}):null),f?u().createElement("div",{className:g,"x-semi-prop":"content"},J()(n)?n({initialFocusRef:t}):n):null,u().createElement("div",{className:`${l}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new _E(this.adapter),this.footerRef=u().createRef(),this.popoverRef=u().createRef()}static getDerivedStateFromProps(e,t){const n={},{hasOwnProperty:r}=Object.prototype;return r.call(e,"visible")&&(n.visible=e.visible),n}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const n=null===(t=null===(e=this.footerRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.querySelector("[data-type=cancel]");null==n||n.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const n=null===(t=null===(e=this.footerRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.querySelector("[data-type=ok]");null==n||n.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;null===(e=this.popoverRef.current)||void 0===e||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:n,cancelType:r,cancelButtonProps:i,okButtonProps:s}=this.props,{cancelLoading:o,confirmLoading:l}=this.state;return u().createElement(Bt,{componentName:"Popconfirm"},((c,h)=>u().createElement(u().Fragment,null,u().createElement(Ji,Object.assign({"data-type":"cancel",type:r,onClick:this.handleCancel,loading:o},ae()(i,"autoFocus")),t||a()(c,"cancel")),u().createElement(Ji,Object.assign({"data-type":"ok",type:n,theme:"solid",onClick:this.handleConfirm,loading:l},ae()(s,"autoFocus")),e||a()(c,"confirm")))))}render(){const{direction:e}=this.context,t="rtl"===e?"bottomRight":"bottomLeft",n=this.props,{className:r,prefixCls:i,disabled:s,children:a,style:o,position:l=t}=n,c=kE(n,["className","prefixCls","disabled","children","style","position"]);if(s)return a;const{visible:h}=this.state,d={onVisibleChange:this.handleVisibleChange,className:SE.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(d.trigger="custom"),u().createElement(pn,Object.assign({ref:this.popoverRef},c,{content:e=>{let{initialFocusRef:t}=e;return this.renderConfirmPopCard({initialFocusRef:t})},visible:h,position:l},d),a)}}PE.contextType=Ze,PE.propTypes={motion:C().oneOfType([C().bool,C().func,C().object]),disabled:C().bool,content:C().oneOfType([C().node,C().func]),title:C().any,prefixCls:C().string,className:C().string,style:C().object,icon:C().node,okText:C().string,okType:C().string,cancelText:C().string,cancelType:C().string,onCancel:C().func,onConfirm:C().func,onClickOutSide:C().func,onVisibleChange:C().func,visible:C().bool,defaultVisible:C().bool,okButtonProps:C().object,cancelButtonProps:C().object,stopPropagation:C().oneOfType([C().bool,C().string]),showCloseIcon:C().bool,zIndex:C().number,trigger:C().string,position:C().string},PE.__SemiComponentName__="Popconfirm",PE.defaultProps=Xe(PE.__SemiComponentName__,{stopPropagation:!0,trigger:"click",onVisibleChange:i(),disabled:!1,icon:u().createElement(Ni,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:SE.PREFIX,zIndex:1030,showCloseIcon:!0,onCancel:i(),onConfirm:i(),onClickOutSide:i()});const OE={PREFIX:`${E}-progress`},TE={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};__webpack_require__("3zWe");function IE(e,t,n){try{const r=function(e,t,n){if(e.sort(((e,t)=>e.percent-t.percent)),e[0].percent>t)return TE.STROKE_DEFAULT;const r=e[e.length-1];if(r.percent<t)return AE(r.color);for(const[r,i]of e.entries()){if(i.percent===t)return AE(i.color);if(t>i.percent)continue;const s=e[r-1];return n?DE({startColor:AE(s.color),endColor:AE(i.color),size:i.percent-s.percent-1},t-s.percent-1):AE(s.color)}return}(e,t,n);if(0!==r.length)return r}catch(e){return}}function DE(e,t){const{startColor:n,endColor:r,size:i}=e,s=n.split(""),a=r.split(""),o=[parseInt(`${s[1]}${s[2]}`,16),parseInt(`${a[1]}${a[2]}`,16)],l=[parseInt(`${s[3]}${s[4]}`,16),parseInt(`${a[3]}${a[4]}`,16)],c=[parseInt(`${s[5]}${s[6]}`,16),parseInt(`${a[5]}${a[6]}`,16)],h=[parseInt(`${s[7]}${s[8]}`,16),parseInt(`${a[7]}${a[8]}`,16)],u=(o[0]-o[1])/(i+1),d=(l[0]-l[1])/(i+1),p=(c[0]-c[1])/(i+1),f=(h[0]-h[1])/(i+1);function m(e){const t=Math.round(o[0]-u*(e+1)).toString(16),n=Math.round(l[0]-d*(e+1)).toString(16),r=Math.round(c[0]-p*(e+1)).toString(16),i=`${g(t)}${g(n)}${g(r)}`,s=Math.floor(f*(e+1)+h[1]).toString(16);return RE.Hex(`#${i}`,s)}function g(e){return 1===e.length?`0${e}`:0===e.length?"00":e}if(void 0===t){const e=[n];for(let t=0;t<i;t+=1)e.push(m(t));return e}return m(t)}function AE(e){return e=e.trim().toLowerCase(),NE.hex.test(e)?RE.Hex(e,void 0):NE.hslA.test(e)?RE.Hex(RE.HslA(e),void 0):NE.rgbA.test(e)?RE.Hex(RE.RgbA(e),void 0):NE.semiDesignTokens.test(e)?-1!==ME.ALONG.indexOf(e)?RE.SemiDesignToken(e):-1!==ME.SEQUENCE.indexOf(e)?RE.SemiDesignToken(`${e}-5`):RE.SemiDesignToken(`${e}`):void 0}const RE={Hex:(e,t)=>8===(e=e.replace("#","")).length?`#${e}`:(6===e.length||3===e.length&&(e=e.split("").map((e=>e+e)).join("")),`#${e}${t||"ff"}`),SemiDesignToken(e){if("undefined"==typeof window)return;const t=getComputedStyle(document.body).getPropertyValue(`--semi-${e}`);if(""===t)return;const n=`rgba(${t}, 1)`;return RE.RgbA(n)},HslA(e){const t=NE.hslA.exec(e),n=parseInt(t[2]),r=parseInt(t[3])/100,i=parseInt(t[4])/100,s=t[5],a=(1-Math.abs(2*i-1))*r,o=a*(1-Math.abs(n/60%2-1)),l=i-a/2;let c=0,h=0,u=0;return 0<=n&&n<60?(c=a,h=o,u=0):60<=n&&n<120?(c=o,h=a,u=0):120<=n&&n<180?(c=0,h=a,u=o):180<=n&&n<240?(c=0,h=o,u=a):240<=n&&n<300?(c=o,h=0,u=a):300<=n&&n<360&&(c=a,h=0,u=o),c=Math.round(255*(c+l)).toString(16),h=Math.round(255*(h+l)).toString(16),u=Math.round(255*(u+l)).toString(16),RE.utils.pAL(c,h,u,s)},RgbA(e){const t=NE.rgbA.exec(e),n=parseInt(t[2],10).toString(16),r=parseInt(t[3],10).toString(16),i=parseInt(t[4],10).toString(16),s=t[5];return RE.utils.pAL(n,r,i,s)},utils:{pAL:(e,t,n,r)=>(1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),void 0!==r?(1==(r=Math.round(255*parseInt(r)).toString(16)).length&&(r="0"+r),"#"+e+t+n+r):"#"+e+t+n)}},NE={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},ME={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var FE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const LE=OE.PREFIX;class jE extends h.Component{constructor(e){super(e),this._mounted=!0,this._mounted=!0,this.state={percentNumber:this.props.percent}}componentDidUpdate(e){if(isNaN(this.props.percent)||isNaN(e.percent))throw new Error("[Semi Progress]:percent can not be NaN");if(e.percent!==this.props.percent){if(!this.props.motion)return void this.setState({percentNumber:this.props.percent});this.animation&&this.animation.destroy&&this.animation.destroy(),this.animation=new oi({from:{value:e.percent},to:{value:this.props.percent}},{easing:"linear",duration:300}),this.animation.on("frame",(e=>{if(!1===this._mounted)return;const t=parseInt(e.value);this.setState({percentNumber:t})})),this.animation.on("rest",(()=>{!1!==this._mounted&&this.setState({percentNumber:this.props.percent})})),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:n,className:r,strokeWidth:i,format:s,size:a,stroke:o,strokeGradient:l,showInfo:c,percent:h,orbitStroke:p,id:f}=e,m=FE(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],y=this.props["aria-labelledby"],v=this.props["aria-valuetext"],{percentNumber:b}=this.state,w={wrapper:x()(`${LE}-circle`,r),svg:x()(`${LE}-circle-ring`),circle:x()(`${LE}-circle-ring-inner`)},C=this.calcPercent(h),E=this.calcPercent(b);let S;S=this.props.width?this.props.width:a===TE.DEFAULT_SIZE?72:24;const _=this.selectStroke(o,h,l),k=S/2,P=S/2,O=(S-i)/2,T=2*O*Math.PI,I=(1-C/100)*T,D=`${T} ${T}`,A=s(E);return u().createElement("div",Object.assign({id:f,className:w.wrapper,style:n,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":E,"aria-labelledby":y,"aria-label":g,"aria-valuetext":v},d(m)),u().createElement("svg",{key:a,className:w.svg,height:S,width:S,"aria-hidden":!0},u().createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:D,strokeLinecap:t,fill:"transparent",stroke:p,r:O,cx:P,cy:k,"aria-hidden":!0}),u().createElement("circle",{className:w.circle,strokeDashoffset:I,strokeWidth:i,strokeDasharray:D,strokeLinecap:t,fill:"transparent",stroke:_,r:O,cx:P,cy:k,"aria-hidden":!0})),c&&"small"!==a?u().createElement("span",{className:`${LE}-circle-text`},A):null)}calcPercent(e){let t;return t=e>100?100:e<0?0:e,t}selectStroke(e,t,n){if("string"==typeof e)return e;const r=IE(e,t,n);return void 0!==r?r:TE.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:n,stroke:r,strokeGradient:i,direction:s,format:a,showInfo:o,size:l,percent:c,orbitStroke:h,id:p}=e,f=FE(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),m=this.props["aria-label"],g=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:v}=this.state,b=x()(LE,t,{[`${LE}-horizontal`]:s===TE.DEFAULT_DIRECTION,[`${LE}-vertical`]:s!==TE.DEFAULT_DIRECTION,[`${LE}-large`]:"large"===l}),w=x()({[`${LE}-track`]:!0}),C=x()(`${LE}-track-inner`),E=this.calcPercent(c),S=this.calcPercent(v),_={background:this.selectStroke(r,c,i)};s===TE.DEFAULT_DIRECTION?_.width=`${E}%`:_.height=`${E}%`;const k=a(S);return u().createElement("div",Object.assign({id:p,className:b,style:n,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":E,"aria-labelledby":g,"aria-label":m,"aria-valuetext":y},d(f)),u().createElement("div",{className:w,style:h?{backgroundColor:h}:{},"aria-hidden":!0},u().createElement("div",{className:C,style:_,"aria-hidden":!0})),o?u().createElement("div",{className:`${LE}-line-text`},k):null)}render(){const{type:e}=this.props;return"line"===e?this.renderLineProgress():this.renderCircleProgress()}}jE.propTypes={"aria-label":C().string,"aria-labelledby":C().string,"aria-valuetext":C().string,className:C().string,direction:C().oneOf(TE.directions),format:C().oneOfType([C().func,C().node]),id:C().string,motion:C().oneOfType([C().bool,C().func,C().object]),orbitStroke:C().string,percent:C().number,scale:C().number,showInfo:C().bool,size:C().oneOf(TE.sizes),stroke:C().oneOfType([C().string,C().arrayOf(C().shape({percent:C().number,color:C().string}))]),strokeGradient:C().bool,strokeLinecap:C().oneOf(TE.strokeLineCap),strokeWidth:C().number,style:C().object,type:C().oneOf(TE.types),width:C().number},jE.defaultProps={className:"",direction:TE.DEFAULT_DIRECTION,format:e=>`${e}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:TE.DEFAULT_SIZE,stroke:TE.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:TE.DEFAULT_LINECAP,strokeWidth:4,style:{},type:TE.DEFAULT_TYPE};const VE=jE,$E={PREFIX:`${E}-radio`,INNER:`${E}-radio-inner`,TEXT:`${E}-radio-text`,INPUT:`${E}-radio-input`,CHECKED:`${E}-radio-checked`,DISABLED:`${E}-radio-disabled`,BUTTON:`${E}-radio-button`},BE={PREFIX:`${E}-radioGroup`,INNER:`${E}-radioGroup-inner`,TEXT:`${E}-radioGroup-text`,INPUT:`${E}-radioGroup-input`,CHECKED:`${E}-radioGroup-checked`,DISABLED:`${E}-radioGroup-disabled`},zE=["horizontal","vertical"],HE="horizontal",KE=["advanced",""],UE="default",WE="button",GE="card",qE="pureCard",YE=["middle","small","large"];class XE extends c{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let n;return"value"in this.getProps()?n=e:"defaultValue"in this.getProps()&&(n=t),n}handleChange(e){const t=this.getProp("mode"),n=this.getState("value"),{checked:r,value:i}=e.target,s=this._adapter.isInProps("value"),a=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});"advanced"!==t||r||(a.target.value=void 0),s||("advanced"!==t||r?this._setValue(i):this._setValue(void 0)),"advanced"!==t&&n===i||this._adapter.notifyChange(a)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class ZE extends c{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch(e){ye(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:n,addonId:r}=this._adapter.getProps();e&&!r&&this._adapter.setAddonId(),t&&!n&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}__webpack_require__("Vs0Q");class JE extends c{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:n}=e.target,r={target:Object.assign(Object.assign({},this.getProps()),{checked:n}),stopPropagation:()=>{e.stopPropagation()},preventDefault:()=>{e.preventDefault()}};t||this.setChecked(n),this._adapter.notifyChange(r)}destroy(){}}const QE=u().createContext(null);const eS=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}),"radio");class tS extends f{constructor(e){super(e),this.state={checked:!1},this.foundation=new JE(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:n,name:r,isButtonRadio:i,isPureCardRadioGroup:s,addonId:a,extraId:o,"aria-label":l,focusInner:c,onInputFocus:h,onInputBlur:d}=this.props,{checked:p}=this.state,f=this.props.prefixCls||$E.PREFIX,m=x()({[`${f}-inner`]:!0,[`${f}-inner-checked`]:Boolean(p),[`${f}-inner-buttonRadio`]:i,[`${f}-inner-pureCardRadio`]:s}),g=x()({[`${f}-focus`]:c,[`${f}-focus-border`]:c&&!p,[`${f}-inner-display`]:!i});return u().createElement("span",{className:m},u().createElement("input",{ref:e=>{this.inputEntity=e},autoFocus:n,type:"advanced"===t?"checkbox":"radio",checked:Boolean(p),disabled:e,onChange:this.onChange,name:r,"aria-label":l,"aria-labelledby":a,"aria-describedby":o,onFocus:h,onBlur:d}),u().createElement("span",{className:g},p?u().createElement(eS,null):null))}}tS.contextType=QE,tS.propTypes={checked:C().bool,disabled:C().bool,isButtonRadio:C().bool,onChange:C().func,mode:C().oneOf(["advanced",""]),"aria-label":C().string,focusInner:C().bool,onInputFocus:C().func,onInputBlur:C().func,preventScroll:C().bool},tS.defaultProps={onChange:i(),isButtonRadio:!1};const nS=tS;var rS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class iS extends f{constructor(e){super(e),this.onChange=e=>{const{onChange:t}=this.props;if(this.isInGroup()){const{radioGroup:t}=this.context;t.onChange&&t.onChange(e)}!("checked"in this.props)&&this.foundation.setChecked(e.target.checked),t&&t(e)},this.handleMouseEnter=e=>{this.props.onMouseEnter(e),this.foundation.setHover(!0)},this.handleMouseLeave=e=>{this.props.onMouseLeave(e),this.foundation.setHover(!1)},this.handleFocusVisible=e=>{this.foundation.handleFocusVisible(e)},this.handleBlur=e=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new ZE(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(le()(this.props.checked)?this.foundation.setChecked(!1):bc()(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Ae({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Ae({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:n,disabled:r,style:i,className:s,prefixCls:a,displayMode:o,children:l,extra:c,mode:h,type:d,value:p,name:f}=e,m=rS(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let g,y,v,b,w,C,E,S,_;const{hover:k,addonId:P,extraId:O,focusVisible:T,checked:I}=this.state,D={checked:I,disabled:r};this.isInGroup()?(g=this.context.radioGroup.value===p,y=r||this.context.radioGroup.disabled,v=this.context.mode,b=this.context.radioGroup.isButtonRadio,w=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,S=this.context.radioGroup.buttonSize,_=a||this.context.radioGroup.prefixCls,D.checked=g,D.disabled=y):(g=I,y=r,v=h,E="button"===d,_=a,b=d===WE,C=d===qE,w=d===GE||C);const A=void 0===b?E:b,R=_||$E.PREFIX,N=w||C||A,M=x()(R,{[`${R}-disabled`]:y,[`${R}-checked`]:g,[`${R}-${o}`]:Boolean(o),[`${R}-buttonRadioComponent`]:E,[`${R}-buttonRadioGroup`]:b,[`${R}-buttonRadioGroup-${S}`]:b&&S,[`${R}-cardRadioGroup`]:w,[`${R}-cardRadioGroup_disabled`]:y&&w,[`${R}-cardRadioGroup_checked`]:w&&g&&!y,[`${R}-cardRadioGroup_checked_disabled`]:w&&g&&y,[`${R}-cardRadioGroup_hover`]:w&&!g&&k&&!y,[s]:Boolean(s),[`${R}-focus`]:T&&(w||C)}),F=this.isInGroup()&&this.context.radioGroup.name,L=x()({[`${R}-addon`]:!A,[`${R}-addon-buttonRadio`]:A,[`${R}-addon-buttonRadio-checked`]:A&&g,[`${R}-addon-buttonRadio-disabled`]:A&&y,[`${R}-addon-buttonRadio-hover`]:A&&!g&&!y&&k,[`${R}-addon-buttonRadio-${S}`]:A&&S,[`${R}-focus`]:T&&A},t);return u().createElement("label",Object.assign({style:i,className:M,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(m)),u().createElement(nS,Object.assign({},this.props,D,{mode:v,name:null!=f?f:F,isButtonRadio:A,isPureCardRadioGroup:C,onChange:this.onChange,ref:e=>{this.radioEntity=e},addonId:l&&P,extraId:c&&O,focusInner:T&&!N,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),l||c?u().createElement("div",{className:x()([`${R}-content`,{[`${R}-isCardRadioGroup_content`]:w}])},l?u().createElement("span",{className:L,style:n,id:P,"x-semi-prop":"children"},l):null,c&&!A?u().createElement("div",{className:`${R}-extra`,id:O,"x-semi-prop":"extra"},c):null):null)}}iS.contextType=QE,iS.propTypes={autoFocus:C().bool,checked:C().bool,defaultChecked:C().bool,value:C().any,style:C().object,className:C().string,disabled:C().bool,prefixCls:C().string,displayMode:C().oneOf(["vertical",""]),onChange:C().func,onMouseEnter:C().func,onMouseLeave:C().func,mode:C().oneOf(KE),extra:C().node,addonStyle:C().object,addonClassName:C().string,type:C().oneOf([UE,WE,GE,qE]),"aria-label":C().string,preventScroll:C().bool},iS.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:i(),onMouseLeave:i(),mode:"",type:"default"},iS.elementType="Radio";const sS=iS;var aS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class oS extends f{constructor(e){super(e),this.onChange=e=>{this.foundation.handleChange(e)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new XE(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){"number"==typeof e.value&&isNaN(e.value)&&"number"==typeof this.props.value&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>Boolean(e in this.props),notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:n,mode:r,prefixCls:i,className:s,style:a,direction:o,type:l,buttonSize:c,id:h}=e,d=aS(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),p=l===WE,f=l===qE,m=l===GE||f,g=l===UE,y=i||BE.PREFIX,v=x()(s,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${o}`]:o&&!p,[`${y}-${o}-default`]:o&&g,[`${y}-${o}-card`]:o&&m,[`${y}-buttonRadio`]:p}),b=this.state.value;let w;return n?w=(n||[]).map(((e,t)=>"string"==typeof e?u().createElement(sS,{key:t,disabled:this.props.disabled,value:e},e):u().createElement(sS,{key:t,disabled:e.disabled||this.props.disabled,value:e.value,extra:e.extra,className:e.className,style:e.style},e.label))):t&&(w=u().Children.map(t,((e,t)=>u().isValidElement(e)?u().cloneElement(e,{key:t}):null))),u().createElement("div",Object.assign({className:v,style:a,id:h,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(d)),u().createElement(QE.Provider,{value:{radioGroup:{onChange:this.onChange,value:b,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:p,isCardRadio:m,isPureCardRadio:f,buttonSize:c,prefixCls:i},mode:r}},w))}}oS.propTypes={defaultValue:C().any,disabled:C().bool,name:C().string,options:C().array,buttonSize:C().oneOf(YE),type:C().oneOf([UE,WE,GE,qE]),value:C().any,onChange:C().func,children:C().node,prefixCls:C().string,className:C().string,style:C().object,direction:C().oneOf(zE),mode:C().oneOf(KE),"aria-label":C().string,"aria-describedby":C().string,"aria-errormessage":C().string,"aria-invalid":C().bool,"aria-labelledby":C().string,"aria-required":C().bool,id:C().string},oS.defaultProps={disabled:!1,onChange:i(),direction:HE,mode:"",type:UE,buttonSize:"middle"};const lS=oS;class cS extends sS{}cS.Group=lS;const hS=cS,uS={PREFIX:`${E}-rating`},dS=["default","small"];__webpack_require__("yqmi");const pS=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}),"star");class fS extends c{constructor(e){super(Object.assign(Object.assign({},fS.defaultAdapter),e)),this.handleStarFocusVisible=e=>{const{target:t}=e,{count:n}=this.getProps();try{t.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch(e){ye(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=e=>{const{emptyStarFocusVisible:t}=this.getStates();t&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let n=t?e.pageYOffset:e.pageXOffset;const r=t?"scrollTop":"scrollLeft";if("number"!=typeof n){const t=e.document;n=t.documentElement[r],"number"!=typeof n&&(n=t.body[r])}return n}_getClientPosition(e){let t,n;const r=e.ownerDocument,{body:i}=r,s=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=s.clientLeft||i.clientLeft||0,n-=s.clientTop||i.clientTop||0,{left:t,top:n}}_getOffsetLeft(e){const t=this._getClientPosition(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=this._getScroll(r),t.left}getStarValue(e,t){const{allowHalf:n}=this.getProps(),r="rtl"===this._adapter.getContext("direction");let i=e+1;if(n){const n=this._adapter.getStarDOM(e),s=this._getOffsetLeft(n),a=n.clientWidth;(r&&t-s>a/2||!r&&t-s<a/2)&&(i-=.5)}return i}handleHover(e,t){const n=this.getStarValue(t,e.pageX),{clearedValue:r,hoverValue:i}=this.getStates();n!==i&&n!==r&&this._adapter.notifyHoverChange(n,null)}handleMouseLeave(){this._adapter.notifyHoverChange(void 0,null)}handleClick(e,t){const{allowClear:n}=this.getProps(),{value:r}=this.getStates(),i=this.getStarValue(t,e.pageX),s=!!n&&i===r;this._adapter.updateValue(s?0:i),s?this._adapter.notifyHoverChange(void 0,i):this._adapter.clearValue(null)}handleFocus(e){this._adapter.notifyFocus(e)}handleBlur(e){this._adapter.notifyBlur(e)}handleKeyDown(e,t){const{key:n}=e,{count:r,allowHalf:i}=this.getProps(),s="rtl"===this._adapter.getContext("direction"),a=i?.5:1;let o,l;"ArrowRight"===n||"ArrowUp"===n?o=t+(s?-a:a):"ArrowLeft"!==n&&"ArrowDown"!==n||(o=t+(s?a:-a)),l=o>r?0:o<0?r:o,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(n)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(l),this.changeFocusStar(l,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:n,allowHalf:r,preventScroll:i}=this.getProps(),s=Math.ceil(e)-1,a=[...t.currentTarget.childNodes].map((e=>e.childNodes[0].childNodes));s<0?a[n][0].focus({preventScroll:i}):a[s][r?10*e%10==5?0:1:0].focus({preventScroll:i})}}class mS extends c{constructor(e){super(Object.assign(Object.assign({},mS.defaultAdapter),e)),this.handleFocusVisible=(e,t)=>{const{target:n}=e;try{n.matches(":focus-visible")&&("first"===t?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch(e){ye(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(e,t)=>{const{firstStarFocus:n,secondStarFocus:r}=this.getStates();"first"===t?n&&this._adapter.setFirstStarFocus(!1):r&&this._adapter.setSecondStarFocus(!1)}}}class gS extends f{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=e=>{const{onHover:t,index:n}=this.props;t(e,n)},this.onClick=e=>{const{onClick:t,index:n}=this.props;t(e,n)},this.onFocus=(e,t)=>{const{onFocus:n}=this.props;n&&n(e),this.foundation.handleFocusVisible(e,t)},this.onBlur=(e,t)=>{const{onBlur:n}=this.props;n&&n(e),this.foundation.handleBlur(e,t)},this.onKeyDown=e=>{const{onClick:t,index:n}=this.props;13===e.keyCode&&t(e,n)},this.starFocus=()=>{const{value:e,index:t,preventScroll:n}=this.props;e-t==.5?this.firstStar.focus({preventScroll:n}):this.secondStar.focus({preventScroll:n})},this.saveFirstStar=e=>{this.firstStar=e},this.saveSecondStar=e=>{this.secondStar=e},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new mS(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:n,count:r,value:i,disabled:s,allowHalf:a,focused:o,size:l,ariaLabelPrefix:c}=this.props,{firstStarFocus:h,secondStarFocus:d}=this.state,p=e+1,f=p-i,m=a&&f<1&&f>0,g=1-f,y=p<=i,v="number"==typeof l,b=x()(t,{[`${t}-half`]:m,[`${t}-full`]:y,[`${t}-${l}`]:!v}),w=v?{width:l,height:l,fontSize:l}:{},C=v?"inherit":"small"===l?"default":"extra-large",E=n||u().createElement(pS,{size:C,style:{display:"block"}}),S=e===r,_=x()(`${t}-wrapper`,{[`${t}-disabled`]:s,[`${uS.PREFIX}-focus`]:(h||d)&&0!==i}),k={onClick:s?null:this.onClick,onKeyDown:s?null:this.onKeyDown,onMouseMove:s?null:this.onHover,className:_},P=a?2*r+1:r+1,O={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":P,"aria-disabled":s,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:x()(`${t}-first`,`${uS.PREFIX}-no-focus`),tabIndex:s||i!==e+.5?-1:0,onFocus:e=>{this.onFocus(e,"first")},onBlur:e=>{this.onBlur(e,"first")}},T=!s&&(i===e+1||S&&0===i)?0:-1,I={ref:this.saveSecondStar,role:"radio","aria-checked":S?0===i:i===e+1,"aria-posinset":a?2*(e+1):e+1,"aria-setsize":P,"aria-disabled":s,"aria-label":`${S?0:e+1} ${c}${0===e?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:x()(`${t}-second`,`${uS.PREFIX}-no-focus`),tabIndex:T,onFocus:e=>{this.onFocus(e,"second")},onBlur:e=>{this.onBlur(e,"second")}};return u().createElement("li",{className:b,style:Object.assign({},w),key:e},u().createElement("div",Object.assign({},k),a&&!S&&u().createElement("div",Object.assign({},O,{style:{width:100*g+"%"}}),E),u().createElement("div",Object.assign({},I,{"x-semi-prop":"character"}),E)))}}gS.propTypes={value:C().number,index:C().number,prefixCls:C().string,allowHalf:C().bool,onHover:C().func,onClick:C().func,character:C().node,focused:C().bool,disabled:C().bool,count:C().number,ariaLabelPrefix:C().string,size:C().oneOfType([C().oneOf(dS),C().number]),"aria-describedby":C().string,onFocus:C().func,onBlur:C().func,preventScroll:C().bool};var yS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class vS extends f{constructor(e){super(e),this.rate=null,this.onHover=(e,t)=>{this.foundation.handleHover(e,t)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(e,t)=>{this.foundation.handleClick(e,t)},this.onFocus=e=>{this.foundation.handleFocus(e)},this.onBlur=e=>{this.foundation.handleBlur(e)},this.onKeyDown=e=>{const{value:t}=this.state;this.foundation.handleKeyDown(e,t)},this.focus=()=>{const{disabled:e,preventScroll:t}=this.props;e||this.rate.focus({preventScroll:t})},this.blur=()=>{const{disabled:e}=this.props;e||this.rate.blur()},this.saveRef=e=>t=>{this.stars[e]=t},this.saveRate=e=>{this.rate=e},this.handleStarFocusVisible=e=>{this.foundation.handleStarFocusVisible(e)},this.handleStarBlur=e=>{this.foundation.handleStarBlur(e)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let e="star";const{character:t}=this.props;return"string"==typeof t&&(e=t),e},this.getItemList=e=>{const{count:t,allowHalf:n,prefixCls:r,disabled:i,character:s,size:a,tooltips:o}=this.props,{value:l,hoverValue:c,focused:h}=this.state,d=[...Array(t+1).keys()].map((d=>{const p=u().createElement(gS,{ref:this.saveRef(d),index:d,count:t,prefixCls:`${r}-star`,allowHalf:n,value:void 0===c?l:c,onClick:i?yt:this.onClick,onHover:i?yt:this.onHover,key:d,disabled:i,character:s,focused:h,size:d===t?0:a,ariaLabelPrefix:e,onFocus:i||t!==d?yt:this.handleStarFocusVisible,onBlur:i||t!==d?yt:this.handleStarBlur});if(o){const e=o[d]?o[d]:"",t=c-1===d;return u().createElement(ft,{visible:t,trigger:"custom",content:e,key:`${d}-${t}`},p)}return p}));return d};const t=void 0===e.value?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new fS(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&void 0!==e.value?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:n}=this.state;if(!e){const e=Math.ceil(n)-1;this.stars[e<0?t:e].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ge().findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:n}=this.props;this.setState({hoverValue:e,clearedValue:t}),n(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:n,disabled:r,className:i,id:s,count:a,tabIndex:o}=e,l=yS(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:h}=this.state,d=this.getAriaLabelPrefix(),p=`Rating: ${c} of ${a} ${d}${1===c?"":"s"},`,f=this.getItemList(d),m=x()(n,{[`${n}-disabled`]:r,[`${n}-focus`]:h},i);return u().createElement("ul",Object.assign({"aria-label":p,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:m,style:t,onMouseLeave:r?yt:this.onMouseLeave,tabIndex:r?-1:o,onFocus:r?yt:this.onFocus,onBlur:r?yt:this.onBlur,onKeyDown:r?yt:this.onKeyDown,ref:this.saveRate,id:s},this.getDataAttr(l)),f)}}vS.contextType=Ze,vS.propTypes={"aria-describedby":C().string,"aria-errormessage":C().string,"aria-invalid":C().bool,"aria-label":C().string,"aria-labelledby":C().string,"aria-required":C().bool,disabled:C().bool,value:C().number,defaultValue:C().number,count:C().number,allowHalf:C().bool,allowClear:C().bool,style:C().object,prefixCls:C().string,onChange:C().func,onHoverChange:C().func,className:C().string,character:C().node,tabIndex:C().number,onFocus:C().func,onBlur:C().func,onKeyDown:C().func,autoFocus:C().bool,size:C().oneOfType([C().oneOf(dS),C().number]),tooltips:C().arrayOf(C().string),id:C().string,preventScroll:C().bool},vS.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:uS.PREFIX,onChange:yt,onHoverChange:yt,tabIndex:-1,size:"default"};const bS={PREFIX:`${E}-sidesheet`,DIALOG:`${E}-modal`},xS=["top","right","bottom","left"],wS=["small","medium","large"],CS=448;var ES=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};let SS=0;const _S=bS.PREFIX;class kS extends u().PureComponent{constructor(){super(...arguments),this.onMaskClick=e=>{e.target===e.currentTarget&&this.close(e)},this.close=e=>{const{onClose:t}=this.props;t&&t(e)}}componentDidMount(){this.sideSheetId="sidesheet-"+SS++}componentWillUnmount(){clearTimeout(this.timeoutId)}getMaskElement(){var e;const{mask:t,maskStyle:n,maskClosable:r}=this.props;return t?u().createElement("div",Object.assign({"aria-hidden":!0,key:"mask",className:x()(`${_S}-mask`,null!==(e=this.props.maskClassName)&&void 0!==e?e:""),style:n,onClick:r?this.onMaskClick:null},this.props.maskExtraProps)):null}renderHeader(){const{title:e,closable:t,headerStyle:n,closeIcon:r}=this.props;let i,s;if(e&&(i=u().createElement("div",{className:`${_S}-title`,"x-semi-prop":"title"},this.props.title)),t){const e=r||u().createElement(Ri,null);s=u().createElement(bi,{className:`${_S}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:e,theme:"borderless",size:"small"})}return u().createElement("div",{className:`${_S}-header`,role:"heading","aria-level":1,style:Object.assign({},n)},i,s)}getDialogElement(){var e;const t=ES(this.props,[]),n={};t.width&&(n.width=t.width,t.mask||(n.width="100%")),t.height&&(n.height=t.height);const r=this.renderHeader();return u().createElement("div",Object.assign({key:"dialog-element",role:"dialog",tabIndex:-1,className:x()(`${_S}-inner`,`${_S}-inner-wrap`,null!==(e=this.props.dialogClassName)&&void 0!==e?e:"",`${_S}-size-${t.size}`),style:Object.assign(Object.assign({},t.style),n)},this.props.wrapperExtraProps),u().createElement("div",{className:`${_S}-content`},r,u().createElement("div",{className:`${_S}-body`,style:t.bodyStyle,"x-semi-prop":"children"},t.children),t.footer?u().createElement("div",{className:`${_S}-footer`,"x-semi-prop":"footer"},t.footer):null))}render(){const e=this.props,{mask:t,className:n,width:r,onClose:i,maskStyle:s,maskClosable:a,maskClassName:o,title:l,closable:c,headerStyle:h,height:p,style:f,size:m,bodyStyle:g,dialogClassName:y,children:v,footer:b,maskExtraProps:w,wrapperExtraProps:C}=e,E=ES(e,["mask","className","width","onClose","maskStyle","maskClosable","maskClassName","title","closable","headerStyle","height","style","size","bodyStyle","dialogClassName","children","footer","maskExtraProps","wrapperExtraProps"]),S=x()(n,{[`${_S}-fixed`]:!t,[`${_S}-size-${this.props.size}`]:!t}),_={};!t&&r&&(_.width=r);const k=d(E);return u().createElement("div",Object.assign({className:S,style:_},k),this.getMaskElement(),this.getDialogElement())}}kS.propTypes={onClose:C().func,closeIcon:C().node},kS.defaultProps={onClose:i()};class PS extends c{constructor(e){super(Object.assign(Object.assign({},PS.defaultAdapter),e)),this.toggleDisplayNone=e=>{this._adapter.toggleDisplayNone(e)}}get defaultAdapter(){return{handleCancel:i(),beforeShow:i(),afterHide:i()}}destroy(){this.afterHide()}handleCancel(e){this._adapter.notifyCancel(e)}beforeShow(){this.getProp("disableScroll")&&this._adapter.disabledBodyScroll(),this._adapter.setOnKeyDownListener()}afterHide(){this.getProp("disableScroll")&&this._adapter.enabledBodyScroll(),this._adapter.removeKeyDownListener()}handleKeyDown(e){const{closeOnEsc:t}=this.getProps();if(t&&e.keyCode===Zt.ESC)return e.stopPropagation(),void this.handleCancel(e)}onVisibleChange(e){this._adapter.notifyVisibleChange(e)}}__webpack_require__("9Id+");var OS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const TS=bS.PREFIX,IS=CS;class DS extends f{constructor(e){super(e),this.handleCancel=e=>{this.foundation.handleCancel(e)},this.handleKeyDown=e=>{this.foundation.handleKeyDown(e)},this.updateState=()=>{this.foundation.toggleDisplayNone(!this.props.visible)},this.state={displayNone:!this.props.visible},this.foundation=new PS(this.adapter),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",e||"hidden"===this.bodyOverflow||(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;e||"hidden"===this.bodyOverflow||(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>{this.props.onCancel&&this.props.onCancel(e)},notifyVisibleChange:e=>{this.props.afterVisibleChange(e)},setOnKeyDownListener:()=>{window&&window.addEventListener("keydown",this.handleKeyDown)},removeKeyDownListener:()=>{window&&window.removeEventListener("keydown",this.handleKeyDown)},toggleDisplayNone:e=>{e!==this.state.displayNone&&this.setState({displayNone:e})}})}static getDerivedStateFromProps(e,t){const n={};return e.visible&&t.displayNone&&(n.displayNone=!1),e.visible||e.motion||t.displayNone||(n.displayNone=!0),n}componentDidMount(){this.scrollBarWidth=Ye(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,n){!e.visible&&this.props.visible&&this.foundation.beforeShow(),e.visible&&!this.props.visible&&this.foundation.afterHide(),t.displayNone!==this.state.displayNone&&this.foundation.onVisibleChange(!this.state.displayNone)}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}renderContent(){const e=this.props,{placement:t,className:n,children:r,width:i,height:s,motion:a,visible:o,style:l,maskStyle:c,size:h,zIndex:d,getPopupContainer:p,keepDOM:f}=e,m=OS(e,["placement","className","children","width","height","motion","visible","style","maskStyle","size","zIndex","getPopupContainer","keepDOM"]);let g={zIndex:d};p&&(g={zIndex:d,position:"static"});const{direction:y}=this.context,v="left"===t||"right"===t,b="top"===t||"bottom"===t,w=b?s||IS:"100%",C=x()(TS,n,{[`${TS}-${t}`]:t,[`${TS}-popup`]:p,[`${TS}-horizontal`]:b,[`${TS}-rtl`]:"rtl"===y,[`${TS}-hidden`]:f&&this.state.displayNone}),E=Object.assign(Object.assign(Object.assign({},v?i?{width:i}:{}:{width:"100%"}),m),{visible:o,motion:!1,size:h,className:C,height:w,onClose:this.handleCancel}),S=this.props.visible||this.props.keepDOM||this.props.motion&&!this.state.displayNone;return u().createElement(ot,{motion:this.props.motion,animationState:o?"enter":"leave",startClassName:o?`${TS}-animation-mask_show`:`${TS}-animation-mask_hide`,onAnimationEnd:this.updateState},(e=>{let{animationClassName:t,animationEventsNeedBind:n}=e;return u().createElement(ot,{motion:this.props.motion,animationState:o?"enter":"leave",startClassName:o?`${TS}-animation-content_show_${this.props.placement}`:`${TS}-animation-content_hide_${this.props.placement}`,onAnimationEnd:this.updateState},(e=>{let{animationClassName:i,animationStyle:s,animationEventsNeedBind:a}=e;return S?u().createElement(et,{getPopupContainer:p,style:g},u().createElement(kS,Object.assign({},E,{maskExtraProps:n,wrapperExtraProps:a,dialogClassName:i,maskClassName:t,maskStyle:Object.assign({},c),style:Object.assign(Object.assign({},s),l)}),r)):u().createElement(u().Fragment,null)}))}))}render(){const{zIndex:e,getPopupContainer:t,visible:n}=this.props;return this.renderContent()}}DS.contextType=Ze,DS.propTypes={bodyStyle:C().object,headerStyle:C().object,children:C().node,className:C().string,closable:C().bool,disableScroll:C().bool,getPopupContainer:C().func,height:C().oneOfType([C().number,C().string]),mask:C().bool,maskClosable:C().bool,maskStyle:C().object,motion:C().oneOfType([C().bool,C().object,C().func]),onCancel:C().func,placement:C().oneOf(xS),size:C().oneOf(wS),style:C().object,title:C().node,visible:C().bool,width:C().oneOfType([C().number,C().string]),zIndex:C().number,afterVisibleChange:C().func,closeOnEsc:C().bool,footer:C().node,keepDOM:C().bool,"aria-label":C().string},DS.__SemiComponentName__="SideSheet",DS.defaultProps=Xe(DS.__SemiComponentName__,{visible:!1,motion:!0,mask:!0,placement:"right",closable:!0,footer:null,zIndex:1e3,maskClosable:!0,size:"small",disableScroll:!0,closeOnEsc:!1,afterVisibleChange:i(),keepDOM:!1});const AS={PREFIX:`${E}-slider`,DISABLED:`${E}-slider-disabled`,VERTICAL:`${E}-slider-vertical`,TRACK:`${E}-slider-track`,DOTS:`${E}-slider-dots`,MARKS:`${E}-slider-marks`,HANDLE:`${E}-slider-handle`,HANDLE_DOT:`${E}-slider-handle-dot`},RS=(e,t)=>{if(!(globalThis.Touch&&e instanceof Touch))return e;return["stopPropagation","preventDefault"].forEach((n=>{let r=t[n];r&&("function"==typeof r&&(r=function(){return t[n](...arguments)}),e[n]?ye(!0,`"The key ${n}" exist in Touch.`):e[n]=r)})),e};class NS extends c{constructor(e){var t;super(Object.assign(Object.assign({},NS.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=e=>{const{range:t,min:n,max:r}=this._adapter.getProps(),i=t?(e[0]-n)/(r-n):(e-n)/(r-n),s=t?(e[1]-n)/(r-n):1;return{min:this._checkValidity(i),max:this._checkValidity(s)}},this._checkValidity=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e>n?n:e<t?t:e},this.computeHandleVisibleVal=(e,t,n)=>{const{focusPos:r,currentValue:i}=this._adapter.getStates(),s={min:!1,max:!1};let a;a=t?{min:t(n?this.outPutValue(i[0]):this.outPutValue(i)),max:n?t(this.outPutValue(i[1])):null}:{min:n?this.outPutValue(i[0]):this.outPutValue(i),max:n?this.outPutValue(i[1]):null},e?(s.min=!0,s.max=!0):void 0===e&&t&&("min"===r?s.min=!0:"max"===r&&(s.max=!0));return{tipVisible:s,tipChildren:a}},this.valueFormatIsCorrect=e=>Array.isArray(e)?"number"==typeof e[0]&&"number"==typeof e[0]:"number"==typeof e,this.handleMousePos=(e,t)=>{const n=this._adapter.getParentRect(),r=this._adapter.getScrollParentVal(),i=n?n.left:0,s=n?n.top:0;return{x:e-i+r.scrollLeft,y:t-s+r.scrollTop}},this.getScrollParent=e=>{const t=/(auto|scroll)/,n=(e,t)=>window.getComputedStyle(e,null).getPropertyValue(t),r=e=>e&&e!==document.body&&e instanceof Element?(e=>t.test(n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")))(e)?e:r(e.parentNode):document.body;return r(e)},this.checkMeetMinMax=e=>{const{vertical:t,verticalReverse:n,range:r}=this._adapter.getProps(),i=this._adapter.getState("currentValue"),{sliderX:s,sliderY:a,sliderWidth:o,sliderHeight:l}=(this.transValueToPos(i),this._adapter.getSliderLengths()),{chooseMovePos:c,isDrag:h}=this._adapter.getStates();let u,d;return u=t&&n?a+(t?l:o):t?a:s,d=t&&n?a:t?a+l:s+o,t&&n?e>=u?e=u:e<=d&&(e=d):e<=u?e=u:e>=d&&(e=d),e},this.transPosToValue=(e,t)=>{const n=this.checkMeetMinMax(e),{min:r,max:i,currentValue:s}=this._adapter.getStates(),{range:a,vertical:o,step:l,verticalReverse:c}=this._adapter.getProps(),{sliderX:h,sliderY:u,sliderWidth:d,sliderHeight:p}=this._adapter.getSliderLengths(),f=o?u:h,m=o?p:d;let g,y;return g=o&&c?(f+m-n)/m*(i-r)+r:(n-f)/m*(i-r)+r,y=a?t?s[0]:s[1]:s,1!==l&&(g=Math.round(g/l)*l),a&&g!==y?t?[g,s[1]]:[s[0],g]:!a&&g!==y&&g},this.transValueToPos=e=>{const{min:t,max:n}=this._adapter.getStates(),{vertical:r,range:i,verticalReverse:s}=this._adapter.getProps(),{sliderX:a,sliderY:o,sliderWidth:l,sliderHeight:c}=this._adapter.getSliderLengths(),h=r?o:a,u=r?c:l;return i?[(e[0]-t)*u/(n-t)+h,(e[1]-t)*u/(n-t)+h]:(e-t)*u/(n-t)+h},this.isMarkActive=e=>{const{min:t,max:n,range:r,included:i}=this._adapter.getProps(),s=this._adapter.getState("currentValue");return"number"==typeof(e/1)&&e>=t&&e<=n&&(r?(e>s[1]||e<s[0])&&i?"unActive":"active":e<=s&&i?"active":"unActive")},this.outPutValue=e=>{const t=this._adapter.getProp("step"),n=(()=>{const e=(e=>{var t,n;return/^\d+(\.\d+)?$/.test(String(e))&&null!==(n=null===(t=e.toString().split(".")[1])||void 0===t?void 0:t.length)&&void 0!==n?n:0})(t),n=Math.pow(10,e);return e=>Math.round(e*n)/n})();return Array.isArray(e)?[n(e[0]),n(e[1])]:n(e)},this.handleDisabledChange=e=>{this._adapter.updateDisabled(e)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(e,t)=>{const n=this.transPosToValue(e,t);if(!1!==n)return this.outPutValue(n)},this.handleValueChange=(e,t)=>{const{min:n,max:r}=this._adapter.getStates();let i=null;const s={};this.valueFormatIsCorrect(t)?(Array.isArray(e)&&Array.isArray(t)&&(t=[t[0]<n?n:t[0],t[1]>r?r:t[1]],i=Object.assign(s,{currentValue:t})),"number"==typeof e&&"number"==typeof t&&(t=t>r?r:t<n?n:t,i=Object.assign(s,{currentValue:t}))):i=s,i&&this._adapter.transNewPropsToState(i)},this.onHandleDown=(e,t)=>{this._adapter.onHandleDown(e);const n=this._adapter.getState("disabled"),{vertical:r}=this._adapter.getProps(),{dragging:i}=this._adapter.getOverallVars();if(n)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",t),"min"===t?this._adapter.setDragging([!0,i[1]]):this._adapter.setDragging([i[0],!0]);const s=this.handleMousePos(e.clientX,e.clientY);let a=r?s.y:s.x;if(this._adapter.isEventFromHandle(e)){const t=this._getHandleCenterPosition(r,e.target);this._dragOffset=a-t,a=t}else this._dragOffset=0;return!0},this.onHandleMove=e=>{this._adapter.setEventDefault(e);const{disabled:t,chooseMovePos:n}=this._adapter.getStates(),{vertical:r}=this._adapter.getProps(),{dragging:i}=this._adapter.getOverallVars();if(t)return!1;this.onHandleEnter(n);const s=this.handleMousePos(e.clientX,e.clientY);let a=r?s.y:s.x;if(a-=this._dragOffset,"min"===n&&i[0]||"max"===n&&i[1]){const e=this.calculateOutputValue(a,"min"===n);if(void 0===e)return!1;this._adapter.notifyChange(e),this._adapter.onHandleMove(a,"min"===n,void 0,!1,e)}return!0},this.onHandleTouchStart=(e,t)=>{const n=this._adapter.getMinHandleEl(),r=this._adapter.getMaxHandleEl();if(e.target===n||e.target===r){Ce(e);const n=RS(e.touches[0],e);this.onHandleDown(n,t)}},this.onHandleTouchMove=e=>{const t=this._adapter.getMinHandleEl(),n=this._adapter.getMaxHandleEl();if(e.target===t||e.target===n){const t=RS(e.touches[0],e);this.onHandleMove(t)}},this.onHandleEnter=e=>{const{disabled:t,focusPos:n}=this._adapter.getStates();t||n||e===n||this._adapter.onHandleEnter(e)},this.onHandleLeave=()=>{const e=this._adapter.getState("disabled"),t=this._adapter.getState("isDrag");e||t||this._adapter.onHandleLeave()},this.onHandleUp=e=>{this._adapter.onHandleUpBefore(e);const{disabled:t,chooseMovePos:n}=this._adapter.getStates(),{dragging:r}=this._adapter.getOverallVars();return!t&&("min"===n?this._adapter.setDragging([!1,r[1]]):this._adapter.setDragging([r[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(e,t)=>{const{min:n,currentValue:r}=this.getStates(),{range:i}=this.getProps();if("min"===t){if(i){let t=r[0]-e;return t=t<n?n:t,[t,r[1]]}{let t=r-e;return t=t<n?n:t,t}}{let t=r[1]-e;return t=t<r[0]?r[0]:t,[r[0],t]}},this._handleValueIncreaseWithKeyBoard=(e,t)=>{const{max:n,currentValue:r}=this.getStates(),{range:i}=this.getProps();if("min"===t){if(i){let t=r[0]+e;return t=t>r[1]?r[1]:t,[t,r[1]]}{let t=r+e;return t=t>n?n:t,t}}{let t=r[1]+e;return t=t>n?n:t,[r[0],t]}},this._handleHomeKey=e=>{const{min:t,currentValue:n}=this.getStates(),{range:r}=this.getProps();return"min"===e?r?[t,n[1]]:t:[n[0],n[0]]},this._handleEndKey=e=>{const{max:t,currentValue:n}=this.getStates(),{range:r}=this.getProps();return"min"===e?r?[n[1],n[1]]:t:[n[0],t]},this.handleKeyDown=(e,t)=>{const{min:n,max:r,currentValue:i}=this.getStates(),{step:s,range:a}=this.getProps();let o;switch(e.key){case"ArrowLeft":case"ArrowDown":o=this._handleValueDecreaseWithKeyBoard(s,t);break;case"ArrowRight":case"ArrowUp":o=this._handleValueIncreaseWithKeyBoard(s,t);break;case"PageUp":o=this._handleValueIncreaseWithKeyBoard(10*s,t);break;case"PageDown":o=this._handleValueDecreaseWithKeyBoard(10*s,t);break;case"Home":o=this._handleHomeKey(t);break;case"End":o=this._handleEndKey(t)}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(e.key)){let t=!0;t=Array.isArray(i)?!(i[0]===o[0]&&i[1]===o[1]):i!==o,t&&(this._adapter.updateCurrentValue(o),this._adapter.notifyChange(o)),Ce(e)}},this._noTooltip=()=>{const{tipFormatter:e,tooltipVisible:t}=this.getProps();return null===e||!1===t},this.onFocus=(e,t)=>{if(this._noTooltip())return;Ce(e);const{target:n}=e;try{n.matches(":focus-visible")&&("min"===t?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch(e){ye(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(e,t)=>{if(this._noTooltip())return;const{firstDotFocusVisible:n,secondDotFocusVisible:r}=this.getStates();"min"===t?n&&this._adapter.setStateVal("firstDotFocusVisible",!1):r&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=e=>{const{disabled:t,isDrag:n}=this._adapter.getStates();if(n||t||this._adapter.isEventFromHandle(e))return;const{vertical:r}=this.getProps(),i=this.handleMousePos(e.clientX,e.clientY),s=r?i.y:i.x,a=this.checkWhichHandle(s),o=this.calculateOutputValue(s,a);void 0!==o&&(this._adapter.notifyChange(o),this._isControlledComponent()||this.setHandlePos(s,a,!0,o))},this.setHandlePos=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(e,n,(()=>t._adapter.onHandleUpAfter()),r,i)},this.checkWhichHandle=e=>{const{vertical:t,verticalReverse:n}=this.getProps(),{currentValue:r}=this._adapter.getStates(),i=this.transValueToPos(r);let s=!0;return Array.isArray(i)&&(e>i[1]||Math.abs(e-i[0])>Math.abs(e-i[1]))&&(s=!1),t&&n&&(s=!s),s},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:n}=this.getStates();let r;Array.isArray(e)?(r=[],r[0]=this._checkValidity(e[0],t,n),r[1]=this._checkValidity(e[1],t,n)):r=this._checkValidity(e,t,n),this._adapter.updateCurrentValue(r)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const n=t.getBoundingClientRect(),{x:r,y:i}=this.handleMousePos(n.left+.5*n.width,n.top+.5*n.height);return e?i:r}}__webpack_require__("unlL");var MS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const FS=AS.PREFIX;class LS extends f{constructor(e){super(e),this.renderHandle=()=>{var e,t,n,r,i;const{vertical:s,range:a,tooltipVisible:o,tipFormatter:l,"aria-label":c,"aria-labelledby":h,"aria-valuetext":d,getAriaValueText:p,disabled:f}=this.props,{chooseMovePos:m,isDrag:g,isInRenderTree:y,firstDotFocusVisible:v,secondDotFocusVisible:b}=this.state,w=s?"top":"left",C=this.foundation.getMinAndMaxPercent(this.state.currentValue),E=C.min,S=C.max,{tipVisible:_,tipChildren:k}=this.foundation.computeHandleVisibleVal(o&&y,l,a),P=x()(AS.HANDLE,{[`${AS.HANDLE}-clicked`]:"min"===m&&g}),O=x()(AS.HANDLE,{[`${AS.HANDLE}-clicked`]:"max"===m&&g}),{min:T,max:I,currentValue:D}=this.state,A={"aria-label":null!=c?c:f?"Disabled Slider":void 0,"aria-labelledby":h,"aria-disabled":f};s&&Object.assign(A,{"aria-orientation":"vertical"});const R=this.props.handleDot,N=a?u().createElement(u().Fragment,null,u().createElement(ft,{content:k.min,position:"top",trigger:"custom",rePosKey:E,visible:y&&(_.min||v),className:`${AS.HANDLE}-tooltip`},u().createElement("span",Object.assign({ref:this.minHanleEl,className:P,style:{[w]:100*E+"%",zIndex:"min"===m?2:1},onMouseDown:e=>{this.foundation.onHandleDown(e,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:e=>{this.foundation.onHandleTouchStart(e,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onKeyUp:e=>{this.foundation.onHandleUp(e)},onTouchEnd:e=>{this.foundation.onHandleUp(e)},onKeyDown:e=>{this.foundation.handleKeyDown(e,"min")},onFocus:e=>{this.foundation.onFocus(e,"min")},onBlur:e=>{this.foundation.onBlur(e,"min")},role:"slider",tabIndex:f?-1:0},A,{"aria-valuetext":p?p(D[0],0):d,"aria-valuenow":D[0],"aria-valuemax":D[1],"aria-valuemin":T}),(null==R?void 0:R[0])&&u().createElement("div",{className:AS.HANDLE_DOT,style:Object.assign(Object.assign({},(null===(e=R[0])||void 0===e?void 0:e.size)?{width:R[0].size,height:R[0].size}:{}),(null===(t=R[0])||void 0===t?void 0:t.color)?{backgroundColor:R[0].color}:{})}))),u().createElement(ft,{content:k.max,position:"top",trigger:"custom",rePosKey:S,visible:y&&(_.max||b),className:`${AS.HANDLE}-tooltip`},u().createElement("span",Object.assign({ref:this.maxHanleEl,className:O,style:{[w]:100*S+"%",zIndex:"max"===m?2:1},onMouseDown:e=>{this.foundation.onHandleDown(e,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onKeyUp:e=>{this.foundation.onHandleUp(e)},onTouchStart:e=>{this.foundation.onHandleTouchStart(e,"max")},onTouchEnd:e=>{this.foundation.onHandleUp(e)},onKeyDown:e=>{this.foundation.handleKeyDown(e,"max")},onFocus:e=>{this.foundation.onFocus(e,"max")},onBlur:e=>{this.foundation.onBlur(e,"max")},role:"slider",tabIndex:f?-1:0},A,{"aria-valuetext":p?p(D[1],1):d,"aria-valuenow":D[1],"aria-valuemax":I,"aria-valuemin":D[0]}),(null===(n=this.props.handleDot)||void 0===n?void 0:n[1])&&u().createElement("div",{className:AS.HANDLE_DOT,style:Object.assign(Object.assign({},(null===(r=this.props.handleDot[1])||void 0===r?void 0:r.size)?{width:this.props.handleDot[1].size,height:this.props.handleDot[1].size}:{}),(null===(i=this.props.handleDot[1])||void 0===i?void 0:i.color)?{backgroundColor:this.props.handleDot[1].color}:{})})))):u().createElement(ft,{content:k.min,showArrow:this.props.showArrow,position:"top",trigger:"custom",rePosKey:E,visible:y&&(_.min||v),className:`${AS.HANDLE}-tooltip`},u().createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:P,style:{[w]:100*E+"%",zIndex:"min"===m&&g?2:1},onMouseDown:e=>{this.foundation.onHandleDown(e,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:e=>{this.foundation.onHandleTouchStart(e,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onKeyUp:e=>{this.foundation.onHandleUp(e)},onTouchEnd:e=>{this.foundation.onHandleUp(e)},onKeyDown:e=>{this.foundation.handleKeyDown(e,"min")},onFocus:e=>{this.foundation.onFocus(e,"min")},onBlur:e=>{this.foundation.onBlur(e,"min")},role:"slider","aria-valuetext":p?p(D,0):d,tabIndex:f?-1:0},A,{"aria-valuenow":D,"aria-valuemax":I,"aria-valuemin":T}),R&&u().createElement("div",{className:AS.HANDLE_DOT,style:Object.assign(Object.assign({},(null==R?void 0:R.size)?{width:R.size,height:R.size}:{}),(null==R?void 0:R.color)?{backgroundColor:R.color}:{})})));return N},this.renderTrack=()=>{const{range:e,included:t,vertical:n}=this.props,r=this.foundation.getMinAndMaxPercent(this.state.currentValue),i=r.min,s=r.max;let a=n?{height:e?100*Math.abs(s-i)+"%":100*i+"%",top:e?100*Math.min(i,s)+"%":0}:{width:e?100*Math.abs(s-i)+"%":100*i+"%",left:e?100*Math.min(i,s)+"%":0};return a=t?a:{},u().createElement("div",{className:AS.TRACK,style:a,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:e,max:t,vertical:n,marks:r}=this.props,i=n?"top":"left",s=r&&Object.keys(r).length>0?u().createElement("div",{className:AS.DOTS},Object.keys(r).map((n=>{const s=this.foundation.isMarkActive(Number(n)),a=x()(`${FS}-dot`,{[`${FS}-dot-active`]:"active"===this.foundation.isMarkActive(Number(n))}),o=(Number(n)-e)/(t-e),l=u().createElement("span",{key:n,onClick:this.foundation.handleWrapClick,className:a,style:{[i]:`calc(${100*o}% - 2px)`}});return s?this.props.tooltipOnMark?u().createElement(ft,{content:r[n]},l):l:null}))):null;return s},this.renderLabel=()=>{if(!this.props.showMarkLabel)return null;const{min:e,max:t,vertical:n,marks:r,verticalReverse:i}=this.props,s=n?"top":"left",a=r&&Object.keys(r).length>0?u().createElement("div",{className:AS.MARKS+(n&&i?"-reverse":"")},Object.keys(r).map((a=>{const o=this.foundation.isMarkActive(Number(a)),l=(Number(a)-e)/(t-e);return o?u().createElement("span",{key:a,className:x()(`${FS}-mark${n&&i?"-reverse":""}`),style:{[s]:100*l+"%"},onClick:this.foundation.handleWrapClick},r[a]):null}))):null;return a},this._getAriaValueText=(e,t)=>{const{getAriaValueText:n}=this.props;return n?n(e,t):e};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=u().createRef(),this.minHanleEl=u().createRef(),this.maxHanleEl=u().createRef(),this.dragging=[!1,!1],this.foundation=new NS(this.adapter),this.eventListenerSet=new Set,this.handleDownEventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{var e;if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),n=null===(e=this.sliderEl.current.offsetParent)||void 0===e?void 0:e.getBoundingClientRect(),r={x:n?t.left-n.left:this.sliderEl.current.offsetLeft,y:n?t.top-n.top:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const e=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(e)return e.getBoundingClientRect()},getScrollParentVal:()=>{const e=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}},isEventFromHandle:e=>{const t=[this.minHanleEl,this.maxHanleEl];let n=!1;return t.forEach((t=>{if(!t)return;const r=t&&t.current,i=ge().findDOMNode(r);i&&i.contains(e.target)&&(n=!0)})),n},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:e=>{this.setState({disabled:e})},transNewPropsToState(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i();this.setState(e,t)},notifyChange:e=>{this.props.onChange(Array.isArray(e)?[...e].sort():e)},setDragging:e=>{this.dragging=e},updateCurrentValue:e=>{const{currentValue:t}=this.state;e!==t&&this.setState({currentValue:e})},setOverallVars:(e,t)=>{this[e]=t},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:e=>{this.handleDownEventListenerSet.add(this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1)),this.handleDownEventListenerSet.add(this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1)),this.handleDownEventListenerSet.add(this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1))},onHandleMove:function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i(),s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:o}=e.props;let l=a;if(void 0===l){const r=e.foundation.transPosToValue(t,n);if(!1===r)return;l=e.foundation.outPutValue(r)}const{currentValue:c}=e.state;if(!he()(e.foundation.outPutValue(c),l)){if(!s&&e.foundation.valueFormatIsCorrect(o))return!1;e.setState({currentValue:l},r)}},setEventDefault:e=>{e.stopPropagation(),e.preventDefault()},setStateVal:(e,t)=>{this.setState({[e]:t})},checkAndUpdateIsInRenderTreeState:()=>{const e=function(e){return!!e&&Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(this.sliderEl.current);return e!==this.state.isInRenderTree&&this.setState({isInRenderTree:e}),e},onHandleEnter:e=>{this.setState({focusPos:e})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:e=>{var t,n;null===(n=(t=this.props).onMouseUp)||void 0===n||n.call(t,e),e.stopPropagation(),e.preventDefault(),Array.from(this.handleDownEventListenerSet).forEach((e=>e())),this.handleDownEventListenerSet.clear()},onHandleUpAfter:()=>{const{currentValue:e}=this.state,t=this.foundation.outPutValue(e);this.props.onAfterChange(t)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach((e=>e()))}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const n=!he()(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),n){const e=this.props.value,t=this.state.currentValue;this.foundation.handleValueChange(t,e),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:n,max:r}=this.state,i=this.props,{vertical:s,verticalReverse:a,style:o,railStyle:l,range:c,className:h}=i,d=MS(i,["vertical","verticalReverse","style","railStyle","range","className"]),p=x()(`${FS}-wrapper`,{[`${FS}-disabled`]:e,[`${AS.VERTICAL}-wrapper`]:s,[`${FS}-reverse`]:s&&a},h),f=x()(`${FS}-boundary`,{[`${FS}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),m=x()({[`${FS}`]:!s,[AS.VERTICAL]:s}),g=Array.isArray(t)?[...t].sort():t,y=c?`Range: ${this._getAriaValueText(g[0],0)} to ${this._getAriaValueText(g[1],1)}`:void 0,v=u().createElement("div",Object.assign({className:p,style:o,ref:this.sliderEl,"aria-label":y,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(d)),u().createElement("div",{className:`${FS}-rail`,onClick:this.foundation.handleWrapClick,style:l}),this.renderTrack(),this.renderStepDot(),u().createElement("div",null,this.renderHandle()),this.renderLabel(),u().createElement("div",{className:f},u().createElement("span",{className:`${FS}-boundary-min`},n),u().createElement("span",{className:`${FS}-boundary-max`},r)));return s?v:u().createElement("div",{className:m},v)}_addEventListener(e,t,n){if(e.addEventListener){for(var r=arguments.length,s=new Array(r>3?r-3:0),a=3;a<r;a++)s[a-3]=arguments[a];e.addEventListener(t,n,...s);const i=()=>{null==e||e.removeEventListener(t,n),Promise.resolve().then((()=>{this.eventListenerSet.delete(i)}))};return this.eventListenerSet.add(i),i}return i()}}LS.propTypes={defaultValue:C().oneOfType([C().number,C().array]),disabled:C().bool,showMarkLabel:C().bool,included:C().bool,marks:C().object,max:C().number,min:C().number,range:C().bool,step:C().number,tipFormatter:C().func,value:C().oneOfType([C().number,C().array]),vertical:C().bool,onAfterChange:C().func,onChange:C().func,onMouseUp:C().func,tooltipOnMark:C().bool,tooltipVisible:C().bool,showArrow:C().bool,style:C().object,className:C().string,showBoundary:C().bool,railStyle:C().object,verticalReverse:C().bool,getAriaValueText:C().func,handleDot:C().oneOfType([C().shape({size:C().string,color:C().string}),C().arrayOf(C().shape({size:C().string,color:C().string}))])},LS.defaultProps={disabled:!1,showMarkLabel:!0,tooltipOnMark:!1,included:!0,max:100,min:0,range:!1,showArrow:!0,step:1,tipFormatter:e=>e,vertical:!1,showBoundary:!1,onAfterChange:e=>{},onChange:e=>{},verticalReverse:!1};const jS=ci.PREFIX;class VS extends f{constructor(){super(...arguments),this.containerRef=u().createRef(),this.mutationObserver=null}componentDidMount(){const e=()=>{const e=this.containerRef.current.querySelectorAll("button"),t=e[0],n=e[e.length-1];(null==t?void 0:t.classList.contains(`${jS}-first`))||null==t||t.classList.add(`${jS}-first`),(null==n?void 0:n.classList.contains(`${jS}-last`))||null==n||n.classList.add(`${jS}-last`)};if(this.containerRef.current){e();const t=new MutationObserver(((t,n)=>{for(const n of t)("attributes"===n.type&&"class"===n.attributeName||"childList"===n.type&&Array.from(n.addedNodes).some((e=>"BUTTON"===e.nodeName)))&&e()}));t.observe(this.containerRef.current,{attributes:!0,childList:!0,subtree:!0}),this.mutationObserver=t}}componentWillUnmount(){var e;super.componentWillUnmount(),null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){const{children:e,style:t,className:n}=this.props,r=x()(`${jS}-split`,n);return u().createElement("div",{ref:this.containerRef,className:r,style:t,role:"group","aria-label":this.props["aria-label"]},e)}}VS.propTypes={style:C().object,className:C().string,"aria-label":C().string};const $S={PREFIX:`${E}-steps`,ITEM:`${E}-steps-item`};var BS;!function(e){e.small="large",e.default="extra-large"}(BS||(BS={}));const zS=e=>{const{prefixCls:t,className:n,size:r,title:i,description:s,status:a,style:o,active:l,done:c,icon:h,stepNumber:d,onClick:p,onChange:f,onKeyDown:m}=e,g=x()(t,`${t}-${a}`,{[`${t}-active`]:l,[`${t}-done`]:c,[`${t}-hover`]:f||e.onClick,[`${t}-clickable`]:f||p,[`${t}-${a}-hover`]:f||e.onClick},n);return u().createElement("div",{role:e.role,"aria-label":e["aria-label"],tabIndex:0,"aria-current":"step",className:g,style:o,onClick:e=>(e=>{null==p||p(e),null==f||f()})(e),onKeyDown:e=>{"Enter"===e.key&&(null==m||m(e),null==f||f())}},u().createElement("div",{className:`${t}-container`},u().createElement("div",{className:`${t}-left`},(()=>{let n,i;if("icon"in e)u().isValidElement(h)&&(n=h);else if("status"in e)switch(a){case"error":n=u().createElement(Li,{size:BS[r]});break;case"wait":n=u().createElement("span",{className:`${t}-number-icon`},d);break;case"process":n=u().createElement("span",{className:`${t}-number-icon`},d),i=!0;break;case"finish":n=u().createElement(Mi,{size:BS[r]});break;case"warning":n=u().createElement(Ni,{size:BS[r]});break;default:n=null}const s=x()({[`${t}-icon`]:!0,[`${t}-custom-icon`]:"icon"in e,[`${t}-icon-process`]:i});return n?u().createElement("span",{className:s},n):null})()),u().createElement("div",{className:`${t}-content`},u().createElement("div",{className:`${t}-title`},u().createElement("div",{className:`${t}-title-text`},i)),s&&u().createElement("div",{className:`${t}-description`},s))))};zS.propTypes={prefixCls:C().string,description:C().node,icon:C().node,status:C().oneOf(["wait","process","finish","error","warning"]),title:C().node,className:C().string,style:C().object,onClick:C().func,active:C().bool,done:C().bool},zS.defaultProps={prefixCls:$S.ITEM,active:!1,done:!1,status:"wait",className:""};const HS=zS,KS=e=>{const{prefixCls:t,className:n,title:r,description:i,status:s,style:a,onClick:o,icon:l,onChange:c,stepNumber:h,onKeyDown:d}=e;return u().createElement("div",{role:e.role,"aria-label":e["aria-label"],"aria-current":"step",tabIndex:0,className:x()({[t]:!0,[`${t}-${s}`]:Boolean(s),[`${t}-${s}-hover`]:Boolean(s)&&(c||o),[`${t}-${s}-active`]:Boolean(s)&&(c||o),[`${t}-clickable`]:c||o},n),style:a,onClick:e=>{(e=>{null==o||o(e),null==c||c()})(e)},onKeyDown:e=>{"Enter"===e.key&&(null==d||d(e),null==c||c())}},(()=>{let n,r;if("icon"in e)n=l;else if("status"in e)switch(s){case"error":n=u().createElement(Li,{size:"extra-large"});break;case"wait":n=h;break;case"process":n=h,r=!0;break;case"finish":n=u().createElement(Mi,{size:"extra-large"});break;case"warning":n=u().createElement(Ni,{size:"extra-large"});break;default:n=null}const i=x()({[`${t}-left`]:!0,[`${t}-icon`]:"icon"in e,[`${t}-plain`]:!("icon"in e),[`${t}-icon-process`]:r,[`${t}-hover`]:c||o});return n?u().createElement("div",{className:i},n):null})(),u().createElement("div",{className:`${t}-content`},u().createElement("div",{className:`${t}-title`,title:"string"==typeof r?r:null},u().createElement("span",{className:`${t}-title-text`},r)),u().createElement("div",{className:`${t}-description`,title:"string"==typeof i?i:null},i)))};KS.propTypes={prefixCls:C().string,description:C().node,icon:C().node,status:C().oneOf(["wait","process","finish","error","warning"]),title:C().node,className:C().string,style:C().object,onClick:C().func},KS.defaultProps={prefixCls:$S.ITEM,status:"wait",className:""};const US=KS,WS=e=>{const{prefixCls:t,className:n,title:r,style:i,active:s,index:a,total:o,onClick:l,onKeyDown:c,onChange:h}=e,d=x()(t,{[`${t}-active`]:s},n);return u().createElement("div",{role:e.role,"aria-label":e["aria-label"],"aria-current":"step",tabIndex:0,className:d,style:i,onClick:e=>(e=>{null==l||l(e),null==h||h()})(e),onKeyDown:e=>{"Enter"===e.key&&(null==c||c(e),null==h||h())}},u().createElement("div",{className:`${t}-container`},u().createElement("div",{className:`${t}-content`},u().createElement("div",{className:`${t}-title`},r)),a!==o-1&&u().createElement("div",{className:`${t}-icon`},u().createElement(pl,{size:"small"}))))};WS.propTypes={prefixCls:C().string,title:C().node,className:C().string,style:C().object,onClick:C().func,active:C().bool},WS.defaultProps={prefixCls:$S.ITEM,active:!1,className:""};const GS=WS,qS=u().createContext(null),YS=e=>{const{type:t}=(0,h.useContext)(qS);return(()=>{switch(t){case"fill":return u().createElement(US,Object.assign({},e));case"basic":return u().createElement(HS,Object.assign({},e));case"nav":return u().createElement(GS,Object.assign({},e));default:return null}})()};__webpack_require__("hlZc");var XS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const ZS=e=>{const{current:t,status:n,children:r,prefixCls:i,initial:s,direction:a,className:o,style:l,onChange:c}=e,p=XS(e,["current","status","children","prefixCls","initial","direction","className","style","onChange"]),f=(0,h.useMemo)((()=>{const e=h.Children.toArray(r).filter((e=>(0,h.isValidElement)(e))),o="vertical"===a?null:{width:100/e.length+"%"},l=h.Children.map(e,((e,r)=>{if(!e)return null;const l=s+r,d=Object.assign({stepNumber:`${l+1}`,direction:a},e.props);return"error"===n&&r===t-1&&(d.className=`${i}-next-error`),e.props.status||(d.status=l===t?n:l<t?"finish":"wait"),d.onChange=c?()=>{r!==t&&c(r+s)}:void 0,u().createElement(kx,{style:o},(0,h.cloneElement)(e,Object.assign({},d)))}));return l}),[r,s,i,a,n,t,c]),m=x()(o,{[i]:!0,[`${i}-${a}`]:!0});return u().createElement("div",Object.assign({className:m,style:l,"aria-label":e["aria-label"]},d(p)),u().createElement(Cx,{type:"flex",justify:"start"},f))};ZS.propTypes={prefixCls:C().string,className:C().string,style:C().object,current:C().number,initial:C().number,direction:C().oneOf(["horizontal","vertical"]),status:C().oneOf(["wait","process","finish","error","warning"])},ZS.defaultProps={prefixCls:$S.PREFIX,current:0,direction:"horizontal",initial:0,status:"process"};const JS=ZS;var QS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const e_=e=>{const{size:t,current:n,status:r,children:i,prefixCls:s,initial:a,direction:o,className:l,style:c,hasLine:p,onChange:f}=e,m=QS(e,["size","current","status","children","prefixCls","initial","direction","className","style","hasLine","onChange"]),g=(0,h.useMemo)((()=>{const e=h.Children.toArray(i).filter((e=>(0,h.isValidElement)(e))),o=h.Children.map(e,((e,i)=>{if(!e)return null;const o=a+i,l=Object.assign({stepNumber:`${o+1}`,size:t},e.props);return"error"===r&&i===n-1&&(l.className=`${s}-next-error`),e.props.status||(l.status=o===n?r:o<n?"finish":"wait"),l.active=o===n,l.done=o<n,l.onChange=f?()=>{i!==n&&f(i+a)}:void 0,(0,h.cloneElement)(e,Object.assign({},l))}));return o}),[i,a,s,o,r,n,t,f]),y=x()(l,{[`${s}-basic`]:!0,[`${s}-${o}`]:!0,[`${s}-${t}`]:"default"!==t,[`${s}-hasline`]:p});return u().createElement("div",Object.assign({"aria-label":e["aria-label"],className:y,style:c},d(m)),g)};e_.propTypes={prefixCls:C().string,className:C().string,style:C().object,current:C().number,initial:C().number,direction:C().oneOf(["horizontal","vertical"]),status:C().oneOf(["wait","process","finish","error","warning"]),hasLine:C().bool},e_.defaultProps={prefixCls:$S.PREFIX,current:0,direction:"horizontal",size:"",initial:0,hasLine:!0,status:"process"};const t_=e_;var n_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const r_=e=>{const{size:t,current:n,initial:r,children:i,prefixCls:s,className:a,style:o,onChange:l}=e,c=n_(e,["size","current","initial","children","prefixCls","className","style","onChange"]),p=(0,h.useMemo)((()=>{const e=h.Children.toArray(i).filter((e=>(0,h.isValidElement)(e))),t=e.length,s=h.Children.map(e,((e,i)=>{if(!e)return null;const s=Object.assign({index:i,total:t},e.props);return s.active=i===n,s.onChange=l?()=>{i!==n&&l(i+r)}:void 0,(0,h.cloneElement)(e,Object.assign({},s))}));return s}),[i,s,n,t,r,l]),f=x()(a,{[`${s}-nav`]:!0,[`${s}-${t}`]:"default"!==t});return u().createElement("div",Object.assign({"aria-label":e["aria-label"],className:f,style:o},d(c)),p)};r_.propTypes={prefixCls:C().string,className:C().string,style:C().object,current:C().number,initial:C().number,size:C().oneOf(["small","default"])},r_.defaultProps={prefixCls:$S.PREFIX,current:0,direction:"horizontal",size:"default",initial:0,status:"process"};const i_=r_;var s_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class a_ extends h.Component{renderComponent(){const e=this.props,{type:t}=e,n=s_(e,["type"]);switch(t){case"fill":return u().createElement(JS,Object.assign({},n));case"basic":return u().createElement(t_,Object.assign({},n));case"nav":return u().createElement(i_,Object.assign({},n));default:return null}}render(){const{type:e}=this.props;return u().createElement(qS.Provider,{value:{type:e}},this.renderComponent())}}a_.Step=YS,a_.propTypes={onChange:C().func,type:C().oneOf(["fill","basic","nav"]),size:C().oneOf(["small","default"])},a_.defaultProps={type:"fill",size:"default"};const o_=a_;class l_ extends c{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch(e){ye(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){void 0!==this.getProps().checked||this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t)}destroy(){}}const c_={PREFIX:`${E}-switch`,FOCUS:`${E}-switch-focus`,LARGE:`${E}-switch-large`,SMALL:`${E}-switch-small`,CHECKED:`${E}-switch-checked`,DISABLED:`${E}-switch-disabled`,ACTIVE:`${E}-switch-active`,KNOB:`${E}-switch-knob`,NATIVE_CONTROL:`${E}-switch-native-control`,CHECKED_TEXT:`${E}-switch-checked-text`,UNCHECKED_TEXT:`${E}-switch-unchecked-text`,LOADING_SPIN:`${E}-switch-loading-spin`,LOADING:`${E}-switch-loading`};__webpack_require__("Ak1P");var h_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class u_ extends f{constructor(e){super(e),this.handleFocusVisible=e=>{this.foundation.handleFocusVisible(e)},this.handleBlur=e=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=u().createRef(),this.foundation=new l_(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:n}=this.state,r=this.props,{className:i,style:s,onMouseEnter:a,onMouseLeave:o,size:l,checkedText:c,uncheckedText:h,loading:d,id:p}=r,f=h_(r,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),m=x()(i,{[c_.PREFIX]:!0,[c_.CHECKED]:e,[c_.DISABLED]:t,[c_.LARGE]:"large"===l,[c_.SMALL]:"small"===l,[c_.LOADING]:d,[c_.FOCUS]:n}),g={type:"checkbox",className:c_.NATIVE_CONTROL,disabled:t||d,checked:e||!1},y=c&&e&&"small"!==l,v=h&&!e&&"small"!==l;return u().createElement("div",Object.assign({className:m,style:s,onMouseEnter:a,onMouseLeave:o},this.getDataAttr(f)),d?u().createElement(tr,{wrapperClassName:c_.LOADING_SPIN,size:"default"===l?"middle":l}):u().createElement("div",{className:c_.KNOB,"aria-hidden":!0}),y?u().createElement("div",{className:c_.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,v?u().createElement("div",{className:c_.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},h):null,u().createElement("input",Object.assign({},g,{ref:this.switchRef,id:p,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:e=>this.foundation.handleChange(e.target.checked,e),onFocus:e=>this.handleFocusVisible(e),onBlur:e=>this.handleBlur(e)})))}}u_.propTypes={"aria-label":C().string,"aria-labelledby":C().string,"aria-invalid":C().bool,"aria-errormessage":C().string,"aria-describedby":C().string,className:C().string,checked:C().bool,checkedText:C().node,defaultChecked:C().bool,disabled:C().bool,loading:C().bool,onChange:C().func,onMouseEnter:C().func,onMouseLeave:C().func,style:C().object,size:C().oneOf(["default","small","large"]),uncheckedText:C().node,id:C().string},u_.defaultProps={disabled:!1,className:"",onChange:i(),loading:!1,onMouseEnter:i(),onMouseLeave:i(),size:"default"};const d_=u_;var p_=__webpack_require__("cdI6"),f_=__webpack_require__.n(p_),m_=__webpack_require__("oBkS"),g_=__webpack_require__.n(m_),y_=__webpack_require__("+DnP"),v_=__webpack_require__.n(y_),b_=__webpack_require__("6OdC"),x_=__webpack_require__.n(b_);const w_={PREFIX:`${E}-table`,TABLE:`${E}-table`,WRAP:`${E}-table-wrapper`,THEAD:`${E}-table-thead`,TR:`${E}-table-row`,TH:`${E}-table-row-head`,TD:`${E}-table-row-cell`},C_={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],JUSTIFY_CONTENT:["flex-start","flex-end","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},E_={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:16,DEFAULT_CELL_PADDING_BOTTOM:16,DEFAULT_CELL_MIDDLE_PADDING_TOP:12,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:12,DEFAULT_CELL_SMALL_PADDING_TOP:8,DEFAULT_CELL_SMALL_PADDING_BOTTOM:8,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:1,DEFAULT_CELL_LINE_HEIGHT:20,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:53,DEFAULT_VIRTUALIZED_ROW_HEIGHT:53,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:33,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:45,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:45,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:25,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:37,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:37,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:17};const S_=class{constructor(e){this._prefix=e}_isEmpty(e){return null==e||""===e}_baseLog(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"log";if("function"==typeof console[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=[...n];this._isEmpty(this._prefix)||i.unshift(this._prefix,":"),console[e](...i)}}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._baseLog("log",...t)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._baseLog("warn",...t)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._baseLog("error",...t)}info(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._baseLog("info",...t)}};function __(e,t){t=Array.isArray(t)?t:["key","dataIndex"];let n=null;return fe()(t,(t=>{if(n=a()(e,t),null!=n)return!1})),n}function k_(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;t=t<0||"number"!=typeof t?0:t,n=n>e.length||"number"!=typeof n?e.length:n;let r=0;return fe()(e,((e,i)=>{i>=t&&i<n&&(r+="number"!=typeof e||isNaN(e)?0:e)})),r}function P_(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["key"];const r=v_()(e,(e=>!0===e.fixed||"left"===e.fixed)),i=nv()(r,(e=>n.every((n=>null!=e[n]&&e[n]===t[n]))));return r.length>0&&i===r.length-1}function O_(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["key"];const r=v_()(e,(e=>"right"===e.fixed)),i=nv()(r,(e=>n.every((n=>null!=e[n]&&e[n]===t[n]))));return r.length>0&&0===i}function T_(e){return["left",!0].includes(a()(e,"fixed"))}function I_(e){return["right"].includes(a()(e,"fixed"))}function D_(e){return a()(e,"key")===C_.DEFAULT_KEY_COLUMN_EXPAND}function A_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[C_.DEFAULT_KEY_COLUMN_SCROLLBAR];return v_()(e,(e=>!t.includes(e.key)))}function R_(e,t){return void 0===t&&(t="key"),"function"==typeof t?t(e):a()(e,t)}function N_(e,t){return null!=t&&wl()(e,t)}function M_(e,t){return null!==t&&e.has(t)}function F_(e,t){return null!==t&&e.has(t)}function L_(e,t,n){return void 0===n&&(n="key"),av()(e,(e=>null!=t&&""!==t&&R_(e,n)===t))}function j_(){let e=arguments.length>1?arguments[1]:void 0;return void 0===e&&(e="__expanded_row"),(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+e}function V_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children";const n=[];if(Array.isArray(e)&&e.length)for(const r of e)Array.isArray(r[t])&&r[t].length?n.push(...V_(r[t],t)):(U_(r),n.push(r));return n}function $_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[];return fe()(e,((e,i)=>{if(null==e.key){const t=e.dataIndex||i;e.key=`${n}-${t}`}Array.isArray(e[t])&&e[t].length&&r.push(...e[t])})),r.length&&$_(r,t,n+1),e}function B_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=[];return Array.isArray(e)&&e.length&&r<=t&&e.forEach((e=>{const s=e[n];Array.isArray(s)&&s.length&&r<t?i.push(...B_(s,t,n,r+1)):i.push(e)})),i}function z_(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return fe()(e,(e=>{if(e&&null!=e.key&&!n&&e.key===t.key&&(n=e),e&&Array.isArray(e[r])&&!n&&(n=z_(e[r],t,r)),n)return!1})),n}function H_(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=n.findIndex((n=>e.dataIndex===n.dataIndex&&(t=Object.assign(Object.assign({},n),e),!0)));return r>-1?n.splice(r,1,t):n.push(t),[...n]}function K_(e){let{dataSource:t,getCheckboxProps:n,childrenRecordName:r,rowKey:i}=e;const s=[];if(Array.isArray(t)&&t.length&&"function"==typeof n)for(const e of t){const t=n(e),o="function"==typeof i?i(e):a()(e,i);t&&t.disabled&&s.push(o);const l=a()(e,r);if(Array.isArray(l)&&l.length){const e=K_({dataSource:l,getCheckboxProps:n});s.push(...e)}}return s}function U_(e){if("object"==typeof e&&null!==e){const{filters:t,sorter:n,dataIndex:r,onFilter:i}=e,s=new S_("[@douyinfe/semi-ui Table]");(Array.isArray(t)||J()(i)||J()(n))&&ve(r)&&s.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function W_(e){let{dataSource:t,childrenRecordName:n="children"}=e,r=!1;if(Array.isArray(t))for(const e of t){const t=a()(e,n);if(Array.isArray(t)&&t.length){r=!0;break}}return r}function G_(e,t){if("rtl"===t)switch(e){case"left":return"right";case"right":return"left";default:return e}return e}function q_(e){return!0===e||a()(e,"showTitle",!0)}const Y_=class{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){this._listeners.push(e);return()=>{const t=this._listeners.indexOf(e);t>-1&&this._listeners.splice(t,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const e of this._listeners)"function"==typeof e&&e(this._state)}getState(){return this._state}};var X_=__webpack_require__("NbvU"),Z_=__webpack_require__.n(X_),J_=__webpack_require__("jHPj"),Q_=__webpack_require__.n(J_);function ek(e,t){if(e===t&&(t=function(e){return new Set(e)}(t)),bl()(e)&&e.size&&bl()(t)&&t.size){for(const n of t)e.has(n)&&e.delete(n);return e}return e}function tk(e,t){if(null!==e&&e.length&&null!==t&&t.length){const n=ek(new Set(e),new Set(t));return Array.from(n)}return e}class nk extends c{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach((e=>{nk.initFilteredValue(e),nk.initSorterOrder(e)})),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:n}=e;le()(n)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:n,sorter:r}=e;r&&le()(n)&&(le()(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(e,t)=>{e=e||this._adapter.getCurrentPage();const n=this.getState("pagination"),{dataSource:r,pagination:i,disabledRowKeys:s,allRowKeys:a}=this.getCurrentPageData(null,Object.assign(Object.assign({},n),{currentPage:e,pageSize:t}));!this._pagerIsControlled()&&e>0&&(this._adapter.setDisabledRowKeys(s),this._adapter.setAllRowKeys(a),this._adapter.setPagination(i),this._adapter.setDataSource(r)),this._notifyChange(i)},this.setCachedFilteredSortedDataSource=e=>{this._adapter.setCachedFilteredSortedDataSource(e);const t=this.getAllRowKeys(e);this._adapter.setCachedFilteredSortedRowKeys(t)},this.isSortOrderValid=e=>C_.SORT_DIRECTIONS.includes(e)||!1===e;const t=this._adapter.getHandleColumns(),n=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Gc(t,he()),this.memoizedFilterColumns=Gc(A_),this.memoizedFlattenFnsColumns=Gc(V_),this.memoizedPagination=Gc(n,he())}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),n=this.getFilteredSortedDataSource(e,t),r=this.getAllDisabledRowKeys(n),i=this.getCurrentPageData(n);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(n),this.setAllDisabledRowKeys(r)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:n=[],expandedRowKeys:r=[],dataSource:i=[],expandAllRows:s,defaultExpandAllGroupRows:a,expandAllGroupRows:o}=this.getProps(),l=[];t||s?this._addNoDuplicatedItemsToArr(l,this.getAllRowKeys(i),e&&Z_()(e)&&e.size?Array.from(e.keys()):[]):a||o?this._addNoDuplicatedItemsToArr(l,r,e&&Z_()(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(n)&&n.length?this._addNoDuplicatedItemsToArr(l,n):Array.isArray(r)&&r.length&&this._addNoDuplicatedItemsToArr(l,r),this._adapter.setExpandedRowKeys(l)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const n=this.getProp("rowSelection"),r=[];if(n){const e=a()(n,"selectedRowKeys"),i=a()(n,"defaultSelectedRowKeys");Array.isArray(e)?this._addNoDuplicatedItemsToArr(r,e):Array.isArray(i)&&this._addNoDuplicatedItemsToArr(r,i),Array.isArray(t)&&t.length&&Q_()(r,...t),this._adapter.setSelectedRowKeys(r)}}getFilteredSortedDataSource(e,t){const n=this.filterDataSource(e,t.filter((e=>{const t=e.filteredValue?e.filteredValue:e.defaultFilteredValue;return J()(e.onFilter)&&Array.isArray(t)&&t.length})));return this.sortDataSource(n,t.filter((e=>e&&J()(e.sorter))))}getCurrentPageData(e,t,n){const r=this._adapter.getCachedFilteredSortedDataSource();let i;if(e=null==e?[...r]:e,t=null==t?this.getState("pagination")&&Object.assign({},this.getState("pagination")):t,n=null==n?[...this.getState("queries")]:n,null!=this.getProp("groupBy")){const{groups:t,dataSource:n}=this.groupDataSource(e);e=n,i=t}t=this.normalizePagination(t,e);return{dataSource:e=this.limitPageDataSource(e,t),groups:i,pagination:t,disabledRowKeys:this.getAllDisabledRowKeys(e),allRowKeys:this.getAllRowKeys(e),queries:n}}groupDataSource(e,t){t=null==t?this.getProp("groupBy"):t;const n=new Map,r=[];return null!=t&&fe()(e,((e,r)=>{const i="function"==typeof t?t(e):a()(e,t);if(null!=i&&""!==i){const t=this.getRecordKey(e);let r=n.get(i);bl()(r)?r.add(t):(r=new Set([t]),n.set(i,r))}})),n&&n.size?n.forEach(((e,t)=>{bl()(e)&&e.forEach((e=>{r.push(this._getRecord(e))}))})):r.push(...e),{groups:n,dataSource:r}}sortDataSource(e,t){return fe()(t,(t=>{const{sorter:n,sortOrder:r,defaultSortOrder:i,sortChildrenRecord:s}=t,a=this.isSortOrderValid(r)?r:i;if(J()(n)&&a&&C_.SORT_DIRECTIONS.includes(a)){if(s){const n=this.getProp("childrenRecordName");e=e&&e.map((e=>{const r=this._getRecordChildren(e);return Array.isArray(r)&&r.length?Object.assign(Object.assign({},e),{[n]:this.sortDataSource(r,[t])}):e}))}return e.sort(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ascend";return"descend"===t?(n,r)=>{const i=Number(e(n,r,t));return 0!==i?-i:i}:(n,r)=>e(n,r,t)}(n,a)),!1}})),e}filterDataSource(e,t){let n=null,r=!1;const i=this.getProp("childrenRecordName");return fe()(t,(t=>{const{onFilter:s,filteredValue:o,filterChildrenRecord:l,defaultFilteredValue:c}=t,h=Array.isArray(o)?o:c;"function"==typeof s&&Array.isArray(h)&&h.length&&(r=!0,null===n||(e=Array.from(n&&n.values())),n=new Map,fe()(e,(e=>{fe()(h,(r=>{const o=a()(e,i),c=this.getRecordKey(e);let h;if(Array.isArray(o)&&o.length&&l&&(h=this.filterDataSource(o,[t])),Array.isArray(h)&&h.length){if(null!=c){const t=a()(n.get(c),i,[]);n.set(c,Object.assign(Object.assign({},e),{[i]:h.reduce(((e,t)=>(null==e.find((e=>this.getRecordKey(e)===this.getRecordKey(t)))&&e.push(t),e)),[...t])}))}}else s(r,e)&&n.set(c,e)}))})))})),r&&(e=Array.from(n&&n.values())),e}limitPageDataSource(e,t){e=null==e?this.getProp("dataSource"):e,t=null==t?this.getState("pagination"):t;let n=e;const r=a()(t,"currentPage");if(!1!==this.getProp("pagination")&&r&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=E_.DEFAULT_PAGE_SIZE}=t,s=(r-1)*i,a=r*i;n=lv()(e,s,a)}return n}normalizePagination(e,t){e=null==e?this._getPagination():e,t=null==t?this._getDataSource():t;const n=this.getProp("pagination");if(e&&(e="object"==typeof e?Object.assign({},e):{},e=ie()({total:t&&t.length||0,pageSize:E_.DEFAULT_PAGE_SIZE,currentPage:a()(n,"defaultCurrentPage",1),position:C_.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const r=a()(n,"total",t.length),{currentPage:i,pageSize:s}=e,o=Math.ceil(r/s);e.total=r,i>o&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{pagination:t,dataSource:n,disabledRowKeys:r,allRowKeys:i,groups:s}=e;this._adapter.setDisabledRowKeys(r),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(s),this._adapter.setDataSource(n)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(const t of n)if(Array.isArray(t))for(const n of t)e.includes(n)||e.push(n);return e}_notifyChange(e,t,n,r){e=null==e?this._getPagination():e,t=null==t?this._getAllFilters():t,n=null==n?this._getAllSorters()[0]:n,a()(this.getProp("scroll"),"scrollToFirstRowOnChange")&&this._adapter.resetScrollY(),this._adapter.notifyChange({pagination:Object.assign({},e),filters:[...t],sorter:n,extra:Object.assign({},r)})}_rowExpansionIsControlled(){return Array.isArray(this.getProp("expandedRowKeys"))}_pagerIsControlled(){return null!=a()(this.getProp("pagination"),"currentPage")}_selectionIsControlled(){return Array.isArray(a()(this.getProp("rowSelection"),"selectedRowKeys"))}_sorterIsControlled(e){const t=e&&this.getQuery(e,this.getState("flattenColumns"));return Boolean(t&&null!=t.sortOrder)}_filterIsControlled(e){const t=e&&this.getQuery(e,this.getState("flattenColumns"));return Boolean(t&&Array.isArray(t.filteredValue))}_filterShowIsControlled(e){const t=e&&this.getQuery(e,this.getState("flattenColumns"));return Boolean(t&&(!0===t.filterDropdownVisible||!1===t.filterDropdownVisible))}_getSelectedRowKeys(){const e=this.getState("rowSelection");return[...a()(e,"selectedRowKeys",[])]}_getSelectedRowKeysSet(){const e=this.getState("rowSelection");return a()(e,"selectedRowKeysSet",new Set)}_getDataSource(){return this.getProp("dataSource")||[]}_getRecord(e){return av()(this.getProp("dataSource"),(t=>null!=e&&""!==e&&this.getRecordKey(t)===e))}_getRecordChildren(e){return a()(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return fe()(e,(e=>{Array.isArray(e.filteredValue)&&(e.filteredValue.length||this._filterIsControlled(e.dataIndex))&&t.push(e)})),t}_getAllSorters(e){return e=e||this.getState("queries"),v_()(e,(e=>e.sorter&&e.sortOrder))}_filterQueries(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["dataIndex"];t=null==t?this.getState("queries"):t;const r=[],i=[];return fe()(t,((t,s)=>{g_()(n,(n=>n&&null!=e[n]&&e[n]===t[n]))&&(r.push(t),i.push(s))})),{filteredQueries:r,filteredIndexes:i}}_mergeToQueries(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["dataIndex"];t=null==t?this.getState("queries"):t,t=[...t],e=Object.assign({},e);const{filteredQueries:r,filteredIndexes:i}=this._filterQueries(e,t,n);return fe()(r,((n,r)=>{t[i[r]]=Object.assign({},e)})),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return"function"==typeof t?t(e):a()(e,t)}isEmpty(e){return e=null==e?this.getProp("dataSource"):e,!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,n){if(this.stopPropagation(n),"boolean"==typeof t&&null!=e){const r=this._getSelectedRowKeys();let i=-1;const s=this.getSelectedRows(null,[e])[0];let a;(i=r.indexOf(e))>-1&&!1===t?(r.splice(i,1),a=this.getSelectedRows(null,r),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(r),this._adapter.notifySelect(s,t,a,n),this._adapter.notifySelectionChange(r,a)):-1===r.indexOf(e)&&!0===t&&(r.push(e),a=this.getSelectedRows(null,r),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(r),this._adapter.notifySelect(s,t,a,n),this._adapter.notifySelectionChange(r,a))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),"boolean"==typeof e){const n=this._getSelectedRowKeys();let r=[...n];const i=this._getSelectedRowKeysSet();let s=[...this._adapter.getCachedFilteredSortedRowKeys()];const a=this._adapter.getAllDisabledRowKeys(),o=this._adapter.getAllDisabledRowKeysSet();let l;if(e){for(const e of s)o.has(e)||i.has(e)||r.push(e);s=tk(s,[...a,...n]),l=[...s]}else r=tk(r,s),l=[...n];const c=this.getSelectedRows(null,l||[]),h=this.getSelectedRows(null,r||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(r),this._adapter.notifySelectAll(e,h,c,t),this._adapter.notifySelectionChange(r,h)}}getSelectedRows(e,t,n){e=null==e?this._getDataSource():e,t=null==t?this._getSelectedRowKeys():t,bl()(n)||(n=new Set(t));const r=this.getProp("childrenRecordName"),i=[];if(bl()(n)&&n.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter((e=>n.has(this.getRecordKey(e))))),i.length<t.length))for(const s of e){const e=a()(s,r);if(Array.isArray(e)&&e.length){const r=this.getSelectedRows(e,t,n);i.push(...r)}}return i}getAllDisabledRowKeys(e,t){e=null==e?this._getDataSource():e,t=null==t?a()(this.getProp("rowSelection"),"getCheckboxProps"):t;const n=this.getProp("childrenRecordName"),r=[];if(Array.isArray(e)&&e.length&&"function"==typeof t)for(const i of e){const e=t(i);e&&e.disabled&&r.push(this.getRecordKey(i));const s=a()(i,n);if(Array.isArray(s)&&s.length){const e=this.getAllDisabledRowKeys(s,t);r.push(...e)}}return r}getAllRowKeys(e){e=null==e?this._getDataSource():e;const t=this.getProp("childrenRecordName"),n=[];if(Array.isArray(e)&&e.length)for(const r of e){const e=[],i=a()(r,t);Array.isArray(i)&&i.length&&e.push(...this.getAllRowKeys(i)),n.push(this.getRecordKey(r),...e)}return n}hasRowSelected(e,t){return Boolean(Array.isArray(e)&&e.length&&bl()(t)&&t.size&&e.filter((e=>t.has(e))).length)}handleRowExpanded(e,t,n){this.stopPropagation(n);const r=[...this.getState("expandedRowKeys")],i=r.indexOf(t),s="string"==typeof t||"number"==typeof t;s&&e&&-1===i?r.push(t):s&&!e&&i>-1&&r.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(r);const a=this.getSelectedRows(null,r);let o=this.getSelectedRows(null,[t])[0];const l=this._getGroups();if(l){l.has(t)&&(o={groupKey:t});for(let e=0,n=r.length;e<n;e++)l.has(t)&&a.push({groupKey:r[e]})}this._adapter.notifyExpand(e,o,n),this._adapter.notifyExpandedRowsChange(a)}_getGroups(){if(null!==this._adapter.getProp("groupBy")){return this._adapter.getState("groups")}return null}allIsSelected(e,t,n){const r=v_()(n,(e=>null!=e&&!t.has(e)));if(r&&r.length){for(const t of r)if(null!=t&&!e.has(t))return!1;return!0}return n.length&&n.every((t=>e.has(t)))||!1}allIsNotSelected(e,t){for(const n of t)if(null!=n&&Array.isArray(e)&&e.includes(n))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="";const r=a()(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:s,currentPage:o}=e,l=Math.min((o-1)*s+1,i),c=Math.min(o*s,i);return(r||!1!==r&&t&&i>0)&&(n="function"==typeof r?r({currentStart:l,currentEnd:c,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",c).replace("${total}",i)),n}toggleShowFilter(e,t){let n=this.getQuery(e);const r=t;n=Object.assign(Object.assign({},n),{filterDropdownVisible:r}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(r,e)}handleFilterSelect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getQuery(e),r=[...this._adapter.getState("queries")];const{filteredValue:i}=t;n=Object.assign(Object.assign({},n),{filteredValue:i}),r=H_(n,r);const s=this._mergeToQueries(n,null),a=this._getAllFilters(s);this._filterIsControlled(e)||(this._adapter.setQueries(r),this.handleClickFilterOrSorter(r)),this._notifyChange(null,a)}handleSort(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:n}=e;let r=this.getState("queries"),i=null;r=[...r],fe()(r,((e,t,r)=>{if(e.sorter){const s=Object.assign({},e),o=a()(s,"sortOrder"),l=a()(s,"defaultSortOrder",!1);let c=this.isSortOrderValid(o)?o:l;c=!(!n||n!==s.dataIndex)&&(c===C_.SORT_DIRECTIONS[0]?C_.SORT_DIRECTIONS[1]:c!==C_.SORT_DIRECTIONS[1]&&C_.SORT_DIRECTIONS[0]),r[t]=Object.assign(Object.assign({},s),{sortOrder:c}),n===s.dataIndex&&(i=r[t])}})),this._sorterIsControlled(n)||(this._adapter.setQueries(r),this.handleClickFilterOrSorter(r)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],n=this.getFilteredSortedDataSource(t,e),r=this.getAllDisabledRowKeys(n);this.setCachedFilteredSortedDataSource(n),this.setAllDisabledRowKeys(r);const i=this.getCurrentPageData(n);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),null!=e)return av()(t,(t=>t.dataIndex===e))}getCellWidths(e,t,n){return this._adapter.getCellWidths(e,t,n)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const rk=nk;__webpack_require__("u+/o");const ik={align:C().oneOf(C_.ALIGNS),className:C().string,colSpan:C().number,dataIndex:C().string,defaultSortOrder:C().oneOf(C_.SORT_DIRECTIONS),filterChildrenRecord:C().bool,filterDropdownProps:C().object,filterDropdown:C().node,filterDropdownVisible:C().bool,filterIcon:C().func,filterMultiple:C().bool,filteredValue:C().arrayOf(C().any),filters:C().array,fixed:C().oneOf(C_.FIXED_SET),onCell:C().func,onFilter:C().func,onFilterDropdownVisibleChange:C().func,onHeaderCell:C().func,onSorterChange:C().func,render:C().func,renderFilterDropdownItem:C().func,sortChildrenRecord:C().bool,sortDirections:C().arrayOf(C().string),sortOrder:C().oneOfType([C().bool,C().string]),sorter:C().oneOfType([C().bool,C().func]),title:C().oneOfType([C().func,C().node]),useFullRender:C().bool,width:C().oneOfType([C().number,C().string])};class sk extends u().PureComponent{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}render(){return null}}function ak(e){if(e){const t=[];return u().Children.forEach(e,(e=>{if(u().isValidElement(e)&&(e.type===sk||"Column"===a()(e,"type.elementType"))){const n=ae()(e.props,["children"]);Array.isArray(e.props.children)&&e.props.children.length&&(n.children=ak(e.props.children)),t.push(Object.assign({key:e.key},n))}})),t}return[]}sk.propTypes=Object.assign({},ik),sk.elementType="Column";const ok=u().createContext({headWidths:[],setHeadWidths:i(),handleRowExpanded:i()}),lk=e=>{let{children:t,anyColumnFixed:n,flattenedColumns:r,tableWidth:i,headWidths:s,setHeadWidths:a,getHeadWidths:o,getCellWidths:l,handleRowExpanded:c,renderExpandIcon:d,renderSelection:p,getVirtualizedListRef:f,setBodyHasScrollbar:m,direction:g}=e;const y=(0,h.useMemo)((()=>({anyColumnFixed:n,flattenedColumns:r,renderExpandIcon:d,renderSelection:p,setHeadWidths:a,getHeadWidths:o,getCellWidths:l,headWidths:s,tableWidth:i,handleRowExpanded:c,getVirtualizedListRef:f,setBodyHasScrollbar:m,direction:g})),[n,r,d,p,a,o,l,s,i,c,f,m,g]);return u().createElement(ok.Provider,{value:y},t)};class ck extends c{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class hk extends f{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=e=>this.foundation.handleChange(e),this.foundation=new ck(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:n,disabled:r,prefixCls:i,className:s}=this.props,a=this.props["aria-label"];let o={onChange:this.handleChange,disabled:r,indeterminate:n,checked:e};"function"==typeof t&&(o=Object.assign(Object.assign({},o),t()));const l=x()(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:r},s);return u().createElement("span",{className:l},u().createElement(Nc,Object.assign({"aria-label":a},o)))}}hk.propTypes={columnTitle:C().string,getCheckboxProps:C().func,type:C().string,onChange:C().func,selected:C().bool,disabled:C().bool,indeterminate:C().bool,prefixCls:C().string,className:C().string,"aria-label":C().string},hk.defaultProps={disabled:!1,onChange:i(),prefixCls:w_.PREFIX};class uk extends h.PureComponent{render(){const{pagination:e,prefixCls:t,info:n,renderPagination:r}=this.props,i=a()(e,"total"),s=r&&J()(r)?r(e):null;return u().createElement("div",{className:`${t}-pagination-outer`},(0,h.isValidElement)(s)?s:u().createElement(u().Fragment,null,u().createElement("span",{className:`${t}-pagination-info`},n),u().createElement("span",{className:`${t}-pagination-wrapper`},i>0?u().createElement(EE,Object.assign({},e,{key:a()(e,"pageSize","pagination")})):null)))}}uk.propTypes={style:C().object,prefixCls:C().string,pagination:C().object,info:C().oneOfType([C().string,C().node]),renderPagination:C().func},uk.defaultProps={prefixCls:w_.PREFIX};const dk=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}),"filter");function pk(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{filterMultiple:r=!0,filters:s=[],filteredValue:a=[],filterDropdownVisible:o,onSelect:l=i(),onFilterDropdownVisibleChange:c=i(),trigger:h="click",position:d="bottom",renderFilterDropdown:p,renderFilterDropdownItem:f}=null!=e?e:{},m=Pl()(e,["tempFilteredValue","setTempFilteredValue","confirm","clear","close","filters"]),g="function"==typeof p?p(m):u().createElement(mx.Menu,null,Array.isArray(s)&&s.map(((t,i)=>{const s=e=>{const n=e&&e.nativeEvent;n&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault());let i=[...a];const s=i.includes(t.value),o=i.indexOf(t.value);return o>-1?i.splice(o,1):r?i.push(t.value):i=[t.value],l({value:t.value,filteredValue:i,included:!s,domEvent:n})},o=a.includes(t.value),{text:c}=t,{value:h}=t,d=`${n}_${i}`,p="function"==typeof f?f({onChange:s,filterMultiple:r,value:h,text:c,checked:o,filteredValue:a,level:n}):null;let m=p&&u().isValidElement(p)?u().cloneElement(p,{key:d}):u().createElement(mx.Item,{key:d,onClick:s},r?u().createElement(Nc,{checked:o},c):u().createElement(sS,{checked:o},c));if(Array.isArray(t.children)&&t.children.length){const r=Object.assign(Object.assign({},e),{filters:t.children,trigger:"hover",position:"right"});delete r.filterDropdownVisible,m=pk(r,m,n+1)}return m}))),y=Object.assign(Object.assign({},e),{onVisibleChange:e=>c(e),trigger:h,position:d,render:g});return null!=o&&(y.visible=o),u().createElement(mx,Object.assign({},y,{key:`Dropdown_level_${n}`,className:`${w_.PREFIX}-column-filter-dropdown`}),t)}function fk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{prefixCls:t=w_.PREFIX,filteredValue:n,filterIcon:r="filter",filterDropdownProps:i,onSelect:s,filterDropdownVisible:a,renderFilterDropdown:o,onFilterDropdownVisibleChange:l}=e;let{filterDropdown:c=null}=e;const d=void 0!==a,p=!d&&"function"==typeof o,[f,m]=(0,h.useState)(n),g=!p&&a,[y,v]=(0,h.useState)(g);(0,h.useEffect)((()=>{void 0!==a&&v(a)}),[a]),(0,h.useEffect)((()=>{m(n)}),[n]);const b={tempFilteredValue:f,setTempFilteredValue:m,confirm:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(null==e?void 0:e.filteredValue)||f;he()(t,n)||s({filteredValue:t}),e.closeDropdown&&v(!1)},clear:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m([]),s({filteredValue:[]}),e.closeDropdown&&v(!1)},close:()=>{v(!1)}},w=x()(`${t}-column-filter`,{on:Array.isArray(n)&&n.length});let C;C="function"==typeof r?r(Array.isArray(n)&&n.length>0):(0,h.isValidElement)(r)?r:u().createElement("div",{className:w},"",u().createElement(dk,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const E=Object.assign(Object.assign(Object.assign(Object.assign({},e),i),b),{filterDropdownVisible:d?a:y,onFilterDropdownVisibleChange:e=>{p&&v(e),l(e)}});return c=u().isValidElement(c)?c:pk(E,C),c}const mk=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}),"caretup");const gk=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}),"caretdown");class yk extends h.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:n,style:r,title:i,sortIcon:s}=this.props,a="default",o=x()(`${e}-column-sorter-up`,{on:n===C_.SORT_DIRECTIONS[0]}),l=x()(`${e}-column-sorter-down`,{on:n===C_.SORT_DIRECTIONS[1]}),c={"aria-label":"Current sort order is "+(n?`${n}ing`:"none"),"aria-roledescription":"Sort data with this column"};return u().createElement("div",Object.assign({role:"button"},c,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:e=>Jt(e)&&t(e)}),i,"function"==typeof s?s({sortOrder:n}):u().createElement("div",{style:r,className:`${e}-column-sorter`},u().createElement("span",{className:`${o}`},u().createElement(mk,{size:a})),u().createElement("span",{className:`${l}`},u().createElement(gk,{size:a}))))}}yk.propTypes={className:C().string,style:C().object,onClick:C().func,prefixCls:C().string,sortOrder:C().oneOfType([C().string,C().bool]),sortIcon:C().func},yk.defaultProps={prefixCls:w_.PREFIX,onClick:i(),sortOrder:!1};const vk=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}),"tree_triangle_down");const bk=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}),"tree_triangle_right");function xk(e){const{expanded:t,componentType:n,onClick:r=i(),onMouseEnter:s=i(),onMouseLeave:a=i(),expandIcon:o,prefixCls:l=w_.PREFIX,motion:c=!0}=e;let d;d=u().isValidElement(o)?o:"function"==typeof o?o(t):"tree"===n?t&&!c?u().createElement(vk,{size:"small"}):u().createElement(bk,{size:"small"}):t&&!c?u().createElement(yc,null):u().createElement(pl,null);const p=(0,h.useCallback)((e=>{"function"==typeof r&&r(!t,e)}),[t]);if(c){const e=d;d=u().createElement(ot,{animationState:t?"enter":"leave",startClassName:`${w_.PREFIX}-expandedIcon-${t?"show":"hide"}`},(t=>{let{animationClassName:n}=t;return u().cloneElement(e,{className:(e.props.className||"")+" "+n})}))}return u().createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:p,onMouseEnter:s,onMouseLeave:a,className:`${l}-expand-icon`,onKeyPress:e=>Jt(e)&&p(e)},d)}xk.propTypes={expanded:C().bool,componentType:C().oneOf(["tree","expand"]),onClick:C().func,onMouseEnter:C().func,onMouseLeave:C().func,expandIcon:C().oneOfType([C().node,C().func]),prefixCls:C().string,motion:C().bool},xk.defaultProps={componentType:"expand",onClick:i(),onMouseEnter:i(),onMouseLeave:i(),prefixCls:w_.PREFIX};class wk extends u().PureComponent{render(){const{columns:e,className:t,style:n,prefixCls:r,components:i}=this.props,s=a()(i,"colgroup.wrapper","colgroup"),o=a()(i,"colgroup.col","col"),l=V_(e).map(((e,t)=>{const n={};return e.width&&(n.width=e.width,n.minWidth=n.width),u().createElement(o,{className:x()(`${r}-col`,e.className),key:e.key||e.dataIndex||t,style:n})})),c=x()(`${r}-colgroup`,t);return u().createElement(s,{className:c,style:n},l)}}wk.propTypes={columns:C().array,prefixCls:C().string,className:C().string,style:C().object,components:C().object},wk.defaultProps={columns:[],prefixCls:w_.PREFIX};var Ck=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class Ek extends f{get adapter(){return Object.assign({},super.adapter)}constructor(e){super(e),this.cacheRef=e=>{if(this.headerNode=e,e&&this.context.setHeadWidths){const{prefixCls:t,row:n,index:r}=this.props,i=`.${t}-row-head`,s=e&&e.querySelectorAll&&e.querySelectorAll(i);this.context.setHeadWidths(iv()(s,((e,t)=>{let r=a()(n,[t,"column","width"]);const i=a()(n,[t,"column","key"]);return"number"!=typeof r&&(r=e&&e.getBoundingClientRect().width||0),{width:r,key:i}})),r)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:n,onHeaderRow:r,index:i,style:s,columns:o}=this.props,{getCellWidths:l,direction:c}=this.context,h="rtl"===c,d=B_(o,i),p=l(d),f=a()(e,"header.row","tr"),m=a()(e,"header.cell","th"),g=r(o,i)||{};Me()(g,"className",x()(a()(g,"className"),`${n}-row`));const y=iv()(t,((e,t)=>{const{column:r}=e,s=Ck(e,["column"]),a="function"==typeof r.onHeaderCell?r.onHeaderCell(r,t,i):{};let o,l,f,g,y=Object.assign({},a.style);if(r.align){const e=G_(r.align,c);y=Object.assign(Object.assign({},y),{textAlign:e}),a.className=x()(a.className,r.className,{[`${n}-align-${e}`]:Boolean(e)})}if(h?(o=I_(r),l=T_(r),f=O_(d,r),g=P_(d,r)):(o=T_(r),l=I_(r),f=P_(d,r),g=O_(d,r)),a.className=x()(`${n}-row-head`,r.className,a.className,{[`${n}-cell-fixed-left`]:o,[`${n}-cell-fixed-left-last`]:f,[`${n}-cell-fixed-right`]:l,[`${n}-cell-fixed-right-first`]:g,[`${n}-row-head-ellipsis`]:r.ellipsis}),p.length&&d.length){const e=nv()(d,(e=>e&&null!=e.key&&e.key===r.key));if(e>-1)if(T_(r)){const t=h?"right":"left";y=Object.assign(Object.assign({},y),{position:"sticky",[t]:k_(p,0,e)})}else if(I_(r)){const t=h?"left":"right";y=Object.assign(Object.assign({},y),{position:"sticky",[t]:k_(p,e+1)})}}Object.assign(s,{resize:r.resize});const v=ae()(Object.assign(Object.assign({},s),a),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:b,colSpan:w}=v;return 0===b||0===w?null:u().createElement(m,Object.assign({role:"columnheader","aria-colindex":t+1},v,{style:y,key:r.key||r.dataIndex||t}))}));return u().createElement(f,Object.assign({role:"row","aria-rowindex":i+1},g,{style:s,ref:this.cacheRef}),y)}}Ek.contextType=ok,Ek.propTypes={components:C().object,row:C().array,prefixCls:C().string,onHeaderRow:C().func,index:C().oneOfType([C().string,C().number]),style:C().object,columns:C().array,fixed:C().oneOfType([C().bool,C().string]),selectedRowKeysSet:C().instanceOf(Set).isRequired},Ek.defaultProps={onHeaderRow:i(),prefixCls:w_.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};class Sk extends f{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:n,fixed:r,onHeaderRow:i,forwardedRef:s,selectedRowKeysSet:a}=this.props,o=function(e){const t=[];!function e(n,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;t[s]=t[s]||[];let o=r;return n.map((n=>{const r={key:n.key,className:n.className||"",children:J()(n.title)?n.title():n.title,column:n,colStart:o,level:a,parents:i};let l=1;const c=n.children;return c&&c.length>0&&(l=e(c,o,[...i,r],s+1,a+1).reduce(((e,t)=>e+t),0),r.hasSubColumns=!0),"colSpan"in n&&({colSpan:l}=n),"rowSpan"in n&&(r.rowSpan=n.rowSpan),n.key===C_.DEFAULT_KEY_COLUMN_SCROLLBAR&&(r["x-type"]=C_.DEFAULT_KEY_COLUMN_SCROLLBAR),r.colSpan=l,r.colEnd=r.colStart+l-1,t[s].push(r),o+=l,q_(null==n?void 0:n.ellipsis)&&"string"==typeof r.children&&(r.title=r.children),l}))}(e,0);const n=t.length;for(let e=0;e<n;e+=1)t[e].forEach((t=>{"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}));return t}(t),l=e.header.wrapper;return u().createElement(l,{className:`${n}-thead`,ref:s},o.map(((s,o)=>u().createElement(Ek,{prefixCls:n,key:o,index:o,fixed:r,columns:t,row:s,components:e,onHeaderRow:i,selectedRowKeysSet:a}))))}}Sk.propTypes={components:C().any,columns:C().array,columnManager:C().object,prefixCls:C().string,onHeaderRow:C().func,onDidUpdate:C().func,fixed:C().oneOfType([C().bool,C().string]),selectedRowKeysSet:C().instanceOf(Set).isRequired},Sk.defaultProps={columns:[],prefixCls:w_.PREFIX,onHeaderRow:i(),onDidUpdate:i(),components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const _k=u().forwardRef(((e,t)=>u().createElement(Sk,Object.assign({},e,{forwardedRef:t}))));class kk extends u().PureComponent{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{selectedRowKeysSet:new Set})}render(){const{scroll:e,prefixCls:t,fixed:n,forwardedRef:r,handleBodyScroll:i,columns:s,components:o,onDidUpdate:l,showHeader:c,tableLayout:h,bodyHasScrollBar:d,sticky:p}=this.props,f=a()(o,"header.outer","table"),m=a()(e,"x"),g={},y={};m&&!n&&(y.width=m),d&&(g.overflowY="scroll");const v=u().createElement(wk,{columns:s,prefixCls:t}),b=u().createElement(_k,Object.assign({},this.props,{columns:s,components:o,onDidUpdate:l})),w=x()(`${t}-header`,{[`${t}-header-sticky`]:p,[`${t}-header-hidden`]:!c}),C=a()(p,"top",0);return"number"==typeof C&&(g.top=C),u().createElement("div",{key:"headTable",style:g,className:w,ref:r,onScroll:i},u().createElement(f,{style:y,className:x()(t,{[`${t}-fixed`]:"fixed"===h})},v,b))}}kk.propTypes={tableLayout:C().string,bodyHasScrollBar:C().bool,columns:C().array,components:C().object,dataSource:C().array,fixed:C().oneOfType([C().bool,C().string]),handleBodyScroll:C().func,prefixCls:C().string,forwardedRef:C().oneOfType([C().object,C().func]),scroll:C().shape({x:C().oneOfType([C().number,C().string,C().bool]),y:C().oneOfType([C().number,C().string])}),selectedRowKeysSet:C().instanceOf(Set).isRequired,showHeader:C().bool,onDidUpdate:C().func,onHeaderRow:C().func},kk.defaultProps={handleBodyScroll:i()};const Pk=u().forwardRef(((e,t)=>u().createElement(kk,Object.assign({},e,{forwardedRef:t}))));var Ok=__webpack_require__("7seP"),Tk=__webpack_require__.n(Ok),Ik=__webpack_require__("ehGJ"),Dk=__webpack_require__.n(Ik);class Ak extends c{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),n=function(e){const{expandedRowRender:t,dataSource:n,hideExpandedColumn:r,childrenRecordName:i,rowExpandable:s}=e,o="function"==typeof t;return r&&o||!o&&n.some((e=>{const t=a()(e,i);return!!(Array.isArray(t)&&t.length||s(e))}))}(t);if(this._adapter.setCachedExpandBtnShouldInRow(n),!z()(e)&&!e){e=C_.EXPAND_RELATED_PROPS.map((e=>a()(t,e,void 0)))}this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const i=[],{rowKey:s,childrenRecordName:o,expandedRowRender:l,expandedRowKeys:c,groups:h}=this.getProps();return 0===t&&Z_()(h)?h.forEach(((a,o)=>{const l=e.findIndex((e=>a.has(R_(e,s))));if(l>-1){const h=Dk()(e,(e=>a.has(R_(e,s)))),u=wl()(c,o);i.push({key:o,level:t,sectionRow:!0,group:a,groupKey:o,expanded:u}),u&&i.push(...this.flattenData(e.slice(l,h+1),t+1,[...n],[...r]))}})):e.forEach(((e,h)=>{const u=R_(e,s),d=function(e,t){return void 0===t&&(t="children"),a()(e,t)}(e,o);t&&r.push(u);const p={key:u,record:e,level:t,parentKeys:[...n],childrenKeys:[...r]};i.push(p);const f=[];wl()(c,u)&&(Array.isArray(d)&&d.length?f.push(...this.flattenData(d,t+1,[...p.parentKeys],[...p.childrenKeys])):l&&f.push({key:j_(u),level:t,expandedRow:!0,record:e}),i.push(...f))})),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(a()(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var Rk=__webpack_require__("zr3P"),Nk=__webpack_require__.n(Rk);let Mk,Fk;const Lk={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function jk(e){return"number"==typeof e?e-E_.DEFAULT_CELL_PADDING_LEFT-E_.DEFAULT_CELL_PADDING_RIGHT-E_.DEFAULT_CELL_BORDER_WIDTH_LEFT-E_.DEFAULT_CELL_BORDER_WIDTH_RIGHT-function(){if("undefined"==typeof document||"undefined"==typeof window)return 0;const e="vertical"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"vertical");if(e&&Mk)return Mk;if(!e&&Fk)return Fk;const t=document.createElement("div");Object.keys(Lk).forEach((e=>{t.style[e]=Lk[e]})),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let n=0;return e?(n=t.offsetWidth-t.clientWidth,Mk=n):(n=t.offsetHeight-t.clientHeight,Fk=n),document.body.removeChild(t),n}("vertical"):void 0}function Vk(e,t){return ie()({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:t?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},e)}const $k=new S_("[@douyinfe/semi-ui Table]");function Bk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=[],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3]?ze:Nk();return iv()(t,(t=>{const s=__(t=Object.assign({},t),n),a=null!=s&&av()(e,(e=>__(e,n)===s));a?r.push(i(Object.assign(Object.assign({},a),t))):r.push(i(t))})),r}var zk=__webpack_require__("LF7v"),Hk=__webpack_require__.n(zk);class Kk extends c{handleClick(e){const{expanded:t,rowKey:n}=this.getProps();this._adapter.notifyClick(n,e,t)}handleDoubleClick(e){this._adapter.notifyDoubleClick(this.getProp("record"),e)}handleMouseEnter(e){const t=this.getProp("record");this._adapter.notifyMouseEnter(t,e)}handleMouseLeave(e){const t=this.getProp("record");this._adapter.notifyMouseLeave(t,e)}}class Uk extends c{handleClick(e){this._adapter.notifyClick(this.getProp("record"),e)}}function Wk(e){return e&&!u().isValidElement(e)&&"[object Object]"===Object.prototype.toString.call(e)}class Gk extends f{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyClick:function(){const{onClick:t}=e.props;"function"==typeof t&&t(...arguments)}})}constructor(e){super(e),this.setRef=e=>this.ref=e,this.handleClick=e=>{this.foundation.handleClick(e);const t=this.adapter.getCache("customCellProps");t&&"function"==typeof t.onClick&&t.onClick(e)},this.ref=(0,h.createRef)(),this.foundation=new Uk(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:n,expandIcon:r}=t,i=function(e){return a()(e,"key")===C_.DEFAULT_KEY_COLUMN_SELECTION}(n),s=D_(n)||r;if((i||s)&&!he()(e,this.props))return!0;{const n=["selected","expanded","expandIcon","disabled"],r=ae()(t,n),i=ae()(e,n);if(!he()(i,r))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:n={},fixedLeft:r,fixedRight:i,width:s,height:o}=this.props;let l={},c={};const{direction:h}=this.context,u="rtl"===h,d=i||"number"==typeof i;if(r||"number"==typeof r?Me()(l,u?"style.right":"style.left","number"==typeof r?r:0):d&&Me()(l,u?"style.left":"style.right","number"==typeof i?i:0),null!=s&&Me()(l,"style.width",s),null!=o&&Me()(l,"style.height",o),n.onCell){c=n.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},c)),l=Object.assign(Object.assign({},l),ae()(c,["style","className","onClick"]));const r=a()(c,"style")||{};l.style=Object.assign(Object.assign({},l.style),r)}if(n.align){const e=G_(n.align,h),t=function(e,t){if("rtl"===t)switch(e){case"left":return"flex-end";case"right":return"flex-start";default:return e}else switch(e){case"left":return"flex-start";case"right":return"flex-end";default:return e}}(n.align,h);l.style=Object.assign(Object.assign({},l.style),{textAlign:e,justifyContent:t})}return{tdProps:l,customCellProps:c}}renderText(e){const{record:t,indentSize:n,prefixCls:r,indent:i,index:s,expandIcon:o,renderExpandIcon:l,column:c={}}=this.props,{dataIndex:h,render:d,useFullRender:p}=c;let f,m,g;f="number"==typeof h||h&&0!==h.length?a()(t,h):t;const y=i&&n?u().createElement("span",{style:{paddingLeft:n*i+"px"},className:`${r}-row-indent indent-level-${i}`}):null,v="function"==typeof l?l(t):o;if(d){const n={expandIcon:v};if(p){const{renderSelection:e}=this.context,r="function"==typeof e?e(t):null;Object.assign(n,{selection:r,indentText:y})}f=d(f,t,s,n),Wk(f)&&(m=(e=f.props?ie()(e,f.props):e).colSpan,g=e.rowSpan,f=f.children)}return{text:f,indentText:y,rowSpan:g,colSpan:m,realExpandIcon:v,tdProps:e}}renderInner(e,t,n){const{prefixCls:r,isSection:i,expandIcon:s,column:a={}}=this.props,{tableWidth:o,anyColumnFixed:l}=this.context,{useFullRender:c}=a;let d=null;return d=c?e:[u().createElement(h.Fragment,{key:"indentText"},t),u().createElement(h.Fragment,{key:"expandIcon"},s?n:null),u().createElement(h.Fragment,{key:"text"},e)],i&&(d=u().createElement("div",{className:x()(`${r}-section-inner`),style:{width:l?jk(o):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:n,fixedLeft:r,fixedRight:i,lastFixedLeft:s,firstFixedRight:o,colIndex:l}=this.props,{direction:c}=this.context,h="rtl"===c,{className:d,ellipsis:p}=t,f=r||"number"==typeof r,m=i||"number"==typeof i,{tdProps:g,customCellProps:y}=this.getTdProps(),v=this.renderText(g);let{text:b}=v;const{indentText:w,rowSpan:C,colSpan:E,realExpandIcon:S,tdProps:_}=v;let k;if(q_(p)&&"string"==typeof b&&(k=b),0===C||0===E)return null;Wk(b)&&(b=null);const P=this.renderInner(b,w,S);let O,T,I,D;h?(O=m,T=o,I=f,D=s):(O=f,T=s,I=m,D=o);const A=x()(d,`${e}-row-cell`,a()(y,"className"),{[`${e}-cell-fixed-left`]:O,[`${e}-cell-fixed-left-last`]:T,[`${e}-cell-fixed-right`]:I,[`${e}-cell-fixed-right-first`]:D,[`${e}-row-cell-ellipsis`]:p});return u().createElement(n,Object.assign({role:"gridcell","aria-colindex":l+1,className:A,onClick:this.handleClick,title:k},_,{ref:this.setRef}),P)}}Gk.contextType=ok,Gk.defaultProps={indent:0,indentSize:E_.DEFAULT_INDENT_WIDTH,onClick:i(),prefixCls:w_.PREFIX,component:"td",onDidUpdate:i(),column:{}},Gk.propTypes={record:C().object,prefixCls:C().string,index:C().number,fixedLeft:C().oneOfType([C().bool,C().number]),lastFixedLeft:C().bool,fixedRight:C().oneOfType([C().bool,C().number]),firstFixedRight:C().bool,indent:C().number,indentSize:C().number,column:C().object,expandIcon:C().any,renderExpandIcon:C().func,hideExpandedColumn:C().bool,component:C().any,onClick:C().func,onDidUpdate:C().func,isSection:C().bool,width:C().oneOfType([C().string,C().number]),height:C().oneOfType([C().string,C().number]),selected:C().bool,expanded:C().bool,colIndex:C().number};var qk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Yk={anyColumnFixed:C().bool,cellWidths:C().array.isRequired,className:C().string,columns:C().array.isRequired,components:C().object.isRequired,disabled:C().bool,expandIcon:C().oneOfType([C().bool,C().func,C().node]),expandableRow:C().bool,expanded:C().bool,displayNone:C().bool,expandedRow:C().bool,fixed:C().oneOfType([C().string,C().bool]),height:C().oneOfType([C().string,C().number]),hideExpandedColumn:C().bool,hovered:C().bool.isRequired,indent:C().number,indentSize:C().number,index:C().number,isSection:C().bool,level:C().number,onDidUpdate:C().func,onHover:C().func,onRow:C().func,onRowClick:C().func,onRowContextMenu:C().func,onRowDoubleClick:C().func,onRowMouseEnter:C().func,onRowMouseLeave:C().func,prefixCls:C().string,record:C().object,renderExpandIcon:C().func,replaceClassName:C().string,rowExpandable:C().func,rowKey:C().oneOfType([C().string,C().number]).isRequired,selected:C().bool,store:C().object,style:C().object,virtualized:C().oneOfType([C().object,C().bool]),visible:C().bool.isRequired};class Xk extends f{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyClick:function(){return e.props.onRowClick(...arguments)},notifyDoubleClick:function(){return e.props.onRowDoubleClick(...arguments)},notifyMouseLeave:function(){e.props.onHover(!1,e.props.rowKey),e.props.onRowMouseEnter(...arguments)},notifyMouseEnter:function(){e.props.onHover(!0,e.props.rowKey),e.props.onRowMouseEnter(...arguments)}})}constructor(e){super(e),this.renderExpandIcon=e=>{const{renderExpandIcon:t}=this.props;return t(e,!0)},this.handleMouseEnter=e=>{this.foundation.handleMouseEnter(e);const t=this.adapter.getCache("customRowProps");"function"==typeof(null==t?void 0:t.onMouseEnter)&&t.onMouseEnter(e)},this.handleMouseLeave=e=>{this.foundation.handleMouseLeave(e);const t=this.adapter.getCache("customRowProps");"function"==typeof(null==t?void 0:t.onMouseLeave)&&t.onMouseLeave(e)},this.handleClick=e=>{this.foundation.handleClick(e);const t=this.adapter.getCache("customRowProps");t&&"function"==typeof t.onClick&&t.onClick(e)},this.foundation=new Kk(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:n}=this.props;if(void 0===this.adapter.getCache("customRowProps")){const r=e(n,t)||{},{className:i,style:s}=r,a=qk(r,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},a))}}shouldComponentUpdate(e){const t=["cellWidths"],n=function(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let r=0;r<i;r++){const i=n[r];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}(ae()(e,t),ae()(this.props,t));return!n||!he()(Pl()(e,t),Pl()(this.props,t))}renderCells(){const{columns:e,record:t,index:n,prefixCls:r,fixed:i,components:s,expandableRow:o,level:l,expandIcon:c,rowExpandable:h,isSection:d,expandedRow:p,virtualized:f,indentSize:m,hideExpandedColumn:g,cellWidths:y,selected:v,expanded:b,disabled:x,onDidUpdate:w}=this.props,C=a()(s,"body.cell",C_.DEFAULT_COMPONENTS.body.cell),E=[],S=h(t);let _=0;return fe()(e,((s,h)=>{const k=a()(s,"key"),P={};if("right"!==i&&(function(e){return[C_.DEFAULT_KEY_COLUMN_EXPAND,C_.DEFAULT_KEY_COLUMN_SCROLLBAR,C_.DEFAULT_KEY_COLUMN_SELECTION].includes(e)}(k)&&_++,o&&h===_&&(P.renderExpandIcon=this.renderExpandIcon,(g||d)&&(P.expandIcon=null==c||c)),null!=l&&h===_&&(P.indent=l,!o&&g&&(P.indent=l+1))),D_(s)&&!S)E.push(u().createElement(Gk,{key:h,colIndex:h,isSection:d}));else if(!function(e){return a()(e,"key")===C_.DEFAULT_KEY_COLUMN_SCROLLBAR}(s)){const i={};C!==C_.DEFAULT_COMPONENTS.body.cell&&f&&!p&&(i.width=a()(y,h)),E.push(u().createElement(Gk,Object.assign({colIndex:h},P,i,{hideExpandedColumn:g,indentSize:m,isSection:d,prefixCls:`${r}`,column:s,key:h,index:n,record:t,component:C,fixedLeft:T_(s)&&k_(y,0,h),lastFixedLeft:P_(e,s),fixedRight:I_(s)&&k_(y,h+1),firstFixedRight:O_(e,s),selected:v,expanded:b,disabled:x,onDidUpdate:w})))}})),E}render(){const{style:e}=this.props,{components:t,prefixCls:n,selected:r,onRow:i,index:s,className:a,replaceClassName:o,record:l,hovered:c,expanded:h,displayNone:d,expandableRow:p,level:f,expandedRow:m,isSection:g,rowKey:y}=this.props,v=t.body.row,b=i(l,s)||{},{className:w,style:C}=b,E=qk(b,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},E));const S=Object.assign(Object.assign({},e),C),_="string"==typeof o&&o.length?x()(o,w):x()(a,`${n}-row`,{[`${n}-row-selected`]:r,[`${n}-row-expanded`]:h,[`${n}-row-hovered`]:c,[`${n}-row-hidden`]:d},w),k={};return"number"==typeof s&&(k["aria-rowindex"]=s+1),p&&(k["aria-expanded"]=h),(h||m)&&(k["aria-level"]=2),"number"==typeof f&&(k["aria-level"]=f+1),g&&(k["aria-level"]=1),u().createElement(v,Object.assign({role:"row"},k,E,{style:S,className:_,"data-row-key":y,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}Xk.propTypes=Yk,Xk.defaultProps={columns:[],rowExpandable:Hk(),components:{body:{row:"tr",cell:"td"}},prefixCls:w_.PREFIX,onRow:i(),onRowClick:i(),onRowDoubleClick:i(),onRowMouseEnter:i(),onRowMouseLeave:i(),onHover:i(),onDidUpdate:i(),visible:!0,hovered:!1,selected:!1,disabled:!1};var Zk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class Jk extends h.PureComponent{render(){const{record:e,columns:t=[],prefixCls:n,className:r,expanded:i,expandedRowRender:s,renderExpandIcon:o,index:l,store:c,components:d,style:p,virtualized:f,indentSize:m,cellWidths:g,displayNone:y}=this.props,{tableWidth:v,anyColumnFixed:b,getCellWidths:w}=this.context,C=s(e,l,i);let E=null;const S={};let _={};if(ee()(C))return null;if((0,h.isValidElement)(C))E=C;else if(C&&"[object Object]"===Object.prototype.toString.call(C)){const e=C,{children:t,fixed:n}=e,r=Zk(e,["children","fixed"]);E=t,_=Object.assign({},r)}a()(d,"body.cell")!==C_.DEFAULT_COMPONENTS.body.cell?(f&&Me()(S,"style.height","100%"),Me()(S,"style.display","block"),Me()(S,"style.width",k_(g,0,t.length))):S.colSpan=A_(t).length;const k=[Object.assign({render:()=>({props:S,children:u().createElement("div",{className:x()(`${n}-expand-inner`),style:{width:b?jk(v):void 0}},E)})},_)],P=x()(r,`${n}-row-expand`),O=w(k);return u().createElement(Xk,{style:p,components:d,className:P,expandedRow:!0,renderExpandIcon:o,rowKey:`${e.key}-expanded-row`,columns:k,store:c,virtualized:f,indentSize:m,cellWidths:O,displayNone:y})}}Jk.contextType=ok,Jk.propTypes={cellWidths:C().array.isRequired,className:C().string,columns:C().array,components:C().object,defaultExpandAllRows:C().bool,defaultExpandedRowKeys:C().array,expandIcon:C().oneOfType([C().object,C().node,C().func]),expandRowByClick:C().bool,expanded:C().bool,expandedRowKeys:C().array,expandedRowRender:C().func,indentSize:C().number,index:C().oneOfType([C().string,C().number]),onExpand:C().func,onExpandedRowsChange:C().func,prefixCls:C().string,record:C().object,renderExpandIcon:C().func,store:C().object,style:C().object,virtualized:C().oneOfType([C().bool,C().object])},Jk.defaultProps={record:{},prefixCls:w_.PREFIX};var Qk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const eP={record:C().object,index:C().number,columns:C().array,group:C().object.isRequired,groupKey:C().oneOfType([C().string,C().number]).isRequired,data:C().array,renderGroupSection:C().func,onGroupedRow:C().func,clickGroupedRowToExpand:C().bool,components:C().object,expanded:C().bool,prefixCls:C().string,onExpand:C().func,virtualized:C().oneOfType([C().bool,C().object]),style:C().object,renderExpandIcon:C().func,className:C().string,store:C().object,rowKey:C().oneOfType([C().string,C().number,C().func])};class tP extends h.PureComponent{constructor(){var e;super(...arguments),e=this,this.onRow=function(){const{onGroupedRow:t,clickGroupedRowToExpand:n,onExpand:r,groupKey:i,expanded:s}=e.props,a={};return"function"==typeof t&&Object.assign(a,t(...arguments)),Object.assign(Object.assign({},a),{onClick:e=>{"function"==typeof r&&n&&r(!s,i,e),"function"==typeof a.onClick&&a.onClick(e)}})},this.collectGroupedData=()=>{const{data:e,group:t,rowKey:n}=this.props;return Array.isArray(e)&&e.length&&bl()(t)?e.filter((e=>{const r="function"==typeof n?n(e):a()(e,n);return null!=r&&""!==r&&t.has(r)})):[]},this.renderExpandIcon=e=>{const{renderExpandIcon:t,groupKey:n}=this.props;return"function"==typeof t?t(e,!1,n):null}}isInnerColumnKey(e){return null!=e&&[C_.DEFAULT_KEY_COLUMN_EXPAND,C_.DEFAULT_KEY_COLUMN_SELECTION].includes(e)}render(){const{record:e,columns:t=[],prefixCls:n,className:r,expanded:i,renderGroupSection:s,components:a,index:o,store:l,group:c,groupKey:d,virtualized:p,style:f}=this.props,m={};let g={},y=null;const v="function"==typeof s?s(d,[...c]):null;if((0,h.isValidElement)(v))y=v;else if(v&&"[object Object]"===Object.prototype.toString.call(v)){const e=v,{children:t}=e,n=Qk(e,["children"]);y=t,g=Object.assign({},n)}m.colSpan=A_(t).length;const b=[Object.assign({render:()=>({props:m,children:y})},g)],w=x()(r,`${n}-row-section`,{on:i}),{getCellWidths:C}=this.context,E=C(b,null,!0);return u().createElement(Xk,{components:a,virtualized:p,index:o,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:w,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:l,style:f,cellWidths:E})}}tP.contextType=ok,tP.propTypes=eP,tP.defaultProps={prefixCls:w_.PREFIX,components:{body:{row:"tr",cell:"td"}}};const nP=tP;var rP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class iP extends f{constructor(e,t){var n;super(e),n=this,this.forwardRef=e=>{const{forwardedRef:t}=this.props;this.ref.current=e,this.foundation.observeBodyResize(e),"function"==typeof t?t(e):t&&"object"==typeof t&&(t.current=e)},this.setListRef=e=>{this.listRef.current=e;const{getVirtualizedListRef:t}=this.context;t&&(this.props.virtualized?t(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information."))},this.itemSize=e=>{const{virtualized:t,size:n}=this.props,{virtualizedData:r}=this.state,i=a()(r,e),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={};return"small"===e?(n.height=t?E_.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:E_.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,n.minHeight=E_.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):"middle"===e?(n.height=t?E_.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:E_.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,n.minHeight=E_.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(n.height=t?E_.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:E_.DEFAULT_VIRTUALIZED_ROW_HEIGHT,n.minHeight=E_.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),n}(n,i.sectionRow),o=a()(t,"itemSize",s.height);let l=o;return"function"==typeof o&&(l=o(e,{expandedRow:a()(i,"expandedRow",!1),sectionRow:a()(i,"sectionRow",!1)})),l<s.minHeight&&$k.warn(`The computed real \`itemSize\` cannot be less than ${s.minHeight}`),l},this.itemKey=(e,t)=>a()(t,[e,"key"],e),this.handleRowClick=(e,t,n)=>{const{handleRowExpanded:r}=this.context;r(!n,e,t)},this.handleVirtualizedScroll=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=a()(n.props.virtualized,"onScroll");"function"==typeof t&&t(e)},this.handleVirtualizedBodyScroll=e=>{const{handleBodyScroll:t}=this.props,n=a()(e,"nativeEvent.target.scrollLeft"),r=a()(e,"nativeEvent.target.scrollTop");r===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=n,this.state.cache.virtualizedScrollTop=r,"function"==typeof t&&t(e)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:e}=this.context,{columns:t}=this.props;return k_(e(t),0,Tk()(t))},this.renderVirtualizedRow=e=>{const{index:t,style:n}=e,{virtualizedData:r,cachedExpandBtnShouldInRow:i}=this.state,{flattenedColumns:s}=this.context,o=a()(r,[t],{}),{key:l,parentKeys:c,expandedRow:h,sectionRow:u}=o,d=rP(o,["key","parentKeys","expandedRow","sectionRow"]),p=this.getVirtualizedRowWidth(),f=i,m=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},n),{width:p})}),d),{columns:s,index:t,expandBtnShouldInRow:f});return u?this.renderSectionRow(m):h?this.renderExpandedRow(m):this.renderBaseRow(m)},this.renderTbody=u().forwardRef((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return u().createElement("div",Object.assign({},e,{onScroll:function(){e.onScroll&&e.onScroll(...arguments)},className:x()(e.className,`${n.props.prefixCls}-tbody`),style:Object.assign({},e.style),ref:t}))})),this.renderOuter=u().forwardRef(((e,t)=>{const{children:r}=e,i=rP(e,["children"]),{handleWheel:s,prefixCls:a,emptySlot:o,dataSource:l}=this.props,c=this.getVirtualizedRowWidth(),h=x()(`${a}`,`${a}-fixed`);return u().createElement("div",Object.assign({},i,{ref:t,onWheel:function(){s&&s(...arguments),i.onWheel&&i.onWheel(...arguments)},onScroll:function(){n.handleVirtualizedBodyScroll(...arguments),i.onScroll&&i.onScroll(...arguments)}}),u().createElement("div",{style:{width:c},className:h},r),0===Tk()(l)&&o)})),this.onItemsRendered=e=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=e=>{const{scroll:t,prefixCls:n,virtualized:r,columns:i}=this.props,{virtualizedData:s}=this.state,{getCellWidths:o}=this.context,l=o(i);if(!Tk()(l))return null;const c=a()(t,"y"),h="number"==typeof c,d=h?c:600;h||$k.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const p={width:"100%",height:(null==s?void 0:s.length)?d:null,overflowX:"auto",overflowY:"auto"},f=x()(`${n}-body`);return u().createElement(lh,Object.assign({},"object"==typeof r?r:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.setListRef,className:f,outerRef:this.forwardRef,height:(null==s?void 0:s.length)?d:0,width:p.width,itemData:s,itemSize:this.itemSize,itemCount:s.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},p),{direction:e}),direction:e}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{groupKey:void 0};const{dataSource:t,rowKey:r,group:i,groupKey:s,index:a}=e,o=Object.keys(eP),l=Pl()(e,o),{handleRowExpanded:c}=n.context;return u().createElement(nP,Object.assign({},l,{record:{groupKey:s,records:[...i].map((e=>L_(t,e,r)))},index:a,onExpand:c,data:t,key:s||a}))},this.renderExpandedRow=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{renderExpandIcon:()=>null};const{style:t,components:r,renderExpandIcon:i,expandedRowRender:s,record:a,columns:o,expanded:l,index:c,rowKey:h,virtualized:d,displayNone:p}=e;let f=R_(a,h);null==f&&(f=c);const{flattenedColumns:m,getCellWidths:g}=n.context;return m!==n.flattenedColumns&&(n.flattenedColumns=m,n.cellWidths=g(m)),u().createElement(Jk,{style:t,components:r,renderExpandIcon:i,expandedRowRender:s,record:a,columns:o,expanded:l,index:c,virtualized:d,key:j_(f),cellWidths:n.cellWidths,displayNone:p})},this.renderGroupedRows=()=>{const{groups:e,dataSource:t,rowKey:n,expandedRowKeys:r,keepDOM:i}=this.props,{flattenedColumns:s}=this.context,a=new Map,o=[];null!=e&&Array.isArray(t)&&t.length&&t.forEach((t=>{const r=R_(t,n);e.forEach(((e,t)=>{if(e.has(r))return a.has(t)||a.set(t,new Set([])),a.get(t).add(r),!1}))}));let l=-1;return a.forEach(((e,a)=>{const c=N_(r,a);if(o.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:s,index:++l,group:e,groupKey:a,expanded:c}))),c||i){const r=[];e.forEach((e=>{const i=L_(t,e,n);null!=i&&r.push(i)})),o.push(this.renderBodyRows(r,void 0,[],!c))}})),o},this.renderBody=e=>{const{scroll:t,prefixCls:n,columns:r,components:i,fixed:s,handleWheel:o,headerRef:l,handleBodyScroll:c,anyColumnFixed:h,showHeader:d,emptySlot:p,includeHeader:f,dataSource:m,onScroll:g,groups:y,expandedRowRender:v,tableLayout:b}=this.props,w=a()(t,"x"),C=a()(t,"y"),E={},S={},_=a()(i,"body.outer","table"),k=a()(i,"body.wrapper")||"tbody";C&&(E.maxHeight=C),w&&(S.width=w),h&&Tk()(m)&&(E.overflow="auto",E.WebkitTransform="translate3d (0, 0, 0)");const P=u().createElement(wk,{components:a()(i,"body"),columns:r,prefixCls:n}),O=`${n}-body`,T=u().createElement("div",{key:"bodyTable",className:O,style:E,ref:this.forwardRef,onWheel:o,onScroll:c},u().createElement(_,{role:Z_()(y)||J()(v)||W_({dataSource:m})?"treegrid":"grid","aria-rowcount":m&&m.length,"aria-colcount":r&&r.length,style:S,className:x()(n,{[`${n}-fixed`]:"fixed"===b})},P,f&&d?u().createElement(_k,Object.assign({},this.props,{ref:l,components:i,columns:r})):null,u().createElement(k,{className:`${n}-tbody`,onScroll:g},Z_()(y)?this.renderGroupedRows():this.renderBodyRows(m))),p);return s&&r.length?u().createElement("div",{key:"bodyTable",className:`${n}-body-outer`},T):T},this.ref=u().createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=u().createRef();const{flattenedColumns:r,getCellWidths:i}=t;this.foundation=new Ak(this.adapter),this.flattenedColumns=r,this.cellWidths=i(r),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,n=()=>{(window.requestAnimationFrame||window.setTimeout)((()=>{const{offsetWidth:n,clientWidth:r}=e;t(r<n)}))};e&&(a()(window,"ResizeObserver")?(this.observer&&(this.observer.unobserve(e),this.observer=null),this.observer=new ResizeObserver(n),this.observer.observe(e)):$k.warn("The current browser does not support ResizeObserver,and the table may be misaligned after plugging and unplugging the mouse and keyboard.You can try to refresh it."))},unobserveBodyResize:()=>{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:n,dataSource:r,expandedRowKeys:i,columns:s,scroll:o}=this.props;n&&(e.dataSource===r&&e.expandedRowKeys===i&&e.columns===s||this.foundation.initVirtualizedData());const l=C_.EXPAND_RELATED_PROPS.map((e=>a()(this.props,e,void 0)));he()(l,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(l);const c=a()(o,"y"),h=this.ref.current;c&&c!==a()(e,"scroll.y")&&this.foundation.observeBodyResize(h)}renderBaseRow(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{rowKey:t,columns:n,expandedRowKeys:r,rowExpandable:i,record:s,index:a,level:o,expandBtnShouldInRow:l,selectedRowKeysSet:c,disabledRowKeysSet:h,expandRowByClick:d}=e,p=Object.keys(Yk),f=Pl()(e,p);let m=R_(s,t);null==m&&(m=a);const g=N_(r,m),y=i&&i(s),v={level:void 0,expanded:g};(y||l)&&(v.level=o,v.expandableRow=y,d&&(v.onRowClick=this.handleRowClick));const b={selected:M_(c,m),disabled:F_(h,m)},{getCellWidths:x}=this.context,w=x(n,null,!0);return u().createElement(Xk,Object.assign({},f,v,b,{key:m,rowKey:m,cellWidths:w}))}renderBodyRows(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const{rowKey:i,expandedRowRender:s,expandedRowKeys:o,childrenRecordName:l,rowExpandable:c,keepDOM:h}=this.props,u="function"==typeof s,d=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:p}=this.context;return fe()(e,((e,s)=>{let f=R_(e,i);null==f&&(f=s);const m=a()(e,l),g=Boolean(Array.isArray(m)&&m.length);n.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:p,expandBtnShouldInRow:d,displayNone:r,record:e,key:f,level:t,index:s})));const y=N_(o,f),v=y||h;if(u&&c&&c(e)&&v){const i=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:p,level:t,index:s,record:e,expanded:y,displayNone:r||!y}));ee()(i)||n.push(i)}if(g&&v){const e=this.renderBodyRows(m,t+1,[],r||!y);n.push(...e)}})),n}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}iP.contextType=ok,iP.propTypes={anyColumnFixed:C().bool,childrenRecordName:C().string,columns:C().array,components:C().object,dataSource:C().array,disabledRowKeysSet:C().instanceOf(Set).isRequired,emptySlot:C().node,expandRowByClick:C().bool,expandedRowKeys:C().array,expandedRowRender:C().func,fixed:C().oneOfType([C().string,C().bool]),forwardedRef:C().oneOfType([C().object,C().func]),groups:C().instanceOf(Map),handleBodyScroll:C().func,handleWheel:C().func,headerRef:C().oneOfType([C().object,C().func]),includeHeader:C().bool,onScroll:C().func,prefixCls:C().string,renderExpandIcon:C().func,rowExpandable:C().func,rowKey:C().oneOfType([C().string,C().bool,C().func]),scroll:C().object,selectedRowKeysSet:C().instanceOf(Set).isRequired,showHeader:C().bool,size:C().string,store:C().object,virtualized:C().oneOfType([C().bool,C().object])};const sP=u().forwardRef((function(e,t){return u().createElement(iP,Object.assign({},e,{forwardedRef:t}))}));var aP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class oP extends f{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{resetScrollY:()=>{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:e=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...e],selectedRowKeysSet:new Set(e)})})},setDisabledRowKeys:e=>{this.setState({disabledRowKeys:e,disabledRowKeysSet:new Set(e)})},setCurrentPage:e=>{const{pagination:t}=this.state;"object"==typeof t?this.setState({pagination:Object.assign(Object.assign({},t),{currentPage:e})}):this.setState({pagination:{currentPage:e}})},setPagination:e=>this.setState({pagination:e}),setGroups:e=>this.setState({groups:e}),setDataSource:e=>this.setState({dataSource:e}),setExpandedRowKeys:e=>this.setState({expandedRowKeys:[...e]}),setQuery:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[...e.state.queries];n=H_(t,n),e.setState({queries:n})},setQueries:e=>this.setState({queries:e}),setFlattenData:e=>this.setState({flattenData:e}),setAllRowKeys:e=>this.setState({allRowKeys:e}),setHoveredRowKey:e=>{this.store.setState({hoveredRowKey:e})},setCachedFilteredSortedDataSource:e=>{this.cachedFilteredSortedDataSource=e},setCachedFilteredSortedRowKeys:e=>{this.cachedFilteredSortedRowKeys=e,this.cachedFilteredSortedRowKeysSet=new Set(e)},setAllDisabledRowKeys:e=>{const t=new Set(e);this.setState({allDisabledRowKeys:e,allDisabledRowKeysSet:t})},getCurrentPage:()=>a()(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>a()(this.state,"pagination.pageSize",E_.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(e,t)=>this._invokeColumnFn(t,"onFilterDropdownVisibleChange",e),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeRowSelection("onSelect",...n)},notifySelectAll:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeRowSelection("onSelectAll",...n)},notifySelectInvert:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeRowSelection("onSelectInvert",...n)},notifySelectionChange:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e._invokeRowSelection("onChange",...n)},isAnyColumnFixed:e=>g_()(this.getColumns(e||this.props.columns,this.props.children),(e=>Boolean(e.fixed))),useFixedHeader:()=>{const{scroll:e,sticky:t}=this.props;return!!a()(e,"y")||!!t},getTableLayout:()=>{let e=!1;const{flattenColumns:t}=this.state;return Array.isArray(t)&&(e=t.some((e=>Boolean(e.ellipsis)||Boolean(e.fixed)))),this.adapter.useFixedHeader()&&(e=!0),e?"fixed":"auto"},setHeadWidths:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var r,i,s;r=e.state.headWidths[n],i=t,x_()(r,i,(function(e,t){if("function"==typeof e&&"function"==typeof t)return kw()(e)===kw()(t);if("function"==typeof s){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return s(e,t,...r)}}))||e.setState((e=>{const r=[...e.headWidths];return r[n]=[...t],{headWidths:r}}))},getHeadWidths:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e.state.headWidths.length&&"number"==typeof t){return(e.state.headWidths[t]||[]).map((e=>e.width))}return[]},getCellWidths:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Array.isArray(t)&&t.length&&(n=null==n&&e.state.headWidths.length?f_()(e.state.headWidths):[],Array.isArray(n)&&n.length)?t.reduce(((e,t)=>{const i=t.key===C_.DEFAULT_KEY_COLUMN_SCROLLBAR&&r?null:av()(n,(e=>e&&null!=e.key&&e.key===t.key));return i&&e.push(i.width),e}),[]):[]},mergedRowExpandable:e=>{const{expandedRowRender:t,childrenRecordName:n,rowExpandable:r}=this.props,i=a()(e,n),s="function"==typeof t,o="function"==typeof r,l=Array.isArray(i)&&i.length,c=o&&r(e);return(s||l)&&(!o||c)||!(s||l)&&c},isAnyColumnUseFullRender:e=>g_()(e,(e=>Boolean(e.useFullRender))),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:e=>{e!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:e})},stopPropagation(e){e&&"object"==typeof e&&("function"==typeof e.stopPropagation&&e.stopPropagation(),e.nativeEvent&&"function"==typeof e.nativeEvent.stopPropagation?e.nativeEvent.stopPropagation():"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation())}})}constructor(e,t){var n;super(e),n=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&g_()(this.props.dataSource,(e=>null==this.foundation.getRecordKey(e)))&&$k.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(e){const t=a()(n.state,["rowSelection",e]);if("function"==typeof t){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];t(...i)}},this._invokeColumnFn=function(e,t){if(e&&t){const o=n.foundation.getQuery(e),l=a()(o,t,null);if("function"==typeof l){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];l(...i)}}},this._cacheHeaderRef=e=>{this.headerWrapRef.current=e},this.getCurrentPageData=()=>{const e=this.foundation.getCurrentPageData(),t=["dataSource","groups"].reduce(((t,n)=>(e[n]&&(t[n]=e[n]),t)),{});return ze(t)},this.getColumns=(e,t)=>Array.isArray(e)&&e&&e.length?e:ak(t),this.getCellWidths=function(){return n.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return n.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return n.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return n.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return n.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=e=>{const{scroll:t={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&t.y){e.preventDefault();const t=e.deltaY,{target:n}=e,r=this.bodyWrapRef.current;let i=0;i=this.lastScrollTop?this.lastScrollTop+t:t,r&&n!==r&&(r.scrollTop=i)}},this.handleBodyScrollLeft=e=>{if(e.currentTarget!==e.target)return;const{target:t}=e,n=this.headerWrapRef.current,r=this.bodyWrapRef.current;t.scrollLeft!==this.lastScrollLeft&&(t===r&&n?n.scrollLeft=t.scrollLeft:t===n&&r&&(r.scrollLeft=t.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=t.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=e=>{const{target:t}=e;if(e.currentTarget!==t)return;const{scroll:n={}}=this.props,r=this.headerWrapRef.current,i=this.bodyWrapRef.current;if(t.scrollTop!==this.lastScrollTop&&n.y&&t!==r){const{scrollTop:e}=t;i&&t!==i&&(i.scrollTop=e)}this.lastScrollTop=t.scrollTop},this.handleBodyScroll=e=>{this.handleBodyScrollLeft(e),this.handleBodyScrollTop(e)},this.setScrollPosition=e=>{const{prefixCls:t}=this.props,n=[`${t}-scroll-position-both`,`${t}-scroll-position-middle`,`${t}-scroll-position-left`,`${t}-scroll-position-right`];this.scrollPosition=e;const r=this.wrapRef.current;if(r&&r.nodeType)if("both"===e){const e=[`${t}-scroll-position-left`,`${t}-scroll-position-right`];r.classList.remove(..._l()(n,e)),r.classList.add(...e)}else{const i=[`${t}-scroll-position-${e}`];r.classList.remove(..._l()(n,i)),r.classList.add(...i)}},this.setScrollPositionClassName=()=>{const e=this.bodyWrapRef.current;if(e&&e.children&&e.children.length){const t=0===e.scrollLeft,n=Math.abs(e.scrollLeft)+1>=e.children[0].getBoundingClientRect().width-e.getBoundingClientRect().width;t&&n?this.setScrollPosition("both"):t?this.setScrollPosition("left"):n?this.setScrollPosition("right"):"middle"!==this.scrollPosition&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;const{rowSelection:i,allDisabledRowKeysSet:s}=n.state;if(i&&"object"==typeof i){const{selectedRowKeys:o=[],selectedRowKeysSet:l=new Set,getCheckboxProps:c,disabled:h,renderCell:d}=i,p=n.cachedFilteredSortedRowKeys,f=n.cachedFilteredSortedRowKeysSet,m=n.foundation.allIsSelected(l,s,p),g=n.foundation.hasRowSelected(o,f)&&!m;if(t){const r=a()(i,"key",C_.DEFAULT_KEY_COLUMN_SELECTION),s=u().createElement(hk,{"aria-label":(m?"Deselect":"Select")+" all rows",disabled:h,key:r,selected:m,indeterminate:g,onChange:(e,t)=>{n.toggleSelectAllRow(e,t)}}),o=(e,t)=>n.toggleSelectAllRow(e,t);return J()(d)?d({selected:m,record:e,originNode:s,inHeader:t,disabled:h,indeterminate:g,selectAll:o}):s}{const t=n.foundation.getRecordKey(e),i=l.has(t),s=()=>"function"==typeof c?c(e):{},a=u().createElement(hk,{"aria-label":(i?"Deselect":"Select")+" this row",getCheckboxProps:s,selected:i,onChange:(e,r)=>n.toggleSelectRow(e,t,r)}),o=(e,r)=>n.toggleSelectRow(e,t,r);return J()(d)?d({selected:i,record:e,index:r,originNode:a,inHeader:!1,disabled:h,indeterminate:g,selectRow:o}):a}}return null},this.renderRowSelectionCallback=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return n.renderSelection(t,!1,r)},this.renderTitleSelectionCallback=()=>this.renderSelection(void 0,!0),this.normalizeSelectionColumn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{rowSelection:t,prefixCls:r}=e;let i={};if(t){const e=["selectedRowKeys","selectedRowKeysSet"];i={key:C_.DEFAULT_KEY_COLUMN_SELECTION},z()(t)&&(i=Object.assign(Object.assign({},i),ae()(t,e))),i.className=x()(i.className,`${r}-column-selection`),i.title=n.renderTitleSelectionCallback,i.render=n.renderRowSelectionCallback}return i},this.normalizeScrollbarColumn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{scrollbarWidth:t=0}=e;return{key:C_.DEFAULT_KEY_COLUMN_SCROLLBAR,width:t,fixed:"right"}},this.renderExpandIcon=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const{expandedRowKeys:i}=n.state,{expandIcon:s}=n.props,a="string"==typeof r||"number"==typeof r?r:n.foundation.getRecordKey(e);return u().createElement(xk,{key:a,componentType:t?"tree":"expand",expanded:wl()(i,a),expandIcon:s,onClick:(e,t)=>n.handleRowExpanded(e,a,t)})},this.handleRowExpanded=function(){return n.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null;const{prefixCls:r,expandCellFixed:i,expandIcon:s}=e;return t={fixed:i,key:C_.DEFAULT_KEY_COLUMN_EXPAND},t.className=x()(t.className,`${r}-column-expand`),t.render=!1!==s?function(){let e=arguments.length>1?arguments[1]:void 0;return n.adapter.mergedRowExpandable(e)?n.renderExpandIcon(e):null}:()=>null,t},this.addFnsInColumn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{prefixCls:t}=n.props;if(e&&(e.sorter||e.filters||e.onFilter||e.useFullRender)){let r=!1;const{dataIndex:i,title:s,useFullRender:o}=e,l=n.foundation.getQuery(i),c={},d=[];o&&(c.selection=n.renderSelection(null,!0));const p=a()(l,"sortOrder"),f=a()(l,"defaultSortOrder",!1),m=n.foundation.isSortOrderValid(p)?p:f,g=q_(e.ellipsis),y="function"!=typeof s&&u().createElement("span",{className:`${t}-row-head-title`,key:C_.DEFAULT_KEY_COLUMN_TITLE,title:g&&"string"==typeof s?s:void 0},s);if("function"==typeof e.sorter||!0===e.sorter){const t=u().createElement(yk,{key:C_.DEFAULT_KEY_COLUMN_SORTER,sortOrder:m,sortIcon:e.sortIcon,onClick:t=>n.foundation.handleSort(e,t),title:y});o&&(c.sorter=t),r=!0,d.push(t)}else d.push(y);const v=a()(l,"filteredValue"),b=a()(l,"defaultFilteredValue"),x=v||b;if(Array.isArray(e.filters)&&e.filters.length||(0,h.isValidElement)(e.filterDropdown)||"function"==typeof e.renderFilterDropdown){const e=u().createElement(fk,Object.assign({key:C_.DEFAULT_KEY_COLUMN_FILTER},ae()(l,"children"),{filteredValue:x,onFilterDropdownVisibleChange:e=>n.foundation.toggleShowFilter(i,e),onSelect:e=>n.foundation.handleFilterSelect(i,e)}));o&&(c.filter=e),r=!0,d.push(e)}const w="function"==typeof s?()=>s(c):r?u().createElement("div",{className:`${t}-operate-wrapper`},d):d;e=Object.assign(Object.assign({},e),{title:w})}return e},this.toggleSelectRow=(e,t,n)=>{this.foundation.handleSelectRow(t,e,n)},this.toggleSelectAllRow=(e,t)=>{this.foundation.handleSelectAllRow(e,t)},this.renderPagination=(e,t)=>{if(!e)return null;const n=this.foundation.memoizedPagination(e);return u().createElement(Bt,{componentName:"Table"},(e=>{const r=this.foundation.formatPaginationInfo(n,e.pageText);return u().createElement(uk,{info:r,pagination:n,renderPagination:t})}))},this.renderTitle=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{title:t}=e;const{prefixCls:n,dataSource:r}=e;return"function"==typeof t&&(t=t(r)),(0,h.isValidElement)(t)||"string"==typeof t?u().createElement("div",{className:`${n}-title`,"x-semi-prop":"title"},t):null},this.renderEmpty=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{prefixCls:t,empty:r,dataSource:i}=e,s=`${t}-placeholder`;return n.foundation.isEmpty(i)?u().createElement(Bt,{componentName:"Table",key:"emptyText"},((e,n)=>u().createElement("div",{className:s},u().createElement("div",{className:`${t}-empty`,"x-semi-prop":"empty"},r||e.emptyText)))):null},this.renderFooter=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{footer:t}=e;const{prefixCls:n,dataSource:r}=e;return"function"==typeof t&&(t=t(r)),(0,h.isValidElement)(t)||"string"==typeof t?u().createElement("div",{className:`${n}-footer`,key:"footer","x-semi-prop":"footer"},t):null},this.renderMainTable=e=>{const t=this.adapter.useFixedHeader(),n=this.renderEmpty(e);return[this.renderTable(Object.assign(Object.assign({},e),{fixed:!1,useFixedHeader:t,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!t,emptySlot:n})),this.renderFooter(e)]},this.renderTable=e=>{const{columns:t,filteredColumns:n,fixed:r,useFixedHeader:i,scroll:s,prefixCls:o,anyColumnFixed:l,includeHeader:c,showHeader:h,components:d,headerRef:p,bodyRef:f,onHeaderRow:m,rowSelection:g,dataSource:y,bodyHasScrollBar:v,disabledRowKeysSet:b,sticky:x}=e,w=a()(g,"selectedRowKeysSet",new Set),C=this.adapter.getTableLayout();return[r||i?u().createElement(Pk,{key:"head",tableLayout:C,ref:p,columns:n,prefixCls:o,fixed:r,handleBodyScroll:this.handleBodyScrollLeft,components:d,scroll:s,showHeader:h,selectedRowKeysSet:w,onHeaderRow:m,dataSource:y,bodyHasScrollBar:v,sticky:x}):null,u().createElement(sP,Object.assign({},ae()(e,["rowSelection","headWidths"]),{key:"body",ref:f,columns:n,fixed:r,prefixCls:o,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:l,tableLayout:C,includeHeader:c,showHeader:h,scroll:s,components:d,store:this.store,selectedRowKeysSet:w,disabledRowKeysSet:b}))]},this.handleColumns=(e,t)=>{const{hideExpandedColumn:r,scroll:i,prefixCls:s,expandCellFixed:o,expandIcon:l,rowSelection:c}=this.props,h="children";let u=ze(t);const d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.isArray(e)&&e.length&&fe()(e,((e,t,r)=>{const i=n.addFnsInColumn(e),s=e[h];if(Array.isArray(s)&&s.length){const e=[...s];d(e),i[h]=e}r[t]=i}))};if(d(u),!r){const e=this.normalizeExpandColumn({prefixCls:s,expandCellFixed:o,expandIcon:l}),t=nv()(u,(e=>e.key===C_.DEFAULT_KEY_COLUMN_EXPAND));e&&(t>-1?u[t]=Object.assign(Object.assign({},e),u[t]):u="right"===e.fixed?[...u,e]:[e,...u])}if(c&&!a()(c,"hidden")){const e=nv()(u,(e=>e.key===C_.DEFAULT_KEY_COLUMN_SELECTION)),t=this.normalizeSelectionColumn({rowSelection:c,prefixCls:s});e>-1?u[e]=Object.assign(Object.assign({},t),u[e]):u="right"===t.fixed?[...u,t]:[t,...u]}return $_(u),u},this.normalizeColumns=(e,t)=>ze(this.getColumns(e,t)),this.mergePagination=e=>Object.assign({onChange:this.foundation.setPage},e),this.foundation=new rk(this.adapter);const r=this.getColumns(e.columns,e.children),i=V_(r),s=rk.initColumnsFilteredValueAndSorterOrder(ze(i)),o=this.foundation.getFilteredSortedDataSource(this.props.dataSource,s),l=Kv()(this.props.pagination)?this.props.pagination:{},c=this.foundation.getCurrentPageData(o,l,s);this.state={cachedColumns:r,cachedChildren:e.children,flattenColumns:i,components:Vk(e.components,e.virtualized),queries:s,dataSource:c.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?z()(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:c.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=(0,h.createRef)(),this.wrapRef=(0,h.createRef)(),this.bodyWrapRef=(0,h.createRef)(),this.headerWrapRef=(0,h.createRef)(),this.store=new Y_({hoveredRowKey:null}),this.debouncedWindowResize=v()(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const n={},{rowSelection:r,dataSource:i,childrenRecordName:s,rowKey:o,pagination:l}=e;if(e.columns&&e.children&&$k.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const r=V_(e.columns);n.flattenColumns=r,n.queries=Bk(t.queries,r,null,!1),n.cachedColumns=e.columns,n.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const r=ak(e.children),i=V_(r),s=Bk(t.queries,i,null,!1);n.flattenColumns=i,n.queries=[...s],n.cachedColumns=[...r],n.cachedChildren=e.children}if(r!==t.prePropRowSelection){let e={};z()(t.rowSelection)&&(e=Object.assign(Object.assign({},e),t.rowSelection)),z()(r)&&(e=Object.assign(Object.assign({},e),r));const l=a()(r,"selectedRowKeys"),c=a()(r,"getCheckboxProps");if(l&&Array.isArray(l)&&(e.selectedRowKeysSet=new Set(l)),J()(c)){const e=K_({dataSource:i,getCheckboxProps:c,childrenRecordName:s,rowKey:o}),t=new Set(e);n.disabledRowKeys=e,n.disabledRowKeysSet=t,n.allDisabledRowKeys=e,n.allDisabledRowKeysSet=t}n.rowSelection=e,n.prePropRowSelection=r}if(l!==t.prePagination){let e={};z()(t.pagination)&&(e=Object.assign(Object.assign({},e),t.pagination)),z()(l)&&(e=Object.assign(Object.assign({},e),l)),n.pagination=e,n.prePagination=l}return n}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:n,expandedRowKeys:r,expandAllRows:i,expandAllGroupRows:s,virtualized:a,components:o,pagination:l}=this.props,{pagination:c,queries:h,cachedColumns:u,cachedChildren:d,groups:p}=this.state,f={};if(this._warnIfNoKey(),Array.isArray(r)&&r!==e.expandedRowKeys&&this.setState({expandedRowKeys:r}),o===e.components&&a===e.virtualized||this.setState({components:Vk(o,a)}),i===e.expandAllRows&&s===e.expandAllGroupRows||this.foundation.initExpandedRowKeys({groups:p}),n!==e.dataSource||u!==t.cachedColumns||d!==t.cachedChildren){const e=[...n],t=this.foundation.getFilteredSortedDataSource(e,h),r=this.foundation.getAllDisabledRowKeys(t);this.foundation.setCachedFilteredSortedDataSource(t),this.foundation.setAllDisabledRowKeys(r),f.dataSource=t,this.props.groupBy&&(f.groups=null)}if(n!==e.dataSource&&(f.pagination=z()(c)?Object.assign(Object.assign({},c),{currentPage:z()(l)&&l.currentPage?l.currentPage:1}):c),Object.keys(f).length){const{pagination:e=null,queries:t=null,dataSource:n=null}=f,r=this.foundation.getCurrentPageData(n,e,t);this.adapter.setAllRowKeys(r.allRowKeys),this.adapter.setDisabledRowKeys(r.disabledRowKeys),"dataSource"in f&&((this.props.defaultExpandAllRows&&r.groups&&r.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(r),f.pagination=r.pagination);const i=Object.keys(f);for(const e of i)this.setState({[e]:r[e]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e,t=this.props,{scroll:n,prefixCls:r,className:i,style:s={},bordered:o,id:l,pagination:c,virtualized:h,size:d,renderPagination:p,getVirtualizedListRef:f,loading:m,hideExpandedColumn:g,rowSelection:y}=t,v=aP(t,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:b,expandedRowKeys:w,headWidths:C,tableWidth:E,pagination:S,dataSource:_,queries:k,cachedColumns:P,bodyHasScrollBar:O}=this.state;if(s=Object.assign({},s),this.adapter.isAnyColumnUseFullRender(k))e=this.handleColumns(k,P);else{const t=y&&!a()(y,"hidden");e=this.foundation.memoizedWithFnsColumns(k,P,t,g,O)}const T=this.foundation.memoizedFilterColumns(e),I=this.foundation.memoizedFlattenFnsColumns(e),D=this.adapter.isAnyColumnFixed(e),A=Object.assign(Object.assign(Object.assign({},v),this.state),{virtualized:h,scroll:n,prefixCls:r,size:d,hideExpandedColumn:g,columns:e,anyColumnFixed:D,rowExpandable:this.mergedRowExpandable,pagination:S,dataSource:_,rowSelection:b,expandedRowKeys:w,renderExpandIcon:this.renderExpandIcon,filteredColumns:T}),R=a()(n,"x"),N=a()(n,"y");h&&"number"!=typeof s.width&&(s.width=R);const M=x()({[`${r}-${C_.SIZE_SMALL}`]:d===C_.SIZE_SMALL,[`${r}-${C_.SIZE_MIDDLE}`]:d===C_.SIZE_MIDDLE,[`${r}-virtualized`]:Boolean(h),[`${r}-bordered`]:o,[`${r}-fixed-header`]:Boolean(N),[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=S&&c?this.renderPagination(S,p):null,L=a()(c,"position","bottom"),j=Object.assign(Object.assign({},this.context),{headWidths:C,tableWidth:E,anyColumnFixed:D,flattenedColumns:I,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),V=this.getDataAttr(v);return u().createElement("div",Object.assign({ref:this.rootWrapRef,className:x()(i,`${r}-wrapper`,`${r}-wrapper-${A.direction}`),"data-column-fixed":D,style:s,id:l},V),u().createElement(lk,Object.assign({},j,{direction:A.direction}),u().createElement(tr,{spinning:m,size:"large"},u().createElement("div",{ref:this.wrapRef,className:M},u().createElement(u().Fragment,{key:"pagination-top"},["top","both"].includes(L)?F:null),this.renderTitle({title:A.title,dataSource:A.dataSource,prefixCls:A.prefixCls}),u().createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},A))),u().createElement(u().Fragment,{key:"pagination-bottom"},["bottom","both"].includes(L)?F:null)))))}}oP.contextType=ok,oP.propTypes={className:C().string,style:C().object,prefixCls:C().string,components:C().any,bordered:C().bool,loading:C().bool,size:C().oneOf(C_.SIZES),tableLayout:C().oneOf(C_.LAYOUTS),columns:C().arrayOf(C().shape(ik)),hideExpandedColumn:C().bool,id:C().string,expandIcon:C().oneOfType([C().bool,C().func,C().node]),expandCellFixed:C().oneOf(C_.FIXED_SET),title:C().oneOfType([C().string,C().node,C().func]),onHeaderRow:C().func,showHeader:C().bool,indentSize:C().number,rowKey:C().oneOfType([C().func,C().string,C().number]),onRow:C().func,onExpandedRowsChange:C().func,onExpand:C().func,rowExpandable:C().func,expandedRowRender:C().func,expandedRowKeys:C().array,defaultExpandAllRows:C().bool,expandAllRows:C().bool,defaultExpandAllGroupRows:C().bool,expandAllGroupRows:C().bool,defaultExpandedRowKeys:C().array,pagination:C().oneOfType([C().object,C().bool]),renderPagination:C().func,footer:C().oneOfType([C().func,C().string,C().node]),empty:C().node,dataSource:C().array,childrenRecordName:C().string,rowSelection:C().oneOfType([C().object,C().bool]),onChange:C().func,scroll:C().shape({x:C().oneOfType([C().number,C().string,C().bool]),y:C().oneOfType([C().number,C().string])}),groupBy:C().oneOfType([C().string,C().number,C().func]),renderGroupSection:C().oneOfType([C().func]),onGroupedRow:C().func,clickGroupedRowToExpand:C().bool,virtualized:C().oneOfType([C().object,C().bool]),dropdownPrefixCls:C().string,expandRowByClick:C().bool,getVirtualizedListRef:C().func},oP.defaultProps={tableLayout:"",dataSource:[],prefixCls:w_.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:E_.DEFAULT_INDENT_WIDTH,onChange:i(),pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:i(),onExpand:i(),onExpandedRowsChange:i(),expandRowByClick:!1};const lP=oP;var cP=__webpack_require__("ExWj"),hP=__webpack_require__.n(cP);function uP(e){const t=hP()(e,/\s+/);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const s=v_()(r,(e=>!t.includes(e)));return x()(e,...s)}function dP(e){const t=hP()(e,/\s+/);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return iv()(r,(e=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})),x()(...t)}var pP=__webpack_require__("7kvy"),fP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class mP extends u().PureComponent{render(){const e=this.props,{onResize:t,onResizeStart:n,onResizeStop:r,width:i,resize:s}=e,a=fP(e,["onResize","onResizeStart","onResizeStop","width","resize"]);if("number"!=typeof i||!1===s)return u().createElement("th",Object.assign({},a));let{children:o}=a;return o=u().Children.map(o,((e,t)=>u().createElement(u().Fragment,{key:t},e))),u().createElement(pP.Resizable,{width:i,height:0,onResize:t,onResizeStart:n,onResizeStop:r,draggableOpts:{enableUserSelectHack:!1},axis:"x"},u().createElement("th",Object.assign({},a),o))}}const gP=mP;var yP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const vP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const{components:n,columns:r,resizable:s}=e,o=yP(e,["components","columns","resizable"]),l="children",c=a()(s,"onResize",i()),d=a()(s,"onResizeStart",i()),p=a()(s,"onResizeStop",i()),f=Array.isArray(r)&&r.length?r:ak(e.children),m=$_(ze(f),l),g=$_(ze(f),l);"function"!=typeof e.expandedRowRender||e.hideExpandedColumn||av()(m,(e=>e.key===C_.DEFAULT_KEY_COLUMN_EXPAND))||g.unshift({key:C_.DEFAULT_KEY_COLUMN_EXPAND,width:E_.DEFAULT_WIDTH_COLUMN_EXPAND}),!e.rowSelection||a()(e.rowSelection,"hidden")||av()(m,(e=>e.key===C_.DEFAULT_KEY_COLUMN_SELECTION))||g.unshift({width:a()(e,"rowSelection.width",E_.DEFAULT_WIDTH_COLUMN_SELECTION),key:C_.DEFAULT_KEY_COLUMN_SELECTION});const[y,v]=(0,h.useState)(g);(0,h.useEffect)((()=>{const e=function(e,t){const n=[...t];for(const t of e)if(!ve(t.width)){const e=t.key,r=nv()(n,(t=>t.key===e));-1!==r&&(n[r].width=a()(t,"width"))}return n}(y,g);v(Bk(y,e))}),[r,e.expandedRowRender,e.hideExpandedColumn,e.rowSelection]);const b=(0,h.useMemo)((()=>ie()({header:{cell:gP}},n)),[n]),x=a()(s,"handlerClassName","resizing"),w=e=>(t,n)=>{let{size:r}=n;const i=ze(y),s=z_(i,e,l);let a=Object.assign(Object.assign({},s),{width:r.width});const o=c(a)||{};a=Object.assign(Object.assign({},a),o),Object.assign(s,a),v(i)},C=e=>t=>{const n=ze(y),r=z_(n,e,l);let i=Object.assign(Object.assign({},r),{className:uP(r.className,x)});const s=d(i)||{};i=Object.assign(Object.assign({},i),s),Object.assign(r,i),v(n)},E=e=>t=>{const n=ze(y),r=z_(n,e,l);let i=Object.assign(Object.assign({},r),{className:dP(r.className,x)});const s=p(i)||{};i=Object.assign(Object.assign({},i),s),Object.assign(r,i),v(n)},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(e)&&e.length?e.map(((e,n)=>{var r,i;const s=null!==(i=null===(r=e.onHeaderCell)||void 0===r?void 0:r.call(e,e,n,t))&&void 0!==i?i:{};Object.assign(e,function(e,t){let n=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},e),{onHeaderCell:e=>Object.assign(Object.assign({},n),{width:e.width,onResize:w(e),onResizeStart:C(e),onResizeStop:E(e)})})}(e,n,t,s));const a=e[l];return Array.isArray(a)&&a.length&&(e[l]=S(a,t+1)),e})):[]},_=(0,h.useMemo)((()=>S(y)),[y]);return u().createElement(lP,Object.assign({},o,{columns:_,components:b,ref:t}))},bP=u().forwardRef(vP);class xP extends u().PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=u().createRef()}render(){var e;const t=this.props,n=null!==(e=this.props.direction)&&void 0!==e?e:this.context.direction;return t.resizable?u().createElement(bP,Object.assign({},t,{ref:this.tableRef,direction:n})):u().createElement(lP,Object.assign({},t,{ref:this.tableRef,direction:n}))}}xP.Column=sk,xP.DEFAULT_KEY_COLUMN_SELECTION=C_.DEFAULT_KEY_COLUMN_SELECTION,xP.DEFAULT_KEY_COLUMN_EXPAND=C_.DEFAULT_KEY_COLUMN_EXPAND,xP.propTypes=Object.assign(Object.assign({},lP.propTypes),{resizable:C().oneOfType([C().bool,C().object])}),xP.defaultProps={hideExpandedColumn:!0},xP.contextType=Ze;const wP=xP,CP={TABS:`${E}-tabs`,TABS_BAR:`${E}-tabs-bar`,TABS_BAR_LINE:`${E}-tabs-bar-line`,TABS_BAR_CARD:`${E}-tabs-bar-card`,TABS_BAR_BUTTON:`${E}-tabs-bar-button`,TABS_BAR_EXTRA:`${E}-tabs-bar-extra`,TABS_TAB:`${E}-tabs-tab`,TABS_TAB_ACTIVE:`${E}-tabs-tab-active`,TABS_TAB_DISABLED:`${E}-tabs-tab-disabled`,TABS_CONTENT:`${E}-tabs-content`,TABS_CONTENT_ANIMATED:`${E}-tabs-content-animated`,TABS_CONTENT_NO_ANIMATED:`${E}-tabs-content-no-animated`,TABS_PANE:`${E}-tabs-pane`,TABS_PANE_INACTIVE:`${E}-tabs-pane-inactive`,TABS_PANE_ACTIVE:`${E}-tabs-pane-active`,TABS_PANE_MOTION_OVERLAY:`${E}-tabs-pane-motion-overlay`,TABS_PANE_ANIMATING:`${E}-tabs-pane-animating`,TABS_PANE_ANIMATE_LEFT_SHOW:`${E}-tabs-pane-animate-leftShow`,TABS_PANE_ANIMATE_RIGHT_SHOW:`${E}-tabs-pane-animate-rightShow`,TABS_PANE_ANIMATE_TOP_SHOW:`${E}-tabs-pane-animate-topShow`,TABS_PANE_ANIMATE_BOTTOM_SHOW:`${E}-tabs-pane-animate-bottomShow`},EP=["line","card","button"],SP=["small","medium","large"],_P=["top","left"];const kP=class extends c{constructor(e){super(Object.assign({},e)),this.destroy=i(),this.handlePrevent=e=>{e.stopPropagation(),e.preventDefault()},this.handleKeyDown=(e,t,n)=>{const{preventScroll:r}=this.getProps(),i=[...e.target.parentNode.childNodes].filter((e=>a()(e,"attributes.data-tabkey.value","").includes("semiTab")&&"true"!==a()(e,"attributes.aria-disabled.value","")));switch(e.key){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":this.determineOrientation(e,i);break;case"Backspace":case"Delete":this.handleDeleteKeyDown(e,i,t,n);break;case"Enter":case" ":this.handleTabClick(t,e),this.handlePrevent(e);break;case"Home":i[0].focus({preventScroll:r}),this.handlePrevent(e);break;case"End":i[i.length-1].focus({preventScroll:r}),this.handlePrevent(e)}}}init(){this._adapter.collectPane()}_notifyChange(e){const{activeKey:t}=this.getStates();t!==e&&this._adapter.notifyChange(e)}handleTabClick(e,t){this._isInProps("activeKey")?this._notifyChange(e):(this._notifyChange(e),this.handleNewActiveKey(e)),this._adapter.notifyTabClick(e,t)}handleNewActiveKey(e){const{activeKey:t}=this.getStates();t!==e&&this._adapter.setNewActiveKey(e)}getDefaultActiveKey(){let e;const t=this.getProps();return e="activeKey"in t?t.activeKey:"defaultActiveKey"in t?t.defaultActiveKey:this._adapter.getDefaultActiveKeyFromChildren(),e}handleTabListChange(){this._adapter.collectPane()}handleTabPanesChange(){this._adapter.collectPane(),this._adapter.collectActiveKey()}handleTabDelete(e){this._adapter.notifyTabDelete(e)}determineOrientation(e,t){const{tabPosition:n}=this.getProps();"left"===n?"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(this.switchTabOnArrowPress(e,t),this.handlePrevent(e)):"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(this.switchTabOnArrowPress(e,t),this.handlePrevent(e))}handleDeleteKeyDown(e,t,n,r){const{preventScroll:i}=this.getProps();if(r){this.handleTabDelete(n);const r=t.indexOf(e.target);1!==t.length&&t[r+1>=t.length?r-1:r+1].focus({preventScroll:i})}}switchTabOnArrowPress(e,t){const{preventScroll:n}=this.getProps(),r=t.indexOf(e.target),i={ArrowLeft:-1,ArrowUp:-1,ArrowRight:1,ArrowDown:1};i[e.key]&&void 0!==r&&(t[r+i[e.key]]?t[r+i[e.key]].focus({preventScroll:n}):"ArrowLeft"===e.key||"ArrowUp"===e.key?t[t.length-1].focus({preventScroll:n}):"ArrowRight"!==e.key&&"ArrowDown"!=e.key||t[0].focus({preventScroll:n}))}};__webpack_require__("NN0O");var PP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const OP=(e,t)=>{const{tab:n,size:r,type:i,icon:s,selected:a,closable:o,disabled:l,itemKey:c,deleteTabItem:d,tabPosition:p,handleKeyDown:f,onClick:m}=e,g=PP(e,["tab","size","type","icon","selected","closable","disabled","itemKey","deleteTabItem","tabPosition","handleKeyDown","onClick"]),y=(0,h.useMemo)((()=>"card"===i&&o?u().createElement(Ri,{"aria-label":"Close",role:"button",className:`${CP.TABS_TAB}-icon-close`,onClick:e=>d(c,e)}):null),[i,o,d,c]),v=(0,h.useCallback)((e=>u().createElement("span",{className:`${CP.TABS_BAR}-icon`},e)),[]),b=(0,h.useCallback)((e=>{f&&f(e,c,o)}),[f,c,o]),w=(0,h.useCallback)((e=>{!l&&m&&m(c,e)}),[c,l,m]),C=s?v(s):null,E=x()(CP.TABS_TAB,`${CP.TABS_TAB}-${i}`,`${CP.TABS_TAB}-${p}`,`${CP.TABS_TAB}-single`,{[CP.TABS_TAB_ACTIVE]:a,[CP.TABS_TAB_DISABLED]:l,[`${CP.TABS_TAB}-small`]:"small"===r,[`${CP.TABS_TAB}-medium`]:"medium"===r});return u().createElement("div",Object.assign({role:"tab",id:`semiTab${c}`,"data-tabkey":`semiTab${c}`,"aria-controls":`semiTabPanel${c}`,"aria-disabled":l?"true":"false","aria-selected":a?"true":"false",tabIndex:a?0:-1,onKeyDown:b,onClick:w,className:E},g,{ref:t}),C,n,y)},TP=(0,h.forwardRef)(OP);TP.elementType="Tabs.TabItem";const IP=TP;var DP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class AP extends u().Component{constructor(e){var t;super(e),t=this,this.handleItemClick=(e,t)=>{this.props.onTabClick(e,t)},this.handleKeyDown=(e,t,n)=>{this.props.handleKeyDown(e,t,n)},this.renderTabItem=e=>{const{size:t,type:n,deleteTabItem:r,handleKeyDown:i,tabPosition:s}=this.props,a=this._isActive(e.itemKey);return u().createElement(IP,Object.assign({},Pl()(e,["disabled","icon","itemKey","tab","closable"]),{key:this._getBarItemKeyByItemKey(e.itemKey),selected:a,size:t,type:n,tabPosition:s,handleKeyDown:i,deleteTabItem:r,onClick:this.handleItemClick}))},this.scrollTabItemIntoViewByKey=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest";const r=document.querySelector(`[data-uuid="${t.state.uuid}"] .${CP.TABS_TAB}[data-scrollkey="${e}"]`);null==r||r.scrollIntoView({behavior:"smooth",block:n,inline:n})},this.scrollActiveTabItemIntoView=e=>{const t=this._getBarItemKeyByItemKey(this.props.activeKey);this.scrollTabItemIntoViewByKey(t,e)},this.renderTabComponents=e=>e.map((e=>this.renderTabItem(e))),this.handleArrowClick=(e,t)=>{const n="start"===t?e.pop():e.shift();if(!n)return;const r=this._getBarItemKeyByItemKey(n.itemKey);this.scrollTabItemIntoViewByKey(r)},this.renderCollapse=(e,t,n)=>{const r=x()({[`${CP.TABS_BAR}-arrow-${n}`]:n,[`${CP.TABS_BAR}-arrow`]:!0});if(de()(e))return u().createElement("div",{role:"presentation",className:r},u().createElement(Ji,{disabled:!0,icon:t,theme:"borderless"}));const{dropdownClassName:i,dropdownStyle:s,showRestInDropdown:a}=this.props,{rePosKey:o}=this.state,l=!e.length,c=u().createElement(mx.Menu,null,e.map((e=>{const{icon:t,tab:n,itemKey:r}=e,i=t?this.renderIcon(e.icon):null;return u().createElement(mx.Item,{key:r,onClick:e=>this.handleItemClick(r,e),active:this._isActive(r)},i,n)}))),h=u().createElement("div",{role:"presentation",className:r,onClick:t=>this.handleArrowClick(e,n)},u().createElement(Ji,{disabled:l,icon:t,theme:"borderless"})),d=x()(i,{[`${CP.TABS_BAR}-dropdown`]:!0});return u().createElement(u().Fragment,null,a?u().createElement(mx,{className:d,clickToHide:!0,clickTriggerToHide:!0,key:`${o}-${n}`,position:"start"===n?"bottomLeft":"bottomRight",render:l?null:c,showTick:!0,style:s,trigger:"hover",disableFocusListener:!0},h):h)},this.renderOverflow=e=>e.map(((e,t)=>{const n=0===t?"start":"end";if(this.props.renderArrow)return this.props.renderArrow(e,n,(()=>this.handleArrowClick(e,n)));const r=0===t?u().createElement(dl,null):u().createElement(pl,null);return this.renderCollapse(e,r,n)})),this.renderCollapsedTab=()=>{const{list:e}=this.props,t=e.map((e=>{const{itemKey:t}=e;return Object.assign({key:this._getBarItemKeyByItemKey(t),active:this._isActive(t)},e)}));return u().createElement(WC,{items:t,overflowRenderDirection:this.props.arrowPosition,wrapperStyle:this.props.visibleTabsStyle,overflowRenderer:this.renderOverflow,renderMode:"scroll",className:`${CP.TABS_BAR}-overflow-list`,visibleItemRenderer:this.renderTabItem,onVisibleStateChange:e=>{var t,n;const r=new Map;e.forEach(((e,t)=>{r.set(this._getItemKeyByBarItemKey(t),e)})),null===(n=(t=this.props).onVisibleTabsChange)||void 0===n||n.call(t,r)}})},this.renderWithMoreTrigger=()=>{const{list:e,more:t}=this.props;let n,r=[],i=u().createElement("div",{className:x()({[`${CP.TABS_BAR}-more-trigger`]:!0,[`${CP.TABS_BAR}-more-trigger-${this.props.type}`]:!0})},u().createElement(Bt,{componentName:"Tabs"},((e,t)=>u().createElement("div",{className:`${CP.TABS_BAR}-more-trigger-content`},u().createElement("div",null,e.more),u().createElement(yc,{className:`${CP.TABS_BAR}-more-trigger-content-icon`})))));if("number"==typeof t)n=e.length-Math.min(t,e.length),r=e.slice(0,n).map((e=>this.renderTabItem(e)));else if("object"==typeof t)n=e.length-Math.min(t.count,e.length),r=e.slice(0,n).map((e=>this.renderTabItem(e))),t.render&&(i=t.render());else if(void 0!==t)throw new Error("[Semi Tabs]: invalid tab props format: more");return u().createElement(u().Fragment,null,r,this.renderMoreDropdown(e.slice(n),null==t?void 0:t.dropdownProps,i))},this.renderMoreDropdown=(e,t,n)=>u().createElement(mx,Object.assign({trigger:"hover",showTick:!0,position:"bottomLeft",className:`${CP.TABS_BAR}-more-dropdown-${this.props.type}`,clickToHide:!0,menu:e.map((e=>({node:"item",name:e.tab,icon:e.icon,onClick:t=>this.props.onTabClick(e.itemKey,t),active:this.props.activeKey===e.itemKey})))},t),n),this._isActive=e=>e===this.props.activeKey,this._getBarItemKeyByItemKey=e=>`${e}-bar`,this._getItemKeyByBarItemKey=e=>e.replace(/-bar$/,""),this.state={endInd:e.list.length,rePosKey:0,startInd:0,uuid:"",currentVisibleItems:[]}}componentDidMount(){this.setState({uuid:De()})}componentDidUpdate(e){e.activeKey!==this.props.activeKey&&this.props.collapsible&&this.scrollActiveTabItemIntoView()}renderIcon(e){return u().createElement("span",null,e)}renderExtra(){const{tabBarExtraContent:e,type:t,size:n}=this.props,r={float:"right"},i=e&&e.props?e.props.style:{},s=x()(CP.TABS_BAR_EXTRA,{[`${CP.TABS_BAR}-${t}-extra`]:t,[`${CP.TABS_BAR}-${t}-extra-${n}`]:n});if(e){const t=Object.assign(Object.assign({},r),i);return u().createElement("div",{className:s,style:t,"x-semi-prop":"tabBarExtraContent"},e)}return null}render(){const e=this.props,{type:t,style:n,className:r,list:i,tabPosition:s,more:a,collapsible:o}=e,l=DP(e,["type","style","className","list","tabPosition","more","collapsible"]),c=x()(r,{[CP.TABS_BAR]:!0,[CP.TABS_BAR_LINE]:"line"===t,[CP.TABS_BAR_CARD]:"card"===t,[CP.TABS_BAR_BUTTON]:"button"===t,[`${CP.TABS_BAR}-${s}`]:s,[`${CP.TABS_BAR}-collapse`]:o}),h=this.renderExtra(),p=o?this.renderCollapsedTab():a?this.renderWithMoreTrigger():this.renderTabComponents(i);return u().createElement("div",Object.assign({role:"tablist","aria-orientation":"left"===s?"vertical":"horizontal",className:c,style:n},d(l),{"data-uuid":this.state.uuid}),p,h)}}AP.propTypes={activeKey:C().string,className:C().string,collapsible:C().bool,list:C().array,onTabClick:C().func,size:C().oneOf(SP),style:C().object,tabBarExtraContent:C().node,tabPosition:C().oneOf(_P),type:C().oneOf(EP),closable:C().bool,deleteTabItem:C().func,more:C().oneOfType([C().number,C().object])};const RP=AP,NP=u().createContext({});var MP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class FP extends h.PureComponent{constructor(){super(...arguments),this.ref=(0,h.createRef)(),this.getDirection=(e,t,n,r)=>{if(null!==t&&null!==e&&Array.isArray(n)&&n.length){const i=n.findIndex((t=>t.itemKey===e)),s=n.findIndex((e=>e.itemKey===t)),a=n.findIndex((e=>e.itemKey===r));return i===s?a>i:s<i}return!1},this.shouldRender=()=>{const{itemKey:e}=this.props,{activeKey:t,lazyRender:n}=this.context,r=t===e;return this._active=this._active||r,!n||this._active}}render(){const{tabPaneMotion:e,tabPosition:t,prevActiveKey:n}=this.context,r=this.props,{className:i,style:s,children:a,itemKey:o,tabIndex:l}=r,c=MP(r,["className","style","children","itemKey","tabIndex"]),h=this.context.activeKey===o,p=x()(i,{[CP.TABS_PANE_INACTIVE]:!h,[CP.TABS_PANE_ACTIVE]:h,[CP.TABS_PANE]:!0}),f=this.shouldRender(),m=(()=>{const e=this.getDirection(this.context.activeKey,o,this.context.panes,n);return"top"===t?e?CP.TABS_PANE_ANIMATE_RIGHT_SHOW:CP.TABS_PANE_ANIMATE_LEFT_SHOW:e?CP.TABS_PANE_ANIMATE_BOTTOM_SHOW:CP.TABS_PANE_ANIMATE_TOP_SHOW})(),g=!this.context.panes.find((e=>e.itemKey===n)),y=e&&h&&!g&&!this.context.forceDisableMotion;return u().createElement("div",Object.assign({ref:this.ref,role:"tabpanel",id:`semiTabPanel${o}`,"aria-labelledby":`semiTab${o}`,className:p,style:s,"aria-hidden":h?"false":"true",tabIndex:l||0},d(c),{"x-semi-prop":"children"}),u().createElement(ot,{motion:y,animationState:h?"enter":"leave",startClassName:m},(e=>{let{animationClassName:t,animationEventsNeedBind:n}=e;return u().createElement("div",Object.assign({className:x()(CP.TABS_PANE_MOTION_OVERLAY,t),"x-semi-prop":"children"},n),f?a:null)})))}}FP.isTabPane=!0,FP.contextType=NP,FP.propTypes={className:C().string,style:C().object,children:C().node,disabled:C().bool,itemKey:C().string,tab:C().node,icon:C().node,closable:C().bool};const LP=FP;var jP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const VP=["className","style","disabled","itemKey","tab","icon"];class $P extends f{constructor(e){super(e),this.setContentRef=e=>{this.contentRef={current:e}},this.getPanes=()=>{const{tabList:e,children:t}=this.props;return Array.isArray(e)&&e.length?e:u().Children.map(t,(e=>{if(e){const{tab:t,icon:n,disabled:r,itemKey:i,closable:s}=e.props;return{tab:t,icon:n,disabled:r,itemKey:i,closable:s}}}))},this.onTabClick=(e,t)=>{this.foundation.handleTabClick(e,t)},this.rePosChildren=(e,t)=>{const n=[],r=u().Children.toArray(e);return e.length&&(n.push(...r.filter((e=>e.props&&e.props.itemKey===t))),n.push(...r.filter((e=>e.props&&e.props.itemKey!==t)))),n},this.getActiveItem=()=>{const{activeKey:e}=this.state,{children:t,tabList:n}=this.props;return n||!Array.isArray(t)?t:u().Children.toArray(t).filter((t=>!((0,h.isValidElement)(t)&&t.type&&t.type.isTabPane)||t.props.itemKey===e))},this.deleteTabItem=(e,t)=>{t.stopPropagation(),this.foundation.handleTabDelete(e)},this.foundation=new kP(this.adapter),this.state={activeKey:this.foundation.getDefaultActiveKey(),panes:this.getPanes(),prevActiveKey:null,forceDisableMotion:!1},this.contentRef=(0,h.createRef)(),this.contentHeight="auto"}get adapter(){return Object.assign(Object.assign({},super.adapter),{collectPane:()=>{const e=this.getPanes();this.setState({panes:e})},collectActiveKey:()=>{const{tabList:e,children:t,activeKey:n}=this.props;if(void 0!==n)return;const{activeKey:r}=this.state,i=this.getPanes();-1===i.findIndex((e=>e.itemKey===r))&&(i.length>0?this.setState({activeKey:i[0].itemKey}):this.setState({activeKey:""}))},notifyTabClick:(e,t)=>{this.props.onTabClick(e,t)},notifyChange:e=>{this.props.onChange(e)},setNewActiveKey:e=>{this.setState({activeKey:e})},getDefaultActiveKeyFromChildren:()=>{const{tabList:e,children:t}=this.props;let n="";return(e||u().Children.toArray(t).map((e=>(0,h.isValidElement)(e)?e.props:null))).forEach((e=>{!e||n||e.disabled||(n=e.itemKey)})),n},notifyTabDelete:e=>{this.props.onTabClose&&this.props.onTabClose(e)}})}static getDerivedStateFromProps(e,t){const n={};return ve(e.activeKey)||e.activeKey===t.activeKey||(t.prevActiveKey=t.activeKey,n.activeKey=e.activeKey),n}componentDidUpdate(e,t){const n=u().Children.toArray(e.children).map((e=>Pl()((0,h.isValidElement)(e)?e.props:null,VP))),r=u().Children.toArray(this.props.children).map((e=>Pl()((0,h.isValidElement)(e)?e.props:null,VP))),i=this.props.tabList||e.tabList;if(he()(this.props.tabList,e.tabList)||this.foundation.handleTabListChange(),t.activeKey!==this.state.activeKey&&t.activeKey!==this.state.prevActiveKey&&this.setState({prevActiveKey:t.activeKey}),e.activeKey!==this.props.activeKey){const e=(()=>{const e=new Set(n.map((e=>e.itemKey)));return r.map((e=>e.itemKey)).filter((t=>!e.has(t)))})();this.setState({forceDisableMotion:e.includes(this.props.activeKey)})}he()(n,r)||i||this.foundation.handleTabPanesChange()}render(){const e=this.props,{children:t,className:n,collapsible:r,contentStyle:i,keepDOM:s,lazyRender:a,renderTabBar:o,showRestInDropdown:l,size:c,style:h,tabBarClassName:d,tabBarExtraContent:p,tabBarStyle:f,tabPaneMotion:m,tabPosition:g,type:y,more:v,onVisibleTabsChange:b,visibleTabsStyle:w,arrowPosition:C,renderArrow:E}=e,S=jP(e,["children","className","collapsible","contentStyle","keepDOM","lazyRender","renderTabBar","showRestInDropdown","size","style","tabBarClassName","tabBarExtraContent","tabBarStyle","tabPaneMotion","tabPosition","type","more","onVisibleTabsChange","visibleTabsStyle","arrowPosition","renderArrow"]),{panes:_,activeKey:k}=this.state,P=x()(n,{[CP.TABS]:!0,[`${CP.TABS}-${g}`]:g}),O=x()({[CP.TABS_CONTENT]:!0,[`${CP.TABS_CONTENT}-${g}`]:g}),T={activeKey:k,className:d,collapsible:r,list:_,onTabClick:this.onTabClick,showRestInDropdown:l,size:c,style:f,tabBarExtraContent:p,tabPosition:g,type:y,deleteTabItem:this.deleteTabItem,handleKeyDown:this.foundation.handleKeyDown,more:v,onVisibleTabsChange:b,visibleTabsStyle:w,arrowPosition:C,renderArrow:E},I=o?o(T,RP):u().createElement(RP,Object.assign({},T)),D=s?t:this.getActiveItem();return u().createElement("div",Object.assign({className:P,style:h},this.getDataAttr(S)),I,u().createElement(NP.Provider,{value:{activeKey:k,lazyRender:a,panes:_,tabPaneMotion:m,tabPosition:g,prevActiveKey:this.state.prevActiveKey,forceDisableMotion:this.state.forceDisableMotion}},u().createElement("div",{ref:this.setContentRef,className:O,style:Object.assign({},i)},D)))}}$P.TabPane=LP,$P.TabItem=IP,$P.propTypes={activeKey:C().string,className:C().string,collapsible:C().bool,contentStyle:C().oneOfType([C().object]),defaultActiveKey:C().string,keepDOM:C().bool,lazyRender:C().bool,onChange:C().func,onTabClick:C().func,renderTabBar:C().func,showRestInDropdown:C().bool,size:C().oneOf(SP),style:C().object,tabBarClassName:C().string,tabBarExtraContent:C().node,tabBarStyle:C().object,tabList:C().array,tabPaneMotion:C().bool,tabPosition:C().oneOf(_P),type:C().oneOf(EP),onTabClose:C().func,preventScroll:C().bool,more:C().oneOfType([C().number,C().object]),arrowPosition:C().string,renderArrow:C().func},$P.__SemiComponentName__="Tabs",$P.defaultProps=Xe($P.__SemiComponentName__,{children:[],collapsible:!1,keepDOM:!0,lazyRender:!1,onChange:()=>{},onTabClick:()=>{},size:"large",tabPaneMotion:!0,tabPosition:"top",type:"line",onTabClose:()=>{},showRestInDropdown:!0,arrowPosition:"both"});const BP=$P;__webpack_require__("iiC6");const zP={PREFIX:`${E}-timeline`,ITEM:`${E}-timeline-item`},HP=["left","alternate","right","center"],KP=["left","right"],UP=["ongoing","success","warning","error","default"];var WP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const GP=zP.ITEM;class qP extends h.PureComponent{render(){const e=this.props,{className:t,color:n,children:r,dot:i,type:s,style:a,time:o,extra:l,onClick:c}=e,h=WP(e,["className","color","children","dot","type","style","time","extra","onClick"]),p=x()(GP,t),f=x()({[`${GP}-head`]:!0,[`${GP}-head-custom`]:i,[`${GP}-head-${s}`]:s}),m=n?{style:{backgroundColor:n}}:null;return u().createElement("li",Object.assign({className:p,style:a,onClick:c},d(h)),u().createElement("div",{className:`${GP}-tail`,"aria-hidden":!0}),u().createElement("div",Object.assign({className:f,"aria-hidden":!0},m),i),u().createElement("div",{className:`${GP}-content`},r,l&&u().createElement("div",{className:`${GP}-content-extra`},l),o&&u().createElement("div",{className:`${GP}-content-time`},o)))}}qP.propTypes={color:C().string,time:C().node,type:C().oneOf(UP),dot:C().node,extra:C().node,position:C().oneOf(KP),className:C().string,style:C().object,onClick:C().func},qP.defaultProps={type:"default",time:"",onClick:i()};var YP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const XP=zP.PREFIX;class ZP extends h.PureComponent{constructor(){super(...arguments),this.getPosCls=(e,t)=>{const{mode:n}=this.props;return"alternate"===n?e.props.position?`${XP}-item-${e.props.position}`:t%2==0?`${XP}-item-left`:`${XP}-item-right`:"center"===n?e.props.position?`${XP}-item-${e.props.position}`:`${XP}-item-left`:"left"===n||"right"===n?`${XP}-item-${n}`:e.props.position?`${XP}-item-${e.props.position}`:""},this.addClassName=e=>u().Children.map(e,((e,t)=>u().isValidElement(e)?u().cloneElement(e,{className:x()(e.props.className,this.getPosCls(e,t))}):e))}render(){const e=this.props,{children:t,className:n,style:r,mode:i,dataSource:s}=e,a=YP(e,["children","className","style","mode","dataSource"]),o=x()(XP,n,{[`${XP}-${i}`]:i});let l;if(s&&s.length){const e=s.map(((e,t)=>u().createElement(qP,Object.assign({key:`timeline-item-${t}`},e),e.content)));l=this.addClassName(e)}const c=l||this.addClassName(t);return u().createElement("ul",Object.assign({"aria-label":this.props["aria-label"],style:r,className:o},d(a)),c)}}ZP.contextType=Ze,ZP.Item=qP,ZP.propTypes={mode:C().oneOf(HP),className:C().string,style:C().object,dataSource:C().array},ZP.defaultProps={mode:"left"};const JP=ZP,QP=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yy.DEFAULT_FORMAT,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vt;if(e instanceof Date)return e;if("number"==typeof e)return new Date(Ow()(e));if("string"==typeof e){if(""===e)return;let r=new Date;return r=mg(e,t,r,{locale:n}),r}return void 0!==e?new Date:void 0},eO=function(e){return ea(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yy.DEFAULT_FORMAT,{locale:arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vt})},tO=e=>Array.isArray(e)?[...e]:[];const nO=class extends c{constructor(e){super(Object.assign({},e))}init(){this.initDataFromDefaultValue();(this._isControlledComponent("open")?this.getProp("open"):this.getProp("defaultOpen"))&&!this._isControlledComponent("open")&&this._adapter.registerClickOutSide()}getPosition(){const e=this.getProp("position"),t=this.getProp("type")||Yy.DEFAULT_TYPE,n=this.getContext("direction");return e||("rtl"===n?"bottomRight":"")||Yy.DEFAULT_POSITION[t]}isDisabledHMS(e){let{hours:t,minutes:n,seconds:r}=e;const{disabledHours:i,disabledMinutes:s,disabledSeconds:a}=this.getProps(),o=!ve(t)&&((e,t)=>{if("function"==typeof e){const n=e();if(Array.isArray(n)&&!ve(t)&&n.some((e=>Ow()(e)===Ow()(t))))return!0}return!1})(i,t),l=!ve(t)&&!ve(n)&&((e,t,n)=>{if("function"==typeof e){const r=e(t);if(Array.isArray(r)&&!ve(t)&&!ve(n)&&r.some((e=>Ow()(e)===Ow()(n))))return!0}return!1})(s,t,n),c=!ve(t)&&!ve(n)&&!ve(r)&&((e,t,n,r)=>{if("function"==typeof e){const i=e(t,n);if(Array.isArray(i)&&!ve(t)&&!ve(n)&&!ve(r)&&i.some((e=>Ow()(e)===Ow()(r))))return!0}return!1})(a,t,n,r);return o||l||c}isValidTimeZone(e){return["string","number"].includes(typeof e)&&""!==e}getDefaultFormatIfNeed(){return this._isInProps("format")?this.getProp("format"):this.getProp("use12Hours")?Yy.DEFAULT_FORMAT_A:Yy.DEFAULT_FORMAT}initDataFromDefaultValue(){const e=this.getProp("defaultValue");let t=this.getProp("value");const n=this.getProp("timeZone"),r=this.getValidFormat(),{rangeSeparator:i,dateFnsLocale:s}=this.getProps();t=t||e,Array.isArray(t)||(t=t?[t]:[]);const a=[];let o=!1;t.forEach((e=>{const t=QP(e,r,s);isNaN(t.getTime())||a.push(this.isValidTimeZone(n)?Df(t,n):t)}));const l=[!0,!1];a.map(((e,t)=>{l[t]=pa(e)<12})),a.length===t.length?t=a:(t=[],t.length&&(o=!0));let c="";o||(c=t.map((e=>eO(e,r,s))).join(i)),this.setState({isAM:l,value:t,inputValue:c,invalid:o})}getValidFormat(e){let t=e;return ve(t)&&(t=this.getDefaultFormatIfNeed()),"string"!=typeof t&&(t=Yy.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.getValidFormat(),r=this.getProp("dateFnsLocale"),i=this.getState("value");let s=this.getState("isAM");const a=tO(i);if(s=tO(s),e){const o=Boolean(e.isAM),l=QP(e.timeStampValue,n,r);a[t]=l,s[t]=o;const c=this.formatValue(a);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:s}),!this._isControlledComponent("value")){const e=this.validateDates(a);this.setState({isAM:s,value:a,inputValue:c,invalid:e})}this._hasChanged(a,i)&&this._notifyChange(a,c)}}refreshProps(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{value:t,timeZone:n,__prevTimeZone:r}=e;let i=this.parseValue(t),s=i.some((e=>isNaN(Number(e))));s||(this.isValidTimeZone(n)&&(i=i.map((e=>Df(this.isValidTimeZone(r)?Af(e,r):e,n)))),s=i.some((e=>this.isDisabledHMS({hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}))));const a=this.formatValue(i);this.setState({value:i,invalid:s,inputValue:a})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),n=hP()(e,t),r=this.getValidFormat();if(""!==e&&n.some((e=>!((e,t)=>{let n=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",i=new RegExp(`[${r}]`,"g"),s=new RegExp(`[^${r}]`,"g"),a=/[H|m|s]{1,2}/,o=t.split(s),l=t.replace(i,""),c=new RegExp(`[${l}]`,"g"),h=e.split(c);if(o.length!==h.length)n=!1;else for(let e=0,t=h.length;e<t;e++){const t=o[e],r=h[e];if(a.test(t)&&r.length<t.length){n=!1;break}}return n})(e,r))))return;const i=this.parseInput(e),s=this.validateDates(i),a={invalid:s},o=this.getState("value");let l=tO(o);s||(a.value=i,l=[...i]),this._isControlledComponent("value")||this.setState(a),this._hasChanged(l,o)&&this._notifyChange(l,e)}doValidate(e){return"string"==typeof e?this.validateStr(e):Array.isArray(e)?this.validateDates(e):void 0}validateStr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.some((e=>isNaN(Number(e))));return t||(t=e.some((e=>this.isDisabledHMS({hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()})))),t}handleInputBlur(e){const t=this.getState("invalid"),n=this.getState("inputValue"),r=this.getState("value");n?t?this.setState({inputValue:this.formatValue(r),invalid:!1}):this.setState({inputValue:this.formatValue(r)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),n=this.getProp("rangeSeparator"),r=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i)){const e=i.map((e=>{let n;return n=le()(e)?"":eO(e,t,r),n}));return e.join(n)}}parseInput(e){const t=this.getValidFormat(),n=this.getProp("rangeSeparator"),r=this.getProp("dateFnsLocale");return e&&"string"==typeof e?hP()(e,n).map((e=>QP(e,t,r))):[]}parseValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=this.getValidFormat(),n=this.getProp("dateFnsLocale");let r=e;return Array.isArray(r)||(r=r?[r]:[]),Array.isArray(r)?r.map((e=>QP(e,t,n))):[]}_notifyChange(e,t){let n=t,r=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const e=this.getProp("rangeSeparator");n=hP()(t,e)}else r=Array.isArray(r)?r[0]:r;if(this.isValidTimeZone(i)&&r){const e=this.getValidFormat();Array.isArray(r)?(r=r.map((e=>Af(e,i))),n=r.map((t=>ea(t,e)))):(r=Af(r,i),n=ea(r,e))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(r,n):this._adapter.notifyChange(n,r)}_hasChanged(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=this.getValidFormat(),r=this.getProp("dateFnsLocale");return e.length!==t.length||e.some(((e,i)=>{const s=t[i];return!as(e)||!as(s)||eO(e,n,r)!==eO(s,n,r)}))}};const rO=class extends c{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ve(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}};var iO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class sO extends f{constructor(e){super(e),this.setRef=e=>this.adapter.setCache("inputNode",e),this.handleClick=e=>this.props.onClick(e),this.handleFocus=e=>this.foundation.handleFocus(e),this.handleBlur=e=>this.foundation.handleBlur(e),this.handleChange=e=>this.foundation.handleChange(e),this.foundation=new rO(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;if(e){(window.requestAnimationFrame||window.setTimeout)((()=>{const e=this.adapter.getCache("inputNode");e&&(e.focus({preventScroll:t}),e.select())}))}}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:n,inputReadOnly:r,onFocus:i,disabled:s,type:a,locale:o,localeCode:l,insetLabel:c,validateStatus:h,value:d,onChange:p,invalid:f,format:m,clearText:g,disabledHours:y,disabledMinutes:v,disabledSeconds:b,onEsc:w,defaultOpenValue:C,currentSelectPanel:E,focusOnOpen:S,timeStampValue:_,timeZone:k,defaultOpen:P,dateFnsLocale:O}=e,T=iO(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),I=x()(`${t}-input`,{[`${t}-input-invalid`]:f,[`${t}-input-readonly`]:r}),D=f?"error":h;return u().createElement(gr,Object.assign({},T,{hideSuffix:!0,className:I,ref:this.setRef,value:d,placeholder:n||o.placeholder[a],readonly:Boolean(r),onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:u().createElement(Av,{onClick:this.handleClick}),validateStatus:D,disabled:s,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return u().createElement("div",{className:`${e}-input-wrap`},this.getInput())}}sO.propTypes={borderless:C().bool,format:C().string,prefixCls:C().string,placeholder:C().string,clearText:C().string,inputReadOnly:C().bool,hourOptions:C().array,minuteOptions:C().array,secondOptions:C().array,disabledHours:C().func,disabledMinutes:C().func,disabledSeconds:C().func,onChange:C().func,onFocus:C().func,onBlur:C().func,onEsc:C().func,onClick:C().func,defaultOpenValue:C().object,currentSelectPanel:C().string,focusOnOpen:C().bool,timeStampValue:C().any,locale:C().object,localeCode:C().string,insetLabel:C().node,validateStatus:C().string,preventScroll:C().bool},sO.defaultProps={borderless:!1,inputReadOnly:!1,onChange:i(),onBlur:i(),onFocus:i(),onClick:i(),disabledHours:i(),disabledMinutes:i(),disabledSeconds:i(),format:Yy.DEFAULT_FORMAT};const aO=sO,oO={panelHeader:C().oneOfType([C().node,C().string]),panelFooter:C().oneOfType([C().node,C().string])},lO=[C().string,C().number,C().instanceOf(Date)],cO=C().oneOfType([...lO,C().arrayOf(C().string),C().arrayOf(C().number),C().arrayOf(C().instanceOf(Date))]);__webpack_require__("x6Mr");var hO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class uO extends f{constructor(e){var t;super(e),t=this,this.onCurrentSelectPanelChange=e=>{this.setState({currentSelectPanel:e})},this.handlePanelChange=(e,t)=>this.foundation.handlePanelChange(e,t),this.handleInput=e=>this.foundation.handleInputChange(e),this.createPanelProps=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{panels:n,panelFooter:r,panelHeader:i,locale:s}=t.props,o={panelHeader:i,panelFooter:r};if(t.adapter.isRangePicker()){const t={0:s.begin,1:s.end};o.panelHeader=a()(n,e,ve(i)?a()(t,e,null):Array.isArray(i)?i[e]:i),o.panelFooter=a()(n,e,Array.isArray(r)?r[e]:r)}return o},this.handlePanelVisibleChange=e=>this.foundation.handleVisibleChange(e),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=e=>{this.foundation.handleFocus(e)},this.handleBlur=e=>this.foundation.handleInputBlur(e),this.setTimePickerRef=e=>this.timePickerRef.current=e;const{format:n=Yy.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:Boolean(n.match(/HH|hh|H|h/g)),showMinute:Boolean(n.match(/mm/g)),showSecond:Boolean(n.match(/ss/g)),invalid:void 0},this.foundation=new nO(this.adapter),this.timePickerRef=u().createRef(),this.savePanelRef=u().createRef(),this.useCustomTrigger="function"==typeof this.props.triggerRender}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:e=>{this.setState({open:e})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=e=>{const t=this.savePanelRef&&this.savePanelRef.current,n=this.timePickerRef&&this.timePickerRef.current,r=e.target,i=e.composedPath&&e.composedPath()||[r];t&&t.contains(r)||n&&n.contains(r)||i.includes(n)||i.includes(t)||this.foundation.handlePanelClose(!0,e)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(e,t)=>this.setState({inputValue:e},t),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(e,t)=>this.props.onChange&&this.props.onChange(e,t),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Yy.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:n,value:r}=this.state,i=this.foundation.getDefaultFormatIfNeed(),s=[u().createElement(_v,Object.assign({},this.props,{key:0,format:i,isAM:n[0],timeStampValue:r[0],prefixCls:`${e}-panel`,onChange:e=>this.handlePanelChange(e,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Yy.TYPE_TIME_RANGE_PICKER&&s.push(u().createElement(_v,Object.assign({},this.props,{key:1,format:i,isAM:n[1],timeStampValue:r[1],prefixCls:`${e}-panel`,onChange:e=>this.handlePanelChange(e,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const a=x()({[qy.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return u().createElement("div",{ref:this.savePanelRef,className:a},s.map((e=>e)))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:n}=this.props,{showHour:r,showMinute:i,showSecond:s}=this.state;let a=0;return r&&(a+=1),i&&(a+=1),s&&(a+=1),e&&(a+=1),x()(`${t}-panel`,n,{[`${t}-panel-narrow`]:!(r&&i&&s||e),[qy.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${a}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:n,disabled:r,defaultValue:i,dropdownMargin:s,className:a,popupStyle:o,size:l,style:c,locale:h,localeCode:d,zIndex:p,getPopupContainer:f,insetLabel:m,insetLabelId:g,inputStyle:y,showClear:v,panelHeader:b,panelFooter:w,rangeSeparator:C,onOpenChange:E,onChangeWithDateFirst:S,popupClassName:_,hideDisabledOptions:k,use12Hours:P,minuteStep:O,hourStep:T,secondStep:I,scrollItemProps:D,triggerRender:A,motion:R,autoAdjustOverflow:N,stopPropagation:M}=e,F=hO(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow","stopPropagation"]),L=this.foundation.getDefaultFormatIfNeed(),j=this.foundation.getPosition(),{open:V,inputValue:$,invalid:B,value:z}=this.state,H=this.getPopupClassName(),K=x()({[`${t}-header`]:!0}),U=x()({[`${t}-panel`]:!0,[`${t}-panel-${l}`]:l}),W=Object.assign(Object.assign({},F),{disabled:r,prefixCls:t,size:l,showClear:!r&&v,style:y,value:$,onFocus:this.handleFocus,insetLabel:m,insetLabelId:g,format:L,locale:h,localeCode:d,invalid:B,placeholder:n,onChange:this.handleInput,onBlur:this.handleBlur}),G={};return this.useCustomTrigger&&(G.onClick=this.openPanel),u().createElement("div",Object.assign({ref:this.setTimePickerRef,className:x()({[t]:!0},a),style:c},G),u().createElement(pn,{getPopupContainer:f,zIndex:p,prefixCls:U,contentClassName:H,style:o,content:this.getPanelElement(),trigger:"custom",position:j,visible:!r&&Boolean(V),motion:R,margin:s,autoAdjustOverflow:N,stopPropagation:M},this.useCustomTrigger?u().createElement(br,{triggerRender:A,disabled:r,value:z,inputValue:$,onChange:this.handleInput,placeholder:n,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):u().createElement("span",{className:K},u().createElement(aO,Object.assign({},W)))))}}uO.contextType=Ze,uO.propTypes=Object.assign(Object.assign({"aria-labelledby":C().string,"aria-invalid":C().bool,"aria-errormessage":C().string,"aria-describedby":C().string,"aria-required":C().bool,prefixCls:C().string,borderless:C().bool,clearText:C().string,clearIcon:C().node,value:cO,inputReadOnly:C().bool,disabled:C().bool,showClear:C().bool,defaultValue:cO,open:C().bool,defaultOpen:C().bool,onOpenChange:C().func,position:C().any,getPopupContainer:C().func,placeholder:C().string,format:C().string,style:C().object,className:C().string,popupClassName:C().string,popupStyle:C().object,disabledHours:C().func,disabledMinutes:C().func,disabledSeconds:C().func,dropdownMargin:C().oneOfType([C().number,C().object]),hideDisabledOptions:C().bool,onChange:C().func,use12Hours:C().bool,hourStep:C().number,minuteStep:C().number,secondStep:C().number,focusOnOpen:C().bool,autoFocus:C().bool,size:C().oneOf(Yy.SIZE),stopPropagation:C().bool,panels:C().arrayOf(C().shape(oO)),onFocus:C().func,onBlur:C().func,locale:C().object,localeCode:C().string,dateFnsLocale:C().object,zIndex:C().oneOfType([C().number,C().string]),insetLabel:C().node,insetLabelId:C().string,validateStatus:C().oneOf(Yy.STATUS),type:C().oneOf(Yy.TYPES),rangeSeparator:C().string,triggerRender:C().func,timeZone:C().oneOfType([C().string,C().number]),scrollItemProps:C().object,motion:C().oneOfType([C().bool,C().func,C().object]),autoAdjustOverflow:C().bool},oO),{inputStyle:C().object,preventScroll:C().bool}),uO.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:sn.DEFAULT_Z_INDEX,rangeSeparator:Yy.DEFAULT_RANGE_SEPARATOR,onOpenChange:i(),clearText:"clear",prefixCls:qy.PREFIX,inputReadOnly:!1,style:{},stopPropagation:!0,className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:i(),onBlur:i(),onChange:i(),onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:i(),size:"default",type:Yy.DEFAULT_TYPE,motion:!0},{});class dO extends u().PureComponent{render(){const{type:e}=this.props;return u().createElement(Ze.Consumer,null,(t=>{let{timeZone:n}=t;return u().createElement(Bt,{componentName:"TimePicker"},((t,r,i)=>u().createElement(uO,Object.assign({timeZone:n,placeholder:a()(t,["placeholder",e])},this.props,{locale:t,localeCode:r,dateFnsLocale:i}))))}))}}dO.propTypes=uO.propTypes,dO.__SemiComponentName__="TimePicker",dO.defaultProps=Xe(dO.__SemiComponentName__,uO.defaultProps);class pO extends c{constructor(e){super(Object.assign(Object.assign({},pO.defaultAdapter),e)),this.handleMouseInSideChange=e=>{this._adapter.handleMouseInSideChange(e)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map((e=>{let{id:t}=e;return t})).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let n=this._adapter.getState("list");n=n.map((n=>n.id===e?Object.assign(Object.assign({},n),t):n));const r=n.filter((t=>t.id===e));this._adapter.updateToast(n,[],r)}removeToast(e){let t=this._adapter.getState("list");const n=[];t=t.filter((t=>t.id!==e||(n.push(t),!1))),this._adapter.updateToast(t,n,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const fO=`${E}-toast`,mO={PREFIX:fO,WRAPPER:`${fO}-wrapper`,LIST:`${fO}-list`},gO={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]};class yO extends c{constructor(e){super(Object.assign(Object.assign({},yO.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Kn()(e)&&(this._timer=setTimeout((()=>{this.close()}),1e3*e))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const vO=mO.PREFIX;class bO extends f{constructor(e){super(e),this.toastEle=u().createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new yO(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,n={warning:u().createElement(Ni,null),success:u().createElement(Mi,null),info:u().createElement(Fi,null),error:u().createElement(Li,null)}[e],r="large",i=x()(`${vO}-icon`,`${vO}-icon-${e}`);return t?Ue(t)?u().cloneElement(t,{size:r,className:`${vO}-icon`}):t:e&&n?u().cloneElement(n,{size:r,className:i}):null}render(){const{content:e,type:t,theme:n,showClose:r,textMaxWidth:i,className:s,style:a}=this.props,o=this.props.direction||this.context.direction,l=x()(vO,s,{[`${vO}-${t}`]:!0,[`${vO}-${n}`]:"light"===n,[`${vO}-rtl`]:"rtl"===o}),c={};c.maxWidth=i;const h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,d=u().createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:l,style:Object.assign(Object.assign({},a),{transform:`translate3d(0,0,${-10*h}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},u().createElement("div",{className:`${vO}-content`},this.renderIcon(),u().createElement("span",{className:`${vO}-content-text`,style:c,"x-semi-prop":"content"},e),r&&u().createElement("div",{className:`${vO}-close-button`},u().createElement(bi,{onClick:e=>this.close(e),type:"tertiary",icon:u().createElement(Ri,{"x-semi-prop":"icon"}),theme:"borderless",size:"small"}))));if(this.props.stack){const e=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return u().createElement("div",{className:`${vO}-zero-height-wrapper`,style:{height:e}},d)}return d}}bO.contextType=Ze,bO.propTypes={onClose:C().func,content:C().node,close:C().func,duration:C().number,theme:C().oneOf(gO.themes),type:C().oneOf(gO.types),textMaxWidth:C().oneOfType([C().string,C().number]),style:C().object,className:C().string,showClose:C().bool,stack:C().bool,stackExpanded:C().bool,icon:C().node,direction:C().oneOf(gO.directions)},bO.__SemiComponentName__="Toast",bO.defaultProps=Xe(bO.__SemiComponentName__,{onClose:i(),content:"",close:i(),duration:3,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"});const xO=bO;__webpack_require__("36if");var wO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const CO=(e,t)=>{var{afterClose:n}=e,r=wO(e,["afterClose"]);const[i,s]=(0,h.useState)(!0);return u().useImperativeHandle(t,(()=>({close:()=>{s(!1)}}))),(0,h.useEffect)((()=>{i||n(r.id)}),[i]),i?u().createElement(xO,Object.assign({},r,{close:()=>{s(!1)}})):null},EO=u().forwardRef(CO),SO={motion:!0,zIndex:1010,duration:3};function _O(){const[e,t]=function(){const[e,t]=u().useState([]);return[e,function(e,n){return t((t=>[{element:e,config:n},...t])),e=>{t((t=>t.filter((t=>{let{config:n}=t;return n.id!==e}))))}}]}(),n=(0,h.useRef)(new Map),r=e=>{const r=Ie("semi_toast_"),s=Object.assign(Object.assign({},e),{id:r});let a;const o=u().createElement(EO,Object.assign({},s,{key:r,afterClose:e=>a(e),ref:e=>{var t;n.current.set(r,{close:null!==(t=null==e?void 0:e.close)&&void 0!==t?t:i()})}}));return a=t(o,Object.assign({},s)),r};return[{success:e=>r(Object.assign(Object.assign(Object.assign({},SO),e),{type:"success"})),info:e=>r(Object.assign(Object.assign(Object.assign({},SO),e),{type:"info"})),error:e=>r(Object.assign(Object.assign(Object.assign({},SO),e),{type:"error"})),warning:e=>r(Object.assign(Object.assign(Object.assign({},SO),e),{type:"warning"})),open:e=>r(Object.assign(Object.assign(Object.assign({},SO),e),{type:"default"})),close:e=>(e=>{var t;const{close:r}=null!==(t=n.current.get(e))&&void 0!==t?t:{};null==r||r()})(e)},u().createElement(u().Fragment,null,Array.isArray(e)&&e.length?u().createElement(u().Fragment,null,e.map((e=>e.element))):null)]}const kO=()=>{var e;return e=class e extends f{constructor(e){super(e),this.stack=!1,this.innerWrapperRef=u().createRef(),this.handleMouseEnter=e=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=e=>{var t;if(this.stack){(null===(t=this.foundation.getInputWrapperRect())||void 0===t?void 0:t.height)&&this.foundation.handleMouseInSideChange(!1)}},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new pO(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(e,t,n)=>{this.setState({list:e,removedItems:t,updatedItems:n})},handleMouseInSideChange:e=>{this.setState({mouseInSide:e})},getInputWrapperRect:()=>{var e;return null===(e=this.innerWrapperRef.current)||void 0===e?void 0:e.getBoundingClientRect()}})}static create(t){var n;const r=null!==(n=t.id)&&void 0!==n?n:Ie("toast");if(e.ref){const n=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map((e=>{e in t&&(n.style[e]="number"==typeof t[e]?`${t[e]}px`:t[e])})),Boolean(t.stack)!==e.ref.stack&&(e.ref.stack=Boolean(t.stack)),e.ref.has(r)?e.ref.update(r,Object.assign(Object.assign({},t),{id:r})):e.ref.add(Object.assign(Object.assign({},t),{id:r}))}else{const n=document.createElement("div");if(this.wrapperId||(this.wrapperId=Ie("toast-wrapper").slice(0,26)),n.className=mO.WRAPPER,n.id=this.wrapperId,n.style.zIndex=String("number"==typeof t.zIndex?t.zIndex:e.defaultOpts.zIndex),["top","left","bottom","right"].map((r=>{if(r in e.defaultOpts||r in t){const i=t[r]?t[r]:e.defaultOpts[r];n.style[r]="number"==typeof i?`${i}px`:i}})),e.defaultOpts.getPopupContainer){e.defaultOpts.getPopupContainer().appendChild(n)}else document.body.appendChild(n);ge().render(u().createElement(e,{ref:t=>e.ref=t}),n,(()=>{e.ref.add(Object.assign(Object.assign({},t),{id:r})),e.ref.stack=Boolean(t.stack)}))}return r}static close(t){e.ref&&e.ref.remove(t)}static destroyAll(){if(e.ref){e.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ge().unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),e.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return"string"==typeof t&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},e.defaultOpts),t),{type:"info"}))}static warning(t){return"string"==typeof t&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},e.defaultOpts),t),{type:"warning"}))}static error(t){return"string"==typeof t&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},e.defaultOpts),t),{type:"error"}))}static success(t){return"string"==typeof t&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},e.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach((n=>{n in t&&(e.defaultOpts[n]=t[n])})),"string"==typeof t.theme&&gO.themes.includes(t.theme)&&(e.defaultOpts.theme=t.theme),"number"==typeof t.zIndex&&(e.defaultOpts.zIndex=t.zIndex),"number"==typeof t.duration&&(e.defaultOpts.duration=t.duration),"function"==typeof t.getPopupContainer&&(e.defaultOpts.getPopupContainer=t.getPopupContainer)}has(e){return this.foundation.hasToast(e)}add(e){return this.foundation.addToast(e)}update(e,t){return this.foundation.updateToast(e,t)}remove(e){return this.foundation.removeToast(e)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:e}=this.state;const{removedItems:t,updatedItems:n}=this.state;e=Array.from(new Set([...e,...t]));const r=n.map((e=>{let{id:t}=e;return t})),i=e=>{var t;(null===(t=null==e?void 0:e.foundation)||void 0===t?void 0:t._id)&&r.includes(e.foundation._id)&&e.foundation.restartCloseTimer()};return u().createElement(u().Fragment,null,u().createElement("div",{className:x()({[`${mO.PREFIX}-innerWrapper`]:!0,[`${mO.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},e.map(((n,r)=>{const s=void 0!==t.find((e=>e.id===n.id));return u().createElement(ot,{key:n.id,motion:n.motion,animationState:s?"leave":"enter",startClassName:s?`${mO.PREFIX}-animation-hide`:`${mO.PREFIX}-animation-show`},(t=>{let{animationClassName:a,animationEventsNeedBind:o,isAnimating:l}=t;return s&&!l?null:u().createElement(xO,Object.assign({},n,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:e.length,index:r},className:x()({[n.className]:Boolean(n.className),[a]:!0})},o,{style:Object.assign({},n.style),close:e=>this.remove(e),ref:i}))}))}))))}},e.defaultOpts={motion:!0,zIndex:1010,content:""},e.propTypes={content:C().node,duration:C().number,onClose:C().func,icon:C().node,direction:C().oneOf(gO.directions),stack:C().bool},e.defaultProps={},e};class PO{static create(e){const t=kO();return t.useToast=_O,e&&t.config(e),t}}const OO=PO.create();class TO extends c{constructor(e){super(Object.assign({},e)),this.clearDragState=()=>{this._adapter.updateState({dragOverNodeKey:"",dragging:!1})}}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motion")}_isDisabled(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return!le()(this.getProp("expandedKeys"))}_isLoadControlled(){return!le()(this.getProp("loadedKeys"))}_isFilterable(){return Boolean(this.getProp("filterTreeNode"))}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return Boolean(e)&&t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:n=[],checkedKeys:r=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:s=new Set([]),keyEntities:a={},filteredKeys:o=new Set([]),inputValue:l="",loadedKeys:c=new Set([]),loadingKeys:h=new Set([]),filteredExpandedKeys:u=new Set([]),disabledKeys:d=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:f}=this.getProps(),m=a[e];if(!m)return null;let g=!1,y=!1;"related"===f?(g=r.has(e),y=i.has(e)):"unRelated"===f&&(g=s.has(e),y=!1);const v={eventKey:e,expanded:Boolean(l)?u.has(e):t.has(e),selected:n.includes(e),checked:g,halfChecked:y,pos:String(m?m.pos:""),level:m.level,filtered:o.has(e),loading:h.has(e)&&!c.has(e),loaded:c.has(e),keyword:l,treeNodeFilterProp:p};return this.getProp("disableStrictly")&&d.has(e)&&(v.disabled=!0),v}notifyJsonChange(e,t){const n=this.getProp("treeDataSimpleJson"),r=(i=e,Array.isArray(i)?i:[i]).map((e=>e.replace("-",".")));var i;const s=Pl()(n,r);this._adapter.notifyChange(s)}constructDataForValue(e){const{keyMaps:t}=this.getProps(),n=a()(t,"key","key"),r=a()(t,"label","label");return{[n]:e,[r]:e}}findDataForValue(e){const{value:t,defaultValue:n,keyMaps:r}=this.getProps(),i=a()(r,"value","value"),s=a()(r,"key","key");let o=[];return t?o=Array.isArray(t)?t:[t]:n&&(o=Array.isArray(n)?n:[n]),o.find((t=>t[i]===e||t[s]===e))}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}notifyMultipleChange(e,t){const{keyEntities:n}=this.getStates(),{leafOnly:r,checkRelation:i,keyMaps:s,autoMergeValue:a}=this.getProps();let o,l=[];"related"===i?l=a?Ul(e,n,r,!0):e:"unRelated"===i&&(l=e);const c=l.map((e=>n[e]?n[e].data:this.getDataForKeyNotInKeyEntities(e)));o=this.getProp("onChangeWithObject")?c:Xl(c,s),this._adapter.notifyChange(o)}notifyChange(e,t){const n=this._isMultiple(),{keyMaps:r}=this.getProps(),{keyEntities:i}=this.getStates();if(this.getProp("treeDataSimpleJson"))this.notifyJsonChange(e,t);else if(n)this.notifyMultipleChange(e,t);else{let t;if(this.getProp("onChangeWithObject"))t=a()(i,e).data;else{const{data:n}=a()(i,e);t=Xl(n,r)}this._adapter.notifyChange(t)}}handleInputChange(e){this._adapter.updateInputValue(e);const{expandedKeys:t,selectedKeys:n,keyEntities:r,treeData:i}=this.getStates(),{showFilteredOnly:s,filterTreeNode:o,treeNodeFilterProp:l,keyMaps:c}=this.getProps(),h="label"!==l?l:a()(c,"label","label");let u=[],d=[],p=[],f=new Set([]);if(e){u=Object.values(r).filter((t=>Kl(e,t.data,o,h))).map((e=>e.key)),d=Vl(u,r,!1);const t=Ll(u,r,!0);f=new Set([...t,...d]),p=Nl(i,new Set(d),c,s&&f)}else d=Vl(n,r),d.forEach((e=>t.add(e))),p=Nl(i,t,c);const m=new Set(d);this._adapter.notifySearch(e,Array.from(m)),this._adapter.updateState({expandedKeys:t,flattenNodes:p,motionKeys:new Set([]),filteredKeys:new Set(u),filteredExpandedKeys:m,filteredShownKeys:f})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleNodeRightClick(e,t){this._adapter.notifyRightClick(e,t.data)}handleNodeDoubleClick(e,t){this._adapter.notifyDoubleClick(e,t.data)}handleSingleSelect(e,t){let n=[...this.getState("selectedKeys")];const{selected:r,eventKey:i,data:s}=t,a=!r;this._adapter.notifySelect(i,!0,s),a&&(n.includes(i)||(n=[i],this.notifyChange(i,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:n})))}calcCheckedKeys(e,t){const{keyEntities:n}=this.getStates(),r=new Set(this.getState("checkedKeys")),i=new Set(this.getState("halfCheckedKeys"));return t?Gl(e,n,r,i):ql(e,n,r,i)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:n,keyEntities:r,disabledKeys:i}=this.getStates(),s=Ul(Ll([t],r,!1),r,!0),a=s.some((e=>i.has(e)));if(!a)return e;const o=s.filter((e=>!i.has(e))),l=o.every((e=>n.has(e)));return!l}calcNonDisabledCheckedKeys(e,t){const{keyEntities:n,disabledKeys:r}=this.getStates(),i=new Set(this.getState("checkedKeys")),s=Ul(Ll([e],n,!1),n,!0),a=s.some((e=>r.has(e)));if(!a)return this.calcCheckedKeys(e,t);const o=s.filter((e=>!r.has(e)));return $l(t?[...o,...i]:_l()(Ul([...i],n,!0,!0),o),n)}handleMultipleSelect(e,t){const{disableStrictly:n,checkRelation:r}=this.getProps(),{realCheckedKeys:i}=this.getStates(),{checked:s,eventKey:a,data:o}=t;if("related"===r){const t=n?this.calcCheckedStatus(!s,a):!s,{checkedKeys:r,halfCheckedKeys:i}=n?this.calcNonDisabledCheckedKeys(a,t):this.calcCheckedKeys(a,t);this._adapter.notifySelect(a,t,o),this.notifyChange([...r],e),this._isControlledComponent()||this._adapter.updateState({checkedKeys:r,halfCheckedKeys:i})}else if("unRelated"===r){const t=new Set(i);let n;i.has(a)?(t.delete(a),n=!1):(t.add(a),n=!0),this._adapter.notifySelect(a,n,o),this.notifyChange([...t],e),this._isControlledComponent()||this._adapter.updateState({realCheckedKeys:t})}}setExpandedStatus(e){const{inputValue:t,treeData:n,filteredShownKeys:r,keyEntities:i}=this.getStates(),{keyMaps:s}=this.getProps(),a=Boolean(t),o=this._showFilteredOnly(),l=a?"filteredExpandedKeys":"expandedKeys",c=new Set(this.getState(l));let h="show";const{eventKey:u,expanded:d,data:p}=e;if(d?c.has(u)&&(c.delete(u),h="hide"):c.add(u),this._adapter.cacheFlattenNodes("hide"===h&&this._isAnimated()),!this._isExpandControlled()){const e=Nl(n,c,s,a&&o&&r),t=this._isAnimated()?Wl(u,c,i):[],d={[l]:c,flattenNodes:e,motionKeys:new Set(t),motionType:h};this._adapter.updateState(d)}return{expandedKeys:c,expanded:!d,data:p}}handleNodeExpand(e,t){const{loadData:n}=this.getProps();if(!(n||t.children&&t.children.length))return;const{expandedKeys:r,data:i,expanded:s}=this.setExpandedStatus(t);this._adapter.notifyExpand(r,{expanded:s,node:i})}handleNodeLoad(e,t,n,r){const{loadData:i,onLoad:s}=this.getProps(),{key:a}=n;return!i||e.has(a)||t.has(a)?{}:(i(n).then((()=>{const e=new Set(this.getState("loadedKeys")),t=new Set(this.getState("loadingKeys")),i=e.add(a),o=new Set([...t]);o.delete(a),s&&s(i,n),this._isLoadControlled()||this._adapter.updateState({loadedKeys:i}),this._adapter.setState({loadingKeys:o}),r()})),{loadingKeys:t.add(a)})}getDragEventNodeData(e){return Object.assign(Object.assign({},e.data),Pl()(e,["expanded","pos","children"]))}triggerDragEvent(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=this.getProp(e);i&&i(Object.assign({event:t,node:this.getDragEventNodeData(n)},r))}handleNodeDragStart(e,t){const{keyEntities:n}=this.getStates(),{hideDraggingNode:r,renderDraggingNode:i}=this.getProps(),{eventKey:s,nodeInstance:a,data:o}=t;if(r||i){let t;"function"==typeof i?t=i(a,o):r&&(t=a.cloneNode(!0),t.style.opacity=0),document.body.appendChild(t),e.dataTransfer.setDragImage(t,0,0)}this._adapter.setDragNode(t),this._adapter.updateState({dragging:!0,dragNodesKeys:new Set(tc(s,n))}),this.triggerDragEvent("onDragStart",e,t)}handleNodeDragEnter(e,t,n){const{dragging:r,dragNodesKeys:i}=this.getStates(),{autoExpandWhenDragEnter:s}=this.getProps(),{pos:a,eventKey:o,expanded:l}=t;if(!n||i.has(o))return;const c=ec(e,t);n.eventKey!==o||0!==c?setTimeout((()=>{this._adapter.updateState({dragOverNodeKey:o,dropPosition:c}),s&&!l?(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach((e=>{clearTimeout(this.delayedDragEnterLogic[e])})),this.delayedDragEnterLogic[a]=window.setTimeout((()=>{if(!r)return;const{expandedKeys:n}=this.setExpandedStatus(t);this.triggerDragEvent("onDragEnter",e,t,{expandedKeys:[...n]})}),400)):this.triggerDragEvent("onDragEnter",e,t)}),0):this._adapter.updateState({dragOverNodeKey:"",dropPosition:null})}handleNodeDragOver(e,t,n){const{dropPosition:r,dragNodesKeys:i,dragOverNodeKey:s}=this.getStates(),{eventKey:a}=t;if(!i.has(a)){if(n&&a===s){const n=ec(e,t);if(r===n)return;this._adapter.updateState({dropPosition:n})}this.triggerDragEvent("onDragOver",e,t)}}handleNodeDragLeave(e,t){this._adapter.updateState({dragOverNodeKey:""}),this.triggerDragEvent("onDragLeave",e,t)}handleNodeDragEnd(e,t){this.clearDragState(),this.triggerDragEvent("onDragEnd",e,t),this._adapter.setDragNode(null)}handleNodeDrop(e,t,n){const{dropPosition:r,dragNodesKeys:i}=this.getStates(),{eventKey:s,pos:a}=t;if(this.clearDragState(),i.has(s))return;const o={dragNode:n?this.getDragEventNodeData(n):null,dragNodesKeys:[...i],dropPosition:nc(a,r),dropToGap:0!==r};this.triggerDragEvent("onDrop",e,t,o),this._adapter.setDragNode(null)}}const IO={PREFIX:`${E}-tree`,PREFIX_OPTION:`${E}-tree-option`};function DO(e){return Le()(e,(e=>Kv()(e)&&!e._innerDataTag||u().isValidElement(e)?e:void 0))}const AO=IO.PREFIX;class RO extends h.PureComponent{constructor(e){super(e),this._onResize=e=>{const t=e&&e[1]&&e[1].target;if(t){const e=a()(t,"offsetHeight")||0,n=window.getComputedStyle(t)||{},r=parseInt(a()(n,"paddingTop"),10)||0,i=parseInt(a()(n,"paddingBottom"),10)||0,s=e-r-i;this.state.height!==s&&this.setState({height:e-r-i})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:n}=this.props,{height:r}=this.state;let i=!1;return 0!==r&&"number"==typeof r||(i=!0),u().createElement(bn,{observeParent:!0,onResize:this._onResize},u().createElement("div",{style:{height:n,overflow:"visible"},className:`${AO}-auto-wrapper`},!i&&e({height:r,width:t})))}}RO.propTypes={defaultHeight:C().oneOfType([C().number,C().string]),defaultWidth:C().oneOfType([C().number,C().string])},RO.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const NO=u().createContext(null);const MO=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}),"file");const FO=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}),"folder_open");const LO=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),h.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}),"folder"),jO=e=>{let{prefixcls:t,level:n,isEnd:r,showLine:i}=e;const s=`${t}-indent-unit`,a=[];for(let e=0;e<n;e+=1)a.push(h.createElement("span",{key:e,className:x()(s,{[`${s}-end`]:r[e]})}));return h.createElement("span",{"aria-hidden":"true",className:x()(`${t}-indent`,{[`${t}-indent-show-line`]:i})},a)},VO=h.memo(jO);var $O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const BO=IO.PREFIX_OPTION;class zO extends h.PureComponent{constructor(e){super(e),this.onSelect=e=>{const{onNodeSelect:t}=this.context;t(e,this.props)},this.onExpand=e=>{const{onNodeExpand:t}=this.context;e&&e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),t(e,this.props)},this.onCheck=e=>{var t,n;if(this.isDisabled())return;const{onNodeCheck:r}=this.context;e.stopPropagation(),null===(n=null===(t=e.nativeEvent)||void 0===t?void 0:t.stopImmediatePropagation)||void 0===n||n.call(t),r(e,this.props)},this.handleCheckEnterPress=e=>{Jt(e)&&this.onCheck(e)},this.onContextMenu=e=>{const{onNodeRightClick:t}=this.context;t(e,this.props)},this.onClick=e=>{const{expandAction:t}=this.context;"doubleClick"!==t?(this.onSelect(e),"click"===t&&this.onExpand(e)):this.debounceSelect(e)},this.handleliEnterPress=e=>{Jt(e)&&this.onClick(e)},this.onDoubleClick=e=>{const{expandAction:t,onNodeDoubleClick:n}=this.context;e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),J()(n)&&n(e,this.props),"doubleClick"===t&&this.onExpand(e)},this.onDragStart=e=>{const{onNodeDragStart:t}=this.context;e.stopPropagation(),t(e,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{e.dataTransfer.setData("text/plain","")}catch(e){}},this.onDragEnter=e=>{const{onNodeDragEnter:t}=this.context;e.preventDefault(),e.stopPropagation(),t(e,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=e=>{const{onNodeDragOver:t}=this.context;e.preventDefault(),e.stopPropagation(),t(e,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=e=>{const{onNodeDragLeave:t}=this.context;e.stopPropagation(),t(e,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=e=>{const{onNodeDragEnd:t}=this.context;e.stopPropagation(),t(e,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=e=>{const{onNodeDrop:t}=this.context;e.preventDefault(),e.stopPropagation(),t(e,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:e}=this.props;return e||[]},this.isLeaf=()=>{const{isLeaf:e,loaded:t}=this.props,{loadData:n}=this.context,r=0!==this.getNodeChildren().length;return!1!==e&&(e||!n&&!r||n&&t&&!r)},this.isDisabled=()=>{const{disabled:e}=this.props,{treeDisabled:t}=this.context;return!1!==e&&Boolean(t||e)},this.renderSwitcher=()=>this.isLeaf()?u().createElement("span",{className:x()(`${BO}-switcher`)},u().createElement("span",{className:`${BO}-switcher-leaf-line`})):null,this.renderRealLabel=()=>{const{renderLabel:e}=this.context,{label:t,keyword:n,data:r,filtered:i,treeNodeFilterProp:s}=this.props;return J()(e)?e(t,r):ne()(t)&&i&&n?He({sourceString:t,searchWords:[n],option:{highlightTag:"span",highlightClassName:`${BO}-highlight`}}):t},this.setRef=e=>{this.refNode=e},this.state={},this.debounceSelect=v()(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:n,showLine:r}=this.props;return t?u().createElement(tr,{wrapperClassName:`${BO}-spin-icon`}):e?u().createElement(vk,{role:"button","aria-label":(n?"Expand":"Collapse")+" the tree item",className:`${BO}-expand-icon`,size:"small",onClick:this.onExpand}):r?this.renderSwitcher():u().createElement("span",{className:`${BO}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:n}=this.props,r=this.isDisabled();return u().createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},u().createElement(Nc,{"aria-label":"Toggle the checked state of checkbox",value:n,indeterminate:t,checked:e,disabled:Boolean(r)}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:n,icon:r,data:i}=this.props;if(r)return r;if(t)return"function"==typeof t?t(this.props):t;if(e){return!this.isLeaf()?n?u().createElement(FO,{className:`${BO}-item-icon`}):u().createElement(LO,{className:`${BO}-item-icon`}):u().createElement(MO,{className:`${BO}-item-icon`})}return null}renderEmptyNode(){const{emptyContent:e}=this.props,t=x()(BO,{[`${BO}-empty`]:!0});return u().createElement("ul",{className:t},u().createElement("li",{className:`${BO}-label ${BO}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:n,selected:r,checked:i,halfChecked:s,loading:o,active:l,level:c,empty:h,filtered:d,treeNodeFilterProp:p,display:f,style:m,isEnd:g,showLine:y}=e,v=$O(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style","isEnd","showLine"]);if(h)return this.renderEmptyNode();const{multiple:b,draggable:w,renderFullLabel:C,dragOverNodeKey:E,dropPosition:S,labelEllipsis:_}=this.context,k=g[g.length-1],P=this.isDisabled(),O=E===t&&0===S,T=E===t&&-1===S,I=E===t&&1===S,D=x()(BO,{[`${BO}-level-${c+1}`]:!0,[`${BO}-fullLabel-level-${c+1}`]:C,[`${BO}-collapsed`]:!n,[`${BO}-disabled`]:Boolean(P),[`${BO}-selected`]:r,[`${BO}-active`]:!b&&l,[`${BO}-ellipsis`]:_,[`${BO}-drag-over`]:!P&&O,[`${BO}-draggable`]:!P&&w&&!C,[`${BO}-fullLabel-draggable`]:!P&&w&&C,[`${BO}-fullLabel-drag-over-gap-top`]:!P&&T&&C,[`${BO}-fullLabel-drag-over-gap-bottom`]:!P&&I&&C,[`${BO}-tree-node-last-leaf`]:k}),A={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:D,onExpand:this.onExpand,data:v.data,level:c,onCheck:this.onCheck,style:m,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:s},expandStatus:{expanded:n,loading:o},filtered:d,searchWord:v.keyword},R={onDoubleClick:this.onDoubleClick,onDragStart:w?this.onDragStart:void 0,onDragEnter:w?this.onDragEnter:void 0,onDragOver:w?this.onDragOver:void 0,onDragLeave:w?this.onDragLeave:void 0,onDrop:w?this.onDrop:void 0,onDragEnd:w?this.onDragEnd:void 0,draggable:!P&&w||void 0};if(C){const e=C(Object.assign({},A));return w?u().cloneElement(e,Object.assign({ref:this.setRef},R)):de()(m)?e:u().cloneElement(e,{style:Object.assign(Object.assign({},a()(e,["props","style"])),m)})}const N=x()(`${BO}-label`,{[`${BO}-drag-over-gap-top`]:!P&&T,[`${BO}-drag-over-gap-bottom`]:!P&&I}),M=a()(v,["data","children","length"]),F=ne()(v.pos)?Number(v.pos.split("-")[c+1])+1:1;return u().createElement("li",Object.assign({className:D,role:"treeitem","aria-disabled":P,"aria-checked":i,"aria-selected":r,"aria-setsize":M,"aria-posinset":F,"aria-expanded":n,"aria-level":c+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:m},R),u().createElement(VO,{showLine:y,prefixcls:BO,level:c,isEnd:g}),this.renderArrow(),u().createElement("span",{className:N},b?this.renderCheckbox():null,this.renderIcon(),u().createElement("span",{className:`${BO}-label-text`},this.renderRealLabel())))}}zO.contextType=NO,zO.propTypes={expanded:C().bool,selected:C().bool,checked:C().bool,halfChecked:C().bool,active:C().bool,disabled:C().bool,loaded:C().bool,loading:C().bool,isLeaf:C().bool,pos:C().string,children:C().oneOfType([C().array,C().object]),icon:C().node,directory:C().bool,keyword:C().string,treeNodeFilterProp:C().string,selectedKey:C().string,motionKey:C().oneOfType([C().string,C().arrayOf(C().string)]),isEnd:C().arrayOf(C().bool),showLine:C().bool},zO.defaultProps={selectedKey:"",motionKey:""};var HO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const KO=function(e){const{open:t,children:n}=e,r=HO(e,["open","children"]),[i,s]=(0,h.useState)(e.open);return(0,h.useEffect)((()=>{setTimeout((()=>{s(!e.open)}),0)}),[]),u().createElement(Kp,Object.assign({},r,{isOpen:i}),n)},UO=e=>e.key;class WO extends h.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{"function"==typeof this.props.onMotionEnd&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:n=[],motionKeys:r,motionType:i,flattenList:s=[]}=e,a=!he()(t.cachedMotionKeys,r)||!he()(t.cachedData.map((e=>e.key)),n.map((e=>e.key))),o=[...r];if(!a||!o.length)return null;const l=[],c=[];let h=0,u={};return("hide"===i&&s?s:n).forEach(((e,t)=>{const n=UO(e);r.has(n)?(c.push(e),n===o[0]&&(h=t)):l.push(e)})),l.splice(h,0,c),u={transitionNodes:l,cachedData:n,cachedMotionKeys:r,cachedMotionType:i},u}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:n,renderTreeNode:r}=this.props,{transitionNodes:i}=this.state,s=(i.length&&!n?i:e).map((e=>{const n=Array.isArray(e);if(n&&!e.length)return null;if(n&&e.length){const n=UO(e[0]);return u().createElement(KO,{open:"hide"===t,duration:200,motion:Boolean(t),key:`motion-${n}`,onMotionEnd:this.onMotionEnd},e.map((e=>r(e))))}return r(e)}));return s}}WO.contextType=NO;__webpack_require__("+Ta2");var GO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const qO=IO.PREFIX;class YO extends f{constructor(e){super(e),this.search=e=>{this.foundation.handleInputChange(e)},this.scrollTo=e=>{var t;const{key:n,align:r="center"}=e,{flattenNodes:i}=this.state;if(n){const e=null==i?void 0:i.findIndex((e=>e.key===n));e>=0&&(null===(t=this.virtualizedListRef.current)||void 0===t||t.scrollToItem(e,r))}},this.renderEmpty=()=>{const{emptyContent:e}=this.props;return e?u().createElement(zO,{empty:!0,emptyContent:this.props.emptyContent}):u().createElement(Bt,{componentName:"Tree"},(e=>u().createElement(zO,{empty:!0,emptyContent:a()(e,"emptyText")})))},this.onNodeSelect=(e,t)=>{this.foundation.handleNodeSelect(e,t)},this.onNodeLoad=e=>new Promise((t=>{this.setState((n=>{let{loadedKeys:r=new Set([]),loadingKeys:i=new Set([])}=n;return this.foundation.handleNodeLoad(r,i,e,t)}))})),this.onNodeCheck=(e,t)=>{this.foundation.handleNodeSelect(e,t)},this.onNodeExpand=(e,t)=>{this.foundation.handleNodeExpand(e,t)},this.onNodeRightClick=(e,t)=>{this.foundation.handleNodeRightClick(e,t)},this.onNodeDoubleClick=(e,t)=>{this.foundation.handleNodeDoubleClick(e,t)},this.onNodeDragStart=(e,t)=>{this.foundation.handleNodeDragStart(e,t)},this.onNodeDragEnter=(e,t)=>{this.foundation.handleNodeDragEnter(e,t,this.dragNode)},this.onNodeDragOver=(e,t)=>{this.foundation.handleNodeDragOver(e,t,this.dragNode)},this.onNodeDragLeave=(e,t)=>{this.foundation.handleNodeDragLeave(e,t)},this.onNodeDragEnd=(e,t)=>{this.foundation.handleNodeDragEnd(e,t)},this.onNodeDrop=(e,t)=>{this.foundation.handleNodeDrop(e,t,this.dragNode)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:e,selectedKeys:t,checkedKeys:n,halfCheckedKeys:r,keyEntities:i,filteredKeys:s}=this.state;return{expandedKeys:e||new Set,selectedKeys:t||[],checkedKeys:n||new Set,halfCheckedKeys:r||new Set,filteredKeys:s||new Set,keyEntities:i}},this.getTreeNodeKey=e=>{const{data:t}=e,{key:n}=t;return n},this.renderTreeNode=(e,t,n)=>{const{data:r,key:i}=e,s=this.foundation.getTreeNodeProps(i);if(!s)return null;const{keyMaps:o,showLine:l}=this.props,c=Pl()(e,["key","label","disabled","isLeaf","icon","isEnd"]),h=r[a()(o,"children","children")];return!le()(h)&&(c.children=h),u().createElement(zO,Object.assign({},s,r,c,{showLine:l,data:r,style:de()(n)?{}:n}))},this.itemKey=(e,t)=>t[e].key,this.option=e=>{let{index:t,style:n,data:r}=e;return this.renderTreeNode(r[t],t,n)},this.state={inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,loadedKeys:new Set,loadingKeys:new Set,cachedFlattenNodes:void 0,cachedKeyValuePairs:{},disabledKeys:new Set,dragging:!1,dragNodesKeys:new Set,dragOverNodeKey:null,dropPosition:null},this.inputRef=u().createRef(),this.optionsRef=u().createRef(),this.foundation=new TO(this.adapter),this.dragNode=null,this.virtualizedListRef=u().createRef()}static getDerivedStateFromProps(e,t){var n;const{prevProps:r}=t,{keyMaps:i}=e;let s,a=t.keyEntities||{},o=t.cachedKeyValuePairs||{};const l=Boolean(e.filterTreeNode&&t.inputValue&&t.inputValue.length),c={prevProps:e},h="expandedKeys"in e,u=t=>{const n=!r&&t in e,i=r&&!he()(r[t],e[t]);return n||i},d=u("treeData"),p=u("treeDataSimpleJson");if(d||e.draggable&&(()=>{const t=!r&&"treeData"in e,n=r&&r.treeData!==e.treeData;return t||n})()){s=e.treeData,c.treeData=s;const t=Ml(s,i);c.keyEntities=Object.assign({},t.keyEntities),a=c.keyEntities,c.cachedKeyValuePairs=Object.assign({},t.valueEntities),o=c.cachedKeyValuePairs}else if(p){s=function(e){const t=[],n=(e,t,r,i)=>{const s=[...r,e],a={key:s.join("-"),label:e,value:t};if(z()(t)){const e=[];Object.entries(t).forEach((t=>{n(t[0],t[1],s,e)})),a.children=e}i.push(a)};return Object.entries(e).forEach((e=>n(e[0],e[1],[],t))),t}(e.treeDataSimpleJson),c.treeData=s;const t=Ml(s,i);c.keyEntities=Object.assign({},t.keyEntities),a=c.keyEntities,c.cachedKeyValuePairs=Object.assign({},t.valueEntities),o=c.cachedKeyValuePairs}s&&e.motion&&r&&e.motion&&(c.motionKeys=new Set([]),c.motionType=null);const f=p||d,m=f&&e.expandAll;if(l){let n;if(s&&(n=Yl({treeData:s,inputValue:t.inputValue,filterTreeNode:e.filterTreeNode,filterProps:e.treeNodeFilterProp,showFilteredOnly:e.showFilteredOnly,keyEntities:c.keyEntities,prevExpandedKeys:[...t.filteredExpandedKeys],keyMaps:i}),c.flattenNodes=n.flattenNodes,c.motionKeys=new Set([]),c.filteredKeys=n.filteredKeys,c.filteredShownKeys=n.filteredShownKeys,c.filteredExpandedKeys=n.filteredExpandedKeys),e.expandedKeys){if(c.filteredExpandedKeys=Bl(e.expandedKeys,a,e.autoExpandParent||!r),r&&e.motion){const n=t?t.filteredExpandedKeys:new Set([]);if(!s){const r=Hl(n,c.filteredExpandedKeys,a);let{motionKeys:i}=r;const{motionType:s}=r;e.showFilteredOnly&&(i=i.filter((e=>t.filteredShownKeys.has(e)))),"hide"===s&&(c.cachedFlattenNodes=DO(t.flattenNodes)),c.motionKeys=new Set(i),c.motionType=s}}c.flattenNodes=Nl(s||t.treeData,c.filteredExpandedKeys||t.filteredExpandedKeys,i,e.showFilteredOnly&&t.filteredShownKeys)}}else{if(u("expandedKeys")||r&&u("autoExpandParent")){if(c.expandedKeys=Bl(e.expandedKeys,a,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:e,motionType:n}=Hl(t.expandedKeys,c.expandedKeys,a);c.motionKeys=new Set(e),c.motionType=n,"hide"===n&&(c.cachedFlattenNodes=DO(t.flattenNodes))}}else!r&&(e.defaultExpandAll||e.expandAll)||m?c.expandedKeys=new Set(Object.keys(a)):!r&&e.defaultExpandedKeys?c.expandedKeys=Bl(e.defaultExpandedKeys,a):!r&&e.defaultValue?c.expandedKeys=zl(e.defaultValue,a,e.multiple,o):!r&&e.value?c.expandedKeys=zl(e.value,a,e.multiple,o):!h&&f&&e.value&&(t.treeData&&(null===(n=t.treeData)||void 0===n?void 0:n.length)>0&&e.loadData||(c.expandedKeys=zl(e.value,a,e.multiple,o)));if(c.expandedKeys||delete c.expandedKeys,s||c.expandedKeys){const e=Nl(s||t.treeData,c.expandedKeys||t.expandedKeys,i);c.flattenNodes=e}}const g=e.onChangeWithObject,y=e.multiple;if(y){let n;if(u("value")?n=Fl(Zl(e.value,g,i),o,y):!r&&e.defaultValue?n=Fl(Zl(e.defaultValue,g,i),o,y):s&&(n=e.value?Fl(Zl(e.value,g,i)||[],o,y):Jl("related"===e.checkRelation?t.checkedKeys:t.realCheckedKeys,a)),n)if("unRelated"===e.checkRelation)c.realCheckedKeys=new Set(n);else if("related"===e.checkRelation){const{checkedKeys:e,halfCheckedKeys:t}=$l(n,a);c.checkedKeys=e,c.halfCheckedKeys=t}}else u("value")?c.selectedKeys=Fl(Zl(e.value,g,i),o,y):!r&&e.defaultValue?c.selectedKeys=Fl(Zl(e.defaultValue,g,i),o,y):s&&e.value&&(c.selectedKeys=Fl(Zl(e.value,g,i)||"",o,y));return u("loadedKeys")&&(c.loadedKeys=new Set(e.loadedKeys)),s&&e.disableStrictly&&"related"===e.checkRelation&&(c.disabledKeys=Ql(a,i)),c}get adapter(){const e={updateInputValue:e=>{this.setState({inputValue:e})},focusInput:()=>{const{preventScroll:e}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:e})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{updateState:e=>{this.setState(Object.assign({},e))},notifyExpand:(e,t)=>{let{expanded:n,node:r}=t;this.props.onExpand&&this.props.onExpand([...e],{expanded:n,node:r}),n&&this.props.loadData&&this.onNodeLoad(r)},notifySelect:(e,t,n)=>{this.props.onSelect&&this.props.onSelect(e,t,n)},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)},notifySearch:(e,t)=>{this.props.onSearch&&this.props.onSearch(e,t)},notifyRightClick:(e,t)=>{this.props.onContextMenu&&this.props.onContextMenu(e,t)},notifyDoubleClick:(e,t)=>{this.props.onDoubleClick&&this.props.onDoubleClick(e,t)},cacheFlattenNodes:e=>{this.setState({cachedFlattenNodes:e?DO(this.state.flattenNodes):void 0})},setDragNode:e=>{this.dragNode=e}})}renderInput(){const{searchClassName:e,searchStyle:t,searchRender:n,searchPlaceholder:r,showClear:i}=this.props;if(!1===n)return null;const s=x()(`${qO}-input`),{inputValue:o}=this.state,l={value:o,className:s,onChange:e=>this.search(e),prefix:u().createElement(mE,null),showClear:i,placeholder:r},c=x()(`${qO}-search-wrapper`,e);return u().createElement("div",{className:c,style:t},u().createElement(Bt,{componentName:"Tree"},(e=>(l.placeholder=r||a()(e,"searchPlaceholder"),J()(n)?n(Object.assign({},l)):u().createElement(gr,Object.assign({"aria-label":"Filter Tree",ref:this.inputRef},l))))))}renderNodeList(){const{flattenNodes:e,cachedFlattenNodes:t,motionKeys:n,motionType:r}=this.state,{virtualize:i,motion:s}=this.props,{direction:a}=this.context;if(!de()(e))return!i||de()(i)?u().createElement(WO,{flattenNodes:e,flattenList:t,motionKeys:s?n:new Set([]),motionType:r,onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode}):u().createElement(RO,{defaultHeight:i.height,defaultWidth:i.width},(t=>{let{height:n,width:r}=t;return u().createElement(ch,{ref:this.virtualizedListRef,itemCount:e.length,itemSize:i.itemSize,height:n,width:r,itemKey:this.itemKey,itemData:e,className:`${qO}-virtual-list`,style:{direction:a}},this.option)}))}render(){const{keyEntities:e,motionKeys:t,motionType:n,inputValue:r,filteredKeys:i,dragOverNodeKey:s,dropPosition:a,checkedKeys:o,realCheckedKeys:l}=this.state,c=this.props,{blockNode:h,className:d,style:p,filterTreeNode:f,disabled:m,icon:g,directory:y,multiple:v,showFilteredOnly:b,showLine:w,motion:C,expandAction:E,loadData:S,renderLabel:_,draggable:k,renderFullLabel:P,labelEllipsis:O,virtualize:T,checkRelation:I}=c,D=GO(c,["blockNode","className","style","filterTreeNode","disabled","icon","directory","multiple","showFilteredOnly","showLine","motion","expandAction","loadData","renderLabel","draggable","renderFullLabel","labelEllipsis","virtualize","checkRelation"]),A=x()(`${qO}-wrapper`,d),R=x()(`${qO}-option-list`,{[`${qO}-option-list-block`]:h}),N=Boolean(r)&&!i.size,M=de()(e)||b&&N,F={role:M?"none":"tree"};return"tree"===F.role&&(F["aria-multiselectable"]=!!v),u().createElement(NO.Provider,{value:{treeDisabled:m,treeIcon:g,motion:C,motionKeys:t,motionType:n,filterTreeNode:f,keyEntities:e,onNodeClick:this.onNodeClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeRightClick:this.onNodeRightClick,onNodeDoubleClick:this.onNodeDoubleClick,renderTreeNode:this.renderTreeNode,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop,expandAction:E,directory:y,multiple:v,showFilteredOnly:b,isSearching:Boolean(r),loadData:S,onNodeLoad:this.onNodeLoad,renderLabel:_,draggable:k,renderFullLabel:P,dragOverNodeKey:s,dropPosition:a,labelEllipsis:void 0===O?T:O}},u().createElement("div",Object.assign({"aria-label":this.props["aria-label"],className:A,style:p},this.getDataAttr(D)),f?this.renderInput():null,u().createElement("div",Object.assign({className:R},F),M?this.renderEmpty():v?u().createElement(jc,{value:Array.from("related"===I?o:l)},this.renderNodeList()):this.renderNodeList())))}}YO.contextType=Ze,YO.propTypes={autoMergeValue:C().bool,blockNode:C().bool,className:C().string,showClear:C().bool,defaultExpandAll:C().bool,defaultExpandedKeys:C().array,defaultValue:C().oneOfType([C().string,C().array]),directory:C().bool,disabled:C().bool,emptyContent:C().node,expandAll:C().bool,expandedKeys:C().array,filterTreeNode:C().oneOfType([C().func,C().bool]),icon:C().node,onChangeWithObject:C().bool,motion:C().bool,multiple:C().bool,onChange:C().func,onExpand:C().func,onSearch:C().func,onSelect:C().func,onContextMenu:C().func,onDoubleClick:C().func,searchClassName:C().string,searchPlaceholder:C().string,searchStyle:C().object,selectedKey:C().string,showFilteredOnly:C().bool,showLine:C().bool,style:C().object,treeData:C().arrayOf(C().shape({key:C().string,value:C().oneOfType([C().string,C().number]),label:C().any,isLeaf:C().bool})),keyMaps:C().object,treeDataSimpleJson:C().object,treeNodeFilterProp:C().string,value:C().oneOfType([C().string,C().number,C().array,C().object]),virtualize:C().object,autoExpandParent:C().bool,expandAction:C().oneOf([!1,"click","doubleClick"]),searchRender:C().oneOfType([C().func,C().bool]),renderLabel:C().func,renderFullLabel:C().func,leafOnly:C().bool,loadedKeys:C().array,loadData:C().func,onLoad:C().func,disableStrictly:C().bool,draggable:C().bool,autoExpandWhenDragEnter:C().bool,hideDraggingNode:C().bool,renderDraggingNode:C().func,onDragEnd:C().func,onDragEnter:C().func,onDragLeave:C().func,onDragOver:C().func,onDragStart:C().func,onDrop:C().func,labelEllipsis:C().bool,checkRelation:C().string,"aria-label":C().string,preventScroll:C().bool},YO.defaultProps={showClear:!0,disabled:!1,blockNode:!0,multiple:!1,filterTreeNode:!1,autoExpandParent:!1,treeNodeFilterProp:"label",defaultExpandAll:!1,expandAll:!1,onChangeWithObject:!1,motion:!0,leafOnly:!1,showFilteredOnly:!1,showLine:!1,expandAction:!1,disableStrictly:!1,draggable:!1,autoExpandWhenDragEnter:!0,checkRelation:"related",autoMergeValue:!0},YO.TreeNode=zO;const XO=YO,ZO={PREFIX:`${E}-tree-select`,PREFIX_TREE:`${E}-tree`,PREFIX_OPTION:`${E}-tree-select-option`},JO=["small","large","default"],QO="dropdown",eT="trigger",tT=$n;class nT extends c{constructor(e){super(Object.assign({},e)),this.handleKeyDown=e=>{if(e.key===Xt){this.getState("isOpen")&&this.close(e)}},this._registerClickOutsideHandler=()=>{this._adapter.registerClickOutsideHandler((e=>{this.handlerTriggerBlur(e),this.close(e)}))},this.clearInputValue=()=>{const{inputValue:e}=this.getStates();e&&this._adapter.updateInputValue("")},this.onClickSingleTriggerSearchItem=e=>{this.focusInput(!0)}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:n}=this.getProps(),r=e&&(t===eT&&n);this._setDropdownWidth();const i=!this._isDisabled();(this.getProp("defaultOpen")||r)&&i&&(this.open(),this._registerClickOutsideHandler()),r&&i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let n;t&&(n=e&&Kn()(e.width)||e&&ne()(e.width)&&!e.width.includes("%")?e.width:this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(n))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return Boolean(e)&&t}findDataForValue(e){const{value:t,defaultValue:n,keyMaps:r}=this.getProps(),i=a()(r,"value","value"),s=a()(r,"key","key");let o=[];return t?o=Array.isArray(t)?t:[t]:n&&(o=Array.isArray(n)?n:[n]),o.find((t=>t[i]===e||t[s]===e))}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:n}=this.getProps(),r=a()(n,"key","key"),i=a()(n,"label",t);return{[r]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:n=[],checkedKeys:r=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:s=new Set([]),keyEntities:a={},filteredKeys:o=new Set([]),inputValue:l="",loadedKeys:c,loadingKeys:h,filteredExpandedKeys:u=new Set([]),disabledKeys:d=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:f}=this.getProps(),m=a[e];if(!m)return null;let g=!1,y=!1;"related"===f?(g=r.has(e),y=i.has(e)):"unRelated"===f&&(g=s.has(e),y=!1);const v={eventKey:e,expanded:Boolean(l)?u.has(e):t.has(e),selected:n.includes(e),checked:g,halfChecked:y,pos:String(m?m.pos:""),level:m.level,filtered:o.has(e),keyword:l,treeNodeFilterProp:p,loading:h.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&d.has(e)&&(v.disabled=!0),v}handleNodeLoad(e,t,n,r){const{loadData:i}=this.getProps(),{key:s}=n;return!i||e.has(s)||t.has(s)?{}:(i(n).then((()=>{const e=new Set(this.getState("loadedKeys")),t=new Set(this.getState("loadingKeys")),i=e.add(s),a=new Set([...t]);a.delete(s),this._adapter.notifyLoad(i,n),this._isLoadControlled()||this._adapter.updateState({loadedKeys:i}),this._adapter.setState({loadingKeys:a}),r()})),{loadingKeys:t.add(s)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:n}=this.getStates(),{leafOnly:r,checkRelation:i,keyMaps:s,autoMergeValue:a}=this.getProps();let o=[];"related"===i?o=a?Ul(e,n,r,!0):e:"unRelated"===i&&(o=e);const l=o.map((e=>n[e]&&n[e].key===e?n[e].data:this.getDataForKeyNotInKeyEntities(e)));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const e=Xl(l,s);this._adapter.notifyChange(e,l,t)}}_notifyChange(e,t){const{keyEntities:n}=this.getStates(),{keyMaps:r}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=le()(e)?e:n[e].data,s=le()(e)?e:Xl(i,r);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(s,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler()}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this.getState("isFocus")&&(this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler())}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:n,inputValue:r,isFocus:i}=this.getStates(),{searchPosition:s,clickTriggerToHide:a}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),n){if("trigger"===s&&r)return;a&&this.close(e)}else this.open()}handleSelectionEnterPress(e){Jt(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:n}=this.getProps(),{inputValue:r,selectedKeys:i}=this.getStates(),s=this._isMultiple(),a=this._isControlledComponent(),o=s?[]:void 0;this._notifyChange(o,e),a||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),n&&t===eT&&""!==r&&(de()(i)?this.handleInputChange(""):this.clearInput()),this._adapter.notifyClear(e)}handleClearEnterPress(e){Jt(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:n,keyMaps:r}=this.getProps(),{keyEntities:i,disabledKeys:s,realCheckedKeys:o}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e);if(!(l[a()(r,"disabled","disabled")]||t&&s.has(e))){if("unRelated"===n){const t=new Set(o);t.delete(e),this._notifyChange([...t],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:t}),this._adapter.rePositionDropdown())}else if("related"===n){const{checkedKeys:t,halfCheckedKeys:n}=this.calcCheckedKeys(e,!1);this._notifyChange([...t],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:t,halfCheckedKeys:n}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:n,keyEntities:r,treeData:i}=this.getStates(),{keyMaps:s}=this.getProps(),a=new Set(t),o=(this._isExpandControlled(),Vl(n,r,!1));o.forEach((e=>a.add(e)));const l=Nl(i,a,s);this._adapter.updateState({expandedKeys:a,flattenNodes:l,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(o),filteredShownKeys:new Set([])}),this._adapter.rePositionDropdown()}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:n,selectedKeys:r,keyEntities:i,treeData:s}=this.getStates(),{showFilteredOnly:o,filterTreeNode:l,treeNodeFilterProp:c,keyMaps:h}=this.getProps(),u="label"!==c?c:a()(h,"label","label"),d=new Set(n);let p=[],f=[],m=[],g=[],y=new Set([]);if(e){const t=Object.values(i).filter((t=>{const{data:n}=t;return Kl(e,n,l,u)}));p=t.map((e=>e.data)),f=t.map((e=>e.key)),m=Vl(f,i,!1);const n=Ll(f,i,!0);y=new Set([...n,...m]),g=Nl(s,new Set(m),h,o&&y)}else m=Vl(r,i,!1),m.forEach((e=>d.add(e))),g=Nl(s,d,h);const v=new Set(m);this._adapter.notifySearch(e,Array.from(v),p),this._adapter.updateState({expandedKeys:d,flattenNodes:g,motionKeys:new Set([]),filteredKeys:new Set(f),filteredExpandedKeys:v,filteredShownKeys:y}),this._adapter.rePositionDropdown()}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let n=[...this.getState("selectedKeys")];const{clickToHide:r}=this.getProps(),{selected:i,eventKey:s,data:a}=t;this._adapter.notifySelect(s,!0,a),n.includes(s)||i||(n=[s],this._notifyChange(s,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:n})),!r||!this._isSelectToClose()&&a.children||(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:n}=this.getStates(),r=new Set(this.getState("checkedKeys")),i=new Set(this.getState("halfCheckedKeys"));return t?Gl(e,n,r,i):ql(e,n,r,i)}handleMultipleSelect(e,t){const{searchPosition:n,disableStrictly:r,checkRelation:i}=this.getProps(),{inputValue:s,realCheckedKeys:a}=this.getStates(),{checked:o,eventKey:l,data:c}=t;if("related"===i){const t=r?this.calcCheckedStatus(!o,l):!o,{checkedKeys:n,halfCheckedKeys:i}=r?this.calcNonDisabledCheckedKeys(l,t):this.calcCheckedKeys(l,t);this._adapter.notifySelect(l,t,c),this._notifyChange([...n],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:n,halfCheckedKeys:i}),this._adapter.rePositionDropdown())}else if("unRelated"===i){const t=new Set(a);let n;a.has(l)?(t.delete(l),n=!1):(t.add(l),n=!0),this._adapter.notifySelect(l,n,c),this._notifyChange([...t],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:t}),this._adapter.rePositionDropdown())}n===eT&&""!==s&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:n,disabledKeys:r}=this.getStates(),i=new Set(this.getState("checkedKeys")),s=Ul(Ll([e],n,!1),n,!0),a=s.some((e=>r.has(e)));if(!a)return this.calcCheckedKeys(e,t);const o=s.filter((e=>!r.has(e)));return $l(t?[...o,...i]:_l()(Ul([...i],n,!0,!0),o),n)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:n,keyEntities:r,disabledKeys:i}=this.getStates(),s=Ul(Ll([t],r,!1),r,!0),a=s.some((e=>i.has(e)));if(!a)return e;const o=s.filter((e=>!i.has(e))),l=o.every((e=>n.has(e)));return!l}handleNodeExpandInSearch(e,t){const{treeData:n,filteredShownKeys:r,keyEntities:i,keyMaps:s}=this.getStates(),a=this._showFilteredOnly(),o=new Set(this.getState("filteredExpandedKeys"));let l="show";const{eventKey:c,expanded:h,data:u}=t;if(h?o.has(c)&&(o.delete(c),l="hide"):o.add(c),this._adapter.cacheFlattenNodes("hide"===l&&this._isAnimated()),!this._isExpandControlled()){const e=Nl(n,o,s,a&&r),t=this._isAnimated()?Wl(c,o,i):[],h={filteredExpandedKeys:o,flattenNodes:e,motionKeys:new Set(t),motionType:l};this._adapter.updateState(h)}this._adapter.notifyExpand(o,{expanded:!h,node:u})}handleNodeExpand(e,t){const{loadData:n,keyMaps:r}=this.getProps(),{inputValue:i,keyEntities:s}=this.getStates(),a=Boolean(i);if(!(n||t.children&&t.children.length))return;const o=this._isExpandControlled();if(a)return void this.handleNodeExpandInSearch(e,t);const{treeData:l}=this.getStates(),c=new Set(this.getState("expandedKeys"));let h="show";const{eventKey:u,expanded:d,data:p}=t;if(d?c.has(u)&&(c.delete(u),h="hide"):c.add(u),this._adapter.cacheFlattenNodes("hide"===h&&this._isAnimated()),!o){const e=Nl(l,c,r),t=this._isAnimated()?Wl(u,c,s):[],n={expandedKeys:c,flattenNodes:e,motionKeys:new Set(t),motionType:h};this._adapter.updateState(n)}this._adapter.notifyExpand(c,{expanded:!d,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:n}=this.getProps(),{selectedKeys:r,keyEntities:i}=this.getStates(),s=a()(n,"label",t),o=J()(e)?e:e=>a()(e,s,null);let l;if(r.length){const e=r[0];l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e)}return l?o(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}handlePopoverVisibleChange(e){const{filterTreeNode:t,searchAutoFocus:n,searchPosition:r}=this.getProps();!1===e&&t&&this.clearInputValue(),t&&r===QO&&e&&n&&this.focusInput(!0)}handleAfterClose(){const{filterTreeNode:e}=this.getProps();e&&this.clearInput()}}__webpack_require__("HEBl");var rT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const iT=ZO.PREFIX,sT=ZO.PREFIX_TREE;class aT extends f{constructor(e){super(e),this.renderSuffix=()=>{const{suffix:e}=this.props,t=x()({[`${iT}-suffix`]:!0,[`${iT}-suffix-text`]:e&&ne()(e),[`${iT}-suffix-icon`]:Ue(e)});return u().createElement("div",{className:t,"x-semi-prop":"suffix"},e)},this.renderPrefix=()=>{const{prefix:e,insetLabel:t,insetLabelId:n}=this.props,r=e||t,i=x()({[`${iT}-prefix`]:!0,[`${iT}-inset-label`]:t,[`${iT}-prefix-text`]:r&&ne()(r),[`${iT}-prefix-icon`]:Ue(r)});return u().createElement("div",{className:i,id:n,"x-semi-prop":"prefix,insetLabel"},r)},this.renderContent=()=>{const{dropdownMinWidth:e}=this.state,{dropdownStyle:t,dropdownClassName:n}=this.props,r=Object.assign({minWidth:e},t),i=x()(n,`${iT}-popover`);return u().createElement("div",{className:i,style:r,onKeyDown:this.foundation.handleKeyDown},this.renderTree())},this.removeTag=e=>{this.foundation.removeTag(e)},this.handleClick=e=>{this.foundation.handleClick(e)},this.getDataForKeyNotInKeyEntities=e=>this.foundation.getDataForKeyNotInKeyEntities(e),this.handleSelectionEnterPress=e=>{this.foundation.handleSelectionEnterPress(e)},this.hasValue=()=>{const{multiple:e,checkRelation:t}=this.props,{realCheckedKeys:n,checkedKeys:r,selectedKeys:i}=this.state;let s=!1;return e?"related"===t?s=Boolean(r.size):"unRelated"===t&&(s=Boolean(n.size)):s=Boolean(i.length),s},this.showClearBtn=()=>{const{showClear:e,disabled:t,searchPosition:n}=this.props,{inputValue:r,isOpen:i,isHovering:s}=this.state,a=n===eT&&r;return e&&(this.hasValue()||a)&&!t&&(i||s)},this.renderTagList=e=>{const{keyEntities:t,disabledKeys:n}=this.state,{treeNodeLabelProp:r,leafOnly:i,disabled:s,disableStrictly:o,size:l,renderSelectedItem:c,keyMaps:h}=this.props,d=a()(h,"label",r),p=J()(c)?c:e=>({isRenderInTag:!0,content:a()(e,d,null)}),f=[];return e.forEach(((e,r)=>{const i=t[e]&&t[e].key===e?t[e].data:this.getDataForKeyNotInKeyEntities(e),a=(t,n)=>{n&&"function"==typeof n.preventDefault&&n.preventDefault(),this.removeTag(e)},{content:c,isRenderInTag:h}=i?p(i,{index:r,onClose:a}):{};if(ee()(c)||le()(c))return;const d={closable:!(s||i.disabled||o&&n.has(i.key)),color:"white",visible:!0,onClose:a,key:`tag-${e}-${r}`,size:"small"===l?"small":"large"};h?f.push(u().createElement(Sh,Object.assign({},d),c)):f.push(c)})),f},this.renderSingleTriggerSearchItem=()=>{const{placeholder:e,disabled:t}=this.props,{inputTriggerFocus:n}=this.state,r=this.foundation.getRenderTextInSingle(),i=x()(`${iT}-selection-TriggerSearchItem`,{[`${iT}-selection-TriggerSearchItem-placeholder`]:(n||!r)&&!t,[`${iT}-selection-TriggerSearchItem-disabled`]:t});return u().createElement("span",{className:i,onClick:this.foundation.onClickSingleTriggerSearchItem},r||e)},this.renderSingleTriggerSearch=()=>{const{inputValue:e}=this.state;return u().createElement(u().Fragment,null,this.renderInput(),!e&&this.renderSingleTriggerSearchItem())},this.renderSelectContent=e=>{const{multiple:t,placeholder:n,maxTagCount:r,searchPosition:i,filterTreeNode:s,showRestTagsPopover:a,restTagsPopoverProps:o}=this.props;if(s&&i===eT)return t?this.renderTagInput(e):this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const e=this.foundation.getRenderTextInSingle(),t=x()(`${iT}-selection-content`,{[`${iT}-selection-placeholder`]:!e});return u().createElement("span",{className:t},e||n)}const l=this.renderTagList(e);return u().createElement(iE,{maxTagCount:r,tagList:l,size:"large",mode:"custom",showPopover:a,popoverProps:o})},this.handleClear=e=>{e&&e.stopPropagation(),this.foundation.handleClear(e)},this.handleClearEnterPress=e=>{e&&e.stopPropagation(),this.foundation.handleClearEnterPress(e)},this.handleMouseOver=e=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=e=>{this.foundation.toggleHoverState(!1)},this.search=e=>{const{isOpen:t}=this.state;t||this.foundation.open(),this.foundation.handleInputChange(e)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const e=this.showClearBtn(),{arrowIcon:t}=this.props;return e?null:t?u().createElement("div",{className:x()(`${iT}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderClearBtn=()=>{const e=this.showClearBtn(),{clearIcon:t}=this.props,n=x()(`${iT}-clearbtn`);return e?u().createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:n,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},t||u().createElement(ar,null)):null},this.renderSelection=()=>{const e=this.props,{disabled:t,multiple:n,filterTreeNode:r,validateStatus:i,prefix:s,suffix:o,style:l,size:c,insetLabel:d,className:p,placeholder:f,showClear:m,leafOnly:g,searchPosition:y,triggerRender:v,borderless:b,autoMergeValue:w,checkRelation:C}=e,E=rT(e,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless","autoMergeValue","checkRelation"]),{inputValue:S,selectedKeys:_,checkedKeys:k,keyEntities:P,isFocus:O,realCheckedKeys:T}=this.state,I=Boolean(r),D="function"==typeof v,A=m?{onMouseEnter:e=>this.handleMouseOver(e),onMouseLeave:e=>this.handleMouseLeave(e)}:{},R=y===eT&&I,N=R&&de()(k),M=R&&!de()(k),F=D?x()(p):x()(iT,{[`${iT}-borderless`]:b,[`${iT}-focus`]:O,[`${iT}-disabled`]:t,[`${iT}-single`]:!n,[`${iT}-multiple`]:n,[`${iT}-multiple-tagInput-empty`]:n&&N,[`${iT}-multiple-tagInput-notEmpty`]:n&&M,[`${iT}-filterable`]:I,[`${iT}-error`]:"error"===i,[`${iT}-warning`]:"warning"===i,[`${iT}-small`]:"small"===c,[`${iT}-large`]:"large"===c,[`${iT}-with-prefix`]:s||d,[`${iT}-with-suffix`]:o,[`${iT}-with-suffix`]:o},p);let L,j=[];n?w?"related"===C?j=Ul([...k],P,g,!0):"unRelated"===C&&(j=[...T]):j=[...k]:j=_,L=D?u().createElement(br,{inputValue:S,value:j.map((e=>a()(P,[e,"data"]))),disabled:t,placeholder:f,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:v,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[u().createElement(h.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),u().createElement(h.Fragment,{key:"selection"},u().createElement("div",{className:`${iT}-selection`},this.renderSelectContent(j))),u().createElement(h.Fragment,{key:"suffix"},o?this.renderSuffix():null),u().createElement(h.Fragment,{key:"clearBtn"},m||R&&S?this.renderClearBtn():null),u().createElement(h.Fragment,{key:"arrow"},this.renderArrow())];const V=t?null:0;return u().createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-haspopup":"tree",tabIndex:V,className:F,style:l,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,onKeyDown:this.foundation.handleKeyDown,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},A,this.getDataAttr(E)),L)},this.renderTagItem=(e,t)=>{const{keyEntities:n,disabledKeys:r}=this.state,{size:i,leafOnly:s,disabled:o,disableStrictly:l,renderSelectedItem:c,treeNodeLabelProp:h,keyMaps:d}=this.props,p=a()(d,"label",h),f=Ul([e],n,s,!0).map((t=>n[e]&&n[e].key===e?n[e].data:this.getDataForKeyNotInKeyEntities(e))),m=Xl(f,d),g=x()(`${iT}-selection-tag`,{[`${iT}-selection-tag-disabled`]:o}),y=!de()(f)&&!de()(f[0]),v=l&&y&&r.has(f[0].key),b=(t,n)=>{n.preventDefault(),this.removeTag(e)},w={size:"small"===i?"small":"large",key:`tag-${m}-${t}`,color:"white",className:g,closable:y&&!f[0].disabled&&!o&&!v,onClose:b},C=f[0],E=J()(c)?c:e=>({isRenderInTag:!0,content:a()(e,p,null)});if(J()(E)){const{content:e,isRenderInTag:n}=C?E(C,{index:t,onClose:b}):{};return n?u().createElement(Sh,Object.assign({},w),e):e}return u().createElement(Sh,Object.assign({},w),m)},this.renderTagInput=e=>{const{disabled:t,size:n,searchAutoFocus:r,placeholder:i,maxTagCount:s,showRestTagsPopover:a,restTagsPopoverProps:o,searchPosition:l,filterTreeNode:c,preventScroll:h}=this.props,{inputValue:d}=this.state,p=c&&l===eT?r:void 0;return u().createElement(Mp,{maxTagCount:s,disabled:t,onInputChange:e=>this.search(e),ref:this.tagInputRef,placeholder:i,value:e,inputValue:d,size:n,showRestTagsPopover:a,restTagsPopoverProps:o,autoFocus:p,renderTagItem:(e,t)=>this.renderTagItem(e,t),onRemove:e=>this.removeTag(e),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:e,searchRender:t,showSearchClear:n,searchPosition:r,searchAutoFocus:i,multiple:s,disabled:a,preventScroll:o}=this.props,l=r===QO,c=x()({[`${sT}-input`]:l,[`${iT}-inputTrigger`]:!l}),{inputValue:h}=this.state,d={value:h,className:c,preventScroll:o,onChange:e=>this.search(e)},p=l?{showClear:n,prefix:u().createElement(mE,null)}:{autofocus:i,onFocus:e=>this.foundation.handleInputTriggerFocus(),onBlur:e=>this.foundation.handleInputTriggerBlur(),disabled:a},f=x()({[`${sT}-search-wrapper`]:l,[`${iT}-triggerSingleSearch-wrapper`]:!l&&!s}),m="function"==typeof t||"boolean"==typeof t;return m&&!t?null:u().createElement("div",{className:f},u().createElement(Bt,{componentName:"TreeSelect"},(n=>{const r=l?e||n.searchPlaceholder:"";return m?t(Object.assign(Object.assign(Object.assign({},p),d),{placeholder:r})):u().createElement(gr,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:r},d,p))})))},this.renderEmpty=()=>{const{emptyContent:e}=this.props;return e?u().createElement(zO,{empty:!0,emptyContent:this.props.emptyContent}):u().createElement(Bt,{componentName:"Tree"},(e=>u().createElement(zO,{empty:!0,emptyContent:e.emptyText})))},this.onNodeLoad=e=>new Promise((t=>this.foundation.setLoadKeys(e,t))),this.onNodeSelect=(e,t)=>{this.foundation.handleNodeSelect(e,t)},this.onNodeCheck=(e,t)=>{this.foundation.handleNodeSelect(e,t)},this.onNodeExpand=(e,t)=>{this.foundation.handleNodeExpand(e,t)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:e,selectedKeys:t,checkedKeys:n,halfCheckedKeys:r,keyEntities:i,filteredKeys:s}=this.state;return{expandedKeys:e||new Set,selectedKeys:t||[],checkedKeys:n||new Set,halfCheckedKeys:r||new Set,filteredKeys:s||new Set,keyEntities:i}},this.getTreeNodeKey=e=>{const{data:t}=e,{key:n}=t;return n},this.handlePopoverVisibleChange=e=>{this.foundation.handlePopoverVisibleChange(e)},this.afterClose=()=>{this.foundation.handleAfterClose()},this.renderTreeNode=(e,t,n)=>{const{data:r,key:i}=e,s=this.foundation.getTreeNodeProps(i),{showLine:o}=this.props;if(!s)return null;const l=Pl()(e,["key","label","disabled","isLeaf","icon","isEnd"]),{keyMaps:c}=this.props,h=r[a()(c,"children","children")];return!le()(h)&&(l.children=h),u().createElement(zO,Object.assign({},s,r,l,{data:r,style:n,showLine:o}))},this.itemKey=(e,t)=>{const{visibleOptions:n}=t;return n[e].key},this.renderNodeList=()=>{const{flattenNodes:e,cachedFlattenNodes:t,motionKeys:n,motionType:r,filteredKeys:i}=this.state,{direction:s}=this.context,{virtualize:a,motionExpand:o}=this.props,l="expandedKeys"in this.props;if(!a||de()(a))return u().createElement(WO,{flattenNodes:e,flattenList:t,motionKeys:o?n:new Set([]),motionType:r,searchTargetIsDeep:l&&o&&de()(n)&&!de()(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:e,renderOption:this.renderTreeNode};return u().createElement(RO,{defaultHeight:a.height,defaultWidth:a.width},(t=>{let{height:n,width:r}=t;return u().createElement(ch,{itemCount:e.length,itemSize:a.itemSize,height:n,width:r,itemKey:this.itemKey,itemData:c,className:`${sT}-virtual-list`,style:{direction:s}},oE)}))},this.renderTree=()=>{const{keyEntities:e,motionKeys:t,motionType:n,inputValue:r,filteredKeys:s,flattenNodes:a,checkedKeys:o,realCheckedKeys:l}=this.state,{loadData:c,filterTreeNode:h,disabled:d,multiple:p,showFilteredOnly:f,motionExpand:m,outerBottomSlot:g,outerTopSlot:y,expandAction:v,labelEllipsis:b,virtualize:w,optionListStyle:C,searchPosition:E,renderLabel:S,renderFullLabel:_,checkRelation:k}=this.props,P=x()(`${sT}-wrapper`),O=x()(`${sT}-option-list`,{[`${sT}-option-list-block`]:!0}),T=Boolean(r)&&!s.size,I=de()(a)||f&&T,D=E===QO;return u().createElement(NO.Provider,{value:{loadData:c,treeDisabled:d,motion:m,motionKeys:t,motionType:n,expandAction:v,filterTreeNode:h,keyEntities:e,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:i(),onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:p,showFilteredOnly:f,isSearching:Boolean(r),renderLabel:S,renderFullLabel:_,labelEllipsis:void 0===b?w:b}},u().createElement("div",{className:P},y,!y&&h&&D&&this.renderInput(),u().createElement("div",{className:O,role:"tree","aria-multiselectable":!!p,style:C},I?this.renderEmpty():p?u().createElement(jc,{value:Array.from("related"===k?o:l)},this.renderNodeList()):this.renderNodeList()),g))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:0,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],cachedFlattenNodes:void 0,selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=u().createRef(),this.tagInputRef=u().createRef(),this.triggerRef=u().createRef(),this.optionsRef=u().createRef(),this.clickOutsideHandler=null,this.foundation=new nT(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:n,rePosKey:r}=t,{keyMaps:i}=e,s=t=>!n&&t in e||n&&!he()(n[t],e[t]);let a;const o=e.onChangeWithObject;let l=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const h={prevProps:e},u=s("treeData"),d=s("expandedKeys"),p=Boolean(e.filterTreeNode&&t.inputValue&&t.inputValue.length);if(u){a=e.treeData,h.treeData=a;const t=Ml(a,i);h.keyEntities=Object.assign({},t.keyEntities),l=h.keyEntities,h.cachedKeyValuePairs=Object.assign({},t.valueEntities),c=h.cachedKeyValuePairs}a&&e.motion&&!he()(Object.keys(h.keyEntities),Object.keys(t.keyEntities))&&n&&e.motion&&(h.motionKeys=new Set([]),h.motionType=null);const f=u&&e.expandAll;if(p){let r;if(a&&(r=Yl({treeData:a,inputValue:t.inputValue,filterTreeNode:e.filterTreeNode,filterProps:e.treeNodeFilterProp,showFilteredOnly:e.showFilteredOnly,keyEntities:h.keyEntities,prevExpandedKeys:[...t.filteredExpandedKeys],keyMaps:i}),h.flattenNodes=r.flattenNodes,h.motionKeys=new Set([]),h.filteredKeys=r.filteredKeys,h.filteredShownKeys=r.filteredShownKeys,h.filteredExpandedKeys=r.filteredExpandedKeys),e.expandedKeys){if(h.filteredExpandedKeys=Bl(e.expandedKeys,l,e.autoExpandParent||!n),n&&e.motion){const n=t?t.filteredExpandedKeys:new Set([]);if(!a){const r=Hl(n,h.filteredExpandedKeys,l);let{motionKeys:i}=r;const{motionType:s}=r;e.showFilteredOnly&&(i=i.filter((e=>t.filteredShownKeys.has(e)))),"hide"===s&&(h.cachedFlattenNodes=DO(t.flattenNodes)),h.motionKeys=new Set(i),h.motionType=s}}h.flattenNodes=Nl(a||t.treeData,h.filteredExpandedKeys||t.filteredExpandedKeys,i,e.showFilteredOnly&&t.filteredShownKeys)}}else{if(d||n&&s("autoExpandParent")){if(h.expandedKeys=Bl(e.expandedKeys,l,e.autoExpandParent||!n),n&&e.motion&&!a){const{motionKeys:e,motionType:n}=Hl(t.expandedKeys,h.expandedKeys,l);h.motionKeys=new Set(e),h.motionType=n,"hide"===n&&(h.cachedFlattenNodes=DO(t.flattenNodes))}}else!n&&(e.defaultExpandAll||e.expandAll)||f?h.expandedKeys=new Set(Object.keys(l)):!n&&e.defaultExpandedKeys?h.expandedKeys=Bl(e.defaultExpandedKeys,l):!n&&e.defaultValue?h.expandedKeys=zl(Zl(e.defaultValue,o,i),l,e.multiple,c):!n&&e.value&&(h.expandedKeys=zl(Zl(e.value,o,i),l,e.multiple,c));if(h.expandedKeys||delete h.expandedKeys,a||h.expandedKeys){const e=Nl(a||t.treeData,h.expandedKeys||t.expandedKeys,i);h.flattenNodes=e}}const m=e.multiple;if(m){let r;if(s("value")?r=Fl(Zl(e.value,o,i),c,m):!n&&e.defaultValue?r=Fl(Zl(e.defaultValue,o,i),c,m):a&&(r=e.value?Fl(Zl(e.value,o,i)||[],c,m):Jl("related"===e.checkRelation?t.checkedKeys:t.realCheckedKeys,l)),r)if("unRelated"===e.checkRelation)h.realCheckedKeys=new Set(r);else if("related"===e.checkRelation){const{checkedKeys:e,halfCheckedKeys:t}=$l(r,l);h.checkedKeys=e,h.halfCheckedKeys=t}}else s("value")?h.selectedKeys=Fl(Zl(e.value,o,i),c,m):!n&&e.defaultValue?h.selectedKeys=Fl(Zl(e.defaultValue,o,i),c,m):a&&(e.value?h.selectedKeys=Fl(Zl(e.value,o,i)||"",c,m):h.selectedKeys=Jl(t.selectedKeys,l));return s("loadedKeys")&&(h.loadedKeys=new Set(e.loadedKeys)),(u||s("value"))&&(h.rePosKey=r+1),a&&e.disableStrictly&&"related"===e.checkRelation&&(h.disabledKeys=Ql(l,i)),h}get adapter(){var e=this;const t={updateInputValue:e=>{this.setState({inputValue:e})}},n={registerClickOutsideHandler:e=>{this.adapter.unregisterClickOutsideHandler();const t=t=>{const n=this.optionsRef&&this.optionsRef.current,r=this.triggerRef&&this.triggerRef.current,i=ge().findDOMNode(n),s=t.target,a=t.composedPath&&t.composedPath()||[s];!i||i.contains(s)&&i.contains(s.parentNode)||!r||r.contains(s)||a.includes(r)||a.includes(i)||e(t)};this.clickOutsideHandler=t,document.addEventListener("mousedown",t,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{rePosKey:e}=this.state;e+=1,this.setState({rePosKey:e})}},r={updateState:e=>{this.setState(Object.assign({},e))},notifySelect:(e,t,n)=>{this.props.onSelect&&this.props.onSelect(e,t,n)},notifySearch:(e,t,n)=>{this.props.onSearch&&this.props.onSearch(e,t,n)},cacheFlattenNodes:e=>{this.setState({cachedFlattenNodes:e?DO(this.state.flattenNodes):void 0})},notifyLoad:(e,t)=>{const{onLoad:n}=this.props;J()(n)&&n(e,t)},notifyClear:e=>{this.props.onClear&&this.props.onClear(e)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),n),r),{updateLoadKeys:(e,t)=>{this.setState((n=>{let{loadedKeys:r,loadingKeys:i}=n;return this.foundation.handleNodeLoad(r,i,e,t)}))},updateState:e=>{this.setState(Object.assign({},e))},openMenu:()=>{this.setState({isOpen:!0},(()=>{this.props.onVisibleChange(!0)}))},closeMenu:e=>{this.setState({isOpen:!1},(()=>{e&&e(),this.props.onVisibleChange(!1)}))},getTriggerWidth:()=>{const e=this.triggerRef.current;return e&&e.getBoundingClientRect().width},setOptionWrapperWidth:e=>{this.setState({dropdownMinWidth:e})},notifyChange:(e,t,n)=>{this.props.onChange&&this.props.onChange(e,t,n)},notifyChangeWithObject:(e,t)=>{this.props.onChange&&this.props.onChange(e,t)},notifyExpand:(e,t)=>{let{expanded:n,node:r}=t;this.props.onExpand&&this.props.onExpand([...e],{expanded:n,node:r}),n&&this.props.loadData&&this.onNodeLoad(r)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:e=>{this.setState({isHovering:e})},updateInputFocus:e=>{if(e){if(this.inputRef&&this.inputRef.current){const{preventScroll:e}=this.props;this.inputRef.current.focus({preventScroll:e})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:e=>{this.setState({isFocus:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:n,mouseLeaveDelay:r,mouseEnterDelay:i,autoAdjustOverflow:s,stopPropagation:a,getPopupContainer:o,dropdownMargin:l,position:c}=this.props,{isOpen:h,rePosKey:d}=this.state,p=this.renderSelection(),f=c||"bottomLeft";return u().createElement(pn,{stopPropagation:a,getPopupContainer:o,zIndex:n,motion:t,margin:l,ref:this.optionsRef,content:e,visible:h,trigger:"custom",rePosKey:d,position:f,autoAdjustOverflow:s,mouseLeaveDelay:r,mouseEnterDelay:i,onVisibleChange:this.handlePopoverVisibleChange,afterClose:this.afterClose},p)}}aT.contextType=Ze,aT.propTypes={"aria-describedby":C().string,"aria-errormessage":C().string,"aria-invalid":C().bool,"aria-labelledby":C().string,"aria-required":C().bool,borderless:C().bool,loadedKeys:C().arrayOf(C().string),loadData:C().func,onLoad:C().func,arrowIcon:C().node,clearIcon:C().node,defaultOpen:C().bool,defaultValue:C().oneOfType([C().string,C().array,C().object]),defaultExpandAll:C().bool,defaultExpandedKeys:C().array,expandAll:C().bool,disabled:C().bool,disableStrictly:C().bool,filterTreeNode:C().oneOfType([C().func,C().bool]),multiple:C().bool,searchPlaceholder:C().string,searchAutoFocus:C().bool,virtualize:C().object,treeNodeFilterProp:C().string,onChange:C().func,onClear:C().func,onSearch:C().func,onSelect:C().func,onExpand:C().func,onChangeWithObject:C().bool,onBlur:C().func,onFocus:C().func,value:C().oneOfType([C().string,C().number,C().array,C().object]),expandedKeys:C().array,autoExpandParent:C().bool,showClear:C().bool,showSearchClear:C().bool,autoAdjustOverflow:C().bool,showFilteredOnly:C().bool,showLine:C().bool,motionExpand:C().bool,emptyContent:C().node,keyMaps:C().object,leafOnly:C().bool,treeData:C().arrayOf(C().shape({key:C().string,value:C().oneOfType([C().string,C().number]),label:C().any})),dropdownClassName:C().string,dropdownStyle:C().object,dropdownMargin:C().oneOfType([C().number,C().object]),motion:C().bool,placeholder:C().string,maxTagCount:C().number,size:C().oneOf(JO),className:C().string,style:C().object,treeNodeLabelProp:C().string,suffix:C().node,prefix:C().node,insetLabel:C().node,insetLabelId:C().string,zIndex:C().number,getPopupContainer:C().func,dropdownMatchSelectWidth:C().bool,validateStatus:C().oneOf(tT),mouseEnterDelay:C().number,mouseLeaveDelay:C().number,triggerRender:C().func,stopPropagation:C().oneOfType([C().bool,C().string]),outerBottomSlot:C().node,outerTopSlot:C().node,onVisibleChange:C().func,expandAction:C().oneOf(["click","doubleClick",!1]),searchPosition:C().oneOf([QO,eT]),clickToHide:C().bool,renderLabel:C().func,renderFullLabel:C().func,labelEllipsis:C().bool,optionListStyle:C().object,searchRender:C().oneOfType([C().func,C().bool]),renderSelectedItem:C().func,checkRelation:C().string,"aria-label":C().string,showRestTagsPopover:C().bool,restTagsPopoverProps:C().object,preventScroll:C().bool,clickTriggerToHide:C().bool,autoMergeValue:C().bool},aT.defaultProps={borderless:!1,searchPosition:QO,arrowIcon:u().createElement(yc,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:sn.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:i(),expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0,autoMergeValue:!0};const oT=aT,lT=`${E}-upload`,cT="picture",hT="list",uT={PREFIX:lT,LIST:`${lT}-list`},dT="auto",pT="custom",fT={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:cT,FILE_LIST_DEFAULT:hT,LIST_TYPE:[cT,hT],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:dT,TRIGGER_CUSTOM:pT,UPLOAD_TRIGGER:[dT,pT],VALIDATE_STATUS:$n,PROMPT_POSITION:["left","right","bottom"]},mT=.95;var gT=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))};const yT=1024,vT=1048576;function bT(e){return e<yT?`${(e/yT).toFixed(2)}KB`:e>=yT&&e<vT?`${(e/yT).toFixed(1)}KB`:e>=vT?`${(e/vT).toFixed(1)}MB`:void 0}function xT(e){return gT(this,void 0,void 0,(function*(){const t=[],n=(e,r)=>gT(this,void 0,void 0,(function*(){if(r=r||"",e.path=r,e.isFile)t.push(new Promise(((t,n)=>{e.file((n=>{e.fullPath&&!n.webkitRelativePath&&(Object.defineProperties(n,{webkitRelativePath:{writable:!0}}),n.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(n,{webkitRelativePath:{writable:!1}})),t(n)}),n)})));else if(e.isDirectory){const t=yield function(e){return gT(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{const r=e.createReader();let i=[];!function e(){r.readEntries((n=>{const r=Array.prototype.slice.apply(n);i=i.concat(r),r.length?e():t(i)}),n)}()}))}))}(e);for(let i=0;i<t.length;i++){const s=t[i];yield n(s,`${r}${e.name}/`)}}}));try{const r=e.map((e=>n(e.webkitGetAsEntry())));yield Promise.all(r);return yield Promise.all(t)}catch(e){return console.warn("Captured error while loop directory."),console.error(e),[]}}))}var wT=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))};const{FILE_STATUS_UPLOADING:CT,FILE_STATUS_SUCCESS:ET,FILE_STATUS_UPLOAD_FAIL:ST,FILE_STATUS_VALID_FAIL:_T,FILE_STATUS_WAIT_UPLOAD:kT,DRAG_AREA_DEFAULT:PT,DRAG_AREA_LEGAL:OT,TRIGGER_AUTO:TT}=fT;const IT=class extends c{constructor(e){super(Object.assign({},e)),this.destroyState=!1}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),e||this.unbindPastingHandler(),this.destroyState=!0}getError(e){let{action:t,xhr:n,message:r,fileName:i}=e;const s=n?n.status:0,a=new Error(r||`cannot post ${i} to ${t}, xhr status: ${s}'`);return a.status=s,a.method="post",a.url=t,a}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}checkFileSize(e){const{size:t}=e,{maxSize:n,minSize:r}=this.getProps();let i=!1;return(t>n*yT||t<r*yT)&&(i=!0),i}handleChange(e){const t=[],{limit:n,transformFile:r,accept:i}=this.getProps(),{fileList:s}=this.getStates();let a=Array.from(e);if(void 0!==i&&(a=a.filter((e=>{const n=this.checkFileFormat(i,e);return n||t.push(e),n})),0!==t.length&&this._adapter.notifyAcceptInvalid(t),0===a.length))return;a=a.map((e=>(r&&(e=r(e)),e.uid||(e.uid=De()),this.checkFileSize(e)&&(e._sizeInvalid=!0,e.status=_T,this._adapter.notifySizeError(e,s)),e)));const o=s.length+a.length;if(void 0!==n&&o>n){if(this._adapter.notifyExceed(a),1===n)return a=a.slice(-1),this._adapter.notifyFileSelect(a),this._adapter.resetInput(),void this.replaceFileList(a);const e=n-s.length;a=a.slice(0,e)}this._adapter.notifyFileSelect(a),this._adapter.resetInput(),this.addFilesToList(a)}handleReplaceChange(e){if(0===e.length)return;const{transformFile:t,uploadTrigger:n,accept:r}=this.getProps(),{replaceIdx:i,fileList:s}=this.getStates();let a=Array.from(e).pop();if(void 0!==r&&!this.checkFileFormat(r,a))return void this._adapter.notifyAcceptInvalid([a]);t&&(a=t(a)),a.uid||(a.uid=De()),this.checkFileSize(a)&&(a._sizeInvalid=!0,a.status=_T,this._adapter.notifySizeError(a,s)),this._adapter.notifyFileSelect([a]);const o=this.buildFileItem(a,n),l=[...s];l.splice(i,1,o),this._adapter.notifyChange({currentFile:o,fileList:l}),this._adapter.updateFileList(l,(()=>{this._adapter.resetReplaceInput(),o._sizeInvalid||this.upload(o)}))}buildFileItem(e,t){const{_sizeInvalid:n,status:r}=e;try{delete e._sizeInvalid,delete e.status}catch(e){}const i={status:r||(t===TT?CT:kT),name:e.name,size:bT(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return n&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),n=e.map((e=>this.buildFileItem(e,t)));this._adapter.notifyChange({fileList:n,currentFile:n[0]}),this._adapter.updateFileList(n,(()=>{t===TT&&this.startUpload(n)}))}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:n}=this.getProps(),r=e.map((e=>this.buildFileItem(e,n)));r.forEach((e=>{const n=t.findIndex((t=>t.uid===e.uid));-1!==n?t[n]=e:(t.push(e),this._adapter.notifyChange({fileList:t,currentFile:e}))})),this._adapter.updateFileList(t,(()=>{n===TT&&this.startUpload(r)}))}insertFileToList(e,t){const{limit:n,transformFile:r,accept:i,uploadTrigger:s}=this.getProps(),{fileList:a}=this.getStates(),o=[];let l=Array.from(e);if(void 0!==i&&(l=l.filter((e=>{const t=this.checkFileFormat(i,e);return t||o.push(e),t})),0!==o.length&&this._adapter.notifyAcceptInvalid(o),0===l.length))return;l=l.map((e=>(e.uid||(e.uid=De()),this.checkFileSize(e)&&(e._sizeInvalid=!0,e.status=_T,this._adapter.notifySizeError(e,a)),r&&(e=r(e)),e)));const c=a.length+l.length;if(void 0!==n&&c>n){if(1===n)return l=l.slice(-1),this._adapter.notifyFileSelect(l),this._adapter.resetInput(),void this.replaceFileList(l);const e=n-a.length;l=l.slice(0,e),this._adapter.notifyExceed(l)}const h=l.map((e=>this.buildFileItem(e,s))),u=a.slice();void 0!==t?u.splice(t,0,...h):u.push(...h),this._adapter.notifyFileSelect(l),this._adapter.notifyChange({fileList:u,currentFile:null}),this._adapter.updateFileList(u,(()=>{s===TT&&this.startUpload(h)}))}manualUpload(){const e=this.getState("fileList").filter((e=>e.status===kT));this.startUpload(e)}startUpload(e){e.forEach((e=>{e._sizeInvalid||this.upload(e)}))}upload(e){const{beforeUpload:t}=this.getProps();if(void 0!==t){if("function"==typeof t){const{fileList:t}=this.getStates(),n=this._adapter.notifyBeforeUpload({file:e,fileList:t});switch(!0){case!0===n:this.post(e);break;case!1===n:{const t={shouldUpload:!1,status:fT.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(t,e);break}case n&&yb(n):Promise.resolve(n).then((t=>{let n={shouldUpload:!0};"Object"===Object.prototype.toString.call(t).slice(8,-1)&&(n=Object.assign(Object.assign({},n),t)),this.handleBeforeUploadResultInObject(n,e)}),(t=>{let n={shouldUpload:!1,status:fT.FILE_STATUS_VALID_FAIL};"Object"===Object.prototype.toString.call(t).slice(8,-1)&&(n=Object.assign(Object.assign({},n),t)),this.handleBeforeUploadResultInObject(n,e)}));break;case"object"==typeof n:this.handleBeforeUploadResultInObject(n,e)}}}else this.post(e)}handleBeforeUploadResultInObject(e,t){const{shouldUpload:n,status:r,autoRemove:i,validateMessage:s,fileInstance:a}=e;let o=this.getState("fileList").slice();if(i)o=o.filter((e=>e.uid!==t.uid));else{const e=this._getFileIndex(t,o);if(e<0)return;r&&(o[e].status=r),s&&(o[e].validateMessage=s),a&&(a.uid=t.uid,o[e].fileInstance=a,o[e].size=bT(a.size),o[e].name=a.name,o[e].url=this._createURL(a)),o[e].shouldUpload=n}this._adapter.updateFileList(o),this._adapter.notifyChange({fileList:o,currentFile:t}),n&&this.post(t)}post(e){const{fileInstance:t}=e,n=this.getProps();if("undefined"==typeof XMLHttpRequest)return;const r=new XMLHttpRequest,i=new FormData,{action:s}=n;let{data:a}=n;a&&("function"==typeof a&&(a=a(t)),Object.keys(a).forEach((e=>{i.append(e,a[e])})));const o=n.name||n.fileName||t.name;if(n.customRequest)return n.customRequest({fileName:o,data:a,file:e,fileInstance:t,onProgress:e=>this.handleProgress({e,fileInstance:t}),onError:(e,n)=>this.handleError({e:n,xhr:e,fileInstance:t}),onSuccess:(e,n)=>this.handleSuccess({response:e,fileInstance:t,e:n,isCustomRequest:!0}),withCredentials:n.withCredentials,action:n.action});i.append(o,t),r.open("post",s,!0),n.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0),r.upload&&(r.upload.onprogress=e=>{this.destroyState?r.abort():this.handleProgress({e,fileInstance:t})}),r.onload=e=>{this.destroyState||this.handleOnLoad({e,xhr:r,fileInstance:t})},r.onerror=e=>{this.destroyState||this.handleError({e,xhr:r,fileInstance:t})};let l=n.headers||{};"function"==typeof l&&(l=l(t));for(const e in l)Object.prototype.hasOwnProperty.call(l,e)&&null!==l[e]&&r.setRequestHeader(e,l[e]);r.send(i)}handleProgress(e){let{e:t,fileInstance:n}=e;const{fileList:r}=this.getStates(),i=r.slice();let s=0;t.total>0&&(s=Number((t.loaded/t.total*100*mT).toFixed(0))||0);const a=this._getFileIndex(n,i);a<0||(i[a].percent=s,i[a].status=CT,this._adapter.notifyProgress(s,n,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[a]}))}handleOnLoad(e){let{e:t,xhr:n,fileInstance:r}=e;const{fileList:i}=this.getStates(),s=this._getFileIndex(r,i);s<0||(n.status<200||n.status>=300?this.handleError({e:t,xhr:n,fileInstance:r}):this.handleSuccess({e:t,xhr:n,fileInstance:r,index:s}))}handleSuccess(e){let{e:t,fileInstance:n,isCustomRequest:r=!1,xhr:i,response:s}=e;const{fileList:a}=this.getStates();let o=null;const l=this._getFileIndex(n,a);if(l<0)return;o=r?s:this.getBody(i);const c=a.slice(),{afterUpload:h}=this.getProps();if(c[l].status=ET,c[l].percent=100,this._adapter.notifyProgress(100,n,c),c[l].response=o,t&&(c[l].event=t),h&&"function"==typeof h){const{autoRemove:e,status:t,validateMessage:n,name:r,url:i}=this._adapter.notifyAfterUpload({response:o,file:c[l],fileList:c})||{};t&&(c[l].status=t),n&&(c[l].validateMessage=n),r&&(c[l].name=r),i&&(c[l].url=i),e&&c.splice(l,1)}this._adapter.notifySuccess(o,n,c),this._adapter.notifyChange({fileList:c,currentFile:c[l]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex((t=>t.uid===e.uid))}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:n}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,n)).then((t=>{if(!1===t)return;const r=n.slice(),i=this._getFileIndex(e,n);i<0||(r.splice(i,1),this._adapter.notifyRemove(e.fileInstance,r,e),this._adapter.updateFileList(r),this._adapter.notifyChange({fileList:r,currentFile:e}))}))}handleError(e){let{e:t,xhr:n,fileInstance:r}=e;const{fileList:i}=this.getStates(),s=this._getFileIndex(r,i);if(s<0)return;const{action:a}=this.getProps(),o=i.slice(),l=this.getError({action:a,xhr:n,fileName:r.name});o[s].status=ST,o[s].response=l,o[s].event=t,this._adapter.notifyError(l,r,o,n),this._adapter.updateFileList(o),this._adapter.notifyChange({currentFile:o[s],fileList:o})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then((e=>{!1!==e&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))})).catch((e=>{}))}_createURL(e){const t=URL.createObjectURL(e),{localUrls:n}=this.getStates(),r=n.slice();return r.push(t),this._adapter.updateLocalUrls(r),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach((e=>{this._releaseBlob(e)}))}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(e){console.log(e)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return Boolean(this.getProp("multiple"))}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(OT)}handleDirectoryDrop(e){return wT(this,void 0,void 0,(function*(){const t=this.getState("fileList").slice(),n=[].slice.call(e.dataTransfer.items),r=yield xT(n);this.handleChange(r),this._adapter.updateDragAreaStatus(PT),this._adapter.notifyDrop(e,r,t)}))}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:n}=this.getProps(),r=this.getState("fileList").slice();if(!t){if(n)return void this.handleDirectoryDrop(e);const t=Array.from(e.dataTransfer.files);this.handleChange(t),this._adapter.updateDragAreaStatus(PT),this._adapter.notifyDrop(e,t,r)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus(PT)}checkFileFormat(e,t){const n=e.split(",").map((e=>e.trim())).filter((e=>e)),r=t.type||"",i=r.replace(/\/.*$/,"");return n.some((e=>{if("."===e.charAt(0)){const r=t.name||"",i=e.split(".").pop().toLowerCase();return n=r.toLowerCase(),s=i,-1!==n.indexOf(s,n.length-s.length)}var n,s;if(/\/\*$/.test(e)){const t=e.replace(/\/.*$/,"");return i===t}return!!/^[^\/]+\/[^\/]+$/.test(e)&&r===e}))}retry(e){const{onRetry:t}=this.getProps();t&&"function"==typeof t&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const e of t.types)e.startsWith("image")&&t.getType(e).then((e=>e.arrayBuffer())).then((t=>{const n=e.split("/")[1],r=new File([t],`upload.${n}`,{type:e});this.handleChange([r])}))}handlePasting(e){const t=this._adapter.isMac()?e.metaKey:e.ctrlKey,{addOnPasting:n}=this.getProps();if(n&&t&&"KeyV"===e.code&&e.target===document.body){const e="clipboard-read";navigator.permissions.query({name:e}).then((e=>{"granted"===e.state||"prompt"===e.state?navigator.clipboard.read().then((e=>{this.readFileFromClipboard(e)})):this._adapter.notifyPastingError(e)})).catch((e=>{this._adapter.notifyPastingError(e)}))}}bindPastingHandler(){this._adapter.registerPastingHandler((e=>this.handlePasting(e)))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}};const DT=class extends c{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}};const AT=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}),"refresh");function RT(e){return u().isValidElement(e)}function NT(e){return 0===u().Children.count(e)}const MT=uT.PREFIX,FT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u().createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u().createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),u().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},LT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u().createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u().createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),u().createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),u().createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},jT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u().createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),u().createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class VT extends f{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new DT(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return"number"==typeof e?bT(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let n=null;switch(!0){case"string"==typeof t&&e===fT.FILE_STATUS_VALIDATING:n=u().createElement(u().Fragment,null,u().createElement(tr,{size:"small",wrapperClassName:`${MT}-file-card-icon-loading`}),t);break;case"string"==typeof t:n=u().createElement(u().Fragment,null,u().createElement(Li,{className:`${MT}-file-card-icon-error`}),t);break;case RT(t):n=t}return n}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let n=null;switch(!0){case t&&e===fT.FILE_STATUS_VALIDATING:n=u().createElement(tr,{size:"small",wrapperClassName:`${MT}-picture-file-card-icon-loading`});break;case t&&(e===fT.FILE_STATUS_VALID_FAIL||e===fT.FILE_STATUS_UPLOAD_FAIL):n=u().createElement("div",{className:`${MT}-picture-file-card-icon-error`},u().createElement(FT,null))}return n?u().createElement(ft,{content:t,trigger:"hover",position:"bottom"},n):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:n,percent:r,status:i,disabled:s,style:a,onPreviewClick:o,showPicInfo:l,renderPicInfo:c,renderPicPreviewIcon:h,renderThumbnail:d,name:p,index:f,picHeight:m,picWidth:g}=this.props,y=i===fT.FILE_STATUS_UPLOADING&&100!==r,v=i===fT.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,b=i===fT.FILE_STATUS_SUCCESS&&this.props.showReplace,w=i===fT.FILE_STATUS_SUCCESS&&!this.props.showReplace,C="function"==typeof d,E=x()({[`${MT}-picture-file-card`]:!0,[`${MT}-picture-file-card-preview-fallback`]:t,[`${MT}-picture-file-card-disabled`]:s,[`${MT}-picture-file-card-show-pointer`]:void 0!==o,[`${MT}-picture-file-card-error`]:i===fT.FILE_STATUS_UPLOAD_FAIL,[`${MT}-picture-file-card-uploading`]:y,[`${MT}-picture-file-card-custom-thumbnail`]:C&&m&&g}),S=u().createElement("div",{role:"button",tabIndex:0,className:`${MT}-picture-file-card-retry`,onClick:e=>this.onRetry(e)},u().createElement(AT,{className:`${MT}-picture-file-card-icon-retry`})),_=u().createElement(ft,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},u().createElement("div",{role:"button",tabIndex:0,className:`${MT}-picture-file-card-replace`,onClick:e=>this.onReplace(e)},u().createElement(LT,{className:`${MT}-picture-file-card-icon-replace`}))),k=u().createElement("div",{className:`${MT}-picture-file-card-preview`},"function"==typeof h?h(this.props):null),P=u().createElement("div",{role:"button",tabIndex:0,className:`${MT}-picture-file-card-close`,onClick:e=>this.onRemove(e)},u().createElement(ar,{className:`${MT}-picture-file-card-icon-close`})),O="function"==typeof c?c(this.props):u().createElement("div",{className:`${MT}-picture-file-card-pic-info`},f+1);let T={},I=a?Object.assign({},a):{};m&&(I.height=m,T.height=m),g&&(I.width=g,T.width=g);const D=t?u().createElement(MO,{size:"large"}):u().createElement("img",{src:n,alt:p,onError:e=>this.foundation.handleImageError(e),style:T}),A=C?d(this.props):D;return u().createElement("div",{role:"listitem",className:E,style:I,onClick:o},A,y?u().createElement(VE,{percent:r,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,v?S:null,b&&_,w&&k,l&&O,!s&&P,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:n,percent:r,url:i,showRetry:s,showReplace:a,preview:o,previewFile:l,status:c,style:h,onPreviewClick:d,renderFileOperation:p}=this.props,{fallbackPreview:f}=this.state,m=x()({[`${MT}-file-card`]:!0,[`${MT}-file-card-fail`]:c===fT.FILE_STATUS_VALID_FAIL||c===fT.FILE_STATUS_UPLOAD_FAIL,[`${MT}-file-card-show-pointer`]:void 0!==d}),g=x()({[`${MT}-file-card-preview`]:!0,[`${MT}-file-card-preview-placeholder`]:!o||l||f}),y=`${MT}-file-card-info`,v=`${MT}-file-card-close`,b=`${MT}-file-card-replace`,w=!(100===r||void 0===r)&&c===fT.FILE_STATUS_UPLOADING,C=c===fT.FILE_STATUS_UPLOAD_FAIL&&s,E=c===fT.FILE_STATUS_SUCCESS&&a,S=this.transSize(n);let _=o&&!f?u().createElement("img",{src:i,alt:t,onError:e=>this.foundation.handleImageError(e)}):u().createElement(MO,{size:"large"});l&&(_=l(this.props));const k="function"==typeof p?p(this.props):u().createElement(Ji,{onClick:e=>this.onRemove(e),type:"tertiary",icon:u().createElement(Ri,null),theme:"borderless",size:"small",className:v});return u().createElement("div",{role:"listitem",className:m,style:h,onClick:d},u().createElement("div",{className:g},_),u().createElement("div",{className:`${y}-main`},u().createElement("div",{className:`${y}-main-text`},u().createElement("span",{className:`${y}-name`},t),u().createElement("span",null,u().createElement("span",{className:`${y}-size`},S),E&&u().createElement(ft,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},u().createElement(Ji,{onClick:e=>this.onReplace(e),type:"tertiary",theme:"borderless",size:"small",icon:u().createElement(jT,null),className:b})))),w?u().createElement(VE,{percent:r,style:{width:"100%"},"aria-label":"uploading file progress"}):null,u().createElement("div",{className:`${y}-main-control`},u().createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?u().createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:e=>this.onRetry(e)},e.retry):null)),k)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===fT.FILE_LIST_PIC?u().createElement(Bt,{componentName:"Upload"},(e=>this.renderPic(e))):e===fT.FILE_LIST_DEFAULT?u().createElement(Bt,{componentName:"Upload"},(e=>this.renderFile(e))):null}}VT.propTypes={className:C().string,disabled:C().bool,listType:C().string,name:C().string,onPreviewClick:C().func,onRemove:C().func,onReplace:C().func,onRetry:C().func,percent:C().number,preview:C().bool,previewFile:C().func,picWidth:C().oneOfType([C().number,C().string]),picHeight:C().oneOfType([C().number,C().string]),showReplace:C().bool,showRetry:C().bool,size:C().oneOfType([C().number,C().string]),status:C().string,style:C().object,url:C().string,validateMessage:C().node,index:C().number},VT.defaultProps={listType:fT.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const $T=VT;const BT=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}),"upload");__webpack_require__("YHYY");var zT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const HT=uT.PREFIX;class KT extends f{constructor(e){super(e),this.inputRef=null,this.replaceInputRef=null,this.onClick=()=>{const{inputRef:e,props:t}=this,{onOpenFileDialog:n}=t;!Boolean(this.props.disabled)&&e&&e.current&&(e.current.click(),n&&n())},this.onChange=e=>{const{files:t}=e.target;this.foundation.handleChange(t)},this.replace=e=>{this.setState({replaceIdx:e},(()=>{this.replaceInputRef.current.click()}))},this.onReplaceChange=e=>{const{files:t}=e.target;this.foundation.handleReplaceChange(t)},this.clear=()=>{this.foundation.handleClear()},this.remove=e=>{this.foundation.handleRemove(e)},this.insert=(e,t)=>this.foundation.insertFileToList(e,t),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(e,t,n)=>{const{name:r,status:i,validateMessage:s,_sizeInvalid:a,uid:o}=e,{previewFile:l,listType:c,itemStyle:h,showPicInfo:d,renderPicInfo:p,renderPicPreviewIcon:f,renderFileOperation:m,renderFileItem:g,renderThumbnail:y,disabled:v,onPreviewClick:b,picWidth:x,picHeight:w}=this.props,C=Object.assign(Object.assign(Object.assign({},Pl()(this.props,["showRetry","showReplace",""])),e),{previewFile:l,listType:c,onRemove:()=>this.remove(e),onRetry:()=>{this.foundation.retry(e)},index:t,key:o||`${r}${t}`,style:h,disabled:v,showPicInfo:d,renderPicInfo:p,renderPicPreviewIcon:f,renderFileOperation:m,renderThumbnail:y,onReplace:()=>{this.replace(t)},onPreviewClick:void 0!==b?()=>this.foundation.handlePreviewClick(e):void 0,picWidth:x,picHeight:w});return i!==fT.FILE_STATUS_UPLOAD_FAIL||s||(C.validateMessage=n.fail),a&&!s&&(C.validateMessage=n.illegalSize),void 0===g?u().createElement($T,Object.assign({},C)):g(C)},this.renderFileList=()=>{const{listType:e}=this.props;return e===fT.FILE_LIST_PIC?this.renderFileListPic():e===fT.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:e,limit:t,disabled:n,children:r,draggable:i,hotSpotLocation:s,picHeight:a,picWidth:o}=this.props,{fileList:l,dragAreaStatus:c}=this.state,h=this.props.fileList||l,d=!t||t>h.length,p=`${HT}-drag-area`,f=x()(`${HT}-add`,{[`${HT}-picture-add`]:!0,[`${HT}-picture-add-disabled`]:n}),m=x()(`${HT}-file-list`,{[`${HT}-picture-file-list`]:!0}),g=x()({[`${p}-legal`]:c===fT.DRAG_AREA_LEGAL,[`${p}-illegal`]:c===fT.DRAG_AREA_ILLEGAL}),y=`${HT}-file-list-main`,v={role:"button",className:f,onClick:this.onClick,style:{height:a,width:o}},b={className:m},w={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};i&&Object.assign(v,w,{className:x()(f,g)});const C=u().createElement("div",Object.assign({},v,{"x-semi-prop":"children"}),r);return e&&h.length?u().createElement(Bt,{componentName:"Upload"},(e=>u().createElement("div",Object.assign({},b),u().createElement("div",{className:y,role:"list","aria-label":"picture list"},d&&"start"===s?C:null,h.map(((t,n)=>this.renderFile(t,n,e))),d&&"end"===s?C:null)))):d?C:null},this.renderFileListDefault=()=>{const{showUploadList:e,limit:t,disabled:n}=this.props,{fileList:r}=this.state,i=this.props.fileList||r,s=x()(`${HT}-file-list`),a=`${HT}-file-list-title`,o=`${HT}-file-list-main`,l=1!==t&&i.length,c=this.props.showClear&&!n,h={className:s};return e&&i.length?u().createElement(Bt,{componentName:"Upload"},(e=>u().createElement("div",Object.assign({},h),l?u().createElement("div",{className:a},u().createElement("span",{className:`${a}-choosen`},e.selectedFiles),c?u().createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${a}-clear`},e.clear):null):null,u().createElement("div",{className:o,role:"list","aria-label":"file list"},i.map(((t,n)=>this.renderFile(t,n,e))))))):null},this.onDrop=e=>{this.foundation.handleDrop(e)},this.onDragOver=e=>{this.foundation.handleDragOver(e)},this.onDragLeave=e=>{this.foundation.handleDragLeave(e)},this.onDragEnter=e=>{this.foundation.handleDragEnter(e)},this.renderAddContent=()=>{const{draggable:e,children:t,listType:n,disabled:r}=this.props,i=x()(`${HT}-add`);return n===fT.FILE_LIST_PIC?null:e?this.renderDragArea():u().createElement("div",{role:"button",tabIndex:0,"aria-disabled":r,className:i,onClick:this.onClick},t)},this.renderDragArea=()=>{const{dragAreaStatus:e}=this.state,{children:t,dragIcon:n,dragMainText:r,dragSubText:i,disabled:s}=this.props,a=`${HT}-drag-area`,o=x()(a,{[`${a}-legal`]:e===fT.DRAG_AREA_LEGAL,[`${a}-illegal`]:e===fT.DRAG_AREA_ILLEGAL,[`${a}-custom`]:t});return u().createElement(Bt,{componentName:"Upload"},(l=>u().createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:o,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},t||u().createElement(u().Fragment,null,u().createElement("div",{className:`${a}-icon`,"x-semi-prop":"dragIcon"},n||u().createElement(BT,{size:"extra-large"})),u().createElement("div",{className:`${a}-text`},u().createElement("div",{className:`${a}-main-text`,"x-semi-prop":"dragMainText"},r||l.mainText),u().createElement("div",{className:`${a}-sub-text`,"x-semi-prop":"dragSubText"},i),u().createElement("div",{className:`${a}-tips`},e===fT.DRAG_AREA_LEGAL&&u().createElement("span",{className:`${a}-tips-legal`},l.legalTips),e===fT.DRAG_AREA_ILLEGAL&&u().createElement("span",{className:`${a}-tips-illegal`},l.illegalTips)))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new IT(this.adapter),this.inputRef=u().createRef(),this.replaceInputRef=u().createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,n,r)=>this.props.onError(e,t,n,r),notifySuccess:(e,t,n)=>this.props.onSuccess(e,t,n),notifyProgress:(e,t,n)=>this.props.onProgress(e,t,n),notifyRemove:(e,t,n)=>this.props.onRemove(e,t,n),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{"function"==typeof t?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:n}=e;return this.props.beforeUpload({file:t,fileList:n})},notifyAfterUpload:e=>{let{response:t,file:n,fileList:r}=e;return this.props.afterUpload({response:t,file:n,fileList:r})},resetInput:()=>{this.setState((e=>({inputKey:Math.random()})))},resetReplaceInput:()=>{this.setState((e=>({replaceInputKey:Math.random()})))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:n}=e;return this.props.onChange({currentFile:t,fileList:n})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,n)=>this.props.onDrop(e,t,n),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:n,multiple:r,accept:i,disabled:s,children:a,capture:o,listType:l,prompt:c,promptPosition:h,draggable:d,validateMessage:p,validateStatus:f,directory:m}=e,g=zT(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=x()(HT,{[`${HT}-picture`]:l===fT.FILE_LIST_PIC,[`${HT}-disabled`]:s,[`${HT}-default`]:"default"===f,[`${HT}-error`]:"error"===f,[`${HT}-warning`]:"warning"===f,[`${HT}-success`]:"success"===f},n),v=x()(`${HT}-hidden-input`),b=x()(`${HT}-hidden-input-replace`),w=x()(`${HT}-prompt`),C=x()(`${HT}-validate-message`),E=m?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return u().createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":h},this.getDataAttr(g)),u().createElement("input",Object.assign({key:this.state.inputKey,capture:o,multiple:r,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:v,ref:this.inputRef},E)),u().createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.replaceInputRef}),this.renderAddContent(),c?u().createElement("div",{className:w,"x-semi-prop":"prompt"},c):null,p?u().createElement("div",{className:C,"x-semi-prop":"validateMessage"},p):null,this.renderFileList())}}KT.propTypes={accept:C().string,action:C().string.isRequired,addOnPasting:C().bool,afterUpload:C().func,beforeClear:C().func,beforeRemove:C().func,beforeUpload:C().func,children:C().node,className:C().string,customRequest:C().func,data:C().oneOfType([C().object,C().func]),defaultFileList:C().array,directory:C().bool,disabled:C().bool,dragIcon:C().node,dragMainText:C().node,dragSubText:C().node,draggable:C().bool,fileList:C().array,fileName:C().string,headers:C().oneOfType([C().object,C().func]),hotSpotLocation:C().oneOf(["start","end"]),itemStyle:C().object,limit:C().number,listType:C().oneOf(fT.LIST_TYPE),maxSize:C().number,minSize:C().number,multiple:C().bool,name:C().string,onAcceptInvalid:C().func,onChange:C().func,onClear:C().func,onDrop:C().func,onError:C().func,onExceed:C().func,onFileChange:C().func,onOpenFileDialog:C().func,onPreviewClick:C().func,onProgress:C().func,onRemove:C().func,onRetry:C().func,onSizeError:C().func,onSuccess:C().func,onPastingError:C().func,previewFile:C().func,prompt:C().node,promptPosition:C().oneOf(fT.PROMPT_POSITION),picWidth:C().oneOfType([C().number,C().string]),picHeight:C().oneOfType([C().number,C().string]),renderFileItem:C().func,renderPicPreviewIcon:C().func,renderFileOperation:C().func,renderPicInfo:C().func,renderThumbnail:C().func,showClear:C().bool,showPicInfo:C().bool,showReplace:C().bool,showRetry:C().bool,showUploadList:C().bool,style:C().object,timeout:C().number,transformFile:C().func,uploadTrigger:C().oneOf(fT.UPLOAD_TRIGGER),validateMessage:C().node,validateStatus:C().oneOf(fT.VALIDATE_STATUS),withCredentials:C().bool},KT.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:i(),onChange:i(),beforeRemove:()=>!0,beforeClear:()=>!0,onClear:i(),onDrop:i(),onError:i(),onExceed:i(),onFileChange:i(),onOpenFileDialog:i(),onProgress:i(),onRemove:i(),onRetry:i(),onSizeError:i(),onSuccess:i(),onPastingError:i(),promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1},KT.FileCard=$T;const UT=KT,WT={PREFIX:`${E}-transfer`},GT="groupList",qT="list",YT="treeList";var XT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function ZT(e){const t=[];for(const n of e)n.children.forEach((e=>{const{children:r}=n,i=XT(n,["children"]);t.push(Object.assign(Object.assign({},e),{_parent:i}))}));return t}function JT(e){const t=[],n=[...e].reverse();for(;n.length;){const e=n.pop();if(e.path=e.path||[ae()(e,["children"])],e.children&&Array.isArray(e.children)){const t=e.children;for(let r=t.length-1;r>=0;r--){const i=Object.assign({},t[r]);i.path=[].concat(e.path).concat(ae()(i,["children"])),n.push(i)}}else e.isLeaf=!0;t.push(ae()(e,["children"]))}return t}function QT(e,t){const n=e.slice()||[];return t===GT?ZT(n):t===YT?JT(n):n}function eI(e,t){const n=new Map;return e.forEach((e=>{const r=t.findIndex((t=>t.value===e));if(-1!==r){const e=t[r];n.set(e.key,e)}})),n}class tI extends c{constructor(e){super(Object.assign({},e))}_generateGroupedData(e){return ZT(e)}_generateTreeData(e){return JT(e)}_generatePath(e){const{path:t=[]}=e;return t.map((e=>e.label)).join(" > ")}handleInputChange(e,t){const{data:n}=this.getStates(),{filter:r,type:i}=this.getProps();if(i===YT){const r=new Set(n.map((e=>e.key)));return this._adapter.searchTree(e),t&&this._adapter.notifySearch(e),this._adapter.updateInput(e),void this._adapter.updateSearchResult(r)}const s="function"==typeof r?t=>r(e,t):t=>"string"==typeof t.label&&t.label.includes(e),a=n.filter(s),o=new Set(a.map((e=>e.key)));t&&this._adapter.notifySearch(e),this._adapter.updateInput(e),this._adapter.updateSearchResult(o)}handleAll(e){const{disabled:t,type:n}=this.getProps(),{selectedItems:r,data:i,searchResult:s,inputValue:a}=this.getStates();if(t)return;let o=[];o=""!==a?i.filter((e=>s.has(e.key))):i,o=n===YT?i:o;let l=new Map;switch(!0){case!e:l=new Map(r),o.forEach((e=>{e.disabled||l.delete(e.key)}));break;case e:l=new Map(r),o.forEach((e=>{e.disabled?r.has(e.key)&&l.set(e.key,e):l.set(e.key,e)}))}this._isControlledComponent()||this._adapter.updateSelected(l),this._notifyChange(l)}handleClear(){const{disabled:e}=this.getProps(),{selectedItems:t,data:n}=this.getStates();if(e)return;const r=new Map(t);n.forEach((e=>{e.disabled||r.delete(e.key)})),this._isControlledComponent()||this._adapter.updateSelected(r),this._notifyChange(r)}handleSelectOrRemove(e){const{disabled:t}=this.getProps(),n=this._adapter.getSelected();t||e.disabled||(n.has(e.key)?(n.delete(e.key),this._adapter.notifyDeselect(e)):(n.set(e.key,e),this._adapter.notifySelect(e)),this._isControlledComponent()||this._adapter.updateSelected(n),this._notifyChange(n))}handleSelect(e){const{disabled:t}=this.getProps(),n=this._adapter.getSelected(),{data:r}=this.getStates(),i=r.map((e=>[e.value,e])),s=new Map(i),a=new Map;t||(e.forEach((e=>{const t=s.get(e);n.has(t.key)?a.set(t.key,t):t.disabled||a.set(t.key,t)})),this._isControlledComponent()||this._adapter.updateSelected(a),this._notifyChange(a))}getValuesAndItemsFromMap(e){const{type:t}=this.getProps(),n=[],r=[];for(const i of e){const e=t===GT?ae()(i[1],"_parent"):i[1];n.push(e),r.push(e.value)}return{items:n,values:r}}_notifyChange(e){const{items:t,values:n}=this.getValuesAndItemsFromMap(e);this._adapter.notifyChange(n,t)}handleSortEnd(e){const{oldIndex:t,newIndex:n}=e;let r=[...this._adapter.getSelected().values()];r=Th(r,t,n);let i=new Map;r.forEach((e=>{i=i.set(e.key,e)})),this._adapter.updateSelected(i),this._notifyChange(i)}}__webpack_require__("EwKa");var nI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const rI=WT.PREFIX;class iI extends f{constructor(e){super(e),this._treeRef=null,this.renderRightItem=(e,t)=>{const{renderSelectedItem:n,draggable:r,type:i,showPath:s}=this.props,a=()=>this.foundation.handleSelectOrRemove(e),o=x()({[`${rI}-item`]:!0,[`${rI}-right-item`]:!0,[`${rI}-right-item-draggable`]:r}),l=i===YT&&!0===s?this.foundation._generatePath(e):e.label;if(n)return n(Object.assign(Object.assign({},e),{onRemove:a,sortableHandle:t}));const c=t&&t((()=>u().createElement(Dh,{role:"button","aria-label":"Drag and sort",className:`${rI}-right-item-drag-handler`})));return u().createElement("div",{role:"listitem",className:o,key:e.key},r&&t?u().createElement(c,null):null,u().createElement("div",{className:`${rI}-right-item-text`},l),u().createElement(Ri,{onClick:a,"aria-disabled":e.disabled,className:x()(`${rI}-item-close-icon`,{[`${rI}-item-close-icon-disabled`]:e.disabled})}))},this.renderSortItem=e=>{const{id:t,sortableHandle:n}=e,{selectedItems:r}=this.state,i=[...r.values()].find((e=>e.key===t));return this.renderRightItem(i,n)};const{defaultValue:t=[],dataSource:n,type:r}=e;this.foundation=new tI(this.adapter),this.state={data:[],selectedItems:new Map,searchResult:new Set,inputValue:""},Boolean(n)&&D()(n)&&(this.state.data=QT(n,r)),Boolean(t)&&D()(t)&&(this.state.selectedItems=eI(t,this.state.data)),this.onSelectOrRemove=this.onSelectOrRemove.bind(this),this.onInputChange=this.onInputChange.bind(this),this.onSortEnd=this.onSortEnd.bind(this)}static getDerivedStateFromProps(e,t){const{value:n,dataSource:r,type:i,filter:s}=e,a={};let o=t.data,l=t.selectedItems;if(Boolean(r)&&Array.isArray(r)&&(o=QT(r,i),a.data=o),Boolean(n)&&Array.isArray(n)&&(l=eI(n,o),a.selectedItems=l),!he()(t.data,o)&&"string"==typeof t.inputValue&&""!==t.inputValue){const e="function"==typeof s?e=>s(t.inputValue,e):e=>"string"==typeof e.label&&e.label.includes(t.inputValue),n=o.filter(e),r=new Set(n.map((e=>e.key)));a.searchResult=r}return de()(a)?null:a}get adapter(){return Object.assign(Object.assign({},super.adapter),{getSelected:()=>new Map(this.state.selectedItems),updateSelected:e=>{this.setState({selectedItems:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)},notifySearch:e=>{this.props.onSearch(e)},notifySelect:e=>{this.props.onSelect(e)},notifyDeselect:e=>{this.props.onDeselect(e)},updateInput:e=>{this.setState({inputValue:e})},updateSearchResult:e=>{this.setState({searchResult:e})},searchTree:e=>{this._treeRef&&this._treeRef.search(e)}})}onInputChange(e){this.foundation.handleInputChange(e,!0)}search(e){this.foundation.handleInputChange(e,!1)}onSelectOrRemove(e){this.foundation.handleSelectOrRemove(e)}onSortEnd(e){this.foundation.handleSortEnd(e)}renderFilter(e){const{inputProps:t,filter:n,disabled:r}=this.props;return"boolean"!=typeof n||n?u().createElement("div",{role:"search","aria-label":"Transfer filter",className:`${rI}-filter`},u().createElement(gr,Object.assign({prefix:u().createElement(mE,null),placeholder:e.placeholder,showClear:!0,value:this.state.inputValue,disabled:r,onChange:this.onInputChange},t))):null}renderHeader(e){const{disabled:t,renderSourceHeader:n,renderSelectedHeader:r}=this.props,{totalContent:i,allContent:s,onAllClick:a,type:o,showButton:l}=e,c=x()({[`${rI}-header`]:!0,[`${rI}-right-header`]:"right"===o,[`${rI}-left-header`]:"left"===o});if("left"===o&&"function"==typeof n){const{num:t,showButton:r,allChecked:i,onAllClick:s}=e;return n({num:t,showButton:r,allChecked:i,onAllClick:s})}if("right"===o&&"function"==typeof r){const{num:t,showButton:n,onAllClick:i}=e;return r({num:t,showButton:n,onClear:i})}return u().createElement("div",{className:c},u().createElement("span",{className:`${rI}-header-total`},i),l?u().createElement(Ji,{theme:"borderless",disabled:t,type:"tertiary",size:"small",className:`${rI}-header-all`,onClick:a},s):null)}renderLeftItem(e,t){const{renderSourceItem:n,disabled:r}=this.props,{selectedItems:i}=this.state,s=i.has(e.key);if(n)return n(Object.assign(Object.assign({},e),{checked:s,onChange:()=>this.onSelectOrRemove(e)}));const a=x()({[`${rI}-item`]:!0,[`${rI}-item-disabled`]:e.disabled});return u().createElement(Nc,{key:t,disabled:e.disabled||r,className:a,checked:s,role:"listitem",onChange:()=>this.onSelectOrRemove(e),"x-semi-children-alias":`dataSource[${t}].label`},e.label)}renderLeft(e){const{data:t,selectedItems:n,inputValue:r,searchResult:i}=this.state,{loading:s,type:a,emptyContent:o,renderSourcePanel:l,dataSource:c}=this.props,h=e.total,d=""!==r,p=d?i.size:t.length,f=d?t.filter((e=>i.has(e.key))):t,m=Boolean(f.find((e=>!n.has(e.key)))),g={totalContent:h.replace("${total}",`${p}`),allContent:m?e.selectAll:e.clearSelectAll,onAllClick:()=>this.foundation.handleAll(m),type:"left",showButton:a!==YT,num:p,allChecked:!m},y=this.renderFilter(e),v=this.renderHeader(g),b=d&&0===i.size,x=o.search?o.search:e.emptySearch,w=o.left?o.left:e.emptyLeft,C=this.renderEmpty("left",w),E=this.renderEmpty("left",x),S=u().createElement(tr,null);let _=null;switch(!0){case s:_=S;break;case b:_=E;break;case 0===t.length:_=C;break;case a===YT:_=u().createElement(u().Fragment,null,v,this.renderLeftTree());break;case!b&&(a===qT||a===GT):_=u().createElement(u().Fragment,null,v,this.renderLeftList(f));break;default:_=null}const{values:k}=this.foundation.getValuesAndItemsFromMap(n),P={loading:s,noMatch:b,filterData:f,sourceData:t,propsDataSource:c,allChecked:!m,showNumber:p,inputValue:r,selectedItems:n,value:k,onSelect:this.foundation.handleSelect.bind(this.foundation),onAllClick:()=>this.foundation.handleAll(m),onSearch:this.onInputChange,onSelectOrRemove:e=>this.onSelectOrRemove(e)};return l?l(P):u().createElement("section",{className:`${rI}-left`},y,_)}renderGroupTitle(e,t){const n=x()(`${rI}-group-title`);return u().createElement("div",{className:n,key:`title-${t}`},e.title)}renderLeftTree(){const{selectedItems:e}=this.state,{disabled:t,dataSource:n,treeProps:r}=this.props,{values:i}=this.foundation.getValuesAndItemsFromMap(e),s=ae()(r,["value","ref","onChange"]);return u().createElement(XO,Object.assign({disabled:t,treeData:n,multiple:!0,disableStrictly:!0,value:i,defaultExpandAll:!0,leafOnly:!0,ref:e=>this._treeRef=e,filterTreeNode:!0,searchRender:!1,searchStyle:{padding:0},style:{flex:1,overflow:"overlay"},onChange:e=>{this.foundation.handleSelect(e)}},s))}renderLeftList(e){const t=[],n=new Map;return e.forEach(((e,r)=>{const i=e._parent,s=this.renderLeftItem(e,r);if(i&&n.has(i.title))t.push(s);else if(i){const e=this.renderGroupTitle(i,r);n.set(i.title,!0),t.push(e),t.push(s)}else t.push(s)})),u().createElement("div",{className:`${rI}-left-list`,role:"list","aria-label":"Option list"},t)}renderEmpty(e,t){const n=x()({[`${rI}-empty`]:!0,[`${rI}-right-empty`]:"right"===e,[`${rI}-left-empty`]:"left"===e});return u().createElement("div",{"aria-label":"empty",className:n},t)}renderRightSortableList(e){const t=e.map((e=>e.key));return u().createElement(Tp,{strategy:dp,onSortEnd:this.onSortEnd,items:t,renderItem:this.renderSortItem,prefix:`${rI}-right-item`,dragOverlayCls:`${rI}-right-item-drag-item-move`})}renderRight(e){const{selectedItems:t}=this.state,{emptyContent:n,renderSelectedPanel:r,draggable:i}=this.props,s=[...t.values()],a={length:s.length,selectedData:s,onClear:()=>this.foundation.handleClear(),onRemove:e=>this.foundation.handleSelectOrRemove(e),onSortEnd:e=>this.onSortEnd(e)};if(r)return r(a);const o={totalContent:e.selected.replace("${total}",`${s.length}`),allContent:e.clear,onAllClick:()=>this.foundation.handleClear(),type:"right",showButton:Boolean(s.length),num:s.length},l=this.renderHeader(o),c=this.renderEmpty("right",n.right?n.right:e.emptyRight),h=`${rI}-right`;let d=null;switch(!0){case!s.length:d=c;break;case s.length&&!i:d=u().createElement("div",{className:`${rI}-right-list`,role:"list","aria-label":"Selected list"},s.map((e=>this.renderRightItem(Object.assign({},e)))));break;case s.length&&i:d=this.renderRightSortableList(s)}return u().createElement("section",{className:h},l,d)}render(){const e=this.props,{className:t,style:n,disabled:r,renderSelectedPanel:i,renderSourcePanel:s}=e,a=nI(e,["className","style","disabled","renderSelectedPanel","renderSourcePanel"]),o=x()(rI,t,{[`${rI}-disabled`]:r,[`${rI}-custom-panel`]:i&&s});return u().createElement(Bt,{componentName:"Transfer"},(e=>u().createElement("div",Object.assign({className:o,style:n},this.getDataAttr(a)),this.renderLeft(e),this.renderRight(e))))}}iI.propTypes={style:C().object,className:C().string,disabled:C().bool,dataSource:C().array,filter:C().oneOfType([C().func,C().bool]),onSearch:C().func,inputProps:C().object,value:C().array,defaultValue:C().array,onChange:C().func,onSelect:C().func,onDeselect:C().func,renderSourceItem:C().func,renderSelectedItem:C().func,loading:C().bool,type:C().oneOf(["list","groupList","treeList"]),treeProps:C().object,showPath:C().bool,emptyContent:C().shape({search:C().node,left:C().node,right:C().node}),renderSourcePanel:C().func,renderSelectedPanel:C().func,draggable:C().bool},iI.defaultProps={type:qT,dataSource:[],onSearch:i(),onChange:i(),onSelect:i(),onDeselect:i(),onClear:i(),defaultValue:[],emptyContent:{},showPath:!1};const sI=iI,aI={PREFIX:`${E}-highlight`};__webpack_require__("C0y9");const oI=aI.PREFIX;class lI extends h.PureComponent{render(){const{searchWords:e,sourceString:t,component:n,highlightClassName:r,highlightStyle:i,caseSensitive:s,autoEscape:a}=this.props,o=x()({[`${oI}-tag`]:!0},r);return He({sourceString:t,searchWords:e,option:{highlightTag:n,highlightClassName:o,highlightStyle:i,caseSensitive:s,autoEscape:a}})}}lI.propTypes={style:C().object,className:C().string,autoEscape:C().bool,caseSensitive:C().bool,sourceString:C().string,searchWords:C().arrayOf(C().string),highlightStyle:C().object,highlightClassName:C().string,component:C().string},lI.defaultProps={component:"mark",autoEscape:!0,caseSensitive:!1,sourceString:""};const cI=lI;class hI extends h.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return u().createElement(vt.Provider,{value:t},e)}}function uI(){return uI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uI.apply(this,arguments)}function dI(e){return dI=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dI(e)}function pI(e,t){return pI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pI(e,t)}function fI(e,t,n){return fI=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&pI(i,n.prototype),i},fI.apply(null,arguments)}function mI(e){var t="function"==typeof Map?new Map:void 0;return mI=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return fI(e,arguments,dI(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),pI(r,e)},mI(e)}hI.propTypes={locale:C().object,children:C().node},hI.defaultProps={locale:$t};var gI=/%[sdj%]/g;function yI(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function vI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],s=t.length;return"function"==typeof i?i.apply(null,t.slice(1)):"string"==typeof i?String(i).replace(gI,(function(e){if("%%"===e)return"%";if(r>=s)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})):i}function bI(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function xI(e,t,n){var r=0,i=e.length;!function s(a){if(a&&a.length)n(a);else{var o=r;r+=1,o<i?t(e[o],s):n([])}}([])}var wI=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,pI(t,n),r}(mI(Error));function CI(e,t,n,r){if(t.first){var i=new Promise((function(t,i){var s=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e);xI(s,n,(function(e){return r(e),e.length?i(new wI(e,yI(e))):t()}))}));return i.catch((function(e){return e})),i}var s=t.firstFields||[];!0===s&&(s=Object.keys(e));var a=Object.keys(e),o=a.length,l=0,c=[],h=new Promise((function(t,i){var h=function(e){if(c.push.apply(c,e),++l===o)return r(c),c.length?i(new wI(c,yI(c))):t()};a.length||(r(c),t()),a.forEach((function(t){var r=e[t];-1!==s.indexOf(t)?xI(r,n,h):function(e,t,n){var r=[],i=0,s=e.length;function a(e){r.push.apply(r,e),++i===s&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,h)}))}));return h.catch((function(e){return e})),h}function EI(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function SI(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=uI({},e[n],r):e[n]=r}return e}function _I(e,t,n,r,i,s){!e.required||n.hasOwnProperty(e.field)&&!bI(t,s||e.type)||r.push(vI(i.messages.required,e.fullField))}var kI={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},PI={integer:function(e){return PI.number(e)&&parseInt(e,10)===e},float:function(e){return PI.number(e)&&!PI.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!PI.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(kI.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(kI.url)},hex:function(e){return"string"==typeof e&&!!e.match(kI.hex)}};var OI="enum";var TI={required:_I,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(vI(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)_I(e,t,n,r,i);else{var s=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(s)>-1?PI[s](t)||r.push(vI(i.messages.types[s],e.fullField,e.type)):s&&typeof t!==e.type&&r.push(vI(i.messages.types[s],e.fullField,e.type))}},range:function(e,t,n,r,i){var s="number"==typeof e.len,a="number"==typeof e.min,o="number"==typeof e.max,l=t,c=null,h="number"==typeof t,u="string"==typeof t,d=Array.isArray(t);if(h?c="number":u?c="string":d&&(c="array"),!c)return!1;d&&(l=t.length),u&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),s?l!==e.len&&r.push(vI(i.messages[c].len,e.fullField,e.len)):a&&!o&&l<e.min?r.push(vI(i.messages[c].min,e.fullField,e.min)):o&&!a&&l>e.max?r.push(vI(i.messages[c].max,e.fullField,e.max)):a&&o&&(l<e.min||l>e.max)&&r.push(vI(i.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e[OI]=Array.isArray(e[OI])?e[OI]:[],-1===e[OI].indexOf(t)&&r.push(vI(i.messages[OI],e.fullField,e[OI].join(", ")))},pattern:function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(vI(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(vI(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function II(e,t,n,r,i){var s=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t,s)&&!e.required)return n();TI.required(e,t,r,a,i,s),bI(t,s)||TI.type(e,t,r,a,i)}n(a)}var DI={string:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t,"string")&&!e.required)return n();TI.required(e,t,r,s,i,"string"),bI(t,"string")||(TI.type(e,t,r,s,i),TI.range(e,t,r,s,i),TI.pattern(e,t,r,s,i),!0===e.whitespace&&TI.whitespace(e,t,r,s,i))}n(s)},method:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t)&&!e.required)return n();TI.required(e,t,r,s,i),void 0!==t&&TI.type(e,t,r,s,i)}n(s)},number:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),bI(t)&&!e.required)return n();TI.required(e,t,r,s,i),void 0!==t&&(TI.type(e,t,r,s,i),TI.range(e,t,r,s,i))}n(s)},boolean:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t)&&!e.required)return n();TI.required(e,t,r,s,i),void 0!==t&&TI.type(e,t,r,s,i)}n(s)},regexp:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t)&&!e.required)return n();TI.required(e,t,r,s,i),bI(t)||TI.type(e,t,r,s,i)}n(s)},integer:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t)&&!e.required)return n();TI.required(e,t,r,s,i),void 0!==t&&(TI.type(e,t,r,s,i),TI.range(e,t,r,s,i))}n(s)},float:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t)&&!e.required)return n();TI.required(e,t,r,s,i),void 0!==t&&(TI.type(e,t,r,s,i),TI.range(e,t,r,s,i))}n(s)},array:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();TI.required(e,t,r,s,i,"array"),null!=t&&(TI.type(e,t,r,s,i),TI.range(e,t,r,s,i))}n(s)},object:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t)&&!e.required)return n();TI.required(e,t,r,s,i),void 0!==t&&TI.type(e,t,r,s,i)}n(s)},enum:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t)&&!e.required)return n();TI.required(e,t,r,s,i),void 0!==t&&TI.enum(e,t,r,s,i)}n(s)},pattern:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t,"string")&&!e.required)return n();TI.required(e,t,r,s,i),bI(t,"string")||TI.pattern(e,t,r,s,i)}n(s)},date:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t,"date")&&!e.required)return n();var a;if(TI.required(e,t,r,s,i),!bI(t,"date"))a=t instanceof Date?t:new Date(t),TI.type(e,a,r,s,i),a&&TI.range(e,a.getTime(),r,s,i)}n(s)},url:II,hex:II,email:II,required:function(e,t,n,r,i){var s=[],a=Array.isArray(t)?"array":typeof t;TI.required(e,t,r,s,i,a),n(s)},any:function(e,t,n,r,i){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(bI(t)&&!e.required)return n();TI.required(e,t,r,s,i)}n(s)}};function AI(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var RI=AI();function NI(e){this.rules=null,this._messages=RI,this.define(e)}NI.prototype={messages:function(e){return e&&(this._messages=SI(AI(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var i,s,a=e,o=t,l=n;if("function"==typeof o&&(l=o,o={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(),Promise.resolve();if(o.messages){var c=this.messages();c===RI&&(c=AI()),SI(c,o.messages),o.messages=c}else o.messages=this.messages();var h={};(o.keys||Object.keys(this.rules)).forEach((function(t){i=r.rules[t],s=a[t],i.forEach((function(n){var i=n;"function"==typeof i.transform&&(a===e&&(a=uI({},a)),s=a[t]=i.transform(s)),(i="function"==typeof i?{validator:i}:uI({},i)).validator=r.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=r.getType(i),i.validator&&(h[t]=h[t]||[],h[t].push({rule:i,value:s,source:a,field:t}))}))}));var u={};return CI(h,o,(function(e,t){var n,r=e.rule,i=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function s(e,t){return uI({},t,{fullField:r.fullField+"."+e})}function a(n){void 0===n&&(n=[]);var a=n;if(Array.isArray(a)||(a=[a]),!o.suppressWarning&&a.length&&NI.warning("async-validator:",a),a.length&&void 0!==r.message&&(a=[].concat(r.message)),a=a.map(EI(r)),o.first&&a.length)return u[r.field]=1,t(a);if(i){if(r.required&&!e.value)return void 0!==r.message?a=[].concat(r.message).map(EI(r)):o.error&&(a=[o.error(r,vI(o.messages.required,r.field))]),t(a);var l={};if(r.defaultField)for(var c in e.value)e.value.hasOwnProperty(c)&&(l[c]=r.defaultField);for(var h in l=uI({},l,e.rule.fields))if(l.hasOwnProperty(h)){var d=Array.isArray(l[h])?l[h]:[l[h]];l[h]=d.map(s.bind(null,h))}var p=new NI(l);p.messages(o.messages),e.rule.options&&(e.rule.options.messages=o.messages,e.rule.options.error=o.error),p.validate(e.value,e.rule.options||o,(function(e){var n=[];a&&a.length&&n.push.apply(n,a),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(a)}i=i&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,a,e.source,o):r.validator&&(!0===(n=r.validator(r,e.value,a,e.source,o))?a():!1===n?a(r.message||r.field+" fails"):n instanceof Array?a(n):n instanceof Error&&a(n.message)),n&&n.then&&n.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n=[],r={};function i(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t<e.length;t++)i(e[t]);n.length?r=yI(n):(n=null,r=null),l(n,r)}(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!DI.hasOwnProperty(e.type))throw new Error(vI("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?DI.required:DI[this.getType(e)]||!1}},NI.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");DI[e]=t},NI.warning=function(){},NI.messages=RI,NI.validators=DI;const MI=NI;var FI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function LI(e){let t=!0;return"string"==typeof e&&e.length?t=!1:Array.isArray(e)&&e.length?t=e.every((e=>LI(e))):"boolean"==typeof e?t=e:e&&"symbol"==typeof e.$$typeof&&"Symbol(react.element)"===e.$$typeof.toString()&&(t=!1),t}function jI(e){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),e),{field:n,label:r,labelPosition:i,labelWidth:s,labelAlign:a,labelCol:o,wrapperCol:l,initValue:c,validate:h,validateStatus:u,trigger:d,allowEmptyString:p,allowEmpty:f,emptyValue:m,rules:g,onChange:y,keepState:v,transform:b,name:x,fieldClassName:w,fieldStyle:C,noLabel:E,noErrorMessage:S,isInInputGroup:_,stopValidateWithError:k,convert:P,showValidateIcon:O,helpText:T,extraText:I,extraTextPosition:D,pure:A,id:R}=t,N=FI(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete N.defaultChecked,delete N.defaultValue,delete N.checked,void 0!==c&&(c=py(c));const M=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!1;return"object"==typeof e&&"required"in e?t=e.required:Array.isArray(e)&&e.length&&e.forEach((e=>{e.required&&(t=!0)})),t}(g);return m=void 0!==m?m:"",{field:n,label:r,labelPosition:i,labelWidth:s,labelAlign:a,labelCol:o,wrapperCol:l,noLabel:E,noErrorMessage:S,isInInputGroup:_,initValue:c,validate:h,validateStatus:u,trigger:d,allowEmptyString:p,allowEmpty:f,emptyValue:m,rules:g,required:M,keepState:v,transform:b,name:x,fieldClassName:w,fieldStyle:C,convert:P,stopValidateWithError:k,showValidateIcon:O,helpText:T,extraText:I,extraTextPosition:D,pure:A,rest:N,id:R}}class VI extends c{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this),this.scrollToError=this.scrollToError.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,n){this.registered[e];if(this.registered[e]=!0,this.fields.set(e,n),n.keepState);else{const r=n.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:r};let s=t.value;r||""!==s||(s=void 0),this.updateStateValue(e,s,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(cf(this.data.values,e),cf(this.data.errors,e),cf(this.data.touched,e))}catch(t){console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:(new Date).valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const n=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,n)}validate(e){const{validateFields:t}=this.getProps();return t&&J()(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise(((n,r)=>{let i;try{i=t(e)}catch(e){i=e}if(i)yb(i)?i.then((t=>{if(t)this.data.errors=t,this._adapter.notifyChange(this.data),this.injectErrorToField(t),this._adapter.forceUpdate(),this._autoScroll(100),r(t);else{const t=this._adapter.cloneDeep(e);n(t),this.injectErrorToField({})}}),(e=>{this._autoScroll(100),r(e)})):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),r(i));else{const t=this._adapter.cloneDeep(e);n(t),this.injectErrorToField({})}}))}_fieldsValidate(e){const{values:t}=this.data;return new Promise(((n,r)=>{let i=[];const s=this._getOperateFieldMap(e);s.forEach(((e,t)=>{const n=this.getValue(t),r={notNotify:!0,notUpdate:!0},s=e.fieldApi.validate(n,r);i.push(s),e.fieldApi.setTouched(!0,r)})),Promise.all(i).then((()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const e=this.getError();if(this._isValid(s)){const e=this._adapter.cloneDeep(t);n(e)}else this._autoScroll(),r(e)}))}))}submit(e){const{values:t}=this.data;this.validate().then((t=>{const n=this._adapter.cloneDeep(t);this._adapter.notifySubmit(n,e)})).catch((n=>{const r=this._adapter.cloneDeep(n),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(r,i,e)}))}_getNestedField(e){const t=this.fields,n=[...t].map((e=>e[0]));let r=new Map;return n.forEach((n=>{let i=sf()(n),s=sf()(e);if(s.every(((e,t)=>s[t]===i[t]))){const e=t.get(n);r.set(n,e)}})),r}_getOperateFieldMap(e){let t=new Map;return le()(e)?t=this.fields:e.forEach((e=>{const n=this.fields.get(e);if(le()(n)){const n=this._getNestedField(e);t=new Map([...t,...n])}else t.set(e,n)})),t}reset(e){this._getOperateFieldMap(e).forEach((e=>{e.fieldApi.reset()})),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach((e=>{const t=this.registeredArrayField.get(e).initValue;this.updateStateValue(e,t,{notNotify:!0,notUpdate:!0}),this.updateArrayField(e,{updateKey:(new Date).valueOf()})}))}injectErrorToField(e){this.fields.forEach((t=>{const n=lf(e,t.field);t.fieldApi.setError(n,{notNotify:!0,notUpdate:!0})}))}getValue(e,t){const n=void 0===e,r=t&&t.needClone;let i,s;switch(!0){case!n&&!r:i=lf(this.data.values,e);break;case!n&&r:s=lf(this.data.values,e),i=this._adapter.cloneDeep(s);break;case n&&!r:i=Object.assign({},this.data.values);break;case n&&r:i=this._adapter.cloneDeep(this.data.values)}return i}setValues(e,t){let{isOverride:n=!1}=t;const r=this._adapter.cloneDeep(e);if(this.fields.forEach((e=>{const t=lf(r,e.field);e.fieldApi.setValue(t,{notNotify:!0,notUpdate:!0})})),this.registeredArrayField.size){[...this.registeredArrayField.keys()].forEach((e=>{this.updateArrayField(e,{updateKey:(new Date).valueOf()})}))}n&&(this.data.values=r),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,n,r){const i=n&&n.notNotify,s=n&&n.notUpdate,a=n&&n.fieldAllowEmpty,o=this.getProp("allowEmpty"),l=a||o;hf(this.data.values,e,t,l),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),s||this._adapter.forceUpdate(r)}getTouched(e){return void 0===e?this.data.touched:lf(this.data.touched,e)}updateStateTouched(e,t,n,r){const i=n&&n.notNotify,s=n&&n.notUpdate;hf(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),s||this._adapter.forceUpdate(r)}getError(e){return void 0===e?this.data.errors:lf(this.data.errors,e)}updateStateError(e,t,n,r){const i=n&&n.notNotify,s=n&&n.notUpdate;hf(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),s||this._adapter.forceUpdate(r)}getFieldSetterApi(){return{setValue:(e,t,n)=>{const r=this.fields.get(e)?this.fields.get(e).fieldApi:void 0,i=this._adapter.cloneDeep(t);r?r.setValue(i,n):(this.updateStateValue(e,i,n,(()=>{let t=this._getNestedField(e);t.size&&t.forEach((e=>{let t=e.field,n=lf(this.data.values,t);e.fieldApi.setValue(n,{notNotify:!0,notUpdate:!0})}))})),this.getArrayField(e)&&this.updateArrayField(e,{updateKey:(new Date).valueOf()}))},setError:(e,t,n)=>{const r=this.fields.get(e)?this.fields.get(e).fieldApi:void 0,i=this._adapter.cloneDeep(t);r?r.setError(i,n):(this.updateStateError(e,i,n,(()=>{let t=this._getNestedField(e);t.size&&t.forEach((e=>{let t=e.field,n=lf(this.data.errors,t);e.fieldApi.setError(n,{notNotify:!0,notUpdate:!0})}))})),this.getArrayField(e)&&this.updateArrayField(e,{updateKey:(new Date).valueOf()}))},setTouched:(e,t,n)=>{const r=this.fields.get(e)?this.fields.get(e).fieldApi:void 0;r?r.setTouched(t,n):(this.updateStateTouched(e,t,n,(()=>{let t=this._getNestedField(e);t.size&&t.forEach((e=>{let t=e.field,n=lf(this.data.touched,t);e.fieldApi.setTouched(n,{notNotify:!0,notUpdate:!0})}))})),this.getArrayField(e)&&this.updateArrayField(e,{updateKey:(new Date).valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:e=>this.reset(e),validate:e=>this.validate(e),getValue:e=>this.getValue(e,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getFormProps:e=>this.getFormProps(e),getInitValue:e=>this.getInitValue(e),getInitValues:()=>this.getInitValues(),getTouched:e=>this.getTouched(e),getError:e=>this.getError(e),setValues:(e,t)=>this.setValues(e,t||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:e=>this.getFieldExist(e),scrollToField:(e,t)=>this.scrollToField(e,t),scrollToError:e=>this.scrollToError(e)})}getFormState(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;if(e){[...e.keys()].forEach((e=>{LI(lf(this.data.errors,e))||(t=!1)}))}else t=Boolean(function(e){return 0===ef()(e).length}(this.data.errors));return t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return void 0===e?this._adapter.getInitValues():lf(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return Boolean(this.fields.has(e))}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let n={behavior:"smooth",block:"start"};"object"==typeof t&&(n=t),e?setTimeout((()=>this._getErrorFieldAndScroll(n)),100):this._getErrorFieldAndScroll(n)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const n=t[0].parentNode.parentNode;j(n,e)}catch(e){}}scrollToField(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const n=this._adapter.getFieldDOM(e);j(n,t)}}scrollToError(e){let t,n,r=e&&e.scrollOpts?e.scrollOpts:{behavior:"smooth",block:"start"},i=e&&e.field,s=e&&e.index;if("number"==typeof s){let e=this._adapter.getAllErrorDOM()[s];e&&(t=e.parentNode.parentNode)}else if(i)n=this._adapter.getFieldErrorDOM(i),n&&(t=n.parentNode.parentNode);else if(void 0===i){let e=this._adapter.getAllErrorDOM();e&&e.length&&(t=e[0].parentNode.parentNode)}t&&j(t,r)}}const $I=u().createContext({});$I.displayName="FormState";const BI=u().createContext({});BI.displayName="FormApi";const zI=u().createContext({});zI.displayName="FormUpdater";const HI=u().createContext({shouldUseInitValue:!0}),KI=nw.PREFIX;class UI extends h.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:n}=this.props;let r=n;if(this.props.error||(r=t),"string"==typeof e)return u().createElement("span",{id:r},e);if(Array.isArray(e)){const t=e.filter((e=>e));return t.length?u().createElement("span",{id:r},t.join(", ")):null}return u().isValidElement(e)?e:null}render(){const{error:e,className:t,style:n,validateStatus:r,helpText:i,showValidateIcon:s,isInInputGroup:a}=this.props,o=x()({[KI+"-field-error-message"]:Boolean(e),[KI+"-field-help-text"]:Boolean(i)},t);if(!e&&!i)return null;const l={warning:u().createElement(Ni,null),error:u().createElement(Li,null)},c=e?this.generatorText(e):this.generatorText(i),h=`${KI}-field-validate-status-icon`;let d=null;return a?d=u().createElement(Li,{className:h}):l[r]&&(d=u().cloneElement(l[r],{className:h})),u().createElement("div",{className:o,style:n},s&&c?d:null,c)}}UI.propTypes={error:C().oneOfType([C().bool,C().string,C().array,C().node]),className:C().string,style:C().object,validateStatus:C().string,showValidateIcon:C().bool,helpText:C().node,isInInputGroup:C().bool,errorMessageId:C().string,helpTextId:C().string};var WI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const GI=nw.PREFIX,qI=e=>{let t,n,r,i,s,a="top";try{const e=(0,h.useContext)(zI).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);t=e.labelCol,n=e.wrapperCol,r=e.labelWidth,i=e.labelAlign,a=e.labelPosition?e.labelPosition:a}catch(p){}e.labelPosition&&(a=e.labelPosition);let{children:o,label:l,className:c,style:d,error:p,noLabel:f}=e;WI(e,["children","label","className","style","error","noLabel"]);const m=t&&n,g=x()({[`${GI}-field`]:!0,[`${GI}-slot`]:!0},c),y=x()({[`${GI}-col-${i}`]:!0});switch(!0){case z()(l)&&!u().isValidElement(l):break;case ne()(l)||Kn()(l):case u().isValidElement(l):l={text:l}}let v=null;if(void 0!==typeof p){let e={};switch(!0){case z()(p)&&!u().isValidElement(p):e=p;break;case ne()(p)||Kn()(p):case u().isValidElement(p):e={error:p}}v=u().createElement(UI,Object.assign({},e))}let b=Object.assign({align:i,width:r},l),w=x()({[`${GI}-field-main`]:!0,[`${GI}-slot-main`]:!0});switch(!0){case!m&&!f:s=u().createElement(u().Fragment,null,u().createElement(sw,Object.assign({},b)),u().createElement("div",{className:w},o,v));break;case!m&&f:s=u().createElement(u().Fragment,null,u().createElement("div",{className:w},o,v));break;case m&&"top"===a:s=u().createElement(u().Fragment,null,u().createElement("div",{style:{overflow:"hidden"}},u().createElement(kx,Object.assign({},t,{className:y}),u().createElement(sw,Object.assign({},b)))),u().createElement(kx,null,o,v));break;case m&&"top"!==a:s=u().createElement(u().Fragment,null,u().createElement(kx,Object.assign({},t,{className:y}),u().createElement(sw,Object.assign({},b))),u().createElement(kx,null,o,v))}return u().createElement("div",{className:g,"x-label-pos":a,style:d},s)},YI=nw.PREFIX;class XI extends h.PureComponent{render(){const{text:e,className:t,style:n,children:r}=this.props,i=x()({[YI+"-section"]:!0},t),s=YI+"-section-text";return u().createElement("section",{className:i,style:n},u().createElement("h5",{className:s},e),r)}}XI.propTypes={text:C().node,className:C().string,style:C().object,children:C().node};const ZI=function(){return(0,h.useContext)($I)};var JI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const QI=nw.PREFIX,eD=e=>{const{fieldSet:t}=e,n=ZI(),r=t.map((e=>lf(n.errors,e)));return LI(r)?null:u().createElement(UI,{error:r,showValidateIcon:e.showValidateIcon,isInInputGroup:e.isInInputGroup})};class tD extends h.Component{renderLabel(e,t){return e?ne()(e)?u().createElement(sw,{width:t.labelWidth,text:e}):u().createElement(sw,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:n,extraText:r,extraTextPosition:i}=e,s=JI(e,["children","label","extraText","extraTextPosition"]),a=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),o=this.props.labelPosition||a.labelPosition,l=[],c=u().Children.map(t,(e=>e&&e.props&&e.props.field?(l.push(e.props.field),u().cloneElement(e,{isInInputGroup:!0})):null)),h=x()({[`${QI}-field-group`]:!0}),d=a.labelCol,p=a.wrapperCol,f=a.labelAlign,m=d&&p,g=d?`${QI}-col-${f}`:"",y=this.renderLabel(n,a),v=u().createElement(cw,Object.assign({disabled:a.disabled},s),c),b=u().createElement(eD,{fieldSet:l,showValidateIcon:a.showValidateIcon,isInInputGroup:!0}),w=x()(`${QI}-field-extra`,{[`${QI}-field-extra-string`]:"string"==typeof r,[`${QI}-field-extra-middle`]:"middle"===i,[`${QI}-field-extra-bottom`]:"bottom"===i}),C=r?u().createElement("div",{className:w,"x-semi-prop":"extraText"},r):null;let E;switch(!0){case!m:E=u().createElement(u().Fragment,null,y,u().createElement("div",null,"middle"===i?C:null,v,"bottom"===i?C:null,b));break;case m&&"top"===o:E=u().createElement(u().Fragment,null,u().createElement("div",{style:{overflow:"hidden"}},u().createElement(kx,Object.assign({},d,{className:g}),y)),u().createElement(kx,Object.assign({},p),"middle"===i?C:null,v,"bottom"===i?C:null,b));break;case m&&"top"!==o:E=u().createElement(u().Fragment,null,u().createElement(kx,Object.assign({},d,{className:g}),y),u().createElement(kx,Object.assign({},p),"middle"===i?C:null,v,"bottom"===i?C:null,b))}return u().createElement("div",{"x-label-pos":o,className:h},E)}}tD.contextType=zI;const nD=tD;__webpack_require__("WMVM");const rD=function(){return(0,h.useContext)(HI)};function iD(e){const t=(0,h.useRef)(),[n,r]=(0,h.useState)(e);t.current=n;return[n,e=>{t.current=e,r(e)},()=>t.current]}const sD=nw.PREFIX,aD="undefined"!=typeof window?h.useLayoutEffect:h.useEffect;const oD=function(e,t){let n=(n,r)=>{let{field:i,label:s,labelPosition:a,labelWidth:o,labelAlign:l,labelCol:c,wrapperCol:d,noLabel:p,noErrorMessage:f,isInInputGroup:m,initValue:g,validate:y,validateStatus:v,trigger:b,allowEmptyString:w,allowEmpty:C,emptyValue:E,rules:S,required:_,keepState:k,transform:P,name:O,fieldClassName:T,fieldStyle:I,convert:D,stopValidateWithError:A,helpText:R,extraText:N,extraTextPosition:M,pure:F,id:L,rest:j}=jI(n),{options:V,shouldInject:$}=function(e,t){const n=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),e);return{options:n,shouldInject:"field"in t||n.shouldInject}}(t,n);if(ye(void 0===i&&V.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!$)return u().createElement(e,Object.assign({},j,{ref:r}));ZI();const B=(0,h.useContext)(zI);if(!B.getFormProps)return ye(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let z,H=B.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),K=a||H.labelPosition,U=o||H.labelWidth,W=l||H.labelAlign,G=c||H.labelCol,q=d||H.wrapperCol,Y=M||H.extraTextPosition||"bottom",X=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return le()(e)?le()(t)?n:t:e}(A,H.stopValidateWithError,!1),Z=function(e,t){let n=[],r=[];return n=le()(e)?le()(t)?rw.DEFAULT_TRIGGER:t:e,Array.isArray(n)&&(r=n),"string"==typeof n&&(r[0]=n),r}(b,H.trigger),J=void 0!==i?B.getValue(i):void 0,Q=void 0!==g?g:J;try{z=rD(),z&&(Q=z.shouldUseInitValue&&void 0!==g?g:J)}catch(e){}const[ee,te,ne]=iD(void 0!==typeof Q?Q:null),re=Z.includes("mount");C=C||B.getFormProps().allowEmpty;const[ie,se,ae]=iD(),[oe,ce]=(0,h.useState)(),[he,ue,de]=iD(0),[pe,fe]=(0,h.useState)(v),me=(0,h.useRef)(!1),ge=(0,h.useRef)(S),ve=(0,h.useRef)(y),be=(0,h.useRef)(null),xe=(e,t)=>{ce(e),B.updateStateTouched(i,e,t)},we=(e,t)=>{me.current||e!==ae()&&(se(e),B.updateStateError(i,e,t),LI(e)?fe("success"):fe("error"))},Ce=(e,t)=>{te(e);let n=Object.assign(Object.assign({},t),{allowEmpty:C});B.updateStateValue(i,e,n)},Ee=(e,t)=>{let n=ge.current||[];const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n={};return n[e]=t,new MI(n)}(i,n),s={[i]:e},a=new Promise(((e,n)=>{r.validate(s,{first:X},((e,t)=>{})).then((n=>{me.current||be.current!==a||(fe("success"),we(void 0,t),e({}))})).catch((n=>{if(me.current||be.current!==a)return;let{errors:r,fields:i}=n;if(!r||!i)throw fe("error"),we(n.message,t),e(n.message),n;{let n=r.map((e=>e.message));1===n.length&&(n=n[0]),we(n,t),LI(n)||(fe("error"),e(r))}}))}));return be.current=a,a},Se=(e,t)=>{let n=e,r=ge.current;return P&&(n=P(e)),ve.current?((e,t,n)=>{const r=new Promise((i=>{let s;try{s=ve.current(e,t)}catch(e){s=e}void 0===s?(i({}),we(void 0,n)):yb(s)?s.then((e=>{me.current||be.current!==r||(LI(e)?(we(void 0,n),i(null)):(we(e,n),i(e)))})):LI(s)?(we(void 0,n),i(null)):(we(s,n),i(s))}));return be.current=r,r})(n,B.getValue(),t):r?Ee(n,t):null},_e=function(e,t){let r;if(V.onKeyChangeFnName in n&&"function"==typeof n[V.onKeyChangeFnName]){for(var i=arguments.length,s=new Array(i>2?i-2:0),a=2;a<i;a++)s[a-2]=arguments[a];n[V.onKeyChangeFnName](e,t,...s)}r=V.valuePath?lf(e,V.valuePath):e,"function"==typeof D&&(r=D(r)),w||C||r===E&&(r=void 0);try{t&&t.target&&t.target.selectionStart&&ue(t.target.selectionStart)}catch(e){}xe(!0,{notNotify:!0,notUpdate:!0}),Ce(r),Z.includes("change")&&Se(r)},ke=function(){if(n.onBlur&&n.onBlur(...arguments),oe||xe(!0),Z.includes("blur")){let e=ne();Se(e)}},Pe={setValue:Ce,setTouched:xe,setError:we,reset:()=>{let e={notNotify:!0,notUpdate:!0};Ce(null!==Q?Q:void 0,e),we(void 0,e),xe(void 0,e),fe("default")},validate:Se},Oe={value:ee,error:ie,touched:oe,status:pe};aD((()=>{ge.current=S,ve.current=y}),[S,y]),aD((()=>(me.current=!1,re&&Se(ee),()=>{me.current=!0})),[]),aD((()=>{if(void 0===i)return()=>{};const e=ne();return B.register(i,{value:e,error:ie,touched:oe,status:pe},{field:i,fieldApi:Pe,keepState:k,allowEmpty:C||w}),()=>{B.unRegister(i)}}),[i]);const Te=L||i,Ie=`${Te}-label`,De=`${Te}-helpText`,Ae=`${Te}-extraText`,Re=`${Te}-errormessage`,Ne=()=>{let t=v||pe;const n=x()(`${sD}-field-extra`,{[`${sD}-field-extra-string`]:"string"==typeof N,[`${sD}-field-extra-middle`]:"middle"===Y,[`${sD}-field-extra-bottom`]:"bottom"===Y}),a=N?u().createElement("div",{className:n,id:Ae,"x-semi-prop":"extraText"},N):null;let o=Object.assign(Object.assign({id:Te,disabled:H.disabled},j),{ref:r,onBlur:ke,[V.onKeyChangeFnName]:_e,[V.valueKey]:ee,validateStatus:t,"aria-required":_,"aria-labelledby":Ie});O&&(o.name=O),R&&(o["aria-describedby"]=N?`${De} ${Ae}`:De),N&&(o["aria-describedby"]=R?`${De} ${Ae}`:Ae),"error"===pe&&(o["aria-errormessage"]=Re,o["aria-invalid"]=!0);const l=x()({[`${sD}-field`]:!0,[`${sD}-field-${O}`]:Boolean(O),[T]:Boolean(T)}),c=x()({[`${sD}-field-main`]:!0});"inset"!==K||p||(o.insetLabel=s||i,o.insetLabelId=Ie,"object"!=typeof s||RT(s)||(o.insetLabel=s.text,o.insetLabelId=Ie));const h=u().createElement(e,Object.assign({},o));if(m)return h;if(F){let t=x()(j.className,{[`${sD}-field-pure`]:!0,[`${sD}-field-${O}`]:Boolean(O),[T]:Boolean(T)});return o.className=t,u().createElement(e,Object.assign({},o))}let d=G&&q;const g=W?`${sD}-col-${W}`:"";let y=null;if(!p&&"inset"!==K){let e="object"!=typeof s||RT(s)?{}:s;y=u().createElement(sw,Object.assign({text:s||i,id:Ie,required:_,name:Te||O||i,width:U,align:W},e))}const b=u().createElement("div",{className:c},"middle"===Y?a:null,h,f?null:u().createElement(UI,{error:ie,validateStatus:t,helpText:R,helpTextId:De,errorMessageId:Re,showValidateIcon:H.showValidateIcon}),"bottom"===Y?a:null),w=u().createElement(u().Fragment,null,"top"===K?u().createElement("div",{style:{overflow:"hidden"}},u().createElement(kx,Object.assign({},G,{className:g}),y)):u().createElement(kx,Object.assign({},G,{className:g}),y),u().createElement(kx,Object.assign({},q),b));return u().createElement("div",{className:l,style:I,"x-label-pos":K,"x-field-id":i,"x-extra-pos":Y},d?w:u().createElement(u().Fragment,null,y,b))},Me=[...Object.values(Oe),...Object.values(n),i,K,W,H.disabled];return V.shouldMemo?(0,h.useMemo)(Ne,[...Me]):Ne()};return n=(0,h.forwardRef)(n),n.displayName=function(e){const t=e.displayName||e.name;return t?`SemiField${t}`:"SemiField"}(e),n},lD=oD(gr,{maintainCursor:!0}),cD=oD(Fw,{maintainCursor:!0}),hD=oD(ww,{maintainCursor:!0}),uD=oD(bE);uD.Option=bE.Option,uD.OptGroup=bE.OptGroup;const dD=oD(jc),pD=oD(Nc,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),fD=oD(lS,{valuePath:"target.value"}),mD=oD(sS,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),gD=oD(zv),yD=oD(d_,{valueKey:"checked"}),vD=oD(LS),bD=oD(dO),xD=oD(oT),wD=oD(jp),CD=oD(vS),ED=oD(Or,{valueKey:"value",onKeyChangeFnName:"onChange"}),SD=oD(UT,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),_D=oD(Mp);var kD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const PD=nw.PREFIX;class OD extends f{constructor(e){super(e),this.state={formId:""},ye(Boolean(e.component&&e.render),"[Semi Form] You should not use <Form component> and <Form render> in ths same time; <Form render> will be ignored"),ye(e.component&&e.children&&!NT(e.children),"[Semi Form] You should not use <Form component> and <Form>{children}</Form> in ths same time; <Form>{children}</Form> will be ignored"),ye(e.render&&e.children&&!NT(e.children),"[Semi Form] You should not use <Form render> and <Form>{children}</Form> in ths same time; <Form>{children}</Form> will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new VI(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ze,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,n)=>{this.props.onSubmitFail(e,t,n)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:De()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(void 0===e)return this.props;if("string"==typeof e)return this.props[e];{const t={};return e.forEach((e=>{t[e]=this.props[e]})),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,n=t||e;return document.querySelectorAll(`form[x-form-id="${n}"] .${nw.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${nw.PREFIX}-field[x-field-id="${e}"]`),getFieldErrorDOM:e=>{const{formId:t}=this.state,{id:n}=this.props;let r=`form[x-form-id="${n||t}"] .${nw.PREFIX}-field[x-field-id="${e}"] .${nw.PREFIX}-field-error-message`;return document.querySelector(r)}})}get content(){const{children:e,component:t,render:n}=this.props,r=this.foundation.getFormState(),i={formState:r,formApi:this.foundation.getFormApi(),values:r.values};return t?u().createElement(t,i):n?n(i):"function"==typeof e?e(i):e}submit(e){e.preventDefault(),this.props.stopPropagation&&this.props.stopPropagation.submit&&e.stopPropagation(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.props.stopPropagation&&this.props.stopPropagation.reset&&e.stopPropagation(),this.foundation.reset()}render(){const e=this.foundation.getFormState(!1),t=this.foundation.getModifyFormStateApi(),{formId:n}=this.state,r=this.props,{children:i,getFormApi:s,onChange:a,onSubmit:o,onSubmitFail:l,onValueChange:c,component:h,render:d,validateFields:p,initValues:f,layout:m,style:g,className:y,labelPosition:v,labelWidth:b,labelAlign:w,labelCol:C,wrapperCol:E,allowEmpty:S,autoScrollToError:_,showValidateIcon:k,stopValidateWithError:P,extraTextPosition:O,id:T,trigger:I}=r,D=kD(r,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),A=x()(PD,y,{[PD+"-vertical"]:"vertical"===m,[PD+"-horizontal"]:"horizontal"===m}),R=E&&C,N=u().createElement("form",Object.assign({style:g},D,{onReset:this.reset,onSubmit:this.submit,className:A,id:T||n,"x-form-id":T||n}),this.content),M=u().createElement(Cx,null,N);return u().createElement(zI.Provider,{value:t},u().createElement(BI.Provider,{value:this.formApi},u().createElement($I.Provider,{value:e},R?M:N)))}}OD.propTypes={"aria-label":C().string,onSubmit:C().func,onSubmitFail:C().func,onChange:C().func,onReset:C().func,onValueChange:C().func,autoScrollToError:C().oneOfType([C().bool,C().object]),allowEmpty:C().bool,className:C().string,component:C().oneOfType([C().node,C().func]),disabled:C().bool,extraTextPosition:C().oneOf(rw.EXTRA_POS),getFormApi:C().func,initValues:C().object,validateFields:C().func,layout:C().oneOf(rw.LAYOUT),labelPosition:C().oneOf(rw.LABEL_POS),labelWidth:C().oneOfType([C().number,C().string]),labelAlign:C().oneOf(rw.LABEL_ALIGN),labelCol:C().object,render:C().func,style:C().object,showValidateIcon:C().bool,stopValidateWithError:C().bool,stopPropagation:C().shape({submit:C().bool,reset:C().bool}),id:C().string,wrapperCol:C().object,trigger:C().oneOfType([C().oneOf(["blur","change","custom","mount"]),C().arrayOf(C().oneOf(["blur","change","custom","mount"]))])},OD.defaultProps={onChange:i(),onSubmitFail:i(),onSubmit:i(),onReset:i(),onValueChange:i(),layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0},OD.Input=lD,OD.TextArea=hD,OD.InputNumber=cD,OD.Select=uD,OD.Checkbox=pD,OD.CheckboxGroup=dD,OD.Radio=mD,OD.RadioGroup=fD,OD.DatePicker=gD,OD.TimePicker=bD,OD.Switch=yD,OD.Slider=vD,OD.TreeSelect=xD,OD.Cascader=wD,OD.Rating=CD,OD.AutoComplete=ED,OD.Upload=SD,OD.TagInput=_D,OD.Slot=qI,OD.ErrorMessage=UI,OD.InputGroup=nD,OD.Label=sw,OD.Section=XI;const TD=OD;function ID(){return(0,h.useContext)(BI)}const DD=function(e){return((e,t)=>({getError:()=>e.getError(t),setError:n=>e.setError(t,n),getTouched:()=>e.getTouched(t),setTouched:n=>e.setTouched(t,n),getValue:()=>e.getValue(t),setValue:n=>e.setValue(t,n)}))(ID(),e)};const AD=function(e){return((e,t)=>({value:lf(e.values,t),error:lf(e.errors,t),touched:lf(e.touched,t)}))(ZI(),e)};const RD=function(e){let t=(t,n)=>u().createElement($I.Consumer,null,(r=>u().createElement(e,Object.assign({formState:r,ref:n},t))));return t=(0,h.forwardRef)(t),t};const ND=function(e){let t=(t,n)=>u().createElement(BI.Consumer,null,(r=>u().createElement(e,Object.assign({formApi:r,ref:n},t))));return t=(0,h.forwardRef)(t),t},MD=(e,t)=>{const n=(e=>e.map((()=>De())))((e=>{const t=[];return Array.isArray(e)?e:(ye(!le()(e),"[Semi Form ArrayField] initValue of ArrayField must be an array. Please check the type of your props"),t)})(e)),r=n.map(((e,n)=>t&&t[n]?t[n]:e));return r};class FD extends h.Component{constructor(e,t){super(e,t);const n=this.props.initValue,{field:r}=this.props,i=t.getValue(r),s=n||i;this.state={keys:MD(s)},this.add=this.add.bind(this),this.addWithInitValue=this.addWithInitValue.bind(this),this.remove=this.remove.bind(this),this.cacheFieldValues=null,this.cacheUpdateKey=null,this.shouldUseInitValue=!t.getArrayField(r);const a=py(s),o=py(s);t.registerArrayField(r,o),t.updateStateValue(r,a,{notNotify:!0,notUpdate:!0})}componentWillUnmount(){const e=this.context,{field:t}=this.props;e.unRegisterArrayField(t)}componentDidUpdate(){const e=this.context,{field:t}=this.props,{keys:n}=this.state,r=e.getValue(t),i=(e=>{if(e)return e&&e.updateKey?e.updateKey:void 0})(e.getArrayField(t));if(i!==this.cacheUpdateKey){const e=MD(r,n);this.setState({keys:e}),this.cacheUpdateKey=i,null!==this.cacheUpdateKey&&(this.shouldUseInitValue=!1)}}add(){const{keys:e}=this.state;e.push(De()),this.shouldUseInitValue=!0,this.setState({keys:e})}addWithInitValue(e){const t=this.context,{field:n}=this.props,r=t.getValue(n)?t.getValue(n).slice():[],i=py(e);r.push(i),t.updateStateValue(n,r,{}),t.updateArrayField(n,{updateKey:(new Date).valueOf()})}remove(e){const t=this.context,{keys:n}=this.state,{field:r}=this.props,i=((e,t)=>e.filter(((e,n)=>n!==t)))(n,e);let s=t.getError(r);const a={notNotify:!0,notUpdate:!0};Array.isArray(s)&&(s=s.slice(),s.splice(e,1),t.updateStateError(r,s,a));let o=t.getValue(r);Array.isArray(o)&&(o=o.slice(),o.splice(e,1),t.updateStateValue(r,o)),this.setState({keys:i})}render(){const{children:e,field:t}=this.props,{keys:n}=this.state,r=n.map(((e,n)=>({key:e,field:`${t}[${n}]`,remove:()=>this.remove(n)}))),{add:i}=this,{addWithInitValue:s}=this,a={shouldUseInitValue:this.shouldUseInitValue};return u().createElement(HI.Provider,{value:a},e({arrayFields:r,add:i,addWithInitValue:s}))}}FD.contextType=zI;const LD=FD,jD={PREFIX:`${E}-image`};const VD=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.9998 12.0001C22.9998 18.0753 18.0749 23.0001 11.9998 23.0001C5.92463 23.0001 0.999756 18.0753 0.999756 12.0001C0.999756 5.92499 5.92463 1.00012 11.9998 1.00012C18.0749 1.00012 22.9998 5.92499 22.9998 12.0001ZM13.4998 17.5C13.4998 16.6718 12.8282 16.0001 11.9998 16.0001C11.1713 16.0001 10.4998 16.6718 10.4998 17.5C10.4998 18.3285 11.1713 19 11.9998 19C12.8282 19 13.4998 18.3285 13.4998 17.5ZM11.9998 5.00011C10.9136 5.00011 10.0505 5.91257 10.1107 6.99704L10.4166 12.5024C10.4632 13.3427 11.1582 14.0001 11.9998 14.0001C12.8413 14.0001 13.5363 13.3427 13.583 12.5024L13.8888 6.99704C13.9491 5.91257 13.0859 5.00011 11.9998 5.00011Z",fill:"currentColor"}))}),"upload_error");const $D=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 12.8284 22.3284 13.5 21.5 13.5L6.12132 13.5L12.5607 19.9393C13.1464 20.5251 13.1464 21.4749 12.5607 22.0607C11.9749 22.6464 11.0251 22.6464 10.4393 22.0607L1.43934 13.0607C0.853554 12.4749 0.853554 11.5251 1.43934 10.9393L10.4393 1.93934C11.0251 1.35355 11.9749 1.35355 12.5607 1.93934C13.1464 2.52513 13.1464 3.47487 12.5607 4.06066L6.12132 10.5L21.5 10.5C22.3284 10.5 23 11.1716 23 12Z",fill:"currentColor"}))}),"arrow_left");const BD=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12C1 11.1716 1.67157 10.5 2.5 10.5L17.8787 10.5L11.4393 4.06066C10.8536 3.47487 10.8536 2.52513 11.4393 1.93934C12.0251 1.35355 12.9749 1.35355 13.5607 1.93934L22.5607 10.9393C23.1464 11.5251 23.1464 12.4749 22.5607 13.0607L13.5607 22.0607C12.9749 22.6464 12.0251 22.6464 11.4393 22.0607C10.8536 21.4749 10.8536 20.5251 11.4393 19.9393L17.8787 13.5L2.5 13.5C1.67157 13.5 1 12.8284 1 12Z",fill:"currentColor"}))}),"arrow_right"),zD=(0,h.createContext)({}),HD=`${jD.PREFIX}-preview-header`,KD=(0,h.forwardRef)(((e,t)=>{let{onClose:n,titleStyle:r,className:i,renderHeader:s,closable:a}=e;return u().createElement(zD.Consumer,null,(e=>{let o,{currentIndex:l,titles:c}=e;return c&&"number"==typeof l&&(o=c[l]),u().createElement("section",{ref:t,className:x()(HD,i)},u().createElement("section",{className:`${HD}-title`,style:r},s?s(o):o),a&&u().createElement("section",{className:`${HD}-close`,onMouseUp:n},u().createElement(Ri,null)))}))})),UD=KD;const WD=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M2 12C2 11.1716 2.67157 10.5 3.5 10.5H20.5C21.3284 10.5 22 11.1716 22 12C22 12.8284 21.3284 13.5 20.5 13.5H3.5C2.67157 13.5 2 12.8284 2 12Z",fill:"currentColor"}))}),"minus");const GD=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M20.5 13.5C21.3284 13.5 22 12.8284 22 12C22 11.1716 21.3284 10.5 20.5 10.5L13.5 10.5L13.5 3.5C13.5 2.67157 12.8284 2 12 2C11.1716 2 10.5 2.67157 10.5 3.5L10.5 10.5L3.5 10.5C2.67157 10.5 2 11.1716 2 12C2 12.8284 2.67157 13.5 3.5 13.5L10.5 13.5V20.5C10.5 21.3284 11.1716 22 12 22C12.8284 22 13.5 21.3284 13.5 20.5V13.5L20.5 13.5Z",fill:"currentColor"}))}),"plus");const qD=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 6C1 4.89543 1.89543 4 3 4H21C22.1046 4 23 4.89543 23 6V18C23 19.1046 22.1046 20 21 20H3C1.89543 20 1 19.1046 1 18V6ZM21 6L3 6V18H21V6ZM5 9C5 8.44772 5.44772 8 6 8H7.5C8.05228 8 8.5 8.44772 8.5 9V15C8.5 15.5523 8.05228 16 7.5 16C6.94772 16 6.5 15.5523 6.5 15V10H6C5.44772 10 5 9.55228 5 9ZM16 8C15.4477 8 15 8.44772 15 9C15 9.55228 15.4477 10 16 10H16.5V15C16.5 15.5523 16.9477 16 17.5 16C18.0523 16 18.5 15.5523 18.5 15V9C18.5 8.44772 18.0523 8 17.5 8H16ZM13 10C13 10.5523 12.5523 11 12 11C11.4477 11 11 10.5523 11 10C11 9.44772 11.4477 9 12 9C12.5523 9 13 9.44772 13 10ZM12 15C12.5523 15 13 14.5523 13 14C13 13.4477 12.5523 13 12 13C11.4477 13 11 13.4477 11 14C11 14.5523 11.4477 15 12 15Z",fill:"currentColor"}))}),"real_size_stroked");const YD=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10C20.4477 10 20 9.55229 20 9V4H15C14.4477 4 14 3.55229 14 3ZM10 21C10 21.5523 9.55229 22 9 22H3C2.44772 22 2 21.5523 2 21V15C2 14.4477 2.44772 14 3 14C3.55228 14 4 14.4477 4 15L4 20H9C9.55229 20 10 20.4477 10 21ZM2 9C2 9.55228 2.44772 10 3 10C3.55229 10 4 9.55228 4 9L4 4L9 4C9.55229 4 10 3.55228 10 3C10 2.44771 9.55229 2 9 2H3C2.44772 2 2 2.44772 2 3V9ZM21 14C21.5523 14 22 14.4477 22 15V21C22 21.5523 21.5523 22 21 22H15C14.4477 22 14 21.5523 14 21C14 20.4477 14.4477 20 15 20H20V15C20 14.4477 20.4477 14 21 14ZM8.5 7.5C7.94772 7.5 7.5 7.94772 7.5 8.5V15.5C7.5 16.0523 7.94772 16.5 8.5 16.5H15.5C16.0523 16.5 16.5 16.0523 16.5 15.5V8.5C16.5 7.94772 16.0523 7.5 15.5 7.5H8.5ZM9.5 14.5V9.5H14.5V14.5H9.5Z",fill:"currentColor"}))}),"window_adaption_stroked");const XD=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{d:"M14.2071 2.20711C14.5976 1.81658 14.5976 1.18342 14.2071 0.792893C13.8166 0.402369 13.1834 0.402369 12.7929 0.792893L10.2929 3.29289C9.90237 3.68342 9.90237 4.31658 10.2929 4.70711L12.7929 7.20711C13.1834 7.59763 13.8166 7.59763 14.2071 7.20711C14.5976 6.81658 14.5976 6.18342 14.2071 5.79289L13.4142 5H16C18.7614 5 21 7.23858 21 10V12C21 12.5523 21.4477 13 22 13C22.5523 13 23 12.5523 23 12V10C23 6.13401 19.866 3 16 3H13.4142L14.2071 2.20711Z",fill:"currentColor"}),h.createElement("path",{d:"M3 10C3 8.89543 3.89543 8 5 8H17C18.1046 8 19 8.89543 19 10V20C19 21.1046 18.1046 22 17 22H5C3.89543 22 3 21.1046 3 20V10Z",fill:"currentColor"}))}),"rotate");const ZD=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM11.6799 17.7333C11.8653 17.8878 12.1347 17.8878 12.3201 17.7333L17.4695 13.4421C17.6492 13.2924 17.5433 13 17.3095 13H14V9.5C14 9.22386 13.7761 9 13.5 9H10.5C10.2239 9 10 9.22386 10 9.5V13H6.69051C6.45669 13 6.35084 13.2924 6.53047 13.4421L11.6799 17.7333Z",fill:"currentColor"}))}),"download");class JD extends c{constructor(){super(...arguments),this.changeSliderValue=e=>{const{zoom:t,step:n,min:r,max:i}=this.getProps();let s="plus"===e?t+n:t-n;s>i?s=i:s<r&&(s=r),this.handleValueChange(s)},this.handleValueChange=e=>{const{onZoomIn:t,onZoomOut:n,zoom:r}=this.getProps();e>r?t(Number((e/100).toFixed(2))):n(Number((e/100).toFixed(2)))},this.handleRatioClick=()=>{const{ratio:e,onAdjustRatio:t}=this.getProps();t("adaptation"===e?"realSize":"adaptation")},this.handleRotate=e=>{const{onRotate:t}=this.getProps();t&&t(e)}}}const QD=`${jD.PREFIX}-preview-footer`;class eA extends f{get adapter(){return Object.assign({},super.adapter)}constructor(e){super(e),this.changeSliderValue=e=>{this.foundation.changeSliderValue(e)},this.handleMinusClick=()=>{this.changeSliderValue("minus")},this.handlePlusClick=()=>{this.changeSliderValue("plus")},this.handleRotateLeft=()=>{this.foundation.handleRotate("left")},this.handleRotateRight=()=>{this.foundation.handleRotate("right")},this.handleSlideChange=g()((e=>{this.foundation.handleValueChange(e)}),50),this.handleRatioClick=()=>{this.foundation.handleRatioClick()},this.customRenderViewMenu=()=>{const{min:e,max:t,step:n,curPage:r,totalNum:i,ratio:s,zoom:a,disabledPrev:o,disabledNext:l,disableDownload:c,onNext:h,onPrev:u,onDownload:d,renderPreviewMenu:p}=this.props;return p({min:e,max:t,step:n,curPage:r,totalNum:i,ratio:s,zoom:a,disabledPrev:o,disabledNext:l,disableDownload:c,onNext:h,onPrev:u,onDownload:d,onRotateLeft:this.handleRotateLeft,onRotateRight:this.handleRotateRight,disabledZoomIn:a===t,disabledZoomOut:a===e,onRatioClick:this.handleRatioClick,onZoomIn:this.handlePlusClick,onZoomOut:this.handleMinusClick,menuItems:this.getMenu()})},this.getFinalIconElement=(e,t,n)=>{const{showTooltip:r,zIndex:i}=this.props;return r?u().createElement(ft,{content:t,key:`tooltip-${n}`,zIndex:i+1},e):e},this.getLocalTextByKey=e=>u().createElement(Bt,{componentName:"Image"},(t=>t[e])),this.getIconChevronLeft=()=>{const{disabledPrev:e,onPrev:t,prevTip:n}=this.props,r=u().createElement(dl,{key:"chevron-left",size:"large",className:e?`${QD}-disabled`:"",onClick:e?void 0:t}),i=null!=n?n:this.getLocalTextByKey("prevTip");return this.getFinalIconElement(r,i,"chevron-left")},this.getIconChevronRight=()=>{const{disabledNext:e,onNext:t,nextTip:n}=this.props,r=u().createElement(pl,{key:"chevron-right",size:"large",className:e?`${QD}-disabled`:"",onClick:e?void 0:t}),i=null!=n?n:this.getLocalTextByKey("nextTip");return this.getFinalIconElement(r,i,"chevron-right")},this.getIconMinus=()=>{const{zoomOutTip:e,zoom:t,min:n}=this.props,r=t===n,i=u().createElement(WD,{key:"minus",size:"large",onClick:r?void 0:this.handleMinusClick,className:r?`${QD}-disabled`:""}),s=null!=e?e:this.getLocalTextByKey("zoomOutTip");return this.getFinalIconElement(i,s,"minus")},this.getIconPlus=()=>{const{zoomInTip:e,zoom:t,max:n}=this.props,r=t===n,i=u().createElement(GD,{key:"plus",size:"large",onClick:r?void 0:this.handlePlusClick,className:r?`${QD}-disabled`:""}),s=null!=e?e:this.getLocalTextByKey("zoomInTip");return this.getFinalIconElement(i,s,"plus")},this.getIconRatio=()=>{const{ratio:e,originTip:t,adaptiveTip:n}=this.props,r={key:"ratio",size:"large",className:x()(`${QD}-gap`),onClick:this.handleRatioClick},i="adaptation"===e?u().createElement(qD,Object.assign({},r)):u().createElement(YD,Object.assign({},r));let s;return s="adaptation"===e?null!=t?t:this.getLocalTextByKey("originTip"):null!=n?n:this.getLocalTextByKey("adaptiveTip"),this.getFinalIconElement(i,s,"ratio")},this.getIconRotate=()=>{const{rotateTip:e}=this.props,t=u().createElement(XD,{key:"rotate",size:"large",onClick:this.handleRotateLeft}),n=null!=e?e:this.getLocalTextByKey("rotateTip");return this.getFinalIconElement(t,n,"rotate")},this.getIconDownload=()=>{const{downloadTip:e,onDownload:t,disableDownload:n}=this.props,r=u().createElement(ZD,{key:"download",size:"large",onClick:n?void 0:t,className:x()(`${QD}-gap`,{[`${QD}-disabled`]:n})}),i=null!=e?e:this.getLocalTextByKey("downloadTip");return this.getFinalIconElement(r,i,"download")},this.getNumberInfo=()=>{const{curPage:e,totalNum:t}=this.props;return u().createElement("div",{className:`${QD}-page`,key:"info"},e,"/",t)},this.getSlider=()=>{const{zoom:e,min:t,max:n,step:r,showTooltip:i}=this.props;return u().createElement(LS,{key:"slider",value:e,min:t,max:n,step:r,tipFormatter:e=>`${e}%`,tooltipVisible:!!i&&void 0,onChange:this.handleSlideChange})},this.getMenu=()=>[this.getIconChevronLeft(),this.getNumberInfo(),this.getIconChevronRight(),this.getIconMinus(),this.getSlider(),this.getIconPlus(),this.getIconRatio(),this.getIconRotate(),this.getIconDownload()],this.getFooterMenu=()=>{const e=this.getMenu();return e.splice(3,0,u().createElement(cb,{layout:"vertical",key:"divider-first"})),e.splice(8,0,u().createElement(cb,{layout:"vertical",key:"divider-second"})),e},this.foundation=new JD(this.adapter)}render(){const{className:e,renderPreviewMenu:t,forwardRef:n}=this.props,r=x()(QD,`${QD}-wrapper`,e,{[`${QD}-content`]:!Boolean(t)});return u().createElement("section",{className:r,ref:n},t?this.customRenderViewMenu():this.getFooterMenu())}}eA.propTypes={curPage:C().number,totalNum:C().number,disabledPrev:C().bool,disabledNext:C().bool,disableDownload:C().bool,className:C().string,zoom:C().number,ratio:C().string,prevTip:C().string,nextTip:C().string,zoomInTip:C().string,zoomOutTip:C().string,rotateTip:C().string,downloadTip:C().string,adaptiveTip:C().string,originTip:C().string,showTooltip:C().bool,onZoomIn:C().func,onZoomOut:C().func,onPrev:C().func,onNext:C().func,onAdjustRatio:C().func,onRotateLeft:C().func,onDownload:C().func},eA.defaultProps={min:10,max:500,step:10,showTooltip:!1,disableDownload:!1};class tA extends c{constructor(e){var t;super(Object.assign({},e)),t=this,this.startMouseClientPosition={x:0,y:0},this.originImageWidth=null,this.originImageHeight=null,this.containerWidth=0,this.containerHeight=0,this._isImageVertical=()=>this.getProp("rotation")%180!=0,this._getContainerBoundingRectSize=()=>{const e=this._adapter.getContainer();e&&(this.containerWidth=e.clientWidth,this.containerHeight=e.clientHeight)},this._getAdaptationZoom=()=>{let e=1;if(this._adapter.getContainer()&&this.originImageWidth&&this.originImageHeight){const{rotation:t}=this.getProps(),{width:n,height:r}=this.calcBoundingRectSize(this.originImageWidth,this.originImageHeight,t),i=this.containerWidth-80,s=this.containerHeight-80;e=Number(Math.min(i/n,s/r).toFixed(2))}return e},this._getInitialZoom=()=>{const{ratio:e}=this.getProps();let t=1;return"adaptation"===e&&(t=this._getAdaptationZoom()),t},this.setLoading=e=>{this._adapter.setLoading(e)},this.handleWindowResize=()=>{this._getContainerBoundingRectSize(),this.initializeImage()},this.handleLoad=e=>{if(e.target){const{naturalWidth:t,naturalHeight:n}=e.target;this.originImageHeight=n,this.originImageWidth=t,this.setState({loading:!1}),this.initializeImage(!1)}const{src:t,onLoad:n}=this.getProps();n&&n(t)},this.handleError=e=>{const{onError:t,src:n}=this.getProps();this.setState({loading:!1}),t&&t(n)},this.handleRatioChange=()=>{this.initializeImage()},this.initializeImageZoom=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{currZoom:n}=t.getStates(),{onZoom:r}=t.getProps(),i=t._getInitialZoom();n!==i?r(i,e):t.changeZoom(i)},this.initializeTranslate=()=>{this.setState({translate:{x:0,y:0}})},this.initializeImage=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t.initializeImageZoom(e),t.initializeTranslate()},this.handleRightClickImage=e=>{const{disableDownload:t}=this.getProps();return!t||(e.preventDefault(),e.stopPropagation(),!1)},this.getCanDragDirection=(e,t)=>{let n=e>this.containerWidth;return{canDragVertical:t>this.containerHeight,canDragHorizontal:n}},this.changeZoom=(e,t)=>{const n=this._adapter.getImage(),{currZoom:r,translate:i,width:s,height:a}=this.getStates(),{rotation:o}=this.getProps(),l=e/(r||1),c=Math.floor(this.originImageWidth*e),h=Math.floor(this.originImageHeight*e);let u=Math.floor(i.x*l),d=Math.floor(i.y*l);const p=this.calcBoundingRectSize(s,a,o),f={width:p.width*l,height:p.height*l};if(t&&n&&t.target===n){let n=o%360;switch(n<0&&(n=360+n),n){case 0:u=(t.offsetX-.5*s)*(1-e/r)+i.x,d=(t.offsetY-.5*a)*(1-e/r)+i.y;break;case 90:u=(.5*a-t.offsetY)*(1-e/r)+i.x,d=(t.offsetX-.5*s)*(1-e/r)+i.y;break;case 180:u=(.5*s-t.offsetX)*(1-e/r)+i.x,d=(.5*a-t.offsetY)*(1-e/r)+i.y;break;case 270:u=(t.offsetY-.5*a)*(1-e/r)+i.x,d=(.5*s-t.offsetX)*(1-e/r)+i.y}}const m=this.getSafeTranslate(f.width,f.height,u,d);if(this.setState({translate:m,width:c,height:h,currZoom:e}),n){const{canDragVertical:e,canDragHorizontal:t}=this.getCanDragDirection(f.width,f.height),n=e||t;this._adapter.setImageCursor(n)}},this.getExtremeTranslate=(e,t)=>({x:(e-this.containerWidth)/2,y:(t-this.containerHeight)/2}),this.getSafeTranslate=(e,t,n,r)=>{const{x:i,y:s}=this.getExtremeTranslate(e,t),{canDragVertical:a,canDragHorizontal:o}=this.getCanDragDirection(e,t);let l=0,c=0;return o&&(l=n>0?Math.min(n,i):Math.max(n,-i)),a&&(c=r>0?Math.min(r,s):Math.max(r,-s)),{x:l,y:c}},this.handleImageMove=e=>{1===e.buttons&&this.moveImage(e)},this.moveImage=e=>{const{clientX:t,clientY:n}=e,{width:r,height:i,translate:s}=this.getStates(),{rotation:a}=this.getProps(),o=this.calcBoundingRectSize(r,i,a),{canDragVertical:l,canDragHorizontal:c}=this.getCanDragDirection(o.width,o.height);if(l||c){let e=c?s.x+t-this.startMouseClientPosition.x:s.x,r=l?s.y+n-this.startMouseClientPosition.y:s.y;const i=this.getSafeTranslate(o.width,o.height,e,r);this.setState({translate:i}),this.startMouseClientPosition={x:t,y:n}}},this.handleImageMouseDown=e=>{this.startMouseClientPosition={x:e.clientX,y:e.clientY}},this.calcBoundingRectMouseOffset=e=>{const{width:t,height:n,offset:r,rotation:i=0}=e;let s=i%360;s=s>=0?s:360+s;let a=0,o=0;switch(s){case 0:a=r.x,o=r.y;break;case 90:a=n-r.y,o=r.x;break;case 180:a=t-r.x,o=n-r.y;break;case 270:a=r.y,o=t-r.x}return{x:a,y:o}}}init(){this._getContainerBoundingRectSize()}calcBoundingRectSize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)*Math.PI/180,r=Math.abs(Math.sin(n)),i=Math.abs(Math.cos(n));return{width:e*i+t*r,height:e*r+t*i}}}const nA=`${jD.PREFIX}-preview-image`;class rA extends f{get adapter(){return Object.assign(Object.assign({},super.adapter),{getContainer:()=>this.containerRef.current,getImage:()=>this.imageRef.current,setLoading:e=>{this.setState({loading:e})},setImageCursor:e=>{this.imageRef.current.style.cursor=e?"grab":"default"}})}constructor(e){super(e),this.onWindowResize=()=>{this.foundation.handleWindowResize()},this.handleRightClickImage=e=>{this.foundation.handleRightClickImage(e)},this.handleLoad=e=>{this.foundation.handleLoad(e)},this.handleError=e=>{this.foundation.handleError(e)},this.handleImageMove=e=>{this.foundation.handleImageMove(e)},this.handleMouseDown=e=>{this.foundation.handleImageMouseDown(e)},this.state={width:0,height:0,loading:!0,translate:{x:0,y:0},currZoom:this.props.zoom},this.containerRef=u().createRef(),this.imageRef=u().createRef(),this.foundation=new tA(this.adapter)}componentDidMount(){this.foundation.init(),window.addEventListener("resize",this.onWindowResize)}componentWillUnmount(){window.removeEventListener("resize",this.onWindowResize)}componentDidUpdate(e,t){const n="zoom"in this.props&&this.props.zoom!==this.state.currZoom,r=this.props.src&&this.props.src!==e.src;r&&this.foundation.setLoading(!0),n||r||!e||("ratio"in this.props&&this.props.ratio!==e.ratio&&this.foundation.handleRatioChange(),"rotation"in this.props&&this.props.rotation!==e.rotation&&this.onWindowResize())}render(){const{src:e,rotation:t,crossOrigin:n}=this.props,{loading:r,width:i,height:s,translate:a}=this.state,o={position:"absolute",visibility:r?"hidden":"visible",transform:`translate(${a.x}px, ${a.y}px) rotate(${t}deg)`,width:i,height:s};return u().createElement("div",{className:`${nA}`,ref:this.containerRef},u().createElement("img",{ref:this.imageRef,src:e,alt:"previewImag",className:`${nA}-img`,key:e,onMouseMove:this.handleImageMove,onMouseDown:this.handleMouseDown,onContextMenu:this.handleRightClickImage,onDragStart:e=>e.preventDefault(),onLoad:this.handleLoad,onError:this.handleError,style:o,crossOrigin:n}),r&&u().createElement(tr,{size:"large",wrapperClassName:`${nA}-spin`}))}}rA.propTypes={src:C().string,rotation:C().number,style:C().object,zoom:C().number,ratio:C().string,disableDownload:C().bool,clickZoom:C().number,setRatio:C().func,onZoom:C().func,onLoad:C().func,onError:C().func},rA.defaultProps={zoom:void 0};var iA=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))};const sA=(e,t,n,r)=>{const i=t-n,s=t+n,a=e.length;let o=[],l=[];n>=Math.floor(a/2)?r?(o=e.concat(e).slice(i+a<0?0:i+a,t+a),l=e.concat(e).slice(t+1,s+1<2*a?s+1:2*a)):(o=e.slice(0,t),l=e.slice(t+1,a)):r?(o=e.concat(e).slice(i+a,t+a),l=e.concat(e).slice(t+1,s+1)):i>=0&&s<a?(o=e.slice(i,t),l=e.slice(t+1,s+1)):i<0?(o=e.slice(0,t),l=e.slice(t+1,2*n+1)):(l=e.slice(t+1,a),o=e.slice(a-2*n-1,t));const c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];const r=e.length,i=t.length;return new Array(r<=i?r:i).fill(0).forEach(((r,i)=>{n.push(t[i]),n.push(e[i])})),r>i?n=n.concat(e.slice(i,r)):r<i&&(n=n.concat(t.slice(r,i))),n}(o.reverse(),l);return Array.from(new Set(c))},aA=["icon","footer"];class oA extends c{constructor(e){var t;super(Object.assign({},e)),t=this,this._timer=null,this._startMouseDown={x:0,y:0},this.handleViewVisibleChange=()=>{const{viewerVisible:e}=this.getStates();e&&(this.setState({viewerVisible:!1}),this.clearTimer())},this.handleMouseMove=e=>{this._persistEvent(e),this.mouseMoveHandler(e)},this.mouseMoveHandler=g()((e=>{const{viewerVisible:t}=this.getStates();this._adapter.isValidTarget(e)?(t||this.setState({viewerVisible:!0}),this.updateTimer()):this.clearTimer()}),50),this.updateTimer=()=>{const{viewerVisibleDelay:e}=this.getProps();this.clearTimer(),this._timer=setTimeout(this.handleViewVisibleChange,e)},this.clearTimer=()=>{this._timer&&(clearTimeout(this._timer),this._timer=null)},this.handleWheel=e=>{this.onWheel(e),Ce(e)},this.onWheel=e=>{const{zoomStep:t,maxZoom:n,minZoom:r}=this.getProps(),{zoom:i}=this.getStates();let s;e.deltaY<0?i+t<=n&&(s=Number((i+t).toFixed(2))):e.deltaY>0&&i-t>=r&&(s=Number((i-t).toFixed(2))),le()(s)||this.handleZoomImage(s,!0,e)},this.handleMouseUp=e=>{const{maskClosable:t}=this.getProps();let n=!((e,t)=>{const n=null==e?void 0:e.composedPath(),r=null==n?void 0:n.slice(0,n.length-4).some((e=>!(!e.className||"string"!=typeof e.className)&&t.some((t=>e.className.includes(t)))));return r})(e,aA);const{clientX:r,clientY:i}=e,{x:s,y:a}=this._startMouseDown;(Math.abs(r-s)>5||Math.abs(a-i)>5)&&(n=!1),n&&t&&this._adapter.notifyVisibleChange(!1)},this.handleMouseDown=e=>{const{clientX:t,clientY:n}=e;this._startMouseDown={x:t,y:n}},this.handleKeyDown=e=>{const{closeOnEsc:t}=this.getProps();if(t&&e.keyCode===Zt.ESC)return e.stopPropagation(),this._adapter.notifyVisibleChange(!1),void this._adapter.notifyClose()},this.handleSwitchImage=e=>{const t="prev"===e?-1:1,{imgSrc:n,currentIndex:r}=this.getStates(),i=n.length,s=(r+t+i)%i;if("currentIndex"in this.getProps()){if(this._adapter.getIsInGroup()){this._adapter.getContext("setCurrentIndex")(s)}}else this.setState({currentIndex:s});this._adapter.notifyChange(s,e),this.setState({direction:e,rotation:0})},this.handleDownload=()=>{const{currentIndex:e,imgSrc:t}=this.getStates(),n=this._adapter.getSetDownloadFunc(),r=t[e],i=n?n(r):r.slice(r.lastIndexOf("/")+1).split("?")[0];((e,t,n)=>{iA(void 0,void 0,void 0,(function*(){try{const r=yield fetch(e);if(r.ok){const e=yield r.blob(),n=URL.createObjectURL(e),i=document.createElement("a");i.href=n,i.download=t,i.click(),URL.revokeObjectURL(n),i.remove()}else n(e)}catch(t){n(e)}}))})(r,i,this._adapter.notifyDownloadError),this._adapter.notifyDownload(r,e)},this.handlePreviewClose=e=>{this._adapter.notifyVisibleChange(!1),this._adapter.notifyClose(),Ce(e)},this.handleAdjustRatio=e=>{this.setState({ratio:e}),this._adapter.notifyRatioChange(e)},this.handleRotateImage=e=>{const{rotation:t}=this.getStates(),n=t+("left"===e?-90:90);this.setState({rotation:n}),this._adapter.notifyRotateChange(n)},this.handleZoomImage=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;const{zoom:i}=t.getStates();i!==e&&(n&&t._adapter.notifyZoom(e,e>i),t._adapter.changeImageZoom(e,r),t.setState({zoom:e}))},this.preloadGapImage=()=>{const{preLoad:e,preLoadGap:t,infinite:n,currentIndex:r}=this.getProps(),{imgSrc:i}=this.getStates();if(!e||"number"!=typeof t||t<1)return;const s=sA(i,r,t,n);if(0===s.length)return;const a=new Image;let o=0;function l(e){o++,o<s.length&&(a.src=s[o])}a.onload=e=>{this.setLoadSuccessStatus(a.src),l()},a.onerror=l,a.src=s[0]},this.preloadSingleImage=()=>{const{preLoad:e,preLoadGap:t,infinite:n}=this.getProps(),{imgSrc:r,currentIndex:i,direction:s,imgLoadStatus:a}=this.getStates();if(!e||"number"!=typeof t||t<1)return;let o=i+("prev"===s?-1:1)*t;if(o<0||o>=r.length){if(!n)return;o=(o+r.length)%r.length}if(!a[o]){const e=new Image;e.onload=e=>{this.setLoadSuccessStatus(r[o])},e.src=r[o]}},this.setLoadSuccessStatus=e=>{const{imgLoadStatus:t}=this.getStates(),n=Object.assign({},t);n[e]=!0,this.setState({imgLoadStatus:n})},this.onImageLoad=e=>{const{preloadAfterVisibleChange:t}=this.getStates();this.setLoadSuccessStatus(e),t?(this.preloadGapImage(),this.setState({preloadAfterVisibleChange:!1})):this.preloadSingleImage()}}beforeShow(){this._adapter.registerKeyDownListener(),this._adapter.disabledBodyScroll(),this.updateTimer()}afterHide(){this._adapter.unregisterKeyDownListener(),this._adapter.enabledBodyScroll(),this.clearTimer()}}const lA=jD.PREFIX;class cA extends f{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getIsInGroup:()=>this.isInGroup(),disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",e||"hidden"===this.bodyOverflow||(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;e||"hidden"===this.bodyOverflow||(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyChange:(e,t)=>{const{onChange:n,onPrev:r,onNext:i}=this.props;J()(n)&&n(e),"prev"===t?r&&r(e):i&&i(e)},notifyZoom:(e,t)=>{const{onZoomIn:n,onZoomOut:r}=this.props;t?J()(n)&&n(e):J()(r)&&r(e)},notifyClose:()=>{const{onClose:e}=this.props;J()(e)&&e()},notifyVisibleChange:e=>{const{onVisibleChange:t}=this.props;J()(t)&&t(e)},notifyRatioChange:e=>{const{onRatioChange:t}=this.props;J()(t)&&t(e)},notifyRotateChange:e=>{const{onRotateLeft:t}=this.props;J()(t)&&t(e)},notifyDownload:(e,t)=>{const{onDownload:n}=this.props;J()(n)&&n(e,t)},notifyDownloadError:e=>{const{onDownloadError:t}=this.props;J()(t)&&t(e)},registerKeyDownListener:()=>{window&&window.addEventListener("keydown",this.handleKeyDown)},unregisterKeyDownListener:()=>{window&&window.removeEventListener("keydown",this.handleKeyDown)},getSetDownloadFunc:()=>{var e,t;return null!==(t=null===(e=this.context)||void 0===e?void 0:e.setDownloadName)&&void 0!==t?t:this.props.setDownloadName},isValidTarget:e=>{const t=this.headerRef&&this.headerRef.current,n=this.footerRef&&this.footerRef.current,r=this.leftIconRef&&this.leftIconRef.current,i=this.rightIconRef&&this.rightIconRef.current,s=e.target;return!(t&&t.contains(s)||n&&n.contains(s)||r&&r.contains(s)||i&&i.contains(s))},changeImageZoom:function(){var t;(null===(t=e.imageRef)||void 0===t?void 0:t.current)&&e.imageRef.current.foundation.changeZoom(...arguments)}})}constructor(e){var t;super(e),t=this,this.viewVisibleChange=()=>{this.foundation.handleViewVisibleChange()},this.handleSwitchImage=e=>{this.foundation.handleSwitchImage(e)},this.handleDownload=()=>{this.foundation.handleDownload()},this.handlePreviewClose=e=>{this.foundation.handlePreviewClose(e)},this.handleAdjustRatio=e=>{this.foundation.handleAdjustRatio(e)},this.handleRotateImage=e=>{this.foundation.handleRotateImage(e)},this.handleZoomImage=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.foundation.handleZoomImage(e,n)},this.handleMouseUp=e=>{this.foundation.handleMouseUp(e.nativeEvent)},this.handleMouseMove=e=>{this.foundation.handleMouseMove(e)},this.handleKeyDown=e=>{this.foundation.handleKeyDown(e)},this.onImageError=()=>{this.foundation.preloadSingleImage()},this.onImageLoad=e=>{this.foundation.onImageLoad(e)},this.handleMouseDown=e=>{this.foundation.handleMouseDown(e)},this.handleWheel=e=>{this.foundation.handleWheel(e)},this.registryImageWrapRef=e=>{this.imageWrapRef&&this.imageWrapRef.removeEventListener("wheel",this.handleWheel),e&&e.addEventListener("wheel",this.handleWheel,{passive:!1}),this.imageWrapRef=e},this.state={imgSrc:[],imgLoadStatus:new Map,zoom:.1,currentIndex:0,ratio:"adaptation",rotation:0,viewerVisible:!0,visible:!1,preloadAfterVisibleChange:!0,direction:""},this.foundation=new oA(this.adapter),this.bodyOverflow="",this.originBodyWidth="100%",this.scrollBarWidth=0,this.imageWrapRef=null,this.imageRef=u().createRef(),this.headerRef=u().createRef(),this.footerRef=u().createRef(),this.leftIconRef=u().createRef(),this.rightIconRef=u().createRef()}static getDerivedStateFromProps(e,t){const n={};let r=[];return e.visible&&(r=Array.isArray(e.src)?e.src:[e.src]),he()(r,t.imgSrc)||(n.imgSrc=r),e.visible!==t.visible&&(n.visible=e.visible,e.visible&&(n.preloadAfterVisibleChange=!0,n.viewerVisible=!0,n.rotation=0,n.ratio="adaptation")),"currentIndex"in e&&e.currentIndex!==t.currentIndex&&(n.currentIndex=e.currentIndex,n.ratio="adaptation"),n}componentDidMount(){this.scrollBarWidth=Ye(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t){e.src!==this.props.src&&this.foundation.updateTimer(),!e.visible&&this.props.visible&&this.foundation.beforeShow(),e.visible&&!this.props.visible&&this.foundation.afterHide()}componentWillUnmount(){this.foundation.clearTimer()}isInGroup(){return Boolean(this.context&&this.context.isGroup)}render(){const{getPopupContainer:e,closable:t,zIndex:n,visible:r,className:i,style:s,infinite:a,zoomStep:o,crossOrigin:l,prevTip:c,nextTip:h,zoomInTip:d,zoomOutTip:p,rotateTip:f,downloadTip:m,adaptiveTip:g,originTip:y,showTooltip:v,disableDownload:b,renderPreviewMenu:w,renderHeader:C}=this.props,{currentIndex:E,imgSrc:S,zoom:_,ratio:k,rotation:P,viewerVisible:O}=this.state;let T={zIndex:n};e&&(T={zIndex:n,position:"static"});const I=`${lA}-preview`,D=x()(I,{[`${lA}-hide`]:!r,[`${I}-popup`]:e},i),A=O?"":`${I}-hide`,R=S.length,N=1!==R&&(a||0!==E),M=1!==R&&(a||E!==R-1);return r&&u().createElement(et,{getPopupContainer:e,style:T},u().createElement("div",{className:D,style:s,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,ref:this.registryImageWrapRef,onMouseMove:this.handleMouseMove},u().createElement(UD,{ref:this.headerRef,className:x()(A),onClose:this.handlePreviewClose,renderHeader:C,closable:t}),u().createElement(rA,{ref:this.imageRef,src:S[E],onZoom:this.handleZoomImage,disableDownload:b,setRatio:this.handleAdjustRatio,zoom:_,ratio:k,rotation:P,crossOrigin:l,onError:this.onImageError,onLoad:this.onImageLoad}),N&&u().createElement("div",{ref:this.leftIconRef,className:x()(`${I}-icon`,`${I}-prev`,A),onClick:()=>this.handleSwitchImage("prev")},u().createElement($D,{size:"large"})),M&&u().createElement("div",{ref:this.rightIconRef,className:x()(`${I}-icon`,`${I}-next`,A),onClick:()=>this.handleSwitchImage("next")},u().createElement(BD,{size:"large"})),u().createElement(eA,{forwardRef:this.footerRef,className:A,totalNum:R,curPage:E+1,disabledPrev:!N,disabledNext:!M,zoom:100*_,step:100*o,showTooltip:v,ratio:k,prevTip:c,nextTip:h,zIndex:n,zoomInTip:d,zoomOutTip:p,rotateTip:f,downloadTip:m,disableDownload:b,adaptiveTip:g,originTip:y,onPrev:()=>this.handleSwitchImage("prev"),onNext:()=>this.handleSwitchImage("next"),onZoomIn:this.handleZoomImage,onZoomOut:this.handleZoomImage,onDownload:this.handleDownload,onRotate:this.handleRotateImage,onAdjustRatio:this.handleAdjustRatio,renderPreviewMenu:w})))}}cA.contextType=zD,cA.propTypes={style:C().object,className:C().string,visible:C().bool,src:C().oneOfType([C().string,C().array]),currentIndex:C().number,defaultCurrentIndex:C().number,defaultVisible:C().bool,maskClosable:C().bool,closable:C().bool,zoomStep:C().number,infinite:C().bool,showTooltip:C().bool,closeOnEsc:C().bool,prevTip:C().string,nextTip:C().string,zoomInTip:C().string,zoomOutTip:C().string,downloadTip:C().string,adaptiveTip:C().string,originTip:C().string,lazyLoad:C().bool,preLoad:C().bool,preLoadGap:C().number,disableDownload:C().bool,viewerVisibleDelay:C().number,zIndex:C().number,maxZoom:C().number,minZoom:C().number,renderHeader:C().func,renderPreviewMenu:C().func,getPopupContainer:C().func,onVisibleChange:C().func,onChange:C().func,onClose:C().func,onZoomIn:C().func,onZoomOut:C().func,onPrev:C().func,onNext:C().func,onDownload:C().func,onRatioChange:C().func,onRotateLeft:C().func},cA.defaultProps={showTooltip:!1,zoomStep:.1,infinite:!1,closeOnEsc:!0,lazyLoad:!1,preLoad:!0,preLoadGap:2,zIndex:1070,maskClosable:!0,viewerVisibleDelay:1e4,maxZoom:5,minZoom:.1};class hA extends c{constructor(e){super(Object.assign({},e)),this.handleClick=e=>{const{imageID:t,preview:n}=this.getProps();if(n)if(this._adapter.getIsInGroup()){const{setCurrentIndex:e,handleVisibleChange:n}=this._adapter.getContexts();e(t),n(!0)}else this.handlePreviewVisibleChange(!0)},this.handleLoaded=e=>{const{onLoad:t}=this.getProps();t&&t(e),this.setState({loadStatus:"success"})},this.handleError=e=>{const{onError:t}=this.getProps();t&&t(e),this.setState({loadStatus:"error"})},this.handlePreviewVisibleChange=e=>{const{preview:t}=this.getProps();if(z()(t)){const{onVisibleChange:n}=t;n&&n(e),"visible"in t||this.setState({previewVisible:e})}else this.setState({previewVisible:e})}}}__webpack_require__("ANZz");var uA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const dA=jD.PREFIX;class pA extends f{get adapter(){return Object.assign(Object.assign({},super.adapter),{getIsInGroup:()=>this.isInGroup()})}constructor(e){super(e),this.handleClick=e=>{this.foundation.handleClick(e)},this.handleLoaded=e=>{this.foundation.handleLoaded(e)},this.handleError=e=>{this.foundation.handleError(e)},this.handlePreviewVisibleChange=e=>{this.foundation.handlePreviewVisibleChange(e)},this.renderDefaultLoading=()=>{const{width:e,height:t}=this.props;return u().createElement(To.Image,{style:{width:e,height:t}})},this.renderDefaultError=()=>{const e=`${dA}-status`;return u().createElement("div",{className:e},u().createElement(VD,{size:"extra-large"}))},this.renderLoad=()=>{const e=`${dA}-status`,{placeholder:t}=this.props;return t?u().createElement("div",{className:e},t):this.renderDefaultLoading()},this.renderError=()=>{const{fallback:e}=this.props,t=`${dA}-status`,n="string"==typeof e?u().createElement("img",{style:{width:"100%",height:"100%"},src:e,alt:"fallback"}):e;return e?u().createElement("div",{className:t},n):this.renderDefaultError()},this.renderExtra=()=>{const{loadStatus:e}=this.state;return u().createElement("div",{className:`${dA}-overlay`},"error"===e&&this.renderError(),"loading"===e&&this.renderLoad())},this.getLocalTextByKey=e=>u().createElement(Bt,{componentName:"Image"},(t=>t[e])),this.renderMask=()=>u().createElement("div",{className:`${dA}-mask`},u().createElement("div",{className:`${dA}-mask-info`},u().createElement(lr,{size:"extra-large"}),u().createElement("span",{className:`${dA}-mask-info-text`},this.getLocalTextByKey("preview")))),this.state={src:"",loadStatus:"loading",previewVisible:!1},this.foundation=new hA(this.adapter),this.imgRef=u().createRef()}static getDerivedStateFromProps(e,t){const n={};if(e.src!==t.src&&(n.src=e.src,n.loadStatus="loading"),z()(e.preview)){const{visible:t}=e.preview;bc()(t)&&(n.previewVisible=t)}return n}isInGroup(){return Boolean(this.context&&this.context.isGroup)}isLazyLoad(){return!!this.context&&this.context.lazyLoad}render(){var e;const{src:t,loadStatus:n,previewVisible:r}=this.state,i=this.props,{src:s,width:a,height:o,alt:l,style:c,className:h,crossOrigin:d,preview:p,fallback:f,placeholder:m,imageID:g,setDownloadName:y,imgCls:v,imgStyle:b}=i,w=uA(i,["src","width","height","alt","style","className","crossOrigin","preview","fallback","placeholder","imageID","setDownloadName","imgCls","imgStyle"]),C=Object.assign({width:a,height:o},c),E=x()(dA,h),S="success"===n&&p&&!this.isInGroup(),_=p&&"success"===n,k=z()(p)&&null!==(e=p.src)&&void 0!==e?e:t,P=z()(p)&&S?Object.assign(Object.assign({},ae()(p,["className","style","previewCls","previewStyle"])),{className:null==p?void 0:p.previewCls,style:null==p?void 0:p.previewStyle}):{};return u().createElement("div",{style:C,className:E,onClick:this.handleClick},u().createElement("img",Object.assign({ref:this.imgRef},w,{src:this.isInGroup()&&this.isLazyLoad()?void 0:t,"data-src":t,alt:l,style:b,className:x()(`${dA}-img`,{[`${dA}-img-preview`]:_,[`${dA}-img-error`]:"error"===n,[v]:Boolean(v)}),width:a,height:o,crossOrigin:d,onError:this.handleError,onLoad:this.handleLoaded})),"success"!==n&&this.renderExtra(),S&&u().createElement(cA,Object.assign({},P,{src:k,visible:r,onVisibleChange:this.handlePreviewVisibleChange,crossOrigin:le()(d)?null==P?void 0:P.crossOrigin:d,setDownloadName:y})))}}pA.isSemiImage=!0,pA.contextType=zD,pA.propTypes={style:C().object,className:C().string,src:C().string,width:C().oneOfType([C().string,C().number]),height:C().oneOfType([C().string,C().number]),alt:C().string,placeholder:C().node,fallback:C().oneOfType([C().string,C().node]),preview:C().oneOfType([C().bool,C().object]),onLoad:C().func,onError:C().func,onClick:C().func,crossOrigin:C().string,imageID:C().number},pA.defaultProps={preview:!0};const fA=pA;class mA extends c{constructor(){super(...arguments),this.handleVisibleChange=e=>{const{visible:t,onVisibleChange:n}=this.getProps();t in this.getProps()||this.setState({visible:e}),n&&n(e)},this.handleCurrentIndexChange=e=>{const{currentIndex:t,onChange:n}=this.getProps();t in this.getProps()||this.setState({currentIndex:e}),n&&n(e)}}}var gA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const yA=jD.PREFIX;class vA extends f{get adapter(){return Object.assign({},super.adapter)}constructor(e){super(e),this.observerImages=()=>{this.previewObserver?this.previewObserver.disconnect():this.previewObserver=new IntersectionObserver((e=>{e.forEach((e=>{var t;const n=null===(t=e.target.dataset)||void 0===t?void 0:t.src;e.isIntersecting&&n&&(e.target.src=n,e.target.removeAttribute("data-src"),this.previewObserver.unobserve(e.target))}))}),{root:document.querySelector(`#${this.previewGroupId}`),rootMargin:this.props.lazyLoadMargin});document.querySelectorAll(`.${yA}-img`).forEach((e=>this.previewObserver.observe(e)))},this.handleVisibleChange=e=>{this.foundation.handleVisibleChange(e)},this.handleCurrentIndexChange=e=>{this.foundation.handleCurrentIndexChange(e)},this.loopImageIndex=()=>{const{children:e}=this.props;let t=0;const n=[],r=[],i=e=>u().Children.map(e,(e=>{var s;if(e&&e.props&&e.type&&e.type.isSemiImage){const{src:i,preview:a,alt:o}=e.props;if(a){const o=z()(a)&&null!==(s=a.src)&&void 0!==s?s:i;return n.push(o),r.push(null==a?void 0:a.previewTitle),u().cloneElement(e,{imageID:t++})}return e}return e&&e.props&&e.props.children?u().cloneElement(e,{children:i(e.props.children)}):e}));return{srcListInChildren:n,newChildren:i(e),titles:r}},this.state={currentIndex:e.currentIndex||e.defaultCurrentIndex||0,visible:e.visible||e.currentDefaultVisible||!1},this.foundation=new mA(this.adapter),this.previewGroupId=Ae({prefix:"semi-image-preview-group",length:4}),this.previewRef=u().createRef()}componentDidMount(){this.props.lazyLoad&&this.observerImages()}componentDidUpdate(e){if(this.props.lazyLoad){const t=u().Children.toArray(e.children).map((e=>(0,h.isValidElement)(e)?e.key:null)),n=u().Children.toArray(this.props.children).map((e=>(0,h.isValidElement)(e)?e.key:null));he()(t,n)||this.observerImages()}}static getDerivedStateFromProps(e,t){const n={};return"currentIndex"in e&&e.currentIndex!==t.currentIndex&&(n.currentIndex=e.currentIndex),"visible"in e&&e.visible!==t.visible&&(n.visible=e.visible),n}componentWillUnmount(){this.previewObserver&&(this.previewObserver.disconnect(),this.previewObserver=null)}render(){const e=this.props,{src:t,className:n,style:r,lazyLoad:i,setDownloadName:s}=e,a=gA(e,["src","className","style","lazyLoad","setDownloadName"]),o=Object.assign(Object.assign({},ae()(a,["previewCls","previewStyle"])),{className:null==a?void 0:a.previewCls,style:null==a?void 0:a.previewStyle}),{currentIndex:l,visible:c}=this.state,{srcListInChildren:h,newChildren:d,titles:p}=this.loopImageIndex(),f=[...Array.isArray(t)?t:"string"==typeof t?[t]:[],...h];return u().createElement(zD.Provider,{value:{isGroup:!0,previewSrc:f,titles:p,currentIndex:l,visible:c,lazyLoad:i,previewObserver:this.previewObserver,setCurrentIndex:this.handleCurrentIndexChange,handleVisibleChange:this.handleVisibleChange,setDownloadName:s}},u().createElement("div",{id:this.previewGroupId,style:r,className:x()(`${yA}-preview-group`,n)},d),u().createElement(cA,Object.assign({},o,{ref:this.previewRef,src:f,currentIndex:l,visible:c,onVisibleChange:this.handleVisibleChange})))}}vA.propTypes={style:C().object,className:C().string,visible:C().bool,src:C().oneOfType([C().string,C().array]),currentIndex:C().number,defaultCurrentIndex:C().number,defaultVisible:C().bool,maskClosable:C().bool,closable:C().bool,zoomStep:C().number,infinite:C().bool,showTooltip:C().bool,closeOnEsc:C().bool,prevTip:C().string,nextTip:C().string,zoomInTip:C().string,zoomOutTip:C().string,downloadTip:C().string,adaptiveTip:C().string,originTip:C().string,lazyLoad:C().bool,lazyLoadMargin:C().string,preLoad:C().bool,preLoadGap:C().number,previewCls:C().string,previewStyle:C().object,disableDownload:C().bool,zIndex:C().number,renderHeader:C().func,renderPreviewMenu:C().func,getPopupContainer:C().func,onVisibleChange:C().func,onChange:C().func,onClose:C().func,onZoomIn:C().func,onZoomOut:C().func,onPrev:C().func,onNext:C().func,onDownload:C().func,onRotateLeft:C().func,onRatioChange:C().func},vA.defaultProps={src:[],lazyLoad:!0,lazyLoadMargin:"0px 100px 100px 0px",closable:!0};const bA=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Math.pow(10,t);return Math.round(n*e)/n},xA={grad:.9,turn:360,rad:360/(2*Math.PI)},wA=e=>LA(CA(e)),CA=e=>{"#"===e[0]&&(e=e.substring(1));return{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:(e=>{const t=parseInt(e,16);if(!isNaN(t)){return t/255}return 1})(e.substring(6,8))}},EA=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"deg";return Number(e)*(xA[t]||1)},SA=e=>FA(OA(e)),_A=e=>{let{h:t,s:n,v:r,a:i}=e;const s=(200-n)*r/100;return{h:bA(t),s:bA(s>0&&s<200?n*r/100/(s<=100?s:200-s)*100:0),l:bA(s/2),a:bA(i,2)}},kA=e=>{const{h:t,s:n,l:r}=_A(e);return`hsl(${t}, ${n}%, ${r}%)`},PA=e=>{const{h:t,s:n,l:r,a:i}=_A(e);return`hsla(${t}, ${n}%, ${r}%, ${i})`},OA=e=>{let{h:t,s:n,v:r,a:i}=e;t=t/360*6,n/=100,r/=100;const s=Math.floor(t),a=r*(1-n),o=r*(1-(t-s)*n),l=r*(1-(1-t+s)*n),c=s%6;return{r:bA(255*[r,o,a,a,l,r][c]),g:bA(255*[l,r,r,o,a,a][c]),b:bA(255*[a,a,l,r,r,o][c]),a:bA(i,2)}},TA=e=>{const{r:t,g:n,b:r,a:i}=OA(e);return`rgba(${t}, ${n}, ${r}, ${i})`},IA=e=>{const t=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?jA({h:EA(t[1],t[2]),s:Number(t[3]),v:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},DA=e=>LA(AA(e)),AA=e=>{const t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?{r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}:{r:0,g:0,b:0,a:1}},RA=AA,NA=DA,MA=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},FA=e=>{let{r:t,g:n,b:r,a:i}=e;return void 0===i||1===i?"#"+MA(t)+MA(n)+MA(r):"#"+MA(t)+MA(n)+MA(r)+(e=>Math.round(e/100*255).toString(16).padStart(2,"0").toLowerCase())(100*i)},LA=e=>{let{r:t,g:n,b:r,a:i}=e;const s=Math.max(t,n,r),a=s-Math.min(t,n,r),o=a?s===t?(n-r)/a:s===n?2+(r-t)/a:4+(t-n)/a:0;return{h:bA(60*(o<0?o+6:o)),s:bA(s?a/s*100:0),v:bA(s/255*100),a:i}},jA=e=>({h:bA(e.h),s:bA(e.s),v:bA(e.v),a:bA(e.a,2)});class VA extends c{constructor(e){super(Object.assign({},e)),this.handleChangeH=(e,t)=>{const n=Object.assign(Object.assign({},e.hsva),{h:t}),r={rgba:OA(n),hsva:n,hex:SA(n)};this._adapter.notifyChange(r),this.getProp("value")||this._adapter.setState({currentColor:r})},this.handleChangeA=(e,t)=>{let n=this._adapter.getProp("alpha");n||(t=1);const r=Object.assign(Object.assign({},e.rgba),{a:t}),i=FA(r);e={rgba:r,hex:n?i:i.slice(0,7),hsva:Object.assign(Object.assign({},e.hsva),{a:t})},this._adapter.notifyChange(e),this.getProp("value")||this._adapter.setState({currentColor:e})},this.getCurrentColor=()=>{const e=this.getProp("value"),t=this.getState("currentColor");return e||t},this.handleChange=(e,t)=>{let n;if("hsva"===t)n={hsva:e,rgba:VA.hsvaToRgba(e),hex:VA.hsvaToHex(e)};else if("rgba"===t)n={rgba:e,hsva:VA.rgbaToHsva(e),hex:VA.rgbaToHex(e)};else{if("hex"!==t)throw new Error("format error");n={hex:e,hsva:VA.hexToHsva(e),rgba:VA.hexToRgba(e)}}this._adapter.notifyChange(n),this.getProp("value")||this._adapter.setState({currentColor:n})},this.handleAlphaChangeByHandle=e=>{this.handleChangeA(this.getCurrentColor(),e.a)},this.handleColorChangeByHandle=e=>{this.handleChangeH(this.getCurrentColor(),e.h)},this.getHandlePositionByHSVA=(e,t,n)=>{let{width:r,height:i}=t;return{x:e.s/100*r-n/2,y:(1-e.v/100)*i-n/2}},this.getHandlePositionByMousePosition=(e,t,n)=>{let{width:r,height:i}=t;if(e.x>r||e.x<0)return null;if(e.y>i||e.y<0)return null;return{x:e.x-n/2,y:e.y-n/2}},this.getAlphaHandlePositionByMousePosition=(e,t,n)=>e<0||e>t?null:e-n/2,this.getColorHandlePositionByMousePosition=(e,t,n)=>e<0||e>t?null:e-n/2}}VA.hsvaToRgba=OA,VA.rgbaToHsva=LA,VA.rgbaToHex=FA,VA.hsvaToHex=SA,VA.hexToRgba=CA,VA.hexToHsva=wA,VA.hsvaToHslaString=PA,VA.hsvaToHslString=kA,VA.rgbaStringToHsva=DA,VA.rgbaStringToRgba=AA;const $A=VA,BA=`${E}-colorPicker`;const zA=class extends c{constructor(e){super(Object.assign({},e)),this.getHandlePositionByHSVA=()=>{const{hsva:e,width:t,height:n,handleSize:r}=this.getProps();return this._adapter.getColorPickerFoundation().getHandlePositionByHSVA(e,{width:t,height:n},r)},this.handleMouseDown=e=>{this._adapter.handleMouseDown(e)},this.handleMouseUp=e=>{this._adapter.handleMouseUp(e)},this.setHandlePositionByMousePosition=e=>{var t;const n=null===(t=this._adapter.getDOM())||void 0===t?void 0:t.getBoundingClientRect();if(!n)return;const r={x:e.clientX-n.x,y:e.clientY-n.y},{width:i,height:s,handleSize:a}=this.getProps(),o=this._adapter.getColorPickerFoundation().getHandlePositionByMousePosition(r,{width:i,height:s},a);o&&(this.setState({handlePosition:o}),this._adapter.notifyChange({s:Math.round(r.x/i*100),v:Math.round(100-100*Math.min(Math.max(r.y/s,0),1))}))}}};const HA=class extends f{constructor(e){super(e),this.handleClick=e=>{this.foundation.setHandlePositionByMousePosition(e),this.foundation.handleMouseDown(e)},this.foundation=new zA(this.adapter),this.state={handlePosition:this.foundation.getHandlePositionByHSVA(),isHandleGrabbing:!1},this.ref=u().createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{getColorPickerFoundation:()=>this.props.foundation,handleMouseDown:e=>{this.setState({isHandleGrabbing:!0}),this.ref.current.addEventListener("mousemove",this.foundation.setHandlePositionByMousePosition),window.addEventListener("mouseup",this.foundation.handleMouseUp)},handleMouseUp:()=>{this.ref.current.removeEventListener("mousemove",this.foundation.setHandlePositionByMousePosition),window.removeEventListener("mouseup",this.foundation.handleMouseUp),this.setState({isHandleGrabbing:!1})},getDOM:()=>this.ref.current,notifyChange:e=>this.props.onChange(e)})}componentDidUpdate(e,t,n){JSON.stringify(e.hsva)!==JSON.stringify(this.props.hsva)&&this.setState({handlePosition:this.foundation.getHandlePositionByHSVA()})}render(){const e=kA({h:this.props.hsva.h,s:100,v:100,a:1}),t=OA(this.props.hsva);return u().createElement("div",{className:x()(`${BA}-colorChooseArea`,this.props.className),style:Object.assign({backgroundColor:e,width:this.props.width,height:this.props.height,cursor:this.state.isHandleGrabbing?"grabbing":"pointer"},this.props.style),ref:this.ref,"aria-label":"Color",onMouseDown:this.handleClick,"aria-valuetext":`Saturation ${bA(this.props.hsva.s)}%, Brightness ${bA(this.props.hsva.v)}%`},u().createElement("div",{className:`${BA}-handle`,style:{width:this.props.handleSize,height:this.props.handleSize,left:this.state.handlePosition.x,top:this.state.handlePosition.y,backgroundColor:`rgba(${t.r},${t.g},${t.b},${t.a})`},onMouseDown:e=>this.foundation.handleMouseDown(e)}))}};const KA=class extends c{constructor(e){super(Object.assign({},e)),this.handleMouseDown=e=>{this._adapter.handleMouseDown(e)},this.handleMouseUp=e=>{this._adapter.handleMouseUp(e)},this.setHandlePositionByMousePosition=e=>{var t;const n=null===(t=this._adapter.getDOM())||void 0===t?void 0:t.getBoundingClientRect();if(!n)return;const{width:r,handleSize:i}=this._adapter.getProps(),s=this._adapter.getColorPickerFoundation(),a=e.clientX-n.x,o=s.getAlphaHandlePositionByMousePosition(a,r,i);s.handleAlphaChangeByHandle({a:Number(Math.min(Math.max(a/r,0),1).toFixed(2))}),this.setState({handlePosition:o})}}};const UA=class extends f{constructor(e){super(e),this.handleClick=e=>{this.foundation.setHandlePositionByMousePosition(e),this.foundation.handleMouseDown(e)},this.foundation=new KA(this.adapter),this.state={handlePosition:e.hsva.a*e.width-e.handleSize/2,isHandleGrabbing:!1},this.ref=u().createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{handleMouseDown:e=>{this.setState({isHandleGrabbing:!0}),window.addEventListener("mousemove",this.foundation.setHandlePositionByMousePosition),window.addEventListener("mouseup",this.foundation.handleMouseUp)},handleMouseUp:e=>{this.setState({isHandleGrabbing:!1}),window.removeEventListener("mousemove",this.foundation.setHandlePositionByMousePosition),window.removeEventListener("mouseup",this.foundation.handleMouseUp)},getColorPickerFoundation:()=>this.props.foundation,getDOM:()=>this.ref.current})}componentDidUpdate(e,t,n){e.hsva.a!==this.props.hsva.a&&this.setState({handlePosition:this.props.hsva.a*this.props.width-this.props.handleSize/2})}render(){const e=`linear-gradient(90deg, ${PA(Object.assign(Object.assign({},this.props.hsva),{a:0}))}, ${PA(Object.assign(Object.assign({},this.props.hsva),{a:1}))})`;return u().createElement("div",{className:`${BA}-alphaSlider`,ref:this.ref,"aria-label":"Alpha","aria-valuetext":`${bA(100*this.props.hsva.a)}%`,onMouseDown:this.handleClick,style:Object.assign({width:this.props.width,height:this.props.height},this.props.style)},u().createElement("div",{className:`${BA}-alphaSliderInner`,style:{background:e}},u().createElement("div",{className:`${BA}-alphaHandle`,style:{width:this.props.handleSize,height:this.props.handleSize,left:this.state.handlePosition,top:"50%",transform:"translateY(-50%)",backgroundColor:TA(this.props.hsva)},onMouseDown:e=>this.foundation.handleMouseDown(e)})))}};const WA=class extends c{constructor(e){super(Object.assign({},e)),this.handleMouseDown=e=>{this._adapter.handleMouseDown(e)},this.handleMouseUp=e=>{this._adapter.handleMouseUp(e)},this.setHandlePositionByMousePosition=e=>{var t;const n=null===(t=this._adapter.getDOM())||void 0===t?void 0:t.getBoundingClientRect();if(!n)return;const{width:r,handleSize:i}=this._adapter.getProps(),s=this._adapter.getColorPickerFoundation(),a=e.clientX-n.x;s.handleColorChangeByHandle({h:Math.round(360*Math.min(Math.max(a/r,0),1))});const o=s.getColorHandlePositionByMousePosition(a,r,i);this.setState({handlePosition:o})}}};const GA=class extends f{constructor(e){super(e),this.handleClick=e=>{this.foundation.setHandlePositionByMousePosition(e),this.foundation.handleMouseDown(e)},this.foundation=new WA(this.adapter),this.state={handlePosition:e.hue/360*e.width-e.handleSize/2,isHandleGrabbing:!1},this.ref=u().createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{handleMouseDown:e=>{this.setState({isHandleGrabbing:!0}),window.addEventListener("mousemove",this.foundation.setHandlePositionByMousePosition),window.addEventListener("mouseup",this.foundation.handleMouseUp)},handleMouseUp:e=>{this.setState({isHandleGrabbing:!1}),window.removeEventListener("mousemove",this.foundation.setHandlePositionByMousePosition),window.removeEventListener("mouseup",this.foundation.handleMouseUp)},getColorPickerFoundation:()=>this.props.foundation,getDOM:()=>this.ref.current})}componentDidUpdate(e,t,n){e.hue!==this.props.hue&&this.setState({handlePosition:this.props.hue/360*this.props.width-this.props.handleSize/2})}render(){return u().createElement("div",{className:x()(`${BA}-colorSlider`,this.props.className),ref:this.ref,onMouseDown:this.handleClick,style:Object.assign({width:this.props.width,height:this.props.height},this.props.style)},u().createElement("div",{className:`${BA}-handle`,style:{width:this.props.handleSize,height:this.props.handleSize,left:this.state.handlePosition,top:"50%",transform:"translateY(-50%)",backgroundColor:$A.hsvaToHslString({h:this.props.hue,s:100,v:100,a:1})},onMouseDown:e=>this.foundation.handleMouseDown(e)}))}};const qA=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.22396 20.7662C-0.415453 19.1136 -0.406853 16.4316 1.24313 14.7897L10.57 5.50874L9.62535 4.55653C9.08135 4.00817 9.08135 3.11909 9.62535 2.57074C10.1694 2.02238 11.0514 2.02238 11.5954 2.57074L12.5526 3.53579L14.8854 1.21459C16.5204 -0.412333 19.1516 -0.403739 20.776 1.2338C22.4154 2.88639 22.4069 5.56845 20.7569 7.21035L18.4626 9.49315L19.4751 10.5139C20.0192 11.0623 20.0192 11.9514 19.4751 12.4998C18.9311 13.0481 18.0491 13.0481 17.5053 12.4998L16.4799 11.4661L7.11458 20.7855C5.47962 22.4122 2.84845 22.4038 1.22396 20.7662ZM12.54 7.49455L14.5099 9.48042L5.1574 18.7869C4.61243 19.3291 3.7354 19.3263 3.19392 18.7805C2.64747 18.2295 2.65033 17.3355 3.20031 16.7883L12.54 7.49455Z",fill:"currentColor"}))}),"eyedropper"),YA=(e,t)=>{const n=e.match(/^\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,?\s*([\d.]*)\s*$/),r=[];r[0]=Number(null==n?void 0:n[1]),r[1]=Number(null==n?void 0:n[2]),r[2]=Number(null==n?void 0:n[3]),r[3]=Number(void 0===(null==n?void 0:n[4])||""===(null==n?void 0:n[4])?1:null==n?void 0:n[4]);const i=(e,t)=>!(isNaN(e)||e<0||e>t);return!!(i(r[0],"rgba"===t?255:360)&&i(r[1],"rgba"===t?255:100)&&i(r[2],"rgba"===t?255:100)&&i(r[3],1))&&("rgba"===t?{r:r[0],g:r[1],b:r[2],a:r[3]}:{h:r[0],s:r[1],v:r[2],a:r[3]})};var XA=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))};const ZA=class extends c{constructor(e){super(Object.assign({},e)),this.getInputValue=()=>{const{currentColor:e}=this._adapter.getProps(),{format:t}=this._adapter.getStates(),n=e.rgba,r=e.hsva,i=e.hex;return"rgba"===t?`${n.r},${n.g},${n.b}`:"hsva"===t?`${r.h},${r.s},${r.v}`:i.slice(0,7)},this.getValueByInputValue=e=>{const{format:t}=this.getStates();if("rgba"===t){const n=YA(e,t);if(n)return n}else if("hsva"===t){const n=YA(e,t);if(n)return n}else if("hex"===t&&(e.startsWith("#")||(e="#"+e),/#[\d\w]{6,8}/.test(e)))return e;return!1},this.handlePickValueWithStraw=()=>XA(this,void 0,void 0,(function*(){const e=this._adapter.getColorPickerFoundation();if(!window.EyeDropper)return;const t=new EyeDropper;try{const n=(yield t.open()).sRGBHex;if(n.startsWith("#"))e.handleChange(n,"hex");else if(n.startsWith("rgba")){const t=$A.rgbaStringToRgba(n);t.a=1,e.handleChange(t,"rgba")}}catch(e){}})),this.handleInputValueChange=e=>{this._adapter.setState({inputValue:e})},this.handleFormatChange=e=>{this._adapter.setState({format:e})}}};const JA=class extends f{constructor(e){super(e),this.handleChange=e=>{this.props.foundation.handleChange(e,this.state.format)},this.foundation=new ZA(this.adapter),this.state={format:this.props.defaultFormat,inputValue:""}}get adapter(){return Object.assign(Object.assign({},super.adapter),{getColorPickerFoundation:()=>this.props.foundation})}componentDidMount(){this.foundation.handleInputValueChange(this.foundation.getInputValue())}componentDidUpdate(e,t,n){he()(e.currentColor,this.props.currentColor)&&t.format===this.state.format||this.foundation.handleInputValueChange(this.foundation.getInputValue())}render(){const e=this.props.currentColor.rgba;return u().createElement("div",{className:`${BA}-dataPart`,style:{width:this.props.width}},u().createElement("div",{className:`${BA}-colorDemoBlock`,style:{minWidth:20,minHeight:20,backgroundColor:`rgba(${e.r},${e.g},${e.b},${e.a})`}}),u().createElement(cw,{size:"small",className:`${BA}-inputGroup`},u().createElement(gr,{className:`${BA}-colorPickerInput`,value:this.state.inputValue,onChange:e=>{const t=this.foundation.getValueByInputValue(e);t&&this.handleChange(t),this.foundation.handleInputValueChange(e)}}),this.props.alpha&&u().createElement(Fw,{min:0,max:100,className:`${BA}-colorPickerInputNumber`,value:Number(Math.round(100*this.props.currentColor.rgba.a)),onNumberChange:e=>{if("rgba"===this.state.format)this.handleChange(Object.assign(Object.assign({},this.props.currentColor.rgba),{a:Number((e/100).toFixed(2))}));else if("hex"===this.state.format){const t=Object.assign(Object.assign({},this.props.currentColor.rgba),{a:Number((e/100).toFixed(2))}),n=$A.rgbaToHex(t);this.handleChange(n)}else if("hsva"===this.state.format){const t=Object.assign(Object.assign({},this.props.currentColor.hsva),{a:Number((e/100).toFixed(2))});this.handleChange(t)}},suffix:u().createElement("span",{className:`${BA}-inputNumberSuffix`},"%"),hideButtons:!0}),u().createElement(bE,{className:`${BA}-formatSelect`,size:"small",value:this.state.format,onSelect:e=>this.foundation.handleFormatChange(e),optionList:["hex","rgba","hsva"].map((e=>({label:e,value:e})))})),this.props.eyeDropper&&u().createElement(Ji,{type:"tertiary",theme:"light",size:"small",onClick:this.foundation.handlePickValueWithStraw,icon:u().createElement(qA,null)}))}};__webpack_require__("sJoR");class QA extends f{constructor(e){var t;super(e),this.foundation=new $A(this.adapter);const n=null!==(t=e.value)&&void 0!==t?t:e.defaultValue;this.state={currentColor:n}}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyChange:e=>{var t,n;null===(n=(t=this.props).onChange)||void 0===n||n.call(t,e)}})}renderPicker(){var e,t,n,r,i;const{className:s}=this.props,a=x()(`${BA}`,s),o=this.foundation.getCurrentColor();return u().createElement("div",{className:a},this.props.topSlot,u().createElement(HA,{hsva:o.hsva,foundation:this.foundation,onChange:e=>{let{s:t,v:n}=e;this.foundation.handleChange({s:t,v:n,a:o.hsva.a,h:o.hsva.h},"hsva")},handleSize:20,width:null!==(e=this.props.width)&&void 0!==e?e:280,height:null!==(t=this.props.height)&&void 0!==t?t:280}),u().createElement(GA,{width:null!==(n=this.props.width)&&void 0!==n?n:280,height:10,handleSize:18,hue:o.hsva.h,className:"colorSliderWrapper",foundation:this.foundation}),this.props.alpha&&u().createElement(UA,{width:null!==(r=this.props.width)&&void 0!==r?r:280,height:10,handleSize:18,hsva:o.hsva,className:"alphaSliderWrapper",foundation:this.foundation}),u().createElement(JA,{currentColor:o,eyeDropper:this.props.eyeDropper,alpha:this.props.alpha,width:null!==(i=this.props.width)&&void 0!==i?i:280,foundation:this.foundation,defaultFormat:this.props.defaultFormat}),this.props.bottomSlot)}render(){var e,t;const n=this.foundation.getCurrentColor();return this.props.usePopover?u().createElement(pn,Object.assign({},this.props.popoverProps,{className:x()(`${BA}-popover`,null===(e=this.props.popoverProps)||void 0===e?void 0:e.className),content:this.renderPicker()}),null!==(t=this.props.children)&&void 0!==t?t:u().createElement("div",{style:{backgroundColor:n.hex},className:x()(`${BA}-popover-defaultChildren`)})):this.renderPicker()}}QA.__SemiComponentName__="ColorPicker",QA.defaultProps={defaultValue:{hsva:{h:176,s:71,v:77,a:1},rgba:{r:57,g:197,b:187,a:1},hex:"#39c5bb"},eyeDropper:!0,defaultFormat:"hex"},QA.colorStringToValue=e=>{if(e.startsWith("#"))return{hsva:wA(e),rgba:CA(e),hex:e};if(e.startsWith("rgba")){const t=AA(e);return{hsva:DA(e),rgba:t,hex:FA(t)}}if(e.startsWith("rgb")){const t=RA(e);return{hsva:NA(e),rgba:t,hex:FA(t)}}if(e.startsWith("hsv")){const t=IA(e);return{hsva:t,rgba:OA(t),hex:SA(t)}}throw new Error("Semi ColorPicker: error on static colorStringToValue method, input value is invalid: "+e)};const eR=QA;var tR=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))};class nR extends c{constructor(e){var t;super(Object.assign({},e)),t=this,this.handleCurrentActiveIndexChange=(e,t)=>{"focus"===t&&this._adapter.onCurrentActiveIndexChange(e)},this.completeSingleInput=(e,t)=>tR(this,void 0,void 0,(function*(){var n;const r=Boolean(this.getProp("value"));yield this._adapter.onCurrentActiveIndexChange(e+1);const i=[...this.getState("valueList")];i[e]=t,r?this._adapter.notifyValueChange(i):yield this.updateValueList(i);const s=this.getProp("count");e+1>s-1?(this._adapter.changeSpecificInputFocusState(e,"blur"),null===(n=this.getProp("onComplete"))||void 0===n||n(i.join(""))):this._adapter.changeSpecificInputFocusState(e+1,"focus")})),this.validateValue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const n=t.getProp("format");let r=e=>!0;return"string"==typeof n?"number"===n?r=e=>0===e.length||nR.numberReg.test(e):"mixed"===n&&(r=e=>0===e.length||nR.mixedReg.test(e)):n instanceof RegExp?r=e=>n.test(e):"function"==typeof n&&(r=n),r(e)},this.updateValueList=e=>tR(this,void 0,void 0,(function*(){this._adapter.updateValueList(e)})),this.handlePaste=(e,t)=>tR(this,void 0,void 0,(function*(){const n=e.clipboardData.getData("text"),r=this.getProp("count");for(let e=t,i=0;e<r&&i<n.length;e++,i++){const t=n[i];if(!this.validateValue(t))break;yield this.completeSingleInput(e,t)}e.preventDefault()})),this.handleKeyDownOnSingleInput=(e,t)=>{const n=[...this.getState("valueList")];"Backspace"===e.key?(n[t]="",this.updateValueList(n),this._adapter.changeSpecificInputFocusState(Math.max(0,t-1),"focus"),e.preventDefault()):"Delete"===e.key?(n[t]="",this.updateValueList(n),this._adapter.changeSpecificInputFocusState(Math.min(n.length-1,t+1),"focus"),e.preventDefault()):"ArrowLeft"===e.key?(this._adapter.changeSpecificInputFocusState(Math.max(0,t-1),"focus"),e.preventDefault()):"ArrowRight"===e.key&&(this._adapter.changeSpecificInputFocusState(Math.min(n.length-1,t+1),"focus"),e.preventDefault())}}}nR.numberReg=/^\d*$/,nR.mixedReg=/^[0-9a-zA-Z]$/;const rR=nR,iR=`${E}-pincode`;__webpack_require__("5Nuo");var sR=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))};class aR extends f{constructor(e){super(e),this.inputDOMList=[],this.focus=e=>{const t=this.inputDOMList[e];null==t||t.focus(),null==t||t.setSelectionRange(1,1)},this.blur=e=>{var t;null===(t=this.inputDOMList[e])||void 0===t||t.blur()},this.renderSingleInput=e=>u().createElement(gr,{ref:t=>this.inputDOMList[e]=t,key:`input-${e}`,autoFocus:this.props.autoFocus&&0===e,value:this.state.valueList[e],size:this.props.size,disabled:this.props.disabled,onBlur:()=>this.foundation.handleCurrentActiveIndexChange(e,"blur"),onFocus:()=>this.foundation.handleCurrentActiveIndexChange(e,"focus"),onPaste:t=>this.foundation.handlePaste(t.nativeEvent,e),onKeyDown:t=>{this.foundation.handleKeyDownOnSingleInput(t.nativeEvent,e)},onChange:t=>{const n=t[t.length-1];this.foundation.validateValue(n)&&this.foundation.completeSingleInput(e,n)}}),this.foundation=new rR(this.adapter),this.state={valueList:(this.props.value||this.props.defaultValue)&&(this.props.value||this.props.defaultValue).split("")||[],currentActiveIndex:0}}componentDidUpdate(e,t,n){e.value!==this.props.value&&this.foundation.updateValueList(this.props.value.split(""))}get adapter(){return Object.assign(Object.assign({},super.adapter),{onCurrentActiveIndexChange:e=>sR(this,void 0,void 0,(function*(){yield this.setStateAsync({currentActiveIndex:e})})),notifyValueChange:e=>{var t,n;null===(n=(t=this.props).onChange)||void 0===n||n.call(t,e.join(""))},changeSpecificInputFocusState:(e,t)=>{var n,r,i,s;"focus"===t?null===(r=null===(n=this.inputDOMList[e])||void 0===n?void 0:n.focus)||void 0===r||r.call(n):"blur"===t&&(null===(s=null===(i=this.inputDOMList[e])||void 0===i?void 0:i.blur)||void 0===s||s.call(i))},updateValueList:e=>sR(this,void 0,void 0,(function*(){yield this.setStateAsync({valueList:e})}))})}render(){const e=[];for(let t=0;t<this.props.count;t++)e.push(this.renderSingleInput(t));return u().createElement("div",{className:x()(`${iR}-wrapper`,this.props.className),style:this.props.style},e)}}aR.__SemiComponentName__="PinCode",aR.propTypes={value:C().string,format:C().oneOfType([C().string,C().object,C().func]),onChange:C().func,defaultValue:C().string,count:C().number,className:C().string,style:C().object,autoFocus:C().bool,onComplete:C().func},aR.defaultProps=Xe(aR.__SemiComponentName__,{count:6,format:"number",autoFocus:!0});const oR=aR;function lR(e){return e&&"object"==typeof e?"position"in e||"type"in e?hR(e.position):"start"in e||"end"in e?hR(e):"line"in e||"column"in e?cR(e):"":""}function cR(e){return uR(e&&e.line)+":"+uR(e&&e.column)}function hR(e){return cR(e&&e.start)+"-"+cR(e&&e.end)}function uR(e){return e&&"number"==typeof e?e:1}class dR extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},s=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(s=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=lR(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}dR.prototype.file="",dR.prototype.name="",dR.prototype.reason="",dR.prototype.message="",dR.prototype.stack="",dR.prototype.column=void 0,dR.prototype.line=void 0,dR.prototype.ancestors=void 0,dR.prototype.cause=void 0,dR.prototype.fatal=void 0,dR.prototype.place=void 0,dR.prototype.ruleId=void 0,dR.prototype.source=void 0;const pR={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');fR(e);let n,r=0,i=-1,s=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else i<0&&(n=!0,i=s+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else a<0&&(n=!0,a=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(i=s):(o=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(fR(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){fR(e);let t,n=e.length,r=-1,i=0,s=-1,a=0;for(;n--;){const o=e.codePointAt(n);if(47!==o)r<0&&(t=!0,r=n+1),46===o?s<0?s=n:1!==a&&(a=1):s>-1&&(a=-1);else if(t){i=n+1;break}}if(s<0||r<0||0===a||1===a&&s===r-1&&s===i+1)return"";return e.slice(s,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)fR(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){fR(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",s=0,a=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===o);else if(a!==l-1&&2===o){if(i.length<2||2!==s||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",s=0):(i=i.slice(0,r),s=i.length-1-i.lastIndexOf("/")),a=l,o=0;continue}}else if(i.length>0){i="",s=0,a=l,o=0;continue}t&&(i=i.length>0?i+"/..":"..",s=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),s=l-a-1;a=l,o=0}else 46===n&&o>-1?o++:o=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function fR(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const mR={cwd:function(){return"/"}};function gR(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function yR(e){if("string"==typeof e)e=new URL(e);else if(!gR(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const vR=["history","path","basename","stem","extname","dirname"];class bR{constructor(e){let t;t=e?gR(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":mR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<vR.length;){const e=vR[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)vR.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?pR.basename(this.path):void 0}set basename(e){wR(e,"basename"),xR(e,"basename"),this.path=pR.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?pR.dirname(this.path):void 0}set dirname(e){CR(this.basename,"dirname"),this.path=pR.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?pR.extname(this.path):void 0}set extname(e){if(xR(e,"extname"),CR(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pR.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){gR(e)&&(e=yR(e)),wR(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?pR.basename(this.path,this.extname):void 0}set stem(e){wR(e,"stem"),xR(e,"stem"),this.path=pR.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new dR(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function xR(e,t){if(e&&e.includes(pR.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pR.sep+"`")}function wR(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function CR(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const ER=["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"].map((function(e){return"."+e}));function SR(e,t){const n=(r=e,Boolean(r&&"object"==typeof r&&"message"in r&&"messages"in r)?e:new bR(e));var r;const{format:i,...s}=t||{};return{file:n,options:{format:"md"===i||"mdx"===i?i:n.extname&&(s.mdExtensions||ER).includes(n.extname)?"md":"mdx",...s}}}function _R(e){this.enter({type:"mdxFlowExpression",value:""},e),this.buffer()}function kR(e){this.enter({type:"mdxTextExpression",value:""},e),this.buffer()}function PR(e){const t=this.resume(),n=e.estree,r=this.stack[this.stack.length-1];"mdxFlowExpression"===r.type||r.type,this.exit(e),r.value=t,n&&(r.data={estree:n})}function OR(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function TR(e){return"{"+(e.value||"")+"}"}function IR(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}const DR=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],AR={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function RR(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function NR(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function MR(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||RR(e)}const FR=document.createElement("i");function LR(e){const t="&"+e+";";FR.innerHTML=t;const n=FR.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const jR=String.fromCharCode,VR=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function $R(e){return e>=55296&&e<=57343||e>1114111}function BR(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}const zR=/["&'<>`]/g,HR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,KR=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,UR=/[|\\{}()[\]^$+*?.]/g,WR=new WeakMap;function GR(e,t){return e=e.replace(t.subset?function(e){let t=WR.get(e);t||(t=function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(UR,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(e),WR.set(e,t));return t}(t.subset):zR,n),t.subset||t.escapeOnly?e:e.replace(HR,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(KR,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function qR(e){return"&#x"+e.toString(16).toUpperCase()+";"}function YR(e,t){return GR(e,Object.assign({format:qR},t))}const XR=" ";function ZR(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:u,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:a,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:u,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:a},exit:{mdxJsxFlowTagClosingMarker:o,mdxJsxFlowTagNamePrimary:l,mdxJsxFlowTagNameMember:c,mdxJsxFlowTagNameLocal:h,mdxJsxFlowTagExpressionAttribute:p,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:f,mdxJsxFlowTagAttributeNameLocal:m,mdxJsxFlowTagAttributeValueLiteral:g,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:y,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:v,mdxJsxFlowTag:b,mdxJsxTextTagClosingMarker:o,mdxJsxTextTagNamePrimary:l,mdxJsxTextTagNameMember:c,mdxJsxTextTagNameLocal:h,mdxJsxTextTagExpressionAttribute:p,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:f,mdxJsxTextTagAttributeNameLocal:m,mdxJsxTextTagAttributeValueLiteral:g,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:y,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:v,mdxJsxTextTag:b}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function r(e){const t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function i(e){const t=this.data.mdxJsxTagStack;if(0===t.length)throw new dR("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(e){const t=this.data.mdxJsxTag;if(t.close)throw new dR("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function a(e){const t=this.data.mdxJsxTag;if(t.close)throw new dR("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function o(){const e=this.data.mdxJsxTag;e.close=!0}function l(e){const t=this.data.mdxJsxTag;t.name=this.sliceSerialize(e)}function c(e){const t=this.data.mdxJsxTag;t.name+="."+this.sliceSerialize(e)}function h(e){const t=this.data.mdxJsxTag;t.name+=":"+this.sliceSerialize(e)}function u(e){const n=this.data.mdxJsxTag;s.call(this,e),n.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(e.start),end:void 0}})}function d(e){const t=this.data.mdxJsxTag;s.call(this,e),t.attributes.push({type:"mdxJsxExpressionAttribute",value:""}),this.buffer()}function p(e){const t=this.data.mdxJsxTag,n=t.attributes[t.attributes.length-1];n.type;const r=e.estree;n.value=this.resume(),r&&(n.data={estree:r})}function f(e){const n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name=this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function m(e){const n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name+=":"+this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function g(e){const n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.value=function(e,t={}){const n="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,r=[];let i,s,a=0,o=-1,l="";t.position&&("start"in t.position||"indent"in t.position?(s=t.position.indent,i=t.position.start):i=t.position);let c,h=(i?i.line:0)||1,u=(i?i.column:0)||1,d=p();for(a--;++a<=e.length;)if(10===c&&(u=(s?s[o]:0)||1),c=e.charCodeAt(a),38===c){const i=e.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||n&&i===n){l+=jR(c),u++;continue}const s=a+1;let o,h=s,g=s;if(35===i){g=++h;const t=e.charCodeAt(g);88===t||120===t?(o="hexadecimal",g=++h):o="decimal"}else o="named";let y="",v="",b="";const x="named"===o?MR:"decimal"===o?RR:NR;for(g--;++g<=e.length;){const t=e.charCodeAt(g);if(!x(t))break;b+=jR(t),"named"===o&&DR.includes(b)&&(y=b,v=LR(b))}let w=59===e.charCodeAt(g);if(w){g++;const e="named"===o&&LR(b);e&&(y=b,v=e)}let C=1+g-s,E="";if(w||!1!==t.nonTerminated)if(b)if("named"===o){if(w&&!v)f(5,1);else if(y!==b&&(g=h+y.length,C=1+g-h,w=!1),!w){const n=y?1:3;if(t.attribute){const t=e.charCodeAt(g);61===t?(f(n,C),v=""):MR(t)?v="":f(n,C)}else f(n,C)}E=v}else{w||f(2,C);let e=Number.parseInt(b,"hexadecimal"===o?16:10);if($R(e))f(7,C),E=jR(65533);else if(e in AR)f(6,C),E=AR[e];else{let t="";BR(e)&&f(6,C),e>65535&&(e-=65536,t+=jR(e>>>10|55296),e=56320|1023&e),E=t+jR(e)}}else"named"!==o&&f(4,C);if(E){m(),d=p(),a=g-1,u+=g-s+1,r.push(E);const n=p();n.offset++,t.reference&&t.reference.call(t.referenceContext,E,{start:d,end:n},e.slice(s-1,g)),d=n}else b=e.slice(s-1,g),l+=b,u+=b.length,a=g-1}else 10===c&&(h++,o++,u=0),Number.isNaN(c)?m():(l+=jR(c),u++);return r.join("");function p(){return{line:h,column:u,offset:a+((i?i.offset:0)||0)}}function f(e,n){let r;t.warning&&(r=p(),r.column+=n,r.offset+=n,t.warning.call(t.warningContext,VR[e],r,e))}function m(){l&&(r.push(l),t.text&&t.text.call(t.textContext,l,{start:d,end:p()}),l="")}}(this.resume(),{nonTerminated:!1}),r.position,r.position.end=t(e.end)}function y(e){const n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type;const i={type:"mdxJsxAttributeValueExpression",value:this.resume()},s=e.estree;s&&(i.data={estree:s}),r.value=i,r.position,r.position.end=t(e.end)}function v(){const e=this.data.mdxJsxTag;e.selfClosing=!0}function b(e){const t=this.data.mdxJsxTag,n=this.data.mdxJsxTagStack,r=n[n.length-1];if(t.close&&r.name!==t.name)throw new dR("Unexpected closing tag `"+C(t)+"`, expected corresponding closing tag for `"+C(r)+"` ("+lR(r)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?n.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,x),t.selfClosing||t.close?this.exit(e,w):n.push(t)}function x(e,t){const n=this.data.mdxJsxTagStack,r=n[n.length-1],i=e?" before the end of `"+e.type+"`":"",s=e?{start:e.start,end:e.end}:void 0;throw new dR("Expected a closing tag for `"+C(r)+"` ("+lR({start:t.start,end:t.end})+")"+i,s,"mdast-util-mdx-jsx:end-tag-mismatch")}function w(e,t){const n=this.data.mdxJsxTag;throw new dR("Expected the closing tag `"+C(n)+"` either after the end of `"+t.type+"` ("+lR(t.end)+") or another opening tag after the start of `"+t.type+"` ("+lR(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function C(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}function JR(e){const t=e||{},n=t.quote||'"',r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,s=t.printWidth||Number.POSITIVE_INFINITY,a='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return o.peek=tN,{handlers:{mdxJsxFlowElement:o,mdxJsxTextElement:o},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function o(e,t,o,l){const c="mdxJsxFlowElement"===e.type,h=!!e.name&&(!e.children||0===e.children.length),u=eN(QR(o)),d=o.createTracker(l),p=o.createTracker(l),f=[],m=(c?u:"")+"<"+(e.name||""),g=o.enter(e.type);if(d.move(m),p.move(m),e.attributes&&e.attributes.length>0){if(!e.name)throw new Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++t<e.attributes.length;){const i=e.attributes[t];let s;if("mdxJsxExpressionAttribute"===i.type)s="{"+(i.value||"")+"}";else{if(!i.name)throw new Error("Cannot serialize attribute w/o name");const e=i.value,t=i.name;let o="";if(null==e);else if("object"==typeof e)o="{"+(e.value||"")+"}";else{const t=r&&IR(e,n)>IR(e,a)?a:n;o=t+YR(e,{subset:[t]})+t}s=t+(o?"=":"")+o}f.push(s)}}let y=!1;const v=f.join(" ");c&&(/\r?\n|\r/.test(v)||d.current().now.column+v.length+(h?i?2:3:1)>s)&&(y=!0);let b=d,x=m;if(y){b=p;let e=-1;for(;++e<f.length;)f[e]=u+XR+f[e];x+=b.move("\n"+f.join("\n")+"\n"+u)}else v&&(x+=b.move(" "+v));return h&&(x+=b.move((i||y?"":" ")+"/")),x+=b.move(">"),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?x+=b.move(o.containerPhrasing(e,{...b.current(),before:">",after:"<"})):(b.shift(2),x+=b.move("\n"),x+=b.move(function(e,t,n){const r=t.indexStack,i=e.children,s=t.createTracker(n),a=eN(QR(t)),o=[];let l=-1;r.push(-1);for(;++l<i.length;){const n=i[l];r[r.length-1]=l;const c={before:"\n",after:"\n",...s.current()},h=t.handle(n,e,t,c),u="mdxJsxFlowElement"===n.type?h:t.indentLines(h,(function(e,t,n){return(n?"":a)+e}));o.push(s.move(u)),"list"!==n.type&&(t.bulletLastUsed=void 0),l<i.length-1&&o.push(s.move("\n\n"))}return r.pop(),o.join("")}(e,o,b.current())),x+=b.move("\n"))),h||(x+=b.move((c?u:"")+"</"+(e.name||"")+">")),g(),x}}function QR(e){let t=0,n=e.stack.length;for(;--n>-1;){const r=e.stack[n];if("blockquote"===r||"listItem"===r)break;"mdxJsxFlowElement"===r&&t++}return t}function eN(e){return XR.repeat(e)}function tN(){return"<"}function nN(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function rN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);const r=e.estree;n.value=t,r&&(n.data={estree:r})}function iN(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function sN(e){return e.value||""}var aN=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],oN=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],lN="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",cN={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},hN="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",uN={5:hN,"5module":hN+" export import",6:hN+" const class extends export import super"},dN=/^in(stanceof)?$/,pN=new RegExp("["+lN+"]"),fN=new RegExp("["+lN+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function mN(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function gN(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&pN.test(String.fromCharCode(e)):!1!==t&&mN(e,oN)))}function yN(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&fN.test(String.fromCharCode(e)):!1!==t&&(mN(e,oN)||mN(e,aN)))))}var vN=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function bN(e,t){return new vN(e,{beforeExpr:!0,binop:t})}var xN={beforeExpr:!0},wN={startsExpr:!0},CN={};function EN(e,t){return void 0===t&&(t={}),t.keyword=e,CN[e]=new vN(e,t)}var SN={num:new vN("num",wN),regexp:new vN("regexp",wN),string:new vN("string",wN),name:new vN("name",wN),privateId:new vN("privateId",wN),eof:new vN("eof"),bracketL:new vN("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new vN("]"),braceL:new vN("{",{beforeExpr:!0,startsExpr:!0}),braceR:new vN("}"),parenL:new vN("(",{beforeExpr:!0,startsExpr:!0}),parenR:new vN(")"),comma:new vN(",",xN),semi:new vN(";",xN),colon:new vN(":",xN),dot:new vN("."),question:new vN("?",xN),questionDot:new vN("?."),arrow:new vN("=>",xN),template:new vN("template"),invalidTemplate:new vN("invalidTemplate"),ellipsis:new vN("...",xN),backQuote:new vN("`",wN),dollarBraceL:new vN("${",{beforeExpr:!0,startsExpr:!0}),eq:new vN("=",{beforeExpr:!0,isAssign:!0}),assign:new vN("_=",{beforeExpr:!0,isAssign:!0}),incDec:new vN("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new vN("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:bN("||",1),logicalAND:bN("&&",2),bitwiseOR:bN("|",3),bitwiseXOR:bN("^",4),bitwiseAND:bN("&",5),equality:bN("==/!=/===/!==",6),relational:bN("</>/<=/>=",7),bitShift:bN("<</>>/>>>",8),plusMin:new vN("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:bN("%",10),star:bN("*",10),slash:bN("/",10),starstar:new vN("**",{beforeExpr:!0}),coalesce:bN("??",1),_break:EN("break"),_case:EN("case",xN),_catch:EN("catch"),_continue:EN("continue"),_debugger:EN("debugger"),_default:EN("default",xN),_do:EN("do",{isLoop:!0,beforeExpr:!0}),_else:EN("else",xN),_finally:EN("finally"),_for:EN("for",{isLoop:!0}),_function:EN("function",wN),_if:EN("if"),_return:EN("return",xN),_switch:EN("switch"),_throw:EN("throw",xN),_try:EN("try"),_var:EN("var"),_const:EN("const"),_while:EN("while",{isLoop:!0}),_with:EN("with"),_new:EN("new",{beforeExpr:!0,startsExpr:!0}),_this:EN("this",wN),_super:EN("super",wN),_class:EN("class",wN),_extends:EN("extends",xN),_export:EN("export"),_import:EN("import",wN),_null:EN("null",wN),_true:EN("true",wN),_false:EN("false",wN),_in:EN("in",{beforeExpr:!0,binop:7}),_instanceof:EN("instanceof",{beforeExpr:!0,binop:7}),_typeof:EN("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:EN("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:EN("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},_N=/\r\n?|\n|\u2028|\u2029/,kN=new RegExp(_N.source,"g");function PN(e){return 10===e||13===e||8232===e||8233===e}function ON(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(PN(i))return r<n-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}var TN=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,IN=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,DN=Object.prototype,AN=DN.hasOwnProperty,RN=DN.toString,NN=Object.hasOwn||function(e,t){return AN.call(e,t)},MN=Array.isArray||function(e){return"[object Array]"===RN.call(e)},FN=Object.create(null);function LN(e){return FN[e]||(FN[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function jN(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var VN=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,$N=function(e,t){this.line=e,this.column=t};$N.prototype.offset=function(e){return new $N(this.line,this.column+e)};var BN=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function zN(e,t){for(var n=1,r=0;;){var i=ON(e,r,t);if(i<0)return new $N(n,t-r);++n,r=i}}var HN={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},KN=!1;function UN(e){var t={};for(var n in HN)t[n]=e&&NN(e,n)?e[n]:HN[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!KN&&"object"==typeof console&&console.warn&&(KN=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),MN(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return MN(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,s,a,o){var l={type:n?"Block":"Line",value:r,start:i,end:s};e.locations&&(l.loc=new BN(this,a,o)),e.ranges&&(l.range=[i,s]),t.push(l)}}(t,t.onComment)),t}var WN=256;function GN(e,t){return 2|(e?4:0)|(t?8:0)}var qN=function(e,t,n){this.options=e=UN(e),this.sourceFile=e.sourceFile,this.keywords=LN(uN[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=cN[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=LN(r);var i=(r?r+" ":"")+cN.strict;this.reservedWordsStrict=LN(i),this.reservedWordsStrictBind=LN(i+" "+cN.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(_N).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=SN.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},YN={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};qN.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},YN.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},YN.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},YN.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},YN.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&WN)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},YN.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},YN.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},YN.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},YN.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},YN.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&WN)>0},qN.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},qN.parse=function(e,t){return new this(t,e).parse()},qN.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},qN.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(qN.prototype,YN);var XN=qN.prototype,ZN=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;XN.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){IN.lastIndex=e,e+=IN.exec(this.input)[0].length;var t=ZN.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){IN.lastIndex=e+t[0].length;var n=IN.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||_N.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,IN.lastIndex=e,e+=IN.exec(this.input)[0].length,";"===this.input[e]&&e++}},XN.eat=function(e){return this.type===e&&(this.next(),!0)},XN.isContextual=function(e){return this.type===SN.name&&this.value===e&&!this.containsEsc},XN.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},XN.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},XN.canInsertSemicolon=function(){return this.type===SN.eof||this.type===SN.braceR||_N.test(this.input.slice(this.lastTokEnd,this.start))},XN.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},XN.semicolon=function(){this.eat(SN.semi)||this.insertSemicolon()||this.unexpected()},XN.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},XN.expect=function(e){this.eat(e)||this.unexpected()},XN.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var JN=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};XN.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},XN.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},XN.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},XN.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var QN=qN.prototype;QN.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==SN.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var eM={kind:"loop"},tM={kind:"switch"};QN.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;IN.lastIndex=this.pos;var t=IN.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(gN(r,!0)){for(var i=n+1;yN(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var s=this.input.slice(n,i);if(!dN.test(s))return!0}return!1},QN.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;IN.lastIndex=this.pos;var e,t=IN.exec(this.input),n=this.pos+t[0].length;return!(_N.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(yN(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},QN.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=SN._var,r="let"),i){case SN._break:case SN._continue:return this.parseBreakContinueStatement(s,i.keyword);case SN._debugger:return this.parseDebuggerStatement(s);case SN._do:return this.parseDoStatement(s);case SN._for:return this.parseForStatement(s);case SN._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case SN._class:return e&&this.unexpected(),this.parseClass(s,!0);case SN._if:return this.parseIfStatement(s);case SN._return:return this.parseReturnStatement(s);case SN._switch:return this.parseSwitchStatement(s);case SN._throw:return this.parseThrowStatement(s);case SN._try:return this.parseTryStatement(s);case SN._const:case SN._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case SN._while:return this.parseWhileStatement(s);case SN._with:return this.parseWithStatement(s);case SN.braceL:return this.parseBlock(!0,s);case SN.semi:return this.parseEmptyStatement(s);case SN._export:case SN._import:if(this.options.ecmaVersion>10&&i===SN._import){IN.lastIndex=this.pos;var a=IN.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===SN._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var c=this.value,h=this.parseExpression();return i===SN.name&&"Identifier"===h.type&&this.eat(SN.colon)?this.parseLabeledStatement(s,c,h,e):this.parseExpressionStatement(s,h)}},QN.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(SN.semi)||this.insertSemicolon()?e.label=null:this.type!==SN.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},QN.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},QN.parseDoStatement=function(e){return this.next(),this.labels.push(eM),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(SN._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(SN.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},QN.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(eM),this.enterScope(0),this.expect(SN.parenL),this.type===SN.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===SN._var||this.type===SN._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===SN._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===SN._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=this.isContextual("let"),a=!1,o=this.containsEsc,l=new JN,c=this.start,h=t>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===SN._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===SN._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(h.start!==c||o||"Identifier"!==h.type||"async"!==h.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),s&&a&&this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(h,!1,l),this.checkLValPattern(h),this.parseForIn(e,h)):(this.checkExpressionErrors(l,!0),t>-1&&this.unexpected(t),this.parseFor(e,h))},QN.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,rM|(n?0:iM),!1,t)},QN.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(SN._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},QN.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(SN.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},QN.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(SN.braceL),this.labels.push(tM),this.enterScope(0);for(var n=!1;this.type!==SN.braceR;)if(this.type===SN._case||this.type===SN._default){var r=this.type===SN._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(SN.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},QN.parseThrowStatement=function(e){return this.next(),_N.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var nM=[];QN.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(SN.parenR),e},QN.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===SN._catch){var t=this.startNode();this.next(),this.eat(SN.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(SN._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},QN.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},QN.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(eM),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},QN.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},QN.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},QN.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1){s[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===SN._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},QN.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},QN.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(SN.braceL),e&&this.enterScope(0);this.type!==SN.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},QN.parseFor=function(e,t){return e.init=t,this.expect(SN.semi),e.test=this.type===SN.semi?null:this.parseExpression(),this.expect(SN.semi),e.update=this.type===SN.parenR?null:this.parseExpression(),this.expect(SN.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},QN.parseForIn=function(e,t){var n=this.type===SN._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(SN.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},QN.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(SN.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===SN._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===SN._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(SN.comma))break}return e},QN.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var rM=1,iM=2;function sM(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function aM(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}QN.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===SN.star&&t&iM&&this.unexpected(),e.generator=this.eat(SN.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&rM&&(e.id=4&t&&this.type!==SN.name?null:this.parseIdent(),!e.id||t&iM||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(GN(e.async,e.generator)),t&rM||(e.id=this.type===SN.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&rM?"FunctionDeclaration":"FunctionExpression")},QN.parseFunctionParams=function(e){this.expect(SN.parenL),e.params=this.parseBindingList(SN.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},QN.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(SN.braceL);this.type!==SN.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&sM(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},QN.parseClassElement=function(e){if(this.eat(SN.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(SN.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===SN.star?o=!0:r="static"}if(n.static=o,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==SN.star||this.canInsertSemicolon()?r="async":s=!0),!r&&(t>=9||!s)&&this.eat(SN.star)&&(i=!0),!r&&!s&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:r=l)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===SN.parenL||"method"!==a||i||s){var c=!n.static&&aM(n,"constructor"),h=c&&e;c&&"method"!==a&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":a,this.parseClassMethod(n,i,s,h)}else this.parseClassField(n);return n},QN.isClassElementNameStart=function(){return this.type===SN.name||this.type===SN.privateId||this.type===SN.num||this.type===SN.string||this.type===SN.bracketL||this.type.keyword},QN.parseClassElementName=function(e){this.type===SN.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},QN.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&aM(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},QN.parseClassField=function(e){if(aM(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&aM(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(SN.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},QN.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==SN.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},QN.parseClassId=function(e,t){this.type===SN.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},QN.parseClassSuper=function(e){e.superClass=this.eat(SN._extends)?this.parseExprSubscripts(null,!1):null},QN.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},QN.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],s=0;s<n.length;++s){var a=n[s];NN(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},QN.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==SN.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},QN.parseExport=function(e,t){if(this.next(),this.eat(SN.star))return this.parseExportAllDeclaration(e,t);if(this.eat(SN._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==SN.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},QN.parseExportDeclaration=function(e){return this.parseStatement(null)},QN.parseExportDefaultDeclaration=function(){var e;if(this.type===SN._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|rM,!1,e)}if(this.type===SN._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},QN.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),NN(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},QN.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n&&this.checkPatternExport(e,t.argument)},QN.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},QN.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},QN.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},QN.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(SN.braceL);!this.eat(SN.braceR);){if(n)n=!1;else if(this.expect(SN.comma),this.afterTrailingComma(SN.braceR))break;t.push(this.parseExportSpecifier(e))}return t},QN.parseImport=function(e){return this.next(),this.type===SN.string?(e.specifiers=nM,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===SN.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},QN.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},QN.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},QN.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},QN.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===SN.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(SN.comma)))return e;if(this.type===SN.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(SN.braceL);!this.eat(SN.braceR);){if(t)t=!1;else if(this.expect(SN.comma),this.afterTrailingComma(SN.braceR))break;e.push(this.parseImportSpecifier())}return e},QN.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===SN.string){var e=this.parseLiteral(this.value);return VN.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},QN.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},QN.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var oM=qN.prototype;oM.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},oM.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},oM.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},oM.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==SN.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},oM.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case SN.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(SN.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case SN.braceL:return this.parseObj(!0)}return this.parseIdent()},oM.parseBindingList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(SN.comma),t&&this.type===SN.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===SN.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===SN.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}i.push(this.parseAssignableListItem(r))}return i},oM.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},oM.parseBindingListItem=function(e){return e},oM.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(SN.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},oM.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(NN(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},oM.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,t,n)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,n)}break;default:this.checkLValSimple(e,t,n)}},oM.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var lM=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},cM={b_stat:new lM("{",!1),b_expr:new lM("{",!0),b_tmpl:new lM("${",!1),p_stat:new lM("(",!1),p_expr:new lM("(",!0),q_tmpl:new lM("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new lM("function",!1),f_expr:new lM("function",!0),f_expr_gen:new lM("function",!0,!1,null,!0),f_gen:new lM("function",!1,!1,null,!0)},hM=qN.prototype;hM.initialContext=function(){return[cM.b_stat]},hM.curContext=function(){return this.context[this.context.length-1]},hM.braceIsBlock=function(e){var t=this.curContext();return t===cM.f_expr||t===cM.f_stat||(e!==SN.colon||t!==cM.b_stat&&t!==cM.b_expr?e===SN._return||e===SN.name&&this.exprAllowed?_N.test(this.input.slice(this.lastTokEnd,this.start)):e===SN._else||e===SN.semi||e===SN.eof||e===SN.parenR||e===SN.arrow||(e===SN.braceL?t===cM.b_stat:e!==SN._var&&e!==SN._const&&e!==SN.name&&!this.exprAllowed):!t.isExpr)},hM.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},hM.updateContext=function(e){var t,n=this.type;n.keyword&&e===SN.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},hM.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},SN.parenR.updateContext=SN.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===cM.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},SN.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?cM.b_stat:cM.b_expr),this.exprAllowed=!0},SN.dollarBraceL.updateContext=function(){this.context.push(cM.b_tmpl),this.exprAllowed=!0},SN.parenL.updateContext=function(e){var t=e===SN._if||e===SN._for||e===SN._with||e===SN._while;this.context.push(t?cM.p_stat:cM.p_expr),this.exprAllowed=!0},SN.incDec.updateContext=function(){},SN._function.updateContext=SN._class.updateContext=function(e){!e.beforeExpr||e===SN._else||e===SN.semi&&this.curContext()!==cM.p_stat||e===SN._return&&_N.test(this.input.slice(this.lastTokEnd,this.start))||(e===SN.colon||e===SN.braceL)&&this.curContext()===cM.b_stat?this.context.push(cM.f_stat):this.context.push(cM.f_expr),this.exprAllowed=!1},SN.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},SN.backQuote.updateContext=function(){this.curContext()===cM.q_tmpl?this.context.pop():this.context.push(cM.q_tmpl),this.exprAllowed=!1},SN.star.updateContext=function(e){if(e===SN._function){var t=this.context.length-1;this.context[t]===cM.f_expr?this.context[t]=cM.f_expr_gen:this.context[t]=cM.f_gen}this.exprAllowed=!0},SN.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==SN.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var uM=qN.prototype;function dM(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&dM(e.expression)}function pM(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&pM(e.expression)||"ParenthesizedExpression"===e.type&&pM(e.expression)}uM.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[r="$"+r];if(a)("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(i.start,"Redefinition of property");else a=t[r]={init:!1,get:!1,set:!1};a[s]=!0}}},uM.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===SN.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(SN.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},uM.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,s=-1,a=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new JN,r=!0);var o=this.start,l=this.startLoc;this.type!==SN.parenL&&this.type!==SN.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,o,l)),this.type.isAssign){var h=this.startNodeAt(o,l);return h.operator=this.value,this.type===SN.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===SN.eq?this.checkLValPattern(c):this.checkLValSimple(c),h.left=c,this.next(),h.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(h,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),c},uM.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(SN.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(SN.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},uM.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},uM.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==SN._in)&&s>r){var a=this.type===SN.logicalOR||this.type===SN.logicalAND,o=this.type===SN.coalesce;o&&(s=SN.logicalAND.binop);var l=this.value;this.next();var c=this.start,h=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),c,h,s,i),d=this.buildBinary(t,n,e,u,l,a||o);return(a&&this.type===SN.coalesce||o&&(this.type===SN.logicalOR||this.type===SN.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,n,r,i)}return e},uM.buildBinary=function(e,t,n,r,i,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=n,a.operator=i,a.right=r,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},uM.parseMaybeUnary=function(e,t,n,r){var i,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===SN.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&dM(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&pM(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==SN.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(s,a);c.operator=this.value,c.prefix=!1,c.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(c,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==SN._in&&this.unexpected();return n||!this.eat(SN.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},uM.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var s=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},uM.parseSubscripts=function(e,t,n,r,i){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,n,r,s,a,i);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,n);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},uM.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(SN.arrow)},uM.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},uM.parseSubscript=function(e,t,n,r,i,s,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(SN.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(SN.bracketL);if(c||l&&this.type!==SN.parenL&&this.type!==SN.backQuote||this.eat(SN.dot)){var h=this.startNodeAt(t,n);h.object=e,c?(h.property=this.parseExpression(),this.expect(SN.bracketR)):this.type===SN.privateId&&"Super"!==e.type?h.property=this.parsePrivateIdent():h.property=this.parseIdent("never"!==this.options.allowReserved),h.computed=!!c,o&&(h.optional=l),e=this.finishNode(h,"MemberExpression")}else if(!r&&this.eat(SN.parenL)){var u=new JN,d=this.yieldPos,p=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(SN.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=p,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,n,m,a);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=m,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===SN.backQuote){(l||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,n);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},uM.parseExprAtom=function(e,t,n){this.type===SN.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case SN._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==SN.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==SN.dot&&this.type!==SN.bracketL&&this.type!==SN.parenL&&this.unexpected(),this.finishNode(r,"Super");case SN._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case SN.name:var s=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(SN._function))return this.overrideContext(cM.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(SN.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===SN.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(SN.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[l],!0,t)}return l;case SN.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case SN.num:case SN.string:return this.parseLiteral(this.value);case SN._null:case SN._true:case SN._false:return(r=this.startNode()).value=this.type===SN._null?null:this.type===SN._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case SN.parenL:var h=this.start,u=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=h),e.parenthesizedBind<0&&(e.parenthesizedBind=h)),u;case SN.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(SN.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case SN.braceL:return this.overrideContext(cM.b_expr),this.parseObj(!1,e);case SN._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case SN._class:return this.parseClass(this.startNode(),!1);case SN._new:return this.parseNew();case SN.backQuote:return this.parseTemplate();case SN._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},uM.parseExprAtomDefault=function(){this.unexpected()},uM.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===SN.parenL&&!e)return this.parseDynamicImport(t);if(this.type===SN.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},uM.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(SN.parenR)){var t=this.start;this.eat(SN.comma)&&this.eat(SN.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},uM.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},uM.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},uM.parseParenExpression=function(){this.expect(SN.parenL);var e=this.parseExpression();return this.expect(SN.parenR),e},uM.shouldParseArrow=function(e){return!this.canInsertSemicolon()},uM.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],h=!0,u=!1,d=new JN,p=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==SN.parenR;){if(h?h=!1:this.expect(SN.comma),s&&this.afterTrailingComma(SN.parenR,!0)){u=!0;break}if(this.type===SN.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===SN.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(SN.parenR),e&&this.shouldParseArrow(c)&&this.eat(SN.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=f,this.parseParenArrowList(r,i,c,t);c.length&&!u||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,c.length>1?((n=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(n,"SequenceExpression",m,g)):n=c[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(r,i);return y.expression=n,this.finishNode(y,"ParenthesizedExpression")}return n},uM.parseParenItem=function(e){return e},uM.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var fM=[];uM.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===SN.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(SN.parenL)?e.arguments=this.parseExprList(SN.parenR,this.options.ecmaVersion>=8,!1):e.arguments=fM,this.finishNode(e,"NewExpression")},uM.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===SN.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===SN.backQuote,this.finishNode(n,"TemplateElement")},uM.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===SN.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(SN.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(SN.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},uM.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===SN.name||this.type===SN.num||this.type===SN.string||this.type===SN.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===SN.star)&&!_N.test(this.input.slice(this.lastTokEnd,this.start))},uM.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(SN.braceR);){if(r)r=!1;else if(this.expect(SN.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(SN.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},uM.parseProperty=function(e,t){var n,r,i,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(SN.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===SN.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===SN.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(SN.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(SN.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,n,r,i,s,t,o),this.finishNode(a,"Property")},uM.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},uM.parsePropertyValue=function(e,t,n,r,i,s,a,o){(n||r)&&this.type===SN.colon&&this.unexpected(),this.eat(SN.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===SN.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===SN.comma||this.type===SN.braceR||this.type===SN.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===SN.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},uM.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(SN.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(SN.bracketR),e.key;e.computed=!1}return e.key=this.type===SN.num||this.type===SN.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},uM.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},uM.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|GN(t,r.generator)|(n?128:0)),this.expect(SN.parenL),r.params=this.parseBindingList(SN.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},uM.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|GN(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},uM.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==SN.braceL,s=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);s&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},uM.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},uM.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,1,t?null:n)}},uM.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(SN.comma),t&&this.afterTrailingComma(e))break;var a=void 0;n&&this.type===SN.comma?a=null:this.type===SN.ellipsis?(a=this.parseSpread(r),r&&this.type===SN.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),i.push(a)}return i},uM.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},uM.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},uM.parseIdentNode=function(){var e=this.startNode();return this.type===SN.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=SN.name):this.unexpected(),e},uM.parsePrivateIdent=function(){var e=this.startNode();return this.type===SN.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},uM.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===SN.semi||this.canInsertSemicolon()||this.type!==SN.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(SN.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},uM.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var mM=qN.prototype;mM.raise=function(e,t){var n=zN(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},mM.raiseRecoverable=mM.raise,mM.curPosition=function(){if(this.options.locations)return new $N(this.curLine,this.pos-this.lineStart)};var gM=qN.prototype,yM=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};gM.enterScope=function(e){this.scopeStack.push(new yM(e))},gM.exitScope=function(){this.scopeStack.pop()},gM.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},gM.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},gM.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},gM.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},gM.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},gM.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var vM=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new BN(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},bM=qN.prototype;function xM(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}bM.startNode=function(){return new vM(this,this.start,this.startLoc)},bM.startNodeAt=function(e,t){return new vM(this,e,t)},bM.finishNode=function(e,t){return xM.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},bM.finishNodeAt=function(e,t,n,r){return xM.call(this,e,t,n,r)},bM.copyNode=function(e){var t=new vM(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var wM="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",CM=wM+" Extended_Pictographic",EM=CM+" EBase EComp EMod EPres ExtPict",SM={9:wM,10:CM,11:CM,12:EM,13:EM,14:EM},_M={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},kM="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",PM="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",OM=PM+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",TM=OM+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",IM=TM+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",DM=IM+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",AM={9:PM,10:OM,11:TM,12:IM,13:DM,14:DM+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},RM={};function NM(e){var t=RM[e]={binary:LN(SM[e]+" "+kM),binaryOfStrings:LN(_M[e]),nonBinary:{General_Category:LN(kM),Script:LN(AM[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var MM=0,FM=[9,10,11,12,13,14];MM<FM.length;MM+=1){NM(FM[MM])}var LM=qN.prototype,jM=function(e,t){this.parent=e,this.base=t||this};jM.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},jM.prototype.sibling=function(){return new jM(this.parent,this.base)};var VM=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=RM[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function $M(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function BM(e){return e>=65&&e<=90||e>=97&&e<=122}VM.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),i=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},VM.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},VM.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i},VM.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,s=n.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},VM.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},VM.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},VM.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},VM.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},VM.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var s=i[r],a=this.at(n,t);if(-1===a||a!==s)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},LM.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,s=0;s<n.length;s++){var a=n.charAt(s);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(a,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},LM.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},LM.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}},LM.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new jM(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},LM.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},LM.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},LM.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},LM.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},LM.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},LM.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},LM.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},LM.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},LM.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},LM.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},LM.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},LM.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},LM.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!$M(t)&&(e.lastIntValue=t,e.advance(),!0)},LM.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!$M(n);)e.advance();return e.pos!==t},LM.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},LM.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var r=0,i=n;r<i.length;r+=1){i[r].separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},LM.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},LM.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=jN(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=jN(e.lastIntValue);return!0}return!1},LM.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return gN(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},LM.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return yN(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},LM.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},LM.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},LM.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},LM.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},LM.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},LM.regexp_eatZero=function(e){return 48===e.current()&&!KM(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},LM.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},LM.regexp_eatControlLetter=function(e){var t=e.current();return!!BM(t)&&(e.lastIntValue=t%32,e.advance(),!0)},LM.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=1024*(s-55296)+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},LM.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},LM.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function zM(e){return BM(e)||95===e}function HM(e){return zM(e)||KM(e)}function KM(e){return e>=48&&e<=57}function UM(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function WM(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function GM(e){return e>=48&&e<=55}LM.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&2===r&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return 0},LM.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},LM.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){NN(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},LM.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},LM.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";zM(t=e.current());)e.lastStringValue+=jN(t),e.advance();return""!==e.lastStringValue},LM.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";HM(t=e.current());)e.lastStringValue+=jN(t),e.advance();return""!==e.lastStringValue},LM.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},LM.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},LM.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},LM.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},LM.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||GM(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},LM.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},LM.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(n=1):e.raise("Invalid character in character class");if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},LM.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return-1!==n&&-1!==r&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},LM.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},LM.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},LM.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},LM.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},LM.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},LM.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(n))&&(!function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(n)&&(e.advance(),e.lastIntValue=n,!0))},LM.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},LM.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!KM(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},LM.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},LM.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;KM(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},LM.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;UM(n=e.current());)e.lastIntValue=16*e.lastIntValue+WM(n),e.advance();return e.pos!==t},LM.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},LM.regexp_eatOctalDigit=function(e){var t=e.current();return GM(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},LM.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!UM(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+WM(i),e.advance()}return!0};var qM=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new BN(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},YM=qN.prototype;function XM(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}YM.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new qM(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},YM.getToken=function(){return this.next(),new qM(this)},"undefined"!=typeof Symbol&&(YM[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===SN.eof,value:t}}}}),YM.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(SN.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},YM.readToken=function(e){return gN(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},YM.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},YM.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=ON(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},YM.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!PN(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},YM.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&TN.test(String.fromCharCode(e))))break e;++this.pos}}},YM.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},YM.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(SN.ellipsis)):(++this.pos,this.finishToken(SN.dot))},YM.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(SN.assign,2):this.finishOp(SN.slash,1)},YM.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?SN.star:SN.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=SN.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(SN.assign,n+1):this.finishOp(r,n)},YM.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(SN.assign,3);return this.finishOp(124===e?SN.logicalOR:SN.logicalAND,2)}return 61===t?this.finishOp(SN.assign,2):this.finishOp(124===e?SN.bitwiseOR:SN.bitwiseAND,1)},YM.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(SN.assign,2):this.finishOp(SN.bitwiseXOR,1)},YM.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!_N.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(SN.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(SN.assign,2):this.finishOp(SN.plusMin,1)},YM.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(SN.assign,n+1):this.finishOp(SN.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(SN.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},YM.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(SN.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(SN.arrow)):this.finishOp(61===e?SN.eq:SN.prefix,1)},YM.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(SN.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(SN.assign,3);return this.finishOp(SN.coalesce,2)}}return this.finishOp(SN.question,1)},YM.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,gN(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(SN.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+jN(e)+"'")},YM.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(SN.parenL);case 41:return++this.pos,this.finishToken(SN.parenR);case 59:return++this.pos,this.finishToken(SN.semi);case 44:return++this.pos,this.finishToken(SN.comma);case 91:return++this.pos,this.finishToken(SN.bracketL);case 93:return++this.pos,this.finishToken(SN.bracketR);case 123:return++this.pos,this.finishToken(SN.braceL);case 125:return++this.pos,this.finishToken(SN.braceR);case 58:return++this.pos,this.finishToken(SN.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(SN.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(SN.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+jN(e)+"'")},YM.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},YM.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(_N.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new VM(this));o.reset(n,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(SN.regexp,{pattern:i,flags:a,value:l})},YM.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var h=this.input.charCodeAt(this.pos),u=void 0;if(r&&95===h)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=h;else{if((u=h>=97?h-97+10:h>=65?h-65+10:h>=48&&h<=57?h-48:1/0)>=e)break;o=h,a=a*e+u}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:a},YM.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=XM(this.input.slice(t,this.pos)),++this.pos):gN(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(SN.num,n)},YM.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=XM(this.input.slice(t,this.pos));return++this.pos,gN(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(SN.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),gN(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,a=(s=this.input.slice(t,this.pos),n?parseInt(s,8):parseFloat(s.replace(/_/g,"")));return this.finishToken(SN.num,a)},YM.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},YM.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(PN(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(SN.string,t)};var ZM={};YM.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==ZM)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},YM.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ZM;this.raise(e,t)},YM.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==SN.template&&this.type!==SN.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(SN.template,e)):36===n?(this.pos+=2,this.finishToken(SN.dollarBraceL)):(++this.pos,this.finishToken(SN.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(PN(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},YM.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(SN.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},YM.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return jN(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return PN(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},YM.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},YM.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(yN(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?gN:yN)(a,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=jN(a),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},YM.readWord=function(){var e=this.readWord1(),t=SN.name;return this.keywords.test(e)&&(t=CN[e]),this.finishToken(t,e)};qN.acorn={Parser:qN,version:"8.12.1",defaultOptions:HN,Position:$N,SourceLocation:BN,getLineInfo:zN,Node:vM,TokenType:vN,tokTypes:SN,keywordTypes:CN,TokContext:lM,tokContexts:cM,isIdentifierChar:yN,isIdentifierStart:gN,Token:qM,isNewLine:PN,lineBreak:_N,lineBreakG:kN,nonASCIIwhitespace:TN};var JM=__webpack_require__("yBkX");const QM=uF(/[A-Za-z]/),eF=uF(/[\dA-Za-z]/),tF=uF(/[#-'*+\--9=?A-Z^-~]/);function nF(e){return null!==e&&(e<32||127===e)}const rF=uF(/\d/),iF=uF(/[\dA-Fa-f]/),sF=uF(/[!-/:-@[-`{-~]/);function aF(e){return null!==e&&e<-2}function oF(e){return null!==e&&(e<0||32===e)}function lF(e){return-2===e||-1===e||32===e}const cF=uF(/\p{P}|\p{S}/u),hF=uF(/\s/);function uF(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}const dF={}.hasOwnProperty,pF=Symbol("continue"),fF=Symbol("exit"),mF=Symbol("skip");function gF(e){return Array.isArray(e)?e:"number"==typeof e?[pF,e]:[e]}function yF(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function vF(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),s=[],a=[],o=i.onComment,l=i.onToken;let c,h,u=!1;const d=Object.assign({},i,{onComment:s,preserveParens:!0});l&&(d.onToken=a);const p=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r<e.length;){const i=e[r];if("enter"===i[0]){const e=i[1].type;if("lineEnding"===e||t.includes(e)){const e=i[2].sliceStream(i[1]);for(;e.length>0&&-1===e[0];)e.shift();const t=xF(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),f=p.value,m=n+f+r,g=t.expression&&bF(f);if(g&&!t.allowEmpty)throw new dR("Unexpected empty expression",{place:v(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{c=t.expression&&!g?t.acorn.parseExpressionAt(m,0,d):t.acorn.parse(m,d)}catch(e){const t=e,r=v(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},h=t,u=t.raisedAt>=n.length+f.length||"Unterminated comment"===t.message}if(c&&t.expression&&!g)if(bF(m.slice(c.end,m.length-r.length)))c={type:"Program",start:0,end:n.length+f.length,body:[{type:"ExpressionStatement",expression:c,start:0,end:n.length+f.length}],sourceType:"module",comments:[]};else{const e=v(c.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},h=t,c=void 0}if(c){if(c.comments=s,function(e,t){let n,r;"function"==typeof t?n=t:t&&"object"==typeof t&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),function e(t,i,s,a){return yF(t)&&(o.displayName="node ("+t.type+")"),o;function o(){const o=n?gF(n(t,i,s,a)):[];if(o[0]===fF)return o;if(o[0]!==mF){let n;for(n in t)if(dF.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=a.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let s=0;for(;s>-1&&s<t.length;){const i=t[s];if(yF(i)){const t=e(i,n,s,r)();if(t[0]===fF)return t;s="number"==typeof t[1]?t[1]:s+1}else s++}}else if(yF(i)){const t=e(i,n,void 0,r)();if(t[0]===fF)return t}}}return r?gF(r(t,i,s,a)):o}}(e,void 0,void 0,[])()}(c,(function(e,t,n,r){let i=r[r.length-1],s=t;"ParenthesizedExpression"===e.type&&i&&s&&("number"==typeof n&&(i=i[s],s=n),i[s]=e.expression),y(e)})),Array.isArray(o))o.push(...s);else if("function"==typeof o)for(const e of s)o("Block"===e.type,e.value,e.start,e.end,e.loc.start,e.loc.end);for(const e of a)e.end<=n.length||e.start-n.length>=f.length||(y(e),Array.isArray(l)?l.push(e):l(e))}return{estree:c,error:h,swallow:u};function y(e){const t=v(e.start),n=v(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function v(e){let r=e-n.length;r<0?r=0:r>f.length&&(r=f.length);let i=function(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(0===n)return;const[r,i]=e[n-1],s=t-r;return{line:i.line,column:i.column+s,offset:i.offset+s}}(p.stops,r);return i||(i={line:t.start.line,column:t.start.column,offset:t.start.offset}),i}}function bF(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function xF(e){let t=-1;const n=[];let r;for(;++t<e.length;){const i=e[t];let s;if("string"==typeof i)s=i;else switch(i){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s="\t";break;case-1:if(r)continue;s=" ";break;default:s=String.fromCharCode(i)}r=-2===i,n.push(s)}return n.join("")}function wF(e){const t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=CF(n.start,r[0]||t.start),s=CF(n.end,r[1]||t.end);if(i&&s)return{start:i,end:s}}function CF(e,t){if(e&&"object"==typeof e){const n="line"in e?EF(e.line):void 0,r="column"in e?EF(e.column):void 0;if(n&&void 0!==r)return{line:n,column:r+1,offset:EF(t)}}}function EF(e){return"number"==typeof e&&e>-1?e:void 0}const SF="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",_F="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",kF="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",PF="#unexpected-type-in-code-expected-an-object-spread-spread",OF="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",TF="#could-not-parse-expression-with-acorn";function IF(e,t,n,r,i,s,a,o,l,c,h){const u=this,d=this.events.length+3;let p,f,m=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),p=u.now(),g};function g(h){if(null===h){if(f)throw f;const e=new dR("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:u.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=SF+_F,e}if(aF(h))return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),v;if(125===h&&0===m){const m=s?DF.call(u,s,a,i,d,p,c||!1,l||!1):{type:"ok",estree:void 0};if("ok"===m.type){e.enter(r),e.consume(h),e.exit(r);const i=e.exit(n);return o&&m.estree&&Object.assign(i,{estree:m.estree}),t}return f=m.message,e.enter(i),e.consume(h),y}return e.enter(i),y(h)}function y(t){return 125===t&&0===m||null===t||aF(t)?(e.exit(i),g(t)):(123!==t||s?125===t&&(m-=1):m+=1,e.consume(t),y)}function v(e){const t=u.now();if(t.line!==p.line&&!h&&u.parser.lazy[t.line]){const e=new dR("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:u.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=SF+kF,e}return g(e)}}function DF(e,t,n,r,i,s,a){const o=vF(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:s,prefix:a?"({":"",suffix:a?"})":""}),l=o.estree;if(a&&l){const e=l.body[0];if("ExpressionStatement"!==e.type||"ObjectExpression"!==e.expression.type){const t=wF(e),n=new dR("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=SF+PF,n}if(e.expression.properties[1]){const t=wF(e.expression.properties[1]),n=new dR("Unexpected extra content in spread: only a single spread is supported",{place:t.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw n.url=SF+OF,n}if(e.expression.properties[0]&&"SpreadElement"!==e.expression.properties[0].type){const t=wF(e.expression.properties[0]),n=new dR("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=SF+PF,n}}if(o.error){const e=new dR("Could not parse expression with acorn",{cause:o.error,place:{line:o.error.loc.line,column:o.error.loc.column+1,offset:o.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return e.url=SF+TF,{type:"nok",message:e}}return{type:"ok",estree:l}}function AF(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return function(r){if(lF(r))return e.enter(n),a(r);return t(r)};function a(r){return lF(r)&&s++<i?(e.consume(r),a):(e.exit(n),t(r))}}function RF(e){const t=e||{},n=t.addResult,r=t.acorn,i=t.spread;let s,a=t.allowEmpty;if(null==a&&(a=!0),r){if(!r.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");s=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions)}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{123:{name:"mdxFlowExpression",tokenize:function(e,t,o){const l=this;return function(t){return function(t){return IF.call(l,e,c,"mdxFlowExpression","mdxFlowExpressionMarker","mdxFlowExpressionChunk",r,s,n,i,a)(t)}(t)};function c(t){return lF(t)?AF(e,h,"whitespace")(t):h(t)}function h(n){const r=l.parser.constructs.flow[60],i=(Array.isArray(r)?r:r?[r]:[]).find((function(e){return"mdxJsxFlowTag"===e.name}));return 60===n&&i?e.attempt(i,h,o)(n):null===n||aF(n)?t(n):o(n)}},concrete:!0}},text:{123:{name:"mdxTextExpression",tokenize:function(e,t){const o=this;return function(l){return IF.call(o,e,t,"mdxTextExpression","mdxTextExpressionMarker","mdxTextExpressionChunk",r,s,n,i,a,!0)(l)}}}}}}const NF=/[$_\p{ID_Start}]/u,MF=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,FF=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,LF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VF={};function $F(e){return!!e&&NF.test(String.fromCodePoint(e))}function BF(e,t){const n=(t||VF).jsx?FF:MF;return!!e&&n.test(String.fromCodePoint(e))}function zF(e,t){return((t||VF).jsx?jF:LF).test(e)}const HF={}.hasOwnProperty,KF=Symbol("continue"),UF=Symbol("exit"),WF=Symbol("skip");function GF(e){return Array.isArray(e)?e:"number"==typeof e?[KF,e]:[e]}function qF(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function YF(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),s=[],a=[],o=i.onComment,l=i.onToken;let c,h,u=!1;const d=Object.assign({},i,{onComment:s,preserveParens:!0});l&&(d.onToken=a);const p=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r<e.length;){const i=e[r];if("enter"===i[0]){const e=i[1].type;if("lineEnding"===e||t.includes(e)){const e=i[2].sliceStream(i[1]);for(;e.length>0&&-1===e[0];)e.shift();const t=ZF(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),f=p.value,m=n+f+r,g=t.expression&&XF(f);if(g&&!t.allowEmpty)throw new dR("Unexpected empty expression",{place:v(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{c=t.expression&&!g?t.acorn.parseExpressionAt(m,0,d):t.acorn.parse(m,d)}catch(e){const t=e,r=v(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},h=t,u=t.raisedAt>=n.length+f.length||"Unterminated comment"===t.message}if(c&&t.expression&&!g)if(XF(m.slice(c.end,m.length-r.length)))c={type:"Program",start:0,end:n.length+f.length,body:[{type:"ExpressionStatement",expression:c,start:0,end:n.length+f.length}],sourceType:"module",comments:[]};else{const e=v(c.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},h=t,c=void 0}if(c){if(c.comments=s,function(e,t){let n,r;"function"==typeof t?n=t:t&&"object"==typeof t&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),function e(t,i,s,a){return qF(t)&&(o.displayName="node ("+t.type+")"),o;function o(){const o=n?GF(n(t,i,s,a)):[];if(o[0]===UF)return o;if(o[0]!==WF){let n;for(n in t)if(HF.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=a.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let s=0;for(;s>-1&&s<t.length;){const i=t[s];if(qF(i)){const t=e(i,n,s,r)();if(t[0]===UF)return t;s="number"==typeof t[1]?t[1]:s+1}else s++}}else if(qF(i)){const t=e(i,n,void 0,r)();if(t[0]===UF)return t}}}return r?GF(r(t,i,s,a)):o}}(e,void 0,void 0,[])()}(c,(function(e,t,n,r){let i=r[r.length-1],s=t;"ParenthesizedExpression"===e.type&&i&&s&&("number"==typeof n&&(i=i[s],s=n),i[s]=e.expression),y(e)})),Array.isArray(o))o.push(...s);else if("function"==typeof o)for(const e of s)o("Block"===e.type,e.value,e.start,e.end,e.loc.start,e.loc.end);for(const e of a)e.end<=n.length||e.start-n.length>=f.length||(y(e),Array.isArray(l)?l.push(e):l(e))}return{estree:c,error:h,swallow:u};function y(e){const t=v(e.start),n=v(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function v(e){let r=e-n.length;r<0?r=0:r>f.length&&(r=f.length);let i=function(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(0===n)return;const[r,i]=e[n-1],s=t-r;return{line:i.line,column:i.column+s,offset:i.offset+s}}(p.stops,r);return i||(i={line:t.start.line,column:t.start.column,offset:t.start.offset}),i}}function XF(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function ZF(e){let t=-1;const n=[];let r;for(;++t<e.length;){const i=e[t];let s;if("string"==typeof i)s=i;else switch(i){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s="\t";break;case-1:if(r)continue;s=" ";break;default:s=String.fromCharCode(i)}r=-2===i,n.push(s)}return n.join("")}const JF="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",QF="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",eL="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",tL="#unexpected-type-in-code-expected-an-object-spread-spread",nL="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",rL="#could-not-parse-expression-with-acorn";function iL(e,t,n,r,i,s,a,o,l,c,h){const u=this,d=this.events.length+3;let p,f,m=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),p=u.now(),g};function g(h){if(null===h){if(f)throw f;const e=new dR("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:u.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=JF+QF,e}if(aF(h))return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),v;if(125===h&&0===m){const m=s?sL.call(u,s,a,i,d,p,c||!1,l||!1):{type:"ok",estree:void 0};if("ok"===m.type){e.enter(r),e.consume(h),e.exit(r);const i=e.exit(n);return o&&m.estree&&Object.assign(i,{estree:m.estree}),t}return f=m.message,e.enter(i),e.consume(h),y}return e.enter(i),y(h)}function y(t){return 125===t&&0===m||null===t||aF(t)?(e.exit(i),g(t)):(123!==t||s?125===t&&(m-=1):m+=1,e.consume(t),y)}function v(e){const t=u.now();if(t.line!==p.line&&!h&&u.parser.lazy[t.line]){const e=new dR("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:u.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=JF+eL,e}return g(e)}}function sL(e,t,n,r,i,s,a){const o=YF(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:s,prefix:a?"({":"",suffix:a?"})":""}),l=o.estree;if(a&&l){const e=l.body[0];if("ExpressionStatement"!==e.type||"ObjectExpression"!==e.expression.type){const t=wF(e),n=new dR("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=JF+tL,n}if(e.expression.properties[1]){const t=wF(e.expression.properties[1]),n=new dR("Unexpected extra content in spread: only a single spread is supported",{place:t.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw n.url=JF+nL,n}if(e.expression.properties[0]&&"SpreadElement"!==e.expression.properties[0].type){const t=wF(e.expression.properties[0]),n=new dR("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=JF+tL,n}}if(o.error){const e=new dR("Could not parse expression with acorn",{cause:o.error,place:{line:o.error.loc.line,column:o.error.loc.column+1,offset:o.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return e.url=JF+rL,{type:"nok",message:e}}return{type:"ok",estree:l}}const aL="https://github.com/micromark/micromark-extension-mdx-jsx";function oL(e,t,n,r,i,s,a,o,l,c,h,u,d,p,f,m,g,y,v,b,x,w,C,E,S,_,k,P,O,T,I,D){const A=this;let R,N;return function(t){return e.enter(o),e.enter(l),e.consume(t),e.exit(l),M};function M(e){return oF(e)?n(e):(R=F,se(e))}function F(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),R=L,se):62===t?ie(t):null!==t&&t>=0&&$F(t)?(e.enter(u),e.enter(d),e.consume(t),j):void le(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function L(t){return 62===t?ie(t):null!==t&&t>=0&&$F(t)?(e.enter(u),e.enter(d),e.consume(t),j):void le(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function j(t){return null!==t&&t>=0&&BF(t,{jsx:!0})?(e.consume(t),j):46===t||47===t||58===t||62===t||123===t||oF(t)||hF(t)?(e.exit(d),R=V,se(t)):void le(t,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function V(t){return 46===t?(e.enter(p),e.consume(t),e.exit(p),R=$,se):58===t?(e.enter(m),e.consume(t),e.exit(m),R=H,se):47===t||62===t||123===t||null!==t&&t>=0&&$F(t)?(e.exit(u),W(t)):void le(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function $(t){if(null!==t&&t>=0&&$F(t))return e.enter(f),e.consume(t),B;le(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function B(t){return null!==t&&t>=0&&BF(t,{jsx:!0})?(e.consume(t),B):46===t||47===t||62===t||123===t||oF(t)||hF(t)?(e.exit(f),R=z,se(t)):void le(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function z(t){return 46===t?(e.enter(p),e.consume(t),e.exit(p),R=$,se):47===t||62===t||123===t||null!==t&&t>=0&&$F(t)?(e.exit(u),W(t)):void le(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function H(t){if(null!==t&&t>=0&&$F(t))return e.enter(g),e.consume(t),K;le(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function K(t){return null!==t&&t>=0&&BF(t,{jsx:!0})?(e.consume(t),K):47===t||62===t||123===t||oF(t)||hF(t)?(e.exit(g),R=U,se(t)):void le(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function U(t){if(47===t||62===t||123===t||null!==t&&t>=0&&$F(t))return e.exit(u),W(t);le(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(t){return 47===t?(e.enter(h),e.consume(t),e.exit(h),R=re,se):62===t?ie(t):123===t?iL.call(A,e,G,y,v,b,r,i,s,!0,!1,a)(t):null!==t&&t>=0&&$F(t)?(e.enter(x),e.enter(w),e.enter(C),e.consume(t),q):void le(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function G(e){return R=W,se(e)}function q(t){return null!==t&&t>=0&&BF(t,{jsx:!0})?(e.consume(t),q):47===t||58===t||61===t||62===t||123===t||oF(t)||hF(t)?(e.exit(C),R=Y,se(t)):void le(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Y(t){return 58===t?(e.enter(E),e.consume(t),e.exit(E),R=X,se):61===t?(e.exit(w),e.enter(_),e.consume(t),e.exit(_),R=Q,se):47===t||62===t||123===t||oF(t)||hF(t)||null!==t&&t>=0&&$F(t)?(e.exit(w),e.exit(x),R=W,se(t)):void le(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function X(t){if(null!==t&&t>=0&&$F(t))return e.enter(S),e.consume(t),Z;le(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Z(t){return null!==t&&t>=0&&BF(t,{jsx:!0})?(e.consume(t),Z):47===t||61===t||62===t||123===t||oF(t)||hF(t)?(e.exit(S),e.exit(w),R=J,se(t)):void le(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function J(t){return 61===t?(e.enter(_),e.consume(t),e.exit(_),R=Q,se):47===t||62===t||123===t||null!==t&&t>=0&&$F(t)?(e.exit(x),W(t)):void le(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Q(t){return 34===t||39===t?(e.enter(k),e.enter(P),e.consume(t),e.exit(P),N=t,te):123===t?iL.call(A,e,ee,T,I,D,r,i,s,!1,!1,a)(t):void le(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function ee(t){return e.exit(x),R=W,se(t)}function te(t){return null===t&&le(t,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(N)+"`"),t===N?(e.enter(P),e.consume(t),e.exit(P),e.exit(k),e.exit(x),N=void 0,R=W,se):aF(t)?(R=te,se(t)):(e.enter(O),ne(t))}function ne(t){return null===t||t===N||aF(t)?(e.exit(O),te(t)):(e.consume(t),ne)}function re(e){if(62===e)return ie(e);le(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function ie(n){return e.enter(l),e.consume(n),e.exit(l),e.exit(o),t}function se(t){return aF(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),oe):lF(t)||hF(t)?(e.enter("esWhitespace"),ae(t)):R(t)}function ae(t){return aF(t)?(e.exit("esWhitespace"),se(t)):lF(t)||hF(t)?(e.consume(t),ae):(e.exit("esWhitespace"),R(t))}function oe(e){if(!a&&A.parser.lazy[A.now().line]){const e=new dR("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",A.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw e.url=aL+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return se(e)}function le(e,t,n){const r=new dR("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` ("+function(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}(e)+")")+" "+t+", expected "+n,A.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"));throw r.url=aL+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),r}}function lL(e,t){return{name:"mdxJsxTextTag",tokenize:function(n,r,i){return oL.call(this,n,r,i,e,t.acornOptions,t.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}}function cL(e,t){return{name:"mdxJsxFlowTag",tokenize:function(n,r,i){const s=this;return a;function a(r){return function(r){return oL.call(s,n,o,i,e,t.acornOptions,t.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(r)}(r)}function o(e){return lF(e)?AF(n,l,"whitespace")(e):l(e)}function l(e){const t=s.parser.constructs.flow[123],o=(Array.isArray(t)?t:t?[t]:[]).find((e=>"mdxFlowExpression"===e.name));return 60===e?a(e):123===e&&o?n.attempt(o,l,i)(e):null===e||aF(e)?r(e):i(e)}},concrete:!0}}function hL(e){const t=e||{},n=t.acorn;let r;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:cL(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{60:lL(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}const uL={tokenize:function(e,t,n){return function(t){return lF(t)?AF(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||aF(e)?t(e):n(e)}},partial:!0};const dL={}.hasOwnProperty,pL=Symbol("continue"),fL=Symbol("exit"),mL=Symbol("skip");function gL(e){return Array.isArray(e)?e:"number"==typeof e?[pL,e]:[e]}function yL(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function vL(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),s=[],a=[],o=i.onComment,l=i.onToken;let c,h,u=!1;const d=Object.assign({},i,{onComment:s,preserveParens:!0});l&&(d.onToken=a);const p=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r<e.length;){const i=e[r];if("enter"===i[0]){const e=i[1].type;if("lineEnding"===e||t.includes(e)){const e=i[2].sliceStream(i[1]);for(;e.length>0&&-1===e[0];)e.shift();const t=xL(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),f=p.value,m=n+f+r,g=t.expression&&bL(f);if(g&&!t.allowEmpty)throw new dR("Unexpected empty expression",{place:v(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{c=t.expression&&!g?t.acorn.parseExpressionAt(m,0,d):t.acorn.parse(m,d)}catch(e){const t=e,r=v(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},h=t,u=t.raisedAt>=n.length+f.length||"Unterminated comment"===t.message}if(c&&t.expression&&!g)if(bL(m.slice(c.end,m.length-r.length)))c={type:"Program",start:0,end:n.length+f.length,body:[{type:"ExpressionStatement",expression:c,start:0,end:n.length+f.length}],sourceType:"module",comments:[]};else{const e=v(c.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},h=t,c=void 0}if(c){if(c.comments=s,function(e,t){let n,r;"function"==typeof t?n=t:t&&"object"==typeof t&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),function e(t,i,s,a){return yL(t)&&(o.displayName="node ("+t.type+")"),o;function o(){const o=n?gL(n(t,i,s,a)):[];if(o[0]===fL)return o;if(o[0]!==mL){let n;for(n in t)if(dL.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=a.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let s=0;for(;s>-1&&s<t.length;){const i=t[s];if(yL(i)){const t=e(i,n,s,r)();if(t[0]===fL)return t;s="number"==typeof t[1]?t[1]:s+1}else s++}}else if(yL(i)){const t=e(i,n,void 0,r)();if(t[0]===fL)return t}}}return r?gL(r(t,i,s,a)):o}}(e,void 0,void 0,[])()}(c,(function(e,t,n,r){let i=r[r.length-1],s=t;"ParenthesizedExpression"===e.type&&i&&s&&("number"==typeof n&&(i=i[s],s=n),i[s]=e.expression),y(e)})),Array.isArray(o))o.push(...s);else if("function"==typeof o)for(const e of s)o("Block"===e.type,e.value,e.start,e.end,e.loc.start,e.loc.end);for(const e of a)e.end<=n.length||e.start-n.length>=f.length||(y(e),Array.isArray(l)?l.push(e):l(e))}return{estree:c,error:h,swallow:u};function y(e){const t=v(e.start),n=v(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function v(e){let r=e-n.length;r<0?r=0:r>f.length&&(r=f.length);let i=function(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(0===n)return;const[r,i]=e[n-1],s=t-r;return{line:i.line,column:i.column+s,offset:i.offset+s}}(p.stops,r);return i||(i={line:t.start.line,column:t.start.column,offset:t.start.offset}),i}}function bL(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function xL(e){let t=-1;const n=[];let r;for(;++t<e.length;){const i=e[t];let s;if("string"==typeof i)s=i;else switch(i){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s="\t";break;case-1:if(r)continue;s=" ";break;default:s=String.fromCharCode(i)}r=-2===i,n.push(s)}return n.join("")}const wL={tokenize:function(e,t,n){return function(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(uL,t,n)}},partial:!0},CL="https://github.com/micromark/micromark-extension-mdxjs-esm",EL=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function SL(e){const t={tokenize:function(t,i,s){const a=this,o=a.parser.definedModuleSpecifiers||(a.parser.definedModuleSpecifiers=[]),l=this.events.length+1;let c="";return a.interrupt?s:function(e){return a.now().column>1?s(e):(t.enter("mdxjsEsm"),t.enter("mdxjsEsmData"),t.consume(e),c+=String.fromCharCode(e),h)};function h(e){return QM(e)?(t.consume(e),c+=String.fromCharCode(e),h):"import"!==c&&"export"!==c||32!==e?s(e):(t.consume(e),u)}function u(e){return null===e||aF(e)?(t.exit("mdxjsEsmData"),d(e)):(t.consume(e),u)}function d(e){return null===e?f(e):aF(e)?t.check(wL,f,p)(e):(t.enter("mdxjsEsmData"),u(e))}function p(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),d}function f(s){const c=vL(a.events.slice(l),{acorn:n,acornOptions:r,tokenTypes:["mdxjsEsmData"],prefix:o.length>0?"var "+o.join(",")+"\n":""});if(c.error){if(null!==s&&c.swallow)return p(s);const e=new dR("Could not parse import/exports with acorn",{cause:c.error,place:{line:c.error.loc.line,column:c.error.loc.column+1,offset:c.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw e.url=CL+"#could-not-parse-importexports-with-acorn",e}if(o.length>0){c.estree.body.shift()}let h=-1;for(;++h<c.estree.body.length;){const e=c.estree.body[h];if(!EL.has(e.type)){const t=new dR("Unexpected `"+e.type+"` in code: only import/exports are supported",{place:wF(e),ruleId:"non-esm",source:"micromark-extension-mdxjs-esm"});throw t.url=CL+"#unexpected-type-in-code-only-importexports-are-supported",t}if("ImportDeclaration"===e.type&&!a.interrupt){let t=-1;for(;++t<e.specifiers.length;){const n=e.specifiers[t];o.push(n.local.name)}}}return Object.assign(t.exit("mdxjsEsm"),e.addResult?{estree:c.estree}:void 0),i(s)}},concrete:!0};if(!e||!e.acorn||!e.acorn.parse)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");const n=e.acorn,r=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0});return{flow:{101:t,105:t}}}function _L(e,t,n,r){const i=e.length;let s,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function kL(e,t){return e.length>0?(_L(e,e.length,0,t),e):t}const PL={}.hasOwnProperty;function OL(e){const t={};let n=-1;for(;++n<e.length;)TL(t,e[n]);return t}function TL(e,t){let n;for(n in t){const r=(PL.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){PL.call(r,s)||(r[s]=[]);const e=i[s];IL(r[s],Array.isArray(e)?e:e?[e]:[])}}}function IL(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);_L(e,0,0,r)}const DL={};function AL(e){const t=e||DL,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){const t=Object.assign({acorn:qN.extend(JM()),acornOptions:{ecmaVersion:2024,sourceType:"module"},addResult:!0},e);return OL([SL(t),RF(t),hL(t),{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}])}(t)),i.push([{enter:{mdxFlowExpression:_R,mdxTextExpression:kR},exit:{mdxFlowExpression:PR,mdxFlowExpressionChunk:OR,mdxTextExpression:PR,mdxTextExpressionChunk:OR}},ZR(),{enter:{mdxjsEsm:nN},exit:{mdxjsEsm:rN,mdxjsEsmData:iN}}]),s.push(function(e){return{extensions:[{handlers:{mdxFlowExpression:TR,mdxTextExpression:TR},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]},JR(e),{handlers:{mdxjsEsm:sN}}]}}(t))}const RL={};function NL(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ML(e.children,t,n)}return Array.isArray(e)?ML(e,t,n):""}function ML(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=NL(e[i],t,n);return r.join("")}class FL{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&LL(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),LL(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),LL(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);LL(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);LL(this.left,t.reverse())}}}function LL(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function jL(e){const t={};let n,r,i,s,a,o,l,c=-1;const h=new FL(e);for(;++c<h.length;){for(;c in t;)c=t[c];if(n=h.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===h.get(c-1)[1].type&&(o=n[1]._tokenizer.events,i=0,i<o.length&&"lineEndingBlank"===o[i][1].type&&(i+=2),i<o.length&&"content"===o[i][1].type))for(;++i<o.length&&"content"!==o[i][1].type;)"chunkText"===o[i][1].type&&(o[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,VL(h,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(s=h.get(i),"lineEnding"===s[1].type||"lineEndingBlank"===s[1].type);)"enter"===s[0]&&(r&&(h.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},h.get(r)[1].start),a=h.slice(r,c),a.unshift(n),h.splice(r,c-r+1,a))}}return _L(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!l}function VL(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[],a=n._tokenizer||r.parser[n.contentType](n.start),o=a.events,l=[],c={};let h,u,d=-1,p=n,f=0,m=0;const g=[m];for(;p;){for(;e.get(++i)[1]!==p;);s.push(i),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),u&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(h),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++d<o.length;)"exit"===o[d][0]&&"enter"===o[d-1][0]&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(m=d+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),d=g.length;d--;){const t=o.slice(g[d],g[d+1]),n=s.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),d=-1;++d<l.length;)c[f+l[d][0]]=f+l[d][1],f+=l[d][1]-l[d][0]-1;return c}const $L={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),AF(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):aF(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const BL={tokenize:function(e){const t=this,n=[];let r,i,s,a=0;return o;function o(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let i,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){i=t.events[s][1].end;break}y(a);let o=n;for(;o<t.events.length;)t.events[o][1].end=Object.assign({},i),o++;return _L(t.events,s+1,0,t.events.slice(n)),t.events.length=o,c(e)}return o(e)}function c(i){if(a===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zL,h,u)(i)}function h(e){return r&&v(),y(a),d(e)}function u(e){return t.parser.lazy[t.now().line]=a!==n.length,s=t.now().offset,f(e)}function d(n){return t.containerState={},e.attempt(zL,p,f)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),d(e)}function f(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):aF(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,o):(e.consume(n),m)}function g(e,n){const o=t.sliceStream(e);if(n&&o.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(o),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<s&&(!r.events[e][1].end||r.events[e][1].end.offset>s))return;const n=t.events.length;let i,o,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){o=t.events[l][1].end;break}i=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},o),e++;_L(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},zL={tokenize:function(e,t,n){return AF(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};class HL{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&KL(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),KL(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),KL(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);KL(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);KL(this.left,t.reverse())}}}function KL(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function UL(e){const t={};let n,r,i,s,a,o,l,c=-1;const h=new HL(e);for(;++c<h.length;){for(;c in t;)c=t[c];if(n=h.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===h.get(c-1)[1].type&&(o=n[1]._tokenizer.events,i=0,i<o.length&&"lineEndingBlank"===o[i][1].type&&(i+=2),i<o.length&&"content"===o[i][1].type))for(;++i<o.length&&"content"!==o[i][1].type;)"chunkText"===o[i][1].type&&(o[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,WL(h,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(s=h.get(i),"lineEnding"===s[1].type||"lineEndingBlank"===s[1].type);)"enter"===s[0]&&(r&&(h.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},h.get(r)[1].start),a=h.slice(r,c),a.unshift(n),h.splice(r,c-r+1,a))}}return _L(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!l}function WL(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[],a=n._tokenizer||r.parser[n.contentType](n.start),o=a.events,l=[],c={};let h,u,d=-1,p=n,f=0,m=0;const g=[m];for(;p;){for(;e.get(++i)[1]!==p;);s.push(i),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),u&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(h),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++d<o.length;)"exit"===o[d][0]&&"enter"===o[d-1][0]&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(m=d+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),d=g.length;d--;){const t=o.slice(g[d],g[d+1]),n=s.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),d=-1;++d<l.length;)c[f+l[d][0]]=f+l[d][1],f+=l[d][1]-l[d][0]-1;return c}const GL={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):aF(t)?e.check(qL,s,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function s(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return UL(e),e}},qL={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),AF(e,i,"linePrefix")};function i(i){if(null===i||aF(i))return n(i);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};const YL={tokenize:function(e){const t=this,n=e.attempt(uL,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,AF(e,e.attempt(this.parser.constructs.flow,r,e.attempt(GL,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const XL={resolveAll:ej()},ZL=QL("string"),JL=QL("text");function QL(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,s,a);return s;function s(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),o;t.consume(e)}function o(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:ej("text"===e?tj:void 0)}}function ej(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function tj(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let s,a=i.length,o=-1,l=0;for(;a--;){const e=i[a];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)s=!0,l++;else if(-1!==e){a++;break}}if(l){const i={type:n===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function nj(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}function rj(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},s=[];let a=[],o=[],l=!0;const c={consume:function(e){aF(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,x()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));h.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),h.events.push(["enter",n,h]),o.push(n),n},exit:function(e){const t=o.pop();return t.end=f(),h.events.push(["exit",t,h]),t},attempt:v((function(e,t){b(e,t.from)})),check:v(y),interrupt:v(y,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let a;if("string"==typeof s)a=s;else switch(s){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(s)}i=-2===s,r.push(a)}return r.join("")}(p(e),t)},now:f,defineSkip:function(e){i[e.line]=e.column,x()},write:function(e){if(a=kL(a,e),m(),null!==a[a.length-1])return[];return b(t,0),h.events=nj(s,h.events,h),h.events}};let u,d=t.tokenize.call(h,c);return t.resolveAll&&s.push(t),h;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,s)];else{if(a=e.slice(n,i),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}s>0&&a.push(e[i].slice(0,s))}return a}(a,e)}function f(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:s}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:s}}function m(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,u=e,d=d(e)}function y(e,t){t.restore()}function v(e,t){return function(n,i,s){let a,u,d,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,u=0,0===e.length?s:g(e[u])}function g(e){return function(n){p=function(){const e=f(),t=h.previous,n=h.currentConstruct,i=h.events.length,s=Array.from(o);return{restore:a,from:i};function a(){r=e,h.previous=t,h.currentConstruct=n,h.events.length=i,o=s,x()}}(),d=e,e.partial||(h.currentConstruct=e);if(e.name&&h.parser.constructs.disable.null.includes(e.name))return v(n);return e.tokenize.call(t?Object.assign(Object.create(h),t):h,c,y,v)(n)}}function y(t){return l=!0,e(d,p),i}function v(e){return l=!0,p.restore(),++u<a.length?g(a[u]):s}}}function b(e,t){e.resolveAll&&!s.includes(e)&&s.push(e),e.resolve&&_L(h.events,t,h.events.length-t,e.resolve(h.events.slice(t),h)),e.resolveTo&&(h.events=e.resolveTo(h.events,h))}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const ij={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,s(e)}(t)};function s(s){return s===r?(e.enter("thematicBreakSequence"),a(s)):i>=3&&(null===s||aF(s))?(e.exit("thematicBreak"),t(s)):n(s)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),lF(t)?AF(e,s,"whitespace")(t):s(t))}}};const sj={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:rF(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ij,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(t)}return n(t)};function o(t){return rF(t)&&++a<10?(e.consume(t),o):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(uL,r.interrupt?n:c,e.attempt(aj,u,h))}function c(e){return r.containerState.initialBlankLine=!0,s++,u(e)}function h(t){return lF(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(uL,i,s);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,AF(e,t,"listItemIndent",r.containerState.size+1)(n)}function s(n){return r.containerState.furtherBlankLines||!lF(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(oj,t,a)(n))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,AF(e,e.attempt(sj,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},aj={tokenize:function(e,t,n){const r=this;return AF(e,(function(e){const i=r.events[r.events.length-1];return!lF(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},oj={tokenize:function(e,t,n){const r=this;return AF(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const lj={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return lF(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(lF(t))return AF(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(lj,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function cj(e,t,n,r,i,s,a,o,l){const c=l||Number.POSITIVE_INFINITY;let h=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(s),e.consume(t),e.exit(s),u;if(null===t||32===t||41===t||nF(t))return n(t);return e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),f(t)};function u(n){return 62===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(o),u(t)):null===t||60===t||aF(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(i){return h||null!==i&&41!==i&&!oF(i)?h<c&&40===i?(e.consume(i),h++,f):41===i?(e.consume(i),h--,f):null===i||32===i||40===i||nF(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function hj(e,t,n,r,i,s){const a=this;let o,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(s),c};function c(u){return l>999||null===u||91===u||93===u&&!o||94===u&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(u):93===u?(e.exit(s),e.enter(i),e.consume(u),e.exit(i),e.exit(r),t):aF(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),h(u))}function h(t){return null===t||91===t||93===t||aF(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!lF(t)),92===t?u:h)}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,h):h(t)}}function uj(e,t,n,r,i,s){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,o;return n(t)};function o(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(s),l(n))}function l(t){return t===a?(e.exit(s),o(a)):null===t?n(t):aF(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),AF(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||aF(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?h:c)}function h(t){return t===a||92===t?(e.consume(t),c):c(t)}}function dj(e,t){let n;return function r(i){if(aF(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(lF(i))return AF(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function pj(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fj={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return hj.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function s(t){return i=pj(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return oF(t)?dj(e,o)(t):o(t)}function o(t){return cj(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(mj,c,c)(t)}function c(t){return lF(t)?AF(e,h,"whitespace")(t):h(t)}function h(s){return null===s||aF(s)?(e.exit("definition"),r.parser.defined.push(i),t(s)):n(s)}}},mj={tokenize:function(e,t,n){return function(t){return oF(t)?dj(e,r)(t):n(t)};function r(t){return uj(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return lF(t)?AF(e,s,"whitespace")(t):s(t)}function s(e){return null===e||aF(e)?t(e):n(e)}},partial:!0};const gj={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),AF(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?s(e):n(e)}function s(t){return null===t?o(t):aF(t)?e.attempt(yj,s,o)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||aF(t)?(e.exit("codeFlowValue"),s(t)):(e.consume(t),a)}function o(n){return e.exit("codeIndented"),t(n)}}},yj={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):aF(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):AF(e,s,"linePrefix",5)(t)}function s(e){const s=r.events[r.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):aF(e)?i(e):n(e)}},partial:!0};const vj={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||oF(t)?(e.exit("atxHeadingSequence"),s(t)):n(t)}function s(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||aF(n)?(e.exit("atxHeading"),t(n)):lF(n)?AF(e,s,"whitespace")(n):(e.enter("atxHeadingText"),o(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),s(t))}function o(t){return null===t||35===t||oF(t)?(e.exit("atxHeadingText"),s(t)):(e.consume(t),o)}},resolve:function(e,t){let n,r,i=e.length-2,s=3;"whitespace"===e[s][1].type&&(s+=2);i-2>s&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(s===i-1||i-4>s&&"whitespace"===e[i-2][1].type)&&(i-=s+1===i?2:4);i>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[i][1].end},r={type:"chunkText",start:e[s][1].start,end:e[i][1].end,contentType:"text"},_L(e,s,i-s+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const bj={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let a,o=r.events.length;for(;o--;)if("lineEnding"!==r.events[o][1].type&&"linePrefix"!==r.events[o][1].type&&"content"!==r.events[o][1].type){a="paragraph"===r.events[o][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),s(t)}(t);return n(t)};function s(t){return t===i?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),lF(t)?AF(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||aF(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),i||"definition"!==e[s][1].type||(i=s);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const xj=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wj=["pre","script","style","textarea"],Cj={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,s,a,o,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(o){return 33===o?(e.consume(o),h):47===o?(e.consume(o),s=!0,p):63===o?(e.consume(o),i=3,r.interrupt?t:N):QM(o)?(e.consume(o),a=String.fromCharCode(o),f):n(o)}function h(s){return 45===s?(e.consume(s),i=2,u):91===s?(e.consume(s),i=5,o=0,d):QM(s)?(e.consume(s),i=4,r.interrupt?t:N):n(s)}function u(i){return 45===i?(e.consume(i),r.interrupt?t:N):n(i)}function d(i){const s="CDATA[";return i===s.charCodeAt(o++)?(e.consume(i),6===o?r.interrupt?t:k:d):n(i)}function p(t){return QM(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(o){if(null===o||47===o||62===o||oF(o)){const l=47===o,c=a.toLowerCase();return l||s||!wj.includes(c)?xj.includes(a.toLowerCase())?(i=6,l?(e.consume(o),m):r.interrupt?t(o):k(o)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(o):s?g(o):y(o)):(i=1,r.interrupt?t(o):k(o))}return 45===o||eF(o)?(e.consume(o),a+=String.fromCharCode(o),f):n(o)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:k):n(i)}function g(t){return lF(t)?(e.consume(t),g):S(t)}function y(t){return 47===t?(e.consume(t),S):58===t||95===t||QM(t)?(e.consume(t),v):lF(t)?(e.consume(t),y):S(t)}function v(t){return 45===t||46===t||58===t||95===t||eF(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),x):lF(t)?(e.consume(t),b):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):lF(t)?(e.consume(t),x):C(t)}function w(t){return t===l?(e.consume(t),l=null,E):null===t||aF(t)?n(t):(e.consume(t),w)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||oF(t)?b(t):(e.consume(t),C)}function E(e){return 47===e||62===e||lF(e)?y(e):n(e)}function S(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||aF(t)?k(t):lF(t)?(e.consume(t),_):n(t)}function k(t){return 45===t&&2===i?(e.consume(t),I):60===t&&1===i?(e.consume(t),D):62===t&&4===i?(e.consume(t),M):63===t&&3===i?(e.consume(t),N):93===t&&5===i?(e.consume(t),R):!aF(t)||6!==i&&7!==i?null===t||aF(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),k):(e.exit("htmlFlowData"),e.check(Ej,F,P)(t))}function P(t){return e.check(Sj,O,F)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||aF(t)?P(t):(e.enter("htmlFlowData"),k(t))}function I(t){return 45===t?(e.consume(t),N):k(t)}function D(t){return 47===t?(e.consume(t),a="",A):k(t)}function A(t){if(62===t){const n=a.toLowerCase();return wj.includes(n)?(e.consume(t),M):k(t)}return QM(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),A):k(t)}function R(t){return 93===t?(e.consume(t),N):k(t)}function N(t){return 62===t?(e.consume(t),M):45===t&&2===i?(e.consume(t),N):k(t)}function M(t){return null===t||aF(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),M)}function F(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Ej={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(uL,t,n)}},partial:!0},Sj={tokenize:function(e,t,n){const r=this;return function(t){if(aF(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const _j={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},kj={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),lF(t)?AF(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===s?(e.enter("codeFencedFenceSequence"),h(t)):n(t)}function h(t){return t===s?(i++,e.consume(t),h):i>=o?(e.exit("codeFencedFenceSequence"),lF(t)?AF(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||aF(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let s,a=0,o=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===s?(o++,e.consume(t),l):o<3?n(t):(e.exit("codeFencedFenceSequence"),lF(t)?AF(e,c,"whitespace")(t):c(t))}function c(n){return null===n||aF(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(_j,p,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return null===t||aF(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):lF(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),AF(e,u,"whitespace")(t)):96===t&&t===s?n(t):(e.consume(t),h)}function u(t){return null===t||aF(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||aF(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===s?n(t):(e.consume(t),d)}function p(t){return e.attempt(i,v,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&lF(t)?AF(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||aF(t)?e.check(_j,p,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||aF(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const Pj={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,s,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,s=eF,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=iF,c):(e.enter("characterReferenceValue"),i=7,s=rF,c(t))}function c(o){if(59===o&&a){const i=e.exit("characterReferenceValue");return s!==eF||LR(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return s(o)&&a++<i?(e.consume(o),c):n(o)}}};const Oj={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return sF(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Tj={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),AF(e,t,"linePrefix")}}};const Ij={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,s,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(t){if(!i)return n(t);if(i._inactive)return h(t);return s=r.parser.defined.includes(pj(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o};function o(t){return 40===t?e.attempt(Dj,c,s?c:h)(t):91===t?e.attempt(Aj,c,s?l:h)(t):s?c(t):h(t)}function l(t){return e.attempt(Rj,c,h)(t)}function c(e){return t(e)}function h(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,s,a=e.length,o=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(i=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},h={type:"labelText",start:Object.assign({},e[r+o+2][1].end),end:Object.assign({},e[i-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=kL(s,e.slice(r+1,r+o+3)),s=kL(s,[["enter",h,t]]),s=kL(s,nj(t.parser.constructs.insideSpan.null,e.slice(r+o+4,i-3),t)),s=kL(s,[["exit",h,t],e[i-2],e[i-1],["exit",c,t]]),s=kL(s,e.slice(i+1)),s=kL(s,[["exit",l,t]]),_L(e,r,e.length,s),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},Dj={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return oF(t)?dj(e,i)(t):i(t)}function i(t){return 41===t?c(t):cj(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function s(t){return oF(t)?dj(e,o)(t):c(t)}function a(e){return n(e)}function o(t){return 34===t||39===t||40===t?uj(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return oF(t)?dj(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Aj={tokenize:function(e,t,n){const r=this;return function(t){return hj.call(r,e,i,s,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(pj(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function s(e){return n(e)}}},Rj={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Nj={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),s):n(t)}function s(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Ij.resolveAll};function Mj(e){return null===e||oF(e)||hF(e)?1:cF(e)?2:void 0}const Fj={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Mj(r);let s;return function(t){return s=t,e.enter("attentionSequence"),a(t)};function a(o){if(o===s)return e.consume(o),a;const l=e.exit("attentionSequence"),c=Mj(o),h=!c||2===c&&i||n.includes(o),u=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===s?h:h&&(i||!u)),l._close=Boolean(42===s?u:u&&(c||!h)),t(o)}},resolveAll:function(e,t){let n,r,i,s,a,o,l,c,h=-1;for(;++h<e.length;)if("enter"===e[h][0]&&"attentionSequence"===e[h][1].type&&e[h][1]._close)for(n=h;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[h][1]).charCodeAt(0)){if((e[n][1]._close||e[h][1]._open)&&(e[h][1].end.offset-e[h][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[h][1].end.offset-e[h][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[h][1].end.offset-e[h][1].start.offset>1?2:1;const u=Object.assign({},e[n][1].end),d=Object.assign({},e[h][1].start);Lj(u,-o),Lj(d,o),s={type:o>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[n][1].end)},a={type:o>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[h][1].start),end:d},i={type:o>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[h][1].start)},r={type:o>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},s.start),e[h][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=kL(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=kL(l,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",i,t]]),l=kL(l,nj(t.parser.constructs.insideSpan.null,e.slice(n+1,h),t)),l=kL(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[h][1].end.offset-e[h][1].start.offset?(c=2,l=kL(l,[["enter",e[h][1],t],["exit",e[h][1],t]])):c=0,_L(e,n-1,h-n+3,l),h=n+l.length-c-2;break}h=-1;for(;++h<e.length;)"attentionSequence"===e[h][1].type&&(e[h][1].type="data");return e}};function Lj(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const jj={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return QM(t)?(e.consume(t),s):64===t?n(t):l(t)}function s(e){return 43===e||45===e||46===e||eF(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,o):(43===t||45===t||46===t||eF(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||nF(r)?n(r):(e.consume(r),o)}function l(t){return 64===t?(e.consume(t),c):tF(t)?(e.consume(t),l):n(t)}function c(e){return eF(e)?h(e):n(e)}function h(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):u(n)}function u(t){if((45===t||eF(t))&&r++<63){const n=45===t?u:h;return e.consume(t),n}return n(t)}}};const Vj={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,s,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),v):QM(t)?(e.consume(t),E):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),s=0,p):QM(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),d):n(t)}function h(t){return null===t?n(t):45===t?(e.consume(t),u):aF(t)?(a=h,A(t)):(e.consume(t),h)}function u(t){return 45===t?(e.consume(t),d):h(t)}function d(e){return 62===e?D(e):45===e?u(e):h(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(s++)?(e.consume(t),6===s?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):aF(t)?(a=f,A(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?D(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?D(t):aF(t)?(a=y,A(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):aF(t)?(a=v,A(t)):(e.consume(t),v)}function b(e){return 62===e?D(e):v(e)}function x(t){return QM(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||eF(t)?(e.consume(t),w):C(t)}function C(t){return aF(t)?(a=C,A(t)):lF(t)?(e.consume(t),C):D(t)}function E(t){return 45===t||eF(t)?(e.consume(t),E):47===t||62===t||oF(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),D):58===t||95===t||QM(t)?(e.consume(t),_):aF(t)?(a=S,A(t)):lF(t)?(e.consume(t),S):D(t)}function _(t){return 45===t||46===t||58===t||95===t||eF(t)?(e.consume(t),_):k(t)}function k(t){return 61===t?(e.consume(t),P):aF(t)?(a=k,A(t)):lF(t)?(e.consume(t),k):S(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,O):aF(t)?(a=P,A(t)):lF(t)?(e.consume(t),P):(e.consume(t),T)}function O(t){return t===i?(e.consume(t),i=void 0,I):null===t?n(t):aF(t)?(a=O,A(t)):(e.consume(t),O)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||oF(t)?S(t):(e.consume(t),T)}function I(e){return 47===e||62===e||oF(e)?S(e):n(e)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return lF(t)?AF(e,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t)}function N(t){return e.enter("htmlTextData"),a(t)}}};const $j={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Ij.resolveAll};const Bj={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return aF(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const zj={name:"codeText",tokenize:function(e,t,n){let r,i,s=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),s++,a):(e.exit("codeTextSequence"),o(t))}function o(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):aF(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||aF(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};const Hj={42:sj,43:sj,45:sj,48:sj,49:sj,50:sj,51:sj,52:sj,53:sj,54:sj,55:sj,56:sj,57:sj,62:lj},Kj={91:fj},Uj={[-2]:gj,[-1]:gj,32:gj},Wj={35:vj,42:ij,45:[bj,ij],60:Cj,61:bj,95:ij,96:kj,126:kj},Gj={38:Pj,92:Oj},qj={[-5]:Tj,[-4]:Tj,[-3]:Tj,33:Nj,38:Pj,42:Fj,60:[jj,Vj],91:$j,92:[Bj,Oj],93:Ij,95:Fj,96:zj},Yj={null:[Fj,XL]},Xj={null:[42,95]},Zj={null:[]};const Jj=/[\0\t\n\r]/g;function Qj(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const eV=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tV(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Qj(n.slice(t?2:1),t?16:10)}return LR(n)||e}const nV={}.hasOwnProperty;function rV(t,n,r){return"string"!=typeof n&&(r=n,n=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(te),autolinkProtocol:_,autolinkEmail:_,atxHeading:s(Z),blockQuote:s(W),characterEscape:_,characterReference:_,codeFenced:s(G),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(G,a),codeText:s(q,a),codeTextData:_,data:_,codeFlowValue:_,definition:s(Y),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(X),hardBreakEscape:s(J),hardBreakTrailing:s(J),htmlFlow:s(Q,a),htmlFlowData:_,htmlText:s(Q,a),htmlTextData:_,image:s(ee),label:a,link:s(te),listItem:s(re),listItemValue:d,listOrdered:s(ne,u),listUnordered:s(ne),paragraph:s(ie),reference:V,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(Z),strong:s(se),thematicBreak:s(oe)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:U,autolinkProtocol:K,blockQuote:l(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:z,characterReference:H,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:f,codeFlowValue:k,codeIndented:l(y),codeText:l(D),codeTextData:k,data:k,definition:l(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(T),htmlFlowData:k,htmlText:l(I),htmlTextData:k,image:l(R),label:M,labelText:N,lineEnding:P,link:l(A),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:$,resourceDestinationString:F,resourceTitleString:L,resource:j,setextHeading:l(S),setextHeadingLineSequence:E,setextHeadingText:C,strong:l(),thematicBreak:l()}};sV(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const s={stack:[r],tokenStack:[],config:t,enter:o,exit:c,buffer:a,resume:h,data:n},l=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])l.push(u);else{u=i(e,l.pop(),u)}for(u=-1;++u<e.length;){const n=t[e[u][0]];nV.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},s),e[u][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||oV).call(s,void 0,e[0])}for(r.position={start:iV(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:iV(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r}function i(e,t,n){let r,i,s,a,o=t-1,l=-1,c=!1;for(;++o<=n;){const t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||s||(s=o),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=o;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}s&&(!i||s<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||o,0,["exit",r,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(o,0,["enter",i,t[2]]),o++,n++,s=void 0,a=!0}}}return e[t][1]._spread=c,n}function s(e,t){return n;function n(n){o.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:iV(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+lR({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||oV).call(this,e,r[0])}n.position.end=iV(e.end)}function h(){return function(e,t){const n=t||RL;return NL(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=pj(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function E(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function _(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:iV(e.start),end:void 0},t.push(n)),this.stack.push(n)}function k(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=iV(e.end)}function P(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=iV(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(_.call(this,e),k.call(this,e))}function O(){this.data.atHardBreak=!0}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function A(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(eV,tV)}(t),n.identifier=pj(t).toLowerCase()}function M(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function F(){const e=this.resume();this.stack[this.stack.length-1].url=e}function L(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){this.data.inReference=void 0}function V(){this.data.referenceType="collapsed"}function $(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=pj(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function z(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Qj(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=LR(t)}this.stack[this.stack.length-1].value+=r}function H(e){this.stack.pop().position.end=iV(e.end)}function K(e){k.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function U(e){k.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function G(){return{type:"code",lang:null,meta:null,value:""}}function q(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function Q(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function se(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function oe(){return{type:"thematicBreak"}}}(r)(function(e){for(;!jL(e););return e}(function(t){const n={defined:[],lazy:{},constructs:OL([e,...(t||{}).extensions||[]]),content:r($L),document:r(BL),flow:r(YL),string:r(ZL),text:r(JL)};return n;function r(e){return function(t){return rj(n,e,t)}}}(r).document().write(function(){let e,t=1,n="",r=!0;return function(i,s,a){const o=[];let l,c,h,u,d;for(i=n+("string"==typeof i?i.toString():new TextDecoder(s||void 0).decode(i)),h=0,n="",r&&(65279===i.charCodeAt(0)&&h++,r=void 0);h<i.length;){if(Jj.lastIndex=h,l=Jj.exec(i),u=l&&void 0!==l.index?l.index:i.length,d=i.charCodeAt(u),!l){n=i.slice(h);break}if(10===d&&h===u&&e)o.push(-3),e=void 0;else switch(e&&(o.push(-5),e=void 0),h<u&&(o.push(i.slice(h,u)),t+=u-h),d){case 0:o.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),o.push(-2);t++<c;)o.push(-1);break;case 10:o.push(-4),t=1;break;default:e=!0,t=1}h=u+1}return a&&(e&&o.push(-5),n&&o.push(n),o.push(null)),o}}()(t,n,!0))))}function iV(e){return{line:e.line,column:e.column,offset:e.offset}}function sV(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?sV(e,r):aV(e,r)}}function aV(e,t){let n;for(n in t)if(nV.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function oV(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+lR({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lR({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+lR({start:t.start,end:t.end})+") is still open")}function lV(e){const t=this;t.parser=function(n){return rV(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const cV="object"==typeof self?self:globalThis,hV=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[s,a]=t[i];switch(s){case 0:case-1:return n(a,i);case 1:{const e=n([],i);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),i);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new cV[e](t),i)}case 8:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new cV[s](a),i)};return r})(new Map,e)(0),uV="",{toString:dV}={},{keys:pV}=Object,fV=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=dV.call(e).slice(8,-1);switch(n){case"Array":return[1,uV];case"Object":return[2,uV];case"Date":return[3,uV];case"RegExp":return[4,uV];case"Map":return[5,uV];case"Set":return[6,uV]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},mV=([e,t])=>0===e&&("function"===t||"symbol"===t),gV=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},s=r=>{if(n.has(r))return n.get(r);let[a,o]=fV(r);switch(a){case 0:{let t=r;switch(o){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);t=null;break;case"undefined":return i([-1],r)}return i([a,t],r)}case 1:{if(o)return i([o,[...r]],r);const e=[],t=i([a,e],r);for(const t of r)e.push(s(t));return t}case 2:{if(o)switch(o){case"BigInt":return i([o,r.toString()],r);case"Boolean":case"Number":case"String":return i([o,r.valueOf()],r)}if(t&&"toJSON"in r)return s(r.toJSON());const n=[],l=i([a,n],r);for(const t of pV(r))!e&&mV(fV(r[t]))||n.push([s(t),s(r[t])]);return l}case 3:return i([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([a,{source:e,flags:t}],r)}case 5:{const t=[],n=i([a,t],r);for(const[n,i]of r)(e||!mV(fV(n))&&!mV(fV(i)))&&t.push([s(n),s(i)]);return n}case 6:{const t=[],n=i([a,t],r);for(const n of r)!e&&mV(fV(n))||t.push(s(n));return n}}const{message:l}=r;return i([a,{name:o,message:l}],r)};return s})(!(t||n),!!t,new Map,r)(e),r},yV="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?hV(gV(e,t)):structuredClone(e):(e,t)=>hV(gV(e,t));function vV(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let a="";if(37===s&&eF(e.charCodeAt(n+1))&&eF(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(a=String.fromCharCode(s,t),i=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function bV(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function xV(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const wV=function(e){if(null==e)return EV;if("function"==typeof e)return CV(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=wV(e[n]);return CV(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return CV(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"==typeof e)return function(e){return CV(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function CV(e){return function(t,n,r){return Boolean(SV(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function EV(){return!0}function SV(e){return null!==e&&"object"==typeof e&&"type"in e}const _V=[],kV=!0,PV=!1,OV="skip";function TV(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const s=wV(i),a=r?-1:1;!function e(i,o,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return h;function h(){let c,h,u,d=_V;if((!t||s(i,o,l[l.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[kV,e];return null==e?_V:[e]}(n(i,l)),d[0]===PV))return d;if("children"in i&&i.children){const t=i;if(t.children&&d[0]!==OV)for(h=(r?t.children.length:-1)+a,u=l.concat(t);h>-1&&h<t.children.length;){const n=t.children[h];if(c=e(n,h,u)(),c[0]===PV)return c;h="number"==typeof c[1]?c[1]:h+a}}return d}}(e,void 0,[])()}const IV=AV("end"),DV=AV("start");function AV(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function RV(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&"text"===s.type?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function NV(e){const t=e.spread;return null==t?e.children.length>1:t}const MV=9,FV=32;function LV(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(jV(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(jV(t.slice(i),i>0,!1)),s.join("")}function jV(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===MV||t===FV;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===MV||t===FV;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const VV={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=vV(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);void 0===o?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=s+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return RV(e,t);const i={src:vV(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){const n={src:vV(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return RV(e,t);const i={href:vV(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){const n={href:vV(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=NV(n[r])}return t}(n):NV(t),s={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const e=r[o];(i||0!==o||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=DV(t.children[1]),a=IV(t.children[t.children.length-1]);s&&a&&(r.position={start:s,end:a}),i.push(r)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",s=n&&"table"===n.type?n.align:void 0,a=s?s.length:t.children.length;let o=-1;const l=[];for(;++o<a;){const n=t.children[o],r={},a=s?s[o]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:LV(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:$V,yaml:$V,definition:$V,footnoteDefinition:$V};function $V(){}const BV={}.hasOwnProperty,zV={};function HV(e,t){const n=t||zV,r=new Map,i=new Map,s=new Map,a={...VV,...n.handlers},o={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=qV(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=qV(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:UV,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=o.handlers[n];if(BV.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=yV(n);return r.children=o.all(e),r}return yV(e)}const i=o.options.unknownHandler||WV;return i(o,e,t)},options:n,patch:KV,wrap:GV};return function(e,t,n,r){let i,s,a;"function"==typeof t&&"function"!=typeof n?(s=void 0,a=t,i=n):(s=t,a=n,i=r),TV(e,s,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),i)}(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),o}function KV(e,t){e.position&&(t.position=function(e){const t=DV(e),n=IV(e);if(t&&n)return{start:t,end:n}}(e))}function UV(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&i&&Object.assign(n.properties,yV(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function WV(e,t){const n=t.data||{},r=!("value"in t)||BV.call(n,"hProperties")||BV.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function GV(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function qV(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function YV(e,t){const n=HV(e,t),r=n.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||bV,r=e.options.footnoteBackLabel||xV,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const s=e.all(i),a=String(i.identifier).toUpperCase(),c=vV(a.toLowerCase());let h=0;const u=[],d=e.footnoteCounts.get(a);for(;void 0!==d&&++h<=d;){u.length>0&&u.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,h);"string"==typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=s[s.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...u)}else s.push(...u);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(s,!0)};e.patch(i,f),o.push(f)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...yV(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:"\n"},i),s}function XV(e,t){return e&&"run"in e?async function(n,r){const i=YV(n,{file:r,...t});await e.run(i,r)}:function(n,r){return YV(n,{file:r,...t||e})}}function ZV(e){if(e)throw e}var JV=__webpack_require__("YNvz");function QV(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function e$(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(s,...a){const o=e[++n];let l=-1;if(s)r(s);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,o?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(i);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return i(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(s,i):a instanceof Error?i(a):s(a))}function i(e,...r){n||(n=!0,t(e,...r))}function s(e){i(null,e)}}(o,i)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const t$={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');n$(e);let n,r=0,i=-1,s=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else i<0&&(n=!0,i=s+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else a<0&&(n=!0,a=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(i=s):(o=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(n$(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){n$(e);let t,n=e.length,r=-1,i=0,s=-1,a=0;for(;n--;){const o=e.codePointAt(n);if(47!==o)r<0&&(t=!0,r=n+1),46===o?s<0?s=n:1!==a&&(a=1):s>-1&&(a=-1);else if(t){i=n+1;break}}if(s<0||r<0||0===a||1===a&&s===r-1&&s===i+1)return"";return e.slice(s,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)n$(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){n$(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",s=0,a=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===o);else if(a!==l-1&&2===o){if(i.length<2||2!==s||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",s=0):(i=i.slice(0,r),s=i.length-1-i.lastIndexOf("/")),a=l,o=0;continue}}else if(i.length>0){i="",s=0,a=l,o=0;continue}t&&(i=i.length>0?i+"/..":"..",s=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),s=l-a-1;a=l,o=0}else 46===n&&o>-1?o++:o=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function n$(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const r$={cwd:function(){return"/"}};function i$(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function s$(e){if("string"==typeof e)e=new URL(e);else if(!i$(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const a$=["history","path","basename","stem","extname","dirname"];class o${constructor(e){let t;t=e?i$(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":r$.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<a$.length;){const e=a$[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)a$.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?t$.basename(this.path):void 0}set basename(e){c$(e,"basename"),l$(e,"basename"),this.path=t$.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?t$.dirname(this.path):void 0}set dirname(e){h$(this.basename,"dirname"),this.path=t$.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?t$.extname(this.path):void 0}set extname(e){if(l$(e,"extname"),h$(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=t$.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){i$(e)&&(e=s$(e)),c$(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?t$.basename(this.path,this.extname):void 0}set stem(e){c$(e,"stem"),l$(e,"stem"),this.path=t$.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new dR(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function l$(e,t){if(e&&e.includes(t$.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+t$.sep+"`")}function c$(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function h$(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const u$=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},d$={}.hasOwnProperty;class p$ extends u${constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=e$()}copy(){const e=new p$;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(JV(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(y$("data",this.frozen),this.namespace[e]=t,this):d$.call(this.namespace,e)&&this.namespace[e]||void 0:e?(y$("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=x$(e),n=this.parser||this.Parser;return m$("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),m$("process",this.parser||this.Parser),g$("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const s=x$(e),a=n.parse(s);function o(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,s,(function(e,t,r){if(e||!t||!r)return o(e);const i=t,s=n.stringify(i,r);var a;"string"==typeof(a=s)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=s:r.result=s,o(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),m$("processSync",this.parser||this.Parser),g$("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,ZV(e),t=r})),b$("processSync","process",n),t}run(e,t,n){v$(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,s){const a=x$(t);r.run(e,a,(function(t,r,a){const o=r||e;t?s(t):i?i(o):n(void 0,o,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){ZV(e),n=t,r=!0})),b$("runSync","run",r),n}stringify(e,t){this.freeze();const n=x$(t),r=this.compiler||this.Compiler;return g$("stringify",r),v$(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(y$("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):s(e)}return this;function i(e){if("function"==typeof e)o(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;o(t,n)}else s(e)}}function s(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=JV(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...s]=t;const a=n[i][1];QV(a)&&QV(r)&&(r=JV(!0,a,r)),n[i]=[e,r,...s]}}}}const f$=(new p$).freeze();function m$(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function g$(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function y$(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function v$(e){if(!QV(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function b$(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function x$(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new o$(e)}class w${constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,n,r){e&&t&&(null!=n?e[t][n]=r:e[t]=r)}remove(e,t,n){e&&t&&(null!=n?e[t].splice(n,1):delete e[t])}}class C$ extends w${constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e},this.enter=e,this.leave=t}visit(e,t,n,r){if(e){if(this.enter){const i=this.should_skip,s=this.should_remove,a=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);const o=this.should_skip,l=this.should_remove;if(this.should_skip=i,this.should_remove=s,this.replacement=a,o)return e;if(l)return null}let i;for(i in e){const t=e[i];if(t&&"object"==typeof t)if(Array.isArray(t)){const n=t;for(let t=0;t<n.length;t+=1){const r=n[t];E$(r)&&(this.visit(r,e,i,t)||t--)}}else E$(t)&&this.visit(t,e,i,null)}if(this.leave){const i=this.replacement,s=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);const a=this.should_remove;if(this.replacement=i,this.should_remove=s,a)return null}}return e}}function E$(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type}function S$(e,{enter:t,leave:n}){return new C$(t,n).visit(e,null)}function _$(e,t){if("MemberExpression"===e.type)return!e.computed&&_$(e.object,e);if("Identifier"===e.type){if(!t)return!0;switch(t.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"PropertyDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}function k$(e){const t=new WeakMap,n=new Map,r=new O$(null,!1),i=[];let s=r;S$(e,{enter(e,n){switch(e.type){case"Identifier":n&&_$(e,n)&&i.push([s,e]);break;case"ImportDeclaration":e.specifiers.forEach((e=>{s.declarations.set(e.local.name,e)}));break;case"FunctionExpression":case"FunctionDeclaration":case"ArrowFunctionExpression":"FunctionDeclaration"===e.type?(e.id&&s.declarations.set(e.id.name,e),t.set(e,s=new O$(s,!1))):(t.set(e,s=new O$(s,!1)),"FunctionExpression"===e.type&&e.id&&s.declarations.set(e.id.name,e)),e.params.forEach((t=>{T$(t).forEach((t=>{s.declarations.set(t,e)}))}));break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"BlockStatement":t.set(e,s=new O$(s,!0));break;case"ClassDeclaration":case"VariableDeclaration":s.add_declaration(e);break;case"CatchClause":t.set(e,s=new O$(s,!0)),e.param&&T$(e.param).forEach((t=>{e.param&&s.declarations.set(t,e.param)}))}},leave(e){t.has(e)&&null!==s&&s.parent&&(s=s.parent)}});for(let e=i.length-1;e>=0;--e){const[t,r]=i[e];t.references.has(r.name)||P$(t,r.name),t.find_owner(r.name)||n.set(r.name,r)}return{map:t,scope:r,globals:n}}function P$(e,t){e.references.add(t),e.parent&&P$(e.parent,t)}class O${constructor(e,t){this.parent=e,this.block=t,this.declarations=new Map,this.initialised_declarations=new Set,this.references=new Set}add_declaration(e){if("VariableDeclaration"===e.type)if("var"===e.kind&&this.block&&this.parent)this.parent.add_declaration(e);else{const t=t=>{T$(t.id).forEach((n=>{this.declarations.set(n,e),t.init&&this.initialised_declarations.add(n)}))};e.declarations.forEach(t)}else e.id&&this.declarations.set(e.id.name,e)}find_owner(e){return this.declarations.has(e)?this:this.parent&&this.parent.find_owner(e)}has(e){return this.declarations.has(e)||!!this.parent&&this.parent.has(e)}}function T$(e){return I$(e).map((e=>e.name))}function I$(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":const r=e=>{"RestElement"===e.type?I$(e.argument,t):I$(e.value,t)};e.properties.forEach(r);break;case"ArrayPattern":const i=e=>{e&&I$(e,t)};e.elements.forEach((e=>{e&&i(e)}));break;case"RestElement":I$(e.argument,t);break;case"AssignmentPattern":I$(e.left,t)}return t}function D$(e,t){const n=["start","end","loc","range","comments"];let r=-1;for(;++r<n.length;){const i=n[r];i in e&&(t[i]=e[i])}}function A$(e){return Boolean("FunctionDeclaration"===e.type||"ClassDeclaration"===e.type||"VariableDeclaration"===e.type)}function R$(e,t){let n=-1;const r=[],i=[];let s;for(;++n<e.length;){const t=e[n];"ImportNamespaceSpecifier"===t.type?s=t:i.push(t)}if(s){const e={type:"VariableDeclarator",id:s.local,init:t};D$(s,e),r.push(e)}return r.push({type:"VariableDeclarator",id:{type:"ObjectPattern",properties:i.map((function(e){let t="ImportSpecifier"===e.type?e.imported:"ExportSpecifier"===e.type?e.exported:{type:"Identifier",name:"default"},n=e.local;"ExportSpecifier"===e.type&&(n=t,t=e.local);const r={type:"Property",kind:"init",shorthand:t.name===n.name,method:!1,computed:!1,key:t,value:n};return D$(e,r),r}))},init:s?{type:"Identifier",name:s.local.name}:t}),r}function N$(e){let t,n=-1;for(;++n<e.length;){const r=e[n],i="string"==typeof r&&zF(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};t=t?{type:"MemberExpression",object:t,property:i,computed:"Literal"===i.type,optional:!1}:i}return t.type,t}function M$(e){let t,n=-1;for(;++n<e.length;){const r=e[n];"string"==typeof r&&zF(r,{jsx:!0});const i={type:"JSXIdentifier",name:r};t=t?{type:"JSXMemberExpression",object:t,property:i}:i}return t}function F$(e){const t=e.baseUrl||void 0,n="object"==typeof t?t.href:t,r=e.outputFormat||"program",i=void 0===e.pragma?"React.createElement":e.pragma,s=void 0===e.pragmaFrag?"React.Fragment":e.pragmaFrag,a=e.pragmaImportSource||"react",o=e.jsxImportSource||"react",l=e.jsxRuntime||"automatic";return function(e,t){const h=[],u=[];let d,p,f,m=0;if("classic"===l&&s&&L$(e,"@jsxFrag",s),"classic"===l&&i&&L$(e,"@jsx",i),"automatic"===l&&o&&L$(e,"@jsxImportSource",o),l&&L$(e,"@jsxRuntime",l),"classic"===l&&a){if(!i)throw new Error("Missing `pragma` in classic runtime with `pragmaImportSource`");w({type:"ImportDeclaration",specifiers:[{type:"ImportDefaultSpecifier",local:{type:"Identifier",name:i.split(".")[0]}}],source:{type:"Literal",value:a}})}for(f of e.body)if("ExportDefaultDeclaration"===f.type)d&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+lR(wF(d))+")",{ancestors:[e,f],place:wF(f),ruleId:"duplicate-layout",source:"recma-document"}),d=f,u.push({type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"MDXLayout"},init:A$(f.declaration)?(g=f.declaration,"FunctionDeclaration"===g.type?{...g,type:"FunctionExpression"}:(g.type,{...g,type:"ClassExpression"})):f.declaration}]});else if("ExportNamedDeclaration"===f.type&&f.source){const n=f.source;f.specifiers=f.specifiers.filter((function(r){if("default"===r.exported.name){d&&t.fail("Unexpected duplicate layout, expected a single layout (previous: "+lR(wF(d))+")",{ancestors:[e,f,r],place:wF(f),ruleId:"duplicate-layout",source:"recma-document"}),d=r;const i=[];if("default"===r.local.name)i.push({type:"ImportDefaultSpecifier",local:{type:"Identifier",name:"MDXLayout"}});else{const e={type:"ImportSpecifier",imported:r.local,local:{type:"Identifier",name:"MDXLayout"}};D$(r.local,e),i.push(e)}const s={type:"Literal",value:n.value};D$(n,s);const a={type:"ImportDeclaration",specifiers:i,source:s};return D$(r,a),w(a),!1}return!0})),f.specifiers.length>0&&x(f)}else"ExportNamedDeclaration"===f.type||"ExportAllDeclaration"===f.type?x(f):"ImportDeclaration"===f.type?w(f):"ExpressionStatement"!==f.type||"JSXElement"!==f.expression.type&&"JSXFragment"!==f.expression.type?u.push(f):(p=!0,u.push(...c(f.expression,r,Boolean(d))));var g;p||u.push(...c(void 0,r,Boolean(d))),h.push(["MDXContent","default"]),"function-body"===r&&u.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:m}).map((function(e,t){return{type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(t+1)}}})),...h.map((function(e){return{type:"Property",kind:"init",method:!1,computed:!1,shorthand:"string"==typeof e,key:{type:"Identifier",name:"string"==typeof e?e:e[1]},value:{type:"Identifier",name:"string"==typeof e?e:e[0]}}}))]}}),e.body=u;let y=!1,v=!1;var b;function x(e){if("ExportNamedDeclaration"===e.type)for(f of(e.declaration&&h.push(...k$(e.declaration).scope.declarations.keys()),e.specifiers))h.push(f.exported.name);w(e)}function w(e){let t,n;if("function-body"===r)if("ImportDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.source){e.source;const r={type:"ImportExpression",source:e.source};D$(e,r),n={type:"AwaitExpression",argument:r},t="ImportDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type||0!==e.specifiers.length?{type:"VariableDeclaration",kind:"const",declarations:"ExportAllDeclaration"===e.type?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++m},init:n}]:R$(e.specifiers,n)}:{type:"ExpressionStatement",expression:n}}else if(e.declaration)t=e.declaration;else{const n=e.specifiers.filter((function(e){return e.local.name!==e.exported.name})).map((function(e){return{type:"VariableDeclarator",id:e.exported,init:e.local}}));n.length>0&&(t={type:"VariableDeclaration",kind:"const",declarations:n})}else t=e;t&&u.push(t)}(n||"function-body"===r)&&S$(e,{enter(e){if(("ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ImportDeclaration"===e.type)&&e.source){let t=e.source.value;try{new URL(t)}catch{(t.startsWith("/")||t.startsWith("./")||t.startsWith("../"))&&(t=new URL(t,n).href)}const r={type:"Literal",value:t};return D$(e.source,r),void(e.source=r)}if("ImportExpression"!==e.type){if("MemberExpression"===e.type&&"object"in e&&"MetaProperty"===e.object.type&&"Identifier"===e.property.type&&"import"===e.object.meta.name&&"meta"===e.object.property.name&&"url"===e.property.name){y=!0;const t={type:"Identifier",name:"_importMetaUrl"};D$(e,t),this.replace(t)}}else{v=!0;const t={type:"CallExpression",callee:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},arguments:[e.source],optional:!1};e.source=t}}}),v&&(n||(y=!0),e.body.push((b=n?{type:"Literal",value:n}:{type:"Identifier",name:"_importMetaUrl"},{type:"FunctionDeclaration",id:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},generator:!1,async:!1,params:[{type:"Identifier",name:"d"}],body:{type:"BlockStatement",body:[{type:"IfStatement",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:"d"}},operator:"!==",right:{type:"Literal",value:"string"}},consequent:{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}},alternate:null},{type:"TryStatement",block:{type:"BlockStatement",body:[{type:"ExpressionStatement",expression:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"}]}},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]},handler:{type:"CatchClause",param:null,body:{type:"BlockStatement",body:[]}},finalizer:null},{type:"IfStatement",test:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"CallExpression",callee:N$(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:N$(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:N$(["d","startsWith"]),arguments:[{type:"Literal",value:"../"}],optional:!1}},consequent:{type:"ReturnStatement",argument:{type:"MemberExpression",object:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"},b]},property:{type:"Identifier",name:"href"},computed:!1,optional:!1}},alternate:null},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]}}))),y&&e.body.unshift({type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"_importMetaUrl"},init:N$(["arguments",0,"baseUrl"])}],kind:"const"},{type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"Identifier",name:"_importMetaUrl"}},consequent:{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[{type:"Literal",value:"Unexpected missing `options.baseUrl` needed to support `export … from`, `import`, or `import.meta.url` when generating `function-body`"}]}},alternate:null})};function c(e,t,n){let r={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};n||(r={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:r,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let i=e||{type:"Identifier",name:"undefined"};"JSXFragment"===i.type&&1===i.children.length&&"JSXElement"===i.children[0].type&&(i=i.children[0]);let s=!1;S$(i,{enter(e){if("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)return this.skip();("AwaitExpression"===e.type||"ForOfStatement"===e.type&&e.await)&&(s=!0)}});const a={type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:r}]}};return[{type:"FunctionDeclaration",async:s,id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:i}]}},"program"===t?{type:"ExportDefaultDeclaration",declaration:a}:a]}}function L$(e,t,n){e.comments?.unshift({type:"Block",value:t+" "+n,data:{_mdxIsPragmaComment:!0}})}const j$=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;function V$(e){let t;if(e.value)if("JSXExpressionContainer"===e.value.type){const n=e.value.expression;n.type,t=n}else{const n=e.value;"JSXElement"!==n.type&&n.type,t=n,delete t.raw}else t={type:"Literal",value:!0};const n={type:"Property",key:$$(e.name),value:t,kind:"init",method:!1,shorthand:!1,computed:!1};return z$(e,n),n}function $$(e){let t;if("JSXMemberExpression"===e.type){const n=$$(e.property);t={type:"MemberExpression",object:$$(e.object),property:n,computed:"Literal"===n.type,optional:!1}}else t="JSXNamespacedName"===e.type?{type:"Literal",value:e.namespace.name+":"+e.name.name}:zF(e.name)?{type:"Identifier",name:e.name}:{type:"Literal",value:e.name};return z$(e,t),t}function B$(e){const t=e.split(".");let n,r=-1;for(;++r<t.length;){const e=zF(t[r])?{type:"Identifier",name:t[r]}:{type:"Literal",value:t[r]};n=n?{type:"MemberExpression",object:n,property:e,computed:Boolean(r&&"Literal"===e.type),optional:!1}:e}return n}function z$(e,t){const n=["start","end","loc","range","comments"];let r=-1;for(;++r<n.length;){const i=n[r];i in e&&(t[i]=e[i])}}function H$(e){const{development:t,outputFormat:n}=e||{};return function(e,r){if(function(e,t){const n=t||{};let r="automatic"===n.runtime;const i={},s={};S$(e,{enter(e){if("Program"===e.type){const t=e.comments||[];let n=-1;for(;++n<t.length;){j$.lastIndex=0;let e=j$.exec(t[n].value);for(;e;)i[e[1]]=e[2],e=j$.exec(t[n].value)}if(i.jsxRuntime)if("automatic"===i.jsxRuntime){if(r=!0,i.jsx)throw new Error("Unexpected `@jsx` pragma w/ automatic runtime");if(i.jsxFrag)throw new Error("Unexpected `@jsxFrag` pragma w/ automatic runtime")}else{if("classic"!==i.jsxRuntime)throw new Error("Unexpected `jsxRuntime` `"+i.jsxRuntime+"`, expected `automatic` or `classic`");if(r=!1,i.jsxImportSource)throw new Error("Unexpected `@jsxImportSource` w/ classic runtime")}}},leave(e){if("Program"===e.type){const t=[];if(s.fragment&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"Fragment"},local:{type:"Identifier",name:"_Fragment"}}),s.jsx&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsx"},local:{type:"Identifier",name:"_jsx"}}),s.jsxs&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxs"},local:{type:"Identifier",name:"_jsxs"}}),s.jsxDEV&&t.push({type:"ImportSpecifier",imported:{type:"Identifier",name:"jsxDEV"},local:{type:"Identifier",name:"_jsxDEV"}}),t.length>0){let r=0;for(;r<e.body.length;){const t=e.body[r];if(!("directive"in t)||!t.directive)break;r++}e.body.splice(r,0,{type:"ImportDeclaration",specifiers:t,source:{type:"Literal",value:(i.jsxImportSource||n.importSource||"react")+(n.development?"/jsx-dev-runtime":"/jsx-runtime")}})}}if("JSXElement"!==e.type&&"JSXFragment"!==e.type)return;const t=[];let a,o=-1;for(;++o<e.children.length;){const n=e.children[o];if("JSXExpressionContainer"===n.type)"JSXEmptyExpression"!==n.expression.type&&t.push(n.expression);else if("JSXText"===n.type){const e=n.value.replace(/\t/g," ").replace(/ *(\r?\n|\r) */g,"\n").replace(/\n+/g,"\n").replace(/\n+$/,"").replace(/^\n+/,"").replace(/\n/g," ");if(e){const r={type:"Literal",value:e};z$(n,r),t.push(r)}}else"JSXElement"!==n.type&&"JSXFragment"!==n.type&&n.type,t.push(n)}const l=[];let c,h,u=[];if("JSXElement"===e.type){if(a=$$(e.openingElement.name),"Identifier"===a.type&&/^[a-z]/.test(a.name)){const e={type:"Literal",value:a.name};z$(a,e),a=e}let t;const n=e.openingElement.attributes;let i=-1;for(;++i<n.length;){const e=n[i];if("JSXSpreadAttribute"===e.type)"ObjectExpression"===e.argument.type?l.push(...e.argument.properties):l.push({type:"SpreadElement",argument:e.argument}),t=!0;else{const n=V$(e);if(r&&"Identifier"===n.key.type&&"key"===n.key.name){if(t)throw new Error("Expected `key` to come before any spread expressions");const e=n.value;"AssignmentPattern"!==e.type&&"ArrayPattern"!==e.type&&"ObjectPattern"!==e.type&&e.type,c=e}else l.push(n)}}}else r?(s.fragment=!0,a={type:"Identifier",name:"_Fragment"}):a=B$(i.jsxFrag||n.pragmaFrag||"React.Fragment");if(r?t.length>0&&l.push({type:"Property",key:{type:"Identifier",name:"children"},value:t.length>1?{type:"ArrayExpression",elements:t}:t[0],kind:"init",method:!1,shorthand:!1,computed:!1}):u=t,r){u.push({type:"ObjectExpression",properties:l}),c?u.push(c):n.development&&u.push({type:"Identifier",name:"undefined"});const r=t.length>1;if(n.development){s.jsxDEV=!0,h={type:"Identifier",name:"_jsxDEV"},u.push({type:"Literal",value:r});const t={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:n.filePath||"<source.js>"}}]};e.loc&&t.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:e.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:e.loc.start.column+1}}),u.push(t,{type:"ThisExpression"})}else r?(s.jsxs=!0,h={type:"Identifier",name:"_jsxs"}):(s.jsx=!0,h={type:"Identifier",name:"_jsx"})}else l.length>0?u.unshift({type:"ObjectExpression",properties:l}):u.length>0&&u.unshift({type:"Literal",value:null}),h=B$(i.jsx||n.pragma||"React.createElement");u.unshift(a);const d={type:"CallExpression",callee:h,arguments:u,optional:!1};z$(e,d),this.replace(d)}})}(e,{development:t,filePath:r.history[0]}),e.comments&&(e.comments=e.comments.filter((function(e){return!e.data?._mdxIsPragmaComment}))),"function-body"===n){let t=0;for(;t<e.body.length;){const n=e.body[t];if(!("directive"in n)||!n.directive)break;t++}const n=e.body[t];n&&"ImportDeclaration"===n.type&&"string"==typeof n.source.value&&/\/jsx-(dev-)?runtime$/.test(n.source.value)&&(e.body[t]={type:"VariableDeclaration",kind:"const",declarations:R$(n.specifiers,N$(["arguments",0]))})}}}function K$(e){let t,n=-1;for(;++n<e.length;){const r=e[n];t=t?{type:"BinaryExpression",left:t,operator:"+",right:r}:r}return t}function U$(e){const{development:t,outputFormat:n,providerImportSource:r}=e;return function(e,i){const s=k$(e),a=[];let o,l=!1,c=!1;if(S$(e,{enter(e){const t=s.map.get(e);"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ArrowFunctionExpression"!==e.type||(a.push({components:[],idToInvalidComponentName:new Map,node:e,objects:[],references:{},tags:[]}),W$(e,"MDXContent")&&t&&!G$(t,"MDXLayout")&&a[0].components.push("MDXLayout"));const n=a[0];if(n&&(W$(n.node,"_createMdxContent")||r)&&(t&&(t.node=e,o=t),o&&"JSXElement"===e.type)){let t=e.openingElement.name;if("JSXMemberExpression"===t.type){const r=[];for(;"JSXMemberExpression"===t.type;)r.unshift(t.property.name),t=t.object;r.unshift(t.name);const i=r.join("."),s=t.name,a=G$(o,s);if(!Object.hasOwn(n.references,i)){const t=o.parent;(!a||t&&"FunctionDeclaration"===t.node.type&&W$(t.node,"_createMdxContent"))&&(n.references[i]={component:!0,node:e})}n.objects.includes(s)||a||n.objects.push(s)}else if("JSXNamespacedName"===t.type);else if(zF(t.name)&&!/^[a-z]/.test(t.name)){const r=t.name;G$(o,r)||("MDXLayout"===r||Object.hasOwn(n.references,r)||(n.references[r]={component:!0,node:e}),n.components.includes(r)||n.components.push(r))}else if(e.data&&e.data._mdxExplicitJsx);else{const r=t.name;n.tags.includes(r)||n.tags.push(r);let i=["_components",r];if(!1===zF(r)){let e=n.idToInvalidComponentName.get(r);void 0===e&&(e=`_component${n.idToInvalidComponentName.size}`,n.idToInvalidComponentName.set(r,e)),i=[e]}e.openingElement.name=M$(i),e.closingElement&&(e.closingElement.name=M$(i))}}},leave(e){const n=[],i=[],s=[],h=[];if(o&&o.node===e&&(o=o.parent),"FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type){const o=e,u=a[a.length-1];let d;for(d of u.tags.sort())n.push({type:"Property",kind:"init",key:zF(d)?{type:"Identifier",name:d}:{type:"Literal",value:d},value:{type:"Literal",value:d},method:!1,shorthand:!1,computed:!1});for(d of(i.push(...u.components),u.objects))i.includes(d)||i.push(d);i.sort();const p=[];if(n.length>0||i.length>0||u.idToInvalidComponentName.size>0){if(r&&(l=!0,s.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(W$(u.node,"MDXContent")||W$(u.node,"_createMdxContent"))&&s.push(N$(["props","components"])),n.length>0||s.length>1)for(const e of s)n.push({type:"SpreadElement",argument:e});let e,t=n.length>0?{type:"ObjectExpression",properties:n}:{type:"LogicalExpression",operator:"||",left:s[0],right:{type:"ObjectExpression",properties:[]}};if(i.length>0&&(e={type:"ObjectPattern",properties:i.map((function(e){return{type:"Property",kind:"init",key:{type:"Identifier",name:"MDXLayout"===e?"wrapper":e},value:{type:"Identifier",name:e},method:!1,shorthand:"MDXLayout"!==e,computed:!1}}))}),u.tags.length>0&&(h.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:t}),t={type:"Identifier",name:"_components"}),W$(u.node,"_createMdxContent"))for(const[e,t]of[...u.idToInvalidComponentName].sort((function([e],[t]){return e.localeCompare(t)})))h.push({type:"VariableDeclarator",id:{type:"Identifier",name:t},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:e},computed:!0,optional:!1}});e&&h.push({type:"VariableDeclarator",id:e,init:t}),h.length>0&&p.push({type:"VariableDeclaration",kind:"const",declarations:h})}let f;for(f in u.references)if(Object.hasOwn(u.references,f)){const e=f.split(".");let t=0;for(;++t<e.length;){const n=e.slice(0,t).join(".");Object.hasOwn(u.references,n)||(u.references[n]={component:!1,node:u.references[f].node})}}const m=Object.keys(u.references).sort();let g=-1;for(;++g<m.length;){const e=m[g],n=u.references[e],r=lR(wF(n.node)),i=[{type:"Literal",value:e},{type:"Literal",value:n.component}];c=!0,t&&r&&i.push({type:"Literal",value:r}),p.push({type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:N$(e.split("."))},consequent:{type:"ExpressionStatement",expression:{type:"CallExpression",callee:{type:"Identifier",name:"_missingMdxReference"},arguments:i,optional:!1}},alternate:void 0})}p.length>0&&("BlockStatement"!==o.body.type&&(o.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:o.body}]}),o.body.body.unshift(...p)),a.pop()}}}),l&&r&&e.body.unshift(function(e,t){const n=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return"function-body"===t?{type:"VariableDeclaration",kind:"const",declarations:R$(n,N$(["arguments",0]))}:{type:"ImportDeclaration",specifiers:n,source:{type:"Literal",value:e}}}(r,n)),c){const n=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" `"},{type:"Identifier",name:"id"},{type:"Literal",value:"` to be defined: you likely forgot to import, pass, or provide it."}],r=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];t&&(n.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:K$([{type:"Literal",value:"\nIt’s referenced in your code at `"},{type:"Identifier",name:"place"},{type:"Literal",value:(i.path?"` in `"+i.path:"")+"`"}]),alternate:{type:"Literal",value:""}}),r.push({type:"Identifier",name:"place"})),e.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:r,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[K$(n)]}}]}})}"function-body"===n&&e.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"})}}function W$(e,t){return Boolean(e&&"id"in e&&e.id&&e.id.name===t)}function G$(e,t){let n=e;for(;n;){if(n.declarations.has(t))return!0;n=n.parent||void 0}return!1}const{stringify:q$}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const Y$={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},X$=17,Z$={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:X$,ClassExpression:X$,FunctionExpression:X$,ObjectExpression:X$,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function J$(e,t){const{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);const{length:r}=t;for(let i=1;i<r;i++){const r=t[i];e.write(", "),n[r.type](r,e)}}e.write(")")}function Q$(e,t,n,r){const i=e.expressionsPrecedence[t.type];if(i===X$)return!0;const s=e.expressionsPrecedence[n.type];return i!==s?!r&&15===i&&14===s&&"**"===n.operator||i<s:(13===i||14===i)&&("**"===t.operator&&"**"===n.operator?!r:13===i&&13===s&&("??"===t.operator||"??"===n.operator)||(r?Y$[t.operator]<=Y$[n.operator]:Y$[t.operator]<Y$[n.operator]))}function eB(e,t,n,r){const{generator:i}=e;Q$(e,t,n,r)?(e.write("("),i[t.type](t,e),e.write(")")):i[t.type](t,e)}function tB(e,t,n,r){const i=t.split("\n"),s=i.length-1;if(e.write(i[0].trim()),s>0){e.write(r);for(let t=1;t<s;t++)e.write(n+i[t].trim()+r);e.write(n+i[s].trim())}}function nB(e,t,n,r){const{length:i}=t;for(let s=0;s<i;s++){const i=t[s];e.write(n),"L"===i.type[0]?e.write("// "+i.value.trim()+"\n",i):(e.write("/*"),tB(e,i.value,n,r),e.write("*/"+r))}}function rB(e,t){const{generator:n}=e,{declarations:r}=t;e.write(t.kind+" ");const{length:i}=r;if(i>0){n.VariableDeclarator(r[0],e);for(let t=1;t<i;t++)e.write(", "),n.VariableDeclarator(r[t],e)}}let iB,sB,aB,oB,lB,cB;const hB={Program(e,t){const n=t.indent.repeat(t.indentLevel),{lineEnd:r,writeComments:i}=t;i&&null!=e.comments&&nB(t,e.comments,n,r);const s=e.body,{length:a}=s;for(let e=0;e<a;e++){const a=s[e];i&&null!=a.comments&&nB(t,a.comments,n,r),t.write(n),this[a.type](a,t),t.write(r)}i&&null!=e.trailingComments&&nB(t,e.trailingComments,n,r)},BlockStatement:cB=function(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t,s=n+t.indent;t.write("{");const a=e.body;if(null!=a&&a.length>0){t.write(r),i&&null!=e.comments&&nB(t,e.comments,s,r);const{length:o}=a;for(let e=0;e<o;e++){const n=a[e];i&&null!=n.comments&&nB(t,n.comments,s,r),t.write(s),this[n.type](n,t),t.write(r)}t.write(n)}else i&&null!=e.comments&&(t.write(r),nB(t,e.comments,s,r),t.write(n));i&&null!=e.trailingComments&&nB(t,e.trailingComments,s,r),t.write("}"),t.indentLevel--},ClassBody:cB,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){const n=t.expressionsPrecedence[e.expression.type];n===X$||3===n&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t;t.indentLevel++;const s=n+t.indent,a=s+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+r);const{cases:o}=e,{length:l}=o;for(let e=0;e<l;e++){const n=o[e];i&&null!=n.comments&&nB(t,n.comments,s,r),n.test?(t.write(s+"case "),this[n.test.type](n.test,t),t.write(":"+r)):t.write(s+"default:"+r);const{consequent:l}=n,{length:c}=l;for(let e=0;e<c;e++){const n=l[e];i&&null!=n.comments&&nB(t,n.comments,a,r),t.write(a),this[n.type](n,t),t.write(r)}}t.indentLevel-=2,t.write(n+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){const{handler:n}=e;null==n.param?t.write(" catch "):(t.write(" catch ("),this[n.param.type](n.param,t),t.write(") ")),this[n.body.type](n.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){const{init:n}=e;"V"===n.type[0]?rB(t,n):this[n.type](n,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:iB=function(e,t){t.write(`for ${e.await?"await ":""}(`);const{left:n}=e;"V"===n.type[0]?rB(t,n):this[n.type](n,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:iB,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:sB=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),J$(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:sB,VariableDeclaration(e,t){rB(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");const{superClass:n}=e,{type:r}=n,i=t.expressionsPrecedence[r];"C"===r[0]&&"l"===r[1]&&"E"===r[5]||!(i===X$||i<t.expressionsPrecedence.ClassExpression)?this[n.type](n,t):(t.write("("),this[e.superClass.type](n,t),t.write(")")),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");const{specifiers:n}=e,{length:r}=n;let i=0;if(r>0){for(;i<r;){i>0&&t.write(", ");const e=n[i],r=e.type[6];if("D"===r)t.write(e.local.name,e),i++;else{if("N"!==r)break;t.write("* as "+e.local.name,e),i++}}if(i<r){for(t.write("{");;){const e=n[i],{name:s}=e.imported;if(t.write(s,e),s!==e.local.name&&t.write(" as "+e.local.name),!(++i<r))break;t.write(", ")}t.write("}")}t.write(" from ")}this.Literal(e.source,t),t.write(";")},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");const{specifiers:n}=e,{length:r}=n;if(r>0)for(let e=0;;){const i=n[e],{name:s}=i.local;if(t.write(s,i),s!==i.exported.name&&t.write(" as "+i.exported.name),!(++e<r))break;t.write(", ")}t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),t.write(";")}},ExportAllDeclaration(e,t){null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");const n=e.kind[0];"g"!==n&&"s"!==n||t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),J$(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);const{params:n}=e;null!=n&&(1===n.length&&"I"===n[0].type[0]?t.write(n[0].name,n[0]):J$(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:aB=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:aB,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),eB(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:n,expressions:r}=e;t.write("`");const{length:i}=r;for(let e=0;e<i;e++){const i=r[e],s=n[e];t.write(s.value.raw,s),t.write("${"),this[i.type](i,t),t.write("}")}const s=n[n.length-1];t.write(s.value.raw,s),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){eB(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:lB=function(e,t){if(t.write("["),e.elements.length>0){const{elements:n}=e,{length:r}=n;for(let e=0;;){const i=n[e];if(null!=i&&this[i.type](i,t),!(++e<r)){null==i&&t.write(", ");break}t.write(", ")}}t.write("]")},ArrayPattern:lB,ObjectExpression(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t,s=n+t.indent;if(t.write("{"),e.properties.length>0){t.write(r),i&&null!=e.comments&&nB(t,e.comments,s,r);const a=","+r,{properties:o}=e,{length:l}=o;for(let e=0;;){const n=o[e];if(i&&null!=n.comments&&nB(t,n.comments,s,r),t.write(s),this[n.type](n,t),!(++e<l))break;t.write(a)}t.write(r),i&&null!=e.trailingComments&&nB(t,e.trailingComments,s,r),t.write(n+"}")}else i?null!=e.comments?(t.write(r),nB(t,e.comments,s,r),null!=e.trailingComments&&nB(t,e.trailingComments,s,r),t.write(n+"}")):null!=e.trailingComments?(t.write(r),nB(t,e.trailingComments,s,r),t.write(n+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),null!=e.value?(t.write(" = "),this[e.value.type](e.value,t),t.write(";")):"F"!==e.key.type[0]&&t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){const{properties:n}=e,{length:r}=n;for(let e=0;this[n[e].type](n[e],t),++e<r;)t.write(", ")}t.write("}")},SequenceExpression(e,t){J$(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){const{operator:n,argument:r,argument:{type:i}}=e;t.write(n);const s=Q$(t,r,e);s||!(n.length>1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!r.prefix||r.operator[0]!==n||"+"!==n&&"-"!==n)||t.write(" "),s?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:oB=function(e,t){const n="in"===e.operator;n&&t.write("("),eB(t,e.left,e,!1),t.write(" "+e.operator+" "),eB(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:oB,ConditionalExpression(e,t){const{test:n}=e,r=t.expressionsPrecedence[n.type];r===X$||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const n=t.expressionsPrecedence[e.callee.type];n===X$||n<t.expressionsPrecedence.CallExpression||function(e){let t=e;for(;null!=t;){const{type:e}=t;if("C"===e[0]&&"a"===e[1])return!0;if("M"!==e[0]||"e"!==e[1]||"m"!==e[2])return!1;t=t.object}}(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),J$(t,e.arguments)},CallExpression(e,t){const n=t.expressionsPrecedence[e.callee.type];n===X$||n<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),J$(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){const n=t.expressionsPrecedence[e.object.type];n===X$||n<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(q$(e.value),e)},RegExpLiteral(e,t){const{regex:n}=e;t.write(`/${n.pattern}/${n.flags}`,e)}},uB={};class dB{constructor(e){const t=null==e?uB:e;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:hB,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:Z$,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:"\n",this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){const{type:n}=t;if("L"===n[0]&&"n"===n[2])return this.column=0,void this.line++;if(null!=t.loc){const{mapping:e}=this;e.original=t.loc.start,e.name=t.name,this.sourceMap.addMapping(e)}if("T"===n[0]&&"E"===n[8]||"L"===n[0]&&"i"===n[1]&&"string"==typeof t.value){const{length:t}=e;let{column:n,line:r}=this;for(let i=0;i<t;i++)"\n"===e[i]?(n=0,r++):n++;return this.column=n,void(this.line=r)}}const{length:n}=e,{lineEnd:r}=this;n>0&&(this.lineEndSize>0&&(1===r.length?e[n-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}const pB={};function fB(e,t){const{SourceMapGenerator:n,filePath:r,handlers:i}=t||pB,s=n?new n({file:r||"<unknown>.js"}):void 0,a=function(e,t){const n=new dB(t);return n.generator[e.type](e,n),n.output}(e,{comments:!0,generator:{...hB,...i},sourceMap:s||void 0});return{value:a,map:s?s.toJSON():void 0}}const mB={JSXAttribute:function(e,t){this[e.name.type](e.name,t),null!==e.value&&void 0!==e.value&&(t.write("="),"Literal"===e.value.type?t.write('"'+gB(String(e.value.value)).replace(/"/g,""")+'"',e):this[e.value.type](e.value,t))},JSXClosingElement:function(e,t){t.write("</"),this[e.name.type](e.name,t),t.write(">")},JSXClosingFragment:function(e,t){t.write("</>",e)},JSXElement:function(e,t){let n=-1;if(this[e.openingElement.type](e.openingElement,t),e.children)for(;++n<e.children.length;){const r=e.children[n];if("JSXSpreadChild"===r.type)throw new Error("JSX spread children are not supported");this[r.type](r,t)}e.closingElement&&this[e.closingElement.type](e.closingElement,t)},JSXEmptyExpression:function(){},JSXExpressionContainer:function(e,t){t.write("{"),this[e.expression.type](e.expression,t),t.write("}")},JSXFragment:function(e,t){let n=-1;if(this[e.openingFragment.type](e.openingFragment,t),e.children)for(;++n<e.children.length;){const r=e.children[n];if("JSXSpreadChild"===r.type)throw new Error("JSX spread children are not supported");this[r.type](r,t)}this[e.closingFragment.type](e.closingFragment,t)},JSXIdentifier:function(e,t){t.write(e.name,e)},JSXMemberExpression:function(e,t){this[e.object.type](e.object,t),t.write("."),this[e.property.type](e.property,t)},JSXNamespacedName:function(e,t){this[e.namespace.type](e.namespace,t),t.write(":"),this[e.name.type](e.name,t)},JSXOpeningElement:function(e,t){let n=-1;if(t.write("<"),this[e.name.type](e.name,t),e.attributes)for(;++n<e.attributes.length;)t.write(" "),this[e.attributes[n].type](e.attributes[n],t);t.write(e.selfClosing?" />":">")},JSXOpeningFragment:function(e,t){t.write("<>",e)},JSXSpreadAttribute:function(e,t){t.write("{"),this.SpreadElement(e,t),t.write("}")},JSXText:function(e,t){t.write(gB(e.value).replace(/[<>{}]/g,yB),e)}};function gB(e){return e.replace(/&(?=[#a-z])/gi,"&")}function yB(e){return"<"===e?"<":">"===e?">":"{"===e?"{":"}"}function vB(e){const{SourceMapGenerator:t}=e;this.compiler=function(e,n){const r=fB(e,t?{SourceMapGenerator:t,filePath:n.path||"unknown.mdx",handlers:mB}:{handlers:mB});return n.map=r.map,r.value}}class bB{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function xB(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new bB(n,r,t)}function wB(e){return e.toLowerCase()}bB.prototype.property={},bB.prototype.normal={},bB.prototype.space=null;class CB{constructor(e,t){this.property=e,this.attribute=t}}CB.prototype.space=null,CB.prototype.boolean=!1,CB.prototype.booleanish=!1,CB.prototype.overloadedBoolean=!1,CB.prototype.number=!1,CB.prototype.commaSeparated=!1,CB.prototype.spaceSeparated=!1,CB.prototype.commaOrSpaceSeparated=!1,CB.prototype.mustUseProperty=!1,CB.prototype.defined=!1;let EB=0;const SB=DB(),_B=DB(),kB=DB(),PB=DB(),OB=DB(),TB=DB(),IB=DB();function DB(){return 2**++EB}const AB=Object.keys(t);class RB extends CB{constructor(e,n,r,i){let s=-1;if(super(e,n),NB(this,"space",i),"number"==typeof r)for(;++s<AB.length;){const e=AB[s];NB(this,AB[s],(r&t[e])===t[e])}}}function NB(e,t,n){n&&(e[t]=n)}RB.prototype.defined=!0;const MB={}.hasOwnProperty;function FB(e){const t={},n={};let r;for(r in e.properties)if(MB.call(e.properties,r)){const i=e.properties[r],s=new RB(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[wB(r)]=r,n[wB(s.attribute)]=r}return new bB(t,n,e.space)}const LB=FB({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),jB=FB({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function VB(e,t){return t in e?e[t]:t}function $B(e,t){return VB(e,t.toLowerCase())}const BB=FB({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$B,properties:{xmlns:null,xmlnsXLink:null}}),zB=FB({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:_B,ariaAutoComplete:null,ariaBusy:_B,ariaChecked:_B,ariaColCount:PB,ariaColIndex:PB,ariaColSpan:PB,ariaControls:OB,ariaCurrent:null,ariaDescribedBy:OB,ariaDetails:null,ariaDisabled:_B,ariaDropEffect:OB,ariaErrorMessage:null,ariaExpanded:_B,ariaFlowTo:OB,ariaGrabbed:_B,ariaHasPopup:null,ariaHidden:_B,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:OB,ariaLevel:PB,ariaLive:null,ariaModal:_B,ariaMultiLine:_B,ariaMultiSelectable:_B,ariaOrientation:null,ariaOwns:OB,ariaPlaceholder:null,ariaPosInSet:PB,ariaPressed:_B,ariaReadOnly:_B,ariaRelevant:null,ariaRequired:_B,ariaRoleDescription:OB,ariaRowCount:PB,ariaRowIndex:PB,ariaRowSpan:PB,ariaSelected:_B,ariaSetSize:PB,ariaSort:null,ariaValueMax:PB,ariaValueMin:PB,ariaValueNow:PB,ariaValueText:null,role:null}}),HB=FB({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$B,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:TB,acceptCharset:OB,accessKey:OB,action:null,allow:null,allowFullScreen:SB,allowPaymentRequest:SB,allowUserMedia:SB,alt:null,as:null,async:SB,autoCapitalize:null,autoComplete:OB,autoFocus:SB,autoPlay:SB,blocking:OB,capture:null,charSet:null,checked:SB,cite:null,className:OB,cols:PB,colSpan:null,content:null,contentEditable:_B,controls:SB,controlsList:OB,coords:PB|TB,crossOrigin:null,data:null,dateTime:null,decoding:null,default:SB,defer:SB,dir:null,dirName:null,disabled:SB,download:kB,draggable:_B,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:SB,formTarget:null,headers:OB,height:PB,hidden:SB,high:PB,href:null,hrefLang:null,htmlFor:OB,httpEquiv:OB,id:null,imageSizes:null,imageSrcSet:null,inert:SB,inputMode:null,integrity:null,is:null,isMap:SB,itemId:null,itemProp:OB,itemRef:OB,itemScope:SB,itemType:OB,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:SB,low:PB,manifest:null,max:null,maxLength:PB,media:null,method:null,min:null,minLength:PB,multiple:SB,muted:SB,name:null,nonce:null,noModule:SB,noValidate:SB,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:SB,optimum:PB,pattern:null,ping:OB,placeholder:null,playsInline:SB,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:SB,referrerPolicy:null,rel:OB,required:SB,reversed:SB,rows:PB,rowSpan:PB,sandbox:OB,scope:null,scoped:SB,seamless:SB,selected:SB,shadowRootClonable:SB,shadowRootDelegatesFocus:SB,shadowRootMode:null,shape:null,size:PB,sizes:null,slot:null,span:PB,spellCheck:_B,src:null,srcDoc:null,srcLang:null,srcSet:null,start:PB,step:null,style:null,tabIndex:PB,target:null,title:null,translate:null,type:null,typeMustMatch:SB,useMap:null,value:_B,width:PB,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:OB,axis:null,background:null,bgColor:null,border:PB,borderColor:null,bottomMargin:PB,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:SB,declare:SB,event:null,face:null,frame:null,frameBorder:null,hSpace:PB,leftMargin:PB,link:null,longDesc:null,lowSrc:null,marginHeight:PB,marginWidth:PB,noResize:SB,noHref:SB,noShade:SB,noWrap:SB,object:null,profile:null,prompt:null,rev:null,rightMargin:PB,rules:null,scheme:null,scrolling:_B,standby:null,summary:null,text:null,topMargin:PB,valueType:null,version:null,vAlign:null,vLink:null,vSpace:PB,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:SB,disableRemotePlayback:SB,prefix:null,property:null,results:PB,security:null,unselectable:null}}),KB=FB({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:VB,properties:{about:IB,accentHeight:PB,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:PB,amplitude:PB,arabicForm:null,ascent:PB,attributeName:null,attributeType:null,azimuth:PB,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:PB,by:null,calcMode:null,capHeight:PB,className:OB,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:PB,diffuseConstant:PB,direction:null,display:null,dur:null,divisor:PB,dominantBaseline:null,download:SB,dx:null,dy:null,edgeMode:null,editable:null,elevation:PB,enableBackground:null,end:null,event:null,exponent:PB,externalResourcesRequired:null,fill:null,fillOpacity:PB,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:TB,g2:TB,glyphName:TB,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:PB,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:PB,horizOriginX:PB,horizOriginY:PB,id:null,ideographic:PB,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:PB,k:PB,k1:PB,k2:PB,k3:PB,k4:PB,kernelMatrix:IB,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:PB,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:PB,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:PB,overlineThickness:PB,paintOrder:null,panose1:null,path:null,pathLength:PB,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:OB,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:PB,pointsAtY:PB,pointsAtZ:PB,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:IB,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:IB,rev:IB,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:IB,requiredFeatures:IB,requiredFonts:IB,requiredFormats:IB,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:PB,specularExponent:PB,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:PB,strikethroughThickness:PB,string:null,stroke:null,strokeDashArray:IB,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:PB,strokeOpacity:PB,strokeWidth:null,style:null,surfaceScale:PB,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:IB,tabIndex:PB,tableValues:null,target:null,targetX:PB,targetY:PB,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:IB,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:PB,underlineThickness:PB,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:PB,values:null,vAlphabetic:PB,vMathematical:PB,vectorEffect:null,vHanging:PB,vIdeographic:PB,version:null,vertAdvY:PB,vertOriginX:PB,vertOriginY:PB,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:PB,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),UB=xB([jB,LB,BB,zB,HB],"html"),WB=xB([jB,LB,BB,zB,KB],"svg"),GB=YB("end"),qB=YB("start");function YB(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}const XB={}.hasOwnProperty;function ZB(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const JB=/^data[-\w.:]+$/i,QB=/-[a-z]/g,ez=/[A-Z]/g;function tz(e,t){const n=wB(t);let r=t,i=CB;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&JB.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(QB,rz);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!QB.test(e)){let n=e.replace(ez,nz);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=RB}return new i(r,t)}function nz(e){return"-"+e.toLowerCase()}function rz(e){return e.charAt(1).toUpperCase()}const iz={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function sz(e){return e.join(" ").trim()}const az=__webpack_require__("Wxh1"),oz={}.hasOwnProperty,lz=/[A-Z]/g,cz=/-([a-z])/g,hz=new Set(["td","th"]);function uz(e,t){const n={};try{az(e,(function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(cz,fz));n[r]=t}))}catch(e){throw new Error("Could not parse `style` attribute on `"+t+"`",{cause:e})}return n}function dz(e){const t={};let n;for(n in e)oz.call(e,n)&&(t[pz(n)]=e[n]);return t}function pz(e){let t=e.replace(lz,mz);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function fz(e,t){return t.toUpperCase()}function mz(e){return"-"+e.toLowerCase()}const gz={}.hasOwnProperty,yz=[];function vz(e,t){const n=t?[...t].sort(wz):yz;n.length>0&&bz(e,{comments:n,index:0})}function bz(e,t){if(t.index===t.comments.length)return;const n=[],r=[];let i;for(i in e)if(gz.call(e,i)){const t=e[i];if(t&&"object"==typeof t&&"comments"!==i)if(Array.isArray(t)){let e=-1;for(;++e<t.length;)t[e]&&"string"==typeof t[e].type&&n.push(t[e])}else"string"==typeof t.type&&n.push(t)}n.sort(wz),r.push(...xz(t,e,!1,{leading:!0,trailing:!1}));let s=-1;for(;++s<n.length;)bz(n[s],t);r.push(...xz(t,e,!0,{leading:!1,trailing:n.length>0})),r.length>0&&(e.comments=r)}function xz(e,t,n,r){const i=[];for(;e.comments[e.index]&&wz(e.comments[e.index],t,n)<1;)i.push(Object.assign({},e.comments[e.index++],r));return i}function wz(e,t,n){const r=n?"end":"start";return e.range&&t.range?e.range[0]-t.range[n?1:0]:e.loc&&e.loc.start&&t.loc&&t.loc[r]?e.loc.start.line-t.loc[r].line||e.loc.start.column-t.loc[r].column:"start"in e&&r in t?e.start-t[r]:Number.NaN}function Cz(e,t){const n=e.data&&e.data.estree,r=n&&n.comments||[];let i;n&&(t.comments.push(...r),vz(n,n.comments),i=n.body[0]&&"ExpressionStatement"===n.body[0].type&&n.body[0].expression||void 0),i||(i={type:"JSXEmptyExpression"},t.patch(e,i));const s={type:"JSXExpressionContainer",expression:i};return t.inherit(e,s),s}function Ez(e,t){const n=t.schema;let r=n;const i=e.attributes||[];let s=-1;e.name&&"html"===n.space&&"svg"===e.name.toLowerCase()&&(r=WB,t.schema=r);const a=t.all(e),o=[];for(;++s<i.length;){const e=i[s],n=e.value;let r;if("mdxJsxAttribute"===e.type){if(null==n)r=null;else if("object"==typeof n){const e=n.data&&n.data.estree,i=e&&e.comments||[];let s;e&&(t.comments.push(...i),vz(e,e.comments),s=e.body[0]&&"ExpressionStatement"===e.body[0].type&&e.body[0].expression||void 0),r={type:"JSXExpressionContainer",expression:s||{type:"JSXEmptyExpression"}},t.inherit(n,r)}else r={type:"Literal",value:String(n)};const i={type:"JSXAttribute",name:t.createJsxAttributeName(e.name),value:r};t.inherit(e,i),o.push(i)}else{const n=e.data&&e.data.estree,r=n&&n.comments||[];let i;n&&(t.comments.push(...r),vz(n,n.comments),i=n.body[0]&&"ExpressionStatement"===n.body[0].type&&n.body[0].expression&&"ObjectExpression"===n.body[0].expression.type&&n.body[0].expression.properties&&n.body[0].expression.properties[0]&&"SpreadElement"===n.body[0].expression.properties[0].type&&n.body[0].expression.properties[0].argument||void 0);const s={type:"JSXSpreadAttribute",argument:i||{type:"ObjectExpression",properties:[]}};t.inherit(e,s),o.push(s)}}t.schema=n;const l=e.name?{type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:o,name:t.createJsxElementName(e.name),selfClosing:0===a.length},closingElement:a.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.name)}:null,children:a}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:a};return t.inherit(e,l),l}const Sz=/[ \t\n\f\r]/g;function _z(e){return""===e.replace(Sz,"")}const kz={comment:function(e,t){const n={type:"Block",value:e.value};t.inherit(e,n),t.comments.push(n);const r={type:"JSXEmptyExpression",comments:[Object.assign({},n,{leading:!1,trailing:!0})]};t.patch(e,r);const i={type:"JSXExpressionContainer",expression:r};return t.patch(e,i),i},doctype:function(){},element:function(e,t){const n=t.schema;let r=n;const i=e.properties||{};"html"===n.space&&"svg"===e.tagName.toLowerCase()&&(r=WB,t.schema=r);const s=t.all(e),a=[];let o,l,c;for(o in i)if(oz.call(i,o)){let n=i[o];const s=tz(r,o);let h;if(null==n||!1===n||"number"==typeof n&&Number.isNaN(n)||!n&&s.boolean)continue;if(o="react"===t.elementAttributeNameCase&&s.space?iz[s.property]||s.property:s.attribute,Array.isArray(n)&&(n=s.commaSeparated?ZB(n):sz(n)),"style"===o){let r="object"==typeof n?n:uz(String(n),e.tagName);"css"===t.stylePropertyNameCase&&(r=dz(r));const i=[];let s;for(s in r)oz.call(r,s)&&i.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:zF(s)?{type:"Identifier",name:s}:{type:"Literal",value:s},value:{type:"Literal",value:String(r[s])},kind:"init"});c=i,h={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:i}}}else if(!0===n)h=null;else{if(t.tableCellAlignToStyle&&hz.has(e.tagName)&&"align"===o){l=String(n);continue}h={type:"Literal",value:String(n)}}zF(o,{jsx:!0})?a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:o},value:h}):a.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(o)},value:h||{type:"Literal",value:!0},kind:"init"}]}})}if(void 0!==l){c||(c=[],a.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:"style"},value:{type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:c}}}));const e="css"===t.stylePropertyNameCase?pz("textAlign"):"textAlign";c.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:zF(e)?{type:"Identifier",name:e}:{type:"Literal",value:e},value:{type:"Literal",value:l},kind:"init"})}t.schema=n;const h={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:a,name:t.createJsxElementName(e.tagName),selfClosing:0===s.length},closingElement:s.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:s};return t.inherit(e,h),h},mdxFlowExpression:Cz,mdxJsxFlowElement:Ez,mdxJsxTextElement:Ez,mdxTextExpression:Cz,mdxjsEsm:function(e,t){const n=e.data&&e.data.estree,r=n&&n.comments||[];n&&(t.comments.push(...r),vz(n,r),t.esm.push(...n.body))},root:function(e,t){const n=t.all(e),r=[];let i,s=-1;for(;++s<n.length;){const e=n[s];"JSXExpressionContainer"===e.type&&"Literal"===e.expression.type&&("object"==typeof(a=String(e.expression.value))?"text"===a.type&&_z(a.value):_z(a))?i&&i.push(e):(i&&r.push(...i),r.push(e),i=[])}var a;const o={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:r};return t.inherit(e,o),o},text:function(e,t){const n=String(e.value||"");if(n){const r={type:"Literal",value:n};t.inherit(e,r);const i={type:"JSXExpressionContainer",expression:r};return t.patch(e,i),i}}};const Pz={}.hasOwnProperty,Oz=new Set(["table","tbody","thead","tfoot","tr"]);function Tz(e){const t=function(e,t){const n=t||{};function r(t,...n){let i=r.invalid;const s=r.handlers;if(t&&XB.call(t,e)){const n=String(t[e]);i=XB.call(s,n)?s[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:Iz,unknown:Dz,handlers:{...kz,...e.handlers}});return{elementAttributeNameCase:e.elementAttributeNameCase||"react",schema:"svg"===e.space?WB:UB,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle,comments:[],esm:[],all:Az,createJsxAttributeName:Mz,createJsxElementName:Fz,handle:function(e){return t(e,this)},inherit:Rz,patch:Nz}}function Iz(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function Dz(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function Az(e){const t=e.children||[];let n=-1;const r=[],i="html"===this.schema.space&&"element"===e.type&&Oz.has(e.tagName.toLowerCase());for(;++n<t.length;){const e=t[n];if(i&&"text"===e.type&&"\n"===e.value)continue;const s=this.handle(e);Array.isArray(s)?r.push(...s):s&&r.push(s)}return r}function Rz(e,t){const n=e.data;let r,i;if(Nz(e,t),n){for(i in n)Pz.call(n,i)&&"estree"!==i&&(r||(r={}),r[i]=n[i]);r&&(t.data=r)}}function Nz(e,t){const n=function(e){const t=qB(e),n=GB(e);if(t&&n)return{start:t,end:n}}(e);n&&void 0!==n.start.offset&&void 0!==n.end.offset&&(t.start=n.start.offset,t.end=n.end.offset,t.loc={start:{line:n.start.line,column:n.start.column-1},end:{line:n.end.line,column:n.end.column-1}},t.range=[n.start.offset,n.end.offset])}function Mz(e){const t=Lz(e);if("JSXMemberExpression"===t.type)throw new Error("Member expressions in attribute names are not supported");return t}function Fz(e){return Lz(e)}function Lz(e){if(e.includes(".")){const t=e.split(".");let n=t.shift(),r={type:"JSXIdentifier",name:n};for(;n=t.shift();)r={type:"JSXMemberExpression",object:r,property:{type:"JSXIdentifier",name:n}};return r}if(e.includes(":")){const t=e.split(":");return{type:"JSXNamespacedName",namespace:{type:"JSXIdentifier",name:t[0]},name:{type:"JSXIdentifier",name:t[1]}}}return{type:"JSXIdentifier",name:e}}function jz(e){return function(t){return function(e,t){const n=Tz(t||{});let r=n.handle(e);const i=n.esm;if(r){"JSXFragment"!==r.type&&"JSXElement"!==r.type&&(r={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:[r]},n.patch(e,r));const t={type:"ExpressionStatement",expression:r};n.patch(e,t),i.push(t)}const s={type:"Program",body:i,sourceType:"module",comments:n.comments};return n.patch(e,s),s}(t,e)}}function Vz(e,t,n,r){let i,s,a;"function"==typeof t&&"function"!=typeof n?(s=void 0,a=t,i=n):(s=t,a=n,i=r),TV(e,s,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),i)}function $z(){return function(e){Vz(e,"raw",(function(e,t,n){if(n&&"number"==typeof t)return n.children.splice(t,1),t}))}}const Bz=/\s+/g,zz=/[\t\n\v\f\r ]+/g;function Hz(e,t){t?"string"==typeof t&&(t={style:t}):t={};const n=t.preserveLineEndings?Kz:Uz;return String(e).replace("html"===t.style?zz:Bz,t.trim?function(e){return t;function t(t,n,r){return 0===n||n+t.length===r.length?"":e(t)}}(n):n)}function Kz(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Uz(){return" "}function Wz(){return function(e){Vz(e,(function(e,t,n){let r=-1,i=!0,s=!1;if(n&&"number"==typeof t&&"paragraph"===e.type){const a=e.children;for(;++r<a.length;){const e=a[r];if("mdxJsxTextElement"===e.type||"mdxTextExpression"===e.type)s=!0;else if("text"!==e.type||""!==Hz(e.value,{style:"html",trim:!0})){i=!1;break}}if(i&&s){r=-1;const e=[];for(;++r<a.length;){const t=a[r];"mdxJsxTextElement"===t.type&&(t.type="mdxJsxFlowElement"),"mdxTextExpression"===t.type&&(t.type="mdxFlowExpression"),"text"===t.type&&/^[\t\r\n ]+$/.test(String(t.value))||e.push(t)}return n.children.splice(t,1,...e),t}}if("mdxJsxFlowElement"===e.type||"mdxJsxTextElement"===e.type){(e.data||(e.data={}))._mdxExplicitJsx=!0}}))}}const Gz=["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"],qz=["compilers","filepath","hastPlugins","mdPlugins","skipExport","wrapExport"];let Yz=!1;function Xz(e){const t=e||{};let n=-1;for(;++n<qz.length;){qz[n]}t.format,("classic"===t.jsxRuntime||t.pragma||t.pragmaFrag||t.pragmaImportSource)&&!Yz&&(Yz=!0,console.warn("Unexpected deprecated option `jsxRuntime: 'classic'`, `pragma`, `pragmaFrag`, or `pragmaImportSource`; see <https://mdxjs.com/migrating/v3/> on how to migrate"));const r=f$().use(lV);"md"!==t.format&&r.use(AL);const i=t.remarkRehypeOptions||{};return r.use(Wz).use(t.remarkPlugins||[]).use(XV,{...i,allowDangerousHtml:!0,passThrough:[...i.passThrough||[],...Gz]}).use(t.rehypePlugins||[]),"md"===t.format&&r.use($z),r.use(jz,t).use(F$,t).use(U$,t),t.jsx||r.use(H$,t),r.use(vB,t).use(t.recmaPlugins||[]),r}function Zz(e,t){const{file:n,options:r}=SR(e,t);return Xz(r).process(n)}function Jz(e){const{Fragment:t,baseUrl:n,development:r,jsx:i,jsxDEV:s,jsxs:a,useMDXComponents:o,...l}=e||{};if(!t)throw new Error("Expected `Fragment` given to `evaluate`");if(r){if(!s)throw new Error("Expected `jsxDEV` given to `evaluate`")}else{if(!i)throw new Error("Expected `jsx` given to `evaluate`");if(!a)throw new Error("Expected `jsxs` given to `evaluate`")}return{compiletime:{...l,development:r,outputFormat:"function-body",providerImportSource:o?"#":void 0},runtime:{Fragment:t,baseUrl:n,jsx:i,jsxDEV:s,jsxs:a,useMDXComponents:o}}}const Qz=Object.getPrototypeOf(eH).constructor;async function eH(e,t){return new Qz(String(e))(t)}function tH(e,t){const{compiletime:n,runtime:r}=Jz(t);return function(e,t){return new Function(String(e))(t)}(function(e,t){const{file:n,options:r}=SR(e,t);return Xz(r).processSync(n)}(e,n),r)}function nH(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}const rH=function(e){if(null==e)return sH;if("function"==typeof e)return iH(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rH(e[n]);return iH(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return iH(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"==typeof e)return function(e){return iH(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function iH(e){return function(t,n,r){return Boolean(aH(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function sH(){return!0}function aH(e){return null!==e&&"object"==typeof e&&"type"in e}function oH(e,t,n){const r=rH((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([lH(e[0]),cH(e[1])])}return t}(t);let s=-1;for(;++s<i.length;)TV(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[s][0],a=i[s][1];let o=0;const l=n.children.indexOf(e);let c=!1,h=[];r.lastIndex=0;let u=r.exec(e.value);for(;u;){const n=u.index,i={index:u.index,input:u.input,stack:[...t,e]};let s=a(...u,i);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1===s?r.lastIndex=n+1:(o!==n&&h.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(s)?h.push(...s):s&&h.push(s),o=n+u[0].length,c=!0),!r.global)break;u=r.exec(e.value)}c?(o<e.value.length&&h.push({type:"text",value:e.value.slice(o)}),n.children.splice(l,1,...h)):h=[e];return l+h.length}(e,t)}}function lH(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function cH(e){return"function"==typeof e?e:function(){return e}}const hH="phrasing",uH=["autolink","link","image","label"];function dH(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function pH(e){this.config.enter.autolinkProtocol.call(this,e)}function fH(e){this.config.exit.autolinkProtocol.call(this,e)}function mH(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function gH(e){this.config.exit.autolinkEmail.call(this,e)}function yH(e){this.exit(e)}function vH(e){oH(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bH],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,xH]],{ignore:["link","linkReference"]})}function bH(e,t,n,r,i){let s="";if(!wH(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=nH(e,"(");let s=nH(e,")");for(;-1!==r&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}(n+r);if(!a[0])return!1;const o={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function xH(e,t,n,r){return!(!wH(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function wH(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||hF(n)||cF(n))&&(!t||47!==n)}function CH(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function EH(){this.buffer()}function SH(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=pj(this.sliceSerialize(e)).toLowerCase()}function _H(e){this.exit(e)}function kH(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function PH(){this.buffer()}function OH(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=pj(this.sliceSerialize(e)).toLowerCase()}function TH(e){this.exit(e)}function IH(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const a=n.enter("footnoteReference"),o=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{...i.current(),before:s,after:"]"})),o(),a(),s+=i.move("]"),s}function DH(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const a=n.enter("footnoteDefinition"),o=n.enter("label");return s+=i.move(n.safe(n.associationId(e),{...i.current(),before:s,after:"]"})),o(),s+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),s+=i.move(n.indentLines(n.containerFlow(e,i.current()),AH)),a(),s}function AH(e,t,n){return 0===t?e:(n?"":" ")+e}IH.peek=function(){return"["};const RH=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function NH(e){this.enter({type:"delete",children:[]},e)}function MH(e){this.exit(e)}function FH(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function LH(e){return e.length}function jH(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function VH(e,t,n){return">"+(n?"":" ")+e}function $H(e,t){return BH(e,t.inConstruct,!0)&&!BH(e,t.notInConstruct,!1)}function BH(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function zH(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&$H(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function HH(e,t,n){return(n?"":" ")+e}function KH(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function UH(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),s=n.enter("emphasis"),a=n.createTracker(r);let o=a.move(i);return o+=a.move(n.containerPhrasing(e,{before:o,after:i,...a.current()})),o+=a.move(i),s(),o}FH.peek=function(){return"~"},UH.peek=function(e,t,n){return n.options.emphasis||"*"};const WH={};function GH(e,t){const n=t||WH;return qH(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function qH(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return YH(e.children,t,n)}return Array.isArray(e)?YH(e,t,n):""}function YH(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=qH(e[i],t,n);return r.join("")}function XH(e,t){let n=!1;return function(e,t,n,r){let i,s,a;"function"==typeof t&&"function"!=typeof n?(s=void 0,a=t,i=n):(s=t,a=n,i=r),TV(e,s,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),i)}(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,PV})),Boolean((!e.depth||e.depth<3)&&GH(e)&&(t.options.setext||n))}function ZH(e){return e.value||""}function JH(e,t,n,r){const i=KH(n),s='"'===i?"Quote":"Apostrophe",a=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),c+=l.move(")"),a(),c}function QH(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const c=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();const h=n.stack;n.stack=[],a=n.enter("reference");const u=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=h,s(),"full"!==i&&c&&c===u?"shortcut"===i?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(u+"]"),l}function eK(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const e=n.unsafe[s],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function tK(e,t){const n=GH(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function nK(e,t,n,r){const i=KH(n),s='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let o,l;if(tK(e,n)){const t=n.stack;n.stack=[],o=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),o(),n.stack=t,r}o=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${s}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),o(),c}function rK(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();const h=n.stack;n.stack=[],a=n.enter("reference");const u=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=h,s(),"full"!==i&&c&&c===u?"shortcut"===i?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(u+"]"),l}function iK(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function sK(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}ZH.peek=function(){return"<"},JH.peek=function(){return"!"},QH.peek=function(){return"!"},eK.peek=function(){return"`"},nK.peek=function(e,t,n){return tK(e,n)?"<":"["},rK.peek=function(){return"["};const aK=function(e){if(null==e)return lK;if("function"==typeof e)return oK(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=aK(e[n]);return oK(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return oK(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"==typeof e)return function(e){return oK(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function oK(e){return function(t,n,r){return Boolean(cK(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function lK(){return!0}function cK(e){return null!==e&&"object"==typeof e&&"type"in e}const hK=aK(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function uK(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),s=n.enter("strong"),a=n.createTracker(r);let o=a.move(i+i);return o+=a.move(n.containerPhrasing(e,{before:o,after:i,...a.current()})),o+=a.move(i+i),s(),o}uK.peek=function(e,t,n){return n.options.strong||"*"};const dK={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const a=n.indentLines(n.containerFlow(e,s.current()),VH);return i(),a},break:zH,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),s=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(s,HH);return e(),t}const o=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++s>a&&(a=s):s=1,i=r+t.length,r=n.indexOf(t,i);return a}(s,i)+1,3)),c=n.enter("codeFenced");let h=o.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);h+=o.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);h+=o.move(" "),h+=o.move(n.safe(e.meta,{before:h,after:"\n",encode:["`"],...o.current()})),t()}return h+=o.move("\n"),s&&(h+=o.move(s+"\n")),h+=o.move(l),c(),h},definition:function(e,t,n,r){const i=KH(n),s='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),a(),c},emphasis:UH,hardBreak:zH,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(XH(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");s.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),o(),c},html:ZH,image:JH,imageReference:QH,inlineCode:eK,link:nK,linkReference:rK,list:function(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):iK(n);const o=e.ordered?"."===a?")":".":function(e){const t=iK(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),sK(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=o),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=s,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let s=n.bulletCurrent||iK(n);t&&"list"===t.type&&t.ordered&&(s=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+s);let a=s.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const o=n.createTracker(r);o.move(s+" ".repeat(a-s.length)),o.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?s:s+" ".repeat(a-s.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),a=n.containerPhrasing(e,r);return s(),i(),a},root:function(e,t,n,r){return(e.children.some((function(e){return hK(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:uK,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(sK(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function pK(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function fK(e){this.exit(e),this.data.inTable=void 0}function mK(e){this.enter({type:"tableRow",children:[]},e)}function gK(e){this.exit(e)}function yK(e){this.enter({type:"tableCell",children:[]},e)}function vK(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bK));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bK(e,t){return"|"===t?t:e}function xK(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=dK.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return o(function(e,t,n){const r=e.children;let i=-1;const s=[],a=t.enter("table");for(;++i<r.length;)s[i]=l(r[i],t,n);return a(),s}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const i=l(e,n,r),s=o([i]);return s.slice(0,s.indexOf("\n"))}}};function a(e,t,n,r){const i=n.enter("tableCell"),a=n.enter("phrasing"),o=n.containerPhrasing(e,{...r,before:s,after:s});return a(),i(),o}function o(e,t){return function(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||LH,i=[],s=[],a=[],o=[];let l=0,c=-1;for(;++c<e.length;){const n=[],i=[];let u=-1;for(e[c].length>l&&(l=e[c].length);++u<e[c].length;){const s=null==(h=e[c][u])?"":String(h);if(!1!==t.alignDelimiters){const e=r(s);i[u]=e,(void 0===o[u]||e>o[u])&&(o[u]=e)}n.push(s)}s[c]=n,a[c]=i}var h;let u=-1;if("object"==typeof n&&"length"in n)for(;++u<l;)i[u]=jH(n[u]);else{const e=jH(n);for(;++u<l;)i[u]=e}u=-1;const d=[],p=[];for(;++u<l;){const e=i[u];let n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let s=!1===t.alignDelimiters?1:Math.max(1,o[u]-n.length-r.length);const a=n+"-".repeat(s)+r;!1!==t.alignDelimiters&&(s=n.length+s+r.length,s>o[u]&&(o[u]=s),p[u]=s),d[u]=a}s.splice(1,0,d),a.splice(1,0,p),c=-1;const f=[];for(;++c<s.length;){const e=s[c],n=a[c];u=-1;const r=[];for(;++u<l;){const s=e[u]||"";let a="",c="";if(!1!==t.alignDelimiters){const e=o[u]-(n[u]||0),t=i[u];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),c=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),c=a):c=" ".repeat(e)}!1===t.delimiterStart||u||r.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===s||!1===t.delimiterStart&&!u||r.push(" "),!1!==t.alignDelimiters&&r.push(a),r.push(s),!1!==t.alignDelimiters&&r.push(c),!1!==t.padding&&r.push(" "),!1===t.delimiterEnd&&u===l-1||r.push("|")}f.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const s=[],o=t.enter("tableRow");for(;++i<r.length;)s[i]=a(r[i],0,t,n);return o(),s}}function wK(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function CK(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,s=-1;for(;++s<r.length;){const e=r[s];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function EK(e,t,n,r){const i=e.children[0],s="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(a);let l=dK.listItem(e,t,n,{...r,...o.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const SK={tokenize:function(e,t,n){let r=0;return function t(s){if((87===s||119===s)&&r<3)return r++,e.consume(s),t;if(46===s&&3===r)return e.consume(s),i;return n(s)};function i(e){return null===e?n(e):t(e)}},partial:!0},_K={tokenize:function(e,t,n){let r,i,s;return a;function a(t){return 46===t||95===t?e.check(PK,l,o)(t):null===t||oF(t)||hF(t)||45!==t&&cF(t)?l(t):(s=!0,e.consume(t),a)}function o(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!s?n(e):t(e)}},partial:!0},kK={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?s(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(PK,t,s)(a):null===a||oF(a)||hF(a)?t(a):(e.consume(a),i)}function s(t){return 41===t&&r++,e.consume(t),i}},partial:!0},PK={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),s):93===a?(e.consume(a),i):60===a||null===a||oF(a)||hF(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||oF(e)||hF(e)?t(e):r(e)}function s(e){return QM(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):QM(t)?(e.consume(t),a):n(t)}},partial:!0},OK={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return eF(e)?n(e):t(e)}},partial:!0},TK={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!NK.call(r,r.previous)||jK(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(SK,e.attempt(_K,e.attempt(kK,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:NK},IK={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",s=!1;return function(t){if((72===t||104===t)&&MK.call(r,r.previous)&&!jK(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(QM(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),s?l:(s=!0,o)):n(t)}function l(t){return null===t||nF(t)||oF(t)||hF(t)||cF(t)?n(t):e.attempt(_K,e.attempt(kK,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:MK},DK={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,s;return function(t){if(!LK(t)||!FK.call(r,r.previous)||jK(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return LK(t)?(e.consume(t),a):64===t?(e.consume(t),o):n(t)}function o(t){return 46===t?e.check(OK,c,l)(t):45===t||95===t||eF(t)?(s=!0,e.consume(t),o):c(t)}function l(t){return e.consume(t),i=!0,o}function c(a){return s&&i&&QM(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:FK},AK={};let RK=48;for(;RK<123;)AK[RK]=DK,RK++,58===RK?RK=65:91===RK&&(RK=97);function NK(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||oF(e)}function MK(e){return!QM(e)}function FK(e){return!(47===e||LK(e))}function LK(e){return 43===e||45===e||46===e||95===e||eF(e)}function jK(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}AK[43]=DK,AK[45]=DK,AK[46]=DK,AK[95]=DK,AK[72]=[DK,IK],AK[104]=[DK,IK],AK[87]=[DK,TK],AK[119]=[DK,TK];const VK={tokenize:function(e,t,n){const r=this;return AF(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function $K(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return n(i);const o=pj(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==o.codePointAt(0)||!s.includes(o.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function BK(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",s,t],["exit",s,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function zK(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(o){if(a>999||93===o&&!s||null===o||91===o||oF(o))return n(o);if(93===o){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");return i.includes(pj(r.sliceSerialize(s)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return oF(o)||(s=!0),a++,e.consume(o),92===o?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function HK(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a,o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(o>999||93===t&&!a||null===t||91===t||oF(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return s=pj(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),u}return oF(t)||(a=!0),o++,e.consume(t),92===t?h:c}function h(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function u(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(s)||i.push(s),AF(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function KK(e,t,n){return e.check(uL,t,e.attempt(VK,t,n))}function UK(e){e.exit("gfmFootnoteDefinition")}function WK(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,s=this.events;let a=0;return function(t){if(126===i&&"characterEscape"!==s[s.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),o(t)};function o(s){const l=Mj(i);if(126===s)return a>1?r(s):(e.consume(s),a++,o);if(a<2&&!t)return r(s);const c=e.exit("strikethroughSequenceTemporary"),h=Mj(s);return c._open=!h||2===h&&Boolean(l),c._close=!l||2===l&&Boolean(h),n(s)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},s={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",s,t]],o=t.parser.constructs.insideSpan.null;o&&_L(a,a.length,0,nj(o,e.slice(r+1,n),t)),_L(a,a.length,0,[["exit",s,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),_L(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class GK{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0===n&&0===r.length)return;for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function qK(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function YK(e,t,n){const r=this;let i,s=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,s="tableHead"===i||"tableRow"===i?x:o;if(s===x&&r.parser.lazy[r.now().line])return n(e);return s(e)};function o(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):aF(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):n(t):lF(t)?AF(e,l,"whitespace")(t):(a+=1,i&&(i=!1,s+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||oF(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?h:c)}function h(t){return 92===t||124===t?(e.consume(t),c):c(t)}function u(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,lF(t)?AF(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?f(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return lF(t)?AF(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||aF(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return lF(t)?AF(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?d(n):(null===n||aF(n))&&i&&s===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function x(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||aF(n)?(e.exit("tableRow"),t(n)):lF(n)?AF(e,w,"whitespace")(n):(e.enter("data"),C(n))}function C(t){return null===t||124===t||oF(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?E:C)}function E(t){return 92===t||124===t?(e.consume(t),C):C(t)}}function XK(e,t){let n,r,i,s=-1,a=!0,o=0,l=[0,0,0,0],c=[0,0,0,0],h=!1,u=0;const d=new GK;for(;++s<e.length;){const p=e[s],f=p[1];"enter"===p[0]?"tableHead"===f.type?(h=!1,0!==u&&(JK(d,t,u,n,r),r=void 0,u=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(s,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,i=void 0,l=[0,0,0,0],c=[0,s+1,0,0],h&&(h=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(s,0,[["enter",r,t]])),o="tableDelimiterRow"===f.type?2:r?3:1):!o||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],i=ZK(d,t,l,o,void 0,i)),l=c,c=[l[1],s,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=ZK(d,t,l,o,void 0,i),l=[0,0,0,0]),c[2]=s)):"tableHead"===f.type?(h=!0,u=s):"tableRow"===f.type||"tableDelimiterRow"===f.type?(u=s,0!==l[1]?(c[0]=c[1],i=ZK(d,t,l,o,s,i)):0!==c[1]&&(i=ZK(d,t,c,o,s,i)),o=0):!o||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=s)}for(0!==u&&JK(d,t,u,n,r),d.consume(t.events),s=-1;++s<t.events.length;){const e=t.events[s];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=qK(t.events,s))}return e}function ZK(e,t,n,r,i,s){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(s.end=Object.assign({},QK(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const o=QK(t.events,n[1]);if(s={type:a,start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",s,t]]),0!==n[2]){const i=QK(t.events,n[2]),s=QK(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},s)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(s.end=Object.assign({},QK(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function JK(e,t,n,r,i){const s=[],a=QK(t.events,n);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),r.end=Object.assign({},a),s.push(["exit",r,t]),e.add(n+1,0,s)}function QK(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const eU={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return oF(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return aF(r)?t(r):lF(r)?e.check({tokenize:tU},t,n)(r):n(r)}}};function tU(e,t,n){return AF(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const nU={};function rU(e){const t=e||nU,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return OL([{text:AK},{document:{91:{name:"gfmFootnoteDefinition",tokenize:HK,continuation:{tokenize:KK},exit:UK}},text:{91:{name:"gfmFootnoteCall",tokenize:zK},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$K,resolveTo:BK}}},WK(e),{flow:{null:{name:"table",tokenize:YK,resolveAll:XK}}},{text:{91:eU}}])}(t)),i.push([{transforms:[vH],enter:{literalAutolink:dH,literalAutolinkEmail:pH,literalAutolinkHttp:pH,literalAutolinkWww:pH},exit:{literalAutolink:yH,literalAutolinkEmail:gH,literalAutolinkHttp:fH,literalAutolinkWww:mH}},{enter:{gfmFootnoteDefinition:CH,gfmFootnoteDefinitionLabelString:EH,gfmFootnoteCall:kH,gfmFootnoteCallString:PH},exit:{gfmFootnoteDefinition:_H,gfmFootnoteDefinitionLabelString:SH,gfmFootnoteCall:TH,gfmFootnoteCallString:OH}},{canContainEols:["delete"],enter:{strikethrough:NH},exit:{strikethrough:MH}},{enter:{table:pK,tableData:yK,tableHeader:yK,tableRow:mK},exit:{codeText:vK,table:fK,tableData:gK,tableHeader:gK,tableRow:gK}},{exit:{taskListCheckValueChecked:wK,taskListCheckValueUnchecked:wK,paragraph:CK}}]),s.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:hH,notInConstruct:uH},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:hH,notInConstruct:uH},{character:":",before:"[ps]",after:"\\/",inConstruct:hH,notInConstruct:uH}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:DH,footnoteReference:IH}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:RH}],handlers:{delete:FH}},xK(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:EK}}]}}(t))}var iU=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))};const sU=class extends c{constructor(){super(...arguments),this.getOptions=()=>({evaluateOptions:{remarkPlugins:[rU],format:this.getProp("format")},compileOptions:{format:this.getProp("format")},runOptions:{}}),this.compile=e=>iU(this,void 0,void 0,(function*(){return yield Zz(e,this.getOptions().compileOptions)})),this.evaluate=e=>iU(this,void 0,void 0,(function*(){return(yield async function(e,t){const{compiletime:n,runtime:r}=Jz(t);return eH(await Zz(e,n),r)}(e,Object.assign(Object.assign(Object.assign({},this.getOptions().runOptions),this.getOptions().evaluateOptions),this._adapter.getRuntime()))).default})),this.evaluateSync=e=>tH(e,Object.assign(Object.assign(Object.assign({},this.getOptions().runOptions),this.getOptions().evaluateOptions),this._adapter.getRuntime())).default}};__webpack_require__("jJk2");var aU=__webpack_require__("jg1C"),oU=__webpack_require__.t(aU,2);const lU={PREFIX:`${E}-markdownRender`},cU=e=>h.createElement(Nn.Title,Object.assign({heading:1,className:`${lU.PREFIX}-component-header`},e)),hU=e=>h.createElement(Nn.Title,Object.assign({heading:2,className:`${lU.PREFIX}-component-header`},e)),uU=e=>h.createElement(Nn.Title,Object.assign({heading:3,className:`${lU.PREFIX}-component-header`},e)),dU=e=>h.createElement(Nn.Title,Object.assign({heading:4,className:`${lU.PREFIX}-component-header`},e)),pU=e=>h.createElement(Nn.Title,Object.assign({heading:5,className:`${lU.PREFIX}-component-header`},e)),fU=e=>h.createElement(Nn.Title,Object.assign({heading:6,className:`${lU.PREFIX}-component-header`},e)),mU=e=>h.createElement(Nn.Text,Object.assign({link:Object.assign({},e)},e)),gU=e=>h.createElement("div",{className:`${lU.PREFIX}-component-image`},h.createElement(fA,Object.assign({fallback:h.createElement(VD,null),width:"100%"},ae()(e,"children"))),h.createElement("div",{className:`${lU.PREFIX}-component-image-alt`},e.alt)),yU=e=>{const{children:t}=e,n=e=>Array.isArray(e)?e:[e],r=n(a()(t[0],"props.children.props.children")),i=n(a()(t[1],"props.children")),s=r.map((e=>{var t;return(null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.children)||""})),o=[];for(let e=0;e<i.length;e++){let t={key:String(e)};i[e].props.children.forEach(((e,n)=>{var r,i;t[s[n]]=null!==(i=null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&void 0!==i?i:""})),o.push(t)}return h.createElement(wP,Object.assign({dataSource:o,columns:s.map((e=>({title:e,dataIndex:e})))},ae()(e,"children")))},vU=e=>h.createElement(Nn.Paragraph,Object.assign({className:`${lU.PREFIX}-component-p`},e));var bU=__webpack_require__("Hz96"),xU=__webpack_require__.n(bU),wU=__webpack_require__("n5u1"),CU=__webpack_require__.n(wU);__webpack_require__("uvM7");CU().manual=!0;const EU=class extends c{constructor(e){super(Object.assign({},e)),this.highlightCode=(e,t)=>{let n=e.className;const r=`language-${t}`;n.includes(r)||(n=x()(n,r)),this.getProp("lineNumber")&&(n=x()(n,"line-numbers")),e.className=n,CU().highlightElement(e,!1)}}};__webpack_require__("wO3+");const SU={PREFIX:`${E}-codeHighlight`};class _U extends f{constructor(e){super(e),this.codeRef=h.createRef(),this.foundation=new EU(this.adapter),this.state={}}get adapter(){return Object.assign({},super.adapter)}componentDidMount(){super.componentDidMount(),this.codeRef.current&&this.foundation.highlightCode(this.codeRef.current,this.props.language)}componentDidUpdate(e,t,n){(this.codeRef.current&&e.code!==this.props.code||this.props.language!=this.props.language)&&this.foundation.highlightCode(this.codeRef.current,this.props.language)}render(){return h.createElement("div",Object.assign({style:this.props.style,className:x()(this.props.className,SU.PREFIX,"semi-light-scrollbar",{[`${SU.PREFIX}-defaultTheme`]:this.props.defaultTheme})},this.getDataAttr(this.props)),h.createElement("pre",null,h.createElement("code",{ref:this.codeRef},this.props.code)))}}_U.__SemiComponentName__="CodeHighlight",_U.propTypes={className:C().string,style:C().any,code:C().string,language:C().string,lineNumber:C().bool,defaultTheme:C().bool},_U.defaultProps=Xe(_U.__SemiComponentName__,{lineNumber:!0,defaultTheme:!0});const kU=_U,PU=e=>{var t;const n=xU()(null===(t=e.className)||void 0===t?void 0:t.split("-"),-1);return n?h.createElement(kU,{code:e.children,language:n,lineNumber:!0}):h.createElement("span",{className:`${lU.PREFIX}-simple-code`},e.children)};class OU extends f{constructor(e){super(e),this.foundation=new sU(this.adapter),this.state={MDXContentComponent:this.foundation.evaluateSync(this.props.raw)}}componentDidUpdate(e,t,n){e.raw!==this.props.raw&&this.setState({MDXContentComponent:this.foundation.evaluateSync(this.props.raw)})}get adapter(){return Object.assign(Object.assign({},super.adapter),{getRuntime:()=>oU})}render(){const e=this.state.MDXContentComponent;return h.createElement("div",Object.assign({className:x()(lU.PREFIX,this.props.className),style:this.props.style},this.getDataAttr()),h.createElement(e,{components:Object.assign(Object.assign({},n),this.props.components)}))}}OU.propTypes={className:C().string,style:C().object,format:C().string,components:C().any,raw:C().string},OU.__SemiComponentName__="MarkdownRender",OU.defaultProps=Xe(OU.__SemiComponentName__,{format:"mdx"}),OU.defaultComponents=n;const TU=OU;var IU=__webpack_require__("Nh1y"),DU=__webpack_require__.n(IU);class AU extends c{constructor(e){super(Object.assign(Object.assign({},AU.defaultAdapter),e)),this.animation=null,this.handleParamsUpdate=()=>{var e;this.animation.destroy(),this.animation=DU().loadAnimation(this._adapter.getLoadParams()),null===(e=this.getProp("getAnimationInstance"))||void 0===e||e(this.animation)}}init(e){var t,n;super.init(e),this.animation=DU().loadAnimation(this._adapter.getLoadParams()),null===(t=this.getProp("getAnimationInstance"))||void 0===t||t(this.animation),null===(n=this.getProp("getLottie"))||void 0===n||n(AU.getLottie())}destroy(){super.destroy(),this.animation.destroy()}}AU.getLottie=()=>DU();const RU=AU,NU={PREFIX:`${E}-lottie`};class MU extends f{constructor(e){super(e),this.container=h.createRef(),this.foundation=new RU(this.adapter)}get adapter(){const e=()=>{var e;return null!==(e=this.props.params.container)&&void 0!==e?e:this.container.current};return Object.assign(Object.assign({},super.adapter),{getContainer:e,getLoadParams:()=>Object.assign({container:e(),renderer:"svg",loop:!0,autoplay:!0},this.props.params)})}componentDidMount(){var e,t;super.componentDidMount(),null===(t=(e=this.props).getAnimationInstance)||void 0===t||t.call(e,this.foundation.animation)}componentDidUpdate(e,t,n){he()(e.params,this.props.params)||this.foundation.handleParamsUpdate()}get wrapperStyle(){return Object.assign({width:this.props.width,height:this.props.height},this.props.style)}get wrapperClassName(){return x()(NU.PREFIX,this.props.className)}render(){return this.props.params.container?null:h.createElement("div",Object.assign({ref:this.container,style:this.wrapperStyle,className:this.wrapperClassName},this.getDataAttr(this.props)))}}MU.__SemiComponentName__="Lottie",MU.getLottie=RU.getLottie,MU.defaultProps=Xe(MU.__SemiComponentName__),MU.propTypes={className:C().string,style:C().object,width:C().string,height:C().string,params:C().object,getAnimationInstance:C().func};const FU=MU;const LU=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.364 5.636C17.1924 4.46443 15.2929 4.46443 14.1214 5.636L12 7.75732C11.6095 8.14785 10.9763 8.14785 10.5858 7.75732C10.1953 7.3668 10.1953 6.73363 10.5858 6.34311L12.7071 4.22179C14.6598 2.26917 17.8256 2.26917 19.7782 4.22179C21.7308 6.17441 21.7308 9.34024 19.7782 11.2929L17.6569 13.4142C17.2664 13.8047 16.6332 13.8047 16.2427 13.4142C15.8522 13.0237 15.8522 12.3905 16.2427 12L18.364 9.87864C19.5356 8.70707 19.5356 6.80758 18.364 5.636ZM5.636 18.3638C6.80758 19.5353 8.70707 19.5353 9.87864 18.3638L12 16.2424C12.3905 15.8519 13.0237 15.8519 13.4142 16.2424C13.8047 16.633 13.8047 17.2661 13.4142 17.6567L11.2929 19.778C9.34024 21.7306 6.17441 21.7306 4.22179 19.778C2.26917 17.8254 2.26917 14.6595 4.22179 12.7069L6.34311 10.5856C6.73364 10.1951 7.3668 10.1951 7.75732 10.5856C8.14785 10.9761 8.14785 11.6093 7.75732 11.9998L5.636 14.1211C4.46443 15.2927 4.46443 17.1922 5.636 18.3638ZM15.5357 9.87838C15.9262 9.48785 15.9262 8.85469 15.5357 8.46416C15.1452 8.07364 14.512 8.07364 14.1215 8.46416L8.46465 14.121C8.07413 14.5115 8.07413 15.1447 8.46465 15.5352C8.85518 15.9258 9.48834 15.9258 9.87887 15.5352L15.5357 9.87838Z",fill:"currentColor"}))}),"chain_stroked");const jU=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 5V4H14V5H10ZM8 5V3C8 2.44772 8.44772 2 9 2H15C15.5523 2 16 2.44772 16 3V5H19H20C20.5523 5 21 5.44772 21 6C21 6.55228 20.5523 7 20 7H19V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V7H4C3.44772 7 3 6.55228 3 6C3 5.44772 3.44772 5 4 5H5H8ZM15 7H9H7V20H17V7H15ZM9 9.5C9 9.22386 9.22386 9 9.5 9H10.5C10.7761 9 11 9.22386 11 9.5V16.5C11 16.7761 10.7761 17 10.5 17H9.5C9.22386 17 9 16.7761 9 16.5V9.5ZM13 9.5C13 9.22386 13.2239 9 13.5 9H14.5C14.7761 9 15 9.22386 15 9.5V16.5C15 16.7761 14.7761 17 14.5 17H13.5C13.2239 17 13 16.7761 13 16.5V9.5Z",fill:"currentColor"}))}),"delete_stroked");const VU=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C11.1716 23 10.5 22.3284 10.5 21.5L10.5 6.12132L4.06066 12.5607C3.47487 13.1464 2.52513 13.1464 1.93934 12.5607C1.35355 11.9749 1.35355 11.0251 1.93934 10.4393L10.9393 1.43934C11.5251 0.853554 12.4749 0.853554 13.0607 1.43934L22.0607 10.4393C22.6464 11.0251 22.6464 11.9749 22.0607 12.5607C21.4749 13.1464 20.5251 13.1464 19.9393 12.5607L13.5 6.12132L13.5 21.5C13.5 22.3284 12.8284 23 12 23Z",fill:"currentColor"}))}),"arrow_up"),$U={PREFIX:`${E}-chat`,PREFIX_DIVIDER:`${E}-chat-divider`,PREFIX_CHAT_BOX:`${E}-chat-chatBox`,PREFIX_CHAT_BOX_ACTION:`${E}-chat-chatBox-action`,PREFIX_INPUT_BOX:`${E}-chat-inputBox`,PREFIX_ATTACHMENT:`${E}-chat-attachment`,PREFIX_HINT:`${E}-chat-hint`},BU={ROLE:{USER:"user",ASSISTANT:"assistant",SYSTEM:"system",DIVIDER:"divider"},CHAT_ALIGN:{LEFT_RIGHT:"leftRight",LEFT_ALIGN:"leftAlign"},MESSAGE_STATUS:{LOADING:"loading",INCOMPLETE:"incomplete",COMPLETE:"complete",ERROR:"error"},PIC_SUFFIX_ARRAY:["png","jpg","jpeg","gif","bmp","webp"],PIC_PREFIX:"image/",SCROLL_ANIMATION_TIME:300,SHOW_SCROLL_GAP:100,MODE:{BUBBLE:"bubble",NO_BUBBLE:"noBubble",USER_BUBBLE:"userBubble"},SEND_HOT_KEY:{ENTER:"enter",SHIFT_PLUS_ENTER:"shift+enter"}},{SEND_HOT_KEY:zU}=BU;class HU extends c{constructor(e){super(Object.assign({},e)),this.onInputAreaChange=e=>{const t=this.getState("attachment");this._adapter.setInputValue(e),this._adapter.notifyInputChange({inputValue:e,attachment:t})},this.onAttachmentAdd=e=>{const{fileList:t}=e,{uploadProps:n}=this.getProps(),{onChange:r}=n;r&&r(e);const{content:i}=this.getStates();let s=[...t];this._adapter.setAttachment(s),this._adapter.notifyInputChange({inputValue:i,attachment:s})},this.onAttachmentDelete=e=>{const{content:t,attachment:n}=this.getStates(),r=n.filter((t=>t.uid!==e.uid));this._adapter.setAttachment(r),this._adapter.notifyInputChange({inputValue:t,attachment:r})},this.onSend=e=>{if(this.getDisableSend())return;const{content:t,attachment:n}=this.getStates();this._adapter.setInputValue(""),this._adapter.setAttachment([]),this._adapter.notifySend(t,n)},this.getDisableSend=()=>{const{content:e,attachment:t}=this.getStates(),{disableSend:n}=this.getProps();return n||0===e.length&&0===t.length},this.onEnterPress=e=>{const{sendHotKey:t}=this.getProps();t===zU.SHIFT_PLUS_ENTER&&!1===e.shiftKey||t===zU.ENTER&&!0===e.shiftKey||(Ce(e),this.onSend(e))},this.onPaste=e=>{var t;const n=null===(t=e.clipboardData)||void 0===t?void 0:t.items,{manualUpload:r}=this.getProps();let i=[];if(n){for(const e of n){e.getAsFile()&&i.push(e.getAsFile())}i.length&&(r(i),e.preventDefault(),e.stopPropagation())}}}}const KU=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 1C3.89543 1 3 1.89543 3 3V21C3 22.1046 3.89543 23 5 23H19C20.1046 23 21 22.1046 21 21V8.41421C21 7.88378 20.7893 7.37507 20.4142 7L15 1.58579C14.6249 1.21071 14.1162 1 13.5858 1H5ZM13 3L5 3V21H19V9H14C13.4477 9 13 8.55228 13 8V3ZM17.5858 7L15 4.41421V7H17.5858ZM11.5 12C11.2239 12 11 12.2239 11 12.5V13.5C11 13.7761 11.2239 14 11.5 14H16.5C16.7761 14 17 13.7761 17 13.5V12.5C17 12.2239 16.7761 12 16.5 12H11.5ZM7 12.5C7 12.2239 7.22386 12 7.5 12H8.5C8.77614 12 9 12.2239 9 12.5V13.5C9 13.7761 8.77614 14 8.5 14H7.5C7.22386 14 7 13.7761 7 13.5V12.5ZM11.5 16C11.2239 16 11 16.2239 11 16.5V17.5C11 17.7761 11.2239 18 11.5 18H16.5C16.7761 18 17 17.7761 17 17.5V16.5C17 16.2239 16.7761 16 16.5 16H11.5ZM7 16.5C7 16.2239 7.22386 16 7.5 16H8.5C8.77614 16 9 16.2239 9 16.5V17.5C9 17.7761 8.77614 18 8.5 18H7.5C7.22386 18 7 17.7761 7 17.5V16.5Z",fill:"currentColor"}))}),"brief_stroked"),{PREFIX_ATTACHMENT:UU}=$U,{PIC_SUFFIX_ARRAY:WU,PIC_PREFIX:GU}=BU,qU=u().memo((e=>{const{url:t,name:n,size:r,type:i}=e;return u().createElement("a",{href:t,target:"_blank",className:`${UU}-file`,rel:"noreferrer"},u().createElement(KU,{size:"extra-large",className:`${UU}-file-icon`}),u().createElement("div",{className:`${UU}-file-info`},u().createElement("span",{className:`${UU}-file-title`},n),u().createElement("span",{className:`${UU}-file-metadata`},u().createElement("span",{className:`${UU}-file-type`},i),i?" · ":"",r)))})),YU=u().memo((e=>{const{src:t}=e;return u().createElement(fA,{className:`${UU}-img`,width:60,height:60,src:t})})),XU=u().memo((e=>{const{attachment:t,onClear:n,showClear:r=!0,className:i}=e;return u().createElement("div",{className:x()(UU,{[i]:i})},t.map((e=>{var t,i,s,a;const{percent:o,status:l}=e,c=null==e?void 0:e.name.split(".").pop(),h=(null===(i=null===(t=null==e?void 0:e.fileInstance)||void 0===t?void 0:t.type)||void 0===i?void 0:i.startsWith(GU))||WU.includes(c),d=null!=c?c:null===(a=null===(s=null==e?void 0:e.fileInstance)||void 0===s?void 0:s.type)||void 0===a?void 0:a.split("/").pop(),p=!(100===o||void 0===o)&&"uploading"===l;return u().createElement("div",{className:`${UU}-item`,key:e.uid},h?u().createElement(YU,{src:e.url}):u().createElement(qU,{url:e.url,name:e.name,size:e.size,type:d}),r&&u().createElement(ar,{size:"large",className:`${UU}-clear`,onClick:()=>{n&&n(e)}}),p&&u().createElement(VE,{percent:o,type:"circle",size:"small",width:30,className:`${UU}-process`,"aria-label":"upload progress"}))})))})),ZU=XU;var JU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const{PREFIX_INPUT_BOX:QU}=$U,{SEND_HOT_KEY:eW}=BU,tW={minRows:1,maxRows:5};class nW extends f{constructor(e){super(e),this.onClick=()=>{var e;null===(e=this.inputAreaRef.current)||void 0===e||e.focus()},this.renderUploadButton=()=>{const{uploadProps:e,uploadRef:t,uploadTipProps:n}=this.props,{attachment:r}=this.state,{className:i,onChange:s,renderFileItem:a,children:o}=e,l=JU(e,["className","onChange","renderFileItem","children"]),c=Object.assign(Object.assign({},l),{className:x()(`${QU}-upload`,{[i]:i}),onChange:this.foundation.onAttachmentAdd}),h=u().createElement(UT,Object.assign({ref:t,fileList:r},c),o||u().createElement(Ji,{className:`${QU}-uploadButton`,icon:u().createElement(LU,{size:"extra-large"}),theme:"borderless"}));return n?u().createElement(ft,Object.assign({},n),u().createElement("span",null,h)):h},this.renderInputArea=()=>{const{content:e,attachment:t}=this.state,{placeholder:n,sendHotKey:r}=this.props;return u().createElement("div",{className:`${QU}-inputArea`},u().createElement(ww,{placeholder:n,onEnterPress:this.foundation.onEnterPress,value:e,onChange:this.foundation.onInputAreaChange,ref:this.inputAreaRef,className:`${QU}-textarea`,autosize:tW,disabledEnterStartNewLine:r===eW.ENTER,onPaste:this.foundation.onPaste}),u().createElement(ZU,{attachment:t,onClear:this.foundation.onAttachmentDelete}))},this.renderClearButton=()=>{const{onClearContext:e}=this.props;return u().createElement(Ji,{className:`${QU}-clearButton`,theme:"borderless",icon:u().createElement(jU,null),onClick:e})},this.renderSendButton=()=>{const e=this.foundation.getDisableSend();return u().createElement(Ji,{disabled:e,theme:"solid",type:"primary",className:`${QU}-sendButton`,icon:u().createElement(VU,{size:"large",className:`${QU}-sendButton-icon`}),onClick:this.foundation.onSend})},this.inputAreaRef=u().createRef(),this.foundation=new HU(this.adapter),this.state={content:"",attachment:[]}}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyInputChange:e=>{const{onInputChange:t}=this.props;t&&t(e)},setInputValue:e=>{this.setState({content:e})},setAttachment:e=>{this.setState({attachment:e})},notifySend:(e,t)=>{const{onSend:n}=this.props;n&&n(e,t)}})}render(){const{onClearContext:e,renderInputArea:t,onSend:n,style:r,className:i,showClearContext:s}=this.props,a=u().createElement("div",{className:x()(QU,{[i]:i}),style:r},u().createElement("div",{className:`${QU}-inner`,onClick:this.onClick},s&&this.renderClearButton(),u().createElement("div",{className:`${QU}-container`},this.renderUploadButton(),this.renderInputArea(),this.renderSendButton())));return t?t({defaultNode:a,onClear:e,onSend:n}):a}}nW.propTypes={uploadProps:C().object},nW.defaultProps={uploadProps:{}};const rW=nW;__webpack_require__("+onK");const{PREFIX_HINT:iW}=$U,sW=u().memo((e=>{const{value:t,onHintClick:n,renderHintBox:r,className:i,style:s}=e;return u().createElement("section",{className:x()(`${iW}s`,{[i]:!!i}),style:s},t.map(((e,t)=>r?r({content:e,index:t,onHintClick:()=>{null==n||n(e)}}):u().createElement("div",{className:`${iW}-item`,key:t,onClick:()=>{null==n||n(e)}},u().createElement("div",{className:`${iW}-content`},e),u().createElement(BD,{className:`${iW}-icon`})))))})),aW=sW;const oW=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}),"disc"),{PREFIX_CHAT_BOX:lW}=$U,cW=u().memo((e=>{const{role:t,customRenderFunc:n,continueSend:r}=e,i=(0,h.useMemo)((()=>{const{avatar:e,color:n}=t;return u().createElement(jr,{className:x()(`${lW}-avatar`,{[`${lW}-avatar-hidden`]:r}),src:e,size:"extra-small"})}),[t]);return n&&"function"==typeof n?n({role:t,defaultAvatar:i}):i})),hW=cW,{PREFIX_CHAT_BOX:uW}=$U,dW=u().memo((e=>{const{role:t,message:n,customRenderFunc:r}=e,i=(0,h.useMemo)((()=>u().createElement("span",{className:`${uW}-title`},null==t?void 0:t.name)),[t]);return r&&"function"==typeof r?r({role:t,message:n,defaultTitle:i}):i}));const pW=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 16C22 17.1046 21.1046 18 20 18V4H6C6 2.89543 6.89543 2 8 2H20C21.1046 2 22 2.89543 22 4V16ZM2 8C2 6.89543 2.89543 6 4 6H16C17.1046 6 18 6.89543 18 8V20C18 21.1046 17.1046 22 16 22H4C2.89543 22 2 21.1046 2 20V8ZM4 8H16V20H4V8ZM6 14C6 13.4477 6.44772 13 7 13H9V11C9 10.4477 9.44771 10 10 10C10.5523 10 11 10.4477 11 11V13H13C13.5523 13 14 13.4477 14 14C14 14.5523 13.5523 15 13 15H11V17C11 17.5523 10.5523 18 10 18C9.44772 18 9 17.5523 9 17V15H7C6.44772 15 6 14.5523 6 14Z",fill:"currentColor"}))}),"copy_stroked");__webpack_require__("pjuZ"),__webpack_require__("Vwau");const{PREFIX_CHAT_BOX:fW}=$U,mW=e=>{const[t,n]=(0,h.useState)(!1),r=(0,h.useMemo)((()=>{var t;return xU()(null===(t=e.className)||void 0===t?void 0:t.split("-"),-1)}),[e.className]),i=(0,h.useCallback)((()=>{gt()(e.children),n(!0),setTimeout((()=>{n(!1)}),2e3)}),[e.children]);return r?u().createElement("div",{className:`${fW}-content-code semi-always-dark`},u().createElement("div",{className:`${fW}-content-code-topSlot`},u().createElement("span",{className:`${fW}-content-code-topSlot-type`},r),u().createElement("span",{className:`${fW}-content-code-topSlot-copy`},t?u().createElement("span",{className:`${fW}-content-code-topSlot-copy-wrapper`},u().createElement(Gt,null),u().createElement(Bt,{componentName:"Chat"},(e=>e.copied))):u().createElement("button",{className:`${fW}-content-code-topSlot-copy-wrapper ${fW}-content-code-topSlot-toCopy`,onClick:i},u().createElement(pW,null),u().createElement(Bt,{componentName:"Chat"},(e=>e.copy))))),PU(e)):PU(e)},{PREFIX_CHAT_BOX:gW}=$U,{MESSAGE_STATUS:yW,MODE:vW,ROLE:bW}=BU,xW=e=>{const{message:t={},customRenderFunc:n,role:r,customMarkDownComponents:i,mode:s}=e,{content:a,role:o,status:l}=t,c=(0,h.useMemo)((()=>Object.assign({code:mW,SemiFile:qU,img:YU},i)),[i]),d=(0,h.useMemo)((()=>{const e=o===bW.USER,t=s===vW.BUBBLE,n=s===vW.USER_BUBBLE&&e;return x()(`${gW}-content`,{[`${gW}-content-${s}`]:t||n,[`${gW}-content-user`]:t&&e||n,[`${gW}-content-error`]:l===yW.ERROR&&(t||n)})}),[o,l]),p=(0,h.useMemo)((()=>{if(l===yW.LOADING)return u().createElement("span",{className:`${gW}-content-loading`},u().createElement("span",{className:`${gW}-content-loading-item`}));{let e="";return"string"==typeof a?e=a:Array.isArray(a)&&(e=a.map((e=>{var t;if("text"===e.type)return e.text;if("image_url"===e.type)return`![image](${e.image_url.url})`;if("file_url"===e.type){const{name:n,size:r,url:i,type:s}=e.file_url,a=null!==(t=n.split(".").pop())&&void 0!==t?t:null==s?void 0:s.split("/").pop();return`<SemiFile url={'${i}'} name={'${n}'} size={'${r}'} type={'${a}'}></SemiFile>`}return""})).join("\n\n")),u().createElement(u().Fragment,null,u().createElement(TU,{raw:e,components:c}))}}),[l,a]);return n?n({message:t,role:r,defaultContent:p,className:d}):u().createElement("div",{className:d},p)};const wW=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.05882 9.38973L11.7724 2.42678C11.8993 2.18883 12.1914 2.09699 12.4121 2.25201C12.9945 2.66123 13.8333 3.45218 13.8333 4.37503C13.8333 4.87411 13.7011 5.7719 13.5626 6.71262C13.4101 7.74781 13.25 8.83498 13.25 9.50003H20.8333C21.2778 9.50003 22 9.95175 22 11C22 11.904 21.0084 16.0872 20.3079 19.0423C20.1961 19.5138 20.0917 19.9541 20 20.3449C20 20.5632 19.7333 21 18.6667 21H8.49796C8.22182 21 8 20.7762 8 20.5V9.62503C8 9.54296 8.0202 9.46215 8.05882 9.38973ZM3.5 9.50003C3.22386 9.50003 3 9.72389 3 10V20.5C3 20.7762 3.22386 21 3.5 21H5.5C5.77614 21 6 20.7762 6 20.5V10C6 9.72389 5.77614 9.50003 5.5 9.50003H3.5Z",fill:"currentColor"}))}),"like_thumb");const CW=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.422 2.09341L10.5881 1.70522L6.41967 9H3.2C2.53726 9 2 9.53726 2 10.2V20.8C2 21.4627 2.53726 22 3.2 22H8L17.6667 22C18.3152 22 18.8599 21.8762 19.2763 21.607C19.6472 21.3672 19.9326 20.99 19.9896 20.5433C20.324 19.192 20.815 17.1476 21.226 15.3057C21.4353 14.3679 21.6253 13.4759 21.7635 12.752C21.8936 12.0704 22 11.4313 22 11.069C22 10.3038 21.7093 9.69155 21.24 9.28292C20.8028 8.90221 20.2705 8.75 19.8333 8.75H13.3409C13.3904 8.39857 13.4561 8.00566 13.5273 7.59043L13.5564 7.42098C13.6871 6.66202 13.8333 5.81287 13.8333 5.25C13.8333 4.28245 13.2516 3.52694 12.7844 3.06764C12.2974 2.58876 11.7438 2.24319 11.422 2.09341ZM6 20V11H4V20H6ZM8 20H17.6667C17.8602 20 17.9903 19.9822 18.0726 19.9641C18.4036 18.6233 18.8771 16.6486 19.274 14.8701C19.4814 13.9407 19.6664 13.0715 19.799 12.3769C19.9397 11.6399 20 11.2031 20 11.069C20 10.9437 19.9777 10.8759 19.9644 10.8456C19.9514 10.8159 19.9379 10.801 19.9266 10.7912C19.9129 10.7793 19.8936 10.7677 19.8696 10.7592C19.8501 10.7523 19.8364 10.7506 19.833 10.7501C19.8324 10.7501 19.8321 10.75 19.8321 10.75L11.25 10.75V9.75C11.25 9.04443 11.4155 8.07195 11.556 7.25245L11.5592 7.23411L11.5592 7.23407C11.7124 6.34084 11.8333 5.63528 11.8333 5.25C11.8333 5.09254 11.7206 4.8265 11.3822 4.49378C11.3643 4.4761 11.3461 4.45873 11.3279 4.44168L8 10.2656V20Z",fill:"currentColor"}))}),"thumb_up_stroked");const EW=Ut((function(e){return h.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 12C3.5 7.58173 7.08173 4 11.5 4C13.7094 4 15.7081 4.89435 17.1568 6.34316C17.4361 6.62246 17.8399 7.05385 18.2497 7.5H16C15.4477 7.5 15 7.94772 15 8.5C15 9.05228 15.4477 9.5 16 9.5H20.5C21.0523 9.5 21.5 9.05228 21.5 8.5V4C21.5 3.44772 21.0523 3 20.5 3C19.9477 3 19.5 3.44772 19.5 4V5.90549C19.1565 5.53424 18.8233 5.18114 18.5711 4.92895C16.7625 3.12038 14.2612 2 11.5 2C5.97717 2 1.5 6.47717 1.5 12C1.5 17.5228 5.97717 22 11.5 22C14.2612 22 16.7625 20.8796 18.5711 19.071C18.9616 18.6805 18.9616 18.0474 18.571 17.6568C18.1805 17.2663 17.5474 17.2663 17.1568 17.6569C15.7081 19.1057 13.7094 20 11.5 20C7.08173 20 3.5 16.4183 3.5 12Z",fill:"currentColor"}))}),"redo_stroked");class SW extends c{constructor(e){super(Object.assign({},e)),this.showDeletePopup=()=>{this._adapter.setVisible(!0),this._adapter.setShowAction(!0),this._adapter.registerClickOutsideHandler(this.hideDeletePopup)},this.hideDeletePopup=()=>{this._adapter.setVisible(!1),setTimeout((()=>{this._adapter.setShowAction(!1)}),150),this._adapter.unregisterClickOutsideHandler()},this.destroy=()=>{this._adapter.unregisterClickOutsideHandler()},this.deleteMessage=()=>{this._adapter.notifyDeleteMessage()},this.copyMessage=()=>{this._adapter.notifyMessageCopy(),this._adapter.copyToClipboardAndToast()},this.likeMessage=()=>{this._adapter.notifyLikeMessage()},this.dislikeMessage=()=>{this._adapter.notifyDislikeMessage()},this.resetMessage=()=>{this._adapter.notifyResetMessage()}}}const{PREFIX_CHAT_BOX_ACTION:_W}=$U,{ROLE:kW,MESSAGE_STATUS:PW}=BU;class OW extends f{constructor(e){super(e),this.copyNode=()=>u().createElement(Ji,{key:"copy",theme:"borderless",icon:u().createElement(pW,null),type:"tertiary",onClick:this.foundation.copyMessage,className:`${_W}-btn`}),this.likeNode=()=>{const{message:e={}}=this.props,{like:t}=e;return u().createElement(Ji,{key:"like",theme:"borderless",icon:t?u().createElement(wW,null):u().createElement(CW,null),type:"tertiary",className:`${_W}-btn`,onClick:this.foundation.likeMessage})},this.dislikeNode=()=>{const{message:e={}}=this.props,{dislike:t}=e;return u().createElement(Ji,{theme:"borderless",key:"dislike",icon:t?u().createElement(wW,{className:`${_W}-icon-flip`}):u().createElement(CW,{className:"semi-chat-chatBox-action-icon-flip"}),type:"tertiary",className:`${_W}-btn`,onClick:this.foundation.dislikeMessage})},this.resetNode=()=>u().createElement(Ji,{key:"reset",theme:"borderless",icon:u().createElement(EW,{className:`${_W}-icon-redo`}),type:"tertiary",onClick:this.foundation.resetMessage,className:`${_W}-btn`}),this.deleteNode=()=>{const e=u().createElement(Bt,{componentName:"Chat"},(e=>e.deleteConfirm));return u().createElement(PE,{trigger:"custom",visible:this.state.visible,key:"delete",title:e,onConfirm:this.foundation.deleteMessage,onCancel:this.foundation.hideDeletePopup,position:"top"},u().createElement("span",{ref:this.popconfirmTriggerRef,className:`${_W}-delete-wrap`},u().createElement(Ji,{theme:"borderless",icon:u().createElement(jU,null),type:"tertiary",className:`${_W}-btn`,onClick:this.foundation.showDeletePopup})))},this.foundation=new SW(this.adapter),this.copySuccessNode=null,this.state={visible:!1,showAction:!1},this.clickOutsideHandler=null,this.containerRef=u().createRef(),this.popconfirmTriggerRef=u().createRef()}componentDidMount(){this.copySuccessNode=u().createElement(Bt,{componentName:"Chat"},(e=>e.copySuccess))}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyDeleteMessage:()=>{const{message:e,onMessageDelete:t}=this.props;null==t||t(e)},notifyMessageCopy:()=>{const{message:e,onMessageCopy:t}=this.props;null==t||t(e)},copyToClipboardAndToast:()=>{var e;const{message:t={},toast:n}=this.props;if("string"==typeof t.content)gt()(t.content);else if(Array.isArray(t.content)){const n=null===(e=t.content)||void 0===e?void 0:e.map((e=>e.text)).join("");gt()(n)}n.success({content:this.copySuccessNode})},notifyLikeMessage:()=>{const{message:e,onMessageGoodFeedback:t}=this.props;null==t||t(e)},notifyDislikeMessage:()=>{const{message:e,onMessageBadFeedback:t}=this.props;null==t||t(e)},notifyResetMessage:()=>{const{message:e,onMessageReset:t}=this.props;null==t||t(e)},setVisible:e=>{this.setState({visible:e})},setShowAction:e=>{this.setState({showAction:e})},registerClickOutsideHandler:e=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=t=>{let n=this.popconfirmTriggerRef&&this.popconfirmTriggerRef.current;const r=t.target,i=t.composedPath&&t.composedPath()||[r];!n||n.contains(r)||i.includes(n)||e()},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)}})}render(){const{message:e={},lastChat:t}=this.props,{showAction:n}=this.state,{role:r,status:i=PW.COMPLETE}=e,s=i===PW.COMPLETE,a=r!==kW.USER&&s,o=t&&r===kW.ASSISTANT,l=i!==PW.LOADING&&i!==PW.INCOMPLETE,c=x()(_W,{[`${_W}-show`]:o&&l||n,[`${_W}-hidden`]:!l}),{customRenderFunc:h}=this.props;if(h){const t=[];return s&&t.push(this.copyNode()),a&&t.push(this.likeNode()),a&&t.push(this.dislikeNode()),o&&t.push(this.resetNode()),t.push(this.deleteNode()),h({message:e,defaultActions:t,className:c})}return u().createElement("div",{className:c,ref:this.containerRef},s&&this.copyNode(),a&&this.likeNode(),a&&this.dislikeNode(),o&&this.resetNode(),this.deleteNode())}}OW.propTypes={role:C().object,message:C().object,showReset:C().bool,onMessageBadFeedback:C().func,onMessageGoodFeedback:C().func,onMessageCopy:C().func,onChatsChange:C().func,onMessageDelete:C().func,onMessageReset:C().func,customRenderFunc:C().func};const TW=OW,{PREFIX_CHAT_BOX:IW}=$U,{ROLE:DW,CHAT_ALIGN:AW}=BU,RW=u().memo((e=>{const{message:t,lastChat:n,align:r,toast:i,mode:s,roleConfig:a,onMessageBadFeedback:o,onMessageGoodFeedback:l,onMessageCopy:c,onChatsChange:d,onMessageDelete:p,onMessageReset:f,chatBoxRenderConfig:m={},customMarkDownComponents:g,previousMessage:y}=e,{renderChatBoxAvatar:v,renderChatBoxAction:b,renderChatBoxContent:w,renderChatBoxTitle:C,renderFullChatBox:E}=m,S=(0,h.useMemo)((()=>(null==t?void 0:t.role)===(null==y?void 0:y.role)),[t.role,y]),_=(0,h.useMemo)((()=>{var e;let n={};return a&&(n=null!==(e=a[t.role])&&void 0!==e?e:{}),n}),[t.role,a]),k=(0,h.useMemo)((()=>u().createElement(hW,{continueSend:S,role:_,customRenderFunc:v})),[_,v]),P=(0,h.useMemo)((()=>u().createElement(dW,{role:_,message:t,customRenderFunc:C})),[_,t,C]),O=(0,h.useMemo)((()=>u().createElement(xW,{mode:s,role:_,message:t,customMarkDownComponents:g,customRenderFunc:w})),[t,_,w]),T=(0,h.useMemo)((()=>u().createElement(TW,{toast:i,role:_,message:t,lastChat:n,onMessageBadFeedback:o,onMessageCopy:c,onChatsChange:d,onMessageDelete:p,onMessageGoodFeedback:l,onMessageReset:f,customRenderFunc:b})),[t,_,n,o,l,c,d,p,f,b]),I=(0,h.useMemo)((()=>x()(IW,{[`${IW}-right`]:t.role===DW.USER&&r===AW.LEFT_RIGHT})),[t.role,r]);return"function"!=typeof E?u().createElement("div",{className:I},k,u().createElement("div",{className:`${IW}-wrap`},!S&&P,O,T)):E({message:t,role:_,defaultNodes:{avatar:k,title:P,content:O,action:T},className:I})})),NW=RW,{PREFIX_DIVIDER:MW,PREFIX:FW}=$U,{ROLE:LW}=BU,jW=u().memo((e=>{const{chats:t,onMessageBadFeedback:n,onMessageCopy:r,mode:i,onChatsChange:s,onMessageDelete:a,onMessageGoodFeedback:o,onMessageReset:l,roleConfig:c,chatBoxRenderConfig:h,align:d,customMarkDownComponents:p}=e,[f,m]=OO.useToast();return u().createElement(u().Fragment,null,t.map(((e,m)=>{const g=m===t.length-1;return e.role===LW.DIVIDER?u().createElement(cb,{key:e.id,className:MW},u().createElement(Bt,{componentName:"Chat"},(e=>e.clearContext))):u().createElement(NW,{previousMessage:m?t[m-1]:void 0,toast:f,align:d,mode:i,key:e.id,message:e,roleConfig:c,onMessageBadFeedback:n,onMessageCopy:r,onChatsChange:s,onMessageDelete:a,onMessageGoodFeedback:o,onMessageReset:l,lastChat:g,customMarkDownComponents:p,chatBoxRenderConfig:h})})),u().createElement("div",{className:`${FW}-toast`},m))})),VW=jW,{PIC_PREFIX:$W,PIC_SUFFIX_ARRAY:BW,ROLE:zW,SCROLL_ANIMATION_TIME:HW,SHOW_SCROLL_GAP:KW}=BU;class UW extends c{constructor(e){super(Object.assign({},e)),this.init=()=>{this.scrollToBottomImmediately(),this._adapter.registerWheelEvent()},this.destroy=()=>{this.animation&&this.animation.destroy(),this._adapter.unRegisterWheelEvent()},this.stopGenerate=e=>{this._adapter.notifyStopGenerate(e)},this.scrollToBottomImmediately=()=>{const e=this._adapter.getContainerRef();e&&(e.scrollTop=e.scrollHeight)},this.scrollToBottomWithAnimation=()=>{const e=HW,t=this._adapter.getContainerRef();if(!t)return;const n=t.scrollTop,r=t.scrollHeight;this.animation=new oi({from:{scrollTop:n},to:{scrollTop:r}},{duration:e,easing:"easeInOutCubic"}),this.animation.on("frame",(e=>{let{scrollTop:n}=e;t.scrollTop=n})),this.animation.start()},this.containerScroll=e=>{e.persist();requestAnimationFrame((()=>{this.getScroll(e.target)}))},this.getScroll=v()((e=>{const t=e.scrollHeight,n=e.clientHeight,r=e.scrollTop,{backBottomVisible:i}=this.getStates();return t-r-n<=KW?i&&this._adapter.setBackBottomVisible(!1):i||this._adapter.setBackBottomVisible(!0),scroll}),100),this.clearContext=e=>{const{chats:t}=this.getStates();if(t[t.length-1].role===zW.DIVIDER)return;const n={role:zW.DIVIDER,id:De(),createAt:Date.now()},r=[...t,n];this._adapter.notifyChatsChange(r),this._adapter.notifyClearContext()},this.onMessageSend=(e,t)=>{let n;if(Boolean(t)&&0===t.length?n=e:(n=[],e&&n.push({type:"text",text:e}),(null!=t?t:[]).map((e=>{var t;const{fileInstance:r,name:i="",url:s,size:a}=e,o=i.split(".").pop();(null===(t=null==r?void 0:r.type)||void 0===t?void 0:t.startsWith($W))||BW.includes(o)?n.push({type:"image_url",image_url:{url:s}}):n.push({type:"file_url",file_url:{url:s,name:i,size:a,type:null==r?void 0:r.type}})}))),n){const e={role:zW.USER,id:De(),createAt:Date.now(),content:n};this._adapter.notifyChatsChange([...this.getStates().chats,e])}this._adapter.setWheelScroll(!1),this._adapter.registerWheelEvent(),this._adapter.notifyMessageSend(e,t)},this.onHintClick=e=>{const{chats:t}=this.getStates(),n=[...t,{role:zW.USER,id:De(),createAt:Date.now(),content:e}];this._adapter.notifyChatsChange(n),this._adapter.notifyHintClick(e)},this.onInputChange=e=>{this._adapter.notifyInputChange(e)},this.deleteMessage=e=>{const{onMessageDelete:t,onChatsChange:n}=this.getProps(),{chats:r}=this.getStates();null==t||t(e);const i=r.filter((t=>t.id!==e.id));null==n||n(i)},this.likeMessage=e=>{const{chats:t}=this.getStates();this._adapter.notifyLikeMessage(e);const n=t.findIndex((t=>t.id===e.id)),r=Object.assign(Object.assign({},t[n]),{like:!t[n].like,dislike:!1}),i=[...t];i.splice(n,1,r),this._adapter.notifyChatsChange(i)},this.dislikeMessage=e=>{const{chats:t}=this.getStates();this._adapter.notifyDislikeMessage(e);const n=t.findIndex((t=>t.id===e.id)),r=Object.assign(Object.assign({},t[n]),{like:!1,dislike:!t[n].dislike}),i=[...t];i.splice(n,1,r),this._adapter.notifyChatsChange(i)},this.resetMessage=e=>{const{chats:t}=this.getStates(),n=t[t.length-1],r=Object.assign(Object.assign({},n),{status:"loading",content:"",id:De(),createAt:Date.now()}),i=t.slice(0,-1).concat(r);this._adapter.notifyChatsChange(i);const{onMessageReset:s}=this.getProps();null==s||s(e)},this.handleDragOver=e=>{this._adapter.setUploadAreaVisible(!0)},this.handleContainerDragOver=e=>{Ce(e)},this.handleContainerDrop=e=>{var t;this._adapter.setUploadAreaVisible(!1),this._adapter.manualUpload(null===(t=null==e?void 0:e.dataTransfer)||void 0===t?void 0:t.files),Ce(e)},this.handleContainerDragLeave=e=>{Ce(e);const t=this._adapter.getDropAreaElement();t!==e.target&&t.contains(e.target)||setTimeout((()=>{this._adapter.setUploadAreaVisible(!1)}))}}}const WW=$U.PREFIX,{CHAT_ALIGN:GW,MODE:qW,SEND_HOT_KEY:YW}=BU;class XW extends f{constructor(e){super(e),this.resetMessage=()=>{this.foundation.resetMessage(null)},this.clearContext=()=>{this.foundation.clearContext(null)},this.scrollToBottom=e=>{e?this.foundation.scrollToBottomWithAnimation():this.foundation.scrollToBottomImmediately()},this.sendMessage=(e,t)=>{this.foundation.onMessageSend(e,t)},this.containerScroll=e=>{e.target===e.currentTarget&&this.foundation.containerScroll(e)},this.containerRef=h.createRef(),this.uploadRef=h.createRef(),this.dropAreaRef=h.createRef(),this.wheelEventHandler=null,this.foundation=new UW(this.adapter),this.state={backBottomVisible:!1,chats:[],cacheHints:[],wheelScroll:!1,uploadAreaVisible:!1}}get adapter(){return Object.assign(Object.assign({},super.adapter),{getContainerRef:()=>{var e;return null===(e=this.containerRef)||void 0===e?void 0:e.current},setWheelScroll:e=>{this.setState({wheelScroll:e})},notifyChatsChange:e=>{const{onChatsChange:t}=this.props;t&&t(e)},notifyLikeMessage:e=>{const{onMessageGoodFeedback:t}=this.props;t&&t(e)},notifyDislikeMessage:e=>{const{onMessageBadFeedback:t}=this.props;t&&t(e)},notifyCopyMessage:e=>{const{onMessageCopy:t}=this.props;t&&t(e)},notifyClearContext:()=>{const{onClear:e}=this.props;e&&e()},notifyMessageSend:(e,t)=>{const{onMessageSend:n}=this.props;n&&n(e,t)},notifyInputChange:e=>{const{onInputChange:t}=this.props;t&&t(e)},setBackBottomVisible:e=>{this.setState((t=>t.backBottomVisible!==e?{backBottomVisible:e}:null))},registerWheelEvent:()=>{this.adapter.unRegisterWheelEvent();const e=this.containerRef.current;e&&(this.wheelEventHandler=t=>{t.target===e&&(this.adapter.setWheelScroll(!0),this.adapter.unRegisterWheelEvent())},e.addEventListener("wheel",this.wheelEventHandler))},unRegisterWheelEvent:()=>{if(this.wheelEventHandler){const e=this.containerRef.current;if(!e)return;e.removeEventListener("wheel",this.wheelEventHandler),this.wheelEventHandler=null}},notifyStopGenerate:e=>{const{onStopGenerator:t}=this.props;t&&t(e)},notifyHintClick:e=>{const{onHintClick:t}=this.props;t&&t(e)},setUploadAreaVisible:e=>{this.setState({uploadAreaVisible:e})},manualUpload:e=>{const t=this.uploadRef.current;t&&t.insert(e)},getDropAreaElement:()=>{var e;return null===(e=this.dropAreaRef)||void 0===e?void 0:e.current}})}static getDerivedStateFromProps(e,t){const{chats:n,hints:r}=e,i={};return n!==t.chats&&(i.chats=n),r!==t.cacheHints&&(i.cacheHints=r),Object.keys(i).length?i:null}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t,n){const{chats:r,hints:i}=this.props,{chats:s,cacheHints:a}=t,{wheelScroll:o}=this.state;let l=!1;if(r!==s){const e=r[r.length-1],t=s[s.length-1];r.length>s.length?e.id!==t.id&&(l=!0):r.length!==s.length||"complete"===e.status&&e.status===t.status||(l=!0)}i!==a&&i.length>a.length&&(l=!0),!o&&l&&this.foundation.scrollToBottomImmediately()}componentWillUnmount(){this.foundation.destroy()}render(){const{topSlot:e,bottomSlot:t,roleConfig:n,hints:r,onChatsChange:i,onMessageCopy:s,renderInputArea:a,chatBoxRenderConfig:o,align:l,renderHintBox:c,style:u,className:d,showStopGenerate:p,customMarkDownComponents:f,mode:m,showClearContext:g,placeholder:y,inputBoxCls:v,inputBoxStyle:b,hintStyle:w,hintCls:C,uploadProps:E,uploadTipProps:S,sendHotKey:_}=this.props,{backBottomVisible:k,chats:P,wheelScroll:O,uploadAreaVisible:T}=this.state;let I=!1;const D=P.length>0&&P[P.length-1];let A=!1;if(D&&p){const e=D.status&&"complete"!==D.status;A=e,p&&(I=e)}return h.createElement("div",{className:x()(`${WW}`,d),style:u,onDragOver:this.foundation.handleDragOver},T&&h.createElement("div",{ref:this.dropAreaRef,className:`${WW}-dropArea`,onDragOver:this.foundation.handleContainerDragOver,onDrop:this.foundation.handleContainerDrop,onDragLeave:this.foundation.handleContainerDragLeave},h.createElement("span",{className:`${WW}-dropArea-text`},h.createElement(Bt,{componentName:"Chat"},(e=>e.dropAreaText)))),h.createElement("div",{className:`${WW}-inner`},e,h.createElement("div",{className:`${WW}-content`},h.createElement("div",{className:x()(`${WW}-container`,{"semi-chat-container-scroll-hidden":!O}),onScroll:this.containerScroll,ref:this.containerRef},h.createElement(VW,{align:l,mode:m,chats:P,roleConfig:n,customMarkDownComponents:f,onMessageDelete:this.foundation.deleteMessage,onChatsChange:i,onMessageBadFeedback:this.foundation.dislikeMessage,onMessageGoodFeedback:this.foundation.likeMessage,onMessageReset:this.foundation.resetMessage,onMessageCopy:s,chatBoxRenderConfig:o}),!!(null==r?void 0:r.length)&&h.createElement(aW,{className:C,style:w,value:r,onHintClick:this.foundation.onHintClick,renderHintBox:c}))),k&&!I&&h.createElement("span",{className:`${WW}-action`},h.createElement(Ji,{className:`${WW}-action-content ${WW}-action-backBottom`,icon:h.createElement(yc,{size:"extra-large"}),type:"tertiary",onClick:this.foundation.scrollToBottomWithAnimation})),I&&h.createElement("span",{className:`${WW}-action`},h.createElement(Ji,{className:`${WW}-action-content ${WW}-action-stop`,icon:h.createElement(oW,{size:"extra-large"}),type:"tertiary",onClick:this.foundation.stopGenerate},h.createElement(Bt,{componentName:"Chat"},(e=>e.stop)))),h.createElement(rW,{showClearContext:g,uploadRef:this.uploadRef,manualUpload:this.adapter.manualUpload,style:b,className:v,placeholder:y,disableSend:A,onClearContext:this.foundation.clearContext,onSend:this.foundation.onMessageSend,onInputChange:this.foundation.onInputChange,renderInputArea:a,uploadProps:E,uploadTipProps:S,sendHotKey:_}),t))}}XW.__SemiComponentName__="Chat",XW.propTypes={className:C().string,style:C().object,roleConfig:C().object,chats:C().array,hints:C().array,renderHintBox:C().func,onChatsChange:C().func,align:C().string,chatBoxRenderConfig:C().object,customMarkDownComponents:C().object,onClear:C().func,onMessageDelete:C().func,onMessageReset:C().func,onMessageCopy:C().func,onMessageGoodFeedback:C().func,onMessageBadFeedback:C().func,inputContentConvert:C().func,onMessageSend:C().func,InputBoxStyle:C().object,inputBoxCls:C().string,renderFullInputBox:C().func,placeholder:C().string,topSlot:C().node||C().array,bottomSlot:C().node||C().array,showStopGenerate:C().bool,showClearContext:C().bool,hintStyle:C().object,hintCls:C().string,uploadProps:C().object,uploadTipProps:C().object,mode:C().string},XW.defaultProps=Xe(XW.__SemiComponentName__,{align:GW.LEFT_RIGHT,showStopGenerate:!1,mode:qW.BUBBLE,showClearContext:!1,sendHotKey:YW.ENTER});const ZW=XW})(),__webpack_exports__})()));
|